1 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * cp-namespace.c (cp_lookup_nested_type): New variable
4 concatenated_name. Turn the current return condition into a reverse
5 one. Call also lookup_static_symbol_aux on the constructed qualified
7 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
8 other files into a called ...
9 (lookup_static_symbol_aux): ... new function here.
10 * symtab.h (lookup_static_symbol_aux): New prototype.
11 * valops.c (value_maybe_namespace_elt): Call also
12 lookup_static_symbol_aux if we failed otherwise.
14 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16 Fix PR c++/11703 and PR gdb/1448.
17 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
20 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
22 Fix modification of cplus_struct_default.
23 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
24 Call ALLOCATE_CPLUS_STRUCT_TYPE.
25 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
27 2010-06-28 Joel Brobecker <brobecker@adacore.com>
29 * NEWS: Add entry announcing the python directory.
31 2010-06-28 Tom Tromey <tromey@redhat.com>
33 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
35 2010-06-28 Doug Evans <dje@google.com>
37 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
40 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
42 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
43 obstack_begin after each obstack_free.
45 2010-06-27 Doug Evans <dje@google.com>
47 * value.c (value_static_field): Use `switch' instead of `if'.
48 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
50 * valops.c (search_struct_field): Fix typo in error message.
52 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
54 * dwarf2expr.c (execute_stack_op): Place preprocessor
55 directives at the start of the source line.
57 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
59 * defs.h (make_command_stats_cleanup): Declare.
60 (set_display_time): Declare.
61 (set_display_space): Declare.
62 * event-top.c (command_handler): Use make_command_stats_cleanup.
63 * main.c (display_time, display_space): Move definitions to utils.c.
64 (captured_main): Use make_command_stats_cleanup to get start-up
66 Use set_display_time and set_display_space for processing OPT_STATISTICS
68 * maint.c (maintenance_time_display): Use set_display_time.
69 (maintenance_space_display): Use set_display_space.
70 * top.c (execute_command): Remove obsolete 'maint time' code.
71 (command_loop): Use make_command_stats_cleanup.
72 * utils.c (struct cmd_stats): Structure for storing initial time
74 (display_time, display_space): Move definitions here from utils.c.
75 (set_display_time): New function.
76 (set_display_space): New function.
77 (make_command_stats_cleanup): New function.
78 (report_command_stats): New auxiliary function for
79 make_command_stats_cleanup.
81 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
83 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
84 hosts where CORE_ADDR is long long.
86 2010-06-25 Tom Tromey <tromey@redhat.com>
89 * python/python.c (execute_gdb_command): Add keywords. Accept
91 (struct restore_ui_file_closure): New.
92 (restore_ui_file): New function.
93 (make_cleanup_restore_ui_file): Likewise.
94 (GdbMethods) <execute>: Update.
96 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
98 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
99 during inferior call stack frame setup.
101 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
103 * solib-spu.c: Include "exception.h".
104 (ocl_program_data_key): New variable.
105 (append_ocl_sos): New function.
106 (ocl_enable_break): Likewise.
107 (spu_current_sos): Call append_ocl_sos.
108 (spu_solib_loaded): Call ocl_enable_break.
109 (_initialize_spu_solib): Register ocl_program_data_key.
111 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
113 * cp-support.c (reset_directive_searched): New function.
114 (make_symbol_overload_list_using): Prevent recursive calls.
116 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
118 * printcmd.c (print_variable_and_value): Print error message on
121 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
123 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
125 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
127 (dwarf_expr_push): Change input type to ULONGEST.
128 (dwarf_expr_fetch): Change return type to ULONGEST.
129 (dwarf_expr_fetch_address): Add prototype.
130 (dwarf2_read_address): Remove prototype.
131 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
132 Truncate stack values to ctx->addr_size bytes.
133 (dwarf_expr_fetch): Change return value to ULONGEST.
134 (dwarf_expr_fetch_address): New function.
135 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
136 when appropriate. Update for struct dwarf_expr_piece changes.
137 (dwarf2_read_address): Remove.
138 (unsigned_address_type): Remove.
139 (signed_address_type): Remove.
140 (execute_stack_op): Use dwarf_expr_fetch_address instead of
141 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
142 values. Perform operations on ULONGEST instead of on GDB values,
143 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
144 values and DW_OP_deref results as unsigned integers.
145 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
147 (write_pieced_value): Likewise.
148 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
149 dwarf_expr_fetch when appropriate.
150 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
151 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
152 instead of dwarf_expr_fetch when appropriate.
154 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
156 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
158 2010-06-24 Joel Brobecker <brobecker@adacore.com>
160 * python/python.c (_initialize_python): Add new "constant"
161 PYTHONDIR in gdb module. Insert this path at the head of
162 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
163 exec its __init__.py script if it exists in that directory.
165 2010-06-24 Kevin Buettner <kevinb@redhat.com>
167 * rx-tdep.c (RX_ACC_REGNUM): Define.
168 (RX_NUM_REGS): Redefine to 26.
169 (rx_register_name): Add register "acc". Change order of several
170 registers. Change name of "vct" register to "fintv" to match RX
172 (rx_register_type): Add case for RX_ACC_REGNUM.
174 2010-06-24 Tom Tromey <tromey@redhat.com>
176 * psymtab.c (lookup_partial_symbol): Mark definition as static.
178 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
179 Tom Tromey <tromey@redhat.com>
181 Fix GDB startup on readonly filesystem.
182 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
184 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
185 Pedro Alves <pedro@codesourcery.com>
188 * breakpoint.c (handle_jit_event): New function.
189 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
190 jit, err, table and bs_class. New variables shlib_event, jit_event,
191 this_action and bptype. Change bs_class assignments to this_action
192 assignments. new unhandled bptype internal error. Move here
193 shlib_event and jit_event handling from handle_inferior_event.
194 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
195 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
196 BPSTAT_WHAT_CHECK_JIT.
197 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
198 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
199 (handle_inferior_event): Reinitialize frame and gdbarch after
200 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
201 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
202 gdbarch when frame gets reinitialized.
204 2010-06-24 Hui Zhu <teawater@gmail.com>
206 * printcmd.c (ui_printf): New function.
207 (printf_command): Call ui_printf.
208 (_initialize_printcmd): New command "eval".
210 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
212 * infrun.c (handle_inferior_event): Handle presence of single-step
213 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
214 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
215 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
216 * breakpoint.c (detach_single_step_breakpoints): New function.
217 (detach_breakpoints): Call it.
218 (cancel_single_step_breakpoints): New function.
219 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
221 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
222 (spu_gdbarch_init): Install it.
224 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
226 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
227 * configure: Regenerate.
229 2010-06-22 Hui Zhu <teawater@gmail.com>
231 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
232 (i386_process_record): Ditto.
233 * record.c (record_memory_query): New variable.
234 (_initialize_record): New command "set record memory-query".
235 * record.h (record_memory_query): New extern.
237 2010-06-21 Doug Evans <dje@google.com>
239 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
240 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
241 (i386_syscall_p): Change type of lengthp to int.
242 (i386_displaced_step_fixup): Handle kernels that run one past a
244 * i386-linux-tdep.c (i386_linux_init_abi): Use
245 i386_displaced_step_copy_insn instead of
246 simple_displaced_step_copy_insn.
248 2010-06-21 Tom Tromey <tromey@redhat.com>
250 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
251 (dwarf_type_encoding_name): Likewise.
253 2010-06-21 Tom Tromey <tromey@redhat.com>
255 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
256 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
257 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
258 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
259 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
260 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
261 * dwarf2read.c (tag_type_to_type): Create a new error type on
263 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
264 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
266 2010-06-21 Michael Snyder <msnyder@vmware.com>
268 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
269 not add_abbrev_prefix_cmd, for "enable breakpoints".
271 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
273 * dwarf2loc.c (find_location_expression): Add relocation offset
274 to base-address-selection entry base addresses. Read addresses
275 (and offsets) as signed/unsigned integers, depending on the
276 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
277 (loclist_describe_location): Likewise.
278 (disassemble_dwarf_expression): Read DW_OP_addr operand as
279 unsigned integer. Do not call dwarf2_read_address.
280 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
282 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
284 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
285 value instead of hard-coded SPU_LS_SIZE.
286 (spu_software_single_step): Likewise.
287 * spu-tdep.h (SPU_LS_SIZE): Remove.
289 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
291 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
292 limit on local store memory accesses.
293 * spu-linux-nat.c (spu_xfer_partial): Likewise.
294 * spu-tdep.c (spu_lslr): Remove.
295 (spu_pointer_to_address): Do not truncate addresses.
296 (spu_integer_to_address): Likewise.
297 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
298 * spu-tdep.h: Add comments.
299 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
300 (SPU_OVERLAY_LMA): Define.
302 2010-06-18 Stan Shebs <stan@codesourcery.com>
304 * osdata.c (get_osdata): Warn separately if target does not report
306 (info_osdata_command): Allow empty type, report error if target
307 does not return available types of OS data.
308 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
309 types if no annex supplied.
311 * thread.c (thread_id_make_value): Make a value representing the
313 (_initialize_thread): Create $_thread.
315 2010-06-17 Joel Brobecker <brobecker@adacore.com>
317 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
318 last local variable declaration. No real code change.
320 2010-06-17 Tom Tromey <tromey@redhat.com>
322 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
323 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
326 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
327 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * breakpoint.c: Include parser-defs.h.
330 (watchpoint_exp_is_const): New function.
331 (watch_command_1): Call watchpoint_exp_is_const to check
332 if the expression is constant.
334 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
336 * configure.ac: Check for RDYNAMIC also for cross builds.
337 * configure: Regenerate.
339 2010-06-15 Pedro Alves <pedro@codesourcery.com>
341 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
342 (SFILES): Remove solib-null.c, add solib-target.c.
343 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
344 (ALLDEPFILES): Remove solib-target.c.
345 * solib-target.c (_initialize_solib_target): Set
346 current_target_so_ops to solib_target_so_ops if not already set.
347 * solib-null.c: Delete.
349 2010-06-14 Pedro Alves <pedro@codesourcery.com>
351 * NEWS: Mention GDBserver's JIT compilation of tracepoint
354 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
356 * cp-valprint.c (cp_print_static_field): Members of
357 dont_print_stat_array_obstack are of type "struct type *".
358 (_initialize_cp_valprint): Likewise.
360 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
362 * frame.c (frame_register_unwind): Do not access contents
363 of "optimized out" unwound register value.
365 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
367 * ada-lang.h (ada_print_type): Make varstring const.
368 * ada-typeprint.c (print_func_type): Make name const.
369 (ada_print_type): Make varstring const.
370 * c-lang.h (c_print_type): Make varstring const.
371 * c-typeprint.c (c_print_type): Likewise.
372 * f-lang.h (f_print_type): Likewise.
373 * f-typeprint.c (f_print_type): Likewise.
374 * jv-lang.h (java_print_type): Likewise.
375 * jv-typeprint.c (java_print_type): Likewise.
376 * language.c (unk_lang_print_type): Likewise.
377 * language.h (struct language_defn) <la_print_type>: Likewise.
378 * m2-lang.h (m2_print_type): Likewise.
379 * m2-typeprint.c (m2_print_type): Likewise.
380 * p-lang.h (pascal_print_type): Likewise.
381 * p-typeprint.c (pascal_print_type): Likewise.
383 2010-06-11 Stan Shebs <stan@codesourcery.com>
385 Add per-operation permission flags.
387 * target.h (struct target_ops): New method to_set_permissions.
388 (target_set_permissions): New macro.
389 (target_insert_breakpoint): Change macro to function.
390 (target_remove_breakpoint): Ditto.
391 (target_stop): Ditto.
392 (may_write_registers): Declare.
393 (may_write_memory): Declare.
394 (may_insert_breakpoints): Declare.
395 (may_insert_tracepoints): Declare.
396 (may_insert_fast_tracepoints): Declare.
398 * target.c (may_write_registers, may_write_registers_1): New globals.
399 (may_write_memory, may_write_memory_1): New globals.
400 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
401 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
402 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
404 (may_stop, may_stop_1): New global.
405 (target_xfer_partial): Test for write permission.
406 (target_store_registers): Ditto.
407 (target_insert_breakpoint): New function.
408 (target_remove_breakpoint): New function.
409 (target_stop): New function.
410 (_initialize_targets): Add new set/show variables.
411 (set_write_memory_permission): New function.
412 (update_target_permissions): New function.
413 (set_target_permissions): New function.
414 (update_current_target): Default to_set_permissions.
415 (_initialize_targets): Use new globals and setter function.
416 * tracepoint.c (start_tracing): Test for permission.
417 * inferior.h (update_observer_mode): Declare.
418 * infrun.c (non_stop_1): Define earlier.
419 (observer_mode, observer_mode_1): New globals.
420 (set_observer_mode, show_observer_mode): New functions.
421 (update_observer_mode): New function.
422 (_initialize_infrun): Define "set observer" command.
423 * remote.c (PACKET_QAllow): New optional packet.
424 (remote_protocol_features): Add QAllow.
425 (remote_set_permissions): New function.
426 (remote_start_remote): Call it.
427 (init_remote_ops): Add it to target vector.
428 (_initialize_remote): Add config command for QAllow.
430 2010-06-11 Tom Tromey <tromey@redhat.com>
432 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
433 DW_AT_vtable_elem_location even when GCC extension is seen.
435 2010-06-11 Tom Tromey <tromey@redhat.com>
437 PR gdb/9977, PR exp/11636:
438 * value.h (value_offset): Update.
439 (struct lval_funcs) <check_validity>: New field.
440 <copy_closure>: Make argument const.
441 (value_computed_closure): Update.
442 (value_contents_for_printing): Declare.
443 (value_bits_valid): Likewise.
444 (val_print): Likewise.
445 (set_value_component_location): Update.
446 (value_entirely_optimized_out): Declare.
447 * value.c (value_offset): Argument now const.
448 (require_not_optimized_out): New function.
449 (value_contents_for_printing): New function.
450 (value_contents_all): Call require_not_optimized_out.
451 (value_contents): Likewise.
452 (value_bits_valid): New function.
453 (value_computed_closure): Argument now const.
454 (set_value_component_location): Make 'whole' argument const.
455 (value_entirely_optimized_out): New function.
456 (value_bitsize): Argument now 'const'.
457 (value_bitpos): Likewise.
458 (value_type): Likewise.
459 * valprint.h (val_print_array_elements): Update.
460 * valprint.c (val_print): Add 'val' argument. Use
461 valprint_check_validity.
462 (valprint_check_validity): New function.
463 (value_check_printable): Use value_entirely_optimized_out.
464 (common_val_print): Update.
465 (value_print): Likewise.
466 (val_print_array_elements): Add 'val' argument.
467 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
468 value_bits_valid. Reinit frame cache for lval_computed.
469 * sh64-tdep.c (sh64_do_register): Update.
470 * scm-valprint.c (scm_val_print): Add 'val' argument.
471 * scm-lang.h (scm_val_print): Update.
472 * python/python.h (apply_val_pretty_printer): Update.
473 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
474 argument. Call set_value_component_location.
475 * printcmd.c (print_scalar_formatted): Update.
476 * p-valprint.c (pascal_val_print): Add 'val' argument.
477 (pascal_object_print_value_fields): Likewise.
478 (pascal_object_print_value): Likewise.
479 (pascal_object_print_static_field): Update.
480 * p-lang.h (pascal_val_print): Update.
481 (pascal_object_print_value_fields): Update.
482 * mt-tdep.c (mt_registers_info): Update.
483 * mi/mi-main.c (get_register): Update.
484 (mi_cmd_data_evaluate_expression): Use common_val_print.
485 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
486 (m2_print_unbounded_array): Likewise.
487 (m2_val_print): Likewise.
488 * m2-lang.h (m2_val_print): Update.
489 * language.h (struct language_defn) <la_val_print>: Add 'val'
491 (LA_VAL_PRINT): Likewise.
492 * language.c (unk_lang_val_print): Add 'val' argument.
493 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
494 (java_val_print): Likewise.
495 * jv-lang.h (java_val_print): Add 'val' argument.
496 * infcmd.c (default_print_registers_info): Update.
497 * f-valprint.c (f77_print_array_1): Add 'val' argument.
498 (f77_print_array): Likewise.
499 (f_val_print): Likewise.
500 * f-lang.h (f_val_print): Add 'val' argument.
501 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
503 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
504 set_value_optimized_out.
505 (write_pieced_value): Use value_bitsize and value_bitpos.
506 <default>: Don't exit loop.
507 (check_pieced_value_validity): New function.
508 (pieced_value_funcs): Reference check_pieced_value_validity,
509 check_pieced_value_invalid.
510 (copy_pieced_value_closure): Update.
511 (check_pieced_value_bits): New function.
512 (check_pieced_value_invalid): New function.
513 * d-valprint.c (dynamic_array_type): Add 'val' argument.
514 (d_val_print): Likewise.
515 * d-lang.h (d_val_print): Update.
516 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
517 (cp_print_value_fields_rtti): Likewise.
518 (cp_print_value): Likewise.
519 (cp_print_static_field): Update.
520 * c-valprint.c (c_val_print): Add 'val' argument.
521 (c_value_print): Update.
522 * c-lang.h (c_val_print): Update.
523 (cp_print_value_fields): Likewise.
524 (cp_print_value_fields_rtti): Likewise.
525 * ada-valprint.c (struct ada_val_print_args): Remove.
526 (val_print_packed_array_elements): Add 'val' argument.
527 (ada_val_print): Likewise. Rewrite.
528 (ada_val_print_stub): Remove.
529 (ada_val_print_array): Add 'val' argument.
530 (ada_val_print_1): Likewise.
531 (print_variant_part): Likewise.
532 (ada_value_print): Update.
533 (print_record): Add 'val' argument.
534 (print_field_values): Likewise.
535 * ada-lang.h (ada_val_print): Update.
537 2010-06-11 Tom Tromey <tromey@redhat.com>
539 * vec.h (VEC_cleanup): New macro.
540 (DEF_VEC_ALLOC_FUNC_I): Update.
541 (DEF_VEC_ALLOC_FUNC_P): Likewise.
542 (DEF_VEC_ALLOC_FUNC_O): Likewise.
543 * dwarf2loc.c (struct axs_var_loc): Remove.
544 (unimplemented): New function.
545 (translate_register): Likewise.
546 (access_memory): Likewise.
547 (compile_dwarf_to_ax): Likewise.
548 (dwarf2_tracepoint_var_loc): Remove.
549 (dwarf2_tracepoint_var_access): Likewise.
550 (dwarf2_tracepoint_var_ref): Likewise.
551 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
552 (loclist_tracepoint_var_ref): Likewise.
553 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
554 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
555 require_composition. No longer static.
556 (execute_stack_op): Update.
557 * ax-gdb.h (trace_kludge): Declare.
559 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
561 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
562 (should_be_inserted): Return zero also on NULL OWNER.
563 (breakpoint_program_space_exit): New OWNER comment.
564 (insert_breakpoint_locations): Extend comment for OWNER.
565 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
566 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
568 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
569 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
570 (bpstat_check_location): New assert on OWNER.
571 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
572 and B initializations to the code block. New assert on them.
573 (print_one_breakpoint_location): New OWNER comment.
574 (watchpoint_locations_match): Assert on OWNER.
575 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
576 initializations to the code block. New assert on OWNER.
577 (set_breakpoint_location_function): New assert on OWNER.
578 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
579 (bp_location_compare, update_global_location_list)
580 (update_global_location_list): New OWNER comment.
582 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
584 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
586 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
588 * config/nm-linux.h (struct target_ops): Remove forward declaration.
589 (lin_thread_get_thread_signals): Remove prototype.
590 (GET_THREAD_SIGNALS): Remove.
591 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
592 * linux-thread-db.c (check_thread_signals): Directly call
593 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
595 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
597 * gregset.h (GDB_FPXREGSET_T): Remove.
598 (gdb_fpxregset_t): Likewise.
599 (supply_fpxregset): Remove prototype.
600 (fill_fpxregset): Likewise.
601 * i386-linux-nat.c (supply_fpxregset): Remove.
602 (fill_fpxregset): Likewise.
603 (fetch_fpxregs): Inline supply_fpxregset call.
604 (store_fpxregs): Inline fill_fpxregset call.
606 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
607 * config/i386/nm-linux.h: Remove file.
609 2010-06-09 Michael Snyder <msnyder@vmware.com>
611 * target.c (update_current_target): Fix spelling error in comment.
612 (target_mourn_inferior): Fix spelling error in error message.
614 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
616 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
617 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
619 2010-06-08 Michael Snyder <msnyder@vmware.com>
621 * remote.c (remote_close): Set inferior_ptid to null_ptid.
623 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
625 * configure.ac <"${have_libpython}" != no>: New workaround of
627 * configure: Regenerate.
629 2010-06-08 Hui Zhu <teawater@gmail.com>
631 * record.c (record_wait): Move signal out of replay code.
633 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
636 * dwarf2-frame.c (no_dwarf_call): New function.
637 (execute_stack_op): Set CTX->DWARF_CALL.
638 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
639 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
640 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
641 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
642 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
643 (needs_frame_dwarf_call): New function.
644 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
645 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
646 Update the comment. Move variables die, offset and error call to ...
647 (follow_die_ref): ... a new function.
648 (dwarf2_fetch_die_location_block): New function.
649 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
651 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
653 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
654 (dwarf_expr_tls_address): Use per_cu instead of objfile.
655 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
656 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
658 (struct needs_frame_baton): New field per_cu.
659 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
660 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
662 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
664 * cp-support.c (make_symbol_overload_list_namespace): Only search
665 static and global blocks.
666 (make_symbol_overload_list_block): New function.
667 (make_symbol_overload_list): Separate namespace search from block
669 (make_symbol_overload_list_qualified): Use
670 make_symbol_overload_list_block.
672 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
674 * value.h: Created oload_search_type enum.
675 (find_overload_match): Use oload_search_type enum.
676 * valops.c (find_overload_match): Support combined member and
678 * eval.c (evaluate_subexp_standard): Calls to
679 find_overload_match now use oload_search_type enum.
680 (oload_method_static): Verify index is a proper value.
681 * valarith.c (value_user_defined_cpp_op): Search for and handle
682 both member and non-member operators.
683 (value_user_defined_cpp_op): New function.
684 (value_user_defined_op): New function.
685 (value_x_unop): Use value_user_defined_op.
686 (value_x_binop): Ditto.
687 * cp-support.c (make_symbol_overload_list_using): Added block
689 Add check for namespace aliases and imported declarations.
691 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
693 * breakpoint.h (owner): Extend the comment.
695 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
697 Clear stale specific bp_location from former whole breakpoint.
698 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
700 (free_bp_location): ... here. Rename there the called function to
701 bpstat_remove_bp_location_callback.
702 (bpstat_remove_breakpoint_callback): Rename to ...
703 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
704 to struct bp_location. Change the called function to
705 bpstat_remove_bp_location. Create new declaration for the function.
706 (bpstat_remove_breakpoint): Rename to ...
707 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
708 code for the new parameter type.
710 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
712 * README: Make version-agnostic.
714 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
716 Fix duplicate types for single DIE.
717 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
719 (read_array_type): Remove type initialization. Recheck get_die_type
720 after initial die_type. Move set_die_type before set_descriptive_type.
721 (read_set_type): New variable domain_type. Recheck get_die_type after
722 initial die_type. Move attr initialization later.
723 (read_tag_pointer_type, read_tag_reference_type): New variable
724 target_type. Recheck get_die_type after initial die_type.
725 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
726 die_type and die_containing_type.
727 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
728 Recheck get_die_type after initial die_type.
729 (read_subrange_type): Recheck get_die_type after initial die_type.
730 Move set_die_type before set_descriptive_type.
731 (set_die_type): Extend the function comment. Call complaint if DIE has
732 some type already set.
734 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
736 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
737 for current naming of thread groups (iN, not N).
739 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
741 * ada-lang.c (ada_operator_length): Constify `struct expression'.
742 * parse.c (operator_length): Likewise.
743 (operator_length_standard): Likewise.
744 * parser-defs.h (operator_length): Likewise.
745 (operator_length_standard): Likewise.
746 (struct exp_descriptor <operator_length>): Likewise.
748 2010-06-04 Doug Evans <dje@google.com>
750 Add support for enabling/disabling individual pretty-printers.
751 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
752 * python/python-internal.h (gdbpy_enabled_cst): Declare.
753 * python/python.c (gdbpy_enabled_cst): Define.
754 (_initialize_python): Initialize gdbpy_enabled_cst.
757 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
759 * breakpoint.c (update_global_location_list): Fix comment typo.
761 2010-06-04 Hui Zhu <teawater@gmail.com>
763 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
765 2010-06-03 Doug Evans <dje@google.com>
767 * configure.ac: Don't fail if python is unusable when
768 configured with --with-python=auto.
769 * configure: Regenerate.
771 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
773 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
775 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
777 * valprint.h (get_array_bounds): Change low and high parameter types
779 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
781 (val_print_array_elements): Adapt to change above.
782 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
783 * p-valprint.c (pascal_val_print): Likewise.
785 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
787 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
788 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
791 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
793 Support DW_TAG_module as separate namespaces.
794 * dwarf2read.c (typename_concat): New parameter physname.
795 (read_module_type): New function and declaration.
796 (scan_partial_symbols): Scan also DW_TAG_module children.
797 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
798 to typename_concat backward compatible physname value 0.
799 (partial_die_full_name, read_namespace_type): Pass to typename_concat
800 backward compatible physname value 0.
801 (add_partial_module, read_module): Remove FIXME comment.
802 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
803 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
804 DIEs under DW_TAG_module.
805 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
806 DW_AT_MIPS_linkage_name first, extend it for language_fortran
807 && physname and return there instead of just setting NAME. Extend
808 the main block for language_fortran. Pass physname parameter to the
809 typename_concat call.
810 (read_import_statement, read_func_scope, get_scope_pc_bounds)
811 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
812 (new_symbol): Fill in cplus_specific.demangled_name if it is still
813 missing from SYMBOL_SET_NAMES in the language_fortran case.
814 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
816 (read_type_die) <DW_TAG_module>: New.
817 (MAX_SEP_LEN): Increase to 7.
818 (typename_concat): New parameter physname. New variable lead. Support
819 also language_fortran.
820 * f-exp.y (yylex): Consider : also as a symbol name character class.
821 * f-lang.c: Include cp-support.h.
822 (f_word_break_characters, f_make_symbol_completion_list): New functions.
823 (f_language_defn): Use cp_lookup_symbol_nonlocal,
824 f_word_break_characters and f_make_symbol_completion_list.
825 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
826 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
827 * symtab.c (symbol_init_language_specific): Support language_fortran.
828 (symbol_find_demangled_name): New comment on language_fortran.
829 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
830 for language_fortran.
831 (lookup_symbol_aux_local): Check imports also for language_fortran.
832 (default_make_symbol_completion_list): Rename to ...
833 (default_make_symbol_completion_list_break_on): ... this name. New
834 parameter break_on, use it.
835 (default_make_symbol_completion_list): New stub.
836 * symtab.h (default_make_symbol_completion_list_break_on): New
839 2010-06-02 Joel Brobecker <brobecker@adacore.com>
841 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
844 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
846 * dwarf2read.c (typename_concat): Add const to the variable sep.
848 2010-06-02 Tom Tromey <tromey@redhat.com>
850 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
851 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
852 type is const. Add 'def' argument. Add missing operators, remove
854 (decode_locdesc): Update.
855 (dwarf2_always_disassemble): New global.
856 (show_dwarf2_always_disassemble): New function.
857 (_initialize_dwarf2_read): Add always-disassemble.
858 (dwarf2_per_cu_offset_size): New function.
859 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
860 (piece_end_p): New function.
861 (locexpr_describe_location_piece): Replace 'size' argument with
862 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
863 some constants. Remove errors.
864 (disassemble_dwarf_expression): New function.
865 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
866 Add 'offset_size' argument.
867 (loclist_describe_location): Change output formatting.
868 * dwarf2expr.h (dwarf_stack_op_name): Declare.
870 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
872 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
875 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
877 * dwarf2read.c (read_subrange_type): Handle missing base type
878 according to Dwarf-2 specifications.
880 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
882 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
884 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
885 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
886 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
887 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
888 UNOP_CHMAX, UNOP_CHMIN.
889 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
890 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
891 UNOP_CHMIN>: Remove opcodes.
893 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
895 * dwarf2read.c (read_func_scope): Do not complain for
896 external function if bounds are not found.
898 2010-06-01 Pedro Alves <pedro@codesourcery.com>
900 * NEWS: Mention gdbserver fast tracepoints support.
902 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
904 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
906 (windows_set_console_info): New function.
907 (windows_create_inferior): Call windows_set_console_info
908 if NEW_CONSOLE is true.
909 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
910 (_initialize_loadable): Initialize GetConsoleFontSize and
911 GetCurrentConsoleFont.
913 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
915 * Makefile.in (RDYNAMIC): New.
916 (SFILES): Add proc-service.list.
917 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
918 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
919 * config/arm/linux.mh: Likewise.
920 * config/i386/linux.mh: Likewise.
921 * config/i386/linux64.mh: Likewise.
922 * config/ia64/linux.mh: Likewise.
923 * config/m32r/linux.mh: Likewise.
924 * config/m68k/linux.mh: Likewise.
925 * config/mips/linux.mh: Likewise.
926 * config/pa/linux.mh: Likewise.
927 * config/powerpc/linux.mh: Likewise.
928 * config/powerpc/ppc64-linux.mh: Likewise.
929 * config/s390/s390.mh: Likewise.
930 * config/sparc/linux.mh: Likewise.
931 * config/sparc/linux64.mh: Likewise.
932 * config/xtensa/linux.mh: Likewise.
933 * configure.ac: New RDYNAMIC on native host and GCC.
934 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
935 * configure: Regenerate.
936 * proc-service.list: New.
938 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
940 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
943 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
945 * linux-nat.c (linux_nat_wait_1): Do not call
946 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
947 TARGET_WAITKIND_SIGNALLED.
949 2010-05-27 Joel Brobecker <brobecker@adacore.com>
951 * ada-lang.c (ada_inferior_data): New struct.
952 (ada_inferior_data): New static global.
953 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
954 (ada_get_tsd_type): New functions.
955 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
956 to look the tsd type up.
957 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
958 event. Set ada_inferior_data.
960 2010-05-27 Pedro Alves <pedro@codesourcery.com>
962 * remote.c (unpack_varlen_hex): Remove forward declaration.
963 (remote_console_output): Make static, and add forward declaration.
964 * remote.h: Drop FIXME comment.
965 (unpack_varlen_hex): Declare.
966 (remote_console_output, remote_cisco_objfile_relocate)
967 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
969 * tracepoint.c: Include "remote.h".
970 (unpack_varlen_hex): Delete declaration.
972 2010-05-27 Tom Tromey <tromey@redhat.com>
974 * dwarf2loc.c (struct piece_closure) <refc>: New field.
975 (allocate_piece_closure): Initialize refc.
976 (copy_pieced_value_closure): Use refc.
977 (free_pieced_value_closure): Likewise.
979 2010-05-27 Tom Tromey <tromey@redhat.com>
981 * arm-tdep.c (push_stack_item): 'contents' now const.
982 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
983 value_contents_writeable. Introduce new temporary.
985 2010-05-27 Tom Tromey <tromey@redhat.com>
987 * findcmd.c (parse_find_args): Use value_contents, not
990 2010-05-27 Tom Tromey <tromey@redhat.com>
992 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
993 const. Use value_contents, not value_contents_writeable.
995 2010-05-27 Joel Brobecker <brobecker@adacore.com>
997 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
998 by call to value_contents.
1000 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1002 * MAINTAINERS: Add myself for write after approval privileges.
1004 2010-05-26 Doug Evans <dje@google.com>
1006 Allow python to find its files if moved from original location.
1007 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1008 (GDB_AC_WITH_DIR): Call it.
1009 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1010 python installation directory.
1011 * config.in: Regenerate.
1012 * configure: Regenerate.
1013 * defs.h (python_libdir): Declare.
1014 * main.c (python_libdir): Define.
1015 (captured_main): Initialize python_libdir.
1016 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1017 call Py_SetProgramName to make sure python can find its libraries
1020 * configure.ac: Try to use python's distutils to fetch compilation
1022 * configure: Regenerate.
1023 * python/python-config.py: New file.
1025 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1027 * ser-tcp.c (net_open): Check error return from socket() call by its
1028 equality to -1 not by it being negative.
1029 (net_close): Likewise.
1031 2010-05-26 Pedro Alves <pedro@codesourcery.com>
1033 * NEWS: Mention the `qRelocInsn' feature.
1034 * gdbarch.sh (relocate_instruction): New.
1035 * amd64-tdep.c (rip_relative_offset): New.
1036 (append_insns): New.
1037 (amd64_relocate_instruction): New.
1038 (amd64_init_abi): Install it.
1039 * i386-tdep.c (append_insns): New.
1040 (i386_relocate_instruction): New.
1041 (i386_gdbarch_init): Install it.
1042 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1043 * gdbarch.h, gdbarch.c: Regenerate.
1045 2010-05-26 Tom Tromey <tromey@redhat.com>
1047 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1048 (struct dwarf2_loclist_baton) <data>: Likewise.
1049 * dwarf2loc.c (find_location_expression): Constify return type.
1050 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1051 (dwarf2_loc_desc_needs_frame): Likewise.
1052 (loclist_read_variable): Constify.
1053 (loclist_describe_location): Likewise.
1054 (loclist_tracepoint_var_ref): Likewise.
1056 2010-05-25 Tom Tromey <tromey@redhat.com>
1058 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1059 (dwarf_expr_frame_base_1): Likewise.
1060 (read_pieced_value): Update.
1061 (needs_frame_frame_base): Constify.
1062 (dwarf2_tracepoint_var_loc): Likewise.
1063 (dwarf2_tracepoint_var_access): Likewise.
1064 (locexpr_describe_location_piece): Likewise.
1065 (locexpr_describe_location_1): Likewise.
1066 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1069 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1070 (dwarf_expr_eval, read_uleb128, read_sleb128)
1071 (dwarf2_read_address): Update.
1072 * dwarf2expr.c (dwarf_expr_eval): Constify.
1073 (read_uleb128): Likewise.
1074 (read_sleb128): Likewise.
1075 (dwarf2_read_address): Likewise.
1076 (require_composition): Likewise.
1077 (execute_stack_op): Likewise.
1078 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1080 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1082 (no_get_frame_base): Constify.
1083 (execute_stack_op): Likewise.
1084 (execute_cfa_program): Likewise.
1085 (read_encoded_value): Likewise.
1087 2010-05-25 Doug Evans <dje@google.com>
1089 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1091 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1092 * event-loop.c: ... here.
1093 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1094 `error' for clarity.
1095 (tui_getc): Pass correct value for `error' parameter to
1096 tui_readline_output.
1098 Add python gdb.GdbError and gdb.string_to_argv.
1099 * NEWS: Document them.
1100 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1101 the exception is gdb.GdbError. Print a second traceback if there's
1102 an error computing the error message.
1103 (gdbpy_string_to_argv): New function.
1104 * python/py-utils.c (gdbpy_obj_to_string): New function.
1105 (gdbpy_exception_to_string): New function.
1106 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1107 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1108 (gdbpy_gdberror_exc): Declare.
1109 * python/python.c (gdbpy_gdberror_exc): New global.
1110 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1112 (GdbMethods): Add string_to_argv.
1114 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1116 * windows-nat.c (display_selector): Call GetLastError to give better
1117 failure explanation.
1119 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1121 * config.in: Regenerate.
1123 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1126 * target.c (push_target): Return only void. Remove the return value
1128 * target.h (push_target): Return only void.
1130 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1132 Update gnulib from latest git.
1133 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1135 * gnulib/memcmp.c: Removed.
1136 * gnulib/memchr.valgrind: New.
1137 * gnulib/stddef.in.h: New.
1138 * gnulib/Makefile.am: Updated.
1139 * gnulib/memchr.c: Updated.
1140 * gnulib/memmem.c: Updated.
1141 * gnulib/stdint.in.h: Updated.
1142 * gnulib/str-two-way.h: Updated.
1143 * gnulib/string.in.h: Updated.
1144 * gnulib/wchar.in.h: Updated.
1146 * gnulib/extra/link-warning.h: Removed.
1147 * gnulib/extra/c++defs.h: New.
1148 * gnulib/extra/warn-on-use.h: New.
1149 * gnulib/extra/arg-nonnull.h: Updated.
1151 * gnulib/m4/extensions.m4: Updated.
1152 * gnulib/m4/gnulib-cache.m4: Updated.
1153 * gnulib/m4/gnulib-common.m4: Updated.
1154 * gnulib/m4/gnulib-comp.m4: Updated.
1155 * gnulib/m4/gnulib-tool.m4: Updated.
1156 * gnulib/m4/include_next.m4: Updated.
1157 * gnulib/m4/longlong.m4: Updated.
1158 * gnulib/m4/memchr.m4: Updated.
1159 * gnulib/m4/memmem.m4: Updated.
1160 * gnulib/m4/stdint.m4: Updated.
1161 * gnulib/m4/string_h.m4: Updated.
1162 * gnulib/m4/memcmp.m4: Removed.
1163 * gnulib/m4/onceonly_2_57.m4: Removed.
1164 * gnulib/m4/00gnulib.m4: New.
1165 * gnulib/m4/mmap-anon.m4: New.
1166 * gnulib/m4/multiarch.m4: New.
1167 * gnulib/m4/onceonly.m4: New.
1168 * gnulib/m4/stddef_h.m4: New.
1169 * gnulib/m4/warn-on-use.m4: New.
1170 * gnulib/m4/wchar.m4: Removed.
1171 * gnulib/m4/wchar_h.m4: New.
1172 * gnulib/m4/wchar_t.m4: New.
1173 * gnulib/m4/wint_t.m4: New.
1175 * aclocal.m4: Regenerate.
1176 * config.in: Likewise.
1177 * configure: Likewise.
1178 * gnulib/Makefile.in: Likewise.
1180 2010-05-21 Tom Tromey <tromey@redhat.com>
1182 * dwarf2loc.c (extract_bits_primitive): New function.
1183 (extract_bits): Likewise.
1184 (insert_bits): Likewise.
1185 (copy_bitwise): Likewise.
1186 (read_pieced_value): Do all operations in bits.
1187 (write_pieced_value): Likewise.
1188 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1189 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1190 Always use xrealloc to resize piece array.
1191 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1192 <DW_OP_piece>: Update.
1193 <DW_OP_bit_piece>: New case.
1195 2010-05-21 Tom Tromey <tromey@redhat.com>
1197 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1198 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1199 * dwarf2expr.h (enum dwarf_value_location)
1200 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1201 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1202 (add_piece): Handle empty piece.
1203 (execute_stack_op) <DW_OP_piece>: Handle
1204 DWARF_VALUE_OPTIMIZED_OUT.
1206 2010-05-21 Tom Tromey <tromey@redhat.com>
1208 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1209 evaluate_subexp, not evaluate_subexp_with_coercion.
1211 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1213 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1216 2010-05-21 Tom Tromey <tromey@redhat.com>
1218 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1220 (write_pieced_value): Likewise.
1222 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1224 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1225 and DW_TAG_volatile_type.
1226 (new_symbol): Likewise.
1228 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1230 * p-valprint.c (pascal_val_print): Call get_array_bounds
1231 to obtain the number of elements in an array.
1233 2010-05-19 Doug Evans <dje@google.com>
1235 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1237 * python.c (source_python_script): Add comment.
1238 (source_python_script_for_objfile): Remove unnecessary call to
1241 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1242 Sergio Durigan Junior <sergiodj@redhat.com>
1245 * parse.c (exp_iterate): Use operator_length wrapper function.
1247 2010-05-18 Michael Snyder <msnyder@vmware.com>
1249 * ada-lang.c: White space.
1250 * ada-typeprint.c: White space.
1251 * ada-valprint.c: White space.
1252 * addrmap.c: White space.
1253 * auxv.c: White space.
1254 * ax-gdb.c: White space.
1256 2010-05-18 Hui Zhu <teawater@gmail.com>
1258 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1260 (inferior_call_waitpid): Move make_cleanup out of check.
1261 Check the return of waitpid.
1262 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1264 2010-05-17 Michael Snyder <msnyder@vmware.com>
1266 * tui/tui.c: White space.
1267 * tui/tui-data.c: White space.
1268 * tui/tui-disasm.c: White space.
1269 * tui/tui-file.c: White space.
1270 * tui/tui-interp.c: White space.
1271 * tui/tui-main.c: White space.
1272 * tui/tui-out.c: White space.
1273 * tui/tui-regs.c: White space.
1274 * tui/tui-source.c: White space.
1275 * tui/tui-stack.c: White space.
1276 * tui/tui-win.c: White space.
1277 * tui/tui-winsource.c: White space.
1279 * procfs.c: White space.
1281 * python/py-auto-load.c: White space.
1282 * python/py-block.c: White space.
1283 * python/py-breakpoint.c: White space.
1284 * python/py-cmd.c: White space.
1285 * python/py-function.c: White space.
1286 * python/py-lazy-string.c: White space.
1287 * python/py-objfile.c: White space.
1288 * python/py-param.c: White space.
1289 * python/py-prettyprint.c: White space.
1290 * python/py-progspace.c: White space.
1291 * python/py-symtab.c: White space.
1292 * python/python.c: White space.
1293 * python/py-type.c: White space.
1294 * python/py-utils.c: White space.
1295 * python/py-value.c: White space.
1297 * mi/mi-cmd-break.c: White space.
1298 * mi/mi-cmd-env.c: White space.
1299 * mi/mi-cmds.c: White space.
1300 * mi/mi-cmd-stack.c: White space.
1301 * mi/mi-cmd-var.c: White space.
1302 * mi/mi-console.c: White space.
1303 * mi/mi-getopt.c: White space.
1304 * mi/mi-interp.c: White space.
1305 * mi/mi-main.c: White space.
1306 * mi/mi-out.c: White space.
1307 * mi/mi-parse.c: White space.
1309 * cli/cli-cmds.c: White space.
1310 * cli/cli-decode.c: White space.
1311 * cli/cli-dump.c: White space.
1312 * cli/cli-interp.c: White space.
1313 * cli/cli-logging.c: White space.
1314 * cli/cli-script.c: White space.
1315 * cli/cli-setshow.c: White space.
1317 * valarith.c: White space.
1318 * valops.c: White space.
1319 * valprint.c: White space.
1320 * value.c: White space.
1321 * varobj.c: White space.
1322 * xcoffread.c: White space.
1323 * xml-support.c: White space.
1324 * xml-tdesc.c: White space.
1326 2010-05-17 Andreas Schwab <schwab@redhat.com>
1329 * c-lang.c (c_printstr): Compute real length of NUL terminated
1332 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1334 * parse.c (parse_exp_in_context): When block is not NULL, use
1335 its associated language to parse the expression instead of
1336 the current_language.
1338 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1340 * jv-lang.c (java_lookup_class): Remove commented out code.
1341 (type_from_class): Likewise.
1342 (java_op_print_tab): Remove commented-out elements.
1344 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1346 * ada-lang.c (to_fixed_range_type): The the raw index type as
1347 argument instead of the raw type name. Remove orig_type parameter.
1348 Update calls throughout.
1349 (ada_fixup_array_indexes_type): New function.
1350 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1351 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1352 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1353 Remove name parameter.
1354 (print_array_type): Add call to ada_fixup_array_indexes_type.
1355 Update calls to print_range_type.
1356 (ada_print_type): Update calls to print_range_type.
1358 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1360 * dwarf2read.c (read_set_type): Set type length if
1361 DW_AT_byte_size attribute is present.
1363 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1365 * p-valprint.c (pascal_val_print): Handle set type if range limits
1366 are undefined but size is known.
1368 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1370 * procfs.c: Reformat.
1372 2010-05-16 Michael Snyder <msnyder@vmware.com>
1374 * target.c: White space.
1375 * target-descriptions.c: White space.
1376 * target-memory.c: White space.
1377 * thread.c: White space.
1378 * top.c: White space.
1379 * tracepoint.c: White space.
1380 * trad-frame.c: White space.
1381 * tramp-frame.c: White space.
1382 * ui-file.c: White space.
1383 * ui-out.c: White space.
1384 * user-regs.c: White space.
1385 * utils.c: White space.
1387 * scm-exp.c: White space.
1388 * scm-lang.c: White space.
1389 * scm-valprint.c: White space.
1390 * sentinel-frame.c: White space.
1391 * ser-base.c: White space.
1392 * ser-go32.c: White space.
1393 * serial.c: White space.
1394 * ser-mingw.c: White space.
1395 * ser-pipe.c: White space.
1396 * ser-tcp.c: White space.
1397 * ser-unix.c: White space.
1398 * solib.c: White space.
1399 * solib-darwin.c: White space.
1400 * solib-frv.c: White space.
1401 * solib-irix.c: White space.
1402 * solib-osf.c: White space.
1403 * solib-pa64.c: White space.
1404 * solib-som.c: White space.
1405 * solib-spu.c: White space.
1406 * solib-svr4.c: White space.
1407 * solib-target.c: White space.
1408 * source.c: White space.
1409 * stabsread.c: White space.
1410 * stack.c: White space.
1411 * std-regs.c: White space.
1412 * symfile.c: White space.
1413 * symmisc.c: White space.
1414 * symtab.c: White space.
1416 2010-05-16 Michael Snyder <msnyder@vmware.com>
1418 * source.c (_initialize_source): Add "rev" as an abbreviation
1419 for the "reverse-search" command.
1421 2010-05-16 Michael Snyder <msnyder@vmware.com>
1423 * record.c: White space.
1424 * regcache.c: White space.
1425 * reggroups.c: White space.
1426 * remote-fileio.c: White space.
1427 * remote-m32r-sdi.c: White space.
1428 * remote-mips.c: White space.
1429 * remote-sim.c: White space.
1430 * remote.c: White space.
1431 (process_g_packet): Remove orphan braces.
1433 2010-05-15 Michael Snyder <msnyder@vmware.com>
1435 * parse.c: White space.
1436 * p-lang.c: White space.
1437 * posix-hdep.c: White space.
1438 * printcmd.c: White space.
1439 * progspace.c: White space.
1440 * prologue-value.c: White space.
1441 * psymtab.c: White space.
1442 * p-typeprint.c: White space.
1443 * p-valprint.c: White space.
1445 * objc-lang.c: White space.
1446 * objfiles.c: White space.
1447 * observer.c: White space.
1448 * osabi.c: White space.
1449 * osdata.c: White space.
1451 * m2-lang.c: White space.
1452 * m2-valprint.c: White space.
1453 * macrocmd.c: White space.
1454 * macroexp.c: White space.
1455 * macroscope.c: White space.
1456 * macrotab.c: White space.
1457 * main.c: White space.
1458 * maint.c: White space.
1459 * mdebugread.c: White space.
1460 * memattr.c: White space.
1461 * minsyms.c: White space.
1462 * monitor.c: White space.
1464 2010-05-14 Michael Snyder <msnyder@vmware.com>
1466 * jv-lang.c: White space.
1467 * jv-typeprint.c: White space.
1468 * jv-valprint.c: White space.
1469 * language.c: White space.
1470 * libunwind-frame.c: White space.
1471 * linespec.c: White space.
1472 * linux-nat.c: White space.
1473 * linux-record.c: White space.
1474 * linux-thread-db.c: White space.
1476 * infcall.c: White space.
1477 * inf-child.c: White space.
1478 * infcmd.c: White space.
1479 * inferior.c: White space.
1480 * inf-loop.c: White space.
1481 * inflow.c: White space.
1482 * inline-frame.c: White space.
1483 * interps.c: White space.
1485 * gcore.c: White space.
1486 * gdb.c: White space.
1487 * gdbtypes.c: White space.
1488 * gnu-nat.c: White space.
1489 * gnu-v2-abi.c: White space.
1490 * gnu-v3-abi.c: White space.
1492 * findcmd.c: White space.
1493 * findvar.c: White space.
1494 * fork-child.c: White space.
1495 * frame-base.c: White space.
1496 * frame.c: White space.
1497 * frame-unwind.c: White space.
1498 * f-valprint.c: White space.
1500 * elfread.c: White space.
1501 * environ.c: White space.
1502 * eval.c: White space.
1503 * event-loop.c: White space.
1504 * event-top.c: White space.
1505 * exceptions.c: White space.
1506 * exec.c: White space.
1507 * expprint.c: White space.
1509 * dbxread.c: White space.
1510 * dcache.c: White space.
1511 * disasm.c: White space.
1512 * doublest.c: White space.
1513 * dsrec.c: White space.
1514 * dummy-frame.c: White space.
1515 * dwarf2expr.c: White space.
1516 * dwarf2-frame.c: White space.
1517 * dwarf2loc.c: White space.
1518 * dwarf2read.c: White space.
1520 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1524 * python/py-value.c (valpy_hash): New function.
1525 (value_object_type): Register valpy_hash.
1527 2010-05-14 Hui Zhu <teawater@gmail.com>
1528 Michael Snyder <msnyder@vmware.com>
1530 * linux-fork.c (gdbthread.h): New include.
1531 (fork_info): Add parent_ptid.
1532 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1534 (delete_checkpoint_command): Call inferior_call_waitpid.
1535 (checkpoint_command): Set parent_ptid.
1537 2010-05-13 Michael Snyder <msnyder@vmware.com>
1539 * dictionary.c: Re-indent to GNU coding standard.
1541 * charset.c: White space.
1542 * c-lang.c: White space.
1543 * cli-out.c: White space.
1544 * coffread.c: White space.
1545 * complaints.c: White space.
1546 * completer.c: White space.
1547 * corefile.c: White space.
1548 * corelow.c: White space.
1549 * cp-abi.c: White space.
1550 * cp-namespace.c: White space.
1551 * cp-support.c: White space.
1552 * cp-valprint.c: White space.
1553 * c-typeprint.c: White space.
1554 * c-valprint.c: White space.
1555 * blockframe.c: White space.
1556 * breakpoint.c: White space.
1557 * buildsym.c: White space.
1558 * blockframe.c: White space.
1559 * bcache.c: White space.
1560 * gdbarch.sh: White space, add blank lines.
1561 * arch-utils.c: Ditto.
1562 * gdbarch.c: Regenerate.
1563 * frame.c: White space, add blank lines.
1564 * stack.c: White space, add blank lines.
1565 (initialize_stack): Remove long-dead code.
1567 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1570 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1571 (locexpr_read_variable, loclist_read_variable): Update the callers.
1573 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1576 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1577 Remove check of NULL returned by tag_type_to_type.
1578 (die_containing_type): Remove variable type. Remove type_die variable
1579 initialization. Remove check of NULL returned by tag_type_to_type.
1581 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1584 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1585 names of unnamed structures or unions.
1587 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1589 * procfs.c (proc_watchpoint_address): New function.
1590 (procfs_stopped_by_watchpoint): Remove useless check after
1591 find_procinfo_or_die call.
1592 (procfs_stopped_data_address): New function.
1593 (procfs_use_watchpoints): Register new watchpoint related function.
1595 2010-05-11 Tom Tromey <tromey@redhat.com>
1597 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1599 2010-05-10 Michael Snyder <msnyder@vmware.com>
1601 * utils.c: White space cleanup.
1603 2010-05-10 Tom Tromey <tromey@redhat.com>
1605 * eval.c (ptrmath_type_p): Add 'lang' argument.
1606 (evaluate_subexp_standard): Update.
1607 (evaluate_subexp_with_coercion): Update.
1608 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1610 2010-05-10 Michael Snyder <msnyder@vmware.com>
1612 * utils.c (do_fclose_cleanup) Restore local variable.
1614 2010-05-09 Doug Evans <dje@google.com>
1616 * record.c (init_record_core_ops): Rename record_core to record-core.
1618 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1620 Implement task switching on pa-hpux.
1621 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1622 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1624 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1626 * valops.c (find_overload_match): Add missing i18n markup.
1628 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1630 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1632 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1634 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1635 list for the obconcat call.
1636 * mdebugread.c (parse_symbol): Likewise.
1637 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1639 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1640 New variable ap. Remove variables len and val.
1641 * symfile.h (obconcat): Likewise for the prototype.
1643 2010-05-07 Michael Snyder <msnyder@vmware.com>
1645 * python/python.c (execute_gdb_command): Remove unused variables.
1646 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1647 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1648 Remove unused variable.
1649 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1650 (cmdpy_completer): Remove unused variable.
1651 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1652 * python/py-function.c (fnpy_call): Remove unused variable.
1653 * python/py-objfile.c (objfile_to_objfile_object):
1654 Remove unused variable.
1655 * python/py-param.c (parmpy_init): Remove unused variable.
1656 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1657 Remove unused variable.
1658 (gdbpy_default_visualizer): Remove unused variable.
1659 * python/py-progspace.c (pspace_to_pspace_object):
1660 Remove unused variable.
1661 * python/py-symtab.c (symtab_and_line_to_sal_object):
1662 Remove unused variable.
1663 * python/py-type.c (typy_template_argument):
1664 Remove unused variable.
1665 * python/py-value.c (valpy_string): Remove unused variable.
1666 (convert_value_from_python): Remove unused variables.
1668 2010-05-07 Michael Snyder <msnyder@vmware.com>
1670 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1671 and use it to compute variable 't1'.
1673 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1675 * ada-lang.c (assign_aggregate): Remove unused variable.
1677 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1680 * valops.c (find_overload_match): Handle fsym == NULL case.
1681 Add int no_adl argument.
1682 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1684 Add int no_adl argument.
1685 (find_oload_champ_namespace): Add int no_adl argument.
1686 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1688 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1689 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1690 Evaluate arguments and use them to perform ADL lookup.
1691 Pass no_adl argument to find_overload_match.
1692 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1693 * cp-support.h: Added prototype for
1694 make_symbol_overload_list_namespace.
1695 * cp-support.c (make_symbol_overload_list_namespace): New function.
1696 (make_symbol_overload_list_adl_namespace): New function.
1697 (make_symbol_overload_list_adl): New function.
1698 (make_symbol_overload_list_using): Moved code to add function to
1699 overload set to make_symbol_overload_list_namespace.
1700 * c-exp.y: create UNKNOWN_CPP_NAME token.
1701 Add parse rule for ADL functions.
1702 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1704 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1706 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1709 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1711 Implement task switching on solaris targets.
1712 * sol-thread.c (thread_db_find_thread_from_tid)
1713 (sol_get_ada_task_ptid): New functions.
1714 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1716 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1718 * remote.c (remote_query_supported_append): Use reconcat.
1719 (remote_query_supported): Install a cleanup. Use reconcat.
1721 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1723 * gdbarch.sh (qsupported): Delete.
1724 * gdbarch.h, gdbarch.c: Regenerate.
1725 * remote.c (remote_query_supported): Remove use of
1728 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1730 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1733 2010-05-06 Michael Snyder <msnyder@vmware.com>
1735 * xml-support.c (xinclude_start_include): Delete unused variable.
1736 (xml_process_xincludes): Delete unused variable.
1737 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1738 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1739 (tdesc_find_arch_register): Delete unused variable.
1740 (tdesc_use_registers): Delete unused variable.
1741 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1742 * inferior.c (print_inferior): Delete unused variable.
1743 * record.c (record_open_1): Delete unused variable.
1744 (record_restore): Delete unused variable.
1745 (cmd_record_save): Delete unused variable.
1746 * gcore.c (derive_heap_segment): Delete unused variable.
1747 (objfile_find_memory_regions): Use unused variable.
1748 * jit.c (jit_inferior_init): Delete unused variable.
1749 * progspace.c (clone_program_space): Delete unused variable.
1750 (pspace_empty_p): Delete unused variable.
1752 * frame-unwind.c (frame_unwind_find_by_frame):
1753 Delete unused variable.
1754 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1755 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1756 (method_name_from_physname): Delete unused variable.
1757 (cp_func_name): Delete unused variable.
1758 (cp_validate_operator): Delete unused variable.
1759 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1760 Delete unused variable.
1761 * trad-frame.c (trad_frame_get_prev_register):
1762 Delete unused variable.
1763 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1765 * serial.c (serial_for_fd): Delete unused variable.
1766 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1767 * top.c (execute_command): Delete unused variable.
1768 (init_main): Delete unused variable.
1769 * utils.c (do_fclose_cleanup): Delete unused variable.
1770 (do_all_inferior_continuations): Delete unused variable.
1771 (initialize_utils): Delete unused variable.
1772 (internal_problem_mode): Delete unused global.
1773 * frame.c (get_prev_frame): Delete unused global.
1774 (get_frame_locals_address): Delete unused global.
1775 (get_frame_args_address): Delete unused global.
1777 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1778 (pascal_type_print_varspec_prefix): Delete unused variable.
1779 * f-typeprint.c (f_type_print_base): Delete unused variable.
1780 (f_type_print_varspec_suffix): Delete unused variable.
1781 * m2-typeprint.c (m2_print_type): Delete unused variable.
1782 (m2_long_set): Delete unused variable.
1783 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1784 * d-valprint.c (dynamic_array_type): Delete unused variable.
1785 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1786 Delete unused variable.
1787 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1788 * m2-valprint.c (m2_val_print): Delete unused variable.
1790 * ui-out.c (ui_out_field_int): Delete unused variable.
1791 (ui_out_field_fmt_int): Delete unused variable.
1792 * varobj.c (varobj_list_children): Delete unused variable.
1793 (varobj_set_value): Delete unused variable.
1794 (install_new_value_visualizer): Delete unused variable.
1795 (varobj_set_visualizer): Delete unused variable.
1796 (varobj_update): Delete unused variable.
1797 (varobj_editable_p): Delete unused variable.
1798 (c_value_of_root): Delete unused variable.
1799 (cplus_describe_child): Delete unused variable.
1801 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1802 (decode_constrained_packed_array_type): Delete unused variable.
1803 (add_defn_to_vec): Delete unused variable.
1804 (symbol_completion_match): Delete unused variable.
1805 (value_tag_from_contents_and_address): Delete unused variable.
1806 (ada_evaluate_subexp): Delete unused variable.
1807 * c-lang.c (classify_type): Delete unused variable.
1808 * f-lang.c (f_printstr): Delete unused variable.
1809 * objc-lang.c (objc_printstr): Delete unused variable.
1810 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1811 * jv-lang.c (type_from_class): ifdef unused variable.
1812 (java_class_name_from_physname): Delete unused variable.
1813 * m2-lang.c (m2_printstr): Delete unused variable.
1815 * objfiles.c (objfile_relocate): Delete unused variable.
1816 * maint.c (_initialize_maint_cmds): Delete unused variable.
1817 * demangle.c (_initialize_demangler): Delete unused variable.
1818 * corefile.c (reopen_exec_file): Delete unused variable.
1819 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1820 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1822 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1823 * memattr.c (mem_delete): Delete unused variable.
1824 (invalidate_target_mem_regions): Delete unused variable.
1825 * mem-break.c (default_memory_insert_breakpoint):
1826 Delete unused variable.
1827 * target.c (target_get_osdata): Delete unused variable.
1828 * parse.c (length_of_subexp): Delete unused variable.
1829 (prefixify_subexp): Delete unused variable.
1830 (exp_iterate): Delete unused variable.
1831 * reverse.c (delete_bookmark_command): Delete unused variable.
1833 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1834 * macroexp.c (gather_arguments): Delete unused variable.
1835 (substitute_args): Delete unused variable.
1836 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1837 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1838 (_initialize_gdbarch): Delete unused variable.
1839 * gdbarch.c, gdbarch.h: Regenerate.
1840 * arch-utils.c (initialize_current_architecture):
1841 Delete unused variable.
1842 (_initialize_gdbarch_utils): Delete unused variable.
1843 * gdbtypes.c (make_cv_type): Delete unused variable.
1844 (make_type_with_address_space): Delete unused variable.
1846 * linespec.c (decode_compound): Delete unused variable.
1847 * dictionary.c (iterator_next_hashed): Delete unused variable.
1848 * infcall.c (call_function_by_hand): Delete unused variable.
1849 * infcmd.c (step_1): Delete unused variable.
1850 (registers_info): Delete unused variable.
1851 (attach_command): Delete unused variable.
1852 * infrun.c (follow_exec): Delete unused variable.
1853 (handle_step_into_function_backwards): Delete unused variable.
1854 (_initialize_infrun): Delete unused variable.
1855 * stack.c (parse_frame_specification_1): Delete unused variable.
1856 (frame_info): Delete unused variable.
1857 (backtrace_command_1): Delete unused variable.
1858 (catch_info): Delete unused variable.
1860 * eval.c (evaluate_subexp_standard): Delete unused variable.
1861 * valops.c (value_cast_pointers): Delete unused variable.
1862 (value_dynamic_cast): Delete unused variable.
1863 (value_array): Delete unused variable.
1864 (find_overload_match): Delete unused variable.
1865 * valarith.c (value_subscript): Delete unused variable.
1866 (value_binop): Delete unused variable.
1867 * valprint.c (_initialize_valprint): Delete unused variable.
1868 * printcmd.c (print_command_1): Delete unused variable.
1869 (address_info): Delete unused variable.
1870 (printf_command): Delete unused variable.
1872 * auxv.c (target_auxv_search): Delete unused variable.
1873 * blockframe.c (get_frame_block): Delete unused variable.
1874 * regcache.c (regcache_cpy): Delete unused variable.
1875 (regcache_cpy_no_passthrough): Delete unused variable.
1876 * charset.c (wchar_iterate): Delete unused variable.
1877 (find_charset_names): Delete unused variable.
1878 (_initialize_charset): Delete unused variable.
1879 * disasm.c (do_mixed_source_and_assembly):
1880 Delete unused variable.
1881 * source.c (set_default_source_symtab_and_line):
1882 Delete unused variable.
1883 (set_substitute_path_command): Delete unused variable.
1884 * value.c (preserve_values): Delete unused variable.
1885 (value_from_double): Delete unused variable.
1887 2010-05-05 Michael Snyder <msnyder@vmware.com>
1889 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1890 (find_last_source_symtab_from_partial): Delete unused variable.
1891 * symfile.c (place_section): Delete unused variable.
1892 (default_symfile_offsets): Delete unused variable.
1893 (get_debug_link_info): Delete unused variable.
1894 (find_separate_debug_file_by_debuglink): Delete unused variable.
1895 (add_symbol_file_command): Delete unused variable.
1896 (symfile_find_segment_sections): Delete unused variable.
1897 * symmisc.c (free_symtab): Delete unused variable.
1898 (dump_symtab_1): Delete unused variable.
1899 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1900 (find_pc_sect_symtab): Delete unused variable.
1901 (skip_prologue_using_lineinfo): Delete unused variable.
1902 (sources_info): Delete unused variable.
1903 (completion_list_add_name): Delete unused variable.
1904 (expand_line_sal): Delete unused variable.
1906 * breakpoint.c (validate_commands_for_breakpoint):
1907 Delete unused variables.
1908 (insert_catchpoint): Delete unused variable.
1909 (update_watchpoint): Delete unused variable.
1910 (insert_bp_location): Delete unused variable.
1911 (insert_breakpoint_locations): Delete unused variable.
1912 (remove_breakpoint_1): Delete unused variable.
1913 (software_breakpoint_inserted_here_p): Delete unused variable.
1914 (watchpoints_triggered): Delete unused variable.
1915 (bpstat_check_watchpoint): Delete unused variable.
1916 (bpstat_stop_status): Delete unused variable.
1917 (print_one_breakpoint_location): Delete unused variable.
1918 (allocate_bp_location): Delete unused variable.
1919 (create_breakpoint): Delete unused variable.
1920 (watch_command_1): Delete unused variable.
1921 (catch_exception_command_1): Delete unused variable.
1922 (catch_ada_exception_command): Delete unused variable.
1923 (delete_breakpoint): Delete unused variable.
1924 (breakpoint_re_set_one): Delete unused variable.
1925 (do_enable_breakpoint): Delete unused variable.
1927 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1929 * amd64-tdep.c: Include disasm.h.
1930 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1931 (amd64_insn_length): Moved to disasm.c and renamed.
1932 (fixup_riprel): Adjust.
1933 * disasm.c (do_ui_file_delete): New.
1934 (gdb_insn_length): New.
1935 (gdb_buffered_insn_length_fprintf)
1936 (gdb_buffered_insn_length_init_dis)
1937 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1939 * disasm.h (gdb_insn_length): Declare.
1940 (gdb_buffered_insn_length): Declare.
1942 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1944 * remote.c (clear_threads_parsing_context): New.
1945 (remote_threads_info): Delete unused null_cleanup. Install a
1946 cleanup to clear the threads_parsing_context in case parsing
1949 2010-05-05 Michael Snyder <msnyder@vmware.com>
1951 * c-exp.y (parse_string_or_char): Delete unused variable.
1952 (c_lex): Delete unused variable.
1953 * cp-name-parser.y (cpname_lex): Delete unused variable.
1954 * ada-exp.y (find_primitive_type): Delete unused variable.
1955 (write_var_or_type): Delete unused variable.
1956 * jv-exp.y (java_parse): Delete unused variable.
1957 (push_expression_name): Delete unused variable.
1958 * p-exp.y (pascal_lex): Delete unused variable.
1960 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1962 * remote.c (remote_threads_info): Really revert previous previous
1965 2010-05-05 Michael Snyder <msnyder@vmware.com>
1967 * elfread.c (elf_symtab_read): Delete unused variable.
1968 (find_separate_debug_file_by_buildid): Delete unused variables.
1969 (elf_symfile_read): Delete unused variable.
1971 * coffread.c (coff_symfile_read): Delete unused variables.
1973 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1974 (read_pe_exported_syms): Delete unused variable.
1976 * stabsread.c (define_symbol): Delete unused variable.
1978 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1979 (process_psymtab_comp_unit): Delete unused variable.
1980 (dwarf2_build_psymtabs_hard): Delete unused variable.
1981 (load_partial_comp_unit): Delete unused variable.
1982 (create_all_comp_units): Delete unused variable.
1983 (scan_partial_symbols): Delete unused variable.
1984 (add_partial_symbol): Delete unused variable.
1985 (add_partial_namespace): Delete unused variable.
1986 (add_partial_enumeration): Delete unused variable.
1987 (load_full_comp_unit): Delete unused variable.
1988 (process_full_comp_unit): Delete unused variable.
1989 (read_file_scope): Delete unused variable.
1990 (read_type_unit_scope): Delete unused variable.
1991 (process_structure_scope): Delete unused variable.
1992 (process_enumeration_scope): Delete unused variable.
1993 (read_tag_ptr_to_member_type): Delete unused variable.
1994 (read_typedef): Delete unused variable.
1995 (read_partial_die): Delete unused variable.
1996 (decode_locdesc): Delete unused variable.
1997 (zeroed_partial_die): Delete unused global variable.
1999 * tui/tui-interp.c (_initialize_tui_interp):
2000 Delete unused variable.
2001 * tui/tui-regs.c tui_display_registers_from):
2002 Delete unused variable.
2003 (tui_check_register_values): Delete unused variable.
2004 (tui_register_format): Delete unused variable.
2005 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2006 * tui/tui-windata.c (tui_display_data_from_line):
2007 Delete unused variables.
2008 (tui_vertical_data_scroll): Delete unused variables.
2010 2010-05-05 Michael Snyder <msnyder@vmware.com>
2012 * remote.c (remote_threads_info): Revert questionable part of
2013 the previous change.
2015 2010-05-05 Michael Snyder <msnyder@vmware.com>
2017 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2018 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2019 (mi_cmd_var_list_children): Delete unused variable.
2020 (varobj_update_one): Delete unused variable.
2021 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2022 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2023 Delete unused variable.
2024 (mi_cmd_stack_list_variables): Delete unused variable.
2025 (list_args_or_locals): Delete unused variable.
2026 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2027 Delete unused variables.
2028 (mi_cmd_file_list_exec_source_files): Delete unused variable.
2029 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2030 Delete unused variable.
2031 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2032 (mi_cmd_interpreter_exec): Delete unused variable.
2033 (mi_on_normal_stop): Delete unused variable.
2034 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2035 (print_one_inferior): Delete unused variables.
2036 (mi_execute_command): Delete unused variable.
2037 (mi_cmd_execute): Delete unused variable.
2038 (timestamp): Delete unused variable.
2040 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2041 (restore_binary_file): Delete unused variable.
2042 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2043 * cli/cli-script.c (define_command): Delete unused variables.
2044 (recurse_read_control_structure): Delete unused variable.
2045 (script_from_file): Delete unused variable.
2046 * cli/cli-cmds.c (complete_command): Delete unused variable.
2047 (disassemble_command): Delete unused variable.
2049 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2050 * tracepoint.c (delete_trace_variable_command):
2051 Delete unused variables.
2052 (encode_actions_1): Delete unused variables.
2053 (start_tracing): Delete unused variable.
2054 (trace_status_mi): Delete unused variable.
2055 (tfind_1): Delete unused variable.
2056 (trace_find_pc_command): Delete unused variable.
2057 (trace_find_line_command): Delete unused variables.
2058 (trace_find_range_command): Delete unused variables.
2059 (trace_find_outside_command): Delete unused variables.
2060 (parse_tracepoint_definition): Delete unused variables.
2061 (tfile_fetch_registers): Delete unused variable.
2063 * dcache.c (dcache_init): Delete unused variable.
2064 (dcache_info): Delete unused variable.
2066 * remote.c (remote_threads_info): Delete unused variable.
2067 (process_stop_reply) :Delete unused variable.
2068 (remote_get_trace_status): Delete unused variables.
2070 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2071 (thread_from_lwp): Delete unused variable.
2072 (enable_thread_event_reporting): Delete unused variable.
2073 (check_for_thread_db): Delete unused variables.
2074 (thread_db_find_new_threads_2): Delete unused variable.
2076 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2077 (checkpoint_command): Delete unused variable.
2078 (linux_fork_context): Delete unused variables.
2080 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2081 (linux_tracefork_child): Delete unused variable.
2082 (linux_child_follow_fork): Delete unused variable.
2083 (linux_nat_detach): Delete unused variable.
2084 (linux_handle_extended_wait): Delete unused variable.
2085 (linux_nat_has_pending_sigint): Delete unused variable.
2086 (linux_nat_find_memory_regions): Delete unused variable.
2087 (linux_nat_make_corefile_notes): Delete unused variables.
2088 (linux_nat_info_proc_cmd): Delete unused variable.
2089 (linux_proc_pending_signals): Delete unused variable.
2090 (linux_nat_stop_lwp): Delete unused variables.
2091 (_initialize_linux_nat): Delete unused variable.
2093 * ser-pipe.c (pipe_ops): Delete unused global variable.
2095 * linux-record.c (record_linux_system_call):
2096 Delete unused variables.
2098 * corelow.c (core_xfer_partial): Delete unused variables.
2100 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2101 (svr4_solib_create_inferior_hook): Add ifdef around
2102 conditionally-used variable declarations.
2104 * solib.c (solib_find): Delete unused variable.
2105 (free_so_symbols): Delete unused variable.
2106 (info_sharedlibrary_command): Delete unused variable.
2107 (reload_shared_libraries_1): Delete unused variable.
2108 (_initialize_solib): Delete unused variable.
2110 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2111 (i386_collect_xstateregset): Delete unused variable.
2112 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2114 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2115 Delete unused variable 'type'.
2117 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2119 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2120 ada-lang.c: Remove comment mentioning these macros.
2121 * m2-exp.y: Delete commented out code.
2123 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2125 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2127 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2129 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2131 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2132 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2134 (cleanup_kernel_helper_return): Likewise.
2135 * arm-tdep.c (copy_unmodified): Likewise.
2136 (copy_preload): Likewise.
2137 (copy_copro_load_store): Likewise.
2138 (cleanup_branch): Likewise.
2139 (copy_b_bl_blx): Likewise.
2140 (copy_bx_blx_reg): Likewise.
2141 (copy_alu_imm): Likewise.
2142 (copy_alu_reg): Likewise.
2143 (copy_alu_shifted_reg): Likewise.
2144 (cleanup_load): Likewise.
2145 (cleanup_store): Likewise.
2146 (cleanup_block_load_pc): Likewise.
2147 (cleanup_svc): Likewise.
2148 (copy_undef): Likewise.
2149 (copy_unpred): Likewise.
2150 * remote.c (register_remote_support_xml): Likewise.
2152 2010-05-05 Hui Zhu <teawater@gmail.com>
2154 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2156 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2158 * remote.c (register_remote_support_xml)
2159 (remote_query_supported_append, remote_query_supported): Add cast
2160 to NULL used as sentinel.
2161 * tracepoint.c (tvariables_info_1): Likewise.
2162 * utils.c (add_internal_problem_command): Likewise.
2164 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2166 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2167 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2168 registers gracefully.
2170 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2172 * exec.c (print_section_info): Display entry point without arch
2175 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2178 * printcmd.c (x_command): Only dereference once implicitly for
2181 2010-05-03 Doug Evans <dje@google.com>
2183 * event-loop.c (gdb_timer): Delete unused global.
2184 (create_timer): Update.
2186 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2188 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2189 CURRENT->DECLARATION case.
2190 * cp-support.h (struct using_direct): Provide extended comment.
2192 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2194 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2195 HPPABSD_SIZEOF_GREGS.
2196 (HPPAOBSD_SIZEOF_FPREGS): New define.
2197 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2198 (hppaobsd_supply_fpregset): New function.
2199 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2200 (hppaobsd_fpregset): New variable.
2201 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2202 (_initialize_hppabsd_tdep): Remove spurious blank line.
2204 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2207 * p-valprint.c (pascal_value_print): Always dereference a value with
2208 type code TYPE_CODE_REF.
2210 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2212 * remote.c (remote_notice_signals): New.
2213 (remote_start_remote): In non-stop mode, update the remote end on
2214 which signals it can silently pass.
2215 (init_remote_ops): Install remote_notice_signals.
2217 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2219 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2220 * command.h (error_no_arg): ... here. Remove NORETURN, change
2221 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2222 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2223 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2224 (internal_verror, internal_error, nomem): Remove NORETURN, change
2225 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2226 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2227 (throw_vfatal, throw_error): Remove NORETURN.
2228 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2229 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2230 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2231 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2232 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2233 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2235 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2236 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2238 * target.c (tcomplain): Likewise.
2239 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2241 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2242 (internal_error, perror_with_name, nomem): Remove NORETURN.
2243 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2246 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2248 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2249 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2250 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2251 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2252 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2253 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2254 * complaints.h (complaint, internal_complaint): Likewise.
2255 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2256 (ATTR_FORMAT): Remove.
2257 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2258 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2259 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2260 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2261 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2262 (internal_error, internal_vwarning, internal_warning, warning)
2263 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2264 * disasm.c (fprintf_disasm): Likewise.
2265 * exceptions.c (throw_it): Likewise.
2266 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2267 (throw_error): Likewise.
2268 * language.h (type_error, range_error): Likewise.
2269 * linespec.c (cplusplus_error): Likewise.
2270 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2271 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2272 * monitor.c (monitor_debug): Likewise.
2273 * parser-defs.h (parser_fprintf): Likewise.
2274 * serial.h (serial_printf): Likewise.
2275 * tui/tui-hooks.c (tui_query_hook): Likewise.
2276 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2277 (uo_message): Likewise.
2278 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2279 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2281 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2283 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2285 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2286 (cli_table_header, cli_begin, cli_end, cli_field_int)
2287 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2288 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2289 Delete forward declarations.
2290 (cli_ui_out_impl): Move below the callbacks.
2291 (_initialize_cli_out): Delete.
2293 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2295 * README: Use consistent `GDB' and `GDBserver' spellings.
2297 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2299 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2301 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2303 * infrun.c (prepare_for_detach): In non-stop, context switch to
2304 the thread that got the event before handling the event.
2306 2010-04-30 Tom Tromey <tromey@redhat.com>
2308 * symtab.c (symbol_set_names): Fix typo.
2310 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2312 * python/py-param.c (parm_constants): Avoid ARI warning
2313 by adding ARI comment.
2314 (parmpy_init): Likewise.
2316 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2318 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2319 and created type for re-use.
2321 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2323 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2325 2010-04-29 Doug Evans <dje@google.com>
2327 * ser-base.h (reschedule): Delete prototype.
2328 * ser-base.c (reschedule): Make static.
2330 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2332 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2333 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2334 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2336 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2339 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2343 * regcache.c (registers_changed): Rename to ...
2344 (registers_changed_ptid): ... this, and only delete register cache
2345 entries matching the ptid filter argument.
2346 (registers_changed): Reimplement on top of registers_changed_ptid.
2347 * regcache.h (registers_changed_ptid): Declare.
2348 * target.c (target_resume): Flush register caches.
2350 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2351 Tom Tromey <tromey@redhat.com>
2352 Thiago Jung Bauermann <bauerman@br.ibm.com>
2354 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2355 (SUBDIR_PYTHON_SRCS): Likewise.
2356 (py-parameter.o): New rule.
2357 * python/py-parameter.c: New file.
2358 * python/python-internal.h (gdbpy_initialize_parameter)
2359 (gdbpy_parameter, gdbpy_parameter_value)
2360 (gdbpy_parse_command_name): Declare.
2361 * python/py-cmd.c (parse_command_name): Rename to
2362 gdbpy_parse_command_name.
2363 (gdbpy_parse_command_name): Accept a starting list parameter and
2365 (cmdpy_init): Use gdbpy_parse_command_name.
2366 * python/python.c (parameter_to_python): Rename to
2367 gdbpy_parameter_to_python. Accept enum var_types and value.
2368 (gdbpy_parameter): Use gdbpy_parameter_value.
2369 (_initialize_python): Call gdbpy_initialize_parameters.
2371 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2373 * MAINTAINERS: Add myself for write after approval privileges.
2375 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2378 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2379 (COMMON_OBS): Add d-lang.o d-valprint.o.
2380 (HFILES_NO_SRCDIR): Add d-lang.h.
2381 * NEWS: Mention D language support.
2382 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2383 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2384 * d-lang.c: New file.
2385 * d-lang.h: New file.
2386 * d-valprint.c: New file.
2387 * defs.h (enum language): Add language_d.
2388 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2389 * language.c (binop_result_type, integral_type, character_type)
2390 (string_type, boolean_type, structured_type): Add language_d.
2391 * symfile.c (init_filename_language_table): Add language_d.
2392 * symtab.c: Include d-lang.h.
2393 (symbol_init_language_specific, symbol_find_demangled_name)
2394 (symbol_natural_name, lookup_symbol_in_language)
2395 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2397 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2399 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2401 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2403 * symfile.c (init_filename_language_table): Register .dg files
2406 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2408 * gdbtypes.h (struct main_type): Expand comment about target_type
2411 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2412 Tristan Gingold <gingold@adacore.com>
2414 * symfile.c (reread_symbols): Also search for file in libraries.
2417 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2419 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2420 in terms of configuration.
2422 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2424 * objfiles.c: Include solist.h.
2425 (free_all_objfiles): New variable so. Check stale solist objfiles.
2426 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2427 and no_shared_libraries.
2429 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2432 * python/py-auto-load.c (source_section_scripts): Remove trailing
2433 new-line in i18n string.
2435 2010-04-26 Doug Evans <dje@google.com>
2437 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2439 2010-04-26 Tom Tromey <tromey@redhat.com>
2441 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2444 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2446 Removal of config/i386/nm-i386sol2.h native configuration file.
2447 * config/i386/nm-i386sol2.h: Remove file.
2448 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2449 * config/i386/sol2-64.mh: Idem.
2450 * config/djgpp/fnchange.lst: Remove reference to that file.
2451 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2453 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2455 PR breakpoints/11531.
2456 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2457 macro definition and related comment.
2458 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2459 (resume): Remove code and comment related to this macro.
2461 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2463 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2466 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2468 * defs.h: Adjust comment.
2469 * filesystem.h, filesystem.c: New files.
2470 * Makefile.in (SFILES): Add filesystem.c.
2471 (COMMON_OBS): Add filesystem.o.
2472 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2473 different target and host path flavours.
2474 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2475 has_dos_based_file_system on the gdbarch.
2476 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2477 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2478 * i386-tdep.c (i386_go32_init_abi): Ditto.
2479 * gdbarch.sh (has_dos_based_file_system): New.
2480 * gdbarch.h, gdbarch.c: Regenerate.
2481 * NEWS: Mention improved support for remote targets with DOS-based
2482 filesystems. Mention new `set/show target-file-system-kind'
2485 2010-04-23 Stan Shebs <stan@codesourcery.com>
2487 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2489 (struct agent_reqs): Remove.
2490 (ax_reg_mask): Declare.
2491 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2492 (free_agent_expr): Free reg_mask.
2493 (ax_print): Add scope and register mask info.
2494 (ax_reqs): Remove agent_reqs argument, use agent expression
2495 fields, and move part of register mask computation to...
2496 (ax_reg_mask): New function.
2497 * ax-gdb.c (gen_trace_static_fields): Call it.
2498 (gen_traced_pop): Ditto.
2499 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2500 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2501 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2502 (gen_eval_for_expr): Ditto, and require an rvalue.
2503 (agent_command): Call ax_reqs.
2504 (agent_eval_command): Ditto.
2505 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2506 (validate_action_line): Ditto.
2507 (collect_symbol): Ditto.
2508 (encode_actions_1): Ditto.
2510 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2511 Paul Pluzhnikov <ppluzhnikov@google.com>
2512 Jan Kratochvil <jan.kratochvil@redhat.com>
2514 Fix deadlock on looped list of loaded shared objects.
2515 * solib-svr4.c (LM_PREV): New function.
2516 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2517 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2518 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2519 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2521 2010-04-23 Doug Evans <dje@google.com>
2523 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2525 * configure: Regenerate.
2526 * main.c: #include "python/python.h".
2527 (captured_main): Defer loading auto-loaded scripts until after
2528 local_gdbinit has been sourced.
2529 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2530 (load_auto_scripts_for_objfile): New function.
2531 (auto_load_new_objfile): Call it.
2532 * python/python.h (gdbpy_global_auto_load): Declare.
2533 (load_auto_scripts_for_objfile): Declare.
2535 Add support for auto-loading scripts from .debug_gdb_scripts section.
2536 * NEWS: Add entry for .debug_gdb_scripts.
2537 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2538 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2539 (py-auto-load.o): New rule.
2540 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2541 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2542 * python/py-auto-load.c: New file.
2543 * python/python-internal.h: #include <stdio.h>.
2544 (set_python_list, show_python_list): Declare.
2545 (gdbpy_initialize_auto_load): Declare.
2546 (source_python_script_for_objfile): Declare.
2547 * python/python.c: Remove #include of observer.h.
2548 (gdbpy_auto_load): Moved to py-auto-load.c.
2549 (GDBPY_AUTO_FILENAME): Ditto.
2550 (gdbpy_new_objfile): Delete.
2551 (source_python_script_for_objfile): New function.
2552 (set_python_list, show_python_list): Make externally visible.
2553 (_initialize_python): Move "auto-load" command to py-auto-load.c
2554 and observer_attach_new_objfile to py-auto-load.c.
2556 2010-04-23 Jerome Guitton <guitton@adacore.com>
2558 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2559 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2560 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2562 (alpha_heuristic_analyze_probing_loop): New function.
2563 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2564 and handle cases when a stack probe loop is generated.
2565 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2566 (alpha_mdebug_max_frame_size_exceeded): New function.
2567 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2568 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2569 Return 0 when the maximum debuggable frame size has been exceeded.
2571 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2574 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2576 2010-04-20 Chris Moller <cmoller@redhat.com>
2580 * symtab.c (rbreak_command): Added code to include a filename
2581 specification in the rbreak argument.
2582 * NEWS: Added a brief description of filename-qualified rbreak.
2584 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2586 Fix crashes on dangling display expressions.
2587 * ada-lang.c (ada_operator_check): New function.
2588 (ada_exp_descriptor): Fill-in the field operator_check.
2589 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2590 * jv-lang.c (exp_descriptor_java): Likewise.
2591 * m2-lang.c (exp_descriptor_modula2): Likewise.
2592 * scm-lang.c (exp_descriptor_scm): Likewise.
2593 * parse.c (exp_descriptor_standard): Likewise.
2594 (operator_check_standard): New function.
2595 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2596 * parser-defs.h (struct exp_descriptor): New field operator_check.
2597 (operator_check_standard, exp_uses_objfile): New declarations.
2598 * printcmd.c: Remove the inclusion of solib.h.
2599 (display_uses_solib_p): Remove the function.
2600 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2601 and exp_uses_objfile instead of display_uses_solib_p.
2602 * solist.h (struct so_list) <objfile>: New comment.
2603 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2604 * symtab.h (lookup_objfile_from_block): New declaration.
2605 (struct general_symbol_info) <obj_section>: Extend the comment.
2607 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2608 Thiago Jung Bauermann <bauerman@br.ibm.com>
2610 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2611 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2612 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2613 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2614 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2615 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2616 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2617 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2618 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2619 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2620 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2621 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2622 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2623 Define, in case <ptrace.h> doesn't provide it.
2624 (booke_debug_info): New variable.
2625 (max_slots_number): Ditto.
2626 (hw_break_tuple): New struct.
2627 (thread_points): Ditto.
2628 (ppc_threads): New variable.
2629 (PPC_DEBUG_CURRENT_VERSION): New define.
2630 (have_ptrace_new_debug_booke): New function.
2631 (ppc_linux_check_watch_resources): Renamed to ...
2632 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2633 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2634 (booke_cmp_hw_point): New function.
2635 (booke_find_thread_points_by_tid): Ditto.
2636 (booke_insert_point): Ditto.
2637 (booke_remove_point): Ditto.
2638 (ppc_linux_insert_hw_breakpoint): Ditto.
2639 (ppc_linux_remove_hw_breakpoint): Ditto.
2640 (get_trigger_type): Ditto.
2641 (ppc_linux_insert_watchpoint): Handle BookE processors.
2642 (ppc_linux_remove_watchpoint): Ditto.
2643 (ppc_linux_new_thread): Ditto.
2644 (ppc_linux_thread_exit): New function..
2645 (ppc_linux_stopped_data_address): Handle BookE processors.
2646 (ppc_linux_watchpoint_addr_within_range): Ditto.
2647 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2648 to_remove_hw_breakpoint fields of the target operations struct.
2649 Add observe for the thread_exit event.
2651 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2653 * i386-linux-nat.c (regmap): Removed.
2654 (fetch_register): Replace regmap with
2655 i386_linux_gregset_reg_offset.
2656 (store_register): Likewise.
2657 (supply_gregset): Likewise.
2658 (fill_gregset): Likewise.
2660 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2663 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2665 2010-04-22 Chris Moller <cmoller@redhat.com>
2667 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2668 method of popping recursion-detection stack with a method based on
2669 obstack_object_size(). (Similar to the PR9167 patch below, but for
2670 the static array obstack rather than the static member obstack.)
2672 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2674 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2675 (_initialize_amd64_linux_nat): Replace
2676 amd64_linux_gregset64_reg_offset with
2677 amd64_linux_gregset_reg_offset.
2679 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2682 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2684 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2687 * stabsread.c (set_length_in_type_chain): New function.
2688 (read_struct_type): Call set_length_in_type_chain function.
2689 (read_enum_type): Idem.
2691 2010-04-21 Stan Shebs <stan@codesourcery.com>
2692 Nathan Sidwell <nathan@codesourcery.com>
2694 * tracepoint.c (trace_save): Open in binary mode.
2696 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2698 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2700 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2701 builtin_char32 fields.
2702 * printcmd.c (decode_format): Set char size to '\0'
2703 for strings unless explicit size is given.
2704 (print_formatted): Correct calculation of NEXT_ADDRESS
2705 for 16 or 32 bit strings.
2706 (do_examine): Do not force byte size for strings.
2707 Use builtin_char16 and builtin_char32 types to display
2708 16 or 32 bit-wide strings.
2709 (x_command): Set LAST_SIZE to 'b' for string type.
2711 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2714 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2717 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2718 there is no .reg-xstate section.
2719 (i386_linux_core_read_description): Check XCR0 first.
2721 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2723 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2726 2010-04-21 Chris Moller <cmoller@redhat.com>
2729 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2730 method of popping recursion-detection stack with a method based on
2731 obstack_object_size().
2733 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2736 * p-valprint.c (pascal_val_print): Fix default printing of integer
2739 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2741 Fix compilation warning on gcc-4.1.2.
2742 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2743 local variable`pc' to zero.
2745 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2747 Implement thread support with core files on alpha-tru64.
2748 * dec-thread.c (dec_thread_find_new_threads): New function,
2749 extracted from resync_thread_list.
2750 (resync_thread_list): Add OPS parameter. Replace extracted-out
2751 code by call to dec_thread_find_new_threads.
2752 (dec_thread_wait): Update call to resync_thread_list.
2753 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2755 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2757 * ada-lang.c (value_pointer): New function.
2758 (make_array_descriptor): Call value_pointer to convert addresses to
2761 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2763 * rs6000-aix-tdep.c: #include exceptions.h.
2764 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2765 while reading the memory at ADDR, then ADDR cannot be a function
2768 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2770 * ada-typeprint.c (ada_print_typedef): New function.
2771 * ada-lang.h (ada_print_typedef): Add declaration.
2772 * ada-lang.c (ada_language_defn): set la_print_typdef field
2773 to ada_print_typedef.
2775 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2777 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2779 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2781 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2782 (iterate_over_mappings): Adjust function profile. Add declaration.
2783 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2786 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2788 * procfs.c (solib_mappings_callback): Move function up to avoid
2791 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2793 * procfs.c (find_signalled_thread, find_stop_signal): Move
2794 these functions down to define them only when used.
2796 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2798 * valprint.c (common_val_print): Fix the value before extracting
2800 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2801 * ada-lang.h (ada_to_fixed_value): New function declaration.
2802 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2803 to avoid code duplication and fix a bug in the handling of
2804 fixed types contents.
2806 2010-04-20 Tom Tromey <tromey@redhat.com>
2808 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2809 (read_partial_die): Likewise.
2810 (dwarf_attr_name): Likewise.
2812 2010-04-20 Chris Moller <cmoller@redhat.com>
2816 * cp-valprint.c (global): Adding new static array recursion
2818 (cp_print_value_fields, cp_print_static_field): Added new static
2819 array recursion detection code.
2821 2010-04-20 Mark Kettenis <kettenis@gnu.org>
2823 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2824 general-purpose register set should be 68 instead of 144.
2825 (i386_linux_sse_regset_sections): Likewise.
2826 (i386_linux_avx_regset_sections): Likewise.
2828 2010-04-20 Stan Shebs <stan@codesourcery.com>
2829 Nathan Sidwell <nathan@codesourcery.com>
2831 * dwarf2loc.c (struct axs_var_loc): New struct.
2832 (dwarf2_tracepoint_var_loc): New function.
2833 (dwarf2_tracepoint_var_access): New function.
2834 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2836 (locexpr_describe_location_piece): New function.
2837 (locexpr_describe_location_1): New function.
2838 (locexpr_describe_location): Call it, update signature.
2839 (loclist_describe_location): Rewrite to loop over locations,
2841 * symtab.h (struct symbol_computed_ops): Add address to
2842 describe_location arguments, return void.
2843 * printcmd.c (address_info): Get context PC, pass to computed
2844 location description.
2845 * tracepoint.c (scope_info): Ditto.
2846 * ax-gdb.c (trace_kludge): Export.
2848 2010-04-20 Tom Tromey <tromey@redhat.com>
2850 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2851 (struct dwarf2_cie) <segment_size>: New field.
2852 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2853 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2855 (read_attribute_value): Handle DW_FORM_flag_present,
2856 DW_FORM_sec_offset, DW_FORM_exprloc.
2857 (dump_die_shallow): Likewise.
2858 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2859 (dwarf2_const_value): Handle DW_FORM_exprloc.
2860 (attr_form_is_block): Likewise.
2861 (struct line_header) <maximum_ops_per_instruction>: New field.
2862 (dwarf_decode_line_header): Set new field.
2863 (dwarf_decode_lines): Handle new field.
2865 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2867 * f-exp.y: Add new production to recognize the `logical*8' type.
2868 (LOGICAL_S8_KEYWORD): New token.
2869 * f-lang.c (enum f_primitive_types)
2870 <f_primitive_type_logical_s8>: New field.
2871 (f_language_arch_info): Handling `logical*8' type.
2872 (build_fortran_types): Building `logical*8' type.
2873 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2875 2010-04-19 Doug Evans <dje@google.com>
2877 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2878 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2879 (pipe_close): Ditto.
2881 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2883 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2885 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2887 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2888 type to void function.
2890 2010-04-19 Stan Shebs <stan@codesourcery.com>
2891 Vladimir Prus <vladimir@codesourcery.com>
2893 * tracepoint.c (tfind_1): Add missing newline, report exit from
2895 * target.c (update_current_target): Make default
2896 to_trace_find return -1.
2898 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2900 * objc-lang.c (find_methods): Move symname check up.
2902 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2904 * ada-lang.c (print_recreate_exception)
2905 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2906 not "catch unhandled".
2908 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2910 PR breakpoints/8554.
2912 Implement `save-breakpoints'.
2914 * breakpoint.c (save_cmdlist): New.
2915 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2917 (print_recreate_catch_fork): New.
2918 (catch_fork_breakpoint_ops): Install it.
2919 (print_recreate_catch_vfork): New.
2920 (catch_vfork_breakpoint_ops): Install it.
2921 (print_recreate_catch_syscall): New.
2922 (catch_syscall_breakpoint_ops): Install it.
2923 (print_recreate_catch_exec): New.
2924 (catch_exec_breakpoint_ops): Install it.
2925 (print_recreate_exception_catchpoint): New.
2926 (gnu_v3_exception_catchpoint_ops): Install it.
2927 (save_breakpoints): New, based on tracepoint_save_command, but
2928 handle all breakpoint types.
2929 (save_breakpoints_command): New.
2930 (tracepoint_save_command): Rename to...
2931 (save_tracepoints_command): ... this, and reimplement using
2933 (save_command): New.
2934 (_initialize_breakpoints): Install the "save" command prefix.
2935 Install the "save breakpoints" command. Make "save-tracepoints" a
2936 deprecated alias for "save tracepoints".
2937 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2938 * ada-lang.c (print_recreate_exception): New.
2939 (print_recreate_catch_exception): New.
2940 (catch_exception_breakpoint_ops): Install it.
2941 (print_recreate_catch_exception_unhandled): New.
2942 (catch_exception_unhandled_breakpoint_ops): Install it.
2943 (print_recreate_catch_assert): New.
2944 (catch_assert_breakpoint_ops): Install it.
2946 * NEWS: Mention the new `save breakpoints' command. Mention the
2947 new `save tracepoints' alias and that `save-tracepoints' is now
2950 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2954 * tui/tui-out.c: Include cli-out.h.
2955 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2956 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2957 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2958 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2960 (struct ui_out_data): Rename to...
2961 (struct tui_ui_out_data): ... this. Remove `stream' and
2962 `suppress_output' fields, and inherit cli_ui_out_data.
2963 (tui_out_data): New typedef.
2964 (tui_ui_out_impl): Don't initialize fields staticaly.
2965 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2966 (tui_begin, tui_end): Delete.
2967 (tui_field_int): Adjust to delegate most work to the base type.
2968 (tui_field_skip): Delete.
2969 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2970 delegate most work to the base type.
2971 (tui_spaces): Delete.
2972 (tui_text): Adjust to delegate most work to the base type.
2973 (tui_message): Delete.
2974 (tui_wrap_hint): Delete.
2975 (tui_flush): Delete.
2976 (out_field_fmt): Delete.
2977 (field_separator): Delete.
2978 (tui_out_new): Adjust to initialize the base type.
2979 (_initialize_tui_out): Initialize tui_ui_out_impl.
2980 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2982 (cli_out_data): Adjust.
2983 (cli_ui_out_impl): Make extern.
2984 (cli_table_header, cli_field_int, cli_field_skip): Use
2985 uo_field_string instead of cli_field_string.
2986 (cli_redirect): Adjust to use cli_out_data.
2987 (cli_out_data_ctor): New.
2988 (cli_out_new): Use it.
2989 * cli-out.h (struct ui_file): Remove forward declaration.
2990 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2991 (cli_ui_out_impl): Declare.
2992 (cli_out_data_ctor): Declare.
2993 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2994 (uo_field_string): No longer static.
2995 (ui_out_data): Change return type to void pointer.
2996 (ui_out_new): Change `data' parameter type to void pointer.
2997 * ui-out.h (struct ui_out_data): Don't forward declare.
2998 (ui_out_data): Change return type to void pointer.
2999 (ui_out_new): Change `data' parameter type to void pointer.
3000 (uo_field_string): Declare.
3002 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3004 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3005 instead of always false.
3007 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3010 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3013 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3015 * breakpoint.c (watchpoints_triggered): Use
3016 is_hardware_watchpoint.
3017 (watchpoints_triggered): Ditto.
3018 (bpstat_check_location): Use is_watchpoint and
3019 is_hardware_watchpoint.
3020 (bpstat_check_watchpoint): Use is_watchpoint and
3021 is_hardware_watchpoint.
3022 (bpstat_stop_status): Fix comment.
3023 (user_settable_breakpoint): Use is_watchpoint.
3024 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3025 (disable_watchpoints_before_interactive_call_start): Use
3027 (enable_watchpoints_after_interactive_call_stop): Use
3029 (clear_command): Use is_watchpoint.
3030 (do_enable_breakpoint): Use is_watchpoint.
3032 2010-04-16 Mike Frysinger <vapier@gentoo.org>
3034 * solib-frv.c (enable_break1_done): Delete.
3035 (enable_break2): Do not check enable_break1_done. Move the
3036 enable_break2_done setting and call to
3037 remove_solib_event_breakpoints() to the end. Return without
3038 warning when the contents of _dl_debug_addr are 0.
3039 (enable_break): Do not set enable_break1_done.
3040 (frv_clear_solib): Likewise.
3042 2010-04-16 Kevin Buettner <kevinb@redhat.com>
3044 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3045 instead of an error if no PLT entry is found. Return a
3046 potentially useful result.
3047 (m32c_m16c_pointer_to_address): Add code to search for function
3048 address when no .plt entry is found.
3050 2010-04-16 Stan Shebs <stan@codesourcery.com>
3052 * tracepoint.c (trace_variable_command): Run a cleanup.
3054 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3056 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3058 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3060 Support for Windows OS Thread Information Block.
3061 * NEWS: Document new feature.
3062 * remote.c (PACKET_qGetTIBAddr): New enum element.
3063 (remote_get_tib_address): New function.
3064 (init_remote_ops): Set to_get_tib_address field
3065 to remote_get_tib_address.
3066 (_initialize_remote): Add add_packet_config_cmd
3067 for PACKET_qGetTIBAddr.
3068 * target.c (update_current_target): Set default value for
3069 new to_get_tib_address field.
3070 * target.h (target_ops): New field to_get_tib_address.
3071 (target_get_tib_address): New macro.
3072 * windows-nat.c (thread_info): Add thread_local_base field.
3073 (windows_add_thread): Add tlb argument of type 'void *'.
3074 (fake_create_process): Adapt windows_add_thread call.
3075 (get_windows_debug_event): Idem.
3076 (windows_get_tib_address): New function.
3077 (init_windows_ops): Set to_get_tib_address field
3078 to remote_get_tib_address.
3079 (_initialize_windows_nat): Replace info_w32_cmdlist
3080 initialization by a call to init_w32_command_list.
3081 (info_w32_command, info_w32_cmdlist): Removed from here...
3082 to windows-tdep.c file.
3083 * windows-tdep.h (info_w32_cmdlist): Declare.
3084 (init_w32_command_list): New external function
3086 * windows-tdep.c: Add several headers.
3087 (info_w32_cmdlist): to here, made global.
3088 (thread_information_32): New struct.
3089 (thread_information_64): New struct.
3090 (TIB_NAME): New char array.
3091 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3092 (maint_display_all_tib): New static variable.
3093 (windows_get_tlb_type): New function.
3094 (tlb_value_read, tlb_value_write): New functions.
3095 (tlb_value_funcs): New static struct.
3096 (tlb_make_value): New function.
3097 (display_one_tib): New function.
3098 (display_tib): New function.
3099 (show_maint_show_all_tib):New function.
3100 (info_w32_command): Moved from windows-nat.c.
3101 (init_w32_command_list): New function.
3102 (_initialize_windows_tdep): New function.
3103 New "maint set/show show-all-tib" command
3104 New "$_tlb" internal variable.
3106 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3108 * tui/tui-regs.c (tui_display_register): Add comment about
3110 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3112 2010-04-15 Stan Shebs <stan@codesourcery.com>
3114 * frame.c: Include tracepoint.h.
3115 (get_current_frame): Allow a trace frame to be an alternate source
3116 of stack frame data.
3117 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3120 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3122 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3124 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3126 2010-04-15 Doug Evans <dje@google.com>
3128 * NEWS: Add entry for python program space support.
3129 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3130 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3131 (py-progspace.o): New rule.
3132 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3134 (find_pretty_printer_from_progspace): New function.
3135 (find_pretty_printer_from_gdb): New function.
3136 (find_pretty_printer): Rewrite.
3137 * python/py-progspace.c: New file.
3138 * python/python-internal.h (program_space): Add forward decl.
3139 (pspace_to_pspace_object, pspy_get_printers): Declare.
3140 (gdbpy_initialize_pspace): Declare.
3141 * python/python.c: #include "progspace.h".
3142 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3143 (_initialize_python): Call gdbpy_initialize_pspace.
3144 (GdbMethods): Add current_progspace, progspaces.
3146 Add -s option to source command.
3147 * NEWS: Document new option.
3148 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3149 Delete from_tty and cleanupp args. Split filep arg into file and
3150 full_pathp. New arg search_path.
3151 (source_script_from_stream): New function.
3152 (source_script_with_search): New function.
3153 (source_script): Rewrite.
3154 (source_command): Parse "-s" option.
3155 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3156 * python/python.c (source_python_script): Make file arg a const char *.
3157 Don't call fclose, leave for caller.
3158 * python/python.h (source_python_script): Update.
3160 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3161 Pedro Alves <pedro@codesourcery.com>
3163 Avoid rereading shared libraries that haven't changed.
3165 * solib.c (free_so_symbols): New function, from ...
3166 (free_so): ... here. Call it.
3167 (solib_read_symbols): Don't warn here if symbols have already been
3169 (solib_add): Warn here instead, if a pattern was specified.
3170 (reload_shared_libraries_1): New.
3171 (reload_shared_libraries): Rewrite to not fetch the library list.
3173 2010-04-14 Doug Evans <dje@google.com>
3175 * source.c (openp): Strip DOS drive letter if present before
3176 concatenating string to search path.
3178 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3180 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3181 * objfiles.c (gdb_bfd_close_or_warn): New.
3182 * corelow.c: Include objfiles.h
3183 (core_close): Use gdb_bfd_close_or_warn.
3184 * elfread.c (build_id_verify): Ditto.
3185 * exec.c (exec_close, exec_close_1): Ditto.
3187 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3188 Pedro Alves <pedro@codesourcery.com>
3190 Group errors for many missing shared libraries.
3192 * solist.h (struct so_list): Remove from_tty.
3193 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3194 (solib_map_sections): Take so_list argument. Return 0 if we
3195 failed to open a BFD. Add target sections here.
3196 (symbol_add_stub): Delete.
3197 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3198 not from_tty copied from the so_list. Don't warn a second time
3199 for a missing library.
3200 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3201 add to the section table here. Print out a single warning for all
3203 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3206 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3208 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3209 error/warning messages. Capitalize and use complete sentences.
3210 (blpy_block_syms_iternext): Likewise.
3211 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3212 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3213 (frame_info_to_frame_object, frapy_read_var)
3214 (gdbpy_frame_stop_reason_string): Likewise.
3215 * python/py-lazy-string.c (stpy_convert_to_value)
3216 (gdbpy_create_lazy_string_object): Likewise.
3217 * python/py-objfile.c (objfpy_set_printers): Likewise.
3218 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3219 * python/python.c (parameter_to_python): Likewise.
3220 * python/py-type.c (typy_range, typy_target): Likewise.
3221 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3222 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3225 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3229 * python/py-prettyprint.c (pretty_print_one_value): Test for
3231 (print_string_repr): Test for Py_None. Set flags accordingly.
3232 Return value depending on return type.
3233 (print_children): Take a value indicating whether data was printed
3234 before this function was called. Alter output accordingly.
3235 (apply_val_pretty_printer): Capture return value from
3236 print_string_repr and pass to print_children.
3238 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3241 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3242 register note sections.
3243 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3245 (i386_linux_init_abi): Install list of supported register note
3246 sections that matches the target description.
3248 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3250 * remote.c (remote_get_noisy_reply): Don't error out on empty
3252 (remote_start_remote): Update and merge tracepoints and trace
3253 state variables as long as the target supports tracepoints.
3254 (remote_trace_init): Fix prototype.
3255 (remote_download_trace_state_variable): Validate reply.
3256 (remote_trace_set_readonly_regions): Fix prototype.
3257 (remote_trace_start): Fix prototype. Check for empty reply.
3258 (remote_get_trace_status): Small cleanup.
3259 (remote_trace_stop): Fix prototype. Check for empty reply.
3260 (remote_trace_find): Check for empty reply.
3261 (remote_save_trace_data): Validate reply.
3262 (remote_set_disconnected_tracing): Check for empty reply, and
3264 (remote_set_circular_trace_buffer): Ditto.
3266 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3268 Suppress unused value warning during compilation.
3269 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3271 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3273 2010-04-12 Stan Shebs <stan@codesourcery.com>
3275 * tracepoint.c (tfile_xfer_partial): Check read result.
3277 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3279 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3280 * remote-sim.c (gdbsim_files_info): Likewise.
3282 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3284 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3285 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3287 (fetch_vfp_registers): New function to fetch VFP registers.
3288 (store_vfp_registers): New function to store VFP registers.
3289 (arm_linux_fetch_inferior_registers): Add support for VFP
3291 (arm_linux_store_inferior_registers): Likewise.
3292 (arm_linux_read_description): Likewise.
3293 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3296 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3298 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3300 (amd64_collect_xstateregset): Likewise.
3302 2010-04-09 Stan Shebs <stan@codesourcery.com>
3304 * tracepoint.c (trace_status_mi): Report frames created.
3306 * tracepoint.c (trace_dump_command): Include default-collect
3309 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3311 * symtab.c (find_function_start_sal): Never return SAL pointing
3312 before function start address, even if line info is missing.
3314 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3316 * NEWS: Mention tracepoints support.
3318 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3320 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3321 circular trace buffer statuses.
3323 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3325 * config/djgpp/fnchange.lst: Fix typo in translations for
3326 symbol-without-target_section.exp and symbol-without-target_section.c.
3328 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3330 * breakpoint.c (condition_command): Pass condition expression to
3331 set_breakpoint_condition stripped from breakpoint number.
3333 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3334 Thiago Jung Bauermann <bauerman@br.ibm.com>
3335 Tom Tromey <tromey@redhat.com>
3337 * breakpoint.c (condition_command): Simplify. Move condition
3339 (set_breakpoint_condition): ... here. New function.
3340 * breakpoint.h (set_breakpoint_condition): Declare.
3341 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3342 (SUBDIR_PYTHON_SRCS): Likewise.
3343 (py-breakpoint.o): New rule.
3344 * python/py-breakpoint.c: New file.
3345 * python/python-internal.h (gdbpy_breakpoints)
3346 (gdbpy_initialize_breakpoints): Declare.
3347 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3349 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3351 * regformats/regdat.sh: Include server.h. Don't include
3354 2010-04-08 Stan Shebs <stan@codesourcery.com>
3355 Pedro Alves <pedro@codesourcery.com>
3357 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3358 and circular_buffer.
3359 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3360 * tracepoint.c (trace_status_command): Display target's status for
3361 disconnected tracing and circular buffer.
3362 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3363 query for non-disconnected-tracing case, remove the stop_tracing
3365 (tfile_open): Clear disconnected and circular buffer status.
3366 (trace_save): Save disconnected and circular buffer status.
3367 (parse_trace_status): Parse disconnected and circular buffer status,
3368 also recognize disconnected as a stop reason.
3369 * remote.c (remote_set_disconnected_tracing): Only set
3370 QTDisconnected if the remote end supports disconnected tracing.
3371 Warn otherwise, if trying to enable disconnected tracing.
3372 * infcmd.c (detach_command): Update disconnect_tracing call.
3373 * cli/cli-cmds.c (quit_command): Ditto.
3375 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3377 * i387-tdep.c (i387_collect_xsave): Replace abort with
3380 2010-04-08 Stan Shebs <stan@codesourcery.com>
3382 * breakpoint.c (default_collect_info): New function.
3383 (breakpoints_info): Call it.
3384 (maintenance_info_breakpoints): Ditto.
3385 (tracepoints_info): Ditto.
3387 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3389 * i387-tdep.c (i387_collect_xsave): Re-indent.
3391 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3393 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3394 if HAVE_PTRACE_GETFPXREGS is defined.
3395 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3396 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3398 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3399 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3400 if .reg-xfp section doesn't exist.
3401 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3403 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3405 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3406 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3407 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3408 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3409 (i386_gdbarch_init): Update comments.
3410 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3412 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3414 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3416 * features/Makefile (i386/i386-mmx-expedite): New.
3417 (i386/i386-mmx-linux-expedite): Likewise.
3418 ($(outdir)/i386/i386-mmx.dat): Likewise.
3419 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3421 * features/i386/i386-mmx-linux.c: New.
3422 * features/i386/i386-mmx-linux.xml: Likewise.
3423 * features/i386/i386-mmx.c: Likewise.
3424 * features/i386/i386-mmx.xml: Likewise.
3425 * regformats/i386/i386-mmx-linux.dat: Likewise.
3426 * regformats/i386/i386-mmx.dat: Likewise.
3428 * features/Makefile (WHICH): Add i386/i386-mmx and
3429 i386/i386-mmx-linux.
3431 2010-04-08 Doug Evans <dje@google.com>
3433 * source.c (openp): Skip $cdir in PATH.
3435 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3438 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3440 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3441 address and a zero length.
3443 2010-04-08 Hui Zhu <teawater@gmail.com>
3445 * i386-tdep.c (i386_process_record): Add support for insn
3448 2010-04-07 Doug Evans <dje@google.com>
3450 * python/python.c (source_python_script): Use ensure_python_env
3451 to prepare environment for script.
3453 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3455 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3456 <sys/uio.h> and "i386-xstate.h".
3457 (PTRACE_GETREGSET): New.
3458 (PTRACE_SETREGSET): Likewise.
3459 (have_ptrace_getregset): Likewise.
3460 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3462 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3464 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3465 (amd64_linux_store_inferior_registers): Likewise.
3466 (amd64_linux_read_description): Check and enable AVX target
3469 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3470 and "features/i386/amd64-avx-linux.c".
3471 (amd64_linux_regset_sections): New.
3472 (amd64_linux_core_read_description): Check and enable AVX
3474 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3475 set_gdbarch_core_regset_sections.
3476 (_initialize_amd64_linux_tdep): Call
3477 initialize_tdesc_amd64_avx_linux.
3479 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3480 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3481 (tdesc_amd64_avx_linux): New.
3482 (amd64_linux_update_xstateregset): Likewise.
3484 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3485 (amd64_ymm_names): New.
3486 (amd64_ymmh_names): Likewise.
3487 (amd64_register_name): Likewise.
3488 (amd64_supply_xstateregset): Likewise.
3489 (amd64_collect_xstateregset): Likewise.
3490 (amd64_supply_xsave): Likewise.
3491 (amd64_collect_xsave): Likewise.
3492 (AMD64_NUM_REGS): Removed.
3493 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3494 %xmmN if AVX is available.
3495 (amd64_pseudo_register_name): Support pseudo YMM registers.
3496 (amd64_regset_from_core_section): Support .reg-xstate section.
3497 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3498 and ymm0h_regnum. Call set_gdbarch_register_name.
3499 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3501 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3502 AMD64_YMM15H_REGNUM.
3503 (AMD64_NUM_REGS): New.
3504 (amd64_supply_xsave): Likewise.
3505 (amd64_collect_xsave): Likewise.
3506 (amd64_register_name): Removed.
3507 (amd64_register_type): Likewise.
3509 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3511 * i387-tdep.c: Include "i386-xstate.h".
3512 (XSAVE_XSTATE_BV_ADDR): New.
3513 (xsave_avxh_offset): Likewise.
3514 (XSAVE_AVXH_ADDR): Likewise.
3515 (i387_supply_xsave): Likewise.
3516 (i387_collect_xsave): Likewise.
3518 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3519 (I387_YMM0H_REGNUM): Likewise.
3520 (I387_YMMENDH_REGNUM): Likewise.
3521 (i387_supply_xsave): Likewise.
3522 (i387_collect_xsave): Likewise.
3524 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3526 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3527 <sys/uio.h> and "i386-xstate.h".
3528 (PTRACE_GETREGSET): New.
3529 (PTRACE_SETREGSET): Likewise.
3530 (fetch_xstateregs): Likewise.
3531 (store_xstateregs): Likewise.
3532 (GETXSTATEREGS_SUPPLIES): Likewise.
3533 (regmap): Include 8 upper YMM registers.
3534 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3536 (i386_linux_store_inferior_registers): Likewise.
3537 (i386_linux_read_description): Check and enable AVX target
3540 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3541 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3542 (i386_linux_regset_sections): Add ".reg-xstate".
3543 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3544 (i386_linux_core_read_xcr0): New.
3545 (i386_linux_core_read_description): Check and enable AVX target
3547 (i386_linux_init_abi): Set xsave_xcr0_offset.
3548 (_initialize_i386_linux_tdep): Call
3549 initialize_tdesc_i386_avx_linux.
3551 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3552 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3553 (i386_linux_core_read_xcr0): New.
3554 (tdesc_i386_avx_linux): Likewise.
3555 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3557 * i386-tdep.c: Include "i386-xstate.h" and
3558 "features/i386/i386-avx.c".
3559 (i386_ymm_names): New.
3560 (i386_ymmh_names): Likewise.
3561 (i386_ymmh_regnum_p): Likewise.
3562 (i386_ymm_regnum_p): Likewise.
3563 (i386_xmm_regnum_p): Likewise.
3564 (i386_register_name): Likewise.
3565 (i386_ymm_type): Likewise.
3566 (i386_supply_xstateregset): Likewise.
3567 (i386_collect_xstateregset): Likewise.
3568 (i386_sse_regnum_p): Removed.
3569 (i386_pseudo_register_name): Support pseudo YMM registers.
3570 (i386_pseudo_register_type): Likewise.
3571 (i386_pseudo_register_read): Likewise.
3572 (i386_pseudo_register_write): Likewise.
3573 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3574 %xmmN if AVX is available.
3575 (i386_regset_from_core_section): Support .reg-xstate section.
3576 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3577 (i386_process_record): Replace i386_sse_regnum_p with
3579 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3580 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3581 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3582 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3583 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3584 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3586 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3588 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3589 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3591 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3592 (I386_AVX_NUM_REGS): New.
3593 (i386_xmm_regnum_p): Likewise.
3594 (i386_ymm_regnum_p): Likewise.
3595 (i386_ymmh_regnum_p): Likewise.
3597 * common/i386-xstate.h: New.
3599 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3601 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3603 * features/Makefile (WHICH): Add i386/i386-avx,
3604 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3605 (i386/i386-avx-expedite): New.
3606 (i386/i386-avx-linux-expedite): Likewise.
3607 (i386/x86-64-avx-expedite):Likewise.
3608 (i386/x86-64-avx-linux-expedite): Likewise.
3609 ($(outdir)/i386/i386-avx.dat): New dependency.
3610 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3611 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3612 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3614 * features/i386/32bit-avx.xml: New.
3615 * features/i386/64bit-avx.xml: Likewise.
3616 * features/i386/i386-avx-linux.c: Likewise.
3617 * features/i386/i386-avx-linux.xml: Likewise.
3618 * features/i386/i386-avx.c: Likewise.
3619 * features/i386/i386-avx.xml: Likewise.
3620 * features/i386/x86-64-avx-linux.c: Likewise.
3621 * features/i386/x86-64-avx-linux.xml: Likewise.
3622 * features/i386/x86-64-avx.c: Likewise.
3623 * features/i386/x86-64-avx.xml: Likewise.
3624 * regformats/i386/i386-avx-linux.dat: Likewise.
3625 * regformats/i386/i386-avx.dat: Likewise.
3626 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3627 * regformats/i386/x86-64-avx.dat: Likewise.
3629 2010-04-07 Doug Evans <dje@google.com>
3631 * top.c (source_file_name): Make const char *.
3632 * top.h (source_file_name): Update.
3633 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3635 (script_from_file): Change `file' arg to const char *.
3636 * cli/cli-script.h (script_from_file): Update.
3638 2010-04-06 Doug Evans <dje@google.com>
3640 * cli/cli-cmds.c (source_command): Run cleanups.
3642 2010-04-06 Stan Shebs <stan@codesourcery.com>
3644 * defs.h (char_ptr): Move typedef here from...
3645 * ada-lang.c (char_ptr): Remove.
3646 * charset.c (char_ptr): Remove.
3647 * tracepoint.h (struct uploaded_string): Remove.
3648 (struct uploaded_tp): Use vectors for string arrays.
3649 * tracepoint.c (trace_save): Use vectors of actions.
3650 (parse_tracepoint_definition): Ditto.
3651 (get_uploaded_tp): Clear vectors.
3652 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3653 (next_cmd): Change to an int.
3654 (read_next_cmd): Use vector of command strings.
3656 2010-04-06 Doug Evans <dje@google.com>
3658 * top.h (source_script, cd_command): Delete.
3659 * main.c: #include "cli/cli-cmds.h"
3661 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3663 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3664 type in bytes, not bits.
3666 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3668 * stabsread.c (define_symbol): Add support for char
3669 and string constants.
3671 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3673 Remove remaining "%ll" uses.
3674 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3676 * rs6000-nat.c (rs6000_ptrace64): Idem.
3677 * solib-pa64.c (pa64_current_sos): Idem.
3678 * solib-spu.c (spu_current_sos): Idem.
3679 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3681 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3683 * sh64-tdep.c (sh64_show_media_regs): Idem.
3685 2010-04-05 Stan Shebs <stan@codesourcery.com>
3687 * tracepoint.c: Include gdbcore.h.
3688 (tfile_xfer_partial): Return partial results, also try reading
3690 (tfile_has_all_memory): New function.
3691 (init_tfile_ops): Use it.
3693 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3696 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3697 the changes in data-directory.
3698 (init_sysinfo): Reload the syscall XML file if the data-directory
3701 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3704 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3706 2010-04-04 Stan Shebs <stan@codesourcery.com>
3707 Nathan Sidwell <nathan@codesourcery.com>
3709 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3710 breakpoints printed.
3711 (is_hardware_watchpoint): Make argument const.
3712 (is_watchpoint): Ditto.
3713 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3715 (breakpoints_info): Pass NULL to breakpoint_1.
3716 (maintenance_info_breakpoints): Ditto.
3717 (watchpoints_info): New function.
3718 (tracepoints_info): Use breakpoint_1 filter.
3719 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3720 (_initialize_breakpoint): Make "info watchpoints" its own command.
3721 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3722 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3724 2010-04-04 Stan Shebs <stan@codesourcery.com>
3726 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3728 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3730 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3731 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3733 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3735 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3736 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3738 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3740 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3743 2010-04-02 Hui Zhu <teawater@gmail.com>
3745 * i386-tdep.c (OT_DQUAD): New enum.
3746 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3747 SSE3, SSSE3 and SSE4.
3749 2010-04-02 Hui Zhu <teawater@gmail.com>
3751 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3754 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3756 * tracepoint.c (trace_dump_actions): New, factored out from
3757 trace_dump_command, and adjusted to recurse into while-stepping's
3759 (trace_dump_command): Use it.
3761 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3763 * breakpoint.h (struct counted_command_line): Moved definition to
3764 breakpoint.c, and forward declare.
3765 (breakpoint_commands): Declare.
3766 * breakpoint.c (struct counted_command_line): Moved here.
3767 (breakpoint_commands): New.
3768 * tracepoint.c (encode_actions): Use breakpoint_commands.
3769 * remote.c (remote_download_tracepoint): Ditto.
3771 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3773 * remote.c (remote_parse_stop_reply): Use hex_string instead
3774 of phex_nz for error.
3776 2010-04-01 Stan Shebs <stan@codesourcery.com>
3777 Nathan Sidwell <nathan@codesourcery.com>
3779 * tracepoint.h (enum actionline_type): Remove.
3780 (validate_actionline): Change return to void.
3781 * tracepoint.c (report_agent_reqs_errors): New function.
3782 (validate_actionline): Call it, change return to void, report errors
3784 (collect_symbol): Call report_agent_reqs_errors.
3785 (encode_actions_1): Ditto.
3786 (encode_actions): Don't expect a result from validate_actionline.
3788 2010-04-01 Stan Shebs <stan@codesourcery.com>
3790 * tracepoint.c (trace_start_command): Confirm if trace is running.
3791 (trace_stop_command): Error if trace not running.
3793 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3795 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3796 (AMD64_NUM_LOWER_BYTE_REGS): New.
3797 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3798 (amd64_pseudo_register_write): Likewise.
3799 (amd64_init_abi): Set num_byte_regs to 20.
3801 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3803 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3804 (prev_breakpoint_count): New.
3805 (set_breakpoint_count): Adjust.
3806 (rbreak_start_breakpoint_count): New.
3807 (start_rbreak_breakpoints): Adjust.
3808 (end_rbreak_breakpoints): Adjust.
3809 (struct commands_info) <arg>: New field.
3810 (do_map_commands_command): Tweak output to include breakpoint spec
3812 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3813 ARG was empty on entry. Set INFO's arg.
3814 (create_breakpoint): Adjust.
3816 * NEWS: Clarify `commands' changes.
3818 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3820 * tracepoint.c: Include stack.h.
3821 (struct add_local_symbols_data): New.
3822 (do_collect_symbol): New.
3823 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3824 iterate_over_block_local_vars.
3825 * stack.c (print_block_frame_locals): Rewrite as ...
3826 (iterate_over_block_locals): ... this. Take a callback function
3827 pointer and generic data pointer, and call that instead of
3828 print_variable_and_value.
3829 (struct print_variable_and_value_data): New.
3830 (do_print_variable_and_value): New.
3831 (iterate_over_block_local_vars): New, abstracted out from
3832 print_frame_local_vars.
3833 (print_frame_local_vars): Rewrite using
3834 iterate_over_block_local_vars.
3835 (iterate_over_block_arg_vars): New, abstracted out from
3836 print_frame_arg_vars.
3837 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3838 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3839 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3841 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
3843 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3844 instructions. Use the PC+4 if the base of the TBB or TBH is the
3847 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3849 Fix crash on reading wrong function declaration DWARF.
3850 * dwarf2read.c (read_subroutine_type): New variable void_type.
3851 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3852 more close to their use.
3854 2010-03-31 Stan Shebs <stan@codesourcery.com>
3856 * breakpoint.c (tracepoint_save_command): Include variables,
3857 conditionals, tracepoint types, and default-collect.
3858 * tracepoint.c (save_trace_state_variables): New function.
3859 * tracepoint.h (save_trace_state_variables): Declare it.
3861 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3863 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3865 2010-03-30 Keith Seitz <keiths@redhat.com>
3867 * c-typeprint.c (c_type_print_args): Don't print "void"
3868 for java, regardless of whether it is TYPE_PROTOTYPED.
3869 Use the passed-in language instead of current_language.
3870 (c_type_print_varspec_suffix): Use current_language instead
3871 of assuming language_c.
3872 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3873 any return type specifier from the physname.
3875 2010-03-30 Pedro Alves <pedro@codesourcery.com>
3877 * tui/tui-interp.c (tui_is_toplevel): New.
3879 (tui_allowed_p): New.
3880 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3882 * tui/tui.h (tui_allowed_p): Declare.
3884 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3886 * serial.h: Include winsock2.h before windows.h.
3888 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3890 * NEWS: Mention xmlRegisters= in qSupported packet.
3892 * i386-tdep.c: Include "remote.h".
3893 (_initialize_i386_tdep): Call register_remote_support_xml.
3895 * remote.c (remote_support_xml): New.
3896 (register_remote_support_xml): Likewise.
3897 (remote_query_supported_append): Likewise.
3898 (remote_query_supported): Support remote_support_xml.
3900 * remote.h (register_remote_support_xml): New.
3902 2010-03-29 Stan Shebs <stan@codesourcery.com>
3904 * tracepoint.c (trace_find_line_command): Remove dead code.
3906 * tracepoint.h (struct uploaded_string): New struct.
3907 (struct uploaded_tp): New fields for source strings.
3908 * breakpoint.c (this_utp, next_cmd): New globals.
3909 (read_uploaded_action): New function.
3910 (create_tracepoint_from_upload): Fill in more parts
3912 * tracepoint.c (encode_source_string): New function.
3913 (trace_save): Write out source strings, fix error checks.
3914 (parse_tracepoint_definition): Add source string parsing.
3915 * remote.c (PACKET_TracepointSource): New packet type.
3916 (remote_download_command_source): New function.
3917 (remote_download_tracepoint): Download source pieces also.
3918 (_initialize_remote): Add packet config command.
3920 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3923 * tracepoint.c (start_tracing): Check tracepoints before sending
3924 commands to target, don't start if all tracepoints disabled.
3926 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3928 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3930 2010-03-26 Stan Shebs <stan@codesourcery.com>
3932 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3934 2010-03-26 Tom Tromey <tromey@redhat.com>
3936 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3938 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3940 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3941 (skip_prologue_sal): Remove local definition.
3942 (resolve_sal_pc): Remove now unnecessary code.
3943 * linespec.c (minsym_found): Call skip_prologue_sal.
3944 * symtab.c (find_function_start_pc): Remove.
3945 (find_function_start_sal): Extract prologue skipping into ...
3946 (skip_prologue_sal): ... this new function. Handle code both
3947 with and without debug info. Respect SAL's explicit_pc and
3948 explicit_line flags. Inline old find_function_start_pc.
3949 * symtab.h (find_function_start_pc): Remove.
3950 (skip_prologue_sal): Add prototype.
3952 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3954 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3955 for DW_TAG_imported_module children.
3957 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3959 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3960 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3961 * completer.c (add_struct_fields): Fix inverted logic.
3963 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3965 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3967 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3969 * tracepoint.c (current_trace_status): Don't make sure error_desc
3971 (parse_trace_status): Release a previous error_desc string, and
3972 set it to NULL by default. If stop reason is tracepoint_error,
3973 make sure error_desc is not left NULL.
3975 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3977 * tracepoint.c (trace_save): Remove X from tracepoint error
3980 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3982 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3983 the terror description. Don't expect an X prefix.
3985 2010-03-25 Stan Shebs <stan@codesourcery.com>
3987 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3988 (struct trace_status): New field error_desc.
3989 * tracepoint.c (stop_reason_names): Add terror.
3990 (current_trace_status): Ensure non-NULL error description.
3991 (trace_status_command): Add error report.
3992 (trace_status_mi): Ditto.
3993 (trace_save): Add special case for error description.
3994 (parse_trace_status): Add case for errors.
3996 2010-03-25 Keith Seitz <keiths@redhat.com>
3998 * dwarf2read.c (read_subroutine_type): If the compilation unit
3999 language is Java, mark any formal parameter named "this" as
4000 artificial (GCC/43521).
4001 (dwarf2_name): Add special handling for Java constructors.
4003 2010-03-25 Tom Tromey <tromey@redhat.com>
4005 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4006 * infrun.c (handle_inferior_event): Change initialization of
4008 (handle_inferior_event): Change assignment to stop_stack_dummy.
4009 (normal_stop): Update use of stop_stack_dummy.
4010 (struct inferior_status) <stop_stack_dummy>: Change type.
4011 * inferior.h (stop_stack_dummy): Update.
4012 * infcmd.c (stop_stack_dummy): Change type.
4013 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4015 (call_function_by_hand): Call set_std_terminate_breakpoint.
4016 Rewrite std::terminate handling.
4017 * breakpoint.h (enum bptype) <bp_std_terminate,
4018 bp_std_terminate_master>: New.
4019 (enum stop_stack_kind): New.
4020 (struct bpstat_what) <call_dummy>: Change type.
4021 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4023 * breakpoint.c (create_std_terminate_master_breakpoint): New
4025 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4026 Call create_std_terminate_master_breakpoint.
4027 (print_it_typical): Handle new breakpoint kinds.
4028 (bpstat_stop_status): Handle bp_std_terminate_master.
4029 (bpstat_what): Correctly set call_dummy field. Handle
4030 bp_std_terminate_master and bp_std_terminate.
4031 (print_one_breakpoint_location): Update.
4032 (allocate_bp_location): Update.
4033 (set_std_terminate_breakpoint): New function.
4034 (delete_std_terminate_breakpoint): Likewise.
4035 (create_thread_event_breakpoint): Update.
4036 (delete_command): Update.
4037 (breakpoint_re_set_one): Update.
4038 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4040 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4042 * symfile.c (build_section_addr_info_from_bfd): New.
4043 (build_section_addr_info_from_objfile): Base it on
4044 build_section_addr_info_from_bfd.
4045 (addrs_section_compar, addrs_section_sort): New.
4046 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4047 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4048 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4050 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4052 * elfread.c (find_separate_debug_file_by_buildid):
4053 Remove unused local variable.
4055 2010-03-24 Tom Tromey <tromey@redhat.com>
4057 PR breakpoints/9352:
4058 * NEWS: Mention changes to `commands' and `rbreak'.
4059 * symtab.c (do_end_rbreak_breakpoints): New function.
4060 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4061 end_rbreak_breakpoints.
4062 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4063 (set_breakpoint_count): Likewise. Clear last_was_multi.
4064 (multi_start, multi_end, last_was_multi): New globals.
4065 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4067 (struct commands_info): New
4068 (do_map_commands_command): New function.
4069 (commands_command_1): New function.
4070 (commands_command): Use it.
4071 (commands_from_control_command): Likewise.
4072 (do_delete_breakpoint): New function.
4073 (delete_command): Use it.
4074 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4075 (do_map_disable_breakpoint): New function.
4076 (disable_command): Use it.
4077 (do_map_enable_breakpoint): New function.
4078 (enable_command): Use it.
4079 (enable_once_breakpoint): Add argument.
4080 (enable_once_command): Update.
4081 (enable_delete_breakpoint): Add argument.
4082 (enable_delete_command): Update.
4083 (break_command_really): Set last_was_multi when needed.
4084 (check_tracepoint_command): Fix formatting.
4085 (validate_commands_for_breakpoint): New function.
4086 (breakpoint_set_commands): Use it.
4087 (tracepoint_save_command): Update.
4088 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4091 2010-03-24 Tom Tromey <tromey@redhat.com>
4093 * breakpoint.h (struct counted_command_line): New struct.
4094 (struct breakpoint) <commands>: Change type.
4095 (struct bpstats) <commands>: Change type.
4096 <commands_left>: New field.
4097 * breakpoint.c (alloc_counted_command_line): New function.
4098 (incref_counted_command_line): Likewise.
4099 (decref_counted_command_line): Likewise.
4100 (do_cleanup_counted_command_line): Likewise.
4101 (make_cleanup_decref_counted_command_line): Likewise.
4102 (breakpoint_set_commands): Use decref_counted_command_line and
4103 alloc_counted_command_line.
4104 (commands_command): Don't error if breakpoint commands are
4106 (commands_from_control_command): Likewise.
4107 (bpstat_free): Update.
4108 (bpstat_copy): Likewise.
4109 (bpstat_clear_actions): Likewise.
4110 (bpstat_do_actions_1): Likewise.
4111 (bpstat_stop_status): Likewise.
4112 (print_one_breakpoint_location): Likewise.
4113 (delete_breakpoint): Likewise.
4114 (bpstat_alloc): Initialize new field.
4115 (tracepoint_save_command): Update.
4116 * tracepoint.c (encode_actions): Update.
4117 (trace_dump_command): Update.
4119 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4121 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4122 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4123 (read_structure_type): For RealView, set TYPE_STUB on structures with
4124 no byte size and no children.
4125 (read_subroutine_type): Mark functions as prototyped by default.
4126 * symtab.c (producer_is_realview): New function.
4127 * symtab.h (expand_line_sal): Fix declaration formatting.
4128 (producer_is_realview): Declare.
4130 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4132 * arm-tdep.c (skip_prologue_function): New function.
4133 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4134 (thumb_analyze_prologue): Document return value. Recognize more
4135 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4137 (arm_skip_prologue): Remove call dummy check. Check the prologue
4138 for non-GNU compilers.
4139 (arm_instruction_changes_pc): New function.
4140 (arm_analyze_prologue): New function, broken out from
4141 arm_scan_prologue. Recognize more ARM instructions and skippable
4142 calls. Update comments. Handle NULL cache. Return the address
4143 of the first unrecognized instruction. Do not skip past other
4144 instructions which change control flow. Add debug output.
4145 (arm_scan_prologue): Use arm_analyze_prologue.
4146 (ARM_PC_32): Delete.
4147 (shifted_reg_val): Simplify ARM_PC_32 check.
4149 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4151 * tracepoint.c (tvariables_info_1): Actually compute
4152 the number of rows in the result.
4154 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4156 * remote.c (crc32): Constify `buf' parameter.
4157 (remote_verify_memory): New, abstracted out from...
4158 (compare_sections_command): ... this. Remove hardcoded target
4160 (init_remote_ops): Install remote_verify_memory.
4161 * target.c (target_verify_memory): New.
4162 * target.h (struct target_ops) <to_verify_memory>: New field.
4163 (target_verify_memory): Declare.
4165 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4167 Implement -trace-save.
4169 * mi-cmds.h (mi_cmds_trace_save): Declare.
4170 * mi-cmds.c (mi_cmds): Register -trace-save.
4171 * mi/mi-main.c (mi_cmd_trace_save): New.
4172 * remote.c (remote_save_trace_data): Take const parameter.
4173 * target.h (struct target_ops::to_save_trace_data): Take
4175 * target.c (update_current_target): Adjust to the above.
4176 * tracepoint.c (trave_save): New, extracted from
4177 (trace_save_command): ...this.
4178 (tfile_trace_find): Remove message that is unnecessary now
4179 that 'tfind' reports found frame.
4180 * tracepoint.h (trace_save): Declare.
4182 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4184 Implement -trace-find.
4186 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4187 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4188 * mi/mi-main.c (mi_cmd_trace_find): New.
4189 * target.h (struct target_ops): Document to_trace_find.
4190 * tracepoint.h (tfind_1): Declare.
4191 * tracepoint.c (finish_tfind_command): Rename to...
4193 * remote.c (remote_trace_find): Return -1 if target say
4194 there's no frame. Improve error diagnostics.
4196 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4198 -trace-define-variable and -trace-list-variables.
4200 * tracepoint.c (create_trace_state_variable): Make
4201 private copy of name, as opposed to assuming the
4202 pointer lives forever.
4203 (tvariables_info_1): New.
4204 (tvariables_info): Use the above.
4205 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4207 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4208 and -trace-list-variables.
4209 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4210 (mi_cmd_trace_list_variables): New.
4211 * mi/mi-main.c (mi_cmd_trace_define_variable)
4212 (mi_cmd_trace_list_variables): New.
4214 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4216 Implement -break-passcount.
4218 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4219 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4220 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4222 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4224 -trace-start/-trace-end/-trace-status.
4226 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4228 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4229 (mi_cmd_trace_stop): Declare.
4230 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4231 (mi_cmd_trace_stop): New.
4232 * tracepoint.c (start_tracing): New, extracted from...
4233 (trace_start_command): ...this.
4234 (trace_status_mi): New.
4235 * tracepoint.h (struct trace_status): Document
4236 stopping_tracepoint.
4237 (start_tracing, stop_tracing, trace_status_mi): Declare.
4239 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4241 Implement creating tracepoints with -break-insert.
4243 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4244 to mean that tracepoint should be created.
4246 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4248 * breakpoint.c (check_no_tracepoint_commands): Use
4249 current spelling of 'teval'.
4251 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4253 Unify actions and commands
4255 * defs.h (read_command_lines, read_command_lines_1): New
4256 parameters validator and closure.
4257 * tracepoint.h (struct action_line): Remove.
4258 * breakpoint.h (struct breakpoint): Remove the 'actions'
4260 * defs.h (enum command_control_type): New value
4261 while_stepping_control.
4262 (struct command_line): Add comments.
4263 * breakpoint.c (breakoint_is_tracepoint): New.
4264 (breakpoint_set_commands): For tracepoints,
4265 verify the commands are permissible.
4266 (check_tracepoint_commands): New.
4267 (commands_command): Require that each new line is validated using
4268 check_tracepoint_command, if we set commands for a tracepoint.
4269 (create_tracepoint_from_upload): Likewise.
4270 (print_one_breakpoint_location): Remove the code to print
4271 actions specifically.
4272 (tracepoint_save_command): Relay to print_command_lines.
4273 * cli/cli-script.c (process_next_line): New parameters validator
4274 and closure. Handle 'while-stepping'. Call validator if not null.
4275 (read_command_lines, read_command_lines1): Likewise.
4276 (recurse_read_control_structure): New parameters validator and
4277 closure. Handle while_stepping_control.
4278 (print_command_lines): Handle while-stepping.
4279 (get_command_line, define_command, document_command): Adjust.
4280 * remote.c (remote_download_tracepoint): Adjust.
4281 * tracepoint.c (make_cleanup_free_actions, read_actions)
4282 (free_actions, do_free_actions_cleanup): Remove.
4283 (trace_actions_command): Use read_command_lines.
4284 (validate_actionline): Use error in one place.
4285 (encode_actions_1): New, extracted from...
4286 (encode_actions): ...this. Also use cleanups for exception
4288 (trace_dump_command): Adjust.
4289 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4292 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4294 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4296 2010-03-22 Stan Shebs <stan@codesourcery.com>
4298 * value.c (value_static_field): Be lazy about the field's value.
4300 2010-03-22 Reid Kleckner <reid@kleckner.net>
4303 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4305 (disable_breakpoints_in_shlibs): Likewise.
4307 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4309 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4310 GCC 4.1 debug info generation (GCC PR c++/28460).
4311 (determine_prefix): Likewise.
4313 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4315 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4317 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4319 2010-03-19 Stan Shebs <stan@codesourcery.com>
4321 * ax-gdb.c (gen_fetch): Handle bool.
4322 (gen_usual_unary): Ditto.
4324 (gen_equal): New function.
4325 (gen_less): New function.
4326 (gen_expr_binop_rest): Call them, also return integer type from
4330 2010-03-19 Tom Tromey <tromey@redhat.com>
4332 * jv-lang.c (jv_dynamics_objfile_data_key)
4333 (jv_type_objfile_data_key): New globals.
4334 (class_symtab): Move earlier.
4335 (jv_per_objfile_free): New function.
4336 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4338 Remove ancient #if 1.
4339 (add_class_symbol): Remove redundant declaration.
4340 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4341 (java_link_class_type): Mark as static. Update.
4342 (jv_clear_object_type): New function.
4343 (set_java_object_type): Likewise.
4344 (get_java_object_type): Use set_java_object_type.
4345 (is_object_type): Likewise.
4346 (_initialize_java_language): Register new objfile keys.
4347 (get_java_class_symtab): Add 'gdbarch' parameter.
4348 (add_class_symtab_symbol): Update.
4349 (type_from_class): Update.
4351 2010-03-19 Stan Shebs <stan@codesourcery.com>
4353 * ax-general.c (ax_const_l): Fix a sizing bug.
4355 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4359 2010-03-18 Stan Shebs <stan@codesourcery.com>
4360 Pedro Alves <pedro@codesourcery.com>
4362 * target.h (struct target_ops): New method
4363 to_set_circular_trace_buffer.
4364 (target_set_circular_trace_buffer): New macro.
4365 * target.c (update_current_target): Add
4366 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4368 * remote.c (remote_set_circular_trace_buffer): New function.
4369 (init_remote_ops): Add it to vector.
4370 * tracepoint.h (struct trace_status): New field traceframes_created,
4371 change buffer_size and buffer_free to int.
4372 * tracepoint.c (circular_trace_buffer): New global.
4373 (start_tracing): Send values of disconnected tracing and circular
4374 trace buffer settings.
4375 (set_circular_trace_buffer): New function.
4376 (parse_trace_state): Handle total space and frames created.
4377 (trace_status_command): Display total space and total frames
4379 (trace_save): Write out new status values.
4380 (parse_trace_status): Set traceframe_count, traceframes_created,
4381 buffer_free and buffer_size to -1 by default.
4382 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4383 * NEWS: Mention the circular trace buffer option.
4385 2010-03-18 Tom Tromey <tromey@redhat.com>
4387 * infcmd.c (finish_command_continuation): Wrap print_return_value
4390 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4392 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4393 DIE has a name before creating the associated partial symbol.
4394 (read_func_scope): Emit a complaint if the subprogram does not
4395 have a name or when we can't extract the subprogram PC bounds.
4397 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4399 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4400 instead of selected frame architecture.
4402 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4404 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4405 a valid selected thread, and that it is not running.
4406 (advance_command): Ditto.
4407 (finish_command): Ditto.
4409 2010-03-17 Stan Shebs <stan@codesourcery.com>
4411 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4413 * infcall.c: Include tracepoint.h.
4414 (call_function_by_hand): Disallow calls in tfind mode.
4415 * infcmd.c: Include tracepoint.h.
4416 (ensure_not_tfind_mode): New function.
4417 (continue_1): Call it.
4419 (jump_command): Ditto.
4420 (signal_command): Ditto.
4421 (advance_command): Ditto.
4422 (until_command): Ditto.
4423 (finish_command): Ditto.
4424 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4426 * ax-gdb.h (struct axs_value): New field optimized_out.
4427 (gen_trace_for_var): Add gdbarch argument.
4428 * ax-gdb.c (gen_trace_static_fields): New function.
4429 (gen_traced_pop): Call it, add gdbarch argument.
4430 (gen_trace_for_expr): Update call to it.
4431 (gen_trace_for_var): Ditto, and report optimized-out variables.
4432 (gen_struct_ref_recursive): Check for optimized-out value.
4433 (gen_struct_elt_for_reference): Ditto.
4434 (gen_static_field): Pass gdbarch instead of expression, assume
4435 optimization if field not found.
4436 (gen_var_ref): Set the optimized_out flag.
4437 (gen_expr): Error on optimized-out variable.
4438 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4439 expressions, skip optimized-out variables with computed locations.
4440 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4441 erroring out if location expression missing.
4442 (loclist_tracepoint_var_ref): Don't error out here.
4444 2010-03-17 Tom Tromey <tromey@redhat.com>
4446 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4447 DWARF data is available.
4449 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4451 * symfile.c (generic_load): Reset breakpoints after loading.
4453 2010-03-17 Tom Tromey <tromey@redhat.com>
4455 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4457 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4459 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4460 create_breakpoint call, adjust the parameters.
4462 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4463 Chandru <chandru@in.ibm.com>
4465 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4466 * valarith.c (value_subscripted_rvalue): Suppress error if
4467 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4469 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4471 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4473 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4475 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4476 before doing the associated thread switch.
4478 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4480 * MAINTAINERS: Update my email address.
4482 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4484 Simplify MI breakpoint setting.
4486 * breakpoint.c (break_command_really): Make nonstatic and
4488 (create_breakpoint): ...this. Rename prior function by this name
4490 (create_breakpoint_sal): ...this.
4491 (create_breakpoints): Rename to...
4492 (create_breakpoints_sal): ...this.
4493 (set_breakpoint): Remove.
4494 * breakpoint.h: Adjust to above changes.
4495 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4497 2010-03-15 Stan Shebs <stan@codesourcery.com>
4499 * ax-gdb.c: Include cp-support.h.
4500 (find_field): Remove.
4501 (gen_primitive_field): New function.
4502 (gen_struct_ref_recursive): New function.
4503 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4505 (gen_static_field): New function.
4506 (gen_struct_elt_for_reference): New.
4507 (gen_namespace_elt): New.
4508 (gen_maybe_namespace_elt): New.
4509 (gen_aggregate_elt_ref): New.
4510 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4512 2010-03-15 Tom Tromey <tromey@redhat.com>
4514 * dwarf2read.c (die_needs_namespace): Also return 0 for
4517 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4520 * cp-support.h: Added char *declaration element to using_direct
4522 (cp_add_using): Added char *declaration argument.
4523 (cp_add_using_directive): Ditto.
4524 (cp_lookup_symbol_imports): made extern.
4525 * cp-namespace.c: Updated with the above changes.
4526 * dwarf2read.c (read_import_statement): Ditto.
4527 (read_namespace): Ditto.
4528 (read_import_statement): Support import declarations.
4529 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4531 Added support for 'declaration_only' search.
4532 (cp_lookup_symbol_namespace): Attempt to search for the name as
4533 is before consideration of imports.
4534 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4535 search at every block level search.
4536 Now takes language argument.
4537 (lookup_symbol_aux): Updated.
4539 2010-03-15 Tom Tromey <tromey@redhat.com>
4541 * c-exp.y (name_not_typename): Add 'operator' clause.
4543 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4545 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4546 * configure: Regenerate.
4548 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4550 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4551 and ".sdynbss". Update the comment.
4553 2010-03-15 Jie Zhang <jie@codesourcery.com>
4555 * MAINTAINERS: Update my email address.
4557 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4559 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4561 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4563 * charset.c [USE_WIN32API]: Include <windows.h>.
4564 (_initialize_charset): Correct type of w32_host_default_charset.
4566 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4568 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4570 2010-03-12 Tom Tromey <tromey@redhat.com>
4573 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4574 in a lexical block does not need a namespace.
4575 (new_symbol) <DW_TAG_variable>: Put extern variables on
4576 list_in_scope in all cases.
4578 2010-03-12 Stan Shebs <stan@codesourcery.com>
4580 * ax-gdb.c (gen_expr): Add shift expressions.
4581 (gen_expr_binop_rest): Ditto.
4583 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4585 * buildsym.c (finish_block): Reset using_directives pointer
4586 after block initialization.
4588 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4590 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4591 * i386-tdep.c (i386_word_names): Likewise.
4593 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4595 * target.c (memory_xfer_partial): Don't use the stack cache if
4596 inspecting trace frames.
4597 * tracepoint.c (finish_tfind_command): Invalidate the target
4600 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4602 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4603 for the PIC displacement, print also the displacement value.
4604 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4606 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4608 * remote-mips.c (close_ports, mips_initialize_cleanups)
4609 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4610 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4611 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4612 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4613 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4614 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4615 comments describing each of these functions.
4616 (mips_enter_debug, mips_exit_debug, common_open)
4617 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4618 blank line after the comment describing the function.
4620 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4622 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4623 parameter displacementp. Update comment.
4624 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4625 element exists. Return if svr4_exec_displacement was not successful.
4628 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4629 Daniel Jacobowitz <dan@codesourcery.com>
4631 * solib-svr4.c (read_program_header): Support type == -1 to read
4632 all program headers.
4633 (read_program_headers_from_bfd): New function.
4634 (svr4_static_exec_displacement): Remove and move the comment ...
4635 (svr4_exec_displacement): ... here. Remove variable found. New
4636 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4637 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4638 targets using read_program_headers_from_bfd. Remove the call of
4639 svr4_static_exec_displacement.
4641 2010-03-10 Tom Tromey <tromey@redhat.com>
4643 * dwarf2read.c (struct pubnames_header): Remove.
4644 (_PUBNAMES_HEADER): Remove.
4645 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4646 (struct aranges_header): Remove.
4647 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4648 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4649 (PUBNAMES_SECTION): Remove.
4650 (ARANGES_SECTION): Remove.
4651 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4652 (dwarf2_build_psymtabs): Remove dead code.
4653 (dwarf2_build_psymtabs_easy): Remove.
4655 2010-03-10 Tom Tromey <tromey@redhat.com>
4657 * elfread.c (elf_symfile_read): Don't call
4658 dwarf2_build_frame_info.
4659 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4660 (struct dwarf2_per_objfile) <objfile>: New field.
4661 (dwarf2_has_info): Now idempotent. Set objfile field.
4662 (dwarf2_read_section): Check and set readin field. Call
4664 (dwarf2_build_psymtabs): Don't read all sections.
4665 (read_type_comp_unit_head): Read types section.
4666 (create_debug_types_hash_table): Likewise.
4667 (init_cu_die_reader): Add asserts.
4668 (process_type_comp_unit): Add assert.
4669 (dwarf2_build_psymtabs_hard): Read info section.
4670 (load_partial_comp_unit): Add assert.
4671 (create_all_comp_units): Read info section.
4672 (load_full_comp_unit): Likewise.
4673 (dwarf2_ranges_read): Read ranges section.
4674 (dwarf2_record_block_ranges): Add assert.
4675 (dwarf2_read_abbrevs): Read abbrev section.
4676 (read_indirect_string): Read str section.
4677 (dwarf_decode_line_header): Read line section.
4678 (read_signatured_type_at_offset): Read types section.
4679 (dwarf_decode_macros): Read macinfo section.
4680 (dwarf2_symbol_mark_computed): Read loc section.
4681 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4682 dwarf2_build_frame_info.
4683 (dwarf2_build_frame_info): Unconditionally set
4684 dwarf2_frame_objfile_data on the objfile.
4685 * configure.ac: Check for posix_madvise.
4686 * config.in, configure: Rebuild.
4688 2010-03-10 Tom Tromey <tromey@redhat.com>
4690 * xcoffread.c (xcoff_start_psymtab): Update.
4691 (xcoff_end_psymtab): Update.
4692 * psymtab.c (allocate_psymtab): Remove dead code.
4693 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4695 * mdebugread.c (parse_partial_symbols): Update.
4696 (new_psymtab): Likewise.
4697 * dwarf2read.c (process_psymtab_comp_unit): Update.
4698 (psymtab_to_symtab_1): Update.
4699 * dbxread.c (start_psymtab): Update.
4700 (end_psymtab): Likewise.
4702 2010-03-10 Tom Tromey <tromey@redhat.com>
4704 * xcoffread.c: Include psymtab.h.
4705 (xcoff_sym_fns): Update.
4706 * symtab.h (struct partial_symbol): Remove.
4707 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4708 (struct partial_symtab): Remove.
4709 (PSYMTAB_TO_SYMTAB): Remove.
4710 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4711 (find_pc_sect_psymtab): Remove.
4712 (find_pc_sect_symtab_via_partial): Declare.
4713 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4714 (find_main_psymtab): Remove.
4715 (find_main_filename): Declare.
4716 (fixup_psymbol_section): Remove.
4717 (fixup_section): Declare.
4718 * symtab.c: Include psymtab.h.
4719 (lookup_symtab): Use lookup_symtab method.
4720 (lookup_partial_symtab): Remove.
4721 (find_pc_sect_psymtab_closer): Remove.
4722 (find_pc_sect_psymtab): Remove.
4723 (find_pc_sect_symtab_via_partial): New function.
4724 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4725 (fixup_section): No longer static.
4726 (fixup_psymbol_section): Remove.
4727 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4728 (lookup_global_symbol_from_objfile): Likewise.
4729 (lookup_symbol_aux_psymtabs): Remove.
4730 (lookup_symbol_aux_quick): New function.
4731 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4732 (lookup_partial_symbol): Remove.
4733 (basic_lookup_transparent_type_quick): New function.
4734 (basic_lookup_transparent_type): Use it.
4735 (find_main_psymtab): Remove.
4736 (find_main_filename): New function.
4737 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4738 (find_line_symtab): Use expand_symtabs_with_filename method.
4739 (output_partial_symbol_filename): New function.
4740 (sources_info): Use map_partial_symbol_filenames.
4741 (struct search_symbols_data): New type.
4742 (search_symbols_file_matches): New function.
4743 (search_symbols_name_matches): Likewise.
4744 (search_symbols): Use expand_symtabs_matching method.
4745 (struct add_name_data): Rename from add_macro_name_data.
4746 (add_macro_name): Update.
4747 (add_partial_symbol_name): New function.
4748 (default_make_symbol_completion_list): Use
4749 map_partial_symbol_names.
4750 (struct add_partial_symbol_name): New type.
4751 (maybe_add_partial_symtab_filename): New function.
4752 (make_source_files_completion_list): Use
4753 map_partial_symbol_filenames.
4754 (expand_line_sal): Use expand_symtabs_with_filename method.
4755 * symmisc.c: Include psymtab.h.
4756 (print_objfile_statistics): Use print_stats method.
4757 (dump_objfile): Use dump method.
4758 (dump_psymtab, maintenance_print_psymbols)
4759 (maintenance_info_psymtabs, maintenance_check_symtabs)
4760 (extend_psymbol_list): Remove.
4761 * symfile.h (struct quick_symbol_functions): New struct.
4762 (struct sym_fns) <qf>: New field.
4763 (sort_pst_symbols): Remove.
4764 (increment_reading_symtab): Declare.
4765 * symfile.c: Include psymtab.h.
4766 (compare_psymbols, sort_pst_symbols): Remove.
4767 (psymtab_to_symtab): Remove.
4768 (increment_reading_symtab): New function.
4769 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4771 (set_initial_language): Use find_main_filename.
4772 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4773 (free_named_symtabs): Remove unused code.
4774 (start_psymtab_common, add_psymbol_to_bcache)
4775 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4777 * stack.c: Include psymtab.h, symfile.h.
4778 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4779 * source.h (psymtab_to_fullname): Don't declare.
4780 * source.c: Include psymtab.h.
4781 (select_source_symtab): Use find_last_source_symtab method.
4782 (forget_cached_source_info): Use forget_cached_source_info
4784 (find_and_open_source): No longer static.
4785 (psymtab_to_fullname): Remove.
4786 * somread.c: Include psymtab.h.
4787 (som_sym_fns): Update.
4788 * psympriv.h: New file.
4789 * psymtab.h: New file.
4790 * psymtab.c: New file.
4791 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4792 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4793 * objfiles.c: Include psymtab.h.
4794 (objfile_relocate1): Use relocate method.
4795 (objfile_has_partial_symbols): Use has_symbols method.
4796 * mipsread.c: Include psymtab.h.
4797 (ecoff_sym_fns): Update.
4798 * mi/mi-cmd-file.c: Include psymtab.h.
4799 (print_partial_file_name): New function.
4800 (mi_cmd_file_list_exec_source_files): Use
4801 map_partial_symbol_filenames.
4802 * mdebugread.c: Include psympriv.h.
4803 * machoread.c: Include psympriv.h.
4804 (macho_sym_fns): Update.
4805 * m2-exp.y (yylex): Use lookup_symtab.
4806 * elfread.c: Include psympriv.h.
4807 (elf_sym_fns): Update.
4808 * dwarf2read.c: Include psympriv.h.
4809 * dbxread.c: Include psympriv.h.
4810 (aout_sym_fns): Update.
4811 * cp-support.c: Include psymtab.h.
4812 (read_in_psymtabs): Remove.
4813 (make_symbol_overload_list_qualified): Use
4814 expand_symtabs_for_function method.
4815 * coffread.c: Include psympriv.h.
4816 (coff_sym_fns): Update.
4817 * blockframe.c: Include psymtab.h.
4818 (find_pc_partial_function): Use find_pc_sect_symtab method.
4819 * ada-lang.h (ada_update_initial_language): Update.
4820 * ada-lang.c: Include psymtab.h.
4821 (ada_update_initial_language): Remove 'main_pst' argument.
4822 (ada_lookup_partial_symbol): Remove.
4823 (struct ada_psym_data): New type.
4824 (ada_add_psyms): New function.
4825 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4826 (struct add_partial_datum): New type.
4827 (ada_add_partial_symbol_completions): New function.
4828 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4829 (ada_exception_support_info_sniffer): Update.
4830 * Makefile.in (SFILES): Add psymtab.c.
4831 (COMMON_OBS): Add psymtab.o.
4832 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4834 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4836 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4838 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4841 * cp-namespace.c (cp_add_using): Deleted.
4842 (cp_add_using_directive): Use obstack allocations.
4843 Merged the function cp_add_using into this one.
4844 Added 'struct obstack *' argument.
4845 (cp_scan_for_anonymous_namespaces): Updated.
4846 * cp-support.h: Updated.
4847 * dwarf2read.c (read_import_statement): Updated.
4848 (read_namespace): Updated.
4850 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4852 * windows-nat.c (cygwin_conv_path): Remove old macro.
4854 2010-03-10 Pedro Alves <pedro@codesourcery.com>
4856 * breakpoint.c (condition_command): Handle watchpoint conditions.
4857 (is_hardware_watchpoint): Add comment.
4858 (is_watchpoint): New.
4859 (update_watchpoint): Don't reparse the watchpoint's condition
4862 (watchpoint_check): Use it.
4863 (bpstat_check_watchpoint): Handle it.
4864 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4865 conditions in a frame where it makes sense.
4866 (watch_command_1): Store the innermost block of the condition
4868 (delete_breakpoint): Delete the watchpoint condition expression.
4869 * breakpoint.h (struct bp_location) <cond>: Update comment.
4870 (struct breakpoint): New field `cond_exp_valid_block'.
4872 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4874 Adjust handling of Ada DIEs after dwarf2_physname patch.
4875 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4877 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4878 Pierre Muller <muller@ics.u-strasbg.fr>
4880 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4881 from/to posix/win32.
4882 (windows_make_so): Use non-Cygwin 1.7 specific function.
4883 (windows_create_inferior): Make sure that cygallargs points to
4884 original args in non Cygwin 1.7. case.
4886 2010-03-09 Michael Snyder <msnyder@vmware.com>
4888 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4889 after target_read_memory to get host byte order.
4890 (i386_process_record): Ditto.
4892 2010-03-09 Keith Seitz <keiths@redhat.com>
4894 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4895 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4896 print out const or volatile qualifiers, too.
4897 (c_type_print_args): Add parameters show_artificial and language.
4898 Skip artificial parameters when requested.
4899 Use the appropriate language printer.
4900 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4901 parameters and pass language_c.
4902 * dwarf2read.c (die_list): New file global.
4903 (struct partial_die_info): Update comments for name field.
4904 (pdi_needs_namespace): Renamed to ...
4905 (die_needs_namespace): ... this. Rewrite.
4906 (dwarf2_linkage_name): Remove.
4907 (add_partial_symbol): Do not predicate the call to
4908 partial_die_full_name based on pdi_needs_namespace.
4909 Remove call to cp_check_possible_namespace_symbols and associated
4911 (guess_structure_name): Do not inspect child subprogram DIEs.
4912 (dwarf2_fullname): Update comments.
4913 Use die_needs_namespace to assist in computing the name.
4914 (read_func_scope): Use dwarf2_name to get the DIE's name.
4915 Use dwarf2_physname to get the "linkage name" of the DIE.
4916 (dwarf2_add_member_field): Use dwarf2_physname instead of
4917 dwarf2_linkage_name.
4918 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4919 (determine_class): Remove.
4920 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4922 (new_symbol): Unconditionally call dwarf2_name.
4923 Compute the "linkage name" using dwarf2_physname.
4924 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4925 When determining to scan for anonymous C++ namespaces, ignore
4927 (dwarf2_physname): New function.
4928 (dwarf2_full_name): Move content to new function and call
4930 (dwarf2_compute_name): "New" function.
4931 (_initialize_dwarf2_read): Initialize die_list.
4932 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4934 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4935 without a demangled name.
4936 Print out type information for non-virtual methods.
4937 * linespec.c (decode_line_1): Force ANY string using "::" (or
4938 "." for java) to use decode_compound, and clean up any stray quoting.
4939 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4940 (decode_compound): Stop consuming at an open parenthesis.
4941 Keep template parameters.
4942 Keep any overload information.
4943 Keep keywords like "const".
4944 Remove paren_pointer.
4945 Move is_quoted check from set_flags to here.
4946 Remove #if 0 code from 2000. Ten years is long enough.
4947 (find_method): Before comparing symbol names, canonicalize the string
4949 If a specific overload is requested, find it. Otherwise throw an error.
4950 (find_method_overload_end): New function.
4951 (set_flags): Remove.
4952 (decode_compound): Assume that parentheses are matched.
4954 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4956 * linespec.c (decode_line_1): Keep important keywords like
4957 "const" and "volatile".
4958 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4959 * typeprint.h (c_type_print_args): Add declaration.
4960 * ui-file.c (do_ui_file_obsavestring): New function.
4961 (ui_file_obsavestring): New function.
4962 * ui-file.h (ui_file_obsavestring): Add declaration.
4963 * valops.c (find_overload_match): Resolve the object to
4965 If the object is a data member, search the object for the member
4966 and return with staticp set.
4967 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4968 Do not attempt to extract a function name from non-function types.
4969 If the extracted function name and the original name are the same,
4970 we don't have a C++ method.
4972 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4973 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4975 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4976 and arguments from symbol lookups.
4977 * ax-gdb.c (gen_expr): Likewise.
4978 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4979 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4980 lookup_possible_namespace_symbol): Likewise.
4981 * cp-support.c (read_in_psymtabs): Likewise.
4982 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4983 * language.h (la_lookup_symbol_nonlocal): Likewise.
4984 * scm-valprint.c (scm_inferior_print): Likewise.
4985 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4986 * solib-svr.c (elf_lookup_lib): Likewise.
4987 * solib.c (show_auto_solib_add): Likewise.
4988 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4989 * symmisc.c (maintenance_check_symtabs): Likewise.
4990 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4991 lookup_symbol_aux_local, lookup_symbol_aux_block,
4992 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4993 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4994 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4995 basic_lookup_transparent_type, find_main_psymtab,
4996 lookup_block_symbol): Likewise.
4997 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4998 lookup_symbol_global, lookup_symbol_aux_block,
4999 lookup_symbol_partial_symbol, lookup_block_symbol,
5000 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5002 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5004 * python/python-internal.h: Include symtab.h.
5006 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5007 Pierre Muller <muller@ics.u-strasbg.fr>
5009 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5010 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5013 2010-03-08 Tom Tromey <tromey@redhat.com>
5015 * breakpoint.c (breakpoint_1): Add "QUIT".
5017 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5018 Pedro Alves <pedro@codesourcery.com>
5020 * solib.c (solib_find): Replace extension if
5021 solib_symbols_extension is set in the target gdbarch.
5022 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5023 solib_symbols_extension to "sym".
5024 * gdbarch.sh (solib_symbols_extension): New variable.
5025 (pstring): New function.
5026 * gdbarch.h, gdbarch.c: Regenerate.
5028 2010-03-08 Tom Tromey <tromey@redhat.com>
5032 * utils.c: Include main.h.
5033 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5034 (defaulted_query): Use default answer if `batch_flag'.
5035 * main.h (batch_flag): Declare.
5036 * main.c (batch_flag): New global.
5037 (captured_main): Remove 'batch'. Update.
5039 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5041 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5044 * remote-mips.c (rockhopper_ops): New target_ops struct.
5045 (MON_ROCKHOPPER): New mips_monitor_type.
5046 (read_hex_value): New function.
5047 (mips_request): Send 8-byte values with a 'T' packet. Read the
5048 packet argument as a string and use read_hex_value to parse it.
5049 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5050 (rockhopper_open): New function.
5051 (mips_wait): Read the PC, FP and SP fields as strings. Use
5052 read_hex_value to parse them and mips_set_register to commit them.
5053 (mips_set_register): New function.
5054 (mips_fetch_registers): Do not cast register value to "unsigned"
5055 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5056 (mips_store_registers): Use a 'T' packet to set registers when
5057 using MON_ROCKHOPPER.
5058 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5059 and expect the total to be printed before the entry address.
5060 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5062 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5064 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5065 Change return value to int. Store value fetched in location
5066 addressed by `val'. Use function's return value as success
5067 or failure indicator. Adjust all callers.
5069 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
5071 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5073 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5074 Hui Zhu <teawater@gmail.com>
5076 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5077 tmp_to_stopped_data_address.
5078 (record_open): Reset tmp_to_stopped_by_watchpoint and
5079 tmp_to_stopped_data_address.
5080 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5081 to_stopped_data_address.
5083 2010-03-08 Hui Zhu <teawater@gmail.com>
5085 * i386-tdep.c (i386_process_record): Initialize regnum.
5087 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5089 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5090 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5092 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5094 Memory error when reading wrong core file.
5095 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5096 errors while reading the inferior memory, and return zero if
5097 an exception was raised.
5099 2010-03-07 Michael Snyder <msnyder@vmware.com>
5101 * record.c (record_restore): Rename tmpu8 to rectype.
5103 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5104 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5106 (i386_record_push): Rename local tmpulongest to addr.
5108 (i386_process_record): Rename local tmpulongest to addr.
5110 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5113 Rename local variable tmpu8 to opcode8 and regnum.
5115 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5117 * remote.c (remote_get_ada_task_ptid): New function.
5118 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5120 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5122 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5123 block. Define helper macros to reduce ifdefs in code.
5124 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5125 size. Call unadorned GetModuleFileNameEx rather than
5126 GetModuleFileNameEx*.
5127 (windows_make_so): Use __PMAX to denote maximum buffer size and
5128 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5130 (get_image_name): Use __PMAX to denote maximum buffer size.
5131 (handle_load_dll): Likewise.
5132 (windows_pid_to_exec_file): Likewise.
5133 (windows_create_inferior): Add many accommodations for older Cygwin and
5135 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5136 __USEWIDE conditional.
5137 (bad_GetModuleFileNameExA): Likewise.
5138 (_initialize_loadable): Just use real function names without the dyn_
5139 part since they are defined earlier.
5141 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5142 Tom Tromey <tromey@redhat.com>
5144 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5145 (parse_escape): Likewise.
5146 * python/py-utils.c (unicode_to_target_string): Update.
5147 (unicode_to_target_python_string): Update.
5148 (target_string_to_unicode): Update.
5149 * printcmd.c (printf_command): Update.
5150 * p-exp.y (yylex): Update.
5151 * objc-exp.y (yylex): Update.
5152 * mi/mi-parse.c: Include charset.h.
5153 (mi_parse_escape): New function.
5154 (mi_parse_argv): Use it.
5155 * jv-exp.y (yylex): Update.
5156 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5158 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5159 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5160 * gdbarch.c: Rebuild.
5161 * gdbarch.h: Rebuild.
5162 * defs.h (parse_escape): Update.
5163 * cli/cli-setshow.c: Include arch-utils.h.
5164 (do_setshow_command): Update.
5165 * cli/cli-cmds.c (echo_command): Update.
5166 * charset.h (target_charset, target_wide_charset): Update.
5167 * charset.c: Include arch-utils.h.
5168 (target_charset_name): Default to "auto".
5169 (target_wide_charset_name): Likewise.
5170 (show_target_charset_name): Handle "auto".
5171 (show_target_wide_charset_name): Likewise.
5172 (be_le_arch): New global.
5173 (set_be_le_names): Add 'gdbarch' argument.
5174 (validate): Likewise. Don't call set_be_le_names.
5175 (set_charset_sfunc, set_host_charset_sfunc)
5176 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5178 (target_charset): Add 'gdbarch' argument.
5179 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5180 (auto_target_charset_name): New global.
5181 (default_auto_charset, default_auto_wide_charset): New functions.
5182 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5183 for target charsets. Copy result of nl_langinfo. Use GetACP if
5185 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5186 remove 'byte_order' argument. Update.
5187 (classify_type): Likewise.
5188 (c_emit_char): Update.
5189 (c_printchar): Update.
5190 (c_printstr): Update.
5191 (c_get_string): Update.
5192 (evaluate_subexp_c): Update.
5193 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5195 * python/python.c (gdbpy_target_charset): New function.
5196 (gdbpy_target_wide_charset): Likewise.
5197 (GdbMethods): Update.
5200 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5202 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5203 off high address bits.
5205 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5207 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5208 address as UnsignedLongLong, not LongLong.
5210 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5211 Pedro Alves <pedro@codesourcery.com>
5213 * remote-mips.c (gdbthread.h): Include.
5214 (remote_mips_ptid): Declare.
5215 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5216 (common_open): Set inferior_ptid, add it as an inferior, and
5217 as a thread too. Delete FIXME comment regarding start_remote().
5218 (mips_close): Invoke generic_mourn_inferior().
5219 (mips_kill): Make sure that target_mourn_inferior is invoked.
5220 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5221 it's now invoked from mips_close().
5222 (mips_load): Don't null out inferior_ptid. Don't call
5223 clear_symtab_users().
5224 (mips_thread_alive, mips_pid_to_str): New functions.
5225 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5226 to_thread_alive and to_pid_to_str operations.
5228 2010-03-04 Tom Tromey <tromey@redhat.com>
5230 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5231 in DWARF 3 and later.
5232 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5234 2010-03-04 Keith Seitz <keiths@redhat.com>
5236 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5237 If the filename portion of the linespec was quoted, recheck the
5238 remainder for additional quoting.
5239 (locate_first_half): Skip over completer chars, too.
5241 2010-03-04 Tom Tromey <tromey@redhat.com>
5243 * printcmd.c (printf_command): Pass dummy argument to
5246 2010-03-04 Doug Evans <dje@google.com>
5248 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5251 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5253 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5255 * breakpoint.c (update_watchpoint): Create a sentinel location if
5256 the software watchpoint isn't watching any memory.
5257 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5259 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5261 * utils.c (fputs_maybe_filtered): Check if there's already a top
5262 level interpreter before dereferencing it. If there isn't one,
5263 don't paginate either.
5265 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5267 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5268 the state right when single stepping.
5269 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5270 Get the next PC along with the instruction state.
5271 (thumb_get_next_pc): Remove.
5272 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5274 2010-03-04 Hui Zhu <teawater@gmail.com>
5276 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5278 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5280 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5281 top level interpreter is MI.
5283 2010-03-03 Stan Shebs <stan@codesourcery.com>
5285 * remote.c (remote_download_tracepoint): Iterate over locations.
5286 * tracepoint.c (validate_actionline): Ditto.
5287 (encode_actions): Add location argument.
5288 (trace_dump_command): Check all locations to see if stepping
5291 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5292 Eli Zaretskii <eliz@gnu.org>
5294 * NEWS: Add X86 general purpose registers section.
5296 2010-03-03 Tom Tromey <tromey@redhat.com>
5299 * varobj.c (install_new_value): Handle case where new print_value
5302 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5305 * printcmd.c (printf_command): Print end of format string using
5308 2010-03-02 Tom Tromey <tromey@redhat.com>
5310 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5311 * defs.h (read_command_lines_1): Add missing 'void'.
5312 * cli/cli-script.c (recurse_read_control_structure): Add missing
5314 (read_next_line): Likewise.
5315 (read_command_lines_1): Likewise.
5317 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5319 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5320 store backchain as part of prologue.
5322 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5324 * progspace.c (update_address_spaces): Update inferior address spaces
5327 2010-03-02 Doug Evans <dje@google.com>
5329 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5330 lowpc,highpc args to addrmap_set_empty.
5332 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5334 * amd64-tdep.c (amd64_byte_names): New.
5335 (amd64_word_names): Likewise.
5336 (amd64_dword_names): Likewise.
5337 (amd64_pseudo_register_name): Likewise.
5338 (amd64_pseudo_register_read): Likewise.
5339 (amd64_pseudo_register_write): Likewise.
5340 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5341 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5342 set_gdbarch_pseudo_register_write and
5343 set_tdesc_pseudo_register_name. Don't call
5344 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5346 * i386-tdep.c (i386_num_mmx_regs): Removed.
5347 (i386_num_pseudo_regs): Likewise.
5348 (i386_byte_names): New.
5349 (i386_word_names): Likewise.
5350 (i386_byte_regnum_p): Likewise.
5351 (i386_word_regnum_p): Likewise.
5352 (i386_mmx_regnum_p): Updated.
5353 (i386_pseudo_register_name): Make it global. Handle byte and
5354 word pseudo-registers.
5355 (i386_pseudo_register_read): Likewise.
5356 (i386_pseudo_register_write): Likewise.
5357 (i386_pseudo_register_type): Handle byte, word and dword
5359 (i386_register_reggroup_p): Don't include pseudo
5360 registers, except for MXX, in any register groups. Don't
5361 include pseudo byte, word, dword registers in general_reggroup.
5362 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5363 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5364 pseudo-registers after word pseudo-registers. Call
5365 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5367 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5368 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5370 (i386_byte_regnum_p): New.
5371 (i386_word_regnum_p): Likewise.
5372 (i386_dword_regnum_p): Likewise.
5373 (i386_pseudo_register_name): Likewise.
5374 (i386_pseudo_register_read): Likewise.
5375 (i386_pseudo_register_write): Likewise.
5377 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5379 * target-descriptions.c (tdesc_type): Remove
5380 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5381 (tdesc_predefined_types): Likewise.
5382 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5383 if flag name is empty.
5384 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5386 * features/i386/32bit-core.xml: Define i386_eflags.
5387 * features/i386/64bit-core.xml: Likewise.
5389 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5390 * features/i386/64bit-sse.xml: Likewise.
5392 * features/i386/amd64-linux.c: Regenerated.
5393 * features/i386/amd64.c: Likewise.
5394 * features/i386/i386-linux.c: Likewise.
5395 * features/i386/i386.c: Likewise.
5397 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5399 * gdbtypes.c (append_composite_type_field_raw): New.
5400 (append_composite_type_field_aligned): Use the new function.
5401 * gdbtypes.h (append_composite_type_field_raw): Declare.
5402 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5403 (struct tdesc_type_flag): New type.
5404 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5405 kind. Add size to u.u. Add u.f for flags.
5406 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5407 (tdesc_free_type): Likewise.
5408 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5409 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5410 (tdesc_add_bitfield, tdesc_add_flag): New.
5411 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5412 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5413 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5414 current_type. Add current_type_size and current_type_is_flags.
5415 (tdesc_start_union): Clear the new fields.
5416 (tdesc_start_struct, tdesc_start_flags): New.
5417 (tdesc_start_field): Handle struct fields, including bitfields.
5418 (field_attributes): Make type optional. Add start and end.
5419 (union_children): Rename to struct_union_children.
5420 (union_attributes): Rename to struct_union_attributes. Add optional
5422 (flags_attributes): New.
5423 (feature_children): Add struct and flags.
5424 * features/gdb-target.dtd: Add flags and struct to features.
5425 Make field type optional. Add field start and end.
5427 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5429 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5430 (amd64_linux_read_description): Likewise.
5431 (_initialize_amd64_linux_nat): Set to_read_description to
5432 amd64_linux_read_description.
5434 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5435 (amd64_linux_register_name): Removed.
5436 (amd64_linux_register_type): Likewise.
5437 (amd64_linux_core_read_description): New.
5438 (amd64_linux_init_abi): Set target description to
5439 tdesc_amd64_linux if needed. Support orig_rax in target
5440 description. Don't call set_gdbarch_register_name nor
5441 set_gdbarch_register_type. Call
5442 set_gdbarch_core_read_description.
5443 (_initialize_amd64_linux_tdep): Call
5444 initialize_tdesc_amd64_linux.
5446 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5448 * amd64-tdep.c: Include "features/i386/amd64.c".
5449 (amd64_register_names): Removed.
5450 (amd64_register_name): Likewise.
5451 (amd64_register_type): Likewise.
5452 (amd64_init_abi): Set num_core_regs and register_names. Set
5453 target description to tdesc_amd64 if needed. Don't call
5454 set_gdbarch_register_name nor set_gdbarch_register_type.
5455 (_initialize_amd64_tdep): New.
5457 * i386-linux-nat.c (i386_linux_read_description): New.
5458 (_initialize_i386_linux_nat): Set to_read_description to
5459 i386_linux_read_description.
5461 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5462 (i386_linux_register_name): Removed.
5463 (i386_linux_core_read_description): New.
5464 (i386_linux_read_description): Likewise.
5465 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5466 Set target description to tdesc_i386_linux if needed. Support
5467 orig_eax. Set register_reggroup_p. Call
5468 set_gdbarch_core_read_description.
5469 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5471 * i386-linux-tdep.h (tdesc_i386_linux): New.
5473 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5476 * i386-tdep.c: Include "features/i386/i386.c".
5477 (i386_register_names): Make it const.
5478 (i386_mmx_names): Likewise.
5479 (i386_num_register_names): Removed.
5480 (i386_register_name): Likewise.
5481 (i386_eflags_type): Likewise.
5482 (i386_mxcsr_type): Likewise.
5483 (i386_sse_type): Likewise.
5484 (i386_register_type): Likewise.
5485 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5486 (i386_pseudo_register_name): New.
5487 (i386_pseudo_register_type): Likewise.
5488 (i386_mmx_type): Make it static.
5489 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5490 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5491 call set_gdbarch_register_name nor set_gdbarch_register_type.
5492 Set register_reggroup_p. Set target description to tdesc_i386
5493 if needed. Call set_tdesc_pseudo_register_type,
5494 set_tdesc_pseudo_register_name and tdesc_use_registers.
5495 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5496 initialize_tdesc_x86_64.
5498 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5499 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5500 register_names, tdesc and register_reggroup_p.
5501 (I386_NUM_FREGS): Removed.
5502 (i386_eflags_type): Likewise.
5503 (i386_mxcsr_type): Likewise.
5504 (i386_mmx_type): Likewise.
5505 (i386_sse_type): Likewise.
5506 (i386_register_name): Likewise.
5507 (i386_regnum): Add I386_MXCSR_REGNUM.
5508 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5510 * i387-tdep.h (I387_NUM_REGS): New.
5512 * regformats/i386/i386-linux.dat: Generated.
5513 * regformats/i386/i386.dat: Likewise.
5514 * regformats/i386/amd64-linux.dat: Likewise.
5515 * regformats/i386/amd64.dat: Likewise.
5517 * regformats/reg-i386-linux.dat: Removed.
5518 * regformats/reg-i386.dat: Likewise.
5519 * regformats/reg-x86-64-linux.dat: Likewise.
5520 * regformats/reg-x86-64.dat: Likewise.
5522 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5524 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5525 cygwin_conv_path API rather than the deprecated
5526 cygwin_conv_to_full_posix_path.
5528 (GetModuleFileNameExA): Undefine for Cygwin.
5529 (GetModuleFileNameExW): Define for Cygwin.
5530 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5531 Call GetModuleFileNameExW and convert path to POSIX using
5533 (windows_make_so): Always define p. Drop unused variable m.
5534 Don't use Win32 functions to check file existance, rather use
5535 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5536 Use canonicalize_file_name to get full path.
5537 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5538 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5539 use correct target buffer size in call to WideCharToMultiByte.
5540 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5541 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5542 (windows_create_inferior): Convert all paths and arguments to wchar_t
5543 and use CreateProcessW on Cygwin.
5544 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5545 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5546 (bad_GetModuleFileNameExW): Define for Cygwin.
5547 (_initialize_loadable): Load GetModuleFileNameExW into
5548 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5550 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5553 * python/py-frame.c (frapy_read_var): Add block argument and logic
5554 to cope with user provided blocks.
5556 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5558 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5561 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5563 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5564 (COMMON_OBS): ... to here since it's used unconditionally.
5565 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5568 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5570 * mips-linux-tdep.c: Update struct sigframe comments.
5571 (SIGFRAME_CODE_OFFSET): Delete macro.
5572 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5574 (mips_linux_n32n64_sigframe_init): Same.
5576 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5578 * remote-mips.c (mips_load): Don't use pseudo-register when
5579 invalidating regcache.
5581 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5583 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5585 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5587 * NEWS: Add "New targets" section, and mention ARM Symbian
5590 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5592 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5593 add ADDR_SIZE member.
5594 (allocate_piece_closure): Update.
5595 (copy_pieced_value_closure): Likewise.
5596 (dwarf2_evaluate_loc_desc): Likewise.
5597 (read_pieced_value): Use DWARF address size instead of
5598 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5600 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5601 Tom Tromey <tromey@redhat.com>
5603 * python/py-type.c (typy_lookup_typename): Add in block argument.
5604 If provided restrict lookup to specified blocks.
5605 (gdbpy_lookup_type): Likewise.
5606 (typy_lookup_type): Likewise.
5608 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5613 * arm-symbian-tdep.c: New.
5614 * configure.tgt (arm*-*-symbianelf*): New target.
5615 (*-*-symbianelf*): New OS.
5616 * osabi.c (gdb_osabi_names): Add Symbian.
5617 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5618 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5619 (ALLDEPFILES): Add arm-symbian-tdep.c.
5621 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5623 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5625 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5627 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5629 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5630 Tom Tromey <tromey@redhat.com>
5631 Thiago Jung Bauermann <bauerman@br.ibm.com>
5633 * python/python.c (_initialize_python): Call
5634 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5635 gdbpy_initialize_blocks.
5636 * python/python-internal.h: Declare struct symbol, block and
5637 symtab_and_line. Declare block_object_type and
5639 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5640 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5641 (symbol_to_symbol_object, block_to_block_object)
5642 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5643 (gdbpy_initialize_blocks ): Declare.
5644 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5645 (frapy_select): Add methods.
5646 (frapy_read_var): Add symbol branch.
5647 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5649 (SUBDIR_PYTHON_SRCS): Likewise.
5650 (py-symbol.o): New rule.
5651 (py-symtab.o): Likewise.
5652 (py-block.o): Likewise.
5653 * python/py-symbol.c: New file.
5654 * python/py-symtab.c: Likewise.
5655 * python/py-block.c: Likewise.
5657 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5661 * inferior.h (prepare_for_detach): Declare.
5662 (struct inferior) <detaching>: New field.
5663 * infrun.c (prepare_for_detach): New.
5664 (handle_inferior_event) <random signal>: Don't stop if detaching.
5665 * target.c (target_detach): Call prepare_for_detach.
5667 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5669 Per-process displaced stepping queue.
5671 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5672 (displaced_step_gdbarch, displaced_step_closure,
5673 (displaced_step_original, displaced_step_copy): Move globals to
5675 (struct displaced_step_inferior_state): ... new structure.
5676 (displaced_step_inferior_states): New global.
5677 (get_displaced_stepping_state, add_displaced_stepping_state)
5678 (remove_displaced_stepping_state, infrun_inferior_exit): New
5680 (displaced_step_clear): Add displaced_step_inferior_state
5681 parameter, and adjust to handle it.
5682 (displaced_step_clear_cleanup): Parameter is now a
5683 displaced_step_inferior_state. Adjust.
5684 (displaced_step_prepare): Adjust.
5685 (displaced_step_fixup, displaced_step_fixup)
5686 (infrun_thread_ptid_changed, resume): Adjust.
5687 (init_wait_for_inferior): Don't call displaced_step_clear.
5688 (infrun_thread_stop_requested): Rewrite.
5689 (_initialize_infrun): Install infrun_inferior_exit as
5690 inferior_exit observer.
5692 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5694 * inferior.h (ptid_match): Declare.
5695 * infrun.c (ptid_match): New.
5696 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5697 (handle_notification): Add debug output.
5698 * linux-nat.c (ptid_match): Delete.
5700 2010-02-24 David S. Miller <davem@davemloft.net>
5702 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5703 * syscalls/sparc-linux.xml: New.
5704 * syscalls/sparc64-linux.xml: New.
5705 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5706 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5707 (sparc32_linux_get_syscall_number): New function.
5708 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5709 syscall number fetcher.
5710 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5711 (sparc64_linux_get_syscall_number): New function.
5712 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5713 syscall number fetcher.
5715 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5719 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5720 * inferior.c (add_inferior_silent): Notify inferior_added
5722 (delete_inferior_1): Notify inferior_removed observer.
5723 (exit_inferior_1): Pass inferior, not pid, to observer.
5724 (inferior_appeared): Likewise.
5725 (add_inferior_with_spaces): New.
5726 (add_inferior_command): Use the above.
5727 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5730 * inflow.c (inflow_inferior_exit): Likewise.
5731 * jit.c (jit_inferior_exit_hook): Likewise.
5733 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5735 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5736 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5737 (report_initial_inferior): New.
5738 (mi_inferior_removed): Register the above. Make sure
5739 inferior_added observer is called on the first inferior.
5740 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5741 inferior number, not pid.
5742 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5744 * mi/mi-main.c (current_context): New.
5745 (proceed_thread_callback): Use typed closure.
5746 Proceed everything if pid is 0. Most implementation split into
5747 (proceed_thread): ... this.
5748 (run_one_inferior): New.
5749 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5750 Adjust for multiexec behaviour.
5751 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5752 (mi_cmd_execute): Handle the 'thread-group' option here.
5753 Do some extra checks.
5754 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5756 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5758 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5760 Make -exec-run a proper MI commands.
5762 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5763 * mi/mi-cmds.c (mi_cmds): Adjust.
5764 * mi/mi-main.c (mi_cmd_exec_run): New.
5766 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5767 Stan Shebs <stan@codesourcery.com>
5769 * tracepoint.h (set_traceframe_number)
5770 (cleanup_restore_current_traceframe): Declare.
5771 * tracepoint.c (set_traceframe_number): New.
5772 (struct current_traceframe_cleanup): New.
5773 (do_restore_current_traceframe_cleanup)
5774 (restore_current_traceframe_cleanup_dtor)
5775 (make_cleanup_restore_current_traceframe): New.
5776 * infrun.c: Include tracepoint.h.
5777 (fetch_inferior_event): Switch out and in of tfind mode.
5779 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5781 * breakpoint.c (breakpoint_init_inferior): Also delete
5782 bp_shlib_event breakpoints.
5783 * solib-frv.c (enable_break): Remove call to
5784 remove_solib_event_breakpoints.
5785 * solib-svr4.c (enable_break): Ditto.
5786 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5787 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5788 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5789 * solib-spu.c (spu_enable_break): Ditto.
5791 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5793 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5795 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5797 * varobj.c (varobj_update): Avoid non-constants in initializers.
5799 2010-02-23 Tom Tromey <tromey@redhat.com>
5801 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5802 handle big-endian values.
5803 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5805 2010-02-22 Pedro Alves <pedro@codesourcery.com>
5810 * breakpoint.c (insert_bp_location): If inserting the read
5811 watchpoint failed, fallback to an access watchpoint.
5812 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5813 if the value changed, if not watching the same memory for writes.
5814 (watchpoint_locations_match): Add comment.
5815 (update_global_location_list): Copy the location's watchpoint type.
5816 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5817 handle read watchpoints here.
5818 (i386_insert_watchpoint): Read watchpoints aren't supported.
5819 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5821 * target.h (target_insert_watchpoint): Update description.
5823 2010-02-19 Tom Tromey <tromey@redhat.com>
5825 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5826 * m2-typeprint.c (m2_print_type): Update.
5827 * gdbtypes.c (recursive_dump_type): Update.
5828 (copy_type_recursive): Update.
5829 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5830 (c_type_print_base): Update.
5831 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5833 (struct cplus_struct_type) <ntemplate_args>: Remove.
5834 <struct template_arg>: Remove.
5835 <is_dynamic>: Move earlier.
5836 (TYPE_TEMPLATE_ARGS): Remove.
5837 (TYPE_NTEMPLATE_ARGS): Remove.
5838 (TYPE_TEMPLATE_ARG): Remove.
5840 2010-02-19 Tom Tromey <tromey@redhat.com>
5842 PR c++/8693, PR c++/9496:
5843 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5844 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5845 write_dollar_variable. Don't try to classify NAME tokens.
5846 (token_and_value): New type.
5847 (token_fifo, popping, name_obstack): New globals.
5848 (classify_name): New function.
5849 (classify_inner_name): Likewise.
5851 (VARIABLE): Now has type sval.
5852 (exp : VARIABLE): Call write_dollar_variable.
5853 (qualified_name): Use TYPENAME, not typebase. Add production for
5854 multiple "::" instances.
5855 (variable): Use name_not_typename.
5856 (qualified_type): Remove.
5859 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5861 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5862 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5863 found by bfd_get_section_by_name.
5864 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5866 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5868 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5869 7.0 section" into "Changes in 7.1".
5871 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5873 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5874 * version.in: Bump version to 7.1.50.20100219-cvs.
5876 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5878 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5879 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5881 2010-02-17 Tom Tromey <tromey@redhat.com>
5883 * NEWS: Add Python API Improvements section.
5885 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5887 * NEWS: Correct typo.
5889 2010-02-17 Tom Tromey <tromey@redhat.com>
5891 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5893 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5895 * symfile.c (build_section_addr_info_from_objfile): Include sections
5896 only if they are SEC_ALLOC or SEC_LOAD.
5898 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5901 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5902 of ULONGEST for address size.
5904 2010-02-17 Tom Tromey <tromey@redhat.com>
5906 * NEWS: Add C++ improvements section.
5908 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5910 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5911 PyThreadState_Swap): Avoid "statement with no effect" warning.
5913 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5915 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5916 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5918 2010-02-17 Tristan Gingold <gingold@adacore.com>
5919 Petr Hluzin <petr.hluzin@gmail.com>
5921 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5922 gdb_assert. Fix info->size for SIG prologue.
5924 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5926 * infcmd.c (show_inferior_tty_command): Check for NULL.
5927 Correct output message.
5929 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5931 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5932 FUNCTION contains parentheses. Improve removal of a trailing
5935 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5937 * gcore.c (do_bfd_delete_cleanup): New function.
5938 (gcore_command): Use it. Discard the cleanup after success.
5939 (gcore_copy_callback): Delete dead code.
5941 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5943 * symfile.c (addr_info_make_relative): Always use
5944 find_lowest_section.
5946 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5948 * NEWS: Added entry for namespace fixes.
5950 2010-02-15 Tom Tromey <tromey@redhat.com>
5952 * dwarf2read.c (guess_structure_name): Allocate name on the
5955 2010-02-15 Tom Tromey <tromey@redhat.com>
5957 * c-typeprint.c (c_type_print_base): Reverse order of test.
5959 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5961 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5962 initialize it from ELF BFD. Extend the prelink condition by it.
5964 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5966 * defs.h (parse_pid_to_attach): New.
5967 * utils.c (parse_pid_to_attach): New.
5968 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5969 * gnu-nat.c (gnu_attach): Likewise.
5970 * nto-procfs.c (procfs_attach): Likewise.
5971 * procfs.c (procfs_attach): Likewise.
5972 * windows-nat.c (windows_attach): Likewise.
5973 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5974 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5975 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5978 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5980 * MAINTAINERS: Add myself for write after approval privileges.
5982 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5984 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5987 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5989 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5990 only if INFO_VERBOSE.
5992 2010-02-12 Tomas Holmberg <th@virtutech.com>
5994 * mi/mi-main.c: Added the --reverse flag to the following MI
5995 commands: exec-continue, exec-finish, exec-next, exec-step,
5996 exec-next-instruction, exec-step-instruction. This is to
5997 support reverse execution over the MI interface to gdb.
5999 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6001 * tracepoint.c (_initialize_tracepoint): Specify that the address
6002 range of `tfind outsize' is exclusive, and that the address range
6003 of `tfind range' is inclusive, in the commands' help strings.
6005 2010-02-12 Joel Brobecker <brobecker@adacore.com>
6007 Spurious "dll not found" error messages on x64-windows.
6008 * windows-nat.c: Add include of complaints.h.
6009 (handle_unload_dll): Change dll-not-found error into a complaint.
6011 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6013 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6014 bp_tracepoint and bp_fast_tracepoint, not
6015 bp_loc_software_breakpoint.
6016 (update_global_location_list): Tracepoints are never duplicates of
6019 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6021 * breakpoint.c (break_command_really): Change return type to int.
6022 Return false if no breakpoint was created, true otherwise.
6023 (trace_command): Don't set the tracepoint count if no tracepoint
6025 (ftrace_command): Ditto.
6026 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6027 created in the breakpoints table.
6029 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6030 Ulrich Weigand <uweigand@de.ibm.com>
6032 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6034 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6036 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6037 the offset value isn't of integral type.
6039 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6041 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6044 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6046 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6047 non-subscriptable types.
6048 * valarith.c (binop_types_user_defined_p): New, abstracted out
6050 (binop_user_defined_p): ... this.
6051 * value.h (binop_types_user_defined_p): Declare.
6053 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6055 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6056 Merge uploaded TSVs before merging uploaded tracepoints.
6058 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6060 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6062 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
6064 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6065 whitespace character after a dot in comment.
6066 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6068 (list_args_or_locals): For the 'all' (that is
6069 -stack-list-variables) case, always output list of tuples.
6070 Output 'arg' field if variable is argument.
6072 2010-02-10 Tom Tromey <tromey@redhat.com>
6074 * parser-defs.h (parser_debug): Declare.
6075 * parse.c (_initialize_parse): Install "debug parser" set/show
6077 (parser_debug): New global.
6078 (show_parserdebug): New function.
6079 * c-exp.y (c_parse): Set yydebug.
6081 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6083 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6084 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6085 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6087 (tdesc_find_type): New.
6088 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6089 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6091 * target-descriptions.h (tdesc_find_type): New.
6093 2010-02-10 Michael Snyder <msnyder@vmware.com>
6095 * gdb-gdb.py: Comment fix.
6097 2010-02-09 Tristan Gingold <gingold@adacore.com>
6099 * machoread.c (macho_symfile_relocate): New function.
6100 (macho_sym_fns): Use macho_symfile_relocate instead of
6101 default_symfile_relocate.
6102 (macho_oso_data): New type.
6103 (current_oso): New variable.
6104 (macho_add_oso_symfile): Do not compute section_addr_info, but
6105 instead set vma of sections.
6106 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6107 Set and clear current_oso.
6109 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6111 Wrong type description for tagged type parameter.
6112 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6113 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6114 reference to a tagged type.
6116 2010-02-09 Tristan Gingold <gingold@adacore.com>
6118 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6119 brothers of the parent.
6121 2010-02-08 Tom Tromey <tromey@redhat.com>
6125 * valops.c (search_struct_field): Make 'name' const.
6126 (search_struct_method): Likewise.
6127 (find_method_list): Make 'method' const.
6128 (value_struct_elt): Make 'name' and 'err' const.
6129 (value_find_oload_method_list): Make 'method' const.
6130 (find_overload_match): Make 'name' const.
6131 * eval.c (evaluate_subexp_standard): New locals function,
6133 <OP_FUNCALL>: Handle OP_SCOPE specially.
6135 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6137 * infrun.c (handle_inferior_event): Do not look up regcache
6138 for exited processes.
6140 2010-02-08 Chris Moller <moller@mollerware.com>
6143 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6144 warn if found, and assume length = 1.
6146 2010-02-08 Chris Moller <cmoller@redhat.com>
6149 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6150 (cp_print_static_field) Fix use of obstacks.
6152 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6154 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6155 resumed LWPs as resumed.
6156 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6157 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6158 of throwing an internal error. If an LWP of a process we're not
6159 waiting for reports a signal, don't force collecting a SIGSTOP,
6160 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6161 go through all LWPs cancelling breakpoints in non-stop mode.
6162 (resume_stopped_resumed_lwps): New.
6163 (linux_nat_wait): Use it.
6165 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6167 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6168 i386/amd64 and i386/amd64-linux.
6169 (i386/i386-expedite): New.
6170 (i386/i386-linux-expedite): Likewise.
6171 (i386/amd64-expedite):Likewise.
6172 (i386/amd64-linux-expedite): Likewise.
6173 ($(outdir)/i386/i386-linux.dat): Likewise.
6174 ($(outdir)/i386/amd64.dat): Likewise.
6175 ($(outdir)/i386/amd64-linux.dat): Likewise.
6177 * features/i386/32bit-core.xml: New.
6178 * features/i386/32bit-linux.xml: Likewise.
6179 * features/i386/32bit-sse.xml: Likewise.
6180 * features/i386/64bit-core.xml: Likewise.
6181 * features/i386/64bit-linux.xml: Likewise.
6182 * features/i386/64bit-sse.xml: Likewise.
6183 * features/i386/i386-linux.xml: Likewise.
6184 * features/i386/i386.xml: Likewise.
6185 * features/i386/amd64-linux.xml: Likewise.
6186 * features/i386/amd64.xml: Likewise.
6187 * features/i386/i386-linux.c: Likewise.
6188 * features/i386/i386.c: Likewise.
6189 * features/i386/amd64-linux.c: Likewise.
6190 * features/i386/amd64.c: Likewise.
6192 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6195 * cp-support.h: Added char* alias element to using_direct data
6197 (cp_add_using): Added char* alias argument.
6198 (cp_add_using_directive): Ditto.
6199 * cp-namespace.c: Updated with the above changes.
6200 (cp_lookup_symbol_imports): Check for aliases.
6201 * dwarf2read.c (read_import_statement): Figure out local alias
6202 for the import and pass it on to cp_add_using.
6203 (read_namespace): Pass alias argument to cp_add_using.
6205 2010-02-05 Hui Zhu <teawater@gmail.com>
6207 * defs.h (gdb_bfd_errmsg): New extern.
6208 * exec.c (exec_file_attach): Change bfd_errmsg to
6210 * utils.c (AMBIGUOUS_MESS1): New macro.
6211 (AMBIGUOUS_MESS2): New macro.
6212 (gdb_bfd_errmsg): New function.
6214 2010-02-04 Doug Evans <dje@google.com>
6216 * solib-svr4.c (enable_break): Add comment.
6218 2010-02-04 Anthony Green <green@moxielogic.com>
6220 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6223 2010-02-04 Tom Tromey <tromey@redhat.com>
6225 * valops.c (search_struct_field): Account for
6226 value_embedded_offset. Fix check for virtual base past the end of
6227 the object. Use value_copy when making a slice of the value.
6229 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6232 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6233 only if gdb_stdout is a tty.
6235 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6237 * target-descriptions.c: Include "osabi.h".
6238 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6241 2010-02-04 Tristan Gingold <gingold@adacore.com>
6243 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6244 (macho_symtab_read): Adjust calls to macho_add_oso.
6245 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6246 (macho_symfile_read): Adjust call to macho_oso_symfile.
6247 (macho_new_init): Move this function after declarations.
6248 (macho_symfile_init): Ditto.
6249 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6250 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6252 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6254 Include MI command in remotelog.
6256 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6258 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6260 * remote.c (remote_state): Remove gdbarch.
6261 (init_remote_state): Don't set gdbarch.
6262 (remote_query_supported): Pass target_gdbarch instead of
6263 rs->gdbarch to gdbarch_qsupported.
6265 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6267 * gdbarch.sh: Add qsupported.
6269 * gdbarch.c: Regenerated.
6270 * gdbarch.h: Likewise.
6272 * remote.c (remote_state): Add gdbarch.
6273 (init_remote_state): Set gdbarch.
6274 (remote_query_supported): Support gdbarch_qsupported.
6276 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6278 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6279 __FreeBSD_kernel_version.
6281 2010-02-03 Tristan Gingold <gingold@adacore.com>
6283 * symfile.h (struct sym_fns): Add sym_relocate field.
6284 (default_symfile_relocate): New prototype.
6285 (symfile_relocate_debug_section): First argument is now an objfile.
6286 * symfile.c (default_symfile_relocate): Rename from
6287 symfile_relocate_debug_section, first argument is now an objfile.
6288 (symfile_relocate_debug_section): New function.
6289 * coffread.c (coff_sym_fns): Set sym_relocate field.
6290 * somread.c (som_sym_fns): Ditto.
6291 * mipsread.c (ecoff_sym_fns): Ditto.
6292 * machoread.c (macho_sym_fns): Ditto.
6293 * elfread.c (elf_sym_fns): Ditto.
6294 * dwarf2read.c (dwarf2_read_section): Ditto.
6295 * xcoffread.c (xcoff_sym_fns): Ditto.
6296 * dbxread.c (aout_sym_fns): Ditto.
6297 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6298 (elfstab_build_psymtabs): Ditto.
6300 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6302 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6304 2010-02-02 Tom Tromey <tromey@redhat.com>
6306 * valops.c (value_cast_structs): Try downcasting using the RTTI
6309 2010-02-02 Tom Tromey <tromey@redhat.com>
6311 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6312 (gnuv2_baseclass_offset): Now static.
6313 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6314 * gnu-v2-abi.h: Remove.
6316 2010-02-02 Tom Tromey <tromey@redhat.com>
6318 * m2-typeprint.c (m2_record_fields): Don't use
6320 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6321 (struct main_type) <flag_declared_class>: New field.
6322 (struct cplus_struct_type) <declared_type>: Remove.
6323 <ntemplate_args>: Move earlier.
6324 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6325 (DECLARED_TYPE_TEMPLATE): Remove.
6326 (TYPE_DECLARED_TYPE): Remove.
6327 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6328 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6329 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6332 2010-02-02 Tom Tromey <tromey@redhat.com>
6334 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6335 * valops.c (search_struct_field): Compute nbases after calling
6337 (check_field): Call CHECK_TYPEDEF.
6338 * cp-valprint.c (cp_print_value): Pass correct address to
6339 baseclass_offset. Fix check for virtual base past the end of the
6340 object. Don't offset address passed to cp_print_value_fields or
6341 apply_val_pretty_printer.
6342 (cp_print_value_fields): Fix call to val_print.
6343 (cp_print_value_fields_rtti): New function.
6344 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6345 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6347 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6349 * language.h (struct language_defn) <la_val_print>: Document.
6350 * c-lang.h (cp_print_value_fields_rtti): Declare.
6352 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6355 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6356 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6357 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6359 2010-02-01 Michael Matz <matz@suse.de>
6360 Daniel Jacobowitz <dan@codesourcery.com>
6362 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6363 functions use a frame pointer.
6365 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6367 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6368 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6369 * config/djgpp/fnchange.lst: Add translations for
6370 symbol-without-target_section.exp and symbol-without-target_section.c.
6372 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6374 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6375 (remote_breakpoint_for_pc): Correct invalid_p check.
6376 * gdbarch.c: Regenerated.
6378 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6380 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6382 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6383 (extend_buffer_earlier): New function.
6384 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6385 (arm_adjust_breakpoint_address): New function.
6386 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6388 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6390 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6391 (arm_linux_thumb2_le_breakpoint): New constants.
6392 (arm_linux_init_abi): Set thumb2_breakpoint and
6393 thumb2_breakpoint_size.
6394 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6395 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6396 Implement support for single stepping through IT blocks if
6397 a 32-bit Thumb breakpoint instruction is available.
6398 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6399 is available, use it when needed.
6400 (arm_remote_breakpoint_from_pc): New function.
6401 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6402 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6403 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6405 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6407 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6408 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6409 * gdbarch.c, gdbarch.h: Regenerated.
6410 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6411 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6412 gdbarch_remote_breakpoint_from_pc.
6414 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6416 * infrun.c (prepare_to_proceed): Handle other signals which might
6418 (handle_inferior_event): Move the check for unusual breakpoint
6421 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6423 amd64 - function returning record with field straddling 2 registers.
6424 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6425 a record of length <= 16 in which a field straddles the two
6428 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6430 Implement return values on amd64-windows.
6431 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6432 (amd64_windows_return_value): New function.
6433 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6434 amd64_windows_return_value.
6436 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6438 amd64-windows: 32 bytes allocated on stack by caller for integer
6439 parameter registers.
6440 * i386-tdep.h (struct gdbarch_tdep): Add new field
6441 integer_param_regs_saved_in_caller_frame.
6442 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6443 tdep->integer_param_regs_saved_in_caller_frame to 1.
6444 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6445 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6447 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6449 amd64-windows: memory args passed by pointer during function calls.
6450 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6451 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6452 where tdep->memory_args_by_pointer is non-zero.
6453 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6454 tdep->memory_args_by_pointer to 1.
6456 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6458 amd64-windows: Integer parameters in function calls.
6459 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6461 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6462 call_dummy_integer_regs, and classify.
6463 * amd64-tdep.h (amd64_classify): Add declaration.
6464 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6465 (amd64_reg_class): Delete, moved to i386-tdep.h.
6466 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6467 Replace call to amd64_classify by call to tdep->classify.
6468 (amd64_push_arguments): Get the list of registers to use for
6469 passing integer parameters from the gdbarch tdep structure,
6470 rather than using a hardcoded one. Replace calls to amd64_classify
6471 by calls to tdep->classify.
6472 (amd64_push_dummy_call): Get the register number used for
6473 the "hidden" argument from tdep->call_dummy_integer_regs.
6474 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6475 and tdep->call_dummy_integer_regs. Set tdep->classify.
6476 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6477 (amd64_windows_dummy_call_integer_regs): New static global.
6478 (amd64_windows_classify): New function.
6479 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6480 tdep->call_dummy_integer_regs and tdep->classify.
6482 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6484 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6485 for the new regcache. All callers updated.
6486 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6487 (get_thread_arch_regcache): Do not set aspace here.
6488 * regcache.h (regcache_xmalloc): Update declaration.
6490 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6491 regcache_xmalloc updated.
6493 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6495 Another -Wunused-function error in procfs.c (sparc-solaris)
6496 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6497 Only define if SYS_syssgi is defined.
6498 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6499 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6500 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6503 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6505 * windows-nat.c (windows_initialization_done): New variable.
6506 (get_windows_debug_event): Issue error when process dies before
6507 completely initializing.
6508 (do_initial_windows_stuff): Set flag to indicate when we are done with
6509 the initial steps of attaching to the child.
6511 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6513 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6515 2010-01-27 Doug Evans <dje@google.com>
6517 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6519 * breakpoint.c (bpstat_stop_status): Delete useless code.
6521 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6523 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6524 objfile via SYMBOL_SYMTAB.
6526 2010-01-26 Tom Tromey <tromey@redhat.com>
6529 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6530 coerce_array on result.
6532 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6534 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6535 search_parent argument.
6536 (cp_add_using): Initialize 'searched' field.
6537 (reset_directive_searched): New function.
6538 * cp-support.h: Add 'searched' field to using_direct struct.
6539 (cp_lookup_symbol_imports): Ditto.
6540 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6541 Perform recursive search.
6542 Implement non parent search.
6543 * valops.c (value_maybe_namespace_elt): Updated.
6545 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6548 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6549 scopes which contain using directives even if they contain no
6551 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6552 la_lookup_symbol_nonlocal.
6553 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6554 cp_lookup_symbol_namespace.
6555 (cp_lookup_symbol_namespace): Perform an import lookup at every
6557 (cp_lookup_symbol_imports): New function.
6558 (cp_lookup_symbol_in_namespace): New function.
6560 2010-01-25 Tom Tromey <tromey@redhat.com>
6563 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6566 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6568 * configure.ac: Only use host_os part when disabling TUI on osf.
6569 Use test to check variables, prefix strings with x.
6570 * configure: Regenerate.
6572 * solib-osf.c (osf_current_sos): Initialize tail.
6574 2010-01-25 gingold <gingold@adacore.com>
6576 * windows-nat.c (windows_continue): Use %x to print thread id.
6577 (get_windows_debug_event): Ditto.
6579 2010-01-22 Tom Tromey <tromey@redhat.com>
6582 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6583 type and arguments. Use smash_to_methodptr_type.
6584 (read_structure_type): Call quirk_gcc_member_function_pointer
6586 * gdbtypes.h (smash_to_methodptr_type): Declare.
6587 * gdbtypes.c (smash_to_methodptr_type): New function.
6588 (lookup_methodptr_type): Use it.
6590 2010-01-21 Tom Tromey <tromey@redhat.com>
6593 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6594 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6595 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6596 (glibc_skip_solib_resolver): Use
6597 lookup_minimal_symbol_and_objfile.
6599 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6601 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6604 2010-01-20 Tom Tromey <tromey@redhat.com>
6607 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6608 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6609 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6610 dwarf_stack_values, not CORE_ADDRs.
6611 (execute_stack_op): Change DW_OP_div and comparison operators to
6612 use signed operands.
6614 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6616 Per-inferior args and tty and environment.
6618 * infcmd.c (inferior_args): Rename to ...
6619 (inferior_args_scratch): ... this.
6620 (inferior_io_terminal): Rename to ...
6621 (inferior_io_terminal_scratch): ... this.
6622 (inferior_argc, inferior_argv): Remove.
6623 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6624 inside current_inferior().
6625 (set_inferior_tty_command, show_inferior_tty_command): New.
6626 (get_inferior_args, set_inferior_args): Store inside
6628 (notice_args_set): Likewise and rename to...
6629 (set_args_command): ... this.
6630 (set_inferior_args_vector): Likewise.
6631 (notice_args_read): Rename to...
6632 (show_args_command): ...new.
6633 (tty_command): Remove.
6634 (run_command_1): Don't free old args, as they are freed by
6635 set_inferior_arg now.
6636 (run_no_args_command): Likewise.
6637 (inferior_environ): Remove.
6638 (run_command_1): Use environment of the current inferior.
6639 (environment_info, set_environment_command)
6640 (unset_environment_command, path_info, path_command): Likewise.
6641 (_initialize_infcmd): Adjust for function and variable renames.
6642 Do not init inferior_environ.
6643 * inferior.h (set_inferior_arg): Adjust prototype.
6644 (struct inferior): New fields args, argc, argv, terminal, environment.
6645 (inferior_environ): Remove declaration.
6646 * inferior.c (free_inferior): Free new fields.
6647 (add_inferior_silent): Initialize 'environment' field.
6648 * main.c (captured_main): Set arguments only after the initial
6649 inferior has been created. Set set_inferior_io_terminal,
6651 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6653 (_initialize_mi_cmd_env): Adjust for disappearance of global
6655 * solib.c (solib_find): Use environment of the current inferior.
6657 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6661 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6663 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6665 Get rid of ada-lang.c:function_name_from_pc.
6666 * ada-lang.c: Add "stack.h" #include.
6667 (function_name_from_pc): Delete.
6668 (is_known_support_routine): Replace call to function_name_from_pc
6669 by call to find_frame_funname.
6670 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6672 2010-01-19 Tom Tromey <tromey@redhat.com>
6675 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6678 2010-01-19 Tom Tromey <tromey@redhat.com>
6680 * top.c (stop_sig, float_handler, do_nothing): Remove.
6682 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6684 * breakpoint.c (watchpoint_check): Check the call
6685 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6687 * config/djgpp/fnchange.lst: Add translations for
6688 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6689 watchpoint-cond-gone-stripped.c.
6691 2010-01-19 Tom Tromey <tromey@redhat.com>
6694 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6695 into parent scope, and enumerator into grandparent scope.
6697 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6699 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6701 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6703 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6704 i[34567]86-*-solaris2.1[0-9]*.
6705 * configure.tgt: Likewise.
6707 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6709 * NEWS: Document the source command enhancement allowing it
6710 to load Python scripts. Document the "set/show script-extension"
6713 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6715 Add -Wunused-function to compile flags.
6716 * configure.ac: Add -Wunused-function to build_warnings.
6717 * configure: Regenerate.
6719 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6721 "delete" ada-lex.c:input function, not used.
6722 * ada-lex.l: #define YY_NO_INPUT.
6724 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6726 Delete free_named_symtabs and associated cleanup.
6727 * symfile.h (free_named_symtabs): Delete declaration.
6728 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6729 (cashier_psymtab): Comment function out.
6731 (free_named_symtabs): Delete.
6732 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6733 * dbxread.c (end_psymtab): Likewise.
6734 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6735 * exec.c (exec_close_1): Ditto.
6736 * xcoffread.c (xcoff_end_psymtab): Likewise.
6738 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6740 * stack.c (print_block_frame_labels): Comment function out.
6742 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6744 Delete unused or undefined functions.
6745 * breakpoint.c (ep_parse_optional_filename): Delete.
6746 * dcache.c (dcache_write_line): Remove declaration.
6747 * infrun.c (build_infrun): Remove declaration.
6748 * tracepoint.c (tracepoint_save_command): Remove declaration.
6749 * linux-nat.c (init_lwp_list): Delete. No longer used.
6750 * event-loop.c (check_async_signal_handlers): Delete declaration.
6751 * infrun.c (init_execution_control_state): Delete.
6752 (proceed): Update comment to avoid mentioning
6753 init_execution_control_state.
6754 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6755 * ada-lang.c (ada_to_static_fixed_value): Delete.
6756 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6757 * cp-namespace.c (cp_copy_usings): Delete.
6758 * xml-syscall.c (xml_number_of_syscalls): Delete.
6759 * progspace.c (find_program_space_by_num): Delete.
6760 * inflow.c (handle_sigio): Delete declaration.
6761 * hppa-tdep.c (hppa_alignof): Delete.
6762 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6763 (mipsnbsd_core_osabi_sniffer): Delete.
6765 2010-01-18 Tom Tromey <tromey@redhat.com>
6768 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6769 (CONST_CAST): New tokens.
6770 (exp): Add new productions.
6771 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6773 (is_cast_operator): New function.
6774 (yylex): Handle cast operators specially.
6775 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6776 UNOP_REINTERPRET_CAST>: New cases.
6777 * expprint.c (print_subexp_standard): Likewise.
6778 (op_name_standard): Likewise.
6779 (dump_subexp_body_standard): Likewise.
6780 * parse.c (operator_length_standard): Likewise.
6781 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6782 UNOP_REINTERPRET_CAST.
6783 * gdbtypes.c (class_types_same_p): New function.
6784 (is_ancestor): Use it.
6785 (is_public_ancestor): New function.
6786 (is_unique_ancestor_worker): Likewise.
6787 (is_unique_ancestor): Likewise.
6788 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6789 (is_unique_ancestor): Declare.
6790 * valops.c (value_reinterpret_cast): New function.
6791 (dynamic_cast_check_1): Likewise.
6792 (dynamic_cast_check_2): Likewise.
6793 (value_dynamic_cast): Likewise.
6794 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6796 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6798 Fix build failure when building without Python support.
6799 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6802 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6804 Use XVS field type instead of doing a parallel lookup.
6805 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6806 if it is a reference type instead of doing a type lookup using
6809 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6811 Trust PAD types instead of using PAD___XVS.
6812 * ada-lang.c (trust_pad_over_xvs): New static variable.
6813 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6814 parallel XVS type, follow the XVS type instead of the PAD type.
6815 (unwrap_value): Make sure that there is no parallel XVE type
6816 before returning the value as is.
6817 (set_ada_list, show_ada_list): New static variables.
6818 (set_ada_command, show_ada_command): New functions.
6819 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6820 Add new "set/show ada trust-PAD-over-XVS" setting.
6822 2010-01-18 Tom Tromey <tromey@redhat.com>
6823 Thiago Jung Bauermann <bauerman@br.ibm.com>
6825 Allow "source" to load python scripts.
6826 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6827 * python/python.c (source_python_script): New function.
6828 * python/python.h (source_python_script): Add declaration.
6829 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6830 (script_ext_off, script_ext_soft, script_ext_strict)
6831 (script_ext_enums, script_ext_mode): New static constants.
6832 (show_script_ext_mode, find_and_open_script): New functions.
6833 (source_script): Enhance to handle Python scripts.
6834 (init_cli_cmds): Add set/show script-extension commands.
6836 2010-01-16 Stan Shebs <stan@codesourcery.com>
6838 * tracepoint.h (struct trace_status): Use unsigned long long
6840 * tracepoint.c (trace_status_command): Fix printf directive.
6841 (trace_save_command): Check fwrite returns, fix printf directive.
6842 (trace_filename): New global.
6843 (tfile_open): Set it, check read returns.
6844 (tfile_close): Free trace_filename.
6845 (tfile_get_traceframe_address): Check read returns.
6846 (tfile_trace_find): Ditto.
6847 (tfile_fetch_registers): Ditto.
6848 (tfile_xfer_partial): Ditto.
6849 (tfile_get_trace_state_variable_value): Ditto.
6851 2010-01-15 Stan Shebs <stan@codesourcery.com>
6853 Add trace file support.
6854 * tracepoint.h (enum trace_stop_reason): New enum.
6855 (struct trace_status): New struct.
6856 (parse_trace_status): Declare.
6857 (struct uploaded_tp): Move here from remote.c,
6858 add fields for actions.
6859 (struct uploaded_tsv): New struct.
6860 * tracepoint.c (tfile_ops): New target vector.
6861 (trace_fd): New global.
6862 (tfile_open): New function.
6863 (tfile_close): New function.
6864 (tfile_files_info): New function.
6865 (tfile_get_trace_status): New function.
6866 (tfile_get_traceframe_address): New function.
6867 (tfile_trace_find): New function.
6868 (tfile_fetch_registers): New function.
6869 (tfile_xfer_partial): New function.
6870 (tfile_get_trace_state_variable_value): New function.
6871 (init_tfile_ops): New function.
6872 (_initialize_tracepoint): Call it, add tfile target.
6873 (trace_status): New global.
6874 (current_trace_status): New function.
6875 (trace_running_p): Remove, change all users to get from
6876 current_trace_status()->running.
6877 (get_trace_status): Remove.
6878 (trace_status_command): Call target_get_trace_status directly,
6879 report more detail including tracing stop reasons.
6880 (trace_find_command): Always allow tfind on a file.
6881 (trace_find_pc_command): Ditto.
6882 (trace_find_tracepoint_command): Ditto.
6883 (trace_find_line_command): Ditto.
6884 (trace_find_range_command): Ditto.
6885 (trace_find_outside_command): Ditto.
6886 (trace_frames_offset, cur_offset): Declare as off_t.
6887 (trace_regblock_size): Rename from reg_size, update users.
6888 (parse_trace_status): New function.
6889 (tfile_interp_line): New function.
6890 (disconnect_or_stop_tracing): Ensure current trace
6891 status before asking what to do.
6892 (stop_reason_names): New global.
6893 (trace_save_command): New command.
6894 (get_uploaded_tp): Move here from remote.c.
6895 (find_matching_tracepoint): Ditto.
6896 (merge_uploaded_tracepoints): New function.
6897 (parse_trace_status): Use stop_reason_names.
6898 (_initialize_tracepoint): Define tsave command.
6899 * target.h (target_ops): New fields to_save_trace_data,
6900 to_upload_tracepoints, to_upload_trace_state_variables,
6901 to_get_raw_trace_data, change to_get_trace_status
6902 to take a pointer to a status struct.
6903 (target_save_trace_data): New macro.
6904 (target_upload_tracepoints): New macro.
6905 (target_upload_trace_state_variables): New macro.
6906 (target_get_raw_trace_data): New macro.
6907 * target.c (update_current_target): Add new methods, change
6908 signature of to_get_trace_status.
6909 * remote.c (hex2bin): Make globally visible.
6911 (remote_download_trace_state_variable): Download name also.
6912 (remote_get_trace_status): Update parameter, use
6914 (remote_save_trace_data): New function.
6915 (remote_upload_tracepoints): New function.
6916 (remote_upload_trace_state_variables): New function.
6917 (remote_get_raw_trace_data): New function.
6918 (remote_start_remote): Use them.
6919 (_initialize_remote_ops): Add operations.
6920 * ax-gdb.c: Include breakpoint.h.
6921 * breakpoint.c (create_tracepoint_from_upload): Use
6922 break_command_really, return tracepoint, warn about unimplemented
6924 * NEWS: Mention trace file addition.
6926 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6928 Fix compilation warning on gcc-3.4.
6929 * exec.c (print_section_info): Move the `displacement' variable
6930 initialization to its declaration.
6932 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6934 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6937 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6939 "info tasks" broken by typedefs in ATCB type definitions.
6940 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6941 ada_check_typedef before retrieving the length of the type for
6944 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6946 Do not use name-based lookup for unconstrained packed arrays.
6947 * ada-lang.c (find_parallel_type_by_descriptive_type):
6948 Limit the fallback to name-based lookups to the case where
6949 the type is a constrained packed array.
6951 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6953 Enhance gdb-gdb.py to handle main_type.type_specific.
6954 * gdb-gdb.py: Print the type-specific part of struct main_type.
6956 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6958 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6959 * configure: Regenerate.
6960 * config.in: Regenerate.
6961 * utils.c: Include sys/resource.h.
6962 (dump_core, can_dump_core): New.
6963 (internal_vproblem): Update the comment. Check can_dump_core while
6964 setting dump_core_p. Replace two abort calls by dump_core calls.
6966 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6967 Eli Zaretskii <eliz@gnu.org>
6969 * NEWS: Document the PIE support.
6971 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6973 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6974 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6976 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6978 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6979 Replace exec_entry_point call by bfd_get_start_address.
6981 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6983 Support Valgrind attachments broken by the PIE support.
6984 * auxv.c: Include gdbcore.h.
6985 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6986 parameters ops, object and annex. Remove their assertions.
6987 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6988 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6989 (memory_xfer_auxv): ... here.
6990 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6992 * procfs.c (procfs_xfer_partial): Likewise.
6993 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6994 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6995 (svr4_solib_create_inferior_hook): Conditionalize the
6996 svr4_relocate_main_executable call.
6998 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7000 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7001 target_section. Find SECT in current_target_sections, gdb_assert it.
7002 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7004 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7005 of separate debug info file.
7007 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7009 Support PIEs with no symfile_objfile.
7010 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7011 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7013 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7015 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7017 (svr4_static_exec_displacement): ... a new function.
7018 (svr4_exec_displacement): New function.
7019 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7020 new_offsets using alloca now. Remove variable old_chain and changed.
7021 Call objfile_relocate unconditionally now.
7023 2010-01-14 Doug Evans <dje@google.com>
7025 * gdbtypes.c (arch_flags_type): Fix comment.
7026 * gdbtypes.h (arch_composite_type): Fix comment.
7028 2009-01-14 Tristan Gingold <gingold@adacore.com>
7030 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7031 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7032 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7033 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7034 macho_add_oso_symfile.
7035 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7037 2010-01-14 Joel Brobecker <brobecker@adacore.com>
7039 Tru64: Dead threads are never deleted.
7040 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7041 (dec_thread_count_gdb_threads): Fix counter increment.
7042 (dec_thread_add_gdb_thread): Fix *listp increment.
7043 (resync_thread_list): Fix bug in deletion of dead threads that
7044 caused all threads to be deleted, instead of just the dead ones.
7046 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7050 * python/python-internal.h: Add lazy_string_object_type
7052 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7053 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7054 * python/py-value.c (valpy_lazy_string): New function.
7055 (convert_value_from_python): Add lazy string conversion.
7056 * python/py-prettyprint.c (pretty_print_one_value): Check if
7057 return is also a lazy string.
7058 (print_string_repr): Add lazy string printing branch.
7059 (print_children): Likewise.
7060 * python/py-lazy-string.c: New file. Implement lazy strings.
7061 * python/python.c (_initialize_python): Call
7062 gdbpy_initialize_lazy_string.
7063 * varobj.c (value_get_print_value): Add lazy string printing
7064 branch. Account for encoding.
7065 * c-lang.c (c_printstr): Account for new encoding argument. If
7066 encoding is NULL, find encoding suited for type, otherwise use
7068 * language.h (language_defn): Add encoding argument.
7069 (LA_PRINT_STRING): Likewise.
7070 * language.c (unk_lang_printstr): Update to reflect new encoding
7071 argument to language_defn.
7072 * ada-lang.h (ada_printstr): Likewise.
7073 * c-lang.h (c_printstr): Likewise.
7074 * p-lang.h (pascal_printstr);
7075 * f-lang.c (f_printstr): Likewise.
7076 * m2-lang.c (m2_printstr): Likewise.
7077 * objc-lang.c (objc_printstr): Likewise.
7078 * p-lang.c (pascal_printstr): Likewise.
7079 * scm-lang.c (scm_printstr): Likewise.
7080 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7082 * ada-valprint.c (ada_printstr): Likewise.
7083 * f-valprint.c (f_val_print): Likewise
7084 * m2-valprint.c (m2_val_print): Likewise.
7085 * p-valprint.c (pascal_val_print): Likewise.
7086 * expprint.c (print_subexp_standard): Likewise.
7087 * valprint.c (val_print_string): Likewise.
7088 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7089 (SUBDIR_PYTHON_SRCS): Likewise.
7090 (py-lazy-string.o): New rule.
7092 2010-01-13 Doug Evans <dje@google.com>
7094 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7095 uninitialized" warning from gcc on local `tree'.
7097 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7099 Implement core awareness.
7101 * bcache.c (compare_ints): Remove
7102 (print_percentage): Use compare_positive_ints.
7103 * defs.h (compare_positive_ints): Declare.
7104 * linux-nat.h (struct lin_lwp): New field core.
7105 (linux_nat_core_of_thread_1): Declare.
7106 * linux-nat.c (add_lwp): Init the 'core' field.
7107 (linux_nat_wait_1): Record the core.
7108 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7109 (linux_nat_add_target): Register the above.
7110 * linux-thread-db.c (update_thread_core): New.
7111 (thread_db_find_new_threads): Update core information for
7113 * remote.c (struct private_thread_info): New.
7114 (free_private_thread_info, demand_private_info): New.
7115 (PACKET_qXfer_threads, use_osdata_threads): New.
7116 (struct thread_item, threads_parsing_context
7117 (start_thread, end_thread, thread_attributes)
7118 (thread_children, threads_children, threads_elements): New.
7119 (remote_threads_info): Try qXfer:threads before anything
7121 (remote_protocol_packets): Register qXfer:threads.
7122 (remote_open_1): Init use_osdata_threads.
7123 (struct stop_reply): New field 'core'.
7124 (remote_parse_stop_reply): Parse core number.
7125 (process_stop_reply): Record core number.
7126 (remote_xfer_partial): Handle qXfer:threads.
7127 (remote_core_of_thread): New.
7128 (init_remote_ops): Register remote_core_of_thread.
7129 (_initialize_remote): Register qXfer:read.
7130 * target.c (target_core_of_thread): New
7131 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7132 (struct target_ops): New field to_core_of_threads.
7133 (target_core_of_thread): Declare.
7134 * gdbthread.h (struct thread_info): New field private_dtor.
7135 * thread.c (print_thread_info): Report the core.
7136 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7137 * utils.c (compare_positive_ints): New.
7138 * features/threads.dtd: New.
7139 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7140 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7141 (do_nothing, free_vector_of_osdata_items)
7142 (splay_tree_int_comparator, free_splay_tree): New.
7143 (print_one_inferior_data): Implemented printing of selected
7144 inferiors. Collect and print cores.
7145 (output_cores): New.
7146 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7147 thread groups together with --available.
7149 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7151 * configure: Regenerate (for _STRUCTURED_PROC).
7153 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7155 Delete dead function.
7156 * ada-lang.c (extract_string): Delete. No longer used.
7158 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7160 Fix -Wunused warning in dec-thread.c.
7161 * dec-thread.c (dec_thread_count_gdb_threads)
7162 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7164 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7166 * ada-valprint.c (ada_print_floating): Remove trailing space.
7168 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7170 Add support for DW_AT_GNAT_descriptive_type.
7171 * gdbtypes.h (enum type_specific_kind): New enum.
7172 (struct main_type) [type_specific_field]: New component.
7173 [type_specific]: Add new component "gnat_stuff".
7174 (struct gnat_aux_type): New type.
7175 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7176 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7177 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7178 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7179 (TYPE_SPECIFIC_FIELD): New macros.
7180 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7181 type does not hold any cplus-specific data.
7182 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7183 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7184 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7185 cplus-specific data.
7186 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7187 Set new component TYPE_SPECIFIC_FIELD (type).
7188 (gnat_aux_default): New constant.
7189 (allocate_gnat_aux_type): New function.
7190 (init_type): Add initialization the type-specific stuff for
7191 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7192 (print_gnat_stuff): New function.
7193 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7194 specific data. Adjust code that prints the contents of the
7195 type-specific union using the TYPE_SPECIFIC_FIELD value.
7196 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7197 the type cplus stuff for Ada types.
7198 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7199 Error out if these routines are called with an Ada type.
7200 (read_structure_type, read_array_type, read_subrange_type):
7201 Add call to set_descriptive_type.
7202 (set_die_type): Initialize the gnat-specific data if necessary.
7203 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7205 * ada-lang.c (decode_constrained_packed_array_type): Use
7206 decode_constrained_packed_array_type instead of doing a standard
7207 lookup to locate a parallel type.
7208 (find_parallel_type_by_descriptive_type): New function.
7209 (ada_find_parallel_type_with_name): New function.
7210 (ada_find_parallel_type): Reimplement using
7211 ada_find_parallel_type_with_name.
7212 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7213 to check if type has a cplus stuff.
7214 * linespec.c (total_number_of_methods): Likewise.
7215 * mdebugread.c (new_type): Likewise.
7217 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7219 * NEWS: Document the 0b binary number prefix parsing.
7221 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7223 * objfiles.c (objfile_relocate1): Change the return type to int.
7224 Describe the new return value. Return non-zero if data changed.
7225 (objfile_relocate): New variable changed. Set it. Call
7226 breakpoint_re_set depending on CHANGED.
7228 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7230 Implement binary numbers parsing.
7231 * c-exp.y (parse_number): New case 'b' and 'B'.
7233 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7234 Tristan Gingold <gingold@adacore.com>
7236 * solib.c (info_sharedlibrary_command): Replace
7237 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7238 objfile_has_symbols.
7240 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7242 * NEWS: Document the improvements made to the mips-irix port.
7244 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7246 Fix the documentation of valprint.c:value_print.
7247 * valprint.c (value_print): Update the function description to
7248 mention that the syntax of the output follows the current_language,
7251 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7253 Fix displacement of separate debug info files.
7254 * objfiles.c (objfile_relocate): Rename to ...
7255 (objfile_relocate1): ... here and make it static. Extend the comment.
7256 (objfile_relocate): New function.
7257 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7258 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7259 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7260 allocated using alloca.
7261 * symfile.c (copy_section_addr_info): Remove.
7262 (build_section_addr_info_from_objfile): Make it global. New variables
7263 addr_bit and mask, use them.
7264 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7265 (copy_section_addr_info): Remove.
7267 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7269 Signal unwinder for mips-irix N32.
7270 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7272 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7273 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7274 (SIGCONTEXT_LO_OFF): New macros.
7275 (mips_irix_n32_tramp_frame_init): New function.
7276 (mips_irix_n32_tramp_frame): New static constant.
7277 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7279 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7281 Breakpoint in shared library does not work on mips-irix.
7282 * procfs.c: #include "observer.h".
7283 (procfs_inferior_created): New function, moving here the code
7284 which unsets the syssgi syscall-exit notifications.
7285 (procfs_create_inferior): Remove the code which unsets the syssgi
7286 syscall-exit notifications. It is too early to do this here.
7287 (_initialize_procfs): Attach the procfs_inferior_created observer.
7289 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7291 Wrong return convention for arrays (mips-irix).
7292 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7293 128 bits or smaller are returned the same way as structs
7294 and unions of the the same size.
7296 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7298 Cannot set the PC on mips-irix.
7299 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7300 register number, no the cooked one.
7302 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7304 Error while loading core file on mips-irix.
7305 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7306 if debugging from a core file.
7308 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7310 GDB hangs when attaching to process on mips-irix.
7311 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7312 attaching to a process.
7314 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7316 Use the correct breakpoint instruction on mips-irix.
7317 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7318 containing the correct breakpoint instruction to use on mips-irix.
7319 Use it when the osabi is GDB_OSABI_IRIX.
7321 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7323 -Wunused warning in procfs.c (mips-irix only).
7324 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7325 throughout instead of using praddset and prdelset respectively.
7327 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7329 GDB crash while stepping into function.
7330 * infrun.c (handle_inferior_event): Refetch the current frame
7331 after handling what.main_action, in case that pointer became
7334 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7336 Fix build failure of solaris-hosted cross debuggers.
7337 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7339 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7341 Fix build failure on sparc-solaris.
7342 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7344 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7346 Move some symfile code into subroutines.
7347 * symfile.h (relative_addr_info_to_section_offsets)
7348 (addr_info_make_relative): New prototypes.
7349 * symfile.c (default_symfile_offsets): Move a part to ...
7350 (relative_addr_info_to_section_offsets): ... this new function.
7351 (default_symfile_offsets): Call it.
7352 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7354 (addr_info_make_relative): ... this new function.
7356 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7358 Add from_tty to solib_create_inferior_hook.
7359 * infcmd.c (post_create_inferior): Move solib_add after
7360 solib_create_inferior_hook. Pass from_tty to
7361 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7362 0 from_tty and comment why.
7363 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7364 * linux-nat.c (linux_child_follow_fork): Likewise.
7365 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7366 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7368 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7369 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7370 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7371 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7372 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7373 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7374 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7375 Pass it to svr4_so_ops.solib_create_inferior_hook.
7376 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7378 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7380 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7382 * solib-target.c (solib_target_solib_create_inferior_hook): New
7384 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7385 it to ops->solib_create_inferior_hook.
7386 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7387 Move solib_add after solib_create_inferior_hook, call it now with
7388 from_tty as 0. New comment there.
7389 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7390 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7393 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7396 * infrun.c (handle_inferior_event): Use get_thread_regcache
7397 with events ptid, not get_current_regcache.
7399 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7401 GDB crash with empty executable name (MinGW).
7402 * source.c (openp): Add assert that parameter string is not NULL.
7403 if parameter string is an empty string, then return with a failure
7406 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7408 Get rid of support for VAX Floats.
7409 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7410 (ada_vax_float_print_function): Delete.
7411 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7412 (ada_vax_float_print_function): Delete.
7413 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7414 (ada_print_type): Remove support for VAX floats.
7415 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7417 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7419 * stabsread.c (read_args): Handle zero arguments.
7421 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7423 Cannot find in-tree libiconv.a after reconfigure.
7424 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7425 that we can use, then cache the path to this archive.
7426 * configure: Regenerate.
7428 2010-01-07 Stan Shebs <stan@codesourcery.com>
7430 Make tracepoint operations go through target vector.
7431 * target.h (enum trace_find_type): New enum.
7432 (struct target_ops): New fields to_trace_init,
7433 to_download_tracepoint, to_download_trace_state_variable,
7434 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7435 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7436 to_set_disconnected_tracing.
7437 (target_trace_init): New macro.
7438 (target_download_tracepoint): New macro.
7439 (target_download_trace_state_variable): New macro.
7440 (target_trace_start): New macro.
7441 (target_trace_set_readonly_regions): New macro.
7442 (target_get_trace_status): New macro.
7443 (target_trace_stop): New macro.
7444 (target_trace_find): New macro.
7445 (target_get_trace_state_variable_value): New macro.
7446 (target_set_disconnected_tracing): New macro.
7447 * target.c (update_current_target): Inherit and set defaults for
7448 tracepoint operations.
7449 * tracepoint.c (default_collect): Make globally visible.
7450 (target_is_remote): Remove, along with all calls.
7451 (tvariables_info): Call target_get_trace_state_variable_value.
7452 (remote_set_transparent_ranges): Remove.
7453 (trace_start_command): Call target_trace_init,
7454 target_download_tracepoint, etc.
7455 (download_tracepoint): Remove.
7456 (trace_stop_command): Simplify.
7457 (stop_tracing): Call target_trace_stop.
7458 (get_trace_status): Call target_get_trace_status.
7459 (trace_status_command): Add case for targets that cannot trace.
7460 (finish_tfind_command): Change to take numerical arguments, call
7462 (trace_find_command): Update call to finish_tfind_command.
7463 (trace_find_pc_command): Ditto.
7464 (trace_find_tracepoint_command): Ditto.
7465 (trace_find_line_command): Ditto.
7466 (trace_find_range_command): Ditto.
7467 (trace_find_outside_command): Ditto.
7468 (set_disconnected_tracing_value): Call
7469 target_set_disconnected_tracing.
7470 * remote.c: Add protocol encoding bits from tracepoint.c.
7471 (trace_error): Move from tracepoint.c.
7472 (remote_get_noisy_reply): Ditto.
7473 (free_actions_list_cleanup_wrapper): Ditto.
7474 (free_actions_list): Ditto.
7475 (remote_trace_init): New function.
7476 (remote_download_tracepoint): New function.
7477 (remote_download_trace_state_variable): New function.
7478 (remote_trace_set_readonly_regions): New function.
7479 (remote_trace_start): New function.
7480 (remote_get_trace_status): New function.
7481 (remote_trace_stop): New function.
7482 (remote_trace_find): New function.
7483 (remote_download_trace_state_variable): New function.
7484 (remote_set_disconnected_tracing): New function.
7485 (init_remote_ops): Add tracepoint operations.
7487 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7489 2010-01-07 Tristan Gingold <gingold@adacore.com>
7491 * symfile.c (build_section_addr_info_from_objfile): New function.
7492 (symbol_file_add_separate): Don't use offsets from objfile but
7495 2010-01-06 Stan Shebs <stan@codesourcery.com>
7497 Support disconnected tracing.
7498 * infcmd.c (detach_command): Ask whether to stop tracing.
7499 * cli/cli-cmds.c (quit_command): Ditto.
7500 * breakpoint.h (struct breakpoint): New field number_on_target.
7501 * breakpoint.c (create_tracepoint_from_upload): New function.
7502 (get_tracepoint_by_number_on_target): New function.
7503 * remote.c (struct remote): New field disconnected_tracing.
7504 (remote_disconnected_tracing_feature): New function.
7505 (remote_protocol_features): Add DisconnectedTracing.
7506 (struct uploaded_tp): New struct.
7507 (uploaded_tps): New global.
7508 (get_uploaded_tp): New function.
7509 (find_matching_tracepoint): New function.
7510 (remote_get_tracing_state): New function.
7511 (remote_start_remote): Call it.
7512 * tracepoint.c (disconnected_tracing): New global.
7513 (trace_start_command): Initialize number_on_target.
7514 (stop_tracing): New function, split out from...
7515 (trace_stop_command): Call stop_tracing.
7516 (get_trace_status): New function, split out from...
7517 (trace_status_command): Call get_trace_status, add info on
7518 disconnection behavior.
7519 (disconnect_or_stop_tracing): New function.
7520 (finish_tfind_command): Translate from number on target.
7521 (trace_find_tracepoint_command): Translate to number on target.
7522 (send_disconnected_tracing_value): New function.
7523 (set_disconnected_tracing): New function.
7524 (_initialize_tracepoint): Add disconnected-tracing variable.
7525 * NEWS: Mention disconnected tracing.
7527 2010-01-06 Tristan Gingold <gingold@adacore.com>
7529 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7530 parameter to main_objfile. Iterate on all separate debug objfiles.
7531 * symfile.h (symbol_file_add_separate)
7532 (find_separate_debug_file_by_debuglink): Remove parameter names.
7533 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7534 (reread_symbols): Use free_objfile_separate_debug.
7535 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7537 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7538 (free_objfile_separate_debug): New prototypes.
7539 * objfiles.c (objfile_separate_debug_iterate): New function.
7540 (add_separate_debug_objfile, free_objfile_separate_debug): New
7542 (free_objfile): Use free_objfile_separate_debug. Adjust for
7543 multiple separate debug objfile.
7544 (objfile_has_symbols): Adjust comment. Iterate on all separate
7546 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7548 (lookup_minimal_symbol_text): Ditto.
7549 (lookup_minimal_symbol_by_pc_name): Ditto.
7550 (lookup_minimal_symbol_solib_trampoline): Ditto.
7551 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7554 2010-01-05 Stan Shebs <stan@codesourcery.com>
7556 Add fast tracepoints.
7557 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7558 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7559 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7560 * breakpoint.c (tracepoint_type): New function.
7561 (ALL_TRACEPOINTS): Use it.
7562 (should_be_inserted): Ditto.
7563 (bpstat_check_location): Ditto.
7564 (print_one_breakpoint_location): Ditto.
7565 (user_settable_breakpoint): Ditto.
7566 (set_breakpoint_location_function): Ditto.
7567 (disable_breakpoints_in_shlibs): Ditto.
7568 (delete_trace_command): Ditto.
7569 (print_it_typical): Add bp_fast_tracepoint case.
7570 (bpstat_what): Ditto.
7571 (print_one_breakpoint_location): Ditto.
7572 (allocate_bp_location): Ditto.
7574 (breakpoint_re_set_one): Ditto.
7575 (disable_command): Ditto.
7576 (enable_command): Ditto.
7577 (check_fast_tracepoint_sals): New function.
7578 (break_command_really): Call it.
7579 (ftrace_command): New function.
7580 (_initialize_breakpoint): Add ftrace command.
7581 * gdbarch.sh (fast_tracepoint_valid_at): New.
7582 * gdbarch.h, gdbarch.c: Regenerate.
7583 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7584 (i386_gdbarch_init): Use it.
7585 * remote.c (struct remote_state): New field fast_tracepoints.
7586 (PACKET_FastTracepoints): New packet config type.
7587 (remote_fast_tracepoint_feature): New function.
7588 (remote_protocol_features): Add FastTracepoints.
7589 (remote_supports_fast_tracepoints): New function.
7590 (_initialize_remote): Add FastTracepoints.
7591 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7592 * NEWS: Mention fast tracepoints.
7594 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7596 * gdb-gdb.py: New file.
7598 2010-01-05 Michael Snyder <msnyder@vmware.com>
7600 * infrun.c (handle_inferior_event): Fix typo in comment.
7602 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7604 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7606 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7608 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7610 (s390-linux32-expedite): Define.
7611 (s390-linux64-expedite): Define.
7612 (s390x-linux64-expedite): Define.
7613 * features/s390-acr.xml: New file.
7614 * features/s390-fpr.xml: New file.
7615 * features/s390-core32.xml: New file.
7616 * features/s390-core64.xml: New file.
7617 * features/s390x-core64.xml: New file.
7618 * features/s390-linux32.xml: New file.
7619 * features/s390-linux64.xml: New file.
7620 * features/s390x-linux64.xml: New file.
7621 * features/s390-linux32.c: New generated file.
7622 * features/s390-linux64.c: New generated file.
7623 * features/s390x-linux64.c: New generated file.
7625 * regformats/s390-linux32.dat: New generated file.
7626 * regformats/s390-linux64.dat: New generated file.
7627 * regformats/s390x-linux64.dat: New generated file.
7628 * regformats/reg-s390.dat: Remove.
7629 * regformats/reg-s390x.dat: Remove.
7631 * s390-nat.c: Include "auxv.h" and <elf.h>.
7632 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7633 (s390_target_wordsize): New function.
7634 (s390_auxv_parse): Likewise.
7635 (s390_get_hwcap): Likewise.
7636 (s390_read_description): Likewise.
7637 (_initialize_s390_nat): Install s390_auxv_parse and
7638 s390_read_description.
7640 * s390-tdep.c: Include "features/s390-linux32.c",
7641 "features/s390-linux64.c", and "features/s390x-linux64.c".
7642 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7643 (s390_register_call_saved): New function.
7644 (s390_register_name): Remove.
7645 (s390_register_type): Remove.
7646 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7647 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7648 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7649 (s390_pseudo_register_name): New function.
7650 (s390_pseudo_register_type): New function.
7651 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7652 Handle full GPR pesudos and varying pseudo register numbers.
7653 (s390_pseudo_register_write): Likewise
7654 (s390x_pseudo_register_read): Remove.
7655 (s390x_pseudo_register_write): Likewise.
7656 (s390_register_group): Remove.
7657 (s390_pseudo_register_group): New function.
7658 (s390_regmap_gregset): Add GPR upper halves.
7659 (s390x_regmap_gregset): Likewise.
7660 (s390_regmap_fpregset): Likewise.
7661 (s390_regmap_upper): New global variable.
7662 (s390_upper_regset): New global variable.
7663 (s390_upper_regset_sections): New global variable.
7664 (s390_regset_from_core_section): Handle GPR upper halves.
7665 (s390_core_read_description): New function.
7666 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7667 register information. Handle varying pseudo register numbers.
7668 (s390_backchain_frame_unwind_cache): Likewise.
7669 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7670 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7671 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7672 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7673 Handle varying pseudo register numbers.
7674 (s390_unwind_pc): Handle varying pseudo register numbers.
7675 (s390_dwarf2_prev_register): New function.
7676 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7677 register information. Handle varying pseudo register numbers.
7678 Install s390_dwarf2_prev_register to unwind full GPRs.
7679 (s390_gdbarch_init): Handle target descriptions. Assign varying
7680 pseudo register numbers. Install s390_adjust_frame_regnum.
7681 (_initialize_s390_tdep): Initialize target descriptions.
7683 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7684 (S390_NUM_REGS): Redefine to include upper half registers.
7685 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7686 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7687 (tdesc_s390_linux32): Add declaration.
7688 (tdesc_s390_linux64): Likewise.
7689 (tdesc_s390x_linux64): Likewise.
7691 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7693 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7694 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7695 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7696 (ppc_linux_vmx_regset_sections): Likewise.
7697 (ppc_linux_fp_regset_sections): Likewise.
7699 * corelow.c (get_core_register_section): Constify arguments.
7700 (get_core_registers): Use gdbarch_core_regset_sections instead
7701 of hard-coded platform-specific register section names.
7703 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7705 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7706 a register, assume the least-significant part is used.
7707 (write_pieced_value): Likewise.
7709 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7711 * printcmd.c: Include "arch-utils.h".
7712 (do_one_display): Re-parse expression if current architecture changed.
7714 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7715 Joel Brobecker <brobecker@adacore.com>
7717 * gdbtypes.c (check_typedef): New comment on type length.
7718 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7719 comment on type length.
7720 (value_primitive_field): Keep the original TYPE value, new comment.
7722 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7724 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7725 p_start. Change != comparisons to > and < comparisons.
7727 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7729 * cli/cli-script.c (process_next_line): Check P2 overrun.
7731 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7733 Update the copyright hearder to add year 2010 for most GDB files.
7735 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7737 Fix build failure in inf-ptrace.c.
7738 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7740 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7742 * top.c (print_gdb_version): Update copyright year.
7744 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7746 Fix break *FUN'address thread NUM.
7747 * ada-lex.l (task): Expand rule to also match the thread keyword.
7749 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7751 Fix break *FUN'address task NUM.
7752 * ada-lex.l (task): New rule.
7753 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7754 been built before using it.
7756 For older changes see ChangeLog-2009.
7762 version-control: never