1 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3 * gdbtypes.h (floatformats_ieee_half): Add declaration.
4 * gdbtypes.c (floatformats_ieee_half): New variable.
5 * doublest.c (floatformat_from_length): Set format to
6 gdbarch_half_format if length matches.
7 * gdbarch.sh (half_bit): New architecture method.
8 (half_format): Likewise.
9 * gdbarch.h: Regenerate.
10 * gdbarch.c: Likewise.
12 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
13 Joel Brobecker <brobecker@adacore.com>
15 Fix re-run of PIE executable, PR shlibs/11776.
16 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
17 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
19 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
20 Joel Brobecker <brobecker@adacore.com>
22 * auxv.c (memory_xfer_auxv): Update attach comment.
23 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
24 svr4_relocate_main_executable.
25 (svr4_solib_create_inferior_hook): Make the call to
26 svr4_relocate_main_executable unconditional.
28 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
29 Joel Brobecker <brobecker@adacore.com>
31 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
33 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
34 Joel Brobecker <brobecker@adacore.com>
36 Fix attaching to PIEs prelinked on the disk after the process was
38 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
39 Verify it against bfd_get_arch_size. Try to match arbitrary
40 displacement for the phdrs comparison.
42 2010-07-02 Tom Tromey <tromey@redhat.com>
45 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
46 value as optimized-out.
48 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
49 Thiago Jung Bauermann <bauerman@br.ibm.com>
51 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
52 represent?" question in comment. Change comment to a proper sentence.
54 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
56 * c-valprint.c (c_val_print): Fix printing of character vectors.
58 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
60 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
61 create_breakpoint prototype.
63 2010-07-01 Pedro Alves <pedro@codesourcery.com>
65 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
66 usefulness suggestion of multiple breakpoints at same location.
68 2010-07-01 Pedro Alves <pedro@codesourcery.com>
70 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
72 2010-07-01 Pedro Alves <pedro@codesourcery.com>
74 * dwarf2loc.c (locexpr_tracepoint_var_ref)
75 (loclist_tracepoint_var_ref): Handle optimized out values.
77 2010-07-01 Pedro Alves <pedro@codesourcery.com>
79 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
80 unnecessary space in string.
81 * filesystem.c (_initialize_filesystem): Ditto.
82 * frame.c (_initialize_frame): Ditto.
83 * infcmd.c (step_once): Ditto.
84 * infrun.c (_initialize_infrun): Ditto.
85 * linux-nat.c (linux_child_follow_fork): Ditto.
86 * maint.c (maintenance_deprecate): Ditto.
87 * memattr.c (_initialize_mem): Ditto.
88 * mips-tdep.c (_initialize_mips_tdep): Ditto.
89 * monitor.c (monitor_open): Ditto.
90 * procfs.c (procfs_xfer_memory): Ditto.
91 * reverse.c (bookmarks_info): Ditto.
92 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
93 * stack.c (_initialize_stack): Ditto.
94 * tracepoint.c (_initialize_tracepoint): Ditto.
95 * xtensa-tdep.c (xtensa_supply_gregset,
96 xtensa_regset_from_core_section): Ditto.
98 2010-07-01 Tom Tromey <tromey@redhat.com>
100 * value.h (struct lval_funcs) <check_any_valid>: Rename from
102 * value.c (value_entirely_optimized_out): Invert result. Update
103 for new function name.
105 2010-07-01 Pedro Alves <pedro@codesourcery.com>
107 Static tracepoints support.
109 * NEWS: Mention new support for static tracepoints.
110 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
111 qXfer:statictrace:read.
112 (New features in the GDB remote stub, GDBserver): Mention static
113 tracepoints support using an UST based backend.
114 (New commands): Mention "info static-tracepoint-markers" and
116 * breakpoint.c (is_marker_spec): New.
117 (is_tracepoint): Handle static tracepoints.
118 (validate_commands_for_breakpoint): Static tracepoints can't do
120 (static_tracepoints_here): New.
121 (bpstat_what): Handle static tracepoints.
122 (print_one_breakpoint_location, allocate_bp_location, mention):
124 (create_breakpoint_sal): Ditto.
125 (decode_static_tracepoint_spec): New.
126 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
127 `type_wanted'. Adjust. Handle static tracepoint marker
129 (break_command_1): Adjust.
130 (update_static_tracepoint): New.
131 (update_breakpoint_locations): Handle static tracepoints.
132 (breakpoint_re_set_one): Handle static tracepoint marker
134 (disable_command, enable_command): Handle static tracepoints.
135 (trace_command, ftrace_command): Adjust.
136 (strace_command): New.
137 (create_tracepoint_from_upload): Adjust.
138 (save_breakpoints): Handle static tracepoints.
139 (_initialize_breakpoint): Install the "strace" command.
140 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
141 (struct breakpoint): New fields static_trace_marker_id and
142 static_trace_marker_id_idx.
143 (breakpoints_here_p): Declare.
144 (create_breakpoint): Adjust.
145 (static_tracepoints_here): Declare.
146 * remote.c (struct remote_state) <static_tracepoints>: New field.
147 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
148 (remote_static_tracepoint_marker_at): New.
149 (remote_static_tracepoint_markers_by_strid): New.
150 (remote_static_tracepoint_feature): New.
151 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
152 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
153 (remote_supports_static_tracepoints): New.
154 (remote_download_tracepoint): Download static tracepoints.
155 (init_remote_ops): Install remote_static_tracepoint_marker_at and
156 remote_static_tracepoint_markers_by_strid.
157 (_initialize_remote): Install set|show remote static-tracepoints,
158 and set|show remote read-sdata-object commands.
159 * target.c (update_current_target): Inherit and default
160 to_static_tracepoint_marker_at, and
161 to_static_tracepoint_markers_by_strid.
162 * target.h (static_tracepoint_marker): Forward declare.
163 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
164 (static_tracepoint_marker_p): New typedef.
165 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
166 (struct target_ops): New fields to_static_tracepoint_marker_at and
167 to_static_tracepoint_markers_by_strid.
168 (target_static_tracepoint_marker_at)
169 (target_static_tracepoint_markers_by_strid): New.
170 * tracepoint.c: Include source.h.
171 (validate_actionline): Handle $_sdata.
172 (struct collection_list): New field strace_data.
173 (add_static_trace_data): New.
174 (clear_collection_list): Clear strace_data.
175 (stringify_collection_list): Account for a possible static trace
177 (encode_actions_1): Encode an $_sdata collection.
178 (parse_tracepoint_definition): Handle static tracepoints.
179 (parse_static_tracepoint_marker_definition): New.
180 (release_static_tracepoint_marker): New.
181 (print_one_static_tracepoint_marker): New.
182 (info_static_tracepoint_markers_command): New.
183 (sdata_make_value): New.
184 (_initialize_tracepoint): Create the $_sdata convenience variable.
185 Add the "info static-tracepoint-markers" command.
186 Mention $_sdata in the "collect" command's help output.
187 * tracepoint.h (struct static_tracepoint_marker): New.
188 (parse_static_tracepoint_marker_definition)
189 (release_static_tracepoint_marker): Declare.
190 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
191 * python/py-breakpoint.c (bppy_new): Adjust.
193 2010-06-30 Joel Brobecker <brobecker@adacore.com>
195 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
198 2010-06-29 Doug Evans <dje@google.com>
201 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
202 DW_AT_external is present.
206 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
207 create a symbol for the field and record the value.
208 (new_symbol): Handle DW_TAG_member.
209 * gdbtypes.c (field_is_static): Remove FIXME.
210 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
211 only ignore LOC_CONST symbols that are enums.
213 * dwarf2read.c: Remove trailing whitespace.
215 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
216 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
217 (struct main_type, field loc): Delete dwarf_block.
218 (FIELD_DWARF_BLOCK): Delete.
219 (SET_FIELD_DWARF_BLOCK): Delete.
220 (TYPE_FIELD_DWARF_BLOCK): Delete.
221 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
224 2010-06-29 Hui Zhu <teawater@gmail.com>
226 * record.c (set_record_pic_cmdlist,
227 show_record_pic_cmdlist): New variables.
228 (set_record_pic_command,
229 show_record_pic_command): New functions.
230 (record_pic_function, record_pic_line, record_pic_enum,
231 set_record_pic_type, record_pic_hide_nofunction,
232 record_pic_hide_nosource, record_pic_hide_same): New variables.
233 (record_pic_fputs): New function.
234 (function_list, node_list, edge_list): New struct.
235 (function_list, node_list, edge_list): New variables.
236 (record_pic_cleanups, record_pic_node,
237 record_pic_edge, cmd_record_pic): New functions.
238 (_initialize_record): Add new commands for record pic.
240 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
242 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
243 ALLOCATE_CPLUS_STRUCT_TYPE.
245 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
246 Tom Tromey <tromey@redhat.com>
247 Thiago Jung Bauermann <bauerman@br.ibm.com>
249 * value.c (pack_unsigned_long): New function.
250 (value_from_ulongest): New function.
251 * value.h (value_from_ulongest): Declare.
252 * python/python.c (_initialize_python): Call
253 gdbpy_initialize_thread and gdbpy_initialize_inferior.
254 * python/python-internal.h: Define thread_object.
255 (gdbpy_inferiors, gdbpy_selected_thread)
256 (frame_info_to_frame_object, create_thread_object)
257 (find_thread_object, find_inferior_object)
258 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
259 (gdbpy_is_value_object, get_addr_from_python): Declare.
260 * python/py-value.c (builtin_type_upylong): Define.
261 (convert_value_from_python): Add logic for ulongest.
262 (gdbpy_is_value_object): New function.
263 * python/py-utils.c (get_addr_from_python): New function.
264 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
265 (gdbpy_selected_frame): Use PyObject over frame_info.
266 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
268 (SUBDIR_PYTHON_SRCS): Likewise.
269 (py-inferior.o): New Rule.
270 (py-infthread.o): New Rule.
271 * python/py-inferior.c: New File.
272 * python/py-infthread.c: New File.
274 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
276 * c-typeprint.c (c_type_print_base): For no fields check include also
277 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
278 * dwarf2read.c (struct typedef_field_list)
279 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
280 (dwarf2_add_typedef): New.
281 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
282 Copy also FI.TYPEDEF_FIELD_LIST.
283 * gdbtypes.h (struct typedef_field)
284 (struct cplus_struct_type) <typedef_field, typedef_field_count>
285 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
286 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
288 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
290 * cp-namespace.c (cp_lookup_nested_type): New variable
291 concatenated_name. Turn the current return condition into a reverse
292 one. Call also lookup_static_symbol_aux on the constructed qualified
294 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
295 other files into a called ...
296 (lookup_static_symbol_aux): ... new function here.
297 * symtab.h (lookup_static_symbol_aux): New prototype.
298 * valops.c (value_maybe_namespace_elt): Call also
299 lookup_static_symbol_aux if we failed otherwise.
301 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
303 Fix PR c++/11703 and PR gdb/1448.
304 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
307 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
309 Fix modification of cplus_struct_default.
310 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
311 Call ALLOCATE_CPLUS_STRUCT_TYPE.
312 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
314 2010-06-28 Joel Brobecker <brobecker@adacore.com>
316 * NEWS: Add entry announcing the python directory.
318 2010-06-28 Tom Tromey <tromey@redhat.com>
320 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
322 2010-06-28 Doug Evans <dje@google.com>
324 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
327 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
330 obstack_begin after each obstack_free.
332 2010-06-27 Doug Evans <dje@google.com>
334 * value.c (value_static_field): Use `switch' instead of `if'.
335 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
337 * valops.c (search_struct_field): Fix typo in error message.
339 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
341 * dwarf2expr.c (execute_stack_op): Place preprocessor
342 directives at the start of the source line.
344 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
346 * defs.h (make_command_stats_cleanup): Declare.
347 (set_display_time): Declare.
348 (set_display_space): Declare.
349 * event-top.c (command_handler): Use make_command_stats_cleanup.
350 * main.c (display_time, display_space): Move definitions to utils.c.
351 (captured_main): Use make_command_stats_cleanup to get start-up
353 Use set_display_time and set_display_space for processing OPT_STATISTICS
355 * maint.c (maintenance_time_display): Use set_display_time.
356 (maintenance_space_display): Use set_display_space.
357 * top.c (execute_command): Remove obsolete 'maint time' code.
358 (command_loop): Use make_command_stats_cleanup.
359 * utils.c (struct cmd_stats): Structure for storing initial time
361 (display_time, display_space): Move definitions here from utils.c.
362 (set_display_time): New function.
363 (set_display_space): New function.
364 (make_command_stats_cleanup): New function.
365 (report_command_stats): New auxiliary function for
366 make_command_stats_cleanup.
368 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
370 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
371 hosts where CORE_ADDR is long long.
373 2010-06-25 Tom Tromey <tromey@redhat.com>
376 * python/python.c (execute_gdb_command): Add keywords. Accept
377 "to_string" argument.
378 (struct restore_ui_file_closure): New.
379 (restore_ui_file): New function.
380 (make_cleanup_restore_ui_file): Likewise.
381 (GdbMethods) <execute>: Update.
383 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
385 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
386 during inferior call stack frame setup.
388 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
390 * solib-spu.c: Include "exception.h".
391 (ocl_program_data_key): New variable.
392 (append_ocl_sos): New function.
393 (ocl_enable_break): Likewise.
394 (spu_current_sos): Call append_ocl_sos.
395 (spu_solib_loaded): Call ocl_enable_break.
396 (_initialize_spu_solib): Register ocl_program_data_key.
398 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
400 * cp-support.c (reset_directive_searched): New function.
401 (make_symbol_overload_list_using): Prevent recursive calls.
403 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
405 * printcmd.c (print_variable_and_value): Print error message on
408 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
410 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
412 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
414 (dwarf_expr_push): Change input type to ULONGEST.
415 (dwarf_expr_fetch): Change return type to ULONGEST.
416 (dwarf_expr_fetch_address): Add prototype.
417 (dwarf2_read_address): Remove prototype.
418 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
419 Truncate stack values to ctx->addr_size bytes.
420 (dwarf_expr_fetch): Change return value to ULONGEST.
421 (dwarf_expr_fetch_address): New function.
422 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
423 when appropriate. Update for struct dwarf_expr_piece changes.
424 (dwarf2_read_address): Remove.
425 (unsigned_address_type): Remove.
426 (signed_address_type): Remove.
427 (execute_stack_op): Use dwarf_expr_fetch_address instead of
428 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
429 values. Perform operations on ULONGEST instead of on GDB values,
430 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
431 values and DW_OP_deref results as unsigned integers.
432 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
434 (write_pieced_value): Likewise.
435 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
436 dwarf_expr_fetch when appropriate.
437 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
438 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
439 instead of dwarf_expr_fetch when appropriate.
441 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
443 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
445 2010-06-24 Joel Brobecker <brobecker@adacore.com>
447 * python/python.c (_initialize_python): Add new "constant"
448 PYTHONDIR in gdb module. Insert this path at the head of
449 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
450 exec its __init__.py script if it exists in that directory.
452 2010-06-24 Kevin Buettner <kevinb@redhat.com>
454 * rx-tdep.c (RX_ACC_REGNUM): Define.
455 (RX_NUM_REGS): Redefine to 26.
456 (rx_register_name): Add register "acc". Change order of several
457 registers. Change name of "vct" register to "fintv" to match RX
459 (rx_register_type): Add case for RX_ACC_REGNUM.
461 2010-06-24 Tom Tromey <tromey@redhat.com>
463 * psymtab.c (lookup_partial_symbol): Mark definition as static.
465 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Tom Tromey <tromey@redhat.com>
468 Fix GDB startup on readonly filesystem.
469 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
471 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
472 Pedro Alves <pedro@codesourcery.com>
475 * breakpoint.c (handle_jit_event): New function.
476 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
477 jit, err, table and bs_class. New variables shlib_event, jit_event,
478 this_action and bptype. Change bs_class assignments to this_action
479 assignments. new unhandled bptype internal error. Move here
480 shlib_event and jit_event handling from handle_inferior_event.
481 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
482 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
483 BPSTAT_WHAT_CHECK_JIT.
484 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
485 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
486 (handle_inferior_event): Reinitialize frame and gdbarch after
487 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
488 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
489 gdbarch when frame gets reinitialized.
491 2010-06-24 Hui Zhu <teawater@gmail.com>
493 * printcmd.c (ui_printf): New function.
494 (printf_command): Call ui_printf.
495 (_initialize_printcmd): New command "eval".
497 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
499 * infrun.c (handle_inferior_event): Handle presence of single-step
500 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
501 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
502 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
503 * breakpoint.c (detach_single_step_breakpoints): New function.
504 (detach_breakpoints): Call it.
505 (cancel_single_step_breakpoints): New function.
506 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
508 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
509 (spu_gdbarch_init): Install it.
511 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
513 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
514 * configure: Regenerate.
516 2010-06-22 Hui Zhu <teawater@gmail.com>
518 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
519 (i386_process_record): Ditto.
520 * record.c (record_memory_query): New variable.
521 (_initialize_record): New command "set record memory-query".
522 * record.h (record_memory_query): New extern.
524 2010-06-21 Doug Evans <dje@google.com>
526 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
527 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
528 (i386_syscall_p): Change type of lengthp to int.
529 (i386_displaced_step_fixup): Handle kernels that run one past a
531 * i386-linux-tdep.c (i386_linux_init_abi): Use
532 i386_displaced_step_copy_insn instead of
533 simple_displaced_step_copy_insn.
535 2010-06-21 Tom Tromey <tromey@redhat.com>
537 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
538 (dwarf_type_encoding_name): Likewise.
540 2010-06-21 Tom Tromey <tromey@redhat.com>
542 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
543 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
544 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
545 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
546 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
547 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
548 * dwarf2read.c (tag_type_to_type): Create a new error type on
550 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
551 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
553 2010-06-21 Michael Snyder <msnyder@vmware.com>
555 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
556 not add_abbrev_prefix_cmd, for "enable breakpoints".
558 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
560 * dwarf2loc.c (find_location_expression): Add relocation offset
561 to base-address-selection entry base addresses. Read addresses
562 (and offsets) as signed/unsigned integers, depending on the
563 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
564 (loclist_describe_location): Likewise.
565 (disassemble_dwarf_expression): Read DW_OP_addr operand as
566 unsigned integer. Do not call dwarf2_read_address.
567 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
569 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
571 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
572 value instead of hard-coded SPU_LS_SIZE.
573 (spu_software_single_step): Likewise.
574 * spu-tdep.h (SPU_LS_SIZE): Remove.
576 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
578 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
579 limit on local store memory accesses.
580 * spu-linux-nat.c (spu_xfer_partial): Likewise.
581 * spu-tdep.c (spu_lslr): Remove.
582 (spu_pointer_to_address): Do not truncate addresses.
583 (spu_integer_to_address): Likewise.
584 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
585 * spu-tdep.h: Add comments.
586 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
587 (SPU_OVERLAY_LMA): Define.
589 2010-06-18 Stan Shebs <stan@codesourcery.com>
591 * osdata.c (get_osdata): Warn separately if target does not report
593 (info_osdata_command): Allow empty type, report error if target
594 does not return available types of OS data.
595 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
596 types if no annex supplied.
598 * thread.c (thread_id_make_value): Make a value representing the
600 (_initialize_thread): Create $_thread.
602 2010-06-17 Joel Brobecker <brobecker@adacore.com>
604 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
605 last local variable declaration. No real code change.
607 2010-06-17 Tom Tromey <tromey@redhat.com>
609 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
610 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
613 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
614 Jan Kratochvil <jan.kratochvil@redhat.com>
616 * breakpoint.c: Include parser-defs.h.
617 (watchpoint_exp_is_const): New function.
618 (watch_command_1): Call watchpoint_exp_is_const to check
619 if the expression is constant.
621 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
623 * configure.ac: Check for RDYNAMIC also for cross builds.
624 * configure: Regenerate.
626 2010-06-15 Pedro Alves <pedro@codesourcery.com>
628 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
629 (SFILES): Remove solib-null.c, add solib-target.c.
630 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
631 (ALLDEPFILES): Remove solib-target.c.
632 * solib-target.c (_initialize_solib_target): Set
633 current_target_so_ops to solib_target_so_ops if not already set.
634 * solib-null.c: Delete.
636 2010-06-14 Pedro Alves <pedro@codesourcery.com>
638 * NEWS: Mention GDBserver's JIT compilation of tracepoint
641 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
643 * cp-valprint.c (cp_print_static_field): Members of
644 dont_print_stat_array_obstack are of type "struct type *".
645 (_initialize_cp_valprint): Likewise.
647 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
649 * frame.c (frame_register_unwind): Do not access contents
650 of "optimized out" unwound register value.
652 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
654 * ada-lang.h (ada_print_type): Make varstring const.
655 * ada-typeprint.c (print_func_type): Make name const.
656 (ada_print_type): Make varstring const.
657 * c-lang.h (c_print_type): Make varstring const.
658 * c-typeprint.c (c_print_type): Likewise.
659 * f-lang.h (f_print_type): Likewise.
660 * f-typeprint.c (f_print_type): Likewise.
661 * jv-lang.h (java_print_type): Likewise.
662 * jv-typeprint.c (java_print_type): Likewise.
663 * language.c (unk_lang_print_type): Likewise.
664 * language.h (struct language_defn) <la_print_type>: Likewise.
665 * m2-lang.h (m2_print_type): Likewise.
666 * m2-typeprint.c (m2_print_type): Likewise.
667 * p-lang.h (pascal_print_type): Likewise.
668 * p-typeprint.c (pascal_print_type): Likewise.
670 2010-06-11 Stan Shebs <stan@codesourcery.com>
672 Add per-operation permission flags.
674 * target.h (struct target_ops): New method to_set_permissions.
675 (target_set_permissions): New macro.
676 (target_insert_breakpoint): Change macro to function.
677 (target_remove_breakpoint): Ditto.
678 (target_stop): Ditto.
679 (may_write_registers): Declare.
680 (may_write_memory): Declare.
681 (may_insert_breakpoints): Declare.
682 (may_insert_tracepoints): Declare.
683 (may_insert_fast_tracepoints): Declare.
685 * target.c (may_write_registers, may_write_registers_1): New globals.
686 (may_write_memory, may_write_memory_1): New globals.
687 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
688 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
689 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
691 (may_stop, may_stop_1): New global.
692 (target_xfer_partial): Test for write permission.
693 (target_store_registers): Ditto.
694 (target_insert_breakpoint): New function.
695 (target_remove_breakpoint): New function.
696 (target_stop): New function.
697 (_initialize_targets): Add new set/show variables.
698 (set_write_memory_permission): New function.
699 (update_target_permissions): New function.
700 (set_target_permissions): New function.
701 (update_current_target): Default to_set_permissions.
702 (_initialize_targets): Use new globals and setter function.
703 * tracepoint.c (start_tracing): Test for permission.
704 * inferior.h (update_observer_mode): Declare.
705 * infrun.c (non_stop_1): Define earlier.
706 (observer_mode, observer_mode_1): New globals.
707 (set_observer_mode, show_observer_mode): New functions.
708 (update_observer_mode): New function.
709 (_initialize_infrun): Define "set observer" command.
710 * remote.c (PACKET_QAllow): New optional packet.
711 (remote_protocol_features): Add QAllow.
712 (remote_set_permissions): New function.
713 (remote_start_remote): Call it.
714 (init_remote_ops): Add it to target vector.
715 (_initialize_remote): Add config command for QAllow.
717 2010-06-11 Tom Tromey <tromey@redhat.com>
719 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
720 DW_AT_vtable_elem_location even when GCC extension is seen.
722 2010-06-11 Tom Tromey <tromey@redhat.com>
724 PR gdb/9977, PR exp/11636:
725 * value.h (value_offset): Update.
726 (struct lval_funcs) <check_validity>: New field.
727 <copy_closure>: Make argument const.
728 (value_computed_closure): Update.
729 (value_contents_for_printing): Declare.
730 (value_bits_valid): Likewise.
731 (val_print): Likewise.
732 (set_value_component_location): Update.
733 (value_entirely_optimized_out): Declare.
734 * value.c (value_offset): Argument now const.
735 (require_not_optimized_out): New function.
736 (value_contents_for_printing): New function.
737 (value_contents_all): Call require_not_optimized_out.
738 (value_contents): Likewise.
739 (value_bits_valid): New function.
740 (value_computed_closure): Argument now const.
741 (set_value_component_location): Make 'whole' argument const.
742 (value_entirely_optimized_out): New function.
743 (value_bitsize): Argument now 'const'.
744 (value_bitpos): Likewise.
745 (value_type): Likewise.
746 * valprint.h (val_print_array_elements): Update.
747 * valprint.c (val_print): Add 'val' argument. Use
748 valprint_check_validity.
749 (valprint_check_validity): New function.
750 (value_check_printable): Use value_entirely_optimized_out.
751 (common_val_print): Update.
752 (value_print): Likewise.
753 (val_print_array_elements): Add 'val' argument.
754 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
755 value_bits_valid. Reinit frame cache for lval_computed.
756 * sh64-tdep.c (sh64_do_register): Update.
757 * scm-valprint.c (scm_val_print): Add 'val' argument.
758 * scm-lang.h (scm_val_print): Update.
759 * python/python.h (apply_val_pretty_printer): Update.
760 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
761 argument. Call set_value_component_location.
762 * printcmd.c (print_scalar_formatted): Update.
763 * p-valprint.c (pascal_val_print): Add 'val' argument.
764 (pascal_object_print_value_fields): Likewise.
765 (pascal_object_print_value): Likewise.
766 (pascal_object_print_static_field): Update.
767 * p-lang.h (pascal_val_print): Update.
768 (pascal_object_print_value_fields): Update.
769 * mt-tdep.c (mt_registers_info): Update.
770 * mi/mi-main.c (get_register): Update.
771 (mi_cmd_data_evaluate_expression): Use common_val_print.
772 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
773 (m2_print_unbounded_array): Likewise.
774 (m2_val_print): Likewise.
775 * m2-lang.h (m2_val_print): Update.
776 * language.h (struct language_defn) <la_val_print>: Add 'val'
778 (LA_VAL_PRINT): Likewise.
779 * language.c (unk_lang_val_print): Add 'val' argument.
780 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
781 (java_val_print): Likewise.
782 * jv-lang.h (java_val_print): Add 'val' argument.
783 * infcmd.c (default_print_registers_info): Update.
784 * f-valprint.c (f77_print_array_1): Add 'val' argument.
785 (f77_print_array): Likewise.
786 (f_val_print): Likewise.
787 * f-lang.h (f_val_print): Add 'val' argument.
788 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
790 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
791 set_value_optimized_out.
792 (write_pieced_value): Use value_bitsize and value_bitpos.
793 <default>: Don't exit loop.
794 (check_pieced_value_validity): New function.
795 (pieced_value_funcs): Reference check_pieced_value_validity,
796 check_pieced_value_invalid.
797 (copy_pieced_value_closure): Update.
798 (check_pieced_value_bits): New function.
799 (check_pieced_value_invalid): New function.
800 * d-valprint.c (dynamic_array_type): Add 'val' argument.
801 (d_val_print): Likewise.
802 * d-lang.h (d_val_print): Update.
803 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
804 (cp_print_value_fields_rtti): Likewise.
805 (cp_print_value): Likewise.
806 (cp_print_static_field): Update.
807 * c-valprint.c (c_val_print): Add 'val' argument.
808 (c_value_print): Update.
809 * c-lang.h (c_val_print): Update.
810 (cp_print_value_fields): Likewise.
811 (cp_print_value_fields_rtti): Likewise.
812 * ada-valprint.c (struct ada_val_print_args): Remove.
813 (val_print_packed_array_elements): Add 'val' argument.
814 (ada_val_print): Likewise. Rewrite.
815 (ada_val_print_stub): Remove.
816 (ada_val_print_array): Add 'val' argument.
817 (ada_val_print_1): Likewise.
818 (print_variant_part): Likewise.
819 (ada_value_print): Update.
820 (print_record): Add 'val' argument.
821 (print_field_values): Likewise.
822 * ada-lang.h (ada_val_print): Update.
824 2010-06-11 Tom Tromey <tromey@redhat.com>
826 * vec.h (VEC_cleanup): New macro.
827 (DEF_VEC_ALLOC_FUNC_I): Update.
828 (DEF_VEC_ALLOC_FUNC_P): Likewise.
829 (DEF_VEC_ALLOC_FUNC_O): Likewise.
830 * dwarf2loc.c (struct axs_var_loc): Remove.
831 (unimplemented): New function.
832 (translate_register): Likewise.
833 (access_memory): Likewise.
834 (compile_dwarf_to_ax): Likewise.
835 (dwarf2_tracepoint_var_loc): Remove.
836 (dwarf2_tracepoint_var_access): Likewise.
837 (dwarf2_tracepoint_var_ref): Likewise.
838 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
839 (loclist_tracepoint_var_ref): Likewise.
840 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
841 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
842 require_composition. No longer static.
843 (execute_stack_op): Update.
844 * ax-gdb.h (trace_kludge): Declare.
846 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
848 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
849 (should_be_inserted): Return zero also on NULL OWNER.
850 (breakpoint_program_space_exit): New OWNER comment.
851 (insert_breakpoint_locations): Extend comment for OWNER.
852 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
853 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
855 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
856 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
857 (bpstat_check_location): New assert on OWNER.
858 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
859 and B initializations to the code block. New assert on them.
860 (print_one_breakpoint_location): New OWNER comment.
861 (watchpoint_locations_match): Assert on OWNER.
862 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
863 initializations to the code block. New assert on OWNER.
864 (set_breakpoint_location_function): New assert on OWNER.
865 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
866 (bp_location_compare, update_global_location_list)
867 (update_global_location_list): New OWNER comment.
869 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
871 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
873 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
875 * config/nm-linux.h (struct target_ops): Remove forward declaration.
876 (lin_thread_get_thread_signals): Remove prototype.
877 (GET_THREAD_SIGNALS): Remove.
878 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
879 * linux-thread-db.c (check_thread_signals): Directly call
880 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
882 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
884 * gregset.h (GDB_FPXREGSET_T): Remove.
885 (gdb_fpxregset_t): Likewise.
886 (supply_fpxregset): Remove prototype.
887 (fill_fpxregset): Likewise.
888 * i386-linux-nat.c (supply_fpxregset): Remove.
889 (fill_fpxregset): Likewise.
890 (fetch_fpxregs): Inline supply_fpxregset call.
891 (store_fpxregs): Inline fill_fpxregset call.
893 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
894 * config/i386/nm-linux.h: Remove file.
896 2010-06-09 Michael Snyder <msnyder@vmware.com>
898 * target.c (update_current_target): Fix spelling error in comment.
899 (target_mourn_inferior): Fix spelling error in error message.
901 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
903 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
904 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
906 2010-06-08 Michael Snyder <msnyder@vmware.com>
908 * remote.c (remote_close): Set inferior_ptid to null_ptid.
910 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
912 * configure.ac <"${have_libpython}" != no>: New workaround of
914 * configure: Regenerate.
916 2010-06-08 Hui Zhu <teawater@gmail.com>
918 * record.c (record_wait): Move signal out of replay code.
920 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
923 * dwarf2-frame.c (no_dwarf_call): New function.
924 (execute_stack_op): Set CTX->DWARF_CALL.
925 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
926 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
927 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
928 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
929 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
930 (needs_frame_dwarf_call): New function.
931 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
932 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
933 Update the comment. Move variables die, offset and error call to ...
934 (follow_die_ref): ... a new function.
935 (dwarf2_fetch_die_location_block): New function.
936 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
938 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
940 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
941 (dwarf_expr_tls_address): Use per_cu instead of objfile.
942 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
943 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
945 (struct needs_frame_baton): New field per_cu.
946 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
947 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
949 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
951 * cp-support.c (make_symbol_overload_list_namespace): Only search
952 static and global blocks.
953 (make_symbol_overload_list_block): New function.
954 (make_symbol_overload_list): Separate namespace search from block
956 (make_symbol_overload_list_qualified): Use
957 make_symbol_overload_list_block.
959 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
961 * value.h: Created oload_search_type enum.
962 (find_overload_match): Use oload_search_type enum.
963 * valops.c (find_overload_match): Support combined member and
965 * eval.c (evaluate_subexp_standard): Calls to
966 find_overload_match now use oload_search_type enum.
967 (oload_method_static): Verify index is a proper value.
968 * valarith.c (value_user_defined_cpp_op): Search for and handle
969 both member and non-member operators.
970 (value_user_defined_cpp_op): New function.
971 (value_user_defined_op): New function.
972 (value_x_unop): Use value_user_defined_op.
973 (value_x_binop): Ditto.
974 * cp-support.c (make_symbol_overload_list_using): Added block
976 Add check for namespace aliases and imported declarations.
978 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
980 * breakpoint.h (owner): Extend the comment.
982 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
984 Clear stale specific bp_location from former whole breakpoint.
985 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
987 (free_bp_location): ... here. Rename there the called function to
988 bpstat_remove_bp_location_callback.
989 (bpstat_remove_breakpoint_callback): Rename to ...
990 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
991 to struct bp_location. Change the called function to
992 bpstat_remove_bp_location. Create new declaration for the function.
993 (bpstat_remove_breakpoint): Rename to ...
994 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
995 code for the new parameter type.
997 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
999 * README: Make version-agnostic.
1001 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1003 Fix duplicate types for single DIE.
1004 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
1006 (read_array_type): Remove type initialization. Recheck get_die_type
1007 after initial die_type. Move set_die_type before set_descriptive_type.
1008 (read_set_type): New variable domain_type. Recheck get_die_type after
1009 initial die_type. Move attr initialization later.
1010 (read_tag_pointer_type, read_tag_reference_type): New variable
1011 target_type. Recheck get_die_type after initial die_type.
1012 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
1013 die_type and die_containing_type.
1014 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
1015 Recheck get_die_type after initial die_type.
1016 (read_subrange_type): Recheck get_die_type after initial die_type.
1017 Move set_die_type before set_descriptive_type.
1018 (set_die_type): Extend the function comment. Call complaint if DIE has
1019 some type already set.
1021 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
1023 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
1024 for current naming of thread groups (iN, not N).
1026 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
1028 * ada-lang.c (ada_operator_length): Constify `struct expression'.
1029 * parse.c (operator_length): Likewise.
1030 (operator_length_standard): Likewise.
1031 * parser-defs.h (operator_length): Likewise.
1032 (operator_length_standard): Likewise.
1033 (struct exp_descriptor <operator_length>): Likewise.
1035 2010-06-04 Doug Evans <dje@google.com>
1037 Add support for enabling/disabling individual pretty-printers.
1038 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
1039 * python/python-internal.h (gdbpy_enabled_cst): Declare.
1040 * python/python.c (gdbpy_enabled_cst): Define.
1041 (_initialize_python): Initialize gdbpy_enabled_cst.
1044 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1046 * breakpoint.c (update_global_location_list): Fix comment typo.
1048 2010-06-04 Hui Zhu <teawater@gmail.com>
1050 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
1052 2010-06-03 Doug Evans <dje@google.com>
1054 * configure.ac: Don't fail if python is unusable when
1055 configured with --with-python=auto.
1056 * configure: Regenerate.
1058 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
1060 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
1062 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
1064 * valprint.h (get_array_bounds): Change low and high parameter types
1066 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
1068 (val_print_array_elements): Adapt to change above.
1069 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
1070 * p-valprint.c (pascal_val_print): Likewise.
1072 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1074 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
1075 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1078 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1080 Support DW_TAG_module as separate namespaces.
1081 * dwarf2read.c (typename_concat): New parameter physname.
1082 (read_module_type): New function and declaration.
1083 (scan_partial_symbols): Scan also DW_TAG_module children.
1084 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1085 to typename_concat backward compatible physname value 0.
1086 (partial_die_full_name, read_namespace_type): Pass to typename_concat
1087 backward compatible physname value 0.
1088 (add_partial_module, read_module): Remove FIXME comment.
1089 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
1090 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
1091 DIEs under DW_TAG_module.
1092 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1093 DW_AT_MIPS_linkage_name first, extend it for language_fortran
1094 && physname and return there instead of just setting NAME. Extend
1095 the main block for language_fortran. Pass physname parameter to the
1096 typename_concat call.
1097 (read_import_statement, read_func_scope, get_scope_pc_bounds)
1098 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1099 (new_symbol): Fill in cplus_specific.demangled_name if it is still
1100 missing from SYMBOL_SET_NAMES in the language_fortran case.
1101 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
1103 (read_type_die) <DW_TAG_module>: New.
1104 (MAX_SEP_LEN): Increase to 7.
1105 (typename_concat): New parameter physname. New variable lead. Support
1106 also language_fortran.
1107 * f-exp.y (yylex): Consider : also as a symbol name character class.
1108 * f-lang.c: Include cp-support.h.
1109 (f_word_break_characters, f_make_symbol_completion_list): New functions.
1110 (f_language_defn): Use cp_lookup_symbol_nonlocal,
1111 f_word_break_characters and f_make_symbol_completion_list.
1112 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
1113 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
1114 * symtab.c (symbol_init_language_specific): Support language_fortran.
1115 (symbol_find_demangled_name): New comment on language_fortran.
1116 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1117 for language_fortran.
1118 (lookup_symbol_aux_local): Check imports also for language_fortran.
1119 (default_make_symbol_completion_list): Rename to ...
1120 (default_make_symbol_completion_list_break_on): ... this name. New
1121 parameter break_on, use it.
1122 (default_make_symbol_completion_list): New stub.
1123 * symtab.h (default_make_symbol_completion_list_break_on): New
1126 2010-06-02 Joel Brobecker <brobecker@adacore.com>
1128 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1131 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1133 * dwarf2read.c (typename_concat): Add const to the variable sep.
1135 2010-06-02 Tom Tromey <tromey@redhat.com>
1137 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1138 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
1139 type is const. Add 'def' argument. Add missing operators, remove
1141 (decode_locdesc): Update.
1142 (dwarf2_always_disassemble): New global.
1143 (show_dwarf2_always_disassemble): New function.
1144 (_initialize_dwarf2_read): Add always-disassemble.
1145 (dwarf2_per_cu_offset_size): New function.
1146 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1147 (piece_end_p): New function.
1148 (locexpr_describe_location_piece): Replace 'size' argument with
1149 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
1150 some constants. Remove errors.
1151 (disassemble_dwarf_expression): New function.
1152 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1153 Add 'offset_size' argument.
1154 (loclist_describe_location): Change output formatting.
1155 * dwarf2expr.h (dwarf_stack_op_name): Declare.
1157 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
1159 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1160 anonymous type case.
1162 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
1164 * dwarf2read.c (read_subrange_type): Handle missing base type
1165 according to Dwarf-2 specifications.
1167 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
1169 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1171 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1172 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1173 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1174 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1175 UNOP_CHMAX, UNOP_CHMIN.
1176 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
1177 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1178 UNOP_CHMIN>: Remove opcodes.
1180 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
1182 * dwarf2read.c (read_func_scope): Do not complain for
1183 external function if bounds are not found.
1185 2010-06-01 Pedro Alves <pedro@codesourcery.com>
1187 * NEWS: Mention gdbserver fast tracepoints support.
1189 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
1191 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1193 (windows_set_console_info): New function.
1194 (windows_create_inferior): Call windows_set_console_info
1195 if NEW_CONSOLE is true.
1196 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1197 (_initialize_loadable): Initialize GetConsoleFontSize and
1198 GetCurrentConsoleFont.
1200 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1202 * Makefile.in (RDYNAMIC): New.
1203 (SFILES): Add proc-service.list.
1204 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1205 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1206 * config/arm/linux.mh: Likewise.
1207 * config/i386/linux.mh: Likewise.
1208 * config/i386/linux64.mh: Likewise.
1209 * config/ia64/linux.mh: Likewise.
1210 * config/m32r/linux.mh: Likewise.
1211 * config/m68k/linux.mh: Likewise.
1212 * config/mips/linux.mh: Likewise.
1213 * config/pa/linux.mh: Likewise.
1214 * config/powerpc/linux.mh: Likewise.
1215 * config/powerpc/ppc64-linux.mh: Likewise.
1216 * config/s390/s390.mh: Likewise.
1217 * config/sparc/linux.mh: Likewise.
1218 * config/sparc/linux64.mh: Likewise.
1219 * config/xtensa/linux.mh: Likewise.
1220 * configure.ac: New RDYNAMIC on native host and GCC.
1221 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1222 * configure: Regenerate.
1223 * proc-service.list: New.
1225 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1227 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1230 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1232 * linux-nat.c (linux_nat_wait_1): Do not call
1233 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1234 TARGET_WAITKIND_SIGNALLED.
1236 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1238 * ada-lang.c (ada_inferior_data): New struct.
1239 (ada_inferior_data): New static global.
1240 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1241 (ada_get_tsd_type): New functions.
1242 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1243 to look the tsd type up.
1244 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1245 event. Set ada_inferior_data.
1247 2010-05-27 Pedro Alves <pedro@codesourcery.com>
1249 * remote.c (unpack_varlen_hex): Remove forward declaration.
1250 (remote_console_output): Make static, and add forward declaration.
1251 * remote.h: Drop FIXME comment.
1252 (unpack_varlen_hex): Declare.
1253 (remote_console_output, remote_cisco_objfile_relocate)
1254 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1255 Delete declarations.
1256 * tracepoint.c: Include "remote.h".
1257 (unpack_varlen_hex): Delete declaration.
1259 2010-05-27 Tom Tromey <tromey@redhat.com>
1261 * dwarf2loc.c (struct piece_closure) <refc>: New field.
1262 (allocate_piece_closure): Initialize refc.
1263 (copy_pieced_value_closure): Use refc.
1264 (free_pieced_value_closure): Likewise.
1266 2010-05-27 Tom Tromey <tromey@redhat.com>
1268 * arm-tdep.c (push_stack_item): 'contents' now const.
1269 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
1270 value_contents_writeable. Introduce new temporary.
1272 2010-05-27 Tom Tromey <tromey@redhat.com>
1274 * findcmd.c (parse_find_args): Use value_contents, not
1277 2010-05-27 Tom Tromey <tromey@redhat.com>
1279 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1280 const. Use value_contents, not value_contents_writeable.
1282 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1284 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1285 by call to value_contents.
1287 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1289 * MAINTAINERS: Add myself for write after approval privileges.
1291 2010-05-26 Doug Evans <dje@google.com>
1293 Allow python to find its files if moved from original location.
1294 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1295 (GDB_AC_WITH_DIR): Call it.
1296 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1297 python installation directory.
1298 * config.in: Regenerate.
1299 * configure: Regenerate.
1300 * defs.h (python_libdir): Declare.
1301 * main.c (python_libdir): Define.
1302 (captured_main): Initialize python_libdir.
1303 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1304 call Py_SetProgramName to make sure python can find its libraries
1307 * configure.ac: Try to use python's distutils to fetch compilation
1309 * configure: Regenerate.
1310 * python/python-config.py: New file.
1312 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1314 * ser-tcp.c (net_open): Check error return from socket() call by its
1315 equality to -1 not by it being negative.
1316 (net_close): Likewise.
1318 2010-05-26 Pedro Alves <pedro@codesourcery.com>
1320 * NEWS: Mention the `qRelocInsn' feature.
1321 * gdbarch.sh (relocate_instruction): New.
1322 * amd64-tdep.c (rip_relative_offset): New.
1323 (append_insns): New.
1324 (amd64_relocate_instruction): New.
1325 (amd64_init_abi): Install it.
1326 * i386-tdep.c (append_insns): New.
1327 (i386_relocate_instruction): New.
1328 (i386_gdbarch_init): Install it.
1329 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1330 * gdbarch.h, gdbarch.c: Regenerate.
1332 2010-05-26 Tom Tromey <tromey@redhat.com>
1334 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1335 (struct dwarf2_loclist_baton) <data>: Likewise.
1336 * dwarf2loc.c (find_location_expression): Constify return type.
1337 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1338 (dwarf2_loc_desc_needs_frame): Likewise.
1339 (loclist_read_variable): Constify.
1340 (loclist_describe_location): Likewise.
1341 (loclist_tracepoint_var_ref): Likewise.
1343 2010-05-25 Tom Tromey <tromey@redhat.com>
1345 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1346 (dwarf_expr_frame_base_1): Likewise.
1347 (read_pieced_value): Update.
1348 (needs_frame_frame_base): Constify.
1349 (dwarf2_tracepoint_var_loc): Likewise.
1350 (dwarf2_tracepoint_var_access): Likewise.
1351 (locexpr_describe_location_piece): Likewise.
1352 (locexpr_describe_location_1): Likewise.
1353 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1356 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1357 (dwarf_expr_eval, read_uleb128, read_sleb128)
1358 (dwarf2_read_address): Update.
1359 * dwarf2expr.c (dwarf_expr_eval): Constify.
1360 (read_uleb128): Likewise.
1361 (read_sleb128): Likewise.
1362 (dwarf2_read_address): Likewise.
1363 (require_composition): Likewise.
1364 (execute_stack_op): Likewise.
1365 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1367 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1369 (no_get_frame_base): Constify.
1370 (execute_stack_op): Likewise.
1371 (execute_cfa_program): Likewise.
1372 (read_encoded_value): Likewise.
1374 2010-05-25 Doug Evans <dje@google.com>
1376 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1378 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1379 * event-loop.c: ... here.
1380 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1381 `error' for clarity.
1382 (tui_getc): Pass correct value for `error' parameter to
1383 tui_readline_output.
1385 Add python gdb.GdbError and gdb.string_to_argv.
1386 * NEWS: Document them.
1387 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1388 the exception is gdb.GdbError. Print a second traceback if there's
1389 an error computing the error message.
1390 (gdbpy_string_to_argv): New function.
1391 * python/py-utils.c (gdbpy_obj_to_string): New function.
1392 (gdbpy_exception_to_string): New function.
1393 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1394 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1395 (gdbpy_gdberror_exc): Declare.
1396 * python/python.c (gdbpy_gdberror_exc): New global.
1397 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1399 (GdbMethods): Add string_to_argv.
1401 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1403 * windows-nat.c (display_selector): Call GetLastError to give better
1404 failure explanation.
1406 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1408 * config.in: Regenerate.
1410 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1413 * target.c (push_target): Return only void. Remove the return value
1415 * target.h (push_target): Return only void.
1417 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1419 Update gnulib from latest git.
1420 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1422 * gnulib/memcmp.c: Removed.
1423 * gnulib/memchr.valgrind: New.
1424 * gnulib/stddef.in.h: New.
1425 * gnulib/Makefile.am: Updated.
1426 * gnulib/memchr.c: Updated.
1427 * gnulib/memmem.c: Updated.
1428 * gnulib/stdint.in.h: Updated.
1429 * gnulib/str-two-way.h: Updated.
1430 * gnulib/string.in.h: Updated.
1431 * gnulib/wchar.in.h: Updated.
1433 * gnulib/extra/link-warning.h: Removed.
1434 * gnulib/extra/c++defs.h: New.
1435 * gnulib/extra/warn-on-use.h: New.
1436 * gnulib/extra/arg-nonnull.h: Updated.
1438 * gnulib/m4/extensions.m4: Updated.
1439 * gnulib/m4/gnulib-cache.m4: Updated.
1440 * gnulib/m4/gnulib-common.m4: Updated.
1441 * gnulib/m4/gnulib-comp.m4: Updated.
1442 * gnulib/m4/gnulib-tool.m4: Updated.
1443 * gnulib/m4/include_next.m4: Updated.
1444 * gnulib/m4/longlong.m4: Updated.
1445 * gnulib/m4/memchr.m4: Updated.
1446 * gnulib/m4/memmem.m4: Updated.
1447 * gnulib/m4/stdint.m4: Updated.
1448 * gnulib/m4/string_h.m4: Updated.
1449 * gnulib/m4/memcmp.m4: Removed.
1450 * gnulib/m4/onceonly_2_57.m4: Removed.
1451 * gnulib/m4/00gnulib.m4: New.
1452 * gnulib/m4/mmap-anon.m4: New.
1453 * gnulib/m4/multiarch.m4: New.
1454 * gnulib/m4/onceonly.m4: New.
1455 * gnulib/m4/stddef_h.m4: New.
1456 * gnulib/m4/warn-on-use.m4: New.
1457 * gnulib/m4/wchar.m4: Removed.
1458 * gnulib/m4/wchar_h.m4: New.
1459 * gnulib/m4/wchar_t.m4: New.
1460 * gnulib/m4/wint_t.m4: New.
1462 * aclocal.m4: Regenerate.
1463 * config.in: Likewise.
1464 * configure: Likewise.
1465 * gnulib/Makefile.in: Likewise.
1467 2010-05-21 Tom Tromey <tromey@redhat.com>
1469 * dwarf2loc.c (extract_bits_primitive): New function.
1470 (extract_bits): Likewise.
1471 (insert_bits): Likewise.
1472 (copy_bitwise): Likewise.
1473 (read_pieced_value): Do all operations in bits.
1474 (write_pieced_value): Likewise.
1475 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1476 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1477 Always use xrealloc to resize piece array.
1478 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1479 <DW_OP_piece>: Update.
1480 <DW_OP_bit_piece>: New case.
1482 2010-05-21 Tom Tromey <tromey@redhat.com>
1484 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1485 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1486 * dwarf2expr.h (enum dwarf_value_location)
1487 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1488 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1489 (add_piece): Handle empty piece.
1490 (execute_stack_op) <DW_OP_piece>: Handle
1491 DWARF_VALUE_OPTIMIZED_OUT.
1493 2010-05-21 Tom Tromey <tromey@redhat.com>
1495 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1496 evaluate_subexp, not evaluate_subexp_with_coercion.
1498 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1500 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1503 2010-05-21 Tom Tromey <tromey@redhat.com>
1505 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1507 (write_pieced_value): Likewise.
1509 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1511 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1512 and DW_TAG_volatile_type.
1513 (new_symbol): Likewise.
1515 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1517 * p-valprint.c (pascal_val_print): Call get_array_bounds
1518 to obtain the number of elements in an array.
1520 2010-05-19 Doug Evans <dje@google.com>
1522 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1524 * python.c (source_python_script): Add comment.
1525 (source_python_script_for_objfile): Remove unnecessary call to
1528 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1529 Sergio Durigan Junior <sergiodj@redhat.com>
1532 * parse.c (exp_iterate): Use operator_length wrapper function.
1534 2010-05-18 Michael Snyder <msnyder@vmware.com>
1536 * ada-lang.c: White space.
1537 * ada-typeprint.c: White space.
1538 * ada-valprint.c: White space.
1539 * addrmap.c: White space.
1540 * auxv.c: White space.
1541 * ax-gdb.c: White space.
1543 2010-05-18 Hui Zhu <teawater@gmail.com>
1545 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1547 (inferior_call_waitpid): Move make_cleanup out of check.
1548 Check the return of waitpid.
1549 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1551 2010-05-17 Michael Snyder <msnyder@vmware.com>
1553 * tui/tui.c: White space.
1554 * tui/tui-data.c: White space.
1555 * tui/tui-disasm.c: White space.
1556 * tui/tui-file.c: White space.
1557 * tui/tui-interp.c: White space.
1558 * tui/tui-main.c: White space.
1559 * tui/tui-out.c: White space.
1560 * tui/tui-regs.c: White space.
1561 * tui/tui-source.c: White space.
1562 * tui/tui-stack.c: White space.
1563 * tui/tui-win.c: White space.
1564 * tui/tui-winsource.c: White space.
1566 * procfs.c: White space.
1568 * python/py-auto-load.c: White space.
1569 * python/py-block.c: White space.
1570 * python/py-breakpoint.c: White space.
1571 * python/py-cmd.c: White space.
1572 * python/py-function.c: White space.
1573 * python/py-lazy-string.c: White space.
1574 * python/py-objfile.c: White space.
1575 * python/py-param.c: White space.
1576 * python/py-prettyprint.c: White space.
1577 * python/py-progspace.c: White space.
1578 * python/py-symtab.c: White space.
1579 * python/python.c: White space.
1580 * python/py-type.c: White space.
1581 * python/py-utils.c: White space.
1582 * python/py-value.c: White space.
1584 * mi/mi-cmd-break.c: White space.
1585 * mi/mi-cmd-env.c: White space.
1586 * mi/mi-cmds.c: White space.
1587 * mi/mi-cmd-stack.c: White space.
1588 * mi/mi-cmd-var.c: White space.
1589 * mi/mi-console.c: White space.
1590 * mi/mi-getopt.c: White space.
1591 * mi/mi-interp.c: White space.
1592 * mi/mi-main.c: White space.
1593 * mi/mi-out.c: White space.
1594 * mi/mi-parse.c: White space.
1596 * cli/cli-cmds.c: White space.
1597 * cli/cli-decode.c: White space.
1598 * cli/cli-dump.c: White space.
1599 * cli/cli-interp.c: White space.
1600 * cli/cli-logging.c: White space.
1601 * cli/cli-script.c: White space.
1602 * cli/cli-setshow.c: White space.
1604 * valarith.c: White space.
1605 * valops.c: White space.
1606 * valprint.c: White space.
1607 * value.c: White space.
1608 * varobj.c: White space.
1609 * xcoffread.c: White space.
1610 * xml-support.c: White space.
1611 * xml-tdesc.c: White space.
1613 2010-05-17 Andreas Schwab <schwab@redhat.com>
1616 * c-lang.c (c_printstr): Compute real length of NUL terminated
1619 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1621 * parse.c (parse_exp_in_context): When block is not NULL, use
1622 its associated language to parse the expression instead of
1623 the current_language.
1625 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1627 * jv-lang.c (java_lookup_class): Remove commented out code.
1628 (type_from_class): Likewise.
1629 (java_op_print_tab): Remove commented-out elements.
1631 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1633 * ada-lang.c (to_fixed_range_type): The the raw index type as
1634 argument instead of the raw type name. Remove orig_type parameter.
1635 Update calls throughout.
1636 (ada_fixup_array_indexes_type): New function.
1637 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1638 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1639 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1640 Remove name parameter.
1641 (print_array_type): Add call to ada_fixup_array_indexes_type.
1642 Update calls to print_range_type.
1643 (ada_print_type): Update calls to print_range_type.
1645 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1647 * dwarf2read.c (read_set_type): Set type length if
1648 DW_AT_byte_size attribute is present.
1650 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1652 * p-valprint.c (pascal_val_print): Handle set type if range limits
1653 are undefined but size is known.
1655 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1657 * procfs.c: Reformat.
1659 2010-05-16 Michael Snyder <msnyder@vmware.com>
1661 * target.c: White space.
1662 * target-descriptions.c: White space.
1663 * target-memory.c: White space.
1664 * thread.c: White space.
1665 * top.c: White space.
1666 * tracepoint.c: White space.
1667 * trad-frame.c: White space.
1668 * tramp-frame.c: White space.
1669 * ui-file.c: White space.
1670 * ui-out.c: White space.
1671 * user-regs.c: White space.
1672 * utils.c: White space.
1674 * scm-exp.c: White space.
1675 * scm-lang.c: White space.
1676 * scm-valprint.c: White space.
1677 * sentinel-frame.c: White space.
1678 * ser-base.c: White space.
1679 * ser-go32.c: White space.
1680 * serial.c: White space.
1681 * ser-mingw.c: White space.
1682 * ser-pipe.c: White space.
1683 * ser-tcp.c: White space.
1684 * ser-unix.c: White space.
1685 * solib.c: White space.
1686 * solib-darwin.c: White space.
1687 * solib-frv.c: White space.
1688 * solib-irix.c: White space.
1689 * solib-osf.c: White space.
1690 * solib-pa64.c: White space.
1691 * solib-som.c: White space.
1692 * solib-spu.c: White space.
1693 * solib-svr4.c: White space.
1694 * solib-target.c: White space.
1695 * source.c: White space.
1696 * stabsread.c: White space.
1697 * stack.c: White space.
1698 * std-regs.c: White space.
1699 * symfile.c: White space.
1700 * symmisc.c: White space.
1701 * symtab.c: White space.
1703 2010-05-16 Michael Snyder <msnyder@vmware.com>
1705 * source.c (_initialize_source): Add "rev" as an abbreviation
1706 for the "reverse-search" command.
1708 2010-05-16 Michael Snyder <msnyder@vmware.com>
1710 * record.c: White space.
1711 * regcache.c: White space.
1712 * reggroups.c: White space.
1713 * remote-fileio.c: White space.
1714 * remote-m32r-sdi.c: White space.
1715 * remote-mips.c: White space.
1716 * remote-sim.c: White space.
1717 * remote.c: White space.
1718 (process_g_packet): Remove orphan braces.
1720 2010-05-15 Michael Snyder <msnyder@vmware.com>
1722 * parse.c: White space.
1723 * p-lang.c: White space.
1724 * posix-hdep.c: White space.
1725 * printcmd.c: White space.
1726 * progspace.c: White space.
1727 * prologue-value.c: White space.
1728 * psymtab.c: White space.
1729 * p-typeprint.c: White space.
1730 * p-valprint.c: White space.
1732 * objc-lang.c: White space.
1733 * objfiles.c: White space.
1734 * observer.c: White space.
1735 * osabi.c: White space.
1736 * osdata.c: White space.
1738 * m2-lang.c: White space.
1739 * m2-valprint.c: White space.
1740 * macrocmd.c: White space.
1741 * macroexp.c: White space.
1742 * macroscope.c: White space.
1743 * macrotab.c: White space.
1744 * main.c: White space.
1745 * maint.c: White space.
1746 * mdebugread.c: White space.
1747 * memattr.c: White space.
1748 * minsyms.c: White space.
1749 * monitor.c: White space.
1751 2010-05-14 Michael Snyder <msnyder@vmware.com>
1753 * jv-lang.c: White space.
1754 * jv-typeprint.c: White space.
1755 * jv-valprint.c: White space.
1756 * language.c: White space.
1757 * libunwind-frame.c: White space.
1758 * linespec.c: White space.
1759 * linux-nat.c: White space.
1760 * linux-record.c: White space.
1761 * linux-thread-db.c: White space.
1763 * infcall.c: White space.
1764 * inf-child.c: White space.
1765 * infcmd.c: White space.
1766 * inferior.c: White space.
1767 * inf-loop.c: White space.
1768 * inflow.c: White space.
1769 * inline-frame.c: White space.
1770 * interps.c: White space.
1772 * gcore.c: White space.
1773 * gdb.c: White space.
1774 * gdbtypes.c: White space.
1775 * gnu-nat.c: White space.
1776 * gnu-v2-abi.c: White space.
1777 * gnu-v3-abi.c: White space.
1779 * findcmd.c: White space.
1780 * findvar.c: White space.
1781 * fork-child.c: White space.
1782 * frame-base.c: White space.
1783 * frame.c: White space.
1784 * frame-unwind.c: White space.
1785 * f-valprint.c: White space.
1787 * elfread.c: White space.
1788 * environ.c: White space.
1789 * eval.c: White space.
1790 * event-loop.c: White space.
1791 * event-top.c: White space.
1792 * exceptions.c: White space.
1793 * exec.c: White space.
1794 * expprint.c: White space.
1796 * dbxread.c: White space.
1797 * dcache.c: White space.
1798 * disasm.c: White space.
1799 * doublest.c: White space.
1800 * dsrec.c: White space.
1801 * dummy-frame.c: White space.
1802 * dwarf2expr.c: White space.
1803 * dwarf2-frame.c: White space.
1804 * dwarf2loc.c: White space.
1805 * dwarf2read.c: White space.
1807 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1811 * python/py-value.c (valpy_hash): New function.
1812 (value_object_type): Register valpy_hash.
1814 2010-05-14 Hui Zhu <teawater@gmail.com>
1815 Michael Snyder <msnyder@vmware.com>
1817 * linux-fork.c (gdbthread.h): New include.
1818 (fork_info): Add parent_ptid.
1819 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1821 (delete_checkpoint_command): Call inferior_call_waitpid.
1822 (checkpoint_command): Set parent_ptid.
1824 2010-05-13 Michael Snyder <msnyder@vmware.com>
1826 * dictionary.c: Re-indent to GNU coding standard.
1828 * charset.c: White space.
1829 * c-lang.c: White space.
1830 * cli-out.c: White space.
1831 * coffread.c: White space.
1832 * complaints.c: White space.
1833 * completer.c: White space.
1834 * corefile.c: White space.
1835 * corelow.c: White space.
1836 * cp-abi.c: White space.
1837 * cp-namespace.c: White space.
1838 * cp-support.c: White space.
1839 * cp-valprint.c: White space.
1840 * c-typeprint.c: White space.
1841 * c-valprint.c: White space.
1842 * blockframe.c: White space.
1843 * breakpoint.c: White space.
1844 * buildsym.c: White space.
1845 * blockframe.c: White space.
1846 * bcache.c: White space.
1847 * gdbarch.sh: White space, add blank lines.
1848 * arch-utils.c: Ditto.
1849 * gdbarch.c: Regenerate.
1850 * frame.c: White space, add blank lines.
1851 * stack.c: White space, add blank lines.
1852 (initialize_stack): Remove long-dead code.
1854 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1857 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1858 (locexpr_read_variable, loclist_read_variable): Update the callers.
1860 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1863 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1864 Remove check of NULL returned by tag_type_to_type.
1865 (die_containing_type): Remove variable type. Remove type_die variable
1866 initialization. Remove check of NULL returned by tag_type_to_type.
1868 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1871 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1872 names of unnamed structures or unions.
1874 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1876 * procfs.c (proc_watchpoint_address): New function.
1877 (procfs_stopped_by_watchpoint): Remove useless check after
1878 find_procinfo_or_die call.
1879 (procfs_stopped_data_address): New function.
1880 (procfs_use_watchpoints): Register new watchpoint related function.
1882 2010-05-11 Tom Tromey <tromey@redhat.com>
1884 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1886 2010-05-10 Michael Snyder <msnyder@vmware.com>
1888 * utils.c: White space cleanup.
1890 2010-05-10 Tom Tromey <tromey@redhat.com>
1892 * eval.c (ptrmath_type_p): Add 'lang' argument.
1893 (evaluate_subexp_standard): Update.
1894 (evaluate_subexp_with_coercion): Update.
1895 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1897 2010-05-10 Michael Snyder <msnyder@vmware.com>
1899 * utils.c (do_fclose_cleanup) Restore local variable.
1901 2010-05-09 Doug Evans <dje@google.com>
1903 * record.c (init_record_core_ops): Rename record_core to record-core.
1905 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1907 Implement task switching on pa-hpux.
1908 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1909 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1911 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1913 * valops.c (find_overload_match): Add missing i18n markup.
1915 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1917 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1919 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1921 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1922 list for the obconcat call.
1923 * mdebugread.c (parse_symbol): Likewise.
1924 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1926 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1927 New variable ap. Remove variables len and val.
1928 * symfile.h (obconcat): Likewise for the prototype.
1930 2010-05-07 Michael Snyder <msnyder@vmware.com>
1932 * python/python.c (execute_gdb_command): Remove unused variables.
1933 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1934 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1935 Remove unused variable.
1936 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1937 (cmdpy_completer): Remove unused variable.
1938 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1939 * python/py-function.c (fnpy_call): Remove unused variable.
1940 * python/py-objfile.c (objfile_to_objfile_object):
1941 Remove unused variable.
1942 * python/py-param.c (parmpy_init): Remove unused variable.
1943 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1944 Remove unused variable.
1945 (gdbpy_default_visualizer): Remove unused variable.
1946 * python/py-progspace.c (pspace_to_pspace_object):
1947 Remove unused variable.
1948 * python/py-symtab.c (symtab_and_line_to_sal_object):
1949 Remove unused variable.
1950 * python/py-type.c (typy_template_argument):
1951 Remove unused variable.
1952 * python/py-value.c (valpy_string): Remove unused variable.
1953 (convert_value_from_python): Remove unused variables.
1955 2010-05-07 Michael Snyder <msnyder@vmware.com>
1957 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1958 and use it to compute variable 't1'.
1960 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1962 * ada-lang.c (assign_aggregate): Remove unused variable.
1964 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1967 * valops.c (find_overload_match): Handle fsym == NULL case.
1968 Add int no_adl argument.
1969 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1971 Add int no_adl argument.
1972 (find_oload_champ_namespace): Add int no_adl argument.
1973 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1975 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1976 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1977 Evaluate arguments and use them to perform ADL lookup.
1978 Pass no_adl argument to find_overload_match.
1979 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1980 * cp-support.h: Added prototype for
1981 make_symbol_overload_list_namespace.
1982 * cp-support.c (make_symbol_overload_list_namespace): New function.
1983 (make_symbol_overload_list_adl_namespace): New function.
1984 (make_symbol_overload_list_adl): New function.
1985 (make_symbol_overload_list_using): Moved code to add function to
1986 overload set to make_symbol_overload_list_namespace.
1987 * c-exp.y: create UNKNOWN_CPP_NAME token.
1988 Add parse rule for ADL functions.
1989 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1991 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1993 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1996 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1998 Implement task switching on solaris targets.
1999 * sol-thread.c (thread_db_find_thread_from_tid)
2000 (sol_get_ada_task_ptid): New functions.
2001 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
2003 2010-05-07 Pedro Alves <pedro@codesourcery.com>
2005 * remote.c (remote_query_supported_append): Use reconcat.
2006 (remote_query_supported): Install a cleanup. Use reconcat.
2008 2010-05-07 Pedro Alves <pedro@codesourcery.com>
2010 * gdbarch.sh (qsupported): Delete.
2011 * gdbarch.h, gdbarch.c: Regenerate.
2012 * remote.c (remote_query_supported): Remove use of
2015 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2017 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
2020 2010-05-06 Michael Snyder <msnyder@vmware.com>
2022 * xml-support.c (xinclude_start_include): Delete unused variable.
2023 (xml_process_xincludes): Delete unused variable.
2024 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
2025 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
2026 (tdesc_find_arch_register): Delete unused variable.
2027 (tdesc_use_registers): Delete unused variable.
2028 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
2029 * inferior.c (print_inferior): Delete unused variable.
2030 * record.c (record_open_1): Delete unused variable.
2031 (record_restore): Delete unused variable.
2032 (cmd_record_save): Delete unused variable.
2033 * gcore.c (derive_heap_segment): Delete unused variable.
2034 (objfile_find_memory_regions): Use unused variable.
2035 * jit.c (jit_inferior_init): Delete unused variable.
2036 * progspace.c (clone_program_space): Delete unused variable.
2037 (pspace_empty_p): Delete unused variable.
2039 * frame-unwind.c (frame_unwind_find_by_frame):
2040 Delete unused variable.
2041 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
2042 * cp-support.c (mangled_name_to_comp): Delete unused variable.
2043 (method_name_from_physname): Delete unused variable.
2044 (cp_func_name): Delete unused variable.
2045 (cp_validate_operator): Delete unused variable.
2046 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
2047 Delete unused variable.
2048 * trad-frame.c (trad_frame_get_prev_register):
2049 Delete unused variable.
2050 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
2052 * serial.c (serial_for_fd): Delete unused variable.
2053 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
2054 * top.c (execute_command): Delete unused variable.
2055 (init_main): Delete unused variable.
2056 * utils.c (do_fclose_cleanup): Delete unused variable.
2057 (do_all_inferior_continuations): Delete unused variable.
2058 (initialize_utils): Delete unused variable.
2059 (internal_problem_mode): Delete unused global.
2060 * frame.c (get_prev_frame): Delete unused global.
2061 (get_frame_locals_address): Delete unused global.
2062 (get_frame_args_address): Delete unused global.
2064 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
2065 (pascal_type_print_varspec_prefix): Delete unused variable.
2066 * f-typeprint.c (f_type_print_base): Delete unused variable.
2067 (f_type_print_varspec_suffix): Delete unused variable.
2068 * m2-typeprint.c (m2_print_type): Delete unused variable.
2069 (m2_long_set): Delete unused variable.
2070 * ada-valprint.c (ada_val_print_1): Delete unused variable.
2071 * d-valprint.c (dynamic_array_type): Delete unused variable.
2072 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
2073 Delete unused variable.
2074 (f77_create_arrayprint_offset_tbl): Delete unused variable.
2075 * m2-valprint.c (m2_val_print): Delete unused variable.
2077 * ui-out.c (ui_out_field_int): Delete unused variable.
2078 (ui_out_field_fmt_int): Delete unused variable.
2079 * varobj.c (varobj_list_children): Delete unused variable.
2080 (varobj_set_value): Delete unused variable.
2081 (install_new_value_visualizer): Delete unused variable.
2082 (varobj_set_visualizer): Delete unused variable.
2083 (varobj_update): Delete unused variable.
2084 (varobj_editable_p): Delete unused variable.
2085 (c_value_of_root): Delete unused variable.
2086 (cplus_describe_child): Delete unused variable.
2088 * ada-lang.c (add_defn_to_vec): Delete unused variable.
2089 (decode_constrained_packed_array_type): Delete unused variable.
2090 (add_defn_to_vec): Delete unused variable.
2091 (symbol_completion_match): Delete unused variable.
2092 (value_tag_from_contents_and_address): Delete unused variable.
2093 (ada_evaluate_subexp): Delete unused variable.
2094 * c-lang.c (classify_type): Delete unused variable.
2095 * f-lang.c (f_printstr): Delete unused variable.
2096 * objc-lang.c (objc_printstr): Delete unused variable.
2097 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2098 * jv-lang.c (type_from_class): ifdef unused variable.
2099 (java_class_name_from_physname): Delete unused variable.
2100 * m2-lang.c (m2_printstr): Delete unused variable.
2102 * objfiles.c (objfile_relocate): Delete unused variable.
2103 * maint.c (_initialize_maint_cmds): Delete unused variable.
2104 * demangle.c (_initialize_demangler): Delete unused variable.
2105 * corefile.c (reopen_exec_file): Delete unused variable.
2106 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2107 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2109 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2110 * memattr.c (mem_delete): Delete unused variable.
2111 (invalidate_target_mem_regions): Delete unused variable.
2112 * mem-break.c (default_memory_insert_breakpoint):
2113 Delete unused variable.
2114 * target.c (target_get_osdata): Delete unused variable.
2115 * parse.c (length_of_subexp): Delete unused variable.
2116 (prefixify_subexp): Delete unused variable.
2117 (exp_iterate): Delete unused variable.
2118 * reverse.c (delete_bookmark_command): Delete unused variable.
2120 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2121 * macroexp.c (gather_arguments): Delete unused variable.
2122 (substitute_args): Delete unused variable.
2123 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2124 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2125 (_initialize_gdbarch): Delete unused variable.
2126 * gdbarch.c, gdbarch.h: Regenerate.
2127 * arch-utils.c (initialize_current_architecture):
2128 Delete unused variable.
2129 (_initialize_gdbarch_utils): Delete unused variable.
2130 * gdbtypes.c (make_cv_type): Delete unused variable.
2131 (make_type_with_address_space): Delete unused variable.
2133 * linespec.c (decode_compound): Delete unused variable.
2134 * dictionary.c (iterator_next_hashed): Delete unused variable.
2135 * infcall.c (call_function_by_hand): Delete unused variable.
2136 * infcmd.c (step_1): Delete unused variable.
2137 (registers_info): Delete unused variable.
2138 (attach_command): Delete unused variable.
2139 * infrun.c (follow_exec): Delete unused variable.
2140 (handle_step_into_function_backwards): Delete unused variable.
2141 (_initialize_infrun): Delete unused variable.
2142 * stack.c (parse_frame_specification_1): Delete unused variable.
2143 (frame_info): Delete unused variable.
2144 (backtrace_command_1): Delete unused variable.
2145 (catch_info): Delete unused variable.
2147 * eval.c (evaluate_subexp_standard): Delete unused variable.
2148 * valops.c (value_cast_pointers): Delete unused variable.
2149 (value_dynamic_cast): Delete unused variable.
2150 (value_array): Delete unused variable.
2151 (find_overload_match): Delete unused variable.
2152 * valarith.c (value_subscript): Delete unused variable.
2153 (value_binop): Delete unused variable.
2154 * valprint.c (_initialize_valprint): Delete unused variable.
2155 * printcmd.c (print_command_1): Delete unused variable.
2156 (address_info): Delete unused variable.
2157 (printf_command): Delete unused variable.
2159 * auxv.c (target_auxv_search): Delete unused variable.
2160 * blockframe.c (get_frame_block): Delete unused variable.
2161 * regcache.c (regcache_cpy): Delete unused variable.
2162 (regcache_cpy_no_passthrough): Delete unused variable.
2163 * charset.c (wchar_iterate): Delete unused variable.
2164 (find_charset_names): Delete unused variable.
2165 (_initialize_charset): Delete unused variable.
2166 * disasm.c (do_mixed_source_and_assembly):
2167 Delete unused variable.
2168 * source.c (set_default_source_symtab_and_line):
2169 Delete unused variable.
2170 (set_substitute_path_command): Delete unused variable.
2171 * value.c (preserve_values): Delete unused variable.
2172 (value_from_double): Delete unused variable.
2174 2010-05-05 Michael Snyder <msnyder@vmware.com>
2176 * psymtab.c (lookup_partial_symbol): Delete unused variable.
2177 (find_last_source_symtab_from_partial): Delete unused variable.
2178 * symfile.c (place_section): Delete unused variable.
2179 (default_symfile_offsets): Delete unused variable.
2180 (get_debug_link_info): Delete unused variable.
2181 (find_separate_debug_file_by_debuglink): Delete unused variable.
2182 (add_symbol_file_command): Delete unused variable.
2183 (symfile_find_segment_sections): Delete unused variable.
2184 * symmisc.c (free_symtab): Delete unused variable.
2185 (dump_symtab_1): Delete unused variable.
2186 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2187 (find_pc_sect_symtab): Delete unused variable.
2188 (skip_prologue_using_lineinfo): Delete unused variable.
2189 (sources_info): Delete unused variable.
2190 (completion_list_add_name): Delete unused variable.
2191 (expand_line_sal): Delete unused variable.
2193 * breakpoint.c (validate_commands_for_breakpoint):
2194 Delete unused variables.
2195 (insert_catchpoint): Delete unused variable.
2196 (update_watchpoint): Delete unused variable.
2197 (insert_bp_location): Delete unused variable.
2198 (insert_breakpoint_locations): Delete unused variable.
2199 (remove_breakpoint_1): Delete unused variable.
2200 (software_breakpoint_inserted_here_p): Delete unused variable.
2201 (watchpoints_triggered): Delete unused variable.
2202 (bpstat_check_watchpoint): Delete unused variable.
2203 (bpstat_stop_status): Delete unused variable.
2204 (print_one_breakpoint_location): Delete unused variable.
2205 (allocate_bp_location): Delete unused variable.
2206 (create_breakpoint): Delete unused variable.
2207 (watch_command_1): Delete unused variable.
2208 (catch_exception_command_1): Delete unused variable.
2209 (catch_ada_exception_command): Delete unused variable.
2210 (delete_breakpoint): Delete unused variable.
2211 (breakpoint_re_set_one): Delete unused variable.
2212 (do_enable_breakpoint): Delete unused variable.
2214 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2216 * amd64-tdep.c: Include disasm.h.
2217 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2218 (amd64_insn_length): Moved to disasm.c and renamed.
2219 (fixup_riprel): Adjust.
2220 * disasm.c (do_ui_file_delete): New.
2221 (gdb_insn_length): New.
2222 (gdb_buffered_insn_length_fprintf)
2223 (gdb_buffered_insn_length_init_dis)
2224 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2226 * disasm.h (gdb_insn_length): Declare.
2227 (gdb_buffered_insn_length): Declare.
2229 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2231 * remote.c (clear_threads_parsing_context): New.
2232 (remote_threads_info): Delete unused null_cleanup. Install a
2233 cleanup to clear the threads_parsing_context in case parsing
2236 2010-05-05 Michael Snyder <msnyder@vmware.com>
2238 * c-exp.y (parse_string_or_char): Delete unused variable.
2239 (c_lex): Delete unused variable.
2240 * cp-name-parser.y (cpname_lex): Delete unused variable.
2241 * ada-exp.y (find_primitive_type): Delete unused variable.
2242 (write_var_or_type): Delete unused variable.
2243 * jv-exp.y (java_parse): Delete unused variable.
2244 (push_expression_name): Delete unused variable.
2245 * p-exp.y (pascal_lex): Delete unused variable.
2247 2010-05-05 Pedro Alves <pedro@codesourcery.com>
2249 * remote.c (remote_threads_info): Really revert previous previous
2252 2010-05-05 Michael Snyder <msnyder@vmware.com>
2254 * elfread.c (elf_symtab_read): Delete unused variable.
2255 (find_separate_debug_file_by_buildid): Delete unused variables.
2256 (elf_symfile_read): Delete unused variable.
2258 * coffread.c (coff_symfile_read): Delete unused variables.
2260 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2261 (read_pe_exported_syms): Delete unused variable.
2263 * stabsread.c (define_symbol): Delete unused variable.
2265 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2266 (process_psymtab_comp_unit): Delete unused variable.
2267 (dwarf2_build_psymtabs_hard): Delete unused variable.
2268 (load_partial_comp_unit): Delete unused variable.
2269 (create_all_comp_units): Delete unused variable.
2270 (scan_partial_symbols): Delete unused variable.
2271 (add_partial_symbol): Delete unused variable.
2272 (add_partial_namespace): Delete unused variable.
2273 (add_partial_enumeration): Delete unused variable.
2274 (load_full_comp_unit): Delete unused variable.
2275 (process_full_comp_unit): Delete unused variable.
2276 (read_file_scope): Delete unused variable.
2277 (read_type_unit_scope): Delete unused variable.
2278 (process_structure_scope): Delete unused variable.
2279 (process_enumeration_scope): Delete unused variable.
2280 (read_tag_ptr_to_member_type): Delete unused variable.
2281 (read_typedef): Delete unused variable.
2282 (read_partial_die): Delete unused variable.
2283 (decode_locdesc): Delete unused variable.
2284 (zeroed_partial_die): Delete unused global variable.
2286 * tui/tui-interp.c (_initialize_tui_interp):
2287 Delete unused variable.
2288 * tui/tui-regs.c tui_display_registers_from):
2289 Delete unused variable.
2290 (tui_check_register_values): Delete unused variable.
2291 (tui_register_format): Delete unused variable.
2292 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2293 * tui/tui-windata.c (tui_display_data_from_line):
2294 Delete unused variables.
2295 (tui_vertical_data_scroll): Delete unused variables.
2297 2010-05-05 Michael Snyder <msnyder@vmware.com>
2299 * remote.c (remote_threads_info): Revert questionable part of
2300 the previous change.
2302 2010-05-05 Michael Snyder <msnyder@vmware.com>
2304 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2305 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2306 (mi_cmd_var_list_children): Delete unused variable.
2307 (varobj_update_one): Delete unused variable.
2308 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2309 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2310 Delete unused variable.
2311 (mi_cmd_stack_list_variables): Delete unused variable.
2312 (list_args_or_locals): Delete unused variable.
2313 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2314 Delete unused variables.
2315 (mi_cmd_file_list_exec_source_files): Delete unused variable.
2316 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2317 Delete unused variable.
2318 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2319 (mi_cmd_interpreter_exec): Delete unused variable.
2320 (mi_on_normal_stop): Delete unused variable.
2321 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2322 (print_one_inferior): Delete unused variables.
2323 (mi_execute_command): Delete unused variable.
2324 (mi_cmd_execute): Delete unused variable.
2325 (timestamp): Delete unused variable.
2327 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2328 (restore_binary_file): Delete unused variable.
2329 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2330 * cli/cli-script.c (define_command): Delete unused variables.
2331 (recurse_read_control_structure): Delete unused variable.
2332 (script_from_file): Delete unused variable.
2333 * cli/cli-cmds.c (complete_command): Delete unused variable.
2334 (disassemble_command): Delete unused variable.
2336 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2337 * tracepoint.c (delete_trace_variable_command):
2338 Delete unused variables.
2339 (encode_actions_1): Delete unused variables.
2340 (start_tracing): Delete unused variable.
2341 (trace_status_mi): Delete unused variable.
2342 (tfind_1): Delete unused variable.
2343 (trace_find_pc_command): Delete unused variable.
2344 (trace_find_line_command): Delete unused variables.
2345 (trace_find_range_command): Delete unused variables.
2346 (trace_find_outside_command): Delete unused variables.
2347 (parse_tracepoint_definition): Delete unused variables.
2348 (tfile_fetch_registers): Delete unused variable.
2350 * dcache.c (dcache_init): Delete unused variable.
2351 (dcache_info): Delete unused variable.
2353 * remote.c (remote_threads_info): Delete unused variable.
2354 (process_stop_reply) :Delete unused variable.
2355 (remote_get_trace_status): Delete unused variables.
2357 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2358 (thread_from_lwp): Delete unused variable.
2359 (enable_thread_event_reporting): Delete unused variable.
2360 (check_for_thread_db): Delete unused variables.
2361 (thread_db_find_new_threads_2): Delete unused variable.
2363 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2364 (checkpoint_command): Delete unused variable.
2365 (linux_fork_context): Delete unused variables.
2367 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2368 (linux_tracefork_child): Delete unused variable.
2369 (linux_child_follow_fork): Delete unused variable.
2370 (linux_nat_detach): Delete unused variable.
2371 (linux_handle_extended_wait): Delete unused variable.
2372 (linux_nat_has_pending_sigint): Delete unused variable.
2373 (linux_nat_find_memory_regions): Delete unused variable.
2374 (linux_nat_make_corefile_notes): Delete unused variables.
2375 (linux_nat_info_proc_cmd): Delete unused variable.
2376 (linux_proc_pending_signals): Delete unused variable.
2377 (linux_nat_stop_lwp): Delete unused variables.
2378 (_initialize_linux_nat): Delete unused variable.
2380 * ser-pipe.c (pipe_ops): Delete unused global variable.
2382 * linux-record.c (record_linux_system_call):
2383 Delete unused variables.
2385 * corelow.c (core_xfer_partial): Delete unused variables.
2387 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2388 (svr4_solib_create_inferior_hook): Add ifdef around
2389 conditionally-used variable declarations.
2391 * solib.c (solib_find): Delete unused variable.
2392 (free_so_symbols): Delete unused variable.
2393 (info_sharedlibrary_command): Delete unused variable.
2394 (reload_shared_libraries_1): Delete unused variable.
2395 (_initialize_solib): Delete unused variable.
2397 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2398 (i386_collect_xstateregset): Delete unused variable.
2399 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2401 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2402 Delete unused variable 'type'.
2404 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2406 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2407 ada-lang.c: Remove comment mentioning these macros.
2408 * m2-exp.y: Delete commented out code.
2410 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2412 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2414 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2416 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2418 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2419 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2421 (cleanup_kernel_helper_return): Likewise.
2422 * arm-tdep.c (copy_unmodified): Likewise.
2423 (copy_preload): Likewise.
2424 (copy_copro_load_store): Likewise.
2425 (cleanup_branch): Likewise.
2426 (copy_b_bl_blx): Likewise.
2427 (copy_bx_blx_reg): Likewise.
2428 (copy_alu_imm): Likewise.
2429 (copy_alu_reg): Likewise.
2430 (copy_alu_shifted_reg): Likewise.
2431 (cleanup_load): Likewise.
2432 (cleanup_store): Likewise.
2433 (cleanup_block_load_pc): Likewise.
2434 (cleanup_svc): Likewise.
2435 (copy_undef): Likewise.
2436 (copy_unpred): Likewise.
2437 * remote.c (register_remote_support_xml): Likewise.
2439 2010-05-05 Hui Zhu <teawater@gmail.com>
2441 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2443 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2445 * remote.c (register_remote_support_xml)
2446 (remote_query_supported_append, remote_query_supported): Add cast
2447 to NULL used as sentinel.
2448 * tracepoint.c (tvariables_info_1): Likewise.
2449 * utils.c (add_internal_problem_command): Likewise.
2451 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2453 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2454 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2455 registers gracefully.
2457 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2459 * exec.c (print_section_info): Display entry point without arch
2462 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2465 * printcmd.c (x_command): Only dereference once implicitly for
2468 2010-05-03 Doug Evans <dje@google.com>
2470 * event-loop.c (gdb_timer): Delete unused global.
2471 (create_timer): Update.
2473 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2476 CURRENT->DECLARATION case.
2477 * cp-support.h (struct using_direct): Provide extended comment.
2479 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2481 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2482 HPPABSD_SIZEOF_GREGS.
2483 (HPPAOBSD_SIZEOF_FPREGS): New define.
2484 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2485 (hppaobsd_supply_fpregset): New function.
2486 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2487 (hppaobsd_fpregset): New variable.
2488 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2489 (_initialize_hppabsd_tdep): Remove spurious blank line.
2491 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2494 * p-valprint.c (pascal_value_print): Always dereference a value with
2495 type code TYPE_CODE_REF.
2497 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2499 * remote.c (remote_notice_signals): New.
2500 (remote_start_remote): In non-stop mode, update the remote end on
2501 which signals it can silently pass.
2502 (init_remote_ops): Install remote_notice_signals.
2504 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2507 * command.h (error_no_arg): ... here. Remove NORETURN, change
2508 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2509 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2510 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2511 (internal_verror, internal_error, nomem): Remove NORETURN, change
2512 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2513 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2514 (throw_vfatal, throw_error): Remove NORETURN.
2515 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2516 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2517 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2518 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2519 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2520 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2522 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2523 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2525 * target.c (tcomplain): Likewise.
2526 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2528 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2529 (internal_error, perror_with_name, nomem): Remove NORETURN.
2530 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2533 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2535 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2536 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2537 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2538 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2539 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2540 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2541 * complaints.h (complaint, internal_complaint): Likewise.
2542 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2543 (ATTR_FORMAT): Remove.
2544 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2545 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2546 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2547 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2548 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2549 (internal_error, internal_vwarning, internal_warning, warning)
2550 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2551 * disasm.c (fprintf_disasm): Likewise.
2552 * exceptions.c (throw_it): Likewise.
2553 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2554 (throw_error): Likewise.
2555 * language.h (type_error, range_error): Likewise.
2556 * linespec.c (cplusplus_error): Likewise.
2557 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2558 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2559 * monitor.c (monitor_debug): Likewise.
2560 * parser-defs.h (parser_fprintf): Likewise.
2561 * serial.h (serial_printf): Likewise.
2562 * tui/tui-hooks.c (tui_query_hook): Likewise.
2563 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2564 (uo_message): Likewise.
2565 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2566 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2568 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2570 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2572 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2573 (cli_table_header, cli_begin, cli_end, cli_field_int)
2574 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2575 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2576 Delete forward declarations.
2577 (cli_ui_out_impl): Move below the callbacks.
2578 (_initialize_cli_out): Delete.
2580 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2582 * README: Use consistent `GDB' and `GDBserver' spellings.
2584 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2586 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2588 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2590 * infrun.c (prepare_for_detach): In non-stop, context switch to
2591 the thread that got the event before handling the event.
2593 2010-04-30 Tom Tromey <tromey@redhat.com>
2595 * symtab.c (symbol_set_names): Fix typo.
2597 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2599 * python/py-param.c (parm_constants): Avoid ARI warning
2600 by adding ARI comment.
2601 (parmpy_init): Likewise.
2603 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2605 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2606 and created type for re-use.
2608 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2610 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2612 2010-04-29 Doug Evans <dje@google.com>
2614 * ser-base.h (reschedule): Delete prototype.
2615 * ser-base.c (reschedule): Make static.
2617 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2619 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2620 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2621 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2623 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2626 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2630 * regcache.c (registers_changed): Rename to ...
2631 (registers_changed_ptid): ... this, and only delete register cache
2632 entries matching the ptid filter argument.
2633 (registers_changed): Reimplement on top of registers_changed_ptid.
2634 * regcache.h (registers_changed_ptid): Declare.
2635 * target.c (target_resume): Flush register caches.
2637 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2638 Tom Tromey <tromey@redhat.com>
2639 Thiago Jung Bauermann <bauerman@br.ibm.com>
2641 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2642 (SUBDIR_PYTHON_SRCS): Likewise.
2643 (py-parameter.o): New rule.
2644 * python/py-parameter.c: New file.
2645 * python/python-internal.h (gdbpy_initialize_parameter)
2646 (gdbpy_parameter, gdbpy_parameter_value)
2647 (gdbpy_parse_command_name): Declare.
2648 * python/py-cmd.c (parse_command_name): Rename to
2649 gdbpy_parse_command_name.
2650 (gdbpy_parse_command_name): Accept a starting list parameter and
2652 (cmdpy_init): Use gdbpy_parse_command_name.
2653 * python/python.c (parameter_to_python): Rename to
2654 gdbpy_parameter_to_python. Accept enum var_types and value.
2655 (gdbpy_parameter): Use gdbpy_parameter_value.
2656 (_initialize_python): Call gdbpy_initialize_parameters.
2658 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2660 * MAINTAINERS: Add myself for write after approval privileges.
2662 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2665 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2666 (COMMON_OBS): Add d-lang.o d-valprint.o.
2667 (HFILES_NO_SRCDIR): Add d-lang.h.
2668 * NEWS: Mention D language support.
2669 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2670 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2671 * d-lang.c: New file.
2672 * d-lang.h: New file.
2673 * d-valprint.c: New file.
2674 * defs.h (enum language): Add language_d.
2675 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2676 * language.c (binop_result_type, integral_type, character_type)
2677 (string_type, boolean_type, structured_type): Add language_d.
2678 * symfile.c (init_filename_language_table): Add language_d.
2679 * symtab.c: Include d-lang.h.
2680 (symbol_init_language_specific, symbol_find_demangled_name)
2681 (symbol_natural_name, lookup_symbol_in_language)
2682 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2684 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2686 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2688 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2690 * symfile.c (init_filename_language_table): Register .dg files
2693 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2695 * gdbtypes.h (struct main_type): Expand comment about target_type
2698 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2699 Tristan Gingold <gingold@adacore.com>
2701 * symfile.c (reread_symbols): Also search for file in libraries.
2704 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2706 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2707 in terms of configuration.
2709 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2711 * objfiles.c: Include solist.h.
2712 (free_all_objfiles): New variable so. Check stale solist objfiles.
2713 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2714 and no_shared_libraries.
2716 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2719 * python/py-auto-load.c (source_section_scripts): Remove trailing
2720 new-line in i18n string.
2722 2010-04-26 Doug Evans <dje@google.com>
2724 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2726 2010-04-26 Tom Tromey <tromey@redhat.com>
2728 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2731 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2733 Removal of config/i386/nm-i386sol2.h native configuration file.
2734 * config/i386/nm-i386sol2.h: Remove file.
2735 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2736 * config/i386/sol2-64.mh: Idem.
2737 * config/djgpp/fnchange.lst: Remove reference to that file.
2738 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2740 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2742 PR breakpoints/11531.
2743 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2744 macro definition and related comment.
2745 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2746 (resume): Remove code and comment related to this macro.
2748 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2750 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2753 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2755 * defs.h: Adjust comment.
2756 * filesystem.h, filesystem.c: New files.
2757 * Makefile.in (SFILES): Add filesystem.c.
2758 (COMMON_OBS): Add filesystem.o.
2759 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2760 different target and host path flavours.
2761 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2762 has_dos_based_file_system on the gdbarch.
2763 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2764 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2765 * i386-tdep.c (i386_go32_init_abi): Ditto.
2766 * gdbarch.sh (has_dos_based_file_system): New.
2767 * gdbarch.h, gdbarch.c: Regenerate.
2768 * NEWS: Mention improved support for remote targets with DOS-based
2769 filesystems. Mention new `set/show target-file-system-kind'
2772 2010-04-23 Stan Shebs <stan@codesourcery.com>
2774 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2776 (struct agent_reqs): Remove.
2777 (ax_reg_mask): Declare.
2778 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2779 (free_agent_expr): Free reg_mask.
2780 (ax_print): Add scope and register mask info.
2781 (ax_reqs): Remove agent_reqs argument, use agent expression
2782 fields, and move part of register mask computation to...
2783 (ax_reg_mask): New function.
2784 * ax-gdb.c (gen_trace_static_fields): Call it.
2785 (gen_traced_pop): Ditto.
2786 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2787 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2788 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2789 (gen_eval_for_expr): Ditto, and require an rvalue.
2790 (agent_command): Call ax_reqs.
2791 (agent_eval_command): Ditto.
2792 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2793 (validate_action_line): Ditto.
2794 (collect_symbol): Ditto.
2795 (encode_actions_1): Ditto.
2797 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2798 Paul Pluzhnikov <ppluzhnikov@google.com>
2799 Jan Kratochvil <jan.kratochvil@redhat.com>
2801 Fix deadlock on looped list of loaded shared objects.
2802 * solib-svr4.c (LM_PREV): New function.
2803 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2804 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2805 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2806 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2808 2010-04-23 Doug Evans <dje@google.com>
2810 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2812 * configure: Regenerate.
2813 * main.c: #include "python/python.h".
2814 (captured_main): Defer loading auto-loaded scripts until after
2815 local_gdbinit has been sourced.
2816 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2817 (load_auto_scripts_for_objfile): New function.
2818 (auto_load_new_objfile): Call it.
2819 * python/python.h (gdbpy_global_auto_load): Declare.
2820 (load_auto_scripts_for_objfile): Declare.
2822 Add support for auto-loading scripts from .debug_gdb_scripts section.
2823 * NEWS: Add entry for .debug_gdb_scripts.
2824 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2825 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2826 (py-auto-load.o): New rule.
2827 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2828 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2829 * python/py-auto-load.c: New file.
2830 * python/python-internal.h: #include <stdio.h>.
2831 (set_python_list, show_python_list): Declare.
2832 (gdbpy_initialize_auto_load): Declare.
2833 (source_python_script_for_objfile): Declare.
2834 * python/python.c: Remove #include of observer.h.
2835 (gdbpy_auto_load): Moved to py-auto-load.c.
2836 (GDBPY_AUTO_FILENAME): Ditto.
2837 (gdbpy_new_objfile): Delete.
2838 (source_python_script_for_objfile): New function.
2839 (set_python_list, show_python_list): Make externally visible.
2840 (_initialize_python): Move "auto-load" command to py-auto-load.c
2841 and observer_attach_new_objfile to py-auto-load.c.
2843 2010-04-23 Jerome Guitton <guitton@adacore.com>
2845 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2846 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2847 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2849 (alpha_heuristic_analyze_probing_loop): New function.
2850 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2851 and handle cases when a stack probe loop is generated.
2852 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2853 (alpha_mdebug_max_frame_size_exceeded): New function.
2854 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2855 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2856 Return 0 when the maximum debuggable frame size has been exceeded.
2858 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2861 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2863 2010-04-20 Chris Moller <cmoller@redhat.com>
2867 * symtab.c (rbreak_command): Added code to include a filename
2868 specification in the rbreak argument.
2869 * NEWS: Added a brief description of filename-qualified rbreak.
2871 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2873 Fix crashes on dangling display expressions.
2874 * ada-lang.c (ada_operator_check): New function.
2875 (ada_exp_descriptor): Fill-in the field operator_check.
2876 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2877 * jv-lang.c (exp_descriptor_java): Likewise.
2878 * m2-lang.c (exp_descriptor_modula2): Likewise.
2879 * scm-lang.c (exp_descriptor_scm): Likewise.
2880 * parse.c (exp_descriptor_standard): Likewise.
2881 (operator_check_standard): New function.
2882 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2883 * parser-defs.h (struct exp_descriptor): New field operator_check.
2884 (operator_check_standard, exp_uses_objfile): New declarations.
2885 * printcmd.c: Remove the inclusion of solib.h.
2886 (display_uses_solib_p): Remove the function.
2887 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2888 and exp_uses_objfile instead of display_uses_solib_p.
2889 * solist.h (struct so_list) <objfile>: New comment.
2890 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2891 * symtab.h (lookup_objfile_from_block): New declaration.
2892 (struct general_symbol_info) <obj_section>: Extend the comment.
2894 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2895 Thiago Jung Bauermann <bauerman@br.ibm.com>
2897 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2898 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2899 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2900 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2901 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2902 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2903 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2904 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2905 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2906 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2907 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2908 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2909 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2910 Define, in case <ptrace.h> doesn't provide it.
2911 (booke_debug_info): New variable.
2912 (max_slots_number): Ditto.
2913 (hw_break_tuple): New struct.
2914 (thread_points): Ditto.
2915 (ppc_threads): New variable.
2916 (PPC_DEBUG_CURRENT_VERSION): New define.
2917 (have_ptrace_new_debug_booke): New function.
2918 (ppc_linux_check_watch_resources): Renamed to ...
2919 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2920 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2921 (booke_cmp_hw_point): New function.
2922 (booke_find_thread_points_by_tid): Ditto.
2923 (booke_insert_point): Ditto.
2924 (booke_remove_point): Ditto.
2925 (ppc_linux_insert_hw_breakpoint): Ditto.
2926 (ppc_linux_remove_hw_breakpoint): Ditto.
2927 (get_trigger_type): Ditto.
2928 (ppc_linux_insert_watchpoint): Handle BookE processors.
2929 (ppc_linux_remove_watchpoint): Ditto.
2930 (ppc_linux_new_thread): Ditto.
2931 (ppc_linux_thread_exit): New function..
2932 (ppc_linux_stopped_data_address): Handle BookE processors.
2933 (ppc_linux_watchpoint_addr_within_range): Ditto.
2934 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2935 to_remove_hw_breakpoint fields of the target operations struct.
2936 Add observe for the thread_exit event.
2938 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2940 * i386-linux-nat.c (regmap): Removed.
2941 (fetch_register): Replace regmap with
2942 i386_linux_gregset_reg_offset.
2943 (store_register): Likewise.
2944 (supply_gregset): Likewise.
2945 (fill_gregset): Likewise.
2947 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2950 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2952 2010-04-22 Chris Moller <cmoller@redhat.com>
2954 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2955 method of popping recursion-detection stack with a method based on
2956 obstack_object_size(). (Similar to the PR9167 patch below, but for
2957 the static array obstack rather than the static member obstack.)
2959 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2961 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2962 (_initialize_amd64_linux_nat): Replace
2963 amd64_linux_gregset64_reg_offset with
2964 amd64_linux_gregset_reg_offset.
2966 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2969 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2971 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2974 * stabsread.c (set_length_in_type_chain): New function.
2975 (read_struct_type): Call set_length_in_type_chain function.
2976 (read_enum_type): Idem.
2978 2010-04-21 Stan Shebs <stan@codesourcery.com>
2979 Nathan Sidwell <nathan@codesourcery.com>
2981 * tracepoint.c (trace_save): Open in binary mode.
2983 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2985 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2987 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2988 builtin_char32 fields.
2989 * printcmd.c (decode_format): Set char size to '\0'
2990 for strings unless explicit size is given.
2991 (print_formatted): Correct calculation of NEXT_ADDRESS
2992 for 16 or 32 bit strings.
2993 (do_examine): Do not force byte size for strings.
2994 Use builtin_char16 and builtin_char32 types to display
2995 16 or 32 bit-wide strings.
2996 (x_command): Set LAST_SIZE to 'b' for string type.
2998 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
3001 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3004 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
3005 there is no .reg-xstate section.
3006 (i386_linux_core_read_description): Check XCR0 first.
3008 2010-04-21 Mike Frysinger <vapier@gentoo.org>
3010 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
3013 2010-04-21 Chris Moller <cmoller@redhat.com>
3016 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3017 method of popping recursion-detection stack with a method based on
3018 obstack_object_size().
3020 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3023 * p-valprint.c (pascal_val_print): Fix default printing of integer
3026 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3028 Fix compilation warning on gcc-4.1.2.
3029 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
3030 local variable`pc' to zero.
3032 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3034 Implement thread support with core files on alpha-tru64.
3035 * dec-thread.c (dec_thread_find_new_threads): New function,
3036 extracted from resync_thread_list.
3037 (resync_thread_list): Add OPS parameter. Replace extracted-out
3038 code by call to dec_thread_find_new_threads.
3039 (dec_thread_wait): Update call to resync_thread_list.
3040 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
3042 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3044 * ada-lang.c (value_pointer): New function.
3045 (make_array_descriptor): Call value_pointer to convert addresses to
3048 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3050 * rs6000-aix-tdep.c: #include exceptions.h.
3051 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
3052 while reading the memory at ADDR, then ADDR cannot be a function
3055 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3057 * ada-typeprint.c (ada_print_typedef): New function.
3058 * ada-lang.h (ada_print_typedef): Add declaration.
3059 * ada-lang.c (ada_language_defn): set la_print_typdef field
3060 to ada_print_typedef.
3062 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3064 * procfs.c (procfs_address_to_host_pointer): Only define when used.
3066 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3068 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
3069 (iterate_over_mappings): Adjust function profile. Add declaration.
3070 (insert_dbx_link_bpt_in_region, info_mappings_callback):
3073 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3075 * procfs.c (solib_mappings_callback): Move function up to avoid
3078 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3080 * procfs.c (find_signalled_thread, find_stop_signal): Move
3081 these functions down to define them only when used.
3083 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3085 * valprint.c (common_val_print): Fix the value before extracting
3087 * ada-lang.c (ada_to_fixed_value): Make this function extern.
3088 * ada-lang.h (ada_to_fixed_value): New function declaration.
3089 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3090 to avoid code duplication and fix a bug in the handling of
3091 fixed types contents.
3093 2010-04-20 Tom Tromey <tromey@redhat.com>
3095 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3096 (read_partial_die): Likewise.
3097 (dwarf_attr_name): Likewise.
3099 2010-04-20 Chris Moller <cmoller@redhat.com>
3103 * cp-valprint.c (global): Adding new static array recursion
3105 (cp_print_value_fields, cp_print_static_field): Added new static
3106 array recursion detection code.
3108 2010-04-20 Mark Kettenis <kettenis@gnu.org>
3110 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3111 general-purpose register set should be 68 instead of 144.
3112 (i386_linux_sse_regset_sections): Likewise.
3113 (i386_linux_avx_regset_sections): Likewise.
3115 2010-04-20 Stan Shebs <stan@codesourcery.com>
3116 Nathan Sidwell <nathan@codesourcery.com>
3118 * dwarf2loc.c (struct axs_var_loc): New struct.
3119 (dwarf2_tracepoint_var_loc): New function.
3120 (dwarf2_tracepoint_var_access): New function.
3121 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3123 (locexpr_describe_location_piece): New function.
3124 (locexpr_describe_location_1): New function.
3125 (locexpr_describe_location): Call it, update signature.
3126 (loclist_describe_location): Rewrite to loop over locations,
3128 * symtab.h (struct symbol_computed_ops): Add address to
3129 describe_location arguments, return void.
3130 * printcmd.c (address_info): Get context PC, pass to computed
3131 location description.
3132 * tracepoint.c (scope_info): Ditto.
3133 * ax-gdb.c (trace_kludge): Export.
3135 2010-04-20 Tom Tromey <tromey@redhat.com>
3137 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3138 (struct dwarf2_cie) <segment_size>: New field.
3139 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3140 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3142 (read_attribute_value): Handle DW_FORM_flag_present,
3143 DW_FORM_sec_offset, DW_FORM_exprloc.
3144 (dump_die_shallow): Likewise.
3145 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3146 (dwarf2_const_value): Handle DW_FORM_exprloc.
3147 (attr_form_is_block): Likewise.
3148 (struct line_header) <maximum_ops_per_instruction>: New field.
3149 (dwarf_decode_line_header): Set new field.
3150 (dwarf_decode_lines): Handle new field.
3152 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3154 * f-exp.y: Add new production to recognize the `logical*8' type.
3155 (LOGICAL_S8_KEYWORD): New token.
3156 * f-lang.c (enum f_primitive_types)
3157 <f_primitive_type_logical_s8>: New field.
3158 (f_language_arch_info): Handling `logical*8' type.
3159 (build_fortran_types): Building `logical*8' type.
3160 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
3162 2010-04-19 Doug Evans <dje@google.com>
3164 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3165 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3166 (pipe_close): Ditto.
3168 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3170 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3172 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3174 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3175 type to void function.
3177 2010-04-19 Stan Shebs <stan@codesourcery.com>
3178 Vladimir Prus <vladimir@codesourcery.com>
3180 * tracepoint.c (tfind_1): Add missing newline, report exit from
3182 * target.c (update_current_target): Make default
3183 to_trace_find return -1.
3185 2010-04-19 Mike Frysinger <vapier@gentoo.org>
3187 * objc-lang.c (find_methods): Move symname check up.
3189 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3191 * ada-lang.c (print_recreate_exception)
3192 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
3193 not "catch unhandled".
3195 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3197 PR breakpoints/8554.
3199 Implement `save-breakpoints'.
3201 * breakpoint.c (save_cmdlist): New.
3202 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3204 (print_recreate_catch_fork): New.
3205 (catch_fork_breakpoint_ops): Install it.
3206 (print_recreate_catch_vfork): New.
3207 (catch_vfork_breakpoint_ops): Install it.
3208 (print_recreate_catch_syscall): New.
3209 (catch_syscall_breakpoint_ops): Install it.
3210 (print_recreate_catch_exec): New.
3211 (catch_exec_breakpoint_ops): Install it.
3212 (print_recreate_exception_catchpoint): New.
3213 (gnu_v3_exception_catchpoint_ops): Install it.
3214 (save_breakpoints): New, based on tracepoint_save_command, but
3215 handle all breakpoint types.
3216 (save_breakpoints_command): New.
3217 (tracepoint_save_command): Rename to...
3218 (save_tracepoints_command): ... this, and reimplement using
3220 (save_command): New.
3221 (_initialize_breakpoints): Install the "save" command prefix.
3222 Install the "save breakpoints" command. Make "save-tracepoints" a
3223 deprecated alias for "save tracepoints".
3224 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3225 * ada-lang.c (print_recreate_exception): New.
3226 (print_recreate_catch_exception): New.
3227 (catch_exception_breakpoint_ops): Install it.
3228 (print_recreate_catch_exception_unhandled): New.
3229 (catch_exception_unhandled_breakpoint_ops): Install it.
3230 (print_recreate_catch_assert): New.
3231 (catch_assert_breakpoint_ops): Install it.
3233 * NEWS: Mention the new `save breakpoints' command. Mention the
3234 new `save tracepoints' alias and that `save-tracepoints' is now
3237 2010-04-18 Pedro Alves <pedro@codesourcery.com>
3241 * tui/tui-out.c: Include cli-out.h.
3242 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3243 (tui_begin, tui_end, tui_field_int, tui_field_skip)
3244 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3245 (tui_message, tui_wrap_hint, tui_flush): Delete forward
3247 (struct ui_out_data): Rename to...
3248 (struct tui_ui_out_data): ... this. Remove `stream' and
3249 `suppress_output' fields, and inherit cli_ui_out_data.
3250 (tui_out_data): New typedef.
3251 (tui_ui_out_impl): Don't initialize fields staticaly.
3252 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3253 (tui_begin, tui_end): Delete.
3254 (tui_field_int): Adjust to delegate most work to the base type.
3255 (tui_field_skip): Delete.
3256 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
3257 delegate most work to the base type.
3258 (tui_spaces): Delete.
3259 (tui_text): Adjust to delegate most work to the base type.
3260 (tui_message): Delete.
3261 (tui_wrap_hint): Delete.
3262 (tui_flush): Delete.
3263 (out_field_fmt): Delete.
3264 (field_separator): Delete.
3265 (tui_out_new): Adjust to initialize the base type.
3266 (_initialize_tui_out): Initialize tui_ui_out_impl.
3267 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3269 (cli_out_data): Adjust.
3270 (cli_ui_out_impl): Make extern.
3271 (cli_table_header, cli_field_int, cli_field_skip): Use
3272 uo_field_string instead of cli_field_string.
3273 (cli_redirect): Adjust to use cli_out_data.
3274 (cli_out_data_ctor): New.
3275 (cli_out_new): Use it.
3276 * cli-out.h (struct ui_file): Remove forward declaration.
3277 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3278 (cli_ui_out_impl): Declare.
3279 (cli_out_data_ctor): Declare.
3280 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3281 (uo_field_string): No longer static.
3282 (ui_out_data): Change return type to void pointer.
3283 (ui_out_new): Change `data' parameter type to void pointer.
3284 * ui-out.h (struct ui_out_data): Don't forward declare.
3285 (ui_out_data): Change return type to void pointer.
3286 (ui_out_new): Change `data' parameter type to void pointer.
3287 (uo_field_string): Declare.
3289 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3291 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3292 instead of always false.
3294 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3297 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3300 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3302 * breakpoint.c (watchpoints_triggered): Use
3303 is_hardware_watchpoint.
3304 (watchpoints_triggered): Ditto.
3305 (bpstat_check_location): Use is_watchpoint and
3306 is_hardware_watchpoint.
3307 (bpstat_check_watchpoint): Use is_watchpoint and
3308 is_hardware_watchpoint.
3309 (bpstat_stop_status): Fix comment.
3310 (user_settable_breakpoint): Use is_watchpoint.
3311 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3312 (disable_watchpoints_before_interactive_call_start): Use
3314 (enable_watchpoints_after_interactive_call_stop): Use
3316 (clear_command): Use is_watchpoint.
3317 (do_enable_breakpoint): Use is_watchpoint.
3319 2010-04-16 Mike Frysinger <vapier@gentoo.org>
3321 * solib-frv.c (enable_break1_done): Delete.
3322 (enable_break2): Do not check enable_break1_done. Move the
3323 enable_break2_done setting and call to
3324 remove_solib_event_breakpoints() to the end. Return without
3325 warning when the contents of _dl_debug_addr are 0.
3326 (enable_break): Do not set enable_break1_done.
3327 (frv_clear_solib): Likewise.
3329 2010-04-16 Kevin Buettner <kevinb@redhat.com>
3331 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3332 instead of an error if no PLT entry is found. Return a
3333 potentially useful result.
3334 (m32c_m16c_pointer_to_address): Add code to search for function
3335 address when no .plt entry is found.
3337 2010-04-16 Stan Shebs <stan@codesourcery.com>
3339 * tracepoint.c (trace_variable_command): Run a cleanup.
3341 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3343 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3345 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3347 Support for Windows OS Thread Information Block.
3348 * NEWS: Document new feature.
3349 * remote.c (PACKET_qGetTIBAddr): New enum element.
3350 (remote_get_tib_address): New function.
3351 (init_remote_ops): Set to_get_tib_address field
3352 to remote_get_tib_address.
3353 (_initialize_remote): Add add_packet_config_cmd
3354 for PACKET_qGetTIBAddr.
3355 * target.c (update_current_target): Set default value for
3356 new to_get_tib_address field.
3357 * target.h (target_ops): New field to_get_tib_address.
3358 (target_get_tib_address): New macro.
3359 * windows-nat.c (thread_info): Add thread_local_base field.
3360 (windows_add_thread): Add tlb argument of type 'void *'.
3361 (fake_create_process): Adapt windows_add_thread call.
3362 (get_windows_debug_event): Idem.
3363 (windows_get_tib_address): New function.
3364 (init_windows_ops): Set to_get_tib_address field
3365 to remote_get_tib_address.
3366 (_initialize_windows_nat): Replace info_w32_cmdlist
3367 initialization by a call to init_w32_command_list.
3368 (info_w32_command, info_w32_cmdlist): Removed from here...
3369 to windows-tdep.c file.
3370 * windows-tdep.h (info_w32_cmdlist): Declare.
3371 (init_w32_command_list): New external function
3373 * windows-tdep.c: Add several headers.
3374 (info_w32_cmdlist): to here, made global.
3375 (thread_information_32): New struct.
3376 (thread_information_64): New struct.
3377 (TIB_NAME): New char array.
3378 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3379 (maint_display_all_tib): New static variable.
3380 (windows_get_tlb_type): New function.
3381 (tlb_value_read, tlb_value_write): New functions.
3382 (tlb_value_funcs): New static struct.
3383 (tlb_make_value): New function.
3384 (display_one_tib): New function.
3385 (display_tib): New function.
3386 (show_maint_show_all_tib):New function.
3387 (info_w32_command): Moved from windows-nat.c.
3388 (init_w32_command_list): New function.
3389 (_initialize_windows_tdep): New function.
3390 New "maint set/show show-all-tib" command
3391 New "$_tlb" internal variable.
3393 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3395 * tui/tui-regs.c (tui_display_register): Add comment about
3397 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3399 2010-04-15 Stan Shebs <stan@codesourcery.com>
3401 * frame.c: Include tracepoint.h.
3402 (get_current_frame): Allow a trace frame to be an alternate source
3403 of stack frame data.
3404 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3407 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3409 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3411 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3413 2010-04-15 Doug Evans <dje@google.com>
3415 * NEWS: Add entry for python program space support.
3416 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3417 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3418 (py-progspace.o): New rule.
3419 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3421 (find_pretty_printer_from_progspace): New function.
3422 (find_pretty_printer_from_gdb): New function.
3423 (find_pretty_printer): Rewrite.
3424 * python/py-progspace.c: New file.
3425 * python/python-internal.h (program_space): Add forward decl.
3426 (pspace_to_pspace_object, pspy_get_printers): Declare.
3427 (gdbpy_initialize_pspace): Declare.
3428 * python/python.c: #include "progspace.h".
3429 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3430 (_initialize_python): Call gdbpy_initialize_pspace.
3431 (GdbMethods): Add current_progspace, progspaces.
3433 Add -s option to source command.
3434 * NEWS: Document new option.
3435 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3436 Delete from_tty and cleanupp args. Split filep arg into file and
3437 full_pathp. New arg search_path.
3438 (source_script_from_stream): New function.
3439 (source_script_with_search): New function.
3440 (source_script): Rewrite.
3441 (source_command): Parse "-s" option.
3442 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3443 * python/python.c (source_python_script): Make file arg a const char *.
3444 Don't call fclose, leave for caller.
3445 * python/python.h (source_python_script): Update.
3447 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3448 Pedro Alves <pedro@codesourcery.com>
3450 Avoid rereading shared libraries that haven't changed.
3452 * solib.c (free_so_symbols): New function, from ...
3453 (free_so): ... here. Call it.
3454 (solib_read_symbols): Don't warn here if symbols have already been
3456 (solib_add): Warn here instead, if a pattern was specified.
3457 (reload_shared_libraries_1): New.
3458 (reload_shared_libraries): Rewrite to not fetch the library list.
3460 2010-04-14 Doug Evans <dje@google.com>
3462 * source.c (openp): Strip DOS drive letter if present before
3463 concatenating string to search path.
3465 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3467 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3468 * objfiles.c (gdb_bfd_close_or_warn): New.
3469 * corelow.c: Include objfiles.h
3470 (core_close): Use gdb_bfd_close_or_warn.
3471 * elfread.c (build_id_verify): Ditto.
3472 * exec.c (exec_close, exec_close_1): Ditto.
3474 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3475 Pedro Alves <pedro@codesourcery.com>
3477 Group errors for many missing shared libraries.
3479 * solist.h (struct so_list): Remove from_tty.
3480 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3481 (solib_map_sections): Take so_list argument. Return 0 if we
3482 failed to open a BFD. Add target sections here.
3483 (symbol_add_stub): Delete.
3484 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3485 not from_tty copied from the so_list. Don't warn a second time
3486 for a missing library.
3487 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3488 add to the section table here. Print out a single warning for all
3490 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3493 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3495 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3496 error/warning messages. Capitalize and use complete sentences.
3497 (blpy_block_syms_iternext): Likewise.
3498 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3499 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3500 (frame_info_to_frame_object, frapy_read_var)
3501 (gdbpy_frame_stop_reason_string): Likewise.
3502 * python/py-lazy-string.c (stpy_convert_to_value)
3503 (gdbpy_create_lazy_string_object): Likewise.
3504 * python/py-objfile.c (objfpy_set_printers): Likewise.
3505 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3506 * python/python.c (parameter_to_python): Likewise.
3507 * python/py-type.c (typy_range, typy_target): Likewise.
3508 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3509 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3512 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3516 * python/py-prettyprint.c (pretty_print_one_value): Test for
3518 (print_string_repr): Test for Py_None. Set flags accordingly.
3519 Return value depending on return type.
3520 (print_children): Take a value indicating whether data was printed
3521 before this function was called. Alter output accordingly.
3522 (apply_val_pretty_printer): Capture return value from
3523 print_string_repr and pass to print_children.
3525 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3528 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3529 register note sections.
3530 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3532 (i386_linux_init_abi): Install list of supported register note
3533 sections that matches the target description.
3535 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3537 * remote.c (remote_get_noisy_reply): Don't error out on empty
3539 (remote_start_remote): Update and merge tracepoints and trace
3540 state variables as long as the target supports tracepoints.
3541 (remote_trace_init): Fix prototype.
3542 (remote_download_trace_state_variable): Validate reply.
3543 (remote_trace_set_readonly_regions): Fix prototype.
3544 (remote_trace_start): Fix prototype. Check for empty reply.
3545 (remote_get_trace_status): Small cleanup.
3546 (remote_trace_stop): Fix prototype. Check for empty reply.
3547 (remote_trace_find): Check for empty reply.
3548 (remote_save_trace_data): Validate reply.
3549 (remote_set_disconnected_tracing): Check for empty reply, and
3551 (remote_set_circular_trace_buffer): Ditto.
3553 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3555 Suppress unused value warning during compilation.
3556 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3558 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3560 2010-04-12 Stan Shebs <stan@codesourcery.com>
3562 * tracepoint.c (tfile_xfer_partial): Check read result.
3564 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3566 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3567 * remote-sim.c (gdbsim_files_info): Likewise.
3569 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3571 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3572 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3574 (fetch_vfp_registers): New function to fetch VFP registers.
3575 (store_vfp_registers): New function to store VFP registers.
3576 (arm_linux_fetch_inferior_registers): Add support for VFP
3578 (arm_linux_store_inferior_registers): Likewise.
3579 (arm_linux_read_description): Likewise.
3580 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3583 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3585 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3587 (amd64_collect_xstateregset): Likewise.
3589 2010-04-09 Stan Shebs <stan@codesourcery.com>
3591 * tracepoint.c (trace_status_mi): Report frames created.
3593 * tracepoint.c (trace_dump_command): Include default-collect
3596 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3598 * symtab.c (find_function_start_sal): Never return SAL pointing
3599 before function start address, even if line info is missing.
3601 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3603 * NEWS: Mention tracepoints support.
3605 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3607 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3608 circular trace buffer statuses.
3610 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3612 * config/djgpp/fnchange.lst: Fix typo in translations for
3613 symbol-without-target_section.exp and symbol-without-target_section.c.
3615 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3617 * breakpoint.c (condition_command): Pass condition expression to
3618 set_breakpoint_condition stripped from breakpoint number.
3620 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3621 Thiago Jung Bauermann <bauerman@br.ibm.com>
3622 Tom Tromey <tromey@redhat.com>
3624 * breakpoint.c (condition_command): Simplify. Move condition
3626 (set_breakpoint_condition): ... here. New function.
3627 * breakpoint.h (set_breakpoint_condition): Declare.
3628 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3629 (SUBDIR_PYTHON_SRCS): Likewise.
3630 (py-breakpoint.o): New rule.
3631 * python/py-breakpoint.c: New file.
3632 * python/python-internal.h (gdbpy_breakpoints)
3633 (gdbpy_initialize_breakpoints): Declare.
3634 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3636 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3638 * regformats/regdat.sh: Include server.h. Don't include
3641 2010-04-08 Stan Shebs <stan@codesourcery.com>
3642 Pedro Alves <pedro@codesourcery.com>
3644 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3645 and circular_buffer.
3646 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3647 * tracepoint.c (trace_status_command): Display target's status for
3648 disconnected tracing and circular buffer.
3649 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3650 query for non-disconnected-tracing case, remove the stop_tracing
3652 (tfile_open): Clear disconnected and circular buffer status.
3653 (trace_save): Save disconnected and circular buffer status.
3654 (parse_trace_status): Parse disconnected and circular buffer status,
3655 also recognize disconnected as a stop reason.
3656 * remote.c (remote_set_disconnected_tracing): Only set
3657 QTDisconnected if the remote end supports disconnected tracing.
3658 Warn otherwise, if trying to enable disconnected tracing.
3659 * infcmd.c (detach_command): Update disconnect_tracing call.
3660 * cli/cli-cmds.c (quit_command): Ditto.
3662 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3664 * i387-tdep.c (i387_collect_xsave): Replace abort with
3667 2010-04-08 Stan Shebs <stan@codesourcery.com>
3669 * breakpoint.c (default_collect_info): New function.
3670 (breakpoints_info): Call it.
3671 (maintenance_info_breakpoints): Ditto.
3672 (tracepoints_info): Ditto.
3674 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3676 * i387-tdep.c (i387_collect_xsave): Re-indent.
3678 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3680 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3681 if HAVE_PTRACE_GETFPXREGS is defined.
3682 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3683 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3685 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3686 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3687 if .reg-xfp section doesn't exist.
3688 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3690 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3692 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3693 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3694 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3695 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3696 (i386_gdbarch_init): Update comments.
3697 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3699 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3701 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3703 * features/Makefile (i386/i386-mmx-expedite): New.
3704 (i386/i386-mmx-linux-expedite): Likewise.
3705 ($(outdir)/i386/i386-mmx.dat): Likewise.
3706 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3708 * features/i386/i386-mmx-linux.c: New.
3709 * features/i386/i386-mmx-linux.xml: Likewise.
3710 * features/i386/i386-mmx.c: Likewise.
3711 * features/i386/i386-mmx.xml: Likewise.
3712 * regformats/i386/i386-mmx-linux.dat: Likewise.
3713 * regformats/i386/i386-mmx.dat: Likewise.
3715 * features/Makefile (WHICH): Add i386/i386-mmx and
3716 i386/i386-mmx-linux.
3718 2010-04-08 Doug Evans <dje@google.com>
3720 * source.c (openp): Skip $cdir in PATH.
3722 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3725 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3727 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3728 address and a zero length.
3730 2010-04-08 Hui Zhu <teawater@gmail.com>
3732 * i386-tdep.c (i386_process_record): Add support for insn
3735 2010-04-07 Doug Evans <dje@google.com>
3737 * python/python.c (source_python_script): Use ensure_python_env
3738 to prepare environment for script.
3740 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3742 * amd64-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 (have_ptrace_getregset): Likewise.
3747 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3749 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3751 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3752 (amd64_linux_store_inferior_registers): Likewise.
3753 (amd64_linux_read_description): Check and enable AVX target
3756 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3757 and "features/i386/amd64-avx-linux.c".
3758 (amd64_linux_regset_sections): New.
3759 (amd64_linux_core_read_description): Check and enable AVX
3761 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3762 set_gdbarch_core_regset_sections.
3763 (_initialize_amd64_linux_tdep): Call
3764 initialize_tdesc_amd64_avx_linux.
3766 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3767 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3768 (tdesc_amd64_avx_linux): New.
3769 (amd64_linux_update_xstateregset): Likewise.
3771 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3772 (amd64_ymm_names): New.
3773 (amd64_ymmh_names): Likewise.
3774 (amd64_register_name): Likewise.
3775 (amd64_supply_xstateregset): Likewise.
3776 (amd64_collect_xstateregset): Likewise.
3777 (amd64_supply_xsave): Likewise.
3778 (amd64_collect_xsave): Likewise.
3779 (AMD64_NUM_REGS): Removed.
3780 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3781 %xmmN if AVX is available.
3782 (amd64_pseudo_register_name): Support pseudo YMM registers.
3783 (amd64_regset_from_core_section): Support .reg-xstate section.
3784 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3785 and ymm0h_regnum. Call set_gdbarch_register_name.
3786 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3788 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3789 AMD64_YMM15H_REGNUM.
3790 (AMD64_NUM_REGS): New.
3791 (amd64_supply_xsave): Likewise.
3792 (amd64_collect_xsave): Likewise.
3793 (amd64_register_name): Removed.
3794 (amd64_register_type): Likewise.
3796 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3798 * i387-tdep.c: Include "i386-xstate.h".
3799 (XSAVE_XSTATE_BV_ADDR): New.
3800 (xsave_avxh_offset): Likewise.
3801 (XSAVE_AVXH_ADDR): Likewise.
3802 (i387_supply_xsave): Likewise.
3803 (i387_collect_xsave): Likewise.
3805 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3806 (I387_YMM0H_REGNUM): Likewise.
3807 (I387_YMMENDH_REGNUM): Likewise.
3808 (i387_supply_xsave): Likewise.
3809 (i387_collect_xsave): Likewise.
3811 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3813 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3814 <sys/uio.h> and "i386-xstate.h".
3815 (PTRACE_GETREGSET): New.
3816 (PTRACE_SETREGSET): Likewise.
3817 (fetch_xstateregs): Likewise.
3818 (store_xstateregs): Likewise.
3819 (GETXSTATEREGS_SUPPLIES): Likewise.
3820 (regmap): Include 8 upper YMM registers.
3821 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3823 (i386_linux_store_inferior_registers): Likewise.
3824 (i386_linux_read_description): Check and enable AVX target
3827 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3828 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3829 (i386_linux_regset_sections): Add ".reg-xstate".
3830 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3831 (i386_linux_core_read_xcr0): New.
3832 (i386_linux_core_read_description): Check and enable AVX target
3834 (i386_linux_init_abi): Set xsave_xcr0_offset.
3835 (_initialize_i386_linux_tdep): Call
3836 initialize_tdesc_i386_avx_linux.
3838 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3839 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3840 (i386_linux_core_read_xcr0): New.
3841 (tdesc_i386_avx_linux): Likewise.
3842 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3844 * i386-tdep.c: Include "i386-xstate.h" and
3845 "features/i386/i386-avx.c".
3846 (i386_ymm_names): New.
3847 (i386_ymmh_names): Likewise.
3848 (i386_ymmh_regnum_p): Likewise.
3849 (i386_ymm_regnum_p): Likewise.
3850 (i386_xmm_regnum_p): Likewise.
3851 (i386_register_name): Likewise.
3852 (i386_ymm_type): Likewise.
3853 (i386_supply_xstateregset): Likewise.
3854 (i386_collect_xstateregset): Likewise.
3855 (i386_sse_regnum_p): Removed.
3856 (i386_pseudo_register_name): Support pseudo YMM registers.
3857 (i386_pseudo_register_type): Likewise.
3858 (i386_pseudo_register_read): Likewise.
3859 (i386_pseudo_register_write): Likewise.
3860 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3861 %xmmN if AVX is available.
3862 (i386_regset_from_core_section): Support .reg-xstate section.
3863 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3864 (i386_process_record): Replace i386_sse_regnum_p with
3866 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3867 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3868 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3869 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3870 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3871 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3873 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3875 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3876 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3878 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3879 (I386_AVX_NUM_REGS): New.
3880 (i386_xmm_regnum_p): Likewise.
3881 (i386_ymm_regnum_p): Likewise.
3882 (i386_ymmh_regnum_p): Likewise.
3884 * common/i386-xstate.h: New.
3886 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3888 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3890 * features/Makefile (WHICH): Add i386/i386-avx,
3891 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3892 (i386/i386-avx-expedite): New.
3893 (i386/i386-avx-linux-expedite): Likewise.
3894 (i386/x86-64-avx-expedite):Likewise.
3895 (i386/x86-64-avx-linux-expedite): Likewise.
3896 ($(outdir)/i386/i386-avx.dat): New dependency.
3897 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3898 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3899 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3901 * features/i386/32bit-avx.xml: New.
3902 * features/i386/64bit-avx.xml: Likewise.
3903 * features/i386/i386-avx-linux.c: Likewise.
3904 * features/i386/i386-avx-linux.xml: Likewise.
3905 * features/i386/i386-avx.c: Likewise.
3906 * features/i386/i386-avx.xml: Likewise.
3907 * features/i386/x86-64-avx-linux.c: Likewise.
3908 * features/i386/x86-64-avx-linux.xml: Likewise.
3909 * features/i386/x86-64-avx.c: Likewise.
3910 * features/i386/x86-64-avx.xml: Likewise.
3911 * regformats/i386/i386-avx-linux.dat: Likewise.
3912 * regformats/i386/i386-avx.dat: Likewise.
3913 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3914 * regformats/i386/x86-64-avx.dat: Likewise.
3916 2010-04-07 Doug Evans <dje@google.com>
3918 * top.c (source_file_name): Make const char *.
3919 * top.h (source_file_name): Update.
3920 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3922 (script_from_file): Change `file' arg to const char *.
3923 * cli/cli-script.h (script_from_file): Update.
3925 2010-04-06 Doug Evans <dje@google.com>
3927 * cli/cli-cmds.c (source_command): Run cleanups.
3929 2010-04-06 Stan Shebs <stan@codesourcery.com>
3931 * defs.h (char_ptr): Move typedef here from...
3932 * ada-lang.c (char_ptr): Remove.
3933 * charset.c (char_ptr): Remove.
3934 * tracepoint.h (struct uploaded_string): Remove.
3935 (struct uploaded_tp): Use vectors for string arrays.
3936 * tracepoint.c (trace_save): Use vectors of actions.
3937 (parse_tracepoint_definition): Ditto.
3938 (get_uploaded_tp): Clear vectors.
3939 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3940 (next_cmd): Change to an int.
3941 (read_next_cmd): Use vector of command strings.
3943 2010-04-06 Doug Evans <dje@google.com>
3945 * top.h (source_script, cd_command): Delete.
3946 * main.c: #include "cli/cli-cmds.h"
3948 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3950 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3951 type in bytes, not bits.
3953 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3955 * stabsread.c (define_symbol): Add support for char
3956 and string constants.
3958 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3960 Remove remaining "%ll" uses.
3961 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3963 * rs6000-nat.c (rs6000_ptrace64): Idem.
3964 * solib-pa64.c (pa64_current_sos): Idem.
3965 * solib-spu.c (spu_current_sos): Idem.
3966 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3968 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3970 * sh64-tdep.c (sh64_show_media_regs): Idem.
3972 2010-04-05 Stan Shebs <stan@codesourcery.com>
3974 * tracepoint.c: Include gdbcore.h.
3975 (tfile_xfer_partial): Return partial results, also try reading
3977 (tfile_has_all_memory): New function.
3978 (init_tfile_ops): Use it.
3980 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3983 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3984 the changes in data-directory.
3985 (init_sysinfo): Reload the syscall XML file if the data-directory
3988 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3991 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3993 2010-04-04 Stan Shebs <stan@codesourcery.com>
3994 Nathan Sidwell <nathan@codesourcery.com>
3996 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3997 breakpoints printed.
3998 (is_hardware_watchpoint): Make argument const.
3999 (is_watchpoint): Ditto.
4000 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
4002 (breakpoints_info): Pass NULL to breakpoint_1.
4003 (maintenance_info_breakpoints): Ditto.
4004 (watchpoints_info): New function.
4005 (tracepoints_info): Use breakpoint_1 filter.
4006 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
4007 (_initialize_breakpoint): Make "info watchpoints" its own command.
4008 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
4009 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
4011 2010-04-04 Stan Shebs <stan@codesourcery.com>
4013 * tracepoint.c (tfile_fetch_registers): Add fallback case.
4015 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4017 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
4018 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
4020 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4022 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
4023 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
4025 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4027 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
4030 2010-04-02 Hui Zhu <teawater@gmail.com>
4032 * i386-tdep.c (OT_DQUAD): New enum.
4033 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
4034 SSE3, SSSE3 and SSE4.
4036 2010-04-02 Hui Zhu <teawater@gmail.com>
4038 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
4041 2010-04-02 Pedro Alves <pedro@codesourcery.com>
4043 * tracepoint.c (trace_dump_actions): New, factored out from
4044 trace_dump_command, and adjusted to recurse into while-stepping's
4046 (trace_dump_command): Use it.
4048 2010-04-02 Pedro Alves <pedro@codesourcery.com>
4050 * breakpoint.h (struct counted_command_line): Moved definition to
4051 breakpoint.c, and forward declare.
4052 (breakpoint_commands): Declare.
4053 * breakpoint.c (struct counted_command_line): Moved here.
4054 (breakpoint_commands): New.
4055 * tracepoint.c (encode_actions): Use breakpoint_commands.
4056 * remote.c (remote_download_tracepoint): Ditto.
4058 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4060 * remote.c (remote_parse_stop_reply): Use hex_string instead
4061 of phex_nz for error.
4063 2010-04-01 Stan Shebs <stan@codesourcery.com>
4064 Nathan Sidwell <nathan@codesourcery.com>
4066 * tracepoint.h (enum actionline_type): Remove.
4067 (validate_actionline): Change return to void.
4068 * tracepoint.c (report_agent_reqs_errors): New function.
4069 (validate_actionline): Call it, change return to void, report errors
4071 (collect_symbol): Call report_agent_reqs_errors.
4072 (encode_actions_1): Ditto.
4073 (encode_actions): Don't expect a result from validate_actionline.
4075 2010-04-01 Stan Shebs <stan@codesourcery.com>
4077 * tracepoint.c (trace_start_command): Confirm if trace is running.
4078 (trace_stop_command): Error if trace not running.
4080 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4082 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4083 (AMD64_NUM_LOWER_BYTE_REGS): New.
4084 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4085 (amd64_pseudo_register_write): Likewise.
4086 (amd64_init_abi): Set num_byte_regs to 20.
4088 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4090 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4091 (prev_breakpoint_count): New.
4092 (set_breakpoint_count): Adjust.
4093 (rbreak_start_breakpoint_count): New.
4094 (start_rbreak_breakpoints): Adjust.
4095 (end_rbreak_breakpoints): Adjust.
4096 (struct commands_info) <arg>: New field.
4097 (do_map_commands_command): Tweak output to include breakpoint spec
4099 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
4100 ARG was empty on entry. Set INFO's arg.
4101 (create_breakpoint): Adjust.
4103 * NEWS: Clarify `commands' changes.
4105 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4107 * tracepoint.c: Include stack.h.
4108 (struct add_local_symbols_data): New.
4109 (do_collect_symbol): New.
4110 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4111 iterate_over_block_local_vars.
4112 * stack.c (print_block_frame_locals): Rewrite as ...
4113 (iterate_over_block_locals): ... this. Take a callback function
4114 pointer and generic data pointer, and call that instead of
4115 print_variable_and_value.
4116 (struct print_variable_and_value_data): New.
4117 (do_print_variable_and_value): New.
4118 (iterate_over_block_local_vars): New, abstracted out from
4119 print_frame_local_vars.
4120 (print_frame_local_vars): Rewrite using
4121 iterate_over_block_local_vars.
4122 (iterate_over_block_arg_vars): New, abstracted out from
4123 print_frame_arg_vars.
4124 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4125 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4126 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4128 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
4130 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
4131 instructions. Use the PC+4 if the base of the TBB or TBH is the
4134 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4136 Fix crash on reading wrong function declaration DWARF.
4137 * dwarf2read.c (read_subroutine_type): New variable void_type.
4138 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
4139 more close to their use.
4141 2010-03-31 Stan Shebs <stan@codesourcery.com>
4143 * breakpoint.c (tracepoint_save_command): Include variables,
4144 conditionals, tracepoint types, and default-collect.
4145 * tracepoint.c (save_trace_state_variables): New function.
4146 * tracepoint.h (save_trace_state_variables): Declare it.
4148 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
4150 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
4152 2010-03-30 Keith Seitz <keiths@redhat.com>
4154 * c-typeprint.c (c_type_print_args): Don't print "void"
4155 for java, regardless of whether it is TYPE_PROTOTYPED.
4156 Use the passed-in language instead of current_language.
4157 (c_type_print_varspec_suffix): Use current_language instead
4158 of assuming language_c.
4159 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4160 any return type specifier from the physname.
4162 2010-03-30 Pedro Alves <pedro@codesourcery.com>
4164 * tui/tui-interp.c (tui_is_toplevel): New.
4166 (tui_allowed_p): New.
4167 * tui/tui.c (tui_enable): Check if the TUI is allowed before
4169 * tui/tui.h (tui_allowed_p): Declare.
4171 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
4173 * serial.h: Include winsock2.h before windows.h.
4175 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
4177 * NEWS: Mention xmlRegisters= in qSupported packet.
4179 * i386-tdep.c: Include "remote.h".
4180 (_initialize_i386_tdep): Call register_remote_support_xml.
4182 * remote.c (remote_support_xml): New.
4183 (register_remote_support_xml): Likewise.
4184 (remote_query_supported_append): Likewise.
4185 (remote_query_supported): Support remote_support_xml.
4187 * remote.h (register_remote_support_xml): New.
4189 2010-03-29 Stan Shebs <stan@codesourcery.com>
4191 * tracepoint.c (trace_find_line_command): Remove dead code.
4193 * tracepoint.h (struct uploaded_string): New struct.
4194 (struct uploaded_tp): New fields for source strings.
4195 * breakpoint.c (this_utp, next_cmd): New globals.
4196 (read_uploaded_action): New function.
4197 (create_tracepoint_from_upload): Fill in more parts
4199 * tracepoint.c (encode_source_string): New function.
4200 (trace_save): Write out source strings, fix error checks.
4201 (parse_tracepoint_definition): Add source string parsing.
4202 * remote.c (PACKET_TracepointSource): New packet type.
4203 (remote_download_command_source): New function.
4204 (remote_download_tracepoint): Download source pieces also.
4205 (_initialize_remote): Add packet config command.
4207 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4210 * tracepoint.c (start_tracing): Check tracepoints before sending
4211 commands to target, don't start if all tracepoints disabled.
4213 2010-03-28 Pedro Alves <pedro@codesourcery.com>
4215 * cli/cli-script.c (process_next_line): Handle 'stepping'.
4217 2010-03-26 Stan Shebs <stan@codesourcery.com>
4219 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4221 2010-03-26 Tom Tromey <tromey@redhat.com>
4223 * breakpoint.c (commands_command_1): Duplicate 'arg'.
4225 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4227 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4228 (skip_prologue_sal): Remove local definition.
4229 (resolve_sal_pc): Remove now unnecessary code.
4230 * linespec.c (minsym_found): Call skip_prologue_sal.
4231 * symtab.c (find_function_start_pc): Remove.
4232 (find_function_start_sal): Extract prologue skipping into ...
4233 (skip_prologue_sal): ... this new function. Handle code both
4234 with and without debug info. Respect SAL's explicit_pc and
4235 explicit_line flags. Inline old find_function_start_pc.
4236 * symtab.h (find_function_start_pc): Remove.
4237 (skip_prologue_sal): Add prototype.
4239 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4241 * dwarf2read.c (read_func_scope): Also scan specification DIEs
4242 for DW_TAG_imported_module children.
4244 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4246 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4247 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4248 * completer.c (add_struct_fields): Fix inverted logic.
4250 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4252 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4254 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4256 * tracepoint.c (current_trace_status): Don't make sure error_desc
4258 (parse_trace_status): Release a previous error_desc string, and
4259 set it to NULL by default. If stop reason is tracepoint_error,
4260 make sure error_desc is not left NULL.
4262 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4264 * tracepoint.c (trace_save): Remove X from tracepoint error
4267 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4269 * tracepoint.c (parse_trace_status): Don't allow plain strings in
4270 the terror description. Don't expect an X prefix.
4272 2010-03-25 Stan Shebs <stan@codesourcery.com>
4274 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4275 (struct trace_status): New field error_desc.
4276 * tracepoint.c (stop_reason_names): Add terror.
4277 (current_trace_status): Ensure non-NULL error description.
4278 (trace_status_command): Add error report.
4279 (trace_status_mi): Ditto.
4280 (trace_save): Add special case for error description.
4281 (parse_trace_status): Add case for errors.
4283 2010-03-25 Keith Seitz <keiths@redhat.com>
4285 * dwarf2read.c (read_subroutine_type): If the compilation unit
4286 language is Java, mark any formal parameter named "this" as
4287 artificial (GCC/43521).
4288 (dwarf2_name): Add special handling for Java constructors.
4290 2010-03-25 Tom Tromey <tromey@redhat.com>
4292 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4293 * infrun.c (handle_inferior_event): Change initialization of
4295 (handle_inferior_event): Change assignment to stop_stack_dummy.
4296 (normal_stop): Update use of stop_stack_dummy.
4297 (struct inferior_status) <stop_stack_dummy>: Change type.
4298 * inferior.h (stop_stack_dummy): Update.
4299 * infcmd.c (stop_stack_dummy): Change type.
4300 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4302 (call_function_by_hand): Call set_std_terminate_breakpoint.
4303 Rewrite std::terminate handling.
4304 * breakpoint.h (enum bptype) <bp_std_terminate,
4305 bp_std_terminate_master>: New.
4306 (enum stop_stack_kind): New.
4307 (struct bpstat_what) <call_dummy>: Change type.
4308 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4310 * breakpoint.c (create_std_terminate_master_breakpoint): New
4312 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4313 Call create_std_terminate_master_breakpoint.
4314 (print_it_typical): Handle new breakpoint kinds.
4315 (bpstat_stop_status): Handle bp_std_terminate_master.
4316 (bpstat_what): Correctly set call_dummy field. Handle
4317 bp_std_terminate_master and bp_std_terminate.
4318 (print_one_breakpoint_location): Update.
4319 (allocate_bp_location): Update.
4320 (set_std_terminate_breakpoint): New function.
4321 (delete_std_terminate_breakpoint): Likewise.
4322 (create_thread_event_breakpoint): Update.
4323 (delete_command): Update.
4324 (breakpoint_re_set_one): Update.
4325 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4327 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4329 * symfile.c (build_section_addr_info_from_bfd): New.
4330 (build_section_addr_info_from_objfile): Base it on
4331 build_section_addr_info_from_bfd.
4332 (addrs_section_compar, addrs_section_sort): New.
4333 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4334 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4335 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4337 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4339 * elfread.c (find_separate_debug_file_by_buildid):
4340 Remove unused local variable.
4342 2010-03-24 Tom Tromey <tromey@redhat.com>
4344 PR breakpoints/9352:
4345 * NEWS: Mention changes to `commands' and `rbreak'.
4346 * symtab.c (do_end_rbreak_breakpoints): New function.
4347 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4348 end_rbreak_breakpoints.
4349 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4350 (set_breakpoint_count): Likewise. Clear last_was_multi.
4351 (multi_start, multi_end, last_was_multi): New globals.
4352 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4354 (struct commands_info): New
4355 (do_map_commands_command): New function.
4356 (commands_command_1): New function.
4357 (commands_command): Use it.
4358 (commands_from_control_command): Likewise.
4359 (do_delete_breakpoint): New function.
4360 (delete_command): Use it.
4361 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4362 (do_map_disable_breakpoint): New function.
4363 (disable_command): Use it.
4364 (do_map_enable_breakpoint): New function.
4365 (enable_command): Use it.
4366 (enable_once_breakpoint): Add argument.
4367 (enable_once_command): Update.
4368 (enable_delete_breakpoint): Add argument.
4369 (enable_delete_command): Update.
4370 (break_command_really): Set last_was_multi when needed.
4371 (check_tracepoint_command): Fix formatting.
4372 (validate_commands_for_breakpoint): New function.
4373 (breakpoint_set_commands): Use it.
4374 (tracepoint_save_command): Update.
4375 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4378 2010-03-24 Tom Tromey <tromey@redhat.com>
4380 * breakpoint.h (struct counted_command_line): New struct.
4381 (struct breakpoint) <commands>: Change type.
4382 (struct bpstats) <commands>: Change type.
4383 <commands_left>: New field.
4384 * breakpoint.c (alloc_counted_command_line): New function.
4385 (incref_counted_command_line): Likewise.
4386 (decref_counted_command_line): Likewise.
4387 (do_cleanup_counted_command_line): Likewise.
4388 (make_cleanup_decref_counted_command_line): Likewise.
4389 (breakpoint_set_commands): Use decref_counted_command_line and
4390 alloc_counted_command_line.
4391 (commands_command): Don't error if breakpoint commands are
4393 (commands_from_control_command): Likewise.
4394 (bpstat_free): Update.
4395 (bpstat_copy): Likewise.
4396 (bpstat_clear_actions): Likewise.
4397 (bpstat_do_actions_1): Likewise.
4398 (bpstat_stop_status): Likewise.
4399 (print_one_breakpoint_location): Likewise.
4400 (delete_breakpoint): Likewise.
4401 (bpstat_alloc): Initialize new field.
4402 (tracepoint_save_command): Update.
4403 * tracepoint.c (encode_actions): Update.
4404 (trace_dump_command): Update.
4406 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4408 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4409 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4410 (read_structure_type): For RealView, set TYPE_STUB on structures with
4411 no byte size and no children.
4412 (read_subroutine_type): Mark functions as prototyped by default.
4413 * symtab.c (producer_is_realview): New function.
4414 * symtab.h (expand_line_sal): Fix declaration formatting.
4415 (producer_is_realview): Declare.
4417 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4419 * arm-tdep.c (skip_prologue_function): New function.
4420 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4421 (thumb_analyze_prologue): Document return value. Recognize more
4422 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4424 (arm_skip_prologue): Remove call dummy check. Check the prologue
4425 for non-GNU compilers.
4426 (arm_instruction_changes_pc): New function.
4427 (arm_analyze_prologue): New function, broken out from
4428 arm_scan_prologue. Recognize more ARM instructions and skippable
4429 calls. Update comments. Handle NULL cache. Return the address
4430 of the first unrecognized instruction. Do not skip past other
4431 instructions which change control flow. Add debug output.
4432 (arm_scan_prologue): Use arm_analyze_prologue.
4433 (ARM_PC_32): Delete.
4434 (shifted_reg_val): Simplify ARM_PC_32 check.
4436 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4438 * tracepoint.c (tvariables_info_1): Actually compute
4439 the number of rows in the result.
4441 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4443 * remote.c (crc32): Constify `buf' parameter.
4444 (remote_verify_memory): New, abstracted out from...
4445 (compare_sections_command): ... this. Remove hardcoded target
4447 (init_remote_ops): Install remote_verify_memory.
4448 * target.c (target_verify_memory): New.
4449 * target.h (struct target_ops) <to_verify_memory>: New field.
4450 (target_verify_memory): Declare.
4452 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4454 Implement -trace-save.
4456 * mi-cmds.h (mi_cmds_trace_save): Declare.
4457 * mi-cmds.c (mi_cmds): Register -trace-save.
4458 * mi/mi-main.c (mi_cmd_trace_save): New.
4459 * remote.c (remote_save_trace_data): Take const parameter.
4460 * target.h (struct target_ops::to_save_trace_data): Take
4462 * target.c (update_current_target): Adjust to the above.
4463 * tracepoint.c (trave_save): New, extracted from
4464 (trace_save_command): ...this.
4465 (tfile_trace_find): Remove message that is unnecessary now
4466 that 'tfind' reports found frame.
4467 * tracepoint.h (trace_save): Declare.
4469 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4471 Implement -trace-find.
4473 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4474 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4475 * mi/mi-main.c (mi_cmd_trace_find): New.
4476 * target.h (struct target_ops): Document to_trace_find.
4477 * tracepoint.h (tfind_1): Declare.
4478 * tracepoint.c (finish_tfind_command): Rename to...
4480 * remote.c (remote_trace_find): Return -1 if target say
4481 there's no frame. Improve error diagnostics.
4483 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4485 -trace-define-variable and -trace-list-variables.
4487 * tracepoint.c (create_trace_state_variable): Make
4488 private copy of name, as opposed to assuming the
4489 pointer lives forever.
4490 (tvariables_info_1): New.
4491 (tvariables_info): Use the above.
4492 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4494 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4495 and -trace-list-variables.
4496 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4497 (mi_cmd_trace_list_variables): New.
4498 * mi/mi-main.c (mi_cmd_trace_define_variable)
4499 (mi_cmd_trace_list_variables): New.
4501 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4503 Implement -break-passcount.
4505 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4506 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4507 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4509 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4511 -trace-start/-trace-end/-trace-status.
4513 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4515 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4516 (mi_cmd_trace_stop): Declare.
4517 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4518 (mi_cmd_trace_stop): New.
4519 * tracepoint.c (start_tracing): New, extracted from...
4520 (trace_start_command): ...this.
4521 (trace_status_mi): New.
4522 * tracepoint.h (struct trace_status): Document
4523 stopping_tracepoint.
4524 (start_tracing, stop_tracing, trace_status_mi): Declare.
4526 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4528 Implement creating tracepoints with -break-insert.
4530 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4531 to mean that tracepoint should be created.
4533 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4535 * breakpoint.c (check_no_tracepoint_commands): Use
4536 current spelling of 'teval'.
4538 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4540 Unify actions and commands
4542 * defs.h (read_command_lines, read_command_lines_1): New
4543 parameters validator and closure.
4544 * tracepoint.h (struct action_line): Remove.
4545 * breakpoint.h (struct breakpoint): Remove the 'actions'
4547 * defs.h (enum command_control_type): New value
4548 while_stepping_control.
4549 (struct command_line): Add comments.
4550 * breakpoint.c (breakoint_is_tracepoint): New.
4551 (breakpoint_set_commands): For tracepoints,
4552 verify the commands are permissible.
4553 (check_tracepoint_commands): New.
4554 (commands_command): Require that each new line is validated using
4555 check_tracepoint_command, if we set commands for a tracepoint.
4556 (create_tracepoint_from_upload): Likewise.
4557 (print_one_breakpoint_location): Remove the code to print
4558 actions specifically.
4559 (tracepoint_save_command): Relay to print_command_lines.
4560 * cli/cli-script.c (process_next_line): New parameters validator
4561 and closure. Handle 'while-stepping'. Call validator if not null.
4562 (read_command_lines, read_command_lines1): Likewise.
4563 (recurse_read_control_structure): New parameters validator and
4564 closure. Handle while_stepping_control.
4565 (print_command_lines): Handle while-stepping.
4566 (get_command_line, define_command, document_command): Adjust.
4567 * remote.c (remote_download_tracepoint): Adjust.
4568 * tracepoint.c (make_cleanup_free_actions, read_actions)
4569 (free_actions, do_free_actions_cleanup): Remove.
4570 (trace_actions_command): Use read_command_lines.
4571 (validate_actionline): Use error in one place.
4572 (encode_actions_1): New, extracted from...
4573 (encode_actions): ...this. Also use cleanups for exception
4575 (trace_dump_command): Adjust.
4576 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4579 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4581 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4583 2010-03-22 Stan Shebs <stan@codesourcery.com>
4585 * value.c (value_static_field): Be lazy about the field's value.
4587 2010-03-22 Reid Kleckner <reid@kleckner.net>
4590 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4592 (disable_breakpoints_in_shlibs): Likewise.
4594 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4596 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4597 GCC 4.1 debug info generation (GCC PR c++/28460).
4598 (determine_prefix): Likewise.
4600 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4602 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4604 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4606 2010-03-19 Stan Shebs <stan@codesourcery.com>
4608 * ax-gdb.c (gen_fetch): Handle bool.
4609 (gen_usual_unary): Ditto.
4611 (gen_equal): New function.
4612 (gen_less): New function.
4613 (gen_expr_binop_rest): Call them, also return integer type from
4617 2010-03-19 Tom Tromey <tromey@redhat.com>
4619 * jv-lang.c (jv_dynamics_objfile_data_key)
4620 (jv_type_objfile_data_key): New globals.
4621 (class_symtab): Move earlier.
4622 (jv_per_objfile_free): New function.
4623 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4625 Remove ancient #if 1.
4626 (add_class_symbol): Remove redundant declaration.
4627 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4628 (java_link_class_type): Mark as static. Update.
4629 (jv_clear_object_type): New function.
4630 (set_java_object_type): Likewise.
4631 (get_java_object_type): Use set_java_object_type.
4632 (is_object_type): Likewise.
4633 (_initialize_java_language): Register new objfile keys.
4634 (get_java_class_symtab): Add 'gdbarch' parameter.
4635 (add_class_symtab_symbol): Update.
4636 (type_from_class): Update.
4638 2010-03-19 Stan Shebs <stan@codesourcery.com>
4640 * ax-general.c (ax_const_l): Fix a sizing bug.
4642 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4646 2010-03-18 Stan Shebs <stan@codesourcery.com>
4647 Pedro Alves <pedro@codesourcery.com>
4649 * target.h (struct target_ops): New method
4650 to_set_circular_trace_buffer.
4651 (target_set_circular_trace_buffer): New macro.
4652 * target.c (update_current_target): Add
4653 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4655 * remote.c (remote_set_circular_trace_buffer): New function.
4656 (init_remote_ops): Add it to vector.
4657 * tracepoint.h (struct trace_status): New field traceframes_created,
4658 change buffer_size and buffer_free to int.
4659 * tracepoint.c (circular_trace_buffer): New global.
4660 (start_tracing): Send values of disconnected tracing and circular
4661 trace buffer settings.
4662 (set_circular_trace_buffer): New function.
4663 (parse_trace_state): Handle total space and frames created.
4664 (trace_status_command): Display total space and total frames
4666 (trace_save): Write out new status values.
4667 (parse_trace_status): Set traceframe_count, traceframes_created,
4668 buffer_free and buffer_size to -1 by default.
4669 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4670 * NEWS: Mention the circular trace buffer option.
4672 2010-03-18 Tom Tromey <tromey@redhat.com>
4674 * infcmd.c (finish_command_continuation): Wrap print_return_value
4677 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4679 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4680 DIE has a name before creating the associated partial symbol.
4681 (read_func_scope): Emit a complaint if the subprogram does not
4682 have a name or when we can't extract the subprogram PC bounds.
4684 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4686 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4687 instead of selected frame architecture.
4689 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4691 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4692 a valid selected thread, and that it is not running.
4693 (advance_command): Ditto.
4694 (finish_command): Ditto.
4696 2010-03-17 Stan Shebs <stan@codesourcery.com>
4698 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4700 * infcall.c: Include tracepoint.h.
4701 (call_function_by_hand): Disallow calls in tfind mode.
4702 * infcmd.c: Include tracepoint.h.
4703 (ensure_not_tfind_mode): New function.
4704 (continue_1): Call it.
4706 (jump_command): Ditto.
4707 (signal_command): Ditto.
4708 (advance_command): Ditto.
4709 (until_command): Ditto.
4710 (finish_command): Ditto.
4711 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4713 * ax-gdb.h (struct axs_value): New field optimized_out.
4714 (gen_trace_for_var): Add gdbarch argument.
4715 * ax-gdb.c (gen_trace_static_fields): New function.
4716 (gen_traced_pop): Call it, add gdbarch argument.
4717 (gen_trace_for_expr): Update call to it.
4718 (gen_trace_for_var): Ditto, and report optimized-out variables.
4719 (gen_struct_ref_recursive): Check for optimized-out value.
4720 (gen_struct_elt_for_reference): Ditto.
4721 (gen_static_field): Pass gdbarch instead of expression, assume
4722 optimization if field not found.
4723 (gen_var_ref): Set the optimized_out flag.
4724 (gen_expr): Error on optimized-out variable.
4725 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4726 expressions, skip optimized-out variables with computed locations.
4727 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4728 erroring out if location expression missing.
4729 (loclist_tracepoint_var_ref): Don't error out here.
4731 2010-03-17 Tom Tromey <tromey@redhat.com>
4733 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4734 DWARF data is available.
4736 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4738 * symfile.c (generic_load): Reset breakpoints after loading.
4740 2010-03-17 Tom Tromey <tromey@redhat.com>
4742 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4744 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4746 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4747 create_breakpoint call, adjust the parameters.
4749 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4750 Chandru <chandru@in.ibm.com>
4752 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4753 * valarith.c (value_subscripted_rvalue): Suppress error if
4754 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4756 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4758 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4760 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4762 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4763 before doing the associated thread switch.
4765 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4767 * MAINTAINERS: Update my email address.
4769 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4771 Simplify MI breakpoint setting.
4773 * breakpoint.c (break_command_really): Make nonstatic and
4775 (create_breakpoint): ...this. Rename prior function by this name
4777 (create_breakpoint_sal): ...this.
4778 (create_breakpoints): Rename to...
4779 (create_breakpoints_sal): ...this.
4780 (set_breakpoint): Remove.
4781 * breakpoint.h: Adjust to above changes.
4782 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4784 2010-03-15 Stan Shebs <stan@codesourcery.com>
4786 * ax-gdb.c: Include cp-support.h.
4787 (find_field): Remove.
4788 (gen_primitive_field): New function.
4789 (gen_struct_ref_recursive): New function.
4790 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4792 (gen_static_field): New function.
4793 (gen_struct_elt_for_reference): New.
4794 (gen_namespace_elt): New.
4795 (gen_maybe_namespace_elt): New.
4796 (gen_aggregate_elt_ref): New.
4797 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4799 2010-03-15 Tom Tromey <tromey@redhat.com>
4801 * dwarf2read.c (die_needs_namespace): Also return 0 for
4804 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4807 * cp-support.h: Added char *declaration element to using_direct
4809 (cp_add_using): Added char *declaration argument.
4810 (cp_add_using_directive): Ditto.
4811 (cp_lookup_symbol_imports): made extern.
4812 * cp-namespace.c: Updated with the above changes.
4813 * dwarf2read.c (read_import_statement): Ditto.
4814 (read_namespace): Ditto.
4815 (read_import_statement): Support import declarations.
4816 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4818 Added support for 'declaration_only' search.
4819 (cp_lookup_symbol_namespace): Attempt to search for the name as
4820 is before consideration of imports.
4821 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4822 search at every block level search.
4823 Now takes language argument.
4824 (lookup_symbol_aux): Updated.
4826 2010-03-15 Tom Tromey <tromey@redhat.com>
4828 * c-exp.y (name_not_typename): Add 'operator' clause.
4830 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4832 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4833 * configure: Regenerate.
4835 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4838 and ".sdynbss". Update the comment.
4840 2010-03-15 Jie Zhang <jie@codesourcery.com>
4842 * MAINTAINERS: Update my email address.
4844 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4846 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4848 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4850 * charset.c [USE_WIN32API]: Include <windows.h>.
4851 (_initialize_charset): Correct type of w32_host_default_charset.
4853 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4855 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4857 2010-03-12 Tom Tromey <tromey@redhat.com>
4860 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4861 in a lexical block does not need a namespace.
4862 (new_symbol) <DW_TAG_variable>: Put extern variables on
4863 list_in_scope in all cases.
4865 2010-03-12 Stan Shebs <stan@codesourcery.com>
4867 * ax-gdb.c (gen_expr): Add shift expressions.
4868 (gen_expr_binop_rest): Ditto.
4870 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4872 * buildsym.c (finish_block): Reset using_directives pointer
4873 after block initialization.
4875 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4877 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4878 * i386-tdep.c (i386_word_names): Likewise.
4880 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4882 * target.c (memory_xfer_partial): Don't use the stack cache if
4883 inspecting trace frames.
4884 * tracepoint.c (finish_tfind_command): Invalidate the target
4887 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4889 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4890 for the PIC displacement, print also the displacement value.
4891 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4893 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4895 * remote-mips.c (close_ports, mips_initialize_cleanups)
4896 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4897 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4898 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4899 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4900 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4901 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4902 comments describing each of these functions.
4903 (mips_enter_debug, mips_exit_debug, common_open)
4904 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4905 blank line after the comment describing the function.
4907 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4909 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4910 parameter displacementp. Update comment.
4911 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4912 element exists. Return if svr4_exec_displacement was not successful.
4915 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4916 Daniel Jacobowitz <dan@codesourcery.com>
4918 * solib-svr4.c (read_program_header): Support type == -1 to read
4919 all program headers.
4920 (read_program_headers_from_bfd): New function.
4921 (svr4_static_exec_displacement): Remove and move the comment ...
4922 (svr4_exec_displacement): ... here. Remove variable found. New
4923 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4924 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4925 targets using read_program_headers_from_bfd. Remove the call of
4926 svr4_static_exec_displacement.
4928 2010-03-10 Tom Tromey <tromey@redhat.com>
4930 * dwarf2read.c (struct pubnames_header): Remove.
4931 (_PUBNAMES_HEADER): Remove.
4932 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4933 (struct aranges_header): Remove.
4934 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4935 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4936 (PUBNAMES_SECTION): Remove.
4937 (ARANGES_SECTION): Remove.
4938 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4939 (dwarf2_build_psymtabs): Remove dead code.
4940 (dwarf2_build_psymtabs_easy): Remove.
4942 2010-03-10 Tom Tromey <tromey@redhat.com>
4944 * elfread.c (elf_symfile_read): Don't call
4945 dwarf2_build_frame_info.
4946 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4947 (struct dwarf2_per_objfile) <objfile>: New field.
4948 (dwarf2_has_info): Now idempotent. Set objfile field.
4949 (dwarf2_read_section): Check and set readin field. Call
4951 (dwarf2_build_psymtabs): Don't read all sections.
4952 (read_type_comp_unit_head): Read types section.
4953 (create_debug_types_hash_table): Likewise.
4954 (init_cu_die_reader): Add asserts.
4955 (process_type_comp_unit): Add assert.
4956 (dwarf2_build_psymtabs_hard): Read info section.
4957 (load_partial_comp_unit): Add assert.
4958 (create_all_comp_units): Read info section.
4959 (load_full_comp_unit): Likewise.
4960 (dwarf2_ranges_read): Read ranges section.
4961 (dwarf2_record_block_ranges): Add assert.
4962 (dwarf2_read_abbrevs): Read abbrev section.
4963 (read_indirect_string): Read str section.
4964 (dwarf_decode_line_header): Read line section.
4965 (read_signatured_type_at_offset): Read types section.
4966 (dwarf_decode_macros): Read macinfo section.
4967 (dwarf2_symbol_mark_computed): Read loc section.
4968 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4969 dwarf2_build_frame_info.
4970 (dwarf2_build_frame_info): Unconditionally set
4971 dwarf2_frame_objfile_data on the objfile.
4972 * configure.ac: Check for posix_madvise.
4973 * config.in, configure: Rebuild.
4975 2010-03-10 Tom Tromey <tromey@redhat.com>
4977 * xcoffread.c (xcoff_start_psymtab): Update.
4978 (xcoff_end_psymtab): Update.
4979 * psymtab.c (allocate_psymtab): Remove dead code.
4980 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4982 * mdebugread.c (parse_partial_symbols): Update.
4983 (new_psymtab): Likewise.
4984 * dwarf2read.c (process_psymtab_comp_unit): Update.
4985 (psymtab_to_symtab_1): Update.
4986 * dbxread.c (start_psymtab): Update.
4987 (end_psymtab): Likewise.
4989 2010-03-10 Tom Tromey <tromey@redhat.com>
4991 * xcoffread.c: Include psymtab.h.
4992 (xcoff_sym_fns): Update.
4993 * symtab.h (struct partial_symbol): Remove.
4994 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4995 (struct partial_symtab): Remove.
4996 (PSYMTAB_TO_SYMTAB): Remove.
4997 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4998 (find_pc_sect_psymtab): Remove.
4999 (find_pc_sect_symtab_via_partial): Declare.
5000 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
5001 (find_main_psymtab): Remove.
5002 (find_main_filename): Declare.
5003 (fixup_psymbol_section): Remove.
5004 (fixup_section): Declare.
5005 * symtab.c: Include psymtab.h.
5006 (lookup_symtab): Use lookup_symtab method.
5007 (lookup_partial_symtab): Remove.
5008 (find_pc_sect_psymtab_closer): Remove.
5009 (find_pc_sect_psymtab): Remove.
5010 (find_pc_sect_symtab_via_partial): New function.
5011 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
5012 (fixup_section): No longer static.
5013 (fixup_psymbol_section): Remove.
5014 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
5015 (lookup_global_symbol_from_objfile): Likewise.
5016 (lookup_symbol_aux_psymtabs): Remove.
5017 (lookup_symbol_aux_quick): New function.
5018 (lookup_symbol_global): Use lookup_symbol_aux_quick.
5019 (lookup_partial_symbol): Remove.
5020 (basic_lookup_transparent_type_quick): New function.
5021 (basic_lookup_transparent_type): Use it.
5022 (find_main_psymtab): Remove.
5023 (find_main_filename): New function.
5024 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
5025 (find_line_symtab): Use expand_symtabs_with_filename method.
5026 (output_partial_symbol_filename): New function.
5027 (sources_info): Use map_partial_symbol_filenames.
5028 (struct search_symbols_data): New type.
5029 (search_symbols_file_matches): New function.
5030 (search_symbols_name_matches): Likewise.
5031 (search_symbols): Use expand_symtabs_matching method.
5032 (struct add_name_data): Rename from add_macro_name_data.
5033 (add_macro_name): Update.
5034 (add_partial_symbol_name): New function.
5035 (default_make_symbol_completion_list): Use
5036 map_partial_symbol_names.
5037 (struct add_partial_symbol_name): New type.
5038 (maybe_add_partial_symtab_filename): New function.
5039 (make_source_files_completion_list): Use
5040 map_partial_symbol_filenames.
5041 (expand_line_sal): Use expand_symtabs_with_filename method.
5042 * symmisc.c: Include psymtab.h.
5043 (print_objfile_statistics): Use print_stats method.
5044 (dump_objfile): Use dump method.
5045 (dump_psymtab, maintenance_print_psymbols)
5046 (maintenance_info_psymtabs, maintenance_check_symtabs)
5047 (extend_psymbol_list): Remove.
5048 * symfile.h (struct quick_symbol_functions): New struct.
5049 (struct sym_fns) <qf>: New field.
5050 (sort_pst_symbols): Remove.
5051 (increment_reading_symtab): Declare.
5052 * symfile.c: Include psymtab.h.
5053 (compare_psymbols, sort_pst_symbols): Remove.
5054 (psymtab_to_symtab): Remove.
5055 (increment_reading_symtab): New function.
5056 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
5058 (set_initial_language): Use find_main_filename.
5059 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
5060 (free_named_symtabs): Remove unused code.
5061 (start_psymtab_common, add_psymbol_to_bcache)
5062 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
5064 * stack.c: Include psymtab.h, symfile.h.
5065 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
5066 * source.h (psymtab_to_fullname): Don't declare.
5067 * source.c: Include psymtab.h.
5068 (select_source_symtab): Use find_last_source_symtab method.
5069 (forget_cached_source_info): Use forget_cached_source_info
5071 (find_and_open_source): No longer static.
5072 (psymtab_to_fullname): Remove.
5073 * somread.c: Include psymtab.h.
5074 (som_sym_fns): Update.
5075 * psympriv.h: New file.
5076 * psymtab.h: New file.
5077 * psymtab.c: New file.
5078 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5079 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5080 * objfiles.c: Include psymtab.h.
5081 (objfile_relocate1): Use relocate method.
5082 (objfile_has_partial_symbols): Use has_symbols method.
5083 * mipsread.c: Include psymtab.h.
5084 (ecoff_sym_fns): Update.
5085 * mi/mi-cmd-file.c: Include psymtab.h.
5086 (print_partial_file_name): New function.
5087 (mi_cmd_file_list_exec_source_files): Use
5088 map_partial_symbol_filenames.
5089 * mdebugread.c: Include psympriv.h.
5090 * machoread.c: Include psympriv.h.
5091 (macho_sym_fns): Update.
5092 * m2-exp.y (yylex): Use lookup_symtab.
5093 * elfread.c: Include psympriv.h.
5094 (elf_sym_fns): Update.
5095 * dwarf2read.c: Include psympriv.h.
5096 * dbxread.c: Include psympriv.h.
5097 (aout_sym_fns): Update.
5098 * cp-support.c: Include psymtab.h.
5099 (read_in_psymtabs): Remove.
5100 (make_symbol_overload_list_qualified): Use
5101 expand_symtabs_for_function method.
5102 * coffread.c: Include psympriv.h.
5103 (coff_sym_fns): Update.
5104 * blockframe.c: Include psymtab.h.
5105 (find_pc_partial_function): Use find_pc_sect_symtab method.
5106 * ada-lang.h (ada_update_initial_language): Update.
5107 * ada-lang.c: Include psymtab.h.
5108 (ada_update_initial_language): Remove 'main_pst' argument.
5109 (ada_lookup_partial_symbol): Remove.
5110 (struct ada_psym_data): New type.
5111 (ada_add_psyms): New function.
5112 (ada_add_non_local_symbols): Use map_ada_symtabs method.
5113 (struct add_partial_datum): New type.
5114 (ada_add_partial_symbol_completions): New function.
5115 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5116 (ada_exception_support_info_sniffer): Update.
5117 * Makefile.in (SFILES): Add psymtab.c.
5118 (COMMON_OBS): Add psymtab.o.
5119 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5121 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5123 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5125 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
5128 * cp-namespace.c (cp_add_using): Deleted.
5129 (cp_add_using_directive): Use obstack allocations.
5130 Merged the function cp_add_using into this one.
5131 Added 'struct obstack *' argument.
5132 (cp_scan_for_anonymous_namespaces): Updated.
5133 * cp-support.h: Updated.
5134 * dwarf2read.c (read_import_statement): Updated.
5135 (read_namespace): Updated.
5137 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5139 * windows-nat.c (cygwin_conv_path): Remove old macro.
5141 2010-03-10 Pedro Alves <pedro@codesourcery.com>
5143 * breakpoint.c (condition_command): Handle watchpoint conditions.
5144 (is_hardware_watchpoint): Add comment.
5145 (is_watchpoint): New.
5146 (update_watchpoint): Don't reparse the watchpoint's condition
5149 (watchpoint_check): Use it.
5150 (bpstat_check_watchpoint): Handle it.
5151 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5152 conditions in a frame where it makes sense.
5153 (watch_command_1): Store the innermost block of the condition
5155 (delete_breakpoint): Delete the watchpoint condition expression.
5156 * breakpoint.h (struct bp_location) <cond>: Update comment.
5157 (struct breakpoint): New field `cond_exp_valid_block'.
5159 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5161 Adjust handling of Ada DIEs after dwarf2_physname patch.
5162 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5164 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
5165 Pierre Muller <muller@ics.u-strasbg.fr>
5167 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5168 from/to posix/win32.
5169 (windows_make_so): Use non-Cygwin 1.7 specific function.
5170 (windows_create_inferior): Make sure that cygallargs points to
5171 original args in non Cygwin 1.7. case.
5173 2010-03-09 Michael Snyder <msnyder@vmware.com>
5175 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5176 after target_read_memory to get host byte order.
5177 (i386_process_record): Ditto.
5179 2010-03-09 Keith Seitz <keiths@redhat.com>
5181 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
5182 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5183 print out const or volatile qualifiers, too.
5184 (c_type_print_args): Add parameters show_artificial and language.
5185 Skip artificial parameters when requested.
5186 Use the appropriate language printer.
5187 (c_type_print_varspec): Tell c_type_print_args to skip artificial
5188 parameters and pass language_c.
5189 * dwarf2read.c (die_list): New file global.
5190 (struct partial_die_info): Update comments for name field.
5191 (pdi_needs_namespace): Renamed to ...
5192 (die_needs_namespace): ... this. Rewrite.
5193 (dwarf2_linkage_name): Remove.
5194 (add_partial_symbol): Do not predicate the call to
5195 partial_die_full_name based on pdi_needs_namespace.
5196 Remove call to cp_check_possible_namespace_symbols and associated
5198 (guess_structure_name): Do not inspect child subprogram DIEs.
5199 (dwarf2_fullname): Update comments.
5200 Use die_needs_namespace to assist in computing the name.
5201 (read_func_scope): Use dwarf2_name to get the DIE's name.
5202 Use dwarf2_physname to get the "linkage name" of the DIE.
5203 (dwarf2_add_member_field): Use dwarf2_physname instead of
5204 dwarf2_linkage_name.
5205 (read_structure_type): For structs and classes, set TYPE_NAME, too.
5206 (determine_class): Remove.
5207 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5209 (new_symbol): Unconditionally call dwarf2_name.
5210 Compute the "linkage name" using dwarf2_physname.
5211 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5212 When determining to scan for anonymous C++ namespaces, ignore
5214 (dwarf2_physname): New function.
5215 (dwarf2_full_name): Move content to new function and call
5217 (dwarf2_compute_name): "New" function.
5218 (_initialize_dwarf2_read): Initialize die_list.
5219 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5221 (gnu_v3_print_method_ptr): Use the physname for virtual methods
5222 without a demangled name.
5223 Print out type information for non-virtual methods.
5224 * linespec.c (decode_line_1): Force ANY string using "::" (or
5225 "." for java) to use decode_compound, and clean up any stray quoting.
5226 If we found a file symtab, re-evaluate whether the remainder is_quoted.
5227 (decode_compound): Stop consuming at an open parenthesis.
5228 Keep template parameters.
5229 Keep any overload information.
5230 Keep keywords like "const".
5231 Remove paren_pointer.
5232 Move is_quoted check from set_flags to here.
5233 Remove #if 0 code from 2000. Ten years is long enough.
5234 (find_method): Before comparing symbol names, canonicalize the string
5236 If a specific overload is requested, find it. Otherwise throw an error.
5237 (find_method_overload_end): New function.
5238 (set_flags): Remove.
5239 (decode_compound): Assume that parentheses are matched.
5241 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5243 * linespec.c (decode_line_1): Keep important keywords like
5244 "const" and "volatile".
5245 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5246 * typeprint.h (c_type_print_args): Add declaration.
5247 * ui-file.c (do_ui_file_obsavestring): New function.
5248 (ui_file_obsavestring): New function.
5249 * ui-file.h (ui_file_obsavestring): Add declaration.
5250 * valops.c (find_overload_match): Resolve the object to
5252 If the object is a data member, search the object for the member
5253 and return with staticp set.
5254 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5255 Do not attempt to extract a function name from non-function types.
5256 If the extracted function name and the original name are the same,
5257 we don't have a C++ method.
5259 From Jan Kratochvil <jan.kratochvil@redhat.com>:
5260 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
5262 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5263 and arguments from symbol lookups.
5264 * ax-gdb.c (gen_expr): Likewise.
5265 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5266 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5267 lookup_possible_namespace_symbol): Likewise.
5268 * cp-support.c (read_in_psymtabs): Likewise.
5269 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5270 * language.h (la_lookup_symbol_nonlocal): Likewise.
5271 * scm-valprint.c (scm_inferior_print): Likewise.
5272 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5273 * solib-svr.c (elf_lookup_lib): Likewise.
5274 * solib.c (show_auto_solib_add): Likewise.
5275 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5276 * symmisc.c (maintenance_check_symtabs): Likewise.
5277 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5278 lookup_symbol_aux_local, lookup_symbol_aux_block,
5279 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5280 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5281 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5282 basic_lookup_transparent_type, find_main_psymtab,
5283 lookup_block_symbol): Likewise.
5284 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5285 lookup_symbol_global, lookup_symbol_aux_block,
5286 lookup_symbol_partial_symbol, lookup_block_symbol,
5287 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5289 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5291 * python/python-internal.h: Include symtab.h.
5293 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5294 Pierre Muller <muller@ics.u-strasbg.fr>
5296 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5297 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5300 2010-03-08 Tom Tromey <tromey@redhat.com>
5302 * breakpoint.c (breakpoint_1): Add "QUIT".
5304 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5305 Pedro Alves <pedro@codesourcery.com>
5307 * solib.c (solib_find): Replace extension if
5308 solib_symbols_extension is set in the target gdbarch.
5309 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5310 solib_symbols_extension to "sym".
5311 * gdbarch.sh (solib_symbols_extension): New variable.
5312 (pstring): New function.
5313 * gdbarch.h, gdbarch.c: Regenerate.
5315 2010-03-08 Tom Tromey <tromey@redhat.com>
5319 * utils.c: Include main.h.
5320 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5321 (defaulted_query): Use default answer if `batch_flag'.
5322 * main.h (batch_flag): Declare.
5323 * main.c (batch_flag): New global.
5324 (captured_main): Remove 'batch'. Update.
5326 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5328 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5331 * remote-mips.c (rockhopper_ops): New target_ops struct.
5332 (MON_ROCKHOPPER): New mips_monitor_type.
5333 (read_hex_value): New function.
5334 (mips_request): Send 8-byte values with a 'T' packet. Read the
5335 packet argument as a string and use read_hex_value to parse it.
5336 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5337 (rockhopper_open): New function.
5338 (mips_wait): Read the PC, FP and SP fields as strings. Use
5339 read_hex_value to parse them and mips_set_register to commit them.
5340 (mips_set_register): New function.
5341 (mips_fetch_registers): Do not cast register value to "unsigned"
5342 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5343 (mips_store_registers): Use a 'T' packet to set registers when
5344 using MON_ROCKHOPPER.
5345 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5346 and expect the total to be printed before the entry address.
5347 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5349 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5351 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5352 Change return value to int. Store value fetched in location
5353 addressed by `val'. Use function's return value as success
5354 or failure indicator. Adjust all callers.
5356 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
5358 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5360 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5361 Hui Zhu <teawater@gmail.com>
5363 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5364 tmp_to_stopped_data_address.
5365 (record_open): Reset tmp_to_stopped_by_watchpoint and
5366 tmp_to_stopped_data_address.
5367 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5368 to_stopped_data_address.
5370 2010-03-08 Hui Zhu <teawater@gmail.com>
5372 * i386-tdep.c (i386_process_record): Initialize regnum.
5374 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5376 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5377 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5379 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5381 Memory error when reading wrong core file.
5382 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5383 errors while reading the inferior memory, and return zero if
5384 an exception was raised.
5386 2010-03-07 Michael Snyder <msnyder@vmware.com>
5388 * record.c (record_restore): Rename tmpu8 to rectype.
5390 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5391 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5393 (i386_record_push): Rename local tmpulongest to addr.
5395 (i386_process_record): Rename local tmpulongest to addr.
5397 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5400 Rename local variable tmpu8 to opcode8 and regnum.
5402 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5404 * remote.c (remote_get_ada_task_ptid): New function.
5405 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5407 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5409 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5410 block. Define helper macros to reduce ifdefs in code.
5411 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5412 size. Call unadorned GetModuleFileNameEx rather than
5413 GetModuleFileNameEx*.
5414 (windows_make_so): Use __PMAX to denote maximum buffer size and
5415 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5417 (get_image_name): Use __PMAX to denote maximum buffer size.
5418 (handle_load_dll): Likewise.
5419 (windows_pid_to_exec_file): Likewise.
5420 (windows_create_inferior): Add many accommodations for older Cygwin and
5422 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5423 __USEWIDE conditional.
5424 (bad_GetModuleFileNameExA): Likewise.
5425 (_initialize_loadable): Just use real function names without the dyn_
5426 part since they are defined earlier.
5428 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5429 Tom Tromey <tromey@redhat.com>
5431 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5432 (parse_escape): Likewise.
5433 * python/py-utils.c (unicode_to_target_string): Update.
5434 (unicode_to_target_python_string): Update.
5435 (target_string_to_unicode): Update.
5436 * printcmd.c (printf_command): Update.
5437 * p-exp.y (yylex): Update.
5438 * objc-exp.y (yylex): Update.
5439 * mi/mi-parse.c: Include charset.h.
5440 (mi_parse_escape): New function.
5441 (mi_parse_argv): Use it.
5442 * jv-exp.y (yylex): Update.
5443 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5445 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5446 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5447 * gdbarch.c: Rebuild.
5448 * gdbarch.h: Rebuild.
5449 * defs.h (parse_escape): Update.
5450 * cli/cli-setshow.c: Include arch-utils.h.
5451 (do_setshow_command): Update.
5452 * cli/cli-cmds.c (echo_command): Update.
5453 * charset.h (target_charset, target_wide_charset): Update.
5454 * charset.c: Include arch-utils.h.
5455 (target_charset_name): Default to "auto".
5456 (target_wide_charset_name): Likewise.
5457 (show_target_charset_name): Handle "auto".
5458 (show_target_wide_charset_name): Likewise.
5459 (be_le_arch): New global.
5460 (set_be_le_names): Add 'gdbarch' argument.
5461 (validate): Likewise. Don't call set_be_le_names.
5462 (set_charset_sfunc, set_host_charset_sfunc)
5463 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5465 (target_charset): Add 'gdbarch' argument.
5466 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5467 (auto_target_charset_name): New global.
5468 (default_auto_charset, default_auto_wide_charset): New functions.
5469 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5470 for target charsets. Copy result of nl_langinfo. Use GetACP if
5472 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5473 remove 'byte_order' argument. Update.
5474 (classify_type): Likewise.
5475 (c_emit_char): Update.
5476 (c_printchar): Update.
5477 (c_printstr): Update.
5478 (c_get_string): Update.
5479 (evaluate_subexp_c): Update.
5480 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5482 * python/python.c (gdbpy_target_charset): New function.
5483 (gdbpy_target_wide_charset): Likewise.
5484 (GdbMethods): Update.
5487 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5489 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5490 off high address bits.
5492 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5494 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5495 address as UnsignedLongLong, not LongLong.
5497 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5498 Pedro Alves <pedro@codesourcery.com>
5500 * remote-mips.c (gdbthread.h): Include.
5501 (remote_mips_ptid): Declare.
5502 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5503 (common_open): Set inferior_ptid, add it as an inferior, and
5504 as a thread too. Delete FIXME comment regarding start_remote().
5505 (mips_close): Invoke generic_mourn_inferior().
5506 (mips_kill): Make sure that target_mourn_inferior is invoked.
5507 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5508 it's now invoked from mips_close().
5509 (mips_load): Don't null out inferior_ptid. Don't call
5510 clear_symtab_users().
5511 (mips_thread_alive, mips_pid_to_str): New functions.
5512 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5513 to_thread_alive and to_pid_to_str operations.
5515 2010-03-04 Tom Tromey <tromey@redhat.com>
5517 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5518 in DWARF 3 and later.
5519 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5521 2010-03-04 Keith Seitz <keiths@redhat.com>
5523 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5524 If the filename portion of the linespec was quoted, recheck the
5525 remainder for additional quoting.
5526 (locate_first_half): Skip over completer chars, too.
5528 2010-03-04 Tom Tromey <tromey@redhat.com>
5530 * printcmd.c (printf_command): Pass dummy argument to
5533 2010-03-04 Doug Evans <dje@google.com>
5535 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5538 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5540 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5542 * breakpoint.c (update_watchpoint): Create a sentinel location if
5543 the software watchpoint isn't watching any memory.
5544 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5546 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5548 * utils.c (fputs_maybe_filtered): Check if there's already a top
5549 level interpreter before dereferencing it. If there isn't one,
5550 don't paginate either.
5552 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5554 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5555 the state right when single stepping.
5556 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5557 Get the next PC along with the instruction state.
5558 (thumb_get_next_pc): Remove.
5559 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5561 2010-03-04 Hui Zhu <teawater@gmail.com>
5563 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5565 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5567 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5568 top level interpreter is MI.
5570 2010-03-03 Stan Shebs <stan@codesourcery.com>
5572 * remote.c (remote_download_tracepoint): Iterate over locations.
5573 * tracepoint.c (validate_actionline): Ditto.
5574 (encode_actions): Add location argument.
5575 (trace_dump_command): Check all locations to see if stepping
5578 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5579 Eli Zaretskii <eliz@gnu.org>
5581 * NEWS: Add X86 general purpose registers section.
5583 2010-03-03 Tom Tromey <tromey@redhat.com>
5586 * varobj.c (install_new_value): Handle case where new print_value
5589 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5592 * printcmd.c (printf_command): Print end of format string using
5595 2010-03-02 Tom Tromey <tromey@redhat.com>
5597 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5598 * defs.h (read_command_lines_1): Add missing 'void'.
5599 * cli/cli-script.c (recurse_read_control_structure): Add missing
5601 (read_next_line): Likewise.
5602 (read_command_lines_1): Likewise.
5604 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5606 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5607 store backchain as part of prologue.
5609 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5611 * progspace.c (update_address_spaces): Update inferior address spaces
5614 2010-03-02 Doug Evans <dje@google.com>
5616 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5617 lowpc,highpc args to addrmap_set_empty.
5619 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5621 * amd64-tdep.c (amd64_byte_names): New.
5622 (amd64_word_names): Likewise.
5623 (amd64_dword_names): Likewise.
5624 (amd64_pseudo_register_name): Likewise.
5625 (amd64_pseudo_register_read): Likewise.
5626 (amd64_pseudo_register_write): Likewise.
5627 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5628 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5629 set_gdbarch_pseudo_register_write and
5630 set_tdesc_pseudo_register_name. Don't call
5631 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5633 * i386-tdep.c (i386_num_mmx_regs): Removed.
5634 (i386_num_pseudo_regs): Likewise.
5635 (i386_byte_names): New.
5636 (i386_word_names): Likewise.
5637 (i386_byte_regnum_p): Likewise.
5638 (i386_word_regnum_p): Likewise.
5639 (i386_mmx_regnum_p): Updated.
5640 (i386_pseudo_register_name): Make it global. Handle byte and
5641 word pseudo-registers.
5642 (i386_pseudo_register_read): Likewise.
5643 (i386_pseudo_register_write): Likewise.
5644 (i386_pseudo_register_type): Handle byte, word and dword
5646 (i386_register_reggroup_p): Don't include pseudo
5647 registers, except for MXX, in any register groups. Don't
5648 include pseudo byte, word, dword registers in general_reggroup.
5649 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5650 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5651 pseudo-registers after word pseudo-registers. Call
5652 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5654 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5655 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5657 (i386_byte_regnum_p): New.
5658 (i386_word_regnum_p): Likewise.
5659 (i386_dword_regnum_p): Likewise.
5660 (i386_pseudo_register_name): Likewise.
5661 (i386_pseudo_register_read): Likewise.
5662 (i386_pseudo_register_write): Likewise.
5664 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5666 * target-descriptions.c (tdesc_type): Remove
5667 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5668 (tdesc_predefined_types): Likewise.
5669 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5670 if flag name is empty.
5671 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5673 * features/i386/32bit-core.xml: Define i386_eflags.
5674 * features/i386/64bit-core.xml: Likewise.
5676 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5677 * features/i386/64bit-sse.xml: Likewise.
5679 * features/i386/amd64-linux.c: Regenerated.
5680 * features/i386/amd64.c: Likewise.
5681 * features/i386/i386-linux.c: Likewise.
5682 * features/i386/i386.c: Likewise.
5684 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5686 * gdbtypes.c (append_composite_type_field_raw): New.
5687 (append_composite_type_field_aligned): Use the new function.
5688 * gdbtypes.h (append_composite_type_field_raw): Declare.
5689 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5690 (struct tdesc_type_flag): New type.
5691 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5692 kind. Add size to u.u. Add u.f for flags.
5693 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5694 (tdesc_free_type): Likewise.
5695 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5696 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5697 (tdesc_add_bitfield, tdesc_add_flag): New.
5698 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5699 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5700 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5701 current_type. Add current_type_size and current_type_is_flags.
5702 (tdesc_start_union): Clear the new fields.
5703 (tdesc_start_struct, tdesc_start_flags): New.
5704 (tdesc_start_field): Handle struct fields, including bitfields.
5705 (field_attributes): Make type optional. Add start and end.
5706 (union_children): Rename to struct_union_children.
5707 (union_attributes): Rename to struct_union_attributes. Add optional
5709 (flags_attributes): New.
5710 (feature_children): Add struct and flags.
5711 * features/gdb-target.dtd: Add flags and struct to features.
5712 Make field type optional. Add field start and end.
5714 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5716 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5717 (amd64_linux_read_description): Likewise.
5718 (_initialize_amd64_linux_nat): Set to_read_description to
5719 amd64_linux_read_description.
5721 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5722 (amd64_linux_register_name): Removed.
5723 (amd64_linux_register_type): Likewise.
5724 (amd64_linux_core_read_description): New.
5725 (amd64_linux_init_abi): Set target description to
5726 tdesc_amd64_linux if needed. Support orig_rax in target
5727 description. Don't call set_gdbarch_register_name nor
5728 set_gdbarch_register_type. Call
5729 set_gdbarch_core_read_description.
5730 (_initialize_amd64_linux_tdep): Call
5731 initialize_tdesc_amd64_linux.
5733 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5735 * amd64-tdep.c: Include "features/i386/amd64.c".
5736 (amd64_register_names): Removed.
5737 (amd64_register_name): Likewise.
5738 (amd64_register_type): Likewise.
5739 (amd64_init_abi): Set num_core_regs and register_names. Set
5740 target description to tdesc_amd64 if needed. Don't call
5741 set_gdbarch_register_name nor set_gdbarch_register_type.
5742 (_initialize_amd64_tdep): New.
5744 * i386-linux-nat.c (i386_linux_read_description): New.
5745 (_initialize_i386_linux_nat): Set to_read_description to
5746 i386_linux_read_description.
5748 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5749 (i386_linux_register_name): Removed.
5750 (i386_linux_core_read_description): New.
5751 (i386_linux_read_description): Likewise.
5752 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5753 Set target description to tdesc_i386_linux if needed. Support
5754 orig_eax. Set register_reggroup_p. Call
5755 set_gdbarch_core_read_description.
5756 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5758 * i386-linux-tdep.h (tdesc_i386_linux): New.
5760 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5763 * i386-tdep.c: Include "features/i386/i386.c".
5764 (i386_register_names): Make it const.
5765 (i386_mmx_names): Likewise.
5766 (i386_num_register_names): Removed.
5767 (i386_register_name): Likewise.
5768 (i386_eflags_type): Likewise.
5769 (i386_mxcsr_type): Likewise.
5770 (i386_sse_type): Likewise.
5771 (i386_register_type): Likewise.
5772 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5773 (i386_pseudo_register_name): New.
5774 (i386_pseudo_register_type): Likewise.
5775 (i386_mmx_type): Make it static.
5776 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5777 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5778 call set_gdbarch_register_name nor set_gdbarch_register_type.
5779 Set register_reggroup_p. Set target description to tdesc_i386
5780 if needed. Call set_tdesc_pseudo_register_type,
5781 set_tdesc_pseudo_register_name and tdesc_use_registers.
5782 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5783 initialize_tdesc_x86_64.
5785 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5786 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5787 register_names, tdesc and register_reggroup_p.
5788 (I386_NUM_FREGS): Removed.
5789 (i386_eflags_type): Likewise.
5790 (i386_mxcsr_type): Likewise.
5791 (i386_mmx_type): Likewise.
5792 (i386_sse_type): Likewise.
5793 (i386_register_name): Likewise.
5794 (i386_regnum): Add I386_MXCSR_REGNUM.
5795 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5797 * i387-tdep.h (I387_NUM_REGS): New.
5799 * regformats/i386/i386-linux.dat: Generated.
5800 * regformats/i386/i386.dat: Likewise.
5801 * regformats/i386/amd64-linux.dat: Likewise.
5802 * regformats/i386/amd64.dat: Likewise.
5804 * regformats/reg-i386-linux.dat: Removed.
5805 * regformats/reg-i386.dat: Likewise.
5806 * regformats/reg-x86-64-linux.dat: Likewise.
5807 * regformats/reg-x86-64.dat: Likewise.
5809 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5811 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5812 cygwin_conv_path API rather than the deprecated
5813 cygwin_conv_to_full_posix_path.
5815 (GetModuleFileNameExA): Undefine for Cygwin.
5816 (GetModuleFileNameExW): Define for Cygwin.
5817 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5818 Call GetModuleFileNameExW and convert path to POSIX using
5820 (windows_make_so): Always define p. Drop unused variable m.
5821 Don't use Win32 functions to check file existance, rather use
5822 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5823 Use canonicalize_file_name to get full path.
5824 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5825 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5826 use correct target buffer size in call to WideCharToMultiByte.
5827 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5828 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5829 (windows_create_inferior): Convert all paths and arguments to wchar_t
5830 and use CreateProcessW on Cygwin.
5831 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5832 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5833 (bad_GetModuleFileNameExW): Define for Cygwin.
5834 (_initialize_loadable): Load GetModuleFileNameExW into
5835 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5837 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5840 * python/py-frame.c (frapy_read_var): Add block argument and logic
5841 to cope with user provided blocks.
5843 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5845 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5848 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5850 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5851 (COMMON_OBS): ... to here since it's used unconditionally.
5852 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5855 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5857 * mips-linux-tdep.c: Update struct sigframe comments.
5858 (SIGFRAME_CODE_OFFSET): Delete macro.
5859 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5861 (mips_linux_n32n64_sigframe_init): Same.
5863 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5865 * remote-mips.c (mips_load): Don't use pseudo-register when
5866 invalidating regcache.
5868 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5870 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5872 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5874 * NEWS: Add "New targets" section, and mention ARM Symbian
5877 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5879 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5880 add ADDR_SIZE member.
5881 (allocate_piece_closure): Update.
5882 (copy_pieced_value_closure): Likewise.
5883 (dwarf2_evaluate_loc_desc): Likewise.
5884 (read_pieced_value): Use DWARF address size instead of
5885 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5887 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5888 Tom Tromey <tromey@redhat.com>
5890 * python/py-type.c (typy_lookup_typename): Add in block argument.
5891 If provided restrict lookup to specified blocks.
5892 (gdbpy_lookup_type): Likewise.
5893 (typy_lookup_type): Likewise.
5895 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5900 * arm-symbian-tdep.c: New.
5901 * configure.tgt (arm*-*-symbianelf*): New target.
5902 (*-*-symbianelf*): New OS.
5903 * osabi.c (gdb_osabi_names): Add Symbian.
5904 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5905 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5906 (ALLDEPFILES): Add arm-symbian-tdep.c.
5908 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5910 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5912 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5914 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5916 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5917 Tom Tromey <tromey@redhat.com>
5918 Thiago Jung Bauermann <bauerman@br.ibm.com>
5920 * python/python.c (_initialize_python): Call
5921 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5922 gdbpy_initialize_blocks.
5923 * python/python-internal.h: Declare struct symbol, block and
5924 symtab_and_line. Declare block_object_type and
5926 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5927 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5928 (symbol_to_symbol_object, block_to_block_object)
5929 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5930 (gdbpy_initialize_blocks ): Declare.
5931 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5932 (frapy_select): Add methods.
5933 (frapy_read_var): Add symbol branch.
5934 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5936 (SUBDIR_PYTHON_SRCS): Likewise.
5937 (py-symbol.o): New rule.
5938 (py-symtab.o): Likewise.
5939 (py-block.o): Likewise.
5940 * python/py-symbol.c: New file.
5941 * python/py-symtab.c: Likewise.
5942 * python/py-block.c: Likewise.
5944 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5948 * inferior.h (prepare_for_detach): Declare.
5949 (struct inferior) <detaching>: New field.
5950 * infrun.c (prepare_for_detach): New.
5951 (handle_inferior_event) <random signal>: Don't stop if detaching.
5952 * target.c (target_detach): Call prepare_for_detach.
5954 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5956 Per-process displaced stepping queue.
5958 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5959 (displaced_step_gdbarch, displaced_step_closure,
5960 (displaced_step_original, displaced_step_copy): Move globals to
5962 (struct displaced_step_inferior_state): ... new structure.
5963 (displaced_step_inferior_states): New global.
5964 (get_displaced_stepping_state, add_displaced_stepping_state)
5965 (remove_displaced_stepping_state, infrun_inferior_exit): New
5967 (displaced_step_clear): Add displaced_step_inferior_state
5968 parameter, and adjust to handle it.
5969 (displaced_step_clear_cleanup): Parameter is now a
5970 displaced_step_inferior_state. Adjust.
5971 (displaced_step_prepare): Adjust.
5972 (displaced_step_fixup, displaced_step_fixup)
5973 (infrun_thread_ptid_changed, resume): Adjust.
5974 (init_wait_for_inferior): Don't call displaced_step_clear.
5975 (infrun_thread_stop_requested): Rewrite.
5976 (_initialize_infrun): Install infrun_inferior_exit as
5977 inferior_exit observer.
5979 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5981 * inferior.h (ptid_match): Declare.
5982 * infrun.c (ptid_match): New.
5983 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5984 (handle_notification): Add debug output.
5985 * linux-nat.c (ptid_match): Delete.
5987 2010-02-24 David S. Miller <davem@davemloft.net>
5989 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5990 * syscalls/sparc-linux.xml: New.
5991 * syscalls/sparc64-linux.xml: New.
5992 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5993 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5994 (sparc32_linux_get_syscall_number): New function.
5995 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5996 syscall number fetcher.
5997 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5998 (sparc64_linux_get_syscall_number): New function.
5999 (sparc64_linux_init_abi): Set syscall XML file name and hook up
6000 syscall number fetcher.
6002 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6006 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
6007 * inferior.c (add_inferior_silent): Notify inferior_added
6009 (delete_inferior_1): Notify inferior_removed observer.
6010 (exit_inferior_1): Pass inferior, not pid, to observer.
6011 (inferior_appeared): Likewise.
6012 (add_inferior_with_spaces): New.
6013 (add_inferior_command): Use the above.
6014 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
6017 * inflow.c (inflow_inferior_exit): Likewise.
6018 * jit.c (jit_inferior_exit_hook): Likewise.
6020 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
6022 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6023 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
6024 (report_initial_inferior): New.
6025 (mi_inferior_removed): Register the above. Make sure
6026 inferior_added observer is called on the first inferior.
6027 (mi_new_thread, mi_thread_exit): Thread group is now identified by
6028 inferior number, not pid.
6029 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
6031 * mi/mi-main.c (current_context): New.
6032 (proceed_thread_callback): Use typed closure.
6033 Proceed everything if pid is 0. Most implementation split into
6034 (proceed_thread): ... this.
6035 (run_one_inferior): New.
6036 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
6037 Adjust for multiexec behaviour.
6038 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6039 (mi_cmd_execute): Handle the 'thread-group' option here.
6040 Do some extra checks.
6041 * mi-parse.c (mi_parse): Handle the --all and --thread-group
6043 * mi-parse.h (struct mi_parse): New fields all and thread_group.
6045 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6047 Make -exec-run a proper MI commands.
6049 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
6050 * mi/mi-cmds.c (mi_cmds): Adjust.
6051 * mi/mi-main.c (mi_cmd_exec_run): New.
6053 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6054 Stan Shebs <stan@codesourcery.com>
6056 * tracepoint.h (set_traceframe_number)
6057 (cleanup_restore_current_traceframe): Declare.
6058 * tracepoint.c (set_traceframe_number): New.
6059 (struct current_traceframe_cleanup): New.
6060 (do_restore_current_traceframe_cleanup)
6061 (restore_current_traceframe_cleanup_dtor)
6062 (make_cleanup_restore_current_traceframe): New.
6063 * infrun.c: Include tracepoint.h.
6064 (fetch_inferior_event): Switch out and in of tfind mode.
6066 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6068 * breakpoint.c (breakpoint_init_inferior): Also delete
6069 bp_shlib_event breakpoints.
6070 * solib-frv.c (enable_break): Remove call to
6071 remove_solib_event_breakpoints.
6072 * solib-svr4.c (enable_break): Ditto.
6073 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
6074 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
6075 * solib-som.c (som_solib_create_inferior_hook): Ditto.
6076 * solib-spu.c (spu_enable_break): Ditto.
6078 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6080 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6082 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6084 * varobj.c (varobj_update): Avoid non-constants in initializers.
6086 2010-02-23 Tom Tromey <tromey@redhat.com>
6088 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
6089 handle big-endian values.
6090 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
6092 2010-02-22 Pedro Alves <pedro@codesourcery.com>
6097 * breakpoint.c (insert_bp_location): If inserting the read
6098 watchpoint failed, fallback to an access watchpoint.
6099 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6100 if the value changed, if not watching the same memory for writes.
6101 (watchpoint_locations_match): Add comment.
6102 (update_global_location_list): Copy the location's watchpoint type.
6103 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6104 handle read watchpoints here.
6105 (i386_insert_watchpoint): Read watchpoints aren't supported.
6106 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6108 * target.h (target_insert_watchpoint): Update description.
6110 2010-02-19 Tom Tromey <tromey@redhat.com>
6112 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6113 * m2-typeprint.c (m2_print_type): Update.
6114 * gdbtypes.c (recursive_dump_type): Update.
6115 (copy_type_recursive): Update.
6116 * c-typeprint.c (c_type_print_varspec_prefix): Update.
6117 (c_type_print_base): Update.
6118 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6120 (struct cplus_struct_type) <ntemplate_args>: Remove.
6121 <struct template_arg>: Remove.
6122 <is_dynamic>: Move earlier.
6123 (TYPE_TEMPLATE_ARGS): Remove.
6124 (TYPE_NTEMPLATE_ARGS): Remove.
6125 (TYPE_TEMPLATE_ARG): Remove.
6127 2010-02-19 Tom Tromey <tromey@redhat.com>
6129 PR c++/8693, PR c++/9496:
6130 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6131 * c-exp.y (lex_one_token): Rename from yylex. Don't call
6132 write_dollar_variable. Don't try to classify NAME tokens.
6133 (token_and_value): New type.
6134 (token_fifo, popping, name_obstack): New globals.
6135 (classify_name): New function.
6136 (classify_inner_name): Likewise.
6138 (VARIABLE): Now has type sval.
6139 (exp : VARIABLE): Call write_dollar_variable.
6140 (qualified_name): Use TYPENAME, not typebase. Add production for
6141 multiple "::" instances.
6142 (variable): Use name_not_typename.
6143 (qualified_type): Remove.
6146 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6148 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
6149 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
6150 found by bfd_get_section_by_name.
6151 * symfile.h (struct section_addr_info) <sectindex>: New comment.
6153 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6155 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
6156 7.0 section" into "Changes in 7.1".
6158 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6160 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6161 * version.in: Bump version to 7.1.50.20100219-cvs.
6163 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
6165 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6166 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6168 2010-02-17 Tom Tromey <tromey@redhat.com>
6170 * NEWS: Add Python API Improvements section.
6172 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
6174 * NEWS: Correct typo.
6176 2010-02-17 Tom Tromey <tromey@redhat.com>
6178 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6180 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6182 * symfile.c (build_section_addr_info_from_objfile): Include sections
6183 only if they are SEC_ALLOC or SEC_LOAD.
6185 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
6188 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6189 of ULONGEST for address size.
6191 2010-02-17 Tom Tromey <tromey@redhat.com>
6193 * NEWS: Add C++ improvements section.
6195 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6197 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6198 PyThreadState_Swap): Avoid "statement with no effect" warning.
6200 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6202 * solib-svr4.c (enable_break <target_auxv_search>): New variable
6203 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
6205 2010-02-17 Tristan Gingold <gingold@adacore.com>
6206 Petr Hluzin <petr.hluzin@gmail.com>
6208 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6209 gdb_assert. Fix info->size for SIG prologue.
6211 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6213 * infcmd.c (show_inferior_tty_command): Check for NULL.
6214 Correct output message.
6216 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6218 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6219 FUNCTION contains parentheses. Improve removal of a trailing
6222 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6224 * gcore.c (do_bfd_delete_cleanup): New function.
6225 (gcore_command): Use it. Discard the cleanup after success.
6226 (gcore_copy_callback): Delete dead code.
6228 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6230 * symfile.c (addr_info_make_relative): Always use
6231 find_lowest_section.
6233 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
6235 * NEWS: Added entry for namespace fixes.
6237 2010-02-15 Tom Tromey <tromey@redhat.com>
6239 * dwarf2read.c (guess_structure_name): Allocate name on the
6242 2010-02-15 Tom Tromey <tromey@redhat.com>
6244 * c-typeprint.c (c_type_print_base): Reverse order of test.
6246 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6248 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
6249 initialize it from ELF BFD. Extend the prelink condition by it.
6251 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6253 * defs.h (parse_pid_to_attach): New.
6254 * utils.c (parse_pid_to_attach): New.
6255 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6256 * gnu-nat.c (gnu_attach): Likewise.
6257 * nto-procfs.c (procfs_attach): Likewise.
6258 * procfs.c (procfs_attach): Likewise.
6259 * windows-nat.c (windows_attach): Likewise.
6260 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
6261 * inf-ttrace.c (inf_ttrace_attach): Likewise.
6262 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
6265 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
6267 * MAINTAINERS: Add myself for write after approval privileges.
6269 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6271 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6274 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6276 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6277 only if INFO_VERBOSE.
6279 2010-02-12 Tomas Holmberg <th@virtutech.com>
6281 * mi/mi-main.c: Added the --reverse flag to the following MI
6282 commands: exec-continue, exec-finish, exec-next, exec-step,
6283 exec-next-instruction, exec-step-instruction. This is to
6284 support reverse execution over the MI interface to gdb.
6286 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6288 * tracepoint.c (_initialize_tracepoint): Specify that the address
6289 range of `tfind outsize' is exclusive, and that the address range
6290 of `tfind range' is inclusive, in the commands' help strings.
6292 2010-02-12 Joel Brobecker <brobecker@adacore.com>
6294 Spurious "dll not found" error messages on x64-windows.
6295 * windows-nat.c: Add include of complaints.h.
6296 (handle_unload_dll): Change dll-not-found error into a complaint.
6298 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6300 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6301 bp_tracepoint and bp_fast_tracepoint, not
6302 bp_loc_software_breakpoint.
6303 (update_global_location_list): Tracepoints are never duplicates of
6306 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6308 * breakpoint.c (break_command_really): Change return type to int.
6309 Return false if no breakpoint was created, true otherwise.
6310 (trace_command): Don't set the tracepoint count if no tracepoint
6312 (ftrace_command): Ditto.
6313 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6314 created in the breakpoints table.
6316 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6317 Ulrich Weigand <uweigand@de.ibm.com>
6319 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6321 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6323 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6324 the offset value isn't of integral type.
6326 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6331 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6333 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6334 non-subscriptable types.
6335 * valarith.c (binop_types_user_defined_p): New, abstracted out
6337 (binop_user_defined_p): ... this.
6338 * value.h (binop_types_user_defined_p): Declare.
6340 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6342 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6343 Merge uploaded TSVs before merging uploaded tracepoints.
6345 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6347 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6349 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
6351 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6352 whitespace character after a dot in comment.
6353 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6355 (list_args_or_locals): For the 'all' (that is
6356 -stack-list-variables) case, always output list of tuples.
6357 Output 'arg' field if variable is argument.
6359 2010-02-10 Tom Tromey <tromey@redhat.com>
6361 * parser-defs.h (parser_debug): Declare.
6362 * parse.c (_initialize_parse): Install "debug parser" set/show
6364 (parser_debug): New global.
6365 (show_parserdebug): New function.
6366 * c-exp.y (c_parse): Set yydebug.
6368 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6370 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6371 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6372 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6374 (tdesc_find_type): New.
6375 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6376 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6378 * target-descriptions.h (tdesc_find_type): New.
6380 2010-02-10 Michael Snyder <msnyder@vmware.com>
6382 * gdb-gdb.py: Comment fix.
6384 2010-02-09 Tristan Gingold <gingold@adacore.com>
6386 * machoread.c (macho_symfile_relocate): New function.
6387 (macho_sym_fns): Use macho_symfile_relocate instead of
6388 default_symfile_relocate.
6389 (macho_oso_data): New type.
6390 (current_oso): New variable.
6391 (macho_add_oso_symfile): Do not compute section_addr_info, but
6392 instead set vma of sections.
6393 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6394 Set and clear current_oso.
6396 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6398 Wrong type description for tagged type parameter.
6399 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6400 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6401 reference to a tagged type.
6403 2010-02-09 Tristan Gingold <gingold@adacore.com>
6405 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6406 brothers of the parent.
6408 2010-02-08 Tom Tromey <tromey@redhat.com>
6412 * valops.c (search_struct_field): Make 'name' const.
6413 (search_struct_method): Likewise.
6414 (find_method_list): Make 'method' const.
6415 (value_struct_elt): Make 'name' and 'err' const.
6416 (value_find_oload_method_list): Make 'method' const.
6417 (find_overload_match): Make 'name' const.
6418 * eval.c (evaluate_subexp_standard): New locals function,
6420 <OP_FUNCALL>: Handle OP_SCOPE specially.
6422 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6424 * infrun.c (handle_inferior_event): Do not look up regcache
6425 for exited processes.
6427 2010-02-08 Chris Moller <moller@mollerware.com>
6430 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6431 warn if found, and assume length = 1.
6433 2010-02-08 Chris Moller <cmoller@redhat.com>
6436 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6437 (cp_print_static_field) Fix use of obstacks.
6439 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6441 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6442 resumed LWPs as resumed.
6443 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6444 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6445 of throwing an internal error. If an LWP of a process we're not
6446 waiting for reports a signal, don't force collecting a SIGSTOP,
6447 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6448 go through all LWPs cancelling breakpoints in non-stop mode.
6449 (resume_stopped_resumed_lwps): New.
6450 (linux_nat_wait): Use it.
6452 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6454 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6455 i386/amd64 and i386/amd64-linux.
6456 (i386/i386-expedite): New.
6457 (i386/i386-linux-expedite): Likewise.
6458 (i386/amd64-expedite):Likewise.
6459 (i386/amd64-linux-expedite): Likewise.
6460 ($(outdir)/i386/i386-linux.dat): Likewise.
6461 ($(outdir)/i386/amd64.dat): Likewise.
6462 ($(outdir)/i386/amd64-linux.dat): Likewise.
6464 * features/i386/32bit-core.xml: New.
6465 * features/i386/32bit-linux.xml: Likewise.
6466 * features/i386/32bit-sse.xml: Likewise.
6467 * features/i386/64bit-core.xml: Likewise.
6468 * features/i386/64bit-linux.xml: Likewise.
6469 * features/i386/64bit-sse.xml: Likewise.
6470 * features/i386/i386-linux.xml: Likewise.
6471 * features/i386/i386.xml: Likewise.
6472 * features/i386/amd64-linux.xml: Likewise.
6473 * features/i386/amd64.xml: Likewise.
6474 * features/i386/i386-linux.c: Likewise.
6475 * features/i386/i386.c: Likewise.
6476 * features/i386/amd64-linux.c: Likewise.
6477 * features/i386/amd64.c: Likewise.
6479 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6482 * cp-support.h: Added char* alias element to using_direct data
6484 (cp_add_using): Added char* alias argument.
6485 (cp_add_using_directive): Ditto.
6486 * cp-namespace.c: Updated with the above changes.
6487 (cp_lookup_symbol_imports): Check for aliases.
6488 * dwarf2read.c (read_import_statement): Figure out local alias
6489 for the import and pass it on to cp_add_using.
6490 (read_namespace): Pass alias argument to cp_add_using.
6492 2010-02-05 Hui Zhu <teawater@gmail.com>
6494 * defs.h (gdb_bfd_errmsg): New extern.
6495 * exec.c (exec_file_attach): Change bfd_errmsg to
6497 * utils.c (AMBIGUOUS_MESS1): New macro.
6498 (AMBIGUOUS_MESS2): New macro.
6499 (gdb_bfd_errmsg): New function.
6501 2010-02-04 Doug Evans <dje@google.com>
6503 * solib-svr4.c (enable_break): Add comment.
6505 2010-02-04 Anthony Green <green@moxielogic.com>
6507 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6510 2010-02-04 Tom Tromey <tromey@redhat.com>
6512 * valops.c (search_struct_field): Account for
6513 value_embedded_offset. Fix check for virtual base past the end of
6514 the object. Use value_copy when making a slice of the value.
6516 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6519 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6520 only if gdb_stdout is a tty.
6522 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6524 * target-descriptions.c: Include "osabi.h".
6525 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6528 2010-02-04 Tristan Gingold <gingold@adacore.com>
6530 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6531 (macho_symtab_read): Adjust calls to macho_add_oso.
6532 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6533 (macho_symfile_read): Adjust call to macho_oso_symfile.
6534 (macho_new_init): Move this function after declarations.
6535 (macho_symfile_init): Ditto.
6536 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6537 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6539 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6541 Include MI command in remotelog.
6543 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6545 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6547 * remote.c (remote_state): Remove gdbarch.
6548 (init_remote_state): Don't set gdbarch.
6549 (remote_query_supported): Pass target_gdbarch instead of
6550 rs->gdbarch to gdbarch_qsupported.
6552 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6554 * gdbarch.sh: Add qsupported.
6556 * gdbarch.c: Regenerated.
6557 * gdbarch.h: Likewise.
6559 * remote.c (remote_state): Add gdbarch.
6560 (init_remote_state): Set gdbarch.
6561 (remote_query_supported): Support gdbarch_qsupported.
6563 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6565 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6566 __FreeBSD_kernel_version.
6568 2010-02-03 Tristan Gingold <gingold@adacore.com>
6570 * symfile.h (struct sym_fns): Add sym_relocate field.
6571 (default_symfile_relocate): New prototype.
6572 (symfile_relocate_debug_section): First argument is now an objfile.
6573 * symfile.c (default_symfile_relocate): Rename from
6574 symfile_relocate_debug_section, first argument is now an objfile.
6575 (symfile_relocate_debug_section): New function.
6576 * coffread.c (coff_sym_fns): Set sym_relocate field.
6577 * somread.c (som_sym_fns): Ditto.
6578 * mipsread.c (ecoff_sym_fns): Ditto.
6579 * machoread.c (macho_sym_fns): Ditto.
6580 * elfread.c (elf_sym_fns): Ditto.
6581 * dwarf2read.c (dwarf2_read_section): Ditto.
6582 * xcoffread.c (xcoff_sym_fns): Ditto.
6583 * dbxread.c (aout_sym_fns): Ditto.
6584 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6585 (elfstab_build_psymtabs): Ditto.
6587 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6589 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6591 2010-02-02 Tom Tromey <tromey@redhat.com>
6593 * valops.c (value_cast_structs): Try downcasting using the RTTI
6596 2010-02-02 Tom Tromey <tromey@redhat.com>
6598 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6599 (gnuv2_baseclass_offset): Now static.
6600 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6601 * gnu-v2-abi.h: Remove.
6603 2010-02-02 Tom Tromey <tromey@redhat.com>
6605 * m2-typeprint.c (m2_record_fields): Don't use
6607 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6608 (struct main_type) <flag_declared_class>: New field.
6609 (struct cplus_struct_type) <declared_type>: Remove.
6610 <ntemplate_args>: Move earlier.
6611 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6612 (DECLARED_TYPE_TEMPLATE): Remove.
6613 (TYPE_DECLARED_TYPE): Remove.
6614 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6615 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6616 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6619 2010-02-02 Tom Tromey <tromey@redhat.com>
6621 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6622 * valops.c (search_struct_field): Compute nbases after calling
6624 (check_field): Call CHECK_TYPEDEF.
6625 * cp-valprint.c (cp_print_value): Pass correct address to
6626 baseclass_offset. Fix check for virtual base past the end of the
6627 object. Don't offset address passed to cp_print_value_fields or
6628 apply_val_pretty_printer.
6629 (cp_print_value_fields): Fix call to val_print.
6630 (cp_print_value_fields_rtti): New function.
6631 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6632 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6634 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6636 * language.h (struct language_defn) <la_val_print>: Document.
6637 * c-lang.h (cp_print_value_fields_rtti): Declare.
6639 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6642 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6643 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6644 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6646 2010-02-01 Michael Matz <matz@suse.de>
6647 Daniel Jacobowitz <dan@codesourcery.com>
6649 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6650 functions use a frame pointer.
6652 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6654 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6655 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6656 * config/djgpp/fnchange.lst: Add translations for
6657 symbol-without-target_section.exp and symbol-without-target_section.c.
6659 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6661 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6662 (remote_breakpoint_for_pc): Correct invalid_p check.
6663 * gdbarch.c: Regenerated.
6665 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6667 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6669 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6670 (extend_buffer_earlier): New function.
6671 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6672 (arm_adjust_breakpoint_address): New function.
6673 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6675 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6677 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6678 (arm_linux_thumb2_le_breakpoint): New constants.
6679 (arm_linux_init_abi): Set thumb2_breakpoint and
6680 thumb2_breakpoint_size.
6681 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6682 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6683 Implement support for single stepping through IT blocks if
6684 a 32-bit Thumb breakpoint instruction is available.
6685 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6686 is available, use it when needed.
6687 (arm_remote_breakpoint_from_pc): New function.
6688 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6689 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6690 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6692 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6694 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6695 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6696 * gdbarch.c, gdbarch.h: Regenerated.
6697 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6698 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6699 gdbarch_remote_breakpoint_from_pc.
6701 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6703 * infrun.c (prepare_to_proceed): Handle other signals which might
6705 (handle_inferior_event): Move the check for unusual breakpoint
6708 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6710 amd64 - function returning record with field straddling 2 registers.
6711 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6712 a record of length <= 16 in which a field straddles the two
6715 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6717 Implement return values on amd64-windows.
6718 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6719 (amd64_windows_return_value): New function.
6720 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6721 amd64_windows_return_value.
6723 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6725 amd64-windows: 32 bytes allocated on stack by caller for integer
6726 parameter registers.
6727 * i386-tdep.h (struct gdbarch_tdep): Add new field
6728 integer_param_regs_saved_in_caller_frame.
6729 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6730 tdep->integer_param_regs_saved_in_caller_frame to 1.
6731 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6732 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6734 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6736 amd64-windows: memory args passed by pointer during function calls.
6737 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6738 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6739 where tdep->memory_args_by_pointer is non-zero.
6740 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6741 tdep->memory_args_by_pointer to 1.
6743 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6745 amd64-windows: Integer parameters in function calls.
6746 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6748 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6749 call_dummy_integer_regs, and classify.
6750 * amd64-tdep.h (amd64_classify): Add declaration.
6751 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6752 (amd64_reg_class): Delete, moved to i386-tdep.h.
6753 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6754 Replace call to amd64_classify by call to tdep->classify.
6755 (amd64_push_arguments): Get the list of registers to use for
6756 passing integer parameters from the gdbarch tdep structure,
6757 rather than using a hardcoded one. Replace calls to amd64_classify
6758 by calls to tdep->classify.
6759 (amd64_push_dummy_call): Get the register number used for
6760 the "hidden" argument from tdep->call_dummy_integer_regs.
6761 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6762 and tdep->call_dummy_integer_regs. Set tdep->classify.
6763 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6764 (amd64_windows_dummy_call_integer_regs): New static global.
6765 (amd64_windows_classify): New function.
6766 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6767 tdep->call_dummy_integer_regs and tdep->classify.
6769 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6771 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6772 for the new regcache. All callers updated.
6773 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6774 (get_thread_arch_regcache): Do not set aspace here.
6775 * regcache.h (regcache_xmalloc): Update declaration.
6777 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6778 regcache_xmalloc updated.
6780 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6782 Another -Wunused-function error in procfs.c (sparc-solaris)
6783 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6784 Only define if SYS_syssgi is defined.
6785 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6786 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6787 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6790 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6792 * windows-nat.c (windows_initialization_done): New variable.
6793 (get_windows_debug_event): Issue error when process dies before
6794 completely initializing.
6795 (do_initial_windows_stuff): Set flag to indicate when we are done with
6796 the initial steps of attaching to the child.
6798 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6800 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6802 2010-01-27 Doug Evans <dje@google.com>
6804 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6806 * breakpoint.c (bpstat_stop_status): Delete useless code.
6808 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6810 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6811 objfile via SYMBOL_SYMTAB.
6813 2010-01-26 Tom Tromey <tromey@redhat.com>
6816 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6817 coerce_array on result.
6819 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6821 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6822 search_parent argument.
6823 (cp_add_using): Initialize 'searched' field.
6824 (reset_directive_searched): New function.
6825 * cp-support.h: Add 'searched' field to using_direct struct.
6826 (cp_lookup_symbol_imports): Ditto.
6827 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6828 Perform recursive search.
6829 Implement non parent search.
6830 * valops.c (value_maybe_namespace_elt): Updated.
6832 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6835 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6836 scopes which contain using directives even if they contain no
6838 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6839 la_lookup_symbol_nonlocal.
6840 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6841 cp_lookup_symbol_namespace.
6842 (cp_lookup_symbol_namespace): Perform an import lookup at every
6844 (cp_lookup_symbol_imports): New function.
6845 (cp_lookup_symbol_in_namespace): New function.
6847 2010-01-25 Tom Tromey <tromey@redhat.com>
6850 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6853 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6855 * configure.ac: Only use host_os part when disabling TUI on osf.
6856 Use test to check variables, prefix strings with x.
6857 * configure: Regenerate.
6859 * solib-osf.c (osf_current_sos): Initialize tail.
6861 2010-01-25 gingold <gingold@adacore.com>
6863 * windows-nat.c (windows_continue): Use %x to print thread id.
6864 (get_windows_debug_event): Ditto.
6866 2010-01-22 Tom Tromey <tromey@redhat.com>
6869 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6870 type and arguments. Use smash_to_methodptr_type.
6871 (read_structure_type): Call quirk_gcc_member_function_pointer
6873 * gdbtypes.h (smash_to_methodptr_type): Declare.
6874 * gdbtypes.c (smash_to_methodptr_type): New function.
6875 (lookup_methodptr_type): Use it.
6877 2010-01-21 Tom Tromey <tromey@redhat.com>
6880 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6881 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6882 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6883 (glibc_skip_solib_resolver): Use
6884 lookup_minimal_symbol_and_objfile.
6886 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6888 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6891 2010-01-20 Tom Tromey <tromey@redhat.com>
6894 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6895 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6896 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6897 dwarf_stack_values, not CORE_ADDRs.
6898 (execute_stack_op): Change DW_OP_div and comparison operators to
6899 use signed operands.
6901 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6903 Per-inferior args and tty and environment.
6905 * infcmd.c (inferior_args): Rename to ...
6906 (inferior_args_scratch): ... this.
6907 (inferior_io_terminal): Rename to ...
6908 (inferior_io_terminal_scratch): ... this.
6909 (inferior_argc, inferior_argv): Remove.
6910 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6911 inside current_inferior().
6912 (set_inferior_tty_command, show_inferior_tty_command): New.
6913 (get_inferior_args, set_inferior_args): Store inside
6915 (notice_args_set): Likewise and rename to...
6916 (set_args_command): ... this.
6917 (set_inferior_args_vector): Likewise.
6918 (notice_args_read): Rename to...
6919 (show_args_command): ...new.
6920 (tty_command): Remove.
6921 (run_command_1): Don't free old args, as they are freed by
6922 set_inferior_arg now.
6923 (run_no_args_command): Likewise.
6924 (inferior_environ): Remove.
6925 (run_command_1): Use environment of the current inferior.
6926 (environment_info, set_environment_command)
6927 (unset_environment_command, path_info, path_command): Likewise.
6928 (_initialize_infcmd): Adjust for function and variable renames.
6929 Do not init inferior_environ.
6930 * inferior.h (set_inferior_arg): Adjust prototype.
6931 (struct inferior): New fields args, argc, argv, terminal, environment.
6932 (inferior_environ): Remove declaration.
6933 * inferior.c (free_inferior): Free new fields.
6934 (add_inferior_silent): Initialize 'environment' field.
6935 * main.c (captured_main): Set arguments only after the initial
6936 inferior has been created. Set set_inferior_io_terminal,
6938 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6940 (_initialize_mi_cmd_env): Adjust for disappearance of global
6942 * solib.c (solib_find): Use environment of the current inferior.
6944 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6946 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6948 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6950 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6952 Get rid of ada-lang.c:function_name_from_pc.
6953 * ada-lang.c: Add "stack.h" #include.
6954 (function_name_from_pc): Delete.
6955 (is_known_support_routine): Replace call to function_name_from_pc
6956 by call to find_frame_funname.
6957 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6959 2010-01-19 Tom Tromey <tromey@redhat.com>
6962 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6965 2010-01-19 Tom Tromey <tromey@redhat.com>
6967 * top.c (stop_sig, float_handler, do_nothing): Remove.
6969 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6971 * breakpoint.c (watchpoint_check): Check the call
6972 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6974 * config/djgpp/fnchange.lst: Add translations for
6975 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6976 watchpoint-cond-gone-stripped.c.
6978 2010-01-19 Tom Tromey <tromey@redhat.com>
6981 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6982 into parent scope, and enumerator into grandparent scope.
6984 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6986 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6988 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6990 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6991 i[34567]86-*-solaris2.1[0-9]*.
6992 * configure.tgt: Likewise.
6994 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6996 * NEWS: Document the source command enhancement allowing it
6997 to load Python scripts. Document the "set/show script-extension"
7000 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7002 Add -Wunused-function to compile flags.
7003 * configure.ac: Add -Wunused-function to build_warnings.
7004 * configure: Regenerate.
7006 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7008 "delete" ada-lex.c:input function, not used.
7009 * ada-lex.l: #define YY_NO_INPUT.
7011 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7013 Delete free_named_symtabs and associated cleanup.
7014 * symfile.h (free_named_symtabs): Delete declaration.
7015 * symfile.c: Remove some commented out code (clear_symtab_users_once).
7016 (cashier_psymtab): Comment function out.
7018 (free_named_symtabs): Delete.
7019 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
7020 * dbxread.c (end_psymtab): Likewise.
7021 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
7022 * exec.c (exec_close_1): Ditto.
7023 * xcoffread.c (xcoff_end_psymtab): Likewise.
7025 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7027 * stack.c (print_block_frame_labels): Comment function out.
7029 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7031 Delete unused or undefined functions.
7032 * breakpoint.c (ep_parse_optional_filename): Delete.
7033 * dcache.c (dcache_write_line): Remove declaration.
7034 * infrun.c (build_infrun): Remove declaration.
7035 * tracepoint.c (tracepoint_save_command): Remove declaration.
7036 * linux-nat.c (init_lwp_list): Delete. No longer used.
7037 * event-loop.c (check_async_signal_handlers): Delete declaration.
7038 * infrun.c (init_execution_control_state): Delete.
7039 (proceed): Update comment to avoid mentioning
7040 init_execution_control_state.
7041 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
7042 * ada-lang.c (ada_to_static_fixed_value): Delete.
7043 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
7044 * cp-namespace.c (cp_copy_usings): Delete.
7045 * xml-syscall.c (xml_number_of_syscalls): Delete.
7046 * progspace.c (find_program_space_by_num): Delete.
7047 * inflow.c (handle_sigio): Delete declaration.
7048 * hppa-tdep.c (hppa_alignof): Delete.
7049 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
7050 (mipsnbsd_core_osabi_sniffer): Delete.
7052 2010-01-18 Tom Tromey <tromey@redhat.com>
7055 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
7056 (CONST_CAST): New tokens.
7057 (exp): Add new productions.
7058 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
7060 (is_cast_operator): New function.
7061 (yylex): Handle cast operators specially.
7062 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
7063 UNOP_REINTERPRET_CAST>: New cases.
7064 * expprint.c (print_subexp_standard): Likewise.
7065 (op_name_standard): Likewise.
7066 (dump_subexp_body_standard): Likewise.
7067 * parse.c (operator_length_standard): Likewise.
7068 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
7069 UNOP_REINTERPRET_CAST.
7070 * gdbtypes.c (class_types_same_p): New function.
7071 (is_ancestor): Use it.
7072 (is_public_ancestor): New function.
7073 (is_unique_ancestor_worker): Likewise.
7074 (is_unique_ancestor): Likewise.
7075 * gdbtypes.h (class_types_same_p, is_public_ancestor)
7076 (is_unique_ancestor): Declare.
7077 * valops.c (value_reinterpret_cast): New function.
7078 (dynamic_cast_check_1): Likewise.
7079 (dynamic_cast_check_2): Likewise.
7080 (value_dynamic_cast): Likewise.
7081 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7083 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7085 Fix build failure when building without Python support.
7086 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7089 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7091 Use XVS field type instead of doing a parallel lookup.
7092 * ada-lang.c (ada_get_base_type): Follow the XVS field type
7093 if it is a reference type instead of doing a type lookup using
7096 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7098 Trust PAD types instead of using PAD___XVS.
7099 * ada-lang.c (trust_pad_over_xvs): New static variable.
7100 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7101 parallel XVS type, follow the XVS type instead of the PAD type.
7102 (unwrap_value): Make sure that there is no parallel XVE type
7103 before returning the value as is.
7104 (set_ada_list, show_ada_list): New static variables.
7105 (set_ada_command, show_ada_command): New functions.
7106 (_initialize_ada_language): Add new "set/show ada" prefix commands.
7107 Add new "set/show ada trust-PAD-over-XVS" setting.
7109 2010-01-18 Tom Tromey <tromey@redhat.com>
7110 Thiago Jung Bauermann <bauerman@br.ibm.com>
7112 Allow "source" to load python scripts.
7113 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7114 * python/python.c (source_python_script): New function.
7115 * python/python.h (source_python_script): Add declaration.
7116 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7117 (script_ext_off, script_ext_soft, script_ext_strict)
7118 (script_ext_enums, script_ext_mode): New static constants.
7119 (show_script_ext_mode, find_and_open_script): New functions.
7120 (source_script): Enhance to handle Python scripts.
7121 (init_cli_cmds): Add set/show script-extension commands.
7123 2010-01-16 Stan Shebs <stan@codesourcery.com>
7125 * tracepoint.h (struct trace_status): Use unsigned long long
7127 * tracepoint.c (trace_status_command): Fix printf directive.
7128 (trace_save_command): Check fwrite returns, fix printf directive.
7129 (trace_filename): New global.
7130 (tfile_open): Set it, check read returns.
7131 (tfile_close): Free trace_filename.
7132 (tfile_get_traceframe_address): Check read returns.
7133 (tfile_trace_find): Ditto.
7134 (tfile_fetch_registers): Ditto.
7135 (tfile_xfer_partial): Ditto.
7136 (tfile_get_trace_state_variable_value): Ditto.
7138 2010-01-15 Stan Shebs <stan@codesourcery.com>
7140 Add trace file support.
7141 * tracepoint.h (enum trace_stop_reason): New enum.
7142 (struct trace_status): New struct.
7143 (parse_trace_status): Declare.
7144 (struct uploaded_tp): Move here from remote.c,
7145 add fields for actions.
7146 (struct uploaded_tsv): New struct.
7147 * tracepoint.c (tfile_ops): New target vector.
7148 (trace_fd): New global.
7149 (tfile_open): New function.
7150 (tfile_close): New function.
7151 (tfile_files_info): New function.
7152 (tfile_get_trace_status): New function.
7153 (tfile_get_traceframe_address): New function.
7154 (tfile_trace_find): New function.
7155 (tfile_fetch_registers): New function.
7156 (tfile_xfer_partial): New function.
7157 (tfile_get_trace_state_variable_value): New function.
7158 (init_tfile_ops): New function.
7159 (_initialize_tracepoint): Call it, add tfile target.
7160 (trace_status): New global.
7161 (current_trace_status): New function.
7162 (trace_running_p): Remove, change all users to get from
7163 current_trace_status()->running.
7164 (get_trace_status): Remove.
7165 (trace_status_command): Call target_get_trace_status directly,
7166 report more detail including tracing stop reasons.
7167 (trace_find_command): Always allow tfind on a file.
7168 (trace_find_pc_command): Ditto.
7169 (trace_find_tracepoint_command): Ditto.
7170 (trace_find_line_command): Ditto.
7171 (trace_find_range_command): Ditto.
7172 (trace_find_outside_command): Ditto.
7173 (trace_frames_offset, cur_offset): Declare as off_t.
7174 (trace_regblock_size): Rename from reg_size, update users.
7175 (parse_trace_status): New function.
7176 (tfile_interp_line): New function.
7177 (disconnect_or_stop_tracing): Ensure current trace
7178 status before asking what to do.
7179 (stop_reason_names): New global.
7180 (trace_save_command): New command.
7181 (get_uploaded_tp): Move here from remote.c.
7182 (find_matching_tracepoint): Ditto.
7183 (merge_uploaded_tracepoints): New function.
7184 (parse_trace_status): Use stop_reason_names.
7185 (_initialize_tracepoint): Define tsave command.
7186 * target.h (target_ops): New fields to_save_trace_data,
7187 to_upload_tracepoints, to_upload_trace_state_variables,
7188 to_get_raw_trace_data, change to_get_trace_status
7189 to take a pointer to a status struct.
7190 (target_save_trace_data): New macro.
7191 (target_upload_tracepoints): New macro.
7192 (target_upload_trace_state_variables): New macro.
7193 (target_get_raw_trace_data): New macro.
7194 * target.c (update_current_target): Add new methods, change
7195 signature of to_get_trace_status.
7196 * remote.c (hex2bin): Make globally visible.
7198 (remote_download_trace_state_variable): Download name also.
7199 (remote_get_trace_status): Update parameter, use
7201 (remote_save_trace_data): New function.
7202 (remote_upload_tracepoints): New function.
7203 (remote_upload_trace_state_variables): New function.
7204 (remote_get_raw_trace_data): New function.
7205 (remote_start_remote): Use them.
7206 (_initialize_remote_ops): Add operations.
7207 * ax-gdb.c: Include breakpoint.h.
7208 * breakpoint.c (create_tracepoint_from_upload): Use
7209 break_command_really, return tracepoint, warn about unimplemented
7211 * NEWS: Mention trace file addition.
7213 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7215 Fix compilation warning on gcc-3.4.
7216 * exec.c (print_section_info): Move the `displacement' variable
7217 initialization to its declaration.
7219 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7221 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7224 2010-01-15 Eric Botcazou <botcazou@adacore.com>
7226 "info tasks" broken by typedefs in ATCB type definitions.
7227 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7228 ada_check_typedef before retrieving the length of the type for
7231 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7233 Do not use name-based lookup for unconstrained packed arrays.
7234 * ada-lang.c (find_parallel_type_by_descriptive_type):
7235 Limit the fallback to name-based lookups to the case where
7236 the type is a constrained packed array.
7238 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7240 Enhance gdb-gdb.py to handle main_type.type_specific.
7241 * gdb-gdb.py: Print the type-specific part of struct main_type.
7243 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7245 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7246 * configure: Regenerate.
7247 * config.in: Regenerate.
7248 * utils.c: Include sys/resource.h.
7249 (dump_core, can_dump_core): New.
7250 (internal_vproblem): Update the comment. Check can_dump_core while
7251 setting dump_core_p. Replace two abort calls by dump_core calls.
7253 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7254 Eli Zaretskii <eliz@gnu.org>
7256 * NEWS: Document the PIE support.
7258 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7260 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7261 (check_is_pie_binary, _initialize_linux_tdep): Remove.
7263 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7265 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7266 Replace exec_entry_point call by bfd_get_start_address.
7268 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7270 Support Valgrind attachments broken by the PIE support.
7271 * auxv.c: Include gdbcore.h.
7272 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7273 parameters ops, object and annex. Remove their assertions.
7274 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7275 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7276 (memory_xfer_auxv): ... here.
7277 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7279 * procfs.c (procfs_xfer_partial): Likewise.
7280 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7281 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7282 (svr4_solib_create_inferior_hook): Conditionalize the
7283 svr4_relocate_main_executable call.
7285 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7287 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7288 target_section. Find SECT in current_target_sections, gdb_assert it.
7289 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7291 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7292 of separate debug info file.
7294 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7296 Support PIEs with no symfile_objfile.
7297 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7298 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7300 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7302 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7304 (svr4_static_exec_displacement): ... a new function.
7305 (svr4_exec_displacement): New function.
7306 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7307 new_offsets using alloca now. Remove variable old_chain and changed.
7308 Call objfile_relocate unconditionally now.
7310 2010-01-14 Doug Evans <dje@google.com>
7312 * gdbtypes.c (arch_flags_type): Fix comment.
7313 * gdbtypes.h (arch_composite_type): Fix comment.
7315 2009-01-14 Tristan Gingold <gingold@adacore.com>
7317 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7318 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7319 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7320 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7321 macho_add_oso_symfile.
7322 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7324 2010-01-14 Joel Brobecker <brobecker@adacore.com>
7326 Tru64: Dead threads are never deleted.
7327 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7328 (dec_thread_count_gdb_threads): Fix counter increment.
7329 (dec_thread_add_gdb_thread): Fix *listp increment.
7330 (resync_thread_list): Fix bug in deletion of dead threads that
7331 caused all threads to be deleted, instead of just the dead ones.
7333 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7337 * python/python-internal.h: Add lazy_string_object_type
7339 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7340 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7341 * python/py-value.c (valpy_lazy_string): New function.
7342 (convert_value_from_python): Add lazy string conversion.
7343 * python/py-prettyprint.c (pretty_print_one_value): Check if
7344 return is also a lazy string.
7345 (print_string_repr): Add lazy string printing branch.
7346 (print_children): Likewise.
7347 * python/py-lazy-string.c: New file. Implement lazy strings.
7348 * python/python.c (_initialize_python): Call
7349 gdbpy_initialize_lazy_string.
7350 * varobj.c (value_get_print_value): Add lazy string printing
7351 branch. Account for encoding.
7352 * c-lang.c (c_printstr): Account for new encoding argument. If
7353 encoding is NULL, find encoding suited for type, otherwise use
7355 * language.h (language_defn): Add encoding argument.
7356 (LA_PRINT_STRING): Likewise.
7357 * language.c (unk_lang_printstr): Update to reflect new encoding
7358 argument to language_defn.
7359 * ada-lang.h (ada_printstr): Likewise.
7360 * c-lang.h (c_printstr): Likewise.
7361 * p-lang.h (pascal_printstr);
7362 * f-lang.c (f_printstr): Likewise.
7363 * m2-lang.c (m2_printstr): Likewise.
7364 * objc-lang.c (objc_printstr): Likewise.
7365 * p-lang.c (pascal_printstr): Likewise.
7366 * scm-lang.c (scm_printstr): Likewise.
7367 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7369 * ada-valprint.c (ada_printstr): Likewise.
7370 * f-valprint.c (f_val_print): Likewise
7371 * m2-valprint.c (m2_val_print): Likewise.
7372 * p-valprint.c (pascal_val_print): Likewise.
7373 * expprint.c (print_subexp_standard): Likewise.
7374 * valprint.c (val_print_string): Likewise.
7375 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7376 (SUBDIR_PYTHON_SRCS): Likewise.
7377 (py-lazy-string.o): New rule.
7379 2010-01-13 Doug Evans <dje@google.com>
7381 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7382 uninitialized" warning from gcc on local `tree'.
7384 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7386 Implement core awareness.
7388 * bcache.c (compare_ints): Remove
7389 (print_percentage): Use compare_positive_ints.
7390 * defs.h (compare_positive_ints): Declare.
7391 * linux-nat.h (struct lin_lwp): New field core.
7392 (linux_nat_core_of_thread_1): Declare.
7393 * linux-nat.c (add_lwp): Init the 'core' field.
7394 (linux_nat_wait_1): Record the core.
7395 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7396 (linux_nat_add_target): Register the above.
7397 * linux-thread-db.c (update_thread_core): New.
7398 (thread_db_find_new_threads): Update core information for
7400 * remote.c (struct private_thread_info): New.
7401 (free_private_thread_info, demand_private_info): New.
7402 (PACKET_qXfer_threads, use_osdata_threads): New.
7403 (struct thread_item, threads_parsing_context
7404 (start_thread, end_thread, thread_attributes)
7405 (thread_children, threads_children, threads_elements): New.
7406 (remote_threads_info): Try qXfer:threads before anything
7408 (remote_protocol_packets): Register qXfer:threads.
7409 (remote_open_1): Init use_osdata_threads.
7410 (struct stop_reply): New field 'core'.
7411 (remote_parse_stop_reply): Parse core number.
7412 (process_stop_reply): Record core number.
7413 (remote_xfer_partial): Handle qXfer:threads.
7414 (remote_core_of_thread): New.
7415 (init_remote_ops): Register remote_core_of_thread.
7416 (_initialize_remote): Register qXfer:read.
7417 * target.c (target_core_of_thread): New
7418 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7419 (struct target_ops): New field to_core_of_threads.
7420 (target_core_of_thread): Declare.
7421 * gdbthread.h (struct thread_info): New field private_dtor.
7422 * thread.c (print_thread_info): Report the core.
7423 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7424 * utils.c (compare_positive_ints): New.
7425 * features/threads.dtd: New.
7426 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7427 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7428 (do_nothing, free_vector_of_osdata_items)
7429 (splay_tree_int_comparator, free_splay_tree): New.
7430 (print_one_inferior_data): Implemented printing of selected
7431 inferiors. Collect and print cores.
7432 (output_cores): New.
7433 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7434 thread groups together with --available.
7436 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7438 * configure: Regenerate (for _STRUCTURED_PROC).
7440 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7442 Delete dead function.
7443 * ada-lang.c (extract_string): Delete. No longer used.
7445 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7447 Fix -Wunused warning in dec-thread.c.
7448 * dec-thread.c (dec_thread_count_gdb_threads)
7449 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7451 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7453 * ada-valprint.c (ada_print_floating): Remove trailing space.
7455 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7457 Add support for DW_AT_GNAT_descriptive_type.
7458 * gdbtypes.h (enum type_specific_kind): New enum.
7459 (struct main_type) [type_specific_field]: New component.
7460 [type_specific]: Add new component "gnat_stuff".
7461 (struct gnat_aux_type): New type.
7462 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7463 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7464 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7465 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7466 (TYPE_SPECIFIC_FIELD): New macros.
7467 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7468 type does not hold any cplus-specific data.
7469 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7470 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7471 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7472 cplus-specific data.
7473 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7474 Set new component TYPE_SPECIFIC_FIELD (type).
7475 (gnat_aux_default): New constant.
7476 (allocate_gnat_aux_type): New function.
7477 (init_type): Add initialization the type-specific stuff for
7478 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7479 (print_gnat_stuff): New function.
7480 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7481 specific data. Adjust code that prints the contents of the
7482 type-specific union using the TYPE_SPECIFIC_FIELD value.
7483 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7484 the type cplus stuff for Ada types.
7485 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7486 Error out if these routines are called with an Ada type.
7487 (read_structure_type, read_array_type, read_subrange_type):
7488 Add call to set_descriptive_type.
7489 (set_die_type): Initialize the gnat-specific data if necessary.
7490 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7492 * ada-lang.c (decode_constrained_packed_array_type): Use
7493 decode_constrained_packed_array_type instead of doing a standard
7494 lookup to locate a parallel type.
7495 (find_parallel_type_by_descriptive_type): New function.
7496 (ada_find_parallel_type_with_name): New function.
7497 (ada_find_parallel_type): Reimplement using
7498 ada_find_parallel_type_with_name.
7499 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7500 to check if type has a cplus stuff.
7501 * linespec.c (total_number_of_methods): Likewise.
7502 * mdebugread.c (new_type): Likewise.
7504 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7506 * NEWS: Document the 0b binary number prefix parsing.
7508 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7510 * objfiles.c (objfile_relocate1): Change the return type to int.
7511 Describe the new return value. Return non-zero if data changed.
7512 (objfile_relocate): New variable changed. Set it. Call
7513 breakpoint_re_set depending on CHANGED.
7515 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7517 Implement binary numbers parsing.
7518 * c-exp.y (parse_number): New case 'b' and 'B'.
7520 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7521 Tristan Gingold <gingold@adacore.com>
7523 * solib.c (info_sharedlibrary_command): Replace
7524 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7525 objfile_has_symbols.
7527 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7529 * NEWS: Document the improvements made to the mips-irix port.
7531 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7533 Fix the documentation of valprint.c:value_print.
7534 * valprint.c (value_print): Update the function description to
7535 mention that the syntax of the output follows the current_language,
7538 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7540 Fix displacement of separate debug info files.
7541 * objfiles.c (objfile_relocate): Rename to ...
7542 (objfile_relocate1): ... here and make it static. Extend the comment.
7543 (objfile_relocate): New function.
7544 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7545 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7546 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7547 allocated using alloca.
7548 * symfile.c (copy_section_addr_info): Remove.
7549 (build_section_addr_info_from_objfile): Make it global. New variables
7550 addr_bit and mask, use them.
7551 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7552 (copy_section_addr_info): Remove.
7554 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7556 Signal unwinder for mips-irix N32.
7557 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7559 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7560 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7561 (SIGCONTEXT_LO_OFF): New macros.
7562 (mips_irix_n32_tramp_frame_init): New function.
7563 (mips_irix_n32_tramp_frame): New static constant.
7564 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7566 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7568 Breakpoint in shared library does not work on mips-irix.
7569 * procfs.c: #include "observer.h".
7570 (procfs_inferior_created): New function, moving here the code
7571 which unsets the syssgi syscall-exit notifications.
7572 (procfs_create_inferior): Remove the code which unsets the syssgi
7573 syscall-exit notifications. It is too early to do this here.
7574 (_initialize_procfs): Attach the procfs_inferior_created observer.
7576 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7578 Wrong return convention for arrays (mips-irix).
7579 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7580 128 bits or smaller are returned the same way as structs
7581 and unions of the the same size.
7583 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7585 Cannot set the PC on mips-irix.
7586 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7587 register number, no the cooked one.
7589 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7591 Error while loading core file on mips-irix.
7592 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7593 if debugging from a core file.
7595 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7597 GDB hangs when attaching to process on mips-irix.
7598 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7599 attaching to a process.
7601 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7603 Use the correct breakpoint instruction on mips-irix.
7604 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7605 containing the correct breakpoint instruction to use on mips-irix.
7606 Use it when the osabi is GDB_OSABI_IRIX.
7608 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7610 -Wunused warning in procfs.c (mips-irix only).
7611 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7612 throughout instead of using praddset and prdelset respectively.
7614 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7616 GDB crash while stepping into function.
7617 * infrun.c (handle_inferior_event): Refetch the current frame
7618 after handling what.main_action, in case that pointer became
7621 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7623 Fix build failure of solaris-hosted cross debuggers.
7624 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7626 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7628 Fix build failure on sparc-solaris.
7629 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7631 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7633 Move some symfile code into subroutines.
7634 * symfile.h (relative_addr_info_to_section_offsets)
7635 (addr_info_make_relative): New prototypes.
7636 * symfile.c (default_symfile_offsets): Move a part to ...
7637 (relative_addr_info_to_section_offsets): ... this new function.
7638 (default_symfile_offsets): Call it.
7639 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7641 (addr_info_make_relative): ... this new function.
7643 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7645 Add from_tty to solib_create_inferior_hook.
7646 * infcmd.c (post_create_inferior): Move solib_add after
7647 solib_create_inferior_hook. Pass from_tty to
7648 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7649 0 from_tty and comment why.
7650 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7651 * linux-nat.c (linux_child_follow_fork): Likewise.
7652 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7653 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7655 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7656 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7657 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7658 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7659 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7660 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7661 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7662 Pass it to svr4_so_ops.solib_create_inferior_hook.
7663 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7665 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7667 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7669 * solib-target.c (solib_target_solib_create_inferior_hook): New
7671 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7672 it to ops->solib_create_inferior_hook.
7673 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7674 Move solib_add after solib_create_inferior_hook, call it now with
7675 from_tty as 0. New comment there.
7676 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7677 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7680 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7683 * infrun.c (handle_inferior_event): Use get_thread_regcache
7684 with events ptid, not get_current_regcache.
7686 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7688 GDB crash with empty executable name (MinGW).
7689 * source.c (openp): Add assert that parameter string is not NULL.
7690 if parameter string is an empty string, then return with a failure
7693 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7695 Get rid of support for VAX Floats.
7696 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7697 (ada_vax_float_print_function): Delete.
7698 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7699 (ada_vax_float_print_function): Delete.
7700 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7701 (ada_print_type): Remove support for VAX floats.
7702 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7704 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7706 * stabsread.c (read_args): Handle zero arguments.
7708 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7710 Cannot find in-tree libiconv.a after reconfigure.
7711 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7712 that we can use, then cache the path to this archive.
7713 * configure: Regenerate.
7715 2010-01-07 Stan Shebs <stan@codesourcery.com>
7717 Make tracepoint operations go through target vector.
7718 * target.h (enum trace_find_type): New enum.
7719 (struct target_ops): New fields to_trace_init,
7720 to_download_tracepoint, to_download_trace_state_variable,
7721 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7722 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7723 to_set_disconnected_tracing.
7724 (target_trace_init): New macro.
7725 (target_download_tracepoint): New macro.
7726 (target_download_trace_state_variable): New macro.
7727 (target_trace_start): New macro.
7728 (target_trace_set_readonly_regions): New macro.
7729 (target_get_trace_status): New macro.
7730 (target_trace_stop): New macro.
7731 (target_trace_find): New macro.
7732 (target_get_trace_state_variable_value): New macro.
7733 (target_set_disconnected_tracing): New macro.
7734 * target.c (update_current_target): Inherit and set defaults for
7735 tracepoint operations.
7736 * tracepoint.c (default_collect): Make globally visible.
7737 (target_is_remote): Remove, along with all calls.
7738 (tvariables_info): Call target_get_trace_state_variable_value.
7739 (remote_set_transparent_ranges): Remove.
7740 (trace_start_command): Call target_trace_init,
7741 target_download_tracepoint, etc.
7742 (download_tracepoint): Remove.
7743 (trace_stop_command): Simplify.
7744 (stop_tracing): Call target_trace_stop.
7745 (get_trace_status): Call target_get_trace_status.
7746 (trace_status_command): Add case for targets that cannot trace.
7747 (finish_tfind_command): Change to take numerical arguments, call
7749 (trace_find_command): Update call to finish_tfind_command.
7750 (trace_find_pc_command): Ditto.
7751 (trace_find_tracepoint_command): Ditto.
7752 (trace_find_line_command): Ditto.
7753 (trace_find_range_command): Ditto.
7754 (trace_find_outside_command): Ditto.
7755 (set_disconnected_tracing_value): Call
7756 target_set_disconnected_tracing.
7757 * remote.c: Add protocol encoding bits from tracepoint.c.
7758 (trace_error): Move from tracepoint.c.
7759 (remote_get_noisy_reply): Ditto.
7760 (free_actions_list_cleanup_wrapper): Ditto.
7761 (free_actions_list): Ditto.
7762 (remote_trace_init): New function.
7763 (remote_download_tracepoint): New function.
7764 (remote_download_trace_state_variable): New function.
7765 (remote_trace_set_readonly_regions): New function.
7766 (remote_trace_start): New function.
7767 (remote_get_trace_status): New function.
7768 (remote_trace_stop): New function.
7769 (remote_trace_find): New function.
7770 (remote_download_trace_state_variable): New function.
7771 (remote_set_disconnected_tracing): New function.
7772 (init_remote_ops): Add tracepoint operations.
7774 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7776 2010-01-07 Tristan Gingold <gingold@adacore.com>
7778 * symfile.c (build_section_addr_info_from_objfile): New function.
7779 (symbol_file_add_separate): Don't use offsets from objfile but
7782 2010-01-06 Stan Shebs <stan@codesourcery.com>
7784 Support disconnected tracing.
7785 * infcmd.c (detach_command): Ask whether to stop tracing.
7786 * cli/cli-cmds.c (quit_command): Ditto.
7787 * breakpoint.h (struct breakpoint): New field number_on_target.
7788 * breakpoint.c (create_tracepoint_from_upload): New function.
7789 (get_tracepoint_by_number_on_target): New function.
7790 * remote.c (struct remote): New field disconnected_tracing.
7791 (remote_disconnected_tracing_feature): New function.
7792 (remote_protocol_features): Add DisconnectedTracing.
7793 (struct uploaded_tp): New struct.
7794 (uploaded_tps): New global.
7795 (get_uploaded_tp): New function.
7796 (find_matching_tracepoint): New function.
7797 (remote_get_tracing_state): New function.
7798 (remote_start_remote): Call it.
7799 * tracepoint.c (disconnected_tracing): New global.
7800 (trace_start_command): Initialize number_on_target.
7801 (stop_tracing): New function, split out from...
7802 (trace_stop_command): Call stop_tracing.
7803 (get_trace_status): New function, split out from...
7804 (trace_status_command): Call get_trace_status, add info on
7805 disconnection behavior.
7806 (disconnect_or_stop_tracing): New function.
7807 (finish_tfind_command): Translate from number on target.
7808 (trace_find_tracepoint_command): Translate to number on target.
7809 (send_disconnected_tracing_value): New function.
7810 (set_disconnected_tracing): New function.
7811 (_initialize_tracepoint): Add disconnected-tracing variable.
7812 * NEWS: Mention disconnected tracing.
7814 2010-01-06 Tristan Gingold <gingold@adacore.com>
7816 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7817 parameter to main_objfile. Iterate on all separate debug objfiles.
7818 * symfile.h (symbol_file_add_separate)
7819 (find_separate_debug_file_by_debuglink): Remove parameter names.
7820 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7821 (reread_symbols): Use free_objfile_separate_debug.
7822 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7824 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7825 (free_objfile_separate_debug): New prototypes.
7826 * objfiles.c (objfile_separate_debug_iterate): New function.
7827 (add_separate_debug_objfile, free_objfile_separate_debug): New
7829 (free_objfile): Use free_objfile_separate_debug. Adjust for
7830 multiple separate debug objfile.
7831 (objfile_has_symbols): Adjust comment. Iterate on all separate
7833 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7835 (lookup_minimal_symbol_text): Ditto.
7836 (lookup_minimal_symbol_by_pc_name): Ditto.
7837 (lookup_minimal_symbol_solib_trampoline): Ditto.
7838 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7841 2010-01-05 Stan Shebs <stan@codesourcery.com>
7843 Add fast tracepoints.
7844 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7845 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7846 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7847 * breakpoint.c (tracepoint_type): New function.
7848 (ALL_TRACEPOINTS): Use it.
7849 (should_be_inserted): Ditto.
7850 (bpstat_check_location): Ditto.
7851 (print_one_breakpoint_location): Ditto.
7852 (user_settable_breakpoint): Ditto.
7853 (set_breakpoint_location_function): Ditto.
7854 (disable_breakpoints_in_shlibs): Ditto.
7855 (delete_trace_command): Ditto.
7856 (print_it_typical): Add bp_fast_tracepoint case.
7857 (bpstat_what): Ditto.
7858 (print_one_breakpoint_location): Ditto.
7859 (allocate_bp_location): Ditto.
7861 (breakpoint_re_set_one): Ditto.
7862 (disable_command): Ditto.
7863 (enable_command): Ditto.
7864 (check_fast_tracepoint_sals): New function.
7865 (break_command_really): Call it.
7866 (ftrace_command): New function.
7867 (_initialize_breakpoint): Add ftrace command.
7868 * gdbarch.sh (fast_tracepoint_valid_at): New.
7869 * gdbarch.h, gdbarch.c: Regenerate.
7870 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7871 (i386_gdbarch_init): Use it.
7872 * remote.c (struct remote_state): New field fast_tracepoints.
7873 (PACKET_FastTracepoints): New packet config type.
7874 (remote_fast_tracepoint_feature): New function.
7875 (remote_protocol_features): Add FastTracepoints.
7876 (remote_supports_fast_tracepoints): New function.
7877 (_initialize_remote): Add FastTracepoints.
7878 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7879 * NEWS: Mention fast tracepoints.
7881 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7883 * gdb-gdb.py: New file.
7885 2010-01-05 Michael Snyder <msnyder@vmware.com>
7887 * infrun.c (handle_inferior_event): Fix typo in comment.
7889 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7891 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7893 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7895 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7897 (s390-linux32-expedite): Define.
7898 (s390-linux64-expedite): Define.
7899 (s390x-linux64-expedite): Define.
7900 * features/s390-acr.xml: New file.
7901 * features/s390-fpr.xml: New file.
7902 * features/s390-core32.xml: New file.
7903 * features/s390-core64.xml: New file.
7904 * features/s390x-core64.xml: New file.
7905 * features/s390-linux32.xml: New file.
7906 * features/s390-linux64.xml: New file.
7907 * features/s390x-linux64.xml: New file.
7908 * features/s390-linux32.c: New generated file.
7909 * features/s390-linux64.c: New generated file.
7910 * features/s390x-linux64.c: New generated file.
7912 * regformats/s390-linux32.dat: New generated file.
7913 * regformats/s390-linux64.dat: New generated file.
7914 * regformats/s390x-linux64.dat: New generated file.
7915 * regformats/reg-s390.dat: Remove.
7916 * regformats/reg-s390x.dat: Remove.
7918 * s390-nat.c: Include "auxv.h" and <elf.h>.
7919 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7920 (s390_target_wordsize): New function.
7921 (s390_auxv_parse): Likewise.
7922 (s390_get_hwcap): Likewise.
7923 (s390_read_description): Likewise.
7924 (_initialize_s390_nat): Install s390_auxv_parse and
7925 s390_read_description.
7927 * s390-tdep.c: Include "features/s390-linux32.c",
7928 "features/s390-linux64.c", and "features/s390x-linux64.c".
7929 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7930 (s390_register_call_saved): New function.
7931 (s390_register_name): Remove.
7932 (s390_register_type): Remove.
7933 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7934 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7935 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7936 (s390_pseudo_register_name): New function.
7937 (s390_pseudo_register_type): New function.
7938 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7939 Handle full GPR pesudos and varying pseudo register numbers.
7940 (s390_pseudo_register_write): Likewise
7941 (s390x_pseudo_register_read): Remove.
7942 (s390x_pseudo_register_write): Likewise.
7943 (s390_register_group): Remove.
7944 (s390_pseudo_register_group): New function.
7945 (s390_regmap_gregset): Add GPR upper halves.
7946 (s390x_regmap_gregset): Likewise.
7947 (s390_regmap_fpregset): Likewise.
7948 (s390_regmap_upper): New global variable.
7949 (s390_upper_regset): New global variable.
7950 (s390_upper_regset_sections): New global variable.
7951 (s390_regset_from_core_section): Handle GPR upper halves.
7952 (s390_core_read_description): New function.
7953 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7954 register information. Handle varying pseudo register numbers.
7955 (s390_backchain_frame_unwind_cache): Likewise.
7956 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7957 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7958 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7959 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7960 Handle varying pseudo register numbers.
7961 (s390_unwind_pc): Handle varying pseudo register numbers.
7962 (s390_dwarf2_prev_register): New function.
7963 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7964 register information. Handle varying pseudo register numbers.
7965 Install s390_dwarf2_prev_register to unwind full GPRs.
7966 (s390_gdbarch_init): Handle target descriptions. Assign varying
7967 pseudo register numbers. Install s390_adjust_frame_regnum.
7968 (_initialize_s390_tdep): Initialize target descriptions.
7970 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7971 (S390_NUM_REGS): Redefine to include upper half registers.
7972 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7973 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7974 (tdesc_s390_linux32): Add declaration.
7975 (tdesc_s390_linux64): Likewise.
7976 (tdesc_s390x_linux64): Likewise.
7978 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7980 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7981 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7982 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7983 (ppc_linux_vmx_regset_sections): Likewise.
7984 (ppc_linux_fp_regset_sections): Likewise.
7986 * corelow.c (get_core_register_section): Constify arguments.
7987 (get_core_registers): Use gdbarch_core_regset_sections instead
7988 of hard-coded platform-specific register section names.
7990 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7992 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7993 a register, assume the least-significant part is used.
7994 (write_pieced_value): Likewise.
7996 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7998 * printcmd.c: Include "arch-utils.h".
7999 (do_one_display): Re-parse expression if current architecture changed.
8001 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8002 Joel Brobecker <brobecker@adacore.com>
8004 * gdbtypes.c (check_typedef): New comment on type length.
8005 * value.c (allocate_value_lazy): Remove the unused atype variable. New
8006 comment on type length.
8007 (value_primitive_field): Keep the original TYPE value, new comment.
8009 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8011 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
8012 p_start. Change != comparisons to > and < comparisons.
8014 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8016 * cli/cli-script.c (process_next_line): Check P2 overrun.
8018 2009-01-01 Joel Brobecker <brobecker@adacore.com>
8020 Update the copyright hearder to add year 2010 for most GDB files.
8022 2009-01-01 Joel Brobecker <brobecker@adacore.com>
8024 Fix build failure in inf-ptrace.c.
8025 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
8027 2010-01-01 Joel Brobecker <brobecker@adacore.com>
8029 * top.c (print_gdb_version): Update copyright year.
8031 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
8033 Fix break *FUN'address thread NUM.
8034 * ada-lex.l (task): Expand rule to also match the thread keyword.
8036 2010-01-01 Joel Brobecker <brobecker@adacore.com>
8038 Fix break *FUN'address task NUM.
8039 * ada-lex.l (task): New rule.
8040 * ada-lang.c (valid_task_id): Make sure the Ada task list has
8041 been built before using it.
8043 For older changes see ChangeLog-2009.
8049 version-control: never