1 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2 Thiago Jung Bauermann <bauerman@br.ibm.com>
4 Support for hw accelerated condition watchpoints in booke powerpc.
6 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
7 and move to eval.c. Change callers.
8 (insert_bp_location): Pass watchpoint condition in
9 target_insert_watchpoint.
10 (remove_breakpoint_1) Pass watchpoint condition in
11 target_remove_watchpoint.
12 (watchpoint_locations_match): Call
13 target_can_accel_watchpoint_condition.
14 * eval.c: Include wrapper.h.
15 (fetch_subexp_value): Moved from breakpoint.c.
16 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
18 (can_use_watchpoint_cond_accel): New function.
19 (calculate_dvc): Likewise.
20 (num_memory_accesses): Likewise.
21 (check_condition): Likewise.
22 (ppc_linux_can_accel_watchpoint_condition): Likewise
23 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
24 check_condition and calculate_dvc.
25 (ppc_linux_remove_watchpoint): Likewise.
26 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
27 ppc_linux_can_accel_watchpoint_condition
28 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
30 (debug_to_remove_watchpoint): Likewise.
31 (debug_to_can_accel_watchpoint_condition): New function.
32 (update_current_target): Set to_can_accel_watchpoint_condition.
33 (setup_target_debug): Set to_can_accel_watchpoint_condition.
34 * target.h: Add opaque declaration for struct expression.
35 (struct target_ops) <to_insert_watchpoint>,
36 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
37 <to_can_accel_watchpoint_condition>: New member.
38 condition. Update all callers and implementations.
39 (target_can_accel_watchpoint_condition): New macro.
40 * value.c (free_value_chain): New function.
41 * value.h (fetch_subexp_value): New prototype.
42 (free_value_chain): Likewise.
44 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
46 * linux-nat.c (linux_nat_do_thread_registers): Use section size
47 from gdbarch_core_regset_sections also for .reg if present.
49 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
50 section size for .reg.
51 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
52 (ppc_linux_vmx_regset_sections): Likewise.
53 (ppc_linux_fp_regset_sections): Likewise.
54 (ppc64_linux_vsx_regset_sections): New variable.
55 (ppc64_linux_vmx_regset_sections): Likewise.
56 (ppc64_linux_fp_regset_sections): Likewise.
57 (ppc_linux_init_abi): Install core_regset_section lists appropriate
58 for current word size.
60 2010-07-06 Joel Brobecker <brobecker@adacore.com>
62 * server.c (myresume): Make static.
64 2010-07-06 Tom Tromey <tromey@redhat.com>
66 * configure, config.in: Rebuild.
67 * configure.ac (HAVE_LIBPYTHON2_7): New define.
68 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
70 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
72 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
75 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
77 * gdbtypes.h (floatformats_ieee_half): Add declaration.
78 * gdbtypes.c (floatformats_ieee_half): New variable.
79 * doublest.c (floatformat_from_length): Set format to
80 gdbarch_half_format if length matches.
81 * gdbarch.sh (half_bit): New architecture method.
82 (half_format): Likewise.
83 * gdbarch.h: Regenerate.
84 * gdbarch.c: Likewise.
86 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
87 Joel Brobecker <brobecker@adacore.com>
89 Fix re-run of PIE executable, PR shlibs/11776.
90 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
91 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
93 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
94 Joel Brobecker <brobecker@adacore.com>
96 * auxv.c (memory_xfer_auxv): Update attach comment.
97 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
98 svr4_relocate_main_executable.
99 (svr4_solib_create_inferior_hook): Make the call to
100 svr4_relocate_main_executable unconditional.
102 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
103 Joel Brobecker <brobecker@adacore.com>
105 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
107 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
108 Joel Brobecker <brobecker@adacore.com>
110 Fix attaching to PIEs prelinked on the disk after the process was
112 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
113 Verify it against bfd_get_arch_size. Try to match arbitrary
114 displacement for the phdrs comparison.
116 2010-07-02 Tom Tromey <tromey@redhat.com>
119 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
120 value as optimized-out.
122 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
123 Thiago Jung Bauermann <bauerman@br.ibm.com>
125 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
126 represent?" question in comment. Change comment to a proper sentence.
128 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
130 * c-valprint.c (c_val_print): Fix printing of character vectors.
132 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
134 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
135 create_breakpoint prototype.
137 2010-07-01 Pedro Alves <pedro@codesourcery.com>
139 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
140 usefulness suggestion of multiple breakpoints at same location.
142 2010-07-01 Pedro Alves <pedro@codesourcery.com>
144 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
146 2010-07-01 Pedro Alves <pedro@codesourcery.com>
148 * dwarf2loc.c (locexpr_tracepoint_var_ref)
149 (loclist_tracepoint_var_ref): Handle optimized out values.
151 2010-07-01 Pedro Alves <pedro@codesourcery.com>
153 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
154 unnecessary space in string.
155 * filesystem.c (_initialize_filesystem): Ditto.
156 * frame.c (_initialize_frame): Ditto.
157 * infcmd.c (step_once): Ditto.
158 * infrun.c (_initialize_infrun): Ditto.
159 * linux-nat.c (linux_child_follow_fork): Ditto.
160 * maint.c (maintenance_deprecate): Ditto.
161 * memattr.c (_initialize_mem): Ditto.
162 * mips-tdep.c (_initialize_mips_tdep): Ditto.
163 * monitor.c (monitor_open): Ditto.
164 * procfs.c (procfs_xfer_memory): Ditto.
165 * reverse.c (bookmarks_info): Ditto.
166 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
167 * stack.c (_initialize_stack): Ditto.
168 * tracepoint.c (_initialize_tracepoint): Ditto.
169 * xtensa-tdep.c (xtensa_supply_gregset,
170 xtensa_regset_from_core_section): Ditto.
172 2010-07-01 Tom Tromey <tromey@redhat.com>
174 * value.h (struct lval_funcs) <check_any_valid>: Rename from
176 * value.c (value_entirely_optimized_out): Invert result. Update
177 for new function name.
179 2010-07-01 Pedro Alves <pedro@codesourcery.com>
181 Static tracepoints support.
183 * NEWS: Mention new support for static tracepoints.
184 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
185 qXfer:statictrace:read.
186 (New features in the GDB remote stub, GDBserver): Mention static
187 tracepoints support using an UST based backend.
188 (New commands): Mention "info static-tracepoint-markers" and
190 * breakpoint.c (is_marker_spec): New.
191 (is_tracepoint): Handle static tracepoints.
192 (validate_commands_for_breakpoint): Static tracepoints can't do
194 (static_tracepoints_here): New.
195 (bpstat_what): Handle static tracepoints.
196 (print_one_breakpoint_location, allocate_bp_location, mention):
198 (create_breakpoint_sal): Ditto.
199 (decode_static_tracepoint_spec): New.
200 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
201 `type_wanted'. Adjust. Handle static tracepoint marker
203 (break_command_1): Adjust.
204 (update_static_tracepoint): New.
205 (update_breakpoint_locations): Handle static tracepoints.
206 (breakpoint_re_set_one): Handle static tracepoint marker
208 (disable_command, enable_command): Handle static tracepoints.
209 (trace_command, ftrace_command): Adjust.
210 (strace_command): New.
211 (create_tracepoint_from_upload): Adjust.
212 (save_breakpoints): Handle static tracepoints.
213 (_initialize_breakpoint): Install the "strace" command.
214 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
215 (struct breakpoint): New fields static_trace_marker_id and
216 static_trace_marker_id_idx.
217 (breakpoints_here_p): Declare.
218 (create_breakpoint): Adjust.
219 (static_tracepoints_here): Declare.
220 * remote.c (struct remote_state) <static_tracepoints>: New field.
221 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
222 (remote_static_tracepoint_marker_at): New.
223 (remote_static_tracepoint_markers_by_strid): New.
224 (remote_static_tracepoint_feature): New.
225 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
226 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
227 (remote_supports_static_tracepoints): New.
228 (remote_download_tracepoint): Download static tracepoints.
229 (init_remote_ops): Install remote_static_tracepoint_marker_at and
230 remote_static_tracepoint_markers_by_strid.
231 (_initialize_remote): Install set|show remote static-tracepoints,
232 and set|show remote read-sdata-object commands.
233 * target.c (update_current_target): Inherit and default
234 to_static_tracepoint_marker_at, and
235 to_static_tracepoint_markers_by_strid.
236 * target.h (static_tracepoint_marker): Forward declare.
237 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
238 (static_tracepoint_marker_p): New typedef.
239 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
240 (struct target_ops): New fields to_static_tracepoint_marker_at and
241 to_static_tracepoint_markers_by_strid.
242 (target_static_tracepoint_marker_at)
243 (target_static_tracepoint_markers_by_strid): New.
244 * tracepoint.c: Include source.h.
245 (validate_actionline): Handle $_sdata.
246 (struct collection_list): New field strace_data.
247 (add_static_trace_data): New.
248 (clear_collection_list): Clear strace_data.
249 (stringify_collection_list): Account for a possible static trace
251 (encode_actions_1): Encode an $_sdata collection.
252 (parse_tracepoint_definition): Handle static tracepoints.
253 (parse_static_tracepoint_marker_definition): New.
254 (release_static_tracepoint_marker): New.
255 (print_one_static_tracepoint_marker): New.
256 (info_static_tracepoint_markers_command): New.
257 (sdata_make_value): New.
258 (_initialize_tracepoint): Create the $_sdata convenience variable.
259 Add the "info static-tracepoint-markers" command.
260 Mention $_sdata in the "collect" command's help output.
261 * tracepoint.h (struct static_tracepoint_marker): New.
262 (parse_static_tracepoint_marker_definition)
263 (release_static_tracepoint_marker): Declare.
264 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
265 * python/py-breakpoint.c (bppy_new): Adjust.
267 2010-06-30 Joel Brobecker <brobecker@adacore.com>
269 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
272 2010-06-29 Doug Evans <dje@google.com>
275 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
276 DW_AT_external is present.
280 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
281 create a symbol for the field and record the value.
282 (new_symbol): Handle DW_TAG_member.
283 * gdbtypes.c (field_is_static): Remove FIXME.
284 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
285 only ignore LOC_CONST symbols that are enums.
287 * dwarf2read.c: Remove trailing whitespace.
289 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
290 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
291 (struct main_type, field loc): Delete dwarf_block.
292 (FIELD_DWARF_BLOCK): Delete.
293 (SET_FIELD_DWARF_BLOCK): Delete.
294 (TYPE_FIELD_DWARF_BLOCK): Delete.
295 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
298 2010-06-29 Hui Zhu <teawater@gmail.com>
300 * record.c (set_record_pic_cmdlist,
301 show_record_pic_cmdlist): New variables.
302 (set_record_pic_command,
303 show_record_pic_command): New functions.
304 (record_pic_function, record_pic_line, record_pic_enum,
305 set_record_pic_type, record_pic_hide_nofunction,
306 record_pic_hide_nosource, record_pic_hide_same): New variables.
307 (record_pic_fputs): New function.
308 (function_list, node_list, edge_list): New struct.
309 (function_list, node_list, edge_list): New variables.
310 (record_pic_cleanups, record_pic_node,
311 record_pic_edge, cmd_record_pic): New functions.
312 (_initialize_record): Add new commands for record pic.
314 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
316 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
317 ALLOCATE_CPLUS_STRUCT_TYPE.
319 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
320 Tom Tromey <tromey@redhat.com>
321 Thiago Jung Bauermann <bauerman@br.ibm.com>
323 * value.c (pack_unsigned_long): New function.
324 (value_from_ulongest): New function.
325 * value.h (value_from_ulongest): Declare.
326 * python/python.c (_initialize_python): Call
327 gdbpy_initialize_thread and gdbpy_initialize_inferior.
328 * python/python-internal.h: Define thread_object.
329 (gdbpy_inferiors, gdbpy_selected_thread)
330 (frame_info_to_frame_object, create_thread_object)
331 (find_thread_object, find_inferior_object)
332 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
333 (gdbpy_is_value_object, get_addr_from_python): Declare.
334 * python/py-value.c (builtin_type_upylong): Define.
335 (convert_value_from_python): Add logic for ulongest.
336 (gdbpy_is_value_object): New function.
337 * python/py-utils.c (get_addr_from_python): New function.
338 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
339 (gdbpy_selected_frame): Use PyObject over frame_info.
340 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
342 (SUBDIR_PYTHON_SRCS): Likewise.
343 (py-inferior.o): New Rule.
344 (py-infthread.o): New Rule.
345 * python/py-inferior.c: New File.
346 * python/py-infthread.c: New File.
348 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
350 * c-typeprint.c (c_type_print_base): For no fields check include also
351 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
352 * dwarf2read.c (struct typedef_field_list)
353 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
354 (dwarf2_add_typedef): New.
355 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
356 Copy also FI.TYPEDEF_FIELD_LIST.
357 * gdbtypes.h (struct typedef_field)
358 (struct cplus_struct_type) <typedef_field, typedef_field_count>
359 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
360 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
362 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
364 * cp-namespace.c (cp_lookup_nested_type): New variable
365 concatenated_name. Turn the current return condition into a reverse
366 one. Call also lookup_static_symbol_aux on the constructed qualified
368 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
369 other files into a called ...
370 (lookup_static_symbol_aux): ... new function here.
371 * symtab.h (lookup_static_symbol_aux): New prototype.
372 * valops.c (value_maybe_namespace_elt): Call also
373 lookup_static_symbol_aux if we failed otherwise.
375 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
377 Fix PR c++/11703 and PR gdb/1448.
378 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
381 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
383 Fix modification of cplus_struct_default.
384 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
385 Call ALLOCATE_CPLUS_STRUCT_TYPE.
386 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
388 2010-06-28 Joel Brobecker <brobecker@adacore.com>
390 * NEWS: Add entry announcing the python directory.
392 2010-06-28 Tom Tromey <tromey@redhat.com>
394 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
396 2010-06-28 Doug Evans <dje@google.com>
398 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
401 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
403 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
404 obstack_begin after each obstack_free.
406 2010-06-27 Doug Evans <dje@google.com>
408 * value.c (value_static_field): Use `switch' instead of `if'.
409 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
411 * valops.c (search_struct_field): Fix typo in error message.
413 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
415 * dwarf2expr.c (execute_stack_op): Place preprocessor
416 directives at the start of the source line.
418 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
420 * defs.h (make_command_stats_cleanup): Declare.
421 (set_display_time): Declare.
422 (set_display_space): Declare.
423 * event-top.c (command_handler): Use make_command_stats_cleanup.
424 * main.c (display_time, display_space): Move definitions to utils.c.
425 (captured_main): Use make_command_stats_cleanup to get start-up
427 Use set_display_time and set_display_space for processing OPT_STATISTICS
429 * maint.c (maintenance_time_display): Use set_display_time.
430 (maintenance_space_display): Use set_display_space.
431 * top.c (execute_command): Remove obsolete 'maint time' code.
432 (command_loop): Use make_command_stats_cleanup.
433 * utils.c (struct cmd_stats): Structure for storing initial time
435 (display_time, display_space): Move definitions here from utils.c.
436 (set_display_time): New function.
437 (set_display_space): New function.
438 (make_command_stats_cleanup): New function.
439 (report_command_stats): New auxiliary function for
440 make_command_stats_cleanup.
442 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
444 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
445 hosts where CORE_ADDR is long long.
447 2010-06-25 Tom Tromey <tromey@redhat.com>
450 * python/python.c (execute_gdb_command): Add keywords. Accept
451 "to_string" argument.
452 (struct restore_ui_file_closure): New.
453 (restore_ui_file): New function.
454 (make_cleanup_restore_ui_file): Likewise.
455 (GdbMethods) <execute>: Update.
457 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
459 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
460 during inferior call stack frame setup.
462 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
464 * solib-spu.c: Include "exception.h".
465 (ocl_program_data_key): New variable.
466 (append_ocl_sos): New function.
467 (ocl_enable_break): Likewise.
468 (spu_current_sos): Call append_ocl_sos.
469 (spu_solib_loaded): Call ocl_enable_break.
470 (_initialize_spu_solib): Register ocl_program_data_key.
472 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
474 * cp-support.c (reset_directive_searched): New function.
475 (make_symbol_overload_list_using): Prevent recursive calls.
477 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
479 * printcmd.c (print_variable_and_value): Print error message on
482 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
484 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
486 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
488 (dwarf_expr_push): Change input type to ULONGEST.
489 (dwarf_expr_fetch): Change return type to ULONGEST.
490 (dwarf_expr_fetch_address): Add prototype.
491 (dwarf2_read_address): Remove prototype.
492 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
493 Truncate stack values to ctx->addr_size bytes.
494 (dwarf_expr_fetch): Change return value to ULONGEST.
495 (dwarf_expr_fetch_address): New function.
496 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
497 when appropriate. Update for struct dwarf_expr_piece changes.
498 (dwarf2_read_address): Remove.
499 (unsigned_address_type): Remove.
500 (signed_address_type): Remove.
501 (execute_stack_op): Use dwarf_expr_fetch_address instead of
502 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
503 values. Perform operations on ULONGEST instead of on GDB values,
504 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
505 values and DW_OP_deref results as unsigned integers.
506 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
508 (write_pieced_value): Likewise.
509 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
510 dwarf_expr_fetch when appropriate.
511 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
512 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
513 instead of dwarf_expr_fetch when appropriate.
515 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
517 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
519 2010-06-24 Joel Brobecker <brobecker@adacore.com>
521 * python/python.c (_initialize_python): Add new "constant"
522 PYTHONDIR in gdb module. Insert this path at the head of
523 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
524 exec its __init__.py script if it exists in that directory.
526 2010-06-24 Kevin Buettner <kevinb@redhat.com>
528 * rx-tdep.c (RX_ACC_REGNUM): Define.
529 (RX_NUM_REGS): Redefine to 26.
530 (rx_register_name): Add register "acc". Change order of several
531 registers. Change name of "vct" register to "fintv" to match RX
533 (rx_register_type): Add case for RX_ACC_REGNUM.
535 2010-06-24 Tom Tromey <tromey@redhat.com>
537 * psymtab.c (lookup_partial_symbol): Mark definition as static.
539 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
540 Tom Tromey <tromey@redhat.com>
542 Fix GDB startup on readonly filesystem.
543 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
545 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
546 Pedro Alves <pedro@codesourcery.com>
549 * breakpoint.c (handle_jit_event): New function.
550 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
551 jit, err, table and bs_class. New variables shlib_event, jit_event,
552 this_action and bptype. Change bs_class assignments to this_action
553 assignments. new unhandled bptype internal error. Move here
554 shlib_event and jit_event handling from handle_inferior_event.
555 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
556 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
557 BPSTAT_WHAT_CHECK_JIT.
558 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
559 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
560 (handle_inferior_event): Reinitialize frame and gdbarch after
561 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
562 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
563 gdbarch when frame gets reinitialized.
565 2010-06-24 Hui Zhu <teawater@gmail.com>
567 * printcmd.c (ui_printf): New function.
568 (printf_command): Call ui_printf.
569 (_initialize_printcmd): New command "eval".
571 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
573 * infrun.c (handle_inferior_event): Handle presence of single-step
574 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
575 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
576 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
577 * breakpoint.c (detach_single_step_breakpoints): New function.
578 (detach_breakpoints): Call it.
579 (cancel_single_step_breakpoints): New function.
580 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
582 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
583 (spu_gdbarch_init): Install it.
585 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
587 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
588 * configure: Regenerate.
590 2010-06-22 Hui Zhu <teawater@gmail.com>
592 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
593 (i386_process_record): Ditto.
594 * record.c (record_memory_query): New variable.
595 (_initialize_record): New command "set record memory-query".
596 * record.h (record_memory_query): New extern.
598 2010-06-21 Doug Evans <dje@google.com>
600 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
601 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
602 (i386_syscall_p): Change type of lengthp to int.
603 (i386_displaced_step_fixup): Handle kernels that run one past a
605 * i386-linux-tdep.c (i386_linux_init_abi): Use
606 i386_displaced_step_copy_insn instead of
607 simple_displaced_step_copy_insn.
609 2010-06-21 Tom Tromey <tromey@redhat.com>
611 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
612 (dwarf_type_encoding_name): Likewise.
614 2010-06-21 Tom Tromey <tromey@redhat.com>
616 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
617 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
618 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
619 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
620 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
621 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
622 * dwarf2read.c (tag_type_to_type): Create a new error type on
624 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
625 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
627 2010-06-21 Michael Snyder <msnyder@vmware.com>
629 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
630 not add_abbrev_prefix_cmd, for "enable breakpoints".
632 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
634 * dwarf2loc.c (find_location_expression): Add relocation offset
635 to base-address-selection entry base addresses. Read addresses
636 (and offsets) as signed/unsigned integers, depending on the
637 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
638 (loclist_describe_location): Likewise.
639 (disassemble_dwarf_expression): Read DW_OP_addr operand as
640 unsigned integer. Do not call dwarf2_read_address.
641 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
643 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
645 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
646 value instead of hard-coded SPU_LS_SIZE.
647 (spu_software_single_step): Likewise.
648 * spu-tdep.h (SPU_LS_SIZE): Remove.
650 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
652 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
653 limit on local store memory accesses.
654 * spu-linux-nat.c (spu_xfer_partial): Likewise.
655 * spu-tdep.c (spu_lslr): Remove.
656 (spu_pointer_to_address): Do not truncate addresses.
657 (spu_integer_to_address): Likewise.
658 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
659 * spu-tdep.h: Add comments.
660 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
661 (SPU_OVERLAY_LMA): Define.
663 2010-06-18 Stan Shebs <stan@codesourcery.com>
665 * osdata.c (get_osdata): Warn separately if target does not report
667 (info_osdata_command): Allow empty type, report error if target
668 does not return available types of OS data.
669 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
670 types if no annex supplied.
672 * thread.c (thread_id_make_value): Make a value representing the
674 (_initialize_thread): Create $_thread.
676 2010-06-17 Joel Brobecker <brobecker@adacore.com>
678 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
679 last local variable declaration. No real code change.
681 2010-06-17 Tom Tromey <tromey@redhat.com>
683 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
684 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
687 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
688 Jan Kratochvil <jan.kratochvil@redhat.com>
690 * breakpoint.c: Include parser-defs.h.
691 (watchpoint_exp_is_const): New function.
692 (watch_command_1): Call watchpoint_exp_is_const to check
693 if the expression is constant.
695 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
697 * configure.ac: Check for RDYNAMIC also for cross builds.
698 * configure: Regenerate.
700 2010-06-15 Pedro Alves <pedro@codesourcery.com>
702 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
703 (SFILES): Remove solib-null.c, add solib-target.c.
704 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
705 (ALLDEPFILES): Remove solib-target.c.
706 * solib-target.c (_initialize_solib_target): Set
707 current_target_so_ops to solib_target_so_ops if not already set.
708 * solib-null.c: Delete.
710 2010-06-14 Pedro Alves <pedro@codesourcery.com>
712 * NEWS: Mention GDBserver's JIT compilation of tracepoint
715 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
717 * cp-valprint.c (cp_print_static_field): Members of
718 dont_print_stat_array_obstack are of type "struct type *".
719 (_initialize_cp_valprint): Likewise.
721 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
723 * frame.c (frame_register_unwind): Do not access contents
724 of "optimized out" unwound register value.
726 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
728 * ada-lang.h (ada_print_type): Make varstring const.
729 * ada-typeprint.c (print_func_type): Make name const.
730 (ada_print_type): Make varstring const.
731 * c-lang.h (c_print_type): Make varstring const.
732 * c-typeprint.c (c_print_type): Likewise.
733 * f-lang.h (f_print_type): Likewise.
734 * f-typeprint.c (f_print_type): Likewise.
735 * jv-lang.h (java_print_type): Likewise.
736 * jv-typeprint.c (java_print_type): Likewise.
737 * language.c (unk_lang_print_type): Likewise.
738 * language.h (struct language_defn) <la_print_type>: Likewise.
739 * m2-lang.h (m2_print_type): Likewise.
740 * m2-typeprint.c (m2_print_type): Likewise.
741 * p-lang.h (pascal_print_type): Likewise.
742 * p-typeprint.c (pascal_print_type): Likewise.
744 2010-06-11 Stan Shebs <stan@codesourcery.com>
746 Add per-operation permission flags.
748 * target.h (struct target_ops): New method to_set_permissions.
749 (target_set_permissions): New macro.
750 (target_insert_breakpoint): Change macro to function.
751 (target_remove_breakpoint): Ditto.
752 (target_stop): Ditto.
753 (may_write_registers): Declare.
754 (may_write_memory): Declare.
755 (may_insert_breakpoints): Declare.
756 (may_insert_tracepoints): Declare.
757 (may_insert_fast_tracepoints): Declare.
759 * target.c (may_write_registers, may_write_registers_1): New globals.
760 (may_write_memory, may_write_memory_1): New globals.
761 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
762 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
763 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
765 (may_stop, may_stop_1): New global.
766 (target_xfer_partial): Test for write permission.
767 (target_store_registers): Ditto.
768 (target_insert_breakpoint): New function.
769 (target_remove_breakpoint): New function.
770 (target_stop): New function.
771 (_initialize_targets): Add new set/show variables.
772 (set_write_memory_permission): New function.
773 (update_target_permissions): New function.
774 (set_target_permissions): New function.
775 (update_current_target): Default to_set_permissions.
776 (_initialize_targets): Use new globals and setter function.
777 * tracepoint.c (start_tracing): Test for permission.
778 * inferior.h (update_observer_mode): Declare.
779 * infrun.c (non_stop_1): Define earlier.
780 (observer_mode, observer_mode_1): New globals.
781 (set_observer_mode, show_observer_mode): New functions.
782 (update_observer_mode): New function.
783 (_initialize_infrun): Define "set observer" command.
784 * remote.c (PACKET_QAllow): New optional packet.
785 (remote_protocol_features): Add QAllow.
786 (remote_set_permissions): New function.
787 (remote_start_remote): Call it.
788 (init_remote_ops): Add it to target vector.
789 (_initialize_remote): Add config command for QAllow.
791 2010-06-11 Tom Tromey <tromey@redhat.com>
793 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
794 DW_AT_vtable_elem_location even when GCC extension is seen.
796 2010-06-11 Tom Tromey <tromey@redhat.com>
798 PR gdb/9977, PR exp/11636:
799 * value.h (value_offset): Update.
800 (struct lval_funcs) <check_validity>: New field.
801 <copy_closure>: Make argument const.
802 (value_computed_closure): Update.
803 (value_contents_for_printing): Declare.
804 (value_bits_valid): Likewise.
805 (val_print): Likewise.
806 (set_value_component_location): Update.
807 (value_entirely_optimized_out): Declare.
808 * value.c (value_offset): Argument now const.
809 (require_not_optimized_out): New function.
810 (value_contents_for_printing): New function.
811 (value_contents_all): Call require_not_optimized_out.
812 (value_contents): Likewise.
813 (value_bits_valid): New function.
814 (value_computed_closure): Argument now const.
815 (set_value_component_location): Make 'whole' argument const.
816 (value_entirely_optimized_out): New function.
817 (value_bitsize): Argument now 'const'.
818 (value_bitpos): Likewise.
819 (value_type): Likewise.
820 * valprint.h (val_print_array_elements): Update.
821 * valprint.c (val_print): Add 'val' argument. Use
822 valprint_check_validity.
823 (valprint_check_validity): New function.
824 (value_check_printable): Use value_entirely_optimized_out.
825 (common_val_print): Update.
826 (value_print): Likewise.
827 (val_print_array_elements): Add 'val' argument.
828 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
829 value_bits_valid. Reinit frame cache for lval_computed.
830 * sh64-tdep.c (sh64_do_register): Update.
831 * scm-valprint.c (scm_val_print): Add 'val' argument.
832 * scm-lang.h (scm_val_print): Update.
833 * python/python.h (apply_val_pretty_printer): Update.
834 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
835 argument. Call set_value_component_location.
836 * printcmd.c (print_scalar_formatted): Update.
837 * p-valprint.c (pascal_val_print): Add 'val' argument.
838 (pascal_object_print_value_fields): Likewise.
839 (pascal_object_print_value): Likewise.
840 (pascal_object_print_static_field): Update.
841 * p-lang.h (pascal_val_print): Update.
842 (pascal_object_print_value_fields): Update.
843 * mt-tdep.c (mt_registers_info): Update.
844 * mi/mi-main.c (get_register): Update.
845 (mi_cmd_data_evaluate_expression): Use common_val_print.
846 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
847 (m2_print_unbounded_array): Likewise.
848 (m2_val_print): Likewise.
849 * m2-lang.h (m2_val_print): Update.
850 * language.h (struct language_defn) <la_val_print>: Add 'val'
852 (LA_VAL_PRINT): Likewise.
853 * language.c (unk_lang_val_print): Add 'val' argument.
854 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
855 (java_val_print): Likewise.
856 * jv-lang.h (java_val_print): Add 'val' argument.
857 * infcmd.c (default_print_registers_info): Update.
858 * f-valprint.c (f77_print_array_1): Add 'val' argument.
859 (f77_print_array): Likewise.
860 (f_val_print): Likewise.
861 * f-lang.h (f_val_print): Add 'val' argument.
862 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
864 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
865 set_value_optimized_out.
866 (write_pieced_value): Use value_bitsize and value_bitpos.
867 <default>: Don't exit loop.
868 (check_pieced_value_validity): New function.
869 (pieced_value_funcs): Reference check_pieced_value_validity,
870 check_pieced_value_invalid.
871 (copy_pieced_value_closure): Update.
872 (check_pieced_value_bits): New function.
873 (check_pieced_value_invalid): New function.
874 * d-valprint.c (dynamic_array_type): Add 'val' argument.
875 (d_val_print): Likewise.
876 * d-lang.h (d_val_print): Update.
877 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
878 (cp_print_value_fields_rtti): Likewise.
879 (cp_print_value): Likewise.
880 (cp_print_static_field): Update.
881 * c-valprint.c (c_val_print): Add 'val' argument.
882 (c_value_print): Update.
883 * c-lang.h (c_val_print): Update.
884 (cp_print_value_fields): Likewise.
885 (cp_print_value_fields_rtti): Likewise.
886 * ada-valprint.c (struct ada_val_print_args): Remove.
887 (val_print_packed_array_elements): Add 'val' argument.
888 (ada_val_print): Likewise. Rewrite.
889 (ada_val_print_stub): Remove.
890 (ada_val_print_array): Add 'val' argument.
891 (ada_val_print_1): Likewise.
892 (print_variant_part): Likewise.
893 (ada_value_print): Update.
894 (print_record): Add 'val' argument.
895 (print_field_values): Likewise.
896 * ada-lang.h (ada_val_print): Update.
898 2010-06-11 Tom Tromey <tromey@redhat.com>
900 * vec.h (VEC_cleanup): New macro.
901 (DEF_VEC_ALLOC_FUNC_I): Update.
902 (DEF_VEC_ALLOC_FUNC_P): Likewise.
903 (DEF_VEC_ALLOC_FUNC_O): Likewise.
904 * dwarf2loc.c (struct axs_var_loc): Remove.
905 (unimplemented): New function.
906 (translate_register): Likewise.
907 (access_memory): Likewise.
908 (compile_dwarf_to_ax): Likewise.
909 (dwarf2_tracepoint_var_loc): Remove.
910 (dwarf2_tracepoint_var_access): Likewise.
911 (dwarf2_tracepoint_var_ref): Likewise.
912 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
913 (loclist_tracepoint_var_ref): Likewise.
914 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
915 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
916 require_composition. No longer static.
917 (execute_stack_op): Update.
918 * ax-gdb.h (trace_kludge): Declare.
920 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
922 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
923 (should_be_inserted): Return zero also on NULL OWNER.
924 (breakpoint_program_space_exit): New OWNER comment.
925 (insert_breakpoint_locations): Extend comment for OWNER.
926 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
927 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
929 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
930 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
931 (bpstat_check_location): New assert on OWNER.
932 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
933 and B initializations to the code block. New assert on them.
934 (print_one_breakpoint_location): New OWNER comment.
935 (watchpoint_locations_match): Assert on OWNER.
936 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
937 initializations to the code block. New assert on OWNER.
938 (set_breakpoint_location_function): New assert on OWNER.
939 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
940 (bp_location_compare, update_global_location_list)
941 (update_global_location_list): New OWNER comment.
943 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
945 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
947 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
949 * config/nm-linux.h (struct target_ops): Remove forward declaration.
950 (lin_thread_get_thread_signals): Remove prototype.
951 (GET_THREAD_SIGNALS): Remove.
952 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
953 * linux-thread-db.c (check_thread_signals): Directly call
954 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
956 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
958 * gregset.h (GDB_FPXREGSET_T): Remove.
959 (gdb_fpxregset_t): Likewise.
960 (supply_fpxregset): Remove prototype.
961 (fill_fpxregset): Likewise.
962 * i386-linux-nat.c (supply_fpxregset): Remove.
963 (fill_fpxregset): Likewise.
964 (fetch_fpxregs): Inline supply_fpxregset call.
965 (store_fpxregs): Inline fill_fpxregset call.
967 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
968 * config/i386/nm-linux.h: Remove file.
970 2010-06-09 Michael Snyder <msnyder@vmware.com>
972 * target.c (update_current_target): Fix spelling error in comment.
973 (target_mourn_inferior): Fix spelling error in error message.
975 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
977 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
978 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
980 2010-06-08 Michael Snyder <msnyder@vmware.com>
982 * remote.c (remote_close): Set inferior_ptid to null_ptid.
984 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
986 * configure.ac <"${have_libpython}" != no>: New workaround of
988 * configure: Regenerate.
990 2010-06-08 Hui Zhu <teawater@gmail.com>
992 * record.c (record_wait): Move signal out of replay code.
994 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
997 * dwarf2-frame.c (no_dwarf_call): New function.
998 (execute_stack_op): Set CTX->DWARF_CALL.
999 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
1000 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
1001 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
1002 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
1003 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
1004 (needs_frame_dwarf_call): New function.
1005 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
1006 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
1007 Update the comment. Move variables die, offset and error call to ...
1008 (follow_die_ref): ... a new function.
1009 (dwarf2_fetch_die_location_block): New function.
1010 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
1012 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1014 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
1015 (dwarf_expr_tls_address): Use per_cu instead of objfile.
1016 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
1017 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
1019 (struct needs_frame_baton): New field per_cu.
1020 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
1021 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
1023 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
1025 * cp-support.c (make_symbol_overload_list_namespace): Only search
1026 static and global blocks.
1027 (make_symbol_overload_list_block): New function.
1028 (make_symbol_overload_list): Separate namespace search from block
1030 (make_symbol_overload_list_qualified): Use
1031 make_symbol_overload_list_block.
1033 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
1035 * value.h: Created oload_search_type enum.
1036 (find_overload_match): Use oload_search_type enum.
1037 * valops.c (find_overload_match): Support combined member and
1039 * eval.c (evaluate_subexp_standard): Calls to
1040 find_overload_match now use oload_search_type enum.
1041 (oload_method_static): Verify index is a proper value.
1042 * valarith.c (value_user_defined_cpp_op): Search for and handle
1043 both member and non-member operators.
1044 (value_user_defined_cpp_op): New function.
1045 (value_user_defined_op): New function.
1046 (value_x_unop): Use value_user_defined_op.
1047 (value_x_binop): Ditto.
1048 * cp-support.c (make_symbol_overload_list_using): Added block
1050 Add check for namespace aliases and imported declarations.
1052 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1054 * breakpoint.h (owner): Extend the comment.
1056 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1058 Clear stale specific bp_location from former whole breakpoint.
1059 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
1061 (free_bp_location): ... here. Rename there the called function to
1062 bpstat_remove_bp_location_callback.
1063 (bpstat_remove_breakpoint_callback): Rename to ...
1064 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
1065 to struct bp_location. Change the called function to
1066 bpstat_remove_bp_location. Create new declaration for the function.
1067 (bpstat_remove_breakpoint): Rename to ...
1068 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
1069 code for the new parameter type.
1071 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
1073 * README: Make version-agnostic.
1075 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1077 Fix duplicate types for single DIE.
1078 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
1080 (read_array_type): Remove type initialization. Recheck get_die_type
1081 after initial die_type. Move set_die_type before set_descriptive_type.
1082 (read_set_type): New variable domain_type. Recheck get_die_type after
1083 initial die_type. Move attr initialization later.
1084 (read_tag_pointer_type, read_tag_reference_type): New variable
1085 target_type. Recheck get_die_type after initial die_type.
1086 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
1087 die_type and die_containing_type.
1088 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
1089 Recheck get_die_type after initial die_type.
1090 (read_subrange_type): Recheck get_die_type after initial die_type.
1091 Move set_die_type before set_descriptive_type.
1092 (set_die_type): Extend the function comment. Call complaint if DIE has
1093 some type already set.
1095 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
1097 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
1098 for current naming of thread groups (iN, not N).
1100 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
1102 * ada-lang.c (ada_operator_length): Constify `struct expression'.
1103 * parse.c (operator_length): Likewise.
1104 (operator_length_standard): Likewise.
1105 * parser-defs.h (operator_length): Likewise.
1106 (operator_length_standard): Likewise.
1107 (struct exp_descriptor <operator_length>): Likewise.
1109 2010-06-04 Doug Evans <dje@google.com>
1111 Add support for enabling/disabling individual pretty-printers.
1112 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
1113 * python/python-internal.h (gdbpy_enabled_cst): Declare.
1114 * python/python.c (gdbpy_enabled_cst): Define.
1115 (_initialize_python): Initialize gdbpy_enabled_cst.
1118 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1120 * breakpoint.c (update_global_location_list): Fix comment typo.
1122 2010-06-04 Hui Zhu <teawater@gmail.com>
1124 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
1126 2010-06-03 Doug Evans <dje@google.com>
1128 * configure.ac: Don't fail if python is unusable when
1129 configured with --with-python=auto.
1130 * configure: Regenerate.
1132 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
1134 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
1136 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
1138 * valprint.h (get_array_bounds): Change low and high parameter types
1140 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
1142 (val_print_array_elements): Adapt to change above.
1143 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
1144 * p-valprint.c (pascal_val_print): Likewise.
1146 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1148 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
1149 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
1152 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1154 Support DW_TAG_module as separate namespaces.
1155 * dwarf2read.c (typename_concat): New parameter physname.
1156 (read_module_type): New function and declaration.
1157 (scan_partial_symbols): Scan also DW_TAG_module children.
1158 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
1159 to typename_concat backward compatible physname value 0.
1160 (partial_die_full_name, read_namespace_type): Pass to typename_concat
1161 backward compatible physname value 0.
1162 (add_partial_module, read_module): Remove FIXME comment.
1163 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
1164 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
1165 DIEs under DW_TAG_module.
1166 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
1167 DW_AT_MIPS_linkage_name first, extend it for language_fortran
1168 && physname and return there instead of just setting NAME. Extend
1169 the main block for language_fortran. Pass physname parameter to the
1170 typename_concat call.
1171 (read_import_statement, read_func_scope, get_scope_pc_bounds)
1172 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
1173 (new_symbol): Fill in cplus_specific.demangled_name if it is still
1174 missing from SYMBOL_SET_NAMES in the language_fortran case.
1175 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
1177 (read_type_die) <DW_TAG_module>: New.
1178 (MAX_SEP_LEN): Increase to 7.
1179 (typename_concat): New parameter physname. New variable lead. Support
1180 also language_fortran.
1181 * f-exp.y (yylex): Consider : also as a symbol name character class.
1182 * f-lang.c: Include cp-support.h.
1183 (f_word_break_characters, f_make_symbol_completion_list): New functions.
1184 (f_language_defn): Use cp_lookup_symbol_nonlocal,
1185 f_word_break_characters and f_make_symbol_completion_list.
1186 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
1187 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
1188 * symtab.c (symbol_init_language_specific): Support language_fortran.
1189 (symbol_find_demangled_name): New comment on language_fortran.
1190 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
1191 for language_fortran.
1192 (lookup_symbol_aux_local): Check imports also for language_fortran.
1193 (default_make_symbol_completion_list): Rename to ...
1194 (default_make_symbol_completion_list_break_on): ... this name. New
1195 parameter break_on, use it.
1196 (default_make_symbol_completion_list): New stub.
1197 * symtab.h (default_make_symbol_completion_list_break_on): New
1200 2010-06-02 Joel Brobecker <brobecker@adacore.com>
1202 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
1205 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1207 * dwarf2read.c (typename_concat): Add const to the variable sep.
1209 2010-06-02 Tom Tromey <tromey@redhat.com>
1211 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
1212 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
1213 type is const. Add 'def' argument. Add missing operators, remove
1215 (decode_locdesc): Update.
1216 (dwarf2_always_disassemble): New global.
1217 (show_dwarf2_always_disassemble): New function.
1218 (_initialize_dwarf2_read): Add always-disassemble.
1219 (dwarf2_per_cu_offset_size): New function.
1220 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
1221 (piece_end_p): New function.
1222 (locexpr_describe_location_piece): Replace 'size' argument with
1223 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
1224 some constants. Remove errors.
1225 (disassemble_dwarf_expression): New function.
1226 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
1227 Add 'offset_size' argument.
1228 (loclist_describe_location): Change output formatting.
1229 * dwarf2expr.h (dwarf_stack_op_name): Declare.
1231 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
1233 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
1234 anonymous type case.
1236 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
1238 * dwarf2read.c (read_subrange_type): Handle missing base type
1239 according to Dwarf-2 specifications.
1241 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
1243 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
1245 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
1246 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1247 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
1248 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
1249 UNOP_CHMAX, UNOP_CHMIN.
1250 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
1251 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
1252 UNOP_CHMIN>: Remove opcodes.
1254 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
1256 * dwarf2read.c (read_func_scope): Do not complain for
1257 external function if bounds are not found.
1259 2010-06-01 Pedro Alves <pedro@codesourcery.com>
1261 * NEWS: Mention gdbserver fast tracepoints support.
1263 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
1265 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
1267 (windows_set_console_info): New function.
1268 (windows_create_inferior): Call windows_set_console_info
1269 if NEW_CONSOLE is true.
1270 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
1271 (_initialize_loadable): Initialize GetConsoleFontSize and
1272 GetCurrentConsoleFont.
1274 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1276 * Makefile.in (RDYNAMIC): New.
1277 (SFILES): Add proc-service.list.
1278 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
1279 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
1280 * config/arm/linux.mh: Likewise.
1281 * config/i386/linux.mh: Likewise.
1282 * config/i386/linux64.mh: Likewise.
1283 * config/ia64/linux.mh: Likewise.
1284 * config/m32r/linux.mh: Likewise.
1285 * config/m68k/linux.mh: Likewise.
1286 * config/mips/linux.mh: Likewise.
1287 * config/pa/linux.mh: Likewise.
1288 * config/powerpc/linux.mh: Likewise.
1289 * config/powerpc/ppc64-linux.mh: Likewise.
1290 * config/s390/s390.mh: Likewise.
1291 * config/sparc/linux.mh: Likewise.
1292 * config/sparc/linux64.mh: Likewise.
1293 * config/xtensa/linux.mh: Likewise.
1294 * configure.ac: New RDYNAMIC on native host and GCC.
1295 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
1296 * configure: Regenerate.
1297 * proc-service.list: New.
1299 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1301 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
1304 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1306 * linux-nat.c (linux_nat_wait_1): Do not call
1307 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
1308 TARGET_WAITKIND_SIGNALLED.
1310 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1312 * ada-lang.c (ada_inferior_data): New struct.
1313 (ada_inferior_data): New static global.
1314 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
1315 (ada_get_tsd_type): New functions.
1316 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
1317 to look the tsd type up.
1318 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
1319 event. Set ada_inferior_data.
1321 2010-05-27 Pedro Alves <pedro@codesourcery.com>
1323 * remote.c (unpack_varlen_hex): Remove forward declaration.
1324 (remote_console_output): Make static, and add forward declaration.
1325 * remote.h: Drop FIXME comment.
1326 (unpack_varlen_hex): Declare.
1327 (remote_console_output, remote_cisco_objfile_relocate)
1328 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
1329 Delete declarations.
1330 * tracepoint.c: Include "remote.h".
1331 (unpack_varlen_hex): Delete declaration.
1333 2010-05-27 Tom Tromey <tromey@redhat.com>
1335 * dwarf2loc.c (struct piece_closure) <refc>: New field.
1336 (allocate_piece_closure): Initialize refc.
1337 (copy_pieced_value_closure): Use refc.
1338 (free_pieced_value_closure): Likewise.
1340 2010-05-27 Tom Tromey <tromey@redhat.com>
1342 * arm-tdep.c (push_stack_item): 'contents' now const.
1343 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
1344 value_contents_writeable. Introduce new temporary.
1346 2010-05-27 Tom Tromey <tromey@redhat.com>
1348 * findcmd.c (parse_find_args): Use value_contents, not
1351 2010-05-27 Tom Tromey <tromey@redhat.com>
1353 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1354 const. Use value_contents, not value_contents_writeable.
1356 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1358 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1359 by call to value_contents.
1361 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1363 * MAINTAINERS: Add myself for write after approval privileges.
1365 2010-05-26 Doug Evans <dje@google.com>
1367 Allow python to find its files if moved from original location.
1368 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1369 (GDB_AC_WITH_DIR): Call it.
1370 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1371 python installation directory.
1372 * config.in: Regenerate.
1373 * configure: Regenerate.
1374 * defs.h (python_libdir): Declare.
1375 * main.c (python_libdir): Define.
1376 (captured_main): Initialize python_libdir.
1377 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1378 call Py_SetProgramName to make sure python can find its libraries
1381 * configure.ac: Try to use python's distutils to fetch compilation
1383 * configure: Regenerate.
1384 * python/python-config.py: New file.
1386 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1388 * ser-tcp.c (net_open): Check error return from socket() call by its
1389 equality to -1 not by it being negative.
1390 (net_close): Likewise.
1392 2010-05-26 Pedro Alves <pedro@codesourcery.com>
1394 * NEWS: Mention the `qRelocInsn' feature.
1395 * gdbarch.sh (relocate_instruction): New.
1396 * amd64-tdep.c (rip_relative_offset): New.
1397 (append_insns): New.
1398 (amd64_relocate_instruction): New.
1399 (amd64_init_abi): Install it.
1400 * i386-tdep.c (append_insns): New.
1401 (i386_relocate_instruction): New.
1402 (i386_gdbarch_init): Install it.
1403 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1404 * gdbarch.h, gdbarch.c: Regenerate.
1406 2010-05-26 Tom Tromey <tromey@redhat.com>
1408 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1409 (struct dwarf2_loclist_baton) <data>: Likewise.
1410 * dwarf2loc.c (find_location_expression): Constify return type.
1411 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1412 (dwarf2_loc_desc_needs_frame): Likewise.
1413 (loclist_read_variable): Constify.
1414 (loclist_describe_location): Likewise.
1415 (loclist_tracepoint_var_ref): Likewise.
1417 2010-05-25 Tom Tromey <tromey@redhat.com>
1419 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1420 (dwarf_expr_frame_base_1): Likewise.
1421 (read_pieced_value): Update.
1422 (needs_frame_frame_base): Constify.
1423 (dwarf2_tracepoint_var_loc): Likewise.
1424 (dwarf2_tracepoint_var_access): Likewise.
1425 (locexpr_describe_location_piece): Likewise.
1426 (locexpr_describe_location_1): Likewise.
1427 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1430 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1431 (dwarf_expr_eval, read_uleb128, read_sleb128)
1432 (dwarf2_read_address): Update.
1433 * dwarf2expr.c (dwarf_expr_eval): Constify.
1434 (read_uleb128): Likewise.
1435 (read_sleb128): Likewise.
1436 (dwarf2_read_address): Likewise.
1437 (require_composition): Likewise.
1438 (execute_stack_op): Likewise.
1439 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1441 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1443 (no_get_frame_base): Constify.
1444 (execute_stack_op): Likewise.
1445 (execute_cfa_program): Likewise.
1446 (read_encoded_value): Likewise.
1448 2010-05-25 Doug Evans <dje@google.com>
1450 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1452 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1453 * event-loop.c: ... here.
1454 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1455 `error' for clarity.
1456 (tui_getc): Pass correct value for `error' parameter to
1457 tui_readline_output.
1459 Add python gdb.GdbError and gdb.string_to_argv.
1460 * NEWS: Document them.
1461 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1462 the exception is gdb.GdbError. Print a second traceback if there's
1463 an error computing the error message.
1464 (gdbpy_string_to_argv): New function.
1465 * python/py-utils.c (gdbpy_obj_to_string): New function.
1466 (gdbpy_exception_to_string): New function.
1467 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1468 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1469 (gdbpy_gdberror_exc): Declare.
1470 * python/python.c (gdbpy_gdberror_exc): New global.
1471 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1473 (GdbMethods): Add string_to_argv.
1475 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1477 * windows-nat.c (display_selector): Call GetLastError to give better
1478 failure explanation.
1480 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1482 * config.in: Regenerate.
1484 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 * target.c (push_target): Return only void. Remove the return value
1489 * target.h (push_target): Return only void.
1491 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1493 Update gnulib from latest git.
1494 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1496 * gnulib/memcmp.c: Removed.
1497 * gnulib/memchr.valgrind: New.
1498 * gnulib/stddef.in.h: New.
1499 * gnulib/Makefile.am: Updated.
1500 * gnulib/memchr.c: Updated.
1501 * gnulib/memmem.c: Updated.
1502 * gnulib/stdint.in.h: Updated.
1503 * gnulib/str-two-way.h: Updated.
1504 * gnulib/string.in.h: Updated.
1505 * gnulib/wchar.in.h: Updated.
1507 * gnulib/extra/link-warning.h: Removed.
1508 * gnulib/extra/c++defs.h: New.
1509 * gnulib/extra/warn-on-use.h: New.
1510 * gnulib/extra/arg-nonnull.h: Updated.
1512 * gnulib/m4/extensions.m4: Updated.
1513 * gnulib/m4/gnulib-cache.m4: Updated.
1514 * gnulib/m4/gnulib-common.m4: Updated.
1515 * gnulib/m4/gnulib-comp.m4: Updated.
1516 * gnulib/m4/gnulib-tool.m4: Updated.
1517 * gnulib/m4/include_next.m4: Updated.
1518 * gnulib/m4/longlong.m4: Updated.
1519 * gnulib/m4/memchr.m4: Updated.
1520 * gnulib/m4/memmem.m4: Updated.
1521 * gnulib/m4/stdint.m4: Updated.
1522 * gnulib/m4/string_h.m4: Updated.
1523 * gnulib/m4/memcmp.m4: Removed.
1524 * gnulib/m4/onceonly_2_57.m4: Removed.
1525 * gnulib/m4/00gnulib.m4: New.
1526 * gnulib/m4/mmap-anon.m4: New.
1527 * gnulib/m4/multiarch.m4: New.
1528 * gnulib/m4/onceonly.m4: New.
1529 * gnulib/m4/stddef_h.m4: New.
1530 * gnulib/m4/warn-on-use.m4: New.
1531 * gnulib/m4/wchar.m4: Removed.
1532 * gnulib/m4/wchar_h.m4: New.
1533 * gnulib/m4/wchar_t.m4: New.
1534 * gnulib/m4/wint_t.m4: New.
1536 * aclocal.m4: Regenerate.
1537 * config.in: Likewise.
1538 * configure: Likewise.
1539 * gnulib/Makefile.in: Likewise.
1541 2010-05-21 Tom Tromey <tromey@redhat.com>
1543 * dwarf2loc.c (extract_bits_primitive): New function.
1544 (extract_bits): Likewise.
1545 (insert_bits): Likewise.
1546 (copy_bitwise): Likewise.
1547 (read_pieced_value): Do all operations in bits.
1548 (write_pieced_value): Likewise.
1549 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1550 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1551 Always use xrealloc to resize piece array.
1552 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1553 <DW_OP_piece>: Update.
1554 <DW_OP_bit_piece>: New case.
1556 2010-05-21 Tom Tromey <tromey@redhat.com>
1558 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1559 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1560 * dwarf2expr.h (enum dwarf_value_location)
1561 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1562 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1563 (add_piece): Handle empty piece.
1564 (execute_stack_op) <DW_OP_piece>: Handle
1565 DWARF_VALUE_OPTIMIZED_OUT.
1567 2010-05-21 Tom Tromey <tromey@redhat.com>
1569 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1570 evaluate_subexp, not evaluate_subexp_with_coercion.
1572 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1574 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1577 2010-05-21 Tom Tromey <tromey@redhat.com>
1579 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1581 (write_pieced_value): Likewise.
1583 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1585 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1586 and DW_TAG_volatile_type.
1587 (new_symbol): Likewise.
1589 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1591 * p-valprint.c (pascal_val_print): Call get_array_bounds
1592 to obtain the number of elements in an array.
1594 2010-05-19 Doug Evans <dje@google.com>
1596 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1598 * python.c (source_python_script): Add comment.
1599 (source_python_script_for_objfile): Remove unnecessary call to
1602 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1603 Sergio Durigan Junior <sergiodj@redhat.com>
1606 * parse.c (exp_iterate): Use operator_length wrapper function.
1608 2010-05-18 Michael Snyder <msnyder@vmware.com>
1610 * ada-lang.c: White space.
1611 * ada-typeprint.c: White space.
1612 * ada-valprint.c: White space.
1613 * addrmap.c: White space.
1614 * auxv.c: White space.
1615 * ax-gdb.c: White space.
1617 2010-05-18 Hui Zhu <teawater@gmail.com>
1619 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1621 (inferior_call_waitpid): Move make_cleanup out of check.
1622 Check the return of waitpid.
1623 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1625 2010-05-17 Michael Snyder <msnyder@vmware.com>
1627 * tui/tui.c: White space.
1628 * tui/tui-data.c: White space.
1629 * tui/tui-disasm.c: White space.
1630 * tui/tui-file.c: White space.
1631 * tui/tui-interp.c: White space.
1632 * tui/tui-main.c: White space.
1633 * tui/tui-out.c: White space.
1634 * tui/tui-regs.c: White space.
1635 * tui/tui-source.c: White space.
1636 * tui/tui-stack.c: White space.
1637 * tui/tui-win.c: White space.
1638 * tui/tui-winsource.c: White space.
1640 * procfs.c: White space.
1642 * python/py-auto-load.c: White space.
1643 * python/py-block.c: White space.
1644 * python/py-breakpoint.c: White space.
1645 * python/py-cmd.c: White space.
1646 * python/py-function.c: White space.
1647 * python/py-lazy-string.c: White space.
1648 * python/py-objfile.c: White space.
1649 * python/py-param.c: White space.
1650 * python/py-prettyprint.c: White space.
1651 * python/py-progspace.c: White space.
1652 * python/py-symtab.c: White space.
1653 * python/python.c: White space.
1654 * python/py-type.c: White space.
1655 * python/py-utils.c: White space.
1656 * python/py-value.c: White space.
1658 * mi/mi-cmd-break.c: White space.
1659 * mi/mi-cmd-env.c: White space.
1660 * mi/mi-cmds.c: White space.
1661 * mi/mi-cmd-stack.c: White space.
1662 * mi/mi-cmd-var.c: White space.
1663 * mi/mi-console.c: White space.
1664 * mi/mi-getopt.c: White space.
1665 * mi/mi-interp.c: White space.
1666 * mi/mi-main.c: White space.
1667 * mi/mi-out.c: White space.
1668 * mi/mi-parse.c: White space.
1670 * cli/cli-cmds.c: White space.
1671 * cli/cli-decode.c: White space.
1672 * cli/cli-dump.c: White space.
1673 * cli/cli-interp.c: White space.
1674 * cli/cli-logging.c: White space.
1675 * cli/cli-script.c: White space.
1676 * cli/cli-setshow.c: White space.
1678 * valarith.c: White space.
1679 * valops.c: White space.
1680 * valprint.c: White space.
1681 * value.c: White space.
1682 * varobj.c: White space.
1683 * xcoffread.c: White space.
1684 * xml-support.c: White space.
1685 * xml-tdesc.c: White space.
1687 2010-05-17 Andreas Schwab <schwab@redhat.com>
1690 * c-lang.c (c_printstr): Compute real length of NUL terminated
1693 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1695 * parse.c (parse_exp_in_context): When block is not NULL, use
1696 its associated language to parse the expression instead of
1697 the current_language.
1699 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1701 * jv-lang.c (java_lookup_class): Remove commented out code.
1702 (type_from_class): Likewise.
1703 (java_op_print_tab): Remove commented-out elements.
1705 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1707 * ada-lang.c (to_fixed_range_type): The the raw index type as
1708 argument instead of the raw type name. Remove orig_type parameter.
1709 Update calls throughout.
1710 (ada_fixup_array_indexes_type): New function.
1711 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1712 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1713 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1714 Remove name parameter.
1715 (print_array_type): Add call to ada_fixup_array_indexes_type.
1716 Update calls to print_range_type.
1717 (ada_print_type): Update calls to print_range_type.
1719 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1721 * dwarf2read.c (read_set_type): Set type length if
1722 DW_AT_byte_size attribute is present.
1724 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1726 * p-valprint.c (pascal_val_print): Handle set type if range limits
1727 are undefined but size is known.
1729 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1731 * procfs.c: Reformat.
1733 2010-05-16 Michael Snyder <msnyder@vmware.com>
1735 * target.c: White space.
1736 * target-descriptions.c: White space.
1737 * target-memory.c: White space.
1738 * thread.c: White space.
1739 * top.c: White space.
1740 * tracepoint.c: White space.
1741 * trad-frame.c: White space.
1742 * tramp-frame.c: White space.
1743 * ui-file.c: White space.
1744 * ui-out.c: White space.
1745 * user-regs.c: White space.
1746 * utils.c: White space.
1748 * scm-exp.c: White space.
1749 * scm-lang.c: White space.
1750 * scm-valprint.c: White space.
1751 * sentinel-frame.c: White space.
1752 * ser-base.c: White space.
1753 * ser-go32.c: White space.
1754 * serial.c: White space.
1755 * ser-mingw.c: White space.
1756 * ser-pipe.c: White space.
1757 * ser-tcp.c: White space.
1758 * ser-unix.c: White space.
1759 * solib.c: White space.
1760 * solib-darwin.c: White space.
1761 * solib-frv.c: White space.
1762 * solib-irix.c: White space.
1763 * solib-osf.c: White space.
1764 * solib-pa64.c: White space.
1765 * solib-som.c: White space.
1766 * solib-spu.c: White space.
1767 * solib-svr4.c: White space.
1768 * solib-target.c: White space.
1769 * source.c: White space.
1770 * stabsread.c: White space.
1771 * stack.c: White space.
1772 * std-regs.c: White space.
1773 * symfile.c: White space.
1774 * symmisc.c: White space.
1775 * symtab.c: White space.
1777 2010-05-16 Michael Snyder <msnyder@vmware.com>
1779 * source.c (_initialize_source): Add "rev" as an abbreviation
1780 for the "reverse-search" command.
1782 2010-05-16 Michael Snyder <msnyder@vmware.com>
1784 * record.c: White space.
1785 * regcache.c: White space.
1786 * reggroups.c: White space.
1787 * remote-fileio.c: White space.
1788 * remote-m32r-sdi.c: White space.
1789 * remote-mips.c: White space.
1790 * remote-sim.c: White space.
1791 * remote.c: White space.
1792 (process_g_packet): Remove orphan braces.
1794 2010-05-15 Michael Snyder <msnyder@vmware.com>
1796 * parse.c: White space.
1797 * p-lang.c: White space.
1798 * posix-hdep.c: White space.
1799 * printcmd.c: White space.
1800 * progspace.c: White space.
1801 * prologue-value.c: White space.
1802 * psymtab.c: White space.
1803 * p-typeprint.c: White space.
1804 * p-valprint.c: White space.
1806 * objc-lang.c: White space.
1807 * objfiles.c: White space.
1808 * observer.c: White space.
1809 * osabi.c: White space.
1810 * osdata.c: White space.
1812 * m2-lang.c: White space.
1813 * m2-valprint.c: White space.
1814 * macrocmd.c: White space.
1815 * macroexp.c: White space.
1816 * macroscope.c: White space.
1817 * macrotab.c: White space.
1818 * main.c: White space.
1819 * maint.c: White space.
1820 * mdebugread.c: White space.
1821 * memattr.c: White space.
1822 * minsyms.c: White space.
1823 * monitor.c: White space.
1825 2010-05-14 Michael Snyder <msnyder@vmware.com>
1827 * jv-lang.c: White space.
1828 * jv-typeprint.c: White space.
1829 * jv-valprint.c: White space.
1830 * language.c: White space.
1831 * libunwind-frame.c: White space.
1832 * linespec.c: White space.
1833 * linux-nat.c: White space.
1834 * linux-record.c: White space.
1835 * linux-thread-db.c: White space.
1837 * infcall.c: White space.
1838 * inf-child.c: White space.
1839 * infcmd.c: White space.
1840 * inferior.c: White space.
1841 * inf-loop.c: White space.
1842 * inflow.c: White space.
1843 * inline-frame.c: White space.
1844 * interps.c: White space.
1846 * gcore.c: White space.
1847 * gdb.c: White space.
1848 * gdbtypes.c: White space.
1849 * gnu-nat.c: White space.
1850 * gnu-v2-abi.c: White space.
1851 * gnu-v3-abi.c: White space.
1853 * findcmd.c: White space.
1854 * findvar.c: White space.
1855 * fork-child.c: White space.
1856 * frame-base.c: White space.
1857 * frame.c: White space.
1858 * frame-unwind.c: White space.
1859 * f-valprint.c: White space.
1861 * elfread.c: White space.
1862 * environ.c: White space.
1863 * eval.c: White space.
1864 * event-loop.c: White space.
1865 * event-top.c: White space.
1866 * exceptions.c: White space.
1867 * exec.c: White space.
1868 * expprint.c: White space.
1870 * dbxread.c: White space.
1871 * dcache.c: White space.
1872 * disasm.c: White space.
1873 * doublest.c: White space.
1874 * dsrec.c: White space.
1875 * dummy-frame.c: White space.
1876 * dwarf2expr.c: White space.
1877 * dwarf2-frame.c: White space.
1878 * dwarf2loc.c: White space.
1879 * dwarf2read.c: White space.
1881 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1885 * python/py-value.c (valpy_hash): New function.
1886 (value_object_type): Register valpy_hash.
1888 2010-05-14 Hui Zhu <teawater@gmail.com>
1889 Michael Snyder <msnyder@vmware.com>
1891 * linux-fork.c (gdbthread.h): New include.
1892 (fork_info): Add parent_ptid.
1893 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1895 (delete_checkpoint_command): Call inferior_call_waitpid.
1896 (checkpoint_command): Set parent_ptid.
1898 2010-05-13 Michael Snyder <msnyder@vmware.com>
1900 * dictionary.c: Re-indent to GNU coding standard.
1902 * charset.c: White space.
1903 * c-lang.c: White space.
1904 * cli-out.c: White space.
1905 * coffread.c: White space.
1906 * complaints.c: White space.
1907 * completer.c: White space.
1908 * corefile.c: White space.
1909 * corelow.c: White space.
1910 * cp-abi.c: White space.
1911 * cp-namespace.c: White space.
1912 * cp-support.c: White space.
1913 * cp-valprint.c: White space.
1914 * c-typeprint.c: White space.
1915 * c-valprint.c: White space.
1916 * blockframe.c: White space.
1917 * breakpoint.c: White space.
1918 * buildsym.c: White space.
1919 * blockframe.c: White space.
1920 * bcache.c: White space.
1921 * gdbarch.sh: White space, add blank lines.
1922 * arch-utils.c: Ditto.
1923 * gdbarch.c: Regenerate.
1924 * frame.c: White space, add blank lines.
1925 * stack.c: White space, add blank lines.
1926 (initialize_stack): Remove long-dead code.
1928 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1931 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1932 (locexpr_read_variable, loclist_read_variable): Update the callers.
1934 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1937 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1938 Remove check of NULL returned by tag_type_to_type.
1939 (die_containing_type): Remove variable type. Remove type_die variable
1940 initialization. Remove check of NULL returned by tag_type_to_type.
1942 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1945 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1946 names of unnamed structures or unions.
1948 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1950 * procfs.c (proc_watchpoint_address): New function.
1951 (procfs_stopped_by_watchpoint): Remove useless check after
1952 find_procinfo_or_die call.
1953 (procfs_stopped_data_address): New function.
1954 (procfs_use_watchpoints): Register new watchpoint related function.
1956 2010-05-11 Tom Tromey <tromey@redhat.com>
1958 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1960 2010-05-10 Michael Snyder <msnyder@vmware.com>
1962 * utils.c: White space cleanup.
1964 2010-05-10 Tom Tromey <tromey@redhat.com>
1966 * eval.c (ptrmath_type_p): Add 'lang' argument.
1967 (evaluate_subexp_standard): Update.
1968 (evaluate_subexp_with_coercion): Update.
1969 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1971 2010-05-10 Michael Snyder <msnyder@vmware.com>
1973 * utils.c (do_fclose_cleanup) Restore local variable.
1975 2010-05-09 Doug Evans <dje@google.com>
1977 * record.c (init_record_core_ops): Rename record_core to record-core.
1979 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1981 Implement task switching on pa-hpux.
1982 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1983 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1985 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1987 * valops.c (find_overload_match): Add missing i18n markup.
1989 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1991 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1993 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1995 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1996 list for the obconcat call.
1997 * mdebugread.c (parse_symbol): Likewise.
1998 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
2000 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
2001 New variable ap. Remove variables len and val.
2002 * symfile.h (obconcat): Likewise for the prototype.
2004 2010-05-07 Michael Snyder <msnyder@vmware.com>
2006 * python/python.c (execute_gdb_command): Remove unused variables.
2007 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
2008 * python/py-breakpoint.c (gdbpy_breakpoint_created):
2009 Remove unused variable.
2010 * python/py-cmd.c (cmdpy_function): Remove unused variable.
2011 (cmdpy_completer): Remove unused variable.
2012 * python/py-frame.c (frapy_find_sal): Remove unused variable.
2013 * python/py-function.c (fnpy_call): Remove unused variable.
2014 * python/py-objfile.c (objfile_to_objfile_object):
2015 Remove unused variable.
2016 * python/py-param.c (parmpy_init): Remove unused variable.
2017 * python/py-prettyprint.c (apply_varobj_pretty_printer):
2018 Remove unused variable.
2019 (gdbpy_default_visualizer): Remove unused variable.
2020 * python/py-progspace.c (pspace_to_pspace_object):
2021 Remove unused variable.
2022 * python/py-symtab.c (symtab_and_line_to_sal_object):
2023 Remove unused variable.
2024 * python/py-type.c (typy_template_argument):
2025 Remove unused variable.
2026 * python/py-value.c (valpy_string): Remove unused variable.
2027 (convert_value_from_python): Remove unused variables.
2029 2010-05-07 Michael Snyder <msnyder@vmware.com>
2031 * valops.c (value_cast_pointers): Restore unused variable 'type1',
2032 and use it to compute variable 't1'.
2034 2010-05-07 Joel Brobecker <brobecker@adacore.com>
2036 * ada-lang.c (assign_aggregate): Remove unused variable.
2038 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
2041 * valops.c (find_overload_match): Handle fsym == NULL case.
2042 Add int no_adl argument.
2043 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
2045 Add int no_adl argument.
2046 (find_oload_champ_namespace): Add int no_adl argument.
2047 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
2049 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
2050 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
2051 Evaluate arguments and use them to perform ADL lookup.
2052 Pass no_adl argument to find_overload_match.
2053 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
2054 * cp-support.h: Added prototype for
2055 make_symbol_overload_list_namespace.
2056 * cp-support.c (make_symbol_overload_list_namespace): New function.
2057 (make_symbol_overload_list_adl_namespace): New function.
2058 (make_symbol_overload_list_adl): New function.
2059 (make_symbol_overload_list_using): Moved code to add function to
2060 overload set to make_symbol_overload_list_namespace.
2061 * c-exp.y: create UNKNOWN_CPP_NAME token.
2062 Add parse rule for ADL functions.
2063 (classify_name): Recognize an UNKNOWN_CPP_NAME.
2065 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2067 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
2070 2010-05-07 Joel Brobecker <brobecker@adacore.com>
2072 Implement task switching on solaris targets.
2073 * sol-thread.c (thread_db_find_thread_from_tid)
2074 (sol_get_ada_task_ptid): New functions.
2075 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
2077 2010-05-07 Pedro Alves <pedro@codesourcery.com>
2079 * remote.c (remote_query_supported_append): Use reconcat.
2080 (remote_query_supported): Install a cleanup. Use reconcat.
2082 2010-05-07 Pedro Alves <pedro@codesourcery.com>
2084 * gdbarch.sh (qsupported): Delete.
2085 * gdbarch.h, gdbarch.c: Regenerate.
2086 * remote.c (remote_query_supported): Remove use of
2089 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
2091 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
2094 2010-05-06 Michael Snyder <msnyder@vmware.com>
2096 * xml-support.c (xinclude_start_include): Delete unused variable.
2097 (xml_process_xincludes): Delete unused variable.
2098 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
2099 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
2100 (tdesc_find_arch_register): Delete unused variable.
2101 (tdesc_use_registers): Delete unused variable.
2102 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
2103 * inferior.c (print_inferior): Delete unused variable.
2104 * record.c (record_open_1): Delete unused variable.
2105 (record_restore): Delete unused variable.
2106 (cmd_record_save): Delete unused variable.
2107 * gcore.c (derive_heap_segment): Delete unused variable.
2108 (objfile_find_memory_regions): Use unused variable.
2109 * jit.c (jit_inferior_init): Delete unused variable.
2110 * progspace.c (clone_program_space): Delete unused variable.
2111 (pspace_empty_p): Delete unused variable.
2113 * frame-unwind.c (frame_unwind_find_by_frame):
2114 Delete unused variable.
2115 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
2116 * cp-support.c (mangled_name_to_comp): Delete unused variable.
2117 (method_name_from_physname): Delete unused variable.
2118 (cp_func_name): Delete unused variable.
2119 (cp_validate_operator): Delete unused variable.
2120 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
2121 Delete unused variable.
2122 * trad-frame.c (trad_frame_get_prev_register):
2123 Delete unused variable.
2124 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
2126 * serial.c (serial_for_fd): Delete unused variable.
2127 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
2128 * top.c (execute_command): Delete unused variable.
2129 (init_main): Delete unused variable.
2130 * utils.c (do_fclose_cleanup): Delete unused variable.
2131 (do_all_inferior_continuations): Delete unused variable.
2132 (initialize_utils): Delete unused variable.
2133 (internal_problem_mode): Delete unused global.
2134 * frame.c (get_prev_frame): Delete unused global.
2135 (get_frame_locals_address): Delete unused global.
2136 (get_frame_args_address): Delete unused global.
2138 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
2139 (pascal_type_print_varspec_prefix): Delete unused variable.
2140 * f-typeprint.c (f_type_print_base): Delete unused variable.
2141 (f_type_print_varspec_suffix): Delete unused variable.
2142 * m2-typeprint.c (m2_print_type): Delete unused variable.
2143 (m2_long_set): Delete unused variable.
2144 * ada-valprint.c (ada_val_print_1): Delete unused variable.
2145 * d-valprint.c (dynamic_array_type): Delete unused variable.
2146 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
2147 Delete unused variable.
2148 (f77_create_arrayprint_offset_tbl): Delete unused variable.
2149 * m2-valprint.c (m2_val_print): Delete unused variable.
2151 * ui-out.c (ui_out_field_int): Delete unused variable.
2152 (ui_out_field_fmt_int): Delete unused variable.
2153 * varobj.c (varobj_list_children): Delete unused variable.
2154 (varobj_set_value): Delete unused variable.
2155 (install_new_value_visualizer): Delete unused variable.
2156 (varobj_set_visualizer): Delete unused variable.
2157 (varobj_update): Delete unused variable.
2158 (varobj_editable_p): Delete unused variable.
2159 (c_value_of_root): Delete unused variable.
2160 (cplus_describe_child): Delete unused variable.
2162 * ada-lang.c (add_defn_to_vec): Delete unused variable.
2163 (decode_constrained_packed_array_type): Delete unused variable.
2164 (add_defn_to_vec): Delete unused variable.
2165 (symbol_completion_match): Delete unused variable.
2166 (value_tag_from_contents_and_address): Delete unused variable.
2167 (ada_evaluate_subexp): Delete unused variable.
2168 * c-lang.c (classify_type): Delete unused variable.
2169 * f-lang.c (f_printstr): Delete unused variable.
2170 * objc-lang.c (objc_printstr): Delete unused variable.
2171 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
2172 * jv-lang.c (type_from_class): ifdef unused variable.
2173 (java_class_name_from_physname): Delete unused variable.
2174 * m2-lang.c (m2_printstr): Delete unused variable.
2176 * objfiles.c (objfile_relocate): Delete unused variable.
2177 * maint.c (_initialize_maint_cmds): Delete unused variable.
2178 * demangle.c (_initialize_demangler): Delete unused variable.
2179 * corefile.c (reopen_exec_file): Delete unused variable.
2180 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
2181 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
2183 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
2184 * memattr.c (mem_delete): Delete unused variable.
2185 (invalidate_target_mem_regions): Delete unused variable.
2186 * mem-break.c (default_memory_insert_breakpoint):
2187 Delete unused variable.
2188 * target.c (target_get_osdata): Delete unused variable.
2189 * parse.c (length_of_subexp): Delete unused variable.
2190 (prefixify_subexp): Delete unused variable.
2191 (exp_iterate): Delete unused variable.
2192 * reverse.c (delete_bookmark_command): Delete unused variable.
2194 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
2195 * macroexp.c (gather_arguments): Delete unused variable.
2196 (substitute_args): Delete unused variable.
2197 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
2198 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
2199 (_initialize_gdbarch): Delete unused variable.
2200 * gdbarch.c, gdbarch.h: Regenerate.
2201 * arch-utils.c (initialize_current_architecture):
2202 Delete unused variable.
2203 (_initialize_gdbarch_utils): Delete unused variable.
2204 * gdbtypes.c (make_cv_type): Delete unused variable.
2205 (make_type_with_address_space): Delete unused variable.
2207 * linespec.c (decode_compound): Delete unused variable.
2208 * dictionary.c (iterator_next_hashed): Delete unused variable.
2209 * infcall.c (call_function_by_hand): Delete unused variable.
2210 * infcmd.c (step_1): Delete unused variable.
2211 (registers_info): Delete unused variable.
2212 (attach_command): Delete unused variable.
2213 * infrun.c (follow_exec): Delete unused variable.
2214 (handle_step_into_function_backwards): Delete unused variable.
2215 (_initialize_infrun): Delete unused variable.
2216 * stack.c (parse_frame_specification_1): Delete unused variable.
2217 (frame_info): Delete unused variable.
2218 (backtrace_command_1): Delete unused variable.
2219 (catch_info): Delete unused variable.
2221 * eval.c (evaluate_subexp_standard): Delete unused variable.
2222 * valops.c (value_cast_pointers): Delete unused variable.
2223 (value_dynamic_cast): Delete unused variable.
2224 (value_array): Delete unused variable.
2225 (find_overload_match): Delete unused variable.
2226 * valarith.c (value_subscript): Delete unused variable.
2227 (value_binop): Delete unused variable.
2228 * valprint.c (_initialize_valprint): Delete unused variable.
2229 * printcmd.c (print_command_1): Delete unused variable.
2230 (address_info): Delete unused variable.
2231 (printf_command): Delete unused variable.
2233 * auxv.c (target_auxv_search): Delete unused variable.
2234 * blockframe.c (get_frame_block): Delete unused variable.
2235 * regcache.c (regcache_cpy): Delete unused variable.
2236 (regcache_cpy_no_passthrough): Delete unused variable.
2237 * charset.c (wchar_iterate): Delete unused variable.
2238 (find_charset_names): Delete unused variable.
2239 (_initialize_charset): Delete unused variable.
2240 * disasm.c (do_mixed_source_and_assembly):
2241 Delete unused variable.
2242 * source.c (set_default_source_symtab_and_line):
2243 Delete unused variable.
2244 (set_substitute_path_command): Delete unused variable.
2245 * value.c (preserve_values): Delete unused variable.
2246 (value_from_double): Delete unused variable.
2248 2010-05-05 Michael Snyder <msnyder@vmware.com>
2250 * psymtab.c (lookup_partial_symbol): Delete unused variable.
2251 (find_last_source_symtab_from_partial): Delete unused variable.
2252 * symfile.c (place_section): Delete unused variable.
2253 (default_symfile_offsets): Delete unused variable.
2254 (get_debug_link_info): Delete unused variable.
2255 (find_separate_debug_file_by_debuglink): Delete unused variable.
2256 (add_symbol_file_command): Delete unused variable.
2257 (symfile_find_segment_sections): Delete unused variable.
2258 * symmisc.c (free_symtab): Delete unused variable.
2259 (dump_symtab_1): Delete unused variable.
2260 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
2261 (find_pc_sect_symtab): Delete unused variable.
2262 (skip_prologue_using_lineinfo): Delete unused variable.
2263 (sources_info): Delete unused variable.
2264 (completion_list_add_name): Delete unused variable.
2265 (expand_line_sal): Delete unused variable.
2267 * breakpoint.c (validate_commands_for_breakpoint):
2268 Delete unused variables.
2269 (insert_catchpoint): Delete unused variable.
2270 (update_watchpoint): Delete unused variable.
2271 (insert_bp_location): Delete unused variable.
2272 (insert_breakpoint_locations): Delete unused variable.
2273 (remove_breakpoint_1): Delete unused variable.
2274 (software_breakpoint_inserted_here_p): Delete unused variable.
2275 (watchpoints_triggered): Delete unused variable.
2276 (bpstat_check_watchpoint): Delete unused variable.
2277 (bpstat_stop_status): Delete unused variable.
2278 (print_one_breakpoint_location): Delete unused variable.
2279 (allocate_bp_location): Delete unused variable.
2280 (create_breakpoint): Delete unused variable.
2281 (watch_command_1): Delete unused variable.
2282 (catch_exception_command_1): Delete unused variable.
2283 (catch_ada_exception_command): Delete unused variable.
2284 (delete_breakpoint): Delete unused variable.
2285 (breakpoint_re_set_one): Delete unused variable.
2286 (do_enable_breakpoint): Delete unused variable.
2288 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2290 * amd64-tdep.c: Include disasm.h.
2291 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
2292 (amd64_insn_length): Moved to disasm.c and renamed.
2293 (fixup_riprel): Adjust.
2294 * disasm.c (do_ui_file_delete): New.
2295 (gdb_insn_length): New.
2296 (gdb_buffered_insn_length_fprintf)
2297 (gdb_buffered_insn_length_init_dis)
2298 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
2300 * disasm.h (gdb_insn_length): Declare.
2301 (gdb_buffered_insn_length): Declare.
2303 2010-05-06 Pedro Alves <pedro@codesourcery.com>
2305 * remote.c (clear_threads_parsing_context): New.
2306 (remote_threads_info): Delete unused null_cleanup. Install a
2307 cleanup to clear the threads_parsing_context in case parsing
2310 2010-05-05 Michael Snyder <msnyder@vmware.com>
2312 * c-exp.y (parse_string_or_char): Delete unused variable.
2313 (c_lex): Delete unused variable.
2314 * cp-name-parser.y (cpname_lex): Delete unused variable.
2315 * ada-exp.y (find_primitive_type): Delete unused variable.
2316 (write_var_or_type): Delete unused variable.
2317 * jv-exp.y (java_parse): Delete unused variable.
2318 (push_expression_name): Delete unused variable.
2319 * p-exp.y (pascal_lex): Delete unused variable.
2321 2010-05-05 Pedro Alves <pedro@codesourcery.com>
2323 * remote.c (remote_threads_info): Really revert previous previous
2326 2010-05-05 Michael Snyder <msnyder@vmware.com>
2328 * elfread.c (elf_symtab_read): Delete unused variable.
2329 (find_separate_debug_file_by_buildid): Delete unused variables.
2330 (elf_symfile_read): Delete unused variable.
2332 * coffread.c (coff_symfile_read): Delete unused variables.
2334 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
2335 (read_pe_exported_syms): Delete unused variable.
2337 * stabsread.c (define_symbol): Delete unused variable.
2339 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
2340 (process_psymtab_comp_unit): Delete unused variable.
2341 (dwarf2_build_psymtabs_hard): Delete unused variable.
2342 (load_partial_comp_unit): Delete unused variable.
2343 (create_all_comp_units): Delete unused variable.
2344 (scan_partial_symbols): Delete unused variable.
2345 (add_partial_symbol): Delete unused variable.
2346 (add_partial_namespace): Delete unused variable.
2347 (add_partial_enumeration): Delete unused variable.
2348 (load_full_comp_unit): Delete unused variable.
2349 (process_full_comp_unit): Delete unused variable.
2350 (read_file_scope): Delete unused variable.
2351 (read_type_unit_scope): Delete unused variable.
2352 (process_structure_scope): Delete unused variable.
2353 (process_enumeration_scope): Delete unused variable.
2354 (read_tag_ptr_to_member_type): Delete unused variable.
2355 (read_typedef): Delete unused variable.
2356 (read_partial_die): Delete unused variable.
2357 (decode_locdesc): Delete unused variable.
2358 (zeroed_partial_die): Delete unused global variable.
2360 * tui/tui-interp.c (_initialize_tui_interp):
2361 Delete unused variable.
2362 * tui/tui-regs.c tui_display_registers_from):
2363 Delete unused variable.
2364 (tui_check_register_values): Delete unused variable.
2365 (tui_register_format): Delete unused variable.
2366 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2367 * tui/tui-windata.c (tui_display_data_from_line):
2368 Delete unused variables.
2369 (tui_vertical_data_scroll): Delete unused variables.
2371 2010-05-05 Michael Snyder <msnyder@vmware.com>
2373 * remote.c (remote_threads_info): Revert questionable part of
2374 the previous change.
2376 2010-05-05 Michael Snyder <msnyder@vmware.com>
2378 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2379 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2380 (mi_cmd_var_list_children): Delete unused variable.
2381 (varobj_update_one): Delete unused variable.
2382 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2383 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2384 Delete unused variable.
2385 (mi_cmd_stack_list_variables): Delete unused variable.
2386 (list_args_or_locals): Delete unused variable.
2387 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2388 Delete unused variables.
2389 (mi_cmd_file_list_exec_source_files): Delete unused variable.
2390 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2391 Delete unused variable.
2392 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2393 (mi_cmd_interpreter_exec): Delete unused variable.
2394 (mi_on_normal_stop): Delete unused variable.
2395 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2396 (print_one_inferior): Delete unused variables.
2397 (mi_execute_command): Delete unused variable.
2398 (mi_cmd_execute): Delete unused variable.
2399 (timestamp): Delete unused variable.
2401 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2402 (restore_binary_file): Delete unused variable.
2403 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2404 * cli/cli-script.c (define_command): Delete unused variables.
2405 (recurse_read_control_structure): Delete unused variable.
2406 (script_from_file): Delete unused variable.
2407 * cli/cli-cmds.c (complete_command): Delete unused variable.
2408 (disassemble_command): Delete unused variable.
2410 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2411 * tracepoint.c (delete_trace_variable_command):
2412 Delete unused variables.
2413 (encode_actions_1): Delete unused variables.
2414 (start_tracing): Delete unused variable.
2415 (trace_status_mi): Delete unused variable.
2416 (tfind_1): Delete unused variable.
2417 (trace_find_pc_command): Delete unused variable.
2418 (trace_find_line_command): Delete unused variables.
2419 (trace_find_range_command): Delete unused variables.
2420 (trace_find_outside_command): Delete unused variables.
2421 (parse_tracepoint_definition): Delete unused variables.
2422 (tfile_fetch_registers): Delete unused variable.
2424 * dcache.c (dcache_init): Delete unused variable.
2425 (dcache_info): Delete unused variable.
2427 * remote.c (remote_threads_info): Delete unused variable.
2428 (process_stop_reply) :Delete unused variable.
2429 (remote_get_trace_status): Delete unused variables.
2431 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2432 (thread_from_lwp): Delete unused variable.
2433 (enable_thread_event_reporting): Delete unused variable.
2434 (check_for_thread_db): Delete unused variables.
2435 (thread_db_find_new_threads_2): Delete unused variable.
2437 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2438 (checkpoint_command): Delete unused variable.
2439 (linux_fork_context): Delete unused variables.
2441 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2442 (linux_tracefork_child): Delete unused variable.
2443 (linux_child_follow_fork): Delete unused variable.
2444 (linux_nat_detach): Delete unused variable.
2445 (linux_handle_extended_wait): Delete unused variable.
2446 (linux_nat_has_pending_sigint): Delete unused variable.
2447 (linux_nat_find_memory_regions): Delete unused variable.
2448 (linux_nat_make_corefile_notes): Delete unused variables.
2449 (linux_nat_info_proc_cmd): Delete unused variable.
2450 (linux_proc_pending_signals): Delete unused variable.
2451 (linux_nat_stop_lwp): Delete unused variables.
2452 (_initialize_linux_nat): Delete unused variable.
2454 * ser-pipe.c (pipe_ops): Delete unused global variable.
2456 * linux-record.c (record_linux_system_call):
2457 Delete unused variables.
2459 * corelow.c (core_xfer_partial): Delete unused variables.
2461 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2462 (svr4_solib_create_inferior_hook): Add ifdef around
2463 conditionally-used variable declarations.
2465 * solib.c (solib_find): Delete unused variable.
2466 (free_so_symbols): Delete unused variable.
2467 (info_sharedlibrary_command): Delete unused variable.
2468 (reload_shared_libraries_1): Delete unused variable.
2469 (_initialize_solib): Delete unused variable.
2471 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2472 (i386_collect_xstateregset): Delete unused variable.
2473 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2475 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2476 Delete unused variable 'type'.
2478 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2480 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2481 ada-lang.c: Remove comment mentioning these macros.
2482 * m2-exp.y: Delete commented out code.
2484 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2486 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2488 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2490 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2492 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2493 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2495 (cleanup_kernel_helper_return): Likewise.
2496 * arm-tdep.c (copy_unmodified): Likewise.
2497 (copy_preload): Likewise.
2498 (copy_copro_load_store): Likewise.
2499 (cleanup_branch): Likewise.
2500 (copy_b_bl_blx): Likewise.
2501 (copy_bx_blx_reg): Likewise.
2502 (copy_alu_imm): Likewise.
2503 (copy_alu_reg): Likewise.
2504 (copy_alu_shifted_reg): Likewise.
2505 (cleanup_load): Likewise.
2506 (cleanup_store): Likewise.
2507 (cleanup_block_load_pc): Likewise.
2508 (cleanup_svc): Likewise.
2509 (copy_undef): Likewise.
2510 (copy_unpred): Likewise.
2511 * remote.c (register_remote_support_xml): Likewise.
2513 2010-05-05 Hui Zhu <teawater@gmail.com>
2515 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2517 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2519 * remote.c (register_remote_support_xml)
2520 (remote_query_supported_append, remote_query_supported): Add cast
2521 to NULL used as sentinel.
2522 * tracepoint.c (tvariables_info_1): Likewise.
2523 * utils.c (add_internal_problem_command): Likewise.
2525 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2527 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2528 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2529 registers gracefully.
2531 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2533 * exec.c (print_section_info): Display entry point without arch
2536 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2539 * printcmd.c (x_command): Only dereference once implicitly for
2542 2010-05-03 Doug Evans <dje@google.com>
2544 * event-loop.c (gdb_timer): Delete unused global.
2545 (create_timer): Update.
2547 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2549 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2550 CURRENT->DECLARATION case.
2551 * cp-support.h (struct using_direct): Provide extended comment.
2553 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2555 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2556 HPPABSD_SIZEOF_GREGS.
2557 (HPPAOBSD_SIZEOF_FPREGS): New define.
2558 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2559 (hppaobsd_supply_fpregset): New function.
2560 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2561 (hppaobsd_fpregset): New variable.
2562 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2563 (_initialize_hppabsd_tdep): Remove spurious blank line.
2565 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2568 * p-valprint.c (pascal_value_print): Always dereference a value with
2569 type code TYPE_CODE_REF.
2571 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2573 * remote.c (remote_notice_signals): New.
2574 (remote_start_remote): In non-stop mode, update the remote end on
2575 which signals it can silently pass.
2576 (init_remote_ops): Install remote_notice_signals.
2578 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2580 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2581 * command.h (error_no_arg): ... here. Remove NORETURN, change
2582 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2583 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2584 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2585 (internal_verror, internal_error, nomem): Remove NORETURN, change
2586 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2587 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2588 (throw_vfatal, throw_error): Remove NORETURN.
2589 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2590 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2591 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2592 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2593 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2594 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2596 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2597 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2599 * target.c (tcomplain): Likewise.
2600 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2602 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2603 (internal_error, perror_with_name, nomem): Remove NORETURN.
2604 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2607 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2609 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2610 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2611 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2612 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2613 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2614 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2615 * complaints.h (complaint, internal_complaint): Likewise.
2616 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2617 (ATTR_FORMAT): Remove.
2618 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2619 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2620 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2621 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2622 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2623 (internal_error, internal_vwarning, internal_warning, warning)
2624 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2625 * disasm.c (fprintf_disasm): Likewise.
2626 * exceptions.c (throw_it): Likewise.
2627 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2628 (throw_error): Likewise.
2629 * language.h (type_error, range_error): Likewise.
2630 * linespec.c (cplusplus_error): Likewise.
2631 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2632 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2633 * monitor.c (monitor_debug): Likewise.
2634 * parser-defs.h (parser_fprintf): Likewise.
2635 * serial.h (serial_printf): Likewise.
2636 * tui/tui-hooks.c (tui_query_hook): Likewise.
2637 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2638 (uo_message): Likewise.
2639 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2640 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2642 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2644 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2646 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2647 (cli_table_header, cli_begin, cli_end, cli_field_int)
2648 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2649 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2650 Delete forward declarations.
2651 (cli_ui_out_impl): Move below the callbacks.
2652 (_initialize_cli_out): Delete.
2654 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2656 * README: Use consistent `GDB' and `GDBserver' spellings.
2658 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2660 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2662 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2664 * infrun.c (prepare_for_detach): In non-stop, context switch to
2665 the thread that got the event before handling the event.
2667 2010-04-30 Tom Tromey <tromey@redhat.com>
2669 * symtab.c (symbol_set_names): Fix typo.
2671 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2673 * python/py-param.c (parm_constants): Avoid ARI warning
2674 by adding ARI comment.
2675 (parmpy_init): Likewise.
2677 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2679 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2680 and created type for re-use.
2682 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2684 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2686 2010-04-29 Doug Evans <dje@google.com>
2688 * ser-base.h (reschedule): Delete prototype.
2689 * ser-base.c (reschedule): Make static.
2691 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2693 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2694 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2695 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2697 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2700 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2704 * regcache.c (registers_changed): Rename to ...
2705 (registers_changed_ptid): ... this, and only delete register cache
2706 entries matching the ptid filter argument.
2707 (registers_changed): Reimplement on top of registers_changed_ptid.
2708 * regcache.h (registers_changed_ptid): Declare.
2709 * target.c (target_resume): Flush register caches.
2711 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2712 Tom Tromey <tromey@redhat.com>
2713 Thiago Jung Bauermann <bauerman@br.ibm.com>
2715 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2716 (SUBDIR_PYTHON_SRCS): Likewise.
2717 (py-parameter.o): New rule.
2718 * python/py-parameter.c: New file.
2719 * python/python-internal.h (gdbpy_initialize_parameter)
2720 (gdbpy_parameter, gdbpy_parameter_value)
2721 (gdbpy_parse_command_name): Declare.
2722 * python/py-cmd.c (parse_command_name): Rename to
2723 gdbpy_parse_command_name.
2724 (gdbpy_parse_command_name): Accept a starting list parameter and
2726 (cmdpy_init): Use gdbpy_parse_command_name.
2727 * python/python.c (parameter_to_python): Rename to
2728 gdbpy_parameter_to_python. Accept enum var_types and value.
2729 (gdbpy_parameter): Use gdbpy_parameter_value.
2730 (_initialize_python): Call gdbpy_initialize_parameters.
2732 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2734 * MAINTAINERS: Add myself for write after approval privileges.
2736 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2739 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2740 (COMMON_OBS): Add d-lang.o d-valprint.o.
2741 (HFILES_NO_SRCDIR): Add d-lang.h.
2742 * NEWS: Mention D language support.
2743 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2744 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2745 * d-lang.c: New file.
2746 * d-lang.h: New file.
2747 * d-valprint.c: New file.
2748 * defs.h (enum language): Add language_d.
2749 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2750 * language.c (binop_result_type, integral_type, character_type)
2751 (string_type, boolean_type, structured_type): Add language_d.
2752 * symfile.c (init_filename_language_table): Add language_d.
2753 * symtab.c: Include d-lang.h.
2754 (symbol_init_language_specific, symbol_find_demangled_name)
2755 (symbol_natural_name, lookup_symbol_in_language)
2756 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2758 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2760 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2762 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2764 * symfile.c (init_filename_language_table): Register .dg files
2767 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2769 * gdbtypes.h (struct main_type): Expand comment about target_type
2772 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2773 Tristan Gingold <gingold@adacore.com>
2775 * symfile.c (reread_symbols): Also search for file in libraries.
2778 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2780 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2781 in terms of configuration.
2783 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2785 * objfiles.c: Include solist.h.
2786 (free_all_objfiles): New variable so. Check stale solist objfiles.
2787 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2788 and no_shared_libraries.
2790 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2793 * python/py-auto-load.c (source_section_scripts): Remove trailing
2794 new-line in i18n string.
2796 2010-04-26 Doug Evans <dje@google.com>
2798 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2800 2010-04-26 Tom Tromey <tromey@redhat.com>
2802 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2805 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2807 Removal of config/i386/nm-i386sol2.h native configuration file.
2808 * config/i386/nm-i386sol2.h: Remove file.
2809 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2810 * config/i386/sol2-64.mh: Idem.
2811 * config/djgpp/fnchange.lst: Remove reference to that file.
2812 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2814 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2816 PR breakpoints/11531.
2817 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2818 macro definition and related comment.
2819 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2820 (resume): Remove code and comment related to this macro.
2822 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2824 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2827 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2829 * defs.h: Adjust comment.
2830 * filesystem.h, filesystem.c: New files.
2831 * Makefile.in (SFILES): Add filesystem.c.
2832 (COMMON_OBS): Add filesystem.o.
2833 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2834 different target and host path flavours.
2835 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2836 has_dos_based_file_system on the gdbarch.
2837 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2838 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2839 * i386-tdep.c (i386_go32_init_abi): Ditto.
2840 * gdbarch.sh (has_dos_based_file_system): New.
2841 * gdbarch.h, gdbarch.c: Regenerate.
2842 * NEWS: Mention improved support for remote targets with DOS-based
2843 filesystems. Mention new `set/show target-file-system-kind'
2846 2010-04-23 Stan Shebs <stan@codesourcery.com>
2848 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2850 (struct agent_reqs): Remove.
2851 (ax_reg_mask): Declare.
2852 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2853 (free_agent_expr): Free reg_mask.
2854 (ax_print): Add scope and register mask info.
2855 (ax_reqs): Remove agent_reqs argument, use agent expression
2856 fields, and move part of register mask computation to...
2857 (ax_reg_mask): New function.
2858 * ax-gdb.c (gen_trace_static_fields): Call it.
2859 (gen_traced_pop): Ditto.
2860 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2861 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2862 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2863 (gen_eval_for_expr): Ditto, and require an rvalue.
2864 (agent_command): Call ax_reqs.
2865 (agent_eval_command): Ditto.
2866 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2867 (validate_action_line): Ditto.
2868 (collect_symbol): Ditto.
2869 (encode_actions_1): Ditto.
2871 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2872 Paul Pluzhnikov <ppluzhnikov@google.com>
2873 Jan Kratochvil <jan.kratochvil@redhat.com>
2875 Fix deadlock on looped list of loaded shared objects.
2876 * solib-svr4.c (LM_PREV): New function.
2877 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2878 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2879 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2880 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2882 2010-04-23 Doug Evans <dje@google.com>
2884 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2886 * configure: Regenerate.
2887 * main.c: #include "python/python.h".
2888 (captured_main): Defer loading auto-loaded scripts until after
2889 local_gdbinit has been sourced.
2890 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2891 (load_auto_scripts_for_objfile): New function.
2892 (auto_load_new_objfile): Call it.
2893 * python/python.h (gdbpy_global_auto_load): Declare.
2894 (load_auto_scripts_for_objfile): Declare.
2896 Add support for auto-loading scripts from .debug_gdb_scripts section.
2897 * NEWS: Add entry for .debug_gdb_scripts.
2898 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2899 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2900 (py-auto-load.o): New rule.
2901 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2902 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2903 * python/py-auto-load.c: New file.
2904 * python/python-internal.h: #include <stdio.h>.
2905 (set_python_list, show_python_list): Declare.
2906 (gdbpy_initialize_auto_load): Declare.
2907 (source_python_script_for_objfile): Declare.
2908 * python/python.c: Remove #include of observer.h.
2909 (gdbpy_auto_load): Moved to py-auto-load.c.
2910 (GDBPY_AUTO_FILENAME): Ditto.
2911 (gdbpy_new_objfile): Delete.
2912 (source_python_script_for_objfile): New function.
2913 (set_python_list, show_python_list): Make externally visible.
2914 (_initialize_python): Move "auto-load" command to py-auto-load.c
2915 and observer_attach_new_objfile to py-auto-load.c.
2917 2010-04-23 Jerome Guitton <guitton@adacore.com>
2919 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2920 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2921 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2923 (alpha_heuristic_analyze_probing_loop): New function.
2924 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2925 and handle cases when a stack probe loop is generated.
2926 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2927 (alpha_mdebug_max_frame_size_exceeded): New function.
2928 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2929 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2930 Return 0 when the maximum debuggable frame size has been exceeded.
2932 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2935 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2937 2010-04-20 Chris Moller <cmoller@redhat.com>
2941 * symtab.c (rbreak_command): Added code to include a filename
2942 specification in the rbreak argument.
2943 * NEWS: Added a brief description of filename-qualified rbreak.
2945 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 Fix crashes on dangling display expressions.
2948 * ada-lang.c (ada_operator_check): New function.
2949 (ada_exp_descriptor): Fill-in the field operator_check.
2950 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2951 * jv-lang.c (exp_descriptor_java): Likewise.
2952 * m2-lang.c (exp_descriptor_modula2): Likewise.
2953 * scm-lang.c (exp_descriptor_scm): Likewise.
2954 * parse.c (exp_descriptor_standard): Likewise.
2955 (operator_check_standard): New function.
2956 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2957 * parser-defs.h (struct exp_descriptor): New field operator_check.
2958 (operator_check_standard, exp_uses_objfile): New declarations.
2959 * printcmd.c: Remove the inclusion of solib.h.
2960 (display_uses_solib_p): Remove the function.
2961 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2962 and exp_uses_objfile instead of display_uses_solib_p.
2963 * solist.h (struct so_list) <objfile>: New comment.
2964 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2965 * symtab.h (lookup_objfile_from_block): New declaration.
2966 (struct general_symbol_info) <obj_section>: Extend the comment.
2968 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2969 Thiago Jung Bauermann <bauerman@br.ibm.com>
2971 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2972 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2973 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2974 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2975 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2976 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2977 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2978 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2979 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2980 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2981 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2982 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2983 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2984 Define, in case <ptrace.h> doesn't provide it.
2985 (booke_debug_info): New variable.
2986 (max_slots_number): Ditto.
2987 (hw_break_tuple): New struct.
2988 (thread_points): Ditto.
2989 (ppc_threads): New variable.
2990 (PPC_DEBUG_CURRENT_VERSION): New define.
2991 (have_ptrace_new_debug_booke): New function.
2992 (ppc_linux_check_watch_resources): Renamed to ...
2993 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2994 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2995 (booke_cmp_hw_point): New function.
2996 (booke_find_thread_points_by_tid): Ditto.
2997 (booke_insert_point): Ditto.
2998 (booke_remove_point): Ditto.
2999 (ppc_linux_insert_hw_breakpoint): Ditto.
3000 (ppc_linux_remove_hw_breakpoint): Ditto.
3001 (get_trigger_type): Ditto.
3002 (ppc_linux_insert_watchpoint): Handle BookE processors.
3003 (ppc_linux_remove_watchpoint): Ditto.
3004 (ppc_linux_new_thread): Ditto.
3005 (ppc_linux_thread_exit): New function..
3006 (ppc_linux_stopped_data_address): Handle BookE processors.
3007 (ppc_linux_watchpoint_addr_within_range): Ditto.
3008 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
3009 to_remove_hw_breakpoint fields of the target operations struct.
3010 Add observe for the thread_exit event.
3012 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
3014 * i386-linux-nat.c (regmap): Removed.
3015 (fetch_register): Replace regmap with
3016 i386_linux_gregset_reg_offset.
3017 (store_register): Likewise.
3018 (supply_gregset): Likewise.
3019 (fill_gregset): Likewise.
3021 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
3024 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
3026 2010-04-22 Chris Moller <cmoller@redhat.com>
3028 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3029 method of popping recursion-detection stack with a method based on
3030 obstack_object_size(). (Similar to the PR9167 patch below, but for
3031 the static array obstack rather than the static member obstack.)
3033 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
3035 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
3036 (_initialize_amd64_linux_nat): Replace
3037 amd64_linux_gregset64_reg_offset with
3038 amd64_linux_gregset_reg_offset.
3040 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
3043 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
3045 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
3048 * stabsread.c (set_length_in_type_chain): New function.
3049 (read_struct_type): Call set_length_in_type_chain function.
3050 (read_enum_type): Idem.
3052 2010-04-21 Stan Shebs <stan@codesourcery.com>
3053 Nathan Sidwell <nathan@codesourcery.com>
3055 * tracepoint.c (trace_save): Open in binary mode.
3057 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
3059 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
3061 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
3062 builtin_char32 fields.
3063 * printcmd.c (decode_format): Set char size to '\0'
3064 for strings unless explicit size is given.
3065 (print_formatted): Correct calculation of NEXT_ADDRESS
3066 for 16 or 32 bit strings.
3067 (do_examine): Do not force byte size for strings.
3068 Use builtin_char16 and builtin_char32 types to display
3069 16 or 32 bit-wide strings.
3070 (x_command): Set LAST_SIZE to 'b' for string type.
3072 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
3075 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3078 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
3079 there is no .reg-xstate section.
3080 (i386_linux_core_read_description): Check XCR0 first.
3082 2010-04-21 Mike Frysinger <vapier@gentoo.org>
3084 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
3087 2010-04-21 Chris Moller <cmoller@redhat.com>
3090 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
3091 method of popping recursion-detection stack with a method based on
3092 obstack_object_size().
3094 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3097 * p-valprint.c (pascal_val_print): Fix default printing of integer
3100 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3102 Fix compilation warning on gcc-4.1.2.
3103 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
3104 local variable`pc' to zero.
3106 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3108 Implement thread support with core files on alpha-tru64.
3109 * dec-thread.c (dec_thread_find_new_threads): New function,
3110 extracted from resync_thread_list.
3111 (resync_thread_list): Add OPS parameter. Replace extracted-out
3112 code by call to dec_thread_find_new_threads.
3113 (dec_thread_wait): Update call to resync_thread_list.
3114 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
3116 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3118 * ada-lang.c (value_pointer): New function.
3119 (make_array_descriptor): Call value_pointer to convert addresses to
3122 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3124 * rs6000-aix-tdep.c: #include exceptions.h.
3125 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
3126 while reading the memory at ADDR, then ADDR cannot be a function
3129 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3131 * ada-typeprint.c (ada_print_typedef): New function.
3132 * ada-lang.h (ada_print_typedef): Add declaration.
3133 * ada-lang.c (ada_language_defn): set la_print_typdef field
3134 to ada_print_typedef.
3136 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3138 * procfs.c (procfs_address_to_host_pointer): Only define when used.
3140 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3142 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
3143 (iterate_over_mappings): Adjust function profile. Add declaration.
3144 (insert_dbx_link_bpt_in_region, info_mappings_callback):
3147 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3149 * procfs.c (solib_mappings_callback): Move function up to avoid
3152 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3154 * procfs.c (find_signalled_thread, find_stop_signal): Move
3155 these functions down to define them only when used.
3157 2010-04-20 Joel Brobecker <brobecker@adacore.com>
3159 * valprint.c (common_val_print): Fix the value before extracting
3161 * ada-lang.c (ada_to_fixed_value): Make this function extern.
3162 * ada-lang.h (ada_to_fixed_value): New function declaration.
3163 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
3164 to avoid code duplication and fix a bug in the handling of
3165 fixed types contents.
3167 2010-04-20 Tom Tromey <tromey@redhat.com>
3169 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
3170 (read_partial_die): Likewise.
3171 (dwarf_attr_name): Likewise.
3173 2010-04-20 Chris Moller <cmoller@redhat.com>
3177 * cp-valprint.c (global): Adding new static array recursion
3179 (cp_print_value_fields, cp_print_static_field): Added new static
3180 array recursion detection code.
3182 2010-04-20 Mark Kettenis <kettenis@gnu.org>
3184 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
3185 general-purpose register set should be 68 instead of 144.
3186 (i386_linux_sse_regset_sections): Likewise.
3187 (i386_linux_avx_regset_sections): Likewise.
3189 2010-04-20 Stan Shebs <stan@codesourcery.com>
3190 Nathan Sidwell <nathan@codesourcery.com>
3192 * dwarf2loc.c (struct axs_var_loc): New struct.
3193 (dwarf2_tracepoint_var_loc): New function.
3194 (dwarf2_tracepoint_var_access): New function.
3195 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
3197 (locexpr_describe_location_piece): New function.
3198 (locexpr_describe_location_1): New function.
3199 (locexpr_describe_location): Call it, update signature.
3200 (loclist_describe_location): Rewrite to loop over locations,
3202 * symtab.h (struct symbol_computed_ops): Add address to
3203 describe_location arguments, return void.
3204 * printcmd.c (address_info): Get context PC, pass to computed
3205 location description.
3206 * tracepoint.c (scope_info): Ditto.
3207 * ax-gdb.c (trace_kludge): Export.
3209 2010-04-20 Tom Tromey <tromey@redhat.com>
3211 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
3212 (struct dwarf2_cie) <segment_size>: New field.
3213 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
3214 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
3216 (read_attribute_value): Handle DW_FORM_flag_present,
3217 DW_FORM_sec_offset, DW_FORM_exprloc.
3218 (dump_die_shallow): Likewise.
3219 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
3220 (dwarf2_const_value): Handle DW_FORM_exprloc.
3221 (attr_form_is_block): Likewise.
3222 (struct line_header) <maximum_ops_per_instruction>: New field.
3223 (dwarf_decode_line_header): Set new field.
3224 (dwarf_decode_lines): Handle new field.
3226 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3228 * f-exp.y: Add new production to recognize the `logical*8' type.
3229 (LOGICAL_S8_KEYWORD): New token.
3230 * f-lang.c (enum f_primitive_types)
3231 <f_primitive_type_logical_s8>: New field.
3232 (f_language_arch_info): Handling `logical*8' type.
3233 (build_fortran_types): Building `logical*8' type.
3234 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
3236 2010-04-19 Doug Evans <dje@google.com>
3238 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
3239 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
3240 (pipe_close): Ditto.
3242 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3244 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
3246 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3248 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
3249 type to void function.
3251 2010-04-19 Stan Shebs <stan@codesourcery.com>
3252 Vladimir Prus <vladimir@codesourcery.com>
3254 * tracepoint.c (tfind_1): Add missing newline, report exit from
3256 * target.c (update_current_target): Make default
3257 to_trace_find return -1.
3259 2010-04-19 Mike Frysinger <vapier@gentoo.org>
3261 * objc-lang.c (find_methods): Move symname check up.
3263 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3265 * ada-lang.c (print_recreate_exception)
3266 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
3267 not "catch unhandled".
3269 2010-04-19 Pedro Alves <pedro@codesourcery.com>
3271 PR breakpoints/8554.
3273 Implement `save-breakpoints'.
3275 * breakpoint.c (save_cmdlist): New.
3276 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
3278 (print_recreate_catch_fork): New.
3279 (catch_fork_breakpoint_ops): Install it.
3280 (print_recreate_catch_vfork): New.
3281 (catch_vfork_breakpoint_ops): Install it.
3282 (print_recreate_catch_syscall): New.
3283 (catch_syscall_breakpoint_ops): Install it.
3284 (print_recreate_catch_exec): New.
3285 (catch_exec_breakpoint_ops): Install it.
3286 (print_recreate_exception_catchpoint): New.
3287 (gnu_v3_exception_catchpoint_ops): Install it.
3288 (save_breakpoints): New, based on tracepoint_save_command, but
3289 handle all breakpoint types.
3290 (save_breakpoints_command): New.
3291 (tracepoint_save_command): Rename to...
3292 (save_tracepoints_command): ... this, and reimplement using
3294 (save_command): New.
3295 (_initialize_breakpoints): Install the "save" command prefix.
3296 Install the "save breakpoints" command. Make "save-tracepoints" a
3297 deprecated alias for "save tracepoints".
3298 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
3299 * ada-lang.c (print_recreate_exception): New.
3300 (print_recreate_catch_exception): New.
3301 (catch_exception_breakpoint_ops): Install it.
3302 (print_recreate_catch_exception_unhandled): New.
3303 (catch_exception_unhandled_breakpoint_ops): Install it.
3304 (print_recreate_catch_assert): New.
3305 (catch_assert_breakpoint_ops): Install it.
3307 * NEWS: Mention the new `save breakpoints' command. Mention the
3308 new `save tracepoints' alias and that `save-tracepoints' is now
3311 2010-04-18 Pedro Alves <pedro@codesourcery.com>
3315 * tui/tui-out.c: Include cli-out.h.
3316 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3317 (tui_begin, tui_end, tui_field_int, tui_field_skip)
3318 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
3319 (tui_message, tui_wrap_hint, tui_flush): Delete forward
3321 (struct ui_out_data): Rename to...
3322 (struct tui_ui_out_data): ... this. Remove `stream' and
3323 `suppress_output' fields, and inherit cli_ui_out_data.
3324 (tui_out_data): New typedef.
3325 (tui_ui_out_impl): Don't initialize fields staticaly.
3326 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
3327 (tui_begin, tui_end): Delete.
3328 (tui_field_int): Adjust to delegate most work to the base type.
3329 (tui_field_skip): Delete.
3330 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
3331 delegate most work to the base type.
3332 (tui_spaces): Delete.
3333 (tui_text): Adjust to delegate most work to the base type.
3334 (tui_message): Delete.
3335 (tui_wrap_hint): Delete.
3336 (tui_flush): Delete.
3337 (out_field_fmt): Delete.
3338 (field_separator): Delete.
3339 (tui_out_new): Adjust to initialize the base type.
3340 (_initialize_tui_out): Initialize tui_ui_out_impl.
3341 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
3343 (cli_out_data): Adjust.
3344 (cli_ui_out_impl): Make extern.
3345 (cli_table_header, cli_field_int, cli_field_skip): Use
3346 uo_field_string instead of cli_field_string.
3347 (cli_redirect): Adjust to use cli_out_data.
3348 (cli_out_data_ctor): New.
3349 (cli_out_new): Use it.
3350 * cli-out.h (struct ui_file): Remove forward declaration.
3351 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3352 (cli_ui_out_impl): Declare.
3353 (cli_out_data_ctor): Declare.
3354 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3355 (uo_field_string): No longer static.
3356 (ui_out_data): Change return type to void pointer.
3357 (ui_out_new): Change `data' parameter type to void pointer.
3358 * ui-out.h (struct ui_out_data): Don't forward declare.
3359 (ui_out_data): Change return type to void pointer.
3360 (ui_out_new): Change `data' parameter type to void pointer.
3361 (uo_field_string): Declare.
3363 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3365 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3366 instead of always false.
3368 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3371 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3374 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3376 * breakpoint.c (watchpoints_triggered): Use
3377 is_hardware_watchpoint.
3378 (watchpoints_triggered): Ditto.
3379 (bpstat_check_location): Use is_watchpoint and
3380 is_hardware_watchpoint.
3381 (bpstat_check_watchpoint): Use is_watchpoint and
3382 is_hardware_watchpoint.
3383 (bpstat_stop_status): Fix comment.
3384 (user_settable_breakpoint): Use is_watchpoint.
3385 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3386 (disable_watchpoints_before_interactive_call_start): Use
3388 (enable_watchpoints_after_interactive_call_stop): Use
3390 (clear_command): Use is_watchpoint.
3391 (do_enable_breakpoint): Use is_watchpoint.
3393 2010-04-16 Mike Frysinger <vapier@gentoo.org>
3395 * solib-frv.c (enable_break1_done): Delete.
3396 (enable_break2): Do not check enable_break1_done. Move the
3397 enable_break2_done setting and call to
3398 remove_solib_event_breakpoints() to the end. Return without
3399 warning when the contents of _dl_debug_addr are 0.
3400 (enable_break): Do not set enable_break1_done.
3401 (frv_clear_solib): Likewise.
3403 2010-04-16 Kevin Buettner <kevinb@redhat.com>
3405 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3406 instead of an error if no PLT entry is found. Return a
3407 potentially useful result.
3408 (m32c_m16c_pointer_to_address): Add code to search for function
3409 address when no .plt entry is found.
3411 2010-04-16 Stan Shebs <stan@codesourcery.com>
3413 * tracepoint.c (trace_variable_command): Run a cleanup.
3415 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3417 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3419 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3421 Support for Windows OS Thread Information Block.
3422 * NEWS: Document new feature.
3423 * remote.c (PACKET_qGetTIBAddr): New enum element.
3424 (remote_get_tib_address): New function.
3425 (init_remote_ops): Set to_get_tib_address field
3426 to remote_get_tib_address.
3427 (_initialize_remote): Add add_packet_config_cmd
3428 for PACKET_qGetTIBAddr.
3429 * target.c (update_current_target): Set default value for
3430 new to_get_tib_address field.
3431 * target.h (target_ops): New field to_get_tib_address.
3432 (target_get_tib_address): New macro.
3433 * windows-nat.c (thread_info): Add thread_local_base field.
3434 (windows_add_thread): Add tlb argument of type 'void *'.
3435 (fake_create_process): Adapt windows_add_thread call.
3436 (get_windows_debug_event): Idem.
3437 (windows_get_tib_address): New function.
3438 (init_windows_ops): Set to_get_tib_address field
3439 to remote_get_tib_address.
3440 (_initialize_windows_nat): Replace info_w32_cmdlist
3441 initialization by a call to init_w32_command_list.
3442 (info_w32_command, info_w32_cmdlist): Removed from here...
3443 to windows-tdep.c file.
3444 * windows-tdep.h (info_w32_cmdlist): Declare.
3445 (init_w32_command_list): New external function
3447 * windows-tdep.c: Add several headers.
3448 (info_w32_cmdlist): to here, made global.
3449 (thread_information_32): New struct.
3450 (thread_information_64): New struct.
3451 (TIB_NAME): New char array.
3452 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3453 (maint_display_all_tib): New static variable.
3454 (windows_get_tlb_type): New function.
3455 (tlb_value_read, tlb_value_write): New functions.
3456 (tlb_value_funcs): New static struct.
3457 (tlb_make_value): New function.
3458 (display_one_tib): New function.
3459 (display_tib): New function.
3460 (show_maint_show_all_tib):New function.
3461 (info_w32_command): Moved from windows-nat.c.
3462 (init_w32_command_list): New function.
3463 (_initialize_windows_tdep): New function.
3464 New "maint set/show show-all-tib" command
3465 New "$_tlb" internal variable.
3467 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3469 * tui/tui-regs.c (tui_display_register): Add comment about
3471 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3473 2010-04-15 Stan Shebs <stan@codesourcery.com>
3475 * frame.c: Include tracepoint.h.
3476 (get_current_frame): Allow a trace frame to be an alternate source
3477 of stack frame data.
3478 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3481 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3483 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3485 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3487 2010-04-15 Doug Evans <dje@google.com>
3489 * NEWS: Add entry for python program space support.
3490 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3491 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3492 (py-progspace.o): New rule.
3493 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3495 (find_pretty_printer_from_progspace): New function.
3496 (find_pretty_printer_from_gdb): New function.
3497 (find_pretty_printer): Rewrite.
3498 * python/py-progspace.c: New file.
3499 * python/python-internal.h (program_space): Add forward decl.
3500 (pspace_to_pspace_object, pspy_get_printers): Declare.
3501 (gdbpy_initialize_pspace): Declare.
3502 * python/python.c: #include "progspace.h".
3503 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3504 (_initialize_python): Call gdbpy_initialize_pspace.
3505 (GdbMethods): Add current_progspace, progspaces.
3507 Add -s option to source command.
3508 * NEWS: Document new option.
3509 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3510 Delete from_tty and cleanupp args. Split filep arg into file and
3511 full_pathp. New arg search_path.
3512 (source_script_from_stream): New function.
3513 (source_script_with_search): New function.
3514 (source_script): Rewrite.
3515 (source_command): Parse "-s" option.
3516 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3517 * python/python.c (source_python_script): Make file arg a const char *.
3518 Don't call fclose, leave for caller.
3519 * python/python.h (source_python_script): Update.
3521 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3522 Pedro Alves <pedro@codesourcery.com>
3524 Avoid rereading shared libraries that haven't changed.
3526 * solib.c (free_so_symbols): New function, from ...
3527 (free_so): ... here. Call it.
3528 (solib_read_symbols): Don't warn here if symbols have already been
3530 (solib_add): Warn here instead, if a pattern was specified.
3531 (reload_shared_libraries_1): New.
3532 (reload_shared_libraries): Rewrite to not fetch the library list.
3534 2010-04-14 Doug Evans <dje@google.com>
3536 * source.c (openp): Strip DOS drive letter if present before
3537 concatenating string to search path.
3539 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3541 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3542 * objfiles.c (gdb_bfd_close_or_warn): New.
3543 * corelow.c: Include objfiles.h
3544 (core_close): Use gdb_bfd_close_or_warn.
3545 * elfread.c (build_id_verify): Ditto.
3546 * exec.c (exec_close, exec_close_1): Ditto.
3548 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3549 Pedro Alves <pedro@codesourcery.com>
3551 Group errors for many missing shared libraries.
3553 * solist.h (struct so_list): Remove from_tty.
3554 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3555 (solib_map_sections): Take so_list argument. Return 0 if we
3556 failed to open a BFD. Add target sections here.
3557 (symbol_add_stub): Delete.
3558 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3559 not from_tty copied from the so_list. Don't warn a second time
3560 for a missing library.
3561 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3562 add to the section table here. Print out a single warning for all
3564 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3567 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3569 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3570 error/warning messages. Capitalize and use complete sentences.
3571 (blpy_block_syms_iternext): Likewise.
3572 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3573 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3574 (frame_info_to_frame_object, frapy_read_var)
3575 (gdbpy_frame_stop_reason_string): Likewise.
3576 * python/py-lazy-string.c (stpy_convert_to_value)
3577 (gdbpy_create_lazy_string_object): Likewise.
3578 * python/py-objfile.c (objfpy_set_printers): Likewise.
3579 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3580 * python/python.c (parameter_to_python): Likewise.
3581 * python/py-type.c (typy_range, typy_target): Likewise.
3582 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3583 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3586 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3590 * python/py-prettyprint.c (pretty_print_one_value): Test for
3592 (print_string_repr): Test for Py_None. Set flags accordingly.
3593 Return value depending on return type.
3594 (print_children): Take a value indicating whether data was printed
3595 before this function was called. Alter output accordingly.
3596 (apply_val_pretty_printer): Capture return value from
3597 print_string_repr and pass to print_children.
3599 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3602 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3603 register note sections.
3604 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3606 (i386_linux_init_abi): Install list of supported register note
3607 sections that matches the target description.
3609 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3611 * remote.c (remote_get_noisy_reply): Don't error out on empty
3613 (remote_start_remote): Update and merge tracepoints and trace
3614 state variables as long as the target supports tracepoints.
3615 (remote_trace_init): Fix prototype.
3616 (remote_download_trace_state_variable): Validate reply.
3617 (remote_trace_set_readonly_regions): Fix prototype.
3618 (remote_trace_start): Fix prototype. Check for empty reply.
3619 (remote_get_trace_status): Small cleanup.
3620 (remote_trace_stop): Fix prototype. Check for empty reply.
3621 (remote_trace_find): Check for empty reply.
3622 (remote_save_trace_data): Validate reply.
3623 (remote_set_disconnected_tracing): Check for empty reply, and
3625 (remote_set_circular_trace_buffer): Ditto.
3627 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3629 Suppress unused value warning during compilation.
3630 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3632 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3634 2010-04-12 Stan Shebs <stan@codesourcery.com>
3636 * tracepoint.c (tfile_xfer_partial): Check read result.
3638 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3640 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3641 * remote-sim.c (gdbsim_files_info): Likewise.
3643 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3645 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3646 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3648 (fetch_vfp_registers): New function to fetch VFP registers.
3649 (store_vfp_registers): New function to store VFP registers.
3650 (arm_linux_fetch_inferior_registers): Add support for VFP
3652 (arm_linux_store_inferior_registers): Likewise.
3653 (arm_linux_read_description): Likewise.
3654 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3657 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3659 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3661 (amd64_collect_xstateregset): Likewise.
3663 2010-04-09 Stan Shebs <stan@codesourcery.com>
3665 * tracepoint.c (trace_status_mi): Report frames created.
3667 * tracepoint.c (trace_dump_command): Include default-collect
3670 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3672 * symtab.c (find_function_start_sal): Never return SAL pointing
3673 before function start address, even if line info is missing.
3675 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3677 * NEWS: Mention tracepoints support.
3679 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3681 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3682 circular trace buffer statuses.
3684 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3686 * config/djgpp/fnchange.lst: Fix typo in translations for
3687 symbol-without-target_section.exp and symbol-without-target_section.c.
3689 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3691 * breakpoint.c (condition_command): Pass condition expression to
3692 set_breakpoint_condition stripped from breakpoint number.
3694 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3695 Thiago Jung Bauermann <bauerman@br.ibm.com>
3696 Tom Tromey <tromey@redhat.com>
3698 * breakpoint.c (condition_command): Simplify. Move condition
3700 (set_breakpoint_condition): ... here. New function.
3701 * breakpoint.h (set_breakpoint_condition): Declare.
3702 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3703 (SUBDIR_PYTHON_SRCS): Likewise.
3704 (py-breakpoint.o): New rule.
3705 * python/py-breakpoint.c: New file.
3706 * python/python-internal.h (gdbpy_breakpoints)
3707 (gdbpy_initialize_breakpoints): Declare.
3708 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3710 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3712 * regformats/regdat.sh: Include server.h. Don't include
3715 2010-04-08 Stan Shebs <stan@codesourcery.com>
3716 Pedro Alves <pedro@codesourcery.com>
3718 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3719 and circular_buffer.
3720 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3721 * tracepoint.c (trace_status_command): Display target's status for
3722 disconnected tracing and circular buffer.
3723 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3724 query for non-disconnected-tracing case, remove the stop_tracing
3726 (tfile_open): Clear disconnected and circular buffer status.
3727 (trace_save): Save disconnected and circular buffer status.
3728 (parse_trace_status): Parse disconnected and circular buffer status,
3729 also recognize disconnected as a stop reason.
3730 * remote.c (remote_set_disconnected_tracing): Only set
3731 QTDisconnected if the remote end supports disconnected tracing.
3732 Warn otherwise, if trying to enable disconnected tracing.
3733 * infcmd.c (detach_command): Update disconnect_tracing call.
3734 * cli/cli-cmds.c (quit_command): Ditto.
3736 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3738 * i387-tdep.c (i387_collect_xsave): Replace abort with
3741 2010-04-08 Stan Shebs <stan@codesourcery.com>
3743 * breakpoint.c (default_collect_info): New function.
3744 (breakpoints_info): Call it.
3745 (maintenance_info_breakpoints): Ditto.
3746 (tracepoints_info): Ditto.
3748 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3750 * i387-tdep.c (i387_collect_xsave): Re-indent.
3752 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3754 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3755 if HAVE_PTRACE_GETFPXREGS is defined.
3756 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3757 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3759 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3760 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3761 if .reg-xfp section doesn't exist.
3762 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3764 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3766 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3767 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3768 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3769 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3770 (i386_gdbarch_init): Update comments.
3771 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3773 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3775 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3777 * features/Makefile (i386/i386-mmx-expedite): New.
3778 (i386/i386-mmx-linux-expedite): Likewise.
3779 ($(outdir)/i386/i386-mmx.dat): Likewise.
3780 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3782 * features/i386/i386-mmx-linux.c: New.
3783 * features/i386/i386-mmx-linux.xml: Likewise.
3784 * features/i386/i386-mmx.c: Likewise.
3785 * features/i386/i386-mmx.xml: Likewise.
3786 * regformats/i386/i386-mmx-linux.dat: Likewise.
3787 * regformats/i386/i386-mmx.dat: Likewise.
3789 * features/Makefile (WHICH): Add i386/i386-mmx and
3790 i386/i386-mmx-linux.
3792 2010-04-08 Doug Evans <dje@google.com>
3794 * source.c (openp): Skip $cdir in PATH.
3796 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3799 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3801 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3802 address and a zero length.
3804 2010-04-08 Hui Zhu <teawater@gmail.com>
3806 * i386-tdep.c (i386_process_record): Add support for insn
3809 2010-04-07 Doug Evans <dje@google.com>
3811 * python/python.c (source_python_script): Use ensure_python_env
3812 to prepare environment for script.
3814 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3816 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3817 <sys/uio.h> and "i386-xstate.h".
3818 (PTRACE_GETREGSET): New.
3819 (PTRACE_SETREGSET): Likewise.
3820 (have_ptrace_getregset): Likewise.
3821 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3823 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3825 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3826 (amd64_linux_store_inferior_registers): Likewise.
3827 (amd64_linux_read_description): Check and enable AVX target
3830 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3831 and "features/i386/amd64-avx-linux.c".
3832 (amd64_linux_regset_sections): New.
3833 (amd64_linux_core_read_description): Check and enable AVX
3835 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3836 set_gdbarch_core_regset_sections.
3837 (_initialize_amd64_linux_tdep): Call
3838 initialize_tdesc_amd64_avx_linux.
3840 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3841 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3842 (tdesc_amd64_avx_linux): New.
3843 (amd64_linux_update_xstateregset): Likewise.
3845 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3846 (amd64_ymm_names): New.
3847 (amd64_ymmh_names): Likewise.
3848 (amd64_register_name): Likewise.
3849 (amd64_supply_xstateregset): Likewise.
3850 (amd64_collect_xstateregset): Likewise.
3851 (amd64_supply_xsave): Likewise.
3852 (amd64_collect_xsave): Likewise.
3853 (AMD64_NUM_REGS): Removed.
3854 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3855 %xmmN if AVX is available.
3856 (amd64_pseudo_register_name): Support pseudo YMM registers.
3857 (amd64_regset_from_core_section): Support .reg-xstate section.
3858 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3859 and ymm0h_regnum. Call set_gdbarch_register_name.
3860 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3862 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3863 AMD64_YMM15H_REGNUM.
3864 (AMD64_NUM_REGS): New.
3865 (amd64_supply_xsave): Likewise.
3866 (amd64_collect_xsave): Likewise.
3867 (amd64_register_name): Removed.
3868 (amd64_register_type): Likewise.
3870 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3872 * i387-tdep.c: Include "i386-xstate.h".
3873 (XSAVE_XSTATE_BV_ADDR): New.
3874 (xsave_avxh_offset): Likewise.
3875 (XSAVE_AVXH_ADDR): Likewise.
3876 (i387_supply_xsave): Likewise.
3877 (i387_collect_xsave): Likewise.
3879 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3880 (I387_YMM0H_REGNUM): Likewise.
3881 (I387_YMMENDH_REGNUM): Likewise.
3882 (i387_supply_xsave): Likewise.
3883 (i387_collect_xsave): Likewise.
3885 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3887 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3888 <sys/uio.h> and "i386-xstate.h".
3889 (PTRACE_GETREGSET): New.
3890 (PTRACE_SETREGSET): Likewise.
3891 (fetch_xstateregs): Likewise.
3892 (store_xstateregs): Likewise.
3893 (GETXSTATEREGS_SUPPLIES): Likewise.
3894 (regmap): Include 8 upper YMM registers.
3895 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3897 (i386_linux_store_inferior_registers): Likewise.
3898 (i386_linux_read_description): Check and enable AVX target
3901 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3902 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3903 (i386_linux_regset_sections): Add ".reg-xstate".
3904 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3905 (i386_linux_core_read_xcr0): New.
3906 (i386_linux_core_read_description): Check and enable AVX target
3908 (i386_linux_init_abi): Set xsave_xcr0_offset.
3909 (_initialize_i386_linux_tdep): Call
3910 initialize_tdesc_i386_avx_linux.
3912 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3913 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3914 (i386_linux_core_read_xcr0): New.
3915 (tdesc_i386_avx_linux): Likewise.
3916 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3918 * i386-tdep.c: Include "i386-xstate.h" and
3919 "features/i386/i386-avx.c".
3920 (i386_ymm_names): New.
3921 (i386_ymmh_names): Likewise.
3922 (i386_ymmh_regnum_p): Likewise.
3923 (i386_ymm_regnum_p): Likewise.
3924 (i386_xmm_regnum_p): Likewise.
3925 (i386_register_name): Likewise.
3926 (i386_ymm_type): Likewise.
3927 (i386_supply_xstateregset): Likewise.
3928 (i386_collect_xstateregset): Likewise.
3929 (i386_sse_regnum_p): Removed.
3930 (i386_pseudo_register_name): Support pseudo YMM registers.
3931 (i386_pseudo_register_type): Likewise.
3932 (i386_pseudo_register_read): Likewise.
3933 (i386_pseudo_register_write): Likewise.
3934 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3935 %xmmN if AVX is available.
3936 (i386_regset_from_core_section): Support .reg-xstate section.
3937 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3938 (i386_process_record): Replace i386_sse_regnum_p with
3940 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3941 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3942 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3943 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3944 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3945 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3947 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3949 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3950 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3952 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3953 (I386_AVX_NUM_REGS): New.
3954 (i386_xmm_regnum_p): Likewise.
3955 (i386_ymm_regnum_p): Likewise.
3956 (i386_ymmh_regnum_p): Likewise.
3958 * common/i386-xstate.h: New.
3960 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3962 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3964 * features/Makefile (WHICH): Add i386/i386-avx,
3965 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3966 (i386/i386-avx-expedite): New.
3967 (i386/i386-avx-linux-expedite): Likewise.
3968 (i386/x86-64-avx-expedite):Likewise.
3969 (i386/x86-64-avx-linux-expedite): Likewise.
3970 ($(outdir)/i386/i386-avx.dat): New dependency.
3971 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3972 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3973 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3975 * features/i386/32bit-avx.xml: New.
3976 * features/i386/64bit-avx.xml: Likewise.
3977 * features/i386/i386-avx-linux.c: Likewise.
3978 * features/i386/i386-avx-linux.xml: Likewise.
3979 * features/i386/i386-avx.c: Likewise.
3980 * features/i386/i386-avx.xml: Likewise.
3981 * features/i386/x86-64-avx-linux.c: Likewise.
3982 * features/i386/x86-64-avx-linux.xml: Likewise.
3983 * features/i386/x86-64-avx.c: Likewise.
3984 * features/i386/x86-64-avx.xml: Likewise.
3985 * regformats/i386/i386-avx-linux.dat: Likewise.
3986 * regformats/i386/i386-avx.dat: Likewise.
3987 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3988 * regformats/i386/x86-64-avx.dat: Likewise.
3990 2010-04-07 Doug Evans <dje@google.com>
3992 * top.c (source_file_name): Make const char *.
3993 * top.h (source_file_name): Update.
3994 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3996 (script_from_file): Change `file' arg to const char *.
3997 * cli/cli-script.h (script_from_file): Update.
3999 2010-04-06 Doug Evans <dje@google.com>
4001 * cli/cli-cmds.c (source_command): Run cleanups.
4003 2010-04-06 Stan Shebs <stan@codesourcery.com>
4005 * defs.h (char_ptr): Move typedef here from...
4006 * ada-lang.c (char_ptr): Remove.
4007 * charset.c (char_ptr): Remove.
4008 * tracepoint.h (struct uploaded_string): Remove.
4009 (struct uploaded_tp): Use vectors for string arrays.
4010 * tracepoint.c (trace_save): Use vectors of actions.
4011 (parse_tracepoint_definition): Ditto.
4012 (get_uploaded_tp): Clear vectors.
4013 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
4014 (next_cmd): Change to an int.
4015 (read_next_cmd): Use vector of command strings.
4017 2010-04-06 Doug Evans <dje@google.com>
4019 * top.h (source_script, cd_command): Delete.
4020 * main.c: #include "cli/cli-cmds.h"
4022 2010-04-06 Kevin Buettner <kevinb@redhat.com>
4024 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
4025 type in bytes, not bits.
4027 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
4029 * stabsread.c (define_symbol): Add support for char
4030 and string constants.
4032 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
4034 Remove remaining "%ll" uses.
4035 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
4037 * rs6000-nat.c (rs6000_ptrace64): Idem.
4038 * solib-pa64.c (pa64_current_sos): Idem.
4039 * solib-spu.c (spu_current_sos): Idem.
4040 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
4042 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
4044 * sh64-tdep.c (sh64_show_media_regs): Idem.
4046 2010-04-05 Stan Shebs <stan@codesourcery.com>
4048 * tracepoint.c: Include gdbcore.h.
4049 (tfile_xfer_partial): Return partial results, also try reading
4051 (tfile_has_all_memory): New function.
4052 (init_tfile_ops): Use it.
4054 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
4057 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
4058 the changes in data-directory.
4059 (init_sysinfo): Reload the syscall XML file if the data-directory
4062 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4065 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
4067 2010-04-04 Stan Shebs <stan@codesourcery.com>
4068 Nathan Sidwell <nathan@codesourcery.com>
4070 * breakpoint.c (breakpoint_1): Add filter argument, return number of
4071 breakpoints printed.
4072 (is_hardware_watchpoint): Make argument const.
4073 (is_watchpoint): Ditto.
4074 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
4076 (breakpoints_info): Pass NULL to breakpoint_1.
4077 (maintenance_info_breakpoints): Ditto.
4078 (watchpoints_info): New function.
4079 (tracepoints_info): Use breakpoint_1 filter.
4080 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
4081 (_initialize_breakpoint): Make "info watchpoints" its own command.
4082 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
4083 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
4085 2010-04-04 Stan Shebs <stan@codesourcery.com>
4087 * tracepoint.c (tfile_fetch_registers): Add fallback case.
4089 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4091 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
4092 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
4094 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4096 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
4097 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
4099 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4101 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
4104 2010-04-02 Hui Zhu <teawater@gmail.com>
4106 * i386-tdep.c (OT_DQUAD): New enum.
4107 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
4108 SSE3, SSSE3 and SSE4.
4110 2010-04-02 Hui Zhu <teawater@gmail.com>
4112 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
4115 2010-04-02 Pedro Alves <pedro@codesourcery.com>
4117 * tracepoint.c (trace_dump_actions): New, factored out from
4118 trace_dump_command, and adjusted to recurse into while-stepping's
4120 (trace_dump_command): Use it.
4122 2010-04-02 Pedro Alves <pedro@codesourcery.com>
4124 * breakpoint.h (struct counted_command_line): Moved definition to
4125 breakpoint.c, and forward declare.
4126 (breakpoint_commands): Declare.
4127 * breakpoint.c (struct counted_command_line): Moved here.
4128 (breakpoint_commands): New.
4129 * tracepoint.c (encode_actions): Use breakpoint_commands.
4130 * remote.c (remote_download_tracepoint): Ditto.
4132 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4134 * remote.c (remote_parse_stop_reply): Use hex_string instead
4135 of phex_nz for error.
4137 2010-04-01 Stan Shebs <stan@codesourcery.com>
4138 Nathan Sidwell <nathan@codesourcery.com>
4140 * tracepoint.h (enum actionline_type): Remove.
4141 (validate_actionline): Change return to void.
4142 * tracepoint.c (report_agent_reqs_errors): New function.
4143 (validate_actionline): Call it, change return to void, report errors
4145 (collect_symbol): Call report_agent_reqs_errors.
4146 (encode_actions_1): Ditto.
4147 (encode_actions): Don't expect a result from validate_actionline.
4149 2010-04-01 Stan Shebs <stan@codesourcery.com>
4151 * tracepoint.c (trace_start_command): Confirm if trace is running.
4152 (trace_stop_command): Error if trace not running.
4154 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
4156 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
4157 (AMD64_NUM_LOWER_BYTE_REGS): New.
4158 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
4159 (amd64_pseudo_register_write): Likewise.
4160 (amd64_init_abi): Set num_byte_regs to 20.
4162 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4164 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
4165 (prev_breakpoint_count): New.
4166 (set_breakpoint_count): Adjust.
4167 (rbreak_start_breakpoint_count): New.
4168 (start_rbreak_breakpoints): Adjust.
4169 (end_rbreak_breakpoints): Adjust.
4170 (struct commands_info) <arg>: New field.
4171 (do_map_commands_command): Tweak output to include breakpoint spec
4173 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
4174 ARG was empty on entry. Set INFO's arg.
4175 (create_breakpoint): Adjust.
4177 * NEWS: Clarify `commands' changes.
4179 2010-04-01 Pedro Alves <pedro@codesourcery.com>
4181 * tracepoint.c: Include stack.h.
4182 (struct add_local_symbols_data): New.
4183 (do_collect_symbol): New.
4184 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
4185 iterate_over_block_local_vars.
4186 * stack.c (print_block_frame_locals): Rewrite as ...
4187 (iterate_over_block_locals): ... this. Take a callback function
4188 pointer and generic data pointer, and call that instead of
4189 print_variable_and_value.
4190 (struct print_variable_and_value_data): New.
4191 (do_print_variable_and_value): New.
4192 (iterate_over_block_local_vars): New, abstracted out from
4193 print_frame_local_vars.
4194 (print_frame_local_vars): Rewrite using
4195 iterate_over_block_local_vars.
4196 (iterate_over_block_arg_vars): New, abstracted out from
4197 print_frame_arg_vars.
4198 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
4199 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
4200 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
4202 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
4204 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
4205 instructions. Use the PC+4 if the base of the TBB or TBH is the
4208 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4210 Fix crash on reading wrong function declaration DWARF.
4211 * dwarf2read.c (read_subroutine_type): New variable void_type.
4212 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
4213 more close to their use.
4215 2010-03-31 Stan Shebs <stan@codesourcery.com>
4217 * breakpoint.c (tracepoint_save_command): Include variables,
4218 conditionals, tracepoint types, and default-collect.
4219 * tracepoint.c (save_trace_state_variables): New function.
4220 * tracepoint.h (save_trace_state_variables): Declare it.
4222 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
4224 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
4226 2010-03-30 Keith Seitz <keiths@redhat.com>
4228 * c-typeprint.c (c_type_print_args): Don't print "void"
4229 for java, regardless of whether it is TYPE_PROTOTYPED.
4230 Use the passed-in language instead of current_language.
4231 (c_type_print_varspec_suffix): Use current_language instead
4232 of assuming language_c.
4233 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
4234 any return type specifier from the physname.
4236 2010-03-30 Pedro Alves <pedro@codesourcery.com>
4238 * tui/tui-interp.c (tui_is_toplevel): New.
4240 (tui_allowed_p): New.
4241 * tui/tui.c (tui_enable): Check if the TUI is allowed before
4243 * tui/tui.h (tui_allowed_p): Declare.
4245 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
4247 * serial.h: Include winsock2.h before windows.h.
4249 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
4251 * NEWS: Mention xmlRegisters= in qSupported packet.
4253 * i386-tdep.c: Include "remote.h".
4254 (_initialize_i386_tdep): Call register_remote_support_xml.
4256 * remote.c (remote_support_xml): New.
4257 (register_remote_support_xml): Likewise.
4258 (remote_query_supported_append): Likewise.
4259 (remote_query_supported): Support remote_support_xml.
4261 * remote.h (register_remote_support_xml): New.
4263 2010-03-29 Stan Shebs <stan@codesourcery.com>
4265 * tracepoint.c (trace_find_line_command): Remove dead code.
4267 * tracepoint.h (struct uploaded_string): New struct.
4268 (struct uploaded_tp): New fields for source strings.
4269 * breakpoint.c (this_utp, next_cmd): New globals.
4270 (read_uploaded_action): New function.
4271 (create_tracepoint_from_upload): Fill in more parts
4273 * tracepoint.c (encode_source_string): New function.
4274 (trace_save): Write out source strings, fix error checks.
4275 (parse_tracepoint_definition): Add source string parsing.
4276 * remote.c (PACKET_TracepointSource): New packet type.
4277 (remote_download_command_source): New function.
4278 (remote_download_tracepoint): Download source pieces also.
4279 (_initialize_remote): Add packet config command.
4281 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
4284 * tracepoint.c (start_tracing): Check tracepoints before sending
4285 commands to target, don't start if all tracepoints disabled.
4287 2010-03-28 Pedro Alves <pedro@codesourcery.com>
4289 * cli/cli-script.c (process_next_line): Handle 'stepping'.
4291 2010-03-26 Stan Shebs <stan@codesourcery.com>
4293 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
4295 2010-03-26 Tom Tromey <tromey@redhat.com>
4297 * breakpoint.c (commands_command_1): Duplicate 'arg'.
4299 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4301 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
4302 (skip_prologue_sal): Remove local definition.
4303 (resolve_sal_pc): Remove now unnecessary code.
4304 * linespec.c (minsym_found): Call skip_prologue_sal.
4305 * symtab.c (find_function_start_pc): Remove.
4306 (find_function_start_sal): Extract prologue skipping into ...
4307 (skip_prologue_sal): ... this new function. Handle code both
4308 with and without debug info. Respect SAL's explicit_pc and
4309 explicit_line flags. Inline old find_function_start_pc.
4310 * symtab.h (find_function_start_pc): Remove.
4311 (skip_prologue_sal): Add prototype.
4313 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4315 * dwarf2read.c (read_func_scope): Also scan specification DIEs
4316 for DW_TAG_imported_module children.
4318 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4320 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
4321 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
4322 * completer.c (add_struct_fields): Fix inverted logic.
4324 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4326 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
4328 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4330 * tracepoint.c (current_trace_status): Don't make sure error_desc
4332 (parse_trace_status): Release a previous error_desc string, and
4333 set it to NULL by default. If stop reason is tracepoint_error,
4334 make sure error_desc is not left NULL.
4336 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4338 * tracepoint.c (trace_save): Remove X from tracepoint error
4341 2010-03-26 Pedro Alves <pedro@codesourcery.com>
4343 * tracepoint.c (parse_trace_status): Don't allow plain strings in
4344 the terror description. Don't expect an X prefix.
4346 2010-03-25 Stan Shebs <stan@codesourcery.com>
4348 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4349 (struct trace_status): New field error_desc.
4350 * tracepoint.c (stop_reason_names): Add terror.
4351 (current_trace_status): Ensure non-NULL error description.
4352 (trace_status_command): Add error report.
4353 (trace_status_mi): Ditto.
4354 (trace_save): Add special case for error description.
4355 (parse_trace_status): Add case for errors.
4357 2010-03-25 Keith Seitz <keiths@redhat.com>
4359 * dwarf2read.c (read_subroutine_type): If the compilation unit
4360 language is Java, mark any formal parameter named "this" as
4361 artificial (GCC/43521).
4362 (dwarf2_name): Add special handling for Java constructors.
4364 2010-03-25 Tom Tromey <tromey@redhat.com>
4366 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4367 * infrun.c (handle_inferior_event): Change initialization of
4369 (handle_inferior_event): Change assignment to stop_stack_dummy.
4370 (normal_stop): Update use of stop_stack_dummy.
4371 (struct inferior_status) <stop_stack_dummy>: Change type.
4372 * inferior.h (stop_stack_dummy): Update.
4373 * infcmd.c (stop_stack_dummy): Change type.
4374 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4376 (call_function_by_hand): Call set_std_terminate_breakpoint.
4377 Rewrite std::terminate handling.
4378 * breakpoint.h (enum bptype) <bp_std_terminate,
4379 bp_std_terminate_master>: New.
4380 (enum stop_stack_kind): New.
4381 (struct bpstat_what) <call_dummy>: Change type.
4382 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4384 * breakpoint.c (create_std_terminate_master_breakpoint): New
4386 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4387 Call create_std_terminate_master_breakpoint.
4388 (print_it_typical): Handle new breakpoint kinds.
4389 (bpstat_stop_status): Handle bp_std_terminate_master.
4390 (bpstat_what): Correctly set call_dummy field. Handle
4391 bp_std_terminate_master and bp_std_terminate.
4392 (print_one_breakpoint_location): Update.
4393 (allocate_bp_location): Update.
4394 (set_std_terminate_breakpoint): New function.
4395 (delete_std_terminate_breakpoint): Likewise.
4396 (create_thread_event_breakpoint): Update.
4397 (delete_command): Update.
4398 (breakpoint_re_set_one): Update.
4399 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4401 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4403 * symfile.c (build_section_addr_info_from_bfd): New.
4404 (build_section_addr_info_from_objfile): Base it on
4405 build_section_addr_info_from_bfd.
4406 (addrs_section_compar, addrs_section_sort): New.
4407 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4408 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4409 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4411 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4413 * elfread.c (find_separate_debug_file_by_buildid):
4414 Remove unused local variable.
4416 2010-03-24 Tom Tromey <tromey@redhat.com>
4418 PR breakpoints/9352:
4419 * NEWS: Mention changes to `commands' and `rbreak'.
4420 * symtab.c (do_end_rbreak_breakpoints): New function.
4421 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4422 end_rbreak_breakpoints.
4423 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4424 (set_breakpoint_count): Likewise. Clear last_was_multi.
4425 (multi_start, multi_end, last_was_multi): New globals.
4426 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4428 (struct commands_info): New
4429 (do_map_commands_command): New function.
4430 (commands_command_1): New function.
4431 (commands_command): Use it.
4432 (commands_from_control_command): Likewise.
4433 (do_delete_breakpoint): New function.
4434 (delete_command): Use it.
4435 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4436 (do_map_disable_breakpoint): New function.
4437 (disable_command): Use it.
4438 (do_map_enable_breakpoint): New function.
4439 (enable_command): Use it.
4440 (enable_once_breakpoint): Add argument.
4441 (enable_once_command): Update.
4442 (enable_delete_breakpoint): Add argument.
4443 (enable_delete_command): Update.
4444 (break_command_really): Set last_was_multi when needed.
4445 (check_tracepoint_command): Fix formatting.
4446 (validate_commands_for_breakpoint): New function.
4447 (breakpoint_set_commands): Use it.
4448 (tracepoint_save_command): Update.
4449 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4452 2010-03-24 Tom Tromey <tromey@redhat.com>
4454 * breakpoint.h (struct counted_command_line): New struct.
4455 (struct breakpoint) <commands>: Change type.
4456 (struct bpstats) <commands>: Change type.
4457 <commands_left>: New field.
4458 * breakpoint.c (alloc_counted_command_line): New function.
4459 (incref_counted_command_line): Likewise.
4460 (decref_counted_command_line): Likewise.
4461 (do_cleanup_counted_command_line): Likewise.
4462 (make_cleanup_decref_counted_command_line): Likewise.
4463 (breakpoint_set_commands): Use decref_counted_command_line and
4464 alloc_counted_command_line.
4465 (commands_command): Don't error if breakpoint commands are
4467 (commands_from_control_command): Likewise.
4468 (bpstat_free): Update.
4469 (bpstat_copy): Likewise.
4470 (bpstat_clear_actions): Likewise.
4471 (bpstat_do_actions_1): Likewise.
4472 (bpstat_stop_status): Likewise.
4473 (print_one_breakpoint_location): Likewise.
4474 (delete_breakpoint): Likewise.
4475 (bpstat_alloc): Initialize new field.
4476 (tracepoint_save_command): Update.
4477 * tracepoint.c (encode_actions): Update.
4478 (trace_dump_command): Update.
4480 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4482 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4483 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4484 (read_structure_type): For RealView, set TYPE_STUB on structures with
4485 no byte size and no children.
4486 (read_subroutine_type): Mark functions as prototyped by default.
4487 * symtab.c (producer_is_realview): New function.
4488 * symtab.h (expand_line_sal): Fix declaration formatting.
4489 (producer_is_realview): Declare.
4491 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4493 * arm-tdep.c (skip_prologue_function): New function.
4494 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4495 (thumb_analyze_prologue): Document return value. Recognize more
4496 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4498 (arm_skip_prologue): Remove call dummy check. Check the prologue
4499 for non-GNU compilers.
4500 (arm_instruction_changes_pc): New function.
4501 (arm_analyze_prologue): New function, broken out from
4502 arm_scan_prologue. Recognize more ARM instructions and skippable
4503 calls. Update comments. Handle NULL cache. Return the address
4504 of the first unrecognized instruction. Do not skip past other
4505 instructions which change control flow. Add debug output.
4506 (arm_scan_prologue): Use arm_analyze_prologue.
4507 (ARM_PC_32): Delete.
4508 (shifted_reg_val): Simplify ARM_PC_32 check.
4510 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4512 * tracepoint.c (tvariables_info_1): Actually compute
4513 the number of rows in the result.
4515 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4517 * remote.c (crc32): Constify `buf' parameter.
4518 (remote_verify_memory): New, abstracted out from...
4519 (compare_sections_command): ... this. Remove hardcoded target
4521 (init_remote_ops): Install remote_verify_memory.
4522 * target.c (target_verify_memory): New.
4523 * target.h (struct target_ops) <to_verify_memory>: New field.
4524 (target_verify_memory): Declare.
4526 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4528 Implement -trace-save.
4530 * mi-cmds.h (mi_cmds_trace_save): Declare.
4531 * mi-cmds.c (mi_cmds): Register -trace-save.
4532 * mi/mi-main.c (mi_cmd_trace_save): New.
4533 * remote.c (remote_save_trace_data): Take const parameter.
4534 * target.h (struct target_ops::to_save_trace_data): Take
4536 * target.c (update_current_target): Adjust to the above.
4537 * tracepoint.c (trave_save): New, extracted from
4538 (trace_save_command): ...this.
4539 (tfile_trace_find): Remove message that is unnecessary now
4540 that 'tfind' reports found frame.
4541 * tracepoint.h (trace_save): Declare.
4543 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4545 Implement -trace-find.
4547 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4548 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4549 * mi/mi-main.c (mi_cmd_trace_find): New.
4550 * target.h (struct target_ops): Document to_trace_find.
4551 * tracepoint.h (tfind_1): Declare.
4552 * tracepoint.c (finish_tfind_command): Rename to...
4554 * remote.c (remote_trace_find): Return -1 if target say
4555 there's no frame. Improve error diagnostics.
4557 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4559 -trace-define-variable and -trace-list-variables.
4561 * tracepoint.c (create_trace_state_variable): Make
4562 private copy of name, as opposed to assuming the
4563 pointer lives forever.
4564 (tvariables_info_1): New.
4565 (tvariables_info): Use the above.
4566 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4568 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4569 and -trace-list-variables.
4570 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4571 (mi_cmd_trace_list_variables): New.
4572 * mi/mi-main.c (mi_cmd_trace_define_variable)
4573 (mi_cmd_trace_list_variables): New.
4575 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4577 Implement -break-passcount.
4579 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4580 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4581 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4583 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4585 -trace-start/-trace-end/-trace-status.
4587 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4589 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4590 (mi_cmd_trace_stop): Declare.
4591 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4592 (mi_cmd_trace_stop): New.
4593 * tracepoint.c (start_tracing): New, extracted from...
4594 (trace_start_command): ...this.
4595 (trace_status_mi): New.
4596 * tracepoint.h (struct trace_status): Document
4597 stopping_tracepoint.
4598 (start_tracing, stop_tracing, trace_status_mi): Declare.
4600 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4602 Implement creating tracepoints with -break-insert.
4604 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4605 to mean that tracepoint should be created.
4607 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4609 * breakpoint.c (check_no_tracepoint_commands): Use
4610 current spelling of 'teval'.
4612 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4614 Unify actions and commands
4616 * defs.h (read_command_lines, read_command_lines_1): New
4617 parameters validator and closure.
4618 * tracepoint.h (struct action_line): Remove.
4619 * breakpoint.h (struct breakpoint): Remove the 'actions'
4621 * defs.h (enum command_control_type): New value
4622 while_stepping_control.
4623 (struct command_line): Add comments.
4624 * breakpoint.c (breakoint_is_tracepoint): New.
4625 (breakpoint_set_commands): For tracepoints,
4626 verify the commands are permissible.
4627 (check_tracepoint_commands): New.
4628 (commands_command): Require that each new line is validated using
4629 check_tracepoint_command, if we set commands for a tracepoint.
4630 (create_tracepoint_from_upload): Likewise.
4631 (print_one_breakpoint_location): Remove the code to print
4632 actions specifically.
4633 (tracepoint_save_command): Relay to print_command_lines.
4634 * cli/cli-script.c (process_next_line): New parameters validator
4635 and closure. Handle 'while-stepping'. Call validator if not null.
4636 (read_command_lines, read_command_lines1): Likewise.
4637 (recurse_read_control_structure): New parameters validator and
4638 closure. Handle while_stepping_control.
4639 (print_command_lines): Handle while-stepping.
4640 (get_command_line, define_command, document_command): Adjust.
4641 * remote.c (remote_download_tracepoint): Adjust.
4642 * tracepoint.c (make_cleanup_free_actions, read_actions)
4643 (free_actions, do_free_actions_cleanup): Remove.
4644 (trace_actions_command): Use read_command_lines.
4645 (validate_actionline): Use error in one place.
4646 (encode_actions_1): New, extracted from...
4647 (encode_actions): ...this. Also use cleanups for exception
4649 (trace_dump_command): Adjust.
4650 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4653 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4655 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4657 2010-03-22 Stan Shebs <stan@codesourcery.com>
4659 * value.c (value_static_field): Be lazy about the field's value.
4661 2010-03-22 Reid Kleckner <reid@kleckner.net>
4664 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4666 (disable_breakpoints_in_shlibs): Likewise.
4668 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4670 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4671 GCC 4.1 debug info generation (GCC PR c++/28460).
4672 (determine_prefix): Likewise.
4674 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4676 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4678 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4680 2010-03-19 Stan Shebs <stan@codesourcery.com>
4682 * ax-gdb.c (gen_fetch): Handle bool.
4683 (gen_usual_unary): Ditto.
4685 (gen_equal): New function.
4686 (gen_less): New function.
4687 (gen_expr_binop_rest): Call them, also return integer type from
4691 2010-03-19 Tom Tromey <tromey@redhat.com>
4693 * jv-lang.c (jv_dynamics_objfile_data_key)
4694 (jv_type_objfile_data_key): New globals.
4695 (class_symtab): Move earlier.
4696 (jv_per_objfile_free): New function.
4697 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4699 Remove ancient #if 1.
4700 (add_class_symbol): Remove redundant declaration.
4701 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4702 (java_link_class_type): Mark as static. Update.
4703 (jv_clear_object_type): New function.
4704 (set_java_object_type): Likewise.
4705 (get_java_object_type): Use set_java_object_type.
4706 (is_object_type): Likewise.
4707 (_initialize_java_language): Register new objfile keys.
4708 (get_java_class_symtab): Add 'gdbarch' parameter.
4709 (add_class_symtab_symbol): Update.
4710 (type_from_class): Update.
4712 2010-03-19 Stan Shebs <stan@codesourcery.com>
4714 * ax-general.c (ax_const_l): Fix a sizing bug.
4716 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4720 2010-03-18 Stan Shebs <stan@codesourcery.com>
4721 Pedro Alves <pedro@codesourcery.com>
4723 * target.h (struct target_ops): New method
4724 to_set_circular_trace_buffer.
4725 (target_set_circular_trace_buffer): New macro.
4726 * target.c (update_current_target): Add
4727 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4729 * remote.c (remote_set_circular_trace_buffer): New function.
4730 (init_remote_ops): Add it to vector.
4731 * tracepoint.h (struct trace_status): New field traceframes_created,
4732 change buffer_size and buffer_free to int.
4733 * tracepoint.c (circular_trace_buffer): New global.
4734 (start_tracing): Send values of disconnected tracing and circular
4735 trace buffer settings.
4736 (set_circular_trace_buffer): New function.
4737 (parse_trace_state): Handle total space and frames created.
4738 (trace_status_command): Display total space and total frames
4740 (trace_save): Write out new status values.
4741 (parse_trace_status): Set traceframe_count, traceframes_created,
4742 buffer_free and buffer_size to -1 by default.
4743 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4744 * NEWS: Mention the circular trace buffer option.
4746 2010-03-18 Tom Tromey <tromey@redhat.com>
4748 * infcmd.c (finish_command_continuation): Wrap print_return_value
4751 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4753 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4754 DIE has a name before creating the associated partial symbol.
4755 (read_func_scope): Emit a complaint if the subprogram does not
4756 have a name or when we can't extract the subprogram PC bounds.
4758 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4760 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4761 instead of selected frame architecture.
4763 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4765 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4766 a valid selected thread, and that it is not running.
4767 (advance_command): Ditto.
4768 (finish_command): Ditto.
4770 2010-03-17 Stan Shebs <stan@codesourcery.com>
4772 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4774 * infcall.c: Include tracepoint.h.
4775 (call_function_by_hand): Disallow calls in tfind mode.
4776 * infcmd.c: Include tracepoint.h.
4777 (ensure_not_tfind_mode): New function.
4778 (continue_1): Call it.
4780 (jump_command): Ditto.
4781 (signal_command): Ditto.
4782 (advance_command): Ditto.
4783 (until_command): Ditto.
4784 (finish_command): Ditto.
4785 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4787 * ax-gdb.h (struct axs_value): New field optimized_out.
4788 (gen_trace_for_var): Add gdbarch argument.
4789 * ax-gdb.c (gen_trace_static_fields): New function.
4790 (gen_traced_pop): Call it, add gdbarch argument.
4791 (gen_trace_for_expr): Update call to it.
4792 (gen_trace_for_var): Ditto, and report optimized-out variables.
4793 (gen_struct_ref_recursive): Check for optimized-out value.
4794 (gen_struct_elt_for_reference): Ditto.
4795 (gen_static_field): Pass gdbarch instead of expression, assume
4796 optimization if field not found.
4797 (gen_var_ref): Set the optimized_out flag.
4798 (gen_expr): Error on optimized-out variable.
4799 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4800 expressions, skip optimized-out variables with computed locations.
4801 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4802 erroring out if location expression missing.
4803 (loclist_tracepoint_var_ref): Don't error out here.
4805 2010-03-17 Tom Tromey <tromey@redhat.com>
4807 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4808 DWARF data is available.
4810 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4812 * symfile.c (generic_load): Reset breakpoints after loading.
4814 2010-03-17 Tom Tromey <tromey@redhat.com>
4816 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4818 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4820 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4821 create_breakpoint call, adjust the parameters.
4823 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4824 Chandru <chandru@in.ibm.com>
4826 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4827 * valarith.c (value_subscripted_rvalue): Suppress error if
4828 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4830 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4832 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4834 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4836 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4837 before doing the associated thread switch.
4839 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4841 * MAINTAINERS: Update my email address.
4843 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4845 Simplify MI breakpoint setting.
4847 * breakpoint.c (break_command_really): Make nonstatic and
4849 (create_breakpoint): ...this. Rename prior function by this name
4851 (create_breakpoint_sal): ...this.
4852 (create_breakpoints): Rename to...
4853 (create_breakpoints_sal): ...this.
4854 (set_breakpoint): Remove.
4855 * breakpoint.h: Adjust to above changes.
4856 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4858 2010-03-15 Stan Shebs <stan@codesourcery.com>
4860 * ax-gdb.c: Include cp-support.h.
4861 (find_field): Remove.
4862 (gen_primitive_field): New function.
4863 (gen_struct_ref_recursive): New function.
4864 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4866 (gen_static_field): New function.
4867 (gen_struct_elt_for_reference): New.
4868 (gen_namespace_elt): New.
4869 (gen_maybe_namespace_elt): New.
4870 (gen_aggregate_elt_ref): New.
4871 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4873 2010-03-15 Tom Tromey <tromey@redhat.com>
4875 * dwarf2read.c (die_needs_namespace): Also return 0 for
4878 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4881 * cp-support.h: Added char *declaration element to using_direct
4883 (cp_add_using): Added char *declaration argument.
4884 (cp_add_using_directive): Ditto.
4885 (cp_lookup_symbol_imports): made extern.
4886 * cp-namespace.c: Updated with the above changes.
4887 * dwarf2read.c (read_import_statement): Ditto.
4888 (read_namespace): Ditto.
4889 (read_import_statement): Support import declarations.
4890 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4892 Added support for 'declaration_only' search.
4893 (cp_lookup_symbol_namespace): Attempt to search for the name as
4894 is before consideration of imports.
4895 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4896 search at every block level search.
4897 Now takes language argument.
4898 (lookup_symbol_aux): Updated.
4900 2010-03-15 Tom Tromey <tromey@redhat.com>
4902 * c-exp.y (name_not_typename): Add 'operator' clause.
4904 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4906 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4907 * configure: Regenerate.
4909 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4911 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4912 and ".sdynbss". Update the comment.
4914 2010-03-15 Jie Zhang <jie@codesourcery.com>
4916 * MAINTAINERS: Update my email address.
4918 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4920 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4922 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4924 * charset.c [USE_WIN32API]: Include <windows.h>.
4925 (_initialize_charset): Correct type of w32_host_default_charset.
4927 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4929 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4931 2010-03-12 Tom Tromey <tromey@redhat.com>
4934 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4935 in a lexical block does not need a namespace.
4936 (new_symbol) <DW_TAG_variable>: Put extern variables on
4937 list_in_scope in all cases.
4939 2010-03-12 Stan Shebs <stan@codesourcery.com>
4941 * ax-gdb.c (gen_expr): Add shift expressions.
4942 (gen_expr_binop_rest): Ditto.
4944 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4946 * buildsym.c (finish_block): Reset using_directives pointer
4947 after block initialization.
4949 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4951 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4952 * i386-tdep.c (i386_word_names): Likewise.
4954 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4956 * target.c (memory_xfer_partial): Don't use the stack cache if
4957 inspecting trace frames.
4958 * tracepoint.c (finish_tfind_command): Invalidate the target
4961 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4963 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4964 for the PIC displacement, print also the displacement value.
4965 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4967 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4969 * remote-mips.c (close_ports, mips_initialize_cleanups)
4970 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4971 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4972 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4973 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4974 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4975 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4976 comments describing each of these functions.
4977 (mips_enter_debug, mips_exit_debug, common_open)
4978 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4979 blank line after the comment describing the function.
4981 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4983 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4984 parameter displacementp. Update comment.
4985 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4986 element exists. Return if svr4_exec_displacement was not successful.
4989 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4990 Daniel Jacobowitz <dan@codesourcery.com>
4992 * solib-svr4.c (read_program_header): Support type == -1 to read
4993 all program headers.
4994 (read_program_headers_from_bfd): New function.
4995 (svr4_static_exec_displacement): Remove and move the comment ...
4996 (svr4_exec_displacement): ... here. Remove variable found. New
4997 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4998 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4999 targets using read_program_headers_from_bfd. Remove the call of
5000 svr4_static_exec_displacement.
5002 2010-03-10 Tom Tromey <tromey@redhat.com>
5004 * dwarf2read.c (struct pubnames_header): Remove.
5005 (_PUBNAMES_HEADER): Remove.
5006 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
5007 (struct aranges_header): Remove.
5008 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
5009 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
5010 (PUBNAMES_SECTION): Remove.
5011 (ARANGES_SECTION): Remove.
5012 (dwarf2_locate_sections): Don't handle pubnames or aranges.
5013 (dwarf2_build_psymtabs): Remove dead code.
5014 (dwarf2_build_psymtabs_easy): Remove.
5016 2010-03-10 Tom Tromey <tromey@redhat.com>
5018 * elfread.c (elf_symfile_read): Don't call
5019 dwarf2_build_frame_info.
5020 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
5021 (struct dwarf2_per_objfile) <objfile>: New field.
5022 (dwarf2_has_info): Now idempotent. Set objfile field.
5023 (dwarf2_read_section): Check and set readin field. Call
5025 (dwarf2_build_psymtabs): Don't read all sections.
5026 (read_type_comp_unit_head): Read types section.
5027 (create_debug_types_hash_table): Likewise.
5028 (init_cu_die_reader): Add asserts.
5029 (process_type_comp_unit): Add assert.
5030 (dwarf2_build_psymtabs_hard): Read info section.
5031 (load_partial_comp_unit): Add assert.
5032 (create_all_comp_units): Read info section.
5033 (load_full_comp_unit): Likewise.
5034 (dwarf2_ranges_read): Read ranges section.
5035 (dwarf2_record_block_ranges): Add assert.
5036 (dwarf2_read_abbrevs): Read abbrev section.
5037 (read_indirect_string): Read str section.
5038 (dwarf_decode_line_header): Read line section.
5039 (read_signatured_type_at_offset): Read types section.
5040 (dwarf_decode_macros): Read macinfo section.
5041 (dwarf2_symbol_mark_computed): Read loc section.
5042 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
5043 dwarf2_build_frame_info.
5044 (dwarf2_build_frame_info): Unconditionally set
5045 dwarf2_frame_objfile_data on the objfile.
5046 * configure.ac: Check for posix_madvise.
5047 * config.in, configure: Rebuild.
5049 2010-03-10 Tom Tromey <tromey@redhat.com>
5051 * xcoffread.c (xcoff_start_psymtab): Update.
5052 (xcoff_end_psymtab): Update.
5053 * psymtab.c (allocate_psymtab): Remove dead code.
5054 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
5056 * mdebugread.c (parse_partial_symbols): Update.
5057 (new_psymtab): Likewise.
5058 * dwarf2read.c (process_psymtab_comp_unit): Update.
5059 (psymtab_to_symtab_1): Update.
5060 * dbxread.c (start_psymtab): Update.
5061 (end_psymtab): Likewise.
5063 2010-03-10 Tom Tromey <tromey@redhat.com>
5065 * xcoffread.c: Include psymtab.h.
5066 (xcoff_sym_fns): Update.
5067 * symtab.h (struct partial_symbol): Remove.
5068 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
5069 (struct partial_symtab): Remove.
5070 (PSYMTAB_TO_SYMTAB): Remove.
5071 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
5072 (find_pc_sect_psymtab): Remove.
5073 (find_pc_sect_symtab_via_partial): Declare.
5074 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
5075 (find_main_psymtab): Remove.
5076 (find_main_filename): Declare.
5077 (fixup_psymbol_section): Remove.
5078 (fixup_section): Declare.
5079 * symtab.c: Include psymtab.h.
5080 (lookup_symtab): Use lookup_symtab method.
5081 (lookup_partial_symtab): Remove.
5082 (find_pc_sect_psymtab_closer): Remove.
5083 (find_pc_sect_psymtab): Remove.
5084 (find_pc_sect_symtab_via_partial): New function.
5085 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
5086 (fixup_section): No longer static.
5087 (fixup_psymbol_section): Remove.
5088 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
5089 (lookup_global_symbol_from_objfile): Likewise.
5090 (lookup_symbol_aux_psymtabs): Remove.
5091 (lookup_symbol_aux_quick): New function.
5092 (lookup_symbol_global): Use lookup_symbol_aux_quick.
5093 (lookup_partial_symbol): Remove.
5094 (basic_lookup_transparent_type_quick): New function.
5095 (basic_lookup_transparent_type): Use it.
5096 (find_main_psymtab): Remove.
5097 (find_main_filename): New function.
5098 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
5099 (find_line_symtab): Use expand_symtabs_with_filename method.
5100 (output_partial_symbol_filename): New function.
5101 (sources_info): Use map_partial_symbol_filenames.
5102 (struct search_symbols_data): New type.
5103 (search_symbols_file_matches): New function.
5104 (search_symbols_name_matches): Likewise.
5105 (search_symbols): Use expand_symtabs_matching method.
5106 (struct add_name_data): Rename from add_macro_name_data.
5107 (add_macro_name): Update.
5108 (add_partial_symbol_name): New function.
5109 (default_make_symbol_completion_list): Use
5110 map_partial_symbol_names.
5111 (struct add_partial_symbol_name): New type.
5112 (maybe_add_partial_symtab_filename): New function.
5113 (make_source_files_completion_list): Use
5114 map_partial_symbol_filenames.
5115 (expand_line_sal): Use expand_symtabs_with_filename method.
5116 * symmisc.c: Include psymtab.h.
5117 (print_objfile_statistics): Use print_stats method.
5118 (dump_objfile): Use dump method.
5119 (dump_psymtab, maintenance_print_psymbols)
5120 (maintenance_info_psymtabs, maintenance_check_symtabs)
5121 (extend_psymbol_list): Remove.
5122 * symfile.h (struct quick_symbol_functions): New struct.
5123 (struct sym_fns) <qf>: New field.
5124 (sort_pst_symbols): Remove.
5125 (increment_reading_symtab): Declare.
5126 * symfile.c: Include psymtab.h.
5127 (compare_psymbols, sort_pst_symbols): Remove.
5128 (psymtab_to_symtab): Remove.
5129 (increment_reading_symtab): New function.
5130 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
5132 (set_initial_language): Use find_main_filename.
5133 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
5134 (free_named_symtabs): Remove unused code.
5135 (start_psymtab_common, add_psymbol_to_bcache)
5136 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
5138 * stack.c: Include psymtab.h, symfile.h.
5139 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
5140 * source.h (psymtab_to_fullname): Don't declare.
5141 * source.c: Include psymtab.h.
5142 (select_source_symtab): Use find_last_source_symtab method.
5143 (forget_cached_source_info): Use forget_cached_source_info
5145 (find_and_open_source): No longer static.
5146 (psymtab_to_fullname): Remove.
5147 * somread.c: Include psymtab.h.
5148 (som_sym_fns): Update.
5149 * psympriv.h: New file.
5150 * psymtab.h: New file.
5151 * psymtab.c: New file.
5152 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
5153 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
5154 * objfiles.c: Include psymtab.h.
5155 (objfile_relocate1): Use relocate method.
5156 (objfile_has_partial_symbols): Use has_symbols method.
5157 * mipsread.c: Include psymtab.h.
5158 (ecoff_sym_fns): Update.
5159 * mi/mi-cmd-file.c: Include psymtab.h.
5160 (print_partial_file_name): New function.
5161 (mi_cmd_file_list_exec_source_files): Use
5162 map_partial_symbol_filenames.
5163 * mdebugread.c: Include psympriv.h.
5164 * machoread.c: Include psympriv.h.
5165 (macho_sym_fns): Update.
5166 * m2-exp.y (yylex): Use lookup_symtab.
5167 * elfread.c: Include psympriv.h.
5168 (elf_sym_fns): Update.
5169 * dwarf2read.c: Include psympriv.h.
5170 * dbxread.c: Include psympriv.h.
5171 (aout_sym_fns): Update.
5172 * cp-support.c: Include psymtab.h.
5173 (read_in_psymtabs): Remove.
5174 (make_symbol_overload_list_qualified): Use
5175 expand_symtabs_for_function method.
5176 * coffread.c: Include psympriv.h.
5177 (coff_sym_fns): Update.
5178 * blockframe.c: Include psymtab.h.
5179 (find_pc_partial_function): Use find_pc_sect_symtab method.
5180 * ada-lang.h (ada_update_initial_language): Update.
5181 * ada-lang.c: Include psymtab.h.
5182 (ada_update_initial_language): Remove 'main_pst' argument.
5183 (ada_lookup_partial_symbol): Remove.
5184 (struct ada_psym_data): New type.
5185 (ada_add_psyms): New function.
5186 (ada_add_non_local_symbols): Use map_ada_symtabs method.
5187 (struct add_partial_datum): New type.
5188 (ada_add_partial_symbol_completions): New function.
5189 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
5190 (ada_exception_support_info_sniffer): Update.
5191 * Makefile.in (SFILES): Add psymtab.c.
5192 (COMMON_OBS): Add psymtab.o.
5193 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
5195 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5197 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
5199 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
5202 * cp-namespace.c (cp_add_using): Deleted.
5203 (cp_add_using_directive): Use obstack allocations.
5204 Merged the function cp_add_using into this one.
5205 Added 'struct obstack *' argument.
5206 (cp_scan_for_anonymous_namespaces): Updated.
5207 * cp-support.h: Updated.
5208 * dwarf2read.c (read_import_statement): Updated.
5209 (read_namespace): Updated.
5211 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
5213 * windows-nat.c (cygwin_conv_path): Remove old macro.
5215 2010-03-10 Pedro Alves <pedro@codesourcery.com>
5217 * breakpoint.c (condition_command): Handle watchpoint conditions.
5218 (is_hardware_watchpoint): Add comment.
5219 (is_watchpoint): New.
5220 (update_watchpoint): Don't reparse the watchpoint's condition
5223 (watchpoint_check): Use it.
5224 (bpstat_check_watchpoint): Handle it.
5225 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
5226 conditions in a frame where it makes sense.
5227 (watch_command_1): Store the innermost block of the condition
5229 (delete_breakpoint): Delete the watchpoint condition expression.
5230 * breakpoint.h (struct bp_location) <cond>: Update comment.
5231 (struct breakpoint): New field `cond_exp_valid_block'.
5233 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5235 Adjust handling of Ada DIEs after dwarf2_physname patch.
5236 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
5238 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
5239 Pierre Muller <muller@ics.u-strasbg.fr>
5241 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
5242 from/to posix/win32.
5243 (windows_make_so): Use non-Cygwin 1.7 specific function.
5244 (windows_create_inferior): Make sure that cygallargs points to
5245 original args in non Cygwin 1.7. case.
5247 2010-03-09 Michael Snyder <msnyder@vmware.com>
5249 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
5250 after target_read_memory to get host byte order.
5251 (i386_process_record): Ditto.
5253 2010-03-09 Keith Seitz <keiths@redhat.com>
5255 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
5256 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
5257 print out const or volatile qualifiers, too.
5258 (c_type_print_args): Add parameters show_artificial and language.
5259 Skip artificial parameters when requested.
5260 Use the appropriate language printer.
5261 (c_type_print_varspec): Tell c_type_print_args to skip artificial
5262 parameters and pass language_c.
5263 * dwarf2read.c (die_list): New file global.
5264 (struct partial_die_info): Update comments for name field.
5265 (pdi_needs_namespace): Renamed to ...
5266 (die_needs_namespace): ... this. Rewrite.
5267 (dwarf2_linkage_name): Remove.
5268 (add_partial_symbol): Do not predicate the call to
5269 partial_die_full_name based on pdi_needs_namespace.
5270 Remove call to cp_check_possible_namespace_symbols and associated
5272 (guess_structure_name): Do not inspect child subprogram DIEs.
5273 (dwarf2_fullname): Update comments.
5274 Use die_needs_namespace to assist in computing the name.
5275 (read_func_scope): Use dwarf2_name to get the DIE's name.
5276 Use dwarf2_physname to get the "linkage name" of the DIE.
5277 (dwarf2_add_member_field): Use dwarf2_physname instead of
5278 dwarf2_linkage_name.
5279 (read_structure_type): For structs and classes, set TYPE_NAME, too.
5280 (determine_class): Remove.
5281 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
5283 (new_symbol): Unconditionally call dwarf2_name.
5284 Compute the "linkage name" using dwarf2_physname.
5285 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
5286 When determining to scan for anonymous C++ namespaces, ignore
5288 (dwarf2_physname): New function.
5289 (dwarf2_full_name): Move content to new function and call
5291 (dwarf2_compute_name): "New" function.
5292 (_initialize_dwarf2_read): Initialize die_list.
5293 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
5295 (gnu_v3_print_method_ptr): Use the physname for virtual methods
5296 without a demangled name.
5297 Print out type information for non-virtual methods.
5298 * linespec.c (decode_line_1): Force ANY string using "::" (or
5299 "." for java) to use decode_compound, and clean up any stray quoting.
5300 If we found a file symtab, re-evaluate whether the remainder is_quoted.
5301 (decode_compound): Stop consuming at an open parenthesis.
5302 Keep template parameters.
5303 Keep any overload information.
5304 Keep keywords like "const".
5305 Remove paren_pointer.
5306 Move is_quoted check from set_flags to here.
5307 Remove #if 0 code from 2000. Ten years is long enough.
5308 (find_method): Before comparing symbol names, canonicalize the string
5310 If a specific overload is requested, find it. Otherwise throw an error.
5311 (find_method_overload_end): New function.
5312 (set_flags): Remove.
5313 (decode_compound): Assume that parentheses are matched.
5315 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
5317 * linespec.c (decode_line_1): Keep important keywords like
5318 "const" and "volatile".
5319 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
5320 * typeprint.h (c_type_print_args): Add declaration.
5321 * ui-file.c (do_ui_file_obsavestring): New function.
5322 (ui_file_obsavestring): New function.
5323 * ui-file.h (ui_file_obsavestring): Add declaration.
5324 * valops.c (find_overload_match): Resolve the object to
5326 If the object is a data member, search the object for the member
5327 and return with staticp set.
5328 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
5329 Do not attempt to extract a function name from non-function types.
5330 If the extracted function name and the original name are the same,
5331 we don't have a C++ method.
5333 From Jan Kratochvil <jan.kratochvil@redhat.com>:
5334 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
5336 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
5337 and arguments from symbol lookups.
5338 * ax-gdb.c (gen_expr): Likewise.
5339 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
5340 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
5341 lookup_possible_namespace_symbol): Likewise.
5342 * cp-support.c (read_in_psymtabs): Likewise.
5343 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
5344 * language.h (la_lookup_symbol_nonlocal): Likewise.
5345 * scm-valprint.c (scm_inferior_print): Likewise.
5346 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5347 * solib-svr.c (elf_lookup_lib): Likewise.
5348 * solib.c (show_auto_solib_add): Likewise.
5349 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5350 * symmisc.c (maintenance_check_symtabs): Likewise.
5351 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5352 lookup_symbol_aux_local, lookup_symbol_aux_block,
5353 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5354 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5355 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5356 basic_lookup_transparent_type, find_main_psymtab,
5357 lookup_block_symbol): Likewise.
5358 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5359 lookup_symbol_global, lookup_symbol_aux_block,
5360 lookup_symbol_partial_symbol, lookup_block_symbol,
5361 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5363 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5365 * python/python-internal.h: Include symtab.h.
5367 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5368 Pierre Muller <muller@ics.u-strasbg.fr>
5370 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5371 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5374 2010-03-08 Tom Tromey <tromey@redhat.com>
5376 * breakpoint.c (breakpoint_1): Add "QUIT".
5378 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5379 Pedro Alves <pedro@codesourcery.com>
5381 * solib.c (solib_find): Replace extension if
5382 solib_symbols_extension is set in the target gdbarch.
5383 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5384 solib_symbols_extension to "sym".
5385 * gdbarch.sh (solib_symbols_extension): New variable.
5386 (pstring): New function.
5387 * gdbarch.h, gdbarch.c: Regenerate.
5389 2010-03-08 Tom Tromey <tromey@redhat.com>
5393 * utils.c: Include main.h.
5394 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5395 (defaulted_query): Use default answer if `batch_flag'.
5396 * main.h (batch_flag): Declare.
5397 * main.c (batch_flag): New global.
5398 (captured_main): Remove 'batch'. Update.
5400 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5402 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5405 * remote-mips.c (rockhopper_ops): New target_ops struct.
5406 (MON_ROCKHOPPER): New mips_monitor_type.
5407 (read_hex_value): New function.
5408 (mips_request): Send 8-byte values with a 'T' packet. Read the
5409 packet argument as a string and use read_hex_value to parse it.
5410 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5411 (rockhopper_open): New function.
5412 (mips_wait): Read the PC, FP and SP fields as strings. Use
5413 read_hex_value to parse them and mips_set_register to commit them.
5414 (mips_set_register): New function.
5415 (mips_fetch_registers): Do not cast register value to "unsigned"
5416 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5417 (mips_store_registers): Use a 'T' packet to set registers when
5418 using MON_ROCKHOPPER.
5419 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5420 and expect the total to be printed before the entry address.
5421 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5423 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5425 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5426 Change return value to int. Store value fetched in location
5427 addressed by `val'. Use function's return value as success
5428 or failure indicator. Adjust all callers.
5430 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
5432 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5434 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5435 Hui Zhu <teawater@gmail.com>
5437 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5438 tmp_to_stopped_data_address.
5439 (record_open): Reset tmp_to_stopped_by_watchpoint and
5440 tmp_to_stopped_data_address.
5441 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5442 to_stopped_data_address.
5444 2010-03-08 Hui Zhu <teawater@gmail.com>
5446 * i386-tdep.c (i386_process_record): Initialize regnum.
5448 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5450 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5451 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5453 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5455 Memory error when reading wrong core file.
5456 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5457 errors while reading the inferior memory, and return zero if
5458 an exception was raised.
5460 2010-03-07 Michael Snyder <msnyder@vmware.com>
5462 * record.c (record_restore): Rename tmpu8 to rectype.
5464 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5465 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5467 (i386_record_push): Rename local tmpulongest to addr.
5469 (i386_process_record): Rename local tmpulongest to addr.
5471 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5474 Rename local variable tmpu8 to opcode8 and regnum.
5476 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5478 * remote.c (remote_get_ada_task_ptid): New function.
5479 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5481 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5483 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5484 block. Define helper macros to reduce ifdefs in code.
5485 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5486 size. Call unadorned GetModuleFileNameEx rather than
5487 GetModuleFileNameEx*.
5488 (windows_make_so): Use __PMAX to denote maximum buffer size and
5489 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5491 (get_image_name): Use __PMAX to denote maximum buffer size.
5492 (handle_load_dll): Likewise.
5493 (windows_pid_to_exec_file): Likewise.
5494 (windows_create_inferior): Add many accommodations for older Cygwin and
5496 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5497 __USEWIDE conditional.
5498 (bad_GetModuleFileNameExA): Likewise.
5499 (_initialize_loadable): Just use real function names without the dyn_
5500 part since they are defined earlier.
5502 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5503 Tom Tromey <tromey@redhat.com>
5505 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5506 (parse_escape): Likewise.
5507 * python/py-utils.c (unicode_to_target_string): Update.
5508 (unicode_to_target_python_string): Update.
5509 (target_string_to_unicode): Update.
5510 * printcmd.c (printf_command): Update.
5511 * p-exp.y (yylex): Update.
5512 * objc-exp.y (yylex): Update.
5513 * mi/mi-parse.c: Include charset.h.
5514 (mi_parse_escape): New function.
5515 (mi_parse_argv): Use it.
5516 * jv-exp.y (yylex): Update.
5517 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5519 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5520 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5521 * gdbarch.c: Rebuild.
5522 * gdbarch.h: Rebuild.
5523 * defs.h (parse_escape): Update.
5524 * cli/cli-setshow.c: Include arch-utils.h.
5525 (do_setshow_command): Update.
5526 * cli/cli-cmds.c (echo_command): Update.
5527 * charset.h (target_charset, target_wide_charset): Update.
5528 * charset.c: Include arch-utils.h.
5529 (target_charset_name): Default to "auto".
5530 (target_wide_charset_name): Likewise.
5531 (show_target_charset_name): Handle "auto".
5532 (show_target_wide_charset_name): Likewise.
5533 (be_le_arch): New global.
5534 (set_be_le_names): Add 'gdbarch' argument.
5535 (validate): Likewise. Don't call set_be_le_names.
5536 (set_charset_sfunc, set_host_charset_sfunc)
5537 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5539 (target_charset): Add 'gdbarch' argument.
5540 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5541 (auto_target_charset_name): New global.
5542 (default_auto_charset, default_auto_wide_charset): New functions.
5543 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5544 for target charsets. Copy result of nl_langinfo. Use GetACP if
5546 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5547 remove 'byte_order' argument. Update.
5548 (classify_type): Likewise.
5549 (c_emit_char): Update.
5550 (c_printchar): Update.
5551 (c_printstr): Update.
5552 (c_get_string): Update.
5553 (evaluate_subexp_c): Update.
5554 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5556 * python/python.c (gdbpy_target_charset): New function.
5557 (gdbpy_target_wide_charset): Likewise.
5558 (GdbMethods): Update.
5561 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5563 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5564 off high address bits.
5566 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5568 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5569 address as UnsignedLongLong, not LongLong.
5571 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5572 Pedro Alves <pedro@codesourcery.com>
5574 * remote-mips.c (gdbthread.h): Include.
5575 (remote_mips_ptid): Declare.
5576 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5577 (common_open): Set inferior_ptid, add it as an inferior, and
5578 as a thread too. Delete FIXME comment regarding start_remote().
5579 (mips_close): Invoke generic_mourn_inferior().
5580 (mips_kill): Make sure that target_mourn_inferior is invoked.
5581 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5582 it's now invoked from mips_close().
5583 (mips_load): Don't null out inferior_ptid. Don't call
5584 clear_symtab_users().
5585 (mips_thread_alive, mips_pid_to_str): New functions.
5586 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5587 to_thread_alive and to_pid_to_str operations.
5589 2010-03-04 Tom Tromey <tromey@redhat.com>
5591 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5592 in DWARF 3 and later.
5593 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5595 2010-03-04 Keith Seitz <keiths@redhat.com>
5597 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5598 If the filename portion of the linespec was quoted, recheck the
5599 remainder for additional quoting.
5600 (locate_first_half): Skip over completer chars, too.
5602 2010-03-04 Tom Tromey <tromey@redhat.com>
5604 * printcmd.c (printf_command): Pass dummy argument to
5607 2010-03-04 Doug Evans <dje@google.com>
5609 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5612 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5614 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5616 * breakpoint.c (update_watchpoint): Create a sentinel location if
5617 the software watchpoint isn't watching any memory.
5618 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5620 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5622 * utils.c (fputs_maybe_filtered): Check if there's already a top
5623 level interpreter before dereferencing it. If there isn't one,
5624 don't paginate either.
5626 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5628 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5629 the state right when single stepping.
5630 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5631 Get the next PC along with the instruction state.
5632 (thumb_get_next_pc): Remove.
5633 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5635 2010-03-04 Hui Zhu <teawater@gmail.com>
5637 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5639 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5641 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5642 top level interpreter is MI.
5644 2010-03-03 Stan Shebs <stan@codesourcery.com>
5646 * remote.c (remote_download_tracepoint): Iterate over locations.
5647 * tracepoint.c (validate_actionline): Ditto.
5648 (encode_actions): Add location argument.
5649 (trace_dump_command): Check all locations to see if stepping
5652 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5653 Eli Zaretskii <eliz@gnu.org>
5655 * NEWS: Add X86 general purpose registers section.
5657 2010-03-03 Tom Tromey <tromey@redhat.com>
5660 * varobj.c (install_new_value): Handle case where new print_value
5663 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5666 * printcmd.c (printf_command): Print end of format string using
5669 2010-03-02 Tom Tromey <tromey@redhat.com>
5671 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5672 * defs.h (read_command_lines_1): Add missing 'void'.
5673 * cli/cli-script.c (recurse_read_control_structure): Add missing
5675 (read_next_line): Likewise.
5676 (read_command_lines_1): Likewise.
5678 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5680 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5681 store backchain as part of prologue.
5683 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5685 * progspace.c (update_address_spaces): Update inferior address spaces
5688 2010-03-02 Doug Evans <dje@google.com>
5690 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5691 lowpc,highpc args to addrmap_set_empty.
5693 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5695 * amd64-tdep.c (amd64_byte_names): New.
5696 (amd64_word_names): Likewise.
5697 (amd64_dword_names): Likewise.
5698 (amd64_pseudo_register_name): Likewise.
5699 (amd64_pseudo_register_read): Likewise.
5700 (amd64_pseudo_register_write): Likewise.
5701 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5702 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5703 set_gdbarch_pseudo_register_write and
5704 set_tdesc_pseudo_register_name. Don't call
5705 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5707 * i386-tdep.c (i386_num_mmx_regs): Removed.
5708 (i386_num_pseudo_regs): Likewise.
5709 (i386_byte_names): New.
5710 (i386_word_names): Likewise.
5711 (i386_byte_regnum_p): Likewise.
5712 (i386_word_regnum_p): Likewise.
5713 (i386_mmx_regnum_p): Updated.
5714 (i386_pseudo_register_name): Make it global. Handle byte and
5715 word pseudo-registers.
5716 (i386_pseudo_register_read): Likewise.
5717 (i386_pseudo_register_write): Likewise.
5718 (i386_pseudo_register_type): Handle byte, word and dword
5720 (i386_register_reggroup_p): Don't include pseudo
5721 registers, except for MXX, in any register groups. Don't
5722 include pseudo byte, word, dword registers in general_reggroup.
5723 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5724 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5725 pseudo-registers after word pseudo-registers. Call
5726 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5728 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5729 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5731 (i386_byte_regnum_p): New.
5732 (i386_word_regnum_p): Likewise.
5733 (i386_dword_regnum_p): Likewise.
5734 (i386_pseudo_register_name): Likewise.
5735 (i386_pseudo_register_read): Likewise.
5736 (i386_pseudo_register_write): Likewise.
5738 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5740 * target-descriptions.c (tdesc_type): Remove
5741 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5742 (tdesc_predefined_types): Likewise.
5743 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5744 if flag name is empty.
5745 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5747 * features/i386/32bit-core.xml: Define i386_eflags.
5748 * features/i386/64bit-core.xml: Likewise.
5750 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5751 * features/i386/64bit-sse.xml: Likewise.
5753 * features/i386/amd64-linux.c: Regenerated.
5754 * features/i386/amd64.c: Likewise.
5755 * features/i386/i386-linux.c: Likewise.
5756 * features/i386/i386.c: Likewise.
5758 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5760 * gdbtypes.c (append_composite_type_field_raw): New.
5761 (append_composite_type_field_aligned): Use the new function.
5762 * gdbtypes.h (append_composite_type_field_raw): Declare.
5763 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5764 (struct tdesc_type_flag): New type.
5765 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5766 kind. Add size to u.u. Add u.f for flags.
5767 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5768 (tdesc_free_type): Likewise.
5769 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5770 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5771 (tdesc_add_bitfield, tdesc_add_flag): New.
5772 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5773 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5774 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5775 current_type. Add current_type_size and current_type_is_flags.
5776 (tdesc_start_union): Clear the new fields.
5777 (tdesc_start_struct, tdesc_start_flags): New.
5778 (tdesc_start_field): Handle struct fields, including bitfields.
5779 (field_attributes): Make type optional. Add start and end.
5780 (union_children): Rename to struct_union_children.
5781 (union_attributes): Rename to struct_union_attributes. Add optional
5783 (flags_attributes): New.
5784 (feature_children): Add struct and flags.
5785 * features/gdb-target.dtd: Add flags and struct to features.
5786 Make field type optional. Add field start and end.
5788 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5790 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5791 (amd64_linux_read_description): Likewise.
5792 (_initialize_amd64_linux_nat): Set to_read_description to
5793 amd64_linux_read_description.
5795 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5796 (amd64_linux_register_name): Removed.
5797 (amd64_linux_register_type): Likewise.
5798 (amd64_linux_core_read_description): New.
5799 (amd64_linux_init_abi): Set target description to
5800 tdesc_amd64_linux if needed. Support orig_rax in target
5801 description. Don't call set_gdbarch_register_name nor
5802 set_gdbarch_register_type. Call
5803 set_gdbarch_core_read_description.
5804 (_initialize_amd64_linux_tdep): Call
5805 initialize_tdesc_amd64_linux.
5807 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5809 * amd64-tdep.c: Include "features/i386/amd64.c".
5810 (amd64_register_names): Removed.
5811 (amd64_register_name): Likewise.
5812 (amd64_register_type): Likewise.
5813 (amd64_init_abi): Set num_core_regs and register_names. Set
5814 target description to tdesc_amd64 if needed. Don't call
5815 set_gdbarch_register_name nor set_gdbarch_register_type.
5816 (_initialize_amd64_tdep): New.
5818 * i386-linux-nat.c (i386_linux_read_description): New.
5819 (_initialize_i386_linux_nat): Set to_read_description to
5820 i386_linux_read_description.
5822 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5823 (i386_linux_register_name): Removed.
5824 (i386_linux_core_read_description): New.
5825 (i386_linux_read_description): Likewise.
5826 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5827 Set target description to tdesc_i386_linux if needed. Support
5828 orig_eax. Set register_reggroup_p. Call
5829 set_gdbarch_core_read_description.
5830 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5832 * i386-linux-tdep.h (tdesc_i386_linux): New.
5834 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5837 * i386-tdep.c: Include "features/i386/i386.c".
5838 (i386_register_names): Make it const.
5839 (i386_mmx_names): Likewise.
5840 (i386_num_register_names): Removed.
5841 (i386_register_name): Likewise.
5842 (i386_eflags_type): Likewise.
5843 (i386_mxcsr_type): Likewise.
5844 (i386_sse_type): Likewise.
5845 (i386_register_type): Likewise.
5846 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5847 (i386_pseudo_register_name): New.
5848 (i386_pseudo_register_type): Likewise.
5849 (i386_mmx_type): Make it static.
5850 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5851 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5852 call set_gdbarch_register_name nor set_gdbarch_register_type.
5853 Set register_reggroup_p. Set target description to tdesc_i386
5854 if needed. Call set_tdesc_pseudo_register_type,
5855 set_tdesc_pseudo_register_name and tdesc_use_registers.
5856 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5857 initialize_tdesc_x86_64.
5859 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5860 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5861 register_names, tdesc and register_reggroup_p.
5862 (I386_NUM_FREGS): Removed.
5863 (i386_eflags_type): Likewise.
5864 (i386_mxcsr_type): Likewise.
5865 (i386_mmx_type): Likewise.
5866 (i386_sse_type): Likewise.
5867 (i386_register_name): Likewise.
5868 (i386_regnum): Add I386_MXCSR_REGNUM.
5869 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5871 * i387-tdep.h (I387_NUM_REGS): New.
5873 * regformats/i386/i386-linux.dat: Generated.
5874 * regformats/i386/i386.dat: Likewise.
5875 * regformats/i386/amd64-linux.dat: Likewise.
5876 * regformats/i386/amd64.dat: Likewise.
5878 * regformats/reg-i386-linux.dat: Removed.
5879 * regformats/reg-i386.dat: Likewise.
5880 * regformats/reg-x86-64-linux.dat: Likewise.
5881 * regformats/reg-x86-64.dat: Likewise.
5883 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5885 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5886 cygwin_conv_path API rather than the deprecated
5887 cygwin_conv_to_full_posix_path.
5889 (GetModuleFileNameExA): Undefine for Cygwin.
5890 (GetModuleFileNameExW): Define for Cygwin.
5891 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5892 Call GetModuleFileNameExW and convert path to POSIX using
5894 (windows_make_so): Always define p. Drop unused variable m.
5895 Don't use Win32 functions to check file existance, rather use
5896 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5897 Use canonicalize_file_name to get full path.
5898 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5899 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5900 use correct target buffer size in call to WideCharToMultiByte.
5901 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5902 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5903 (windows_create_inferior): Convert all paths and arguments to wchar_t
5904 and use CreateProcessW on Cygwin.
5905 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5906 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5907 (bad_GetModuleFileNameExW): Define for Cygwin.
5908 (_initialize_loadable): Load GetModuleFileNameExW into
5909 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5911 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5914 * python/py-frame.c (frapy_read_var): Add block argument and logic
5915 to cope with user provided blocks.
5917 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5919 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5922 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5924 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5925 (COMMON_OBS): ... to here since it's used unconditionally.
5926 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5929 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5931 * mips-linux-tdep.c: Update struct sigframe comments.
5932 (SIGFRAME_CODE_OFFSET): Delete macro.
5933 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5935 (mips_linux_n32n64_sigframe_init): Same.
5937 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5939 * remote-mips.c (mips_load): Don't use pseudo-register when
5940 invalidating regcache.
5942 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5944 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5946 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5948 * NEWS: Add "New targets" section, and mention ARM Symbian
5951 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5953 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5954 add ADDR_SIZE member.
5955 (allocate_piece_closure): Update.
5956 (copy_pieced_value_closure): Likewise.
5957 (dwarf2_evaluate_loc_desc): Likewise.
5958 (read_pieced_value): Use DWARF address size instead of
5959 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5961 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5962 Tom Tromey <tromey@redhat.com>
5964 * python/py-type.c (typy_lookup_typename): Add in block argument.
5965 If provided restrict lookup to specified blocks.
5966 (gdbpy_lookup_type): Likewise.
5967 (typy_lookup_type): Likewise.
5969 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5974 * arm-symbian-tdep.c: New.
5975 * configure.tgt (arm*-*-symbianelf*): New target.
5976 (*-*-symbianelf*): New OS.
5977 * osabi.c (gdb_osabi_names): Add Symbian.
5978 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5979 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5980 (ALLDEPFILES): Add arm-symbian-tdep.c.
5982 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5984 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5986 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5988 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5990 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5991 Tom Tromey <tromey@redhat.com>
5992 Thiago Jung Bauermann <bauerman@br.ibm.com>
5994 * python/python.c (_initialize_python): Call
5995 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5996 gdbpy_initialize_blocks.
5997 * python/python-internal.h: Declare struct symbol, block and
5998 symtab_and_line. Declare block_object_type and
6000 (gdbpy_lookup_symbol gdbpy_block_for_pc)
6001 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
6002 (symbol_to_symbol_object, block_to_block_object)
6003 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
6004 (gdbpy_initialize_blocks ): Declare.
6005 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
6006 (frapy_select): Add methods.
6007 (frapy_read_var): Add symbol branch.
6008 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
6010 (SUBDIR_PYTHON_SRCS): Likewise.
6011 (py-symbol.o): New rule.
6012 (py-symtab.o): Likewise.
6013 (py-block.o): Likewise.
6014 * python/py-symbol.c: New file.
6015 * python/py-symtab.c: Likewise.
6016 * python/py-block.c: Likewise.
6018 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6022 * inferior.h (prepare_for_detach): Declare.
6023 (struct inferior) <detaching>: New field.
6024 * infrun.c (prepare_for_detach): New.
6025 (handle_inferior_event) <random signal>: Don't stop if detaching.
6026 * target.c (target_detach): Call prepare_for_detach.
6028 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6030 Per-process displaced stepping queue.
6032 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
6033 (displaced_step_gdbarch, displaced_step_closure,
6034 (displaced_step_original, displaced_step_copy): Move globals to
6036 (struct displaced_step_inferior_state): ... new structure.
6037 (displaced_step_inferior_states): New global.
6038 (get_displaced_stepping_state, add_displaced_stepping_state)
6039 (remove_displaced_stepping_state, infrun_inferior_exit): New
6041 (displaced_step_clear): Add displaced_step_inferior_state
6042 parameter, and adjust to handle it.
6043 (displaced_step_clear_cleanup): Parameter is now a
6044 displaced_step_inferior_state. Adjust.
6045 (displaced_step_prepare): Adjust.
6046 (displaced_step_fixup, displaced_step_fixup)
6047 (infrun_thread_ptid_changed, resume): Adjust.
6048 (init_wait_for_inferior): Don't call displaced_step_clear.
6049 (infrun_thread_stop_requested): Rewrite.
6050 (_initialize_infrun): Install infrun_inferior_exit as
6051 inferior_exit observer.
6053 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6055 * inferior.h (ptid_match): Declare.
6056 * infrun.c (ptid_match): New.
6057 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
6058 (handle_notification): Add debug output.
6059 * linux-nat.c (ptid_match): Delete.
6061 2010-02-24 David S. Miller <davem@davemloft.net>
6063 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
6064 * syscalls/sparc-linux.xml: New.
6065 * syscalls/sparc64-linux.xml: New.
6066 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
6067 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
6068 (sparc32_linux_get_syscall_number): New function.
6069 (sparc32_linux_init_abi): Set syscall XML file name and hook up
6070 syscall number fetcher.
6071 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
6072 (sparc64_linux_get_syscall_number): New function.
6073 (sparc64_linux_init_abi): Set syscall XML file name and hook up
6074 syscall number fetcher.
6076 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6080 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
6081 * inferior.c (add_inferior_silent): Notify inferior_added
6083 (delete_inferior_1): Notify inferior_removed observer.
6084 (exit_inferior_1): Pass inferior, not pid, to observer.
6085 (inferior_appeared): Likewise.
6086 (add_inferior_with_spaces): New.
6087 (add_inferior_command): Use the above.
6088 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
6091 * inflow.c (inflow_inferior_exit): Likewise.
6092 * jit.c (jit_inferior_exit_hook): Likewise.
6094 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
6096 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6097 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
6098 (report_initial_inferior): New.
6099 (mi_inferior_removed): Register the above. Make sure
6100 inferior_added observer is called on the first inferior.
6101 (mi_new_thread, mi_thread_exit): Thread group is now identified by
6102 inferior number, not pid.
6103 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
6105 * mi/mi-main.c (current_context): New.
6106 (proceed_thread_callback): Use typed closure.
6107 Proceed everything if pid is 0. Most implementation split into
6108 (proceed_thread): ... this.
6109 (run_one_inferior): New.
6110 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
6111 Adjust for multiexec behaviour.
6112 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
6113 (mi_cmd_execute): Handle the 'thread-group' option here.
6114 Do some extra checks.
6115 * mi-parse.c (mi_parse): Handle the --all and --thread-group
6117 * mi-parse.h (struct mi_parse): New fields all and thread_group.
6119 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
6121 Make -exec-run a proper MI commands.
6123 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
6124 * mi/mi-cmds.c (mi_cmds): Adjust.
6125 * mi/mi-main.c (mi_cmd_exec_run): New.
6127 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6128 Stan Shebs <stan@codesourcery.com>
6130 * tracepoint.h (set_traceframe_number)
6131 (cleanup_restore_current_traceframe): Declare.
6132 * tracepoint.c (set_traceframe_number): New.
6133 (struct current_traceframe_cleanup): New.
6134 (do_restore_current_traceframe_cleanup)
6135 (restore_current_traceframe_cleanup_dtor)
6136 (make_cleanup_restore_current_traceframe): New.
6137 * infrun.c: Include tracepoint.h.
6138 (fetch_inferior_event): Switch out and in of tfind mode.
6140 2010-02-24 Pedro Alves <pedro@codesourcery.com>
6142 * breakpoint.c (breakpoint_init_inferior): Also delete
6143 bp_shlib_event breakpoints.
6144 * solib-frv.c (enable_break): Remove call to
6145 remove_solib_event_breakpoints.
6146 * solib-svr4.c (enable_break): Ditto.
6147 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
6148 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
6149 * solib-som.c (som_solib_create_inferior_hook): Ditto.
6150 * solib-spu.c (spu_enable_break): Ditto.
6152 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6154 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
6156 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
6158 * varobj.c (varobj_update): Avoid non-constants in initializers.
6160 2010-02-23 Tom Tromey <tromey@redhat.com>
6162 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
6163 handle big-endian values.
6164 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
6166 2010-02-22 Pedro Alves <pedro@codesourcery.com>
6171 * breakpoint.c (insert_bp_location): If inserting the read
6172 watchpoint failed, fallback to an access watchpoint.
6173 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
6174 if the value changed, if not watching the same memory for writes.
6175 (watchpoint_locations_match): Add comment.
6176 (update_global_location_list): Copy the location's watchpoint type.
6177 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
6178 handle read watchpoints here.
6179 (i386_insert_watchpoint): Read watchpoints aren't supported.
6180 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
6182 * target.h (target_insert_watchpoint): Update description.
6184 2010-02-19 Tom Tromey <tromey@redhat.com>
6186 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
6187 * m2-typeprint.c (m2_print_type): Update.
6188 * gdbtypes.c (recursive_dump_type): Update.
6189 (copy_type_recursive): Update.
6190 * c-typeprint.c (c_type_print_varspec_prefix): Update.
6191 (c_type_print_base): Update.
6192 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
6194 (struct cplus_struct_type) <ntemplate_args>: Remove.
6195 <struct template_arg>: Remove.
6196 <is_dynamic>: Move earlier.
6197 (TYPE_TEMPLATE_ARGS): Remove.
6198 (TYPE_NTEMPLATE_ARGS): Remove.
6199 (TYPE_TEMPLATE_ARG): Remove.
6201 2010-02-19 Tom Tromey <tromey@redhat.com>
6203 PR c++/8693, PR c++/9496:
6204 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
6205 * c-exp.y (lex_one_token): Rename from yylex. Don't call
6206 write_dollar_variable. Don't try to classify NAME tokens.
6207 (token_and_value): New type.
6208 (token_fifo, popping, name_obstack): New globals.
6209 (classify_name): New function.
6210 (classify_inner_name): Likewise.
6212 (VARIABLE): Now has type sval.
6213 (exp : VARIABLE): Call write_dollar_variable.
6214 (qualified_name): Use TYPENAME, not typebase. Add production for
6215 multiple "::" instances.
6216 (variable): Use name_not_typename.
6217 (qualified_type): Remove.
6220 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6222 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
6223 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
6224 found by bfd_get_section_by_name.
6225 * symfile.h (struct section_addr_info) <sectindex>: New comment.
6227 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6229 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
6230 7.0 section" into "Changes in 7.1".
6232 2010-02-19 Joel Brobecker <brobecker@adacore.com>
6234 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
6235 * version.in: Bump version to 7.1.50.20100219-cvs.
6237 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
6239 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
6240 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
6242 2010-02-17 Tom Tromey <tromey@redhat.com>
6244 * NEWS: Add Python API Improvements section.
6246 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
6248 * NEWS: Correct typo.
6250 2010-02-17 Tom Tromey <tromey@redhat.com>
6252 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
6254 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6256 * symfile.c (build_section_addr_info_from_objfile): Include sections
6257 only if they are SEC_ALLOC or SEC_LOAD.
6259 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
6262 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
6263 of ULONGEST for address size.
6265 2010-02-17 Tom Tromey <tromey@redhat.com>
6267 * NEWS: Add C++ improvements section.
6269 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6271 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
6272 PyThreadState_Swap): Avoid "statement with no effect" warning.
6274 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6276 * solib-svr4.c (enable_break <target_auxv_search>): New variable
6277 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
6279 2010-02-17 Tristan Gingold <gingold@adacore.com>
6280 Petr Hluzin <petr.hluzin@gmail.com>
6282 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
6283 gdb_assert. Fix info->size for SIG prologue.
6285 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6287 * infcmd.c (show_inferior_tty_command): Check for NULL.
6288 Correct output message.
6290 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6292 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
6293 FUNCTION contains parentheses. Improve removal of a trailing
6296 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6298 * gcore.c (do_bfd_delete_cleanup): New function.
6299 (gcore_command): Use it. Discard the cleanup after success.
6300 (gcore_copy_callback): Delete dead code.
6302 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
6304 * symfile.c (addr_info_make_relative): Always use
6305 find_lowest_section.
6307 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
6309 * NEWS: Added entry for namespace fixes.
6311 2010-02-15 Tom Tromey <tromey@redhat.com>
6313 * dwarf2read.c (guess_structure_name): Allocate name on the
6316 2010-02-15 Tom Tromey <tromey@redhat.com>
6318 * c-typeprint.c (c_type_print_base): Reverse order of test.
6320 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6322 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
6323 initialize it from ELF BFD. Extend the prelink condition by it.
6325 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6327 * defs.h (parse_pid_to_attach): New.
6328 * utils.c (parse_pid_to_attach): New.
6329 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
6330 * gnu-nat.c (gnu_attach): Likewise.
6331 * nto-procfs.c (procfs_attach): Likewise.
6332 * procfs.c (procfs_attach): Likewise.
6333 * windows-nat.c (windows_attach): Likewise.
6334 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
6335 * inf-ttrace.c (inf_ttrace_attach): Likewise.
6336 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
6339 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
6341 * MAINTAINERS: Add myself for write after approval privileges.
6343 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6345 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6348 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6350 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6351 only if INFO_VERBOSE.
6353 2010-02-12 Tomas Holmberg <th@virtutech.com>
6355 * mi/mi-main.c: Added the --reverse flag to the following MI
6356 commands: exec-continue, exec-finish, exec-next, exec-step,
6357 exec-next-instruction, exec-step-instruction. This is to
6358 support reverse execution over the MI interface to gdb.
6360 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6362 * tracepoint.c (_initialize_tracepoint): Specify that the address
6363 range of `tfind outsize' is exclusive, and that the address range
6364 of `tfind range' is inclusive, in the commands' help strings.
6366 2010-02-12 Joel Brobecker <brobecker@adacore.com>
6368 Spurious "dll not found" error messages on x64-windows.
6369 * windows-nat.c: Add include of complaints.h.
6370 (handle_unload_dll): Change dll-not-found error into a complaint.
6372 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6374 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6375 bp_tracepoint and bp_fast_tracepoint, not
6376 bp_loc_software_breakpoint.
6377 (update_global_location_list): Tracepoints are never duplicates of
6380 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6382 * breakpoint.c (break_command_really): Change return type to int.
6383 Return false if no breakpoint was created, true otherwise.
6384 (trace_command): Don't set the tracepoint count if no tracepoint
6386 (ftrace_command): Ditto.
6387 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6388 created in the breakpoints table.
6390 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6391 Ulrich Weigand <uweigand@de.ibm.com>
6393 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6395 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6397 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6398 the offset value isn't of integral type.
6400 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6402 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6405 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6407 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6408 non-subscriptable types.
6409 * valarith.c (binop_types_user_defined_p): New, abstracted out
6411 (binop_user_defined_p): ... this.
6412 * value.h (binop_types_user_defined_p): Declare.
6414 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6416 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6417 Merge uploaded TSVs before merging uploaded tracepoints.
6419 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6421 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6423 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
6425 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6426 whitespace character after a dot in comment.
6427 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6429 (list_args_or_locals): For the 'all' (that is
6430 -stack-list-variables) case, always output list of tuples.
6431 Output 'arg' field if variable is argument.
6433 2010-02-10 Tom Tromey <tromey@redhat.com>
6435 * parser-defs.h (parser_debug): Declare.
6436 * parse.c (_initialize_parse): Install "debug parser" set/show
6438 (parser_debug): New global.
6439 (show_parserdebug): New function.
6440 * c-exp.y (c_parse): Set yydebug.
6442 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6444 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6445 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6446 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6448 (tdesc_find_type): New.
6449 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6450 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6452 * target-descriptions.h (tdesc_find_type): New.
6454 2010-02-10 Michael Snyder <msnyder@vmware.com>
6456 * gdb-gdb.py: Comment fix.
6458 2010-02-09 Tristan Gingold <gingold@adacore.com>
6460 * machoread.c (macho_symfile_relocate): New function.
6461 (macho_sym_fns): Use macho_symfile_relocate instead of
6462 default_symfile_relocate.
6463 (macho_oso_data): New type.
6464 (current_oso): New variable.
6465 (macho_add_oso_symfile): Do not compute section_addr_info, but
6466 instead set vma of sections.
6467 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6468 Set and clear current_oso.
6470 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6472 Wrong type description for tagged type parameter.
6473 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6474 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6475 reference to a tagged type.
6477 2010-02-09 Tristan Gingold <gingold@adacore.com>
6479 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6480 brothers of the parent.
6482 2010-02-08 Tom Tromey <tromey@redhat.com>
6486 * valops.c (search_struct_field): Make 'name' const.
6487 (search_struct_method): Likewise.
6488 (find_method_list): Make 'method' const.
6489 (value_struct_elt): Make 'name' and 'err' const.
6490 (value_find_oload_method_list): Make 'method' const.
6491 (find_overload_match): Make 'name' const.
6492 * eval.c (evaluate_subexp_standard): New locals function,
6494 <OP_FUNCALL>: Handle OP_SCOPE specially.
6496 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6498 * infrun.c (handle_inferior_event): Do not look up regcache
6499 for exited processes.
6501 2010-02-08 Chris Moller <moller@mollerware.com>
6504 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6505 warn if found, and assume length = 1.
6507 2010-02-08 Chris Moller <cmoller@redhat.com>
6510 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6511 (cp_print_static_field) Fix use of obstacks.
6513 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6515 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6516 resumed LWPs as resumed.
6517 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6518 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6519 of throwing an internal error. If an LWP of a process we're not
6520 waiting for reports a signal, don't force collecting a SIGSTOP,
6521 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6522 go through all LWPs cancelling breakpoints in non-stop mode.
6523 (resume_stopped_resumed_lwps): New.
6524 (linux_nat_wait): Use it.
6526 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6528 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6529 i386/amd64 and i386/amd64-linux.
6530 (i386/i386-expedite): New.
6531 (i386/i386-linux-expedite): Likewise.
6532 (i386/amd64-expedite):Likewise.
6533 (i386/amd64-linux-expedite): Likewise.
6534 ($(outdir)/i386/i386-linux.dat): Likewise.
6535 ($(outdir)/i386/amd64.dat): Likewise.
6536 ($(outdir)/i386/amd64-linux.dat): Likewise.
6538 * features/i386/32bit-core.xml: New.
6539 * features/i386/32bit-linux.xml: Likewise.
6540 * features/i386/32bit-sse.xml: Likewise.
6541 * features/i386/64bit-core.xml: Likewise.
6542 * features/i386/64bit-linux.xml: Likewise.
6543 * features/i386/64bit-sse.xml: Likewise.
6544 * features/i386/i386-linux.xml: Likewise.
6545 * features/i386/i386.xml: Likewise.
6546 * features/i386/amd64-linux.xml: Likewise.
6547 * features/i386/amd64.xml: Likewise.
6548 * features/i386/i386-linux.c: Likewise.
6549 * features/i386/i386.c: Likewise.
6550 * features/i386/amd64-linux.c: Likewise.
6551 * features/i386/amd64.c: Likewise.
6553 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6556 * cp-support.h: Added char* alias element to using_direct data
6558 (cp_add_using): Added char* alias argument.
6559 (cp_add_using_directive): Ditto.
6560 * cp-namespace.c: Updated with the above changes.
6561 (cp_lookup_symbol_imports): Check for aliases.
6562 * dwarf2read.c (read_import_statement): Figure out local alias
6563 for the import and pass it on to cp_add_using.
6564 (read_namespace): Pass alias argument to cp_add_using.
6566 2010-02-05 Hui Zhu <teawater@gmail.com>
6568 * defs.h (gdb_bfd_errmsg): New extern.
6569 * exec.c (exec_file_attach): Change bfd_errmsg to
6571 * utils.c (AMBIGUOUS_MESS1): New macro.
6572 (AMBIGUOUS_MESS2): New macro.
6573 (gdb_bfd_errmsg): New function.
6575 2010-02-04 Doug Evans <dje@google.com>
6577 * solib-svr4.c (enable_break): Add comment.
6579 2010-02-04 Anthony Green <green@moxielogic.com>
6581 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6584 2010-02-04 Tom Tromey <tromey@redhat.com>
6586 * valops.c (search_struct_field): Account for
6587 value_embedded_offset. Fix check for virtual base past the end of
6588 the object. Use value_copy when making a slice of the value.
6590 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6593 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6594 only if gdb_stdout is a tty.
6596 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6598 * target-descriptions.c: Include "osabi.h".
6599 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6602 2010-02-04 Tristan Gingold <gingold@adacore.com>
6604 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6605 (macho_symtab_read): Adjust calls to macho_add_oso.
6606 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6607 (macho_symfile_read): Adjust call to macho_oso_symfile.
6608 (macho_new_init): Move this function after declarations.
6609 (macho_symfile_init): Ditto.
6610 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6611 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6613 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6615 Include MI command in remotelog.
6617 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6619 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6621 * remote.c (remote_state): Remove gdbarch.
6622 (init_remote_state): Don't set gdbarch.
6623 (remote_query_supported): Pass target_gdbarch instead of
6624 rs->gdbarch to gdbarch_qsupported.
6626 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6628 * gdbarch.sh: Add qsupported.
6630 * gdbarch.c: Regenerated.
6631 * gdbarch.h: Likewise.
6633 * remote.c (remote_state): Add gdbarch.
6634 (init_remote_state): Set gdbarch.
6635 (remote_query_supported): Support gdbarch_qsupported.
6637 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6639 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6640 __FreeBSD_kernel_version.
6642 2010-02-03 Tristan Gingold <gingold@adacore.com>
6644 * symfile.h (struct sym_fns): Add sym_relocate field.
6645 (default_symfile_relocate): New prototype.
6646 (symfile_relocate_debug_section): First argument is now an objfile.
6647 * symfile.c (default_symfile_relocate): Rename from
6648 symfile_relocate_debug_section, first argument is now an objfile.
6649 (symfile_relocate_debug_section): New function.
6650 * coffread.c (coff_sym_fns): Set sym_relocate field.
6651 * somread.c (som_sym_fns): Ditto.
6652 * mipsread.c (ecoff_sym_fns): Ditto.
6653 * machoread.c (macho_sym_fns): Ditto.
6654 * elfread.c (elf_sym_fns): Ditto.
6655 * dwarf2read.c (dwarf2_read_section): Ditto.
6656 * xcoffread.c (xcoff_sym_fns): Ditto.
6657 * dbxread.c (aout_sym_fns): Ditto.
6658 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6659 (elfstab_build_psymtabs): Ditto.
6661 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6663 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6665 2010-02-02 Tom Tromey <tromey@redhat.com>
6667 * valops.c (value_cast_structs): Try downcasting using the RTTI
6670 2010-02-02 Tom Tromey <tromey@redhat.com>
6672 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6673 (gnuv2_baseclass_offset): Now static.
6674 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6675 * gnu-v2-abi.h: Remove.
6677 2010-02-02 Tom Tromey <tromey@redhat.com>
6679 * m2-typeprint.c (m2_record_fields): Don't use
6681 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6682 (struct main_type) <flag_declared_class>: New field.
6683 (struct cplus_struct_type) <declared_type>: Remove.
6684 <ntemplate_args>: Move earlier.
6685 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6686 (DECLARED_TYPE_TEMPLATE): Remove.
6687 (TYPE_DECLARED_TYPE): Remove.
6688 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6689 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6690 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6693 2010-02-02 Tom Tromey <tromey@redhat.com>
6695 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6696 * valops.c (search_struct_field): Compute nbases after calling
6698 (check_field): Call CHECK_TYPEDEF.
6699 * cp-valprint.c (cp_print_value): Pass correct address to
6700 baseclass_offset. Fix check for virtual base past the end of the
6701 object. Don't offset address passed to cp_print_value_fields or
6702 apply_val_pretty_printer.
6703 (cp_print_value_fields): Fix call to val_print.
6704 (cp_print_value_fields_rtti): New function.
6705 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6706 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6708 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6710 * language.h (struct language_defn) <la_val_print>: Document.
6711 * c-lang.h (cp_print_value_fields_rtti): Declare.
6713 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6716 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6717 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6718 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6720 2010-02-01 Michael Matz <matz@suse.de>
6721 Daniel Jacobowitz <dan@codesourcery.com>
6723 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6724 functions use a frame pointer.
6726 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6728 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6729 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6730 * config/djgpp/fnchange.lst: Add translations for
6731 symbol-without-target_section.exp and symbol-without-target_section.c.
6733 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6735 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6736 (remote_breakpoint_for_pc): Correct invalid_p check.
6737 * gdbarch.c: Regenerated.
6739 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6741 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6743 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6744 (extend_buffer_earlier): New function.
6745 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6746 (arm_adjust_breakpoint_address): New function.
6747 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6749 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6751 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6752 (arm_linux_thumb2_le_breakpoint): New constants.
6753 (arm_linux_init_abi): Set thumb2_breakpoint and
6754 thumb2_breakpoint_size.
6755 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6756 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6757 Implement support for single stepping through IT blocks if
6758 a 32-bit Thumb breakpoint instruction is available.
6759 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6760 is available, use it when needed.
6761 (arm_remote_breakpoint_from_pc): New function.
6762 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6763 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6764 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6766 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6768 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6769 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6770 * gdbarch.c, gdbarch.h: Regenerated.
6771 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6772 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6773 gdbarch_remote_breakpoint_from_pc.
6775 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6777 * infrun.c (prepare_to_proceed): Handle other signals which might
6779 (handle_inferior_event): Move the check for unusual breakpoint
6782 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6784 amd64 - function returning record with field straddling 2 registers.
6785 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6786 a record of length <= 16 in which a field straddles the two
6789 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6791 Implement return values on amd64-windows.
6792 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6793 (amd64_windows_return_value): New function.
6794 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6795 amd64_windows_return_value.
6797 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6799 amd64-windows: 32 bytes allocated on stack by caller for integer
6800 parameter registers.
6801 * i386-tdep.h (struct gdbarch_tdep): Add new field
6802 integer_param_regs_saved_in_caller_frame.
6803 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6804 tdep->integer_param_regs_saved_in_caller_frame to 1.
6805 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6806 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6808 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6810 amd64-windows: memory args passed by pointer during function calls.
6811 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6812 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6813 where tdep->memory_args_by_pointer is non-zero.
6814 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6815 tdep->memory_args_by_pointer to 1.
6817 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6819 amd64-windows: Integer parameters in function calls.
6820 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6822 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6823 call_dummy_integer_regs, and classify.
6824 * amd64-tdep.h (amd64_classify): Add declaration.
6825 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6826 (amd64_reg_class): Delete, moved to i386-tdep.h.
6827 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6828 Replace call to amd64_classify by call to tdep->classify.
6829 (amd64_push_arguments): Get the list of registers to use for
6830 passing integer parameters from the gdbarch tdep structure,
6831 rather than using a hardcoded one. Replace calls to amd64_classify
6832 by calls to tdep->classify.
6833 (amd64_push_dummy_call): Get the register number used for
6834 the "hidden" argument from tdep->call_dummy_integer_regs.
6835 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6836 and tdep->call_dummy_integer_regs. Set tdep->classify.
6837 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6838 (amd64_windows_dummy_call_integer_regs): New static global.
6839 (amd64_windows_classify): New function.
6840 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6841 tdep->call_dummy_integer_regs and tdep->classify.
6843 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6845 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6846 for the new regcache. All callers updated.
6847 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6848 (get_thread_arch_regcache): Do not set aspace here.
6849 * regcache.h (regcache_xmalloc): Update declaration.
6851 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6852 regcache_xmalloc updated.
6854 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6856 Another -Wunused-function error in procfs.c (sparc-solaris)
6857 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6858 Only define if SYS_syssgi is defined.
6859 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6860 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6861 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6864 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6866 * windows-nat.c (windows_initialization_done): New variable.
6867 (get_windows_debug_event): Issue error when process dies before
6868 completely initializing.
6869 (do_initial_windows_stuff): Set flag to indicate when we are done with
6870 the initial steps of attaching to the child.
6872 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6874 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6876 2010-01-27 Doug Evans <dje@google.com>
6878 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6880 * breakpoint.c (bpstat_stop_status): Delete useless code.
6882 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6884 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6885 objfile via SYMBOL_SYMTAB.
6887 2010-01-26 Tom Tromey <tromey@redhat.com>
6890 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6891 coerce_array on result.
6893 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6895 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6896 search_parent argument.
6897 (cp_add_using): Initialize 'searched' field.
6898 (reset_directive_searched): New function.
6899 * cp-support.h: Add 'searched' field to using_direct struct.
6900 (cp_lookup_symbol_imports): Ditto.
6901 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6902 Perform recursive search.
6903 Implement non parent search.
6904 * valops.c (value_maybe_namespace_elt): Updated.
6906 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6909 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6910 scopes which contain using directives even if they contain no
6912 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6913 la_lookup_symbol_nonlocal.
6914 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6915 cp_lookup_symbol_namespace.
6916 (cp_lookup_symbol_namespace): Perform an import lookup at every
6918 (cp_lookup_symbol_imports): New function.
6919 (cp_lookup_symbol_in_namespace): New function.
6921 2010-01-25 Tom Tromey <tromey@redhat.com>
6924 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6927 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6929 * configure.ac: Only use host_os part when disabling TUI on osf.
6930 Use test to check variables, prefix strings with x.
6931 * configure: Regenerate.
6933 * solib-osf.c (osf_current_sos): Initialize tail.
6935 2010-01-25 gingold <gingold@adacore.com>
6937 * windows-nat.c (windows_continue): Use %x to print thread id.
6938 (get_windows_debug_event): Ditto.
6940 2010-01-22 Tom Tromey <tromey@redhat.com>
6943 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6944 type and arguments. Use smash_to_methodptr_type.
6945 (read_structure_type): Call quirk_gcc_member_function_pointer
6947 * gdbtypes.h (smash_to_methodptr_type): Declare.
6948 * gdbtypes.c (smash_to_methodptr_type): New function.
6949 (lookup_methodptr_type): Use it.
6951 2010-01-21 Tom Tromey <tromey@redhat.com>
6954 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6955 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6956 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6957 (glibc_skip_solib_resolver): Use
6958 lookup_minimal_symbol_and_objfile.
6960 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6962 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6965 2010-01-20 Tom Tromey <tromey@redhat.com>
6968 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6969 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6970 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6971 dwarf_stack_values, not CORE_ADDRs.
6972 (execute_stack_op): Change DW_OP_div and comparison operators to
6973 use signed operands.
6975 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6977 Per-inferior args and tty and environment.
6979 * infcmd.c (inferior_args): Rename to ...
6980 (inferior_args_scratch): ... this.
6981 (inferior_io_terminal): Rename to ...
6982 (inferior_io_terminal_scratch): ... this.
6983 (inferior_argc, inferior_argv): Remove.
6984 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6985 inside current_inferior().
6986 (set_inferior_tty_command, show_inferior_tty_command): New.
6987 (get_inferior_args, set_inferior_args): Store inside
6989 (notice_args_set): Likewise and rename to...
6990 (set_args_command): ... this.
6991 (set_inferior_args_vector): Likewise.
6992 (notice_args_read): Rename to...
6993 (show_args_command): ...new.
6994 (tty_command): Remove.
6995 (run_command_1): Don't free old args, as they are freed by
6996 set_inferior_arg now.
6997 (run_no_args_command): Likewise.
6998 (inferior_environ): Remove.
6999 (run_command_1): Use environment of the current inferior.
7000 (environment_info, set_environment_command)
7001 (unset_environment_command, path_info, path_command): Likewise.
7002 (_initialize_infcmd): Adjust for function and variable renames.
7003 Do not init inferior_environ.
7004 * inferior.h (set_inferior_arg): Adjust prototype.
7005 (struct inferior): New fields args, argc, argv, terminal, environment.
7006 (inferior_environ): Remove declaration.
7007 * inferior.c (free_inferior): Free new fields.
7008 (add_inferior_silent): Initialize 'environment' field.
7009 * main.c (captured_main): Set arguments only after the initial
7010 inferior has been created. Set set_inferior_io_terminal,
7012 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
7014 (_initialize_mi_cmd_env): Adjust for disappearance of global
7016 * solib.c (solib_find): Use environment of the current inferior.
7018 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7020 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
7022 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
7024 2010-01-20 Joel Brobecker <brobecker@adacore.com>
7026 Get rid of ada-lang.c:function_name_from_pc.
7027 * ada-lang.c: Add "stack.h" #include.
7028 (function_name_from_pc): Delete.
7029 (is_known_support_routine): Replace call to function_name_from_pc
7030 by call to find_frame_funname.
7031 (ada_unhandled_exception_name_addr_from_raise): Likewise.
7033 2010-01-19 Tom Tromey <tromey@redhat.com>
7036 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
7039 2010-01-19 Tom Tromey <tromey@redhat.com>
7041 * top.c (stop_sig, float_handler, do_nothing): Remove.
7043 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7045 * breakpoint.c (watchpoint_check): Check the call
7046 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
7048 * config/djgpp/fnchange.lst: Add translations for
7049 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
7050 watchpoint-cond-gone-stripped.c.
7052 2010-01-19 Tom Tromey <tromey@redhat.com>
7055 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
7056 into parent scope, and enumerator into grandparent scope.
7058 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7060 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
7062 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7064 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
7065 i[34567]86-*-solaris2.1[0-9]*.
7066 * configure.tgt: Likewise.
7068 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7070 * NEWS: Document the source command enhancement allowing it
7071 to load Python scripts. Document the "set/show script-extension"
7074 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7076 Add -Wunused-function to compile flags.
7077 * configure.ac: Add -Wunused-function to build_warnings.
7078 * configure: Regenerate.
7080 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7082 "delete" ada-lex.c:input function, not used.
7083 * ada-lex.l: #define YY_NO_INPUT.
7085 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7087 Delete free_named_symtabs and associated cleanup.
7088 * symfile.h (free_named_symtabs): Delete declaration.
7089 * symfile.c: Remove some commented out code (clear_symtab_users_once).
7090 (cashier_psymtab): Comment function out.
7092 (free_named_symtabs): Delete.
7093 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
7094 * dbxread.c (end_psymtab): Likewise.
7095 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
7096 * exec.c (exec_close_1): Ditto.
7097 * xcoffread.c (xcoff_end_psymtab): Likewise.
7099 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7101 * stack.c (print_block_frame_labels): Comment function out.
7103 2010-01-19 Joel Brobecker <brobecker@adacore.com>
7105 Delete unused or undefined functions.
7106 * breakpoint.c (ep_parse_optional_filename): Delete.
7107 * dcache.c (dcache_write_line): Remove declaration.
7108 * infrun.c (build_infrun): Remove declaration.
7109 * tracepoint.c (tracepoint_save_command): Remove declaration.
7110 * linux-nat.c (init_lwp_list): Delete. No longer used.
7111 * event-loop.c (check_async_signal_handlers): Delete declaration.
7112 * infrun.c (init_execution_control_state): Delete.
7113 (proceed): Update comment to avoid mentioning
7114 init_execution_control_state.
7115 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
7116 * ada-lang.c (ada_to_static_fixed_value): Delete.
7117 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
7118 * cp-namespace.c (cp_copy_usings): Delete.
7119 * xml-syscall.c (xml_number_of_syscalls): Delete.
7120 * progspace.c (find_program_space_by_num): Delete.
7121 * inflow.c (handle_sigio): Delete declaration.
7122 * hppa-tdep.c (hppa_alignof): Delete.
7123 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
7124 (mipsnbsd_core_osabi_sniffer): Delete.
7126 2010-01-18 Tom Tromey <tromey@redhat.com>
7129 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
7130 (CONST_CAST): New tokens.
7131 (exp): Add new productions.
7132 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
7134 (is_cast_operator): New function.
7135 (yylex): Handle cast operators specially.
7136 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
7137 UNOP_REINTERPRET_CAST>: New cases.
7138 * expprint.c (print_subexp_standard): Likewise.
7139 (op_name_standard): Likewise.
7140 (dump_subexp_body_standard): Likewise.
7141 * parse.c (operator_length_standard): Likewise.
7142 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
7143 UNOP_REINTERPRET_CAST.
7144 * gdbtypes.c (class_types_same_p): New function.
7145 (is_ancestor): Use it.
7146 (is_public_ancestor): New function.
7147 (is_unique_ancestor_worker): Likewise.
7148 (is_unique_ancestor): Likewise.
7149 * gdbtypes.h (class_types_same_p, is_public_ancestor)
7150 (is_unique_ancestor): Declare.
7151 * valops.c (value_reinterpret_cast): New function.
7152 (dynamic_cast_check_1): Likewise.
7153 (dynamic_cast_check_2): Likewise.
7154 (value_dynamic_cast): Likewise.
7155 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
7157 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7159 Fix build failure when building without Python support.
7160 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
7163 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7165 Use XVS field type instead of doing a parallel lookup.
7166 * ada-lang.c (ada_get_base_type): Follow the XVS field type
7167 if it is a reference type instead of doing a type lookup using
7170 2010-01-18 Joel Brobecker <brobecker@adacore.com>
7172 Trust PAD types instead of using PAD___XVS.
7173 * ada-lang.c (trust_pad_over_xvs): New static variable.
7174 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
7175 parallel XVS type, follow the XVS type instead of the PAD type.
7176 (unwrap_value): Make sure that there is no parallel XVE type
7177 before returning the value as is.
7178 (set_ada_list, show_ada_list): New static variables.
7179 (set_ada_command, show_ada_command): New functions.
7180 (_initialize_ada_language): Add new "set/show ada" prefix commands.
7181 Add new "set/show ada trust-PAD-over-XVS" setting.
7183 2010-01-18 Tom Tromey <tromey@redhat.com>
7184 Thiago Jung Bauermann <bauerman@br.ibm.com>
7186 Allow "source" to load python scripts.
7187 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
7188 * python/python.c (source_python_script): New function.
7189 * python/python.h (source_python_script): Add declaration.
7190 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
7191 (script_ext_off, script_ext_soft, script_ext_strict)
7192 (script_ext_enums, script_ext_mode): New static constants.
7193 (show_script_ext_mode, find_and_open_script): New functions.
7194 (source_script): Enhance to handle Python scripts.
7195 (init_cli_cmds): Add set/show script-extension commands.
7197 2010-01-16 Stan Shebs <stan@codesourcery.com>
7199 * tracepoint.h (struct trace_status): Use unsigned long long
7201 * tracepoint.c (trace_status_command): Fix printf directive.
7202 (trace_save_command): Check fwrite returns, fix printf directive.
7203 (trace_filename): New global.
7204 (tfile_open): Set it, check read returns.
7205 (tfile_close): Free trace_filename.
7206 (tfile_get_traceframe_address): Check read returns.
7207 (tfile_trace_find): Ditto.
7208 (tfile_fetch_registers): Ditto.
7209 (tfile_xfer_partial): Ditto.
7210 (tfile_get_trace_state_variable_value): Ditto.
7212 2010-01-15 Stan Shebs <stan@codesourcery.com>
7214 Add trace file support.
7215 * tracepoint.h (enum trace_stop_reason): New enum.
7216 (struct trace_status): New struct.
7217 (parse_trace_status): Declare.
7218 (struct uploaded_tp): Move here from remote.c,
7219 add fields for actions.
7220 (struct uploaded_tsv): New struct.
7221 * tracepoint.c (tfile_ops): New target vector.
7222 (trace_fd): New global.
7223 (tfile_open): New function.
7224 (tfile_close): New function.
7225 (tfile_files_info): New function.
7226 (tfile_get_trace_status): New function.
7227 (tfile_get_traceframe_address): New function.
7228 (tfile_trace_find): New function.
7229 (tfile_fetch_registers): New function.
7230 (tfile_xfer_partial): New function.
7231 (tfile_get_trace_state_variable_value): New function.
7232 (init_tfile_ops): New function.
7233 (_initialize_tracepoint): Call it, add tfile target.
7234 (trace_status): New global.
7235 (current_trace_status): New function.
7236 (trace_running_p): Remove, change all users to get from
7237 current_trace_status()->running.
7238 (get_trace_status): Remove.
7239 (trace_status_command): Call target_get_trace_status directly,
7240 report more detail including tracing stop reasons.
7241 (trace_find_command): Always allow tfind on a file.
7242 (trace_find_pc_command): Ditto.
7243 (trace_find_tracepoint_command): Ditto.
7244 (trace_find_line_command): Ditto.
7245 (trace_find_range_command): Ditto.
7246 (trace_find_outside_command): Ditto.
7247 (trace_frames_offset, cur_offset): Declare as off_t.
7248 (trace_regblock_size): Rename from reg_size, update users.
7249 (parse_trace_status): New function.
7250 (tfile_interp_line): New function.
7251 (disconnect_or_stop_tracing): Ensure current trace
7252 status before asking what to do.
7253 (stop_reason_names): New global.
7254 (trace_save_command): New command.
7255 (get_uploaded_tp): Move here from remote.c.
7256 (find_matching_tracepoint): Ditto.
7257 (merge_uploaded_tracepoints): New function.
7258 (parse_trace_status): Use stop_reason_names.
7259 (_initialize_tracepoint): Define tsave command.
7260 * target.h (target_ops): New fields to_save_trace_data,
7261 to_upload_tracepoints, to_upload_trace_state_variables,
7262 to_get_raw_trace_data, change to_get_trace_status
7263 to take a pointer to a status struct.
7264 (target_save_trace_data): New macro.
7265 (target_upload_tracepoints): New macro.
7266 (target_upload_trace_state_variables): New macro.
7267 (target_get_raw_trace_data): New macro.
7268 * target.c (update_current_target): Add new methods, change
7269 signature of to_get_trace_status.
7270 * remote.c (hex2bin): Make globally visible.
7272 (remote_download_trace_state_variable): Download name also.
7273 (remote_get_trace_status): Update parameter, use
7275 (remote_save_trace_data): New function.
7276 (remote_upload_tracepoints): New function.
7277 (remote_upload_trace_state_variables): New function.
7278 (remote_get_raw_trace_data): New function.
7279 (remote_start_remote): Use them.
7280 (_initialize_remote_ops): Add operations.
7281 * ax-gdb.c: Include breakpoint.h.
7282 * breakpoint.c (create_tracepoint_from_upload): Use
7283 break_command_really, return tracepoint, warn about unimplemented
7285 * NEWS: Mention trace file addition.
7287 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7289 Fix compilation warning on gcc-3.4.
7290 * exec.c (print_section_info): Move the `displacement' variable
7291 initialization to its declaration.
7293 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7295 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
7298 2010-01-15 Eric Botcazou <botcazou@adacore.com>
7300 "info tasks" broken by typedefs in ATCB type definitions.
7301 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
7302 ada_check_typedef before retrieving the length of the type for
7305 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7307 Do not use name-based lookup for unconstrained packed arrays.
7308 * ada-lang.c (find_parallel_type_by_descriptive_type):
7309 Limit the fallback to name-based lookups to the case where
7310 the type is a constrained packed array.
7312 2010-01-15 Joel Brobecker <brobecker@adacore.com>
7314 Enhance gdb-gdb.py to handle main_type.type_specific.
7315 * gdb-gdb.py: Print the type-specific part of struct main_type.
7317 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7319 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
7320 * configure: Regenerate.
7321 * config.in: Regenerate.
7322 * utils.c: Include sys/resource.h.
7323 (dump_core, can_dump_core): New.
7324 (internal_vproblem): Update the comment. Check can_dump_core while
7325 setting dump_core_p. Replace two abort calls by dump_core calls.
7327 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7328 Eli Zaretskii <eliz@gnu.org>
7330 * NEWS: Document the PIE support.
7332 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7334 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
7335 (check_is_pie_binary, _initialize_linux_tdep): Remove.
7337 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7339 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
7340 Replace exec_entry_point call by bfd_get_start_address.
7342 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7344 Support Valgrind attachments broken by the PIE support.
7345 * auxv.c: Include gdbcore.h.
7346 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7347 parameters ops, object and annex. Remove their assertions.
7348 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7349 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7350 (memory_xfer_auxv): ... here.
7351 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7353 * procfs.c (procfs_xfer_partial): Likewise.
7354 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7355 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7356 (svr4_solib_create_inferior_hook): Conditionalize the
7357 svr4_relocate_main_executable call.
7359 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7361 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7362 target_section. Find SECT in current_target_sections, gdb_assert it.
7363 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7365 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7366 of separate debug info file.
7368 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7370 Support PIEs with no symfile_objfile.
7371 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7372 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7374 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7376 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7378 (svr4_static_exec_displacement): ... a new function.
7379 (svr4_exec_displacement): New function.
7380 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7381 new_offsets using alloca now. Remove variable old_chain and changed.
7382 Call objfile_relocate unconditionally now.
7384 2010-01-14 Doug Evans <dje@google.com>
7386 * gdbtypes.c (arch_flags_type): Fix comment.
7387 * gdbtypes.h (arch_composite_type): Fix comment.
7389 2009-01-14 Tristan Gingold <gingold@adacore.com>
7391 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7392 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7393 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7394 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7395 macho_add_oso_symfile.
7396 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7398 2010-01-14 Joel Brobecker <brobecker@adacore.com>
7400 Tru64: Dead threads are never deleted.
7401 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7402 (dec_thread_count_gdb_threads): Fix counter increment.
7403 (dec_thread_add_gdb_thread): Fix *listp increment.
7404 (resync_thread_list): Fix bug in deletion of dead threads that
7405 caused all threads to be deleted, instead of just the dead ones.
7407 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7411 * python/python-internal.h: Add lazy_string_object_type
7413 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7414 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7415 * python/py-value.c (valpy_lazy_string): New function.
7416 (convert_value_from_python): Add lazy string conversion.
7417 * python/py-prettyprint.c (pretty_print_one_value): Check if
7418 return is also a lazy string.
7419 (print_string_repr): Add lazy string printing branch.
7420 (print_children): Likewise.
7421 * python/py-lazy-string.c: New file. Implement lazy strings.
7422 * python/python.c (_initialize_python): Call
7423 gdbpy_initialize_lazy_string.
7424 * varobj.c (value_get_print_value): Add lazy string printing
7425 branch. Account for encoding.
7426 * c-lang.c (c_printstr): Account for new encoding argument. If
7427 encoding is NULL, find encoding suited for type, otherwise use
7429 * language.h (language_defn): Add encoding argument.
7430 (LA_PRINT_STRING): Likewise.
7431 * language.c (unk_lang_printstr): Update to reflect new encoding
7432 argument to language_defn.
7433 * ada-lang.h (ada_printstr): Likewise.
7434 * c-lang.h (c_printstr): Likewise.
7435 * p-lang.h (pascal_printstr);
7436 * f-lang.c (f_printstr): Likewise.
7437 * m2-lang.c (m2_printstr): Likewise.
7438 * objc-lang.c (objc_printstr): Likewise.
7439 * p-lang.c (pascal_printstr): Likewise.
7440 * scm-lang.c (scm_printstr): Likewise.
7441 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7443 * ada-valprint.c (ada_printstr): Likewise.
7444 * f-valprint.c (f_val_print): Likewise
7445 * m2-valprint.c (m2_val_print): Likewise.
7446 * p-valprint.c (pascal_val_print): Likewise.
7447 * expprint.c (print_subexp_standard): Likewise.
7448 * valprint.c (val_print_string): Likewise.
7449 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7450 (SUBDIR_PYTHON_SRCS): Likewise.
7451 (py-lazy-string.o): New rule.
7453 2010-01-13 Doug Evans <dje@google.com>
7455 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7456 uninitialized" warning from gcc on local `tree'.
7458 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7460 Implement core awareness.
7462 * bcache.c (compare_ints): Remove
7463 (print_percentage): Use compare_positive_ints.
7464 * defs.h (compare_positive_ints): Declare.
7465 * linux-nat.h (struct lin_lwp): New field core.
7466 (linux_nat_core_of_thread_1): Declare.
7467 * linux-nat.c (add_lwp): Init the 'core' field.
7468 (linux_nat_wait_1): Record the core.
7469 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7470 (linux_nat_add_target): Register the above.
7471 * linux-thread-db.c (update_thread_core): New.
7472 (thread_db_find_new_threads): Update core information for
7474 * remote.c (struct private_thread_info): New.
7475 (free_private_thread_info, demand_private_info): New.
7476 (PACKET_qXfer_threads, use_osdata_threads): New.
7477 (struct thread_item, threads_parsing_context
7478 (start_thread, end_thread, thread_attributes)
7479 (thread_children, threads_children, threads_elements): New.
7480 (remote_threads_info): Try qXfer:threads before anything
7482 (remote_protocol_packets): Register qXfer:threads.
7483 (remote_open_1): Init use_osdata_threads.
7484 (struct stop_reply): New field 'core'.
7485 (remote_parse_stop_reply): Parse core number.
7486 (process_stop_reply): Record core number.
7487 (remote_xfer_partial): Handle qXfer:threads.
7488 (remote_core_of_thread): New.
7489 (init_remote_ops): Register remote_core_of_thread.
7490 (_initialize_remote): Register qXfer:read.
7491 * target.c (target_core_of_thread): New
7492 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7493 (struct target_ops): New field to_core_of_threads.
7494 (target_core_of_thread): Declare.
7495 * gdbthread.h (struct thread_info): New field private_dtor.
7496 * thread.c (print_thread_info): Report the core.
7497 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7498 * utils.c (compare_positive_ints): New.
7499 * features/threads.dtd: New.
7500 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7501 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7502 (do_nothing, free_vector_of_osdata_items)
7503 (splay_tree_int_comparator, free_splay_tree): New.
7504 (print_one_inferior_data): Implemented printing of selected
7505 inferiors. Collect and print cores.
7506 (output_cores): New.
7507 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7508 thread groups together with --available.
7510 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7512 * configure: Regenerate (for _STRUCTURED_PROC).
7514 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7516 Delete dead function.
7517 * ada-lang.c (extract_string): Delete. No longer used.
7519 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7521 Fix -Wunused warning in dec-thread.c.
7522 * dec-thread.c (dec_thread_count_gdb_threads)
7523 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7525 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7527 * ada-valprint.c (ada_print_floating): Remove trailing space.
7529 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7531 Add support for DW_AT_GNAT_descriptive_type.
7532 * gdbtypes.h (enum type_specific_kind): New enum.
7533 (struct main_type) [type_specific_field]: New component.
7534 [type_specific]: Add new component "gnat_stuff".
7535 (struct gnat_aux_type): New type.
7536 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7537 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7538 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7539 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7540 (TYPE_SPECIFIC_FIELD): New macros.
7541 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7542 type does not hold any cplus-specific data.
7543 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7544 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7545 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7546 cplus-specific data.
7547 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7548 Set new component TYPE_SPECIFIC_FIELD (type).
7549 (gnat_aux_default): New constant.
7550 (allocate_gnat_aux_type): New function.
7551 (init_type): Add initialization the type-specific stuff for
7552 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7553 (print_gnat_stuff): New function.
7554 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7555 specific data. Adjust code that prints the contents of the
7556 type-specific union using the TYPE_SPECIFIC_FIELD value.
7557 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7558 the type cplus stuff for Ada types.
7559 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7560 Error out if these routines are called with an Ada type.
7561 (read_structure_type, read_array_type, read_subrange_type):
7562 Add call to set_descriptive_type.
7563 (set_die_type): Initialize the gnat-specific data if necessary.
7564 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7566 * ada-lang.c (decode_constrained_packed_array_type): Use
7567 decode_constrained_packed_array_type instead of doing a standard
7568 lookup to locate a parallel type.
7569 (find_parallel_type_by_descriptive_type): New function.
7570 (ada_find_parallel_type_with_name): New function.
7571 (ada_find_parallel_type): Reimplement using
7572 ada_find_parallel_type_with_name.
7573 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7574 to check if type has a cplus stuff.
7575 * linespec.c (total_number_of_methods): Likewise.
7576 * mdebugread.c (new_type): Likewise.
7578 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7580 * NEWS: Document the 0b binary number prefix parsing.
7582 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7584 * objfiles.c (objfile_relocate1): Change the return type to int.
7585 Describe the new return value. Return non-zero if data changed.
7586 (objfile_relocate): New variable changed. Set it. Call
7587 breakpoint_re_set depending on CHANGED.
7589 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7591 Implement binary numbers parsing.
7592 * c-exp.y (parse_number): New case 'b' and 'B'.
7594 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7595 Tristan Gingold <gingold@adacore.com>
7597 * solib.c (info_sharedlibrary_command): Replace
7598 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7599 objfile_has_symbols.
7601 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7603 * NEWS: Document the improvements made to the mips-irix port.
7605 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7607 Fix the documentation of valprint.c:value_print.
7608 * valprint.c (value_print): Update the function description to
7609 mention that the syntax of the output follows the current_language,
7612 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7614 Fix displacement of separate debug info files.
7615 * objfiles.c (objfile_relocate): Rename to ...
7616 (objfile_relocate1): ... here and make it static. Extend the comment.
7617 (objfile_relocate): New function.
7618 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7619 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7620 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7621 allocated using alloca.
7622 * symfile.c (copy_section_addr_info): Remove.
7623 (build_section_addr_info_from_objfile): Make it global. New variables
7624 addr_bit and mask, use them.
7625 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7626 (copy_section_addr_info): Remove.
7628 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7630 Signal unwinder for mips-irix N32.
7631 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7633 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7634 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7635 (SIGCONTEXT_LO_OFF): New macros.
7636 (mips_irix_n32_tramp_frame_init): New function.
7637 (mips_irix_n32_tramp_frame): New static constant.
7638 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7640 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7642 Breakpoint in shared library does not work on mips-irix.
7643 * procfs.c: #include "observer.h".
7644 (procfs_inferior_created): New function, moving here the code
7645 which unsets the syssgi syscall-exit notifications.
7646 (procfs_create_inferior): Remove the code which unsets the syssgi
7647 syscall-exit notifications. It is too early to do this here.
7648 (_initialize_procfs): Attach the procfs_inferior_created observer.
7650 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7652 Wrong return convention for arrays (mips-irix).
7653 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7654 128 bits or smaller are returned the same way as structs
7655 and unions of the the same size.
7657 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7659 Cannot set the PC on mips-irix.
7660 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7661 register number, no the cooked one.
7663 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7665 Error while loading core file on mips-irix.
7666 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7667 if debugging from a core file.
7669 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7671 GDB hangs when attaching to process on mips-irix.
7672 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7673 attaching to a process.
7675 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7677 Use the correct breakpoint instruction on mips-irix.
7678 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7679 containing the correct breakpoint instruction to use on mips-irix.
7680 Use it when the osabi is GDB_OSABI_IRIX.
7682 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7684 -Wunused warning in procfs.c (mips-irix only).
7685 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7686 throughout instead of using praddset and prdelset respectively.
7688 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7690 GDB crash while stepping into function.
7691 * infrun.c (handle_inferior_event): Refetch the current frame
7692 after handling what.main_action, in case that pointer became
7695 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7697 Fix build failure of solaris-hosted cross debuggers.
7698 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7700 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7702 Fix build failure on sparc-solaris.
7703 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7705 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7707 Move some symfile code into subroutines.
7708 * symfile.h (relative_addr_info_to_section_offsets)
7709 (addr_info_make_relative): New prototypes.
7710 * symfile.c (default_symfile_offsets): Move a part to ...
7711 (relative_addr_info_to_section_offsets): ... this new function.
7712 (default_symfile_offsets): Call it.
7713 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7715 (addr_info_make_relative): ... this new function.
7717 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7719 Add from_tty to solib_create_inferior_hook.
7720 * infcmd.c (post_create_inferior): Move solib_add after
7721 solib_create_inferior_hook. Pass from_tty to
7722 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7723 0 from_tty and comment why.
7724 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7725 * linux-nat.c (linux_child_follow_fork): Likewise.
7726 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7727 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7729 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7730 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7731 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7732 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7733 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7734 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7735 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7736 Pass it to svr4_so_ops.solib_create_inferior_hook.
7737 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7739 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7741 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7743 * solib-target.c (solib_target_solib_create_inferior_hook): New
7745 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7746 it to ops->solib_create_inferior_hook.
7747 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7748 Move solib_add after solib_create_inferior_hook, call it now with
7749 from_tty as 0. New comment there.
7750 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7751 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7754 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7757 * infrun.c (handle_inferior_event): Use get_thread_regcache
7758 with events ptid, not get_current_regcache.
7760 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7762 GDB crash with empty executable name (MinGW).
7763 * source.c (openp): Add assert that parameter string is not NULL.
7764 if parameter string is an empty string, then return with a failure
7767 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7769 Get rid of support for VAX Floats.
7770 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7771 (ada_vax_float_print_function): Delete.
7772 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7773 (ada_vax_float_print_function): Delete.
7774 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7775 (ada_print_type): Remove support for VAX floats.
7776 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7778 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7780 * stabsread.c (read_args): Handle zero arguments.
7782 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7784 Cannot find in-tree libiconv.a after reconfigure.
7785 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7786 that we can use, then cache the path to this archive.
7787 * configure: Regenerate.
7789 2010-01-07 Stan Shebs <stan@codesourcery.com>
7791 Make tracepoint operations go through target vector.
7792 * target.h (enum trace_find_type): New enum.
7793 (struct target_ops): New fields to_trace_init,
7794 to_download_tracepoint, to_download_trace_state_variable,
7795 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7796 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7797 to_set_disconnected_tracing.
7798 (target_trace_init): New macro.
7799 (target_download_tracepoint): New macro.
7800 (target_download_trace_state_variable): New macro.
7801 (target_trace_start): New macro.
7802 (target_trace_set_readonly_regions): New macro.
7803 (target_get_trace_status): New macro.
7804 (target_trace_stop): New macro.
7805 (target_trace_find): New macro.
7806 (target_get_trace_state_variable_value): New macro.
7807 (target_set_disconnected_tracing): New macro.
7808 * target.c (update_current_target): Inherit and set defaults for
7809 tracepoint operations.
7810 * tracepoint.c (default_collect): Make globally visible.
7811 (target_is_remote): Remove, along with all calls.
7812 (tvariables_info): Call target_get_trace_state_variable_value.
7813 (remote_set_transparent_ranges): Remove.
7814 (trace_start_command): Call target_trace_init,
7815 target_download_tracepoint, etc.
7816 (download_tracepoint): Remove.
7817 (trace_stop_command): Simplify.
7818 (stop_tracing): Call target_trace_stop.
7819 (get_trace_status): Call target_get_trace_status.
7820 (trace_status_command): Add case for targets that cannot trace.
7821 (finish_tfind_command): Change to take numerical arguments, call
7823 (trace_find_command): Update call to finish_tfind_command.
7824 (trace_find_pc_command): Ditto.
7825 (trace_find_tracepoint_command): Ditto.
7826 (trace_find_line_command): Ditto.
7827 (trace_find_range_command): Ditto.
7828 (trace_find_outside_command): Ditto.
7829 (set_disconnected_tracing_value): Call
7830 target_set_disconnected_tracing.
7831 * remote.c: Add protocol encoding bits from tracepoint.c.
7832 (trace_error): Move from tracepoint.c.
7833 (remote_get_noisy_reply): Ditto.
7834 (free_actions_list_cleanup_wrapper): Ditto.
7835 (free_actions_list): Ditto.
7836 (remote_trace_init): New function.
7837 (remote_download_tracepoint): New function.
7838 (remote_download_trace_state_variable): New function.
7839 (remote_trace_set_readonly_regions): New function.
7840 (remote_trace_start): New function.
7841 (remote_get_trace_status): New function.
7842 (remote_trace_stop): New function.
7843 (remote_trace_find): New function.
7844 (remote_download_trace_state_variable): New function.
7845 (remote_set_disconnected_tracing): New function.
7846 (init_remote_ops): Add tracepoint operations.
7848 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7850 2010-01-07 Tristan Gingold <gingold@adacore.com>
7852 * symfile.c (build_section_addr_info_from_objfile): New function.
7853 (symbol_file_add_separate): Don't use offsets from objfile but
7856 2010-01-06 Stan Shebs <stan@codesourcery.com>
7858 Support disconnected tracing.
7859 * infcmd.c (detach_command): Ask whether to stop tracing.
7860 * cli/cli-cmds.c (quit_command): Ditto.
7861 * breakpoint.h (struct breakpoint): New field number_on_target.
7862 * breakpoint.c (create_tracepoint_from_upload): New function.
7863 (get_tracepoint_by_number_on_target): New function.
7864 * remote.c (struct remote): New field disconnected_tracing.
7865 (remote_disconnected_tracing_feature): New function.
7866 (remote_protocol_features): Add DisconnectedTracing.
7867 (struct uploaded_tp): New struct.
7868 (uploaded_tps): New global.
7869 (get_uploaded_tp): New function.
7870 (find_matching_tracepoint): New function.
7871 (remote_get_tracing_state): New function.
7872 (remote_start_remote): Call it.
7873 * tracepoint.c (disconnected_tracing): New global.
7874 (trace_start_command): Initialize number_on_target.
7875 (stop_tracing): New function, split out from...
7876 (trace_stop_command): Call stop_tracing.
7877 (get_trace_status): New function, split out from...
7878 (trace_status_command): Call get_trace_status, add info on
7879 disconnection behavior.
7880 (disconnect_or_stop_tracing): New function.
7881 (finish_tfind_command): Translate from number on target.
7882 (trace_find_tracepoint_command): Translate to number on target.
7883 (send_disconnected_tracing_value): New function.
7884 (set_disconnected_tracing): New function.
7885 (_initialize_tracepoint): Add disconnected-tracing variable.
7886 * NEWS: Mention disconnected tracing.
7888 2010-01-06 Tristan Gingold <gingold@adacore.com>
7890 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7891 parameter to main_objfile. Iterate on all separate debug objfiles.
7892 * symfile.h (symbol_file_add_separate)
7893 (find_separate_debug_file_by_debuglink): Remove parameter names.
7894 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7895 (reread_symbols): Use free_objfile_separate_debug.
7896 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7898 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7899 (free_objfile_separate_debug): New prototypes.
7900 * objfiles.c (objfile_separate_debug_iterate): New function.
7901 (add_separate_debug_objfile, free_objfile_separate_debug): New
7903 (free_objfile): Use free_objfile_separate_debug. Adjust for
7904 multiple separate debug objfile.
7905 (objfile_has_symbols): Adjust comment. Iterate on all separate
7907 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7909 (lookup_minimal_symbol_text): Ditto.
7910 (lookup_minimal_symbol_by_pc_name): Ditto.
7911 (lookup_minimal_symbol_solib_trampoline): Ditto.
7912 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7915 2010-01-05 Stan Shebs <stan@codesourcery.com>
7917 Add fast tracepoints.
7918 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7919 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7920 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7921 * breakpoint.c (tracepoint_type): New function.
7922 (ALL_TRACEPOINTS): Use it.
7923 (should_be_inserted): Ditto.
7924 (bpstat_check_location): Ditto.
7925 (print_one_breakpoint_location): Ditto.
7926 (user_settable_breakpoint): Ditto.
7927 (set_breakpoint_location_function): Ditto.
7928 (disable_breakpoints_in_shlibs): Ditto.
7929 (delete_trace_command): Ditto.
7930 (print_it_typical): Add bp_fast_tracepoint case.
7931 (bpstat_what): Ditto.
7932 (print_one_breakpoint_location): Ditto.
7933 (allocate_bp_location): Ditto.
7935 (breakpoint_re_set_one): Ditto.
7936 (disable_command): Ditto.
7937 (enable_command): Ditto.
7938 (check_fast_tracepoint_sals): New function.
7939 (break_command_really): Call it.
7940 (ftrace_command): New function.
7941 (_initialize_breakpoint): Add ftrace command.
7942 * gdbarch.sh (fast_tracepoint_valid_at): New.
7943 * gdbarch.h, gdbarch.c: Regenerate.
7944 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7945 (i386_gdbarch_init): Use it.
7946 * remote.c (struct remote_state): New field fast_tracepoints.
7947 (PACKET_FastTracepoints): New packet config type.
7948 (remote_fast_tracepoint_feature): New function.
7949 (remote_protocol_features): Add FastTracepoints.
7950 (remote_supports_fast_tracepoints): New function.
7951 (_initialize_remote): Add FastTracepoints.
7952 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7953 * NEWS: Mention fast tracepoints.
7955 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7957 * gdb-gdb.py: New file.
7959 2010-01-05 Michael Snyder <msnyder@vmware.com>
7961 * infrun.c (handle_inferior_event): Fix typo in comment.
7963 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7965 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7967 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7969 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7971 (s390-linux32-expedite): Define.
7972 (s390-linux64-expedite): Define.
7973 (s390x-linux64-expedite): Define.
7974 * features/s390-acr.xml: New file.
7975 * features/s390-fpr.xml: New file.
7976 * features/s390-core32.xml: New file.
7977 * features/s390-core64.xml: New file.
7978 * features/s390x-core64.xml: New file.
7979 * features/s390-linux32.xml: New file.
7980 * features/s390-linux64.xml: New file.
7981 * features/s390x-linux64.xml: New file.
7982 * features/s390-linux32.c: New generated file.
7983 * features/s390-linux64.c: New generated file.
7984 * features/s390x-linux64.c: New generated file.
7986 * regformats/s390-linux32.dat: New generated file.
7987 * regformats/s390-linux64.dat: New generated file.
7988 * regformats/s390x-linux64.dat: New generated file.
7989 * regformats/reg-s390.dat: Remove.
7990 * regformats/reg-s390x.dat: Remove.
7992 * s390-nat.c: Include "auxv.h" and <elf.h>.
7993 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7994 (s390_target_wordsize): New function.
7995 (s390_auxv_parse): Likewise.
7996 (s390_get_hwcap): Likewise.
7997 (s390_read_description): Likewise.
7998 (_initialize_s390_nat): Install s390_auxv_parse and
7999 s390_read_description.
8001 * s390-tdep.c: Include "features/s390-linux32.c",
8002 "features/s390-linux64.c", and "features/s390x-linux64.c".
8003 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
8004 (s390_register_call_saved): New function.
8005 (s390_register_name): Remove.
8006 (s390_register_type): Remove.
8007 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
8008 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
8009 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
8010 (s390_pseudo_register_name): New function.
8011 (s390_pseudo_register_type): New function.
8012 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
8013 Handle full GPR pesudos and varying pseudo register numbers.
8014 (s390_pseudo_register_write): Likewise
8015 (s390x_pseudo_register_read): Remove.
8016 (s390x_pseudo_register_write): Likewise.
8017 (s390_register_group): Remove.
8018 (s390_pseudo_register_group): New function.
8019 (s390_regmap_gregset): Add GPR upper halves.
8020 (s390x_regmap_gregset): Likewise.
8021 (s390_regmap_fpregset): Likewise.
8022 (s390_regmap_upper): New global variable.
8023 (s390_upper_regset): New global variable.
8024 (s390_upper_regset_sections): New global variable.
8025 (s390_regset_from_core_section): Handle GPR upper halves.
8026 (s390_core_read_description): New function.
8027 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
8028 register information. Handle varying pseudo register numbers.
8029 (s390_backchain_frame_unwind_cache): Likewise.
8030 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
8031 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
8032 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
8033 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
8034 Handle varying pseudo register numbers.
8035 (s390_unwind_pc): Handle varying pseudo register numbers.
8036 (s390_dwarf2_prev_register): New function.
8037 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
8038 register information. Handle varying pseudo register numbers.
8039 Install s390_dwarf2_prev_register to unwind full GPRs.
8040 (s390_gdbarch_init): Handle target descriptions. Assign varying
8041 pseudo register numbers. Install s390_adjust_frame_regnum.
8042 (_initialize_s390_tdep): Initialize target descriptions.
8044 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
8045 (S390_NUM_REGS): Redefine to include upper half registers.
8046 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
8047 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
8048 (tdesc_s390_linux32): Add declaration.
8049 (tdesc_s390_linux64): Likewise.
8050 (tdesc_s390x_linux64): Likewise.
8052 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8054 * regset.h (struct core_regset_section): Add HUMAN_NAME.
8055 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
8056 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
8057 (ppc_linux_vmx_regset_sections): Likewise.
8058 (ppc_linux_fp_regset_sections): Likewise.
8060 * corelow.c (get_core_register_section): Constify arguments.
8061 (get_core_registers): Use gdbarch_core_regset_sections instead
8062 of hard-coded platform-specific register section names.
8064 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8066 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
8067 a register, assume the least-significant part is used.
8068 (write_pieced_value): Likewise.
8070 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8072 * printcmd.c: Include "arch-utils.h".
8073 (do_one_display): Re-parse expression if current architecture changed.
8075 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8076 Joel Brobecker <brobecker@adacore.com>
8078 * gdbtypes.c (check_typedef): New comment on type length.
8079 * value.c (allocate_value_lazy): Remove the unused atype variable. New
8080 comment on type length.
8081 (value_primitive_field): Keep the original TYPE value, new comment.
8083 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8085 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
8086 p_start. Change != comparisons to > and < comparisons.
8088 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8090 * cli/cli-script.c (process_next_line): Check P2 overrun.
8092 2009-01-01 Joel Brobecker <brobecker@adacore.com>
8094 Update the copyright hearder to add year 2010 for most GDB files.
8096 2009-01-01 Joel Brobecker <brobecker@adacore.com>
8098 Fix build failure in inf-ptrace.c.
8099 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
8101 2010-01-01 Joel Brobecker <brobecker@adacore.com>
8103 * top.c (print_gdb_version): Update copyright year.
8105 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
8107 Fix break *FUN'address thread NUM.
8108 * ada-lex.l (task): Expand rule to also match the thread keyword.
8110 2010-01-01 Joel Brobecker <brobecker@adacore.com>
8112 Fix break *FUN'address task NUM.
8113 * ada-lex.l (task): New rule.
8114 * ada-lang.c (valid_task_id): Make sure the Ada task list has
8115 been built before using it.
8117 For older changes see ChangeLog-2009.
8123 version-control: never