1 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * c-typeprint.c (c_type_print_base): For no fields check include also
4 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
5 * dwarf2read.c (struct typedef_field_list)
6 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
7 (dwarf2_add_typedef): New.
8 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
9 Copy also FI.TYPEDEF_FIELD_LIST.
10 * gdbtypes.h (struct typedef_field)
11 (struct cplus_struct_type) <typedef_field, typedef_field_count>
12 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
13 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
15 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17 * cp-namespace.c (cp_lookup_nested_type): New variable
18 concatenated_name. Turn the current return condition into a reverse
19 one. Call also lookup_static_symbol_aux on the constructed qualified
21 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
22 other files into a called ...
23 (lookup_static_symbol_aux): ... new function here.
24 * symtab.h (lookup_static_symbol_aux): New prototype.
25 * valops.c (value_maybe_namespace_elt): Call also
26 lookup_static_symbol_aux if we failed otherwise.
28 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
30 Fix PR c++/11703 and PR gdb/1448.
31 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
34 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
36 Fix modification of cplus_struct_default.
37 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
38 Call ALLOCATE_CPLUS_STRUCT_TYPE.
39 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
41 2010-06-28 Joel Brobecker <brobecker@adacore.com>
43 * NEWS: Add entry announcing the python directory.
45 2010-06-28 Tom Tromey <tromey@redhat.com>
47 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
49 2010-06-28 Doug Evans <dje@google.com>
51 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
54 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
56 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
57 obstack_begin after each obstack_free.
59 2010-06-27 Doug Evans <dje@google.com>
61 * value.c (value_static_field): Use `switch' instead of `if'.
62 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
64 * valops.c (search_struct_field): Fix typo in error message.
66 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
68 * dwarf2expr.c (execute_stack_op): Place preprocessor
69 directives at the start of the source line.
71 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
73 * defs.h (make_command_stats_cleanup): Declare.
74 (set_display_time): Declare.
75 (set_display_space): Declare.
76 * event-top.c (command_handler): Use make_command_stats_cleanup.
77 * main.c (display_time, display_space): Move definitions to utils.c.
78 (captured_main): Use make_command_stats_cleanup to get start-up
80 Use set_display_time and set_display_space for processing OPT_STATISTICS
82 * maint.c (maintenance_time_display): Use set_display_time.
83 (maintenance_space_display): Use set_display_space.
84 * top.c (execute_command): Remove obsolete 'maint time' code.
85 (command_loop): Use make_command_stats_cleanup.
86 * utils.c (struct cmd_stats): Structure for storing initial time
88 (display_time, display_space): Move definitions here from utils.c.
89 (set_display_time): New function.
90 (set_display_space): New function.
91 (make_command_stats_cleanup): New function.
92 (report_command_stats): New auxiliary function for
93 make_command_stats_cleanup.
95 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
97 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
98 hosts where CORE_ADDR is long long.
100 2010-06-25 Tom Tromey <tromey@redhat.com>
103 * python/python.c (execute_gdb_command): Add keywords. Accept
104 "to_string" argument.
105 (struct restore_ui_file_closure): New.
106 (restore_ui_file): New function.
107 (make_cleanup_restore_ui_file): Likewise.
108 (GdbMethods) <execute>: Update.
110 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
112 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
113 during inferior call stack frame setup.
115 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
117 * solib-spu.c: Include "exception.h".
118 (ocl_program_data_key): New variable.
119 (append_ocl_sos): New function.
120 (ocl_enable_break): Likewise.
121 (spu_current_sos): Call append_ocl_sos.
122 (spu_solib_loaded): Call ocl_enable_break.
123 (_initialize_spu_solib): Register ocl_program_data_key.
125 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
127 * cp-support.c (reset_directive_searched): New function.
128 (make_symbol_overload_list_using): Prevent recursive calls.
130 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
132 * printcmd.c (print_variable_and_value): Print error message on
135 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
137 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
139 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
141 (dwarf_expr_push): Change input type to ULONGEST.
142 (dwarf_expr_fetch): Change return type to ULONGEST.
143 (dwarf_expr_fetch_address): Add prototype.
144 (dwarf2_read_address): Remove prototype.
145 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
146 Truncate stack values to ctx->addr_size bytes.
147 (dwarf_expr_fetch): Change return value to ULONGEST.
148 (dwarf_expr_fetch_address): New function.
149 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
150 when appropriate. Update for struct dwarf_expr_piece changes.
151 (dwarf2_read_address): Remove.
152 (unsigned_address_type): Remove.
153 (signed_address_type): Remove.
154 (execute_stack_op): Use dwarf_expr_fetch_address instead of
155 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
156 values. Perform operations on ULONGEST instead of on GDB values,
157 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
158 values and DW_OP_deref results as unsigned integers.
159 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
161 (write_pieced_value): Likewise.
162 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
163 dwarf_expr_fetch when appropriate.
164 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
165 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
166 instead of dwarf_expr_fetch when appropriate.
168 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
170 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
172 2010-06-24 Joel Brobecker <brobecker@adacore.com>
174 * python/python.c (_initialize_python): Add new "constant"
175 PYTHONDIR in gdb module. Insert this path at the head of
176 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
177 exec its __init__.py script if it exists in that directory.
179 2010-06-24 Kevin Buettner <kevinb@redhat.com>
181 * rx-tdep.c (RX_ACC_REGNUM): Define.
182 (RX_NUM_REGS): Redefine to 26.
183 (rx_register_name): Add register "acc". Change order of several
184 registers. Change name of "vct" register to "fintv" to match RX
186 (rx_register_type): Add case for RX_ACC_REGNUM.
188 2010-06-24 Tom Tromey <tromey@redhat.com>
190 * psymtab.c (lookup_partial_symbol): Mark definition as static.
192 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
193 Tom Tromey <tromey@redhat.com>
195 Fix GDB startup on readonly filesystem.
196 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
198 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
199 Pedro Alves <pedro@codesourcery.com>
202 * breakpoint.c (handle_jit_event): New function.
203 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
204 jit, err, table and bs_class. New variables shlib_event, jit_event,
205 this_action and bptype. Change bs_class assignments to this_action
206 assignments. new unhandled bptype internal error. Move here
207 shlib_event and jit_event handling from handle_inferior_event.
208 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
209 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
210 BPSTAT_WHAT_CHECK_JIT.
211 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
212 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
213 (handle_inferior_event): Reinitialize frame and gdbarch after
214 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
215 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
216 gdbarch when frame gets reinitialized.
218 2010-06-24 Hui Zhu <teawater@gmail.com>
220 * printcmd.c (ui_printf): New function.
221 (printf_command): Call ui_printf.
222 (_initialize_printcmd): New command "eval".
224 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
226 * infrun.c (handle_inferior_event): Handle presence of single-step
227 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
228 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
229 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
230 * breakpoint.c (detach_single_step_breakpoints): New function.
231 (detach_breakpoints): Call it.
232 (cancel_single_step_breakpoints): New function.
233 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
235 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
236 (spu_gdbarch_init): Install it.
238 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
240 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
241 * configure: Regenerate.
243 2010-06-22 Hui Zhu <teawater@gmail.com>
245 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
246 (i386_process_record): Ditto.
247 * record.c (record_memory_query): New variable.
248 (_initialize_record): New command "set record memory-query".
249 * record.h (record_memory_query): New extern.
251 2010-06-21 Doug Evans <dje@google.com>
253 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
254 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
255 (i386_syscall_p): Change type of lengthp to int.
256 (i386_displaced_step_fixup): Handle kernels that run one past a
258 * i386-linux-tdep.c (i386_linux_init_abi): Use
259 i386_displaced_step_copy_insn instead of
260 simple_displaced_step_copy_insn.
262 2010-06-21 Tom Tromey <tromey@redhat.com>
264 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
265 (dwarf_type_encoding_name): Likewise.
267 2010-06-21 Tom Tromey <tromey@redhat.com>
269 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
270 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
271 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
272 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
273 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
274 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
275 * dwarf2read.c (tag_type_to_type): Create a new error type on
277 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
278 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
280 2010-06-21 Michael Snyder <msnyder@vmware.com>
282 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
283 not add_abbrev_prefix_cmd, for "enable breakpoints".
285 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
287 * dwarf2loc.c (find_location_expression): Add relocation offset
288 to base-address-selection entry base addresses. Read addresses
289 (and offsets) as signed/unsigned integers, depending on the
290 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
291 (loclist_describe_location): Likewise.
292 (disassemble_dwarf_expression): Read DW_OP_addr operand as
293 unsigned integer. Do not call dwarf2_read_address.
294 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
296 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
298 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
299 value instead of hard-coded SPU_LS_SIZE.
300 (spu_software_single_step): Likewise.
301 * spu-tdep.h (SPU_LS_SIZE): Remove.
303 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
305 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
306 limit on local store memory accesses.
307 * spu-linux-nat.c (spu_xfer_partial): Likewise.
308 * spu-tdep.c (spu_lslr): Remove.
309 (spu_pointer_to_address): Do not truncate addresses.
310 (spu_integer_to_address): Likewise.
311 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
312 * spu-tdep.h: Add comments.
313 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
314 (SPU_OVERLAY_LMA): Define.
316 2010-06-18 Stan Shebs <stan@codesourcery.com>
318 * osdata.c (get_osdata): Warn separately if target does not report
320 (info_osdata_command): Allow empty type, report error if target
321 does not return available types of OS data.
322 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
323 types if no annex supplied.
325 * thread.c (thread_id_make_value): Make a value representing the
327 (_initialize_thread): Create $_thread.
329 2010-06-17 Joel Brobecker <brobecker@adacore.com>
331 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
332 last local variable declaration. No real code change.
334 2010-06-17 Tom Tromey <tromey@redhat.com>
336 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
337 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
340 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
341 Jan Kratochvil <jan.kratochvil@redhat.com>
343 * breakpoint.c: Include parser-defs.h.
344 (watchpoint_exp_is_const): New function.
345 (watch_command_1): Call watchpoint_exp_is_const to check
346 if the expression is constant.
348 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
350 * configure.ac: Check for RDYNAMIC also for cross builds.
351 * configure: Regenerate.
353 2010-06-15 Pedro Alves <pedro@codesourcery.com>
355 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
356 (SFILES): Remove solib-null.c, add solib-target.c.
357 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
358 (ALLDEPFILES): Remove solib-target.c.
359 * solib-target.c (_initialize_solib_target): Set
360 current_target_so_ops to solib_target_so_ops if not already set.
361 * solib-null.c: Delete.
363 2010-06-14 Pedro Alves <pedro@codesourcery.com>
365 * NEWS: Mention GDBserver's JIT compilation of tracepoint
368 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
370 * cp-valprint.c (cp_print_static_field): Members of
371 dont_print_stat_array_obstack are of type "struct type *".
372 (_initialize_cp_valprint): Likewise.
374 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
376 * frame.c (frame_register_unwind): Do not access contents
377 of "optimized out" unwound register value.
379 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
381 * ada-lang.h (ada_print_type): Make varstring const.
382 * ada-typeprint.c (print_func_type): Make name const.
383 (ada_print_type): Make varstring const.
384 * c-lang.h (c_print_type): Make varstring const.
385 * c-typeprint.c (c_print_type): Likewise.
386 * f-lang.h (f_print_type): Likewise.
387 * f-typeprint.c (f_print_type): Likewise.
388 * jv-lang.h (java_print_type): Likewise.
389 * jv-typeprint.c (java_print_type): Likewise.
390 * language.c (unk_lang_print_type): Likewise.
391 * language.h (struct language_defn) <la_print_type>: Likewise.
392 * m2-lang.h (m2_print_type): Likewise.
393 * m2-typeprint.c (m2_print_type): Likewise.
394 * p-lang.h (pascal_print_type): Likewise.
395 * p-typeprint.c (pascal_print_type): Likewise.
397 2010-06-11 Stan Shebs <stan@codesourcery.com>
399 Add per-operation permission flags.
401 * target.h (struct target_ops): New method to_set_permissions.
402 (target_set_permissions): New macro.
403 (target_insert_breakpoint): Change macro to function.
404 (target_remove_breakpoint): Ditto.
405 (target_stop): Ditto.
406 (may_write_registers): Declare.
407 (may_write_memory): Declare.
408 (may_insert_breakpoints): Declare.
409 (may_insert_tracepoints): Declare.
410 (may_insert_fast_tracepoints): Declare.
412 * target.c (may_write_registers, may_write_registers_1): New globals.
413 (may_write_memory, may_write_memory_1): New globals.
414 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
415 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
416 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
418 (may_stop, may_stop_1): New global.
419 (target_xfer_partial): Test for write permission.
420 (target_store_registers): Ditto.
421 (target_insert_breakpoint): New function.
422 (target_remove_breakpoint): New function.
423 (target_stop): New function.
424 (_initialize_targets): Add new set/show variables.
425 (set_write_memory_permission): New function.
426 (update_target_permissions): New function.
427 (set_target_permissions): New function.
428 (update_current_target): Default to_set_permissions.
429 (_initialize_targets): Use new globals and setter function.
430 * tracepoint.c (start_tracing): Test for permission.
431 * inferior.h (update_observer_mode): Declare.
432 * infrun.c (non_stop_1): Define earlier.
433 (observer_mode, observer_mode_1): New globals.
434 (set_observer_mode, show_observer_mode): New functions.
435 (update_observer_mode): New function.
436 (_initialize_infrun): Define "set observer" command.
437 * remote.c (PACKET_QAllow): New optional packet.
438 (remote_protocol_features): Add QAllow.
439 (remote_set_permissions): New function.
440 (remote_start_remote): Call it.
441 (init_remote_ops): Add it to target vector.
442 (_initialize_remote): Add config command for QAllow.
444 2010-06-11 Tom Tromey <tromey@redhat.com>
446 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
447 DW_AT_vtable_elem_location even when GCC extension is seen.
449 2010-06-11 Tom Tromey <tromey@redhat.com>
451 PR gdb/9977, PR exp/11636:
452 * value.h (value_offset): Update.
453 (struct lval_funcs) <check_validity>: New field.
454 <copy_closure>: Make argument const.
455 (value_computed_closure): Update.
456 (value_contents_for_printing): Declare.
457 (value_bits_valid): Likewise.
458 (val_print): Likewise.
459 (set_value_component_location): Update.
460 (value_entirely_optimized_out): Declare.
461 * value.c (value_offset): Argument now const.
462 (require_not_optimized_out): New function.
463 (value_contents_for_printing): New function.
464 (value_contents_all): Call require_not_optimized_out.
465 (value_contents): Likewise.
466 (value_bits_valid): New function.
467 (value_computed_closure): Argument now const.
468 (set_value_component_location): Make 'whole' argument const.
469 (value_entirely_optimized_out): New function.
470 (value_bitsize): Argument now 'const'.
471 (value_bitpos): Likewise.
472 (value_type): Likewise.
473 * valprint.h (val_print_array_elements): Update.
474 * valprint.c (val_print): Add 'val' argument. Use
475 valprint_check_validity.
476 (valprint_check_validity): New function.
477 (value_check_printable): Use value_entirely_optimized_out.
478 (common_val_print): Update.
479 (value_print): Likewise.
480 (val_print_array_elements): Add 'val' argument.
481 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
482 value_bits_valid. Reinit frame cache for lval_computed.
483 * sh64-tdep.c (sh64_do_register): Update.
484 * scm-valprint.c (scm_val_print): Add 'val' argument.
485 * scm-lang.h (scm_val_print): Update.
486 * python/python.h (apply_val_pretty_printer): Update.
487 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
488 argument. Call set_value_component_location.
489 * printcmd.c (print_scalar_formatted): Update.
490 * p-valprint.c (pascal_val_print): Add 'val' argument.
491 (pascal_object_print_value_fields): Likewise.
492 (pascal_object_print_value): Likewise.
493 (pascal_object_print_static_field): Update.
494 * p-lang.h (pascal_val_print): Update.
495 (pascal_object_print_value_fields): Update.
496 * mt-tdep.c (mt_registers_info): Update.
497 * mi/mi-main.c (get_register): Update.
498 (mi_cmd_data_evaluate_expression): Use common_val_print.
499 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
500 (m2_print_unbounded_array): Likewise.
501 (m2_val_print): Likewise.
502 * m2-lang.h (m2_val_print): Update.
503 * language.h (struct language_defn) <la_val_print>: Add 'val'
505 (LA_VAL_PRINT): Likewise.
506 * language.c (unk_lang_val_print): Add 'val' argument.
507 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
508 (java_val_print): Likewise.
509 * jv-lang.h (java_val_print): Add 'val' argument.
510 * infcmd.c (default_print_registers_info): Update.
511 * f-valprint.c (f77_print_array_1): Add 'val' argument.
512 (f77_print_array): Likewise.
513 (f_val_print): Likewise.
514 * f-lang.h (f_val_print): Add 'val' argument.
515 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
517 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
518 set_value_optimized_out.
519 (write_pieced_value): Use value_bitsize and value_bitpos.
520 <default>: Don't exit loop.
521 (check_pieced_value_validity): New function.
522 (pieced_value_funcs): Reference check_pieced_value_validity,
523 check_pieced_value_invalid.
524 (copy_pieced_value_closure): Update.
525 (check_pieced_value_bits): New function.
526 (check_pieced_value_invalid): New function.
527 * d-valprint.c (dynamic_array_type): Add 'val' argument.
528 (d_val_print): Likewise.
529 * d-lang.h (d_val_print): Update.
530 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
531 (cp_print_value_fields_rtti): Likewise.
532 (cp_print_value): Likewise.
533 (cp_print_static_field): Update.
534 * c-valprint.c (c_val_print): Add 'val' argument.
535 (c_value_print): Update.
536 * c-lang.h (c_val_print): Update.
537 (cp_print_value_fields): Likewise.
538 (cp_print_value_fields_rtti): Likewise.
539 * ada-valprint.c (struct ada_val_print_args): Remove.
540 (val_print_packed_array_elements): Add 'val' argument.
541 (ada_val_print): Likewise. Rewrite.
542 (ada_val_print_stub): Remove.
543 (ada_val_print_array): Add 'val' argument.
544 (ada_val_print_1): Likewise.
545 (print_variant_part): Likewise.
546 (ada_value_print): Update.
547 (print_record): Add 'val' argument.
548 (print_field_values): Likewise.
549 * ada-lang.h (ada_val_print): Update.
551 2010-06-11 Tom Tromey <tromey@redhat.com>
553 * vec.h (VEC_cleanup): New macro.
554 (DEF_VEC_ALLOC_FUNC_I): Update.
555 (DEF_VEC_ALLOC_FUNC_P): Likewise.
556 (DEF_VEC_ALLOC_FUNC_O): Likewise.
557 * dwarf2loc.c (struct axs_var_loc): Remove.
558 (unimplemented): New function.
559 (translate_register): Likewise.
560 (access_memory): Likewise.
561 (compile_dwarf_to_ax): Likewise.
562 (dwarf2_tracepoint_var_loc): Remove.
563 (dwarf2_tracepoint_var_access): Likewise.
564 (dwarf2_tracepoint_var_ref): Likewise.
565 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
566 (loclist_tracepoint_var_ref): Likewise.
567 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
568 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
569 require_composition. No longer static.
570 (execute_stack_op): Update.
571 * ax-gdb.h (trace_kludge): Declare.
573 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
575 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
576 (should_be_inserted): Return zero also on NULL OWNER.
577 (breakpoint_program_space_exit): New OWNER comment.
578 (insert_breakpoint_locations): Extend comment for OWNER.
579 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
580 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
582 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
583 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
584 (bpstat_check_location): New assert on OWNER.
585 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
586 and B initializations to the code block. New assert on them.
587 (print_one_breakpoint_location): New OWNER comment.
588 (watchpoint_locations_match): Assert on OWNER.
589 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
590 initializations to the code block. New assert on OWNER.
591 (set_breakpoint_location_function): New assert on OWNER.
592 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
593 (bp_location_compare, update_global_location_list)
594 (update_global_location_list): New OWNER comment.
596 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
598 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
600 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
602 * config/nm-linux.h (struct target_ops): Remove forward declaration.
603 (lin_thread_get_thread_signals): Remove prototype.
604 (GET_THREAD_SIGNALS): Remove.
605 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
606 * linux-thread-db.c (check_thread_signals): Directly call
607 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
609 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
611 * gregset.h (GDB_FPXREGSET_T): Remove.
612 (gdb_fpxregset_t): Likewise.
613 (supply_fpxregset): Remove prototype.
614 (fill_fpxregset): Likewise.
615 * i386-linux-nat.c (supply_fpxregset): Remove.
616 (fill_fpxregset): Likewise.
617 (fetch_fpxregs): Inline supply_fpxregset call.
618 (store_fpxregs): Inline fill_fpxregset call.
620 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
621 * config/i386/nm-linux.h: Remove file.
623 2010-06-09 Michael Snyder <msnyder@vmware.com>
625 * target.c (update_current_target): Fix spelling error in comment.
626 (target_mourn_inferior): Fix spelling error in error message.
628 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
630 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
631 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
633 2010-06-08 Michael Snyder <msnyder@vmware.com>
635 * remote.c (remote_close): Set inferior_ptid to null_ptid.
637 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
639 * configure.ac <"${have_libpython}" != no>: New workaround of
641 * configure: Regenerate.
643 2010-06-08 Hui Zhu <teawater@gmail.com>
645 * record.c (record_wait): Move signal out of replay code.
647 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
650 * dwarf2-frame.c (no_dwarf_call): New function.
651 (execute_stack_op): Set CTX->DWARF_CALL.
652 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
653 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
654 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
655 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
656 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
657 (needs_frame_dwarf_call): New function.
658 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
659 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
660 Update the comment. Move variables die, offset and error call to ...
661 (follow_die_ref): ... a new function.
662 (dwarf2_fetch_die_location_block): New function.
663 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
665 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
667 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
668 (dwarf_expr_tls_address): Use per_cu instead of objfile.
669 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
670 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
672 (struct needs_frame_baton): New field per_cu.
673 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
674 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
676 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
678 * cp-support.c (make_symbol_overload_list_namespace): Only search
679 static and global blocks.
680 (make_symbol_overload_list_block): New function.
681 (make_symbol_overload_list): Separate namespace search from block
683 (make_symbol_overload_list_qualified): Use
684 make_symbol_overload_list_block.
686 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
688 * value.h: Created oload_search_type enum.
689 (find_overload_match): Use oload_search_type enum.
690 * valops.c (find_overload_match): Support combined member and
692 * eval.c (evaluate_subexp_standard): Calls to
693 find_overload_match now use oload_search_type enum.
694 (oload_method_static): Verify index is a proper value.
695 * valarith.c (value_user_defined_cpp_op): Search for and handle
696 both member and non-member operators.
697 (value_user_defined_cpp_op): New function.
698 (value_user_defined_op): New function.
699 (value_x_unop): Use value_user_defined_op.
700 (value_x_binop): Ditto.
701 * cp-support.c (make_symbol_overload_list_using): Added block
703 Add check for namespace aliases and imported declarations.
705 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
707 * breakpoint.h (owner): Extend the comment.
709 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
711 Clear stale specific bp_location from former whole breakpoint.
712 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
714 (free_bp_location): ... here. Rename there the called function to
715 bpstat_remove_bp_location_callback.
716 (bpstat_remove_breakpoint_callback): Rename to ...
717 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
718 to struct bp_location. Change the called function to
719 bpstat_remove_bp_location. Create new declaration for the function.
720 (bpstat_remove_breakpoint): Rename to ...
721 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
722 code for the new parameter type.
724 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
726 * README: Make version-agnostic.
728 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
730 Fix duplicate types for single DIE.
731 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
733 (read_array_type): Remove type initialization. Recheck get_die_type
734 after initial die_type. Move set_die_type before set_descriptive_type.
735 (read_set_type): New variable domain_type. Recheck get_die_type after
736 initial die_type. Move attr initialization later.
737 (read_tag_pointer_type, read_tag_reference_type): New variable
738 target_type. Recheck get_die_type after initial die_type.
739 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
740 die_type and die_containing_type.
741 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
742 Recheck get_die_type after initial die_type.
743 (read_subrange_type): Recheck get_die_type after initial die_type.
744 Move set_die_type before set_descriptive_type.
745 (set_die_type): Extend the function comment. Call complaint if DIE has
746 some type already set.
748 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
750 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
751 for current naming of thread groups (iN, not N).
753 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
755 * ada-lang.c (ada_operator_length): Constify `struct expression'.
756 * parse.c (operator_length): Likewise.
757 (operator_length_standard): Likewise.
758 * parser-defs.h (operator_length): Likewise.
759 (operator_length_standard): Likewise.
760 (struct exp_descriptor <operator_length>): Likewise.
762 2010-06-04 Doug Evans <dje@google.com>
764 Add support for enabling/disabling individual pretty-printers.
765 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
766 * python/python-internal.h (gdbpy_enabled_cst): Declare.
767 * python/python.c (gdbpy_enabled_cst): Define.
768 (_initialize_python): Initialize gdbpy_enabled_cst.
771 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
773 * breakpoint.c (update_global_location_list): Fix comment typo.
775 2010-06-04 Hui Zhu <teawater@gmail.com>
777 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
779 2010-06-03 Doug Evans <dje@google.com>
781 * configure.ac: Don't fail if python is unusable when
782 configured with --with-python=auto.
783 * configure: Regenerate.
785 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
787 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
789 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
791 * valprint.h (get_array_bounds): Change low and high parameter types
793 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
795 (val_print_array_elements): Adapt to change above.
796 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
797 * p-valprint.c (pascal_val_print): Likewise.
799 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
801 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
802 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
805 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
807 Support DW_TAG_module as separate namespaces.
808 * dwarf2read.c (typename_concat): New parameter physname.
809 (read_module_type): New function and declaration.
810 (scan_partial_symbols): Scan also DW_TAG_module children.
811 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
812 to typename_concat backward compatible physname value 0.
813 (partial_die_full_name, read_namespace_type): Pass to typename_concat
814 backward compatible physname value 0.
815 (add_partial_module, read_module): Remove FIXME comment.
816 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
817 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
818 DIEs under DW_TAG_module.
819 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
820 DW_AT_MIPS_linkage_name first, extend it for language_fortran
821 && physname and return there instead of just setting NAME. Extend
822 the main block for language_fortran. Pass physname parameter to the
823 typename_concat call.
824 (read_import_statement, read_func_scope, get_scope_pc_bounds)
825 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
826 (new_symbol): Fill in cplus_specific.demangled_name if it is still
827 missing from SYMBOL_SET_NAMES in the language_fortran case.
828 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
830 (read_type_die) <DW_TAG_module>: New.
831 (MAX_SEP_LEN): Increase to 7.
832 (typename_concat): New parameter physname. New variable lead. Support
833 also language_fortran.
834 * f-exp.y (yylex): Consider : also as a symbol name character class.
835 * f-lang.c: Include cp-support.h.
836 (f_word_break_characters, f_make_symbol_completion_list): New functions.
837 (f_language_defn): Use cp_lookup_symbol_nonlocal,
838 f_word_break_characters and f_make_symbol_completion_list.
839 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
840 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
841 * symtab.c (symbol_init_language_specific): Support language_fortran.
842 (symbol_find_demangled_name): New comment on language_fortran.
843 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
844 for language_fortran.
845 (lookup_symbol_aux_local): Check imports also for language_fortran.
846 (default_make_symbol_completion_list): Rename to ...
847 (default_make_symbol_completion_list_break_on): ... this name. New
848 parameter break_on, use it.
849 (default_make_symbol_completion_list): New stub.
850 * symtab.h (default_make_symbol_completion_list_break_on): New
853 2010-06-02 Joel Brobecker <brobecker@adacore.com>
855 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
858 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
860 * dwarf2read.c (typename_concat): Add const to the variable sep.
862 2010-06-02 Tom Tromey <tromey@redhat.com>
864 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
865 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
866 type is const. Add 'def' argument. Add missing operators, remove
868 (decode_locdesc): Update.
869 (dwarf2_always_disassemble): New global.
870 (show_dwarf2_always_disassemble): New function.
871 (_initialize_dwarf2_read): Add always-disassemble.
872 (dwarf2_per_cu_offset_size): New function.
873 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
874 (piece_end_p): New function.
875 (locexpr_describe_location_piece): Replace 'size' argument with
876 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
877 some constants. Remove errors.
878 (disassemble_dwarf_expression): New function.
879 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
880 Add 'offset_size' argument.
881 (loclist_describe_location): Change output formatting.
882 * dwarf2expr.h (dwarf_stack_op_name): Declare.
884 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
886 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
889 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
891 * dwarf2read.c (read_subrange_type): Handle missing base type
892 according to Dwarf-2 specifications.
894 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
896 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
898 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
899 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
900 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
901 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
902 UNOP_CHMAX, UNOP_CHMIN.
903 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
904 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
905 UNOP_CHMIN>: Remove opcodes.
907 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
909 * dwarf2read.c (read_func_scope): Do not complain for
910 external function if bounds are not found.
912 2010-06-01 Pedro Alves <pedro@codesourcery.com>
914 * NEWS: Mention gdbserver fast tracepoints support.
916 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
918 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
920 (windows_set_console_info): New function.
921 (windows_create_inferior): Call windows_set_console_info
922 if NEW_CONSOLE is true.
923 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
924 (_initialize_loadable): Initialize GetConsoleFontSize and
925 GetCurrentConsoleFont.
927 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
929 * Makefile.in (RDYNAMIC): New.
930 (SFILES): Add proc-service.list.
931 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
932 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
933 * config/arm/linux.mh: Likewise.
934 * config/i386/linux.mh: Likewise.
935 * config/i386/linux64.mh: Likewise.
936 * config/ia64/linux.mh: Likewise.
937 * config/m32r/linux.mh: Likewise.
938 * config/m68k/linux.mh: Likewise.
939 * config/mips/linux.mh: Likewise.
940 * config/pa/linux.mh: Likewise.
941 * config/powerpc/linux.mh: Likewise.
942 * config/powerpc/ppc64-linux.mh: Likewise.
943 * config/s390/s390.mh: Likewise.
944 * config/sparc/linux.mh: Likewise.
945 * config/sparc/linux64.mh: Likewise.
946 * config/xtensa/linux.mh: Likewise.
947 * configure.ac: New RDYNAMIC on native host and GCC.
948 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
949 * configure: Regenerate.
950 * proc-service.list: New.
952 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
954 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
957 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
959 * linux-nat.c (linux_nat_wait_1): Do not call
960 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
961 TARGET_WAITKIND_SIGNALLED.
963 2010-05-27 Joel Brobecker <brobecker@adacore.com>
965 * ada-lang.c (ada_inferior_data): New struct.
966 (ada_inferior_data): New static global.
967 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
968 (ada_get_tsd_type): New functions.
969 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
970 to look the tsd type up.
971 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
972 event. Set ada_inferior_data.
974 2010-05-27 Pedro Alves <pedro@codesourcery.com>
976 * remote.c (unpack_varlen_hex): Remove forward declaration.
977 (remote_console_output): Make static, and add forward declaration.
978 * remote.h: Drop FIXME comment.
979 (unpack_varlen_hex): Declare.
980 (remote_console_output, remote_cisco_objfile_relocate)
981 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
983 * tracepoint.c: Include "remote.h".
984 (unpack_varlen_hex): Delete declaration.
986 2010-05-27 Tom Tromey <tromey@redhat.com>
988 * dwarf2loc.c (struct piece_closure) <refc>: New field.
989 (allocate_piece_closure): Initialize refc.
990 (copy_pieced_value_closure): Use refc.
991 (free_pieced_value_closure): Likewise.
993 2010-05-27 Tom Tromey <tromey@redhat.com>
995 * arm-tdep.c (push_stack_item): 'contents' now const.
996 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
997 value_contents_writeable. Introduce new temporary.
999 2010-05-27 Tom Tromey <tromey@redhat.com>
1001 * findcmd.c (parse_find_args): Use value_contents, not
1004 2010-05-27 Tom Tromey <tromey@redhat.com>
1006 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
1007 const. Use value_contents, not value_contents_writeable.
1009 2010-05-27 Joel Brobecker <brobecker@adacore.com>
1011 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
1012 by call to value_contents.
1014 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
1016 * MAINTAINERS: Add myself for write after approval privileges.
1018 2010-05-26 Doug Evans <dje@google.com>
1020 Allow python to find its files if moved from original location.
1021 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
1022 (GDB_AC_WITH_DIR): Call it.
1023 * configure.ac: Define WITH_PYTHON_PATH if we can find the
1024 python installation directory.
1025 * config.in: Regenerate.
1026 * configure: Regenerate.
1027 * defs.h (python_libdir): Declare.
1028 * main.c (python_libdir): Define.
1029 (captured_main): Initialize python_libdir.
1030 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
1031 call Py_SetProgramName to make sure python can find its libraries
1034 * configure.ac: Try to use python's distutils to fetch compilation
1036 * configure: Regenerate.
1037 * python/python-config.py: New file.
1039 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
1041 * ser-tcp.c (net_open): Check error return from socket() call by its
1042 equality to -1 not by it being negative.
1043 (net_close): Likewise.
1045 2010-05-26 Pedro Alves <pedro@codesourcery.com>
1047 * NEWS: Mention the `qRelocInsn' feature.
1048 * gdbarch.sh (relocate_instruction): New.
1049 * amd64-tdep.c (rip_relative_offset): New.
1050 (append_insns): New.
1051 (amd64_relocate_instruction): New.
1052 (amd64_init_abi): Install it.
1053 * i386-tdep.c (append_insns): New.
1054 (i386_relocate_instruction): New.
1055 (i386_gdbarch_init): Install it.
1056 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
1057 * gdbarch.h, gdbarch.c: Regenerate.
1059 2010-05-26 Tom Tromey <tromey@redhat.com>
1061 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
1062 (struct dwarf2_loclist_baton) <data>: Likewise.
1063 * dwarf2loc.c (find_location_expression): Constify return type.
1064 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
1065 (dwarf2_loc_desc_needs_frame): Likewise.
1066 (loclist_read_variable): Constify.
1067 (loclist_describe_location): Likewise.
1068 (loclist_tracepoint_var_ref): Likewise.
1070 2010-05-25 Tom Tromey <tromey@redhat.com>
1072 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
1073 (dwarf_expr_frame_base_1): Likewise.
1074 (read_pieced_value): Update.
1075 (needs_frame_frame_base): Constify.
1076 (dwarf2_tracepoint_var_loc): Likewise.
1077 (dwarf2_tracepoint_var_access): Likewise.
1078 (locexpr_describe_location_piece): Likewise.
1079 (locexpr_describe_location_1): Likewise.
1080 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
1083 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
1084 (dwarf_expr_eval, read_uleb128, read_sleb128)
1085 (dwarf2_read_address): Update.
1086 * dwarf2expr.c (dwarf_expr_eval): Constify.
1087 (read_uleb128): Likewise.
1088 (read_sleb128): Likewise.
1089 (dwarf2_read_address): Likewise.
1090 (require_composition): Likewise.
1091 (execute_stack_op): Likewise.
1092 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1094 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1096 (no_get_frame_base): Constify.
1097 (execute_stack_op): Likewise.
1098 (execute_cfa_program): Likewise.
1099 (read_encoded_value): Likewise.
1101 2010-05-25 Doug Evans <dje@google.com>
1103 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1105 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1106 * event-loop.c: ... here.
1107 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1108 `error' for clarity.
1109 (tui_getc): Pass correct value for `error' parameter to
1110 tui_readline_output.
1112 Add python gdb.GdbError and gdb.string_to_argv.
1113 * NEWS: Document them.
1114 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1115 the exception is gdb.GdbError. Print a second traceback if there's
1116 an error computing the error message.
1117 (gdbpy_string_to_argv): New function.
1118 * python/py-utils.c (gdbpy_obj_to_string): New function.
1119 (gdbpy_exception_to_string): New function.
1120 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1121 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1122 (gdbpy_gdberror_exc): Declare.
1123 * python/python.c (gdbpy_gdberror_exc): New global.
1124 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1126 (GdbMethods): Add string_to_argv.
1128 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1130 * windows-nat.c (display_selector): Call GetLastError to give better
1131 failure explanation.
1133 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1135 * config.in: Regenerate.
1137 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1140 * target.c (push_target): Return only void. Remove the return value
1142 * target.h (push_target): Return only void.
1144 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1146 Update gnulib from latest git.
1147 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1149 * gnulib/memcmp.c: Removed.
1150 * gnulib/memchr.valgrind: New.
1151 * gnulib/stddef.in.h: New.
1152 * gnulib/Makefile.am: Updated.
1153 * gnulib/memchr.c: Updated.
1154 * gnulib/memmem.c: Updated.
1155 * gnulib/stdint.in.h: Updated.
1156 * gnulib/str-two-way.h: Updated.
1157 * gnulib/string.in.h: Updated.
1158 * gnulib/wchar.in.h: Updated.
1160 * gnulib/extra/link-warning.h: Removed.
1161 * gnulib/extra/c++defs.h: New.
1162 * gnulib/extra/warn-on-use.h: New.
1163 * gnulib/extra/arg-nonnull.h: Updated.
1165 * gnulib/m4/extensions.m4: Updated.
1166 * gnulib/m4/gnulib-cache.m4: Updated.
1167 * gnulib/m4/gnulib-common.m4: Updated.
1168 * gnulib/m4/gnulib-comp.m4: Updated.
1169 * gnulib/m4/gnulib-tool.m4: Updated.
1170 * gnulib/m4/include_next.m4: Updated.
1171 * gnulib/m4/longlong.m4: Updated.
1172 * gnulib/m4/memchr.m4: Updated.
1173 * gnulib/m4/memmem.m4: Updated.
1174 * gnulib/m4/stdint.m4: Updated.
1175 * gnulib/m4/string_h.m4: Updated.
1176 * gnulib/m4/memcmp.m4: Removed.
1177 * gnulib/m4/onceonly_2_57.m4: Removed.
1178 * gnulib/m4/00gnulib.m4: New.
1179 * gnulib/m4/mmap-anon.m4: New.
1180 * gnulib/m4/multiarch.m4: New.
1181 * gnulib/m4/onceonly.m4: New.
1182 * gnulib/m4/stddef_h.m4: New.
1183 * gnulib/m4/warn-on-use.m4: New.
1184 * gnulib/m4/wchar.m4: Removed.
1185 * gnulib/m4/wchar_h.m4: New.
1186 * gnulib/m4/wchar_t.m4: New.
1187 * gnulib/m4/wint_t.m4: New.
1189 * aclocal.m4: Regenerate.
1190 * config.in: Likewise.
1191 * configure: Likewise.
1192 * gnulib/Makefile.in: Likewise.
1194 2010-05-21 Tom Tromey <tromey@redhat.com>
1196 * dwarf2loc.c (extract_bits_primitive): New function.
1197 (extract_bits): Likewise.
1198 (insert_bits): Likewise.
1199 (copy_bitwise): Likewise.
1200 (read_pieced_value): Do all operations in bits.
1201 (write_pieced_value): Likewise.
1202 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1203 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1204 Always use xrealloc to resize piece array.
1205 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1206 <DW_OP_piece>: Update.
1207 <DW_OP_bit_piece>: New case.
1209 2010-05-21 Tom Tromey <tromey@redhat.com>
1211 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1212 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1213 * dwarf2expr.h (enum dwarf_value_location)
1214 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1215 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1216 (add_piece): Handle empty piece.
1217 (execute_stack_op) <DW_OP_piece>: Handle
1218 DWARF_VALUE_OPTIMIZED_OUT.
1220 2010-05-21 Tom Tromey <tromey@redhat.com>
1222 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1223 evaluate_subexp, not evaluate_subexp_with_coercion.
1225 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1227 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1230 2010-05-21 Tom Tromey <tromey@redhat.com>
1232 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1234 (write_pieced_value): Likewise.
1236 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1238 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1239 and DW_TAG_volatile_type.
1240 (new_symbol): Likewise.
1242 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1244 * p-valprint.c (pascal_val_print): Call get_array_bounds
1245 to obtain the number of elements in an array.
1247 2010-05-19 Doug Evans <dje@google.com>
1249 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1251 * python.c (source_python_script): Add comment.
1252 (source_python_script_for_objfile): Remove unnecessary call to
1255 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1256 Sergio Durigan Junior <sergiodj@redhat.com>
1259 * parse.c (exp_iterate): Use operator_length wrapper function.
1261 2010-05-18 Michael Snyder <msnyder@vmware.com>
1263 * ada-lang.c: White space.
1264 * ada-typeprint.c: White space.
1265 * ada-valprint.c: White space.
1266 * addrmap.c: White space.
1267 * auxv.c: White space.
1268 * ax-gdb.c: White space.
1270 2010-05-18 Hui Zhu <teawater@gmail.com>
1272 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1274 (inferior_call_waitpid): Move make_cleanup out of check.
1275 Check the return of waitpid.
1276 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1278 2010-05-17 Michael Snyder <msnyder@vmware.com>
1280 * tui/tui.c: White space.
1281 * tui/tui-data.c: White space.
1282 * tui/tui-disasm.c: White space.
1283 * tui/tui-file.c: White space.
1284 * tui/tui-interp.c: White space.
1285 * tui/tui-main.c: White space.
1286 * tui/tui-out.c: White space.
1287 * tui/tui-regs.c: White space.
1288 * tui/tui-source.c: White space.
1289 * tui/tui-stack.c: White space.
1290 * tui/tui-win.c: White space.
1291 * tui/tui-winsource.c: White space.
1293 * procfs.c: White space.
1295 * python/py-auto-load.c: White space.
1296 * python/py-block.c: White space.
1297 * python/py-breakpoint.c: White space.
1298 * python/py-cmd.c: White space.
1299 * python/py-function.c: White space.
1300 * python/py-lazy-string.c: White space.
1301 * python/py-objfile.c: White space.
1302 * python/py-param.c: White space.
1303 * python/py-prettyprint.c: White space.
1304 * python/py-progspace.c: White space.
1305 * python/py-symtab.c: White space.
1306 * python/python.c: White space.
1307 * python/py-type.c: White space.
1308 * python/py-utils.c: White space.
1309 * python/py-value.c: White space.
1311 * mi/mi-cmd-break.c: White space.
1312 * mi/mi-cmd-env.c: White space.
1313 * mi/mi-cmds.c: White space.
1314 * mi/mi-cmd-stack.c: White space.
1315 * mi/mi-cmd-var.c: White space.
1316 * mi/mi-console.c: White space.
1317 * mi/mi-getopt.c: White space.
1318 * mi/mi-interp.c: White space.
1319 * mi/mi-main.c: White space.
1320 * mi/mi-out.c: White space.
1321 * mi/mi-parse.c: White space.
1323 * cli/cli-cmds.c: White space.
1324 * cli/cli-decode.c: White space.
1325 * cli/cli-dump.c: White space.
1326 * cli/cli-interp.c: White space.
1327 * cli/cli-logging.c: White space.
1328 * cli/cli-script.c: White space.
1329 * cli/cli-setshow.c: White space.
1331 * valarith.c: White space.
1332 * valops.c: White space.
1333 * valprint.c: White space.
1334 * value.c: White space.
1335 * varobj.c: White space.
1336 * xcoffread.c: White space.
1337 * xml-support.c: White space.
1338 * xml-tdesc.c: White space.
1340 2010-05-17 Andreas Schwab <schwab@redhat.com>
1343 * c-lang.c (c_printstr): Compute real length of NUL terminated
1346 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1348 * parse.c (parse_exp_in_context): When block is not NULL, use
1349 its associated language to parse the expression instead of
1350 the current_language.
1352 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1354 * jv-lang.c (java_lookup_class): Remove commented out code.
1355 (type_from_class): Likewise.
1356 (java_op_print_tab): Remove commented-out elements.
1358 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1360 * ada-lang.c (to_fixed_range_type): The the raw index type as
1361 argument instead of the raw type name. Remove orig_type parameter.
1362 Update calls throughout.
1363 (ada_fixup_array_indexes_type): New function.
1364 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1365 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1366 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1367 Remove name parameter.
1368 (print_array_type): Add call to ada_fixup_array_indexes_type.
1369 Update calls to print_range_type.
1370 (ada_print_type): Update calls to print_range_type.
1372 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1374 * dwarf2read.c (read_set_type): Set type length if
1375 DW_AT_byte_size attribute is present.
1377 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1379 * p-valprint.c (pascal_val_print): Handle set type if range limits
1380 are undefined but size is known.
1382 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1384 * procfs.c: Reformat.
1386 2010-05-16 Michael Snyder <msnyder@vmware.com>
1388 * target.c: White space.
1389 * target-descriptions.c: White space.
1390 * target-memory.c: White space.
1391 * thread.c: White space.
1392 * top.c: White space.
1393 * tracepoint.c: White space.
1394 * trad-frame.c: White space.
1395 * tramp-frame.c: White space.
1396 * ui-file.c: White space.
1397 * ui-out.c: White space.
1398 * user-regs.c: White space.
1399 * utils.c: White space.
1401 * scm-exp.c: White space.
1402 * scm-lang.c: White space.
1403 * scm-valprint.c: White space.
1404 * sentinel-frame.c: White space.
1405 * ser-base.c: White space.
1406 * ser-go32.c: White space.
1407 * serial.c: White space.
1408 * ser-mingw.c: White space.
1409 * ser-pipe.c: White space.
1410 * ser-tcp.c: White space.
1411 * ser-unix.c: White space.
1412 * solib.c: White space.
1413 * solib-darwin.c: White space.
1414 * solib-frv.c: White space.
1415 * solib-irix.c: White space.
1416 * solib-osf.c: White space.
1417 * solib-pa64.c: White space.
1418 * solib-som.c: White space.
1419 * solib-spu.c: White space.
1420 * solib-svr4.c: White space.
1421 * solib-target.c: White space.
1422 * source.c: White space.
1423 * stabsread.c: White space.
1424 * stack.c: White space.
1425 * std-regs.c: White space.
1426 * symfile.c: White space.
1427 * symmisc.c: White space.
1428 * symtab.c: White space.
1430 2010-05-16 Michael Snyder <msnyder@vmware.com>
1432 * source.c (_initialize_source): Add "rev" as an abbreviation
1433 for the "reverse-search" command.
1435 2010-05-16 Michael Snyder <msnyder@vmware.com>
1437 * record.c: White space.
1438 * regcache.c: White space.
1439 * reggroups.c: White space.
1440 * remote-fileio.c: White space.
1441 * remote-m32r-sdi.c: White space.
1442 * remote-mips.c: White space.
1443 * remote-sim.c: White space.
1444 * remote.c: White space.
1445 (process_g_packet): Remove orphan braces.
1447 2010-05-15 Michael Snyder <msnyder@vmware.com>
1449 * parse.c: White space.
1450 * p-lang.c: White space.
1451 * posix-hdep.c: White space.
1452 * printcmd.c: White space.
1453 * progspace.c: White space.
1454 * prologue-value.c: White space.
1455 * psymtab.c: White space.
1456 * p-typeprint.c: White space.
1457 * p-valprint.c: White space.
1459 * objc-lang.c: White space.
1460 * objfiles.c: White space.
1461 * observer.c: White space.
1462 * osabi.c: White space.
1463 * osdata.c: White space.
1465 * m2-lang.c: White space.
1466 * m2-valprint.c: White space.
1467 * macrocmd.c: White space.
1468 * macroexp.c: White space.
1469 * macroscope.c: White space.
1470 * macrotab.c: White space.
1471 * main.c: White space.
1472 * maint.c: White space.
1473 * mdebugread.c: White space.
1474 * memattr.c: White space.
1475 * minsyms.c: White space.
1476 * monitor.c: White space.
1478 2010-05-14 Michael Snyder <msnyder@vmware.com>
1480 * jv-lang.c: White space.
1481 * jv-typeprint.c: White space.
1482 * jv-valprint.c: White space.
1483 * language.c: White space.
1484 * libunwind-frame.c: White space.
1485 * linespec.c: White space.
1486 * linux-nat.c: White space.
1487 * linux-record.c: White space.
1488 * linux-thread-db.c: White space.
1490 * infcall.c: White space.
1491 * inf-child.c: White space.
1492 * infcmd.c: White space.
1493 * inferior.c: White space.
1494 * inf-loop.c: White space.
1495 * inflow.c: White space.
1496 * inline-frame.c: White space.
1497 * interps.c: White space.
1499 * gcore.c: White space.
1500 * gdb.c: White space.
1501 * gdbtypes.c: White space.
1502 * gnu-nat.c: White space.
1503 * gnu-v2-abi.c: White space.
1504 * gnu-v3-abi.c: White space.
1506 * findcmd.c: White space.
1507 * findvar.c: White space.
1508 * fork-child.c: White space.
1509 * frame-base.c: White space.
1510 * frame.c: White space.
1511 * frame-unwind.c: White space.
1512 * f-valprint.c: White space.
1514 * elfread.c: White space.
1515 * environ.c: White space.
1516 * eval.c: White space.
1517 * event-loop.c: White space.
1518 * event-top.c: White space.
1519 * exceptions.c: White space.
1520 * exec.c: White space.
1521 * expprint.c: White space.
1523 * dbxread.c: White space.
1524 * dcache.c: White space.
1525 * disasm.c: White space.
1526 * doublest.c: White space.
1527 * dsrec.c: White space.
1528 * dummy-frame.c: White space.
1529 * dwarf2expr.c: White space.
1530 * dwarf2-frame.c: White space.
1531 * dwarf2loc.c: White space.
1532 * dwarf2read.c: White space.
1534 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1538 * python/py-value.c (valpy_hash): New function.
1539 (value_object_type): Register valpy_hash.
1541 2010-05-14 Hui Zhu <teawater@gmail.com>
1542 Michael Snyder <msnyder@vmware.com>
1544 * linux-fork.c (gdbthread.h): New include.
1545 (fork_info): Add parent_ptid.
1546 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1548 (delete_checkpoint_command): Call inferior_call_waitpid.
1549 (checkpoint_command): Set parent_ptid.
1551 2010-05-13 Michael Snyder <msnyder@vmware.com>
1553 * dictionary.c: Re-indent to GNU coding standard.
1555 * charset.c: White space.
1556 * c-lang.c: White space.
1557 * cli-out.c: White space.
1558 * coffread.c: White space.
1559 * complaints.c: White space.
1560 * completer.c: White space.
1561 * corefile.c: White space.
1562 * corelow.c: White space.
1563 * cp-abi.c: White space.
1564 * cp-namespace.c: White space.
1565 * cp-support.c: White space.
1566 * cp-valprint.c: White space.
1567 * c-typeprint.c: White space.
1568 * c-valprint.c: White space.
1569 * blockframe.c: White space.
1570 * breakpoint.c: White space.
1571 * buildsym.c: White space.
1572 * blockframe.c: White space.
1573 * bcache.c: White space.
1574 * gdbarch.sh: White space, add blank lines.
1575 * arch-utils.c: Ditto.
1576 * gdbarch.c: Regenerate.
1577 * frame.c: White space, add blank lines.
1578 * stack.c: White space, add blank lines.
1579 (initialize_stack): Remove long-dead code.
1581 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1584 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1585 (locexpr_read_variable, loclist_read_variable): Update the callers.
1587 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1590 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1591 Remove check of NULL returned by tag_type_to_type.
1592 (die_containing_type): Remove variable type. Remove type_die variable
1593 initialization. Remove check of NULL returned by tag_type_to_type.
1595 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1598 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1599 names of unnamed structures or unions.
1601 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1603 * procfs.c (proc_watchpoint_address): New function.
1604 (procfs_stopped_by_watchpoint): Remove useless check after
1605 find_procinfo_or_die call.
1606 (procfs_stopped_data_address): New function.
1607 (procfs_use_watchpoints): Register new watchpoint related function.
1609 2010-05-11 Tom Tromey <tromey@redhat.com>
1611 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1613 2010-05-10 Michael Snyder <msnyder@vmware.com>
1615 * utils.c: White space cleanup.
1617 2010-05-10 Tom Tromey <tromey@redhat.com>
1619 * eval.c (ptrmath_type_p): Add 'lang' argument.
1620 (evaluate_subexp_standard): Update.
1621 (evaluate_subexp_with_coercion): Update.
1622 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1624 2010-05-10 Michael Snyder <msnyder@vmware.com>
1626 * utils.c (do_fclose_cleanup) Restore local variable.
1628 2010-05-09 Doug Evans <dje@google.com>
1630 * record.c (init_record_core_ops): Rename record_core to record-core.
1632 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1634 Implement task switching on pa-hpux.
1635 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1636 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1638 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1640 * valops.c (find_overload_match): Add missing i18n markup.
1642 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1644 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1646 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1648 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1649 list for the obconcat call.
1650 * mdebugread.c (parse_symbol): Likewise.
1651 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1653 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1654 New variable ap. Remove variables len and val.
1655 * symfile.h (obconcat): Likewise for the prototype.
1657 2010-05-07 Michael Snyder <msnyder@vmware.com>
1659 * python/python.c (execute_gdb_command): Remove unused variables.
1660 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1661 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1662 Remove unused variable.
1663 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1664 (cmdpy_completer): Remove unused variable.
1665 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1666 * python/py-function.c (fnpy_call): Remove unused variable.
1667 * python/py-objfile.c (objfile_to_objfile_object):
1668 Remove unused variable.
1669 * python/py-param.c (parmpy_init): Remove unused variable.
1670 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1671 Remove unused variable.
1672 (gdbpy_default_visualizer): Remove unused variable.
1673 * python/py-progspace.c (pspace_to_pspace_object):
1674 Remove unused variable.
1675 * python/py-symtab.c (symtab_and_line_to_sal_object):
1676 Remove unused variable.
1677 * python/py-type.c (typy_template_argument):
1678 Remove unused variable.
1679 * python/py-value.c (valpy_string): Remove unused variable.
1680 (convert_value_from_python): Remove unused variables.
1682 2010-05-07 Michael Snyder <msnyder@vmware.com>
1684 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1685 and use it to compute variable 't1'.
1687 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1689 * ada-lang.c (assign_aggregate): Remove unused variable.
1691 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1694 * valops.c (find_overload_match): Handle fsym == NULL case.
1695 Add int no_adl argument.
1696 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1698 Add int no_adl argument.
1699 (find_oload_champ_namespace): Add int no_adl argument.
1700 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1702 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1703 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1704 Evaluate arguments and use them to perform ADL lookup.
1705 Pass no_adl argument to find_overload_match.
1706 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1707 * cp-support.h: Added prototype for
1708 make_symbol_overload_list_namespace.
1709 * cp-support.c (make_symbol_overload_list_namespace): New function.
1710 (make_symbol_overload_list_adl_namespace): New function.
1711 (make_symbol_overload_list_adl): New function.
1712 (make_symbol_overload_list_using): Moved code to add function to
1713 overload set to make_symbol_overload_list_namespace.
1714 * c-exp.y: create UNKNOWN_CPP_NAME token.
1715 Add parse rule for ADL functions.
1716 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1718 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1720 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1723 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1725 Implement task switching on solaris targets.
1726 * sol-thread.c (thread_db_find_thread_from_tid)
1727 (sol_get_ada_task_ptid): New functions.
1728 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1730 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1732 * remote.c (remote_query_supported_append): Use reconcat.
1733 (remote_query_supported): Install a cleanup. Use reconcat.
1735 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1737 * gdbarch.sh (qsupported): Delete.
1738 * gdbarch.h, gdbarch.c: Regenerate.
1739 * remote.c (remote_query_supported): Remove use of
1742 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1744 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1747 2010-05-06 Michael Snyder <msnyder@vmware.com>
1749 * xml-support.c (xinclude_start_include): Delete unused variable.
1750 (xml_process_xincludes): Delete unused variable.
1751 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1752 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1753 (tdesc_find_arch_register): Delete unused variable.
1754 (tdesc_use_registers): Delete unused variable.
1755 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1756 * inferior.c (print_inferior): Delete unused variable.
1757 * record.c (record_open_1): Delete unused variable.
1758 (record_restore): Delete unused variable.
1759 (cmd_record_save): Delete unused variable.
1760 * gcore.c (derive_heap_segment): Delete unused variable.
1761 (objfile_find_memory_regions): Use unused variable.
1762 * jit.c (jit_inferior_init): Delete unused variable.
1763 * progspace.c (clone_program_space): Delete unused variable.
1764 (pspace_empty_p): Delete unused variable.
1766 * frame-unwind.c (frame_unwind_find_by_frame):
1767 Delete unused variable.
1768 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1769 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1770 (method_name_from_physname): Delete unused variable.
1771 (cp_func_name): Delete unused variable.
1772 (cp_validate_operator): Delete unused variable.
1773 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1774 Delete unused variable.
1775 * trad-frame.c (trad_frame_get_prev_register):
1776 Delete unused variable.
1777 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1779 * serial.c (serial_for_fd): Delete unused variable.
1780 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1781 * top.c (execute_command): Delete unused variable.
1782 (init_main): Delete unused variable.
1783 * utils.c (do_fclose_cleanup): Delete unused variable.
1784 (do_all_inferior_continuations): Delete unused variable.
1785 (initialize_utils): Delete unused variable.
1786 (internal_problem_mode): Delete unused global.
1787 * frame.c (get_prev_frame): Delete unused global.
1788 (get_frame_locals_address): Delete unused global.
1789 (get_frame_args_address): Delete unused global.
1791 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1792 (pascal_type_print_varspec_prefix): Delete unused variable.
1793 * f-typeprint.c (f_type_print_base): Delete unused variable.
1794 (f_type_print_varspec_suffix): Delete unused variable.
1795 * m2-typeprint.c (m2_print_type): Delete unused variable.
1796 (m2_long_set): Delete unused variable.
1797 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1798 * d-valprint.c (dynamic_array_type): Delete unused variable.
1799 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1800 Delete unused variable.
1801 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1802 * m2-valprint.c (m2_val_print): Delete unused variable.
1804 * ui-out.c (ui_out_field_int): Delete unused variable.
1805 (ui_out_field_fmt_int): Delete unused variable.
1806 * varobj.c (varobj_list_children): Delete unused variable.
1807 (varobj_set_value): Delete unused variable.
1808 (install_new_value_visualizer): Delete unused variable.
1809 (varobj_set_visualizer): Delete unused variable.
1810 (varobj_update): Delete unused variable.
1811 (varobj_editable_p): Delete unused variable.
1812 (c_value_of_root): Delete unused variable.
1813 (cplus_describe_child): Delete unused variable.
1815 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1816 (decode_constrained_packed_array_type): Delete unused variable.
1817 (add_defn_to_vec): Delete unused variable.
1818 (symbol_completion_match): Delete unused variable.
1819 (value_tag_from_contents_and_address): Delete unused variable.
1820 (ada_evaluate_subexp): Delete unused variable.
1821 * c-lang.c (classify_type): Delete unused variable.
1822 * f-lang.c (f_printstr): Delete unused variable.
1823 * objc-lang.c (objc_printstr): Delete unused variable.
1824 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1825 * jv-lang.c (type_from_class): ifdef unused variable.
1826 (java_class_name_from_physname): Delete unused variable.
1827 * m2-lang.c (m2_printstr): Delete unused variable.
1829 * objfiles.c (objfile_relocate): Delete unused variable.
1830 * maint.c (_initialize_maint_cmds): Delete unused variable.
1831 * demangle.c (_initialize_demangler): Delete unused variable.
1832 * corefile.c (reopen_exec_file): Delete unused variable.
1833 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1834 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1836 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1837 * memattr.c (mem_delete): Delete unused variable.
1838 (invalidate_target_mem_regions): Delete unused variable.
1839 * mem-break.c (default_memory_insert_breakpoint):
1840 Delete unused variable.
1841 * target.c (target_get_osdata): Delete unused variable.
1842 * parse.c (length_of_subexp): Delete unused variable.
1843 (prefixify_subexp): Delete unused variable.
1844 (exp_iterate): Delete unused variable.
1845 * reverse.c (delete_bookmark_command): Delete unused variable.
1847 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1848 * macroexp.c (gather_arguments): Delete unused variable.
1849 (substitute_args): Delete unused variable.
1850 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1851 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1852 (_initialize_gdbarch): Delete unused variable.
1853 * gdbarch.c, gdbarch.h: Regenerate.
1854 * arch-utils.c (initialize_current_architecture):
1855 Delete unused variable.
1856 (_initialize_gdbarch_utils): Delete unused variable.
1857 * gdbtypes.c (make_cv_type): Delete unused variable.
1858 (make_type_with_address_space): Delete unused variable.
1860 * linespec.c (decode_compound): Delete unused variable.
1861 * dictionary.c (iterator_next_hashed): Delete unused variable.
1862 * infcall.c (call_function_by_hand): Delete unused variable.
1863 * infcmd.c (step_1): Delete unused variable.
1864 (registers_info): Delete unused variable.
1865 (attach_command): Delete unused variable.
1866 * infrun.c (follow_exec): Delete unused variable.
1867 (handle_step_into_function_backwards): Delete unused variable.
1868 (_initialize_infrun): Delete unused variable.
1869 * stack.c (parse_frame_specification_1): Delete unused variable.
1870 (frame_info): Delete unused variable.
1871 (backtrace_command_1): Delete unused variable.
1872 (catch_info): Delete unused variable.
1874 * eval.c (evaluate_subexp_standard): Delete unused variable.
1875 * valops.c (value_cast_pointers): Delete unused variable.
1876 (value_dynamic_cast): Delete unused variable.
1877 (value_array): Delete unused variable.
1878 (find_overload_match): Delete unused variable.
1879 * valarith.c (value_subscript): Delete unused variable.
1880 (value_binop): Delete unused variable.
1881 * valprint.c (_initialize_valprint): Delete unused variable.
1882 * printcmd.c (print_command_1): Delete unused variable.
1883 (address_info): Delete unused variable.
1884 (printf_command): Delete unused variable.
1886 * auxv.c (target_auxv_search): Delete unused variable.
1887 * blockframe.c (get_frame_block): Delete unused variable.
1888 * regcache.c (regcache_cpy): Delete unused variable.
1889 (regcache_cpy_no_passthrough): Delete unused variable.
1890 * charset.c (wchar_iterate): Delete unused variable.
1891 (find_charset_names): Delete unused variable.
1892 (_initialize_charset): Delete unused variable.
1893 * disasm.c (do_mixed_source_and_assembly):
1894 Delete unused variable.
1895 * source.c (set_default_source_symtab_and_line):
1896 Delete unused variable.
1897 (set_substitute_path_command): Delete unused variable.
1898 * value.c (preserve_values): Delete unused variable.
1899 (value_from_double): Delete unused variable.
1901 2010-05-05 Michael Snyder <msnyder@vmware.com>
1903 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1904 (find_last_source_symtab_from_partial): Delete unused variable.
1905 * symfile.c (place_section): Delete unused variable.
1906 (default_symfile_offsets): Delete unused variable.
1907 (get_debug_link_info): Delete unused variable.
1908 (find_separate_debug_file_by_debuglink): Delete unused variable.
1909 (add_symbol_file_command): Delete unused variable.
1910 (symfile_find_segment_sections): Delete unused variable.
1911 * symmisc.c (free_symtab): Delete unused variable.
1912 (dump_symtab_1): Delete unused variable.
1913 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1914 (find_pc_sect_symtab): Delete unused variable.
1915 (skip_prologue_using_lineinfo): Delete unused variable.
1916 (sources_info): Delete unused variable.
1917 (completion_list_add_name): Delete unused variable.
1918 (expand_line_sal): Delete unused variable.
1920 * breakpoint.c (validate_commands_for_breakpoint):
1921 Delete unused variables.
1922 (insert_catchpoint): Delete unused variable.
1923 (update_watchpoint): Delete unused variable.
1924 (insert_bp_location): Delete unused variable.
1925 (insert_breakpoint_locations): Delete unused variable.
1926 (remove_breakpoint_1): Delete unused variable.
1927 (software_breakpoint_inserted_here_p): Delete unused variable.
1928 (watchpoints_triggered): Delete unused variable.
1929 (bpstat_check_watchpoint): Delete unused variable.
1930 (bpstat_stop_status): Delete unused variable.
1931 (print_one_breakpoint_location): Delete unused variable.
1932 (allocate_bp_location): Delete unused variable.
1933 (create_breakpoint): Delete unused variable.
1934 (watch_command_1): Delete unused variable.
1935 (catch_exception_command_1): Delete unused variable.
1936 (catch_ada_exception_command): Delete unused variable.
1937 (delete_breakpoint): Delete unused variable.
1938 (breakpoint_re_set_one): Delete unused variable.
1939 (do_enable_breakpoint): Delete unused variable.
1941 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1943 * amd64-tdep.c: Include disasm.h.
1944 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1945 (amd64_insn_length): Moved to disasm.c and renamed.
1946 (fixup_riprel): Adjust.
1947 * disasm.c (do_ui_file_delete): New.
1948 (gdb_insn_length): New.
1949 (gdb_buffered_insn_length_fprintf)
1950 (gdb_buffered_insn_length_init_dis)
1951 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1953 * disasm.h (gdb_insn_length): Declare.
1954 (gdb_buffered_insn_length): Declare.
1956 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1958 * remote.c (clear_threads_parsing_context): New.
1959 (remote_threads_info): Delete unused null_cleanup. Install a
1960 cleanup to clear the threads_parsing_context in case parsing
1963 2010-05-05 Michael Snyder <msnyder@vmware.com>
1965 * c-exp.y (parse_string_or_char): Delete unused variable.
1966 (c_lex): Delete unused variable.
1967 * cp-name-parser.y (cpname_lex): Delete unused variable.
1968 * ada-exp.y (find_primitive_type): Delete unused variable.
1969 (write_var_or_type): Delete unused variable.
1970 * jv-exp.y (java_parse): Delete unused variable.
1971 (push_expression_name): Delete unused variable.
1972 * p-exp.y (pascal_lex): Delete unused variable.
1974 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1976 * remote.c (remote_threads_info): Really revert previous previous
1979 2010-05-05 Michael Snyder <msnyder@vmware.com>
1981 * elfread.c (elf_symtab_read): Delete unused variable.
1982 (find_separate_debug_file_by_buildid): Delete unused variables.
1983 (elf_symfile_read): Delete unused variable.
1985 * coffread.c (coff_symfile_read): Delete unused variables.
1987 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1988 (read_pe_exported_syms): Delete unused variable.
1990 * stabsread.c (define_symbol): Delete unused variable.
1992 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1993 (process_psymtab_comp_unit): Delete unused variable.
1994 (dwarf2_build_psymtabs_hard): Delete unused variable.
1995 (load_partial_comp_unit): Delete unused variable.
1996 (create_all_comp_units): Delete unused variable.
1997 (scan_partial_symbols): Delete unused variable.
1998 (add_partial_symbol): Delete unused variable.
1999 (add_partial_namespace): Delete unused variable.
2000 (add_partial_enumeration): Delete unused variable.
2001 (load_full_comp_unit): Delete unused variable.
2002 (process_full_comp_unit): Delete unused variable.
2003 (read_file_scope): Delete unused variable.
2004 (read_type_unit_scope): Delete unused variable.
2005 (process_structure_scope): Delete unused variable.
2006 (process_enumeration_scope): Delete unused variable.
2007 (read_tag_ptr_to_member_type): Delete unused variable.
2008 (read_typedef): Delete unused variable.
2009 (read_partial_die): Delete unused variable.
2010 (decode_locdesc): Delete unused variable.
2011 (zeroed_partial_die): Delete unused global variable.
2013 * tui/tui-interp.c (_initialize_tui_interp):
2014 Delete unused variable.
2015 * tui/tui-regs.c tui_display_registers_from):
2016 Delete unused variable.
2017 (tui_check_register_values): Delete unused variable.
2018 (tui_register_format): Delete unused variable.
2019 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
2020 * tui/tui-windata.c (tui_display_data_from_line):
2021 Delete unused variables.
2022 (tui_vertical_data_scroll): Delete unused variables.
2024 2010-05-05 Michael Snyder <msnyder@vmware.com>
2026 * remote.c (remote_threads_info): Revert questionable part of
2027 the previous change.
2029 2010-05-05 Michael Snyder <msnyder@vmware.com>
2031 * mi/mi-out.c (mi_table_begin): Delete unused variable.
2032 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
2033 (mi_cmd_var_list_children): Delete unused variable.
2034 (varobj_update_one): Delete unused variable.
2035 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
2036 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
2037 Delete unused variable.
2038 (mi_cmd_stack_list_variables): Delete unused variable.
2039 (list_args_or_locals): Delete unused variable.
2040 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
2041 Delete unused variables.
2042 (mi_cmd_file_list_exec_source_files): Delete unused variable.
2043 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
2044 Delete unused variable.
2045 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
2046 (mi_cmd_interpreter_exec): Delete unused variable.
2047 (mi_on_normal_stop): Delete unused variable.
2048 * mi/mi-main.c (run_one_inferior): Delete unused variable.
2049 (print_one_inferior): Delete unused variables.
2050 (mi_execute_command): Delete unused variable.
2051 (mi_cmd_execute): Delete unused variable.
2052 (timestamp): Delete unused variable.
2054 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
2055 (restore_binary_file): Delete unused variable.
2056 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
2057 * cli/cli-script.c (define_command): Delete unused variables.
2058 (recurse_read_control_structure): Delete unused variable.
2059 (script_from_file): Delete unused variable.
2060 * cli/cli-cmds.c (complete_command): Delete unused variable.
2061 (disassemble_command): Delete unused variable.
2063 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
2064 * tracepoint.c (delete_trace_variable_command):
2065 Delete unused variables.
2066 (encode_actions_1): Delete unused variables.
2067 (start_tracing): Delete unused variable.
2068 (trace_status_mi): Delete unused variable.
2069 (tfind_1): Delete unused variable.
2070 (trace_find_pc_command): Delete unused variable.
2071 (trace_find_line_command): Delete unused variables.
2072 (trace_find_range_command): Delete unused variables.
2073 (trace_find_outside_command): Delete unused variables.
2074 (parse_tracepoint_definition): Delete unused variables.
2075 (tfile_fetch_registers): Delete unused variable.
2077 * dcache.c (dcache_init): Delete unused variable.
2078 (dcache_info): Delete unused variable.
2080 * remote.c (remote_threads_info): Delete unused variable.
2081 (process_stop_reply) :Delete unused variable.
2082 (remote_get_trace_status): Delete unused variables.
2084 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
2085 (thread_from_lwp): Delete unused variable.
2086 (enable_thread_event_reporting): Delete unused variable.
2087 (check_for_thread_db): Delete unused variables.
2088 (thread_db_find_new_threads_2): Delete unused variable.
2090 * linux-fork.c (info_checkpoints_command): Delete unused variables.
2091 (checkpoint_command): Delete unused variable.
2092 (linux_fork_context): Delete unused variables.
2094 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2095 (linux_tracefork_child): Delete unused variable.
2096 (linux_child_follow_fork): Delete unused variable.
2097 (linux_nat_detach): Delete unused variable.
2098 (linux_handle_extended_wait): Delete unused variable.
2099 (linux_nat_has_pending_sigint): Delete unused variable.
2100 (linux_nat_find_memory_regions): Delete unused variable.
2101 (linux_nat_make_corefile_notes): Delete unused variables.
2102 (linux_nat_info_proc_cmd): Delete unused variable.
2103 (linux_proc_pending_signals): Delete unused variable.
2104 (linux_nat_stop_lwp): Delete unused variables.
2105 (_initialize_linux_nat): Delete unused variable.
2107 * ser-pipe.c (pipe_ops): Delete unused global variable.
2109 * linux-record.c (record_linux_system_call):
2110 Delete unused variables.
2112 * corelow.c (core_xfer_partial): Delete unused variables.
2114 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2115 (svr4_solib_create_inferior_hook): Add ifdef around
2116 conditionally-used variable declarations.
2118 * solib.c (solib_find): Delete unused variable.
2119 (free_so_symbols): Delete unused variable.
2120 (info_sharedlibrary_command): Delete unused variable.
2121 (reload_shared_libraries_1): Delete unused variable.
2122 (_initialize_solib): Delete unused variable.
2124 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2125 (i386_collect_xstateregset): Delete unused variable.
2126 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2128 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2129 Delete unused variable 'type'.
2131 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2133 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2134 ada-lang.c: Remove comment mentioning these macros.
2135 * m2-exp.y: Delete commented out code.
2137 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2139 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2141 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2143 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2145 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2146 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2148 (cleanup_kernel_helper_return): Likewise.
2149 * arm-tdep.c (copy_unmodified): Likewise.
2150 (copy_preload): Likewise.
2151 (copy_copro_load_store): Likewise.
2152 (cleanup_branch): Likewise.
2153 (copy_b_bl_blx): Likewise.
2154 (copy_bx_blx_reg): Likewise.
2155 (copy_alu_imm): Likewise.
2156 (copy_alu_reg): Likewise.
2157 (copy_alu_shifted_reg): Likewise.
2158 (cleanup_load): Likewise.
2159 (cleanup_store): Likewise.
2160 (cleanup_block_load_pc): Likewise.
2161 (cleanup_svc): Likewise.
2162 (copy_undef): Likewise.
2163 (copy_unpred): Likewise.
2164 * remote.c (register_remote_support_xml): Likewise.
2166 2010-05-05 Hui Zhu <teawater@gmail.com>
2168 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2170 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2172 * remote.c (register_remote_support_xml)
2173 (remote_query_supported_append, remote_query_supported): Add cast
2174 to NULL used as sentinel.
2175 * tracepoint.c (tvariables_info_1): Likewise.
2176 * utils.c (add_internal_problem_command): Likewise.
2178 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2180 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2181 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2182 registers gracefully.
2184 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2186 * exec.c (print_section_info): Display entry point without arch
2189 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2192 * printcmd.c (x_command): Only dereference once implicitly for
2195 2010-05-03 Doug Evans <dje@google.com>
2197 * event-loop.c (gdb_timer): Delete unused global.
2198 (create_timer): Update.
2200 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2202 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2203 CURRENT->DECLARATION case.
2204 * cp-support.h (struct using_direct): Provide extended comment.
2206 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2208 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2209 HPPABSD_SIZEOF_GREGS.
2210 (HPPAOBSD_SIZEOF_FPREGS): New define.
2211 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2212 (hppaobsd_supply_fpregset): New function.
2213 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2214 (hppaobsd_fpregset): New variable.
2215 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2216 (_initialize_hppabsd_tdep): Remove spurious blank line.
2218 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2221 * p-valprint.c (pascal_value_print): Always dereference a value with
2222 type code TYPE_CODE_REF.
2224 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2226 * remote.c (remote_notice_signals): New.
2227 (remote_start_remote): In non-stop mode, update the remote end on
2228 which signals it can silently pass.
2229 (init_remote_ops): Install remote_notice_signals.
2231 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2233 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2234 * command.h (error_no_arg): ... here. Remove NORETURN, change
2235 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2236 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2237 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2238 (internal_verror, internal_error, nomem): Remove NORETURN, change
2239 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2240 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2241 (throw_vfatal, throw_error): Remove NORETURN.
2242 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2243 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2244 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2245 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2246 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2247 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2249 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2250 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2252 * target.c (tcomplain): Likewise.
2253 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2255 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2256 (internal_error, perror_with_name, nomem): Remove NORETURN.
2257 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2260 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2262 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2263 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2264 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2265 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2266 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2267 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2268 * complaints.h (complaint, internal_complaint): Likewise.
2269 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2270 (ATTR_FORMAT): Remove.
2271 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2272 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2273 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2274 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2275 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2276 (internal_error, internal_vwarning, internal_warning, warning)
2277 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2278 * disasm.c (fprintf_disasm): Likewise.
2279 * exceptions.c (throw_it): Likewise.
2280 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2281 (throw_error): Likewise.
2282 * language.h (type_error, range_error): Likewise.
2283 * linespec.c (cplusplus_error): Likewise.
2284 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2285 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2286 * monitor.c (monitor_debug): Likewise.
2287 * parser-defs.h (parser_fprintf): Likewise.
2288 * serial.h (serial_printf): Likewise.
2289 * tui/tui-hooks.c (tui_query_hook): Likewise.
2290 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2291 (uo_message): Likewise.
2292 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2293 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2295 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2297 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2299 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2300 (cli_table_header, cli_begin, cli_end, cli_field_int)
2301 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2302 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2303 Delete forward declarations.
2304 (cli_ui_out_impl): Move below the callbacks.
2305 (_initialize_cli_out): Delete.
2307 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2309 * README: Use consistent `GDB' and `GDBserver' spellings.
2311 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2313 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2315 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2317 * infrun.c (prepare_for_detach): In non-stop, context switch to
2318 the thread that got the event before handling the event.
2320 2010-04-30 Tom Tromey <tromey@redhat.com>
2322 * symtab.c (symbol_set_names): Fix typo.
2324 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2326 * python/py-param.c (parm_constants): Avoid ARI warning
2327 by adding ARI comment.
2328 (parmpy_init): Likewise.
2330 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2332 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2333 and created type for re-use.
2335 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2337 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2339 2010-04-29 Doug Evans <dje@google.com>
2341 * ser-base.h (reschedule): Delete prototype.
2342 * ser-base.c (reschedule): Make static.
2344 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2346 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2347 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2348 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2350 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2353 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2357 * regcache.c (registers_changed): Rename to ...
2358 (registers_changed_ptid): ... this, and only delete register cache
2359 entries matching the ptid filter argument.
2360 (registers_changed): Reimplement on top of registers_changed_ptid.
2361 * regcache.h (registers_changed_ptid): Declare.
2362 * target.c (target_resume): Flush register caches.
2364 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2365 Tom Tromey <tromey@redhat.com>
2366 Thiago Jung Bauermann <bauerman@br.ibm.com>
2368 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2369 (SUBDIR_PYTHON_SRCS): Likewise.
2370 (py-parameter.o): New rule.
2371 * python/py-parameter.c: New file.
2372 * python/python-internal.h (gdbpy_initialize_parameter)
2373 (gdbpy_parameter, gdbpy_parameter_value)
2374 (gdbpy_parse_command_name): Declare.
2375 * python/py-cmd.c (parse_command_name): Rename to
2376 gdbpy_parse_command_name.
2377 (gdbpy_parse_command_name): Accept a starting list parameter and
2379 (cmdpy_init): Use gdbpy_parse_command_name.
2380 * python/python.c (parameter_to_python): Rename to
2381 gdbpy_parameter_to_python. Accept enum var_types and value.
2382 (gdbpy_parameter): Use gdbpy_parameter_value.
2383 (_initialize_python): Call gdbpy_initialize_parameters.
2385 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2387 * MAINTAINERS: Add myself for write after approval privileges.
2389 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2392 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2393 (COMMON_OBS): Add d-lang.o d-valprint.o.
2394 (HFILES_NO_SRCDIR): Add d-lang.h.
2395 * NEWS: Mention D language support.
2396 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2397 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2398 * d-lang.c: New file.
2399 * d-lang.h: New file.
2400 * d-valprint.c: New file.
2401 * defs.h (enum language): Add language_d.
2402 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2403 * language.c (binop_result_type, integral_type, character_type)
2404 (string_type, boolean_type, structured_type): Add language_d.
2405 * symfile.c (init_filename_language_table): Add language_d.
2406 * symtab.c: Include d-lang.h.
2407 (symbol_init_language_specific, symbol_find_demangled_name)
2408 (symbol_natural_name, lookup_symbol_in_language)
2409 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2411 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2413 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2415 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2417 * symfile.c (init_filename_language_table): Register .dg files
2420 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2422 * gdbtypes.h (struct main_type): Expand comment about target_type
2425 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2426 Tristan Gingold <gingold@adacore.com>
2428 * symfile.c (reread_symbols): Also search for file in libraries.
2431 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2433 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2434 in terms of configuration.
2436 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2438 * objfiles.c: Include solist.h.
2439 (free_all_objfiles): New variable so. Check stale solist objfiles.
2440 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2441 and no_shared_libraries.
2443 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2446 * python/py-auto-load.c (source_section_scripts): Remove trailing
2447 new-line in i18n string.
2449 2010-04-26 Doug Evans <dje@google.com>
2451 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2453 2010-04-26 Tom Tromey <tromey@redhat.com>
2455 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2458 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2460 Removal of config/i386/nm-i386sol2.h native configuration file.
2461 * config/i386/nm-i386sol2.h: Remove file.
2462 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2463 * config/i386/sol2-64.mh: Idem.
2464 * config/djgpp/fnchange.lst: Remove reference to that file.
2465 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2467 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2469 PR breakpoints/11531.
2470 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2471 macro definition and related comment.
2472 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2473 (resume): Remove code and comment related to this macro.
2475 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2477 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2480 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2482 * defs.h: Adjust comment.
2483 * filesystem.h, filesystem.c: New files.
2484 * Makefile.in (SFILES): Add filesystem.c.
2485 (COMMON_OBS): Add filesystem.o.
2486 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2487 different target and host path flavours.
2488 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2489 has_dos_based_file_system on the gdbarch.
2490 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2491 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2492 * i386-tdep.c (i386_go32_init_abi): Ditto.
2493 * gdbarch.sh (has_dos_based_file_system): New.
2494 * gdbarch.h, gdbarch.c: Regenerate.
2495 * NEWS: Mention improved support for remote targets with DOS-based
2496 filesystems. Mention new `set/show target-file-system-kind'
2499 2010-04-23 Stan Shebs <stan@codesourcery.com>
2501 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2503 (struct agent_reqs): Remove.
2504 (ax_reg_mask): Declare.
2505 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2506 (free_agent_expr): Free reg_mask.
2507 (ax_print): Add scope and register mask info.
2508 (ax_reqs): Remove agent_reqs argument, use agent expression
2509 fields, and move part of register mask computation to...
2510 (ax_reg_mask): New function.
2511 * ax-gdb.c (gen_trace_static_fields): Call it.
2512 (gen_traced_pop): Ditto.
2513 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2514 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2515 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2516 (gen_eval_for_expr): Ditto, and require an rvalue.
2517 (agent_command): Call ax_reqs.
2518 (agent_eval_command): Ditto.
2519 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2520 (validate_action_line): Ditto.
2521 (collect_symbol): Ditto.
2522 (encode_actions_1): Ditto.
2524 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2525 Paul Pluzhnikov <ppluzhnikov@google.com>
2526 Jan Kratochvil <jan.kratochvil@redhat.com>
2528 Fix deadlock on looped list of loaded shared objects.
2529 * solib-svr4.c (LM_PREV): New function.
2530 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2531 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2532 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2533 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2535 2010-04-23 Doug Evans <dje@google.com>
2537 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2539 * configure: Regenerate.
2540 * main.c: #include "python/python.h".
2541 (captured_main): Defer loading auto-loaded scripts until after
2542 local_gdbinit has been sourced.
2543 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2544 (load_auto_scripts_for_objfile): New function.
2545 (auto_load_new_objfile): Call it.
2546 * python/python.h (gdbpy_global_auto_load): Declare.
2547 (load_auto_scripts_for_objfile): Declare.
2549 Add support for auto-loading scripts from .debug_gdb_scripts section.
2550 * NEWS: Add entry for .debug_gdb_scripts.
2551 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2552 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2553 (py-auto-load.o): New rule.
2554 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2555 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2556 * python/py-auto-load.c: New file.
2557 * python/python-internal.h: #include <stdio.h>.
2558 (set_python_list, show_python_list): Declare.
2559 (gdbpy_initialize_auto_load): Declare.
2560 (source_python_script_for_objfile): Declare.
2561 * python/python.c: Remove #include of observer.h.
2562 (gdbpy_auto_load): Moved to py-auto-load.c.
2563 (GDBPY_AUTO_FILENAME): Ditto.
2564 (gdbpy_new_objfile): Delete.
2565 (source_python_script_for_objfile): New function.
2566 (set_python_list, show_python_list): Make externally visible.
2567 (_initialize_python): Move "auto-load" command to py-auto-load.c
2568 and observer_attach_new_objfile to py-auto-load.c.
2570 2010-04-23 Jerome Guitton <guitton@adacore.com>
2572 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2573 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2574 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2576 (alpha_heuristic_analyze_probing_loop): New function.
2577 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2578 and handle cases when a stack probe loop is generated.
2579 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2580 (alpha_mdebug_max_frame_size_exceeded): New function.
2581 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2582 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2583 Return 0 when the maximum debuggable frame size has been exceeded.
2585 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2588 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2590 2010-04-20 Chris Moller <cmoller@redhat.com>
2594 * symtab.c (rbreak_command): Added code to include a filename
2595 specification in the rbreak argument.
2596 * NEWS: Added a brief description of filename-qualified rbreak.
2598 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2600 Fix crashes on dangling display expressions.
2601 * ada-lang.c (ada_operator_check): New function.
2602 (ada_exp_descriptor): Fill-in the field operator_check.
2603 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2604 * jv-lang.c (exp_descriptor_java): Likewise.
2605 * m2-lang.c (exp_descriptor_modula2): Likewise.
2606 * scm-lang.c (exp_descriptor_scm): Likewise.
2607 * parse.c (exp_descriptor_standard): Likewise.
2608 (operator_check_standard): New function.
2609 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2610 * parser-defs.h (struct exp_descriptor): New field operator_check.
2611 (operator_check_standard, exp_uses_objfile): New declarations.
2612 * printcmd.c: Remove the inclusion of solib.h.
2613 (display_uses_solib_p): Remove the function.
2614 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2615 and exp_uses_objfile instead of display_uses_solib_p.
2616 * solist.h (struct so_list) <objfile>: New comment.
2617 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2618 * symtab.h (lookup_objfile_from_block): New declaration.
2619 (struct general_symbol_info) <obj_section>: Extend the comment.
2621 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2622 Thiago Jung Bauermann <bauerman@br.ibm.com>
2624 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2625 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2626 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2627 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2628 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2629 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2630 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2631 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2632 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2633 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2634 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2635 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2636 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2637 Define, in case <ptrace.h> doesn't provide it.
2638 (booke_debug_info): New variable.
2639 (max_slots_number): Ditto.
2640 (hw_break_tuple): New struct.
2641 (thread_points): Ditto.
2642 (ppc_threads): New variable.
2643 (PPC_DEBUG_CURRENT_VERSION): New define.
2644 (have_ptrace_new_debug_booke): New function.
2645 (ppc_linux_check_watch_resources): Renamed to ...
2646 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2647 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2648 (booke_cmp_hw_point): New function.
2649 (booke_find_thread_points_by_tid): Ditto.
2650 (booke_insert_point): Ditto.
2651 (booke_remove_point): Ditto.
2652 (ppc_linux_insert_hw_breakpoint): Ditto.
2653 (ppc_linux_remove_hw_breakpoint): Ditto.
2654 (get_trigger_type): Ditto.
2655 (ppc_linux_insert_watchpoint): Handle BookE processors.
2656 (ppc_linux_remove_watchpoint): Ditto.
2657 (ppc_linux_new_thread): Ditto.
2658 (ppc_linux_thread_exit): New function..
2659 (ppc_linux_stopped_data_address): Handle BookE processors.
2660 (ppc_linux_watchpoint_addr_within_range): Ditto.
2661 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2662 to_remove_hw_breakpoint fields of the target operations struct.
2663 Add observe for the thread_exit event.
2665 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2667 * i386-linux-nat.c (regmap): Removed.
2668 (fetch_register): Replace regmap with
2669 i386_linux_gregset_reg_offset.
2670 (store_register): Likewise.
2671 (supply_gregset): Likewise.
2672 (fill_gregset): Likewise.
2674 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2677 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2679 2010-04-22 Chris Moller <cmoller@redhat.com>
2681 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2682 method of popping recursion-detection stack with a method based on
2683 obstack_object_size(). (Similar to the PR9167 patch below, but for
2684 the static array obstack rather than the static member obstack.)
2686 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2688 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2689 (_initialize_amd64_linux_nat): Replace
2690 amd64_linux_gregset64_reg_offset with
2691 amd64_linux_gregset_reg_offset.
2693 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2696 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2698 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2701 * stabsread.c (set_length_in_type_chain): New function.
2702 (read_struct_type): Call set_length_in_type_chain function.
2703 (read_enum_type): Idem.
2705 2010-04-21 Stan Shebs <stan@codesourcery.com>
2706 Nathan Sidwell <nathan@codesourcery.com>
2708 * tracepoint.c (trace_save): Open in binary mode.
2710 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2712 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2714 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2715 builtin_char32 fields.
2716 * printcmd.c (decode_format): Set char size to '\0'
2717 for strings unless explicit size is given.
2718 (print_formatted): Correct calculation of NEXT_ADDRESS
2719 for 16 or 32 bit strings.
2720 (do_examine): Do not force byte size for strings.
2721 Use builtin_char16 and builtin_char32 types to display
2722 16 or 32 bit-wide strings.
2723 (x_command): Set LAST_SIZE to 'b' for string type.
2725 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2728 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2731 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2732 there is no .reg-xstate section.
2733 (i386_linux_core_read_description): Check XCR0 first.
2735 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2737 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2740 2010-04-21 Chris Moller <cmoller@redhat.com>
2743 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2744 method of popping recursion-detection stack with a method based on
2745 obstack_object_size().
2747 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2750 * p-valprint.c (pascal_val_print): Fix default printing of integer
2753 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2755 Fix compilation warning on gcc-4.1.2.
2756 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2757 local variable`pc' to zero.
2759 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2761 Implement thread support with core files on alpha-tru64.
2762 * dec-thread.c (dec_thread_find_new_threads): New function,
2763 extracted from resync_thread_list.
2764 (resync_thread_list): Add OPS parameter. Replace extracted-out
2765 code by call to dec_thread_find_new_threads.
2766 (dec_thread_wait): Update call to resync_thread_list.
2767 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2769 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2771 * ada-lang.c (value_pointer): New function.
2772 (make_array_descriptor): Call value_pointer to convert addresses to
2775 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2777 * rs6000-aix-tdep.c: #include exceptions.h.
2778 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2779 while reading the memory at ADDR, then ADDR cannot be a function
2782 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2784 * ada-typeprint.c (ada_print_typedef): New function.
2785 * ada-lang.h (ada_print_typedef): Add declaration.
2786 * ada-lang.c (ada_language_defn): set la_print_typdef field
2787 to ada_print_typedef.
2789 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2791 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2793 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2795 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2796 (iterate_over_mappings): Adjust function profile. Add declaration.
2797 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2800 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2802 * procfs.c (solib_mappings_callback): Move function up to avoid
2805 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2807 * procfs.c (find_signalled_thread, find_stop_signal): Move
2808 these functions down to define them only when used.
2810 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2812 * valprint.c (common_val_print): Fix the value before extracting
2814 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2815 * ada-lang.h (ada_to_fixed_value): New function declaration.
2816 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2817 to avoid code duplication and fix a bug in the handling of
2818 fixed types contents.
2820 2010-04-20 Tom Tromey <tromey@redhat.com>
2822 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2823 (read_partial_die): Likewise.
2824 (dwarf_attr_name): Likewise.
2826 2010-04-20 Chris Moller <cmoller@redhat.com>
2830 * cp-valprint.c (global): Adding new static array recursion
2832 (cp_print_value_fields, cp_print_static_field): Added new static
2833 array recursion detection code.
2835 2010-04-20 Mark Kettenis <kettenis@gnu.org>
2837 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2838 general-purpose register set should be 68 instead of 144.
2839 (i386_linux_sse_regset_sections): Likewise.
2840 (i386_linux_avx_regset_sections): Likewise.
2842 2010-04-20 Stan Shebs <stan@codesourcery.com>
2843 Nathan Sidwell <nathan@codesourcery.com>
2845 * dwarf2loc.c (struct axs_var_loc): New struct.
2846 (dwarf2_tracepoint_var_loc): New function.
2847 (dwarf2_tracepoint_var_access): New function.
2848 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2850 (locexpr_describe_location_piece): New function.
2851 (locexpr_describe_location_1): New function.
2852 (locexpr_describe_location): Call it, update signature.
2853 (loclist_describe_location): Rewrite to loop over locations,
2855 * symtab.h (struct symbol_computed_ops): Add address to
2856 describe_location arguments, return void.
2857 * printcmd.c (address_info): Get context PC, pass to computed
2858 location description.
2859 * tracepoint.c (scope_info): Ditto.
2860 * ax-gdb.c (trace_kludge): Export.
2862 2010-04-20 Tom Tromey <tromey@redhat.com>
2864 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2865 (struct dwarf2_cie) <segment_size>: New field.
2866 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2867 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2869 (read_attribute_value): Handle DW_FORM_flag_present,
2870 DW_FORM_sec_offset, DW_FORM_exprloc.
2871 (dump_die_shallow): Likewise.
2872 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2873 (dwarf2_const_value): Handle DW_FORM_exprloc.
2874 (attr_form_is_block): Likewise.
2875 (struct line_header) <maximum_ops_per_instruction>: New field.
2876 (dwarf_decode_line_header): Set new field.
2877 (dwarf_decode_lines): Handle new field.
2879 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2881 * f-exp.y: Add new production to recognize the `logical*8' type.
2882 (LOGICAL_S8_KEYWORD): New token.
2883 * f-lang.c (enum f_primitive_types)
2884 <f_primitive_type_logical_s8>: New field.
2885 (f_language_arch_info): Handling `logical*8' type.
2886 (build_fortran_types): Building `logical*8' type.
2887 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2889 2010-04-19 Doug Evans <dje@google.com>
2891 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2892 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2893 (pipe_close): Ditto.
2895 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2897 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2899 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2901 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2902 type to void function.
2904 2010-04-19 Stan Shebs <stan@codesourcery.com>
2905 Vladimir Prus <vladimir@codesourcery.com>
2907 * tracepoint.c (tfind_1): Add missing newline, report exit from
2909 * target.c (update_current_target): Make default
2910 to_trace_find return -1.
2912 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2914 * objc-lang.c (find_methods): Move symname check up.
2916 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2918 * ada-lang.c (print_recreate_exception)
2919 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2920 not "catch unhandled".
2922 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2924 PR breakpoints/8554.
2926 Implement `save-breakpoints'.
2928 * breakpoint.c (save_cmdlist): New.
2929 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2931 (print_recreate_catch_fork): New.
2932 (catch_fork_breakpoint_ops): Install it.
2933 (print_recreate_catch_vfork): New.
2934 (catch_vfork_breakpoint_ops): Install it.
2935 (print_recreate_catch_syscall): New.
2936 (catch_syscall_breakpoint_ops): Install it.
2937 (print_recreate_catch_exec): New.
2938 (catch_exec_breakpoint_ops): Install it.
2939 (print_recreate_exception_catchpoint): New.
2940 (gnu_v3_exception_catchpoint_ops): Install it.
2941 (save_breakpoints): New, based on tracepoint_save_command, but
2942 handle all breakpoint types.
2943 (save_breakpoints_command): New.
2944 (tracepoint_save_command): Rename to...
2945 (save_tracepoints_command): ... this, and reimplement using
2947 (save_command): New.
2948 (_initialize_breakpoints): Install the "save" command prefix.
2949 Install the "save breakpoints" command. Make "save-tracepoints" a
2950 deprecated alias for "save tracepoints".
2951 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2952 * ada-lang.c (print_recreate_exception): New.
2953 (print_recreate_catch_exception): New.
2954 (catch_exception_breakpoint_ops): Install it.
2955 (print_recreate_catch_exception_unhandled): New.
2956 (catch_exception_unhandled_breakpoint_ops): Install it.
2957 (print_recreate_catch_assert): New.
2958 (catch_assert_breakpoint_ops): Install it.
2960 * NEWS: Mention the new `save breakpoints' command. Mention the
2961 new `save tracepoints' alias and that `save-tracepoints' is now
2964 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2968 * tui/tui-out.c: Include cli-out.h.
2969 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2970 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2971 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2972 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2974 (struct ui_out_data): Rename to...
2975 (struct tui_ui_out_data): ... this. Remove `stream' and
2976 `suppress_output' fields, and inherit cli_ui_out_data.
2977 (tui_out_data): New typedef.
2978 (tui_ui_out_impl): Don't initialize fields staticaly.
2979 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2980 (tui_begin, tui_end): Delete.
2981 (tui_field_int): Adjust to delegate most work to the base type.
2982 (tui_field_skip): Delete.
2983 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2984 delegate most work to the base type.
2985 (tui_spaces): Delete.
2986 (tui_text): Adjust to delegate most work to the base type.
2987 (tui_message): Delete.
2988 (tui_wrap_hint): Delete.
2989 (tui_flush): Delete.
2990 (out_field_fmt): Delete.
2991 (field_separator): Delete.
2992 (tui_out_new): Adjust to initialize the base type.
2993 (_initialize_tui_out): Initialize tui_ui_out_impl.
2994 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2996 (cli_out_data): Adjust.
2997 (cli_ui_out_impl): Make extern.
2998 (cli_table_header, cli_field_int, cli_field_skip): Use
2999 uo_field_string instead of cli_field_string.
3000 (cli_redirect): Adjust to use cli_out_data.
3001 (cli_out_data_ctor): New.
3002 (cli_out_new): Use it.
3003 * cli-out.h (struct ui_file): Remove forward declaration.
3004 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
3005 (cli_ui_out_impl): Declare.
3006 (cli_out_data_ctor): Declare.
3007 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
3008 (uo_field_string): No longer static.
3009 (ui_out_data): Change return type to void pointer.
3010 (ui_out_new): Change `data' parameter type to void pointer.
3011 * ui-out.h (struct ui_out_data): Don't forward declare.
3012 (ui_out_data): Change return type to void pointer.
3013 (ui_out_new): Change `data' parameter type to void pointer.
3014 (uo_field_string): Declare.
3016 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3018 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
3019 instead of always false.
3021 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
3024 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
3027 2010-04-17 Pedro Alves <pedro@codesourcery.com>
3029 * breakpoint.c (watchpoints_triggered): Use
3030 is_hardware_watchpoint.
3031 (watchpoints_triggered): Ditto.
3032 (bpstat_check_location): Use is_watchpoint and
3033 is_hardware_watchpoint.
3034 (bpstat_check_watchpoint): Use is_watchpoint and
3035 is_hardware_watchpoint.
3036 (bpstat_stop_status): Fix comment.
3037 (user_settable_breakpoint): Use is_watchpoint.
3038 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
3039 (disable_watchpoints_before_interactive_call_start): Use
3041 (enable_watchpoints_after_interactive_call_stop): Use
3043 (clear_command): Use is_watchpoint.
3044 (do_enable_breakpoint): Use is_watchpoint.
3046 2010-04-16 Mike Frysinger <vapier@gentoo.org>
3048 * solib-frv.c (enable_break1_done): Delete.
3049 (enable_break2): Do not check enable_break1_done. Move the
3050 enable_break2_done setting and call to
3051 remove_solib_event_breakpoints() to the end. Return without
3052 warning when the contents of _dl_debug_addr are 0.
3053 (enable_break): Do not set enable_break1_done.
3054 (frv_clear_solib): Likewise.
3056 2010-04-16 Kevin Buettner <kevinb@redhat.com>
3058 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
3059 instead of an error if no PLT entry is found. Return a
3060 potentially useful result.
3061 (m32c_m16c_pointer_to_address): Add code to search for function
3062 address when no .plt entry is found.
3064 2010-04-16 Stan Shebs <stan@codesourcery.com>
3066 * tracepoint.c (trace_variable_command): Run a cleanup.
3068 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3070 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
3072 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
3074 Support for Windows OS Thread Information Block.
3075 * NEWS: Document new feature.
3076 * remote.c (PACKET_qGetTIBAddr): New enum element.
3077 (remote_get_tib_address): New function.
3078 (init_remote_ops): Set to_get_tib_address field
3079 to remote_get_tib_address.
3080 (_initialize_remote): Add add_packet_config_cmd
3081 for PACKET_qGetTIBAddr.
3082 * target.c (update_current_target): Set default value for
3083 new to_get_tib_address field.
3084 * target.h (target_ops): New field to_get_tib_address.
3085 (target_get_tib_address): New macro.
3086 * windows-nat.c (thread_info): Add thread_local_base field.
3087 (windows_add_thread): Add tlb argument of type 'void *'.
3088 (fake_create_process): Adapt windows_add_thread call.
3089 (get_windows_debug_event): Idem.
3090 (windows_get_tib_address): New function.
3091 (init_windows_ops): Set to_get_tib_address field
3092 to remote_get_tib_address.
3093 (_initialize_windows_nat): Replace info_w32_cmdlist
3094 initialization by a call to init_w32_command_list.
3095 (info_w32_command, info_w32_cmdlist): Removed from here...
3096 to windows-tdep.c file.
3097 * windows-tdep.h (info_w32_cmdlist): Declare.
3098 (init_w32_command_list): New external function
3100 * windows-tdep.c: Add several headers.
3101 (info_w32_cmdlist): to here, made global.
3102 (thread_information_32): New struct.
3103 (thread_information_64): New struct.
3104 (TIB_NAME): New char array.
3105 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3106 (maint_display_all_tib): New static variable.
3107 (windows_get_tlb_type): New function.
3108 (tlb_value_read, tlb_value_write): New functions.
3109 (tlb_value_funcs): New static struct.
3110 (tlb_make_value): New function.
3111 (display_one_tib): New function.
3112 (display_tib): New function.
3113 (show_maint_show_all_tib):New function.
3114 (info_w32_command): Moved from windows-nat.c.
3115 (init_w32_command_list): New function.
3116 (_initialize_windows_tdep): New function.
3117 New "maint set/show show-all-tib" command
3118 New "$_tlb" internal variable.
3120 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3122 * tui/tui-regs.c (tui_display_register): Add comment about
3124 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3126 2010-04-15 Stan Shebs <stan@codesourcery.com>
3128 * frame.c: Include tracepoint.h.
3129 (get_current_frame): Allow a trace frame to be an alternate source
3130 of stack frame data.
3131 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3134 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3136 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3138 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3140 2010-04-15 Doug Evans <dje@google.com>
3142 * NEWS: Add entry for python program space support.
3143 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3144 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3145 (py-progspace.o): New rule.
3146 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3148 (find_pretty_printer_from_progspace): New function.
3149 (find_pretty_printer_from_gdb): New function.
3150 (find_pretty_printer): Rewrite.
3151 * python/py-progspace.c: New file.
3152 * python/python-internal.h (program_space): Add forward decl.
3153 (pspace_to_pspace_object, pspy_get_printers): Declare.
3154 (gdbpy_initialize_pspace): Declare.
3155 * python/python.c: #include "progspace.h".
3156 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3157 (_initialize_python): Call gdbpy_initialize_pspace.
3158 (GdbMethods): Add current_progspace, progspaces.
3160 Add -s option to source command.
3161 * NEWS: Document new option.
3162 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3163 Delete from_tty and cleanupp args. Split filep arg into file and
3164 full_pathp. New arg search_path.
3165 (source_script_from_stream): New function.
3166 (source_script_with_search): New function.
3167 (source_script): Rewrite.
3168 (source_command): Parse "-s" option.
3169 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3170 * python/python.c (source_python_script): Make file arg a const char *.
3171 Don't call fclose, leave for caller.
3172 * python/python.h (source_python_script): Update.
3174 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3175 Pedro Alves <pedro@codesourcery.com>
3177 Avoid rereading shared libraries that haven't changed.
3179 * solib.c (free_so_symbols): New function, from ...
3180 (free_so): ... here. Call it.
3181 (solib_read_symbols): Don't warn here if symbols have already been
3183 (solib_add): Warn here instead, if a pattern was specified.
3184 (reload_shared_libraries_1): New.
3185 (reload_shared_libraries): Rewrite to not fetch the library list.
3187 2010-04-14 Doug Evans <dje@google.com>
3189 * source.c (openp): Strip DOS drive letter if present before
3190 concatenating string to search path.
3192 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3194 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3195 * objfiles.c (gdb_bfd_close_or_warn): New.
3196 * corelow.c: Include objfiles.h
3197 (core_close): Use gdb_bfd_close_or_warn.
3198 * elfread.c (build_id_verify): Ditto.
3199 * exec.c (exec_close, exec_close_1): Ditto.
3201 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3202 Pedro Alves <pedro@codesourcery.com>
3204 Group errors for many missing shared libraries.
3206 * solist.h (struct so_list): Remove from_tty.
3207 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3208 (solib_map_sections): Take so_list argument. Return 0 if we
3209 failed to open a BFD. Add target sections here.
3210 (symbol_add_stub): Delete.
3211 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3212 not from_tty copied from the so_list. Don't warn a second time
3213 for a missing library.
3214 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3215 add to the section table here. Print out a single warning for all
3217 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3220 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3222 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3223 error/warning messages. Capitalize and use complete sentences.
3224 (blpy_block_syms_iternext): Likewise.
3225 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3226 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3227 (frame_info_to_frame_object, frapy_read_var)
3228 (gdbpy_frame_stop_reason_string): Likewise.
3229 * python/py-lazy-string.c (stpy_convert_to_value)
3230 (gdbpy_create_lazy_string_object): Likewise.
3231 * python/py-objfile.c (objfpy_set_printers): Likewise.
3232 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3233 * python/python.c (parameter_to_python): Likewise.
3234 * python/py-type.c (typy_range, typy_target): Likewise.
3235 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3236 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3239 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3243 * python/py-prettyprint.c (pretty_print_one_value): Test for
3245 (print_string_repr): Test for Py_None. Set flags accordingly.
3246 Return value depending on return type.
3247 (print_children): Take a value indicating whether data was printed
3248 before this function was called. Alter output accordingly.
3249 (apply_val_pretty_printer): Capture return value from
3250 print_string_repr and pass to print_children.
3252 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3255 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3256 register note sections.
3257 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3259 (i386_linux_init_abi): Install list of supported register note
3260 sections that matches the target description.
3262 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3264 * remote.c (remote_get_noisy_reply): Don't error out on empty
3266 (remote_start_remote): Update and merge tracepoints and trace
3267 state variables as long as the target supports tracepoints.
3268 (remote_trace_init): Fix prototype.
3269 (remote_download_trace_state_variable): Validate reply.
3270 (remote_trace_set_readonly_regions): Fix prototype.
3271 (remote_trace_start): Fix prototype. Check for empty reply.
3272 (remote_get_trace_status): Small cleanup.
3273 (remote_trace_stop): Fix prototype. Check for empty reply.
3274 (remote_trace_find): Check for empty reply.
3275 (remote_save_trace_data): Validate reply.
3276 (remote_set_disconnected_tracing): Check for empty reply, and
3278 (remote_set_circular_trace_buffer): Ditto.
3280 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3282 Suppress unused value warning during compilation.
3283 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3285 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3287 2010-04-12 Stan Shebs <stan@codesourcery.com>
3289 * tracepoint.c (tfile_xfer_partial): Check read result.
3291 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3293 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3294 * remote-sim.c (gdbsim_files_info): Likewise.
3296 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3298 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3299 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3301 (fetch_vfp_registers): New function to fetch VFP registers.
3302 (store_vfp_registers): New function to store VFP registers.
3303 (arm_linux_fetch_inferior_registers): Add support for VFP
3305 (arm_linux_store_inferior_registers): Likewise.
3306 (arm_linux_read_description): Likewise.
3307 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3310 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3312 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3314 (amd64_collect_xstateregset): Likewise.
3316 2010-04-09 Stan Shebs <stan@codesourcery.com>
3318 * tracepoint.c (trace_status_mi): Report frames created.
3320 * tracepoint.c (trace_dump_command): Include default-collect
3323 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3325 * symtab.c (find_function_start_sal): Never return SAL pointing
3326 before function start address, even if line info is missing.
3328 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3330 * NEWS: Mention tracepoints support.
3332 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3334 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3335 circular trace buffer statuses.
3337 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3339 * config/djgpp/fnchange.lst: Fix typo in translations for
3340 symbol-without-target_section.exp and symbol-without-target_section.c.
3342 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3344 * breakpoint.c (condition_command): Pass condition expression to
3345 set_breakpoint_condition stripped from breakpoint number.
3347 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3348 Thiago Jung Bauermann <bauerman@br.ibm.com>
3349 Tom Tromey <tromey@redhat.com>
3351 * breakpoint.c (condition_command): Simplify. Move condition
3353 (set_breakpoint_condition): ... here. New function.
3354 * breakpoint.h (set_breakpoint_condition): Declare.
3355 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3356 (SUBDIR_PYTHON_SRCS): Likewise.
3357 (py-breakpoint.o): New rule.
3358 * python/py-breakpoint.c: New file.
3359 * python/python-internal.h (gdbpy_breakpoints)
3360 (gdbpy_initialize_breakpoints): Declare.
3361 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3363 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3365 * regformats/regdat.sh: Include server.h. Don't include
3368 2010-04-08 Stan Shebs <stan@codesourcery.com>
3369 Pedro Alves <pedro@codesourcery.com>
3371 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3372 and circular_buffer.
3373 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3374 * tracepoint.c (trace_status_command): Display target's status for
3375 disconnected tracing and circular buffer.
3376 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3377 query for non-disconnected-tracing case, remove the stop_tracing
3379 (tfile_open): Clear disconnected and circular buffer status.
3380 (trace_save): Save disconnected and circular buffer status.
3381 (parse_trace_status): Parse disconnected and circular buffer status,
3382 also recognize disconnected as a stop reason.
3383 * remote.c (remote_set_disconnected_tracing): Only set
3384 QTDisconnected if the remote end supports disconnected tracing.
3385 Warn otherwise, if trying to enable disconnected tracing.
3386 * infcmd.c (detach_command): Update disconnect_tracing call.
3387 * cli/cli-cmds.c (quit_command): Ditto.
3389 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3391 * i387-tdep.c (i387_collect_xsave): Replace abort with
3394 2010-04-08 Stan Shebs <stan@codesourcery.com>
3396 * breakpoint.c (default_collect_info): New function.
3397 (breakpoints_info): Call it.
3398 (maintenance_info_breakpoints): Ditto.
3399 (tracepoints_info): Ditto.
3401 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3403 * i387-tdep.c (i387_collect_xsave): Re-indent.
3405 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3407 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3408 if HAVE_PTRACE_GETFPXREGS is defined.
3409 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3410 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3412 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3413 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3414 if .reg-xfp section doesn't exist.
3415 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3417 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3419 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3420 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3421 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3422 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3423 (i386_gdbarch_init): Update comments.
3424 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3426 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3428 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3430 * features/Makefile (i386/i386-mmx-expedite): New.
3431 (i386/i386-mmx-linux-expedite): Likewise.
3432 ($(outdir)/i386/i386-mmx.dat): Likewise.
3433 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3435 * features/i386/i386-mmx-linux.c: New.
3436 * features/i386/i386-mmx-linux.xml: Likewise.
3437 * features/i386/i386-mmx.c: Likewise.
3438 * features/i386/i386-mmx.xml: Likewise.
3439 * regformats/i386/i386-mmx-linux.dat: Likewise.
3440 * regformats/i386/i386-mmx.dat: Likewise.
3442 * features/Makefile (WHICH): Add i386/i386-mmx and
3443 i386/i386-mmx-linux.
3445 2010-04-08 Doug Evans <dje@google.com>
3447 * source.c (openp): Skip $cdir in PATH.
3449 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3452 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3454 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3455 address and a zero length.
3457 2010-04-08 Hui Zhu <teawater@gmail.com>
3459 * i386-tdep.c (i386_process_record): Add support for insn
3462 2010-04-07 Doug Evans <dje@google.com>
3464 * python/python.c (source_python_script): Use ensure_python_env
3465 to prepare environment for script.
3467 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3469 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3470 <sys/uio.h> and "i386-xstate.h".
3471 (PTRACE_GETREGSET): New.
3472 (PTRACE_SETREGSET): Likewise.
3473 (have_ptrace_getregset): Likewise.
3474 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3476 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3478 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3479 (amd64_linux_store_inferior_registers): Likewise.
3480 (amd64_linux_read_description): Check and enable AVX target
3483 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3484 and "features/i386/amd64-avx-linux.c".
3485 (amd64_linux_regset_sections): New.
3486 (amd64_linux_core_read_description): Check and enable AVX
3488 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3489 set_gdbarch_core_regset_sections.
3490 (_initialize_amd64_linux_tdep): Call
3491 initialize_tdesc_amd64_avx_linux.
3493 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3494 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3495 (tdesc_amd64_avx_linux): New.
3496 (amd64_linux_update_xstateregset): Likewise.
3498 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3499 (amd64_ymm_names): New.
3500 (amd64_ymmh_names): Likewise.
3501 (amd64_register_name): Likewise.
3502 (amd64_supply_xstateregset): Likewise.
3503 (amd64_collect_xstateregset): Likewise.
3504 (amd64_supply_xsave): Likewise.
3505 (amd64_collect_xsave): Likewise.
3506 (AMD64_NUM_REGS): Removed.
3507 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3508 %xmmN if AVX is available.
3509 (amd64_pseudo_register_name): Support pseudo YMM registers.
3510 (amd64_regset_from_core_section): Support .reg-xstate section.
3511 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3512 and ymm0h_regnum. Call set_gdbarch_register_name.
3513 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3515 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3516 AMD64_YMM15H_REGNUM.
3517 (AMD64_NUM_REGS): New.
3518 (amd64_supply_xsave): Likewise.
3519 (amd64_collect_xsave): Likewise.
3520 (amd64_register_name): Removed.
3521 (amd64_register_type): Likewise.
3523 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3525 * i387-tdep.c: Include "i386-xstate.h".
3526 (XSAVE_XSTATE_BV_ADDR): New.
3527 (xsave_avxh_offset): Likewise.
3528 (XSAVE_AVXH_ADDR): Likewise.
3529 (i387_supply_xsave): Likewise.
3530 (i387_collect_xsave): Likewise.
3532 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3533 (I387_YMM0H_REGNUM): Likewise.
3534 (I387_YMMENDH_REGNUM): Likewise.
3535 (i387_supply_xsave): Likewise.
3536 (i387_collect_xsave): Likewise.
3538 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3540 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3541 <sys/uio.h> and "i386-xstate.h".
3542 (PTRACE_GETREGSET): New.
3543 (PTRACE_SETREGSET): Likewise.
3544 (fetch_xstateregs): Likewise.
3545 (store_xstateregs): Likewise.
3546 (GETXSTATEREGS_SUPPLIES): Likewise.
3547 (regmap): Include 8 upper YMM registers.
3548 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3550 (i386_linux_store_inferior_registers): Likewise.
3551 (i386_linux_read_description): Check and enable AVX target
3554 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3555 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3556 (i386_linux_regset_sections): Add ".reg-xstate".
3557 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3558 (i386_linux_core_read_xcr0): New.
3559 (i386_linux_core_read_description): Check and enable AVX target
3561 (i386_linux_init_abi): Set xsave_xcr0_offset.
3562 (_initialize_i386_linux_tdep): Call
3563 initialize_tdesc_i386_avx_linux.
3565 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3566 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3567 (i386_linux_core_read_xcr0): New.
3568 (tdesc_i386_avx_linux): Likewise.
3569 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3571 * i386-tdep.c: Include "i386-xstate.h" and
3572 "features/i386/i386-avx.c".
3573 (i386_ymm_names): New.
3574 (i386_ymmh_names): Likewise.
3575 (i386_ymmh_regnum_p): Likewise.
3576 (i386_ymm_regnum_p): Likewise.
3577 (i386_xmm_regnum_p): Likewise.
3578 (i386_register_name): Likewise.
3579 (i386_ymm_type): Likewise.
3580 (i386_supply_xstateregset): Likewise.
3581 (i386_collect_xstateregset): Likewise.
3582 (i386_sse_regnum_p): Removed.
3583 (i386_pseudo_register_name): Support pseudo YMM registers.
3584 (i386_pseudo_register_type): Likewise.
3585 (i386_pseudo_register_read): Likewise.
3586 (i386_pseudo_register_write): Likewise.
3587 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3588 %xmmN if AVX is available.
3589 (i386_regset_from_core_section): Support .reg-xstate section.
3590 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3591 (i386_process_record): Replace i386_sse_regnum_p with
3593 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3594 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3595 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3596 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3597 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3598 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3600 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3602 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3603 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3605 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3606 (I386_AVX_NUM_REGS): New.
3607 (i386_xmm_regnum_p): Likewise.
3608 (i386_ymm_regnum_p): Likewise.
3609 (i386_ymmh_regnum_p): Likewise.
3611 * common/i386-xstate.h: New.
3613 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3615 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3617 * features/Makefile (WHICH): Add i386/i386-avx,
3618 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3619 (i386/i386-avx-expedite): New.
3620 (i386/i386-avx-linux-expedite): Likewise.
3621 (i386/x86-64-avx-expedite):Likewise.
3622 (i386/x86-64-avx-linux-expedite): Likewise.
3623 ($(outdir)/i386/i386-avx.dat): New dependency.
3624 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3625 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3626 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3628 * features/i386/32bit-avx.xml: New.
3629 * features/i386/64bit-avx.xml: Likewise.
3630 * features/i386/i386-avx-linux.c: Likewise.
3631 * features/i386/i386-avx-linux.xml: Likewise.
3632 * features/i386/i386-avx.c: Likewise.
3633 * features/i386/i386-avx.xml: Likewise.
3634 * features/i386/x86-64-avx-linux.c: Likewise.
3635 * features/i386/x86-64-avx-linux.xml: Likewise.
3636 * features/i386/x86-64-avx.c: Likewise.
3637 * features/i386/x86-64-avx.xml: Likewise.
3638 * regformats/i386/i386-avx-linux.dat: Likewise.
3639 * regformats/i386/i386-avx.dat: Likewise.
3640 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3641 * regformats/i386/x86-64-avx.dat: Likewise.
3643 2010-04-07 Doug Evans <dje@google.com>
3645 * top.c (source_file_name): Make const char *.
3646 * top.h (source_file_name): Update.
3647 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3649 (script_from_file): Change `file' arg to const char *.
3650 * cli/cli-script.h (script_from_file): Update.
3652 2010-04-06 Doug Evans <dje@google.com>
3654 * cli/cli-cmds.c (source_command): Run cleanups.
3656 2010-04-06 Stan Shebs <stan@codesourcery.com>
3658 * defs.h (char_ptr): Move typedef here from...
3659 * ada-lang.c (char_ptr): Remove.
3660 * charset.c (char_ptr): Remove.
3661 * tracepoint.h (struct uploaded_string): Remove.
3662 (struct uploaded_tp): Use vectors for string arrays.
3663 * tracepoint.c (trace_save): Use vectors of actions.
3664 (parse_tracepoint_definition): Ditto.
3665 (get_uploaded_tp): Clear vectors.
3666 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3667 (next_cmd): Change to an int.
3668 (read_next_cmd): Use vector of command strings.
3670 2010-04-06 Doug Evans <dje@google.com>
3672 * top.h (source_script, cd_command): Delete.
3673 * main.c: #include "cli/cli-cmds.h"
3675 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3677 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3678 type in bytes, not bits.
3680 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3682 * stabsread.c (define_symbol): Add support for char
3683 and string constants.
3685 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3687 Remove remaining "%ll" uses.
3688 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3690 * rs6000-nat.c (rs6000_ptrace64): Idem.
3691 * solib-pa64.c (pa64_current_sos): Idem.
3692 * solib-spu.c (spu_current_sos): Idem.
3693 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3695 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3697 * sh64-tdep.c (sh64_show_media_regs): Idem.
3699 2010-04-05 Stan Shebs <stan@codesourcery.com>
3701 * tracepoint.c: Include gdbcore.h.
3702 (tfile_xfer_partial): Return partial results, also try reading
3704 (tfile_has_all_memory): New function.
3705 (init_tfile_ops): Use it.
3707 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3710 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3711 the changes in data-directory.
3712 (init_sysinfo): Reload the syscall XML file if the data-directory
3715 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3718 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3720 2010-04-04 Stan Shebs <stan@codesourcery.com>
3721 Nathan Sidwell <nathan@codesourcery.com>
3723 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3724 breakpoints printed.
3725 (is_hardware_watchpoint): Make argument const.
3726 (is_watchpoint): Ditto.
3727 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3729 (breakpoints_info): Pass NULL to breakpoint_1.
3730 (maintenance_info_breakpoints): Ditto.
3731 (watchpoints_info): New function.
3732 (tracepoints_info): Use breakpoint_1 filter.
3733 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3734 (_initialize_breakpoint): Make "info watchpoints" its own command.
3735 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3736 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3738 2010-04-04 Stan Shebs <stan@codesourcery.com>
3740 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3742 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3744 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3745 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3747 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3749 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3750 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3752 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3754 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3757 2010-04-02 Hui Zhu <teawater@gmail.com>
3759 * i386-tdep.c (OT_DQUAD): New enum.
3760 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3761 SSE3, SSSE3 and SSE4.
3763 2010-04-02 Hui Zhu <teawater@gmail.com>
3765 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3768 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3770 * tracepoint.c (trace_dump_actions): New, factored out from
3771 trace_dump_command, and adjusted to recurse into while-stepping's
3773 (trace_dump_command): Use it.
3775 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3777 * breakpoint.h (struct counted_command_line): Moved definition to
3778 breakpoint.c, and forward declare.
3779 (breakpoint_commands): Declare.
3780 * breakpoint.c (struct counted_command_line): Moved here.
3781 (breakpoint_commands): New.
3782 * tracepoint.c (encode_actions): Use breakpoint_commands.
3783 * remote.c (remote_download_tracepoint): Ditto.
3785 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3787 * remote.c (remote_parse_stop_reply): Use hex_string instead
3788 of phex_nz for error.
3790 2010-04-01 Stan Shebs <stan@codesourcery.com>
3791 Nathan Sidwell <nathan@codesourcery.com>
3793 * tracepoint.h (enum actionline_type): Remove.
3794 (validate_actionline): Change return to void.
3795 * tracepoint.c (report_agent_reqs_errors): New function.
3796 (validate_actionline): Call it, change return to void, report errors
3798 (collect_symbol): Call report_agent_reqs_errors.
3799 (encode_actions_1): Ditto.
3800 (encode_actions): Don't expect a result from validate_actionline.
3802 2010-04-01 Stan Shebs <stan@codesourcery.com>
3804 * tracepoint.c (trace_start_command): Confirm if trace is running.
3805 (trace_stop_command): Error if trace not running.
3807 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3809 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3810 (AMD64_NUM_LOWER_BYTE_REGS): New.
3811 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3812 (amd64_pseudo_register_write): Likewise.
3813 (amd64_init_abi): Set num_byte_regs to 20.
3815 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3817 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3818 (prev_breakpoint_count): New.
3819 (set_breakpoint_count): Adjust.
3820 (rbreak_start_breakpoint_count): New.
3821 (start_rbreak_breakpoints): Adjust.
3822 (end_rbreak_breakpoints): Adjust.
3823 (struct commands_info) <arg>: New field.
3824 (do_map_commands_command): Tweak output to include breakpoint spec
3826 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3827 ARG was empty on entry. Set INFO's arg.
3828 (create_breakpoint): Adjust.
3830 * NEWS: Clarify `commands' changes.
3832 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3834 * tracepoint.c: Include stack.h.
3835 (struct add_local_symbols_data): New.
3836 (do_collect_symbol): New.
3837 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3838 iterate_over_block_local_vars.
3839 * stack.c (print_block_frame_locals): Rewrite as ...
3840 (iterate_over_block_locals): ... this. Take a callback function
3841 pointer and generic data pointer, and call that instead of
3842 print_variable_and_value.
3843 (struct print_variable_and_value_data): New.
3844 (do_print_variable_and_value): New.
3845 (iterate_over_block_local_vars): New, abstracted out from
3846 print_frame_local_vars.
3847 (print_frame_local_vars): Rewrite using
3848 iterate_over_block_local_vars.
3849 (iterate_over_block_arg_vars): New, abstracted out from
3850 print_frame_arg_vars.
3851 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3852 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3853 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3855 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
3857 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3858 instructions. Use the PC+4 if the base of the TBB or TBH is the
3861 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3863 Fix crash on reading wrong function declaration DWARF.
3864 * dwarf2read.c (read_subroutine_type): New variable void_type.
3865 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3866 more close to their use.
3868 2010-03-31 Stan Shebs <stan@codesourcery.com>
3870 * breakpoint.c (tracepoint_save_command): Include variables,
3871 conditionals, tracepoint types, and default-collect.
3872 * tracepoint.c (save_trace_state_variables): New function.
3873 * tracepoint.h (save_trace_state_variables): Declare it.
3875 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3877 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3879 2010-03-30 Keith Seitz <keiths@redhat.com>
3881 * c-typeprint.c (c_type_print_args): Don't print "void"
3882 for java, regardless of whether it is TYPE_PROTOTYPED.
3883 Use the passed-in language instead of current_language.
3884 (c_type_print_varspec_suffix): Use current_language instead
3885 of assuming language_c.
3886 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3887 any return type specifier from the physname.
3889 2010-03-30 Pedro Alves <pedro@codesourcery.com>
3891 * tui/tui-interp.c (tui_is_toplevel): New.
3893 (tui_allowed_p): New.
3894 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3896 * tui/tui.h (tui_allowed_p): Declare.
3898 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3900 * serial.h: Include winsock2.h before windows.h.
3902 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3904 * NEWS: Mention xmlRegisters= in qSupported packet.
3906 * i386-tdep.c: Include "remote.h".
3907 (_initialize_i386_tdep): Call register_remote_support_xml.
3909 * remote.c (remote_support_xml): New.
3910 (register_remote_support_xml): Likewise.
3911 (remote_query_supported_append): Likewise.
3912 (remote_query_supported): Support remote_support_xml.
3914 * remote.h (register_remote_support_xml): New.
3916 2010-03-29 Stan Shebs <stan@codesourcery.com>
3918 * tracepoint.c (trace_find_line_command): Remove dead code.
3920 * tracepoint.h (struct uploaded_string): New struct.
3921 (struct uploaded_tp): New fields for source strings.
3922 * breakpoint.c (this_utp, next_cmd): New globals.
3923 (read_uploaded_action): New function.
3924 (create_tracepoint_from_upload): Fill in more parts
3926 * tracepoint.c (encode_source_string): New function.
3927 (trace_save): Write out source strings, fix error checks.
3928 (parse_tracepoint_definition): Add source string parsing.
3929 * remote.c (PACKET_TracepointSource): New packet type.
3930 (remote_download_command_source): New function.
3931 (remote_download_tracepoint): Download source pieces also.
3932 (_initialize_remote): Add packet config command.
3934 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3937 * tracepoint.c (start_tracing): Check tracepoints before sending
3938 commands to target, don't start if all tracepoints disabled.
3940 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3942 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3944 2010-03-26 Stan Shebs <stan@codesourcery.com>
3946 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3948 2010-03-26 Tom Tromey <tromey@redhat.com>
3950 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3952 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3954 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3955 (skip_prologue_sal): Remove local definition.
3956 (resolve_sal_pc): Remove now unnecessary code.
3957 * linespec.c (minsym_found): Call skip_prologue_sal.
3958 * symtab.c (find_function_start_pc): Remove.
3959 (find_function_start_sal): Extract prologue skipping into ...
3960 (skip_prologue_sal): ... this new function. Handle code both
3961 with and without debug info. Respect SAL's explicit_pc and
3962 explicit_line flags. Inline old find_function_start_pc.
3963 * symtab.h (find_function_start_pc): Remove.
3964 (skip_prologue_sal): Add prototype.
3966 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3968 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3969 for DW_TAG_imported_module children.
3971 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3973 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3974 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3975 * completer.c (add_struct_fields): Fix inverted logic.
3977 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3979 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3981 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3983 * tracepoint.c (current_trace_status): Don't make sure error_desc
3985 (parse_trace_status): Release a previous error_desc string, and
3986 set it to NULL by default. If stop reason is tracepoint_error,
3987 make sure error_desc is not left NULL.
3989 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3991 * tracepoint.c (trace_save): Remove X from tracepoint error
3994 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3996 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3997 the terror description. Don't expect an X prefix.
3999 2010-03-25 Stan Shebs <stan@codesourcery.com>
4001 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
4002 (struct trace_status): New field error_desc.
4003 * tracepoint.c (stop_reason_names): Add terror.
4004 (current_trace_status): Ensure non-NULL error description.
4005 (trace_status_command): Add error report.
4006 (trace_status_mi): Ditto.
4007 (trace_save): Add special case for error description.
4008 (parse_trace_status): Add case for errors.
4010 2010-03-25 Keith Seitz <keiths@redhat.com>
4012 * dwarf2read.c (read_subroutine_type): If the compilation unit
4013 language is Java, mark any formal parameter named "this" as
4014 artificial (GCC/43521).
4015 (dwarf2_name): Add special handling for Java constructors.
4017 2010-03-25 Tom Tromey <tromey@redhat.com>
4019 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
4020 * infrun.c (handle_inferior_event): Change initialization of
4022 (handle_inferior_event): Change assignment to stop_stack_dummy.
4023 (normal_stop): Update use of stop_stack_dummy.
4024 (struct inferior_status) <stop_stack_dummy>: Change type.
4025 * inferior.h (stop_stack_dummy): Update.
4026 * infcmd.c (stop_stack_dummy): Change type.
4027 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
4029 (call_function_by_hand): Call set_std_terminate_breakpoint.
4030 Rewrite std::terminate handling.
4031 * breakpoint.h (enum bptype) <bp_std_terminate,
4032 bp_std_terminate_master>: New.
4033 (enum stop_stack_kind): New.
4034 (struct bpstat_what) <call_dummy>: Change type.
4035 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
4037 * breakpoint.c (create_std_terminate_master_breakpoint): New
4039 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
4040 Call create_std_terminate_master_breakpoint.
4041 (print_it_typical): Handle new breakpoint kinds.
4042 (bpstat_stop_status): Handle bp_std_terminate_master.
4043 (bpstat_what): Correctly set call_dummy field. Handle
4044 bp_std_terminate_master and bp_std_terminate.
4045 (print_one_breakpoint_location): Update.
4046 (allocate_bp_location): Update.
4047 (set_std_terminate_breakpoint): New function.
4048 (delete_std_terminate_breakpoint): Likewise.
4049 (create_thread_event_breakpoint): Update.
4050 (delete_command): Update.
4051 (breakpoint_re_set_one): Update.
4052 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
4054 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4056 * symfile.c (build_section_addr_info_from_bfd): New.
4057 (build_section_addr_info_from_objfile): Base it on
4058 build_section_addr_info_from_bfd.
4059 (addrs_section_compar, addrs_section_sort): New.
4060 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
4061 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
4062 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
4064 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
4066 * elfread.c (find_separate_debug_file_by_buildid):
4067 Remove unused local variable.
4069 2010-03-24 Tom Tromey <tromey@redhat.com>
4071 PR breakpoints/9352:
4072 * NEWS: Mention changes to `commands' and `rbreak'.
4073 * symtab.c (do_end_rbreak_breakpoints): New function.
4074 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
4075 end_rbreak_breakpoints.
4076 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
4077 (set_breakpoint_count): Likewise. Clear last_was_multi.
4078 (multi_start, multi_end, last_was_multi): New globals.
4079 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
4081 (struct commands_info): New
4082 (do_map_commands_command): New function.
4083 (commands_command_1): New function.
4084 (commands_command): Use it.
4085 (commands_from_control_command): Likewise.
4086 (do_delete_breakpoint): New function.
4087 (delete_command): Use it.
4088 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
4089 (do_map_disable_breakpoint): New function.
4090 (disable_command): Use it.
4091 (do_map_enable_breakpoint): New function.
4092 (enable_command): Use it.
4093 (enable_once_breakpoint): Add argument.
4094 (enable_once_command): Update.
4095 (enable_delete_breakpoint): Add argument.
4096 (enable_delete_command): Update.
4097 (break_command_really): Set last_was_multi when needed.
4098 (check_tracepoint_command): Fix formatting.
4099 (validate_commands_for_breakpoint): New function.
4100 (breakpoint_set_commands): Use it.
4101 (tracepoint_save_command): Update.
4102 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4105 2010-03-24 Tom Tromey <tromey@redhat.com>
4107 * breakpoint.h (struct counted_command_line): New struct.
4108 (struct breakpoint) <commands>: Change type.
4109 (struct bpstats) <commands>: Change type.
4110 <commands_left>: New field.
4111 * breakpoint.c (alloc_counted_command_line): New function.
4112 (incref_counted_command_line): Likewise.
4113 (decref_counted_command_line): Likewise.
4114 (do_cleanup_counted_command_line): Likewise.
4115 (make_cleanup_decref_counted_command_line): Likewise.
4116 (breakpoint_set_commands): Use decref_counted_command_line and
4117 alloc_counted_command_line.
4118 (commands_command): Don't error if breakpoint commands are
4120 (commands_from_control_command): Likewise.
4121 (bpstat_free): Update.
4122 (bpstat_copy): Likewise.
4123 (bpstat_clear_actions): Likewise.
4124 (bpstat_do_actions_1): Likewise.
4125 (bpstat_stop_status): Likewise.
4126 (print_one_breakpoint_location): Likewise.
4127 (delete_breakpoint): Likewise.
4128 (bpstat_alloc): Initialize new field.
4129 (tracepoint_save_command): Update.
4130 * tracepoint.c (encode_actions): Update.
4131 (trace_dump_command): Update.
4133 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4135 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4136 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4137 (read_structure_type): For RealView, set TYPE_STUB on structures with
4138 no byte size and no children.
4139 (read_subroutine_type): Mark functions as prototyped by default.
4140 * symtab.c (producer_is_realview): New function.
4141 * symtab.h (expand_line_sal): Fix declaration formatting.
4142 (producer_is_realview): Declare.
4144 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4146 * arm-tdep.c (skip_prologue_function): New function.
4147 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4148 (thumb_analyze_prologue): Document return value. Recognize more
4149 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4151 (arm_skip_prologue): Remove call dummy check. Check the prologue
4152 for non-GNU compilers.
4153 (arm_instruction_changes_pc): New function.
4154 (arm_analyze_prologue): New function, broken out from
4155 arm_scan_prologue. Recognize more ARM instructions and skippable
4156 calls. Update comments. Handle NULL cache. Return the address
4157 of the first unrecognized instruction. Do not skip past other
4158 instructions which change control flow. Add debug output.
4159 (arm_scan_prologue): Use arm_analyze_prologue.
4160 (ARM_PC_32): Delete.
4161 (shifted_reg_val): Simplify ARM_PC_32 check.
4163 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4165 * tracepoint.c (tvariables_info_1): Actually compute
4166 the number of rows in the result.
4168 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4170 * remote.c (crc32): Constify `buf' parameter.
4171 (remote_verify_memory): New, abstracted out from...
4172 (compare_sections_command): ... this. Remove hardcoded target
4174 (init_remote_ops): Install remote_verify_memory.
4175 * target.c (target_verify_memory): New.
4176 * target.h (struct target_ops) <to_verify_memory>: New field.
4177 (target_verify_memory): Declare.
4179 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4181 Implement -trace-save.
4183 * mi-cmds.h (mi_cmds_trace_save): Declare.
4184 * mi-cmds.c (mi_cmds): Register -trace-save.
4185 * mi/mi-main.c (mi_cmd_trace_save): New.
4186 * remote.c (remote_save_trace_data): Take const parameter.
4187 * target.h (struct target_ops::to_save_trace_data): Take
4189 * target.c (update_current_target): Adjust to the above.
4190 * tracepoint.c (trave_save): New, extracted from
4191 (trace_save_command): ...this.
4192 (tfile_trace_find): Remove message that is unnecessary now
4193 that 'tfind' reports found frame.
4194 * tracepoint.h (trace_save): Declare.
4196 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4198 Implement -trace-find.
4200 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4201 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4202 * mi/mi-main.c (mi_cmd_trace_find): New.
4203 * target.h (struct target_ops): Document to_trace_find.
4204 * tracepoint.h (tfind_1): Declare.
4205 * tracepoint.c (finish_tfind_command): Rename to...
4207 * remote.c (remote_trace_find): Return -1 if target say
4208 there's no frame. Improve error diagnostics.
4210 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4212 -trace-define-variable and -trace-list-variables.
4214 * tracepoint.c (create_trace_state_variable): Make
4215 private copy of name, as opposed to assuming the
4216 pointer lives forever.
4217 (tvariables_info_1): New.
4218 (tvariables_info): Use the above.
4219 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4221 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4222 and -trace-list-variables.
4223 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4224 (mi_cmd_trace_list_variables): New.
4225 * mi/mi-main.c (mi_cmd_trace_define_variable)
4226 (mi_cmd_trace_list_variables): New.
4228 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4230 Implement -break-passcount.
4232 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4233 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4234 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4236 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4238 -trace-start/-trace-end/-trace-status.
4240 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4242 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4243 (mi_cmd_trace_stop): Declare.
4244 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4245 (mi_cmd_trace_stop): New.
4246 * tracepoint.c (start_tracing): New, extracted from...
4247 (trace_start_command): ...this.
4248 (trace_status_mi): New.
4249 * tracepoint.h (struct trace_status): Document
4250 stopping_tracepoint.
4251 (start_tracing, stop_tracing, trace_status_mi): Declare.
4253 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4255 Implement creating tracepoints with -break-insert.
4257 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4258 to mean that tracepoint should be created.
4260 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4262 * breakpoint.c (check_no_tracepoint_commands): Use
4263 current spelling of 'teval'.
4265 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4267 Unify actions and commands
4269 * defs.h (read_command_lines, read_command_lines_1): New
4270 parameters validator and closure.
4271 * tracepoint.h (struct action_line): Remove.
4272 * breakpoint.h (struct breakpoint): Remove the 'actions'
4274 * defs.h (enum command_control_type): New value
4275 while_stepping_control.
4276 (struct command_line): Add comments.
4277 * breakpoint.c (breakoint_is_tracepoint): New.
4278 (breakpoint_set_commands): For tracepoints,
4279 verify the commands are permissible.
4280 (check_tracepoint_commands): New.
4281 (commands_command): Require that each new line is validated using
4282 check_tracepoint_command, if we set commands for a tracepoint.
4283 (create_tracepoint_from_upload): Likewise.
4284 (print_one_breakpoint_location): Remove the code to print
4285 actions specifically.
4286 (tracepoint_save_command): Relay to print_command_lines.
4287 * cli/cli-script.c (process_next_line): New parameters validator
4288 and closure. Handle 'while-stepping'. Call validator if not null.
4289 (read_command_lines, read_command_lines1): Likewise.
4290 (recurse_read_control_structure): New parameters validator and
4291 closure. Handle while_stepping_control.
4292 (print_command_lines): Handle while-stepping.
4293 (get_command_line, define_command, document_command): Adjust.
4294 * remote.c (remote_download_tracepoint): Adjust.
4295 * tracepoint.c (make_cleanup_free_actions, read_actions)
4296 (free_actions, do_free_actions_cleanup): Remove.
4297 (trace_actions_command): Use read_command_lines.
4298 (validate_actionline): Use error in one place.
4299 (encode_actions_1): New, extracted from...
4300 (encode_actions): ...this. Also use cleanups for exception
4302 (trace_dump_command): Adjust.
4303 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4306 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4308 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4310 2010-03-22 Stan Shebs <stan@codesourcery.com>
4312 * value.c (value_static_field): Be lazy about the field's value.
4314 2010-03-22 Reid Kleckner <reid@kleckner.net>
4317 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4319 (disable_breakpoints_in_shlibs): Likewise.
4321 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4323 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4324 GCC 4.1 debug info generation (GCC PR c++/28460).
4325 (determine_prefix): Likewise.
4327 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4329 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4331 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4333 2010-03-19 Stan Shebs <stan@codesourcery.com>
4335 * ax-gdb.c (gen_fetch): Handle bool.
4336 (gen_usual_unary): Ditto.
4338 (gen_equal): New function.
4339 (gen_less): New function.
4340 (gen_expr_binop_rest): Call them, also return integer type from
4344 2010-03-19 Tom Tromey <tromey@redhat.com>
4346 * jv-lang.c (jv_dynamics_objfile_data_key)
4347 (jv_type_objfile_data_key): New globals.
4348 (class_symtab): Move earlier.
4349 (jv_per_objfile_free): New function.
4350 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4352 Remove ancient #if 1.
4353 (add_class_symbol): Remove redundant declaration.
4354 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4355 (java_link_class_type): Mark as static. Update.
4356 (jv_clear_object_type): New function.
4357 (set_java_object_type): Likewise.
4358 (get_java_object_type): Use set_java_object_type.
4359 (is_object_type): Likewise.
4360 (_initialize_java_language): Register new objfile keys.
4361 (get_java_class_symtab): Add 'gdbarch' parameter.
4362 (add_class_symtab_symbol): Update.
4363 (type_from_class): Update.
4365 2010-03-19 Stan Shebs <stan@codesourcery.com>
4367 * ax-general.c (ax_const_l): Fix a sizing bug.
4369 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4373 2010-03-18 Stan Shebs <stan@codesourcery.com>
4374 Pedro Alves <pedro@codesourcery.com>
4376 * target.h (struct target_ops): New method
4377 to_set_circular_trace_buffer.
4378 (target_set_circular_trace_buffer): New macro.
4379 * target.c (update_current_target): Add
4380 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4382 * remote.c (remote_set_circular_trace_buffer): New function.
4383 (init_remote_ops): Add it to vector.
4384 * tracepoint.h (struct trace_status): New field traceframes_created,
4385 change buffer_size and buffer_free to int.
4386 * tracepoint.c (circular_trace_buffer): New global.
4387 (start_tracing): Send values of disconnected tracing and circular
4388 trace buffer settings.
4389 (set_circular_trace_buffer): New function.
4390 (parse_trace_state): Handle total space and frames created.
4391 (trace_status_command): Display total space and total frames
4393 (trace_save): Write out new status values.
4394 (parse_trace_status): Set traceframe_count, traceframes_created,
4395 buffer_free and buffer_size to -1 by default.
4396 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4397 * NEWS: Mention the circular trace buffer option.
4399 2010-03-18 Tom Tromey <tromey@redhat.com>
4401 * infcmd.c (finish_command_continuation): Wrap print_return_value
4404 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4406 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4407 DIE has a name before creating the associated partial symbol.
4408 (read_func_scope): Emit a complaint if the subprogram does not
4409 have a name or when we can't extract the subprogram PC bounds.
4411 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4413 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4414 instead of selected frame architecture.
4416 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4418 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4419 a valid selected thread, and that it is not running.
4420 (advance_command): Ditto.
4421 (finish_command): Ditto.
4423 2010-03-17 Stan Shebs <stan@codesourcery.com>
4425 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4427 * infcall.c: Include tracepoint.h.
4428 (call_function_by_hand): Disallow calls in tfind mode.
4429 * infcmd.c: Include tracepoint.h.
4430 (ensure_not_tfind_mode): New function.
4431 (continue_1): Call it.
4433 (jump_command): Ditto.
4434 (signal_command): Ditto.
4435 (advance_command): Ditto.
4436 (until_command): Ditto.
4437 (finish_command): Ditto.
4438 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4440 * ax-gdb.h (struct axs_value): New field optimized_out.
4441 (gen_trace_for_var): Add gdbarch argument.
4442 * ax-gdb.c (gen_trace_static_fields): New function.
4443 (gen_traced_pop): Call it, add gdbarch argument.
4444 (gen_trace_for_expr): Update call to it.
4445 (gen_trace_for_var): Ditto, and report optimized-out variables.
4446 (gen_struct_ref_recursive): Check for optimized-out value.
4447 (gen_struct_elt_for_reference): Ditto.
4448 (gen_static_field): Pass gdbarch instead of expression, assume
4449 optimization if field not found.
4450 (gen_var_ref): Set the optimized_out flag.
4451 (gen_expr): Error on optimized-out variable.
4452 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4453 expressions, skip optimized-out variables with computed locations.
4454 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4455 erroring out if location expression missing.
4456 (loclist_tracepoint_var_ref): Don't error out here.
4458 2010-03-17 Tom Tromey <tromey@redhat.com>
4460 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4461 DWARF data is available.
4463 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4465 * symfile.c (generic_load): Reset breakpoints after loading.
4467 2010-03-17 Tom Tromey <tromey@redhat.com>
4469 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4471 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4473 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4474 create_breakpoint call, adjust the parameters.
4476 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4477 Chandru <chandru@in.ibm.com>
4479 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4480 * valarith.c (value_subscripted_rvalue): Suppress error if
4481 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4483 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4485 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4487 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4489 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4490 before doing the associated thread switch.
4492 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4494 * MAINTAINERS: Update my email address.
4496 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4498 Simplify MI breakpoint setting.
4500 * breakpoint.c (break_command_really): Make nonstatic and
4502 (create_breakpoint): ...this. Rename prior function by this name
4504 (create_breakpoint_sal): ...this.
4505 (create_breakpoints): Rename to...
4506 (create_breakpoints_sal): ...this.
4507 (set_breakpoint): Remove.
4508 * breakpoint.h: Adjust to above changes.
4509 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4511 2010-03-15 Stan Shebs <stan@codesourcery.com>
4513 * ax-gdb.c: Include cp-support.h.
4514 (find_field): Remove.
4515 (gen_primitive_field): New function.
4516 (gen_struct_ref_recursive): New function.
4517 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4519 (gen_static_field): New function.
4520 (gen_struct_elt_for_reference): New.
4521 (gen_namespace_elt): New.
4522 (gen_maybe_namespace_elt): New.
4523 (gen_aggregate_elt_ref): New.
4524 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4526 2010-03-15 Tom Tromey <tromey@redhat.com>
4528 * dwarf2read.c (die_needs_namespace): Also return 0 for
4531 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4534 * cp-support.h: Added char *declaration element to using_direct
4536 (cp_add_using): Added char *declaration argument.
4537 (cp_add_using_directive): Ditto.
4538 (cp_lookup_symbol_imports): made extern.
4539 * cp-namespace.c: Updated with the above changes.
4540 * dwarf2read.c (read_import_statement): Ditto.
4541 (read_namespace): Ditto.
4542 (read_import_statement): Support import declarations.
4543 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4545 Added support for 'declaration_only' search.
4546 (cp_lookup_symbol_namespace): Attempt to search for the name as
4547 is before consideration of imports.
4548 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4549 search at every block level search.
4550 Now takes language argument.
4551 (lookup_symbol_aux): Updated.
4553 2010-03-15 Tom Tromey <tromey@redhat.com>
4555 * c-exp.y (name_not_typename): Add 'operator' clause.
4557 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4559 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4560 * configure: Regenerate.
4562 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4564 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4565 and ".sdynbss". Update the comment.
4567 2010-03-15 Jie Zhang <jie@codesourcery.com>
4569 * MAINTAINERS: Update my email address.
4571 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4573 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4575 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4577 * charset.c [USE_WIN32API]: Include <windows.h>.
4578 (_initialize_charset): Correct type of w32_host_default_charset.
4580 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4582 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4584 2010-03-12 Tom Tromey <tromey@redhat.com>
4587 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4588 in a lexical block does not need a namespace.
4589 (new_symbol) <DW_TAG_variable>: Put extern variables on
4590 list_in_scope in all cases.
4592 2010-03-12 Stan Shebs <stan@codesourcery.com>
4594 * ax-gdb.c (gen_expr): Add shift expressions.
4595 (gen_expr_binop_rest): Ditto.
4597 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4599 * buildsym.c (finish_block): Reset using_directives pointer
4600 after block initialization.
4602 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4604 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4605 * i386-tdep.c (i386_word_names): Likewise.
4607 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4609 * target.c (memory_xfer_partial): Don't use the stack cache if
4610 inspecting trace frames.
4611 * tracepoint.c (finish_tfind_command): Invalidate the target
4614 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4616 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4617 for the PIC displacement, print also the displacement value.
4618 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4620 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4622 * remote-mips.c (close_ports, mips_initialize_cleanups)
4623 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4624 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4625 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4626 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4627 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4628 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4629 comments describing each of these functions.
4630 (mips_enter_debug, mips_exit_debug, common_open)
4631 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4632 blank line after the comment describing the function.
4634 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4636 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4637 parameter displacementp. Update comment.
4638 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4639 element exists. Return if svr4_exec_displacement was not successful.
4642 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4643 Daniel Jacobowitz <dan@codesourcery.com>
4645 * solib-svr4.c (read_program_header): Support type == -1 to read
4646 all program headers.
4647 (read_program_headers_from_bfd): New function.
4648 (svr4_static_exec_displacement): Remove and move the comment ...
4649 (svr4_exec_displacement): ... here. Remove variable found. New
4650 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4651 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4652 targets using read_program_headers_from_bfd. Remove the call of
4653 svr4_static_exec_displacement.
4655 2010-03-10 Tom Tromey <tromey@redhat.com>
4657 * dwarf2read.c (struct pubnames_header): Remove.
4658 (_PUBNAMES_HEADER): Remove.
4659 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4660 (struct aranges_header): Remove.
4661 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4662 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4663 (PUBNAMES_SECTION): Remove.
4664 (ARANGES_SECTION): Remove.
4665 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4666 (dwarf2_build_psymtabs): Remove dead code.
4667 (dwarf2_build_psymtabs_easy): Remove.
4669 2010-03-10 Tom Tromey <tromey@redhat.com>
4671 * elfread.c (elf_symfile_read): Don't call
4672 dwarf2_build_frame_info.
4673 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4674 (struct dwarf2_per_objfile) <objfile>: New field.
4675 (dwarf2_has_info): Now idempotent. Set objfile field.
4676 (dwarf2_read_section): Check and set readin field. Call
4678 (dwarf2_build_psymtabs): Don't read all sections.
4679 (read_type_comp_unit_head): Read types section.
4680 (create_debug_types_hash_table): Likewise.
4681 (init_cu_die_reader): Add asserts.
4682 (process_type_comp_unit): Add assert.
4683 (dwarf2_build_psymtabs_hard): Read info section.
4684 (load_partial_comp_unit): Add assert.
4685 (create_all_comp_units): Read info section.
4686 (load_full_comp_unit): Likewise.
4687 (dwarf2_ranges_read): Read ranges section.
4688 (dwarf2_record_block_ranges): Add assert.
4689 (dwarf2_read_abbrevs): Read abbrev section.
4690 (read_indirect_string): Read str section.
4691 (dwarf_decode_line_header): Read line section.
4692 (read_signatured_type_at_offset): Read types section.
4693 (dwarf_decode_macros): Read macinfo section.
4694 (dwarf2_symbol_mark_computed): Read loc section.
4695 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4696 dwarf2_build_frame_info.
4697 (dwarf2_build_frame_info): Unconditionally set
4698 dwarf2_frame_objfile_data on the objfile.
4699 * configure.ac: Check for posix_madvise.
4700 * config.in, configure: Rebuild.
4702 2010-03-10 Tom Tromey <tromey@redhat.com>
4704 * xcoffread.c (xcoff_start_psymtab): Update.
4705 (xcoff_end_psymtab): Update.
4706 * psymtab.c (allocate_psymtab): Remove dead code.
4707 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4709 * mdebugread.c (parse_partial_symbols): Update.
4710 (new_psymtab): Likewise.
4711 * dwarf2read.c (process_psymtab_comp_unit): Update.
4712 (psymtab_to_symtab_1): Update.
4713 * dbxread.c (start_psymtab): Update.
4714 (end_psymtab): Likewise.
4716 2010-03-10 Tom Tromey <tromey@redhat.com>
4718 * xcoffread.c: Include psymtab.h.
4719 (xcoff_sym_fns): Update.
4720 * symtab.h (struct partial_symbol): Remove.
4721 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4722 (struct partial_symtab): Remove.
4723 (PSYMTAB_TO_SYMTAB): Remove.
4724 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4725 (find_pc_sect_psymtab): Remove.
4726 (find_pc_sect_symtab_via_partial): Declare.
4727 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4728 (find_main_psymtab): Remove.
4729 (find_main_filename): Declare.
4730 (fixup_psymbol_section): Remove.
4731 (fixup_section): Declare.
4732 * symtab.c: Include psymtab.h.
4733 (lookup_symtab): Use lookup_symtab method.
4734 (lookup_partial_symtab): Remove.
4735 (find_pc_sect_psymtab_closer): Remove.
4736 (find_pc_sect_psymtab): Remove.
4737 (find_pc_sect_symtab_via_partial): New function.
4738 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4739 (fixup_section): No longer static.
4740 (fixup_psymbol_section): Remove.
4741 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4742 (lookup_global_symbol_from_objfile): Likewise.
4743 (lookup_symbol_aux_psymtabs): Remove.
4744 (lookup_symbol_aux_quick): New function.
4745 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4746 (lookup_partial_symbol): Remove.
4747 (basic_lookup_transparent_type_quick): New function.
4748 (basic_lookup_transparent_type): Use it.
4749 (find_main_psymtab): Remove.
4750 (find_main_filename): New function.
4751 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4752 (find_line_symtab): Use expand_symtabs_with_filename method.
4753 (output_partial_symbol_filename): New function.
4754 (sources_info): Use map_partial_symbol_filenames.
4755 (struct search_symbols_data): New type.
4756 (search_symbols_file_matches): New function.
4757 (search_symbols_name_matches): Likewise.
4758 (search_symbols): Use expand_symtabs_matching method.
4759 (struct add_name_data): Rename from add_macro_name_data.
4760 (add_macro_name): Update.
4761 (add_partial_symbol_name): New function.
4762 (default_make_symbol_completion_list): Use
4763 map_partial_symbol_names.
4764 (struct add_partial_symbol_name): New type.
4765 (maybe_add_partial_symtab_filename): New function.
4766 (make_source_files_completion_list): Use
4767 map_partial_symbol_filenames.
4768 (expand_line_sal): Use expand_symtabs_with_filename method.
4769 * symmisc.c: Include psymtab.h.
4770 (print_objfile_statistics): Use print_stats method.
4771 (dump_objfile): Use dump method.
4772 (dump_psymtab, maintenance_print_psymbols)
4773 (maintenance_info_psymtabs, maintenance_check_symtabs)
4774 (extend_psymbol_list): Remove.
4775 * symfile.h (struct quick_symbol_functions): New struct.
4776 (struct sym_fns) <qf>: New field.
4777 (sort_pst_symbols): Remove.
4778 (increment_reading_symtab): Declare.
4779 * symfile.c: Include psymtab.h.
4780 (compare_psymbols, sort_pst_symbols): Remove.
4781 (psymtab_to_symtab): Remove.
4782 (increment_reading_symtab): New function.
4783 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4785 (set_initial_language): Use find_main_filename.
4786 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4787 (free_named_symtabs): Remove unused code.
4788 (start_psymtab_common, add_psymbol_to_bcache)
4789 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4791 * stack.c: Include psymtab.h, symfile.h.
4792 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4793 * source.h (psymtab_to_fullname): Don't declare.
4794 * source.c: Include psymtab.h.
4795 (select_source_symtab): Use find_last_source_symtab method.
4796 (forget_cached_source_info): Use forget_cached_source_info
4798 (find_and_open_source): No longer static.
4799 (psymtab_to_fullname): Remove.
4800 * somread.c: Include psymtab.h.
4801 (som_sym_fns): Update.
4802 * psympriv.h: New file.
4803 * psymtab.h: New file.
4804 * psymtab.c: New file.
4805 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4806 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4807 * objfiles.c: Include psymtab.h.
4808 (objfile_relocate1): Use relocate method.
4809 (objfile_has_partial_symbols): Use has_symbols method.
4810 * mipsread.c: Include psymtab.h.
4811 (ecoff_sym_fns): Update.
4812 * mi/mi-cmd-file.c: Include psymtab.h.
4813 (print_partial_file_name): New function.
4814 (mi_cmd_file_list_exec_source_files): Use
4815 map_partial_symbol_filenames.
4816 * mdebugread.c: Include psympriv.h.
4817 * machoread.c: Include psympriv.h.
4818 (macho_sym_fns): Update.
4819 * m2-exp.y (yylex): Use lookup_symtab.
4820 * elfread.c: Include psympriv.h.
4821 (elf_sym_fns): Update.
4822 * dwarf2read.c: Include psympriv.h.
4823 * dbxread.c: Include psympriv.h.
4824 (aout_sym_fns): Update.
4825 * cp-support.c: Include psymtab.h.
4826 (read_in_psymtabs): Remove.
4827 (make_symbol_overload_list_qualified): Use
4828 expand_symtabs_for_function method.
4829 * coffread.c: Include psympriv.h.
4830 (coff_sym_fns): Update.
4831 * blockframe.c: Include psymtab.h.
4832 (find_pc_partial_function): Use find_pc_sect_symtab method.
4833 * ada-lang.h (ada_update_initial_language): Update.
4834 * ada-lang.c: Include psymtab.h.
4835 (ada_update_initial_language): Remove 'main_pst' argument.
4836 (ada_lookup_partial_symbol): Remove.
4837 (struct ada_psym_data): New type.
4838 (ada_add_psyms): New function.
4839 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4840 (struct add_partial_datum): New type.
4841 (ada_add_partial_symbol_completions): New function.
4842 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4843 (ada_exception_support_info_sniffer): Update.
4844 * Makefile.in (SFILES): Add psymtab.c.
4845 (COMMON_OBS): Add psymtab.o.
4846 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4848 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4850 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4852 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4855 * cp-namespace.c (cp_add_using): Deleted.
4856 (cp_add_using_directive): Use obstack allocations.
4857 Merged the function cp_add_using into this one.
4858 Added 'struct obstack *' argument.
4859 (cp_scan_for_anonymous_namespaces): Updated.
4860 * cp-support.h: Updated.
4861 * dwarf2read.c (read_import_statement): Updated.
4862 (read_namespace): Updated.
4864 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4866 * windows-nat.c (cygwin_conv_path): Remove old macro.
4868 2010-03-10 Pedro Alves <pedro@codesourcery.com>
4870 * breakpoint.c (condition_command): Handle watchpoint conditions.
4871 (is_hardware_watchpoint): Add comment.
4872 (is_watchpoint): New.
4873 (update_watchpoint): Don't reparse the watchpoint's condition
4876 (watchpoint_check): Use it.
4877 (bpstat_check_watchpoint): Handle it.
4878 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4879 conditions in a frame where it makes sense.
4880 (watch_command_1): Store the innermost block of the condition
4882 (delete_breakpoint): Delete the watchpoint condition expression.
4883 * breakpoint.h (struct bp_location) <cond>: Update comment.
4884 (struct breakpoint): New field `cond_exp_valid_block'.
4886 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4888 Adjust handling of Ada DIEs after dwarf2_physname patch.
4889 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4891 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4892 Pierre Muller <muller@ics.u-strasbg.fr>
4894 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4895 from/to posix/win32.
4896 (windows_make_so): Use non-Cygwin 1.7 specific function.
4897 (windows_create_inferior): Make sure that cygallargs points to
4898 original args in non Cygwin 1.7. case.
4900 2010-03-09 Michael Snyder <msnyder@vmware.com>
4902 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4903 after target_read_memory to get host byte order.
4904 (i386_process_record): Ditto.
4906 2010-03-09 Keith Seitz <keiths@redhat.com>
4908 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4909 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4910 print out const or volatile qualifiers, too.
4911 (c_type_print_args): Add parameters show_artificial and language.
4912 Skip artificial parameters when requested.
4913 Use the appropriate language printer.
4914 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4915 parameters and pass language_c.
4916 * dwarf2read.c (die_list): New file global.
4917 (struct partial_die_info): Update comments for name field.
4918 (pdi_needs_namespace): Renamed to ...
4919 (die_needs_namespace): ... this. Rewrite.
4920 (dwarf2_linkage_name): Remove.
4921 (add_partial_symbol): Do not predicate the call to
4922 partial_die_full_name based on pdi_needs_namespace.
4923 Remove call to cp_check_possible_namespace_symbols and associated
4925 (guess_structure_name): Do not inspect child subprogram DIEs.
4926 (dwarf2_fullname): Update comments.
4927 Use die_needs_namespace to assist in computing the name.
4928 (read_func_scope): Use dwarf2_name to get the DIE's name.
4929 Use dwarf2_physname to get the "linkage name" of the DIE.
4930 (dwarf2_add_member_field): Use dwarf2_physname instead of
4931 dwarf2_linkage_name.
4932 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4933 (determine_class): Remove.
4934 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4936 (new_symbol): Unconditionally call dwarf2_name.
4937 Compute the "linkage name" using dwarf2_physname.
4938 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4939 When determining to scan for anonymous C++ namespaces, ignore
4941 (dwarf2_physname): New function.
4942 (dwarf2_full_name): Move content to new function and call
4944 (dwarf2_compute_name): "New" function.
4945 (_initialize_dwarf2_read): Initialize die_list.
4946 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4948 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4949 without a demangled name.
4950 Print out type information for non-virtual methods.
4951 * linespec.c (decode_line_1): Force ANY string using "::" (or
4952 "." for java) to use decode_compound, and clean up any stray quoting.
4953 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4954 (decode_compound): Stop consuming at an open parenthesis.
4955 Keep template parameters.
4956 Keep any overload information.
4957 Keep keywords like "const".
4958 Remove paren_pointer.
4959 Move is_quoted check from set_flags to here.
4960 Remove #if 0 code from 2000. Ten years is long enough.
4961 (find_method): Before comparing symbol names, canonicalize the string
4963 If a specific overload is requested, find it. Otherwise throw an error.
4964 (find_method_overload_end): New function.
4965 (set_flags): Remove.
4966 (decode_compound): Assume that parentheses are matched.
4968 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4970 * linespec.c (decode_line_1): Keep important keywords like
4971 "const" and "volatile".
4972 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4973 * typeprint.h (c_type_print_args): Add declaration.
4974 * ui-file.c (do_ui_file_obsavestring): New function.
4975 (ui_file_obsavestring): New function.
4976 * ui-file.h (ui_file_obsavestring): Add declaration.
4977 * valops.c (find_overload_match): Resolve the object to
4979 If the object is a data member, search the object for the member
4980 and return with staticp set.
4981 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4982 Do not attempt to extract a function name from non-function types.
4983 If the extracted function name and the original name are the same,
4984 we don't have a C++ method.
4986 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4987 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4989 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4990 and arguments from symbol lookups.
4991 * ax-gdb.c (gen_expr): Likewise.
4992 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4993 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4994 lookup_possible_namespace_symbol): Likewise.
4995 * cp-support.c (read_in_psymtabs): Likewise.
4996 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4997 * language.h (la_lookup_symbol_nonlocal): Likewise.
4998 * scm-valprint.c (scm_inferior_print): Likewise.
4999 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
5000 * solib-svr.c (elf_lookup_lib): Likewise.
5001 * solib.c (show_auto_solib_add): Likewise.
5002 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
5003 * symmisc.c (maintenance_check_symtabs): Likewise.
5004 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
5005 lookup_symbol_aux_local, lookup_symbol_aux_block,
5006 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
5007 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
5008 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
5009 basic_lookup_transparent_type, find_main_psymtab,
5010 lookup_block_symbol): Likewise.
5011 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
5012 lookup_symbol_global, lookup_symbol_aux_block,
5013 lookup_symbol_partial_symbol, lookup_block_symbol,
5014 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
5016 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
5018 * python/python-internal.h: Include symtab.h.
5020 2010-03-09 Joel Brobecker <brobecker@adacore.com>
5021 Pierre Muller <muller@ics.u-strasbg.fr>
5023 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
5024 * p-valprint.c (pascal_val_print): Remove undeed block and fix
5027 2010-03-08 Tom Tromey <tromey@redhat.com>
5029 * breakpoint.c (breakpoint_1): Add "QUIT".
5031 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
5032 Pedro Alves <pedro@codesourcery.com>
5034 * solib.c (solib_find): Replace extension if
5035 solib_symbols_extension is set in the target gdbarch.
5036 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5037 solib_symbols_extension to "sym".
5038 * gdbarch.sh (solib_symbols_extension): New variable.
5039 (pstring): New function.
5040 * gdbarch.h, gdbarch.c: Regenerate.
5042 2010-03-08 Tom Tromey <tromey@redhat.com>
5046 * utils.c: Include main.h.
5047 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
5048 (defaulted_query): Use default answer if `batch_flag'.
5049 * main.h (batch_flag): Declare.
5050 * main.c (batch_flag): New global.
5051 (captured_main): Remove 'batch'. Update.
5053 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5055 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
5058 * remote-mips.c (rockhopper_ops): New target_ops struct.
5059 (MON_ROCKHOPPER): New mips_monitor_type.
5060 (read_hex_value): New function.
5061 (mips_request): Send 8-byte values with a 'T' packet. Read the
5062 packet argument as a string and use read_hex_value to parse it.
5063 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
5064 (rockhopper_open): New function.
5065 (mips_wait): Read the PC, FP and SP fields as strings. Use
5066 read_hex_value to parse them and mips_set_register to commit them.
5067 (mips_set_register): New function.
5068 (mips_fetch_registers): Do not cast register value to "unsigned"
5069 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
5070 (mips_store_registers): Use a 'T' packet to set registers when
5071 using MON_ROCKHOPPER.
5072 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
5073 and expect the total to be printed before the entry address.
5074 (_initialize_remote_mips): Initialize and add rockhopper_ops.
5076 2010-03-08 Kevin Buettner <kevinb@redhat.com>
5078 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
5079 Change return value to int. Store value fetched in location
5080 addressed by `val'. Use function's return value as success
5081 or failure indicator. Adjust all callers.
5083 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
5085 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
5087 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5088 Hui Zhu <teawater@gmail.com>
5090 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
5091 tmp_to_stopped_data_address.
5092 (record_open): Reset tmp_to_stopped_by_watchpoint and
5093 tmp_to_stopped_data_address.
5094 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5095 to_stopped_data_address.
5097 2010-03-08 Hui Zhu <teawater@gmail.com>
5099 * i386-tdep.c (i386_process_record): Initialize regnum.
5101 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5103 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5104 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5106 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5108 Memory error when reading wrong core file.
5109 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5110 errors while reading the inferior memory, and return zero if
5111 an exception was raised.
5113 2010-03-07 Michael Snyder <msnyder@vmware.com>
5115 * record.c (record_restore): Rename tmpu8 to rectype.
5117 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5118 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5120 (i386_record_push): Rename local tmpulongest to addr.
5122 (i386_process_record): Rename local tmpulongest to addr.
5124 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5127 Rename local variable tmpu8 to opcode8 and regnum.
5129 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5131 * remote.c (remote_get_ada_task_ptid): New function.
5132 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5134 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5136 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5137 block. Define helper macros to reduce ifdefs in code.
5138 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5139 size. Call unadorned GetModuleFileNameEx rather than
5140 GetModuleFileNameEx*.
5141 (windows_make_so): Use __PMAX to denote maximum buffer size and
5142 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5144 (get_image_name): Use __PMAX to denote maximum buffer size.
5145 (handle_load_dll): Likewise.
5146 (windows_pid_to_exec_file): Likewise.
5147 (windows_create_inferior): Add many accommodations for older Cygwin and
5149 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5150 __USEWIDE conditional.
5151 (bad_GetModuleFileNameExA): Likewise.
5152 (_initialize_loadable): Just use real function names without the dyn_
5153 part since they are defined earlier.
5155 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5156 Tom Tromey <tromey@redhat.com>
5158 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5159 (parse_escape): Likewise.
5160 * python/py-utils.c (unicode_to_target_string): Update.
5161 (unicode_to_target_python_string): Update.
5162 (target_string_to_unicode): Update.
5163 * printcmd.c (printf_command): Update.
5164 * p-exp.y (yylex): Update.
5165 * objc-exp.y (yylex): Update.
5166 * mi/mi-parse.c: Include charset.h.
5167 (mi_parse_escape): New function.
5168 (mi_parse_argv): Use it.
5169 * jv-exp.y (yylex): Update.
5170 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5172 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5173 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5174 * gdbarch.c: Rebuild.
5175 * gdbarch.h: Rebuild.
5176 * defs.h (parse_escape): Update.
5177 * cli/cli-setshow.c: Include arch-utils.h.
5178 (do_setshow_command): Update.
5179 * cli/cli-cmds.c (echo_command): Update.
5180 * charset.h (target_charset, target_wide_charset): Update.
5181 * charset.c: Include arch-utils.h.
5182 (target_charset_name): Default to "auto".
5183 (target_wide_charset_name): Likewise.
5184 (show_target_charset_name): Handle "auto".
5185 (show_target_wide_charset_name): Likewise.
5186 (be_le_arch): New global.
5187 (set_be_le_names): Add 'gdbarch' argument.
5188 (validate): Likewise. Don't call set_be_le_names.
5189 (set_charset_sfunc, set_host_charset_sfunc)
5190 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5192 (target_charset): Add 'gdbarch' argument.
5193 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5194 (auto_target_charset_name): New global.
5195 (default_auto_charset, default_auto_wide_charset): New functions.
5196 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5197 for target charsets. Copy result of nl_langinfo. Use GetACP if
5199 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5200 remove 'byte_order' argument. Update.
5201 (classify_type): Likewise.
5202 (c_emit_char): Update.
5203 (c_printchar): Update.
5204 (c_printstr): Update.
5205 (c_get_string): Update.
5206 (evaluate_subexp_c): Update.
5207 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5209 * python/python.c (gdbpy_target_charset): New function.
5210 (gdbpy_target_wide_charset): Likewise.
5211 (GdbMethods): Update.
5214 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5216 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5217 off high address bits.
5219 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5221 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5222 address as UnsignedLongLong, not LongLong.
5224 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5225 Pedro Alves <pedro@codesourcery.com>
5227 * remote-mips.c (gdbthread.h): Include.
5228 (remote_mips_ptid): Declare.
5229 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5230 (common_open): Set inferior_ptid, add it as an inferior, and
5231 as a thread too. Delete FIXME comment regarding start_remote().
5232 (mips_close): Invoke generic_mourn_inferior().
5233 (mips_kill): Make sure that target_mourn_inferior is invoked.
5234 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5235 it's now invoked from mips_close().
5236 (mips_load): Don't null out inferior_ptid. Don't call
5237 clear_symtab_users().
5238 (mips_thread_alive, mips_pid_to_str): New functions.
5239 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5240 to_thread_alive and to_pid_to_str operations.
5242 2010-03-04 Tom Tromey <tromey@redhat.com>
5244 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5245 in DWARF 3 and later.
5246 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5248 2010-03-04 Keith Seitz <keiths@redhat.com>
5250 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5251 If the filename portion of the linespec was quoted, recheck the
5252 remainder for additional quoting.
5253 (locate_first_half): Skip over completer chars, too.
5255 2010-03-04 Tom Tromey <tromey@redhat.com>
5257 * printcmd.c (printf_command): Pass dummy argument to
5260 2010-03-04 Doug Evans <dje@google.com>
5262 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5265 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5267 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5269 * breakpoint.c (update_watchpoint): Create a sentinel location if
5270 the software watchpoint isn't watching any memory.
5271 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5273 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5275 * utils.c (fputs_maybe_filtered): Check if there's already a top
5276 level interpreter before dereferencing it. If there isn't one,
5277 don't paginate either.
5279 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5281 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5282 the state right when single stepping.
5283 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5284 Get the next PC along with the instruction state.
5285 (thumb_get_next_pc): Remove.
5286 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5288 2010-03-04 Hui Zhu <teawater@gmail.com>
5290 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5292 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5294 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5295 top level interpreter is MI.
5297 2010-03-03 Stan Shebs <stan@codesourcery.com>
5299 * remote.c (remote_download_tracepoint): Iterate over locations.
5300 * tracepoint.c (validate_actionline): Ditto.
5301 (encode_actions): Add location argument.
5302 (trace_dump_command): Check all locations to see if stepping
5305 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5306 Eli Zaretskii <eliz@gnu.org>
5308 * NEWS: Add X86 general purpose registers section.
5310 2010-03-03 Tom Tromey <tromey@redhat.com>
5313 * varobj.c (install_new_value): Handle case where new print_value
5316 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5319 * printcmd.c (printf_command): Print end of format string using
5322 2010-03-02 Tom Tromey <tromey@redhat.com>
5324 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5325 * defs.h (read_command_lines_1): Add missing 'void'.
5326 * cli/cli-script.c (recurse_read_control_structure): Add missing
5328 (read_next_line): Likewise.
5329 (read_command_lines_1): Likewise.
5331 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5333 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5334 store backchain as part of prologue.
5336 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5338 * progspace.c (update_address_spaces): Update inferior address spaces
5341 2010-03-02 Doug Evans <dje@google.com>
5343 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5344 lowpc,highpc args to addrmap_set_empty.
5346 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5348 * amd64-tdep.c (amd64_byte_names): New.
5349 (amd64_word_names): Likewise.
5350 (amd64_dword_names): Likewise.
5351 (amd64_pseudo_register_name): Likewise.
5352 (amd64_pseudo_register_read): Likewise.
5353 (amd64_pseudo_register_write): Likewise.
5354 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5355 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5356 set_gdbarch_pseudo_register_write and
5357 set_tdesc_pseudo_register_name. Don't call
5358 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5360 * i386-tdep.c (i386_num_mmx_regs): Removed.
5361 (i386_num_pseudo_regs): Likewise.
5362 (i386_byte_names): New.
5363 (i386_word_names): Likewise.
5364 (i386_byte_regnum_p): Likewise.
5365 (i386_word_regnum_p): Likewise.
5366 (i386_mmx_regnum_p): Updated.
5367 (i386_pseudo_register_name): Make it global. Handle byte and
5368 word pseudo-registers.
5369 (i386_pseudo_register_read): Likewise.
5370 (i386_pseudo_register_write): Likewise.
5371 (i386_pseudo_register_type): Handle byte, word and dword
5373 (i386_register_reggroup_p): Don't include pseudo
5374 registers, except for MXX, in any register groups. Don't
5375 include pseudo byte, word, dword registers in general_reggroup.
5376 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5377 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5378 pseudo-registers after word pseudo-registers. Call
5379 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5381 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5382 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5384 (i386_byte_regnum_p): New.
5385 (i386_word_regnum_p): Likewise.
5386 (i386_dword_regnum_p): Likewise.
5387 (i386_pseudo_register_name): Likewise.
5388 (i386_pseudo_register_read): Likewise.
5389 (i386_pseudo_register_write): Likewise.
5391 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5393 * target-descriptions.c (tdesc_type): Remove
5394 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5395 (tdesc_predefined_types): Likewise.
5396 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5397 if flag name is empty.
5398 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5400 * features/i386/32bit-core.xml: Define i386_eflags.
5401 * features/i386/64bit-core.xml: Likewise.
5403 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5404 * features/i386/64bit-sse.xml: Likewise.
5406 * features/i386/amd64-linux.c: Regenerated.
5407 * features/i386/amd64.c: Likewise.
5408 * features/i386/i386-linux.c: Likewise.
5409 * features/i386/i386.c: Likewise.
5411 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5413 * gdbtypes.c (append_composite_type_field_raw): New.
5414 (append_composite_type_field_aligned): Use the new function.
5415 * gdbtypes.h (append_composite_type_field_raw): Declare.
5416 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5417 (struct tdesc_type_flag): New type.
5418 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5419 kind. Add size to u.u. Add u.f for flags.
5420 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5421 (tdesc_free_type): Likewise.
5422 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5423 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5424 (tdesc_add_bitfield, tdesc_add_flag): New.
5425 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5426 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5427 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5428 current_type. Add current_type_size and current_type_is_flags.
5429 (tdesc_start_union): Clear the new fields.
5430 (tdesc_start_struct, tdesc_start_flags): New.
5431 (tdesc_start_field): Handle struct fields, including bitfields.
5432 (field_attributes): Make type optional. Add start and end.
5433 (union_children): Rename to struct_union_children.
5434 (union_attributes): Rename to struct_union_attributes. Add optional
5436 (flags_attributes): New.
5437 (feature_children): Add struct and flags.
5438 * features/gdb-target.dtd: Add flags and struct to features.
5439 Make field type optional. Add field start and end.
5441 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5443 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5444 (amd64_linux_read_description): Likewise.
5445 (_initialize_amd64_linux_nat): Set to_read_description to
5446 amd64_linux_read_description.
5448 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5449 (amd64_linux_register_name): Removed.
5450 (amd64_linux_register_type): Likewise.
5451 (amd64_linux_core_read_description): New.
5452 (amd64_linux_init_abi): Set target description to
5453 tdesc_amd64_linux if needed. Support orig_rax in target
5454 description. Don't call set_gdbarch_register_name nor
5455 set_gdbarch_register_type. Call
5456 set_gdbarch_core_read_description.
5457 (_initialize_amd64_linux_tdep): Call
5458 initialize_tdesc_amd64_linux.
5460 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5462 * amd64-tdep.c: Include "features/i386/amd64.c".
5463 (amd64_register_names): Removed.
5464 (amd64_register_name): Likewise.
5465 (amd64_register_type): Likewise.
5466 (amd64_init_abi): Set num_core_regs and register_names. Set
5467 target description to tdesc_amd64 if needed. Don't call
5468 set_gdbarch_register_name nor set_gdbarch_register_type.
5469 (_initialize_amd64_tdep): New.
5471 * i386-linux-nat.c (i386_linux_read_description): New.
5472 (_initialize_i386_linux_nat): Set to_read_description to
5473 i386_linux_read_description.
5475 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5476 (i386_linux_register_name): Removed.
5477 (i386_linux_core_read_description): New.
5478 (i386_linux_read_description): Likewise.
5479 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5480 Set target description to tdesc_i386_linux if needed. Support
5481 orig_eax. Set register_reggroup_p. Call
5482 set_gdbarch_core_read_description.
5483 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5485 * i386-linux-tdep.h (tdesc_i386_linux): New.
5487 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5490 * i386-tdep.c: Include "features/i386/i386.c".
5491 (i386_register_names): Make it const.
5492 (i386_mmx_names): Likewise.
5493 (i386_num_register_names): Removed.
5494 (i386_register_name): Likewise.
5495 (i386_eflags_type): Likewise.
5496 (i386_mxcsr_type): Likewise.
5497 (i386_sse_type): Likewise.
5498 (i386_register_type): Likewise.
5499 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5500 (i386_pseudo_register_name): New.
5501 (i386_pseudo_register_type): Likewise.
5502 (i386_mmx_type): Make it static.
5503 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5504 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5505 call set_gdbarch_register_name nor set_gdbarch_register_type.
5506 Set register_reggroup_p. Set target description to tdesc_i386
5507 if needed. Call set_tdesc_pseudo_register_type,
5508 set_tdesc_pseudo_register_name and tdesc_use_registers.
5509 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5510 initialize_tdesc_x86_64.
5512 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5513 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5514 register_names, tdesc and register_reggroup_p.
5515 (I386_NUM_FREGS): Removed.
5516 (i386_eflags_type): Likewise.
5517 (i386_mxcsr_type): Likewise.
5518 (i386_mmx_type): Likewise.
5519 (i386_sse_type): Likewise.
5520 (i386_register_name): Likewise.
5521 (i386_regnum): Add I386_MXCSR_REGNUM.
5522 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5524 * i387-tdep.h (I387_NUM_REGS): New.
5526 * regformats/i386/i386-linux.dat: Generated.
5527 * regformats/i386/i386.dat: Likewise.
5528 * regformats/i386/amd64-linux.dat: Likewise.
5529 * regformats/i386/amd64.dat: Likewise.
5531 * regformats/reg-i386-linux.dat: Removed.
5532 * regformats/reg-i386.dat: Likewise.
5533 * regformats/reg-x86-64-linux.dat: Likewise.
5534 * regformats/reg-x86-64.dat: Likewise.
5536 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5538 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5539 cygwin_conv_path API rather than the deprecated
5540 cygwin_conv_to_full_posix_path.
5542 (GetModuleFileNameExA): Undefine for Cygwin.
5543 (GetModuleFileNameExW): Define for Cygwin.
5544 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5545 Call GetModuleFileNameExW and convert path to POSIX using
5547 (windows_make_so): Always define p. Drop unused variable m.
5548 Don't use Win32 functions to check file existance, rather use
5549 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5550 Use canonicalize_file_name to get full path.
5551 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5552 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5553 use correct target buffer size in call to WideCharToMultiByte.
5554 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5555 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5556 (windows_create_inferior): Convert all paths and arguments to wchar_t
5557 and use CreateProcessW on Cygwin.
5558 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5559 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5560 (bad_GetModuleFileNameExW): Define for Cygwin.
5561 (_initialize_loadable): Load GetModuleFileNameExW into
5562 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5564 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5567 * python/py-frame.c (frapy_read_var): Add block argument and logic
5568 to cope with user provided blocks.
5570 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5572 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5575 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5577 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5578 (COMMON_OBS): ... to here since it's used unconditionally.
5579 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5582 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5584 * mips-linux-tdep.c: Update struct sigframe comments.
5585 (SIGFRAME_CODE_OFFSET): Delete macro.
5586 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5588 (mips_linux_n32n64_sigframe_init): Same.
5590 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5592 * remote-mips.c (mips_load): Don't use pseudo-register when
5593 invalidating regcache.
5595 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5597 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5599 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5601 * NEWS: Add "New targets" section, and mention ARM Symbian
5604 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5606 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5607 add ADDR_SIZE member.
5608 (allocate_piece_closure): Update.
5609 (copy_pieced_value_closure): Likewise.
5610 (dwarf2_evaluate_loc_desc): Likewise.
5611 (read_pieced_value): Use DWARF address size instead of
5612 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5614 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5615 Tom Tromey <tromey@redhat.com>
5617 * python/py-type.c (typy_lookup_typename): Add in block argument.
5618 If provided restrict lookup to specified blocks.
5619 (gdbpy_lookup_type): Likewise.
5620 (typy_lookup_type): Likewise.
5622 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5627 * arm-symbian-tdep.c: New.
5628 * configure.tgt (arm*-*-symbianelf*): New target.
5629 (*-*-symbianelf*): New OS.
5630 * osabi.c (gdb_osabi_names): Add Symbian.
5631 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5632 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5633 (ALLDEPFILES): Add arm-symbian-tdep.c.
5635 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5637 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5639 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5641 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5643 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5644 Tom Tromey <tromey@redhat.com>
5645 Thiago Jung Bauermann <bauerman@br.ibm.com>
5647 * python/python.c (_initialize_python): Call
5648 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5649 gdbpy_initialize_blocks.
5650 * python/python-internal.h: Declare struct symbol, block and
5651 symtab_and_line. Declare block_object_type and
5653 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5654 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5655 (symbol_to_symbol_object, block_to_block_object)
5656 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5657 (gdbpy_initialize_blocks ): Declare.
5658 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5659 (frapy_select): Add methods.
5660 (frapy_read_var): Add symbol branch.
5661 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5663 (SUBDIR_PYTHON_SRCS): Likewise.
5664 (py-symbol.o): New rule.
5665 (py-symtab.o): Likewise.
5666 (py-block.o): Likewise.
5667 * python/py-symbol.c: New file.
5668 * python/py-symtab.c: Likewise.
5669 * python/py-block.c: Likewise.
5671 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5675 * inferior.h (prepare_for_detach): Declare.
5676 (struct inferior) <detaching>: New field.
5677 * infrun.c (prepare_for_detach): New.
5678 (handle_inferior_event) <random signal>: Don't stop if detaching.
5679 * target.c (target_detach): Call prepare_for_detach.
5681 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5683 Per-process displaced stepping queue.
5685 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5686 (displaced_step_gdbarch, displaced_step_closure,
5687 (displaced_step_original, displaced_step_copy): Move globals to
5689 (struct displaced_step_inferior_state): ... new structure.
5690 (displaced_step_inferior_states): New global.
5691 (get_displaced_stepping_state, add_displaced_stepping_state)
5692 (remove_displaced_stepping_state, infrun_inferior_exit): New
5694 (displaced_step_clear): Add displaced_step_inferior_state
5695 parameter, and adjust to handle it.
5696 (displaced_step_clear_cleanup): Parameter is now a
5697 displaced_step_inferior_state. Adjust.
5698 (displaced_step_prepare): Adjust.
5699 (displaced_step_fixup, displaced_step_fixup)
5700 (infrun_thread_ptid_changed, resume): Adjust.
5701 (init_wait_for_inferior): Don't call displaced_step_clear.
5702 (infrun_thread_stop_requested): Rewrite.
5703 (_initialize_infrun): Install infrun_inferior_exit as
5704 inferior_exit observer.
5706 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5708 * inferior.h (ptid_match): Declare.
5709 * infrun.c (ptid_match): New.
5710 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5711 (handle_notification): Add debug output.
5712 * linux-nat.c (ptid_match): Delete.
5714 2010-02-24 David S. Miller <davem@davemloft.net>
5716 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5717 * syscalls/sparc-linux.xml: New.
5718 * syscalls/sparc64-linux.xml: New.
5719 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5720 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5721 (sparc32_linux_get_syscall_number): New function.
5722 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5723 syscall number fetcher.
5724 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5725 (sparc64_linux_get_syscall_number): New function.
5726 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5727 syscall number fetcher.
5729 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5733 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5734 * inferior.c (add_inferior_silent): Notify inferior_added
5736 (delete_inferior_1): Notify inferior_removed observer.
5737 (exit_inferior_1): Pass inferior, not pid, to observer.
5738 (inferior_appeared): Likewise.
5739 (add_inferior_with_spaces): New.
5740 (add_inferior_command): Use the above.
5741 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5744 * inflow.c (inflow_inferior_exit): Likewise.
5745 * jit.c (jit_inferior_exit_hook): Likewise.
5747 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5749 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5750 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5751 (report_initial_inferior): New.
5752 (mi_inferior_removed): Register the above. Make sure
5753 inferior_added observer is called on the first inferior.
5754 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5755 inferior number, not pid.
5756 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5758 * mi/mi-main.c (current_context): New.
5759 (proceed_thread_callback): Use typed closure.
5760 Proceed everything if pid is 0. Most implementation split into
5761 (proceed_thread): ... this.
5762 (run_one_inferior): New.
5763 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5764 Adjust for multiexec behaviour.
5765 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5766 (mi_cmd_execute): Handle the 'thread-group' option here.
5767 Do some extra checks.
5768 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5770 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5772 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5774 Make -exec-run a proper MI commands.
5776 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5777 * mi/mi-cmds.c (mi_cmds): Adjust.
5778 * mi/mi-main.c (mi_cmd_exec_run): New.
5780 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5781 Stan Shebs <stan@codesourcery.com>
5783 * tracepoint.h (set_traceframe_number)
5784 (cleanup_restore_current_traceframe): Declare.
5785 * tracepoint.c (set_traceframe_number): New.
5786 (struct current_traceframe_cleanup): New.
5787 (do_restore_current_traceframe_cleanup)
5788 (restore_current_traceframe_cleanup_dtor)
5789 (make_cleanup_restore_current_traceframe): New.
5790 * infrun.c: Include tracepoint.h.
5791 (fetch_inferior_event): Switch out and in of tfind mode.
5793 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5795 * breakpoint.c (breakpoint_init_inferior): Also delete
5796 bp_shlib_event breakpoints.
5797 * solib-frv.c (enable_break): Remove call to
5798 remove_solib_event_breakpoints.
5799 * solib-svr4.c (enable_break): Ditto.
5800 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5801 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5802 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5803 * solib-spu.c (spu_enable_break): Ditto.
5805 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5807 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5809 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5811 * varobj.c (varobj_update): Avoid non-constants in initializers.
5813 2010-02-23 Tom Tromey <tromey@redhat.com>
5815 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5816 handle big-endian values.
5817 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5819 2010-02-22 Pedro Alves <pedro@codesourcery.com>
5824 * breakpoint.c (insert_bp_location): If inserting the read
5825 watchpoint failed, fallback to an access watchpoint.
5826 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5827 if the value changed, if not watching the same memory for writes.
5828 (watchpoint_locations_match): Add comment.
5829 (update_global_location_list): Copy the location's watchpoint type.
5830 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5831 handle read watchpoints here.
5832 (i386_insert_watchpoint): Read watchpoints aren't supported.
5833 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5835 * target.h (target_insert_watchpoint): Update description.
5837 2010-02-19 Tom Tromey <tromey@redhat.com>
5839 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5840 * m2-typeprint.c (m2_print_type): Update.
5841 * gdbtypes.c (recursive_dump_type): Update.
5842 (copy_type_recursive): Update.
5843 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5844 (c_type_print_base): Update.
5845 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5847 (struct cplus_struct_type) <ntemplate_args>: Remove.
5848 <struct template_arg>: Remove.
5849 <is_dynamic>: Move earlier.
5850 (TYPE_TEMPLATE_ARGS): Remove.
5851 (TYPE_NTEMPLATE_ARGS): Remove.
5852 (TYPE_TEMPLATE_ARG): Remove.
5854 2010-02-19 Tom Tromey <tromey@redhat.com>
5856 PR c++/8693, PR c++/9496:
5857 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5858 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5859 write_dollar_variable. Don't try to classify NAME tokens.
5860 (token_and_value): New type.
5861 (token_fifo, popping, name_obstack): New globals.
5862 (classify_name): New function.
5863 (classify_inner_name): Likewise.
5865 (VARIABLE): Now has type sval.
5866 (exp : VARIABLE): Call write_dollar_variable.
5867 (qualified_name): Use TYPENAME, not typebase. Add production for
5868 multiple "::" instances.
5869 (variable): Use name_not_typename.
5870 (qualified_type): Remove.
5873 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5875 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5876 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5877 found by bfd_get_section_by_name.
5878 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5880 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5882 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5883 7.0 section" into "Changes in 7.1".
5885 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5887 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5888 * version.in: Bump version to 7.1.50.20100219-cvs.
5890 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5892 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5893 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5895 2010-02-17 Tom Tromey <tromey@redhat.com>
5897 * NEWS: Add Python API Improvements section.
5899 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5901 * NEWS: Correct typo.
5903 2010-02-17 Tom Tromey <tromey@redhat.com>
5905 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5907 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5909 * symfile.c (build_section_addr_info_from_objfile): Include sections
5910 only if they are SEC_ALLOC or SEC_LOAD.
5912 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5915 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5916 of ULONGEST for address size.
5918 2010-02-17 Tom Tromey <tromey@redhat.com>
5920 * NEWS: Add C++ improvements section.
5922 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5924 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5925 PyThreadState_Swap): Avoid "statement with no effect" warning.
5927 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5929 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5930 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5932 2010-02-17 Tristan Gingold <gingold@adacore.com>
5933 Petr Hluzin <petr.hluzin@gmail.com>
5935 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5936 gdb_assert. Fix info->size for SIG prologue.
5938 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5940 * infcmd.c (show_inferior_tty_command): Check for NULL.
5941 Correct output message.
5943 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5945 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5946 FUNCTION contains parentheses. Improve removal of a trailing
5949 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5951 * gcore.c (do_bfd_delete_cleanup): New function.
5952 (gcore_command): Use it. Discard the cleanup after success.
5953 (gcore_copy_callback): Delete dead code.
5955 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5957 * symfile.c (addr_info_make_relative): Always use
5958 find_lowest_section.
5960 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5962 * NEWS: Added entry for namespace fixes.
5964 2010-02-15 Tom Tromey <tromey@redhat.com>
5966 * dwarf2read.c (guess_structure_name): Allocate name on the
5969 2010-02-15 Tom Tromey <tromey@redhat.com>
5971 * c-typeprint.c (c_type_print_base): Reverse order of test.
5973 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5975 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5976 initialize it from ELF BFD. Extend the prelink condition by it.
5978 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5980 * defs.h (parse_pid_to_attach): New.
5981 * utils.c (parse_pid_to_attach): New.
5982 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5983 * gnu-nat.c (gnu_attach): Likewise.
5984 * nto-procfs.c (procfs_attach): Likewise.
5985 * procfs.c (procfs_attach): Likewise.
5986 * windows-nat.c (windows_attach): Likewise.
5987 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5988 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5989 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5992 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5994 * MAINTAINERS: Add myself for write after approval privileges.
5996 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5998 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
6001 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6003 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
6004 only if INFO_VERBOSE.
6006 2010-02-12 Tomas Holmberg <th@virtutech.com>
6008 * mi/mi-main.c: Added the --reverse flag to the following MI
6009 commands: exec-continue, exec-finish, exec-next, exec-step,
6010 exec-next-instruction, exec-step-instruction. This is to
6011 support reverse execution over the MI interface to gdb.
6013 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6015 * tracepoint.c (_initialize_tracepoint): Specify that the address
6016 range of `tfind outsize' is exclusive, and that the address range
6017 of `tfind range' is inclusive, in the commands' help strings.
6019 2010-02-12 Joel Brobecker <brobecker@adacore.com>
6021 Spurious "dll not found" error messages on x64-windows.
6022 * windows-nat.c: Add include of complaints.h.
6023 (handle_unload_dll): Change dll-not-found error into a complaint.
6025 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6027 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
6028 bp_tracepoint and bp_fast_tracepoint, not
6029 bp_loc_software_breakpoint.
6030 (update_global_location_list): Tracepoints are never duplicates of
6033 2010-02-12 Pedro Alves <pedro@codesourcery.com>
6035 * breakpoint.c (break_command_really): Change return type to int.
6036 Return false if no breakpoint was created, true otherwise.
6037 (trace_command): Don't set the tracepoint count if no tracepoint
6039 (ftrace_command): Ditto.
6040 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
6041 created in the breakpoints table.
6043 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6044 Ulrich Weigand <uweigand@de.ibm.com>
6046 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
6048 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6050 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
6051 the offset value isn't of integral type.
6053 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6055 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
6058 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6060 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
6061 non-subscriptable types.
6062 * valarith.c (binop_types_user_defined_p): New, abstracted out
6064 (binop_user_defined_p): ... this.
6065 * value.h (binop_types_user_defined_p): Declare.
6067 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6069 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
6070 Merge uploaded TSVs before merging uploaded tracepoints.
6072 2010-02-11 Pedro Alves <pedro@codesourcery.com>
6074 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
6076 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
6078 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
6079 whitespace character after a dot in comment.
6080 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
6082 (list_args_or_locals): For the 'all' (that is
6083 -stack-list-variables) case, always output list of tuples.
6084 Output 'arg' field if variable is argument.
6086 2010-02-10 Tom Tromey <tromey@redhat.com>
6088 * parser-defs.h (parser_debug): Declare.
6089 * parse.c (_initialize_parse): Install "debug parser" set/show
6091 (parser_debug): New global.
6092 (show_parserdebug): New function.
6093 * c-exp.y (c_parse): Set yydebug.
6095 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6097 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6098 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6099 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6101 (tdesc_find_type): New.
6102 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6103 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6105 * target-descriptions.h (tdesc_find_type): New.
6107 2010-02-10 Michael Snyder <msnyder@vmware.com>
6109 * gdb-gdb.py: Comment fix.
6111 2010-02-09 Tristan Gingold <gingold@adacore.com>
6113 * machoread.c (macho_symfile_relocate): New function.
6114 (macho_sym_fns): Use macho_symfile_relocate instead of
6115 default_symfile_relocate.
6116 (macho_oso_data): New type.
6117 (current_oso): New variable.
6118 (macho_add_oso_symfile): Do not compute section_addr_info, but
6119 instead set vma of sections.
6120 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6121 Set and clear current_oso.
6123 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6125 Wrong type description for tagged type parameter.
6126 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6127 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6128 reference to a tagged type.
6130 2010-02-09 Tristan Gingold <gingold@adacore.com>
6132 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6133 brothers of the parent.
6135 2010-02-08 Tom Tromey <tromey@redhat.com>
6139 * valops.c (search_struct_field): Make 'name' const.
6140 (search_struct_method): Likewise.
6141 (find_method_list): Make 'method' const.
6142 (value_struct_elt): Make 'name' and 'err' const.
6143 (value_find_oload_method_list): Make 'method' const.
6144 (find_overload_match): Make 'name' const.
6145 * eval.c (evaluate_subexp_standard): New locals function,
6147 <OP_FUNCALL>: Handle OP_SCOPE specially.
6149 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6151 * infrun.c (handle_inferior_event): Do not look up regcache
6152 for exited processes.
6154 2010-02-08 Chris Moller <moller@mollerware.com>
6157 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6158 warn if found, and assume length = 1.
6160 2010-02-08 Chris Moller <cmoller@redhat.com>
6163 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6164 (cp_print_static_field) Fix use of obstacks.
6166 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6168 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6169 resumed LWPs as resumed.
6170 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6171 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6172 of throwing an internal error. If an LWP of a process we're not
6173 waiting for reports a signal, don't force collecting a SIGSTOP,
6174 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6175 go through all LWPs cancelling breakpoints in non-stop mode.
6176 (resume_stopped_resumed_lwps): New.
6177 (linux_nat_wait): Use it.
6179 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6181 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6182 i386/amd64 and i386/amd64-linux.
6183 (i386/i386-expedite): New.
6184 (i386/i386-linux-expedite): Likewise.
6185 (i386/amd64-expedite):Likewise.
6186 (i386/amd64-linux-expedite): Likewise.
6187 ($(outdir)/i386/i386-linux.dat): Likewise.
6188 ($(outdir)/i386/amd64.dat): Likewise.
6189 ($(outdir)/i386/amd64-linux.dat): Likewise.
6191 * features/i386/32bit-core.xml: New.
6192 * features/i386/32bit-linux.xml: Likewise.
6193 * features/i386/32bit-sse.xml: Likewise.
6194 * features/i386/64bit-core.xml: Likewise.
6195 * features/i386/64bit-linux.xml: Likewise.
6196 * features/i386/64bit-sse.xml: Likewise.
6197 * features/i386/i386-linux.xml: Likewise.
6198 * features/i386/i386.xml: Likewise.
6199 * features/i386/amd64-linux.xml: Likewise.
6200 * features/i386/amd64.xml: Likewise.
6201 * features/i386/i386-linux.c: Likewise.
6202 * features/i386/i386.c: Likewise.
6203 * features/i386/amd64-linux.c: Likewise.
6204 * features/i386/amd64.c: Likewise.
6206 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6209 * cp-support.h: Added char* alias element to using_direct data
6211 (cp_add_using): Added char* alias argument.
6212 (cp_add_using_directive): Ditto.
6213 * cp-namespace.c: Updated with the above changes.
6214 (cp_lookup_symbol_imports): Check for aliases.
6215 * dwarf2read.c (read_import_statement): Figure out local alias
6216 for the import and pass it on to cp_add_using.
6217 (read_namespace): Pass alias argument to cp_add_using.
6219 2010-02-05 Hui Zhu <teawater@gmail.com>
6221 * defs.h (gdb_bfd_errmsg): New extern.
6222 * exec.c (exec_file_attach): Change bfd_errmsg to
6224 * utils.c (AMBIGUOUS_MESS1): New macro.
6225 (AMBIGUOUS_MESS2): New macro.
6226 (gdb_bfd_errmsg): New function.
6228 2010-02-04 Doug Evans <dje@google.com>
6230 * solib-svr4.c (enable_break): Add comment.
6232 2010-02-04 Anthony Green <green@moxielogic.com>
6234 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6237 2010-02-04 Tom Tromey <tromey@redhat.com>
6239 * valops.c (search_struct_field): Account for
6240 value_embedded_offset. Fix check for virtual base past the end of
6241 the object. Use value_copy when making a slice of the value.
6243 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6246 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6247 only if gdb_stdout is a tty.
6249 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6251 * target-descriptions.c: Include "osabi.h".
6252 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6255 2010-02-04 Tristan Gingold <gingold@adacore.com>
6257 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6258 (macho_symtab_read): Adjust calls to macho_add_oso.
6259 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6260 (macho_symfile_read): Adjust call to macho_oso_symfile.
6261 (macho_new_init): Move this function after declarations.
6262 (macho_symfile_init): Ditto.
6263 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6264 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6266 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6268 Include MI command in remotelog.
6270 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6272 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6274 * remote.c (remote_state): Remove gdbarch.
6275 (init_remote_state): Don't set gdbarch.
6276 (remote_query_supported): Pass target_gdbarch instead of
6277 rs->gdbarch to gdbarch_qsupported.
6279 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6281 * gdbarch.sh: Add qsupported.
6283 * gdbarch.c: Regenerated.
6284 * gdbarch.h: Likewise.
6286 * remote.c (remote_state): Add gdbarch.
6287 (init_remote_state): Set gdbarch.
6288 (remote_query_supported): Support gdbarch_qsupported.
6290 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6292 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6293 __FreeBSD_kernel_version.
6295 2010-02-03 Tristan Gingold <gingold@adacore.com>
6297 * symfile.h (struct sym_fns): Add sym_relocate field.
6298 (default_symfile_relocate): New prototype.
6299 (symfile_relocate_debug_section): First argument is now an objfile.
6300 * symfile.c (default_symfile_relocate): Rename from
6301 symfile_relocate_debug_section, first argument is now an objfile.
6302 (symfile_relocate_debug_section): New function.
6303 * coffread.c (coff_sym_fns): Set sym_relocate field.
6304 * somread.c (som_sym_fns): Ditto.
6305 * mipsread.c (ecoff_sym_fns): Ditto.
6306 * machoread.c (macho_sym_fns): Ditto.
6307 * elfread.c (elf_sym_fns): Ditto.
6308 * dwarf2read.c (dwarf2_read_section): Ditto.
6309 * xcoffread.c (xcoff_sym_fns): Ditto.
6310 * dbxread.c (aout_sym_fns): Ditto.
6311 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6312 (elfstab_build_psymtabs): Ditto.
6314 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6316 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6318 2010-02-02 Tom Tromey <tromey@redhat.com>
6320 * valops.c (value_cast_structs): Try downcasting using the RTTI
6323 2010-02-02 Tom Tromey <tromey@redhat.com>
6325 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6326 (gnuv2_baseclass_offset): Now static.
6327 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6328 * gnu-v2-abi.h: Remove.
6330 2010-02-02 Tom Tromey <tromey@redhat.com>
6332 * m2-typeprint.c (m2_record_fields): Don't use
6334 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6335 (struct main_type) <flag_declared_class>: New field.
6336 (struct cplus_struct_type) <declared_type>: Remove.
6337 <ntemplate_args>: Move earlier.
6338 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6339 (DECLARED_TYPE_TEMPLATE): Remove.
6340 (TYPE_DECLARED_TYPE): Remove.
6341 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6342 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6343 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6346 2010-02-02 Tom Tromey <tromey@redhat.com>
6348 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6349 * valops.c (search_struct_field): Compute nbases after calling
6351 (check_field): Call CHECK_TYPEDEF.
6352 * cp-valprint.c (cp_print_value): Pass correct address to
6353 baseclass_offset. Fix check for virtual base past the end of the
6354 object. Don't offset address passed to cp_print_value_fields or
6355 apply_val_pretty_printer.
6356 (cp_print_value_fields): Fix call to val_print.
6357 (cp_print_value_fields_rtti): New function.
6358 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6359 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6361 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6363 * language.h (struct language_defn) <la_val_print>: Document.
6364 * c-lang.h (cp_print_value_fields_rtti): Declare.
6366 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6369 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6370 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6371 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6373 2010-02-01 Michael Matz <matz@suse.de>
6374 Daniel Jacobowitz <dan@codesourcery.com>
6376 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6377 functions use a frame pointer.
6379 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6381 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6382 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6383 * config/djgpp/fnchange.lst: Add translations for
6384 symbol-without-target_section.exp and symbol-without-target_section.c.
6386 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6388 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6389 (remote_breakpoint_for_pc): Correct invalid_p check.
6390 * gdbarch.c: Regenerated.
6392 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6394 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6396 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6397 (extend_buffer_earlier): New function.
6398 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6399 (arm_adjust_breakpoint_address): New function.
6400 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6402 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6404 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6405 (arm_linux_thumb2_le_breakpoint): New constants.
6406 (arm_linux_init_abi): Set thumb2_breakpoint and
6407 thumb2_breakpoint_size.
6408 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6409 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6410 Implement support for single stepping through IT blocks if
6411 a 32-bit Thumb breakpoint instruction is available.
6412 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6413 is available, use it when needed.
6414 (arm_remote_breakpoint_from_pc): New function.
6415 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6416 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6417 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6419 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6421 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6422 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6423 * gdbarch.c, gdbarch.h: Regenerated.
6424 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6425 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6426 gdbarch_remote_breakpoint_from_pc.
6428 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6430 * infrun.c (prepare_to_proceed): Handle other signals which might
6432 (handle_inferior_event): Move the check for unusual breakpoint
6435 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6437 amd64 - function returning record with field straddling 2 registers.
6438 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6439 a record of length <= 16 in which a field straddles the two
6442 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6444 Implement return values on amd64-windows.
6445 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6446 (amd64_windows_return_value): New function.
6447 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6448 amd64_windows_return_value.
6450 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6452 amd64-windows: 32 bytes allocated on stack by caller for integer
6453 parameter registers.
6454 * i386-tdep.h (struct gdbarch_tdep): Add new field
6455 integer_param_regs_saved_in_caller_frame.
6456 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6457 tdep->integer_param_regs_saved_in_caller_frame to 1.
6458 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6459 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6461 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6463 amd64-windows: memory args passed by pointer during function calls.
6464 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6465 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6466 where tdep->memory_args_by_pointer is non-zero.
6467 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6468 tdep->memory_args_by_pointer to 1.
6470 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6472 amd64-windows: Integer parameters in function calls.
6473 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6475 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6476 call_dummy_integer_regs, and classify.
6477 * amd64-tdep.h (amd64_classify): Add declaration.
6478 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6479 (amd64_reg_class): Delete, moved to i386-tdep.h.
6480 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6481 Replace call to amd64_classify by call to tdep->classify.
6482 (amd64_push_arguments): Get the list of registers to use for
6483 passing integer parameters from the gdbarch tdep structure,
6484 rather than using a hardcoded one. Replace calls to amd64_classify
6485 by calls to tdep->classify.
6486 (amd64_push_dummy_call): Get the register number used for
6487 the "hidden" argument from tdep->call_dummy_integer_regs.
6488 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6489 and tdep->call_dummy_integer_regs. Set tdep->classify.
6490 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6491 (amd64_windows_dummy_call_integer_regs): New static global.
6492 (amd64_windows_classify): New function.
6493 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6494 tdep->call_dummy_integer_regs and tdep->classify.
6496 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6498 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6499 for the new regcache. All callers updated.
6500 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6501 (get_thread_arch_regcache): Do not set aspace here.
6502 * regcache.h (regcache_xmalloc): Update declaration.
6504 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6505 regcache_xmalloc updated.
6507 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6509 Another -Wunused-function error in procfs.c (sparc-solaris)
6510 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6511 Only define if SYS_syssgi is defined.
6512 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6513 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6514 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6517 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6519 * windows-nat.c (windows_initialization_done): New variable.
6520 (get_windows_debug_event): Issue error when process dies before
6521 completely initializing.
6522 (do_initial_windows_stuff): Set flag to indicate when we are done with
6523 the initial steps of attaching to the child.
6525 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6527 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6529 2010-01-27 Doug Evans <dje@google.com>
6531 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6533 * breakpoint.c (bpstat_stop_status): Delete useless code.
6535 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6537 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6538 objfile via SYMBOL_SYMTAB.
6540 2010-01-26 Tom Tromey <tromey@redhat.com>
6543 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6544 coerce_array on result.
6546 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6548 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6549 search_parent argument.
6550 (cp_add_using): Initialize 'searched' field.
6551 (reset_directive_searched): New function.
6552 * cp-support.h: Add 'searched' field to using_direct struct.
6553 (cp_lookup_symbol_imports): Ditto.
6554 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6555 Perform recursive search.
6556 Implement non parent search.
6557 * valops.c (value_maybe_namespace_elt): Updated.
6559 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6562 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6563 scopes which contain using directives even if they contain no
6565 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6566 la_lookup_symbol_nonlocal.
6567 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6568 cp_lookup_symbol_namespace.
6569 (cp_lookup_symbol_namespace): Perform an import lookup at every
6571 (cp_lookup_symbol_imports): New function.
6572 (cp_lookup_symbol_in_namespace): New function.
6574 2010-01-25 Tom Tromey <tromey@redhat.com>
6577 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6580 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6582 * configure.ac: Only use host_os part when disabling TUI on osf.
6583 Use test to check variables, prefix strings with x.
6584 * configure: Regenerate.
6586 * solib-osf.c (osf_current_sos): Initialize tail.
6588 2010-01-25 gingold <gingold@adacore.com>
6590 * windows-nat.c (windows_continue): Use %x to print thread id.
6591 (get_windows_debug_event): Ditto.
6593 2010-01-22 Tom Tromey <tromey@redhat.com>
6596 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6597 type and arguments. Use smash_to_methodptr_type.
6598 (read_structure_type): Call quirk_gcc_member_function_pointer
6600 * gdbtypes.h (smash_to_methodptr_type): Declare.
6601 * gdbtypes.c (smash_to_methodptr_type): New function.
6602 (lookup_methodptr_type): Use it.
6604 2010-01-21 Tom Tromey <tromey@redhat.com>
6607 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6608 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6609 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6610 (glibc_skip_solib_resolver): Use
6611 lookup_minimal_symbol_and_objfile.
6613 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6615 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6618 2010-01-20 Tom Tromey <tromey@redhat.com>
6621 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6622 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6623 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6624 dwarf_stack_values, not CORE_ADDRs.
6625 (execute_stack_op): Change DW_OP_div and comparison operators to
6626 use signed operands.
6628 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6630 Per-inferior args and tty and environment.
6632 * infcmd.c (inferior_args): Rename to ...
6633 (inferior_args_scratch): ... this.
6634 (inferior_io_terminal): Rename to ...
6635 (inferior_io_terminal_scratch): ... this.
6636 (inferior_argc, inferior_argv): Remove.
6637 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6638 inside current_inferior().
6639 (set_inferior_tty_command, show_inferior_tty_command): New.
6640 (get_inferior_args, set_inferior_args): Store inside
6642 (notice_args_set): Likewise and rename to...
6643 (set_args_command): ... this.
6644 (set_inferior_args_vector): Likewise.
6645 (notice_args_read): Rename to...
6646 (show_args_command): ...new.
6647 (tty_command): Remove.
6648 (run_command_1): Don't free old args, as they are freed by
6649 set_inferior_arg now.
6650 (run_no_args_command): Likewise.
6651 (inferior_environ): Remove.
6652 (run_command_1): Use environment of the current inferior.
6653 (environment_info, set_environment_command)
6654 (unset_environment_command, path_info, path_command): Likewise.
6655 (_initialize_infcmd): Adjust for function and variable renames.
6656 Do not init inferior_environ.
6657 * inferior.h (set_inferior_arg): Adjust prototype.
6658 (struct inferior): New fields args, argc, argv, terminal, environment.
6659 (inferior_environ): Remove declaration.
6660 * inferior.c (free_inferior): Free new fields.
6661 (add_inferior_silent): Initialize 'environment' field.
6662 * main.c (captured_main): Set arguments only after the initial
6663 inferior has been created. Set set_inferior_io_terminal,
6665 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6667 (_initialize_mi_cmd_env): Adjust for disappearance of global
6669 * solib.c (solib_find): Use environment of the current inferior.
6671 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6673 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6675 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6677 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6679 Get rid of ada-lang.c:function_name_from_pc.
6680 * ada-lang.c: Add "stack.h" #include.
6681 (function_name_from_pc): Delete.
6682 (is_known_support_routine): Replace call to function_name_from_pc
6683 by call to find_frame_funname.
6684 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6686 2010-01-19 Tom Tromey <tromey@redhat.com>
6689 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6692 2010-01-19 Tom Tromey <tromey@redhat.com>
6694 * top.c (stop_sig, float_handler, do_nothing): Remove.
6696 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6698 * breakpoint.c (watchpoint_check): Check the call
6699 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6701 * config/djgpp/fnchange.lst: Add translations for
6702 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6703 watchpoint-cond-gone-stripped.c.
6705 2010-01-19 Tom Tromey <tromey@redhat.com>
6708 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6709 into parent scope, and enumerator into grandparent scope.
6711 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6713 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6715 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6717 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6718 i[34567]86-*-solaris2.1[0-9]*.
6719 * configure.tgt: Likewise.
6721 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6723 * NEWS: Document the source command enhancement allowing it
6724 to load Python scripts. Document the "set/show script-extension"
6727 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6729 Add -Wunused-function to compile flags.
6730 * configure.ac: Add -Wunused-function to build_warnings.
6731 * configure: Regenerate.
6733 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6735 "delete" ada-lex.c:input function, not used.
6736 * ada-lex.l: #define YY_NO_INPUT.
6738 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6740 Delete free_named_symtabs and associated cleanup.
6741 * symfile.h (free_named_symtabs): Delete declaration.
6742 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6743 (cashier_psymtab): Comment function out.
6745 (free_named_symtabs): Delete.
6746 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6747 * dbxread.c (end_psymtab): Likewise.
6748 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6749 * exec.c (exec_close_1): Ditto.
6750 * xcoffread.c (xcoff_end_psymtab): Likewise.
6752 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6754 * stack.c (print_block_frame_labels): Comment function out.
6756 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6758 Delete unused or undefined functions.
6759 * breakpoint.c (ep_parse_optional_filename): Delete.
6760 * dcache.c (dcache_write_line): Remove declaration.
6761 * infrun.c (build_infrun): Remove declaration.
6762 * tracepoint.c (tracepoint_save_command): Remove declaration.
6763 * linux-nat.c (init_lwp_list): Delete. No longer used.
6764 * event-loop.c (check_async_signal_handlers): Delete declaration.
6765 * infrun.c (init_execution_control_state): Delete.
6766 (proceed): Update comment to avoid mentioning
6767 init_execution_control_state.
6768 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6769 * ada-lang.c (ada_to_static_fixed_value): Delete.
6770 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6771 * cp-namespace.c (cp_copy_usings): Delete.
6772 * xml-syscall.c (xml_number_of_syscalls): Delete.
6773 * progspace.c (find_program_space_by_num): Delete.
6774 * inflow.c (handle_sigio): Delete declaration.
6775 * hppa-tdep.c (hppa_alignof): Delete.
6776 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6777 (mipsnbsd_core_osabi_sniffer): Delete.
6779 2010-01-18 Tom Tromey <tromey@redhat.com>
6782 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6783 (CONST_CAST): New tokens.
6784 (exp): Add new productions.
6785 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6787 (is_cast_operator): New function.
6788 (yylex): Handle cast operators specially.
6789 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6790 UNOP_REINTERPRET_CAST>: New cases.
6791 * expprint.c (print_subexp_standard): Likewise.
6792 (op_name_standard): Likewise.
6793 (dump_subexp_body_standard): Likewise.
6794 * parse.c (operator_length_standard): Likewise.
6795 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6796 UNOP_REINTERPRET_CAST.
6797 * gdbtypes.c (class_types_same_p): New function.
6798 (is_ancestor): Use it.
6799 (is_public_ancestor): New function.
6800 (is_unique_ancestor_worker): Likewise.
6801 (is_unique_ancestor): Likewise.
6802 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6803 (is_unique_ancestor): Declare.
6804 * valops.c (value_reinterpret_cast): New function.
6805 (dynamic_cast_check_1): Likewise.
6806 (dynamic_cast_check_2): Likewise.
6807 (value_dynamic_cast): Likewise.
6808 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6810 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6812 Fix build failure when building without Python support.
6813 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6816 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6818 Use XVS field type instead of doing a parallel lookup.
6819 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6820 if it is a reference type instead of doing a type lookup using
6823 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6825 Trust PAD types instead of using PAD___XVS.
6826 * ada-lang.c (trust_pad_over_xvs): New static variable.
6827 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6828 parallel XVS type, follow the XVS type instead of the PAD type.
6829 (unwrap_value): Make sure that there is no parallel XVE type
6830 before returning the value as is.
6831 (set_ada_list, show_ada_list): New static variables.
6832 (set_ada_command, show_ada_command): New functions.
6833 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6834 Add new "set/show ada trust-PAD-over-XVS" setting.
6836 2010-01-18 Tom Tromey <tromey@redhat.com>
6837 Thiago Jung Bauermann <bauerman@br.ibm.com>
6839 Allow "source" to load python scripts.
6840 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6841 * python/python.c (source_python_script): New function.
6842 * python/python.h (source_python_script): Add declaration.
6843 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6844 (script_ext_off, script_ext_soft, script_ext_strict)
6845 (script_ext_enums, script_ext_mode): New static constants.
6846 (show_script_ext_mode, find_and_open_script): New functions.
6847 (source_script): Enhance to handle Python scripts.
6848 (init_cli_cmds): Add set/show script-extension commands.
6850 2010-01-16 Stan Shebs <stan@codesourcery.com>
6852 * tracepoint.h (struct trace_status): Use unsigned long long
6854 * tracepoint.c (trace_status_command): Fix printf directive.
6855 (trace_save_command): Check fwrite returns, fix printf directive.
6856 (trace_filename): New global.
6857 (tfile_open): Set it, check read returns.
6858 (tfile_close): Free trace_filename.
6859 (tfile_get_traceframe_address): Check read returns.
6860 (tfile_trace_find): Ditto.
6861 (tfile_fetch_registers): Ditto.
6862 (tfile_xfer_partial): Ditto.
6863 (tfile_get_trace_state_variable_value): Ditto.
6865 2010-01-15 Stan Shebs <stan@codesourcery.com>
6867 Add trace file support.
6868 * tracepoint.h (enum trace_stop_reason): New enum.
6869 (struct trace_status): New struct.
6870 (parse_trace_status): Declare.
6871 (struct uploaded_tp): Move here from remote.c,
6872 add fields for actions.
6873 (struct uploaded_tsv): New struct.
6874 * tracepoint.c (tfile_ops): New target vector.
6875 (trace_fd): New global.
6876 (tfile_open): New function.
6877 (tfile_close): New function.
6878 (tfile_files_info): New function.
6879 (tfile_get_trace_status): New function.
6880 (tfile_get_traceframe_address): New function.
6881 (tfile_trace_find): New function.
6882 (tfile_fetch_registers): New function.
6883 (tfile_xfer_partial): New function.
6884 (tfile_get_trace_state_variable_value): New function.
6885 (init_tfile_ops): New function.
6886 (_initialize_tracepoint): Call it, add tfile target.
6887 (trace_status): New global.
6888 (current_trace_status): New function.
6889 (trace_running_p): Remove, change all users to get from
6890 current_trace_status()->running.
6891 (get_trace_status): Remove.
6892 (trace_status_command): Call target_get_trace_status directly,
6893 report more detail including tracing stop reasons.
6894 (trace_find_command): Always allow tfind on a file.
6895 (trace_find_pc_command): Ditto.
6896 (trace_find_tracepoint_command): Ditto.
6897 (trace_find_line_command): Ditto.
6898 (trace_find_range_command): Ditto.
6899 (trace_find_outside_command): Ditto.
6900 (trace_frames_offset, cur_offset): Declare as off_t.
6901 (trace_regblock_size): Rename from reg_size, update users.
6902 (parse_trace_status): New function.
6903 (tfile_interp_line): New function.
6904 (disconnect_or_stop_tracing): Ensure current trace
6905 status before asking what to do.
6906 (stop_reason_names): New global.
6907 (trace_save_command): New command.
6908 (get_uploaded_tp): Move here from remote.c.
6909 (find_matching_tracepoint): Ditto.
6910 (merge_uploaded_tracepoints): New function.
6911 (parse_trace_status): Use stop_reason_names.
6912 (_initialize_tracepoint): Define tsave command.
6913 * target.h (target_ops): New fields to_save_trace_data,
6914 to_upload_tracepoints, to_upload_trace_state_variables,
6915 to_get_raw_trace_data, change to_get_trace_status
6916 to take a pointer to a status struct.
6917 (target_save_trace_data): New macro.
6918 (target_upload_tracepoints): New macro.
6919 (target_upload_trace_state_variables): New macro.
6920 (target_get_raw_trace_data): New macro.
6921 * target.c (update_current_target): Add new methods, change
6922 signature of to_get_trace_status.
6923 * remote.c (hex2bin): Make globally visible.
6925 (remote_download_trace_state_variable): Download name also.
6926 (remote_get_trace_status): Update parameter, use
6928 (remote_save_trace_data): New function.
6929 (remote_upload_tracepoints): New function.
6930 (remote_upload_trace_state_variables): New function.
6931 (remote_get_raw_trace_data): New function.
6932 (remote_start_remote): Use them.
6933 (_initialize_remote_ops): Add operations.
6934 * ax-gdb.c: Include breakpoint.h.
6935 * breakpoint.c (create_tracepoint_from_upload): Use
6936 break_command_really, return tracepoint, warn about unimplemented
6938 * NEWS: Mention trace file addition.
6940 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6942 Fix compilation warning on gcc-3.4.
6943 * exec.c (print_section_info): Move the `displacement' variable
6944 initialization to its declaration.
6946 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6948 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6951 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6953 "info tasks" broken by typedefs in ATCB type definitions.
6954 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6955 ada_check_typedef before retrieving the length of the type for
6958 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6960 Do not use name-based lookup for unconstrained packed arrays.
6961 * ada-lang.c (find_parallel_type_by_descriptive_type):
6962 Limit the fallback to name-based lookups to the case where
6963 the type is a constrained packed array.
6965 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6967 Enhance gdb-gdb.py to handle main_type.type_specific.
6968 * gdb-gdb.py: Print the type-specific part of struct main_type.
6970 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6972 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6973 * configure: Regenerate.
6974 * config.in: Regenerate.
6975 * utils.c: Include sys/resource.h.
6976 (dump_core, can_dump_core): New.
6977 (internal_vproblem): Update the comment. Check can_dump_core while
6978 setting dump_core_p. Replace two abort calls by dump_core calls.
6980 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6981 Eli Zaretskii <eliz@gnu.org>
6983 * NEWS: Document the PIE support.
6985 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6987 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6988 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6990 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6992 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6993 Replace exec_entry_point call by bfd_get_start_address.
6995 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6997 Support Valgrind attachments broken by the PIE support.
6998 * auxv.c: Include gdbcore.h.
6999 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
7000 parameters ops, object and annex. Remove their assertions.
7001 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
7002 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
7003 (memory_xfer_auxv): ... here.
7004 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
7006 * procfs.c (procfs_xfer_partial): Likewise.
7007 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
7008 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
7009 (svr4_solib_create_inferior_hook): Conditionalize the
7010 svr4_relocate_main_executable call.
7012 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7014 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
7015 target_section. Find SECT in current_target_sections, gdb_assert it.
7016 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
7018 * symtab.c (lookup_objfile_from_block): Return the binary file instead
7019 of separate debug info file.
7021 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7023 Support PIEs with no symfile_objfile.
7024 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
7025 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
7027 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7029 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
7031 (svr4_static_exec_displacement): ... a new function.
7032 (svr4_exec_displacement): New function.
7033 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
7034 new_offsets using alloca now. Remove variable old_chain and changed.
7035 Call objfile_relocate unconditionally now.
7037 2010-01-14 Doug Evans <dje@google.com>
7039 * gdbtypes.c (arch_flags_type): Fix comment.
7040 * gdbtypes.h (arch_composite_type): Fix comment.
7042 2009-01-14 Tristan Gingold <gingold@adacore.com>
7044 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
7045 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
7046 to symbol_file_add_from_bfd. Add OSO as separate objfile.
7047 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
7048 macho_add_oso_symfile.
7049 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
7051 2010-01-14 Joel Brobecker <brobecker@adacore.com>
7053 Tru64: Dead threads are never deleted.
7054 * dec-thread.c (dec_thread_ptid_is_alive): New function.
7055 (dec_thread_count_gdb_threads): Fix counter increment.
7056 (dec_thread_add_gdb_thread): Fix *listp increment.
7057 (resync_thread_list): Fix bug in deletion of dead threads that
7058 caused all threads to be deleted, instead of just the dead ones.
7060 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
7064 * python/python-internal.h: Add lazy_string_object_type
7066 (create_lazy_string_object, gdbpy_initialize_lazy_string)
7067 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
7068 * python/py-value.c (valpy_lazy_string): New function.
7069 (convert_value_from_python): Add lazy string conversion.
7070 * python/py-prettyprint.c (pretty_print_one_value): Check if
7071 return is also a lazy string.
7072 (print_string_repr): Add lazy string printing branch.
7073 (print_children): Likewise.
7074 * python/py-lazy-string.c: New file. Implement lazy strings.
7075 * python/python.c (_initialize_python): Call
7076 gdbpy_initialize_lazy_string.
7077 * varobj.c (value_get_print_value): Add lazy string printing
7078 branch. Account for encoding.
7079 * c-lang.c (c_printstr): Account for new encoding argument. If
7080 encoding is NULL, find encoding suited for type, otherwise use
7082 * language.h (language_defn): Add encoding argument.
7083 (LA_PRINT_STRING): Likewise.
7084 * language.c (unk_lang_printstr): Update to reflect new encoding
7085 argument to language_defn.
7086 * ada-lang.h (ada_printstr): Likewise.
7087 * c-lang.h (c_printstr): Likewise.
7088 * p-lang.h (pascal_printstr);
7089 * f-lang.c (f_printstr): Likewise.
7090 * m2-lang.c (m2_printstr): Likewise.
7091 * objc-lang.c (objc_printstr): Likewise.
7092 * p-lang.c (pascal_printstr): Likewise.
7093 * scm-lang.c (scm_printstr): Likewise.
7094 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7096 * ada-valprint.c (ada_printstr): Likewise.
7097 * f-valprint.c (f_val_print): Likewise
7098 * m2-valprint.c (m2_val_print): Likewise.
7099 * p-valprint.c (pascal_val_print): Likewise.
7100 * expprint.c (print_subexp_standard): Likewise.
7101 * valprint.c (val_print_string): Likewise.
7102 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7103 (SUBDIR_PYTHON_SRCS): Likewise.
7104 (py-lazy-string.o): New rule.
7106 2010-01-13 Doug Evans <dje@google.com>
7108 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7109 uninitialized" warning from gcc on local `tree'.
7111 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7113 Implement core awareness.
7115 * bcache.c (compare_ints): Remove
7116 (print_percentage): Use compare_positive_ints.
7117 * defs.h (compare_positive_ints): Declare.
7118 * linux-nat.h (struct lin_lwp): New field core.
7119 (linux_nat_core_of_thread_1): Declare.
7120 * linux-nat.c (add_lwp): Init the 'core' field.
7121 (linux_nat_wait_1): Record the core.
7122 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7123 (linux_nat_add_target): Register the above.
7124 * linux-thread-db.c (update_thread_core): New.
7125 (thread_db_find_new_threads): Update core information for
7127 * remote.c (struct private_thread_info): New.
7128 (free_private_thread_info, demand_private_info): New.
7129 (PACKET_qXfer_threads, use_osdata_threads): New.
7130 (struct thread_item, threads_parsing_context
7131 (start_thread, end_thread, thread_attributes)
7132 (thread_children, threads_children, threads_elements): New.
7133 (remote_threads_info): Try qXfer:threads before anything
7135 (remote_protocol_packets): Register qXfer:threads.
7136 (remote_open_1): Init use_osdata_threads.
7137 (struct stop_reply): New field 'core'.
7138 (remote_parse_stop_reply): Parse core number.
7139 (process_stop_reply): Record core number.
7140 (remote_xfer_partial): Handle qXfer:threads.
7141 (remote_core_of_thread): New.
7142 (init_remote_ops): Register remote_core_of_thread.
7143 (_initialize_remote): Register qXfer:read.
7144 * target.c (target_core_of_thread): New
7145 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7146 (struct target_ops): New field to_core_of_threads.
7147 (target_core_of_thread): Declare.
7148 * gdbthread.h (struct thread_info): New field private_dtor.
7149 * thread.c (print_thread_info): Report the core.
7150 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7151 * utils.c (compare_positive_ints): New.
7152 * features/threads.dtd: New.
7153 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7154 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7155 (do_nothing, free_vector_of_osdata_items)
7156 (splay_tree_int_comparator, free_splay_tree): New.
7157 (print_one_inferior_data): Implemented printing of selected
7158 inferiors. Collect and print cores.
7159 (output_cores): New.
7160 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7161 thread groups together with --available.
7163 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7165 * configure: Regenerate (for _STRUCTURED_PROC).
7167 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7169 Delete dead function.
7170 * ada-lang.c (extract_string): Delete. No longer used.
7172 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7174 Fix -Wunused warning in dec-thread.c.
7175 * dec-thread.c (dec_thread_count_gdb_threads)
7176 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7178 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7180 * ada-valprint.c (ada_print_floating): Remove trailing space.
7182 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7184 Add support for DW_AT_GNAT_descriptive_type.
7185 * gdbtypes.h (enum type_specific_kind): New enum.
7186 (struct main_type) [type_specific_field]: New component.
7187 [type_specific]: Add new component "gnat_stuff".
7188 (struct gnat_aux_type): New type.
7189 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7190 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7191 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7192 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7193 (TYPE_SPECIFIC_FIELD): New macros.
7194 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7195 type does not hold any cplus-specific data.
7196 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7197 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7198 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7199 cplus-specific data.
7200 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7201 Set new component TYPE_SPECIFIC_FIELD (type).
7202 (gnat_aux_default): New constant.
7203 (allocate_gnat_aux_type): New function.
7204 (init_type): Add initialization the type-specific stuff for
7205 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7206 (print_gnat_stuff): New function.
7207 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7208 specific data. Adjust code that prints the contents of the
7209 type-specific union using the TYPE_SPECIFIC_FIELD value.
7210 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7211 the type cplus stuff for Ada types.
7212 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7213 Error out if these routines are called with an Ada type.
7214 (read_structure_type, read_array_type, read_subrange_type):
7215 Add call to set_descriptive_type.
7216 (set_die_type): Initialize the gnat-specific data if necessary.
7217 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7219 * ada-lang.c (decode_constrained_packed_array_type): Use
7220 decode_constrained_packed_array_type instead of doing a standard
7221 lookup to locate a parallel type.
7222 (find_parallel_type_by_descriptive_type): New function.
7223 (ada_find_parallel_type_with_name): New function.
7224 (ada_find_parallel_type): Reimplement using
7225 ada_find_parallel_type_with_name.
7226 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7227 to check if type has a cplus stuff.
7228 * linespec.c (total_number_of_methods): Likewise.
7229 * mdebugread.c (new_type): Likewise.
7231 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7233 * NEWS: Document the 0b binary number prefix parsing.
7235 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7237 * objfiles.c (objfile_relocate1): Change the return type to int.
7238 Describe the new return value. Return non-zero if data changed.
7239 (objfile_relocate): New variable changed. Set it. Call
7240 breakpoint_re_set depending on CHANGED.
7242 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7244 Implement binary numbers parsing.
7245 * c-exp.y (parse_number): New case 'b' and 'B'.
7247 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7248 Tristan Gingold <gingold@adacore.com>
7250 * solib.c (info_sharedlibrary_command): Replace
7251 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7252 objfile_has_symbols.
7254 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7256 * NEWS: Document the improvements made to the mips-irix port.
7258 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7260 Fix the documentation of valprint.c:value_print.
7261 * valprint.c (value_print): Update the function description to
7262 mention that the syntax of the output follows the current_language,
7265 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7267 Fix displacement of separate debug info files.
7268 * objfiles.c (objfile_relocate): Rename to ...
7269 (objfile_relocate1): ... here and make it static. Extend the comment.
7270 (objfile_relocate): New function.
7271 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7272 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7273 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7274 allocated using alloca.
7275 * symfile.c (copy_section_addr_info): Remove.
7276 (build_section_addr_info_from_objfile): Make it global. New variables
7277 addr_bit and mask, use them.
7278 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7279 (copy_section_addr_info): Remove.
7281 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7283 Signal unwinder for mips-irix N32.
7284 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7286 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7287 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7288 (SIGCONTEXT_LO_OFF): New macros.
7289 (mips_irix_n32_tramp_frame_init): New function.
7290 (mips_irix_n32_tramp_frame): New static constant.
7291 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7293 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7295 Breakpoint in shared library does not work on mips-irix.
7296 * procfs.c: #include "observer.h".
7297 (procfs_inferior_created): New function, moving here the code
7298 which unsets the syssgi syscall-exit notifications.
7299 (procfs_create_inferior): Remove the code which unsets the syssgi
7300 syscall-exit notifications. It is too early to do this here.
7301 (_initialize_procfs): Attach the procfs_inferior_created observer.
7303 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7305 Wrong return convention for arrays (mips-irix).
7306 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7307 128 bits or smaller are returned the same way as structs
7308 and unions of the the same size.
7310 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7312 Cannot set the PC on mips-irix.
7313 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7314 register number, no the cooked one.
7316 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7318 Error while loading core file on mips-irix.
7319 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7320 if debugging from a core file.
7322 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7324 GDB hangs when attaching to process on mips-irix.
7325 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7326 attaching to a process.
7328 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7330 Use the correct breakpoint instruction on mips-irix.
7331 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7332 containing the correct breakpoint instruction to use on mips-irix.
7333 Use it when the osabi is GDB_OSABI_IRIX.
7335 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7337 -Wunused warning in procfs.c (mips-irix only).
7338 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7339 throughout instead of using praddset and prdelset respectively.
7341 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7343 GDB crash while stepping into function.
7344 * infrun.c (handle_inferior_event): Refetch the current frame
7345 after handling what.main_action, in case that pointer became
7348 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7350 Fix build failure of solaris-hosted cross debuggers.
7351 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7353 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7355 Fix build failure on sparc-solaris.
7356 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7358 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7360 Move some symfile code into subroutines.
7361 * symfile.h (relative_addr_info_to_section_offsets)
7362 (addr_info_make_relative): New prototypes.
7363 * symfile.c (default_symfile_offsets): Move a part to ...
7364 (relative_addr_info_to_section_offsets): ... this new function.
7365 (default_symfile_offsets): Call it.
7366 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7368 (addr_info_make_relative): ... this new function.
7370 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7372 Add from_tty to solib_create_inferior_hook.
7373 * infcmd.c (post_create_inferior): Move solib_add after
7374 solib_create_inferior_hook. Pass from_tty to
7375 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7376 0 from_tty and comment why.
7377 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7378 * linux-nat.c (linux_child_follow_fork): Likewise.
7379 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7380 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7382 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7383 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7384 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7385 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7386 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7387 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7388 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7389 Pass it to svr4_so_ops.solib_create_inferior_hook.
7390 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7392 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7394 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7396 * solib-target.c (solib_target_solib_create_inferior_hook): New
7398 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7399 it to ops->solib_create_inferior_hook.
7400 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7401 Move solib_add after solib_create_inferior_hook, call it now with
7402 from_tty as 0. New comment there.
7403 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7404 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7407 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7410 * infrun.c (handle_inferior_event): Use get_thread_regcache
7411 with events ptid, not get_current_regcache.
7413 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7415 GDB crash with empty executable name (MinGW).
7416 * source.c (openp): Add assert that parameter string is not NULL.
7417 if parameter string is an empty string, then return with a failure
7420 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7422 Get rid of support for VAX Floats.
7423 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7424 (ada_vax_float_print_function): Delete.
7425 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7426 (ada_vax_float_print_function): Delete.
7427 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7428 (ada_print_type): Remove support for VAX floats.
7429 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7431 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7433 * stabsread.c (read_args): Handle zero arguments.
7435 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7437 Cannot find in-tree libiconv.a after reconfigure.
7438 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7439 that we can use, then cache the path to this archive.
7440 * configure: Regenerate.
7442 2010-01-07 Stan Shebs <stan@codesourcery.com>
7444 Make tracepoint operations go through target vector.
7445 * target.h (enum trace_find_type): New enum.
7446 (struct target_ops): New fields to_trace_init,
7447 to_download_tracepoint, to_download_trace_state_variable,
7448 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7449 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7450 to_set_disconnected_tracing.
7451 (target_trace_init): New macro.
7452 (target_download_tracepoint): New macro.
7453 (target_download_trace_state_variable): New macro.
7454 (target_trace_start): New macro.
7455 (target_trace_set_readonly_regions): New macro.
7456 (target_get_trace_status): New macro.
7457 (target_trace_stop): New macro.
7458 (target_trace_find): New macro.
7459 (target_get_trace_state_variable_value): New macro.
7460 (target_set_disconnected_tracing): New macro.
7461 * target.c (update_current_target): Inherit and set defaults for
7462 tracepoint operations.
7463 * tracepoint.c (default_collect): Make globally visible.
7464 (target_is_remote): Remove, along with all calls.
7465 (tvariables_info): Call target_get_trace_state_variable_value.
7466 (remote_set_transparent_ranges): Remove.
7467 (trace_start_command): Call target_trace_init,
7468 target_download_tracepoint, etc.
7469 (download_tracepoint): Remove.
7470 (trace_stop_command): Simplify.
7471 (stop_tracing): Call target_trace_stop.
7472 (get_trace_status): Call target_get_trace_status.
7473 (trace_status_command): Add case for targets that cannot trace.
7474 (finish_tfind_command): Change to take numerical arguments, call
7476 (trace_find_command): Update call to finish_tfind_command.
7477 (trace_find_pc_command): Ditto.
7478 (trace_find_tracepoint_command): Ditto.
7479 (trace_find_line_command): Ditto.
7480 (trace_find_range_command): Ditto.
7481 (trace_find_outside_command): Ditto.
7482 (set_disconnected_tracing_value): Call
7483 target_set_disconnected_tracing.
7484 * remote.c: Add protocol encoding bits from tracepoint.c.
7485 (trace_error): Move from tracepoint.c.
7486 (remote_get_noisy_reply): Ditto.
7487 (free_actions_list_cleanup_wrapper): Ditto.
7488 (free_actions_list): Ditto.
7489 (remote_trace_init): New function.
7490 (remote_download_tracepoint): New function.
7491 (remote_download_trace_state_variable): New function.
7492 (remote_trace_set_readonly_regions): New function.
7493 (remote_trace_start): New function.
7494 (remote_get_trace_status): New function.
7495 (remote_trace_stop): New function.
7496 (remote_trace_find): New function.
7497 (remote_download_trace_state_variable): New function.
7498 (remote_set_disconnected_tracing): New function.
7499 (init_remote_ops): Add tracepoint operations.
7501 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7503 2010-01-07 Tristan Gingold <gingold@adacore.com>
7505 * symfile.c (build_section_addr_info_from_objfile): New function.
7506 (symbol_file_add_separate): Don't use offsets from objfile but
7509 2010-01-06 Stan Shebs <stan@codesourcery.com>
7511 Support disconnected tracing.
7512 * infcmd.c (detach_command): Ask whether to stop tracing.
7513 * cli/cli-cmds.c (quit_command): Ditto.
7514 * breakpoint.h (struct breakpoint): New field number_on_target.
7515 * breakpoint.c (create_tracepoint_from_upload): New function.
7516 (get_tracepoint_by_number_on_target): New function.
7517 * remote.c (struct remote): New field disconnected_tracing.
7518 (remote_disconnected_tracing_feature): New function.
7519 (remote_protocol_features): Add DisconnectedTracing.
7520 (struct uploaded_tp): New struct.
7521 (uploaded_tps): New global.
7522 (get_uploaded_tp): New function.
7523 (find_matching_tracepoint): New function.
7524 (remote_get_tracing_state): New function.
7525 (remote_start_remote): Call it.
7526 * tracepoint.c (disconnected_tracing): New global.
7527 (trace_start_command): Initialize number_on_target.
7528 (stop_tracing): New function, split out from...
7529 (trace_stop_command): Call stop_tracing.
7530 (get_trace_status): New function, split out from...
7531 (trace_status_command): Call get_trace_status, add info on
7532 disconnection behavior.
7533 (disconnect_or_stop_tracing): New function.
7534 (finish_tfind_command): Translate from number on target.
7535 (trace_find_tracepoint_command): Translate to number on target.
7536 (send_disconnected_tracing_value): New function.
7537 (set_disconnected_tracing): New function.
7538 (_initialize_tracepoint): Add disconnected-tracing variable.
7539 * NEWS: Mention disconnected tracing.
7541 2010-01-06 Tristan Gingold <gingold@adacore.com>
7543 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7544 parameter to main_objfile. Iterate on all separate debug objfiles.
7545 * symfile.h (symbol_file_add_separate)
7546 (find_separate_debug_file_by_debuglink): Remove parameter names.
7547 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7548 (reread_symbols): Use free_objfile_separate_debug.
7549 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7551 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7552 (free_objfile_separate_debug): New prototypes.
7553 * objfiles.c (objfile_separate_debug_iterate): New function.
7554 (add_separate_debug_objfile, free_objfile_separate_debug): New
7556 (free_objfile): Use free_objfile_separate_debug. Adjust for
7557 multiple separate debug objfile.
7558 (objfile_has_symbols): Adjust comment. Iterate on all separate
7560 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7562 (lookup_minimal_symbol_text): Ditto.
7563 (lookup_minimal_symbol_by_pc_name): Ditto.
7564 (lookup_minimal_symbol_solib_trampoline): Ditto.
7565 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7568 2010-01-05 Stan Shebs <stan@codesourcery.com>
7570 Add fast tracepoints.
7571 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7572 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7573 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7574 * breakpoint.c (tracepoint_type): New function.
7575 (ALL_TRACEPOINTS): Use it.
7576 (should_be_inserted): Ditto.
7577 (bpstat_check_location): Ditto.
7578 (print_one_breakpoint_location): Ditto.
7579 (user_settable_breakpoint): Ditto.
7580 (set_breakpoint_location_function): Ditto.
7581 (disable_breakpoints_in_shlibs): Ditto.
7582 (delete_trace_command): Ditto.
7583 (print_it_typical): Add bp_fast_tracepoint case.
7584 (bpstat_what): Ditto.
7585 (print_one_breakpoint_location): Ditto.
7586 (allocate_bp_location): Ditto.
7588 (breakpoint_re_set_one): Ditto.
7589 (disable_command): Ditto.
7590 (enable_command): Ditto.
7591 (check_fast_tracepoint_sals): New function.
7592 (break_command_really): Call it.
7593 (ftrace_command): New function.
7594 (_initialize_breakpoint): Add ftrace command.
7595 * gdbarch.sh (fast_tracepoint_valid_at): New.
7596 * gdbarch.h, gdbarch.c: Regenerate.
7597 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7598 (i386_gdbarch_init): Use it.
7599 * remote.c (struct remote_state): New field fast_tracepoints.
7600 (PACKET_FastTracepoints): New packet config type.
7601 (remote_fast_tracepoint_feature): New function.
7602 (remote_protocol_features): Add FastTracepoints.
7603 (remote_supports_fast_tracepoints): New function.
7604 (_initialize_remote): Add FastTracepoints.
7605 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7606 * NEWS: Mention fast tracepoints.
7608 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7610 * gdb-gdb.py: New file.
7612 2010-01-05 Michael Snyder <msnyder@vmware.com>
7614 * infrun.c (handle_inferior_event): Fix typo in comment.
7616 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7618 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7620 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7622 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7624 (s390-linux32-expedite): Define.
7625 (s390-linux64-expedite): Define.
7626 (s390x-linux64-expedite): Define.
7627 * features/s390-acr.xml: New file.
7628 * features/s390-fpr.xml: New file.
7629 * features/s390-core32.xml: New file.
7630 * features/s390-core64.xml: New file.
7631 * features/s390x-core64.xml: New file.
7632 * features/s390-linux32.xml: New file.
7633 * features/s390-linux64.xml: New file.
7634 * features/s390x-linux64.xml: New file.
7635 * features/s390-linux32.c: New generated file.
7636 * features/s390-linux64.c: New generated file.
7637 * features/s390x-linux64.c: New generated file.
7639 * regformats/s390-linux32.dat: New generated file.
7640 * regformats/s390-linux64.dat: New generated file.
7641 * regformats/s390x-linux64.dat: New generated file.
7642 * regformats/reg-s390.dat: Remove.
7643 * regformats/reg-s390x.dat: Remove.
7645 * s390-nat.c: Include "auxv.h" and <elf.h>.
7646 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7647 (s390_target_wordsize): New function.
7648 (s390_auxv_parse): Likewise.
7649 (s390_get_hwcap): Likewise.
7650 (s390_read_description): Likewise.
7651 (_initialize_s390_nat): Install s390_auxv_parse and
7652 s390_read_description.
7654 * s390-tdep.c: Include "features/s390-linux32.c",
7655 "features/s390-linux64.c", and "features/s390x-linux64.c".
7656 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7657 (s390_register_call_saved): New function.
7658 (s390_register_name): Remove.
7659 (s390_register_type): Remove.
7660 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7661 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7662 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7663 (s390_pseudo_register_name): New function.
7664 (s390_pseudo_register_type): New function.
7665 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7666 Handle full GPR pesudos and varying pseudo register numbers.
7667 (s390_pseudo_register_write): Likewise
7668 (s390x_pseudo_register_read): Remove.
7669 (s390x_pseudo_register_write): Likewise.
7670 (s390_register_group): Remove.
7671 (s390_pseudo_register_group): New function.
7672 (s390_regmap_gregset): Add GPR upper halves.
7673 (s390x_regmap_gregset): Likewise.
7674 (s390_regmap_fpregset): Likewise.
7675 (s390_regmap_upper): New global variable.
7676 (s390_upper_regset): New global variable.
7677 (s390_upper_regset_sections): New global variable.
7678 (s390_regset_from_core_section): Handle GPR upper halves.
7679 (s390_core_read_description): New function.
7680 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7681 register information. Handle varying pseudo register numbers.
7682 (s390_backchain_frame_unwind_cache): Likewise.
7683 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7684 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7685 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7686 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7687 Handle varying pseudo register numbers.
7688 (s390_unwind_pc): Handle varying pseudo register numbers.
7689 (s390_dwarf2_prev_register): New function.
7690 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7691 register information. Handle varying pseudo register numbers.
7692 Install s390_dwarf2_prev_register to unwind full GPRs.
7693 (s390_gdbarch_init): Handle target descriptions. Assign varying
7694 pseudo register numbers. Install s390_adjust_frame_regnum.
7695 (_initialize_s390_tdep): Initialize target descriptions.
7697 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7698 (S390_NUM_REGS): Redefine to include upper half registers.
7699 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7700 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7701 (tdesc_s390_linux32): Add declaration.
7702 (tdesc_s390_linux64): Likewise.
7703 (tdesc_s390x_linux64): Likewise.
7705 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7707 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7708 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7709 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7710 (ppc_linux_vmx_regset_sections): Likewise.
7711 (ppc_linux_fp_regset_sections): Likewise.
7713 * corelow.c (get_core_register_section): Constify arguments.
7714 (get_core_registers): Use gdbarch_core_regset_sections instead
7715 of hard-coded platform-specific register section names.
7717 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7719 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7720 a register, assume the least-significant part is used.
7721 (write_pieced_value): Likewise.
7723 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7725 * printcmd.c: Include "arch-utils.h".
7726 (do_one_display): Re-parse expression if current architecture changed.
7728 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7729 Joel Brobecker <brobecker@adacore.com>
7731 * gdbtypes.c (check_typedef): New comment on type length.
7732 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7733 comment on type length.
7734 (value_primitive_field): Keep the original TYPE value, new comment.
7736 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7738 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7739 p_start. Change != comparisons to > and < comparisons.
7741 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7743 * cli/cli-script.c (process_next_line): Check P2 overrun.
7745 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7747 Update the copyright hearder to add year 2010 for most GDB files.
7749 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7751 Fix build failure in inf-ptrace.c.
7752 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7754 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7756 * top.c (print_gdb_version): Update copyright year.
7758 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7760 Fix break *FUN'address thread NUM.
7761 * ada-lex.l (task): Expand rule to also match the thread keyword.
7763 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7765 Fix break *FUN'address task NUM.
7766 * ada-lex.l (task): New rule.
7767 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7768 been built before using it.
7770 For older changes see ChangeLog-2009.
7776 version-control: never