1 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4 hosts where CORE_ADDR is long long.
6 2010-06-25 Tom Tromey <tromey@redhat.com>
9 * python/python.c (execute_gdb_command): Add keywords. Accept
11 (struct restore_ui_file_closure): New.
12 (restore_ui_file): New function.
13 (make_cleanup_restore_ui_file): Likewise.
14 (GdbMethods) <execute>: Update.
16 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
18 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
19 during inferior call stack frame setup.
21 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
23 * solib-spu.c: Include "exception.h".
24 (ocl_program_data_key): New variable.
25 (append_ocl_sos): New function.
26 (ocl_enable_break): Likewise.
27 (spu_current_sos): Call append_ocl_sos.
28 (spu_solib_loaded): Call ocl_enable_break.
29 (_initialize_spu_solib): Register ocl_program_data_key.
31 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
33 * cp-support.c (reset_directive_searched): New function.
34 (make_symbol_overload_list_using): Prevent recursive calls.
36 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
38 * printcmd.c (print_variable_and_value): Print error message on
41 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
43 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
45 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
47 (dwarf_expr_push): Change input type to ULONGEST.
48 (dwarf_expr_fetch): Change return type to ULONGEST.
49 (dwarf_expr_fetch_address): Add prototype.
50 (dwarf2_read_address): Remove prototype.
51 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
52 Truncate stack values to ctx->addr_size bytes.
53 (dwarf_expr_fetch): Change return value to ULONGEST.
54 (dwarf_expr_fetch_address): New function.
55 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
56 when appropriate. Update for struct dwarf_expr_piece changes.
57 (dwarf2_read_address): Remove.
58 (unsigned_address_type): Remove.
59 (signed_address_type): Remove.
60 (execute_stack_op): Use dwarf_expr_fetch_address instead of
61 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
62 values. Perform operations on ULONGEST instead of on GDB values,
63 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
64 values and DW_OP_deref results as unsigned integers.
65 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
67 (write_pieced_value): Likewise.
68 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
69 dwarf_expr_fetch when appropriate.
70 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
71 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
72 instead of dwarf_expr_fetch when appropriate.
74 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
76 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
78 2010-06-24 Joel Brobecker <brobecker@adacore.com>
80 * python/python.c (_initialize_python): Add new "constant"
81 PYTHONDIR in gdb module. Insert this path at the head of
82 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
83 exec its __init__.py script if it exists in that directory.
85 2010-06-24 Kevin Buettner <kevinb@redhat.com>
87 * rx-tdep.c (RX_ACC_REGNUM): Define.
88 (RX_NUM_REGS): Redefine to 26.
89 (rx_register_name): Add register "acc". Change order of several
90 registers. Change name of "vct" register to "fintv" to match RX
92 (rx_register_type): Add case for RX_ACC_REGNUM.
94 2010-06-24 Tom Tromey <tromey@redhat.com>
96 * psymtab.c (lookup_partial_symbol): Mark definition as static.
98 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
99 Tom Tromey <tromey@redhat.com>
101 Fix GDB startup on readonly filesystem.
102 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
104 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
105 Pedro Alves <pedro@codesourcery.com>
108 * breakpoint.c (handle_jit_event): New function.
109 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
110 jit, err, table and bs_class. New variables shlib_event, jit_event,
111 this_action and bptype. Change bs_class assignments to this_action
112 assignments. new unhandled bptype internal error. Move here
113 shlib_event and jit_event handling from handle_inferior_event.
114 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
115 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
116 BPSTAT_WHAT_CHECK_JIT.
117 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
118 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
119 (handle_inferior_event): Reinitialize frame and gdbarch after
120 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
121 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
122 gdbarch when frame gets reinitialized.
124 2010-06-24 Hui Zhu <teawater@gmail.com>
126 * printcmd.c (ui_printf): New function.
127 (printf_command): Call ui_printf.
128 (_initialize_printcmd): New command "eval".
130 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
132 * infrun.c (handle_inferior_event): Handle presence of single-step
133 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
134 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
135 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
136 * breakpoint.c (detach_single_step_breakpoints): New function.
137 (detach_breakpoints): Call it.
138 (cancel_single_step_breakpoints): New function.
139 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
141 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
142 (spu_gdbarch_init): Install it.
144 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
146 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
147 * configure: Regenerate.
149 2010-06-22 Hui Zhu <teawater@gmail.com>
151 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
152 (i386_process_record): Ditto.
153 * record.c (record_memory_query): New variable.
154 (_initialize_record): New command "set record memory-query".
155 * record.h (record_memory_query): New extern.
157 2010-06-21 Doug Evans <dje@google.com>
159 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
160 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
161 (i386_syscall_p): Change type of lengthp to int.
162 (i386_displaced_step_fixup): Handle kernels that run one past a
164 * i386-linux-tdep.c (i386_linux_init_abi): Use
165 i386_displaced_step_copy_insn instead of
166 simple_displaced_step_copy_insn.
168 2010-06-21 Tom Tromey <tromey@redhat.com>
170 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
171 (dwarf_type_encoding_name): Likewise.
173 2010-06-21 Tom Tromey <tromey@redhat.com>
175 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
176 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
177 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
178 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
179 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
180 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
181 * dwarf2read.c (tag_type_to_type): Create a new error type on
183 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
184 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
186 2010-06-21 Michael Snyder <msnyder@vmware.com>
188 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
189 not add_abbrev_prefix_cmd, for "enable breakpoints".
191 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
193 * dwarf2loc.c (find_location_expression): Add relocation offset
194 to base-address-selection entry base addresses. Read addresses
195 (and offsets) as signed/unsigned integers, depending on the
196 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
197 (loclist_describe_location): Likewise.
198 (disassemble_dwarf_expression): Read DW_OP_addr operand as
199 unsigned integer. Do not call dwarf2_read_address.
200 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
202 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
204 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
205 value instead of hard-coded SPU_LS_SIZE.
206 (spu_software_single_step): Likewise.
207 * spu-tdep.h (SPU_LS_SIZE): Remove.
209 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
211 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
212 limit on local store memory accesses.
213 * spu-linux-nat.c (spu_xfer_partial): Likewise.
214 * spu-tdep.c (spu_lslr): Remove.
215 (spu_pointer_to_address): Do not truncate addresses.
216 (spu_integer_to_address): Likewise.
217 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
218 * spu-tdep.h: Add comments.
219 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
220 (SPU_OVERLAY_LMA): Define.
222 2010-06-18 Stan Shebs <stan@codesourcery.com>
224 * osdata.c (get_osdata): Warn separately if target does not report
226 (info_osdata_command): Allow empty type, report error if target
227 does not return available types of OS data.
228 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
229 types if no annex supplied.
231 * thread.c (thread_id_make_value): Make a value representing the
233 (_initialize_thread): Create $_thread.
235 2010-06-17 Joel Brobecker <brobecker@adacore.com>
237 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
238 last local variable declaration. No real code change.
240 2010-06-17 Tom Tromey <tromey@redhat.com>
242 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
243 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
246 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
247 Jan Kratochvil <jan.kratochvil@redhat.com>
249 * breakpoint.c: Include parser-defs.h.
250 (watchpoint_exp_is_const): New function.
251 (watch_command_1): Call watchpoint_exp_is_const to check
252 if the expression is constant.
254 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
256 * configure.ac: Check for RDYNAMIC also for cross builds.
257 * configure: Regenerate.
259 2010-06-15 Pedro Alves <pedro@codesourcery.com>
261 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
262 (SFILES): Remove solib-null.c, add solib-target.c.
263 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
264 (ALLDEPFILES): Remove solib-target.c.
265 * solib-target.c (_initialize_solib_target): Set
266 current_target_so_ops to solib_target_so_ops if not already set.
267 * solib-null.c: Delete.
269 2010-06-14 Pedro Alves <pedro@codesourcery.com>
271 * NEWS: Mention GDBserver's JIT compilation of tracepoint
274 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
276 * cp-valprint.c (cp_print_static_field): Members of
277 dont_print_stat_array_obstack are of type "struct type *".
278 (_initialize_cp_valprint): Likewise.
280 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
282 * frame.c (frame_register_unwind): Do not access contents
283 of "optimized out" unwound register value.
285 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
287 * ada-lang.h (ada_print_type): Make varstring const.
288 * ada-typeprint.c (print_func_type): Make name const.
289 (ada_print_type): Make varstring const.
290 * c-lang.h (c_print_type): Make varstring const.
291 * c-typeprint.c (c_print_type): Likewise.
292 * f-lang.h (f_print_type): Likewise.
293 * f-typeprint.c (f_print_type): Likewise.
294 * jv-lang.h (java_print_type): Likewise.
295 * jv-typeprint.c (java_print_type): Likewise.
296 * language.c (unk_lang_print_type): Likewise.
297 * language.h (struct language_defn) <la_print_type>: Likewise.
298 * m2-lang.h (m2_print_type): Likewise.
299 * m2-typeprint.c (m2_print_type): Likewise.
300 * p-lang.h (pascal_print_type): Likewise.
301 * p-typeprint.c (pascal_print_type): Likewise.
303 2010-06-11 Stan Shebs <stan@codesourcery.com>
305 Add per-operation permission flags.
307 * target.h (struct target_ops): New method to_set_permissions.
308 (target_set_permissions): New macro.
309 (target_insert_breakpoint): Change macro to function.
310 (target_remove_breakpoint): Ditto.
311 (target_stop): Ditto.
312 (may_write_registers): Declare.
313 (may_write_memory): Declare.
314 (may_insert_breakpoints): Declare.
315 (may_insert_tracepoints): Declare.
316 (may_insert_fast_tracepoints): Declare.
318 * target.c (may_write_registers, may_write_registers_1): New globals.
319 (may_write_memory, may_write_memory_1): New globals.
320 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
321 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
322 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
324 (may_stop, may_stop_1): New global.
325 (target_xfer_partial): Test for write permission.
326 (target_store_registers): Ditto.
327 (target_insert_breakpoint): New function.
328 (target_remove_breakpoint): New function.
329 (target_stop): New function.
330 (_initialize_targets): Add new set/show variables.
331 (set_write_memory_permission): New function.
332 (update_target_permissions): New function.
333 (set_target_permissions): New function.
334 (update_current_target): Default to_set_permissions.
335 (_initialize_targets): Use new globals and setter function.
336 * tracepoint.c (start_tracing): Test for permission.
337 * inferior.h (update_observer_mode): Declare.
338 * infrun.c (non_stop_1): Define earlier.
339 (observer_mode, observer_mode_1): New globals.
340 (set_observer_mode, show_observer_mode): New functions.
341 (update_observer_mode): New function.
342 (_initialize_infrun): Define "set observer" command.
343 * remote.c (PACKET_QAllow): New optional packet.
344 (remote_protocol_features): Add QAllow.
345 (remote_set_permissions): New function.
346 (remote_start_remote): Call it.
347 (init_remote_ops): Add it to target vector.
348 (_initialize_remote): Add config command for QAllow.
350 2010-06-11 Tom Tromey <tromey@redhat.com>
352 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
353 DW_AT_vtable_elem_location even when GCC extension is seen.
355 2010-06-11 Tom Tromey <tromey@redhat.com>
357 PR gdb/9977, PR exp/11636:
358 * value.h (value_offset): Update.
359 (struct lval_funcs) <check_validity>: New field.
360 <copy_closure>: Make argument const.
361 (value_computed_closure): Update.
362 (value_contents_for_printing): Declare.
363 (value_bits_valid): Likewise.
364 (val_print): Likewise.
365 (set_value_component_location): Update.
366 (value_entirely_optimized_out): Declare.
367 * value.c (value_offset): Argument now const.
368 (require_not_optimized_out): New function.
369 (value_contents_for_printing): New function.
370 (value_contents_all): Call require_not_optimized_out.
371 (value_contents): Likewise.
372 (value_bits_valid): New function.
373 (value_computed_closure): Argument now const.
374 (set_value_component_location): Make 'whole' argument const.
375 (value_entirely_optimized_out): New function.
376 (value_bitsize): Argument now 'const'.
377 (value_bitpos): Likewise.
378 (value_type): Likewise.
379 * valprint.h (val_print_array_elements): Update.
380 * valprint.c (val_print): Add 'val' argument. Use
381 valprint_check_validity.
382 (valprint_check_validity): New function.
383 (value_check_printable): Use value_entirely_optimized_out.
384 (common_val_print): Update.
385 (value_print): Likewise.
386 (val_print_array_elements): Add 'val' argument.
387 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
388 value_bits_valid. Reinit frame cache for lval_computed.
389 * sh64-tdep.c (sh64_do_register): Update.
390 * scm-valprint.c (scm_val_print): Add 'val' argument.
391 * scm-lang.h (scm_val_print): Update.
392 * python/python.h (apply_val_pretty_printer): Update.
393 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
394 argument. Call set_value_component_location.
395 * printcmd.c (print_scalar_formatted): Update.
396 * p-valprint.c (pascal_val_print): Add 'val' argument.
397 (pascal_object_print_value_fields): Likewise.
398 (pascal_object_print_value): Likewise.
399 (pascal_object_print_static_field): Update.
400 * p-lang.h (pascal_val_print): Update.
401 (pascal_object_print_value_fields): Update.
402 * mt-tdep.c (mt_registers_info): Update.
403 * mi/mi-main.c (get_register): Update.
404 (mi_cmd_data_evaluate_expression): Use common_val_print.
405 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
406 (m2_print_unbounded_array): Likewise.
407 (m2_val_print): Likewise.
408 * m2-lang.h (m2_val_print): Update.
409 * language.h (struct language_defn) <la_val_print>: Add 'val'
411 (LA_VAL_PRINT): Likewise.
412 * language.c (unk_lang_val_print): Add 'val' argument.
413 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
414 (java_val_print): Likewise.
415 * jv-lang.h (java_val_print): Add 'val' argument.
416 * infcmd.c (default_print_registers_info): Update.
417 * f-valprint.c (f77_print_array_1): Add 'val' argument.
418 (f77_print_array): Likewise.
419 (f_val_print): Likewise.
420 * f-lang.h (f_val_print): Add 'val' argument.
421 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
423 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
424 set_value_optimized_out.
425 (write_pieced_value): Use value_bitsize and value_bitpos.
426 <default>: Don't exit loop.
427 (check_pieced_value_validity): New function.
428 (pieced_value_funcs): Reference check_pieced_value_validity,
429 check_pieced_value_invalid.
430 (copy_pieced_value_closure): Update.
431 (check_pieced_value_bits): New function.
432 (check_pieced_value_invalid): New function.
433 * d-valprint.c (dynamic_array_type): Add 'val' argument.
434 (d_val_print): Likewise.
435 * d-lang.h (d_val_print): Update.
436 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
437 (cp_print_value_fields_rtti): Likewise.
438 (cp_print_value): Likewise.
439 (cp_print_static_field): Update.
440 * c-valprint.c (c_val_print): Add 'val' argument.
441 (c_value_print): Update.
442 * c-lang.h (c_val_print): Update.
443 (cp_print_value_fields): Likewise.
444 (cp_print_value_fields_rtti): Likewise.
445 * ada-valprint.c (struct ada_val_print_args): Remove.
446 (val_print_packed_array_elements): Add 'val' argument.
447 (ada_val_print): Likewise. Rewrite.
448 (ada_val_print_stub): Remove.
449 (ada_val_print_array): Add 'val' argument.
450 (ada_val_print_1): Likewise.
451 (print_variant_part): Likewise.
452 (ada_value_print): Update.
453 (print_record): Add 'val' argument.
454 (print_field_values): Likewise.
455 * ada-lang.h (ada_val_print): Update.
457 2010-06-11 Tom Tromey <tromey@redhat.com>
459 * vec.h (VEC_cleanup): New macro.
460 (DEF_VEC_ALLOC_FUNC_I): Update.
461 (DEF_VEC_ALLOC_FUNC_P): Likewise.
462 (DEF_VEC_ALLOC_FUNC_O): Likewise.
463 * dwarf2loc.c (struct axs_var_loc): Remove.
464 (unimplemented): New function.
465 (translate_register): Likewise.
466 (access_memory): Likewise.
467 (compile_dwarf_to_ax): Likewise.
468 (dwarf2_tracepoint_var_loc): Remove.
469 (dwarf2_tracepoint_var_access): Likewise.
470 (dwarf2_tracepoint_var_ref): Likewise.
471 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
472 (loclist_tracepoint_var_ref): Likewise.
473 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
474 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
475 require_composition. No longer static.
476 (execute_stack_op): Update.
477 * ax-gdb.h (trace_kludge): Declare.
479 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
481 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
482 (should_be_inserted): Return zero also on NULL OWNER.
483 (breakpoint_program_space_exit): New OWNER comment.
484 (insert_breakpoint_locations): Extend comment for OWNER.
485 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
486 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
488 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
489 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
490 (bpstat_check_location): New assert on OWNER.
491 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
492 and B initializations to the code block. New assert on them.
493 (print_one_breakpoint_location): New OWNER comment.
494 (watchpoint_locations_match): Assert on OWNER.
495 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
496 initializations to the code block. New assert on OWNER.
497 (set_breakpoint_location_function): New assert on OWNER.
498 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
499 (bp_location_compare, update_global_location_list)
500 (update_global_location_list): New OWNER comment.
502 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
504 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
506 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
508 * config/nm-linux.h (struct target_ops): Remove forward declaration.
509 (lin_thread_get_thread_signals): Remove prototype.
510 (GET_THREAD_SIGNALS): Remove.
511 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
512 * linux-thread-db.c (check_thread_signals): Directly call
513 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
515 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
517 * gregset.h (GDB_FPXREGSET_T): Remove.
518 (gdb_fpxregset_t): Likewise.
519 (supply_fpxregset): Remove prototype.
520 (fill_fpxregset): Likewise.
521 * i386-linux-nat.c (supply_fpxregset): Remove.
522 (fill_fpxregset): Likewise.
523 (fetch_fpxregs): Inline supply_fpxregset call.
524 (store_fpxregs): Inline fill_fpxregset call.
526 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
527 * config/i386/nm-linux.h: Remove file.
529 2010-06-09 Michael Snyder <msnyder@vmware.com>
531 * target.c (update_current_target): Fix spelling error in comment.
532 (target_mourn_inferior): Fix spelling error in error message.
534 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
536 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
537 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
539 2010-06-08 Michael Snyder <msnyder@vmware.com>
541 * remote.c (remote_close): Set inferior_ptid to null_ptid.
543 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
545 * configure.ac <"${have_libpython}" != no>: New workaround of
547 * configure: Regenerate.
549 2010-06-08 Hui Zhu <teawater@gmail.com>
551 * record.c (record_wait): Move signal out of replay code.
553 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
556 * dwarf2-frame.c (no_dwarf_call): New function.
557 (execute_stack_op): Set CTX->DWARF_CALL.
558 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
559 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
560 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
561 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
562 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
563 (needs_frame_dwarf_call): New function.
564 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
565 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
566 Update the comment. Move variables die, offset and error call to ...
567 (follow_die_ref): ... a new function.
568 (dwarf2_fetch_die_location_block): New function.
569 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
571 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
573 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
574 (dwarf_expr_tls_address): Use per_cu instead of objfile.
575 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
576 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
578 (struct needs_frame_baton): New field per_cu.
579 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
580 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
582 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
584 * cp-support.c (make_symbol_overload_list_namespace): Only search
585 static and global blocks.
586 (make_symbol_overload_list_block): New function.
587 (make_symbol_overload_list): Separate namespace search from block
589 (make_symbol_overload_list_qualified): Use
590 make_symbol_overload_list_block.
592 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
594 * value.h: Created oload_search_type enum.
595 (find_overload_match): Use oload_search_type enum.
596 * valops.c (find_overload_match): Support combined member and
598 * eval.c (evaluate_subexp_standard): Calls to
599 find_overload_match now use oload_search_type enum.
600 (oload_method_static): Verify index is a proper value.
601 * valarith.c (value_user_defined_cpp_op): Search for and handle
602 both member and non-member operators.
603 (value_user_defined_cpp_op): New function.
604 (value_user_defined_op): New function.
605 (value_x_unop): Use value_user_defined_op.
606 (value_x_binop): Ditto.
607 * cp-support.c (make_symbol_overload_list_using): Added block
609 Add check for namespace aliases and imported declarations.
611 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
613 * breakpoint.h (owner): Extend the comment.
615 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
617 Clear stale specific bp_location from former whole breakpoint.
618 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
620 (free_bp_location): ... here. Rename there the called function to
621 bpstat_remove_bp_location_callback.
622 (bpstat_remove_breakpoint_callback): Rename to ...
623 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
624 to struct bp_location. Change the called function to
625 bpstat_remove_bp_location. Create new declaration for the function.
626 (bpstat_remove_breakpoint): Rename to ...
627 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
628 code for the new parameter type.
630 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
632 * README: Make version-agnostic.
634 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
636 Fix duplicate types for single DIE.
637 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
639 (read_array_type): Remove type initialization. Recheck get_die_type
640 after initial die_type. Move set_die_type before set_descriptive_type.
641 (read_set_type): New variable domain_type. Recheck get_die_type after
642 initial die_type. Move attr initialization later.
643 (read_tag_pointer_type, read_tag_reference_type): New variable
644 target_type. Recheck get_die_type after initial die_type.
645 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
646 die_type and die_containing_type.
647 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
648 Recheck get_die_type after initial die_type.
649 (read_subrange_type): Recheck get_die_type after initial die_type.
650 Move set_die_type before set_descriptive_type.
651 (set_die_type): Extend the function comment. Call complaint if DIE has
652 some type already set.
654 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
656 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
657 for current naming of thread groups (iN, not N).
659 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
661 * ada-lang.c (ada_operator_length): Constify `struct expression'.
662 * parse.c (operator_length): Likewise.
663 (operator_length_standard): Likewise.
664 * parser-defs.h (operator_length): Likewise.
665 (operator_length_standard): Likewise.
666 (struct exp_descriptor <operator_length>): Likewise.
668 2010-06-04 Doug Evans <dje@google.com>
670 Add support for enabling/disabling individual pretty-printers.
671 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
672 * python/python-internal.h (gdbpy_enabled_cst): Declare.
673 * python/python.c (gdbpy_enabled_cst): Define.
674 (_initialize_python): Initialize gdbpy_enabled_cst.
677 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
679 * breakpoint.c (update_global_location_list): Fix comment typo.
681 2010-06-04 Hui Zhu <teawater@gmail.com>
683 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
685 2010-06-03 Doug Evans <dje@google.com>
687 * configure.ac: Don't fail if python is unusable when
688 configured with --with-python=auto.
689 * configure: Regenerate.
691 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
693 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
695 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
697 * valprint.h (get_array_bounds): Change low and high parameter types
699 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
701 (val_print_array_elements): Adapt to change above.
702 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
703 * p-valprint.c (pascal_val_print): Likewise.
705 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
707 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
708 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
711 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
713 Support DW_TAG_module as separate namespaces.
714 * dwarf2read.c (typename_concat): New parameter physname.
715 (read_module_type): New function and declaration.
716 (scan_partial_symbols): Scan also DW_TAG_module children.
717 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
718 to typename_concat backward compatible physname value 0.
719 (partial_die_full_name, read_namespace_type): Pass to typename_concat
720 backward compatible physname value 0.
721 (add_partial_module, read_module): Remove FIXME comment.
722 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
723 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
724 DIEs under DW_TAG_module.
725 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
726 DW_AT_MIPS_linkage_name first, extend it for language_fortran
727 && physname and return there instead of just setting NAME. Extend
728 the main block for language_fortran. Pass physname parameter to the
729 typename_concat call.
730 (read_import_statement, read_func_scope, get_scope_pc_bounds)
731 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
732 (new_symbol): Fill in cplus_specific.demangled_name if it is still
733 missing from SYMBOL_SET_NAMES in the language_fortran case.
734 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
736 (read_type_die) <DW_TAG_module>: New.
737 (MAX_SEP_LEN): Increase to 7.
738 (typename_concat): New parameter physname. New variable lead. Support
739 also language_fortran.
740 * f-exp.y (yylex): Consider : also as a symbol name character class.
741 * f-lang.c: Include cp-support.h.
742 (f_word_break_characters, f_make_symbol_completion_list): New functions.
743 (f_language_defn): Use cp_lookup_symbol_nonlocal,
744 f_word_break_characters and f_make_symbol_completion_list.
745 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
746 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
747 * symtab.c (symbol_init_language_specific): Support language_fortran.
748 (symbol_find_demangled_name): New comment on language_fortran.
749 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
750 for language_fortran.
751 (lookup_symbol_aux_local): Check imports also for language_fortran.
752 (default_make_symbol_completion_list): Rename to ...
753 (default_make_symbol_completion_list_break_on): ... this name. New
754 parameter break_on, use it.
755 (default_make_symbol_completion_list): New stub.
756 * symtab.h (default_make_symbol_completion_list_break_on): New
759 2010-06-02 Joel Brobecker <brobecker@adacore.com>
761 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
764 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
766 * dwarf2read.c (typename_concat): Add const to the variable sep.
768 2010-06-02 Tom Tromey <tromey@redhat.com>
770 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
771 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
772 type is const. Add 'def' argument. Add missing operators, remove
774 (decode_locdesc): Update.
775 (dwarf2_always_disassemble): New global.
776 (show_dwarf2_always_disassemble): New function.
777 (_initialize_dwarf2_read): Add always-disassemble.
778 (dwarf2_per_cu_offset_size): New function.
779 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
780 (piece_end_p): New function.
781 (locexpr_describe_location_piece): Replace 'size' argument with
782 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
783 some constants. Remove errors.
784 (disassemble_dwarf_expression): New function.
785 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
786 Add 'offset_size' argument.
787 (loclist_describe_location): Change output formatting.
788 * dwarf2expr.h (dwarf_stack_op_name): Declare.
790 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
792 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
795 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
797 * dwarf2read.c (read_subrange_type): Handle missing base type
798 according to Dwarf-2 specifications.
800 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
802 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
804 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
805 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
806 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
807 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
808 UNOP_CHMAX, UNOP_CHMIN.
809 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
810 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
811 UNOP_CHMIN>: Remove opcodes.
813 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
815 * dwarf2read.c (read_func_scope): Do not complain for
816 external function if bounds are not found.
818 2010-06-01 Pedro Alves <pedro@codesourcery.com>
820 * NEWS: Mention gdbserver fast tracepoints support.
822 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
824 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
826 (windows_set_console_info): New function.
827 (windows_create_inferior): Call windows_set_console_info
828 if NEW_CONSOLE is true.
829 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
830 (_initialize_loadable): Initialize GetConsoleFontSize and
831 GetCurrentConsoleFont.
833 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
835 * Makefile.in (RDYNAMIC): New.
836 (SFILES): Add proc-service.list.
837 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
838 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
839 * config/arm/linux.mh: Likewise.
840 * config/i386/linux.mh: Likewise.
841 * config/i386/linux64.mh: Likewise.
842 * config/ia64/linux.mh: Likewise.
843 * config/m32r/linux.mh: Likewise.
844 * config/m68k/linux.mh: Likewise.
845 * config/mips/linux.mh: Likewise.
846 * config/pa/linux.mh: Likewise.
847 * config/powerpc/linux.mh: Likewise.
848 * config/powerpc/ppc64-linux.mh: Likewise.
849 * config/s390/s390.mh: Likewise.
850 * config/sparc/linux.mh: Likewise.
851 * config/sparc/linux64.mh: Likewise.
852 * config/xtensa/linux.mh: Likewise.
853 * configure.ac: New RDYNAMIC on native host and GCC.
854 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
855 * configure: Regenerate.
856 * proc-service.list: New.
858 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
860 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
863 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
865 * linux-nat.c (linux_nat_wait_1): Do not call
866 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
867 TARGET_WAITKIND_SIGNALLED.
869 2010-05-27 Joel Brobecker <brobecker@adacore.com>
871 * ada-lang.c (ada_inferior_data): New struct.
872 (ada_inferior_data): New static global.
873 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
874 (ada_get_tsd_type): New functions.
875 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
876 to look the tsd type up.
877 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
878 event. Set ada_inferior_data.
880 2010-05-27 Pedro Alves <pedro@codesourcery.com>
882 * remote.c (unpack_varlen_hex): Remove forward declaration.
883 (remote_console_output): Make static, and add forward declaration.
884 * remote.h: Drop FIXME comment.
885 (unpack_varlen_hex): Declare.
886 (remote_console_output, remote_cisco_objfile_relocate)
887 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
889 * tracepoint.c: Include "remote.h".
890 (unpack_varlen_hex): Delete declaration.
892 2010-05-27 Tom Tromey <tromey@redhat.com>
894 * dwarf2loc.c (struct piece_closure) <refc>: New field.
895 (allocate_piece_closure): Initialize refc.
896 (copy_pieced_value_closure): Use refc.
897 (free_pieced_value_closure): Likewise.
899 2010-05-27 Tom Tromey <tromey@redhat.com>
901 * arm-tdep.c (push_stack_item): 'contents' now const.
902 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
903 value_contents_writeable. Introduce new temporary.
905 2010-05-27 Tom Tromey <tromey@redhat.com>
907 * findcmd.c (parse_find_args): Use value_contents, not
910 2010-05-27 Tom Tromey <tromey@redhat.com>
912 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
913 const. Use value_contents, not value_contents_writeable.
915 2010-05-27 Joel Brobecker <brobecker@adacore.com>
917 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
918 by call to value_contents.
920 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
922 * MAINTAINERS: Add myself for write after approval privileges.
924 2010-05-26 Doug Evans <dje@google.com>
926 Allow python to find its files if moved from original location.
927 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
928 (GDB_AC_WITH_DIR): Call it.
929 * configure.ac: Define WITH_PYTHON_PATH if we can find the
930 python installation directory.
931 * config.in: Regenerate.
932 * configure: Regenerate.
933 * defs.h (python_libdir): Declare.
934 * main.c (python_libdir): Define.
935 (captured_main): Initialize python_libdir.
936 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
937 call Py_SetProgramName to make sure python can find its libraries
940 * configure.ac: Try to use python's distutils to fetch compilation
942 * configure: Regenerate.
943 * python/python-config.py: New file.
945 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
947 * ser-tcp.c (net_open): Check error return from socket() call by its
948 equality to -1 not by it being negative.
949 (net_close): Likewise.
951 2010-05-26 Pedro Alves <pedro@codesourcery.com>
953 * NEWS: Mention the `qRelocInsn' feature.
954 * gdbarch.sh (relocate_instruction): New.
955 * amd64-tdep.c (rip_relative_offset): New.
957 (amd64_relocate_instruction): New.
958 (amd64_init_abi): Install it.
959 * i386-tdep.c (append_insns): New.
960 (i386_relocate_instruction): New.
961 (i386_gdbarch_init): Install it.
962 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
963 * gdbarch.h, gdbarch.c: Regenerate.
965 2010-05-26 Tom Tromey <tromey@redhat.com>
967 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
968 (struct dwarf2_loclist_baton) <data>: Likewise.
969 * dwarf2loc.c (find_location_expression): Constify return type.
970 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
971 (dwarf2_loc_desc_needs_frame): Likewise.
972 (loclist_read_variable): Constify.
973 (loclist_describe_location): Likewise.
974 (loclist_tracepoint_var_ref): Likewise.
976 2010-05-25 Tom Tromey <tromey@redhat.com>
978 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
979 (dwarf_expr_frame_base_1): Likewise.
980 (read_pieced_value): Update.
981 (needs_frame_frame_base): Constify.
982 (dwarf2_tracepoint_var_loc): Likewise.
983 (dwarf2_tracepoint_var_access): Likewise.
984 (locexpr_describe_location_piece): Likewise.
985 (locexpr_describe_location_1): Likewise.
986 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
989 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
990 (dwarf_expr_eval, read_uleb128, read_sleb128)
991 (dwarf2_read_address): Update.
992 * dwarf2expr.c (dwarf_expr_eval): Constify.
993 (read_uleb128): Likewise.
994 (read_sleb128): Likewise.
995 (dwarf2_read_address): Likewise.
996 (require_composition): Likewise.
997 (execute_stack_op): Likewise.
998 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
1000 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
1002 (no_get_frame_base): Constify.
1003 (execute_stack_op): Likewise.
1004 (execute_cfa_program): Likewise.
1005 (read_encoded_value): Likewise.
1007 2010-05-25 Doug Evans <dje@google.com>
1009 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
1011 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
1012 * event-loop.c: ... here.
1013 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
1014 `error' for clarity.
1015 (tui_getc): Pass correct value for `error' parameter to
1016 tui_readline_output.
1018 Add python gdb.GdbError and gdb.string_to_argv.
1019 * NEWS: Document them.
1020 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
1021 the exception is gdb.GdbError. Print a second traceback if there's
1022 an error computing the error message.
1023 (gdbpy_string_to_argv): New function.
1024 * python/py-utils.c (gdbpy_obj_to_string): New function.
1025 (gdbpy_exception_to_string): New function.
1026 * python/python-internal.h (gdbpy_string_to_argv): Declare.
1027 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
1028 (gdbpy_gdberror_exc): Declare.
1029 * python/python.c (gdbpy_gdberror_exc): New global.
1030 (_initialize_python): Initialize gdbpy_gdberror_exc and create
1032 (GdbMethods): Add string_to_argv.
1034 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1036 * windows-nat.c (display_selector): Call GetLastError to give better
1037 failure explanation.
1039 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1041 * config.in: Regenerate.
1043 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1046 * target.c (push_target): Return only void. Remove the return value
1048 * target.h (push_target): Return only void.
1050 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1052 Update gnulib from latest git.
1053 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1055 * gnulib/memcmp.c: Removed.
1056 * gnulib/memchr.valgrind: New.
1057 * gnulib/stddef.in.h: New.
1058 * gnulib/Makefile.am: Updated.
1059 * gnulib/memchr.c: Updated.
1060 * gnulib/memmem.c: Updated.
1061 * gnulib/stdint.in.h: Updated.
1062 * gnulib/str-two-way.h: Updated.
1063 * gnulib/string.in.h: Updated.
1064 * gnulib/wchar.in.h: Updated.
1066 * gnulib/extra/link-warning.h: Removed.
1067 * gnulib/extra/c++defs.h: New.
1068 * gnulib/extra/warn-on-use.h: New.
1069 * gnulib/extra/arg-nonnull.h: Updated.
1071 * gnulib/m4/extensions.m4: Updated.
1072 * gnulib/m4/gnulib-cache.m4: Updated.
1073 * gnulib/m4/gnulib-common.m4: Updated.
1074 * gnulib/m4/gnulib-comp.m4: Updated.
1075 * gnulib/m4/gnulib-tool.m4: Updated.
1076 * gnulib/m4/include_next.m4: Updated.
1077 * gnulib/m4/longlong.m4: Updated.
1078 * gnulib/m4/memchr.m4: Updated.
1079 * gnulib/m4/memmem.m4: Updated.
1080 * gnulib/m4/stdint.m4: Updated.
1081 * gnulib/m4/string_h.m4: Updated.
1082 * gnulib/m4/memcmp.m4: Removed.
1083 * gnulib/m4/onceonly_2_57.m4: Removed.
1084 * gnulib/m4/00gnulib.m4: New.
1085 * gnulib/m4/mmap-anon.m4: New.
1086 * gnulib/m4/multiarch.m4: New.
1087 * gnulib/m4/onceonly.m4: New.
1088 * gnulib/m4/stddef_h.m4: New.
1089 * gnulib/m4/warn-on-use.m4: New.
1090 * gnulib/m4/wchar.m4: Removed.
1091 * gnulib/m4/wchar_h.m4: New.
1092 * gnulib/m4/wchar_t.m4: New.
1093 * gnulib/m4/wint_t.m4: New.
1095 * aclocal.m4: Regenerate.
1096 * config.in: Likewise.
1097 * configure: Likewise.
1098 * gnulib/Makefile.in: Likewise.
1100 2010-05-21 Tom Tromey <tromey@redhat.com>
1102 * dwarf2loc.c (extract_bits_primitive): New function.
1103 (extract_bits): Likewise.
1104 (insert_bits): Likewise.
1105 (copy_bitwise): Likewise.
1106 (read_pieced_value): Do all operations in bits.
1107 (write_pieced_value): Likewise.
1108 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1109 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1110 Always use xrealloc to resize piece array.
1111 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1112 <DW_OP_piece>: Update.
1113 <DW_OP_bit_piece>: New case.
1115 2010-05-21 Tom Tromey <tromey@redhat.com>
1117 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1118 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1119 * dwarf2expr.h (enum dwarf_value_location)
1120 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1121 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1122 (add_piece): Handle empty piece.
1123 (execute_stack_op) <DW_OP_piece>: Handle
1124 DWARF_VALUE_OPTIMIZED_OUT.
1126 2010-05-21 Tom Tromey <tromey@redhat.com>
1128 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1129 evaluate_subexp, not evaluate_subexp_with_coercion.
1131 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1133 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1136 2010-05-21 Tom Tromey <tromey@redhat.com>
1138 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1140 (write_pieced_value): Likewise.
1142 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1144 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1145 and DW_TAG_volatile_type.
1146 (new_symbol): Likewise.
1148 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1150 * p-valprint.c (pascal_val_print): Call get_array_bounds
1151 to obtain the number of elements in an array.
1153 2010-05-19 Doug Evans <dje@google.com>
1155 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1157 * python.c (source_python_script): Add comment.
1158 (source_python_script_for_objfile): Remove unnecessary call to
1161 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1162 Sergio Durigan Junior <sergiodj@redhat.com>
1165 * parse.c (exp_iterate): Use operator_length wrapper function.
1167 2010-05-18 Michael Snyder <msnyder@vmware.com>
1169 * ada-lang.c: White space.
1170 * ada-typeprint.c: White space.
1171 * ada-valprint.c: White space.
1172 * addrmap.c: White space.
1173 * auxv.c: White space.
1174 * ax-gdb.c: White space.
1176 2010-05-18 Hui Zhu <teawater@gmail.com>
1178 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1180 (inferior_call_waitpid): Move make_cleanup out of check.
1181 Check the return of waitpid.
1182 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1184 2010-05-17 Michael Snyder <msnyder@vmware.com>
1186 * tui/tui.c: White space.
1187 * tui/tui-data.c: White space.
1188 * tui/tui-disasm.c: White space.
1189 * tui/tui-file.c: White space.
1190 * tui/tui-interp.c: White space.
1191 * tui/tui-main.c: White space.
1192 * tui/tui-out.c: White space.
1193 * tui/tui-regs.c: White space.
1194 * tui/tui-source.c: White space.
1195 * tui/tui-stack.c: White space.
1196 * tui/tui-win.c: White space.
1197 * tui/tui-winsource.c: White space.
1199 * procfs.c: White space.
1201 * python/py-auto-load.c: White space.
1202 * python/py-block.c: White space.
1203 * python/py-breakpoint.c: White space.
1204 * python/py-cmd.c: White space.
1205 * python/py-function.c: White space.
1206 * python/py-lazy-string.c: White space.
1207 * python/py-objfile.c: White space.
1208 * python/py-param.c: White space.
1209 * python/py-prettyprint.c: White space.
1210 * python/py-progspace.c: White space.
1211 * python/py-symtab.c: White space.
1212 * python/python.c: White space.
1213 * python/py-type.c: White space.
1214 * python/py-utils.c: White space.
1215 * python/py-value.c: White space.
1217 * mi/mi-cmd-break.c: White space.
1218 * mi/mi-cmd-env.c: White space.
1219 * mi/mi-cmds.c: White space.
1220 * mi/mi-cmd-stack.c: White space.
1221 * mi/mi-cmd-var.c: White space.
1222 * mi/mi-console.c: White space.
1223 * mi/mi-getopt.c: White space.
1224 * mi/mi-interp.c: White space.
1225 * mi/mi-main.c: White space.
1226 * mi/mi-out.c: White space.
1227 * mi/mi-parse.c: White space.
1229 * cli/cli-cmds.c: White space.
1230 * cli/cli-decode.c: White space.
1231 * cli/cli-dump.c: White space.
1232 * cli/cli-interp.c: White space.
1233 * cli/cli-logging.c: White space.
1234 * cli/cli-script.c: White space.
1235 * cli/cli-setshow.c: White space.
1237 * valarith.c: White space.
1238 * valops.c: White space.
1239 * valprint.c: White space.
1240 * value.c: White space.
1241 * varobj.c: White space.
1242 * xcoffread.c: White space.
1243 * xml-support.c: White space.
1244 * xml-tdesc.c: White space.
1246 2010-05-17 Andreas Schwab <schwab@redhat.com>
1249 * c-lang.c (c_printstr): Compute real length of NUL terminated
1252 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1254 * parse.c (parse_exp_in_context): When block is not NULL, use
1255 its associated language to parse the expression instead of
1256 the current_language.
1258 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1260 * jv-lang.c (java_lookup_class): Remove commented out code.
1261 (type_from_class): Likewise.
1262 (java_op_print_tab): Remove commented-out elements.
1264 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1266 * ada-lang.c (to_fixed_range_type): The the raw index type as
1267 argument instead of the raw type name. Remove orig_type parameter.
1268 Update calls throughout.
1269 (ada_fixup_array_indexes_type): New function.
1270 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1271 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1272 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1273 Remove name parameter.
1274 (print_array_type): Add call to ada_fixup_array_indexes_type.
1275 Update calls to print_range_type.
1276 (ada_print_type): Update calls to print_range_type.
1278 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1280 * dwarf2read.c (read_set_type): Set type length if
1281 DW_AT_byte_size attribute is present.
1283 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1285 * p-valprint.c (pascal_val_print): Handle set type if range limits
1286 are undefined but size is known.
1288 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1290 * procfs.c: Reformat.
1292 2010-05-16 Michael Snyder <msnyder@vmware.com>
1294 * target.c: White space.
1295 * target-descriptions.c: White space.
1296 * target-memory.c: White space.
1297 * thread.c: White space.
1298 * top.c: White space.
1299 * tracepoint.c: White space.
1300 * trad-frame.c: White space.
1301 * tramp-frame.c: White space.
1302 * ui-file.c: White space.
1303 * ui-out.c: White space.
1304 * user-regs.c: White space.
1305 * utils.c: White space.
1307 * scm-exp.c: White space.
1308 * scm-lang.c: White space.
1309 * scm-valprint.c: White space.
1310 * sentinel-frame.c: White space.
1311 * ser-base.c: White space.
1312 * ser-go32.c: White space.
1313 * serial.c: White space.
1314 * ser-mingw.c: White space.
1315 * ser-pipe.c: White space.
1316 * ser-tcp.c: White space.
1317 * ser-unix.c: White space.
1318 * solib.c: White space.
1319 * solib-darwin.c: White space.
1320 * solib-frv.c: White space.
1321 * solib-irix.c: White space.
1322 * solib-osf.c: White space.
1323 * solib-pa64.c: White space.
1324 * solib-som.c: White space.
1325 * solib-spu.c: White space.
1326 * solib-svr4.c: White space.
1327 * solib-target.c: White space.
1328 * source.c: White space.
1329 * stabsread.c: White space.
1330 * stack.c: White space.
1331 * std-regs.c: White space.
1332 * symfile.c: White space.
1333 * symmisc.c: White space.
1334 * symtab.c: White space.
1336 2010-05-16 Michael Snyder <msnyder@vmware.com>
1338 * source.c (_initialize_source): Add "rev" as an abbreviation
1339 for the "reverse-search" command.
1341 2010-05-16 Michael Snyder <msnyder@vmware.com>
1343 * record.c: White space.
1344 * regcache.c: White space.
1345 * reggroups.c: White space.
1346 * remote-fileio.c: White space.
1347 * remote-m32r-sdi.c: White space.
1348 * remote-mips.c: White space.
1349 * remote-sim.c: White space.
1350 * remote.c: White space.
1351 (process_g_packet): Remove orphan braces.
1353 2010-05-15 Michael Snyder <msnyder@vmware.com>
1355 * parse.c: White space.
1356 * p-lang.c: White space.
1357 * posix-hdep.c: White space.
1358 * printcmd.c: White space.
1359 * progspace.c: White space.
1360 * prologue-value.c: White space.
1361 * psymtab.c: White space.
1362 * p-typeprint.c: White space.
1363 * p-valprint.c: White space.
1365 * objc-lang.c: White space.
1366 * objfiles.c: White space.
1367 * observer.c: White space.
1368 * osabi.c: White space.
1369 * osdata.c: White space.
1371 * m2-lang.c: White space.
1372 * m2-valprint.c: White space.
1373 * macrocmd.c: White space.
1374 * macroexp.c: White space.
1375 * macroscope.c: White space.
1376 * macrotab.c: White space.
1377 * main.c: White space.
1378 * maint.c: White space.
1379 * mdebugread.c: White space.
1380 * memattr.c: White space.
1381 * minsyms.c: White space.
1382 * monitor.c: White space.
1384 2010-05-14 Michael Snyder <msnyder@vmware.com>
1386 * jv-lang.c: White space.
1387 * jv-typeprint.c: White space.
1388 * jv-valprint.c: White space.
1389 * language.c: White space.
1390 * libunwind-frame.c: White space.
1391 * linespec.c: White space.
1392 * linux-nat.c: White space.
1393 * linux-record.c: White space.
1394 * linux-thread-db.c: White space.
1396 * infcall.c: White space.
1397 * inf-child.c: White space.
1398 * infcmd.c: White space.
1399 * inferior.c: White space.
1400 * inf-loop.c: White space.
1401 * inflow.c: White space.
1402 * inline-frame.c: White space.
1403 * interps.c: White space.
1405 * gcore.c: White space.
1406 * gdb.c: White space.
1407 * gdbtypes.c: White space.
1408 * gnu-nat.c: White space.
1409 * gnu-v2-abi.c: White space.
1410 * gnu-v3-abi.c: White space.
1412 * findcmd.c: White space.
1413 * findvar.c: White space.
1414 * fork-child.c: White space.
1415 * frame-base.c: White space.
1416 * frame.c: White space.
1417 * frame-unwind.c: White space.
1418 * f-valprint.c: White space.
1420 * elfread.c: White space.
1421 * environ.c: White space.
1422 * eval.c: White space.
1423 * event-loop.c: White space.
1424 * event-top.c: White space.
1425 * exceptions.c: White space.
1426 * exec.c: White space.
1427 * expprint.c: White space.
1429 * dbxread.c: White space.
1430 * dcache.c: White space.
1431 * disasm.c: White space.
1432 * doublest.c: White space.
1433 * dsrec.c: White space.
1434 * dummy-frame.c: White space.
1435 * dwarf2expr.c: White space.
1436 * dwarf2-frame.c: White space.
1437 * dwarf2loc.c: White space.
1438 * dwarf2read.c: White space.
1440 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1444 * python/py-value.c (valpy_hash): New function.
1445 (value_object_type): Register valpy_hash.
1447 2010-05-14 Hui Zhu <teawater@gmail.com>
1448 Michael Snyder <msnyder@vmware.com>
1450 * linux-fork.c (gdbthread.h): New include.
1451 (fork_info): Add parent_ptid.
1452 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1454 (delete_checkpoint_command): Call inferior_call_waitpid.
1455 (checkpoint_command): Set parent_ptid.
1457 2010-05-13 Michael Snyder <msnyder@vmware.com>
1459 * dictionary.c: Re-indent to GNU coding standard.
1461 * charset.c: White space.
1462 * c-lang.c: White space.
1463 * cli-out.c: White space.
1464 * coffread.c: White space.
1465 * complaints.c: White space.
1466 * completer.c: White space.
1467 * corefile.c: White space.
1468 * corelow.c: White space.
1469 * cp-abi.c: White space.
1470 * cp-namespace.c: White space.
1471 * cp-support.c: White space.
1472 * cp-valprint.c: White space.
1473 * c-typeprint.c: White space.
1474 * c-valprint.c: White space.
1475 * blockframe.c: White space.
1476 * breakpoint.c: White space.
1477 * buildsym.c: White space.
1478 * blockframe.c: White space.
1479 * bcache.c: White space.
1480 * gdbarch.sh: White space, add blank lines.
1481 * arch-utils.c: Ditto.
1482 * gdbarch.c: Regenerate.
1483 * frame.c: White space, add blank lines.
1484 * stack.c: White space, add blank lines.
1485 (initialize_stack): Remove long-dead code.
1487 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1490 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1491 (locexpr_read_variable, loclist_read_variable): Update the callers.
1493 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1496 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1497 Remove check of NULL returned by tag_type_to_type.
1498 (die_containing_type): Remove variable type. Remove type_die variable
1499 initialization. Remove check of NULL returned by tag_type_to_type.
1501 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1504 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1505 names of unnamed structures or unions.
1507 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1509 * procfs.c (proc_watchpoint_address): New function.
1510 (procfs_stopped_by_watchpoint): Remove useless check after
1511 find_procinfo_or_die call.
1512 (procfs_stopped_data_address): New function.
1513 (procfs_use_watchpoints): Register new watchpoint related function.
1515 2010-05-11 Tom Tromey <tromey@redhat.com>
1517 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1519 2010-05-10 Michael Snyder <msnyder@vmware.com>
1521 * utils.c: White space cleanup.
1523 2010-05-10 Tom Tromey <tromey@redhat.com>
1525 * eval.c (ptrmath_type_p): Add 'lang' argument.
1526 (evaluate_subexp_standard): Update.
1527 (evaluate_subexp_with_coercion): Update.
1528 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1530 2010-05-10 Michael Snyder <msnyder@vmware.com>
1532 * utils.c (do_fclose_cleanup) Restore local variable.
1534 2010-05-09 Doug Evans <dje@google.com>
1536 * record.c (init_record_core_ops): Rename record_core to record-core.
1538 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1540 Implement task switching on pa-hpux.
1541 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1542 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1544 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1546 * valops.c (find_overload_match): Add missing i18n markup.
1548 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1550 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1552 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1554 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1555 list for the obconcat call.
1556 * mdebugread.c (parse_symbol): Likewise.
1557 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1559 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1560 New variable ap. Remove variables len and val.
1561 * symfile.h (obconcat): Likewise for the prototype.
1563 2010-05-07 Michael Snyder <msnyder@vmware.com>
1565 * python/python.c (execute_gdb_command): Remove unused variables.
1566 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1567 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1568 Remove unused variable.
1569 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1570 (cmdpy_completer): Remove unused variable.
1571 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1572 * python/py-function.c (fnpy_call): Remove unused variable.
1573 * python/py-objfile.c (objfile_to_objfile_object):
1574 Remove unused variable.
1575 * python/py-param.c (parmpy_init): Remove unused variable.
1576 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1577 Remove unused variable.
1578 (gdbpy_default_visualizer): Remove unused variable.
1579 * python/py-progspace.c (pspace_to_pspace_object):
1580 Remove unused variable.
1581 * python/py-symtab.c (symtab_and_line_to_sal_object):
1582 Remove unused variable.
1583 * python/py-type.c (typy_template_argument):
1584 Remove unused variable.
1585 * python/py-value.c (valpy_string): Remove unused variable.
1586 (convert_value_from_python): Remove unused variables.
1588 2010-05-07 Michael Snyder <msnyder@vmware.com>
1590 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1591 and use it to compute variable 't1'.
1593 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1595 * ada-lang.c (assign_aggregate): Remove unused variable.
1597 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1600 * valops.c (find_overload_match): Handle fsym == NULL case.
1601 Add int no_adl argument.
1602 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1604 Add int no_adl argument.
1605 (find_oload_champ_namespace): Add int no_adl argument.
1606 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1608 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1609 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1610 Evaluate arguments and use them to perform ADL lookup.
1611 Pass no_adl argument to find_overload_match.
1612 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1613 * cp-support.h: Added prototype for
1614 make_symbol_overload_list_namespace.
1615 * cp-support.c (make_symbol_overload_list_namespace): New function.
1616 (make_symbol_overload_list_adl_namespace): New function.
1617 (make_symbol_overload_list_adl): New function.
1618 (make_symbol_overload_list_using): Moved code to add function to
1619 overload set to make_symbol_overload_list_namespace.
1620 * c-exp.y: create UNKNOWN_CPP_NAME token.
1621 Add parse rule for ADL functions.
1622 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1624 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1626 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1629 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1631 Implement task switching on solaris targets.
1632 * sol-thread.c (thread_db_find_thread_from_tid)
1633 (sol_get_ada_task_ptid): New functions.
1634 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1636 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1638 * remote.c (remote_query_supported_append): Use reconcat.
1639 (remote_query_supported): Install a cleanup. Use reconcat.
1641 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1643 * gdbarch.sh (qsupported): Delete.
1644 * gdbarch.h, gdbarch.c: Regenerate.
1645 * remote.c (remote_query_supported): Remove use of
1648 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1650 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1653 2010-05-06 Michael Snyder <msnyder@vmware.com>
1655 * xml-support.c (xinclude_start_include): Delete unused variable.
1656 (xml_process_xincludes): Delete unused variable.
1657 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1658 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1659 (tdesc_find_arch_register): Delete unused variable.
1660 (tdesc_use_registers): Delete unused variable.
1661 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1662 * inferior.c (print_inferior): Delete unused variable.
1663 * record.c (record_open_1): Delete unused variable.
1664 (record_restore): Delete unused variable.
1665 (cmd_record_save): Delete unused variable.
1666 * gcore.c (derive_heap_segment): Delete unused variable.
1667 (objfile_find_memory_regions): Use unused variable.
1668 * jit.c (jit_inferior_init): Delete unused variable.
1669 * progspace.c (clone_program_space): Delete unused variable.
1670 (pspace_empty_p): Delete unused variable.
1672 * frame-unwind.c (frame_unwind_find_by_frame):
1673 Delete unused variable.
1674 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1675 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1676 (method_name_from_physname): Delete unused variable.
1677 (cp_func_name): Delete unused variable.
1678 (cp_validate_operator): Delete unused variable.
1679 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1680 Delete unused variable.
1681 * trad-frame.c (trad_frame_get_prev_register):
1682 Delete unused variable.
1683 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1685 * serial.c (serial_for_fd): Delete unused variable.
1686 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1687 * top.c (execute_command): Delete unused variable.
1688 (init_main): Delete unused variable.
1689 * utils.c (do_fclose_cleanup): Delete unused variable.
1690 (do_all_inferior_continuations): Delete unused variable.
1691 (initialize_utils): Delete unused variable.
1692 (internal_problem_mode): Delete unused global.
1693 * frame.c (get_prev_frame): Delete unused global.
1694 (get_frame_locals_address): Delete unused global.
1695 (get_frame_args_address): Delete unused global.
1697 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1698 (pascal_type_print_varspec_prefix): Delete unused variable.
1699 * f-typeprint.c (f_type_print_base): Delete unused variable.
1700 (f_type_print_varspec_suffix): Delete unused variable.
1701 * m2-typeprint.c (m2_print_type): Delete unused variable.
1702 (m2_long_set): Delete unused variable.
1703 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1704 * d-valprint.c (dynamic_array_type): Delete unused variable.
1705 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1706 Delete unused variable.
1707 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1708 * m2-valprint.c (m2_val_print): Delete unused variable.
1710 * ui-out.c (ui_out_field_int): Delete unused variable.
1711 (ui_out_field_fmt_int): Delete unused variable.
1712 * varobj.c (varobj_list_children): Delete unused variable.
1713 (varobj_set_value): Delete unused variable.
1714 (install_new_value_visualizer): Delete unused variable.
1715 (varobj_set_visualizer): Delete unused variable.
1716 (varobj_update): Delete unused variable.
1717 (varobj_editable_p): Delete unused variable.
1718 (c_value_of_root): Delete unused variable.
1719 (cplus_describe_child): Delete unused variable.
1721 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1722 (decode_constrained_packed_array_type): Delete unused variable.
1723 (add_defn_to_vec): Delete unused variable.
1724 (symbol_completion_match): Delete unused variable.
1725 (value_tag_from_contents_and_address): Delete unused variable.
1726 (ada_evaluate_subexp): Delete unused variable.
1727 * c-lang.c (classify_type): Delete unused variable.
1728 * f-lang.c (f_printstr): Delete unused variable.
1729 * objc-lang.c (objc_printstr): Delete unused variable.
1730 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1731 * jv-lang.c (type_from_class): ifdef unused variable.
1732 (java_class_name_from_physname): Delete unused variable.
1733 * m2-lang.c (m2_printstr): Delete unused variable.
1735 * objfiles.c (objfile_relocate): Delete unused variable.
1736 * maint.c (_initialize_maint_cmds): Delete unused variable.
1737 * demangle.c (_initialize_demangler): Delete unused variable.
1738 * corefile.c (reopen_exec_file): Delete unused variable.
1739 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1740 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1742 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1743 * memattr.c (mem_delete): Delete unused variable.
1744 (invalidate_target_mem_regions): Delete unused variable.
1745 * mem-break.c (default_memory_insert_breakpoint):
1746 Delete unused variable.
1747 * target.c (target_get_osdata): Delete unused variable.
1748 * parse.c (length_of_subexp): Delete unused variable.
1749 (prefixify_subexp): Delete unused variable.
1750 (exp_iterate): Delete unused variable.
1751 * reverse.c (delete_bookmark_command): Delete unused variable.
1753 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1754 * macroexp.c (gather_arguments): Delete unused variable.
1755 (substitute_args): Delete unused variable.
1756 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1757 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1758 (_initialize_gdbarch): Delete unused variable.
1759 * gdbarch.c, gdbarch.h: Regenerate.
1760 * arch-utils.c (initialize_current_architecture):
1761 Delete unused variable.
1762 (_initialize_gdbarch_utils): Delete unused variable.
1763 * gdbtypes.c (make_cv_type): Delete unused variable.
1764 (make_type_with_address_space): Delete unused variable.
1766 * linespec.c (decode_compound): Delete unused variable.
1767 * dictionary.c (iterator_next_hashed): Delete unused variable.
1768 * infcall.c (call_function_by_hand): Delete unused variable.
1769 * infcmd.c (step_1): Delete unused variable.
1770 (registers_info): Delete unused variable.
1771 (attach_command): Delete unused variable.
1772 * infrun.c (follow_exec): Delete unused variable.
1773 (handle_step_into_function_backwards): Delete unused variable.
1774 (_initialize_infrun): Delete unused variable.
1775 * stack.c (parse_frame_specification_1): Delete unused variable.
1776 (frame_info): Delete unused variable.
1777 (backtrace_command_1): Delete unused variable.
1778 (catch_info): Delete unused variable.
1780 * eval.c (evaluate_subexp_standard): Delete unused variable.
1781 * valops.c (value_cast_pointers): Delete unused variable.
1782 (value_dynamic_cast): Delete unused variable.
1783 (value_array): Delete unused variable.
1784 (find_overload_match): Delete unused variable.
1785 * valarith.c (value_subscript): Delete unused variable.
1786 (value_binop): Delete unused variable.
1787 * valprint.c (_initialize_valprint): Delete unused variable.
1788 * printcmd.c (print_command_1): Delete unused variable.
1789 (address_info): Delete unused variable.
1790 (printf_command): Delete unused variable.
1792 * auxv.c (target_auxv_search): Delete unused variable.
1793 * blockframe.c (get_frame_block): Delete unused variable.
1794 * regcache.c (regcache_cpy): Delete unused variable.
1795 (regcache_cpy_no_passthrough): Delete unused variable.
1796 * charset.c (wchar_iterate): Delete unused variable.
1797 (find_charset_names): Delete unused variable.
1798 (_initialize_charset): Delete unused variable.
1799 * disasm.c (do_mixed_source_and_assembly):
1800 Delete unused variable.
1801 * source.c (set_default_source_symtab_and_line):
1802 Delete unused variable.
1803 (set_substitute_path_command): Delete unused variable.
1804 * value.c (preserve_values): Delete unused variable.
1805 (value_from_double): Delete unused variable.
1807 2010-05-05 Michael Snyder <msnyder@vmware.com>
1809 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1810 (find_last_source_symtab_from_partial): Delete unused variable.
1811 * symfile.c (place_section): Delete unused variable.
1812 (default_symfile_offsets): Delete unused variable.
1813 (get_debug_link_info): Delete unused variable.
1814 (find_separate_debug_file_by_debuglink): Delete unused variable.
1815 (add_symbol_file_command): Delete unused variable.
1816 (symfile_find_segment_sections): Delete unused variable.
1817 * symmisc.c (free_symtab): Delete unused variable.
1818 (dump_symtab_1): Delete unused variable.
1819 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1820 (find_pc_sect_symtab): Delete unused variable.
1821 (skip_prologue_using_lineinfo): Delete unused variable.
1822 (sources_info): Delete unused variable.
1823 (completion_list_add_name): Delete unused variable.
1824 (expand_line_sal): Delete unused variable.
1826 * breakpoint.c (validate_commands_for_breakpoint):
1827 Delete unused variables.
1828 (insert_catchpoint): Delete unused variable.
1829 (update_watchpoint): Delete unused variable.
1830 (insert_bp_location): Delete unused variable.
1831 (insert_breakpoint_locations): Delete unused variable.
1832 (remove_breakpoint_1): Delete unused variable.
1833 (software_breakpoint_inserted_here_p): Delete unused variable.
1834 (watchpoints_triggered): Delete unused variable.
1835 (bpstat_check_watchpoint): Delete unused variable.
1836 (bpstat_stop_status): Delete unused variable.
1837 (print_one_breakpoint_location): Delete unused variable.
1838 (allocate_bp_location): Delete unused variable.
1839 (create_breakpoint): Delete unused variable.
1840 (watch_command_1): Delete unused variable.
1841 (catch_exception_command_1): Delete unused variable.
1842 (catch_ada_exception_command): Delete unused variable.
1843 (delete_breakpoint): Delete unused variable.
1844 (breakpoint_re_set_one): Delete unused variable.
1845 (do_enable_breakpoint): Delete unused variable.
1847 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1849 * amd64-tdep.c: Include disasm.h.
1850 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1851 (amd64_insn_length): Moved to disasm.c and renamed.
1852 (fixup_riprel): Adjust.
1853 * disasm.c (do_ui_file_delete): New.
1854 (gdb_insn_length): New.
1855 (gdb_buffered_insn_length_fprintf)
1856 (gdb_buffered_insn_length_init_dis)
1857 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1859 * disasm.h (gdb_insn_length): Declare.
1860 (gdb_buffered_insn_length): Declare.
1862 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1864 * remote.c (clear_threads_parsing_context): New.
1865 (remote_threads_info): Delete unused null_cleanup. Install a
1866 cleanup to clear the threads_parsing_context in case parsing
1869 2010-05-05 Michael Snyder <msnyder@vmware.com>
1871 * c-exp.y (parse_string_or_char): Delete unused variable.
1872 (c_lex): Delete unused variable.
1873 * cp-name-parser.y (cpname_lex): Delete unused variable.
1874 * ada-exp.y (find_primitive_type): Delete unused variable.
1875 (write_var_or_type): Delete unused variable.
1876 * jv-exp.y (java_parse): Delete unused variable.
1877 (push_expression_name): Delete unused variable.
1878 * p-exp.y (pascal_lex): Delete unused variable.
1880 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1882 * remote.c (remote_threads_info): Really revert previous previous
1885 2010-05-05 Michael Snyder <msnyder@vmware.com>
1887 * elfread.c (elf_symtab_read): Delete unused variable.
1888 (find_separate_debug_file_by_buildid): Delete unused variables.
1889 (elf_symfile_read): Delete unused variable.
1891 * coffread.c (coff_symfile_read): Delete unused variables.
1893 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1894 (read_pe_exported_syms): Delete unused variable.
1896 * stabsread.c (define_symbol): Delete unused variable.
1898 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1899 (process_psymtab_comp_unit): Delete unused variable.
1900 (dwarf2_build_psymtabs_hard): Delete unused variable.
1901 (load_partial_comp_unit): Delete unused variable.
1902 (create_all_comp_units): Delete unused variable.
1903 (scan_partial_symbols): Delete unused variable.
1904 (add_partial_symbol): Delete unused variable.
1905 (add_partial_namespace): Delete unused variable.
1906 (add_partial_enumeration): Delete unused variable.
1907 (load_full_comp_unit): Delete unused variable.
1908 (process_full_comp_unit): Delete unused variable.
1909 (read_file_scope): Delete unused variable.
1910 (read_type_unit_scope): Delete unused variable.
1911 (process_structure_scope): Delete unused variable.
1912 (process_enumeration_scope): Delete unused variable.
1913 (read_tag_ptr_to_member_type): Delete unused variable.
1914 (read_typedef): Delete unused variable.
1915 (read_partial_die): Delete unused variable.
1916 (decode_locdesc): Delete unused variable.
1917 (zeroed_partial_die): Delete unused global variable.
1919 * tui/tui-interp.c (_initialize_tui_interp):
1920 Delete unused variable.
1921 * tui/tui-regs.c tui_display_registers_from):
1922 Delete unused variable.
1923 (tui_check_register_values): Delete unused variable.
1924 (tui_register_format): Delete unused variable.
1925 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1926 * tui/tui-windata.c (tui_display_data_from_line):
1927 Delete unused variables.
1928 (tui_vertical_data_scroll): Delete unused variables.
1930 2010-05-05 Michael Snyder <msnyder@vmware.com>
1932 * remote.c (remote_threads_info): Revert questionable part of
1933 the previous change.
1935 2010-05-05 Michael Snyder <msnyder@vmware.com>
1937 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1938 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1939 (mi_cmd_var_list_children): Delete unused variable.
1940 (varobj_update_one): Delete unused variable.
1941 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1942 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1943 Delete unused variable.
1944 (mi_cmd_stack_list_variables): Delete unused variable.
1945 (list_args_or_locals): Delete unused variable.
1946 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1947 Delete unused variables.
1948 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1949 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1950 Delete unused variable.
1951 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1952 (mi_cmd_interpreter_exec): Delete unused variable.
1953 (mi_on_normal_stop): Delete unused variable.
1954 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1955 (print_one_inferior): Delete unused variables.
1956 (mi_execute_command): Delete unused variable.
1957 (mi_cmd_execute): Delete unused variable.
1958 (timestamp): Delete unused variable.
1960 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
1961 (restore_binary_file): Delete unused variable.
1962 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1963 * cli/cli-script.c (define_command): Delete unused variables.
1964 (recurse_read_control_structure): Delete unused variable.
1965 (script_from_file): Delete unused variable.
1966 * cli/cli-cmds.c (complete_command): Delete unused variable.
1967 (disassemble_command): Delete unused variable.
1969 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1970 * tracepoint.c (delete_trace_variable_command):
1971 Delete unused variables.
1972 (encode_actions_1): Delete unused variables.
1973 (start_tracing): Delete unused variable.
1974 (trace_status_mi): Delete unused variable.
1975 (tfind_1): Delete unused variable.
1976 (trace_find_pc_command): Delete unused variable.
1977 (trace_find_line_command): Delete unused variables.
1978 (trace_find_range_command): Delete unused variables.
1979 (trace_find_outside_command): Delete unused variables.
1980 (parse_tracepoint_definition): Delete unused variables.
1981 (tfile_fetch_registers): Delete unused variable.
1983 * dcache.c (dcache_init): Delete unused variable.
1984 (dcache_info): Delete unused variable.
1986 * remote.c (remote_threads_info): Delete unused variable.
1987 (process_stop_reply) :Delete unused variable.
1988 (remote_get_trace_status): Delete unused variables.
1990 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1991 (thread_from_lwp): Delete unused variable.
1992 (enable_thread_event_reporting): Delete unused variable.
1993 (check_for_thread_db): Delete unused variables.
1994 (thread_db_find_new_threads_2): Delete unused variable.
1996 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1997 (checkpoint_command): Delete unused variable.
1998 (linux_fork_context): Delete unused variables.
2000 * linux-nat.c (linux_parent_pid): Delete unused global variable.
2001 (linux_tracefork_child): Delete unused variable.
2002 (linux_child_follow_fork): Delete unused variable.
2003 (linux_nat_detach): Delete unused variable.
2004 (linux_handle_extended_wait): Delete unused variable.
2005 (linux_nat_has_pending_sigint): Delete unused variable.
2006 (linux_nat_find_memory_regions): Delete unused variable.
2007 (linux_nat_make_corefile_notes): Delete unused variables.
2008 (linux_nat_info_proc_cmd): Delete unused variable.
2009 (linux_proc_pending_signals): Delete unused variable.
2010 (linux_nat_stop_lwp): Delete unused variables.
2011 (_initialize_linux_nat): Delete unused variable.
2013 * ser-pipe.c (pipe_ops): Delete unused global variable.
2015 * linux-record.c (record_linux_system_call):
2016 Delete unused variables.
2018 * corelow.c (core_xfer_partial): Delete unused variables.
2020 * solib-svr4.c (find_program_interpreter): Delete unused variable.
2021 (svr4_solib_create_inferior_hook): Add ifdef around
2022 conditionally-used variable declarations.
2024 * solib.c (solib_find): Delete unused variable.
2025 (free_so_symbols): Delete unused variable.
2026 (info_sharedlibrary_command): Delete unused variable.
2027 (reload_shared_libraries_1): Delete unused variable.
2028 (_initialize_solib): Delete unused variable.
2030 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
2031 (i386_collect_xstateregset): Delete unused variable.
2032 * i387-tdep.c (i387_print_float_info): Delete unused variable.
2034 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2035 Delete unused variable 'type'.
2037 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2039 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2040 ada-lang.c: Remove comment mentioning these macros.
2041 * m2-exp.y: Delete commented out code.
2043 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2045 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2047 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2049 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2051 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2052 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2054 (cleanup_kernel_helper_return): Likewise.
2055 * arm-tdep.c (copy_unmodified): Likewise.
2056 (copy_preload): Likewise.
2057 (copy_copro_load_store): Likewise.
2058 (cleanup_branch): Likewise.
2059 (copy_b_bl_blx): Likewise.
2060 (copy_bx_blx_reg): Likewise.
2061 (copy_alu_imm): Likewise.
2062 (copy_alu_reg): Likewise.
2063 (copy_alu_shifted_reg): Likewise.
2064 (cleanup_load): Likewise.
2065 (cleanup_store): Likewise.
2066 (cleanup_block_load_pc): Likewise.
2067 (cleanup_svc): Likewise.
2068 (copy_undef): Likewise.
2069 (copy_unpred): Likewise.
2070 * remote.c (register_remote_support_xml): Likewise.
2072 2010-05-05 Hui Zhu <teawater@gmail.com>
2074 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2076 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2078 * remote.c (register_remote_support_xml)
2079 (remote_query_supported_append, remote_query_supported): Add cast
2080 to NULL used as sentinel.
2081 * tracepoint.c (tvariables_info_1): Likewise.
2082 * utils.c (add_internal_problem_command): Likewise.
2084 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2086 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2087 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2088 registers gracefully.
2090 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2092 * exec.c (print_section_info): Display entry point without arch
2095 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2098 * printcmd.c (x_command): Only dereference once implicitly for
2101 2010-05-03 Doug Evans <dje@google.com>
2103 * event-loop.c (gdb_timer): Delete unused global.
2104 (create_timer): Update.
2106 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2108 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2109 CURRENT->DECLARATION case.
2110 * cp-support.h (struct using_direct): Provide extended comment.
2112 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2114 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2115 HPPABSD_SIZEOF_GREGS.
2116 (HPPAOBSD_SIZEOF_FPREGS): New define.
2117 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2118 (hppaobsd_supply_fpregset): New function.
2119 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2120 (hppaobsd_fpregset): New variable.
2121 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2122 (_initialize_hppabsd_tdep): Remove spurious blank line.
2124 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2127 * p-valprint.c (pascal_value_print): Always dereference a value with
2128 type code TYPE_CODE_REF.
2130 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2132 * remote.c (remote_notice_signals): New.
2133 (remote_start_remote): In non-stop mode, update the remote end on
2134 which signals it can silently pass.
2135 (init_remote_ops): Install remote_notice_signals.
2137 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2139 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2140 * command.h (error_no_arg): ... here. Remove NORETURN, change
2141 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2142 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2143 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2144 (internal_verror, internal_error, nomem): Remove NORETURN, change
2145 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2146 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2147 (throw_vfatal, throw_error): Remove NORETURN.
2148 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2149 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2150 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2151 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2152 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2153 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2155 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2156 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2158 * target.c (tcomplain): Likewise.
2159 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2161 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2162 (internal_error, perror_with_name, nomem): Remove NORETURN.
2163 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2166 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2168 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2169 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2170 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2171 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2172 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2173 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2174 * complaints.h (complaint, internal_complaint): Likewise.
2175 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2176 (ATTR_FORMAT): Remove.
2177 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2178 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2179 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2180 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2181 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2182 (internal_error, internal_vwarning, internal_warning, warning)
2183 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2184 * disasm.c (fprintf_disasm): Likewise.
2185 * exceptions.c (throw_it): Likewise.
2186 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2187 (throw_error): Likewise.
2188 * language.h (type_error, range_error): Likewise.
2189 * linespec.c (cplusplus_error): Likewise.
2190 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2191 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2192 * monitor.c (monitor_debug): Likewise.
2193 * parser-defs.h (parser_fprintf): Likewise.
2194 * serial.h (serial_printf): Likewise.
2195 * tui/tui-hooks.c (tui_query_hook): Likewise.
2196 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2197 (uo_message): Likewise.
2198 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2199 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2201 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2203 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2205 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2206 (cli_table_header, cli_begin, cli_end, cli_field_int)
2207 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2208 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2209 Delete forward declarations.
2210 (cli_ui_out_impl): Move below the callbacks.
2211 (_initialize_cli_out): Delete.
2213 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2215 * README: Use consistent `GDB' and `GDBserver' spellings.
2217 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2219 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2221 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2223 * infrun.c (prepare_for_detach): In non-stop, context switch to
2224 the thread that got the event before handling the event.
2226 2010-04-30 Tom Tromey <tromey@redhat.com>
2228 * symtab.c (symbol_set_names): Fix typo.
2230 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2232 * python/py-param.c (parm_constants): Avoid ARI warning
2233 by adding ARI comment.
2234 (parmpy_init): Likewise.
2236 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2238 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2239 and created type for re-use.
2241 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2243 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2245 2010-04-29 Doug Evans <dje@google.com>
2247 * ser-base.h (reschedule): Delete prototype.
2248 * ser-base.c (reschedule): Make static.
2250 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2252 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2253 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2254 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2256 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2259 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2263 * regcache.c (registers_changed): Rename to ...
2264 (registers_changed_ptid): ... this, and only delete register cache
2265 entries matching the ptid filter argument.
2266 (registers_changed): Reimplement on top of registers_changed_ptid.
2267 * regcache.h (registers_changed_ptid): Declare.
2268 * target.c (target_resume): Flush register caches.
2270 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2271 Tom Tromey <tromey@redhat.com>
2272 Thiago Jung Bauermann <bauerman@br.ibm.com>
2274 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2275 (SUBDIR_PYTHON_SRCS): Likewise.
2276 (py-parameter.o): New rule.
2277 * python/py-parameter.c: New file.
2278 * python/python-internal.h (gdbpy_initialize_parameter)
2279 (gdbpy_parameter, gdbpy_parameter_value)
2280 (gdbpy_parse_command_name): Declare.
2281 * python/py-cmd.c (parse_command_name): Rename to
2282 gdbpy_parse_command_name.
2283 (gdbpy_parse_command_name): Accept a starting list parameter and
2285 (cmdpy_init): Use gdbpy_parse_command_name.
2286 * python/python.c (parameter_to_python): Rename to
2287 gdbpy_parameter_to_python. Accept enum var_types and value.
2288 (gdbpy_parameter): Use gdbpy_parameter_value.
2289 (_initialize_python): Call gdbpy_initialize_parameters.
2291 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2293 * MAINTAINERS: Add myself for write after approval privileges.
2295 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2298 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2299 (COMMON_OBS): Add d-lang.o d-valprint.o.
2300 (HFILES_NO_SRCDIR): Add d-lang.h.
2301 * NEWS: Mention D language support.
2302 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2303 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2304 * d-lang.c: New file.
2305 * d-lang.h: New file.
2306 * d-valprint.c: New file.
2307 * defs.h (enum language): Add language_d.
2308 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2309 * language.c (binop_result_type, integral_type, character_type)
2310 (string_type, boolean_type, structured_type): Add language_d.
2311 * symfile.c (init_filename_language_table): Add language_d.
2312 * symtab.c: Include d-lang.h.
2313 (symbol_init_language_specific, symbol_find_demangled_name)
2314 (symbol_natural_name, lookup_symbol_in_language)
2315 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2317 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2319 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2321 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2323 * symfile.c (init_filename_language_table): Register .dg files
2326 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2328 * gdbtypes.h (struct main_type): Expand comment about target_type
2331 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2332 Tristan Gingold <gingold@adacore.com>
2334 * symfile.c (reread_symbols): Also search for file in libraries.
2337 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2339 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2340 in terms of configuration.
2342 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2344 * objfiles.c: Include solist.h.
2345 (free_all_objfiles): New variable so. Check stale solist objfiles.
2346 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2347 and no_shared_libraries.
2349 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2352 * python/py-auto-load.c (source_section_scripts): Remove trailing
2353 new-line in i18n string.
2355 2010-04-26 Doug Evans <dje@google.com>
2357 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2359 2010-04-26 Tom Tromey <tromey@redhat.com>
2361 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2364 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2366 Removal of config/i386/nm-i386sol2.h native configuration file.
2367 * config/i386/nm-i386sol2.h: Remove file.
2368 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2369 * config/i386/sol2-64.mh: Idem.
2370 * config/djgpp/fnchange.lst: Remove reference to that file.
2371 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2373 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2375 PR breakpoints/11531.
2376 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2377 macro definition and related comment.
2378 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2379 (resume): Remove code and comment related to this macro.
2381 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2383 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2386 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2388 * defs.h: Adjust comment.
2389 * filesystem.h, filesystem.c: New files.
2390 * Makefile.in (SFILES): Add filesystem.c.
2391 (COMMON_OBS): Add filesystem.o.
2392 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2393 different target and host path flavours.
2394 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2395 has_dos_based_file_system on the gdbarch.
2396 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2397 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2398 * i386-tdep.c (i386_go32_init_abi): Ditto.
2399 * gdbarch.sh (has_dos_based_file_system): New.
2400 * gdbarch.h, gdbarch.c: Regenerate.
2401 * NEWS: Mention improved support for remote targets with DOS-based
2402 filesystems. Mention new `set/show target-file-system-kind'
2405 2010-04-23 Stan Shebs <stan@codesourcery.com>
2407 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2409 (struct agent_reqs): Remove.
2410 (ax_reg_mask): Declare.
2411 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2412 (free_agent_expr): Free reg_mask.
2413 (ax_print): Add scope and register mask info.
2414 (ax_reqs): Remove agent_reqs argument, use agent expression
2415 fields, and move part of register mask computation to...
2416 (ax_reg_mask): New function.
2417 * ax-gdb.c (gen_trace_static_fields): Call it.
2418 (gen_traced_pop): Ditto.
2419 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2420 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2421 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2422 (gen_eval_for_expr): Ditto, and require an rvalue.
2423 (agent_command): Call ax_reqs.
2424 (agent_eval_command): Ditto.
2425 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2426 (validate_action_line): Ditto.
2427 (collect_symbol): Ditto.
2428 (encode_actions_1): Ditto.
2430 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2431 Paul Pluzhnikov <ppluzhnikov@google.com>
2432 Jan Kratochvil <jan.kratochvil@redhat.com>
2434 Fix deadlock on looped list of loaded shared objects.
2435 * solib-svr4.c (LM_PREV): New function.
2436 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2437 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2438 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2439 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2441 2010-04-23 Doug Evans <dje@google.com>
2443 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2445 * configure: Regenerate.
2446 * main.c: #include "python/python.h".
2447 (captured_main): Defer loading auto-loaded scripts until after
2448 local_gdbinit has been sourced.
2449 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2450 (load_auto_scripts_for_objfile): New function.
2451 (auto_load_new_objfile): Call it.
2452 * python/python.h (gdbpy_global_auto_load): Declare.
2453 (load_auto_scripts_for_objfile): Declare.
2455 Add support for auto-loading scripts from .debug_gdb_scripts section.
2456 * NEWS: Add entry for .debug_gdb_scripts.
2457 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2458 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2459 (py-auto-load.o): New rule.
2460 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2461 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2462 * python/py-auto-load.c: New file.
2463 * python/python-internal.h: #include <stdio.h>.
2464 (set_python_list, show_python_list): Declare.
2465 (gdbpy_initialize_auto_load): Declare.
2466 (source_python_script_for_objfile): Declare.
2467 * python/python.c: Remove #include of observer.h.
2468 (gdbpy_auto_load): Moved to py-auto-load.c.
2469 (GDBPY_AUTO_FILENAME): Ditto.
2470 (gdbpy_new_objfile): Delete.
2471 (source_python_script_for_objfile): New function.
2472 (set_python_list, show_python_list): Make externally visible.
2473 (_initialize_python): Move "auto-load" command to py-auto-load.c
2474 and observer_attach_new_objfile to py-auto-load.c.
2476 2010-04-23 Jerome Guitton <guitton@adacore.com>
2478 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2479 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2480 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2482 (alpha_heuristic_analyze_probing_loop): New function.
2483 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2484 and handle cases when a stack probe loop is generated.
2485 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2486 (alpha_mdebug_max_frame_size_exceeded): New function.
2487 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2488 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2489 Return 0 when the maximum debuggable frame size has been exceeded.
2491 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2494 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2496 2010-04-20 Chris Moller <cmoller@redhat.com>
2500 * symtab.c (rbreak_command): Added code to include a filename
2501 specification in the rbreak argument.
2502 * NEWS: Added a brief description of filename-qualified rbreak.
2504 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 Fix crashes on dangling display expressions.
2507 * ada-lang.c (ada_operator_check): New function.
2508 (ada_exp_descriptor): Fill-in the field operator_check.
2509 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2510 * jv-lang.c (exp_descriptor_java): Likewise.
2511 * m2-lang.c (exp_descriptor_modula2): Likewise.
2512 * scm-lang.c (exp_descriptor_scm): Likewise.
2513 * parse.c (exp_descriptor_standard): Likewise.
2514 (operator_check_standard): New function.
2515 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2516 * parser-defs.h (struct exp_descriptor): New field operator_check.
2517 (operator_check_standard, exp_uses_objfile): New declarations.
2518 * printcmd.c: Remove the inclusion of solib.h.
2519 (display_uses_solib_p): Remove the function.
2520 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2521 and exp_uses_objfile instead of display_uses_solib_p.
2522 * solist.h (struct so_list) <objfile>: New comment.
2523 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2524 * symtab.h (lookup_objfile_from_block): New declaration.
2525 (struct general_symbol_info) <obj_section>: Extend the comment.
2527 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2528 Thiago Jung Bauermann <bauerman@br.ibm.com>
2530 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2531 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2532 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2533 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2534 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2535 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2536 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2537 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2538 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2539 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2540 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2541 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2542 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2543 Define, in case <ptrace.h> doesn't provide it.
2544 (booke_debug_info): New variable.
2545 (max_slots_number): Ditto.
2546 (hw_break_tuple): New struct.
2547 (thread_points): Ditto.
2548 (ppc_threads): New variable.
2549 (PPC_DEBUG_CURRENT_VERSION): New define.
2550 (have_ptrace_new_debug_booke): New function.
2551 (ppc_linux_check_watch_resources): Renamed to ...
2552 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2553 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2554 (booke_cmp_hw_point): New function.
2555 (booke_find_thread_points_by_tid): Ditto.
2556 (booke_insert_point): Ditto.
2557 (booke_remove_point): Ditto.
2558 (ppc_linux_insert_hw_breakpoint): Ditto.
2559 (ppc_linux_remove_hw_breakpoint): Ditto.
2560 (get_trigger_type): Ditto.
2561 (ppc_linux_insert_watchpoint): Handle BookE processors.
2562 (ppc_linux_remove_watchpoint): Ditto.
2563 (ppc_linux_new_thread): Ditto.
2564 (ppc_linux_thread_exit): New function..
2565 (ppc_linux_stopped_data_address): Handle BookE processors.
2566 (ppc_linux_watchpoint_addr_within_range): Ditto.
2567 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2568 to_remove_hw_breakpoint fields of the target operations struct.
2569 Add observe for the thread_exit event.
2571 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2573 * i386-linux-nat.c (regmap): Removed.
2574 (fetch_register): Replace regmap with
2575 i386_linux_gregset_reg_offset.
2576 (store_register): Likewise.
2577 (supply_gregset): Likewise.
2578 (fill_gregset): Likewise.
2580 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2583 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2585 2010-04-22 Chris Moller <cmoller@redhat.com>
2587 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2588 method of popping recursion-detection stack with a method based on
2589 obstack_object_size(). (Similar to the PR9167 patch below, but for
2590 the static array obstack rather than the static member obstack.)
2592 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2594 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2595 (_initialize_amd64_linux_nat): Replace
2596 amd64_linux_gregset64_reg_offset with
2597 amd64_linux_gregset_reg_offset.
2599 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2602 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2604 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2607 * stabsread.c (set_length_in_type_chain): New function.
2608 (read_struct_type): Call set_length_in_type_chain function.
2609 (read_enum_type): Idem.
2611 2010-04-21 Stan Shebs <stan@codesourcery.com>
2612 Nathan Sidwell <nathan@codesourcery.com>
2614 * tracepoint.c (trace_save): Open in binary mode.
2616 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2618 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2620 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2621 builtin_char32 fields.
2622 * printcmd.c (decode_format): Set char size to '\0'
2623 for strings unless explicit size is given.
2624 (print_formatted): Correct calculation of NEXT_ADDRESS
2625 for 16 or 32 bit strings.
2626 (do_examine): Do not force byte size for strings.
2627 Use builtin_char16 and builtin_char32 types to display
2628 16 or 32 bit-wide strings.
2629 (x_command): Set LAST_SIZE to 'b' for string type.
2631 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2634 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2637 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2638 there is no .reg-xstate section.
2639 (i386_linux_core_read_description): Check XCR0 first.
2641 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2643 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2646 2010-04-21 Chris Moller <cmoller@redhat.com>
2649 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2650 method of popping recursion-detection stack with a method based on
2651 obstack_object_size().
2653 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2656 * p-valprint.c (pascal_val_print): Fix default printing of integer
2659 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2661 Fix compilation warning on gcc-4.1.2.
2662 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2663 local variable`pc' to zero.
2665 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2667 Implement thread support with core files on alpha-tru64.
2668 * dec-thread.c (dec_thread_find_new_threads): New function,
2669 extracted from resync_thread_list.
2670 (resync_thread_list): Add OPS parameter. Replace extracted-out
2671 code by call to dec_thread_find_new_threads.
2672 (dec_thread_wait): Update call to resync_thread_list.
2673 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2675 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2677 * ada-lang.c (value_pointer): New function.
2678 (make_array_descriptor): Call value_pointer to convert addresses to
2681 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2683 * rs6000-aix-tdep.c: #include exceptions.h.
2684 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2685 while reading the memory at ADDR, then ADDR cannot be a function
2688 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2690 * ada-typeprint.c (ada_print_typedef): New function.
2691 * ada-lang.h (ada_print_typedef): Add declaration.
2692 * ada-lang.c (ada_language_defn): set la_print_typdef field
2693 to ada_print_typedef.
2695 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2697 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2699 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2701 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2702 (iterate_over_mappings): Adjust function profile. Add declaration.
2703 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2706 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2708 * procfs.c (solib_mappings_callback): Move function up to avoid
2711 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2713 * procfs.c (find_signalled_thread, find_stop_signal): Move
2714 these functions down to define them only when used.
2716 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2718 * valprint.c (common_val_print): Fix the value before extracting
2720 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2721 * ada-lang.h (ada_to_fixed_value): New function declaration.
2722 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2723 to avoid code duplication and fix a bug in the handling of
2724 fixed types contents.
2726 2010-04-20 Tom Tromey <tromey@redhat.com>
2728 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2729 (read_partial_die): Likewise.
2730 (dwarf_attr_name): Likewise.
2732 2010-04-20 Chris Moller <cmoller@redhat.com>
2736 * cp-valprint.c (global): Adding new static array recursion
2738 (cp_print_value_fields, cp_print_static_field): Added new static
2739 array recursion detection code.
2741 2010-04-20 Mark Kettenis <kettenis@gnu.org>
2743 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2744 general-purpose register set should be 68 instead of 144.
2745 (i386_linux_sse_regset_sections): Likewise.
2746 (i386_linux_avx_regset_sections): Likewise.
2748 2010-04-20 Stan Shebs <stan@codesourcery.com>
2749 Nathan Sidwell <nathan@codesourcery.com>
2751 * dwarf2loc.c (struct axs_var_loc): New struct.
2752 (dwarf2_tracepoint_var_loc): New function.
2753 (dwarf2_tracepoint_var_access): New function.
2754 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2756 (locexpr_describe_location_piece): New function.
2757 (locexpr_describe_location_1): New function.
2758 (locexpr_describe_location): Call it, update signature.
2759 (loclist_describe_location): Rewrite to loop over locations,
2761 * symtab.h (struct symbol_computed_ops): Add address to
2762 describe_location arguments, return void.
2763 * printcmd.c (address_info): Get context PC, pass to computed
2764 location description.
2765 * tracepoint.c (scope_info): Ditto.
2766 * ax-gdb.c (trace_kludge): Export.
2768 2010-04-20 Tom Tromey <tromey@redhat.com>
2770 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2771 (struct dwarf2_cie) <segment_size>: New field.
2772 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2773 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2775 (read_attribute_value): Handle DW_FORM_flag_present,
2776 DW_FORM_sec_offset, DW_FORM_exprloc.
2777 (dump_die_shallow): Likewise.
2778 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2779 (dwarf2_const_value): Handle DW_FORM_exprloc.
2780 (attr_form_is_block): Likewise.
2781 (struct line_header) <maximum_ops_per_instruction>: New field.
2782 (dwarf_decode_line_header): Set new field.
2783 (dwarf_decode_lines): Handle new field.
2785 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2787 * f-exp.y: Add new production to recognize the `logical*8' type.
2788 (LOGICAL_S8_KEYWORD): New token.
2789 * f-lang.c (enum f_primitive_types)
2790 <f_primitive_type_logical_s8>: New field.
2791 (f_language_arch_info): Handling `logical*8' type.
2792 (build_fortran_types): Building `logical*8' type.
2793 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2795 2010-04-19 Doug Evans <dje@google.com>
2797 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2798 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2799 (pipe_close): Ditto.
2801 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2803 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2805 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2807 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2808 type to void function.
2810 2010-04-19 Stan Shebs <stan@codesourcery.com>
2811 Vladimir Prus <vladimir@codesourcery.com>
2813 * tracepoint.c (tfind_1): Add missing newline, report exit from
2815 * target.c (update_current_target): Make default
2816 to_trace_find return -1.
2818 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2820 * objc-lang.c (find_methods): Move symname check up.
2822 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2824 * ada-lang.c (print_recreate_exception)
2825 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2826 not "catch unhandled".
2828 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2830 PR breakpoints/8554.
2832 Implement `save-breakpoints'.
2834 * breakpoint.c (save_cmdlist): New.
2835 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2837 (print_recreate_catch_fork): New.
2838 (catch_fork_breakpoint_ops): Install it.
2839 (print_recreate_catch_vfork): New.
2840 (catch_vfork_breakpoint_ops): Install it.
2841 (print_recreate_catch_syscall): New.
2842 (catch_syscall_breakpoint_ops): Install it.
2843 (print_recreate_catch_exec): New.
2844 (catch_exec_breakpoint_ops): Install it.
2845 (print_recreate_exception_catchpoint): New.
2846 (gnu_v3_exception_catchpoint_ops): Install it.
2847 (save_breakpoints): New, based on tracepoint_save_command, but
2848 handle all breakpoint types.
2849 (save_breakpoints_command): New.
2850 (tracepoint_save_command): Rename to...
2851 (save_tracepoints_command): ... this, and reimplement using
2853 (save_command): New.
2854 (_initialize_breakpoints): Install the "save" command prefix.
2855 Install the "save breakpoints" command. Make "save-tracepoints" a
2856 deprecated alias for "save tracepoints".
2857 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2858 * ada-lang.c (print_recreate_exception): New.
2859 (print_recreate_catch_exception): New.
2860 (catch_exception_breakpoint_ops): Install it.
2861 (print_recreate_catch_exception_unhandled): New.
2862 (catch_exception_unhandled_breakpoint_ops): Install it.
2863 (print_recreate_catch_assert): New.
2864 (catch_assert_breakpoint_ops): Install it.
2866 * NEWS: Mention the new `save breakpoints' command. Mention the
2867 new `save tracepoints' alias and that `save-tracepoints' is now
2870 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2874 * tui/tui-out.c: Include cli-out.h.
2875 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2876 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2877 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2878 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2880 (struct ui_out_data): Rename to...
2881 (struct tui_ui_out_data): ... this. Remove `stream' and
2882 `suppress_output' fields, and inherit cli_ui_out_data.
2883 (tui_out_data): New typedef.
2884 (tui_ui_out_impl): Don't initialize fields staticaly.
2885 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2886 (tui_begin, tui_end): Delete.
2887 (tui_field_int): Adjust to delegate most work to the base type.
2888 (tui_field_skip): Delete.
2889 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2890 delegate most work to the base type.
2891 (tui_spaces): Delete.
2892 (tui_text): Adjust to delegate most work to the base type.
2893 (tui_message): Delete.
2894 (tui_wrap_hint): Delete.
2895 (tui_flush): Delete.
2896 (out_field_fmt): Delete.
2897 (field_separator): Delete.
2898 (tui_out_new): Adjust to initialize the base type.
2899 (_initialize_tui_out): Initialize tui_ui_out_impl.
2900 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2902 (cli_out_data): Adjust.
2903 (cli_ui_out_impl): Make extern.
2904 (cli_table_header, cli_field_int, cli_field_skip): Use
2905 uo_field_string instead of cli_field_string.
2906 (cli_redirect): Adjust to use cli_out_data.
2907 (cli_out_data_ctor): New.
2908 (cli_out_new): Use it.
2909 * cli-out.h (struct ui_file): Remove forward declaration.
2910 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2911 (cli_ui_out_impl): Declare.
2912 (cli_out_data_ctor): Declare.
2913 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2914 (uo_field_string): No longer static.
2915 (ui_out_data): Change return type to void pointer.
2916 (ui_out_new): Change `data' parameter type to void pointer.
2917 * ui-out.h (struct ui_out_data): Don't forward declare.
2918 (ui_out_data): Change return type to void pointer.
2919 (ui_out_new): Change `data' parameter type to void pointer.
2920 (uo_field_string): Declare.
2922 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2924 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2925 instead of always false.
2927 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2930 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2933 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2935 * breakpoint.c (watchpoints_triggered): Use
2936 is_hardware_watchpoint.
2937 (watchpoints_triggered): Ditto.
2938 (bpstat_check_location): Use is_watchpoint and
2939 is_hardware_watchpoint.
2940 (bpstat_check_watchpoint): Use is_watchpoint and
2941 is_hardware_watchpoint.
2942 (bpstat_stop_status): Fix comment.
2943 (user_settable_breakpoint): Use is_watchpoint.
2944 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2945 (disable_watchpoints_before_interactive_call_start): Use
2947 (enable_watchpoints_after_interactive_call_stop): Use
2949 (clear_command): Use is_watchpoint.
2950 (do_enable_breakpoint): Use is_watchpoint.
2952 2010-04-16 Mike Frysinger <vapier@gentoo.org>
2954 * solib-frv.c (enable_break1_done): Delete.
2955 (enable_break2): Do not check enable_break1_done. Move the
2956 enable_break2_done setting and call to
2957 remove_solib_event_breakpoints() to the end. Return without
2958 warning when the contents of _dl_debug_addr are 0.
2959 (enable_break): Do not set enable_break1_done.
2960 (frv_clear_solib): Likewise.
2962 2010-04-16 Kevin Buettner <kevinb@redhat.com>
2964 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2965 instead of an error if no PLT entry is found. Return a
2966 potentially useful result.
2967 (m32c_m16c_pointer_to_address): Add code to search for function
2968 address when no .plt entry is found.
2970 2010-04-16 Stan Shebs <stan@codesourcery.com>
2972 * tracepoint.c (trace_variable_command): Run a cleanup.
2974 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2976 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2978 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2980 Support for Windows OS Thread Information Block.
2981 * NEWS: Document new feature.
2982 * remote.c (PACKET_qGetTIBAddr): New enum element.
2983 (remote_get_tib_address): New function.
2984 (init_remote_ops): Set to_get_tib_address field
2985 to remote_get_tib_address.
2986 (_initialize_remote): Add add_packet_config_cmd
2987 for PACKET_qGetTIBAddr.
2988 * target.c (update_current_target): Set default value for
2989 new to_get_tib_address field.
2990 * target.h (target_ops): New field to_get_tib_address.
2991 (target_get_tib_address): New macro.
2992 * windows-nat.c (thread_info): Add thread_local_base field.
2993 (windows_add_thread): Add tlb argument of type 'void *'.
2994 (fake_create_process): Adapt windows_add_thread call.
2995 (get_windows_debug_event): Idem.
2996 (windows_get_tib_address): New function.
2997 (init_windows_ops): Set to_get_tib_address field
2998 to remote_get_tib_address.
2999 (_initialize_windows_nat): Replace info_w32_cmdlist
3000 initialization by a call to init_w32_command_list.
3001 (info_w32_command, info_w32_cmdlist): Removed from here...
3002 to windows-tdep.c file.
3003 * windows-tdep.h (info_w32_cmdlist): Declare.
3004 (init_w32_command_list): New external function
3006 * windows-tdep.c: Add several headers.
3007 (info_w32_cmdlist): to here, made global.
3008 (thread_information_32): New struct.
3009 (thread_information_64): New struct.
3010 (TIB_NAME): New char array.
3011 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
3012 (maint_display_all_tib): New static variable.
3013 (windows_get_tlb_type): New function.
3014 (tlb_value_read, tlb_value_write): New functions.
3015 (tlb_value_funcs): New static struct.
3016 (tlb_make_value): New function.
3017 (display_one_tib): New function.
3018 (display_tib): New function.
3019 (show_maint_show_all_tib):New function.
3020 (info_w32_command): Moved from windows-nat.c.
3021 (init_w32_command_list): New function.
3022 (_initialize_windows_tdep): New function.
3023 New "maint set/show show-all-tib" command
3024 New "$_tlb" internal variable.
3026 2010-04-16 Joel Brobecker <brobecker@adacore.com>
3028 * tui/tui-regs.c (tui_display_register): Add comment about
3030 * tui/tui-stack.c (tui_show_locator_content): Ditto.
3032 2010-04-15 Stan Shebs <stan@codesourcery.com>
3034 * frame.c: Include tracepoint.h.
3035 (get_current_frame): Allow a trace frame to be an alternate source
3036 of stack frame data.
3037 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3040 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3042 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3044 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3046 2010-04-15 Doug Evans <dje@google.com>
3048 * NEWS: Add entry for python program space support.
3049 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3050 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3051 (py-progspace.o): New rule.
3052 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3054 (find_pretty_printer_from_progspace): New function.
3055 (find_pretty_printer_from_gdb): New function.
3056 (find_pretty_printer): Rewrite.
3057 * python/py-progspace.c: New file.
3058 * python/python-internal.h (program_space): Add forward decl.
3059 (pspace_to_pspace_object, pspy_get_printers): Declare.
3060 (gdbpy_initialize_pspace): Declare.
3061 * python/python.c: #include "progspace.h".
3062 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3063 (_initialize_python): Call gdbpy_initialize_pspace.
3064 (GdbMethods): Add current_progspace, progspaces.
3066 Add -s option to source command.
3067 * NEWS: Document new option.
3068 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3069 Delete from_tty and cleanupp args. Split filep arg into file and
3070 full_pathp. New arg search_path.
3071 (source_script_from_stream): New function.
3072 (source_script_with_search): New function.
3073 (source_script): Rewrite.
3074 (source_command): Parse "-s" option.
3075 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3076 * python/python.c (source_python_script): Make file arg a const char *.
3077 Don't call fclose, leave for caller.
3078 * python/python.h (source_python_script): Update.
3080 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3081 Pedro Alves <pedro@codesourcery.com>
3083 Avoid rereading shared libraries that haven't changed.
3085 * solib.c (free_so_symbols): New function, from ...
3086 (free_so): ... here. Call it.
3087 (solib_read_symbols): Don't warn here if symbols have already been
3089 (solib_add): Warn here instead, if a pattern was specified.
3090 (reload_shared_libraries_1): New.
3091 (reload_shared_libraries): Rewrite to not fetch the library list.
3093 2010-04-14 Doug Evans <dje@google.com>
3095 * source.c (openp): Strip DOS drive letter if present before
3096 concatenating string to search path.
3098 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3100 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3101 * objfiles.c (gdb_bfd_close_or_warn): New.
3102 * corelow.c: Include objfiles.h
3103 (core_close): Use gdb_bfd_close_or_warn.
3104 * elfread.c (build_id_verify): Ditto.
3105 * exec.c (exec_close, exec_close_1): Ditto.
3107 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3108 Pedro Alves <pedro@codesourcery.com>
3110 Group errors for many missing shared libraries.
3112 * solist.h (struct so_list): Remove from_tty.
3113 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3114 (solib_map_sections): Take so_list argument. Return 0 if we
3115 failed to open a BFD. Add target sections here.
3116 (symbol_add_stub): Delete.
3117 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3118 not from_tty copied from the so_list. Don't warn a second time
3119 for a missing library.
3120 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3121 add to the section table here. Print out a single warning for all
3123 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3126 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3128 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3129 error/warning messages. Capitalize and use complete sentences.
3130 (blpy_block_syms_iternext): Likewise.
3131 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3132 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3133 (frame_info_to_frame_object, frapy_read_var)
3134 (gdbpy_frame_stop_reason_string): Likewise.
3135 * python/py-lazy-string.c (stpy_convert_to_value)
3136 (gdbpy_create_lazy_string_object): Likewise.
3137 * python/py-objfile.c (objfpy_set_printers): Likewise.
3138 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3139 * python/python.c (parameter_to_python): Likewise.
3140 * python/py-type.c (typy_range, typy_target): Likewise.
3141 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3142 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3145 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3149 * python/py-prettyprint.c (pretty_print_one_value): Test for
3151 (print_string_repr): Test for Py_None. Set flags accordingly.
3152 Return value depending on return type.
3153 (print_children): Take a value indicating whether data was printed
3154 before this function was called. Alter output accordingly.
3155 (apply_val_pretty_printer): Capture return value from
3156 print_string_repr and pass to print_children.
3158 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3161 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3162 register note sections.
3163 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3165 (i386_linux_init_abi): Install list of supported register note
3166 sections that matches the target description.
3168 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3170 * remote.c (remote_get_noisy_reply): Don't error out on empty
3172 (remote_start_remote): Update and merge tracepoints and trace
3173 state variables as long as the target supports tracepoints.
3174 (remote_trace_init): Fix prototype.
3175 (remote_download_trace_state_variable): Validate reply.
3176 (remote_trace_set_readonly_regions): Fix prototype.
3177 (remote_trace_start): Fix prototype. Check for empty reply.
3178 (remote_get_trace_status): Small cleanup.
3179 (remote_trace_stop): Fix prototype. Check for empty reply.
3180 (remote_trace_find): Check for empty reply.
3181 (remote_save_trace_data): Validate reply.
3182 (remote_set_disconnected_tracing): Check for empty reply, and
3184 (remote_set_circular_trace_buffer): Ditto.
3186 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3188 Suppress unused value warning during compilation.
3189 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3191 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3193 2010-04-12 Stan Shebs <stan@codesourcery.com>
3195 * tracepoint.c (tfile_xfer_partial): Check read result.
3197 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3199 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3200 * remote-sim.c (gdbsim_files_info): Likewise.
3202 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3204 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3205 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3207 (fetch_vfp_registers): New function to fetch VFP registers.
3208 (store_vfp_registers): New function to store VFP registers.
3209 (arm_linux_fetch_inferior_registers): Add support for VFP
3211 (arm_linux_store_inferior_registers): Likewise.
3212 (arm_linux_read_description): Likewise.
3213 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3216 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3218 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3220 (amd64_collect_xstateregset): Likewise.
3222 2010-04-09 Stan Shebs <stan@codesourcery.com>
3224 * tracepoint.c (trace_status_mi): Report frames created.
3226 * tracepoint.c (trace_dump_command): Include default-collect
3229 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3231 * symtab.c (find_function_start_sal): Never return SAL pointing
3232 before function start address, even if line info is missing.
3234 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3236 * NEWS: Mention tracepoints support.
3238 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3240 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3241 circular trace buffer statuses.
3243 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3245 * config/djgpp/fnchange.lst: Fix typo in translations for
3246 symbol-without-target_section.exp and symbol-without-target_section.c.
3248 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3250 * breakpoint.c (condition_command): Pass condition expression to
3251 set_breakpoint_condition stripped from breakpoint number.
3253 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3254 Thiago Jung Bauermann <bauerman@br.ibm.com>
3255 Tom Tromey <tromey@redhat.com>
3257 * breakpoint.c (condition_command): Simplify. Move condition
3259 (set_breakpoint_condition): ... here. New function.
3260 * breakpoint.h (set_breakpoint_condition): Declare.
3261 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3262 (SUBDIR_PYTHON_SRCS): Likewise.
3263 (py-breakpoint.o): New rule.
3264 * python/py-breakpoint.c: New file.
3265 * python/python-internal.h (gdbpy_breakpoints)
3266 (gdbpy_initialize_breakpoints): Declare.
3267 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3269 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3271 * regformats/regdat.sh: Include server.h. Don't include
3274 2010-04-08 Stan Shebs <stan@codesourcery.com>
3275 Pedro Alves <pedro@codesourcery.com>
3277 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3278 and circular_buffer.
3279 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3280 * tracepoint.c (trace_status_command): Display target's status for
3281 disconnected tracing and circular buffer.
3282 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3283 query for non-disconnected-tracing case, remove the stop_tracing
3285 (tfile_open): Clear disconnected and circular buffer status.
3286 (trace_save): Save disconnected and circular buffer status.
3287 (parse_trace_status): Parse disconnected and circular buffer status,
3288 also recognize disconnected as a stop reason.
3289 * remote.c (remote_set_disconnected_tracing): Only set
3290 QTDisconnected if the remote end supports disconnected tracing.
3291 Warn otherwise, if trying to enable disconnected tracing.
3292 * infcmd.c (detach_command): Update disconnect_tracing call.
3293 * cli/cli-cmds.c (quit_command): Ditto.
3295 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3297 * i387-tdep.c (i387_collect_xsave): Replace abort with
3300 2010-04-08 Stan Shebs <stan@codesourcery.com>
3302 * breakpoint.c (default_collect_info): New function.
3303 (breakpoints_info): Call it.
3304 (maintenance_info_breakpoints): Ditto.
3305 (tracepoints_info): Ditto.
3307 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3309 * i387-tdep.c (i387_collect_xsave): Re-indent.
3311 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3313 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3314 if HAVE_PTRACE_GETFPXREGS is defined.
3315 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3316 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3318 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3319 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3320 if .reg-xfp section doesn't exist.
3321 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3323 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3325 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3326 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3327 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3328 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3329 (i386_gdbarch_init): Update comments.
3330 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3332 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3334 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3336 * features/Makefile (i386/i386-mmx-expedite): New.
3337 (i386/i386-mmx-linux-expedite): Likewise.
3338 ($(outdir)/i386/i386-mmx.dat): Likewise.
3339 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3341 * features/i386/i386-mmx-linux.c: New.
3342 * features/i386/i386-mmx-linux.xml: Likewise.
3343 * features/i386/i386-mmx.c: Likewise.
3344 * features/i386/i386-mmx.xml: Likewise.
3345 * regformats/i386/i386-mmx-linux.dat: Likewise.
3346 * regformats/i386/i386-mmx.dat: Likewise.
3348 * features/Makefile (WHICH): Add i386/i386-mmx and
3349 i386/i386-mmx-linux.
3351 2010-04-08 Doug Evans <dje@google.com>
3353 * source.c (openp): Skip $cdir in PATH.
3355 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3358 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3360 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3361 address and a zero length.
3363 2010-04-08 Hui Zhu <teawater@gmail.com>
3365 * i386-tdep.c (i386_process_record): Add support for insn
3368 2010-04-07 Doug Evans <dje@google.com>
3370 * python/python.c (source_python_script): Use ensure_python_env
3371 to prepare environment for script.
3373 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3375 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3376 <sys/uio.h> and "i386-xstate.h".
3377 (PTRACE_GETREGSET): New.
3378 (PTRACE_SETREGSET): Likewise.
3379 (have_ptrace_getregset): Likewise.
3380 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3382 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3384 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3385 (amd64_linux_store_inferior_registers): Likewise.
3386 (amd64_linux_read_description): Check and enable AVX target
3389 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3390 and "features/i386/amd64-avx-linux.c".
3391 (amd64_linux_regset_sections): New.
3392 (amd64_linux_core_read_description): Check and enable AVX
3394 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3395 set_gdbarch_core_regset_sections.
3396 (_initialize_amd64_linux_tdep): Call
3397 initialize_tdesc_amd64_avx_linux.
3399 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3400 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3401 (tdesc_amd64_avx_linux): New.
3402 (amd64_linux_update_xstateregset): Likewise.
3404 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3405 (amd64_ymm_names): New.
3406 (amd64_ymmh_names): Likewise.
3407 (amd64_register_name): Likewise.
3408 (amd64_supply_xstateregset): Likewise.
3409 (amd64_collect_xstateregset): Likewise.
3410 (amd64_supply_xsave): Likewise.
3411 (amd64_collect_xsave): Likewise.
3412 (AMD64_NUM_REGS): Removed.
3413 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3414 %xmmN if AVX is available.
3415 (amd64_pseudo_register_name): Support pseudo YMM registers.
3416 (amd64_regset_from_core_section): Support .reg-xstate section.
3417 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3418 and ymm0h_regnum. Call set_gdbarch_register_name.
3419 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3421 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3422 AMD64_YMM15H_REGNUM.
3423 (AMD64_NUM_REGS): New.
3424 (amd64_supply_xsave): Likewise.
3425 (amd64_collect_xsave): Likewise.
3426 (amd64_register_name): Removed.
3427 (amd64_register_type): Likewise.
3429 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3431 * i387-tdep.c: Include "i386-xstate.h".
3432 (XSAVE_XSTATE_BV_ADDR): New.
3433 (xsave_avxh_offset): Likewise.
3434 (XSAVE_AVXH_ADDR): Likewise.
3435 (i387_supply_xsave): Likewise.
3436 (i387_collect_xsave): Likewise.
3438 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3439 (I387_YMM0H_REGNUM): Likewise.
3440 (I387_YMMENDH_REGNUM): Likewise.
3441 (i387_supply_xsave): Likewise.
3442 (i387_collect_xsave): Likewise.
3444 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3446 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3447 <sys/uio.h> and "i386-xstate.h".
3448 (PTRACE_GETREGSET): New.
3449 (PTRACE_SETREGSET): Likewise.
3450 (fetch_xstateregs): Likewise.
3451 (store_xstateregs): Likewise.
3452 (GETXSTATEREGS_SUPPLIES): Likewise.
3453 (regmap): Include 8 upper YMM registers.
3454 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3456 (i386_linux_store_inferior_registers): Likewise.
3457 (i386_linux_read_description): Check and enable AVX target
3460 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3461 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3462 (i386_linux_regset_sections): Add ".reg-xstate".
3463 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3464 (i386_linux_core_read_xcr0): New.
3465 (i386_linux_core_read_description): Check and enable AVX target
3467 (i386_linux_init_abi): Set xsave_xcr0_offset.
3468 (_initialize_i386_linux_tdep): Call
3469 initialize_tdesc_i386_avx_linux.
3471 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3472 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3473 (i386_linux_core_read_xcr0): New.
3474 (tdesc_i386_avx_linux): Likewise.
3475 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3477 * i386-tdep.c: Include "i386-xstate.h" and
3478 "features/i386/i386-avx.c".
3479 (i386_ymm_names): New.
3480 (i386_ymmh_names): Likewise.
3481 (i386_ymmh_regnum_p): Likewise.
3482 (i386_ymm_regnum_p): Likewise.
3483 (i386_xmm_regnum_p): Likewise.
3484 (i386_register_name): Likewise.
3485 (i386_ymm_type): Likewise.
3486 (i386_supply_xstateregset): Likewise.
3487 (i386_collect_xstateregset): Likewise.
3488 (i386_sse_regnum_p): Removed.
3489 (i386_pseudo_register_name): Support pseudo YMM registers.
3490 (i386_pseudo_register_type): Likewise.
3491 (i386_pseudo_register_read): Likewise.
3492 (i386_pseudo_register_write): Likewise.
3493 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3494 %xmmN if AVX is available.
3495 (i386_regset_from_core_section): Support .reg-xstate section.
3496 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3497 (i386_process_record): Replace i386_sse_regnum_p with
3499 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3500 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3501 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3502 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3503 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3504 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3506 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3508 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3509 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3511 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3512 (I386_AVX_NUM_REGS): New.
3513 (i386_xmm_regnum_p): Likewise.
3514 (i386_ymm_regnum_p): Likewise.
3515 (i386_ymmh_regnum_p): Likewise.
3517 * common/i386-xstate.h: New.
3519 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3521 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3523 * features/Makefile (WHICH): Add i386/i386-avx,
3524 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3525 (i386/i386-avx-expedite): New.
3526 (i386/i386-avx-linux-expedite): Likewise.
3527 (i386/x86-64-avx-expedite):Likewise.
3528 (i386/x86-64-avx-linux-expedite): Likewise.
3529 ($(outdir)/i386/i386-avx.dat): New dependency.
3530 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3531 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3532 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3534 * features/i386/32bit-avx.xml: New.
3535 * features/i386/64bit-avx.xml: Likewise.
3536 * features/i386/i386-avx-linux.c: Likewise.
3537 * features/i386/i386-avx-linux.xml: Likewise.
3538 * features/i386/i386-avx.c: Likewise.
3539 * features/i386/i386-avx.xml: Likewise.
3540 * features/i386/x86-64-avx-linux.c: Likewise.
3541 * features/i386/x86-64-avx-linux.xml: Likewise.
3542 * features/i386/x86-64-avx.c: Likewise.
3543 * features/i386/x86-64-avx.xml: Likewise.
3544 * regformats/i386/i386-avx-linux.dat: Likewise.
3545 * regformats/i386/i386-avx.dat: Likewise.
3546 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3547 * regformats/i386/x86-64-avx.dat: Likewise.
3549 2010-04-07 Doug Evans <dje@google.com>
3551 * top.c (source_file_name): Make const char *.
3552 * top.h (source_file_name): Update.
3553 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3555 (script_from_file): Change `file' arg to const char *.
3556 * cli/cli-script.h (script_from_file): Update.
3558 2010-04-06 Doug Evans <dje@google.com>
3560 * cli/cli-cmds.c (source_command): Run cleanups.
3562 2010-04-06 Stan Shebs <stan@codesourcery.com>
3564 * defs.h (char_ptr): Move typedef here from...
3565 * ada-lang.c (char_ptr): Remove.
3566 * charset.c (char_ptr): Remove.
3567 * tracepoint.h (struct uploaded_string): Remove.
3568 (struct uploaded_tp): Use vectors for string arrays.
3569 * tracepoint.c (trace_save): Use vectors of actions.
3570 (parse_tracepoint_definition): Ditto.
3571 (get_uploaded_tp): Clear vectors.
3572 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3573 (next_cmd): Change to an int.
3574 (read_next_cmd): Use vector of command strings.
3576 2010-04-06 Doug Evans <dje@google.com>
3578 * top.h (source_script, cd_command): Delete.
3579 * main.c: #include "cli/cli-cmds.h"
3581 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3583 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3584 type in bytes, not bits.
3586 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3588 * stabsread.c (define_symbol): Add support for char
3589 and string constants.
3591 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3593 Remove remaining "%ll" uses.
3594 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3596 * rs6000-nat.c (rs6000_ptrace64): Idem.
3597 * solib-pa64.c (pa64_current_sos): Idem.
3598 * solib-spu.c (spu_current_sos): Idem.
3599 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3601 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3603 * sh64-tdep.c (sh64_show_media_regs): Idem.
3605 2010-04-05 Stan Shebs <stan@codesourcery.com>
3607 * tracepoint.c: Include gdbcore.h.
3608 (tfile_xfer_partial): Return partial results, also try reading
3610 (tfile_has_all_memory): New function.
3611 (init_tfile_ops): Use it.
3613 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3616 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3617 the changes in data-directory.
3618 (init_sysinfo): Reload the syscall XML file if the data-directory
3621 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3624 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3626 2010-04-04 Stan Shebs <stan@codesourcery.com>
3627 Nathan Sidwell <nathan@codesourcery.com>
3629 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3630 breakpoints printed.
3631 (is_hardware_watchpoint): Make argument const.
3632 (is_watchpoint): Ditto.
3633 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3635 (breakpoints_info): Pass NULL to breakpoint_1.
3636 (maintenance_info_breakpoints): Ditto.
3637 (watchpoints_info): New function.
3638 (tracepoints_info): Use breakpoint_1 filter.
3639 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3640 (_initialize_breakpoint): Make "info watchpoints" its own command.
3641 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3642 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3644 2010-04-04 Stan Shebs <stan@codesourcery.com>
3646 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3648 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3650 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3651 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3653 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3655 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3656 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3658 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3660 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3663 2010-04-02 Hui Zhu <teawater@gmail.com>
3665 * i386-tdep.c (OT_DQUAD): New enum.
3666 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3667 SSE3, SSSE3 and SSE4.
3669 2010-04-02 Hui Zhu <teawater@gmail.com>
3671 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3674 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3676 * tracepoint.c (trace_dump_actions): New, factored out from
3677 trace_dump_command, and adjusted to recurse into while-stepping's
3679 (trace_dump_command): Use it.
3681 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3683 * breakpoint.h (struct counted_command_line): Moved definition to
3684 breakpoint.c, and forward declare.
3685 (breakpoint_commands): Declare.
3686 * breakpoint.c (struct counted_command_line): Moved here.
3687 (breakpoint_commands): New.
3688 * tracepoint.c (encode_actions): Use breakpoint_commands.
3689 * remote.c (remote_download_tracepoint): Ditto.
3691 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3693 * remote.c (remote_parse_stop_reply): Use hex_string instead
3694 of phex_nz for error.
3696 2010-04-01 Stan Shebs <stan@codesourcery.com>
3697 Nathan Sidwell <nathan@codesourcery.com>
3699 * tracepoint.h (enum actionline_type): Remove.
3700 (validate_actionline): Change return to void.
3701 * tracepoint.c (report_agent_reqs_errors): New function.
3702 (validate_actionline): Call it, change return to void, report errors
3704 (collect_symbol): Call report_agent_reqs_errors.
3705 (encode_actions_1): Ditto.
3706 (encode_actions): Don't expect a result from validate_actionline.
3708 2010-04-01 Stan Shebs <stan@codesourcery.com>
3710 * tracepoint.c (trace_start_command): Confirm if trace is running.
3711 (trace_stop_command): Error if trace not running.
3713 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3715 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3716 (AMD64_NUM_LOWER_BYTE_REGS): New.
3717 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3718 (amd64_pseudo_register_write): Likewise.
3719 (amd64_init_abi): Set num_byte_regs to 20.
3721 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3723 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3724 (prev_breakpoint_count): New.
3725 (set_breakpoint_count): Adjust.
3726 (rbreak_start_breakpoint_count): New.
3727 (start_rbreak_breakpoints): Adjust.
3728 (end_rbreak_breakpoints): Adjust.
3729 (struct commands_info) <arg>: New field.
3730 (do_map_commands_command): Tweak output to include breakpoint spec
3732 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3733 ARG was empty on entry. Set INFO's arg.
3734 (create_breakpoint): Adjust.
3736 * NEWS: Clarify `commands' changes.
3738 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3740 * tracepoint.c: Include stack.h.
3741 (struct add_local_symbols_data): New.
3742 (do_collect_symbol): New.
3743 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3744 iterate_over_block_local_vars.
3745 * stack.c (print_block_frame_locals): Rewrite as ...
3746 (iterate_over_block_locals): ... this. Take a callback function
3747 pointer and generic data pointer, and call that instead of
3748 print_variable_and_value.
3749 (struct print_variable_and_value_data): New.
3750 (do_print_variable_and_value): New.
3751 (iterate_over_block_local_vars): New, abstracted out from
3752 print_frame_local_vars.
3753 (print_frame_local_vars): Rewrite using
3754 iterate_over_block_local_vars.
3755 (iterate_over_block_arg_vars): New, abstracted out from
3756 print_frame_arg_vars.
3757 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3758 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3759 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3761 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
3763 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3764 instructions. Use the PC+4 if the base of the TBB or TBH is the
3767 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3769 Fix crash on reading wrong function declaration DWARF.
3770 * dwarf2read.c (read_subroutine_type): New variable void_type.
3771 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3772 more close to their use.
3774 2010-03-31 Stan Shebs <stan@codesourcery.com>
3776 * breakpoint.c (tracepoint_save_command): Include variables,
3777 conditionals, tracepoint types, and default-collect.
3778 * tracepoint.c (save_trace_state_variables): New function.
3779 * tracepoint.h (save_trace_state_variables): Declare it.
3781 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3783 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3785 2010-03-30 Keith Seitz <keiths@redhat.com>
3787 * c-typeprint.c (c_type_print_args): Don't print "void"
3788 for java, regardless of whether it is TYPE_PROTOTYPED.
3789 Use the passed-in language instead of current_language.
3790 (c_type_print_varspec_suffix): Use current_language instead
3791 of assuming language_c.
3792 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3793 any return type specifier from the physname.
3795 2010-03-30 Pedro Alves <pedro@codesourcery.com>
3797 * tui/tui-interp.c (tui_is_toplevel): New.
3799 (tui_allowed_p): New.
3800 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3802 * tui/tui.h (tui_allowed_p): Declare.
3804 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3806 * serial.h: Include winsock2.h before windows.h.
3808 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3810 * NEWS: Mention xmlRegisters= in qSupported packet.
3812 * i386-tdep.c: Include "remote.h".
3813 (_initialize_i386_tdep): Call register_remote_support_xml.
3815 * remote.c (remote_support_xml): New.
3816 (register_remote_support_xml): Likewise.
3817 (remote_query_supported_append): Likewise.
3818 (remote_query_supported): Support remote_support_xml.
3820 * remote.h (register_remote_support_xml): New.
3822 2010-03-29 Stan Shebs <stan@codesourcery.com>
3824 * tracepoint.c (trace_find_line_command): Remove dead code.
3826 * tracepoint.h (struct uploaded_string): New struct.
3827 (struct uploaded_tp): New fields for source strings.
3828 * breakpoint.c (this_utp, next_cmd): New globals.
3829 (read_uploaded_action): New function.
3830 (create_tracepoint_from_upload): Fill in more parts
3832 * tracepoint.c (encode_source_string): New function.
3833 (trace_save): Write out source strings, fix error checks.
3834 (parse_tracepoint_definition): Add source string parsing.
3835 * remote.c (PACKET_TracepointSource): New packet type.
3836 (remote_download_command_source): New function.
3837 (remote_download_tracepoint): Download source pieces also.
3838 (_initialize_remote): Add packet config command.
3840 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3843 * tracepoint.c (start_tracing): Check tracepoints before sending
3844 commands to target, don't start if all tracepoints disabled.
3846 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3848 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3850 2010-03-26 Stan Shebs <stan@codesourcery.com>
3852 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3854 2010-03-26 Tom Tromey <tromey@redhat.com>
3856 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3858 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3860 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3861 (skip_prologue_sal): Remove local definition.
3862 (resolve_sal_pc): Remove now unnecessary code.
3863 * linespec.c (minsym_found): Call skip_prologue_sal.
3864 * symtab.c (find_function_start_pc): Remove.
3865 (find_function_start_sal): Extract prologue skipping into ...
3866 (skip_prologue_sal): ... this new function. Handle code both
3867 with and without debug info. Respect SAL's explicit_pc and
3868 explicit_line flags. Inline old find_function_start_pc.
3869 * symtab.h (find_function_start_pc): Remove.
3870 (skip_prologue_sal): Add prototype.
3872 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3874 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3875 for DW_TAG_imported_module children.
3877 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3879 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3880 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3881 * completer.c (add_struct_fields): Fix inverted logic.
3883 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3885 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3887 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3889 * tracepoint.c (current_trace_status): Don't make sure error_desc
3891 (parse_trace_status): Release a previous error_desc string, and
3892 set it to NULL by default. If stop reason is tracepoint_error,
3893 make sure error_desc is not left NULL.
3895 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3897 * tracepoint.c (trace_save): Remove X from tracepoint error
3900 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3902 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3903 the terror description. Don't expect an X prefix.
3905 2010-03-25 Stan Shebs <stan@codesourcery.com>
3907 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3908 (struct trace_status): New field error_desc.
3909 * tracepoint.c (stop_reason_names): Add terror.
3910 (current_trace_status): Ensure non-NULL error description.
3911 (trace_status_command): Add error report.
3912 (trace_status_mi): Ditto.
3913 (trace_save): Add special case for error description.
3914 (parse_trace_status): Add case for errors.
3916 2010-03-25 Keith Seitz <keiths@redhat.com>
3918 * dwarf2read.c (read_subroutine_type): If the compilation unit
3919 language is Java, mark any formal parameter named "this" as
3920 artificial (GCC/43521).
3921 (dwarf2_name): Add special handling for Java constructors.
3923 2010-03-25 Tom Tromey <tromey@redhat.com>
3925 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3926 * infrun.c (handle_inferior_event): Change initialization of
3928 (handle_inferior_event): Change assignment to stop_stack_dummy.
3929 (normal_stop): Update use of stop_stack_dummy.
3930 (struct inferior_status) <stop_stack_dummy>: Change type.
3931 * inferior.h (stop_stack_dummy): Update.
3932 * infcmd.c (stop_stack_dummy): Change type.
3933 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3935 (call_function_by_hand): Call set_std_terminate_breakpoint.
3936 Rewrite std::terminate handling.
3937 * breakpoint.h (enum bptype) <bp_std_terminate,
3938 bp_std_terminate_master>: New.
3939 (enum stop_stack_kind): New.
3940 (struct bpstat_what) <call_dummy>: Change type.
3941 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3943 * breakpoint.c (create_std_terminate_master_breakpoint): New
3945 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3946 Call create_std_terminate_master_breakpoint.
3947 (print_it_typical): Handle new breakpoint kinds.
3948 (bpstat_stop_status): Handle bp_std_terminate_master.
3949 (bpstat_what): Correctly set call_dummy field. Handle
3950 bp_std_terminate_master and bp_std_terminate.
3951 (print_one_breakpoint_location): Update.
3952 (allocate_bp_location): Update.
3953 (set_std_terminate_breakpoint): New function.
3954 (delete_std_terminate_breakpoint): Likewise.
3955 (create_thread_event_breakpoint): Update.
3956 (delete_command): Update.
3957 (breakpoint_re_set_one): Update.
3958 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3960 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3962 * symfile.c (build_section_addr_info_from_bfd): New.
3963 (build_section_addr_info_from_objfile): Base it on
3964 build_section_addr_info_from_bfd.
3965 (addrs_section_compar, addrs_section_sort): New.
3966 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3967 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3968 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3970 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3972 * elfread.c (find_separate_debug_file_by_buildid):
3973 Remove unused local variable.
3975 2010-03-24 Tom Tromey <tromey@redhat.com>
3977 PR breakpoints/9352:
3978 * NEWS: Mention changes to `commands' and `rbreak'.
3979 * symtab.c (do_end_rbreak_breakpoints): New function.
3980 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3981 end_rbreak_breakpoints.
3982 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3983 (set_breakpoint_count): Likewise. Clear last_was_multi.
3984 (multi_start, multi_end, last_was_multi): New globals.
3985 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3987 (struct commands_info): New
3988 (do_map_commands_command): New function.
3989 (commands_command_1): New function.
3990 (commands_command): Use it.
3991 (commands_from_control_command): Likewise.
3992 (do_delete_breakpoint): New function.
3993 (delete_command): Use it.
3994 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3995 (do_map_disable_breakpoint): New function.
3996 (disable_command): Use it.
3997 (do_map_enable_breakpoint): New function.
3998 (enable_command): Use it.
3999 (enable_once_breakpoint): Add argument.
4000 (enable_once_command): Update.
4001 (enable_delete_breakpoint): Add argument.
4002 (enable_delete_command): Update.
4003 (break_command_really): Set last_was_multi when needed.
4004 (check_tracepoint_command): Fix formatting.
4005 (validate_commands_for_breakpoint): New function.
4006 (breakpoint_set_commands): Use it.
4007 (tracepoint_save_command): Update.
4008 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
4011 2010-03-24 Tom Tromey <tromey@redhat.com>
4013 * breakpoint.h (struct counted_command_line): New struct.
4014 (struct breakpoint) <commands>: Change type.
4015 (struct bpstats) <commands>: Change type.
4016 <commands_left>: New field.
4017 * breakpoint.c (alloc_counted_command_line): New function.
4018 (incref_counted_command_line): Likewise.
4019 (decref_counted_command_line): Likewise.
4020 (do_cleanup_counted_command_line): Likewise.
4021 (make_cleanup_decref_counted_command_line): Likewise.
4022 (breakpoint_set_commands): Use decref_counted_command_line and
4023 alloc_counted_command_line.
4024 (commands_command): Don't error if breakpoint commands are
4026 (commands_from_control_command): Likewise.
4027 (bpstat_free): Update.
4028 (bpstat_copy): Likewise.
4029 (bpstat_clear_actions): Likewise.
4030 (bpstat_do_actions_1): Likewise.
4031 (bpstat_stop_status): Likewise.
4032 (print_one_breakpoint_location): Likewise.
4033 (delete_breakpoint): Likewise.
4034 (bpstat_alloc): Initialize new field.
4035 (tracepoint_save_command): Update.
4036 * tracepoint.c (encode_actions): Update.
4037 (trace_dump_command): Update.
4039 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4041 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4042 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4043 (read_structure_type): For RealView, set TYPE_STUB on structures with
4044 no byte size and no children.
4045 (read_subroutine_type): Mark functions as prototyped by default.
4046 * symtab.c (producer_is_realview): New function.
4047 * symtab.h (expand_line_sal): Fix declaration formatting.
4048 (producer_is_realview): Declare.
4050 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4052 * arm-tdep.c (skip_prologue_function): New function.
4053 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4054 (thumb_analyze_prologue): Document return value. Recognize more
4055 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4057 (arm_skip_prologue): Remove call dummy check. Check the prologue
4058 for non-GNU compilers.
4059 (arm_instruction_changes_pc): New function.
4060 (arm_analyze_prologue): New function, broken out from
4061 arm_scan_prologue. Recognize more ARM instructions and skippable
4062 calls. Update comments. Handle NULL cache. Return the address
4063 of the first unrecognized instruction. Do not skip past other
4064 instructions which change control flow. Add debug output.
4065 (arm_scan_prologue): Use arm_analyze_prologue.
4066 (ARM_PC_32): Delete.
4067 (shifted_reg_val): Simplify ARM_PC_32 check.
4069 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4071 * tracepoint.c (tvariables_info_1): Actually compute
4072 the number of rows in the result.
4074 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4076 * remote.c (crc32): Constify `buf' parameter.
4077 (remote_verify_memory): New, abstracted out from...
4078 (compare_sections_command): ... this. Remove hardcoded target
4080 (init_remote_ops): Install remote_verify_memory.
4081 * target.c (target_verify_memory): New.
4082 * target.h (struct target_ops) <to_verify_memory>: New field.
4083 (target_verify_memory): Declare.
4085 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4087 Implement -trace-save.
4089 * mi-cmds.h (mi_cmds_trace_save): Declare.
4090 * mi-cmds.c (mi_cmds): Register -trace-save.
4091 * mi/mi-main.c (mi_cmd_trace_save): New.
4092 * remote.c (remote_save_trace_data): Take const parameter.
4093 * target.h (struct target_ops::to_save_trace_data): Take
4095 * target.c (update_current_target): Adjust to the above.
4096 * tracepoint.c (trave_save): New, extracted from
4097 (trace_save_command): ...this.
4098 (tfile_trace_find): Remove message that is unnecessary now
4099 that 'tfind' reports found frame.
4100 * tracepoint.h (trace_save): Declare.
4102 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4104 Implement -trace-find.
4106 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4107 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4108 * mi/mi-main.c (mi_cmd_trace_find): New.
4109 * target.h (struct target_ops): Document to_trace_find.
4110 * tracepoint.h (tfind_1): Declare.
4111 * tracepoint.c (finish_tfind_command): Rename to...
4113 * remote.c (remote_trace_find): Return -1 if target say
4114 there's no frame. Improve error diagnostics.
4116 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4118 -trace-define-variable and -trace-list-variables.
4120 * tracepoint.c (create_trace_state_variable): Make
4121 private copy of name, as opposed to assuming the
4122 pointer lives forever.
4123 (tvariables_info_1): New.
4124 (tvariables_info): Use the above.
4125 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4127 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4128 and -trace-list-variables.
4129 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4130 (mi_cmd_trace_list_variables): New.
4131 * mi/mi-main.c (mi_cmd_trace_define_variable)
4132 (mi_cmd_trace_list_variables): New.
4134 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4136 Implement -break-passcount.
4138 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4139 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4140 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4142 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4144 -trace-start/-trace-end/-trace-status.
4146 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4148 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4149 (mi_cmd_trace_stop): Declare.
4150 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4151 (mi_cmd_trace_stop): New.
4152 * tracepoint.c (start_tracing): New, extracted from...
4153 (trace_start_command): ...this.
4154 (trace_status_mi): New.
4155 * tracepoint.h (struct trace_status): Document
4156 stopping_tracepoint.
4157 (start_tracing, stop_tracing, trace_status_mi): Declare.
4159 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4161 Implement creating tracepoints with -break-insert.
4163 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4164 to mean that tracepoint should be created.
4166 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4168 * breakpoint.c (check_no_tracepoint_commands): Use
4169 current spelling of 'teval'.
4171 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4173 Unify actions and commands
4175 * defs.h (read_command_lines, read_command_lines_1): New
4176 parameters validator and closure.
4177 * tracepoint.h (struct action_line): Remove.
4178 * breakpoint.h (struct breakpoint): Remove the 'actions'
4180 * defs.h (enum command_control_type): New value
4181 while_stepping_control.
4182 (struct command_line): Add comments.
4183 * breakpoint.c (breakoint_is_tracepoint): New.
4184 (breakpoint_set_commands): For tracepoints,
4185 verify the commands are permissible.
4186 (check_tracepoint_commands): New.
4187 (commands_command): Require that each new line is validated using
4188 check_tracepoint_command, if we set commands for a tracepoint.
4189 (create_tracepoint_from_upload): Likewise.
4190 (print_one_breakpoint_location): Remove the code to print
4191 actions specifically.
4192 (tracepoint_save_command): Relay to print_command_lines.
4193 * cli/cli-script.c (process_next_line): New parameters validator
4194 and closure. Handle 'while-stepping'. Call validator if not null.
4195 (read_command_lines, read_command_lines1): Likewise.
4196 (recurse_read_control_structure): New parameters validator and
4197 closure. Handle while_stepping_control.
4198 (print_command_lines): Handle while-stepping.
4199 (get_command_line, define_command, document_command): Adjust.
4200 * remote.c (remote_download_tracepoint): Adjust.
4201 * tracepoint.c (make_cleanup_free_actions, read_actions)
4202 (free_actions, do_free_actions_cleanup): Remove.
4203 (trace_actions_command): Use read_command_lines.
4204 (validate_actionline): Use error in one place.
4205 (encode_actions_1): New, extracted from...
4206 (encode_actions): ...this. Also use cleanups for exception
4208 (trace_dump_command): Adjust.
4209 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4212 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4214 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4216 2010-03-22 Stan Shebs <stan@codesourcery.com>
4218 * value.c (value_static_field): Be lazy about the field's value.
4220 2010-03-22 Reid Kleckner <reid@kleckner.net>
4223 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4225 (disable_breakpoints_in_shlibs): Likewise.
4227 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4229 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4230 GCC 4.1 debug info generation (GCC PR c++/28460).
4231 (determine_prefix): Likewise.
4233 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4235 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4237 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4239 2010-03-19 Stan Shebs <stan@codesourcery.com>
4241 * ax-gdb.c (gen_fetch): Handle bool.
4242 (gen_usual_unary): Ditto.
4244 (gen_equal): New function.
4245 (gen_less): New function.
4246 (gen_expr_binop_rest): Call them, also return integer type from
4250 2010-03-19 Tom Tromey <tromey@redhat.com>
4252 * jv-lang.c (jv_dynamics_objfile_data_key)
4253 (jv_type_objfile_data_key): New globals.
4254 (class_symtab): Move earlier.
4255 (jv_per_objfile_free): New function.
4256 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4258 Remove ancient #if 1.
4259 (add_class_symbol): Remove redundant declaration.
4260 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4261 (java_link_class_type): Mark as static. Update.
4262 (jv_clear_object_type): New function.
4263 (set_java_object_type): Likewise.
4264 (get_java_object_type): Use set_java_object_type.
4265 (is_object_type): Likewise.
4266 (_initialize_java_language): Register new objfile keys.
4267 (get_java_class_symtab): Add 'gdbarch' parameter.
4268 (add_class_symtab_symbol): Update.
4269 (type_from_class): Update.
4271 2010-03-19 Stan Shebs <stan@codesourcery.com>
4273 * ax-general.c (ax_const_l): Fix a sizing bug.
4275 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4279 2010-03-18 Stan Shebs <stan@codesourcery.com>
4280 Pedro Alves <pedro@codesourcery.com>
4282 * target.h (struct target_ops): New method
4283 to_set_circular_trace_buffer.
4284 (target_set_circular_trace_buffer): New macro.
4285 * target.c (update_current_target): Add
4286 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4288 * remote.c (remote_set_circular_trace_buffer): New function.
4289 (init_remote_ops): Add it to vector.
4290 * tracepoint.h (struct trace_status): New field traceframes_created,
4291 change buffer_size and buffer_free to int.
4292 * tracepoint.c (circular_trace_buffer): New global.
4293 (start_tracing): Send values of disconnected tracing and circular
4294 trace buffer settings.
4295 (set_circular_trace_buffer): New function.
4296 (parse_trace_state): Handle total space and frames created.
4297 (trace_status_command): Display total space and total frames
4299 (trace_save): Write out new status values.
4300 (parse_trace_status): Set traceframe_count, traceframes_created,
4301 buffer_free and buffer_size to -1 by default.
4302 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4303 * NEWS: Mention the circular trace buffer option.
4305 2010-03-18 Tom Tromey <tromey@redhat.com>
4307 * infcmd.c (finish_command_continuation): Wrap print_return_value
4310 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4312 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4313 DIE has a name before creating the associated partial symbol.
4314 (read_func_scope): Emit a complaint if the subprogram does not
4315 have a name or when we can't extract the subprogram PC bounds.
4317 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4319 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4320 instead of selected frame architecture.
4322 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4324 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4325 a valid selected thread, and that it is not running.
4326 (advance_command): Ditto.
4327 (finish_command): Ditto.
4329 2010-03-17 Stan Shebs <stan@codesourcery.com>
4331 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4333 * infcall.c: Include tracepoint.h.
4334 (call_function_by_hand): Disallow calls in tfind mode.
4335 * infcmd.c: Include tracepoint.h.
4336 (ensure_not_tfind_mode): New function.
4337 (continue_1): Call it.
4339 (jump_command): Ditto.
4340 (signal_command): Ditto.
4341 (advance_command): Ditto.
4342 (until_command): Ditto.
4343 (finish_command): Ditto.
4344 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4346 * ax-gdb.h (struct axs_value): New field optimized_out.
4347 (gen_trace_for_var): Add gdbarch argument.
4348 * ax-gdb.c (gen_trace_static_fields): New function.
4349 (gen_traced_pop): Call it, add gdbarch argument.
4350 (gen_trace_for_expr): Update call to it.
4351 (gen_trace_for_var): Ditto, and report optimized-out variables.
4352 (gen_struct_ref_recursive): Check for optimized-out value.
4353 (gen_struct_elt_for_reference): Ditto.
4354 (gen_static_field): Pass gdbarch instead of expression, assume
4355 optimization if field not found.
4356 (gen_var_ref): Set the optimized_out flag.
4357 (gen_expr): Error on optimized-out variable.
4358 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4359 expressions, skip optimized-out variables with computed locations.
4360 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4361 erroring out if location expression missing.
4362 (loclist_tracepoint_var_ref): Don't error out here.
4364 2010-03-17 Tom Tromey <tromey@redhat.com>
4366 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4367 DWARF data is available.
4369 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4371 * symfile.c (generic_load): Reset breakpoints after loading.
4373 2010-03-17 Tom Tromey <tromey@redhat.com>
4375 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4377 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4379 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4380 create_breakpoint call, adjust the parameters.
4382 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4383 Chandru <chandru@in.ibm.com>
4385 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4386 * valarith.c (value_subscripted_rvalue): Suppress error if
4387 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4389 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4391 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4393 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4395 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4396 before doing the associated thread switch.
4398 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4400 * MAINTAINERS: Update my email address.
4402 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4404 Simplify MI breakpoint setting.
4406 * breakpoint.c (break_command_really): Make nonstatic and
4408 (create_breakpoint): ...this. Rename prior function by this name
4410 (create_breakpoint_sal): ...this.
4411 (create_breakpoints): Rename to...
4412 (create_breakpoints_sal): ...this.
4413 (set_breakpoint): Remove.
4414 * breakpoint.h: Adjust to above changes.
4415 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4417 2010-03-15 Stan Shebs <stan@codesourcery.com>
4419 * ax-gdb.c: Include cp-support.h.
4420 (find_field): Remove.
4421 (gen_primitive_field): New function.
4422 (gen_struct_ref_recursive): New function.
4423 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4425 (gen_static_field): New function.
4426 (gen_struct_elt_for_reference): New.
4427 (gen_namespace_elt): New.
4428 (gen_maybe_namespace_elt): New.
4429 (gen_aggregate_elt_ref): New.
4430 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4432 2010-03-15 Tom Tromey <tromey@redhat.com>
4434 * dwarf2read.c (die_needs_namespace): Also return 0 for
4437 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4440 * cp-support.h: Added char *declaration element to using_direct
4442 (cp_add_using): Added char *declaration argument.
4443 (cp_add_using_directive): Ditto.
4444 (cp_lookup_symbol_imports): made extern.
4445 * cp-namespace.c: Updated with the above changes.
4446 * dwarf2read.c (read_import_statement): Ditto.
4447 (read_namespace): Ditto.
4448 (read_import_statement): Support import declarations.
4449 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4451 Added support for 'declaration_only' search.
4452 (cp_lookup_symbol_namespace): Attempt to search for the name as
4453 is before consideration of imports.
4454 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4455 search at every block level search.
4456 Now takes language argument.
4457 (lookup_symbol_aux): Updated.
4459 2010-03-15 Tom Tromey <tromey@redhat.com>
4461 * c-exp.y (name_not_typename): Add 'operator' clause.
4463 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4465 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4466 * configure: Regenerate.
4468 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4470 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4471 and ".sdynbss". Update the comment.
4473 2010-03-15 Jie Zhang <jie@codesourcery.com>
4475 * MAINTAINERS: Update my email address.
4477 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4479 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4481 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4483 * charset.c [USE_WIN32API]: Include <windows.h>.
4484 (_initialize_charset): Correct type of w32_host_default_charset.
4486 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4488 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4490 2010-03-12 Tom Tromey <tromey@redhat.com>
4493 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4494 in a lexical block does not need a namespace.
4495 (new_symbol) <DW_TAG_variable>: Put extern variables on
4496 list_in_scope in all cases.
4498 2010-03-12 Stan Shebs <stan@codesourcery.com>
4500 * ax-gdb.c (gen_expr): Add shift expressions.
4501 (gen_expr_binop_rest): Ditto.
4503 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4505 * buildsym.c (finish_block): Reset using_directives pointer
4506 after block initialization.
4508 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4510 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4511 * i386-tdep.c (i386_word_names): Likewise.
4513 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4515 * target.c (memory_xfer_partial): Don't use the stack cache if
4516 inspecting trace frames.
4517 * tracepoint.c (finish_tfind_command): Invalidate the target
4520 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4522 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4523 for the PIC displacement, print also the displacement value.
4524 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4526 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4528 * remote-mips.c (close_ports, mips_initialize_cleanups)
4529 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4530 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4531 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4532 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4533 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4534 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4535 comments describing each of these functions.
4536 (mips_enter_debug, mips_exit_debug, common_open)
4537 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4538 blank line after the comment describing the function.
4540 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4542 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4543 parameter displacementp. Update comment.
4544 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4545 element exists. Return if svr4_exec_displacement was not successful.
4548 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4549 Daniel Jacobowitz <dan@codesourcery.com>
4551 * solib-svr4.c (read_program_header): Support type == -1 to read
4552 all program headers.
4553 (read_program_headers_from_bfd): New function.
4554 (svr4_static_exec_displacement): Remove and move the comment ...
4555 (svr4_exec_displacement): ... here. Remove variable found. New
4556 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4557 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4558 targets using read_program_headers_from_bfd. Remove the call of
4559 svr4_static_exec_displacement.
4561 2010-03-10 Tom Tromey <tromey@redhat.com>
4563 * dwarf2read.c (struct pubnames_header): Remove.
4564 (_PUBNAMES_HEADER): Remove.
4565 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4566 (struct aranges_header): Remove.
4567 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4568 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4569 (PUBNAMES_SECTION): Remove.
4570 (ARANGES_SECTION): Remove.
4571 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4572 (dwarf2_build_psymtabs): Remove dead code.
4573 (dwarf2_build_psymtabs_easy): Remove.
4575 2010-03-10 Tom Tromey <tromey@redhat.com>
4577 * elfread.c (elf_symfile_read): Don't call
4578 dwarf2_build_frame_info.
4579 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4580 (struct dwarf2_per_objfile) <objfile>: New field.
4581 (dwarf2_has_info): Now idempotent. Set objfile field.
4582 (dwarf2_read_section): Check and set readin field. Call
4584 (dwarf2_build_psymtabs): Don't read all sections.
4585 (read_type_comp_unit_head): Read types section.
4586 (create_debug_types_hash_table): Likewise.
4587 (init_cu_die_reader): Add asserts.
4588 (process_type_comp_unit): Add assert.
4589 (dwarf2_build_psymtabs_hard): Read info section.
4590 (load_partial_comp_unit): Add assert.
4591 (create_all_comp_units): Read info section.
4592 (load_full_comp_unit): Likewise.
4593 (dwarf2_ranges_read): Read ranges section.
4594 (dwarf2_record_block_ranges): Add assert.
4595 (dwarf2_read_abbrevs): Read abbrev section.
4596 (read_indirect_string): Read str section.
4597 (dwarf_decode_line_header): Read line section.
4598 (read_signatured_type_at_offset): Read types section.
4599 (dwarf_decode_macros): Read macinfo section.
4600 (dwarf2_symbol_mark_computed): Read loc section.
4601 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4602 dwarf2_build_frame_info.
4603 (dwarf2_build_frame_info): Unconditionally set
4604 dwarf2_frame_objfile_data on the objfile.
4605 * configure.ac: Check for posix_madvise.
4606 * config.in, configure: Rebuild.
4608 2010-03-10 Tom Tromey <tromey@redhat.com>
4610 * xcoffread.c (xcoff_start_psymtab): Update.
4611 (xcoff_end_psymtab): Update.
4612 * psymtab.c (allocate_psymtab): Remove dead code.
4613 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4615 * mdebugread.c (parse_partial_symbols): Update.
4616 (new_psymtab): Likewise.
4617 * dwarf2read.c (process_psymtab_comp_unit): Update.
4618 (psymtab_to_symtab_1): Update.
4619 * dbxread.c (start_psymtab): Update.
4620 (end_psymtab): Likewise.
4622 2010-03-10 Tom Tromey <tromey@redhat.com>
4624 * xcoffread.c: Include psymtab.h.
4625 (xcoff_sym_fns): Update.
4626 * symtab.h (struct partial_symbol): Remove.
4627 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4628 (struct partial_symtab): Remove.
4629 (PSYMTAB_TO_SYMTAB): Remove.
4630 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4631 (find_pc_sect_psymtab): Remove.
4632 (find_pc_sect_symtab_via_partial): Declare.
4633 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4634 (find_main_psymtab): Remove.
4635 (find_main_filename): Declare.
4636 (fixup_psymbol_section): Remove.
4637 (fixup_section): Declare.
4638 * symtab.c: Include psymtab.h.
4639 (lookup_symtab): Use lookup_symtab method.
4640 (lookup_partial_symtab): Remove.
4641 (find_pc_sect_psymtab_closer): Remove.
4642 (find_pc_sect_psymtab): Remove.
4643 (find_pc_sect_symtab_via_partial): New function.
4644 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4645 (fixup_section): No longer static.
4646 (fixup_psymbol_section): Remove.
4647 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4648 (lookup_global_symbol_from_objfile): Likewise.
4649 (lookup_symbol_aux_psymtabs): Remove.
4650 (lookup_symbol_aux_quick): New function.
4651 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4652 (lookup_partial_symbol): Remove.
4653 (basic_lookup_transparent_type_quick): New function.
4654 (basic_lookup_transparent_type): Use it.
4655 (find_main_psymtab): Remove.
4656 (find_main_filename): New function.
4657 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4658 (find_line_symtab): Use expand_symtabs_with_filename method.
4659 (output_partial_symbol_filename): New function.
4660 (sources_info): Use map_partial_symbol_filenames.
4661 (struct search_symbols_data): New type.
4662 (search_symbols_file_matches): New function.
4663 (search_symbols_name_matches): Likewise.
4664 (search_symbols): Use expand_symtabs_matching method.
4665 (struct add_name_data): Rename from add_macro_name_data.
4666 (add_macro_name): Update.
4667 (add_partial_symbol_name): New function.
4668 (default_make_symbol_completion_list): Use
4669 map_partial_symbol_names.
4670 (struct add_partial_symbol_name): New type.
4671 (maybe_add_partial_symtab_filename): New function.
4672 (make_source_files_completion_list): Use
4673 map_partial_symbol_filenames.
4674 (expand_line_sal): Use expand_symtabs_with_filename method.
4675 * symmisc.c: Include psymtab.h.
4676 (print_objfile_statistics): Use print_stats method.
4677 (dump_objfile): Use dump method.
4678 (dump_psymtab, maintenance_print_psymbols)
4679 (maintenance_info_psymtabs, maintenance_check_symtabs)
4680 (extend_psymbol_list): Remove.
4681 * symfile.h (struct quick_symbol_functions): New struct.
4682 (struct sym_fns) <qf>: New field.
4683 (sort_pst_symbols): Remove.
4684 (increment_reading_symtab): Declare.
4685 * symfile.c: Include psymtab.h.
4686 (compare_psymbols, sort_pst_symbols): Remove.
4687 (psymtab_to_symtab): Remove.
4688 (increment_reading_symtab): New function.
4689 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4691 (set_initial_language): Use find_main_filename.
4692 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4693 (free_named_symtabs): Remove unused code.
4694 (start_psymtab_common, add_psymbol_to_bcache)
4695 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4697 * stack.c: Include psymtab.h, symfile.h.
4698 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4699 * source.h (psymtab_to_fullname): Don't declare.
4700 * source.c: Include psymtab.h.
4701 (select_source_symtab): Use find_last_source_symtab method.
4702 (forget_cached_source_info): Use forget_cached_source_info
4704 (find_and_open_source): No longer static.
4705 (psymtab_to_fullname): Remove.
4706 * somread.c: Include psymtab.h.
4707 (som_sym_fns): Update.
4708 * psympriv.h: New file.
4709 * psymtab.h: New file.
4710 * psymtab.c: New file.
4711 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4712 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4713 * objfiles.c: Include psymtab.h.
4714 (objfile_relocate1): Use relocate method.
4715 (objfile_has_partial_symbols): Use has_symbols method.
4716 * mipsread.c: Include psymtab.h.
4717 (ecoff_sym_fns): Update.
4718 * mi/mi-cmd-file.c: Include psymtab.h.
4719 (print_partial_file_name): New function.
4720 (mi_cmd_file_list_exec_source_files): Use
4721 map_partial_symbol_filenames.
4722 * mdebugread.c: Include psympriv.h.
4723 * machoread.c: Include psympriv.h.
4724 (macho_sym_fns): Update.
4725 * m2-exp.y (yylex): Use lookup_symtab.
4726 * elfread.c: Include psympriv.h.
4727 (elf_sym_fns): Update.
4728 * dwarf2read.c: Include psympriv.h.
4729 * dbxread.c: Include psympriv.h.
4730 (aout_sym_fns): Update.
4731 * cp-support.c: Include psymtab.h.
4732 (read_in_psymtabs): Remove.
4733 (make_symbol_overload_list_qualified): Use
4734 expand_symtabs_for_function method.
4735 * coffread.c: Include psympriv.h.
4736 (coff_sym_fns): Update.
4737 * blockframe.c: Include psymtab.h.
4738 (find_pc_partial_function): Use find_pc_sect_symtab method.
4739 * ada-lang.h (ada_update_initial_language): Update.
4740 * ada-lang.c: Include psymtab.h.
4741 (ada_update_initial_language): Remove 'main_pst' argument.
4742 (ada_lookup_partial_symbol): Remove.
4743 (struct ada_psym_data): New type.
4744 (ada_add_psyms): New function.
4745 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4746 (struct add_partial_datum): New type.
4747 (ada_add_partial_symbol_completions): New function.
4748 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4749 (ada_exception_support_info_sniffer): Update.
4750 * Makefile.in (SFILES): Add psymtab.c.
4751 (COMMON_OBS): Add psymtab.o.
4752 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4754 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4756 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4758 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4761 * cp-namespace.c (cp_add_using): Deleted.
4762 (cp_add_using_directive): Use obstack allocations.
4763 Merged the function cp_add_using into this one.
4764 Added 'struct obstack *' argument.
4765 (cp_scan_for_anonymous_namespaces): Updated.
4766 * cp-support.h: Updated.
4767 * dwarf2read.c (read_import_statement): Updated.
4768 (read_namespace): Updated.
4770 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4772 * windows-nat.c (cygwin_conv_path): Remove old macro.
4774 2010-03-10 Pedro Alves <pedro@codesourcery.com>
4776 * breakpoint.c (condition_command): Handle watchpoint conditions.
4777 (is_hardware_watchpoint): Add comment.
4778 (is_watchpoint): New.
4779 (update_watchpoint): Don't reparse the watchpoint's condition
4782 (watchpoint_check): Use it.
4783 (bpstat_check_watchpoint): Handle it.
4784 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4785 conditions in a frame where it makes sense.
4786 (watch_command_1): Store the innermost block of the condition
4788 (delete_breakpoint): Delete the watchpoint condition expression.
4789 * breakpoint.h (struct bp_location) <cond>: Update comment.
4790 (struct breakpoint): New field `cond_exp_valid_block'.
4792 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4794 Adjust handling of Ada DIEs after dwarf2_physname patch.
4795 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4797 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4798 Pierre Muller <muller@ics.u-strasbg.fr>
4800 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4801 from/to posix/win32.
4802 (windows_make_so): Use non-Cygwin 1.7 specific function.
4803 (windows_create_inferior): Make sure that cygallargs points to
4804 original args in non Cygwin 1.7. case.
4806 2010-03-09 Michael Snyder <msnyder@vmware.com>
4808 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4809 after target_read_memory to get host byte order.
4810 (i386_process_record): Ditto.
4812 2010-03-09 Keith Seitz <keiths@redhat.com>
4814 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4815 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4816 print out const or volatile qualifiers, too.
4817 (c_type_print_args): Add parameters show_artificial and language.
4818 Skip artificial parameters when requested.
4819 Use the appropriate language printer.
4820 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4821 parameters and pass language_c.
4822 * dwarf2read.c (die_list): New file global.
4823 (struct partial_die_info): Update comments for name field.
4824 (pdi_needs_namespace): Renamed to ...
4825 (die_needs_namespace): ... this. Rewrite.
4826 (dwarf2_linkage_name): Remove.
4827 (add_partial_symbol): Do not predicate the call to
4828 partial_die_full_name based on pdi_needs_namespace.
4829 Remove call to cp_check_possible_namespace_symbols and associated
4831 (guess_structure_name): Do not inspect child subprogram DIEs.
4832 (dwarf2_fullname): Update comments.
4833 Use die_needs_namespace to assist in computing the name.
4834 (read_func_scope): Use dwarf2_name to get the DIE's name.
4835 Use dwarf2_physname to get the "linkage name" of the DIE.
4836 (dwarf2_add_member_field): Use dwarf2_physname instead of
4837 dwarf2_linkage_name.
4838 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4839 (determine_class): Remove.
4840 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4842 (new_symbol): Unconditionally call dwarf2_name.
4843 Compute the "linkage name" using dwarf2_physname.
4844 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4845 When determining to scan for anonymous C++ namespaces, ignore
4847 (dwarf2_physname): New function.
4848 (dwarf2_full_name): Move content to new function and call
4850 (dwarf2_compute_name): "New" function.
4851 (_initialize_dwarf2_read): Initialize die_list.
4852 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4854 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4855 without a demangled name.
4856 Print out type information for non-virtual methods.
4857 * linespec.c (decode_line_1): Force ANY string using "::" (or
4858 "." for java) to use decode_compound, and clean up any stray quoting.
4859 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4860 (decode_compound): Stop consuming at an open parenthesis.
4861 Keep template parameters.
4862 Keep any overload information.
4863 Keep keywords like "const".
4864 Remove paren_pointer.
4865 Move is_quoted check from set_flags to here.
4866 Remove #if 0 code from 2000. Ten years is long enough.
4867 (find_method): Before comparing symbol names, canonicalize the string
4869 If a specific overload is requested, find it. Otherwise throw an error.
4870 (find_method_overload_end): New function.
4871 (set_flags): Remove.
4872 (decode_compound): Assume that parentheses are matched.
4874 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4876 * linespec.c (decode_line_1): Keep important keywords like
4877 "const" and "volatile".
4878 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4879 * typeprint.h (c_type_print_args): Add declaration.
4880 * ui-file.c (do_ui_file_obsavestring): New function.
4881 (ui_file_obsavestring): New function.
4882 * ui-file.h (ui_file_obsavestring): Add declaration.
4883 * valops.c (find_overload_match): Resolve the object to
4885 If the object is a data member, search the object for the member
4886 and return with staticp set.
4887 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4888 Do not attempt to extract a function name from non-function types.
4889 If the extracted function name and the original name are the same,
4890 we don't have a C++ method.
4892 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4893 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4895 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4896 and arguments from symbol lookups.
4897 * ax-gdb.c (gen_expr): Likewise.
4898 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4899 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4900 lookup_possible_namespace_symbol): Likewise.
4901 * cp-support.c (read_in_psymtabs): Likewise.
4902 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4903 * language.h (la_lookup_symbol_nonlocal): Likewise.
4904 * scm-valprint.c (scm_inferior_print): Likewise.
4905 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4906 * solib-svr.c (elf_lookup_lib): Likewise.
4907 * solib.c (show_auto_solib_add): Likewise.
4908 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4909 * symmisc.c (maintenance_check_symtabs): Likewise.
4910 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4911 lookup_symbol_aux_local, lookup_symbol_aux_block,
4912 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4913 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4914 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4915 basic_lookup_transparent_type, find_main_psymtab,
4916 lookup_block_symbol): Likewise.
4917 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4918 lookup_symbol_global, lookup_symbol_aux_block,
4919 lookup_symbol_partial_symbol, lookup_block_symbol,
4920 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4922 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4924 * python/python-internal.h: Include symtab.h.
4926 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4927 Pierre Muller <muller@ics.u-strasbg.fr>
4929 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4930 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4933 2010-03-08 Tom Tromey <tromey@redhat.com>
4935 * breakpoint.c (breakpoint_1): Add "QUIT".
4937 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4938 Pedro Alves <pedro@codesourcery.com>
4940 * solib.c (solib_find): Replace extension if
4941 solib_symbols_extension is set in the target gdbarch.
4942 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4943 solib_symbols_extension to "sym".
4944 * gdbarch.sh (solib_symbols_extension): New variable.
4945 (pstring): New function.
4946 * gdbarch.h, gdbarch.c: Regenerate.
4948 2010-03-08 Tom Tromey <tromey@redhat.com>
4952 * utils.c: Include main.h.
4953 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4954 (defaulted_query): Use default answer if `batch_flag'.
4955 * main.h (batch_flag): Declare.
4956 * main.c (batch_flag): New global.
4957 (captured_main): Remove 'batch'. Update.
4959 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4961 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4964 * remote-mips.c (rockhopper_ops): New target_ops struct.
4965 (MON_ROCKHOPPER): New mips_monitor_type.
4966 (read_hex_value): New function.
4967 (mips_request): Send 8-byte values with a 'T' packet. Read the
4968 packet argument as a string and use read_hex_value to parse it.
4969 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4970 (rockhopper_open): New function.
4971 (mips_wait): Read the PC, FP and SP fields as strings. Use
4972 read_hex_value to parse them and mips_set_register to commit them.
4973 (mips_set_register): New function.
4974 (mips_fetch_registers): Do not cast register value to "unsigned"
4975 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4976 (mips_store_registers): Use a 'T' packet to set registers when
4977 using MON_ROCKHOPPER.
4978 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4979 and expect the total to be printed before the entry address.
4980 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4982 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4984 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4985 Change return value to int. Store value fetched in location
4986 addressed by `val'. Use function's return value as success
4987 or failure indicator. Adjust all callers.
4989 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
4991 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4993 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4994 Hui Zhu <teawater@gmail.com>
4996 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4997 tmp_to_stopped_data_address.
4998 (record_open): Reset tmp_to_stopped_by_watchpoint and
4999 tmp_to_stopped_data_address.
5000 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
5001 to_stopped_data_address.
5003 2010-03-08 Hui Zhu <teawater@gmail.com>
5005 * i386-tdep.c (i386_process_record): Initialize regnum.
5007 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5009 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
5010 Do not warn on ".gnu.liblist" and ".gnu.conflict".
5012 2010-03-08 Joel Brobecker <brobecker@adacore.com>
5014 Memory error when reading wrong core file.
5015 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
5016 errors while reading the inferior memory, and return zero if
5017 an exception was raised.
5019 2010-03-07 Michael Snyder <msnyder@vmware.com>
5021 * record.c (record_restore): Rename tmpu8 to rectype.
5023 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
5024 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
5026 (i386_record_push): Rename local tmpulongest to addr.
5028 (i386_process_record): Rename local tmpulongest to addr.
5030 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
5033 Rename local variable tmpu8 to opcode8 and regnum.
5035 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5037 * remote.c (remote_get_ada_task_ptid): New function.
5038 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5040 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5042 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5043 block. Define helper macros to reduce ifdefs in code.
5044 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5045 size. Call unadorned GetModuleFileNameEx rather than
5046 GetModuleFileNameEx*.
5047 (windows_make_so): Use __PMAX to denote maximum buffer size and
5048 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5050 (get_image_name): Use __PMAX to denote maximum buffer size.
5051 (handle_load_dll): Likewise.
5052 (windows_pid_to_exec_file): Likewise.
5053 (windows_create_inferior): Add many accommodations for older Cygwin and
5055 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5056 __USEWIDE conditional.
5057 (bad_GetModuleFileNameExA): Likewise.
5058 (_initialize_loadable): Just use real function names without the dyn_
5059 part since they are defined earlier.
5061 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5062 Tom Tromey <tromey@redhat.com>
5064 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5065 (parse_escape): Likewise.
5066 * python/py-utils.c (unicode_to_target_string): Update.
5067 (unicode_to_target_python_string): Update.
5068 (target_string_to_unicode): Update.
5069 * printcmd.c (printf_command): Update.
5070 * p-exp.y (yylex): Update.
5071 * objc-exp.y (yylex): Update.
5072 * mi/mi-parse.c: Include charset.h.
5073 (mi_parse_escape): New function.
5074 (mi_parse_argv): Use it.
5075 * jv-exp.y (yylex): Update.
5076 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5078 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5079 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5080 * gdbarch.c: Rebuild.
5081 * gdbarch.h: Rebuild.
5082 * defs.h (parse_escape): Update.
5083 * cli/cli-setshow.c: Include arch-utils.h.
5084 (do_setshow_command): Update.
5085 * cli/cli-cmds.c (echo_command): Update.
5086 * charset.h (target_charset, target_wide_charset): Update.
5087 * charset.c: Include arch-utils.h.
5088 (target_charset_name): Default to "auto".
5089 (target_wide_charset_name): Likewise.
5090 (show_target_charset_name): Handle "auto".
5091 (show_target_wide_charset_name): Likewise.
5092 (be_le_arch): New global.
5093 (set_be_le_names): Add 'gdbarch' argument.
5094 (validate): Likewise. Don't call set_be_le_names.
5095 (set_charset_sfunc, set_host_charset_sfunc)
5096 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5098 (target_charset): Add 'gdbarch' argument.
5099 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5100 (auto_target_charset_name): New global.
5101 (default_auto_charset, default_auto_wide_charset): New functions.
5102 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5103 for target charsets. Copy result of nl_langinfo. Use GetACP if
5105 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5106 remove 'byte_order' argument. Update.
5107 (classify_type): Likewise.
5108 (c_emit_char): Update.
5109 (c_printchar): Update.
5110 (c_printstr): Update.
5111 (c_get_string): Update.
5112 (evaluate_subexp_c): Update.
5113 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5115 * python/python.c (gdbpy_target_charset): New function.
5116 (gdbpy_target_wide_charset): Likewise.
5117 (GdbMethods): Update.
5120 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5122 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5123 off high address bits.
5125 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5127 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5128 address as UnsignedLongLong, not LongLong.
5130 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5131 Pedro Alves <pedro@codesourcery.com>
5133 * remote-mips.c (gdbthread.h): Include.
5134 (remote_mips_ptid): Declare.
5135 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5136 (common_open): Set inferior_ptid, add it as an inferior, and
5137 as a thread too. Delete FIXME comment regarding start_remote().
5138 (mips_close): Invoke generic_mourn_inferior().
5139 (mips_kill): Make sure that target_mourn_inferior is invoked.
5140 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5141 it's now invoked from mips_close().
5142 (mips_load): Don't null out inferior_ptid. Don't call
5143 clear_symtab_users().
5144 (mips_thread_alive, mips_pid_to_str): New functions.
5145 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5146 to_thread_alive and to_pid_to_str operations.
5148 2010-03-04 Tom Tromey <tromey@redhat.com>
5150 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5151 in DWARF 3 and later.
5152 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5154 2010-03-04 Keith Seitz <keiths@redhat.com>
5156 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5157 If the filename portion of the linespec was quoted, recheck the
5158 remainder for additional quoting.
5159 (locate_first_half): Skip over completer chars, too.
5161 2010-03-04 Tom Tromey <tromey@redhat.com>
5163 * printcmd.c (printf_command): Pass dummy argument to
5166 2010-03-04 Doug Evans <dje@google.com>
5168 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5171 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5173 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5175 * breakpoint.c (update_watchpoint): Create a sentinel location if
5176 the software watchpoint isn't watching any memory.
5177 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5179 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5181 * utils.c (fputs_maybe_filtered): Check if there's already a top
5182 level interpreter before dereferencing it. If there isn't one,
5183 don't paginate either.
5185 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5187 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5188 the state right when single stepping.
5189 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5190 Get the next PC along with the instruction state.
5191 (thumb_get_next_pc): Remove.
5192 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5194 2010-03-04 Hui Zhu <teawater@gmail.com>
5196 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5198 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5200 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5201 top level interpreter is MI.
5203 2010-03-03 Stan Shebs <stan@codesourcery.com>
5205 * remote.c (remote_download_tracepoint): Iterate over locations.
5206 * tracepoint.c (validate_actionline): Ditto.
5207 (encode_actions): Add location argument.
5208 (trace_dump_command): Check all locations to see if stepping
5211 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5212 Eli Zaretskii <eliz@gnu.org>
5214 * NEWS: Add X86 general purpose registers section.
5216 2010-03-03 Tom Tromey <tromey@redhat.com>
5219 * varobj.c (install_new_value): Handle case where new print_value
5222 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5225 * printcmd.c (printf_command): Print end of format string using
5228 2010-03-02 Tom Tromey <tromey@redhat.com>
5230 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5231 * defs.h (read_command_lines_1): Add missing 'void'.
5232 * cli/cli-script.c (recurse_read_control_structure): Add missing
5234 (read_next_line): Likewise.
5235 (read_command_lines_1): Likewise.
5237 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5239 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5240 store backchain as part of prologue.
5242 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5244 * progspace.c (update_address_spaces): Update inferior address spaces
5247 2010-03-02 Doug Evans <dje@google.com>
5249 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5250 lowpc,highpc args to addrmap_set_empty.
5252 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5254 * amd64-tdep.c (amd64_byte_names): New.
5255 (amd64_word_names): Likewise.
5256 (amd64_dword_names): Likewise.
5257 (amd64_pseudo_register_name): Likewise.
5258 (amd64_pseudo_register_read): Likewise.
5259 (amd64_pseudo_register_write): Likewise.
5260 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5261 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5262 set_gdbarch_pseudo_register_write and
5263 set_tdesc_pseudo_register_name. Don't call
5264 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5266 * i386-tdep.c (i386_num_mmx_regs): Removed.
5267 (i386_num_pseudo_regs): Likewise.
5268 (i386_byte_names): New.
5269 (i386_word_names): Likewise.
5270 (i386_byte_regnum_p): Likewise.
5271 (i386_word_regnum_p): Likewise.
5272 (i386_mmx_regnum_p): Updated.
5273 (i386_pseudo_register_name): Make it global. Handle byte and
5274 word pseudo-registers.
5275 (i386_pseudo_register_read): Likewise.
5276 (i386_pseudo_register_write): Likewise.
5277 (i386_pseudo_register_type): Handle byte, word and dword
5279 (i386_register_reggroup_p): Don't include pseudo
5280 registers, except for MXX, in any register groups. Don't
5281 include pseudo byte, word, dword registers in general_reggroup.
5282 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5283 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5284 pseudo-registers after word pseudo-registers. Call
5285 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5287 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5288 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5290 (i386_byte_regnum_p): New.
5291 (i386_word_regnum_p): Likewise.
5292 (i386_dword_regnum_p): Likewise.
5293 (i386_pseudo_register_name): Likewise.
5294 (i386_pseudo_register_read): Likewise.
5295 (i386_pseudo_register_write): Likewise.
5297 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5299 * target-descriptions.c (tdesc_type): Remove
5300 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5301 (tdesc_predefined_types): Likewise.
5302 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5303 if flag name is empty.
5304 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5306 * features/i386/32bit-core.xml: Define i386_eflags.
5307 * features/i386/64bit-core.xml: Likewise.
5309 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5310 * features/i386/64bit-sse.xml: Likewise.
5312 * features/i386/amd64-linux.c: Regenerated.
5313 * features/i386/amd64.c: Likewise.
5314 * features/i386/i386-linux.c: Likewise.
5315 * features/i386/i386.c: Likewise.
5317 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5319 * gdbtypes.c (append_composite_type_field_raw): New.
5320 (append_composite_type_field_aligned): Use the new function.
5321 * gdbtypes.h (append_composite_type_field_raw): Declare.
5322 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5323 (struct tdesc_type_flag): New type.
5324 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5325 kind. Add size to u.u. Add u.f for flags.
5326 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5327 (tdesc_free_type): Likewise.
5328 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5329 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5330 (tdesc_add_bitfield, tdesc_add_flag): New.
5331 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5332 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5333 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5334 current_type. Add current_type_size and current_type_is_flags.
5335 (tdesc_start_union): Clear the new fields.
5336 (tdesc_start_struct, tdesc_start_flags): New.
5337 (tdesc_start_field): Handle struct fields, including bitfields.
5338 (field_attributes): Make type optional. Add start and end.
5339 (union_children): Rename to struct_union_children.
5340 (union_attributes): Rename to struct_union_attributes. Add optional
5342 (flags_attributes): New.
5343 (feature_children): Add struct and flags.
5344 * features/gdb-target.dtd: Add flags and struct to features.
5345 Make field type optional. Add field start and end.
5347 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5349 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5350 (amd64_linux_read_description): Likewise.
5351 (_initialize_amd64_linux_nat): Set to_read_description to
5352 amd64_linux_read_description.
5354 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5355 (amd64_linux_register_name): Removed.
5356 (amd64_linux_register_type): Likewise.
5357 (amd64_linux_core_read_description): New.
5358 (amd64_linux_init_abi): Set target description to
5359 tdesc_amd64_linux if needed. Support orig_rax in target
5360 description. Don't call set_gdbarch_register_name nor
5361 set_gdbarch_register_type. Call
5362 set_gdbarch_core_read_description.
5363 (_initialize_amd64_linux_tdep): Call
5364 initialize_tdesc_amd64_linux.
5366 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5368 * amd64-tdep.c: Include "features/i386/amd64.c".
5369 (amd64_register_names): Removed.
5370 (amd64_register_name): Likewise.
5371 (amd64_register_type): Likewise.
5372 (amd64_init_abi): Set num_core_regs and register_names. Set
5373 target description to tdesc_amd64 if needed. Don't call
5374 set_gdbarch_register_name nor set_gdbarch_register_type.
5375 (_initialize_amd64_tdep): New.
5377 * i386-linux-nat.c (i386_linux_read_description): New.
5378 (_initialize_i386_linux_nat): Set to_read_description to
5379 i386_linux_read_description.
5381 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5382 (i386_linux_register_name): Removed.
5383 (i386_linux_core_read_description): New.
5384 (i386_linux_read_description): Likewise.
5385 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5386 Set target description to tdesc_i386_linux if needed. Support
5387 orig_eax. Set register_reggroup_p. Call
5388 set_gdbarch_core_read_description.
5389 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5391 * i386-linux-tdep.h (tdesc_i386_linux): New.
5393 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5396 * i386-tdep.c: Include "features/i386/i386.c".
5397 (i386_register_names): Make it const.
5398 (i386_mmx_names): Likewise.
5399 (i386_num_register_names): Removed.
5400 (i386_register_name): Likewise.
5401 (i386_eflags_type): Likewise.
5402 (i386_mxcsr_type): Likewise.
5403 (i386_sse_type): Likewise.
5404 (i386_register_type): Likewise.
5405 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5406 (i386_pseudo_register_name): New.
5407 (i386_pseudo_register_type): Likewise.
5408 (i386_mmx_type): Make it static.
5409 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5410 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5411 call set_gdbarch_register_name nor set_gdbarch_register_type.
5412 Set register_reggroup_p. Set target description to tdesc_i386
5413 if needed. Call set_tdesc_pseudo_register_type,
5414 set_tdesc_pseudo_register_name and tdesc_use_registers.
5415 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5416 initialize_tdesc_x86_64.
5418 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5419 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5420 register_names, tdesc and register_reggroup_p.
5421 (I386_NUM_FREGS): Removed.
5422 (i386_eflags_type): Likewise.
5423 (i386_mxcsr_type): Likewise.
5424 (i386_mmx_type): Likewise.
5425 (i386_sse_type): Likewise.
5426 (i386_register_name): Likewise.
5427 (i386_regnum): Add I386_MXCSR_REGNUM.
5428 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5430 * i387-tdep.h (I387_NUM_REGS): New.
5432 * regformats/i386/i386-linux.dat: Generated.
5433 * regformats/i386/i386.dat: Likewise.
5434 * regformats/i386/amd64-linux.dat: Likewise.
5435 * regformats/i386/amd64.dat: Likewise.
5437 * regformats/reg-i386-linux.dat: Removed.
5438 * regformats/reg-i386.dat: Likewise.
5439 * regformats/reg-x86-64-linux.dat: Likewise.
5440 * regformats/reg-x86-64.dat: Likewise.
5442 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5444 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5445 cygwin_conv_path API rather than the deprecated
5446 cygwin_conv_to_full_posix_path.
5448 (GetModuleFileNameExA): Undefine for Cygwin.
5449 (GetModuleFileNameExW): Define for Cygwin.
5450 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5451 Call GetModuleFileNameExW and convert path to POSIX using
5453 (windows_make_so): Always define p. Drop unused variable m.
5454 Don't use Win32 functions to check file existance, rather use
5455 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5456 Use canonicalize_file_name to get full path.
5457 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5458 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5459 use correct target buffer size in call to WideCharToMultiByte.
5460 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5461 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5462 (windows_create_inferior): Convert all paths and arguments to wchar_t
5463 and use CreateProcessW on Cygwin.
5464 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5465 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5466 (bad_GetModuleFileNameExW): Define for Cygwin.
5467 (_initialize_loadable): Load GetModuleFileNameExW into
5468 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5470 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5473 * python/py-frame.c (frapy_read_var): Add block argument and logic
5474 to cope with user provided blocks.
5476 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5478 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5481 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5483 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5484 (COMMON_OBS): ... to here since it's used unconditionally.
5485 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5488 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5490 * mips-linux-tdep.c: Update struct sigframe comments.
5491 (SIGFRAME_CODE_OFFSET): Delete macro.
5492 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5494 (mips_linux_n32n64_sigframe_init): Same.
5496 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5498 * remote-mips.c (mips_load): Don't use pseudo-register when
5499 invalidating regcache.
5501 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5503 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5505 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5507 * NEWS: Add "New targets" section, and mention ARM Symbian
5510 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5512 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5513 add ADDR_SIZE member.
5514 (allocate_piece_closure): Update.
5515 (copy_pieced_value_closure): Likewise.
5516 (dwarf2_evaluate_loc_desc): Likewise.
5517 (read_pieced_value): Use DWARF address size instead of
5518 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5520 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5521 Tom Tromey <tromey@redhat.com>
5523 * python/py-type.c (typy_lookup_typename): Add in block argument.
5524 If provided restrict lookup to specified blocks.
5525 (gdbpy_lookup_type): Likewise.
5526 (typy_lookup_type): Likewise.
5528 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5533 * arm-symbian-tdep.c: New.
5534 * configure.tgt (arm*-*-symbianelf*): New target.
5535 (*-*-symbianelf*): New OS.
5536 * osabi.c (gdb_osabi_names): Add Symbian.
5537 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5538 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5539 (ALLDEPFILES): Add arm-symbian-tdep.c.
5541 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5543 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5545 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5547 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5549 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5550 Tom Tromey <tromey@redhat.com>
5551 Thiago Jung Bauermann <bauerman@br.ibm.com>
5553 * python/python.c (_initialize_python): Call
5554 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5555 gdbpy_initialize_blocks.
5556 * python/python-internal.h: Declare struct symbol, block and
5557 symtab_and_line. Declare block_object_type and
5559 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5560 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5561 (symbol_to_symbol_object, block_to_block_object)
5562 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5563 (gdbpy_initialize_blocks ): Declare.
5564 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5565 (frapy_select): Add methods.
5566 (frapy_read_var): Add symbol branch.
5567 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5569 (SUBDIR_PYTHON_SRCS): Likewise.
5570 (py-symbol.o): New rule.
5571 (py-symtab.o): Likewise.
5572 (py-block.o): Likewise.
5573 * python/py-symbol.c: New file.
5574 * python/py-symtab.c: Likewise.
5575 * python/py-block.c: Likewise.
5577 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5581 * inferior.h (prepare_for_detach): Declare.
5582 (struct inferior) <detaching>: New field.
5583 * infrun.c (prepare_for_detach): New.
5584 (handle_inferior_event) <random signal>: Don't stop if detaching.
5585 * target.c (target_detach): Call prepare_for_detach.
5587 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5589 Per-process displaced stepping queue.
5591 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5592 (displaced_step_gdbarch, displaced_step_closure,
5593 (displaced_step_original, displaced_step_copy): Move globals to
5595 (struct displaced_step_inferior_state): ... new structure.
5596 (displaced_step_inferior_states): New global.
5597 (get_displaced_stepping_state, add_displaced_stepping_state)
5598 (remove_displaced_stepping_state, infrun_inferior_exit): New
5600 (displaced_step_clear): Add displaced_step_inferior_state
5601 parameter, and adjust to handle it.
5602 (displaced_step_clear_cleanup): Parameter is now a
5603 displaced_step_inferior_state. Adjust.
5604 (displaced_step_prepare): Adjust.
5605 (displaced_step_fixup, displaced_step_fixup)
5606 (infrun_thread_ptid_changed, resume): Adjust.
5607 (init_wait_for_inferior): Don't call displaced_step_clear.
5608 (infrun_thread_stop_requested): Rewrite.
5609 (_initialize_infrun): Install infrun_inferior_exit as
5610 inferior_exit observer.
5612 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5614 * inferior.h (ptid_match): Declare.
5615 * infrun.c (ptid_match): New.
5616 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5617 (handle_notification): Add debug output.
5618 * linux-nat.c (ptid_match): Delete.
5620 2010-02-24 David S. Miller <davem@davemloft.net>
5622 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5623 * syscalls/sparc-linux.xml: New.
5624 * syscalls/sparc64-linux.xml: New.
5625 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5626 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5627 (sparc32_linux_get_syscall_number): New function.
5628 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5629 syscall number fetcher.
5630 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5631 (sparc64_linux_get_syscall_number): New function.
5632 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5633 syscall number fetcher.
5635 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5639 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5640 * inferior.c (add_inferior_silent): Notify inferior_added
5642 (delete_inferior_1): Notify inferior_removed observer.
5643 (exit_inferior_1): Pass inferior, not pid, to observer.
5644 (inferior_appeared): Likewise.
5645 (add_inferior_with_spaces): New.
5646 (add_inferior_command): Use the above.
5647 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5650 * inflow.c (inflow_inferior_exit): Likewise.
5651 * jit.c (jit_inferior_exit_hook): Likewise.
5653 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5655 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5656 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5657 (report_initial_inferior): New.
5658 (mi_inferior_removed): Register the above. Make sure
5659 inferior_added observer is called on the first inferior.
5660 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5661 inferior number, not pid.
5662 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5664 * mi/mi-main.c (current_context): New.
5665 (proceed_thread_callback): Use typed closure.
5666 Proceed everything if pid is 0. Most implementation split into
5667 (proceed_thread): ... this.
5668 (run_one_inferior): New.
5669 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5670 Adjust for multiexec behaviour.
5671 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5672 (mi_cmd_execute): Handle the 'thread-group' option here.
5673 Do some extra checks.
5674 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5676 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5678 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5680 Make -exec-run a proper MI commands.
5682 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5683 * mi/mi-cmds.c (mi_cmds): Adjust.
5684 * mi/mi-main.c (mi_cmd_exec_run): New.
5686 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5687 Stan Shebs <stan@codesourcery.com>
5689 * tracepoint.h (set_traceframe_number)
5690 (cleanup_restore_current_traceframe): Declare.
5691 * tracepoint.c (set_traceframe_number): New.
5692 (struct current_traceframe_cleanup): New.
5693 (do_restore_current_traceframe_cleanup)
5694 (restore_current_traceframe_cleanup_dtor)
5695 (make_cleanup_restore_current_traceframe): New.
5696 * infrun.c: Include tracepoint.h.
5697 (fetch_inferior_event): Switch out and in of tfind mode.
5699 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5701 * breakpoint.c (breakpoint_init_inferior): Also delete
5702 bp_shlib_event breakpoints.
5703 * solib-frv.c (enable_break): Remove call to
5704 remove_solib_event_breakpoints.
5705 * solib-svr4.c (enable_break): Ditto.
5706 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5707 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5708 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5709 * solib-spu.c (spu_enable_break): Ditto.
5711 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5713 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5715 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5717 * varobj.c (varobj_update): Avoid non-constants in initializers.
5719 2010-02-23 Tom Tromey <tromey@redhat.com>
5721 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5722 handle big-endian values.
5723 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5725 2010-02-22 Pedro Alves <pedro@codesourcery.com>
5730 * breakpoint.c (insert_bp_location): If inserting the read
5731 watchpoint failed, fallback to an access watchpoint.
5732 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5733 if the value changed, if not watching the same memory for writes.
5734 (watchpoint_locations_match): Add comment.
5735 (update_global_location_list): Copy the location's watchpoint type.
5736 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5737 handle read watchpoints here.
5738 (i386_insert_watchpoint): Read watchpoints aren't supported.
5739 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5741 * target.h (target_insert_watchpoint): Update description.
5743 2010-02-19 Tom Tromey <tromey@redhat.com>
5745 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5746 * m2-typeprint.c (m2_print_type): Update.
5747 * gdbtypes.c (recursive_dump_type): Update.
5748 (copy_type_recursive): Update.
5749 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5750 (c_type_print_base): Update.
5751 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5753 (struct cplus_struct_type) <ntemplate_args>: Remove.
5754 <struct template_arg>: Remove.
5755 <is_dynamic>: Move earlier.
5756 (TYPE_TEMPLATE_ARGS): Remove.
5757 (TYPE_NTEMPLATE_ARGS): Remove.
5758 (TYPE_TEMPLATE_ARG): Remove.
5760 2010-02-19 Tom Tromey <tromey@redhat.com>
5762 PR c++/8693, PR c++/9496:
5763 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5764 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5765 write_dollar_variable. Don't try to classify NAME tokens.
5766 (token_and_value): New type.
5767 (token_fifo, popping, name_obstack): New globals.
5768 (classify_name): New function.
5769 (classify_inner_name): Likewise.
5771 (VARIABLE): Now has type sval.
5772 (exp : VARIABLE): Call write_dollar_variable.
5773 (qualified_name): Use TYPENAME, not typebase. Add production for
5774 multiple "::" instances.
5775 (variable): Use name_not_typename.
5776 (qualified_type): Remove.
5779 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5781 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5782 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5783 found by bfd_get_section_by_name.
5784 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5786 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5788 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5789 7.0 section" into "Changes in 7.1".
5791 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5793 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5794 * version.in: Bump version to 7.1.50.20100219-cvs.
5796 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5798 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5799 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5801 2010-02-17 Tom Tromey <tromey@redhat.com>
5803 * NEWS: Add Python API Improvements section.
5805 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5807 * NEWS: Correct typo.
5809 2010-02-17 Tom Tromey <tromey@redhat.com>
5811 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5813 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5815 * symfile.c (build_section_addr_info_from_objfile): Include sections
5816 only if they are SEC_ALLOC or SEC_LOAD.
5818 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5821 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5822 of ULONGEST for address size.
5824 2010-02-17 Tom Tromey <tromey@redhat.com>
5826 * NEWS: Add C++ improvements section.
5828 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5830 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5831 PyThreadState_Swap): Avoid "statement with no effect" warning.
5833 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5835 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5836 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5838 2010-02-17 Tristan Gingold <gingold@adacore.com>
5839 Petr Hluzin <petr.hluzin@gmail.com>
5841 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5842 gdb_assert. Fix info->size for SIG prologue.
5844 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5846 * infcmd.c (show_inferior_tty_command): Check for NULL.
5847 Correct output message.
5849 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5851 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5852 FUNCTION contains parentheses. Improve removal of a trailing
5855 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5857 * gcore.c (do_bfd_delete_cleanup): New function.
5858 (gcore_command): Use it. Discard the cleanup after success.
5859 (gcore_copy_callback): Delete dead code.
5861 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5863 * symfile.c (addr_info_make_relative): Always use
5864 find_lowest_section.
5866 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5868 * NEWS: Added entry for namespace fixes.
5870 2010-02-15 Tom Tromey <tromey@redhat.com>
5872 * dwarf2read.c (guess_structure_name): Allocate name on the
5875 2010-02-15 Tom Tromey <tromey@redhat.com>
5877 * c-typeprint.c (c_type_print_base): Reverse order of test.
5879 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5881 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5882 initialize it from ELF BFD. Extend the prelink condition by it.
5884 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5886 * defs.h (parse_pid_to_attach): New.
5887 * utils.c (parse_pid_to_attach): New.
5888 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5889 * gnu-nat.c (gnu_attach): Likewise.
5890 * nto-procfs.c (procfs_attach): Likewise.
5891 * procfs.c (procfs_attach): Likewise.
5892 * windows-nat.c (windows_attach): Likewise.
5893 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5894 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5895 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5898 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5900 * MAINTAINERS: Add myself for write after approval privileges.
5902 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5904 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5907 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5909 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5910 only if INFO_VERBOSE.
5912 2010-02-12 Tomas Holmberg <th@virtutech.com>
5914 * mi/mi-main.c: Added the --reverse flag to the following MI
5915 commands: exec-continue, exec-finish, exec-next, exec-step,
5916 exec-next-instruction, exec-step-instruction. This is to
5917 support reverse execution over the MI interface to gdb.
5919 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5921 * tracepoint.c (_initialize_tracepoint): Specify that the address
5922 range of `tfind outsize' is exclusive, and that the address range
5923 of `tfind range' is inclusive, in the commands' help strings.
5925 2010-02-12 Joel Brobecker <brobecker@adacore.com>
5927 Spurious "dll not found" error messages on x64-windows.
5928 * windows-nat.c: Add include of complaints.h.
5929 (handle_unload_dll): Change dll-not-found error into a complaint.
5931 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5933 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5934 bp_tracepoint and bp_fast_tracepoint, not
5935 bp_loc_software_breakpoint.
5936 (update_global_location_list): Tracepoints are never duplicates of
5939 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5941 * breakpoint.c (break_command_really): Change return type to int.
5942 Return false if no breakpoint was created, true otherwise.
5943 (trace_command): Don't set the tracepoint count if no tracepoint
5945 (ftrace_command): Ditto.
5946 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5947 created in the breakpoints table.
5949 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5950 Ulrich Weigand <uweigand@de.ibm.com>
5952 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5954 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5956 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5957 the offset value isn't of integral type.
5959 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5961 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5964 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5966 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5967 non-subscriptable types.
5968 * valarith.c (binop_types_user_defined_p): New, abstracted out
5970 (binop_user_defined_p): ... this.
5971 * value.h (binop_types_user_defined_p): Declare.
5973 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5975 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5976 Merge uploaded TSVs before merging uploaded tracepoints.
5978 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5980 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5982 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
5984 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5985 whitespace character after a dot in comment.
5986 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5988 (list_args_or_locals): For the 'all' (that is
5989 -stack-list-variables) case, always output list of tuples.
5990 Output 'arg' field if variable is argument.
5992 2010-02-10 Tom Tromey <tromey@redhat.com>
5994 * parser-defs.h (parser_debug): Declare.
5995 * parse.c (_initialize_parse): Install "debug parser" set/show
5997 (parser_debug): New global.
5998 (show_parserdebug): New function.
5999 * c-exp.y (c_parse): Set yydebug.
6001 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
6003 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
6004 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6005 (tdesc_predefined_types): Add i387_ext, i386_eflags and
6007 (tdesc_find_type): New.
6008 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
6009 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6011 * target-descriptions.h (tdesc_find_type): New.
6013 2010-02-10 Michael Snyder <msnyder@vmware.com>
6015 * gdb-gdb.py: Comment fix.
6017 2010-02-09 Tristan Gingold <gingold@adacore.com>
6019 * machoread.c (macho_symfile_relocate): New function.
6020 (macho_sym_fns): Use macho_symfile_relocate instead of
6021 default_symfile_relocate.
6022 (macho_oso_data): New type.
6023 (current_oso): New variable.
6024 (macho_add_oso_symfile): Do not compute section_addr_info, but
6025 instead set vma of sections.
6026 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
6027 Set and clear current_oso.
6029 2010-02-09 Joel Brobecker <brobecker@adacore.com>
6031 Wrong type description for tagged type parameter.
6032 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
6033 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
6034 reference to a tagged type.
6036 2010-02-09 Tristan Gingold <gingold@adacore.com>
6038 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6039 brothers of the parent.
6041 2010-02-08 Tom Tromey <tromey@redhat.com>
6045 * valops.c (search_struct_field): Make 'name' const.
6046 (search_struct_method): Likewise.
6047 (find_method_list): Make 'method' const.
6048 (value_struct_elt): Make 'name' and 'err' const.
6049 (value_find_oload_method_list): Make 'method' const.
6050 (find_overload_match): Make 'name' const.
6051 * eval.c (evaluate_subexp_standard): New locals function,
6053 <OP_FUNCALL>: Handle OP_SCOPE specially.
6055 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6057 * infrun.c (handle_inferior_event): Do not look up regcache
6058 for exited processes.
6060 2010-02-08 Chris Moller <moller@mollerware.com>
6063 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6064 warn if found, and assume length = 1.
6066 2010-02-08 Chris Moller <cmoller@redhat.com>
6069 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6070 cp_print_static_field) Fix use of obstacks.
6072 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6074 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6075 resumed LWPs as resumed.
6076 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6077 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6078 of throwing an internal error. If an LWP of a process we're not
6079 waiting for reports a signal, don't force collecting a SIGSTOP,
6080 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6081 go through all LWPs cancelling breakpoints in non-stop mode.
6082 (resume_stopped_resumed_lwps): New.
6083 (linux_nat_wait): Use it.
6085 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6087 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6088 i386/amd64 and i386/amd64-linux.
6089 (i386/i386-expedite): New.
6090 (i386/i386-linux-expedite): Likewise.
6091 (i386/amd64-expedite):Likewise.
6092 (i386/amd64-linux-expedite): Likewise.
6093 ($(outdir)/i386/i386-linux.dat): Likewise.
6094 ($(outdir)/i386/amd64.dat): Likewise.
6095 ($(outdir)/i386/amd64-linux.dat): Likewise.
6097 * features/i386/32bit-core.xml: New.
6098 * features/i386/32bit-linux.xml: Likewise.
6099 * features/i386/32bit-sse.xml: Likewise.
6100 * features/i386/64bit-core.xml: Likewise.
6101 * features/i386/64bit-linux.xml: Likewise.
6102 * features/i386/64bit-sse.xml: Likewise.
6103 * features/i386/i386-linux.xml: Likewise.
6104 * features/i386/i386.xml: Likewise.
6105 * features/i386/amd64-linux.xml: Likewise.
6106 * features/i386/amd64.xml: Likewise.
6107 * features/i386/i386-linux.c: Likewise.
6108 * features/i386/i386.c: Likewise.
6109 * features/i386/amd64-linux.c: Likewise.
6110 * features/i386/amd64.c: Likewise.
6112 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6115 * cp-support.h: Added char* alias element to using_direct data
6117 (cp_add_using): Added char* alias argument.
6118 (cp_add_using_directive): Ditto.
6119 * cp-namespace.c: Updated with the above changes.
6120 (cp_lookup_symbol_imports): Check for aliases.
6121 * dwarf2read.c (read_import_statement): Figure out local alias
6122 for the import and pass it on to cp_add_using.
6123 (read_namespace): Pass alias argument to cp_add_using.
6125 2010-02-05 Hui Zhu <teawater@gmail.com>
6127 * defs.h (gdb_bfd_errmsg): New extern.
6128 * exec.c (exec_file_attach): Change bfd_errmsg to
6130 * utils.c (AMBIGUOUS_MESS1): New macro.
6131 (AMBIGUOUS_MESS2): New macro.
6132 (gdb_bfd_errmsg): New function.
6134 2010-02-04 Doug Evans <dje@google.com>
6136 * solib-svr4.c (enable_break): Add comment.
6138 2010-02-04 Anthony Green <green@moxielogic.com>
6140 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6143 2010-02-04 Tom Tromey <tromey@redhat.com>
6145 * valops.c (search_struct_field): Account for
6146 value_embedded_offset. Fix check for virtual base past the end of
6147 the object. Use value_copy when making a slice of the value.
6149 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6152 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6153 only if gdb_stdout is a tty.
6155 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6157 * target-descriptions.c: Include "osabi.h".
6158 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6161 2010-02-04 Tristan Gingold <gingold@adacore.com>
6163 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6164 (macho_symtab_read): Adjust calls to macho_add_oso.
6165 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6166 (macho_symfile_read): Adjust call to macho_oso_symfile.
6167 (macho_new_init): Move this function after declarations.
6168 (macho_symfile_init): Ditto.
6169 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6170 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6172 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6174 Include MI command in remotelog.
6176 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6178 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6180 * remote.c (remote_state): Remove gdbarch.
6181 (init_remote_state): Don't set gdbarch.
6182 (remote_query_supported): Pass target_gdbarch instead of
6183 rs->gdbarch to gdbarch_qsupported.
6185 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6187 * gdbarch.sh: Add qsupported.
6189 * gdbarch.c: Regenerated.
6190 * gdbarch.h: Likewise.
6192 * remote.c (remote_state): Add gdbarch.
6193 (init_remote_state): Set gdbarch.
6194 (remote_query_supported): Support gdbarch_qsupported.
6196 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6198 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6199 __FreeBSD_kernel_version.
6201 2010-02-03 Tristan Gingold <gingold@adacore.com>
6203 * symfile.h (struct sym_fns): Add sym_relocate field.
6204 (default_symfile_relocate): New prototype.
6205 (symfile_relocate_debug_section): First argument is now an objfile.
6206 * symfile.c (default_symfile_relocate): Rename from
6207 symfile_relocate_debug_section, first argument is now an objfile.
6208 (symfile_relocate_debug_section): New function.
6209 * coffread.c (coff_sym_fns): Set sym_relocate field.
6210 * somread.c (som_sym_fns): Ditto.
6211 * mipsread.c (ecoff_sym_fns): Ditto.
6212 * machoread.c (macho_sym_fns): Ditto.
6213 * elfread.c (elf_sym_fns): Ditto.
6214 * dwarf2read.c (dwarf2_read_section): Ditto.
6215 * xcoffread.c (xcoff_sym_fns): Ditto.
6216 * dbxread.c (aout_sym_fns): Ditto.
6217 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6218 (elfstab_build_psymtabs): Ditto.
6220 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6222 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6224 2010-02-02 Tom Tromey <tromey@redhat.com>
6226 * valops.c (value_cast_structs): Try downcasting using the RTTI
6229 2010-02-02 Tom Tromey <tromey@redhat.com>
6231 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6232 (gnuv2_baseclass_offset): Now static.
6233 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6234 * gnu-v2-abi.h: Remove.
6236 2010-02-02 Tom Tromey <tromey@redhat.com>
6238 * m2-typeprint.c (m2_record_fields): Don't use
6240 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6241 (struct main_type) <flag_declared_class>: New field.
6242 (struct cplus_struct_type) <declared_type>: Remove.
6243 <ntemplate_args>: Move earlier.
6244 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6245 (DECLARED_TYPE_TEMPLATE): Remove.
6246 (TYPE_DECLARED_TYPE): Remove.
6247 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6248 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6249 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6252 2010-02-02 Tom Tromey <tromey@redhat.com>
6254 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6255 * valops.c (search_struct_field): Compute nbases after calling
6257 (check_field): Call CHECK_TYPEDEF.
6258 * cp-valprint.c (cp_print_value): Pass correct address to
6259 baseclass_offset. Fix check for virtual base past the end of the
6260 object. Don't offset address passed to cp_print_value_fields or
6261 apply_val_pretty_printer.
6262 (cp_print_value_fields): Fix call to val_print.
6263 (cp_print_value_fields_rtti): New function.
6264 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6265 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6267 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6269 * language.h (struct language_defn) <la_val_print>: Document.
6270 * c-lang.h (cp_print_value_fields_rtti): Declare.
6272 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6275 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6276 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6277 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6279 2010-02-01 Michael Matz <matz@suse.de>
6280 Daniel Jacobowitz <dan@codesourcery.com>
6282 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6283 functions use a frame pointer.
6285 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6287 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6288 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6289 * config/djgpp/fnchange.lst: Add translations for
6290 symbol-without-target_section.exp and symbol-without-target_section.c.
6292 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6294 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6295 (remote_breakpoint_for_pc): Correct invalid_p check.
6296 * gdbarch.c: Regenerated.
6298 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6300 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6302 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6303 (extend_buffer_earlier): New function.
6304 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6305 (arm_adjust_breakpoint_address): New function.
6306 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6308 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6310 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6311 (arm_linux_thumb2_le_breakpoint): New constants.
6312 (arm_linux_init_abi): Set thumb2_breakpoint and
6313 thumb2_breakpoint_size.
6314 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6315 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6316 Implement support for single stepping through IT blocks if
6317 a 32-bit Thumb breakpoint instruction is available.
6318 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6319 is available, use it when needed.
6320 (arm_remote_breakpoint_from_pc): New function.
6321 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6322 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6323 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6325 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6327 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6328 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6329 * gdbarch.c, gdbarch.h: Regenerated.
6330 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6331 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6332 gdbarch_remote_breakpoint_from_pc.
6334 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6336 * infrun.c (prepare_to_proceed): Handle other signals which might
6338 (handle_inferior_event): Move the check for unusual breakpoint
6341 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6343 amd64 - function returning record with field straddling 2 registers.
6344 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6345 a record of length <= 16 in which a field straddles the two
6348 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6350 Implement return values on amd64-windows.
6351 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6352 (amd64_windows_return_value): New function.
6353 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6354 amd64_windows_return_value.
6356 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6358 amd64-windows: 32 bytes allocated on stack by caller for integer
6359 parameter registers.
6360 * i386-tdep.h (struct gdbarch_tdep): Add new field
6361 integer_param_regs_saved_in_caller_frame.
6362 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6363 tdep->integer_param_regs_saved_in_caller_frame to 1.
6364 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6365 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6367 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6369 amd64-windows: memory args passed by pointer during function calls.
6370 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6371 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6372 where tdep->memory_args_by_pointer is non-zero.
6373 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6374 tdep->memory_args_by_pointer to 1.
6376 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6378 amd64-windows: Integer parameters in function calls.
6379 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6381 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6382 call_dummy_integer_regs, and classify.
6383 * amd64-tdep.h (amd64_classify): Add declaration.
6384 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6385 (amd64_reg_class): Delete, moved to i386-tdep.h.
6386 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6387 Replace call to amd64_classify by call to tdep->classify.
6388 (amd64_push_arguments): Get the list of registers to use for
6389 passing integer parameters from the gdbarch tdep structure,
6390 rather than using a hardcoded one. Replace calls to amd64_classify
6391 by calls to tdep->classify.
6392 (amd64_push_dummy_call): Get the register number used for
6393 the "hidden" argument from tdep->call_dummy_integer_regs.
6394 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6395 and tdep->call_dummy_integer_regs. Set tdep->classify.
6396 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6397 (amd64_windows_dummy_call_integer_regs): New static global.
6398 (amd64_windows_classify): New function.
6399 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6400 tdep->call_dummy_integer_regs and tdep->classify.
6402 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6404 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6405 for the new regcache. All callers updated.
6406 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6407 (get_thread_arch_regcache): Do not set aspace here.
6408 * regcache.h (regcache_xmalloc): Update declaration.
6410 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6411 regcache_xmalloc updated.
6413 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6415 Another -Wunused-function error in procfs.c (sparc-solaris)
6416 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6417 Only define if SYS_syssgi is defined.
6418 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6419 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6420 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6423 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6425 * windows-nat.c (windows_initialization_done): New variable.
6426 (get_windows_debug_event): Issue error when process dies before
6427 completely initializing.
6428 (do_initial_windows_stuff): Set flag to indicate when we are done with
6429 the initial steps of attaching to the child.
6431 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6433 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6435 2010-01-27 Doug Evans <dje@google.com>
6437 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6439 * breakpoint.c (bpstat_stop_status): Delete useless code.
6441 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6443 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6444 objfile via SYMBOL_SYMTAB.
6446 2010-01-26 Tom Tromey <tromey@redhat.com>
6449 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6450 coerce_array on result.
6452 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6454 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6455 search_parent argument.
6456 (cp_add_using): Initialize 'searched' field.
6457 (reset_directive_searched): New function.
6458 * cp-support.h: Add 'searched' field to using_direct struct.
6459 (cp_lookup_symbol_imports): Ditto.
6460 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6461 Perform recursive search.
6462 Implement non parent search.
6463 * valops.c (value_maybe_namespace_elt): Updated.
6465 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6468 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6469 scopes which contain using directives even if they contain no
6471 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6472 la_lookup_symbol_nonlocal.
6473 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6474 cp_lookup_symbol_namespace.
6475 (cp_lookup_symbol_namespace): Perform an import lookup at every
6477 (cp_lookup_symbol_imports): New function.
6478 (cp_lookup_symbol_in_namespace): New function.
6480 2010-01-25 Tom Tromey <tromey@redhat.com>
6483 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6486 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6488 * configure.ac: Only use host_os part when disabling TUI on osf.
6489 Use test to check variables, prefix strings with x.
6490 * configure: Regenerate.
6492 * solib-osf.c (osf_current_sos): Initialize tail.
6494 2010-01-25 gingold <gingold@adacore.com>
6496 * windows-nat.c (windows_continue): Use %x to print thread id.
6497 (get_windows_debug_event): Ditto.
6499 2010-01-22 Tom Tromey <tromey@redhat.com>
6502 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6503 type and arguments. Use smash_to_methodptr_type.
6504 (read_structure_type): Call quirk_gcc_member_function_pointer
6506 * gdbtypes.h (smash_to_methodptr_type): Declare.
6507 * gdbtypes.c (smash_to_methodptr_type): New function.
6508 (lookup_methodptr_type): Use it.
6510 2010-01-21 Tom Tromey <tromey@redhat.com>
6513 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6514 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6515 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6516 (glibc_skip_solib_resolver): Use
6517 lookup_minimal_symbol_and_objfile.
6519 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6521 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6524 2010-01-20 Tom Tromey <tromey@redhat.com>
6527 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6528 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6529 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6530 dwarf_stack_values, not CORE_ADDRs.
6531 (execute_stack_op): Change DW_OP_div and comparison operators to
6532 use signed operands.
6534 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6536 Per-inferior args and tty and environment.
6538 * infcmd.c (inferior_args): Rename to ...
6539 (inferior_args_scratch): ... this.
6540 (inferior_io_terminal): Rename to ...
6541 (inferior_io_terminal_scratch): ... this.
6542 (inferior_argc, inferior_argv): Remove.
6543 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6544 inside current_inferior().
6545 (set_inferior_tty_command, show_inferior_tty_command): New.
6546 (get_inferior_args, set_inferior_args): Store inside
6548 (notice_args_set): Likewise and rename to...
6549 (set_args_command): ... this.
6550 (set_inferior_args_vector): Likewise.
6551 (notice_args_read): Rename to...
6552 (show_args_command): ...new.
6553 (tty_command): Remove.
6554 (run_command_1): Don't free old args, as they are freed by
6555 set_inferior_arg now.
6556 (run_no_args_command): Likewise.
6557 (inferior_environ): Remove.
6558 (run_command_1): Use environment of the current inferior.
6559 (environment_info, set_environment_command)
6560 (unset_environment_command, path_info, path_command): Likewise.
6561 (_initialize_infcmd): Adjust for function and variable renames.
6562 Do not init inferior_environ.
6563 * inferior.h (set_inferior_arg): Adjust prototype.
6564 (struct inferior): New fields args, argc, argv, terminal, environment.
6565 (inferior_environ): Remove declaration.
6566 * inferior.c (free_inferior): Free new fields.
6567 (add_inferior_silent): Initialize 'environment' field.
6568 * main.c (captured_main): Set arguments only after the initial
6569 inferior has been created. Set set_inferior_io_terminal,
6571 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6573 (_initialize_mi_cmd_env): Adjust for disappearance of global
6575 * solib.c (solib_find): Use environment of the current inferior.
6577 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6579 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6581 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6583 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6585 Get rid of ada-lang.c:function_name_from_pc.
6586 * ada-lang.c: Add "stack.h" #include.
6587 (function_name_from_pc): Delete.
6588 (is_known_support_routine): Replace call to function_name_from_pc
6589 by call to find_frame_funname.
6590 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6592 2010-01-19 Tom Tromey <tromey@redhat.com>
6595 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6598 2010-01-19 Tom Tromey <tromey@redhat.com>
6600 * top.c (stop_sig, float_handler, do_nothing): Remove.
6602 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6604 * breakpoint.c (watchpoint_check): Check the call
6605 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6607 * config/djgpp/fnchange.lst: Add translations for
6608 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6609 watchpoint-cond-gone-stripped.c.
6611 2010-01-19 Tom Tromey <tromey@redhat.com>
6614 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6615 into parent scope, and enumerator into grandparent scope.
6617 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6619 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6621 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6623 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6624 i[34567]86-*-solaris2.1[0-9]*.
6625 * configure.tgt: Likewise.
6627 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6629 * NEWS: Document the source command enhancement allowing it
6630 to load Python scripts. Document the "set/show script-extension"
6633 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6635 Add -Wunused-function to compile flags.
6636 * configure.ac: Add -Wunused-function to build_warnings.
6637 * configure: Regenerate.
6639 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6641 "delete" ada-lex.c:input function, not used.
6642 * ada-lex.l: #define YY_NO_INPUT.
6644 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6646 Delete free_named_symtabs and associated cleanup.
6647 * symfile.h (free_named_symtabs): Delete declaration.
6648 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6649 (cashier_psymtab): Comment function out.
6651 (free_named_symtabs): Delete.
6652 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6653 * dbxread.c (end_psymtab): Likewise.
6654 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6655 * exec.c (exec_close_1): Ditto.
6656 * xcoffread.c (xcoff_end_psymtab): Likewise.
6658 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6660 * stack.c (print_block_frame_labels): Comment function out.
6662 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6664 Delete unused or undefined functions.
6665 * breakpoint.c (ep_parse_optional_filename): Delete.
6666 * dcache.c (dcache_write_line): Remove declaration.
6667 * infrun.c (build_infrun): Remove declaration.
6668 * tracepoint.c (tracepoint_save_command): Remove declaration.
6669 * linux-nat.c (init_lwp_list): Delete. No longer used.
6670 * event-loop.c (check_async_signal_handlers): Delete declaration.
6671 * infrun.c (init_execution_control_state): Delete.
6672 (proceed): Update comment to avoid mentioning
6673 init_execution_control_state.
6674 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6675 * ada-lang.c (ada_to_static_fixed_value): Delete.
6676 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6677 * cp-namespace.c (cp_copy_usings): Delete.
6678 * xml-syscall.c (xml_number_of_syscalls): Delete.
6679 * progspace.c (find_program_space_by_num): Delete.
6680 * inflow.c (handle_sigio): Delete declaration.
6681 * hppa-tdep.c (hppa_alignof): Delete.
6682 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6683 (mipsnbsd_core_osabi_sniffer): Delete.
6685 2010-01-18 Tom Tromey <tromey@redhat.com>
6688 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6689 (CONST_CAST): New tokens.
6690 (exp): Add new productions.
6691 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6693 (is_cast_operator): New function.
6694 (yylex): Handle cast operators specially.
6695 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6696 UNOP_REINTERPRET_CAST>: New cases.
6697 * expprint.c (print_subexp_standard): Likewise.
6698 (op_name_standard): Likewise.
6699 (dump_subexp_body_standard): Likewise.
6700 * parse.c (operator_length_standard): Likewise.
6701 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6702 UNOP_REINTERPRET_CAST.
6703 * gdbtypes.c (class_types_same_p): New function.
6704 (is_ancestor): Use it.
6705 (is_public_ancestor): New function.
6706 (is_unique_ancestor_worker): Likewise.
6707 (is_unique_ancestor): Likewise.
6708 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6709 (is_unique_ancestor): Declare.
6710 * valops.c (value_reinterpret_cast): New function.
6711 (dynamic_cast_check_1): Likewise.
6712 (dynamic_cast_check_2): Likewise.
6713 (value_dynamic_cast): Likewise.
6714 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6716 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6718 Fix build failure when building without Python support.
6719 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6722 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6724 Use XVS field type instead of doing a parallel lookup.
6725 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6726 if it is a reference type instead of doing a type lookup using
6729 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6731 Trust PAD types instead of using PAD___XVS.
6732 * ada-lang.c (trust_pad_over_xvs): New static variable.
6733 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6734 parallel XVS type, follow the XVS type instead of the PAD type.
6735 (unwrap_value): Make sure that there is no parallel XVE type
6736 before returning the value as is.
6737 (set_ada_list, show_ada_list): New static variables.
6738 (set_ada_command, show_ada_command): New functions.
6739 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6740 Add new "set/show ada trust-PAD-over-XVS" setting.
6742 2010-01-18 Tom Tromey <tromey@redhat.com>
6743 Thiago Jung Bauermann <bauerman@br.ibm.com>
6745 Allow "source" to load python scripts.
6746 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6747 * python/python.c (source_python_script): New function.
6748 * python/python.h (source_python_script): Add declaration.
6749 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6750 (script_ext_off, script_ext_soft, script_ext_strict)
6751 (script_ext_enums, script_ext_mode): New static constants.
6752 (show_script_ext_mode, find_and_open_script): New functions.
6753 (source_script): Enhance to handle Python scripts.
6754 (init_cli_cmds): Add set/show script-extension commands.
6756 2010-01-16 Stan Shebs <stan@codesourcery.com>
6758 * tracepoint.h (struct trace_status): Use unsigned long long
6760 * tracepoint.c (trace_status_command): Fix printf directive.
6761 (trace_save_command): Check fwrite returns, fix printf directive.
6762 (trace_filename): New global.
6763 (tfile_open): Set it, check read returns.
6764 (tfile_close): Free trace_filename.
6765 (tfile_get_traceframe_address): Check read returns.
6766 (tfile_trace_find): Ditto.
6767 (tfile_fetch_registers): Ditto.
6768 (tfile_xfer_partial): Ditto.
6769 (tfile_get_trace_state_variable_value): Ditto.
6771 2010-01-15 Stan Shebs <stan@codesourcery.com>
6773 Add trace file support.
6774 * tracepoint.h (enum trace_stop_reason): New enum.
6775 (struct trace_status): New struct.
6776 (parse_trace_status): Declare.
6777 (struct uploaded_tp): Move here from remote.c,
6778 add fields for actions.
6779 (struct uploaded_tsv): New struct.
6780 * tracepoint.c (tfile_ops): New target vector.
6781 (trace_fd): New global.
6782 (tfile_open): New function.
6783 (tfile_close): New function.
6784 (tfile_files_info): New function.
6785 (tfile_get_trace_status): New function.
6786 (tfile_get_traceframe_address): New function.
6787 (tfile_trace_find): New function.
6788 (tfile_fetch_registers): New function.
6789 (tfile_xfer_partial): New function.
6790 (tfile_get_trace_state_variable_value): New function.
6791 (init_tfile_ops): New function.
6792 (_initialize_tracepoint): Call it, add tfile target.
6793 (trace_status): New global.
6794 (current_trace_status): New function.
6795 (trace_running_p): Remove, change all users to get from
6796 current_trace_status()->running.
6797 (get_trace_status): Remove.
6798 (trace_status_command): Call target_get_trace_status directly,
6799 report more detail including tracing stop reasons.
6800 (trace_find_command): Always allow tfind on a file.
6801 (trace_find_pc_command): Ditto.
6802 (trace_find_tracepoint_command): Ditto.
6803 (trace_find_line_command): Ditto.
6804 (trace_find_range_command): Ditto.
6805 (trace_find_outside_command): Ditto.
6806 (trace_frames_offset, cur_offset): Declare as off_t.
6807 (trace_regblock_size): Rename from reg_size, update users.
6808 (parse_trace_status): New function.
6809 (tfile_interp_line): New function.
6810 (disconnect_or_stop_tracing): Ensure current trace
6811 status before asking what to do.
6812 (stop_reason_names): New global.
6813 (trace_save_command): New command.
6814 (get_uploaded_tp): Move here from remote.c.
6815 (find_matching_tracepoint): Ditto.
6816 (merge_uploaded_tracepoints): New function.
6817 (parse_trace_status): Use stop_reason_names.
6818 (_initialize_tracepoint): Define tsave command.
6819 * target.h (target_ops): New fields to_save_trace_data,
6820 to_upload_tracepoints, to_upload_trace_state_variables,
6821 to_get_raw_trace_data, change to_get_trace_status
6822 to take a pointer to a status struct.
6823 (target_save_trace_data): New macro.
6824 (target_upload_tracepoints): New macro.
6825 (target_upload_trace_state_variables): New macro.
6826 (target_get_raw_trace_data): New macro.
6827 * target.c (update_current_target): Add new methods, change
6828 signature of to_get_trace_status.
6829 * remote.c (hex2bin): Make globally visible.
6831 (remote_download_trace_state_variable): Download name also.
6832 (remote_get_trace_status): Update parameter, use
6834 (remote_save_trace_data): New function.
6835 (remote_upload_tracepoints): New function.
6836 (remote_upload_trace_state_variables): New function.
6837 (remote_get_raw_trace_data): New function.
6838 (remote_start_remote): Use them.
6839 (_initialize_remote_ops): Add operations.
6840 * ax-gdb.c: Include breakpoint.h.
6841 * breakpoint.c (create_tracepoint_from_upload): Use
6842 break_command_really, return tracepoint, warn about unimplemented
6844 * NEWS: Mention trace file addition.
6846 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6848 Fix compilation warning on gcc-3.4.
6849 * exec.c (print_section_info): Move the `displacement' variable
6850 initialization to its declaration.
6852 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6854 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6857 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6859 "info tasks" broken by typedefs in ATCB type definitions.
6860 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6861 ada_check_typedef before retrieving the length of the type for
6864 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6866 Do not use name-based lookup for unconstrained packed arrays.
6867 * ada-lang.c (find_parallel_type_by_descriptive_type):
6868 Limit the fallback to name-based lookups to the case where
6869 the type is a constrained packed array.
6871 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6873 Enhance gdb-gdb.py to handle main_type.type_specific.
6874 * gdb-gdb.py: Print the type-specific part of struct main_type.
6876 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6878 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6879 * configure: Regenerate.
6880 * config.in: Regenerate.
6881 * utils.c: Include sys/resource.h.
6882 (dump_core, can_dump_core): New.
6883 (internal_vproblem): Update the comment. Check can_dump_core while
6884 setting dump_core_p. Replace two abort calls by dump_core calls.
6886 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6887 Eli Zaretskii <eliz@gnu.org>
6889 * NEWS: Document the PIE support.
6891 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6893 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6894 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6896 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6898 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6899 Replace exec_entry_point call by bfd_get_start_address.
6901 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6903 Support Valgrind attachments broken by the PIE support.
6904 * auxv.c: Include gdbcore.h.
6905 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6906 parameters ops, object and annex. Remove their assertions.
6907 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6908 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6909 (memory_xfer_auxv): ... here.
6910 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6912 * procfs.c (procfs_xfer_partial): Likewise.
6913 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6914 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6915 (svr4_solib_create_inferior_hook): Conditionalize the
6916 svr4_relocate_main_executable call.
6918 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6920 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6921 target_section. Find SECT in current_target_sections, gdb_assert it.
6922 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6924 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6925 of separate debug info file.
6927 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6929 Support PIEs with no symfile_objfile.
6930 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6931 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6933 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6935 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6937 (svr4_static_exec_displacement): ... a new function.
6938 (svr4_exec_displacement): New function.
6939 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6940 new_offsets using alloca now. Remove variable old_chain and changed.
6941 Call objfile_relocate unconditionally now.
6943 2010-01-14 Doug Evans <dje@google.com>
6945 * gdbtypes.c (arch_flags_type): Fix comment.
6946 * gdbtypes.h (arch_composite_type): Fix comment.
6948 2009-01-14 Tristan Gingold <gingold@adacore.com>
6950 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6951 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6952 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6953 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6954 macho_add_oso_symfile.
6955 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6957 2010-01-14 Joel Brobecker <brobecker@adacore.com>
6959 Tru64: Dead threads are never deleted.
6960 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6961 (dec_thread_count_gdb_threads): Fix counter increment.
6962 (dec_thread_add_gdb_thread): Fix *listp increment.
6963 (resync_thread_list): Fix bug in deletion of dead threads that
6964 caused all threads to be deleted, instead of just the dead ones.
6966 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6970 * python/python-internal.h: Add lazy_string_object_type
6972 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6973 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6974 * python/py-value.c (valpy_lazy_string): New function.
6975 (convert_value_from_python): Add lazy string conversion.
6976 * python/py-prettyprint.c (pretty_print_one_value): Check if
6977 return is also a lazy string.
6978 (print_string_repr): Add lazy string printing branch.
6979 (print_children): Likewise.
6980 * python/py-lazy-string.c: New file. Implement lazy strings.
6981 * python/python.c (_initialize_python): Call
6982 gdbpy_initialize_lazy_string.
6983 * varobj.c (value_get_print_value): Add lazy string printing
6984 branch. Account for encoding.
6985 * c-lang.c (c_printstr): Account for new encoding argument. If
6986 encoding is NULL, find encoding suited for type, otherwise use
6988 * language.h (language_defn): Add encoding argument.
6989 (LA_PRINT_STRING): Likewise.
6990 * language.c (unk_lang_printstr): Update to reflect new encoding
6991 argument to language_defn.
6992 * ada-lang.h (ada_printstr): Likewise.
6993 * c-lang.h (c_printstr): Likewise.
6994 * p-lang.h (pascal_printstr);
6995 * f-lang.c (f_printstr): Likewise.
6996 * m2-lang.c (m2_printstr): Likewise.
6997 * objc-lang.c (objc_printstr): Likewise.
6998 * p-lang.c (pascal_printstr): Likewise.
6999 * scm-lang.c (scm_printstr): Likewise.
7000 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
7002 * ada-valprint.c (ada_printstr): Likewise.
7003 * f-valprint.c (f_val_print): Likewise
7004 * m2-valprint.c (m2_val_print): Likewise.
7005 * p-valprint.c (pascal_val_print): Likewise.
7006 * expprint.c (print_subexp_standard): Likewise.
7007 * valprint.c (val_print_string): Likewise.
7008 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
7009 (SUBDIR_PYTHON_SRCS): Likewise.
7010 (py-lazy-string.o): New rule.
7012 2010-01-13 Doug Evans <dje@google.com>
7014 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
7015 uninitialized" warning from gcc on local `tree'.
7017 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
7019 Implement core awareness.
7021 * bcache.c (compare_ints): Remove
7022 (print_percentage): Use compare_positive_ints.
7023 * defs.h (compare_positive_ints): Declare.
7024 * linux-nat.h (struct lin_lwp): New field core.
7025 (linux_nat_core_of_thread_1): Declare.
7026 * linux-nat.c (add_lwp): Init the 'core' field.
7027 (linux_nat_wait_1): Record the core.
7028 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
7029 (linux_nat_add_target): Register the above.
7030 * linux-thread-db.c (update_thread_core): New.
7031 (thread_db_find_new_threads): Update core information for
7033 * remote.c (struct private_thread_info): New.
7034 (free_private_thread_info, demand_private_info): New.
7035 (PACKET_qXfer_threads, use_osdata_threads): New.
7036 (struct thread_item, threads_parsing_context
7037 (start_thread, end_thread, thread_attributes)
7038 (thread_children, threads_children, threads_elements): New.
7039 (remote_threads_info): Try qXfer:threads before anything
7041 (remote_protocol_packets): Register qXfer:threads.
7042 (remote_open_1): Init use_osdata_threads.
7043 (struct stop_reply): New field 'core'.
7044 (remote_parse_stop_reply): Parse core number.
7045 (process_stop_reply): Record core number.
7046 (remote_xfer_partial): Handle qXfer:threads.
7047 (remote_core_of_thread): New.
7048 (init_remote_ops): Register remote_core_of_thread.
7049 (_initialize_remote): Register qXfer:read.
7050 * target.c (target_core_of_thread): New
7051 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7052 (struct target_ops): New field to_core_of_threads.
7053 (target_core_of_thread): Declare.
7054 * gdbthread.h (struct thread_info): New field private_dtor.
7055 * thread.c (print_thread_info): Report the core.
7056 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7057 * utils.c (compare_positive_ints): New.
7058 * features/threads.dtd: New.
7059 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7060 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7061 (do_nothing, free_vector_of_osdata_items)
7062 (splay_tree_int_comparator, free_splay_tree): New.
7063 (print_one_inferior_data): Implemented printing of selected
7064 inferiors. Collect and print cores.
7065 (output_cores): New.
7066 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7067 thread groups together with --available.
7069 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7071 * configure: Regenerate (for _STRUCTURED_PROC).
7073 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7075 Delete dead function.
7076 * ada-lang.c (extract_string): Delete. No longer used.
7078 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7080 Fix -Wunused warning in dec-thread.c.
7081 * dec-thread.c (dec_thread_count_gdb_threads)
7082 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7084 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7086 * ada-valprint.c (ada_print_floating): Remove trailing space.
7088 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7090 Add support for DW_AT_GNAT_descriptive_type.
7091 * gdbtypes.h (enum type_specific_kind): New enum.
7092 (struct main_type) [type_specific_field]: New component.
7093 [type_specific]: Add new component "gnat_stuff".
7094 (struct gnat_aux_type): New type.
7095 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7096 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7097 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7098 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7099 (TYPE_SPECIFIC_FIELD): New macros.
7100 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7101 type does not hold any cplus-specific data.
7102 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7103 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7104 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7105 cplus-specific data.
7106 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7107 Set new component TYPE_SPECIFIC_FIELD (type).
7108 (gnat_aux_default): New constant.
7109 (allocate_gnat_aux_type): New function.
7110 (init_type): Add initialization the type-specific stuff for
7111 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7112 (print_gnat_stuff): New function.
7113 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7114 specific data. Adjust code that prints the contents of the
7115 type-specific union using the TYPE_SPECIFIC_FIELD value.
7116 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7117 the type cplus stuff for Ada types.
7118 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7119 Error out if these routines are called with an Ada type.
7120 (read_structure_type, read_array_type, read_subrange_type):
7121 Add call to set_descriptive_type.
7122 (set_die_type): Initialize the gnat-specific data if necessary.
7123 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7125 * ada-lang.c (decode_constrained_packed_array_type): Use
7126 decode_constrained_packed_array_type instead of doing a standard
7127 lookup to locate a parallel type.
7128 (find_parallel_type_by_descriptive_type): New function.
7129 (ada_find_parallel_type_with_name): New function.
7130 (ada_find_parallel_type): Reimplement using
7131 ada_find_parallel_type_with_name.
7132 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7133 to check if type has a cplus stuff.
7134 * linespec.c (total_number_of_methods): Likewise.
7135 * mdebugread.c (new_type): Likewise.
7137 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7139 * NEWS: Document the 0b binary number prefix parsing.
7141 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7143 * objfiles.c (objfile_relocate1): Change the return type to int.
7144 Describe the new return value. Return non-zero if data changed.
7145 (objfile_relocate): New variable changed. Set it. Call
7146 breakpoint_re_set depending on CHANGED.
7148 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7150 Implement binary numbers parsing.
7151 * c-exp.y (parse_number): New case 'b' and 'B'.
7153 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7154 Tristan Gingold <gingold@adacore.com>
7156 * solib.c (info_sharedlibrary_command): Replace
7157 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7158 objfile_has_symbols.
7160 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7162 * NEWS: Document the improvements made to the mips-irix port.
7164 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7166 Fix the documentation of valprint.c:value_print.
7167 * valprint.c (value_print): Update the function description to
7168 mention that the syntax of the output follows the current_language,
7171 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7173 Fix displacement of separate debug info files.
7174 * objfiles.c (objfile_relocate): Rename to ...
7175 (objfile_relocate1): ... here and make it static. Extend the comment.
7176 (objfile_relocate): New function.
7177 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7178 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7179 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7180 allocated using alloca.
7181 * symfile.c (copy_section_addr_info): Remove.
7182 (build_section_addr_info_from_objfile): Make it global. New variables
7183 addr_bit and mask, use them.
7184 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7185 (copy_section_addr_info): Remove.
7187 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7189 Signal unwinder for mips-irix N32.
7190 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7192 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7193 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7194 (SIGCONTEXT_LO_OFF): New macros.
7195 (mips_irix_n32_tramp_frame_init): New function.
7196 (mips_irix_n32_tramp_frame): New static constant.
7197 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7199 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7201 Breakpoint in shared library does not work on mips-irix.
7202 * procfs.c: #include "observer.h".
7203 (procfs_inferior_created): New function, moving here the code
7204 which unsets the syssgi syscall-exit notifications.
7205 (procfs_create_inferior): Remove the code which unsets the syssgi
7206 syscall-exit notifications. It is too early to do this here.
7207 (_initialize_procfs): Attach the procfs_inferior_created observer.
7209 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7211 Wrong return convention for arrays (mips-irix).
7212 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7213 128 bits or smaller are returned the same way as structs
7214 and unions of the the same size.
7216 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7218 Cannot set the PC on mips-irix.
7219 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7220 register number, no the cooked one.
7222 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7224 Error while loading core file on mips-irix.
7225 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7226 if debugging from a core file.
7228 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7230 GDB hangs when attaching to process on mips-irix.
7231 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7232 attaching to a process.
7234 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7236 Use the correct breakpoint instruction on mips-irix.
7237 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7238 containing the correct breakpoint instruction to use on mips-irix.
7239 Use it when the osabi is GDB_OSABI_IRIX.
7241 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7243 -Wunused warning in procfs.c (mips-irix only).
7244 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7245 throughout instead of using praddset and prdelset respectively.
7247 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7249 GDB crash while stepping into function.
7250 * infrun.c (handle_inferior_event): Refetch the current frame
7251 after handling what.main_action, in case that pointer became
7254 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7256 Fix build failure of solaris-hosted cross debuggers.
7257 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7259 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7261 Fix build failure on sparc-solaris.
7262 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7264 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7266 Move some symfile code into subroutines.
7267 * symfile.h (relative_addr_info_to_section_offsets)
7268 (addr_info_make_relative): New prototypes.
7269 * symfile.c (default_symfile_offsets): Move a part to ...
7270 (relative_addr_info_to_section_offsets): ... this new function.
7271 (default_symfile_offsets): Call it.
7272 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7274 (addr_info_make_relative): ... this new function.
7276 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7278 Add from_tty to solib_create_inferior_hook.
7279 * infcmd.c (post_create_inferior): Move solib_add after
7280 solib_create_inferior_hook. Pass from_tty to
7281 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7282 0 from_tty and comment why.
7283 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7284 * linux-nat.c (linux_child_follow_fork): Likewise.
7285 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7286 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7288 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7289 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7290 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7291 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7292 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7293 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7294 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7295 Pass it to svr4_so_ops.solib_create_inferior_hook.
7296 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7298 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7300 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7302 * solib-target.c (solib_target_solib_create_inferior_hook): New
7304 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7305 it to ops->solib_create_inferior_hook.
7306 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7307 Move solib_add after solib_create_inferior_hook, call it now with
7308 from_tty as 0. New comment there.
7309 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7310 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7313 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7316 * infrun.c (handle_inferior_event): Use get_thread_regcache
7317 with events ptid, not get_current_regcache.
7319 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7321 GDB crash with empty executable name (MinGW).
7322 * source.c (openp): Add assert that parameter string is not NULL.
7323 if parameter string is an empty string, then return with a failure
7326 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7328 Get rid of support for VAX Floats.
7329 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7330 (ada_vax_float_print_function): Delete.
7331 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7332 (ada_vax_float_print_function): Delete.
7333 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7334 (ada_print_type): Remove support for VAX floats.
7335 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7337 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7339 * stabsread.c (read_args): Handle zero arguments.
7341 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7343 Cannot find in-tree libiconv.a after reconfigure.
7344 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7345 that we can use, then cache the path to this archive.
7346 * configure: Regenerate.
7348 2010-01-07 Stan Shebs <stan@codesourcery.com>
7350 Make tracepoint operations go through target vector.
7351 * target.h (enum trace_find_type): New enum.
7352 (struct target_ops): New fields to_trace_init,
7353 to_download_tracepoint, to_download_trace_state_variable,
7354 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7355 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7356 to_set_disconnected_tracing.
7357 (target_trace_init): New macro.
7358 (target_download_tracepoint): New macro.
7359 (target_download_trace_state_variable): New macro.
7360 (target_trace_start): New macro.
7361 (target_trace_set_readonly_regions): New macro.
7362 (target_get_trace_status): New macro.
7363 (target_trace_stop): New macro.
7364 (target_trace_find): New macro.
7365 (target_get_trace_state_variable_value): New macro.
7366 (target_set_disconnected_tracing): New macro.
7367 * target.c (update_current_target): Inherit and set defaults for
7368 tracepoint operations.
7369 * tracepoint.c (default_collect): Make globally visible.
7370 (target_is_remote): Remove, along with all calls.
7371 (tvariables_info): Call target_get_trace_state_variable_value.
7372 (remote_set_transparent_ranges): Remove.
7373 (trace_start_command): Call target_trace_init,
7374 target_download_tracepoint, etc.
7375 (download_tracepoint): Remove.
7376 (trace_stop_command): Simplify.
7377 (stop_tracing): Call target_trace_stop.
7378 (get_trace_status): Call target_get_trace_status.
7379 (trace_status_command): Add case for targets that cannot trace.
7380 (finish_tfind_command): Change to take numerical arguments, call
7382 (trace_find_command): Update call to finish_tfind_command.
7383 (trace_find_pc_command): Ditto.
7384 (trace_find_tracepoint_command): Ditto.
7385 (trace_find_line_command): Ditto.
7386 (trace_find_range_command): Ditto.
7387 (trace_find_outside_command): Ditto.
7388 (set_disconnected_tracing_value): Call
7389 target_set_disconnected_tracing.
7390 * remote.c: Add protocol encoding bits from tracepoint.c.
7391 (trace_error): Move from tracepoint.c.
7392 (remote_get_noisy_reply): Ditto.
7393 (free_actions_list_cleanup_wrapper): Ditto.
7394 (free_actions_list): Ditto.
7395 (remote_trace_init): New function.
7396 (remote_download_tracepoint): New function.
7397 (remote_download_trace_state_variable): New function.
7398 (remote_trace_set_readonly_regions): New function.
7399 (remote_trace_start): New function.
7400 (remote_get_trace_status): New function.
7401 (remote_trace_stop): New function.
7402 (remote_trace_find): New function.
7403 (remote_download_trace_state_variable): New function.
7404 (remote_set_disconnected_tracing): New function.
7405 (init_remote_ops): Add tracepoint operations.
7407 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7409 2010-01-07 Tristan Gingold <gingold@adacore.com>
7411 * symfile.c (build_section_addr_info_from_objfile): New function.
7412 (symbol_file_add_separate): Don't use offsets from objfile but
7415 2010-01-06 Stan Shebs <stan@codesourcery.com>
7417 Support disconnected tracing.
7418 * infcmd.c (detach_command): Ask whether to stop tracing.
7419 * cli/cli-cmds.c (quit_command): Ditto.
7420 * breakpoint.h (struct breakpoint): New field number_on_target.
7421 * breakpoint.c (create_tracepoint_from_upload): New function.
7422 (get_tracepoint_by_number_on_target): New function.
7423 * remote.c (struct remote): New field disconnected_tracing.
7424 (remote_disconnected_tracing_feature): New function.
7425 (remote_protocol_features): Add DisconnectedTracing.
7426 (struct uploaded_tp): New struct.
7427 (uploaded_tps): New global.
7428 (get_uploaded_tp): New function.
7429 (find_matching_tracepoint): New function.
7430 (remote_get_tracing_state): New function.
7431 (remote_start_remote): Call it.
7432 * tracepoint.c (disconnected_tracing): New global.
7433 (trace_start_command): Initialize number_on_target.
7434 (stop_tracing): New function, split out from...
7435 (trace_stop_command): Call stop_tracing.
7436 (get_trace_status): New function, split out from...
7437 (trace_status_command): Call get_trace_status, add info on
7438 disconnection behavior.
7439 (disconnect_or_stop_tracing): New function.
7440 (finish_tfind_command): Translate from number on target.
7441 (trace_find_tracepoint_command): Translate to number on target.
7442 (send_disconnected_tracing_value): New function.
7443 (set_disconnected_tracing): New function.
7444 (_initialize_tracepoint): Add disconnected-tracing variable.
7445 * NEWS: Mention disconnected tracing.
7447 2010-01-06 Tristan Gingold <gingold@adacore.com>
7449 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7450 parameter to main_objfile. Iterate on all separate debug objfiles.
7451 * symfile.h (symbol_file_add_separate)
7452 (find_separate_debug_file_by_debuglink): Remove parameter names.
7453 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7454 (reread_symbols): Use free_objfile_separate_debug.
7455 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7457 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7458 (free_objfile_separate_debug): New prototypes.
7459 * objfiles.c (objfile_separate_debug_iterate): New function.
7460 (add_separate_debug_objfile, free_objfile_separate_debug): New
7462 (free_objfile): Use free_objfile_separate_debug. Adjust for
7463 multiple separate debug objfile.
7464 (objfile_has_symbols): Adjust comment. Iterate on all separate
7466 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7468 (lookup_minimal_symbol_text): Ditto.
7469 (lookup_minimal_symbol_by_pc_name): Ditto.
7470 (lookup_minimal_symbol_solib_trampoline): Ditto.
7471 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7474 2010-01-05 Stan Shebs <stan@codesourcery.com>
7476 Add fast tracepoints.
7477 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7478 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7479 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7480 * breakpoint.c (tracepoint_type): New function.
7481 (ALL_TRACEPOINTS): Use it.
7482 (should_be_inserted): Ditto.
7483 (bpstat_check_location): Ditto.
7484 (print_one_breakpoint_location): Ditto.
7485 (user_settable_breakpoint): Ditto.
7486 (set_breakpoint_location_function): Ditto.
7487 (disable_breakpoints_in_shlibs): Ditto.
7488 (delete_trace_command): Ditto.
7489 (print_it_typical): Add bp_fast_tracepoint case.
7490 (bpstat_what): Ditto.
7491 (print_one_breakpoint_location): Ditto.
7492 (allocate_bp_location): Ditto.
7494 (breakpoint_re_set_one): Ditto.
7495 (disable_command): Ditto.
7496 (enable_command): Ditto.
7497 (check_fast_tracepoint_sals): New function.
7498 (break_command_really): Call it.
7499 (ftrace_command): New function.
7500 (_initialize_breakpoint): Add ftrace command.
7501 * gdbarch.sh (fast_tracepoint_valid_at): New.
7502 * gdbarch.h, gdbarch.c: Regenerate.
7503 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7504 (i386_gdbarch_init): Use it.
7505 * remote.c (struct remote_state): New field fast_tracepoints.
7506 (PACKET_FastTracepoints): New packet config type.
7507 (remote_fast_tracepoint_feature): New function.
7508 (remote_protocol_features): Add FastTracepoints.
7509 (remote_supports_fast_tracepoints): New function.
7510 (_initialize_remote): Add FastTracepoints.
7511 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7512 * NEWS: Mention fast tracepoints.
7514 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7516 * gdb-gdb.py: New file.
7518 2010-01-05 Michael Snyder <msnyder@vmware.com>
7520 * infrun.c (handle_inferior_event): Fix typo in comment.
7522 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7524 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7526 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7528 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7530 (s390-linux32-expedite): Define.
7531 (s390-linux64-expedite): Define.
7532 (s390x-linux64-expedite): Define.
7533 * features/s390-acr.xml: New file.
7534 * features/s390-fpr.xml: New file.
7535 * features/s390-core32.xml: New file.
7536 * features/s390-core64.xml: New file.
7537 * features/s390x-core64.xml: New file.
7538 * features/s390-linux32.xml: New file.
7539 * features/s390-linux64.xml: New file.
7540 * features/s390x-linux64.xml: New file.
7541 * features/s390-linux32.c: New generated file.
7542 * features/s390-linux64.c: New generated file.
7543 * features/s390x-linux64.c: New generated file.
7545 * regformats/s390-linux32.dat: New generated file.
7546 * regformats/s390-linux64.dat: New generated file.
7547 * regformats/s390x-linux64.dat: New generated file.
7548 * regformats/reg-s390.dat: Remove.
7549 * regformats/reg-s390x.dat: Remove.
7551 * s390-nat.c: Include "auxv.h" and <elf.h>.
7552 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7553 (s390_target_wordsize): New function.
7554 (s390_auxv_parse): Likewise.
7555 (s390_get_hwcap): Likewise.
7556 (s390_read_description): Likewise.
7557 (_initialize_s390_nat): Install s390_auxv_parse and
7558 s390_read_description.
7560 * s390-tdep.c: Include "features/s390-linux32.c",
7561 "features/s390-linux64.c", and "features/s390x-linux64.c".
7562 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7563 (s390_register_call_saved): New function.
7564 (s390_register_name): Remove.
7565 (s390_register_type): Remove.
7566 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7567 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7568 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7569 (s390_pseudo_register_name): New function.
7570 (s390_pseudo_register_type): New function.
7571 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7572 Handle full GPR pesudos and varying pseudo register numbers.
7573 (s390_pseudo_register_write): Likewise
7574 (s390x_pseudo_register_read): Remove.
7575 (s390x_pseudo_register_write): Likewise.
7576 (s390_register_group): Remove.
7577 (s390_pseudo_register_group): New function.
7578 (s390_regmap_gregset): Add GPR upper halves.
7579 (s390x_regmap_gregset): Likewise.
7580 (s390_regmap_fpregset): Likewise.
7581 (s390_regmap_upper): New global variable.
7582 (s390_upper_regset): New global variable.
7583 (s390_upper_regset_sections): New global variable.
7584 (s390_regset_from_core_section): Handle GPR upper halves.
7585 (s390_core_read_description): New function.
7586 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7587 register information. Handle varying pseudo register numbers.
7588 (s390_backchain_frame_unwind_cache): Likewise.
7589 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7590 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7591 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7592 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7593 Handle varying pseudo register numbers.
7594 (s390_unwind_pc): Handle varying pseudo register numbers.
7595 (s390_dwarf2_prev_register): New function.
7596 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7597 register information. Handle varying pseudo register numbers.
7598 Install s390_dwarf2_prev_register to unwind full GPRs.
7599 (s390_gdbarch_init): Handle target descriptions. Assign varying
7600 pseudo register numbers. Install s390_adjust_frame_regnum.
7601 (_initialize_s390_tdep): Initialize target descriptions.
7603 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7604 (S390_NUM_REGS): Redefine to include upper half registers.
7605 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7606 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7607 (tdesc_s390_linux32): Add declaration.
7608 (tdesc_s390_linux64): Likewise.
7609 (tdesc_s390x_linux64): Likewise.
7611 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7613 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7614 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7615 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7616 (ppc_linux_vmx_regset_sections): Likewise.
7617 (ppc_linux_fp_regset_sections): Likewise.
7619 * corelow.c (get_core_register_section): Constify arguments.
7620 (get_core_registers): Use gdbarch_core_regset_sections instead
7621 of hard-coded platform-specific register section names.
7623 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7625 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7626 a register, assume the least-significant part is used.
7627 (write_pieced_value): Likewise.
7629 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7631 * printcmd.c: Include "arch-utils.h".
7632 (do_one_display): Re-parse expression if current architecture changed.
7634 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7635 Joel Brobecker <brobecker@adacore.com>
7637 * gdbtypes.c (check_typedef): New comment on type length.
7638 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7639 comment on type length.
7640 (value_primitive_field): Keep the original TYPE value, new comment.
7642 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7644 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7645 p_start. Change != comparisons to > and < comparisons.
7647 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7649 * cli/cli-script.c (process_next_line): Check P2 overrun.
7651 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7653 Update the copyright hearder to add year 2010 for most GDB files.
7655 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7657 Fix build failure in inf-ptrace.c.
7658 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7660 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7662 * top.c (print_gdb_version): Update copyright year.
7664 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7666 Fix break *FUN'address thread NUM.
7667 * ada-lex.l (task): Expand rule to also match the thread keyword.
7669 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7671 Fix break *FUN'address task NUM.
7672 * ada-lex.l (task): New rule.
7673 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7674 been built before using it.
7676 For older changes see ChangeLog-2009.
7682 version-control: never