1 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3 * printcmd.c (print_variable_and_value): Print error message on
6 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
8 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
10 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
12 (dwarf_expr_push): Change input type to ULONGEST.
13 (dwarf_expr_fetch): Change return type to ULONGEST.
14 (dwarf_expr_fetch_address): Add prototype.
15 (dwarf2_read_address): Remove prototype.
16 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
17 Truncate stack values to ctx->addr_size bytes.
18 (dwarf_expr_fetch): Change return value to ULONGEST.
19 (dwarf_expr_fetch_address): New function.
20 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
21 when appropriate. Update for struct dwarf_expr_piece changes.
22 (dwarf2_read_address): Remove.
23 (unsigned_address_type): Remove.
24 (signed_address_type): Remove.
25 (execute_stack_op): Use dwarf_expr_fetch_address instead of
26 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
27 values. Perform operations on ULONGEST instead of on GDB values,
28 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
29 values and DW_OP_deref results as unsigned integers.
30 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
32 (write_pieced_value): Likewise.
33 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
34 dwarf_expr_fetch when appropriate.
35 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
36 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
37 instead of dwarf_expr_fetch when appropriate.
39 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
41 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
43 2010-06-24 Joel Brobecker <brobecker@adacore.com>
45 * python/python.c (_initialize_python): Add new "constant"
46 PYTHONDIR in gdb module. Insert this path at the head of
47 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
48 exec its __init__.py script if it exists in that directory.
50 2010-06-24 Kevin Buettner <kevinb@redhat.com>
52 * rx-tdep.c (RX_ACC_REGNUM): Define.
53 (RX_NUM_REGS): Redefine to 26.
54 (rx_register_name): Add register "acc". Change order of several
55 registers. Change name of "vct" register to "fintv" to match RX
57 (rx_register_type): Add case for RX_ACC_REGNUM.
59 2010-06-24 Tom Tromey <tromey@redhat.com>
61 * psymtab.c (lookup_partial_symbol): Mark definition as static.
63 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
64 Tom Tromey <tromey@redhat.com>
66 Fix GDB startup on readonly filesystem.
67 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
69 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
70 Pedro Alves <pedro@codesourcery.com>
73 * breakpoint.c (handle_jit_event): New function.
74 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
75 jit, err, table and bs_class. New variables shlib_event, jit_event,
76 this_action and bptype. Change bs_class assignments to this_action
77 assignments. new unhandled bptype internal error. Move here
78 shlib_event and jit_event handling from handle_inferior_event.
79 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
80 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
81 BPSTAT_WHAT_CHECK_JIT.
82 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
83 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
84 (handle_inferior_event): Reinitialize frame and gdbarch after
85 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
86 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
87 gdbarch when frame gets reinitialized.
89 2010-06-24 Hui Zhu <teawater@gmail.com>
91 * printcmd.c (ui_printf): New function.
92 (printf_command): Call ui_printf.
93 (_initialize_printcmd): New command "eval".
95 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
97 * infrun.c (handle_inferior_event): Handle presence of single-step
98 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
99 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
100 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
101 * breakpoint.c (detach_single_step_breakpoints): New function.
102 (detach_breakpoints): Call it.
103 (cancel_single_step_breakpoints): New function.
104 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
106 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
107 (spu_gdbarch_init): Install it.
109 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
111 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
112 * configure: Regenerate.
114 2010-06-22 Hui Zhu <teawater@gmail.com>
116 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
117 (i386_process_record): Ditto.
118 * record.c (record_memory_query): New variable.
119 (_initialize_record): New command "set record memory-query".
120 * record.h (record_memory_query): New extern.
122 2010-06-21 Doug Evans <dje@google.com>
124 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
125 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
126 (i386_syscall_p): Change type of lengthp to int.
127 (i386_displaced_step_fixup): Handle kernels that run one past a
129 * i386-linux-tdep.c (i386_linux_init_abi): Use
130 i386_displaced_step_copy_insn instead of
131 simple_displaced_step_copy_insn.
133 2010-06-21 Tom Tromey <tromey@redhat.com>
135 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
136 (dwarf_type_encoding_name): Likewise.
138 2010-06-21 Tom Tromey <tromey@redhat.com>
140 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
141 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
142 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
143 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
144 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
145 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
146 * dwarf2read.c (tag_type_to_type): Create a new error type on
148 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
149 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
151 2010-06-21 Michael Snyder <msnyder@vmware.com>
153 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
154 not add_abbrev_prefix_cmd, for "enable breakpoints".
156 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
158 * dwarf2loc.c (find_location_expression): Add relocation offset
159 to base-address-selection entry base addresses. Read addresses
160 (and offsets) as signed/unsigned integers, depending on the
161 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
162 (loclist_describe_location): Likewise.
163 (disassemble_dwarf_expression): Read DW_OP_addr operand as
164 unsigned integer. Do not call dwarf2_read_address.
165 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
167 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
169 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
170 value instead of hard-coded SPU_LS_SIZE.
171 (spu_software_single_step): Likewise.
172 * spu-tdep.h (SPU_LS_SIZE): Remove.
174 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
176 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
177 limit on local store memory accesses.
178 * spu-linux-nat.c (spu_xfer_partial): Likewise.
179 * spu-tdep.c (spu_lslr): Remove.
180 (spu_pointer_to_address): Do not truncate addresses.
181 (spu_integer_to_address): Likewise.
182 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
183 * spu-tdep.h: Add comments.
184 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
185 (SPU_OVERLAY_LMA): Define.
187 2010-06-18 Stan Shebs <stan@codesourcery.com>
189 * osdata.c (get_osdata): Warn separately if target does not report
191 (info_osdata_command): Allow empty type, report error if target
192 does not return available types of OS data.
193 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
194 types if no annex supplied.
196 * thread.c (thread_id_make_value): Make a value representing the
198 (_initialize_thread): Create $_thread.
200 2010-06-17 Joel Brobecker <brobecker@adacore.com>
202 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
203 last local variable declaration. No real code change.
205 2010-06-17 Tom Tromey <tromey@redhat.com>
207 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
208 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
211 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
212 Jan Kratochvil <jan.kratochvil@redhat.com>
214 * breakpoint.c: Include parser-defs.h.
215 (watchpoint_exp_is_const): New function.
216 (watch_command_1): Call watchpoint_exp_is_const to check
217 if the expression is constant.
219 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
221 * configure.ac: Check for RDYNAMIC also for cross builds.
222 * configure: Regenerate.
224 2010-06-15 Pedro Alves <pedro@codesourcery.com>
226 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
227 (SFILES): Remove solib-null.c, add solib-target.c.
228 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
229 (ALLDEPFILES): Remove solib-target.c.
230 * solib-target.c (_initialize_solib_target): Set
231 current_target_so_ops to solib_target_so_ops if not already set.
232 * solib-null.c: Delete.
234 2010-06-14 Pedro Alves <pedro@codesourcery.com>
236 * NEWS: Mention GDBserver's JIT compilation of tracepoint
239 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
241 * cp-valprint.c (cp_print_static_field): Members of
242 dont_print_stat_array_obstack are of type "struct type *".
243 (_initialize_cp_valprint): Likewise.
245 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
247 * frame.c (frame_register_unwind): Do not access contents
248 of "optimized out" unwound register value.
250 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
252 * ada-lang.h (ada_print_type): Make varstring const.
253 * ada-typeprint.c (print_func_type): Make name const.
254 (ada_print_type): Make varstring const.
255 * c-lang.h (c_print_type): Make varstring const.
256 * c-typeprint.c (c_print_type): Likewise.
257 * f-lang.h (f_print_type): Likewise.
258 * f-typeprint.c (f_print_type): Likewise.
259 * jv-lang.h (java_print_type): Likewise.
260 * jv-typeprint.c (java_print_type): Likewise.
261 * language.c (unk_lang_print_type): Likewise.
262 * language.h (struct language_defn) <la_print_type>: Likewise.
263 * m2-lang.h (m2_print_type): Likewise.
264 * m2-typeprint.c (m2_print_type): Likewise.
265 * p-lang.h (pascal_print_type): Likewise.
266 * p-typeprint.c (pascal_print_type): Likewise.
268 2010-06-11 Stan Shebs <stan@codesourcery.com>
270 Add per-operation permission flags.
272 * target.h (struct target_ops): New method to_set_permissions.
273 (target_set_permissions): New macro.
274 (target_insert_breakpoint): Change macro to function.
275 (target_remove_breakpoint): Ditto.
276 (target_stop): Ditto.
277 (may_write_registers): Declare.
278 (may_write_memory): Declare.
279 (may_insert_breakpoints): Declare.
280 (may_insert_tracepoints): Declare.
281 (may_insert_fast_tracepoints): Declare.
283 * target.c (may_write_registers, may_write_registers_1): New globals.
284 (may_write_memory, may_write_memory_1): New globals.
285 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
286 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
287 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
289 (may_stop, may_stop_1): New global.
290 (target_xfer_partial): Test for write permission.
291 (target_store_registers): Ditto.
292 (target_insert_breakpoint): New function.
293 (target_remove_breakpoint): New function.
294 (target_stop): New function.
295 (_initialize_targets): Add new set/show variables.
296 (set_write_memory_permission): New function.
297 (update_target_permissions): New function.
298 (set_target_permissions): New function.
299 (update_current_target): Default to_set_permissions.
300 (_initialize_targets): Use new globals and setter function.
301 * tracepoint.c (start_tracing): Test for permission.
302 * inferior.h (update_observer_mode): Declare.
303 * infrun.c (non_stop_1): Define earlier.
304 (observer_mode, observer_mode_1): New globals.
305 (set_observer_mode, show_observer_mode): New functions.
306 (update_observer_mode): New function.
307 (_initialize_infrun): Define "set observer" command.
308 * remote.c (PACKET_QAllow): New optional packet.
309 (remote_protocol_features): Add QAllow.
310 (remote_set_permissions): New function.
311 (remote_start_remote): Call it.
312 (init_remote_ops): Add it to target vector.
313 (_initialize_remote): Add config command for QAllow.
315 2010-06-11 Tom Tromey <tromey@redhat.com>
317 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
318 DW_AT_vtable_elem_location even when GCC extension is seen.
320 2010-06-11 Tom Tromey <tromey@redhat.com>
322 PR gdb/9977, PR exp/11636:
323 * value.h (value_offset): Update.
324 (struct lval_funcs) <check_validity>: New field.
325 <copy_closure>: Make argument const.
326 (value_computed_closure): Update.
327 (value_contents_for_printing): Declare.
328 (value_bits_valid): Likewise.
329 (val_print): Likewise.
330 (set_value_component_location): Update.
331 (value_entirely_optimized_out): Declare.
332 * value.c (value_offset): Argument now const.
333 (require_not_optimized_out): New function.
334 (value_contents_for_printing): New function.
335 (value_contents_all): Call require_not_optimized_out.
336 (value_contents): Likewise.
337 (value_bits_valid): New function.
338 (value_computed_closure): Argument now const.
339 (set_value_component_location): Make 'whole' argument const.
340 (value_entirely_optimized_out): New function.
341 (value_bitsize): Argument now 'const'.
342 (value_bitpos): Likewise.
343 (value_type): Likewise.
344 * valprint.h (val_print_array_elements): Update.
345 * valprint.c (val_print): Add 'val' argument. Use
346 valprint_check_validity.
347 (valprint_check_validity): New function.
348 (value_check_printable): Use value_entirely_optimized_out.
349 (common_val_print): Update.
350 (value_print): Likewise.
351 (val_print_array_elements): Add 'val' argument.
352 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
353 value_bits_valid. Reinit frame cache for lval_computed.
354 * sh64-tdep.c (sh64_do_register): Update.
355 * scm-valprint.c (scm_val_print): Add 'val' argument.
356 * scm-lang.h (scm_val_print): Update.
357 * python/python.h (apply_val_pretty_printer): Update.
358 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
359 argument. Call set_value_component_location.
360 * printcmd.c (print_scalar_formatted): Update.
361 * p-valprint.c (pascal_val_print): Add 'val' argument.
362 (pascal_object_print_value_fields): Likewise.
363 (pascal_object_print_value): Likewise.
364 (pascal_object_print_static_field): Update.
365 * p-lang.h (pascal_val_print): Update.
366 (pascal_object_print_value_fields): Update.
367 * mt-tdep.c (mt_registers_info): Update.
368 * mi/mi-main.c (get_register): Update.
369 (mi_cmd_data_evaluate_expression): Use common_val_print.
370 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
371 (m2_print_unbounded_array): Likewise.
372 (m2_val_print): Likewise.
373 * m2-lang.h (m2_val_print): Update.
374 * language.h (struct language_defn) <la_val_print>: Add 'val'
376 (LA_VAL_PRINT): Likewise.
377 * language.c (unk_lang_val_print): Add 'val' argument.
378 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
379 (java_val_print): Likewise.
380 * jv-lang.h (java_val_print): Add 'val' argument.
381 * infcmd.c (default_print_registers_info): Update.
382 * f-valprint.c (f77_print_array_1): Add 'val' argument.
383 (f77_print_array): Likewise.
384 (f_val_print): Likewise.
385 * f-lang.h (f_val_print): Add 'val' argument.
386 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
388 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
389 set_value_optimized_out.
390 (write_pieced_value): Use value_bitsize and value_bitpos.
391 <default>: Don't exit loop.
392 (check_pieced_value_validity): New function.
393 (pieced_value_funcs): Reference check_pieced_value_validity,
394 check_pieced_value_invalid.
395 (copy_pieced_value_closure): Update.
396 (check_pieced_value_bits): New function.
397 (check_pieced_value_invalid): New function.
398 * d-valprint.c (dynamic_array_type): Add 'val' argument.
399 (d_val_print): Likewise.
400 * d-lang.h (d_val_print): Update.
401 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
402 (cp_print_value_fields_rtti): Likewise.
403 (cp_print_value): Likewise.
404 (cp_print_static_field): Update.
405 * c-valprint.c (c_val_print): Add 'val' argument.
406 (c_value_print): Update.
407 * c-lang.h (c_val_print): Update.
408 (cp_print_value_fields): Likewise.
409 (cp_print_value_fields_rtti): Likewise.
410 * ada-valprint.c (struct ada_val_print_args): Remove.
411 (val_print_packed_array_elements): Add 'val' argument.
412 (ada_val_print): Likewise. Rewrite.
413 (ada_val_print_stub): Remove.
414 (ada_val_print_array): Add 'val' argument.
415 (ada_val_print_1): Likewise.
416 (print_variant_part): Likewise.
417 (ada_value_print): Update.
418 (print_record): Add 'val' argument.
419 (print_field_values): Likewise.
420 * ada-lang.h (ada_val_print): Update.
422 2010-06-11 Tom Tromey <tromey@redhat.com>
424 * vec.h (VEC_cleanup): New macro.
425 (DEF_VEC_ALLOC_FUNC_I): Update.
426 (DEF_VEC_ALLOC_FUNC_P): Likewise.
427 (DEF_VEC_ALLOC_FUNC_O): Likewise.
428 * dwarf2loc.c (struct axs_var_loc): Remove.
429 (unimplemented): New function.
430 (translate_register): Likewise.
431 (access_memory): Likewise.
432 (compile_dwarf_to_ax): Likewise.
433 (dwarf2_tracepoint_var_loc): Remove.
434 (dwarf2_tracepoint_var_access): Likewise.
435 (dwarf2_tracepoint_var_ref): Likewise.
436 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
437 (loclist_tracepoint_var_ref): Likewise.
438 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
439 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
440 require_composition. No longer static.
441 (execute_stack_op): Update.
442 * ax-gdb.h (trace_kludge): Declare.
444 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
446 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
447 (should_be_inserted): Return zero also on NULL OWNER.
448 (breakpoint_program_space_exit): New OWNER comment.
449 (insert_breakpoint_locations): Extend comment for OWNER.
450 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
451 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
453 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
454 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
455 (bpstat_check_location): New assert on OWNER.
456 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
457 and B initializations to the code block. New assert on them.
458 (print_one_breakpoint_location): New OWNER comment.
459 (watchpoint_locations_match): Assert on OWNER.
460 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
461 initializations to the code block. New assert on OWNER.
462 (set_breakpoint_location_function): New assert on OWNER.
463 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
464 (bp_location_compare, update_global_location_list)
465 (update_global_location_list): New OWNER comment.
467 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
469 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
471 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
473 * config/nm-linux.h (struct target_ops): Remove forward declaration.
474 (lin_thread_get_thread_signals): Remove prototype.
475 (GET_THREAD_SIGNALS): Remove.
476 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
477 * linux-thread-db.c (check_thread_signals): Directly call
478 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
480 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
482 * gregset.h (GDB_FPXREGSET_T): Remove.
483 (gdb_fpxregset_t): Likewise.
484 (supply_fpxregset): Remove prototype.
485 (fill_fpxregset): Likewise.
486 * i386-linux-nat.c (supply_fpxregset): Remove.
487 (fill_fpxregset): Likewise.
488 (fetch_fpxregs): Inline supply_fpxregset call.
489 (store_fpxregs): Inline fill_fpxregset call.
491 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
492 * config/i386/nm-linux.h: Remove file.
494 2010-06-09 Michael Snyder <msnyder@vmware.com>
496 * target.c (update_current_target): Fix spelling error in comment.
497 (target_mourn_inferior): Fix spelling error in error message.
499 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
501 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
502 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
504 2010-06-08 Michael Snyder <msnyder@vmware.com>
506 * remote.c (remote_close): Set inferior_ptid to null_ptid.
508 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
510 * configure.ac <"${have_libpython}" != no>: New workaround of
512 * configure: Regenerate.
514 2010-06-08 Hui Zhu <teawater@gmail.com>
516 * record.c (record_wait): Move signal out of replay code.
518 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
521 * dwarf2-frame.c (no_dwarf_call): New function.
522 (execute_stack_op): Set CTX->DWARF_CALL.
523 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
524 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
525 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
526 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
527 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
528 (needs_frame_dwarf_call): New function.
529 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
530 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
531 Update the comment. Move variables die, offset and error call to ...
532 (follow_die_ref): ... a new function.
533 (dwarf2_fetch_die_location_block): New function.
534 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
536 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
538 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
539 (dwarf_expr_tls_address): Use per_cu instead of objfile.
540 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
541 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
543 (struct needs_frame_baton): New field per_cu.
544 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
545 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
547 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
549 * cp-support.c (make_symbol_overload_list_namespace): Only search
550 static and global blocks.
551 (make_symbol_overload_list_block): New function.
552 (make_symbol_overload_list): Separate namespace search from block
554 (make_symbol_overload_list_qualified): Use
555 make_symbol_overload_list_block.
557 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
559 * value.h: Created oload_search_type enum.
560 (find_overload_match): Use oload_search_type enum.
561 * valops.c (find_overload_match): Support combined member and
563 * eval.c (evaluate_subexp_standard): Calls to
564 find_overload_match now use oload_search_type enum.
565 (oload_method_static): Verify index is a proper value.
566 * valarith.c (value_user_defined_cpp_op): Search for and handle
567 both member and non-member operators.
568 (value_user_defined_cpp_op): New function.
569 (value_user_defined_op): New function.
570 (value_x_unop): Use value_user_defined_op.
571 (value_x_binop): Ditto.
572 * cp-support.c (make_symbol_overload_list_using): Added block
574 Add check for namespace aliases and imported declarations.
576 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
578 * breakpoint.h (owner): Extend the comment.
580 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
582 Clear stale specific bp_location from former whole breakpoint.
583 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
585 (free_bp_location): ... here. Rename there the called function to
586 bpstat_remove_bp_location_callback.
587 (bpstat_remove_breakpoint_callback): Rename to ...
588 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
589 to struct bp_location. Change the called function to
590 bpstat_remove_bp_location. Create new declaration for the function.
591 (bpstat_remove_breakpoint): Rename to ...
592 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
593 code for the new parameter type.
595 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
597 * README: Make version-agnostic.
599 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
601 Fix duplicate types for single DIE.
602 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
604 (read_array_type): Remove type initialization. Recheck get_die_type
605 after initial die_type. Move set_die_type before set_descriptive_type.
606 (read_set_type): New variable domain_type. Recheck get_die_type after
607 initial die_type. Move attr initialization later.
608 (read_tag_pointer_type, read_tag_reference_type): New variable
609 target_type. Recheck get_die_type after initial die_type.
610 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
611 die_type and die_containing_type.
612 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
613 Recheck get_die_type after initial die_type.
614 (read_subrange_type): Recheck get_die_type after initial die_type.
615 Move set_die_type before set_descriptive_type.
616 (set_die_type): Extend the function comment. Call complaint if DIE has
617 some type already set.
619 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
621 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
622 for current naming of thread groups (iN, not N).
624 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
626 * ada-lang.c (ada_operator_length): Constify `struct expression'.
627 * parse.c (operator_length): Likewise.
628 (operator_length_standard): Likewise.
629 * parser-defs.h (operator_length): Likewise.
630 (operator_length_standard): Likewise.
631 (struct exp_descriptor <operator_length>): Likewise.
633 2010-06-04 Doug Evans <dje@google.com>
635 Add support for enabling/disabling individual pretty-printers.
636 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
637 * python/python-internal.h (gdbpy_enabled_cst): Declare.
638 * python/python.c (gdbpy_enabled_cst): Define.
639 (_initialize_python): Initialize gdbpy_enabled_cst.
642 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
644 * breakpoint.c (update_global_location_list): Fix comment typo.
646 2010-06-04 Hui Zhu <teawater@gmail.com>
648 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
650 2010-06-03 Doug Evans <dje@google.com>
652 * configure.ac: Don't fail if python is unusable when
653 configured with --with-python=auto.
654 * configure: Regenerate.
656 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
658 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
660 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
662 * valprint.h (get_array_bounds): Change low and high parameter types
664 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
666 (val_print_array_elements): Adapt to change above.
667 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
668 * p-valprint.c (pascal_val_print): Likewise.
670 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
672 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
673 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
676 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
678 Support DW_TAG_module as separate namespaces.
679 * dwarf2read.c (typename_concat): New parameter physname.
680 (read_module_type): New function and declaration.
681 (scan_partial_symbols): Scan also DW_TAG_module children.
682 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
683 to typename_concat backward compatible physname value 0.
684 (partial_die_full_name, read_namespace_type): Pass to typename_concat
685 backward compatible physname value 0.
686 (add_partial_module, read_module): Remove FIXME comment.
687 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
688 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
689 DIEs under DW_TAG_module.
690 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
691 DW_AT_MIPS_linkage_name first, extend it for language_fortran
692 && physname and return there instead of just setting NAME. Extend
693 the main block for language_fortran. Pass physname parameter to the
694 typename_concat call.
695 (read_import_statement, read_func_scope, get_scope_pc_bounds)
696 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
697 (new_symbol): Fill in cplus_specific.demangled_name if it is still
698 missing from SYMBOL_SET_NAMES in the language_fortran case.
699 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
701 (read_type_die) <DW_TAG_module>: New.
702 (MAX_SEP_LEN): Increase to 7.
703 (typename_concat): New parameter physname. New variable lead. Support
704 also language_fortran.
705 * f-exp.y (yylex): Consider : also as a symbol name character class.
706 * f-lang.c: Include cp-support.h.
707 (f_word_break_characters, f_make_symbol_completion_list): New functions.
708 (f_language_defn): Use cp_lookup_symbol_nonlocal,
709 f_word_break_characters and f_make_symbol_completion_list.
710 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
711 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
712 * symtab.c (symbol_init_language_specific): Support language_fortran.
713 (symbol_find_demangled_name): New comment on language_fortran.
714 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
715 for language_fortran.
716 (lookup_symbol_aux_local): Check imports also for language_fortran.
717 (default_make_symbol_completion_list): Rename to ...
718 (default_make_symbol_completion_list_break_on): ... this name. New
719 parameter break_on, use it.
720 (default_make_symbol_completion_list): New stub.
721 * symtab.h (default_make_symbol_completion_list_break_on): New
724 2010-06-02 Joel Brobecker <brobecker@adacore.com>
726 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
729 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
731 * dwarf2read.c (typename_concat): Add const to the variable sep.
733 2010-06-02 Tom Tromey <tromey@redhat.com>
735 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
736 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
737 type is const. Add 'def' argument. Add missing operators, remove
739 (decode_locdesc): Update.
740 (dwarf2_always_disassemble): New global.
741 (show_dwarf2_always_disassemble): New function.
742 (_initialize_dwarf2_read): Add always-disassemble.
743 (dwarf2_per_cu_offset_size): New function.
744 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
745 (piece_end_p): New function.
746 (locexpr_describe_location_piece): Replace 'size' argument with
747 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
748 some constants. Remove errors.
749 (disassemble_dwarf_expression): New function.
750 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
751 Add 'offset_size' argument.
752 (loclist_describe_location): Change output formatting.
753 * dwarf2expr.h (dwarf_stack_op_name): Declare.
755 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
757 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
760 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
762 * dwarf2read.c (read_subrange_type): Handle missing base type
763 according to Dwarf-2 specifications.
765 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
767 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
769 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
770 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
771 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
772 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
773 UNOP_CHMAX, UNOP_CHMIN.
774 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
775 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
776 UNOP_CHMIN>: Remove opcodes.
778 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
780 * dwarf2read.c (read_func_scope): Do not complain for
781 external function if bounds are not found.
783 2010-06-01 Pedro Alves <pedro@codesourcery.com>
785 * NEWS: Mention gdbserver fast tracepoints support.
787 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
789 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
791 (windows_set_console_info): New function.
792 (windows_create_inferior): Call windows_set_console_info
793 if NEW_CONSOLE is true.
794 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
795 (_initialize_loadable): Initialize GetConsoleFontSize and
796 GetCurrentConsoleFont.
798 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
800 * Makefile.in (RDYNAMIC): New.
801 (SFILES): Add proc-service.list.
802 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
803 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
804 * config/arm/linux.mh: Likewise.
805 * config/i386/linux.mh: Likewise.
806 * config/i386/linux64.mh: Likewise.
807 * config/ia64/linux.mh: Likewise.
808 * config/m32r/linux.mh: Likewise.
809 * config/m68k/linux.mh: Likewise.
810 * config/mips/linux.mh: Likewise.
811 * config/pa/linux.mh: Likewise.
812 * config/powerpc/linux.mh: Likewise.
813 * config/powerpc/ppc64-linux.mh: Likewise.
814 * config/s390/s390.mh: Likewise.
815 * config/sparc/linux.mh: Likewise.
816 * config/sparc/linux64.mh: Likewise.
817 * config/xtensa/linux.mh: Likewise.
818 * configure.ac: New RDYNAMIC on native host and GCC.
819 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
820 * configure: Regenerate.
821 * proc-service.list: New.
823 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
825 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
828 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
830 * linux-nat.c (linux_nat_wait_1): Do not call
831 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
832 TARGET_WAITKIND_SIGNALLED.
834 2010-05-27 Joel Brobecker <brobecker@adacore.com>
836 * ada-lang.c (ada_inferior_data): New struct.
837 (ada_inferior_data): New static global.
838 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
839 (ada_get_tsd_type): New functions.
840 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
841 to look the tsd type up.
842 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
843 event. Set ada_inferior_data.
845 2010-05-27 Pedro Alves <pedro@codesourcery.com>
847 * remote.c (unpack_varlen_hex): Remove forward declaration.
848 (remote_console_output): Make static, and add forward declaration.
849 * remote.h: Drop FIXME comment.
850 (unpack_varlen_hex): Declare.
851 (remote_console_output, remote_cisco_objfile_relocate)
852 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
854 * tracepoint.c: Include "remote.h".
855 (unpack_varlen_hex): Delete declaration.
857 2010-05-27 Tom Tromey <tromey@redhat.com>
859 * dwarf2loc.c (struct piece_closure) <refc>: New field.
860 (allocate_piece_closure): Initialize refc.
861 (copy_pieced_value_closure): Use refc.
862 (free_pieced_value_closure): Likewise.
864 2010-05-27 Tom Tromey <tromey@redhat.com>
866 * arm-tdep.c (push_stack_item): 'contents' now const.
867 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
868 value_contents_writeable. Introduce new temporary.
870 2010-05-27 Tom Tromey <tromey@redhat.com>
872 * findcmd.c (parse_find_args): Use value_contents, not
875 2010-05-27 Tom Tromey <tromey@redhat.com>
877 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
878 const. Use value_contents, not value_contents_writeable.
880 2010-05-27 Joel Brobecker <brobecker@adacore.com>
882 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
883 by call to value_contents.
885 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
887 * MAINTAINERS: Add myself for write after approval privileges.
889 2010-05-26 Doug Evans <dje@google.com>
891 Allow python to find its files if moved from original location.
892 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
893 (GDB_AC_WITH_DIR): Call it.
894 * configure.ac: Define WITH_PYTHON_PATH if we can find the
895 python installation directory.
896 * config.in: Regenerate.
897 * configure: Regenerate.
898 * defs.h (python_libdir): Declare.
899 * main.c (python_libdir): Define.
900 (captured_main): Initialize python_libdir.
901 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
902 call Py_SetProgramName to make sure python can find its libraries
905 * configure.ac: Try to use python's distutils to fetch compilation
907 * configure: Regenerate.
908 * python/python-config.py: New file.
910 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
912 * ser-tcp.c (net_open): Check error return from socket() call by its
913 equality to -1 not by it being negative.
914 (net_close): Likewise.
916 2010-05-26 Pedro Alves <pedro@codesourcery.com>
918 * NEWS: Mention the `qRelocInsn' feature.
919 * gdbarch.sh (relocate_instruction): New.
920 * amd64-tdep.c (rip_relative_offset): New.
922 (amd64_relocate_instruction): New.
923 (amd64_init_abi): Install it.
924 * i386-tdep.c (append_insns): New.
925 (i386_relocate_instruction): New.
926 (i386_gdbarch_init): Install it.
927 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
928 * gdbarch.h, gdbarch.c: Regenerate.
930 2010-05-26 Tom Tromey <tromey@redhat.com>
932 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
933 (struct dwarf2_loclist_baton) <data>: Likewise.
934 * dwarf2loc.c (find_location_expression): Constify return type.
935 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
936 (dwarf2_loc_desc_needs_frame): Likewise.
937 (loclist_read_variable): Constify.
938 (loclist_describe_location): Likewise.
939 (loclist_tracepoint_var_ref): Likewise.
941 2010-05-25 Tom Tromey <tromey@redhat.com>
943 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
944 (dwarf_expr_frame_base_1): Likewise.
945 (read_pieced_value): Update.
946 (needs_frame_frame_base): Constify.
947 (dwarf2_tracepoint_var_loc): Likewise.
948 (dwarf2_tracepoint_var_access): Likewise.
949 (locexpr_describe_location_piece): Likewise.
950 (locexpr_describe_location_1): Likewise.
951 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
954 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
955 (dwarf_expr_eval, read_uleb128, read_sleb128)
956 (dwarf2_read_address): Update.
957 * dwarf2expr.c (dwarf_expr_eval): Constify.
958 (read_uleb128): Likewise.
959 (read_sleb128): Likewise.
960 (dwarf2_read_address): Likewise.
961 (require_composition): Likewise.
962 (execute_stack_op): Likewise.
963 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
965 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
967 (no_get_frame_base): Constify.
968 (execute_stack_op): Likewise.
969 (execute_cfa_program): Likewise.
970 (read_encoded_value): Likewise.
972 2010-05-25 Doug Evans <dje@google.com>
974 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
976 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
977 * event-loop.c: ... here.
978 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
980 (tui_getc): Pass correct value for `error' parameter to
983 Add python gdb.GdbError and gdb.string_to_argv.
984 * NEWS: Document them.
985 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
986 the exception is gdb.GdbError. Print a second traceback if there's
987 an error computing the error message.
988 (gdbpy_string_to_argv): New function.
989 * python/py-utils.c (gdbpy_obj_to_string): New function.
990 (gdbpy_exception_to_string): New function.
991 * python/python-internal.h (gdbpy_string_to_argv): Declare.
992 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
993 (gdbpy_gdberror_exc): Declare.
994 * python/python.c (gdbpy_gdberror_exc): New global.
995 (_initialize_python): Initialize gdbpy_gdberror_exc and create
997 (GdbMethods): Add string_to_argv.
999 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1001 * windows-nat.c (display_selector): Call GetLastError to give better
1002 failure explanation.
1004 2010-05-24 Pedro Alves <pedro@codesourcery.com>
1006 * config.in: Regenerate.
1008 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1011 * target.c (push_target): Return only void. Remove the return value
1013 * target.h (push_target): Return only void.
1015 2010-05-23 Pedro Alves <pedro@codesourcery.com>
1017 Update gnulib from latest git.
1018 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1020 * gnulib/memcmp.c: Removed.
1021 * gnulib/memchr.valgrind: New.
1022 * gnulib/stddef.in.h: New.
1023 * gnulib/Makefile.am: Updated.
1024 * gnulib/memchr.c: Updated.
1025 * gnulib/memmem.c: Updated.
1026 * gnulib/stdint.in.h: Updated.
1027 * gnulib/str-two-way.h: Updated.
1028 * gnulib/string.in.h: Updated.
1029 * gnulib/wchar.in.h: Updated.
1031 * gnulib/extra/link-warning.h: Removed.
1032 * gnulib/extra/c++defs.h: New.
1033 * gnulib/extra/warn-on-use.h: New.
1034 * gnulib/extra/arg-nonnull.h: Updated.
1036 * gnulib/m4/extensions.m4: Updated.
1037 * gnulib/m4/gnulib-cache.m4: Updated.
1038 * gnulib/m4/gnulib-common.m4: Updated.
1039 * gnulib/m4/gnulib-comp.m4: Updated.
1040 * gnulib/m4/gnulib-tool.m4: Updated.
1041 * gnulib/m4/include_next.m4: Updated.
1042 * gnulib/m4/longlong.m4: Updated.
1043 * gnulib/m4/memchr.m4: Updated.
1044 * gnulib/m4/memmem.m4: Updated.
1045 * gnulib/m4/stdint.m4: Updated.
1046 * gnulib/m4/string_h.m4: Updated.
1047 * gnulib/m4/memcmp.m4: Removed.
1048 * gnulib/m4/onceonly_2_57.m4: Removed.
1049 * gnulib/m4/00gnulib.m4: New.
1050 * gnulib/m4/mmap-anon.m4: New.
1051 * gnulib/m4/multiarch.m4: New.
1052 * gnulib/m4/onceonly.m4: New.
1053 * gnulib/m4/stddef_h.m4: New.
1054 * gnulib/m4/warn-on-use.m4: New.
1055 * gnulib/m4/wchar.m4: Removed.
1056 * gnulib/m4/wchar_h.m4: New.
1057 * gnulib/m4/wchar_t.m4: New.
1058 * gnulib/m4/wint_t.m4: New.
1060 * aclocal.m4: Regenerate.
1061 * config.in: Likewise.
1062 * configure: Likewise.
1063 * gnulib/Makefile.in: Likewise.
1065 2010-05-21 Tom Tromey <tromey@redhat.com>
1067 * dwarf2loc.c (extract_bits_primitive): New function.
1068 (extract_bits): Likewise.
1069 (insert_bits): Likewise.
1070 (copy_bitwise): Likewise.
1071 (read_pieced_value): Do all operations in bits.
1072 (write_pieced_value): Likewise.
1073 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
1074 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
1075 Always use xrealloc to resize piece array.
1076 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
1077 <DW_OP_piece>: Update.
1078 <DW_OP_bit_piece>: New case.
1080 2010-05-21 Tom Tromey <tromey@redhat.com>
1082 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
1083 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
1084 * dwarf2expr.h (enum dwarf_value_location)
1085 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
1086 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
1087 (add_piece): Handle empty piece.
1088 (execute_stack_op) <DW_OP_piece>: Handle
1089 DWARF_VALUE_OPTIMIZED_OUT.
1091 2010-05-21 Tom Tromey <tromey@redhat.com>
1093 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
1094 evaluate_subexp, not evaluate_subexp_with_coercion.
1096 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1098 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
1101 2010-05-21 Tom Tromey <tromey@redhat.com>
1103 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
1105 (write_pieced_value): Likewise.
1107 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1109 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1110 and DW_TAG_volatile_type.
1111 (new_symbol): Likewise.
1113 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
1115 * p-valprint.c (pascal_val_print): Call get_array_bounds
1116 to obtain the number of elements in an array.
1118 2010-05-19 Doug Evans <dje@google.com>
1120 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
1122 * python.c (source_python_script): Add comment.
1123 (source_python_script_for_objfile): Remove unnecessary call to
1126 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1127 Sergio Durigan Junior <sergiodj@redhat.com>
1130 * parse.c (exp_iterate): Use operator_length wrapper function.
1132 2010-05-18 Michael Snyder <msnyder@vmware.com>
1134 * ada-lang.c: White space.
1135 * ada-typeprint.c: White space.
1136 * ada-valprint.c: White space.
1137 * addrmap.c: White space.
1138 * auxv.c: White space.
1139 * ax-gdb.c: White space.
1141 2010-05-18 Hui Zhu <teawater@gmail.com>
1143 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
1145 (inferior_call_waitpid): Move make_cleanup out of check.
1146 Check the return of waitpid.
1147 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
1149 2010-05-17 Michael Snyder <msnyder@vmware.com>
1151 * tui/tui.c: White space.
1152 * tui/tui-data.c: White space.
1153 * tui/tui-disasm.c: White space.
1154 * tui/tui-file.c: White space.
1155 * tui/tui-interp.c: White space.
1156 * tui/tui-main.c: White space.
1157 * tui/tui-out.c: White space.
1158 * tui/tui-regs.c: White space.
1159 * tui/tui-source.c: White space.
1160 * tui/tui-stack.c: White space.
1161 * tui/tui-win.c: White space.
1162 * tui/tui-winsource.c: White space.
1164 * procfs.c: White space.
1166 * python/py-auto-load.c: White space.
1167 * python/py-block.c: White space.
1168 * python/py-breakpoint.c: White space.
1169 * python/py-cmd.c: White space.
1170 * python/py-function.c: White space.
1171 * python/py-lazy-string.c: White space.
1172 * python/py-objfile.c: White space.
1173 * python/py-param.c: White space.
1174 * python/py-prettyprint.c: White space.
1175 * python/py-progspace.c: White space.
1176 * python/py-symtab.c: White space.
1177 * python/python.c: White space.
1178 * python/py-type.c: White space.
1179 * python/py-utils.c: White space.
1180 * python/py-value.c: White space.
1182 * mi/mi-cmd-break.c: White space.
1183 * mi/mi-cmd-env.c: White space.
1184 * mi/mi-cmds.c: White space.
1185 * mi/mi-cmd-stack.c: White space.
1186 * mi/mi-cmd-var.c: White space.
1187 * mi/mi-console.c: White space.
1188 * mi/mi-getopt.c: White space.
1189 * mi/mi-interp.c: White space.
1190 * mi/mi-main.c: White space.
1191 * mi/mi-out.c: White space.
1192 * mi/mi-parse.c: White space.
1194 * cli/cli-cmds.c: White space.
1195 * cli/cli-decode.c: White space.
1196 * cli/cli-dump.c: White space.
1197 * cli/cli-interp.c: White space.
1198 * cli/cli-logging.c: White space.
1199 * cli/cli-script.c: White space.
1200 * cli/cli-setshow.c: White space.
1202 * valarith.c: White space.
1203 * valops.c: White space.
1204 * valprint.c: White space.
1205 * value.c: White space.
1206 * varobj.c: White space.
1207 * xcoffread.c: White space.
1208 * xml-support.c: White space.
1209 * xml-tdesc.c: White space.
1211 2010-05-17 Andreas Schwab <schwab@redhat.com>
1214 * c-lang.c (c_printstr): Compute real length of NUL terminated
1217 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1219 * parse.c (parse_exp_in_context): When block is not NULL, use
1220 its associated language to parse the expression instead of
1221 the current_language.
1223 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1225 * jv-lang.c (java_lookup_class): Remove commented out code.
1226 (type_from_class): Likewise.
1227 (java_op_print_tab): Remove commented-out elements.
1229 2010-05-17 Joel Brobecker <brobecker@adacore.com>
1231 * ada-lang.c (to_fixed_range_type): The the raw index type as
1232 argument instead of the raw type name. Remove orig_type parameter.
1233 Update calls throughout.
1234 (ada_fixup_array_indexes_type): New function.
1235 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
1236 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
1237 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
1238 Remove name parameter.
1239 (print_array_type): Add call to ada_fixup_array_indexes_type.
1240 Update calls to print_range_type.
1241 (ada_print_type): Update calls to print_range_type.
1243 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1245 * dwarf2read.c (read_set_type): Set type length if
1246 DW_AT_byte_size attribute is present.
1248 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
1250 * p-valprint.c (pascal_val_print): Handle set type if range limits
1251 are undefined but size is known.
1253 2010-05-17 Pedro Alves <pedro@codesourcery.com>
1255 * procfs.c: Reformat.
1257 2010-05-16 Michael Snyder <msnyder@vmware.com>
1259 * target.c: White space.
1260 * target-descriptions.c: White space.
1261 * target-memory.c: White space.
1262 * thread.c: White space.
1263 * top.c: White space.
1264 * tracepoint.c: White space.
1265 * trad-frame.c: White space.
1266 * tramp-frame.c: White space.
1267 * ui-file.c: White space.
1268 * ui-out.c: White space.
1269 * user-regs.c: White space.
1270 * utils.c: White space.
1272 * scm-exp.c: White space.
1273 * scm-lang.c: White space.
1274 * scm-valprint.c: White space.
1275 * sentinel-frame.c: White space.
1276 * ser-base.c: White space.
1277 * ser-go32.c: White space.
1278 * serial.c: White space.
1279 * ser-mingw.c: White space.
1280 * ser-pipe.c: White space.
1281 * ser-tcp.c: White space.
1282 * ser-unix.c: White space.
1283 * solib.c: White space.
1284 * solib-darwin.c: White space.
1285 * solib-frv.c: White space.
1286 * solib-irix.c: White space.
1287 * solib-osf.c: White space.
1288 * solib-pa64.c: White space.
1289 * solib-som.c: White space.
1290 * solib-spu.c: White space.
1291 * solib-svr4.c: White space.
1292 * solib-target.c: White space.
1293 * source.c: White space.
1294 * stabsread.c: White space.
1295 * stack.c: White space.
1296 * std-regs.c: White space.
1297 * symfile.c: White space.
1298 * symmisc.c: White space.
1299 * symtab.c: White space.
1301 2010-05-16 Michael Snyder <msnyder@vmware.com>
1303 * source.c (_initialize_source): Add "rev" as an abbreviation
1304 for the "reverse-search" command.
1306 2010-05-16 Michael Snyder <msnyder@vmware.com>
1308 * record.c: White space.
1309 * regcache.c: White space.
1310 * reggroups.c: White space.
1311 * remote-fileio.c: White space.
1312 * remote-m32r-sdi.c: White space.
1313 * remote-mips.c: White space.
1314 * remote-sim.c: White space.
1315 * remote.c: White space.
1316 (process_g_packet): Remove orphan braces.
1318 2010-05-15 Michael Snyder <msnyder@vmware.com>
1320 * parse.c: White space.
1321 * p-lang.c: White space.
1322 * posix-hdep.c: White space.
1323 * printcmd.c: White space.
1324 * progspace.c: White space.
1325 * prologue-value.c: White space.
1326 * psymtab.c: White space.
1327 * p-typeprint.c: White space.
1328 * p-valprint.c: White space.
1330 * objc-lang.c: White space.
1331 * objfiles.c: White space.
1332 * observer.c: White space.
1333 * osabi.c: White space.
1334 * osdata.c: White space.
1336 * m2-lang.c: White space.
1337 * m2-valprint.c: White space.
1338 * macrocmd.c: White space.
1339 * macroexp.c: White space.
1340 * macroscope.c: White space.
1341 * macrotab.c: White space.
1342 * main.c: White space.
1343 * maint.c: White space.
1344 * mdebugread.c: White space.
1345 * memattr.c: White space.
1346 * minsyms.c: White space.
1347 * monitor.c: White space.
1349 2010-05-14 Michael Snyder <msnyder@vmware.com>
1351 * jv-lang.c: White space.
1352 * jv-typeprint.c: White space.
1353 * jv-valprint.c: White space.
1354 * language.c: White space.
1355 * libunwind-frame.c: White space.
1356 * linespec.c: White space.
1357 * linux-nat.c: White space.
1358 * linux-record.c: White space.
1359 * linux-thread-db.c: White space.
1361 * infcall.c: White space.
1362 * inf-child.c: White space.
1363 * infcmd.c: White space.
1364 * inferior.c: White space.
1365 * inf-loop.c: White space.
1366 * inflow.c: White space.
1367 * inline-frame.c: White space.
1368 * interps.c: White space.
1370 * gcore.c: White space.
1371 * gdb.c: White space.
1372 * gdbtypes.c: White space.
1373 * gnu-nat.c: White space.
1374 * gnu-v2-abi.c: White space.
1375 * gnu-v3-abi.c: White space.
1377 * findcmd.c: White space.
1378 * findvar.c: White space.
1379 * fork-child.c: White space.
1380 * frame-base.c: White space.
1381 * frame.c: White space.
1382 * frame-unwind.c: White space.
1383 * f-valprint.c: White space.
1385 * elfread.c: White space.
1386 * environ.c: White space.
1387 * eval.c: White space.
1388 * event-loop.c: White space.
1389 * event-top.c: White space.
1390 * exceptions.c: White space.
1391 * exec.c: White space.
1392 * expprint.c: White space.
1394 * dbxread.c: White space.
1395 * dcache.c: White space.
1396 * disasm.c: White space.
1397 * doublest.c: White space.
1398 * dsrec.c: White space.
1399 * dummy-frame.c: White space.
1400 * dwarf2expr.c: White space.
1401 * dwarf2-frame.c: White space.
1402 * dwarf2loc.c: White space.
1403 * dwarf2read.c: White space.
1405 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
1409 * python/py-value.c (valpy_hash): New function.
1410 (value_object_type): Register valpy_hash.
1412 2010-05-14 Hui Zhu <teawater@gmail.com>
1413 Michael Snyder <msnyder@vmware.com>
1415 * linux-fork.c (gdbthread.h): New include.
1416 (fork_info): Add parent_ptid.
1417 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
1419 (delete_checkpoint_command): Call inferior_call_waitpid.
1420 (checkpoint_command): Set parent_ptid.
1422 2010-05-13 Michael Snyder <msnyder@vmware.com>
1424 * dictionary.c: Re-indent to GNU coding standard.
1426 * charset.c: White space.
1427 * c-lang.c: White space.
1428 * cli-out.c: White space.
1429 * coffread.c: White space.
1430 * complaints.c: White space.
1431 * completer.c: White space.
1432 * corefile.c: White space.
1433 * corelow.c: White space.
1434 * cp-abi.c: White space.
1435 * cp-namespace.c: White space.
1436 * cp-support.c: White space.
1437 * cp-valprint.c: White space.
1438 * c-typeprint.c: White space.
1439 * c-valprint.c: White space.
1440 * blockframe.c: White space.
1441 * breakpoint.c: White space.
1442 * buildsym.c: White space.
1443 * blockframe.c: White space.
1444 * bcache.c: White space.
1445 * gdbarch.sh: White space, add blank lines.
1446 * arch-utils.c: Ditto.
1447 * gdbarch.c: Regenerate.
1448 * frame.c: White space, add blank lines.
1449 * stack.c: White space, add blank lines.
1450 (initialize_stack): Remove long-dead code.
1452 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1455 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
1456 (locexpr_read_variable, loclist_read_variable): Update the callers.
1458 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1461 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
1462 Remove check of NULL returned by tag_type_to_type.
1463 (die_containing_type): Remove variable type. Remove type_die variable
1464 initialization. Remove check of NULL returned by tag_type_to_type.
1466 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1469 * gdbtypes.c (lookup_struct_elt_type): Also lookup
1470 names of unnamed structures or unions.
1472 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
1474 * procfs.c (proc_watchpoint_address): New function.
1475 (procfs_stopped_by_watchpoint): Remove useless check after
1476 find_procinfo_or_die call.
1477 (procfs_stopped_data_address): New function.
1478 (procfs_use_watchpoints): Register new watchpoint related function.
1480 2010-05-11 Tom Tromey <tromey@redhat.com>
1482 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
1484 2010-05-10 Michael Snyder <msnyder@vmware.com>
1486 * utils.c: White space cleanup.
1488 2010-05-10 Tom Tromey <tromey@redhat.com>
1490 * eval.c (ptrmath_type_p): Add 'lang' argument.
1491 (evaluate_subexp_standard): Update.
1492 (evaluate_subexp_with_coercion): Update.
1493 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
1495 2010-05-10 Michael Snyder <msnyder@vmware.com>
1497 * utils.c (do_fclose_cleanup) Restore local variable.
1499 2010-05-09 Doug Evans <dje@google.com>
1501 * record.c (init_record_core_ops): Rename record_core to record-core.
1503 2010-05-08 Joel Brobecker <brobecker@adacore.com>
1505 Implement task switching on pa-hpux.
1506 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
1507 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
1509 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1511 * valops.c (find_overload_match): Add missing i18n markup.
1513 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
1515 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
1517 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1519 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
1520 list for the obconcat call.
1521 * mdebugread.c (parse_symbol): Likewise.
1522 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
1524 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
1525 New variable ap. Remove variables len and val.
1526 * symfile.h (obconcat): Likewise for the prototype.
1528 2010-05-07 Michael Snyder <msnyder@vmware.com>
1530 * python/python.c (execute_gdb_command): Remove unused variables.
1531 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
1532 * python/py-breakpoint.c (gdbpy_breakpoint_created):
1533 Remove unused variable.
1534 * python/py-cmd.c (cmdpy_function): Remove unused variable.
1535 (cmdpy_completer): Remove unused variable.
1536 * python/py-frame.c (frapy_find_sal): Remove unused variable.
1537 * python/py-function.c (fnpy_call): Remove unused variable.
1538 * python/py-objfile.c (objfile_to_objfile_object):
1539 Remove unused variable.
1540 * python/py-param.c (parmpy_init): Remove unused variable.
1541 * python/py-prettyprint.c (apply_varobj_pretty_printer):
1542 Remove unused variable.
1543 (gdbpy_default_visualizer): Remove unused variable.
1544 * python/py-progspace.c (pspace_to_pspace_object):
1545 Remove unused variable.
1546 * python/py-symtab.c (symtab_and_line_to_sal_object):
1547 Remove unused variable.
1548 * python/py-type.c (typy_template_argument):
1549 Remove unused variable.
1550 * python/py-value.c (valpy_string): Remove unused variable.
1551 (convert_value_from_python): Remove unused variables.
1553 2010-05-07 Michael Snyder <msnyder@vmware.com>
1555 * valops.c (value_cast_pointers): Restore unused variable 'type1',
1556 and use it to compute variable 't1'.
1558 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1560 * ada-lang.c (assign_aggregate): Remove unused variable.
1562 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
1565 * valops.c (find_overload_match): Handle fsym == NULL case.
1566 Add int no_adl argument.
1567 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
1569 Add int no_adl argument.
1570 (find_oload_champ_namespace): Add int no_adl argument.
1571 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
1573 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
1574 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
1575 Evaluate arguments and use them to perform ADL lookup.
1576 Pass no_adl argument to find_overload_match.
1577 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
1578 * cp-support.h: Added prototype for
1579 make_symbol_overload_list_namespace.
1580 * cp-support.c (make_symbol_overload_list_namespace): New function.
1581 (make_symbol_overload_list_adl_namespace): New function.
1582 (make_symbol_overload_list_adl): New function.
1583 (make_symbol_overload_list_using): Moved code to add function to
1584 overload set to make_symbol_overload_list_namespace.
1585 * c-exp.y: create UNKNOWN_CPP_NAME token.
1586 Add parse rule for ADL functions.
1587 (classify_name): Recognize an UNKNOWN_CPP_NAME.
1589 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1591 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
1594 2010-05-07 Joel Brobecker <brobecker@adacore.com>
1596 Implement task switching on solaris targets.
1597 * sol-thread.c (thread_db_find_thread_from_tid)
1598 (sol_get_ada_task_ptid): New functions.
1599 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
1601 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1603 * remote.c (remote_query_supported_append): Use reconcat.
1604 (remote_query_supported): Install a cleanup. Use reconcat.
1606 2010-05-07 Pedro Alves <pedro@codesourcery.com>
1608 * gdbarch.sh (qsupported): Delete.
1609 * gdbarch.h, gdbarch.c: Regenerate.
1610 * remote.c (remote_query_supported): Remove use of
1613 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
1615 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
1618 2010-05-06 Michael Snyder <msnyder@vmware.com>
1620 * xml-support.c (xinclude_start_include): Delete unused variable.
1621 (xml_process_xincludes): Delete unused variable.
1622 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
1623 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
1624 (tdesc_find_arch_register): Delete unused variable.
1625 (tdesc_use_registers): Delete unused variable.
1626 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
1627 * inferior.c (print_inferior): Delete unused variable.
1628 * record.c (record_open_1): Delete unused variable.
1629 (record_restore): Delete unused variable.
1630 (cmd_record_save): Delete unused variable.
1631 * gcore.c (derive_heap_segment): Delete unused variable.
1632 (objfile_find_memory_regions): Use unused variable.
1633 * jit.c (jit_inferior_init): Delete unused variable.
1634 * progspace.c (clone_program_space): Delete unused variable.
1635 (pspace_empty_p): Delete unused variable.
1637 * frame-unwind.c (frame_unwind_find_by_frame):
1638 Delete unused variable.
1639 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
1640 * cp-support.c (mangled_name_to_comp): Delete unused variable.
1641 (method_name_from_physname): Delete unused variable.
1642 (cp_func_name): Delete unused variable.
1643 (cp_validate_operator): Delete unused variable.
1644 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1645 Delete unused variable.
1646 * trad-frame.c (trad_frame_get_prev_register):
1647 Delete unused variable.
1648 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
1650 * serial.c (serial_for_fd): Delete unused variable.
1651 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
1652 * top.c (execute_command): Delete unused variable.
1653 (init_main): Delete unused variable.
1654 * utils.c (do_fclose_cleanup): Delete unused variable.
1655 (do_all_inferior_continuations): Delete unused variable.
1656 (initialize_utils): Delete unused variable.
1657 (internal_problem_mode): Delete unused global.
1658 * frame.c (get_prev_frame): Delete unused global.
1659 (get_frame_locals_address): Delete unused global.
1660 (get_frame_args_address): Delete unused global.
1662 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
1663 (pascal_type_print_varspec_prefix): Delete unused variable.
1664 * f-typeprint.c (f_type_print_base): Delete unused variable.
1665 (f_type_print_varspec_suffix): Delete unused variable.
1666 * m2-typeprint.c (m2_print_type): Delete unused variable.
1667 (m2_long_set): Delete unused variable.
1668 * ada-valprint.c (ada_val_print_1): Delete unused variable.
1669 * d-valprint.c (dynamic_array_type): Delete unused variable.
1670 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
1671 Delete unused variable.
1672 (f77_create_arrayprint_offset_tbl): Delete unused variable.
1673 * m2-valprint.c (m2_val_print): Delete unused variable.
1675 * ui-out.c (ui_out_field_int): Delete unused variable.
1676 (ui_out_field_fmt_int): Delete unused variable.
1677 * varobj.c (varobj_list_children): Delete unused variable.
1678 (varobj_set_value): Delete unused variable.
1679 (install_new_value_visualizer): Delete unused variable.
1680 (varobj_set_visualizer): Delete unused variable.
1681 (varobj_update): Delete unused variable.
1682 (varobj_editable_p): Delete unused variable.
1683 (c_value_of_root): Delete unused variable.
1684 (cplus_describe_child): Delete unused variable.
1686 * ada-lang.c (add_defn_to_vec): Delete unused variable.
1687 (decode_constrained_packed_array_type): Delete unused variable.
1688 (add_defn_to_vec): Delete unused variable.
1689 (symbol_completion_match): Delete unused variable.
1690 (value_tag_from_contents_and_address): Delete unused variable.
1691 (ada_evaluate_subexp): Delete unused variable.
1692 * c-lang.c (classify_type): Delete unused variable.
1693 * f-lang.c (f_printstr): Delete unused variable.
1694 * objc-lang.c (objc_printstr): Delete unused variable.
1695 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
1696 * jv-lang.c (type_from_class): ifdef unused variable.
1697 (java_class_name_from_physname): Delete unused variable.
1698 * m2-lang.c (m2_printstr): Delete unused variable.
1700 * objfiles.c (objfile_relocate): Delete unused variable.
1701 * maint.c (_initialize_maint_cmds): Delete unused variable.
1702 * demangle.c (_initialize_demangler): Delete unused variable.
1703 * corefile.c (reopen_exec_file): Delete unused variable.
1704 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
1705 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
1707 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
1708 * memattr.c (mem_delete): Delete unused variable.
1709 (invalidate_target_mem_regions): Delete unused variable.
1710 * mem-break.c (default_memory_insert_breakpoint):
1711 Delete unused variable.
1712 * target.c (target_get_osdata): Delete unused variable.
1713 * parse.c (length_of_subexp): Delete unused variable.
1714 (prefixify_subexp): Delete unused variable.
1715 (exp_iterate): Delete unused variable.
1716 * reverse.c (delete_bookmark_command): Delete unused variable.
1718 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
1719 * macroexp.c (gather_arguments): Delete unused variable.
1720 (substitute_args): Delete unused variable.
1721 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
1722 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
1723 (_initialize_gdbarch): Delete unused variable.
1724 * gdbarch.c, gdbarch.h: Regenerate.
1725 * arch-utils.c (initialize_current_architecture):
1726 Delete unused variable.
1727 (_initialize_gdbarch_utils): Delete unused variable.
1728 * gdbtypes.c (make_cv_type): Delete unused variable.
1729 (make_type_with_address_space): Delete unused variable.
1731 * linespec.c (decode_compound): Delete unused variable.
1732 * dictionary.c (iterator_next_hashed): Delete unused variable.
1733 * infcall.c (call_function_by_hand): Delete unused variable.
1734 * infcmd.c (step_1): Delete unused variable.
1735 (registers_info): Delete unused variable.
1736 (attach_command): Delete unused variable.
1737 * infrun.c (follow_exec): Delete unused variable.
1738 (handle_step_into_function_backwards): Delete unused variable.
1739 (_initialize_infrun): Delete unused variable.
1740 * stack.c (parse_frame_specification_1): Delete unused variable.
1741 (frame_info): Delete unused variable.
1742 (backtrace_command_1): Delete unused variable.
1743 (catch_info): Delete unused variable.
1745 * eval.c (evaluate_subexp_standard): Delete unused variable.
1746 * valops.c (value_cast_pointers): Delete unused variable.
1747 (value_dynamic_cast): Delete unused variable.
1748 (value_array): Delete unused variable.
1749 (find_overload_match): Delete unused variable.
1750 * valarith.c (value_subscript): Delete unused variable.
1751 (value_binop): Delete unused variable.
1752 * valprint.c (_initialize_valprint): Delete unused variable.
1753 * printcmd.c (print_command_1): Delete unused variable.
1754 (address_info): Delete unused variable.
1755 (printf_command): Delete unused variable.
1757 * auxv.c (target_auxv_search): Delete unused variable.
1758 * blockframe.c (get_frame_block): Delete unused variable.
1759 * regcache.c (regcache_cpy): Delete unused variable.
1760 (regcache_cpy_no_passthrough): Delete unused variable.
1761 * charset.c (wchar_iterate): Delete unused variable.
1762 (find_charset_names): Delete unused variable.
1763 (_initialize_charset): Delete unused variable.
1764 * disasm.c (do_mixed_source_and_assembly):
1765 Delete unused variable.
1766 * source.c (set_default_source_symtab_and_line):
1767 Delete unused variable.
1768 (set_substitute_path_command): Delete unused variable.
1769 * value.c (preserve_values): Delete unused variable.
1770 (value_from_double): Delete unused variable.
1772 2010-05-05 Michael Snyder <msnyder@vmware.com>
1774 * psymtab.c (lookup_partial_symbol): Delete unused variable.
1775 (find_last_source_symtab_from_partial): Delete unused variable.
1776 * symfile.c (place_section): Delete unused variable.
1777 (default_symfile_offsets): Delete unused variable.
1778 (get_debug_link_info): Delete unused variable.
1779 (find_separate_debug_file_by_debuglink): Delete unused variable.
1780 (add_symbol_file_command): Delete unused variable.
1781 (symfile_find_segment_sections): Delete unused variable.
1782 * symmisc.c (free_symtab): Delete unused variable.
1783 (dump_symtab_1): Delete unused variable.
1784 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
1785 (find_pc_sect_symtab): Delete unused variable.
1786 (skip_prologue_using_lineinfo): Delete unused variable.
1787 (sources_info): Delete unused variable.
1788 (completion_list_add_name): Delete unused variable.
1789 (expand_line_sal): Delete unused variable.
1791 * breakpoint.c (validate_commands_for_breakpoint):
1792 Delete unused variables.
1793 (insert_catchpoint): Delete unused variable.
1794 (update_watchpoint): Delete unused variable.
1795 (insert_bp_location): Delete unused variable.
1796 (insert_breakpoint_locations): Delete unused variable.
1797 (remove_breakpoint_1): Delete unused variable.
1798 (software_breakpoint_inserted_here_p): Delete unused variable.
1799 (watchpoints_triggered): Delete unused variable.
1800 (bpstat_check_watchpoint): Delete unused variable.
1801 (bpstat_stop_status): Delete unused variable.
1802 (print_one_breakpoint_location): Delete unused variable.
1803 (allocate_bp_location): Delete unused variable.
1804 (create_breakpoint): Delete unused variable.
1805 (watch_command_1): Delete unused variable.
1806 (catch_exception_command_1): Delete unused variable.
1807 (catch_ada_exception_command): Delete unused variable.
1808 (delete_breakpoint): Delete unused variable.
1809 (breakpoint_re_set_one): Delete unused variable.
1810 (do_enable_breakpoint): Delete unused variable.
1812 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1814 * amd64-tdep.c: Include disasm.h.
1815 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
1816 (amd64_insn_length): Moved to disasm.c and renamed.
1817 (fixup_riprel): Adjust.
1818 * disasm.c (do_ui_file_delete): New.
1819 (gdb_insn_length): New.
1820 (gdb_buffered_insn_length_fprintf)
1821 (gdb_buffered_insn_length_init_dis)
1822 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
1824 * disasm.h (gdb_insn_length): Declare.
1825 (gdb_buffered_insn_length): Declare.
1827 2010-05-06 Pedro Alves <pedro@codesourcery.com>
1829 * remote.c (clear_threads_parsing_context): New.
1830 (remote_threads_info): Delete unused null_cleanup. Install a
1831 cleanup to clear the threads_parsing_context in case parsing
1834 2010-05-05 Michael Snyder <msnyder@vmware.com>
1836 * c-exp.y (parse_string_or_char): Delete unused variable.
1837 (c_lex): Delete unused variable.
1838 * cp-name-parser.y (cpname_lex): Delete unused variable.
1839 * ada-exp.y (find_primitive_type): Delete unused variable.
1840 (write_var_or_type): Delete unused variable.
1841 * jv-exp.y (java_parse): Delete unused variable.
1842 (push_expression_name): Delete unused variable.
1843 * p-exp.y (pascal_lex): Delete unused variable.
1845 2010-05-05 Pedro Alves <pedro@codesourcery.com>
1847 * remote.c (remote_threads_info): Really revert previous previous
1850 2010-05-05 Michael Snyder <msnyder@vmware.com>
1852 * elfread.c (elf_symtab_read): Delete unused variable.
1853 (find_separate_debug_file_by_buildid): Delete unused variables.
1854 (elf_symfile_read): Delete unused variable.
1856 * coffread.c (coff_symfile_read): Delete unused variables.
1858 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
1859 (read_pe_exported_syms): Delete unused variable.
1861 * stabsread.c (define_symbol): Delete unused variable.
1863 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
1864 (process_psymtab_comp_unit): Delete unused variable.
1865 (dwarf2_build_psymtabs_hard): Delete unused variable.
1866 (load_partial_comp_unit): Delete unused variable.
1867 (create_all_comp_units): Delete unused variable.
1868 (scan_partial_symbols): Delete unused variable.
1869 (add_partial_symbol): Delete unused variable.
1870 (add_partial_namespace): Delete unused variable.
1871 (add_partial_enumeration): Delete unused variable.
1872 (load_full_comp_unit): Delete unused variable.
1873 (process_full_comp_unit): Delete unused variable.
1874 (read_file_scope): Delete unused variable.
1875 (read_type_unit_scope): Delete unused variable.
1876 (process_structure_scope): Delete unused variable.
1877 (process_enumeration_scope): Delete unused variable.
1878 (read_tag_ptr_to_member_type): Delete unused variable.
1879 (read_typedef): Delete unused variable.
1880 (read_partial_die): Delete unused variable.
1881 (decode_locdesc): Delete unused variable.
1882 (zeroed_partial_die): Delete unused global variable.
1884 * tui/tui-interp.c (_initialize_tui_interp):
1885 Delete unused variable.
1886 * tui/tui-regs.c tui_display_registers_from):
1887 Delete unused variable.
1888 (tui_check_register_values): Delete unused variable.
1889 (tui_register_format): Delete unused variable.
1890 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
1891 * tui/tui-windata.c (tui_display_data_from_line):
1892 Delete unused variables.
1893 (tui_vertical_data_scroll): Delete unused variables.
1895 2010-05-05 Michael Snyder <msnyder@vmware.com>
1897 * remote.c (remote_threads_info): Revert questionable part of
1898 the previous change.
1900 2010-05-05 Michael Snyder <msnyder@vmware.com>
1902 * mi/mi-out.c (mi_table_begin): Delete unused variable.
1903 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
1904 (mi_cmd_var_list_children): Delete unused variable.
1905 (varobj_update_one): Delete unused variable.
1906 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
1907 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
1908 Delete unused variable.
1909 (mi_cmd_stack_list_variables): Delete unused variable.
1910 (list_args_or_locals): Delete unused variable.
1911 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
1912 Delete unused variables.
1913 (mi_cmd_file_list_exec_source_files): Delete unused variable.
1914 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
1915 Delete unused variable.
1916 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
1917 (mi_cmd_interpreter_exec): Delete unused variable.
1918 (mi_on_normal_stop): Delete unused variable.
1919 * mi/mi-main.c (run_one_inferior): Delete unused variable.
1920 (print_one_inferior): Delete unused variables.
1921 (mi_execute_command): Delete unused variable.
1922 (mi_cmd_execute): Delete unused variable.
1923 (timestamp): Delete unused variable.
1925 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
1926 (restore_binary_file): Delete unused variable.
1927 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
1928 * cli/cli-script.c (define_command): Delete unused variables.
1929 (recurse_read_control_structure): Delete unused variable.
1930 (script_from_file): Delete unused variable.
1931 * cli/cli-cmds.c (complete_command): Delete unused variable.
1932 (disassemble_command): Delete unused variable.
1934 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
1935 * tracepoint.c (delete_trace_variable_command):
1936 Delete unused variables.
1937 (encode_actions_1): Delete unused variables.
1938 (start_tracing): Delete unused variable.
1939 (trace_status_mi): Delete unused variable.
1940 (tfind_1): Delete unused variable.
1941 (trace_find_pc_command): Delete unused variable.
1942 (trace_find_line_command): Delete unused variables.
1943 (trace_find_range_command): Delete unused variables.
1944 (trace_find_outside_command): Delete unused variables.
1945 (parse_tracepoint_definition): Delete unused variables.
1946 (tfile_fetch_registers): Delete unused variable.
1948 * dcache.c (dcache_init): Delete unused variable.
1949 (dcache_info): Delete unused variable.
1951 * remote.c (remote_threads_info): Delete unused variable.
1952 (process_stop_reply) :Delete unused variable.
1953 (remote_get_trace_status): Delete unused variables.
1955 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
1956 (thread_from_lwp): Delete unused variable.
1957 (enable_thread_event_reporting): Delete unused variable.
1958 (check_for_thread_db): Delete unused variables.
1959 (thread_db_find_new_threads_2): Delete unused variable.
1961 * linux-fork.c (info_checkpoints_command): Delete unused variables.
1962 (checkpoint_command): Delete unused variable.
1963 (linux_fork_context): Delete unused variables.
1965 * linux-nat.c (linux_parent_pid): Delete unused global variable.
1966 (linux_tracefork_child): Delete unused variable.
1967 (linux_child_follow_fork): Delete unused variable.
1968 (linux_nat_detach): Delete unused variable.
1969 (linux_handle_extended_wait): Delete unused variable.
1970 (linux_nat_has_pending_sigint): Delete unused variable.
1971 (linux_nat_find_memory_regions): Delete unused variable.
1972 (linux_nat_make_corefile_notes): Delete unused variables.
1973 (linux_nat_info_proc_cmd): Delete unused variable.
1974 (linux_proc_pending_signals): Delete unused variable.
1975 (linux_nat_stop_lwp): Delete unused variables.
1976 (_initialize_linux_nat): Delete unused variable.
1978 * ser-pipe.c (pipe_ops): Delete unused global variable.
1980 * linux-record.c (record_linux_system_call):
1981 Delete unused variables.
1983 * corelow.c (core_xfer_partial): Delete unused variables.
1985 * solib-svr4.c (find_program_interpreter): Delete unused variable.
1986 (svr4_solib_create_inferior_hook): Add ifdef around
1987 conditionally-used variable declarations.
1989 * solib.c (solib_find): Delete unused variable.
1990 (free_so_symbols): Delete unused variable.
1991 (info_sharedlibrary_command): Delete unused variable.
1992 (reload_shared_libraries_1): Delete unused variable.
1993 (_initialize_solib): Delete unused variable.
1995 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
1996 (i386_collect_xstateregset): Delete unused variable.
1997 * i387-tdep.c (i387_print_float_info): Delete unused variable.
1999 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
2000 Delete unused variable 'type'.
2002 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2004 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
2005 ada-lang.c: Remove comment mentioning these macros.
2006 * m2-exp.y: Delete commented out code.
2008 2010-05-05 Joel Brobecker <brobecker@adacore.com>
2010 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
2012 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
2014 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2016 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
2017 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
2019 (cleanup_kernel_helper_return): Likewise.
2020 * arm-tdep.c (copy_unmodified): Likewise.
2021 (copy_preload): Likewise.
2022 (copy_copro_load_store): Likewise.
2023 (cleanup_branch): Likewise.
2024 (copy_b_bl_blx): Likewise.
2025 (copy_bx_blx_reg): Likewise.
2026 (copy_alu_imm): Likewise.
2027 (copy_alu_reg): Likewise.
2028 (copy_alu_shifted_reg): Likewise.
2029 (cleanup_load): Likewise.
2030 (cleanup_store): Likewise.
2031 (cleanup_block_load_pc): Likewise.
2032 (cleanup_svc): Likewise.
2033 (copy_undef): Likewise.
2034 (copy_unpred): Likewise.
2035 * remote.c (register_remote_support_xml): Likewise.
2037 2010-05-05 Hui Zhu <teawater@gmail.com>
2039 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
2041 2010-05-04 Mark Kettenis <kettenis@gnu.org>
2043 * remote.c (register_remote_support_xml)
2044 (remote_query_supported_append, remote_query_supported): Add cast
2045 to NULL used as sentinel.
2046 * tracepoint.c (tvariables_info_1): Likewise.
2047 * utils.c (add_internal_problem_command): Likewise.
2049 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2051 * dwarf2loc.c (read_pieced_value, write_pieced_value,
2052 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
2053 registers gracefully.
2055 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2057 * exec.c (print_section_info): Display entry point without arch
2060 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
2063 * printcmd.c (x_command): Only dereference once implicitly for
2066 2010-05-03 Doug Evans <dje@google.com>
2068 * event-loop.c (gdb_timer): Delete unused global.
2069 (create_timer): Update.
2071 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2073 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
2074 CURRENT->DECLARATION case.
2075 * cp-support.h (struct using_direct): Provide extended comment.
2077 2010-05-03 Mark Kettenis <kettenis@gnu.org>
2079 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
2080 HPPABSD_SIZEOF_GREGS.
2081 (HPPAOBSD_SIZEOF_FPREGS): New define.
2082 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
2083 (hppaobsd_supply_fpregset): New function.
2084 (hppaobsd_gregset): Renamed from hppabsd_gregset.
2085 (hppaobsd_fpregset): New variable.
2086 (hppaobsd_regset_from_core_section): Handle floating-point registers.
2087 (_initialize_hppabsd_tdep): Remove spurious blank line.
2089 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2092 * p-valprint.c (pascal_value_print): Always dereference a value with
2093 type code TYPE_CODE_REF.
2095 2010-05-03 Pedro Alves <pedro@codesourcery.com>
2097 * remote.c (remote_notice_signals): New.
2098 (remote_start_remote): In non-stop mode, update the remote end on
2099 which signals it can silently pass.
2100 (init_remote_ops): Install remote_notice_signals.
2102 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2104 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
2105 * command.h (error_no_arg): ... here. Remove NORETURN, change
2106 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2107 * defs.h (NORETURN, ATTR_NORETURN): Remove.
2108 (perror_with_name, verror, error, error_stream, vfatal, fatal)
2109 (internal_verror, internal_error, nomem): Remove NORETURN, change
2110 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2111 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
2112 (throw_vfatal, throw_error): Remove NORETURN.
2113 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
2114 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
2115 (throw_error, deprecated_throw_reason): Remove NORETURN, change
2116 ATTR_NORETURN to ATTRIBUTE_NORETURN.
2117 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
2118 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
2120 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
2121 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
2123 * target.c (tcomplain): Likewise.
2124 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
2126 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
2127 (internal_error, perror_with_name, nomem): Remove NORETURN.
2128 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
2131 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2134 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
2135 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
2136 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2137 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
2138 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2139 * complaints.h (complaint, internal_complaint): Likewise.
2140 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
2141 (ATTR_FORMAT): Remove.
2142 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
2143 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
2144 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
2145 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
2146 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
2147 (internal_error, internal_vwarning, internal_warning, warning)
2148 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
2149 * disasm.c (fprintf_disasm): Likewise.
2150 * exceptions.c (throw_it): Likewise.
2151 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
2152 (throw_error): Likewise.
2153 * language.h (type_error, range_error): Likewise.
2154 * linespec.c (cplusplus_error): Likewise.
2155 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
2156 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
2157 * monitor.c (monitor_debug): Likewise.
2158 * parser-defs.h (parser_fprintf): Likewise.
2159 * serial.h (serial_printf): Likewise.
2160 * tui/tui-hooks.c (tui_query_hook): Likewise.
2161 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
2162 (uo_message): Likewise.
2163 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
2164 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
2166 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
2168 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2170 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
2171 (cli_table_header, cli_begin, cli_end, cli_field_int)
2172 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
2173 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
2174 Delete forward declarations.
2175 (cli_ui_out_impl): Move below the callbacks.
2176 (_initialize_cli_out): Delete.
2178 2010-05-02 Pedro Alves <pedro@codesourcery.com>
2180 * README: Use consistent `GDB' and `GDBserver' spellings.
2182 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2184 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
2186 2010-05-01 Pedro Alves <pedro@codesourcery.com>
2188 * infrun.c (prepare_for_detach): In non-stop, context switch to
2189 the thread that got the event before handling the event.
2191 2010-04-30 Tom Tromey <tromey@redhat.com>
2193 * symtab.c (symbol_set_names): Fix typo.
2195 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2197 * python/py-param.c (parm_constants): Avoid ARI warning
2198 by adding ARI comment.
2199 (parmpy_init): Likewise.
2201 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2203 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
2204 and created type for re-use.
2206 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
2208 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
2210 2010-04-29 Doug Evans <dje@google.com>
2212 * ser-base.h (reschedule): Delete prototype.
2213 * ser-base.c (reschedule): Make static.
2215 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2217 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
2218 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
2219 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
2221 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
2224 2010-04-29 Pedro Alves <pedro@codesourcery.com>
2228 * regcache.c (registers_changed): Rename to ...
2229 (registers_changed_ptid): ... this, and only delete register cache
2230 entries matching the ptid filter argument.
2231 (registers_changed): Reimplement on top of registers_changed_ptid.
2232 * regcache.h (registers_changed_ptid): Declare.
2233 * target.c (target_resume): Flush register caches.
2235 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
2236 Tom Tromey <tromey@redhat.com>
2237 Thiago Jung Bauermann <bauerman@br.ibm.com>
2239 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
2240 (SUBDIR_PYTHON_SRCS): Likewise.
2241 (py-parameter.o): New rule.
2242 * python/py-parameter.c: New file.
2243 * python/python-internal.h (gdbpy_initialize_parameter)
2244 (gdbpy_parameter, gdbpy_parameter_value)
2245 (gdbpy_parse_command_name): Declare.
2246 * python/py-cmd.c (parse_command_name): Rename to
2247 gdbpy_parse_command_name.
2248 (gdbpy_parse_command_name): Accept a starting list parameter and
2250 (cmdpy_init): Use gdbpy_parse_command_name.
2251 * python/python.c (parameter_to_python): Rename to
2252 gdbpy_parameter_to_python. Accept enum var_types and value.
2253 (gdbpy_parameter): Use gdbpy_parameter_value.
2254 (_initialize_python): Call gdbpy_initialize_parameters.
2256 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2258 * MAINTAINERS: Add myself for write after approval privileges.
2260 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
2263 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
2264 (COMMON_OBS): Add d-lang.o d-valprint.o.
2265 (HFILES_NO_SRCDIR): Add d-lang.h.
2266 * NEWS: Mention D language support.
2267 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
2268 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
2269 * d-lang.c: New file.
2270 * d-lang.h: New file.
2271 * d-valprint.c: New file.
2272 * defs.h (enum language): Add language_d.
2273 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
2274 * language.c (binop_result_type, integral_type, character_type)
2275 (string_type, boolean_type, structured_type): Add language_d.
2276 * symfile.c (init_filename_language_table): Add language_d.
2277 * symtab.c: Include d-lang.h.
2278 (symbol_init_language_specific, symbol_find_demangled_name)
2279 (symbol_natural_name, lookup_symbol_in_language)
2280 (symbol_demangled_name, symbol_matches_domain): Add language_d.
2282 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2284 * solib-svr4.c (solib_svr4_r_map): Expand function description.
2286 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2288 * symfile.c (init_filename_language_table): Register .dg files
2291 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2293 * gdbtypes.h (struct main_type): Expand comment about target_type
2296 2010-04-27 Pedro Alves <pedro@codesourcery.com>
2297 Tristan Gingold <gingold@adacore.com>
2299 * symfile.c (reread_symbols): Also search for file in libraries.
2302 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2304 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
2305 in terms of configuration.
2307 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2309 * objfiles.c: Include solist.h.
2310 (free_all_objfiles): New variable so. Check stale solist objfiles.
2311 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
2312 and no_shared_libraries.
2314 2010-04-27 Joel Brobecker <brobecker@adacore.com>
2317 * python/py-auto-load.c (source_section_scripts): Remove trailing
2318 new-line in i18n string.
2320 2010-04-26 Doug Evans <dje@google.com>
2322 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
2324 2010-04-26 Tom Tromey <tromey@redhat.com>
2326 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
2329 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2331 Removal of config/i386/nm-i386sol2.h native configuration file.
2332 * config/i386/nm-i386sol2.h: Remove file.
2333 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
2334 * config/i386/sol2-64.mh: Idem.
2335 * config/djgpp/fnchange.lst: Remove reference to that file.
2336 * Makefile.in (HFILES_NO_SRCDIR): Idem.
2338 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
2340 PR breakpoints/11531.
2341 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
2342 macro definition and related comment.
2343 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
2344 (resume): Remove code and comment related to this macro.
2346 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2348 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
2351 2010-04-24 Pedro Alves <pedro@codesourcery.com>
2353 * defs.h: Adjust comment.
2354 * filesystem.h, filesystem.c: New files.
2355 * Makefile.in (SFILES): Add filesystem.c.
2356 (COMMON_OBS): Add filesystem.o.
2357 * solib.c (solib_find): Handle DOS-based filesystems. Handle
2358 different target and host path flavours.
2359 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2360 has_dos_based_file_system on the gdbarch.
2361 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
2362 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
2363 * i386-tdep.c (i386_go32_init_abi): Ditto.
2364 * gdbarch.sh (has_dos_based_file_system): New.
2365 * gdbarch.h, gdbarch.c: Regenerate.
2366 * NEWS: Mention improved support for remote targets with DOS-based
2367 filesystems. Mention new `set/show target-file-system-kind'
2370 2010-04-23 Stan Shebs <stan@codesourcery.com>
2372 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
2374 (struct agent_reqs): Remove.
2375 (ax_reg_mask): Declare.
2376 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
2377 (free_agent_expr): Free reg_mask.
2378 (ax_print): Add scope and register mask info.
2379 (ax_reqs): Remove agent_reqs argument, use agent expression
2380 fields, and move part of register mask computation to...
2381 (ax_reg_mask): New function.
2382 * ax-gdb.c (gen_trace_static_fields): Call it.
2383 (gen_traced_pop): Ditto.
2384 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
2385 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
2386 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
2387 (gen_eval_for_expr): Ditto, and require an rvalue.
2388 (agent_command): Call ax_reqs.
2389 (agent_eval_command): Ditto.
2390 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
2391 (validate_action_line): Ditto.
2392 (collect_symbol): Ditto.
2393 (encode_actions_1): Ditto.
2395 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
2396 Paul Pluzhnikov <ppluzhnikov@google.com>
2397 Jan Kratochvil <jan.kratochvil@redhat.com>
2399 Fix deadlock on looped list of loaded shared objects.
2400 * solib-svr4.c (LM_PREV): New function.
2401 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
2402 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
2403 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
2404 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
2406 2010-04-23 Doug Evans <dje@google.com>
2408 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
2410 * configure: Regenerate.
2411 * main.c: #include "python/python.h".
2412 (captured_main): Defer loading auto-loaded scripts until after
2413 local_gdbinit has been sourced.
2414 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
2415 (load_auto_scripts_for_objfile): New function.
2416 (auto_load_new_objfile): Call it.
2417 * python/python.h (gdbpy_global_auto_load): Declare.
2418 (load_auto_scripts_for_objfile): Declare.
2420 Add support for auto-loading scripts from .debug_gdb_scripts section.
2421 * NEWS: Add entry for .debug_gdb_scripts.
2422 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
2423 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
2424 (py-auto-load.o): New rule.
2425 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
2426 * cli/cli-cmds.h (find_and_open_script): Update prototype.
2427 * python/py-auto-load.c: New file.
2428 * python/python-internal.h: #include <stdio.h>.
2429 (set_python_list, show_python_list): Declare.
2430 (gdbpy_initialize_auto_load): Declare.
2431 (source_python_script_for_objfile): Declare.
2432 * python/python.c: Remove #include of observer.h.
2433 (gdbpy_auto_load): Moved to py-auto-load.c.
2434 (GDBPY_AUTO_FILENAME): Ditto.
2435 (gdbpy_new_objfile): Delete.
2436 (source_python_script_for_objfile): New function.
2437 (set_python_list, show_python_list): Make externally visible.
2438 (_initialize_python): Move "auto-load" command to py-auto-load.c
2439 and observer_attach_new_objfile to py-auto-load.c.
2441 2010-04-23 Jerome Guitton <guitton@adacore.com>
2443 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
2444 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
2445 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
2447 (alpha_heuristic_analyze_probing_loop): New function.
2448 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
2449 and handle cases when a stack probe loop is generated.
2450 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
2451 (alpha_mdebug_max_frame_size_exceeded): New function.
2452 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
2453 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
2454 Return 0 when the maximum debuggable frame size has been exceeded.
2456 2010-04-23 Joel Brobecker <brobecker@adacore.com>
2459 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
2461 2010-04-20 Chris Moller <cmoller@redhat.com>
2465 * symtab.c (rbreak_command): Added code to include a filename
2466 specification in the rbreak argument.
2467 * NEWS: Added a brief description of filename-qualified rbreak.
2469 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2471 Fix crashes on dangling display expressions.
2472 * ada-lang.c (ada_operator_check): New function.
2473 (ada_exp_descriptor): Fill-in the field operator_check.
2474 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
2475 * jv-lang.c (exp_descriptor_java): Likewise.
2476 * m2-lang.c (exp_descriptor_modula2): Likewise.
2477 * scm-lang.c (exp_descriptor_scm): Likewise.
2478 * parse.c (exp_descriptor_standard): Likewise.
2479 (operator_check_standard): New function.
2480 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
2481 * parser-defs.h (struct exp_descriptor): New field operator_check.
2482 (operator_check_standard, exp_uses_objfile): New declarations.
2483 * printcmd.c: Remove the inclusion of solib.h.
2484 (display_uses_solib_p): Remove the function.
2485 (clear_dangling_display_expressions): Call lookup_objfile_from_block
2486 and exp_uses_objfile instead of display_uses_solib_p.
2487 * solist.h (struct so_list) <objfile>: New comment.
2488 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
2489 * symtab.h (lookup_objfile_from_block): New declaration.
2490 (struct general_symbol_info) <obj_section>: Extend the comment.
2492 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2493 Thiago Jung Bauermann <bauerman@br.ibm.com>
2495 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
2496 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
2497 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
2498 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
2499 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
2500 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
2501 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
2502 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
2503 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
2504 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
2505 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
2506 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
2507 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
2508 Define, in case <ptrace.h> doesn't provide it.
2509 (booke_debug_info): New variable.
2510 (max_slots_number): Ditto.
2511 (hw_break_tuple): New struct.
2512 (thread_points): Ditto.
2513 (ppc_threads): New variable.
2514 (PPC_DEBUG_CURRENT_VERSION): New define.
2515 (have_ptrace_new_debug_booke): New function.
2516 (ppc_linux_check_watch_resources): Renamed to ...
2517 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
2518 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
2519 (booke_cmp_hw_point): New function.
2520 (booke_find_thread_points_by_tid): Ditto.
2521 (booke_insert_point): Ditto.
2522 (booke_remove_point): Ditto.
2523 (ppc_linux_insert_hw_breakpoint): Ditto.
2524 (ppc_linux_remove_hw_breakpoint): Ditto.
2525 (get_trigger_type): Ditto.
2526 (ppc_linux_insert_watchpoint): Handle BookE processors.
2527 (ppc_linux_remove_watchpoint): Ditto.
2528 (ppc_linux_new_thread): Ditto.
2529 (ppc_linux_thread_exit): New function..
2530 (ppc_linux_stopped_data_address): Handle BookE processors.
2531 (ppc_linux_watchpoint_addr_within_range): Ditto.
2532 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
2533 to_remove_hw_breakpoint fields of the target operations struct.
2534 Add observe for the thread_exit event.
2536 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2538 * i386-linux-nat.c (regmap): Removed.
2539 (fetch_register): Replace regmap with
2540 i386_linux_gregset_reg_offset.
2541 (store_register): Likewise.
2542 (supply_gregset): Likewise.
2543 (fill_gregset): Likewise.
2545 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
2548 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
2550 2010-04-22 Chris Moller <cmoller@redhat.com>
2552 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2553 method of popping recursion-detection stack with a method based on
2554 obstack_object_size(). (Similar to the PR9167 patch below, but for
2555 the static array obstack rather than the static member obstack.)
2557 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
2559 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
2560 (_initialize_amd64_linux_nat): Replace
2561 amd64_linux_gregset64_reg_offset with
2562 amd64_linux_gregset_reg_offset.
2564 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
2567 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
2569 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2572 * stabsread.c (set_length_in_type_chain): New function.
2573 (read_struct_type): Call set_length_in_type_chain function.
2574 (read_enum_type): Idem.
2576 2010-04-21 Stan Shebs <stan@codesourcery.com>
2577 Nathan Sidwell <nathan@codesourcery.com>
2579 * tracepoint.c (trace_save): Open in binary mode.
2581 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
2583 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
2585 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
2586 builtin_char32 fields.
2587 * printcmd.c (decode_format): Set char size to '\0'
2588 for strings unless explicit size is given.
2589 (print_formatted): Correct calculation of NEXT_ADDRESS
2590 for 16 or 32 bit strings.
2591 (do_examine): Do not force byte size for strings.
2592 Use builtin_char16 and builtin_char32 types to display
2593 16 or 32 bit-wide strings.
2594 (x_command): Set LAST_SIZE to 'b' for string type.
2596 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
2599 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
2602 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
2603 there is no .reg-xstate section.
2604 (i386_linux_core_read_description): Check XCR0 first.
2606 2010-04-21 Mike Frysinger <vapier@gentoo.org>
2608 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
2611 2010-04-21 Chris Moller <cmoller@redhat.com>
2614 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
2615 method of popping recursion-detection stack with a method based on
2616 obstack_object_size().
2618 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2621 * p-valprint.c (pascal_val_print): Fix default printing of integer
2624 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2626 Fix compilation warning on gcc-4.1.2.
2627 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
2628 local variable`pc' to zero.
2630 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2632 Implement thread support with core files on alpha-tru64.
2633 * dec-thread.c (dec_thread_find_new_threads): New function,
2634 extracted from resync_thread_list.
2635 (resync_thread_list): Add OPS parameter. Replace extracted-out
2636 code by call to dec_thread_find_new_threads.
2637 (dec_thread_wait): Update call to resync_thread_list.
2638 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
2640 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2642 * ada-lang.c (value_pointer): New function.
2643 (make_array_descriptor): Call value_pointer to convert addresses to
2646 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2648 * rs6000-aix-tdep.c: #include exceptions.h.
2649 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
2650 while reading the memory at ADDR, then ADDR cannot be a function
2653 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2655 * ada-typeprint.c (ada_print_typedef): New function.
2656 * ada-lang.h (ada_print_typedef): Add declaration.
2657 * ada-lang.c (ada_language_defn): set la_print_typdef field
2658 to ada_print_typedef.
2660 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2662 * procfs.c (procfs_address_to_host_pointer): Only define when used.
2664 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2666 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
2667 (iterate_over_mappings): Adjust function profile. Add declaration.
2668 (insert_dbx_link_bpt_in_region, info_mappings_callback):
2671 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2673 * procfs.c (solib_mappings_callback): Move function up to avoid
2676 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2678 * procfs.c (find_signalled_thread, find_stop_signal): Move
2679 these functions down to define them only when used.
2681 2010-04-20 Joel Brobecker <brobecker@adacore.com>
2683 * valprint.c (common_val_print): Fix the value before extracting
2685 * ada-lang.c (ada_to_fixed_value): Make this function extern.
2686 * ada-lang.h (ada_to_fixed_value): New function declaration.
2687 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
2688 to avoid code duplication and fix a bug in the handling of
2689 fixed types contents.
2691 2010-04-20 Tom Tromey <tromey@redhat.com>
2693 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
2694 (read_partial_die): Likewise.
2695 (dwarf_attr_name): Likewise.
2697 2010-04-20 Chris Moller <cmoller@redhat.com>
2701 * cp-valprint.c (global): Adding new static array recursion
2703 (cp_print_value_fields, cp_print_static_field): Added new static
2704 array recursion detection code.
2706 2010-04-20 Mark Kettenis <kettenis@gnu.org>
2708 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
2709 general-purpose register set should be 68 instead of 144.
2710 (i386_linux_sse_regset_sections): Likewise.
2711 (i386_linux_avx_regset_sections): Likewise.
2713 2010-04-20 Stan Shebs <stan@codesourcery.com>
2714 Nathan Sidwell <nathan@codesourcery.com>
2716 * dwarf2loc.c (struct axs_var_loc): New struct.
2717 (dwarf2_tracepoint_var_loc): New function.
2718 (dwarf2_tracepoint_var_access): New function.
2719 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
2721 (locexpr_describe_location_piece): New function.
2722 (locexpr_describe_location_1): New function.
2723 (locexpr_describe_location): Call it, update signature.
2724 (loclist_describe_location): Rewrite to loop over locations,
2726 * symtab.h (struct symbol_computed_ops): Add address to
2727 describe_location arguments, return void.
2728 * printcmd.c (address_info): Get context PC, pass to computed
2729 location description.
2730 * tracepoint.c (scope_info): Ditto.
2731 * ax-gdb.c (trace_kludge): Export.
2733 2010-04-20 Tom Tromey <tromey@redhat.com>
2735 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
2736 (struct dwarf2_cie) <segment_size>: New field.
2737 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
2738 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
2740 (read_attribute_value): Handle DW_FORM_flag_present,
2741 DW_FORM_sec_offset, DW_FORM_exprloc.
2742 (dump_die_shallow): Likewise.
2743 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
2744 (dwarf2_const_value): Handle DW_FORM_exprloc.
2745 (attr_form_is_block): Likewise.
2746 (struct line_header) <maximum_ops_per_instruction>: New field.
2747 (dwarf_decode_line_header): Set new field.
2748 (dwarf_decode_lines): Handle new field.
2750 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2752 * f-exp.y: Add new production to recognize the `logical*8' type.
2753 (LOGICAL_S8_KEYWORD): New token.
2754 * f-lang.c (enum f_primitive_types)
2755 <f_primitive_type_logical_s8>: New field.
2756 (f_language_arch_info): Handling `logical*8' type.
2757 (build_fortran_types): Building `logical*8' type.
2758 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
2760 2010-04-19 Doug Evans <dje@google.com>
2762 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
2763 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
2764 (pipe_close): Ditto.
2766 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2768 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
2770 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2772 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
2773 type to void function.
2775 2010-04-19 Stan Shebs <stan@codesourcery.com>
2776 Vladimir Prus <vladimir@codesourcery.com>
2778 * tracepoint.c (tfind_1): Add missing newline, report exit from
2780 * target.c (update_current_target): Make default
2781 to_trace_find return -1.
2783 2010-04-19 Mike Frysinger <vapier@gentoo.org>
2785 * objc-lang.c (find_methods): Move symname check up.
2787 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2789 * ada-lang.c (print_recreate_exception)
2790 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
2791 not "catch unhandled".
2793 2010-04-19 Pedro Alves <pedro@codesourcery.com>
2795 PR breakpoints/8554.
2797 Implement `save-breakpoints'.
2799 * breakpoint.c (save_cmdlist): New.
2800 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
2802 (print_recreate_catch_fork): New.
2803 (catch_fork_breakpoint_ops): Install it.
2804 (print_recreate_catch_vfork): New.
2805 (catch_vfork_breakpoint_ops): Install it.
2806 (print_recreate_catch_syscall): New.
2807 (catch_syscall_breakpoint_ops): Install it.
2808 (print_recreate_catch_exec): New.
2809 (catch_exec_breakpoint_ops): Install it.
2810 (print_recreate_exception_catchpoint): New.
2811 (gnu_v3_exception_catchpoint_ops): Install it.
2812 (save_breakpoints): New, based on tracepoint_save_command, but
2813 handle all breakpoint types.
2814 (save_breakpoints_command): New.
2815 (tracepoint_save_command): Rename to...
2816 (save_tracepoints_command): ... this, and reimplement using
2818 (save_command): New.
2819 (_initialize_breakpoints): Install the "save" command prefix.
2820 Install the "save breakpoints" command. Make "save-tracepoints" a
2821 deprecated alias for "save tracepoints".
2822 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
2823 * ada-lang.c (print_recreate_exception): New.
2824 (print_recreate_catch_exception): New.
2825 (catch_exception_breakpoint_ops): Install it.
2826 (print_recreate_catch_exception_unhandled): New.
2827 (catch_exception_unhandled_breakpoint_ops): Install it.
2828 (print_recreate_catch_assert): New.
2829 (catch_assert_breakpoint_ops): Install it.
2831 * NEWS: Mention the new `save breakpoints' command. Mention the
2832 new `save tracepoints' alias and that `save-tracepoints' is now
2835 2010-04-18 Pedro Alves <pedro@codesourcery.com>
2839 * tui/tui-out.c: Include cli-out.h.
2840 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2841 (tui_begin, tui_end, tui_field_int, tui_field_skip)
2842 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
2843 (tui_message, tui_wrap_hint, tui_flush): Delete forward
2845 (struct ui_out_data): Rename to...
2846 (struct tui_ui_out_data): ... this. Remove `stream' and
2847 `suppress_output' fields, and inherit cli_ui_out_data.
2848 (tui_out_data): New typedef.
2849 (tui_ui_out_impl): Don't initialize fields staticaly.
2850 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
2851 (tui_begin, tui_end): Delete.
2852 (tui_field_int): Adjust to delegate most work to the base type.
2853 (tui_field_skip): Delete.
2854 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
2855 delegate most work to the base type.
2856 (tui_spaces): Delete.
2857 (tui_text): Adjust to delegate most work to the base type.
2858 (tui_message): Delete.
2859 (tui_wrap_hint): Delete.
2860 (tui_flush): Delete.
2861 (out_field_fmt): Delete.
2862 (field_separator): Delete.
2863 (tui_out_new): Adjust to initialize the base type.
2864 (_initialize_tui_out): Initialize tui_ui_out_impl.
2865 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
2867 (cli_out_data): Adjust.
2868 (cli_ui_out_impl): Make extern.
2869 (cli_table_header, cli_field_int, cli_field_skip): Use
2870 uo_field_string instead of cli_field_string.
2871 (cli_redirect): Adjust to use cli_out_data.
2872 (cli_out_data_ctor): New.
2873 (cli_out_new): Use it.
2874 * cli-out.h (struct ui_file): Remove forward declaration.
2875 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
2876 (cli_ui_out_impl): Declare.
2877 (cli_out_data_ctor): Declare.
2878 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
2879 (uo_field_string): No longer static.
2880 (ui_out_data): Change return type to void pointer.
2881 (ui_out_new): Change `data' parameter type to void pointer.
2882 * ui-out.h (struct ui_out_data): Don't forward declare.
2883 (ui_out_data): Change return type to void pointer.
2884 (ui_out_new): Change `data' parameter type to void pointer.
2885 (uo_field_string): Declare.
2887 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2889 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
2890 instead of always false.
2892 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
2895 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
2898 2010-04-17 Pedro Alves <pedro@codesourcery.com>
2900 * breakpoint.c (watchpoints_triggered): Use
2901 is_hardware_watchpoint.
2902 (watchpoints_triggered): Ditto.
2903 (bpstat_check_location): Use is_watchpoint and
2904 is_hardware_watchpoint.
2905 (bpstat_check_watchpoint): Use is_watchpoint and
2906 is_hardware_watchpoint.
2907 (bpstat_stop_status): Fix comment.
2908 (user_settable_breakpoint): Use is_watchpoint.
2909 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
2910 (disable_watchpoints_before_interactive_call_start): Use
2912 (enable_watchpoints_after_interactive_call_stop): Use
2914 (clear_command): Use is_watchpoint.
2915 (do_enable_breakpoint): Use is_watchpoint.
2917 2010-04-16 Mike Frysinger <vapier@gentoo.org>
2919 * solib-frv.c (enable_break1_done): Delete.
2920 (enable_break2): Do not check enable_break1_done. Move the
2921 enable_break2_done setting and call to
2922 remove_solib_event_breakpoints() to the end. Return without
2923 warning when the contents of _dl_debug_addr are 0.
2924 (enable_break): Do not set enable_break1_done.
2925 (frv_clear_solib): Likewise.
2927 2010-04-16 Kevin Buettner <kevinb@redhat.com>
2929 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
2930 instead of an error if no PLT entry is found. Return a
2931 potentially useful result.
2932 (m32c_m16c_pointer_to_address): Add code to search for function
2933 address when no .plt entry is found.
2935 2010-04-16 Stan Shebs <stan@codesourcery.com>
2937 * tracepoint.c (trace_variable_command): Run a cleanup.
2939 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2941 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
2943 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
2945 Support for Windows OS Thread Information Block.
2946 * NEWS: Document new feature.
2947 * remote.c (PACKET_qGetTIBAddr): New enum element.
2948 (remote_get_tib_address): New function.
2949 (init_remote_ops): Set to_get_tib_address field
2950 to remote_get_tib_address.
2951 (_initialize_remote): Add add_packet_config_cmd
2952 for PACKET_qGetTIBAddr.
2953 * target.c (update_current_target): Set default value for
2954 new to_get_tib_address field.
2955 * target.h (target_ops): New field to_get_tib_address.
2956 (target_get_tib_address): New macro.
2957 * windows-nat.c (thread_info): Add thread_local_base field.
2958 (windows_add_thread): Add tlb argument of type 'void *'.
2959 (fake_create_process): Adapt windows_add_thread call.
2960 (get_windows_debug_event): Idem.
2961 (windows_get_tib_address): New function.
2962 (init_windows_ops): Set to_get_tib_address field
2963 to remote_get_tib_address.
2964 (_initialize_windows_nat): Replace info_w32_cmdlist
2965 initialization by a call to init_w32_command_list.
2966 (info_w32_command, info_w32_cmdlist): Removed from here...
2967 to windows-tdep.c file.
2968 * windows-tdep.h (info_w32_cmdlist): Declare.
2969 (init_w32_command_list): New external function
2971 * windows-tdep.c: Add several headers.
2972 (info_w32_cmdlist): to here, made global.
2973 (thread_information_32): New struct.
2974 (thread_information_64): New struct.
2975 (TIB_NAME): New char array.
2976 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
2977 (maint_display_all_tib): New static variable.
2978 (windows_get_tlb_type): New function.
2979 (tlb_value_read, tlb_value_write): New functions.
2980 (tlb_value_funcs): New static struct.
2981 (tlb_make_value): New function.
2982 (display_one_tib): New function.
2983 (display_tib): New function.
2984 (show_maint_show_all_tib):New function.
2985 (info_w32_command): Moved from windows-nat.c.
2986 (init_w32_command_list): New function.
2987 (_initialize_windows_tdep): New function.
2988 New "maint set/show show-all-tib" command
2989 New "$_tlb" internal variable.
2991 2010-04-16 Joel Brobecker <brobecker@adacore.com>
2993 * tui/tui-regs.c (tui_display_register): Add comment about
2995 * tui/tui-stack.c (tui_show_locator_content): Ditto.
2997 2010-04-15 Stan Shebs <stan@codesourcery.com>
2999 * frame.c: Include tracepoint.h.
3000 (get_current_frame): Allow a trace frame to be an alternate source
3001 of stack frame data.
3002 * tracepoint.c (tfind_1): Don't try to get current stack frame if
3005 2010-04-15 Pedro Alves <pedro@codesourcery.com>
3007 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
3009 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
3011 2010-04-15 Doug Evans <dje@google.com>
3013 * NEWS: Add entry for python program space support.
3014 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
3015 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
3016 (py-progspace.o): New rule.
3017 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
3019 (find_pretty_printer_from_progspace): New function.
3020 (find_pretty_printer_from_gdb): New function.
3021 (find_pretty_printer): Rewrite.
3022 * python/py-progspace.c: New file.
3023 * python/python-internal.h (program_space): Add forward decl.
3024 (pspace_to_pspace_object, pspy_get_printers): Declare.
3025 (gdbpy_initialize_pspace): Declare.
3026 * python/python.c: #include "progspace.h".
3027 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
3028 (_initialize_python): Call gdbpy_initialize_pspace.
3029 (GdbMethods): Add current_progspace, progspaces.
3031 Add -s option to source command.
3032 * NEWS: Document new option.
3033 * cli/cli-cmds.c (find_and_open_script): Add function comment.
3034 Delete from_tty and cleanupp args. Split filep arg into file and
3035 full_pathp. New arg search_path.
3036 (source_script_from_stream): New function.
3037 (source_script_with_search): New function.
3038 (source_script): Rewrite.
3039 (source_command): Parse "-s" option.
3040 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
3041 * python/python.c (source_python_script): Make file arg a const char *.
3042 Don't call fclose, leave for caller.
3043 * python/python.h (source_python_script): Update.
3045 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3046 Pedro Alves <pedro@codesourcery.com>
3048 Avoid rereading shared libraries that haven't changed.
3050 * solib.c (free_so_symbols): New function, from ...
3051 (free_so): ... here. Call it.
3052 (solib_read_symbols): Don't warn here if symbols have already been
3054 (solib_add): Warn here instead, if a pattern was specified.
3055 (reload_shared_libraries_1): New.
3056 (reload_shared_libraries): Rewrite to not fetch the library list.
3058 2010-04-14 Doug Evans <dje@google.com>
3060 * source.c (openp): Strip DOS drive letter if present before
3061 concatenating string to search path.
3063 2010-04-14 Pedro Alves <pedro@codesourcery.com>
3065 * objfiles.h (gdb_bfd_close_or_warn): Declare.
3066 * objfiles.c (gdb_bfd_close_or_warn): New.
3067 * corelow.c: Include objfiles.h
3068 (core_close): Use gdb_bfd_close_or_warn.
3069 * elfread.c (build_id_verify): Ditto.
3070 * exec.c (exec_close, exec_close_1): Ditto.
3072 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
3073 Pedro Alves <pedro@codesourcery.com>
3075 Group errors for many missing shared libraries.
3077 * solist.h (struct so_list): Remove from_tty.
3078 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
3079 (solib_map_sections): Take so_list argument. Return 0 if we
3080 failed to open a BFD. Add target sections here.
3081 (symbol_add_stub): Delete.
3082 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
3083 not from_tty copied from the so_list. Don't warn a second time
3084 for a missing library.
3085 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
3086 add to the section table here. Print out a single warning for all
3088 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
3091 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3093 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
3094 error/warning messages. Capitalize and use complete sentences.
3095 (blpy_block_syms_iternext): Likewise.
3096 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
3097 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
3098 (frame_info_to_frame_object, frapy_read_var)
3099 (gdbpy_frame_stop_reason_string): Likewise.
3100 * python/py-lazy-string.c (stpy_convert_to_value)
3101 (gdbpy_create_lazy_string_object): Likewise.
3102 * python/py-objfile.c (objfpy_set_printers): Likewise.
3103 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
3104 * python/python.c (parameter_to_python): Likewise.
3105 * python/py-type.c (typy_range, typy_target): Likewise.
3106 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
3107 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
3110 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
3114 * python/py-prettyprint.c (pretty_print_one_value): Test for
3116 (print_string_repr): Test for Py_None. Set flags accordingly.
3117 Return value depending on return type.
3118 (print_children): Take a value indicating whether data was printed
3119 before this function was called. Alter output accordingly.
3120 (apply_val_pretty_printer): Capture return value from
3121 print_string_repr and pass to print_children.
3123 2010-04-13 Mark Kettenis <kettenis@gnu.org>
3126 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
3127 register note sections.
3128 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3130 (i386_linux_init_abi): Install list of supported register note
3131 sections that matches the target description.
3133 2010-04-13 Pedro Alves <pedro@codesourcery.com>
3135 * remote.c (remote_get_noisy_reply): Don't error out on empty
3137 (remote_start_remote): Update and merge tracepoints and trace
3138 state variables as long as the target supports tracepoints.
3139 (remote_trace_init): Fix prototype.
3140 (remote_download_trace_state_variable): Validate reply.
3141 (remote_trace_set_readonly_regions): Fix prototype.
3142 (remote_trace_start): Fix prototype. Check for empty reply.
3143 (remote_get_trace_status): Small cleanup.
3144 (remote_trace_stop): Fix prototype. Check for empty reply.
3145 (remote_trace_find): Check for empty reply.
3146 (remote_save_trace_data): Validate reply.
3147 (remote_set_disconnected_tracing): Check for empty reply, and
3149 (remote_set_circular_trace_buffer): Ditto.
3151 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
3153 Suppress unused value warning during compilation.
3154 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
3156 * tui/tui-stack.c (tui_show_locator_content): Likewise.
3158 2010-04-12 Stan Shebs <stan@codesourcery.com>
3160 * tracepoint.c (tfile_xfer_partial): Check read result.
3162 2010-04-12 Mike Frysinger <vapier@gentoo.org>
3164 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
3165 * remote-sim.c (gdbsim_files_info): Likewise.
3167 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3169 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
3170 * arm-linux-nat.c (arm_linux_vfp_register_count): New
3172 (fetch_vfp_registers): New function to fetch VFP registers.
3173 (store_vfp_registers): New function to store VFP registers.
3174 (arm_linux_fetch_inferior_registers): Add support for VFP
3176 (arm_linux_store_inferior_registers): Likewise.
3177 (arm_linux_read_description): Likewise.
3178 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
3181 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
3183 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
3185 (amd64_collect_xstateregset): Likewise.
3187 2010-04-09 Stan Shebs <stan@codesourcery.com>
3189 * tracepoint.c (trace_status_mi): Report frames created.
3191 * tracepoint.c (trace_dump_command): Include default-collect
3194 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
3196 * symtab.c (find_function_start_sal): Never return SAL pointing
3197 before function start address, even if line info is missing.
3199 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3201 * NEWS: Mention tracepoints support.
3203 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3205 * tracepoint.c (trace_status_mi): Report disconnected tracing and
3206 circular trace buffer statuses.
3208 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3210 * config/djgpp/fnchange.lst: Fix typo in translations for
3211 symbol-without-target_section.exp and symbol-without-target_section.c.
3213 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3215 * breakpoint.c (condition_command): Pass condition expression to
3216 set_breakpoint_condition stripped from breakpoint number.
3218 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
3219 Thiago Jung Bauermann <bauerman@br.ibm.com>
3220 Tom Tromey <tromey@redhat.com>
3222 * breakpoint.c (condition_command): Simplify. Move condition
3224 (set_breakpoint_condition): ... here. New function.
3225 * breakpoint.h (set_breakpoint_condition): Declare.
3226 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
3227 (SUBDIR_PYTHON_SRCS): Likewise.
3228 (py-breakpoint.o): New rule.
3229 * python/py-breakpoint.c: New file.
3230 * python/python-internal.h (gdbpy_breakpoints)
3231 (gdbpy_initialize_breakpoints): Declare.
3232 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
3234 2010-04-09 Pedro Alves <pedro@codesourcery.com>
3236 * regformats/regdat.sh: Include server.h. Don't include
3239 2010-04-08 Stan Shebs <stan@codesourcery.com>
3240 Pedro Alves <pedro@codesourcery.com>
3242 * tracepoint.h (struct trace_status): New fields disconnected_tracing
3243 and circular_buffer.
3244 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
3245 * tracepoint.c (trace_status_command): Display target's status for
3246 disconnected tracing and circular buffer.
3247 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
3248 query for non-disconnected-tracing case, remove the stop_tracing
3250 (tfile_open): Clear disconnected and circular buffer status.
3251 (trace_save): Save disconnected and circular buffer status.
3252 (parse_trace_status): Parse disconnected and circular buffer status,
3253 also recognize disconnected as a stop reason.
3254 * remote.c (remote_set_disconnected_tracing): Only set
3255 QTDisconnected if the remote end supports disconnected tracing.
3256 Warn otherwise, if trying to enable disconnected tracing.
3257 * infcmd.c (detach_command): Update disconnect_tracing call.
3258 * cli/cli-cmds.c (quit_command): Ditto.
3260 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3262 * i387-tdep.c (i387_collect_xsave): Replace abort with
3265 2010-04-08 Stan Shebs <stan@codesourcery.com>
3267 * breakpoint.c (default_collect_info): New function.
3268 (breakpoints_info): Call it.
3269 (maintenance_info_breakpoints): Ditto.
3270 (tracepoints_info): Ditto.
3272 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3274 * i387-tdep.c (i387_collect_xsave): Re-indent.
3276 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
3278 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
3279 if HAVE_PTRACE_GETFPXREGS is defined.
3280 (i386_linux_read_description): Set have_ptrace_getfpxregs and
3281 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
3283 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
3284 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
3285 if .reg-xfp section doesn't exist.
3286 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
3288 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
3290 * i386-tdep.c: Include "features/i386/i386-mmx.c".
3291 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
3292 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
3293 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
3294 (i386_gdbarch_init): Update comments.
3295 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
3297 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
3299 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
3301 * features/Makefile (i386/i386-mmx-expedite): New.
3302 (i386/i386-mmx-linux-expedite): Likewise.
3303 ($(outdir)/i386/i386-mmx.dat): Likewise.
3304 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
3306 * features/i386/i386-mmx-linux.c: New.
3307 * features/i386/i386-mmx-linux.xml: Likewise.
3308 * features/i386/i386-mmx.c: Likewise.
3309 * features/i386/i386-mmx.xml: Likewise.
3310 * regformats/i386/i386-mmx-linux.dat: Likewise.
3311 * regformats/i386/i386-mmx.dat: Likewise.
3313 * features/Makefile (WHICH): Add i386/i386-mmx and
3314 i386/i386-mmx-linux.
3316 2010-04-08 Doug Evans <dje@google.com>
3318 * source.c (openp): Skip $cdir in PATH.
3320 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
3323 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3325 (gdbpy_create_lazy_string_object): Allow strings with a NULL
3326 address and a zero length.
3328 2010-04-08 Hui Zhu <teawater@gmail.com>
3330 * i386-tdep.c (i386_process_record): Add support for insn
3333 2010-04-07 Doug Evans <dje@google.com>
3335 * python/python.c (source_python_script): Use ensure_python_env
3336 to prepare environment for script.
3338 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3340 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
3341 <sys/uio.h> and "i386-xstate.h".
3342 (PTRACE_GETREGSET): New.
3343 (PTRACE_SETREGSET): Likewise.
3344 (have_ptrace_getregset): Likewise.
3345 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
3347 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
3349 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
3350 (amd64_linux_store_inferior_registers): Likewise.
3351 (amd64_linux_read_description): Check and enable AVX target
3354 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
3355 and "features/i386/amd64-avx-linux.c".
3356 (amd64_linux_regset_sections): New.
3357 (amd64_linux_core_read_description): Check and enable AVX
3359 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
3360 set_gdbarch_core_regset_sections.
3361 (_initialize_amd64_linux_tdep): Call
3362 initialize_tdesc_amd64_avx_linux.
3364 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
3365 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
3366 (tdesc_amd64_avx_linux): New.
3367 (amd64_linux_update_xstateregset): Likewise.
3369 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
3370 (amd64_ymm_names): New.
3371 (amd64_ymmh_names): Likewise.
3372 (amd64_register_name): Likewise.
3373 (amd64_supply_xstateregset): Likewise.
3374 (amd64_collect_xstateregset): Likewise.
3375 (amd64_supply_xsave): Likewise.
3376 (amd64_collect_xsave): Likewise.
3377 (AMD64_NUM_REGS): Removed.
3378 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
3379 %xmmN if AVX is available.
3380 (amd64_pseudo_register_name): Support pseudo YMM registers.
3381 (amd64_regset_from_core_section): Support .reg-xstate section.
3382 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
3383 and ymm0h_regnum. Call set_gdbarch_register_name.
3384 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
3386 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
3387 AMD64_YMM15H_REGNUM.
3388 (AMD64_NUM_REGS): New.
3389 (amd64_supply_xsave): Likewise.
3390 (amd64_collect_xsave): Likewise.
3391 (amd64_register_name): Removed.
3392 (amd64_register_type): Likewise.
3394 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3396 * i387-tdep.c: Include "i386-xstate.h".
3397 (XSAVE_XSTATE_BV_ADDR): New.
3398 (xsave_avxh_offset): Likewise.
3399 (XSAVE_AVXH_ADDR): Likewise.
3400 (i387_supply_xsave): Likewise.
3401 (i387_collect_xsave): Likewise.
3403 * i387-tdep.h (I387_NUM_YMM_REGS): New.
3404 (I387_YMM0H_REGNUM): Likewise.
3405 (I387_YMMENDH_REGNUM): Likewise.
3406 (i387_supply_xsave): Likewise.
3407 (i387_collect_xsave): Likewise.
3409 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3411 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
3412 <sys/uio.h> and "i386-xstate.h".
3413 (PTRACE_GETREGSET): New.
3414 (PTRACE_SETREGSET): Likewise.
3415 (fetch_xstateregs): Likewise.
3416 (store_xstateregs): Likewise.
3417 (GETXSTATEREGS_SUPPLIES): Likewise.
3418 (regmap): Include 8 upper YMM registers.
3419 (i386_linux_fetch_inferior_registers): Support XSAVE extended
3421 (i386_linux_store_inferior_registers): Likewise.
3422 (i386_linux_read_description): Check and enable AVX target
3425 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
3426 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
3427 (i386_linux_regset_sections): Add ".reg-xstate".
3428 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
3429 (i386_linux_core_read_xcr0): New.
3430 (i386_linux_core_read_description): Check and enable AVX target
3432 (i386_linux_init_abi): Set xsave_xcr0_offset.
3433 (_initialize_i386_linux_tdep): Call
3434 initialize_tdesc_i386_avx_linux.
3436 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
3437 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
3438 (i386_linux_core_read_xcr0): New.
3439 (tdesc_i386_avx_linux): Likewise.
3440 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
3442 * i386-tdep.c: Include "i386-xstate.h" and
3443 "features/i386/i386-avx.c".
3444 (i386_ymm_names): New.
3445 (i386_ymmh_names): Likewise.
3446 (i386_ymmh_regnum_p): Likewise.
3447 (i386_ymm_regnum_p): Likewise.
3448 (i386_xmm_regnum_p): Likewise.
3449 (i386_register_name): Likewise.
3450 (i386_ymm_type): Likewise.
3451 (i386_supply_xstateregset): Likewise.
3452 (i386_collect_xstateregset): Likewise.
3453 (i386_sse_regnum_p): Removed.
3454 (i386_pseudo_register_name): Support pseudo YMM registers.
3455 (i386_pseudo_register_type): Likewise.
3456 (i386_pseudo_register_read): Likewise.
3457 (i386_pseudo_register_write): Likewise.
3458 (i386_dbx_reg_to_regnum): Return %ymmN register number for
3459 %xmmN if AVX is available.
3460 (i386_regset_from_core_section): Support .reg-xstate section.
3461 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
3462 (i386_process_record): Replace i386_sse_regnum_p with
3464 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
3465 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
3466 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
3467 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
3468 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
3469 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
3471 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
3473 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
3474 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
3476 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
3477 (I386_AVX_NUM_REGS): New.
3478 (i386_xmm_regnum_p): Likewise.
3479 (i386_ymm_regnum_p): Likewise.
3480 (i386_ymmh_regnum_p): Likewise.
3482 * common/i386-xstate.h: New.
3484 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
3486 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
3488 * features/Makefile (WHICH): Add i386/i386-avx,
3489 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
3490 (i386/i386-avx-expedite): New.
3491 (i386/i386-avx-linux-expedite): Likewise.
3492 (i386/x86-64-avx-expedite):Likewise.
3493 (i386/x86-64-avx-linux-expedite): Likewise.
3494 ($(outdir)/i386/i386-avx.dat): New dependency.
3495 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
3496 ($(outdir)/i386/x86-avx-64.dat): Likewise.
3497 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
3499 * features/i386/32bit-avx.xml: New.
3500 * features/i386/64bit-avx.xml: Likewise.
3501 * features/i386/i386-avx-linux.c: Likewise.
3502 * features/i386/i386-avx-linux.xml: Likewise.
3503 * features/i386/i386-avx.c: Likewise.
3504 * features/i386/i386-avx.xml: Likewise.
3505 * features/i386/x86-64-avx-linux.c: Likewise.
3506 * features/i386/x86-64-avx-linux.xml: Likewise.
3507 * features/i386/x86-64-avx.c: Likewise.
3508 * features/i386/x86-64-avx.xml: Likewise.
3509 * regformats/i386/i386-avx-linux.dat: Likewise.
3510 * regformats/i386/i386-avx.dat: Likewise.
3511 * regformats/i386/x86-64-avx-linux.dat: Likewise.
3512 * regformats/i386/x86-64-avx.dat: Likewise.
3514 2010-04-07 Doug Evans <dje@google.com>
3516 * top.c (source_file_name): Make const char *.
3517 * top.h (source_file_name): Update.
3518 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
3520 (script_from_file): Change `file' arg to const char *.
3521 * cli/cli-script.h (script_from_file): Update.
3523 2010-04-06 Doug Evans <dje@google.com>
3525 * cli/cli-cmds.c (source_command): Run cleanups.
3527 2010-04-06 Stan Shebs <stan@codesourcery.com>
3529 * defs.h (char_ptr): Move typedef here from...
3530 * ada-lang.c (char_ptr): Remove.
3531 * charset.c (char_ptr): Remove.
3532 * tracepoint.h (struct uploaded_string): Remove.
3533 (struct uploaded_tp): Use vectors for string arrays.
3534 * tracepoint.c (trace_save): Use vectors of actions.
3535 (parse_tracepoint_definition): Ditto.
3536 (get_uploaded_tp): Clear vectors.
3537 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
3538 (next_cmd): Change to an int.
3539 (read_next_cmd): Use vector of command strings.
3541 2010-04-06 Doug Evans <dje@google.com>
3543 * top.h (source_script, cd_command): Delete.
3544 * main.c: #include "cli/cli-cmds.h"
3546 2010-04-06 Kevin Buettner <kevinb@redhat.com>
3548 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
3549 type in bytes, not bits.
3551 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3553 * stabsread.c (define_symbol): Add support for char
3554 and string constants.
3556 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
3558 Remove remaining "%ll" uses.
3559 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
3561 * rs6000-nat.c (rs6000_ptrace64): Idem.
3562 * solib-pa64.c (pa64_current_sos): Idem.
3563 * solib-spu.c (spu_current_sos): Idem.
3564 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
3566 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
3568 * sh64-tdep.c (sh64_show_media_regs): Idem.
3570 2010-04-05 Stan Shebs <stan@codesourcery.com>
3572 * tracepoint.c: Include gdbcore.h.
3573 (tfile_xfer_partial): Return partial results, also try reading
3575 (tfile_has_all_memory): New function.
3576 (init_tfile_ops): Use it.
3578 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
3581 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
3582 the changes in data-directory.
3583 (init_sysinfo): Reload the syscall XML file if the data-directory
3586 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3589 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
3591 2010-04-04 Stan Shebs <stan@codesourcery.com>
3592 Nathan Sidwell <nathan@codesourcery.com>
3594 * breakpoint.c (breakpoint_1): Add filter argument, return number of
3595 breakpoints printed.
3596 (is_hardware_watchpoint): Make argument const.
3597 (is_watchpoint): Ditto.
3598 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
3600 (breakpoints_info): Pass NULL to breakpoint_1.
3601 (maintenance_info_breakpoints): Ditto.
3602 (watchpoints_info): New function.
3603 (tracepoints_info): Use breakpoint_1 filter.
3604 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
3605 (_initialize_breakpoint): Make "info watchpoints" its own command.
3606 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
3607 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
3609 2010-04-04 Stan Shebs <stan@codesourcery.com>
3611 * tracepoint.c (tfile_fetch_registers): Add fallback case.
3613 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3615 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
3616 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
3618 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3620 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
3621 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
3623 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3625 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
3628 2010-04-02 Hui Zhu <teawater@gmail.com>
3630 * i386-tdep.c (OT_DQUAD): New enum.
3631 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
3632 SSE3, SSSE3 and SSE4.
3634 2010-04-02 Hui Zhu <teawater@gmail.com>
3636 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
3639 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3641 * tracepoint.c (trace_dump_actions): New, factored out from
3642 trace_dump_command, and adjusted to recurse into while-stepping's
3644 (trace_dump_command): Use it.
3646 2010-04-02 Pedro Alves <pedro@codesourcery.com>
3648 * breakpoint.h (struct counted_command_line): Moved definition to
3649 breakpoint.c, and forward declare.
3650 (breakpoint_commands): Declare.
3651 * breakpoint.c (struct counted_command_line): Moved here.
3652 (breakpoint_commands): New.
3653 * tracepoint.c (encode_actions): Use breakpoint_commands.
3654 * remote.c (remote_download_tracepoint): Ditto.
3656 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3658 * remote.c (remote_parse_stop_reply): Use hex_string instead
3659 of phex_nz for error.
3661 2010-04-01 Stan Shebs <stan@codesourcery.com>
3662 Nathan Sidwell <nathan@codesourcery.com>
3664 * tracepoint.h (enum actionline_type): Remove.
3665 (validate_actionline): Change return to void.
3666 * tracepoint.c (report_agent_reqs_errors): New function.
3667 (validate_actionline): Call it, change return to void, report errors
3669 (collect_symbol): Call report_agent_reqs_errors.
3670 (encode_actions_1): Ditto.
3671 (encode_actions): Don't expect a result from validate_actionline.
3673 2010-04-01 Stan Shebs <stan@codesourcery.com>
3675 * tracepoint.c (trace_start_command): Confirm if trace is running.
3676 (trace_stop_command): Error if trace not running.
3678 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
3680 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
3681 (AMD64_NUM_LOWER_BYTE_REGS): New.
3682 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
3683 (amd64_pseudo_register_write): Likewise.
3684 (amd64_init_abi): Set num_byte_regs to 20.
3686 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3688 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
3689 (prev_breakpoint_count): New.
3690 (set_breakpoint_count): Adjust.
3691 (rbreak_start_breakpoint_count): New.
3692 (start_rbreak_breakpoints): Adjust.
3693 (end_rbreak_breakpoints): Adjust.
3694 (struct commands_info) <arg>: New field.
3695 (do_map_commands_command): Tweak output to include breakpoint spec
3697 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
3698 ARG was empty on entry. Set INFO's arg.
3699 (create_breakpoint): Adjust.
3701 * NEWS: Clarify `commands' changes.
3703 2010-04-01 Pedro Alves <pedro@codesourcery.com>
3705 * tracepoint.c: Include stack.h.
3706 (struct add_local_symbols_data): New.
3707 (do_collect_symbol): New.
3708 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
3709 iterate_over_block_local_vars.
3710 * stack.c (print_block_frame_locals): Rewrite as ...
3711 (iterate_over_block_locals): ... this. Take a callback function
3712 pointer and generic data pointer, and call that instead of
3713 print_variable_and_value.
3714 (struct print_variable_and_value_data): New.
3715 (do_print_variable_and_value): New.
3716 (iterate_over_block_local_vars): New, abstracted out from
3717 print_frame_local_vars.
3718 (print_frame_local_vars): Rewrite using
3719 iterate_over_block_local_vars.
3720 (iterate_over_block_arg_vars): New, abstracted out from
3721 print_frame_arg_vars.
3722 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
3723 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
3724 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
3726 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
3728 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
3729 instructions. Use the PC+4 if the base of the TBB or TBH is the
3732 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 Fix crash on reading wrong function declaration DWARF.
3735 * dwarf2read.c (read_subroutine_type): New variable void_type.
3736 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
3737 more close to their use.
3739 2010-03-31 Stan Shebs <stan@codesourcery.com>
3741 * breakpoint.c (tracepoint_save_command): Include variables,
3742 conditionals, tracepoint types, and default-collect.
3743 * tracepoint.c (save_trace_state_variables): New function.
3744 * tracepoint.h (save_trace_state_variables): Declare it.
3746 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
3748 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
3750 2010-03-30 Keith Seitz <keiths@redhat.com>
3752 * c-typeprint.c (c_type_print_args): Don't print "void"
3753 for java, regardless of whether it is TYPE_PROTOTYPED.
3754 Use the passed-in language instead of current_language.
3755 (c_type_print_varspec_suffix): Use current_language instead
3756 of assuming language_c.
3757 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
3758 any return type specifier from the physname.
3760 2010-03-30 Pedro Alves <pedro@codesourcery.com>
3762 * tui/tui-interp.c (tui_is_toplevel): New.
3764 (tui_allowed_p): New.
3765 * tui/tui.c (tui_enable): Check if the TUI is allowed before
3767 * tui/tui.h (tui_allowed_p): Declare.
3769 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
3771 * serial.h: Include winsock2.h before windows.h.
3773 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
3775 * NEWS: Mention xmlRegisters= in qSupported packet.
3777 * i386-tdep.c: Include "remote.h".
3778 (_initialize_i386_tdep): Call register_remote_support_xml.
3780 * remote.c (remote_support_xml): New.
3781 (register_remote_support_xml): Likewise.
3782 (remote_query_supported_append): Likewise.
3783 (remote_query_supported): Support remote_support_xml.
3785 * remote.h (register_remote_support_xml): New.
3787 2010-03-29 Stan Shebs <stan@codesourcery.com>
3789 * tracepoint.c (trace_find_line_command): Remove dead code.
3791 * tracepoint.h (struct uploaded_string): New struct.
3792 (struct uploaded_tp): New fields for source strings.
3793 * breakpoint.c (this_utp, next_cmd): New globals.
3794 (read_uploaded_action): New function.
3795 (create_tracepoint_from_upload): Fill in more parts
3797 * tracepoint.c (encode_source_string): New function.
3798 (trace_save): Write out source strings, fix error checks.
3799 (parse_tracepoint_definition): Add source string parsing.
3800 * remote.c (PACKET_TracepointSource): New packet type.
3801 (remote_download_command_source): New function.
3802 (remote_download_tracepoint): Download source pieces also.
3803 (_initialize_remote): Add packet config command.
3805 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
3808 * tracepoint.c (start_tracing): Check tracepoints before sending
3809 commands to target, don't start if all tracepoints disabled.
3811 2010-03-28 Pedro Alves <pedro@codesourcery.com>
3813 * cli/cli-script.c (process_next_line): Handle 'stepping'.
3815 2010-03-26 Stan Shebs <stan@codesourcery.com>
3817 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
3819 2010-03-26 Tom Tromey <tromey@redhat.com>
3821 * breakpoint.c (commands_command_1): Duplicate 'arg'.
3823 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3825 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
3826 (skip_prologue_sal): Remove local definition.
3827 (resolve_sal_pc): Remove now unnecessary code.
3828 * linespec.c (minsym_found): Call skip_prologue_sal.
3829 * symtab.c (find_function_start_pc): Remove.
3830 (find_function_start_sal): Extract prologue skipping into ...
3831 (skip_prologue_sal): ... this new function. Handle code both
3832 with and without debug info. Respect SAL's explicit_pc and
3833 explicit_line flags. Inline old find_function_start_pc.
3834 * symtab.h (find_function_start_pc): Remove.
3835 (skip_prologue_sal): Add prototype.
3837 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3839 * dwarf2read.c (read_func_scope): Also scan specification DIEs
3840 for DW_TAG_imported_module children.
3842 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3844 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
3845 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
3846 * completer.c (add_struct_fields): Fix inverted logic.
3848 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
3850 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
3852 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3854 * tracepoint.c (current_trace_status): Don't make sure error_desc
3856 (parse_trace_status): Release a previous error_desc string, and
3857 set it to NULL by default. If stop reason is tracepoint_error,
3858 make sure error_desc is not left NULL.
3860 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3862 * tracepoint.c (trace_save): Remove X from tracepoint error
3865 2010-03-26 Pedro Alves <pedro@codesourcery.com>
3867 * tracepoint.c (parse_trace_status): Don't allow plain strings in
3868 the terror description. Don't expect an X prefix.
3870 2010-03-25 Stan Shebs <stan@codesourcery.com>
3872 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
3873 (struct trace_status): New field error_desc.
3874 * tracepoint.c (stop_reason_names): Add terror.
3875 (current_trace_status): Ensure non-NULL error description.
3876 (trace_status_command): Add error report.
3877 (trace_status_mi): Ditto.
3878 (trace_save): Add special case for error description.
3879 (parse_trace_status): Add case for errors.
3881 2010-03-25 Keith Seitz <keiths@redhat.com>
3883 * dwarf2read.c (read_subroutine_type): If the compilation unit
3884 language is Java, mark any formal parameter named "this" as
3885 artificial (GCC/43521).
3886 (dwarf2_name): Add special handling for Java constructors.
3888 2010-03-25 Tom Tromey <tromey@redhat.com>
3890 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
3891 * infrun.c (handle_inferior_event): Change initialization of
3893 (handle_inferior_event): Change assignment to stop_stack_dummy.
3894 (normal_stop): Update use of stop_stack_dummy.
3895 (struct inferior_status) <stop_stack_dummy>: Change type.
3896 * inferior.h (stop_stack_dummy): Update.
3897 * infcmd.c (stop_stack_dummy): Change type.
3898 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
3900 (call_function_by_hand): Call set_std_terminate_breakpoint.
3901 Rewrite std::terminate handling.
3902 * breakpoint.h (enum bptype) <bp_std_terminate,
3903 bp_std_terminate_master>: New.
3904 (enum stop_stack_kind): New.
3905 (struct bpstat_what) <call_dummy>: Change type.
3906 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
3908 * breakpoint.c (create_std_terminate_master_breakpoint): New
3910 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
3911 Call create_std_terminate_master_breakpoint.
3912 (print_it_typical): Handle new breakpoint kinds.
3913 (bpstat_stop_status): Handle bp_std_terminate_master.
3914 (bpstat_what): Correctly set call_dummy field. Handle
3915 bp_std_terminate_master and bp_std_terminate.
3916 (print_one_breakpoint_location): Update.
3917 (allocate_bp_location): Update.
3918 (set_std_terminate_breakpoint): New function.
3919 (delete_std_terminate_breakpoint): Likewise.
3920 (create_thread_event_breakpoint): Update.
3921 (delete_command): Update.
3922 (breakpoint_re_set_one): Update.
3923 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
3925 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3927 * symfile.c (build_section_addr_info_from_bfd): New.
3928 (build_section_addr_info_from_objfile): Base it on
3929 build_section_addr_info_from_bfd.
3930 (addrs_section_compar, addrs_section_sort): New.
3931 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
3932 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
3933 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
3935 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
3937 * elfread.c (find_separate_debug_file_by_buildid):
3938 Remove unused local variable.
3940 2010-03-24 Tom Tromey <tromey@redhat.com>
3942 PR breakpoints/9352:
3943 * NEWS: Mention changes to `commands' and `rbreak'.
3944 * symtab.c (do_end_rbreak_breakpoints): New function.
3945 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
3946 end_rbreak_breakpoints.
3947 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
3948 (set_breakpoint_count): Likewise. Clear last_was_multi.
3949 (multi_start, multi_end, last_was_multi): New globals.
3950 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
3952 (struct commands_info): New
3953 (do_map_commands_command): New function.
3954 (commands_command_1): New function.
3955 (commands_command): Use it.
3956 (commands_from_control_command): Likewise.
3957 (do_delete_breakpoint): New function.
3958 (delete_command): Use it.
3959 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
3960 (do_map_disable_breakpoint): New function.
3961 (disable_command): Use it.
3962 (do_map_enable_breakpoint): New function.
3963 (enable_command): Use it.
3964 (enable_once_breakpoint): Add argument.
3965 (enable_once_command): Update.
3966 (enable_delete_breakpoint): Add argument.
3967 (enable_delete_command): Update.
3968 (break_command_really): Set last_was_multi when needed.
3969 (check_tracepoint_command): Fix formatting.
3970 (validate_commands_for_breakpoint): New function.
3971 (breakpoint_set_commands): Use it.
3972 (tracepoint_save_command): Update.
3973 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
3976 2010-03-24 Tom Tromey <tromey@redhat.com>
3978 * breakpoint.h (struct counted_command_line): New struct.
3979 (struct breakpoint) <commands>: Change type.
3980 (struct bpstats) <commands>: Change type.
3981 <commands_left>: New field.
3982 * breakpoint.c (alloc_counted_command_line): New function.
3983 (incref_counted_command_line): Likewise.
3984 (decref_counted_command_line): Likewise.
3985 (do_cleanup_counted_command_line): Likewise.
3986 (make_cleanup_decref_counted_command_line): Likewise.
3987 (breakpoint_set_commands): Use decref_counted_command_line and
3988 alloc_counted_command_line.
3989 (commands_command): Don't error if breakpoint commands are
3991 (commands_from_control_command): Likewise.
3992 (bpstat_free): Update.
3993 (bpstat_copy): Likewise.
3994 (bpstat_clear_actions): Likewise.
3995 (bpstat_do_actions_1): Likewise.
3996 (bpstat_stop_status): Likewise.
3997 (print_one_breakpoint_location): Likewise.
3998 (delete_breakpoint): Likewise.
3999 (bpstat_alloc): Initialize new field.
4000 (tracepoint_save_command): Update.
4001 * tracepoint.c (encode_actions): Update.
4002 (trace_dump_command): Update.
4004 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4006 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
4007 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
4008 (read_structure_type): For RealView, set TYPE_STUB on structures with
4009 no byte size and no children.
4010 (read_subroutine_type): Mark functions as prototyped by default.
4011 * symtab.c (producer_is_realview): New function.
4012 * symtab.h (expand_line_sal): Fix declaration formatting.
4013 (producer_is_realview): Declare.
4015 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4017 * arm-tdep.c (skip_prologue_function): New function.
4018 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
4019 (thumb_analyze_prologue): Document return value. Recognize more
4020 Thumb instructions, skippable calls, and some Thumb-2 instructions.
4022 (arm_skip_prologue): Remove call dummy check. Check the prologue
4023 for non-GNU compilers.
4024 (arm_instruction_changes_pc): New function.
4025 (arm_analyze_prologue): New function, broken out from
4026 arm_scan_prologue. Recognize more ARM instructions and skippable
4027 calls. Update comments. Handle NULL cache. Return the address
4028 of the first unrecognized instruction. Do not skip past other
4029 instructions which change control flow. Add debug output.
4030 (arm_scan_prologue): Use arm_analyze_prologue.
4031 (ARM_PC_32): Delete.
4032 (shifted_reg_val): Simplify ARM_PC_32 check.
4034 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4036 * tracepoint.c (tvariables_info_1): Actually compute
4037 the number of rows in the result.
4039 2010-03-24 Pedro Alves <pedro@codesourcery.com>
4041 * remote.c (crc32): Constify `buf' parameter.
4042 (remote_verify_memory): New, abstracted out from...
4043 (compare_sections_command): ... this. Remove hardcoded target
4045 (init_remote_ops): Install remote_verify_memory.
4046 * target.c (target_verify_memory): New.
4047 * target.h (struct target_ops) <to_verify_memory>: New field.
4048 (target_verify_memory): Declare.
4050 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4052 Implement -trace-save.
4054 * mi-cmds.h (mi_cmds_trace_save): Declare.
4055 * mi-cmds.c (mi_cmds): Register -trace-save.
4056 * mi/mi-main.c (mi_cmd_trace_save): New.
4057 * remote.c (remote_save_trace_data): Take const parameter.
4058 * target.h (struct target_ops::to_save_trace_data): Take
4060 * target.c (update_current_target): Adjust to the above.
4061 * tracepoint.c (trave_save): New, extracted from
4062 (trace_save_command): ...this.
4063 (tfile_trace_find): Remove message that is unnecessary now
4064 that 'tfind' reports found frame.
4065 * tracepoint.h (trace_save): Declare.
4067 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4069 Implement -trace-find.
4071 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
4072 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
4073 * mi/mi-main.c (mi_cmd_trace_find): New.
4074 * target.h (struct target_ops): Document to_trace_find.
4075 * tracepoint.h (tfind_1): Declare.
4076 * tracepoint.c (finish_tfind_command): Rename to...
4078 * remote.c (remote_trace_find): Return -1 if target say
4079 there's no frame. Improve error diagnostics.
4081 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4083 -trace-define-variable and -trace-list-variables.
4085 * tracepoint.c (create_trace_state_variable): Make
4086 private copy of name, as opposed to assuming the
4087 pointer lives forever.
4088 (tvariables_info_1): New.
4089 (tvariables_info): Use the above.
4090 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
4092 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
4093 and -trace-list-variables.
4094 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
4095 (mi_cmd_trace_list_variables): New.
4096 * mi/mi-main.c (mi_cmd_trace_define_variable)
4097 (mi_cmd_trace_list_variables): New.
4099 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4101 Implement -break-passcount.
4103 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
4104 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
4105 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
4107 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4109 -trace-start/-trace-end/-trace-status.
4111 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
4113 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
4114 (mi_cmd_trace_stop): Declare.
4115 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
4116 (mi_cmd_trace_stop): New.
4117 * tracepoint.c (start_tracing): New, extracted from...
4118 (trace_start_command): ...this.
4119 (trace_status_mi): New.
4120 * tracepoint.h (struct trace_status): Document
4121 stopping_tracepoint.
4122 (start_tracing, stop_tracing, trace_status_mi): Declare.
4124 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4126 Implement creating tracepoints with -break-insert.
4128 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
4129 to mean that tracepoint should be created.
4131 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4133 * breakpoint.c (check_no_tracepoint_commands): Use
4134 current spelling of 'teval'.
4136 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
4138 Unify actions and commands
4140 * defs.h (read_command_lines, read_command_lines_1): New
4141 parameters validator and closure.
4142 * tracepoint.h (struct action_line): Remove.
4143 * breakpoint.h (struct breakpoint): Remove the 'actions'
4145 * defs.h (enum command_control_type): New value
4146 while_stepping_control.
4147 (struct command_line): Add comments.
4148 * breakpoint.c (breakoint_is_tracepoint): New.
4149 (breakpoint_set_commands): For tracepoints,
4150 verify the commands are permissible.
4151 (check_tracepoint_commands): New.
4152 (commands_command): Require that each new line is validated using
4153 check_tracepoint_command, if we set commands for a tracepoint.
4154 (create_tracepoint_from_upload): Likewise.
4155 (print_one_breakpoint_location): Remove the code to print
4156 actions specifically.
4157 (tracepoint_save_command): Relay to print_command_lines.
4158 * cli/cli-script.c (process_next_line): New parameters validator
4159 and closure. Handle 'while-stepping'. Call validator if not null.
4160 (read_command_lines, read_command_lines1): Likewise.
4161 (recurse_read_control_structure): New parameters validator and
4162 closure. Handle while_stepping_control.
4163 (print_command_lines): Handle while-stepping.
4164 (get_command_line, define_command, document_command): Adjust.
4165 * remote.c (remote_download_tracepoint): Adjust.
4166 * tracepoint.c (make_cleanup_free_actions, read_actions)
4167 (free_actions, do_free_actions_cleanup): Remove.
4168 (trace_actions_command): Use read_command_lines.
4169 (validate_actionline): Use error in one place.
4170 (encode_actions_1): New, extracted from...
4171 (encode_actions): ...this. Also use cleanups for exception
4173 (trace_dump_command): Adjust.
4174 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
4177 2010-03-23 Mike Frysinger <vapier@gentoo.org>
4179 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
4181 2010-03-22 Stan Shebs <stan@codesourcery.com>
4183 * value.c (value_static_field): Be lazy about the field's value.
4185 2010-03-22 Reid Kleckner <reid@kleckner.net>
4188 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
4190 (disable_breakpoints_in_shlibs): Likewise.
4192 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
4194 * dwarf2read.c (partial_die_parent_scope): Work around buggy
4195 GCC 4.1 debug info generation (GCC PR c++/28460).
4196 (determine_prefix): Likewise.
4198 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
4200 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
4202 * tui/tui-layout.c (extract_display_start_addr): Likewise.
4204 2010-03-19 Stan Shebs <stan@codesourcery.com>
4206 * ax-gdb.c (gen_fetch): Handle bool.
4207 (gen_usual_unary): Ditto.
4209 (gen_equal): New function.
4210 (gen_less): New function.
4211 (gen_expr_binop_rest): Call them, also return integer type from
4215 2010-03-19 Tom Tromey <tromey@redhat.com>
4217 * jv-lang.c (jv_dynamics_objfile_data_key)
4218 (jv_type_objfile_data_key): New globals.
4219 (class_symtab): Move earlier.
4220 (jv_per_objfile_free): New function.
4221 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
4223 Remove ancient #if 1.
4224 (add_class_symbol): Remove redundant declaration.
4225 (java_lookup_class): Use alloc_type, not alloc_type_arch.
4226 (java_link_class_type): Mark as static. Update.
4227 (jv_clear_object_type): New function.
4228 (set_java_object_type): Likewise.
4229 (get_java_object_type): Use set_java_object_type.
4230 (is_object_type): Likewise.
4231 (_initialize_java_language): Register new objfile keys.
4232 (get_java_class_symtab): Add 'gdbarch' parameter.
4233 (add_class_symtab_symbol): Update.
4234 (type_from_class): Update.
4236 2010-03-19 Stan Shebs <stan@codesourcery.com>
4238 * ax-general.c (ax_const_l): Fix a sizing bug.
4240 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4244 2010-03-18 Stan Shebs <stan@codesourcery.com>
4245 Pedro Alves <pedro@codesourcery.com>
4247 * target.h (struct target_ops): New method
4248 to_set_circular_trace_buffer.
4249 (target_set_circular_trace_buffer): New macro.
4250 * target.c (update_current_target): Add
4251 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
4253 * remote.c (remote_set_circular_trace_buffer): New function.
4254 (init_remote_ops): Add it to vector.
4255 * tracepoint.h (struct trace_status): New field traceframes_created,
4256 change buffer_size and buffer_free to int.
4257 * tracepoint.c (circular_trace_buffer): New global.
4258 (start_tracing): Send values of disconnected tracing and circular
4259 trace buffer settings.
4260 (set_circular_trace_buffer): New function.
4261 (parse_trace_state): Handle total space and frames created.
4262 (trace_status_command): Display total space and total frames
4264 (trace_save): Write out new status values.
4265 (parse_trace_status): Set traceframe_count, traceframes_created,
4266 buffer_free and buffer_size to -1 by default.
4267 (_initialize_tracepoint): New setshow for circular-trace-buffer.
4268 * NEWS: Mention the circular trace buffer option.
4270 2010-03-18 Tom Tromey <tromey@redhat.com>
4272 * infcmd.c (finish_command_continuation): Wrap print_return_value
4275 2010-03-18 Joel Brobecker <brobecker@adacore.com>
4277 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
4278 DIE has a name before creating the associated partial symbol.
4279 (read_func_scope): Emit a complaint if the subprogram does not
4280 have a name or when we can't extract the subprogram PC bounds.
4282 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4284 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
4285 instead of selected frame architecture.
4287 2010-03-18 Pedro Alves <pedro@codesourcery.com>
4289 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
4290 a valid selected thread, and that it is not running.
4291 (advance_command): Ditto.
4292 (finish_command): Ditto.
4294 2010-03-17 Stan Shebs <stan@codesourcery.com>
4296 * ax-gdb.c (require_rvalue): Disallow non-scalars.
4298 * infcall.c: Include tracepoint.h.
4299 (call_function_by_hand): Disallow calls in tfind mode.
4300 * infcmd.c: Include tracepoint.h.
4301 (ensure_not_tfind_mode): New function.
4302 (continue_1): Call it.
4304 (jump_command): Ditto.
4305 (signal_command): Ditto.
4306 (advance_command): Ditto.
4307 (until_command): Ditto.
4308 (finish_command): Ditto.
4309 * tracepoint.h (disconnect_or_stop_tracing): Declare.
4311 * ax-gdb.h (struct axs_value): New field optimized_out.
4312 (gen_trace_for_var): Add gdbarch argument.
4313 * ax-gdb.c (gen_trace_static_fields): New function.
4314 (gen_traced_pop): Call it, add gdbarch argument.
4315 (gen_trace_for_expr): Update call to it.
4316 (gen_trace_for_var): Ditto, and report optimized-out variables.
4317 (gen_struct_ref_recursive): Check for optimized-out value.
4318 (gen_struct_elt_for_reference): Ditto.
4319 (gen_static_field): Pass gdbarch instead of expression, assume
4320 optimization if field not found.
4321 (gen_var_ref): Set the optimized_out flag.
4322 (gen_expr): Error on optimized-out variable.
4323 * tracepoint.c (collect_symbol): Handle struct-valued vars as
4324 expressions, skip optimized-out variables with computed locations.
4325 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
4326 erroring out if location expression missing.
4327 (loclist_tracepoint_var_ref): Don't error out here.
4329 2010-03-17 Tom Tromey <tromey@redhat.com>
4331 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
4332 DWARF data is available.
4334 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4336 * symfile.c (generic_load): Reset breakpoints after loading.
4338 2010-03-17 Tom Tromey <tromey@redhat.com>
4340 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
4342 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4344 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4345 create_breakpoint call, adjust the parameters.
4347 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4348 Chandru <chandru@in.ibm.com>
4350 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
4351 * valarith.c (value_subscripted_rvalue): Suppress error if
4352 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
4354 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
4356 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
4358 2010-03-16 Joel Brobecker <brobecker@adacore.com>
4360 * ada-tasks.c (task_command_1): Check that the task ptid is valid
4361 before doing the associated thread switch.
4363 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
4365 * MAINTAINERS: Update my email address.
4367 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
4369 Simplify MI breakpoint setting.
4371 * breakpoint.c (break_command_really): Make nonstatic and
4373 (create_breakpoint): ...this. Rename prior function by this name
4375 (create_breakpoint_sal): ...this.
4376 (create_breakpoints): Rename to...
4377 (create_breakpoints_sal): ...this.
4378 (set_breakpoint): Remove.
4379 * breakpoint.h: Adjust to above changes.
4380 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
4382 2010-03-15 Stan Shebs <stan@codesourcery.com>
4384 * ax-gdb.c: Include cp-support.h.
4385 (find_field): Remove.
4386 (gen_primitive_field): New function.
4387 (gen_struct_ref_recursive): New function.
4388 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
4390 (gen_static_field): New function.
4391 (gen_struct_elt_for_reference): New.
4392 (gen_namespace_elt): New.
4393 (gen_maybe_namespace_elt): New.
4394 (gen_aggregate_elt_ref): New.
4395 (gen_expr): Add OP_SCOPE, display opcode name in error message.
4397 2010-03-15 Tom Tromey <tromey@redhat.com>
4399 * dwarf2read.c (die_needs_namespace): Also return 0 for
4402 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
4405 * cp-support.h: Added char *declaration element to using_direct
4407 (cp_add_using): Added char *declaration argument.
4408 (cp_add_using_directive): Ditto.
4409 (cp_lookup_symbol_imports): made extern.
4410 * cp-namespace.c: Updated with the above changes.
4411 * dwarf2read.c (read_import_statement): Ditto.
4412 (read_namespace): Ditto.
4413 (read_import_statement): Support import declarations.
4414 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
4416 Added support for 'declaration_only' search.
4417 (cp_lookup_symbol_namespace): Attempt to search for the name as
4418 is before consideration of imports.
4419 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
4420 search at every block level search.
4421 Now takes language argument.
4422 (lookup_symbol_aux): Updated.
4424 2010-03-15 Tom Tromey <tromey@redhat.com>
4426 * c-exp.y (name_not_typename): Add 'operator' clause.
4428 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
4430 * configure.ac: Exit if ${gdb_target_obs}" is not set.
4431 * configure: Regenerate.
4433 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4435 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
4436 and ".sdynbss". Update the comment.
4438 2010-03-15 Jie Zhang <jie@codesourcery.com>
4440 * MAINTAINERS: Update my email address.
4442 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4444 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
4446 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4448 * charset.c [USE_WIN32API]: Include <windows.h>.
4449 (_initialize_charset): Correct type of w32_host_default_charset.
4451 2010-03-14 Pedro Alves <pedro@codesourcery.com>
4453 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
4455 2010-03-12 Tom Tromey <tromey@redhat.com>
4458 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
4459 in a lexical block does not need a namespace.
4460 (new_symbol) <DW_TAG_variable>: Put extern variables on
4461 list_in_scope in all cases.
4463 2010-03-12 Stan Shebs <stan@codesourcery.com>
4465 * ax-gdb.c (gen_expr): Add shift expressions.
4466 (gen_expr_binop_rest): Ditto.
4468 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
4470 * buildsym.c (finish_block): Reset using_directives pointer
4471 after block initialization.
4473 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
4475 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
4476 * i386-tdep.c (i386_word_names): Likewise.
4478 2010-03-12 Pedro Alves <pedro@codesourcery.com>
4480 * target.c (memory_xfer_partial): Don't use the stack cache if
4481 inspecting trace frames.
4482 * tracepoint.c (finish_tfind_command): Invalidate the target
4485 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4487 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
4488 for the PIC displacement, print also the displacement value.
4489 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
4491 2010-03-10 Kevin Buettner <kevinb@redhat.com>
4493 * remote-mips.c (close_ports, mips_initialize_cleanups)
4494 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
4495 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
4496 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
4497 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
4498 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
4499 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
4500 comments describing each of these functions.
4501 (mips_enter_debug, mips_exit_debug, common_open)
4502 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
4503 blank line after the comment describing the function.
4505 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4507 * solib-svr4.c (svr4_exec_displacement): Return now success, new
4508 parameter displacementp. Update comment.
4509 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
4510 element exists. Return if svr4_exec_displacement was not successful.
4513 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4514 Daniel Jacobowitz <dan@codesourcery.com>
4516 * solib-svr4.c (read_program_header): Support type == -1 to read
4517 all program headers.
4518 (read_program_headers_from_bfd): New function.
4519 (svr4_static_exec_displacement): Remove and move the comment ...
4520 (svr4_exec_displacement): ... here. Remove variable found. New
4521 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
4522 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
4523 targets using read_program_headers_from_bfd. Remove the call of
4524 svr4_static_exec_displacement.
4526 2010-03-10 Tom Tromey <tromey@redhat.com>
4528 * dwarf2read.c (struct pubnames_header): Remove.
4529 (_PUBNAMES_HEADER): Remove.
4530 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
4531 (struct aranges_header): Remove.
4532 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
4533 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
4534 (PUBNAMES_SECTION): Remove.
4535 (ARANGES_SECTION): Remove.
4536 (dwarf2_locate_sections): Don't handle pubnames or aranges.
4537 (dwarf2_build_psymtabs): Remove dead code.
4538 (dwarf2_build_psymtabs_easy): Remove.
4540 2010-03-10 Tom Tromey <tromey@redhat.com>
4542 * elfread.c (elf_symfile_read): Don't call
4543 dwarf2_build_frame_info.
4544 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
4545 (struct dwarf2_per_objfile) <objfile>: New field.
4546 (dwarf2_has_info): Now idempotent. Set objfile field.
4547 (dwarf2_read_section): Check and set readin field. Call
4549 (dwarf2_build_psymtabs): Don't read all sections.
4550 (read_type_comp_unit_head): Read types section.
4551 (create_debug_types_hash_table): Likewise.
4552 (init_cu_die_reader): Add asserts.
4553 (process_type_comp_unit): Add assert.
4554 (dwarf2_build_psymtabs_hard): Read info section.
4555 (load_partial_comp_unit): Add assert.
4556 (create_all_comp_units): Read info section.
4557 (load_full_comp_unit): Likewise.
4558 (dwarf2_ranges_read): Read ranges section.
4559 (dwarf2_record_block_ranges): Add assert.
4560 (dwarf2_read_abbrevs): Read abbrev section.
4561 (read_indirect_string): Read str section.
4562 (dwarf_decode_line_header): Read line section.
4563 (read_signatured_type_at_offset): Read types section.
4564 (dwarf_decode_macros): Read macinfo section.
4565 (dwarf2_symbol_mark_computed): Read loc section.
4566 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
4567 dwarf2_build_frame_info.
4568 (dwarf2_build_frame_info): Unconditionally set
4569 dwarf2_frame_objfile_data on the objfile.
4570 * configure.ac: Check for posix_madvise.
4571 * config.in, configure: Rebuild.
4573 2010-03-10 Tom Tromey <tromey@redhat.com>
4575 * xcoffread.c (xcoff_start_psymtab): Update.
4576 (xcoff_end_psymtab): Update.
4577 * psymtab.c (allocate_psymtab): Remove dead code.
4578 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
4580 * mdebugread.c (parse_partial_symbols): Update.
4581 (new_psymtab): Likewise.
4582 * dwarf2read.c (process_psymtab_comp_unit): Update.
4583 (psymtab_to_symtab_1): Update.
4584 * dbxread.c (start_psymtab): Update.
4585 (end_psymtab): Likewise.
4587 2010-03-10 Tom Tromey <tromey@redhat.com>
4589 * xcoffread.c: Include psymtab.h.
4590 (xcoff_sym_fns): Update.
4591 * symtab.h (struct partial_symbol): Remove.
4592 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
4593 (struct partial_symtab): Remove.
4594 (PSYMTAB_TO_SYMTAB): Remove.
4595 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
4596 (find_pc_sect_psymtab): Remove.
4597 (find_pc_sect_symtab_via_partial): Declare.
4598 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
4599 (find_main_psymtab): Remove.
4600 (find_main_filename): Declare.
4601 (fixup_psymbol_section): Remove.
4602 (fixup_section): Declare.
4603 * symtab.c: Include psymtab.h.
4604 (lookup_symtab): Use lookup_symtab method.
4605 (lookup_partial_symtab): Remove.
4606 (find_pc_sect_psymtab_closer): Remove.
4607 (find_pc_sect_psymtab): Remove.
4608 (find_pc_sect_symtab_via_partial): New function.
4609 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
4610 (fixup_section): No longer static.
4611 (fixup_psymbol_section): Remove.
4612 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
4613 (lookup_global_symbol_from_objfile): Likewise.
4614 (lookup_symbol_aux_psymtabs): Remove.
4615 (lookup_symbol_aux_quick): New function.
4616 (lookup_symbol_global): Use lookup_symbol_aux_quick.
4617 (lookup_partial_symbol): Remove.
4618 (basic_lookup_transparent_type_quick): New function.
4619 (basic_lookup_transparent_type): Use it.
4620 (find_main_psymtab): Remove.
4621 (find_main_filename): New function.
4622 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
4623 (find_line_symtab): Use expand_symtabs_with_filename method.
4624 (output_partial_symbol_filename): New function.
4625 (sources_info): Use map_partial_symbol_filenames.
4626 (struct search_symbols_data): New type.
4627 (search_symbols_file_matches): New function.
4628 (search_symbols_name_matches): Likewise.
4629 (search_symbols): Use expand_symtabs_matching method.
4630 (struct add_name_data): Rename from add_macro_name_data.
4631 (add_macro_name): Update.
4632 (add_partial_symbol_name): New function.
4633 (default_make_symbol_completion_list): Use
4634 map_partial_symbol_names.
4635 (struct add_partial_symbol_name): New type.
4636 (maybe_add_partial_symtab_filename): New function.
4637 (make_source_files_completion_list): Use
4638 map_partial_symbol_filenames.
4639 (expand_line_sal): Use expand_symtabs_with_filename method.
4640 * symmisc.c: Include psymtab.h.
4641 (print_objfile_statistics): Use print_stats method.
4642 (dump_objfile): Use dump method.
4643 (dump_psymtab, maintenance_print_psymbols)
4644 (maintenance_info_psymtabs, maintenance_check_symtabs)
4645 (extend_psymbol_list): Remove.
4646 * symfile.h (struct quick_symbol_functions): New struct.
4647 (struct sym_fns) <qf>: New field.
4648 (sort_pst_symbols): Remove.
4649 (increment_reading_symtab): Declare.
4650 * symfile.c: Include psymtab.h.
4651 (compare_psymbols, sort_pst_symbols): Remove.
4652 (psymtab_to_symtab): Remove.
4653 (increment_reading_symtab): New function.
4654 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
4656 (set_initial_language): Use find_main_filename.
4657 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
4658 (free_named_symtabs): Remove unused code.
4659 (start_psymtab_common, add_psymbol_to_bcache)
4660 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
4662 * stack.c: Include psymtab.h, symfile.h.
4663 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
4664 * source.h (psymtab_to_fullname): Don't declare.
4665 * source.c: Include psymtab.h.
4666 (select_source_symtab): Use find_last_source_symtab method.
4667 (forget_cached_source_info): Use forget_cached_source_info
4669 (find_and_open_source): No longer static.
4670 (psymtab_to_fullname): Remove.
4671 * somread.c: Include psymtab.h.
4672 (som_sym_fns): Update.
4673 * psympriv.h: New file.
4674 * psymtab.h: New file.
4675 * psymtab.c: New file.
4676 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
4677 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
4678 * objfiles.c: Include psymtab.h.
4679 (objfile_relocate1): Use relocate method.
4680 (objfile_has_partial_symbols): Use has_symbols method.
4681 * mipsread.c: Include psymtab.h.
4682 (ecoff_sym_fns): Update.
4683 * mi/mi-cmd-file.c: Include psymtab.h.
4684 (print_partial_file_name): New function.
4685 (mi_cmd_file_list_exec_source_files): Use
4686 map_partial_symbol_filenames.
4687 * mdebugread.c: Include psympriv.h.
4688 * machoread.c: Include psympriv.h.
4689 (macho_sym_fns): Update.
4690 * m2-exp.y (yylex): Use lookup_symtab.
4691 * elfread.c: Include psympriv.h.
4692 (elf_sym_fns): Update.
4693 * dwarf2read.c: Include psympriv.h.
4694 * dbxread.c: Include psympriv.h.
4695 (aout_sym_fns): Update.
4696 * cp-support.c: Include psymtab.h.
4697 (read_in_psymtabs): Remove.
4698 (make_symbol_overload_list_qualified): Use
4699 expand_symtabs_for_function method.
4700 * coffread.c: Include psympriv.h.
4701 (coff_sym_fns): Update.
4702 * blockframe.c: Include psymtab.h.
4703 (find_pc_partial_function): Use find_pc_sect_symtab method.
4704 * ada-lang.h (ada_update_initial_language): Update.
4705 * ada-lang.c: Include psymtab.h.
4706 (ada_update_initial_language): Remove 'main_pst' argument.
4707 (ada_lookup_partial_symbol): Remove.
4708 (struct ada_psym_data): New type.
4709 (ada_add_psyms): New function.
4710 (ada_add_non_local_symbols): Use map_ada_symtabs method.
4711 (struct add_partial_datum): New type.
4712 (ada_add_partial_symbol_completions): New function.
4713 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
4714 (ada_exception_support_info_sniffer): Update.
4715 * Makefile.in (SFILES): Add psymtab.c.
4716 (COMMON_OBS): Add psymtab.o.
4717 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
4719 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4721 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
4723 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
4726 * cp-namespace.c (cp_add_using): Deleted.
4727 (cp_add_using_directive): Use obstack allocations.
4728 Merged the function cp_add_using into this one.
4729 Added 'struct obstack *' argument.
4730 (cp_scan_for_anonymous_namespaces): Updated.
4731 * cp-support.h: Updated.
4732 * dwarf2read.c (read_import_statement): Updated.
4733 (read_namespace): Updated.
4735 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
4737 * windows-nat.c (cygwin_conv_path): Remove old macro.
4739 2010-03-10 Pedro Alves <pedro@codesourcery.com>
4741 * breakpoint.c (condition_command): Handle watchpoint conditions.
4742 (is_hardware_watchpoint): Add comment.
4743 (is_watchpoint): New.
4744 (update_watchpoint): Don't reparse the watchpoint's condition
4747 (watchpoint_check): Use it.
4748 (bpstat_check_watchpoint): Handle it.
4749 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
4750 conditions in a frame where it makes sense.
4751 (watch_command_1): Store the innermost block of the condition
4753 (delete_breakpoint): Delete the watchpoint condition expression.
4754 * breakpoint.h (struct bp_location) <cond>: Update comment.
4755 (struct breakpoint): New field `cond_exp_valid_block'.
4757 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4759 Adjust handling of Ada DIEs after dwarf2_physname patch.
4760 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
4762 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
4763 Pierre Muller <muller@ics.u-strasbg.fr>
4765 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
4766 from/to posix/win32.
4767 (windows_make_so): Use non-Cygwin 1.7 specific function.
4768 (windows_create_inferior): Make sure that cygallargs points to
4769 original args in non Cygwin 1.7. case.
4771 2010-03-09 Michael Snyder <msnyder@vmware.com>
4773 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
4774 after target_read_memory to get host byte order.
4775 (i386_process_record): Ditto.
4777 2010-03-09 Keith Seitz <keiths@redhat.com>
4779 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
4780 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
4781 print out const or volatile qualifiers, too.
4782 (c_type_print_args): Add parameters show_artificial and language.
4783 Skip artificial parameters when requested.
4784 Use the appropriate language printer.
4785 (c_type_print_varspec): Tell c_type_print_args to skip artificial
4786 parameters and pass language_c.
4787 * dwarf2read.c (die_list): New file global.
4788 (struct partial_die_info): Update comments for name field.
4789 (pdi_needs_namespace): Renamed to ...
4790 (die_needs_namespace): ... this. Rewrite.
4791 (dwarf2_linkage_name): Remove.
4792 (add_partial_symbol): Do not predicate the call to
4793 partial_die_full_name based on pdi_needs_namespace.
4794 Remove call to cp_check_possible_namespace_symbols and associated
4796 (guess_structure_name): Do not inspect child subprogram DIEs.
4797 (dwarf2_fullname): Update comments.
4798 Use die_needs_namespace to assist in computing the name.
4799 (read_func_scope): Use dwarf2_name to get the DIE's name.
4800 Use dwarf2_physname to get the "linkage name" of the DIE.
4801 (dwarf2_add_member_field): Use dwarf2_physname instead of
4802 dwarf2_linkage_name.
4803 (read_structure_type): For structs and classes, set TYPE_NAME, too.
4804 (determine_class): Remove.
4805 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
4807 (new_symbol): Unconditionally call dwarf2_name.
4808 Compute the "linkage name" using dwarf2_physname.
4809 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
4810 When determining to scan for anonymous C++ namespaces, ignore
4812 (dwarf2_physname): New function.
4813 (dwarf2_full_name): Move content to new function and call
4815 (dwarf2_compute_name): "New" function.
4816 (_initialize_dwarf2_read): Initialize die_list.
4817 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
4819 (gnu_v3_print_method_ptr): Use the physname for virtual methods
4820 without a demangled name.
4821 Print out type information for non-virtual methods.
4822 * linespec.c (decode_line_1): Force ANY string using "::" (or
4823 "." for java) to use decode_compound, and clean up any stray quoting.
4824 If we found a file symtab, re-evaluate whether the remainder is_quoted.
4825 (decode_compound): Stop consuming at an open parenthesis.
4826 Keep template parameters.
4827 Keep any overload information.
4828 Keep keywords like "const".
4829 Remove paren_pointer.
4830 Move is_quoted check from set_flags to here.
4831 Remove #if 0 code from 2000. Ten years is long enough.
4832 (find_method): Before comparing symbol names, canonicalize the string
4834 If a specific overload is requested, find it. Otherwise throw an error.
4835 (find_method_overload_end): New function.
4836 (set_flags): Remove.
4837 (decode_compound): Assume that parentheses are matched.
4839 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
4841 * linespec.c (decode_line_1): Keep important keywords like
4842 "const" and "volatile".
4843 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
4844 * typeprint.h (c_type_print_args): Add declaration.
4845 * ui-file.c (do_ui_file_obsavestring): New function.
4846 (ui_file_obsavestring): New function.
4847 * ui-file.h (ui_file_obsavestring): Add declaration.
4848 * valops.c (find_overload_match): Resolve the object to
4850 If the object is a data member, search the object for the member
4851 and return with staticp set.
4852 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
4853 Do not attempt to extract a function name from non-function types.
4854 If the extracted function name and the original name are the same,
4855 we don't have a C++ method.
4857 From Jan Kratochvil <jan.kratochvil@redhat.com>:
4858 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
4860 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
4861 and arguments from symbol lookups.
4862 * ax-gdb.c (gen_expr): Likewise.
4863 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
4864 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
4865 lookup_possible_namespace_symbol): Likewise.
4866 * cp-support.c (read_in_psymtabs): Likewise.
4867 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
4868 * language.h (la_lookup_symbol_nonlocal): Likewise.
4869 * scm-valprint.c (scm_inferior_print): Likewise.
4870 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
4871 * solib-svr.c (elf_lookup_lib): Likewise.
4872 * solib.c (show_auto_solib_add): Likewise.
4873 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
4874 * symmisc.c (maintenance_check_symtabs): Likewise.
4875 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
4876 lookup_symbol_aux_local, lookup_symbol_aux_block,
4877 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
4878 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
4879 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
4880 basic_lookup_transparent_type, find_main_psymtab,
4881 lookup_block_symbol): Likewise.
4882 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
4883 lookup_symbol_global, lookup_symbol_aux_block,
4884 lookup_symbol_partial_symbol, lookup_block_symbol,
4885 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
4887 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
4889 * python/python-internal.h: Include symtab.h.
4891 2010-03-09 Joel Brobecker <brobecker@adacore.com>
4892 Pierre Muller <muller@ics.u-strasbg.fr>
4894 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
4895 * p-valprint.c (pascal_val_print): Remove undeed block and fix
4898 2010-03-08 Tom Tromey <tromey@redhat.com>
4900 * breakpoint.c (breakpoint_1): Add "QUIT".
4902 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4903 Pedro Alves <pedro@codesourcery.com>
4905 * solib.c (solib_find): Replace extension if
4906 solib_symbols_extension is set in the target gdbarch.
4907 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4908 solib_symbols_extension to "sym".
4909 * gdbarch.sh (solib_symbols_extension): New variable.
4910 (pstring): New function.
4911 * gdbarch.h, gdbarch.c: Regenerate.
4913 2010-03-08 Tom Tromey <tromey@redhat.com>
4917 * utils.c: Include main.h.
4918 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
4919 (defaulted_query): Use default answer if `batch_flag'.
4920 * main.h (batch_flag): Declare.
4921 * main.c (batch_flag): New global.
4922 (captured_main): Remove 'batch'. Update.
4924 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4926 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
4929 * remote-mips.c (rockhopper_ops): New target_ops struct.
4930 (MON_ROCKHOPPER): New mips_monitor_type.
4931 (read_hex_value): New function.
4932 (mips_request): Send 8-byte values with a 'T' packet. Read the
4933 packet argument as a string and use read_hex_value to parse it.
4934 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
4935 (rockhopper_open): New function.
4936 (mips_wait): Read the PC, FP and SP fields as strings. Use
4937 read_hex_value to parse them and mips_set_register to commit them.
4938 (mips_set_register): New function.
4939 (mips_fetch_registers): Do not cast register value to "unsigned"
4940 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
4941 (mips_store_registers): Use a 'T' packet to set registers when
4942 using MON_ROCKHOPPER.
4943 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
4944 and expect the total to be printed before the entry address.
4945 (_initialize_remote_mips): Initialize and add rockhopper_ops.
4947 2010-03-08 Kevin Buettner <kevinb@redhat.com>
4949 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
4950 Change return value to int. Store value fetched in location
4951 addressed by `val'. Use function's return value as success
4952 or failure indicator. Adjust all callers.
4954 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
4956 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
4958 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4959 Hui Zhu <teawater@gmail.com>
4961 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
4962 tmp_to_stopped_data_address.
4963 (record_open): Reset tmp_to_stopped_by_watchpoint and
4964 tmp_to_stopped_data_address.
4965 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
4966 to_stopped_data_address.
4968 2010-03-08 Hui Zhu <teawater@gmail.com>
4970 * i386-tdep.c (i386_process_record): Initialize regnum.
4972 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4974 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
4975 Do not warn on ".gnu.liblist" and ".gnu.conflict".
4977 2010-03-08 Joel Brobecker <brobecker@adacore.com>
4979 Memory error when reading wrong core file.
4980 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
4981 errors while reading the inferior memory, and return zero if
4982 an exception was raised.
4984 2010-03-07 Michael Snyder <msnyder@vmware.com>
4986 * record.c (record_restore): Rename tmpu8 to rectype.
4988 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
4989 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
4991 (i386_record_push): Rename local tmpulongest to addr.
4993 (i386_process_record): Rename local tmpulongest to addr.
4995 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
4998 Rename local variable tmpu8 to opcode8 and regnum.
5000 2010-03-07 Joel Brobecker <brobecker@adacore.com>
5002 * remote.c (remote_get_ada_task_ptid): New function.
5003 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
5005 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
5007 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
5008 block. Define helper macros to reduce ifdefs in code.
5009 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
5010 size. Call unadorned GetModuleFileNameEx rather than
5011 GetModuleFileNameEx*.
5012 (windows_make_so): Use __PMAX to denote maximum buffer size and
5013 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
5015 (get_image_name): Use __PMAX to denote maximum buffer size.
5016 (handle_load_dll): Likewise.
5017 (windows_pid_to_exec_file): Likewise.
5018 (windows_create_inferior): Add many accommodations for older Cygwin and
5020 (bad_GetModuleFileNameExW): Control inclusion of this function based on
5021 __USEWIDE conditional.
5022 (bad_GetModuleFileNameExA): Likewise.
5023 (_initialize_loadable): Just use real function names without the dyn_
5024 part since they are defined earlier.
5026 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
5027 Tom Tromey <tromey@redhat.com>
5029 * utils.c (host_char_to_target): Add 'gdbarch' argument.
5030 (parse_escape): Likewise.
5031 * python/py-utils.c (unicode_to_target_string): Update.
5032 (unicode_to_target_python_string): Update.
5033 (target_string_to_unicode): Update.
5034 * printcmd.c (printf_command): Update.
5035 * p-exp.y (yylex): Update.
5036 * objc-exp.y (yylex): Update.
5037 * mi/mi-parse.c: Include charset.h.
5038 (mi_parse_escape): New function.
5039 (mi_parse_argv): Use it.
5040 * jv-exp.y (yylex): Update.
5041 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
5043 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
5044 * gdbarch.sh (auto_charset, auto_wide_charset): New.
5045 * gdbarch.c: Rebuild.
5046 * gdbarch.h: Rebuild.
5047 * defs.h (parse_escape): Update.
5048 * cli/cli-setshow.c: Include arch-utils.h.
5049 (do_setshow_command): Update.
5050 * cli/cli-cmds.c (echo_command): Update.
5051 * charset.h (target_charset, target_wide_charset): Update.
5052 * charset.c: Include arch-utils.h.
5053 (target_charset_name): Default to "auto".
5054 (target_wide_charset_name): Likewise.
5055 (show_target_charset_name): Handle "auto".
5056 (show_target_wide_charset_name): Likewise.
5057 (be_le_arch): New global.
5058 (set_be_le_names): Add 'gdbarch' argument.
5059 (validate): Likewise. Don't call set_be_le_names.
5060 (set_charset_sfunc, set_host_charset_sfunc)
5061 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
5063 (target_charset): Add 'gdbarch' argument.
5064 (target_wide_charset): Likewise. Remove 'byte_order' argument.
5065 (auto_target_charset_name): New global.
5066 (default_auto_charset, default_auto_wide_charset): New functions.
5067 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
5068 for target charsets. Copy result of nl_langinfo. Use GetACP if
5070 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
5071 remove 'byte_order' argument. Update.
5072 (classify_type): Likewise.
5073 (c_emit_char): Update.
5074 (c_printchar): Update.
5075 (c_printstr): Update.
5076 (c_get_string): Update.
5077 (evaluate_subexp_c): Update.
5078 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
5080 * python/python.c (gdbpy_target_charset): New function.
5081 (gdbpy_target_wide_charset): Likewise.
5082 (GdbMethods): Update.
5085 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5087 * symfile.c (build_section_addr_info_from_objfile): Do not mask
5088 off high address bits.
5090 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
5092 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
5093 address as UnsignedLongLong, not LongLong.
5095 2010-03-05 Kevin Buettner <kevinb@redhat.com>
5096 Pedro Alves <pedro@codesourcery.com>
5098 * remote-mips.c (gdbthread.h): Include.
5099 (remote_mips_ptid): Declare.
5100 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
5101 (common_open): Set inferior_ptid, add it as an inferior, and
5102 as a thread too. Delete FIXME comment regarding start_remote().
5103 (mips_close): Invoke generic_mourn_inferior().
5104 (mips_kill): Make sure that target_mourn_inferior is invoked.
5105 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
5106 it's now invoked from mips_close().
5107 (mips_load): Don't null out inferior_ptid. Don't call
5108 clear_symtab_users().
5109 (mips_thread_alive, mips_pid_to_str): New functions.
5110 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
5111 to_thread_alive and to_pid_to_str operations.
5113 2010-03-04 Tom Tromey <tromey@redhat.com>
5115 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
5116 in DWARF 3 and later.
5117 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
5119 2010-03-04 Keith Seitz <keiths@redhat.com>
5121 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
5122 If the filename portion of the linespec was quoted, recheck the
5123 remainder for additional quoting.
5124 (locate_first_half): Skip over completer chars, too.
5126 2010-03-04 Tom Tromey <tromey@redhat.com>
5128 * printcmd.c (printf_command): Pass dummy argument to
5131 2010-03-04 Doug Evans <dje@google.com>
5133 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
5136 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
5138 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5140 * breakpoint.c (update_watchpoint): Create a sentinel location if
5141 the software watchpoint isn't watching any memory.
5142 (breakpoint_address_bits): Skip dummy software watchpoint locations.
5144 2010-03-04 Pedro Alves <pedro@codesourcery.com>
5146 * utils.c (fputs_maybe_filtered): Check if there's already a top
5147 level interpreter before dereferencing it. If there isn't one,
5148 don't paginate either.
5150 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5152 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
5153 the state right when single stepping.
5154 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
5155 Get the next PC along with the instruction state.
5156 (thumb_get_next_pc): Remove.
5157 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
5159 2010-03-04 Hui Zhu <teawater@gmail.com>
5161 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
5163 2010-03-03 Pedro Alves <pedro@codesourcery.com>
5165 * utils.c (fputs_maybe_filtered): Always disable pagination if the
5166 top level interpreter is MI.
5168 2010-03-03 Stan Shebs <stan@codesourcery.com>
5170 * remote.c (remote_download_tracepoint): Iterate over locations.
5171 * tracepoint.c (validate_actionline): Ditto.
5172 (encode_actions): Add location argument.
5173 (trace_dump_command): Check all locations to see if stepping
5176 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
5177 Eli Zaretskii <eliz@gnu.org>
5179 * NEWS: Add X86 general purpose registers section.
5181 2010-03-03 Tom Tromey <tromey@redhat.com>
5184 * varobj.c (install_new_value): Handle case where new print_value
5187 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
5190 * printcmd.c (printf_command): Print end of format string using
5193 2010-03-02 Tom Tromey <tromey@redhat.com>
5195 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
5196 * defs.h (read_command_lines_1): Add missing 'void'.
5197 * cli/cli-script.c (recurse_read_control_structure): Add missing
5199 (read_next_line): Likewise.
5200 (read_command_lines_1): Likewise.
5202 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5204 * spu-tdep.c (spu_analyze_prologue): Track instruction to
5205 store backchain as part of prologue.
5207 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
5209 * progspace.c (update_address_spaces): Update inferior address spaces
5212 2010-03-02 Doug Evans <dje@google.com>
5214 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
5215 lowpc,highpc args to addrmap_set_empty.
5217 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
5219 * amd64-tdep.c (amd64_byte_names): New.
5220 (amd64_word_names): Likewise.
5221 (amd64_dword_names): Likewise.
5222 (amd64_pseudo_register_name): Likewise.
5223 (amd64_pseudo_register_read): Likewise.
5224 (amd64_pseudo_register_write): Likewise.
5225 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
5226 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
5227 set_gdbarch_pseudo_register_write and
5228 set_tdesc_pseudo_register_name. Don't call
5229 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
5231 * i386-tdep.c (i386_num_mmx_regs): Removed.
5232 (i386_num_pseudo_regs): Likewise.
5233 (i386_byte_names): New.
5234 (i386_word_names): Likewise.
5235 (i386_byte_regnum_p): Likewise.
5236 (i386_word_regnum_p): Likewise.
5237 (i386_mmx_regnum_p): Updated.
5238 (i386_pseudo_register_name): Make it global. Handle byte and
5239 word pseudo-registers.
5240 (i386_pseudo_register_read): Likewise.
5241 (i386_pseudo_register_write): Likewise.
5242 (i386_pseudo_register_type): Handle byte, word and dword
5244 (i386_register_reggroup_p): Don't include pseudo
5245 registers, except for MXX, in any register groups. Don't
5246 include pseudo byte, word, dword registers in general_reggroup.
5247 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
5248 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
5249 pseudo-registers after word pseudo-registers. Call
5250 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
5252 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
5253 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
5255 (i386_byte_regnum_p): New.
5256 (i386_word_regnum_p): Likewise.
5257 (i386_dword_regnum_p): Likewise.
5258 (i386_pseudo_register_name): Likewise.
5259 (i386_pseudo_register_read): Likewise.
5260 (i386_pseudo_register_write): Likewise.
5262 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5264 * target-descriptions.c (tdesc_type): Remove
5265 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5266 (tdesc_predefined_types): Likewise.
5267 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
5268 if flag name is empty.
5269 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
5271 * features/i386/32bit-core.xml: Define i386_eflags.
5272 * features/i386/64bit-core.xml: Likewise.
5274 * features/i386/32bit-sse.xml: Define i386_mxcsr.
5275 * features/i386/64bit-sse.xml: Likewise.
5277 * features/i386/amd64-linux.c: Regenerated.
5278 * features/i386/amd64.c: Likewise.
5279 * features/i386/i386-linux.c: Likewise.
5280 * features/i386/i386.c: Likewise.
5282 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
5284 * gdbtypes.c (append_composite_type_field_raw): New.
5285 (append_composite_type_field_aligned): Use the new function.
5286 * gdbtypes.h (append_composite_type_field_raw): Declare.
5287 * target-descriptions.c (struct tdesc_type_field): Add start and end.
5288 (struct tdesc_type_flag): New type.
5289 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
5290 kind. Add size to u.u. Add u.f for flags.
5291 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
5292 (tdesc_free_type): Likewise.
5293 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
5294 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
5295 (tdesc_add_bitfield, tdesc_add_flag): New.
5296 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
5297 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
5298 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
5299 current_type. Add current_type_size and current_type_is_flags.
5300 (tdesc_start_union): Clear the new fields.
5301 (tdesc_start_struct, tdesc_start_flags): New.
5302 (tdesc_start_field): Handle struct fields, including bitfields.
5303 (field_attributes): Make type optional. Add start and end.
5304 (union_children): Rename to struct_union_children.
5305 (union_attributes): Rename to struct_union_attributes. Add optional
5307 (flags_attributes): New.
5308 (feature_children): Add struct and flags.
5309 * features/gdb-target.dtd: Add flags and struct to features.
5310 Make field type optional. Add field start and end.
5312 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
5314 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
5315 (amd64_linux_read_description): Likewise.
5316 (_initialize_amd64_linux_nat): Set to_read_description to
5317 amd64_linux_read_description.
5319 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
5320 (amd64_linux_register_name): Removed.
5321 (amd64_linux_register_type): Likewise.
5322 (amd64_linux_core_read_description): New.
5323 (amd64_linux_init_abi): Set target description to
5324 tdesc_amd64_linux if needed. Support orig_rax in target
5325 description. Don't call set_gdbarch_register_name nor
5326 set_gdbarch_register_type. Call
5327 set_gdbarch_core_read_description.
5328 (_initialize_amd64_linux_tdep): Call
5329 initialize_tdesc_amd64_linux.
5331 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
5333 * amd64-tdep.c: Include "features/i386/amd64.c".
5334 (amd64_register_names): Removed.
5335 (amd64_register_name): Likewise.
5336 (amd64_register_type): Likewise.
5337 (amd64_init_abi): Set num_core_regs and register_names. Set
5338 target description to tdesc_amd64 if needed. Don't call
5339 set_gdbarch_register_name nor set_gdbarch_register_type.
5340 (_initialize_amd64_tdep): New.
5342 * i386-linux-nat.c (i386_linux_read_description): New.
5343 (_initialize_i386_linux_nat): Set to_read_description to
5344 i386_linux_read_description.
5346 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
5347 (i386_linux_register_name): Removed.
5348 (i386_linux_core_read_description): New.
5349 (i386_linux_read_description): Likewise.
5350 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
5351 Set target description to tdesc_i386_linux if needed. Support
5352 orig_eax. Set register_reggroup_p. Call
5353 set_gdbarch_core_read_description.
5354 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
5356 * i386-linux-tdep.h (tdesc_i386_linux): New.
5358 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
5361 * i386-tdep.c: Include "features/i386/i386.c".
5362 (i386_register_names): Make it const.
5363 (i386_mmx_names): Likewise.
5364 (i386_num_register_names): Removed.
5365 (i386_register_name): Likewise.
5366 (i386_eflags_type): Likewise.
5367 (i386_mxcsr_type): Likewise.
5368 (i386_sse_type): Likewise.
5369 (i386_register_type): Likewise.
5370 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
5371 (i386_pseudo_register_name): New.
5372 (i386_pseudo_register_type): Likewise.
5373 (i386_mmx_type): Make it static.
5374 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
5375 I387_NUM_REGS. Set num_core_regs and register_names. Don't
5376 call set_gdbarch_register_name nor set_gdbarch_register_type.
5377 Set register_reggroup_p. Set target description to tdesc_i386
5378 if needed. Call set_tdesc_pseudo_register_type,
5379 set_tdesc_pseudo_register_name and tdesc_use_registers.
5380 (_initialize_i386_tdep): Call initialize_tdesc_i386.
5381 initialize_tdesc_x86_64.
5383 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
5384 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
5385 register_names, tdesc and register_reggroup_p.
5386 (I386_NUM_FREGS): Removed.
5387 (i386_eflags_type): Likewise.
5388 (i386_mxcsr_type): Likewise.
5389 (i386_mmx_type): Likewise.
5390 (i386_sse_type): Likewise.
5391 (i386_register_name): Likewise.
5392 (i386_regnum): Add I386_MXCSR_REGNUM.
5393 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
5395 * i387-tdep.h (I387_NUM_REGS): New.
5397 * regformats/i386/i386-linux.dat: Generated.
5398 * regformats/i386/i386.dat: Likewise.
5399 * regformats/i386/amd64-linux.dat: Likewise.
5400 * regformats/i386/amd64.dat: Likewise.
5402 * regformats/reg-i386-linux.dat: Removed.
5403 * regformats/reg-i386.dat: Likewise.
5404 * regformats/reg-x86-64-linux.dat: Likewise.
5405 * regformats/reg-x86-64.dat: Likewise.
5407 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
5409 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
5410 cygwin_conv_path API rather than the deprecated
5411 cygwin_conv_to_full_posix_path.
5413 (GetModuleFileNameExA): Undefine for Cygwin.
5414 (GetModuleFileNameExW): Define for Cygwin.
5415 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
5416 Call GetModuleFileNameExW and convert path to POSIX using
5418 (windows_make_so): Always define p. Drop unused variable m.
5419 Don't use Win32 functions to check file existance, rather use
5420 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
5421 Use canonicalize_file_name to get full path.
5422 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
5423 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
5424 use correct target buffer size in call to WideCharToMultiByte.
5425 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
5426 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
5427 (windows_create_inferior): Convert all paths and arguments to wchar_t
5428 and use CreateProcessW on Cygwin.
5429 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
5430 (bad_GetModuleFileNameExA): Undefine for Cygwin.
5431 (bad_GetModuleFileNameExW): Define for Cygwin.
5432 (_initialize_loadable): Load GetModuleFileNameExW into
5433 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
5435 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
5438 * python/py-frame.c (frapy_read_var): Add block argument and logic
5439 to cope with user provided blocks.
5441 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5443 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
5446 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
5448 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
5449 (COMMON_OBS): ... to here since it's used unconditionally.
5450 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
5453 2010-02-26 David Daney <ddaney@caviumnetworks.com>
5455 * mips-linux-tdep.c: Update struct sigframe comments.
5456 (SIGFRAME_CODE_OFFSET): Delete macro.
5457 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
5459 (mips_linux_n32n64_sigframe_init): Same.
5461 2010-02-26 Kevin Buettner <kevinb@redhat.com>
5463 * remote-mips.c (mips_load): Don't use pseudo-register when
5464 invalidating regcache.
5466 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5468 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
5470 2010-02-26 Pedro Alves <pedro@codesourcery.com>
5472 * NEWS: Add "New targets" section, and mention ARM Symbian
5475 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
5477 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
5478 add ADDR_SIZE member.
5479 (allocate_piece_closure): Update.
5480 (copy_pieced_value_closure): Likewise.
5481 (dwarf2_evaluate_loc_desc): Likewise.
5482 (read_pieced_value): Use DWARF address size instead of
5483 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
5485 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
5486 Tom Tromey <tromey@redhat.com>
5488 * python/py-type.c (typy_lookup_typename): Add in block argument.
5489 If provided restrict lookup to specified blocks.
5490 (gdbpy_lookup_type): Likewise.
5491 (typy_lookup_type): Likewise.
5493 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5498 * arm-symbian-tdep.c: New.
5499 * configure.tgt (arm*-*-symbianelf*): New target.
5500 (*-*-symbianelf*): New OS.
5501 * osabi.c (gdb_osabi_names): Add Symbian.
5502 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
5503 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
5504 (ALLDEPFILES): Add arm-symbian-tdep.c.
5506 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
5508 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
5510 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5512 * mi/mi-main.c (mi_cmd_execute): Fix typo.
5514 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
5515 Tom Tromey <tromey@redhat.com>
5516 Thiago Jung Bauermann <bauerman@br.ibm.com>
5518 * python/python.c (_initialize_python): Call
5519 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
5520 gdbpy_initialize_blocks.
5521 * python/python-internal.h: Declare struct symbol, block and
5522 symtab_and_line. Declare block_object_type and
5524 (gdbpy_lookup_symbol gdbpy_block_for_pc)
5525 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
5526 (symbol_to_symbol_object, block_to_block_object)
5527 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
5528 (gdbpy_initialize_blocks ): Declare.
5529 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
5530 (frapy_select): Add methods.
5531 (frapy_read_var): Add symbol branch.
5532 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
5534 (SUBDIR_PYTHON_SRCS): Likewise.
5535 (py-symbol.o): New rule.
5536 (py-symtab.o): Likewise.
5537 (py-block.o): Likewise.
5538 * python/py-symbol.c: New file.
5539 * python/py-symtab.c: Likewise.
5540 * python/py-block.c: Likewise.
5542 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5546 * inferior.h (prepare_for_detach): Declare.
5547 (struct inferior) <detaching>: New field.
5548 * infrun.c (prepare_for_detach): New.
5549 (handle_inferior_event) <random signal>: Don't stop if detaching.
5550 * target.c (target_detach): Call prepare_for_detach.
5552 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5554 Per-process displaced stepping queue.
5556 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
5557 (displaced_step_gdbarch, displaced_step_closure,
5558 (displaced_step_original, displaced_step_copy): Move globals to
5560 (struct displaced_step_inferior_state): ... new structure.
5561 (displaced_step_inferior_states): New global.
5562 (get_displaced_stepping_state, add_displaced_stepping_state)
5563 (remove_displaced_stepping_state, infrun_inferior_exit): New
5565 (displaced_step_clear): Add displaced_step_inferior_state
5566 parameter, and adjust to handle it.
5567 (displaced_step_clear_cleanup): Parameter is now a
5568 displaced_step_inferior_state. Adjust.
5569 (displaced_step_prepare): Adjust.
5570 (displaced_step_fixup, displaced_step_fixup)
5571 (infrun_thread_ptid_changed, resume): Adjust.
5572 (init_wait_for_inferior): Don't call displaced_step_clear.
5573 (infrun_thread_stop_requested): Rewrite.
5574 (_initialize_infrun): Install infrun_inferior_exit as
5575 inferior_exit observer.
5577 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5579 * inferior.h (ptid_match): Declare.
5580 * infrun.c (ptid_match): New.
5581 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
5582 (handle_notification): Add debug output.
5583 * linux-nat.c (ptid_match): Delete.
5585 2010-02-24 David S. Miller <davem@davemloft.net>
5587 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
5588 * syscalls/sparc-linux.xml: New.
5589 * syscalls/sparc64-linux.xml: New.
5590 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
5591 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
5592 (sparc32_linux_get_syscall_number): New function.
5593 (sparc32_linux_init_abi): Set syscall XML file name and hook up
5594 syscall number fetcher.
5595 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
5596 (sparc64_linux_get_syscall_number): New function.
5597 (sparc64_linux_init_abi): Set syscall XML file name and hook up
5598 syscall number fetcher.
5600 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5604 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
5605 * inferior.c (add_inferior_silent): Notify inferior_added
5607 (delete_inferior_1): Notify inferior_removed observer.
5608 (exit_inferior_1): Pass inferior, not pid, to observer.
5609 (inferior_appeared): Likewise.
5610 (add_inferior_with_spaces): New.
5611 (add_inferior_command): Use the above.
5612 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
5615 * inflow.c (inflow_inferior_exit): Likewise.
5616 * jit.c (jit_inferior_exit_hook): Likewise.
5618 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
5620 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5621 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
5622 (report_initial_inferior): New.
5623 (mi_inferior_removed): Register the above. Make sure
5624 inferior_added observer is called on the first inferior.
5625 (mi_new_thread, mi_thread_exit): Thread group is now identified by
5626 inferior number, not pid.
5627 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
5629 * mi/mi-main.c (current_context): New.
5630 (proceed_thread_callback): Use typed closure.
5631 Proceed everything if pid is 0. Most implementation split into
5632 (proceed_thread): ... this.
5633 (run_one_inferior): New.
5634 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
5635 Adjust for multiexec behaviour.
5636 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
5637 (mi_cmd_execute): Handle the 'thread-group' option here.
5638 Do some extra checks.
5639 * mi-parse.c (mi_parse): Handle the --all and --thread-group
5641 * mi-parse.h (struct mi_parse): New fields all and thread_group.
5643 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
5645 Make -exec-run a proper MI commands.
5647 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
5648 * mi/mi-cmds.c (mi_cmds): Adjust.
5649 * mi/mi-main.c (mi_cmd_exec_run): New.
5651 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5652 Stan Shebs <stan@codesourcery.com>
5654 * tracepoint.h (set_traceframe_number)
5655 (cleanup_restore_current_traceframe): Declare.
5656 * tracepoint.c (set_traceframe_number): New.
5657 (struct current_traceframe_cleanup): New.
5658 (do_restore_current_traceframe_cleanup)
5659 (restore_current_traceframe_cleanup_dtor)
5660 (make_cleanup_restore_current_traceframe): New.
5661 * infrun.c: Include tracepoint.h.
5662 (fetch_inferior_event): Switch out and in of tfind mode.
5664 2010-02-24 Pedro Alves <pedro@codesourcery.com>
5666 * breakpoint.c (breakpoint_init_inferior): Also delete
5667 bp_shlib_event breakpoints.
5668 * solib-frv.c (enable_break): Remove call to
5669 remove_solib_event_breakpoints.
5670 * solib-svr4.c (enable_break): Ditto.
5671 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
5672 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
5673 * solib-som.c (som_solib_create_inferior_hook): Ditto.
5674 * solib-spu.c (spu_enable_break): Ditto.
5676 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5678 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
5680 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
5682 * varobj.c (varobj_update): Avoid non-constants in initializers.
5684 2010-02-23 Tom Tromey <tromey@redhat.com>
5686 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
5687 handle big-endian values.
5688 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
5690 2010-02-22 Pedro Alves <pedro@codesourcery.com>
5695 * breakpoint.c (insert_bp_location): If inserting the read
5696 watchpoint failed, fallback to an access watchpoint.
5697 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
5698 if the value changed, if not watching the same memory for writes.
5699 (watchpoint_locations_match): Add comment.
5700 (update_global_location_list): Copy the location's watchpoint type.
5701 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
5702 handle read watchpoints here.
5703 (i386_insert_watchpoint): Read watchpoints aren't supported.
5704 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
5706 * target.h (target_insert_watchpoint): Update description.
5708 2010-02-19 Tom Tromey <tromey@redhat.com>
5710 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
5711 * m2-typeprint.c (m2_print_type): Update.
5712 * gdbtypes.c (recursive_dump_type): Update.
5713 (copy_type_recursive): Update.
5714 * c-typeprint.c (c_type_print_varspec_prefix): Update.
5715 (c_type_print_base): Update.
5716 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
5718 (struct cplus_struct_type) <ntemplate_args>: Remove.
5719 <struct template_arg>: Remove.
5720 <is_dynamic>: Move earlier.
5721 (TYPE_TEMPLATE_ARGS): Remove.
5722 (TYPE_NTEMPLATE_ARGS): Remove.
5723 (TYPE_TEMPLATE_ARG): Remove.
5725 2010-02-19 Tom Tromey <tromey@redhat.com>
5727 PR c++/8693, PR c++/9496:
5728 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
5729 * c-exp.y (lex_one_token): Rename from yylex. Don't call
5730 write_dollar_variable. Don't try to classify NAME tokens.
5731 (token_and_value): New type.
5732 (token_fifo, popping, name_obstack): New globals.
5733 (classify_name): New function.
5734 (classify_inner_name): Likewise.
5736 (VARIABLE): Now has type sval.
5737 (exp : VARIABLE): Call write_dollar_variable.
5738 (qualified_name): Use TYPENAME, not typebase. Add production for
5739 multiple "::" instances.
5740 (variable): Use name_not_typename.
5741 (qualified_type): Remove.
5744 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5746 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
5747 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
5748 found by bfd_get_section_by_name.
5749 * symfile.h (struct section_addr_info) <sectindex>: New comment.
5751 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5753 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
5754 7.0 section" into "Changes in 7.1".
5756 2010-02-19 Joel Brobecker <brobecker@adacore.com>
5758 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
5759 * version.in: Bump version to 7.1.50.20100219-cvs.
5761 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
5763 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
5764 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
5766 2010-02-17 Tom Tromey <tromey@redhat.com>
5768 * NEWS: Add Python API Improvements section.
5770 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
5772 * NEWS: Correct typo.
5774 2010-02-17 Tom Tromey <tromey@redhat.com>
5776 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
5778 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5780 * symfile.c (build_section_addr_info_from_objfile): Include sections
5781 only if they are SEC_ALLOC or SEC_LOAD.
5783 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
5786 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
5787 of ULONGEST for address size.
5789 2010-02-17 Tom Tromey <tromey@redhat.com>
5791 * NEWS: Add C++ improvements section.
5793 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5795 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
5796 PyThreadState_Swap): Avoid "statement with no effect" warning.
5798 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5800 * solib-svr4.c (enable_break <target_auxv_search>): New variable
5801 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
5803 2010-02-17 Tristan Gingold <gingold@adacore.com>
5804 Petr Hluzin <petr.hluzin@gmail.com>
5806 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
5807 gdb_assert. Fix info->size for SIG prologue.
5809 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5811 * infcmd.c (show_inferior_tty_command): Check for NULL.
5812 Correct output message.
5814 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5816 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
5817 FUNCTION contains parentheses. Improve removal of a trailing
5820 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5822 * gcore.c (do_bfd_delete_cleanup): New function.
5823 (gcore_command): Use it. Discard the cleanup after success.
5824 (gcore_copy_callback): Delete dead code.
5826 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
5828 * symfile.c (addr_info_make_relative): Always use
5829 find_lowest_section.
5831 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
5833 * NEWS: Added entry for namespace fixes.
5835 2010-02-15 Tom Tromey <tromey@redhat.com>
5837 * dwarf2read.c (guess_structure_name): Allocate name on the
5840 2010-02-15 Tom Tromey <tromey@redhat.com>
5842 * c-typeprint.c (c_type_print_base): Reverse order of test.
5844 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5846 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
5847 initialize it from ELF BFD. Extend the prelink condition by it.
5849 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5851 * defs.h (parse_pid_to_attach): New.
5852 * utils.c (parse_pid_to_attach): New.
5853 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
5854 * gnu-nat.c (gnu_attach): Likewise.
5855 * nto-procfs.c (procfs_attach): Likewise.
5856 * procfs.c (procfs_attach): Likewise.
5857 * windows-nat.c (windows_attach): Likewise.
5858 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
5859 * inf-ttrace.c (inf_ttrace_attach): Likewise.
5860 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
5863 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
5865 * MAINTAINERS: Add myself for write after approval privileges.
5867 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5869 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
5872 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5874 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
5875 only if INFO_VERBOSE.
5877 2010-02-12 Tomas Holmberg <th@virtutech.com>
5879 * mi/mi-main.c: Added the --reverse flag to the following MI
5880 commands: exec-continue, exec-finish, exec-next, exec-step,
5881 exec-next-instruction, exec-step-instruction. This is to
5882 support reverse execution over the MI interface to gdb.
5884 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5886 * tracepoint.c (_initialize_tracepoint): Specify that the address
5887 range of `tfind outsize' is exclusive, and that the address range
5888 of `tfind range' is inclusive, in the commands' help strings.
5890 2010-02-12 Joel Brobecker <brobecker@adacore.com>
5892 Spurious "dll not found" error messages on x64-windows.
5893 * windows-nat.c: Add include of complaints.h.
5894 (handle_unload_dll): Change dll-not-found error into a complaint.
5896 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5898 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
5899 bp_tracepoint and bp_fast_tracepoint, not
5900 bp_loc_software_breakpoint.
5901 (update_global_location_list): Tracepoints are never duplicates of
5904 2010-02-12 Pedro Alves <pedro@codesourcery.com>
5906 * breakpoint.c (break_command_really): Change return type to int.
5907 Return false if no breakpoint was created, true otherwise.
5908 (trace_command): Don't set the tracepoint count if no tracepoint
5910 (ftrace_command): Ditto.
5911 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
5912 created in the breakpoints table.
5914 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5915 Ulrich Weigand <uweigand@de.ibm.com>
5917 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
5919 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5921 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
5922 the offset value isn't of integral type.
5924 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5926 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
5929 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5931 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
5932 non-subscriptable types.
5933 * valarith.c (binop_types_user_defined_p): New, abstracted out
5935 (binop_user_defined_p): ... this.
5936 * value.h (binop_types_user_defined_p): Declare.
5938 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5940 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
5941 Merge uploaded TSVs before merging uploaded tracepoints.
5943 2010-02-11 Pedro Alves <pedro@codesourcery.com>
5945 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
5947 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
5949 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
5950 whitespace character after a dot in comment.
5951 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
5953 (list_args_or_locals): For the 'all' (that is
5954 -stack-list-variables) case, always output list of tuples.
5955 Output 'arg' field if variable is argument.
5957 2010-02-10 Tom Tromey <tromey@redhat.com>
5959 * parser-defs.h (parser_debug): Declare.
5960 * parse.c (_initialize_parse): Install "debug parser" set/show
5962 (parser_debug): New global.
5963 (show_parserdebug): New function.
5964 * c-exp.y (c_parse): Set yydebug.
5966 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
5968 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
5969 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5970 (tdesc_predefined_types): Add i387_ext, i386_eflags and
5972 (tdesc_find_type): New.
5973 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
5974 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
5976 * target-descriptions.h (tdesc_find_type): New.
5978 2010-02-10 Michael Snyder <msnyder@vmware.com>
5980 * gdb-gdb.py: Comment fix.
5982 2010-02-09 Tristan Gingold <gingold@adacore.com>
5984 * machoread.c (macho_symfile_relocate): New function.
5985 (macho_sym_fns): Use macho_symfile_relocate instead of
5986 default_symfile_relocate.
5987 (macho_oso_data): New type.
5988 (current_oso): New variable.
5989 (macho_add_oso_symfile): Do not compute section_addr_info, but
5990 instead set vma of sections.
5991 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
5992 Set and clear current_oso.
5994 2010-02-09 Joel Brobecker <brobecker@adacore.com>
5996 Wrong type description for tagged type parameter.
5997 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
5998 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
5999 reference to a tagged type.
6001 2010-02-09 Tristan Gingold <gingold@adacore.com>
6003 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
6004 brothers of the parent.
6006 2010-02-08 Tom Tromey <tromey@redhat.com>
6010 * valops.c (search_struct_field): Make 'name' const.
6011 (search_struct_method): Likewise.
6012 (find_method_list): Make 'method' const.
6013 (value_struct_elt): Make 'name' and 'err' const.
6014 (value_find_oload_method_list): Make 'method' const.
6015 (find_overload_match): Make 'name' const.
6016 * eval.c (evaluate_subexp_standard): New locals function,
6018 <OP_FUNCALL>: Handle OP_SCOPE specially.
6020 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6022 * infrun.c (handle_inferior_event): Do not look up regcache
6023 for exited processes.
6025 2010-02-08 Chris Moller <moller@mollerware.com>
6028 * valarith.c (value_ptrdiff): Added a test for a zero type length,
6029 warn if found, and assume length = 1.
6031 2010-02-08 Chris Moller <cmoller@redhat.com>
6034 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6035 cp_print_static_field) Fix use of obstacks.
6037 2010-02-08 Pedro Alves <pedro@codesourcery.com>
6039 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
6040 resumed LWPs as resumed.
6041 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
6042 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
6043 of throwing an internal error. If an LWP of a process we're not
6044 waiting for reports a signal, don't force collecting a SIGSTOP,
6045 and if it was breakpoint hit in non-stop mode, cancel it. Don't
6046 go through all LWPs cancelling breakpoints in non-stop mode.
6047 (resume_stopped_resumed_lwps): New.
6048 (linux_nat_wait): Use it.
6050 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
6052 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
6053 i386/amd64 and i386/amd64-linux.
6054 (i386/i386-expedite): New.
6055 (i386/i386-linux-expedite): Likewise.
6056 (i386/amd64-expedite):Likewise.
6057 (i386/amd64-linux-expedite): Likewise.
6058 ($(outdir)/i386/i386-linux.dat): Likewise.
6059 ($(outdir)/i386/amd64.dat): Likewise.
6060 ($(outdir)/i386/amd64-linux.dat): Likewise.
6062 * features/i386/32bit-core.xml: New.
6063 * features/i386/32bit-linux.xml: Likewise.
6064 * features/i386/32bit-sse.xml: Likewise.
6065 * features/i386/64bit-core.xml: Likewise.
6066 * features/i386/64bit-linux.xml: Likewise.
6067 * features/i386/64bit-sse.xml: Likewise.
6068 * features/i386/i386-linux.xml: Likewise.
6069 * features/i386/i386.xml: Likewise.
6070 * features/i386/amd64-linux.xml: Likewise.
6071 * features/i386/amd64.xml: Likewise.
6072 * features/i386/i386-linux.c: Likewise.
6073 * features/i386/i386.c: Likewise.
6074 * features/i386/amd64-linux.c: Likewise.
6075 * features/i386/amd64.c: Likewise.
6077 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
6080 * cp-support.h: Added char* alias element to using_direct data
6082 (cp_add_using): Added char* alias argument.
6083 (cp_add_using_directive): Ditto.
6084 * cp-namespace.c: Updated with the above changes.
6085 (cp_lookup_symbol_imports): Check for aliases.
6086 * dwarf2read.c (read_import_statement): Figure out local alias
6087 for the import and pass it on to cp_add_using.
6088 (read_namespace): Pass alias argument to cp_add_using.
6090 2010-02-05 Hui Zhu <teawater@gmail.com>
6092 * defs.h (gdb_bfd_errmsg): New extern.
6093 * exec.c (exec_file_attach): Change bfd_errmsg to
6095 * utils.c (AMBIGUOUS_MESS1): New macro.
6096 (AMBIGUOUS_MESS2): New macro.
6097 (gdb_bfd_errmsg): New function.
6099 2010-02-04 Doug Evans <dje@google.com>
6101 * solib-svr4.c (enable_break): Add comment.
6103 2010-02-04 Anthony Green <green@moxielogic.com>
6105 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
6108 2010-02-04 Tom Tromey <tromey@redhat.com>
6110 * valops.c (search_struct_field): Account for
6111 value_embedded_offset. Fix check for virtual base past the end of
6112 the object. Use value_copy when making a slice of the value.
6114 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6117 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
6118 only if gdb_stdout is a tty.
6120 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
6122 * target-descriptions.c: Include "osabi.h".
6123 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
6126 2010-02-04 Tristan Gingold <gingold@adacore.com>
6128 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
6129 (macho_symtab_read): Adjust calls to macho_add_oso.
6130 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
6131 (macho_symfile_read): Adjust call to macho_oso_symfile.
6132 (macho_new_init): Move this function after declarations.
6133 (macho_symfile_init): Ditto.
6134 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
6135 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
6137 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
6139 Include MI command in remotelog.
6141 * mi/mi-main.c (mi_execute_command): Call target_log_command.
6143 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6145 * remote.c (remote_state): Remove gdbarch.
6146 (init_remote_state): Don't set gdbarch.
6147 (remote_query_supported): Pass target_gdbarch instead of
6148 rs->gdbarch to gdbarch_qsupported.
6150 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6152 * gdbarch.sh: Add qsupported.
6154 * gdbarch.c: Regenerated.
6155 * gdbarch.h: Likewise.
6157 * remote.c (remote_state): Add gdbarch.
6158 (init_remote_state): Set gdbarch.
6159 (remote_query_supported): Support gdbarch_qsupported.
6161 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
6163 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
6164 __FreeBSD_kernel_version.
6166 2010-02-03 Tristan Gingold <gingold@adacore.com>
6168 * symfile.h (struct sym_fns): Add sym_relocate field.
6169 (default_symfile_relocate): New prototype.
6170 (symfile_relocate_debug_section): First argument is now an objfile.
6171 * symfile.c (default_symfile_relocate): Rename from
6172 symfile_relocate_debug_section, first argument is now an objfile.
6173 (symfile_relocate_debug_section): New function.
6174 * coffread.c (coff_sym_fns): Set sym_relocate field.
6175 * somread.c (som_sym_fns): Ditto.
6176 * mipsread.c (ecoff_sym_fns): Ditto.
6177 * machoread.c (macho_sym_fns): Ditto.
6178 * elfread.c (elf_sym_fns): Ditto.
6179 * dwarf2read.c (dwarf2_read_section): Ditto.
6180 * xcoffread.c (xcoff_sym_fns): Ditto.
6181 * dbxread.c (aout_sym_fns): Ditto.
6182 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
6183 (elfstab_build_psymtabs): Ditto.
6185 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
6187 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
6189 2010-02-02 Tom Tromey <tromey@redhat.com>
6191 * valops.c (value_cast_structs): Try downcasting using the RTTI
6194 2010-02-02 Tom Tromey <tromey@redhat.com>
6196 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
6197 (gnuv2_baseclass_offset): Now static.
6198 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
6199 * gnu-v2-abi.h: Remove.
6201 2010-02-02 Tom Tromey <tromey@redhat.com>
6203 * m2-typeprint.c (m2_record_fields): Don't use
6205 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
6206 (struct main_type) <flag_declared_class>: New field.
6207 (struct cplus_struct_type) <declared_type>: Remove.
6208 <ntemplate_args>: Move earlier.
6209 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
6210 (DECLARED_TYPE_TEMPLATE): Remove.
6211 (TYPE_DECLARED_TYPE): Remove.
6212 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
6213 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
6214 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
6217 2010-02-02 Tom Tromey <tromey@redhat.com>
6219 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
6220 * valops.c (search_struct_field): Compute nbases after calling
6222 (check_field): Call CHECK_TYPEDEF.
6223 * cp-valprint.c (cp_print_value): Pass correct address to
6224 baseclass_offset. Fix check for virtual base past the end of the
6225 object. Don't offset address passed to cp_print_value_fields or
6226 apply_val_pretty_printer.
6227 (cp_print_value_fields): Fix call to val_print.
6228 (cp_print_value_fields_rtti): New function.
6229 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
6230 * p-valprint.c (pascal_object_print_value_fields): Fix call to
6232 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
6234 * language.h (struct language_defn) <la_val_print>: Document.
6235 * c-lang.h (cp_print_value_fields_rtti): Declare.
6237 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6240 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6241 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
6242 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
6244 2010-02-01 Michael Matz <matz@suse.de>
6245 Daniel Jacobowitz <dan@codesourcery.com>
6247 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
6248 functions use a frame pointer.
6250 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6252 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
6253 by a conditional setting DYN_ADDR. Use DYN_ADDR.
6254 * config/djgpp/fnchange.lst: Add translations for
6255 symbol-without-target_section.exp and symbol-without-target_section.c.
6257 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6259 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
6260 (remote_breakpoint_for_pc): Correct invalid_p check.
6261 * gdbarch.c: Regenerated.
6263 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6265 * arm-tdep.c (arm_find_mapping_symbol): New function, from
6267 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
6268 (extend_buffer_earlier): New function.
6269 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
6270 (arm_adjust_breakpoint_address): New function.
6271 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
6273 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6275 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
6276 (arm_linux_thumb2_le_breakpoint): New constants.
6277 (arm_linux_init_abi): Set thumb2_breakpoint and
6278 thumb2_breakpoint_size.
6279 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
6280 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
6281 Implement support for single stepping through IT blocks if
6282 a 32-bit Thumb breakpoint instruction is available.
6283 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
6284 is available, use it when needed.
6285 (arm_remote_breakpoint_from_pc): New function.
6286 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
6287 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
6288 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
6290 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
6292 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
6293 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
6294 * gdbarch.c, gdbarch.h: Regenerated.
6295 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
6296 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
6297 gdbarch_remote_breakpoint_from_pc.
6299 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
6301 * infrun.c (prepare_to_proceed): Handle other signals which might
6303 (handle_inferior_event): Move the check for unusual breakpoint
6306 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
6308 amd64 - function returning record with field straddling 2 registers.
6309 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
6310 a record of length <= 16 in which a field straddles the two
6313 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6315 Implement return values on amd64-windows.
6316 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
6317 (amd64_windows_return_value): New function.
6318 (amd64_windows_init_abi): Call set_gdbarch_return_value with
6319 amd64_windows_return_value.
6321 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6323 amd64-windows: 32 bytes allocated on stack by caller for integer
6324 parameter registers.
6325 * i386-tdep.h (struct gdbarch_tdep): Add new field
6326 integer_param_regs_saved_in_caller_frame.
6327 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6328 tdep->integer_param_regs_saved_in_caller_frame to 1.
6329 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
6330 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
6332 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6334 amd64-windows: memory args passed by pointer during function calls.
6335 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
6336 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
6337 where tdep->memory_args_by_pointer is non-zero.
6338 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6339 tdep->memory_args_by_pointer to 1.
6341 2010-01-29 Joel Brobecker <brobecker@adacore.com>
6343 amd64-windows: Integer parameters in function calls.
6344 * i386-tdep.h (enum amd64_reg_class): New, moved here from
6346 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
6347 call_dummy_integer_regs, and classify.
6348 * amd64-tdep.h (amd64_classify): Add declaration.
6349 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
6350 (amd64_reg_class): Delete, moved to i386-tdep.h.
6351 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
6352 Replace call to amd64_classify by call to tdep->classify.
6353 (amd64_push_arguments): Get the list of registers to use for
6354 passing integer parameters from the gdbarch tdep structure,
6355 rather than using a hardcoded one. Replace calls to amd64_classify
6356 by calls to tdep->classify.
6357 (amd64_push_dummy_call): Get the register number used for
6358 the "hidden" argument from tdep->call_dummy_integer_regs.
6359 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
6360 and tdep->call_dummy_integer_regs. Set tdep->classify.
6361 * amd64-windows-tdep.c: Add include of gdbtypes.h.
6362 (amd64_windows_dummy_call_integer_regs): New static global.
6363 (amd64_windows_classify): New function.
6364 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
6365 tdep->call_dummy_integer_regs and tdep->classify.
6367 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6369 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
6370 for the new regcache. All callers updated.
6371 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
6372 (get_thread_arch_regcache): Do not set aspace here.
6373 * regcache.h (regcache_xmalloc): Update declaration.
6375 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
6376 regcache_xmalloc updated.
6378 2010-01-28 Joel Brobecker <brobecker@adacore.com>
6380 Another -Wunused-function error in procfs.c (sparc-solaris)
6381 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
6382 Only define if SYS_syssgi is defined.
6383 (remove_dbx_link_breakpoint): Delete declaration. Move up.
6384 (dbx_link_addr, insert_dbx_link_bpt_in_file)
6385 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
6388 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
6390 * windows-nat.c (windows_initialization_done): New variable.
6391 (get_windows_debug_event): Issue error when process dies before
6392 completely initializing.
6393 (do_initial_windows_stuff): Set flag to indicate when we are done with
6394 the initial steps of attaching to the child.
6396 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6398 * symtab.h (struct symbol <symtab>): New comment on NULL values.
6400 2010-01-27 Doug Evans <dje@google.com>
6402 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
6404 * breakpoint.c (bpstat_stop_status): Delete useless code.
6406 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6408 * printcmd.c (display_uses_solib_p): Remove variable section. Access
6409 objfile via SYMBOL_SYMTAB.
6411 2010-01-26 Tom Tromey <tromey@redhat.com>
6414 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
6415 coerce_array on result.
6417 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6419 * cp-namespace.c (cp_lookup_symbol_namespace): Added
6420 search_parent argument.
6421 (cp_add_using): Initialize 'searched' field.
6422 (reset_directive_searched): New function.
6423 * cp-support.h: Add 'searched' field to using_direct struct.
6424 (cp_lookup_symbol_imports): Ditto.
6425 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
6426 Perform recursive search.
6427 Implement non parent search.
6428 * valops.c (value_maybe_namespace_elt): Updated.
6430 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
6433 * dwarf2read.c (read_lexical_block_scope): Create blocks for
6434 scopes which contain using directives even if they contain no
6436 * symtab.c (lookup_symbol_aux): Pass lowest level block to
6437 la_lookup_symbol_nonlocal.
6438 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
6439 cp_lookup_symbol_namespace.
6440 (cp_lookup_symbol_namespace): Perform an import lookup at every
6442 (cp_lookup_symbol_imports): New function.
6443 (cp_lookup_symbol_in_namespace): New function.
6445 2010-01-25 Tom Tromey <tromey@redhat.com>
6448 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
6451 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6453 * configure.ac: Only use host_os part when disabling TUI on osf.
6454 Use test to check variables, prefix strings with x.
6455 * configure: Regenerate.
6457 * solib-osf.c (osf_current_sos): Initialize tail.
6459 2010-01-25 gingold <gingold@adacore.com>
6461 * windows-nat.c (windows_continue): Use %x to print thread id.
6462 (get_windows_debug_event): Ditto.
6464 2010-01-22 Tom Tromey <tromey@redhat.com>
6467 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
6468 type and arguments. Use smash_to_methodptr_type.
6469 (read_structure_type): Call quirk_gcc_member_function_pointer
6471 * gdbtypes.h (smash_to_methodptr_type): Declare.
6472 * gdbtypes.c (smash_to_methodptr_type): New function.
6473 (lookup_methodptr_type): Use it.
6475 2010-01-21 Tom Tromey <tromey@redhat.com>
6478 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
6479 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
6480 * glibc-tdep.c (find_minsym_and_objfile): Remove.
6481 (glibc_skip_solib_resolver): Use
6482 lookup_minimal_symbol_and_objfile.
6484 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
6486 * inflow.c (check_syscall): Guard by #if clause for GO32 and
6489 2010-01-20 Tom Tromey <tromey@redhat.com>
6492 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
6493 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
6494 * dwarf2expr.c (new_dwarf_expr_context): Allocate
6495 dwarf_stack_values, not CORE_ADDRs.
6496 (execute_stack_op): Change DW_OP_div and comparison operators to
6497 use signed operands.
6499 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
6501 Per-inferior args and tty and environment.
6503 * infcmd.c (inferior_args): Rename to ...
6504 (inferior_args_scratch): ... this.
6505 (inferior_io_terminal): Rename to ...
6506 (inferior_io_terminal_scratch): ... this.
6507 (inferior_argc, inferior_argv): Remove.
6508 (set_inferior_io_terminal, get_inferior_io_terminal): Store
6509 inside current_inferior().
6510 (set_inferior_tty_command, show_inferior_tty_command): New.
6511 (get_inferior_args, set_inferior_args): Store inside
6513 (notice_args_set): Likewise and rename to...
6514 (set_args_command): ... this.
6515 (set_inferior_args_vector): Likewise.
6516 (notice_args_read): Rename to...
6517 (show_args_command): ...new.
6518 (tty_command): Remove.
6519 (run_command_1): Don't free old args, as they are freed by
6520 set_inferior_arg now.
6521 (run_no_args_command): Likewise.
6522 (inferior_environ): Remove.
6523 (run_command_1): Use environment of the current inferior.
6524 (environment_info, set_environment_command)
6525 (unset_environment_command, path_info, path_command): Likewise.
6526 (_initialize_infcmd): Adjust for function and variable renames.
6527 Do not init inferior_environ.
6528 * inferior.h (set_inferior_arg): Adjust prototype.
6529 (struct inferior): New fields args, argc, argv, terminal, environment.
6530 (inferior_environ): Remove declaration.
6531 * inferior.c (free_inferior): Free new fields.
6532 (add_inferior_silent): Initialize 'environment' field.
6533 * main.c (captured_main): Set arguments only after the initial
6534 inferior has been created. Set set_inferior_io_terminal,
6536 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
6538 (_initialize_mi_cmd_env): Adjust for disappearance of global
6540 * solib.c (solib_find): Use environment of the current inferior.
6542 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6544 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
6546 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
6548 2010-01-20 Joel Brobecker <brobecker@adacore.com>
6550 Get rid of ada-lang.c:function_name_from_pc.
6551 * ada-lang.c: Add "stack.h" #include.
6552 (function_name_from_pc): Delete.
6553 (is_known_support_routine): Replace call to function_name_from_pc
6554 by call to find_frame_funname.
6555 (ada_unhandled_exception_name_addr_from_raise): Likewise.
6557 2010-01-19 Tom Tromey <tromey@redhat.com>
6560 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
6563 2010-01-19 Tom Tromey <tromey@redhat.com>
6565 * top.c (stop_sig, float_handler, do_nothing): Remove.
6567 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6569 * breakpoint.c (watchpoint_check): Check the call
6570 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
6572 * config/djgpp/fnchange.lst: Add translations for
6573 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
6574 watchpoint-cond-gone-stripped.c.
6576 2010-01-19 Tom Tromey <tromey@redhat.com>
6579 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
6580 into parent scope, and enumerator into grandparent scope.
6582 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6584 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
6586 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6588 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
6589 i[34567]86-*-solaris2.1[0-9]*.
6590 * configure.tgt: Likewise.
6592 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6594 * NEWS: Document the source command enhancement allowing it
6595 to load Python scripts. Document the "set/show script-extension"
6598 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6600 Add -Wunused-function to compile flags.
6601 * configure.ac: Add -Wunused-function to build_warnings.
6602 * configure: Regenerate.
6604 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6606 "delete" ada-lex.c:input function, not used.
6607 * ada-lex.l: #define YY_NO_INPUT.
6609 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6611 Delete free_named_symtabs and associated cleanup.
6612 * symfile.h (free_named_symtabs): Delete declaration.
6613 * symfile.c: Remove some commented out code (clear_symtab_users_once).
6614 (cashier_psymtab): Comment function out.
6616 (free_named_symtabs): Delete.
6617 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
6618 * dbxread.c (end_psymtab): Likewise.
6619 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
6620 * exec.c (exec_close_1): Ditto.
6621 * xcoffread.c (xcoff_end_psymtab): Likewise.
6623 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6625 * stack.c (print_block_frame_labels): Comment function out.
6627 2010-01-19 Joel Brobecker <brobecker@adacore.com>
6629 Delete unused or undefined functions.
6630 * breakpoint.c (ep_parse_optional_filename): Delete.
6631 * dcache.c (dcache_write_line): Remove declaration.
6632 * infrun.c (build_infrun): Remove declaration.
6633 * tracepoint.c (tracepoint_save_command): Remove declaration.
6634 * linux-nat.c (init_lwp_list): Delete. No longer used.
6635 * event-loop.c (check_async_signal_handlers): Delete declaration.
6636 * infrun.c (init_execution_control_state): Delete.
6637 (proceed): Update comment to avoid mentioning
6638 init_execution_control_state.
6639 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
6640 * ada-lang.c (ada_to_static_fixed_value): Delete.
6641 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
6642 * cp-namespace.c (cp_copy_usings): Delete.
6643 * xml-syscall.c (xml_number_of_syscalls): Delete.
6644 * progspace.c (find_program_space_by_num): Delete.
6645 * inflow.c (handle_sigio): Delete declaration.
6646 * hppa-tdep.c (hppa_alignof): Delete.
6647 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
6648 (mipsnbsd_core_osabi_sniffer): Delete.
6650 2010-01-18 Tom Tromey <tromey@redhat.com>
6653 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
6654 (CONST_CAST): New tokens.
6655 (exp): Add new productions.
6656 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
6658 (is_cast_operator): New function.
6659 (yylex): Handle cast operators specially.
6660 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
6661 UNOP_REINTERPRET_CAST>: New cases.
6662 * expprint.c (print_subexp_standard): Likewise.
6663 (op_name_standard): Likewise.
6664 (dump_subexp_body_standard): Likewise.
6665 * parse.c (operator_length_standard): Likewise.
6666 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
6667 UNOP_REINTERPRET_CAST.
6668 * gdbtypes.c (class_types_same_p): New function.
6669 (is_ancestor): Use it.
6670 (is_public_ancestor): New function.
6671 (is_unique_ancestor_worker): Likewise.
6672 (is_unique_ancestor): Likewise.
6673 * gdbtypes.h (class_types_same_p, is_public_ancestor)
6674 (is_unique_ancestor): Declare.
6675 * valops.c (value_reinterpret_cast): New function.
6676 (dynamic_cast_check_1): Likewise.
6677 (dynamic_cast_check_2): Likewise.
6678 (value_dynamic_cast): Likewise.
6679 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
6681 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6683 Fix build failure when building without Python support.
6684 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
6687 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6689 Use XVS field type instead of doing a parallel lookup.
6690 * ada-lang.c (ada_get_base_type): Follow the XVS field type
6691 if it is a reference type instead of doing a type lookup using
6694 2010-01-18 Joel Brobecker <brobecker@adacore.com>
6696 Trust PAD types instead of using PAD___XVS.
6697 * ada-lang.c (trust_pad_over_xvs): New static variable.
6698 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
6699 parallel XVS type, follow the XVS type instead of the PAD type.
6700 (unwrap_value): Make sure that there is no parallel XVE type
6701 before returning the value as is.
6702 (set_ada_list, show_ada_list): New static variables.
6703 (set_ada_command, show_ada_command): New functions.
6704 (_initialize_ada_language): Add new "set/show ada" prefix commands.
6705 Add new "set/show ada trust-PAD-over-XVS" setting.
6707 2010-01-18 Tom Tromey <tromey@redhat.com>
6708 Thiago Jung Bauermann <bauerman@br.ibm.com>
6710 Allow "source" to load python scripts.
6711 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
6712 * python/python.c (source_python_script): New function.
6713 * python/python.h (source_python_script): Add declaration.
6714 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
6715 (script_ext_off, script_ext_soft, script_ext_strict)
6716 (script_ext_enums, script_ext_mode): New static constants.
6717 (show_script_ext_mode, find_and_open_script): New functions.
6718 (source_script): Enhance to handle Python scripts.
6719 (init_cli_cmds): Add set/show script-extension commands.
6721 2010-01-16 Stan Shebs <stan@codesourcery.com>
6723 * tracepoint.h (struct trace_status): Use unsigned long long
6725 * tracepoint.c (trace_status_command): Fix printf directive.
6726 (trace_save_command): Check fwrite returns, fix printf directive.
6727 (trace_filename): New global.
6728 (tfile_open): Set it, check read returns.
6729 (tfile_close): Free trace_filename.
6730 (tfile_get_traceframe_address): Check read returns.
6731 (tfile_trace_find): Ditto.
6732 (tfile_fetch_registers): Ditto.
6733 (tfile_xfer_partial): Ditto.
6734 (tfile_get_trace_state_variable_value): Ditto.
6736 2010-01-15 Stan Shebs <stan@codesourcery.com>
6738 Add trace file support.
6739 * tracepoint.h (enum trace_stop_reason): New enum.
6740 (struct trace_status): New struct.
6741 (parse_trace_status): Declare.
6742 (struct uploaded_tp): Move here from remote.c,
6743 add fields for actions.
6744 (struct uploaded_tsv): New struct.
6745 * tracepoint.c (tfile_ops): New target vector.
6746 (trace_fd): New global.
6747 (tfile_open): New function.
6748 (tfile_close): New function.
6749 (tfile_files_info): New function.
6750 (tfile_get_trace_status): New function.
6751 (tfile_get_traceframe_address): New function.
6752 (tfile_trace_find): New function.
6753 (tfile_fetch_registers): New function.
6754 (tfile_xfer_partial): New function.
6755 (tfile_get_trace_state_variable_value): New function.
6756 (init_tfile_ops): New function.
6757 (_initialize_tracepoint): Call it, add tfile target.
6758 (trace_status): New global.
6759 (current_trace_status): New function.
6760 (trace_running_p): Remove, change all users to get from
6761 current_trace_status()->running.
6762 (get_trace_status): Remove.
6763 (trace_status_command): Call target_get_trace_status directly,
6764 report more detail including tracing stop reasons.
6765 (trace_find_command): Always allow tfind on a file.
6766 (trace_find_pc_command): Ditto.
6767 (trace_find_tracepoint_command): Ditto.
6768 (trace_find_line_command): Ditto.
6769 (trace_find_range_command): Ditto.
6770 (trace_find_outside_command): Ditto.
6771 (trace_frames_offset, cur_offset): Declare as off_t.
6772 (trace_regblock_size): Rename from reg_size, update users.
6773 (parse_trace_status): New function.
6774 (tfile_interp_line): New function.
6775 (disconnect_or_stop_tracing): Ensure current trace
6776 status before asking what to do.
6777 (stop_reason_names): New global.
6778 (trace_save_command): New command.
6779 (get_uploaded_tp): Move here from remote.c.
6780 (find_matching_tracepoint): Ditto.
6781 (merge_uploaded_tracepoints): New function.
6782 (parse_trace_status): Use stop_reason_names.
6783 (_initialize_tracepoint): Define tsave command.
6784 * target.h (target_ops): New fields to_save_trace_data,
6785 to_upload_tracepoints, to_upload_trace_state_variables,
6786 to_get_raw_trace_data, change to_get_trace_status
6787 to take a pointer to a status struct.
6788 (target_save_trace_data): New macro.
6789 (target_upload_tracepoints): New macro.
6790 (target_upload_trace_state_variables): New macro.
6791 (target_get_raw_trace_data): New macro.
6792 * target.c (update_current_target): Add new methods, change
6793 signature of to_get_trace_status.
6794 * remote.c (hex2bin): Make globally visible.
6796 (remote_download_trace_state_variable): Download name also.
6797 (remote_get_trace_status): Update parameter, use
6799 (remote_save_trace_data): New function.
6800 (remote_upload_tracepoints): New function.
6801 (remote_upload_trace_state_variables): New function.
6802 (remote_get_raw_trace_data): New function.
6803 (remote_start_remote): Use them.
6804 (_initialize_remote_ops): Add operations.
6805 * ax-gdb.c: Include breakpoint.h.
6806 * breakpoint.c (create_tracepoint_from_upload): Use
6807 break_command_really, return tracepoint, warn about unimplemented
6809 * NEWS: Mention trace file addition.
6811 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6813 Fix compilation warning on gcc-3.4.
6814 * exec.c (print_section_info): Move the `displacement' variable
6815 initialization to its declaration.
6817 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6819 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
6822 2010-01-15 Eric Botcazou <botcazou@adacore.com>
6824 "info tasks" broken by typedefs in ATCB type definitions.
6825 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
6826 ada_check_typedef before retrieving the length of the type for
6829 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6831 Do not use name-based lookup for unconstrained packed arrays.
6832 * ada-lang.c (find_parallel_type_by_descriptive_type):
6833 Limit the fallback to name-based lookups to the case where
6834 the type is a constrained packed array.
6836 2010-01-15 Joel Brobecker <brobecker@adacore.com>
6838 Enhance gdb-gdb.py to handle main_type.type_specific.
6839 * gdb-gdb.py: Print the type-specific part of struct main_type.
6841 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6843 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
6844 * configure: Regenerate.
6845 * config.in: Regenerate.
6846 * utils.c: Include sys/resource.h.
6847 (dump_core, can_dump_core): New.
6848 (internal_vproblem): Update the comment. Check can_dump_core while
6849 setting dump_core_p. Replace two abort calls by dump_core calls.
6851 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6852 Eli Zaretskii <eliz@gnu.org>
6854 * NEWS: Document the PIE support.
6856 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6858 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
6859 (check_is_pie_binary, _initialize_linux_tdep): Remove.
6861 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6863 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
6864 Replace exec_entry_point call by bfd_get_start_address.
6866 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6868 Support Valgrind attachments broken by the PIE support.
6869 * auxv.c: Include gdbcore.h.
6870 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
6871 parameters ops, object and annex. Remove their assertions.
6872 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
6873 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
6874 (memory_xfer_auxv): ... here.
6875 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
6877 * procfs.c (procfs_xfer_partial): Likewise.
6878 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
6879 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
6880 (svr4_solib_create_inferior_hook): Conditionalize the
6881 svr4_relocate_main_executable call.
6883 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6885 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
6886 target_section. Find SECT in current_target_sections, gdb_assert it.
6887 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
6889 * symtab.c (lookup_objfile_from_block): Return the binary file instead
6890 of separate debug info file.
6892 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6894 Support PIEs with no symfile_objfile.
6895 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
6896 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
6898 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6900 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
6902 (svr4_static_exec_displacement): ... a new function.
6903 (svr4_exec_displacement): New function.
6904 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
6905 new_offsets using alloca now. Remove variable old_chain and changed.
6906 Call objfile_relocate unconditionally now.
6908 2010-01-14 Doug Evans <dje@google.com>
6910 * gdbtypes.c (arch_flags_type): Fix comment.
6911 * gdbtypes.h (arch_composite_type): Fix comment.
6913 2009-01-14 Tristan Gingold <gingold@adacore.com>
6915 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
6916 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
6917 to symbol_file_add_from_bfd. Add OSO as separate objfile.
6918 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
6919 macho_add_oso_symfile.
6920 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
6922 2010-01-14 Joel Brobecker <brobecker@adacore.com>
6924 Tru64: Dead threads are never deleted.
6925 * dec-thread.c (dec_thread_ptid_is_alive): New function.
6926 (dec_thread_count_gdb_threads): Fix counter increment.
6927 (dec_thread_add_gdb_thread): Fix *listp increment.
6928 (resync_thread_list): Fix bug in deletion of dead threads that
6929 caused all threads to be deleted, instead of just the dead ones.
6931 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
6935 * python/python-internal.h: Add lazy_string_object_type
6937 (create_lazy_string_object, gdbpy_initialize_lazy_string)
6938 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
6939 * python/py-value.c (valpy_lazy_string): New function.
6940 (convert_value_from_python): Add lazy string conversion.
6941 * python/py-prettyprint.c (pretty_print_one_value): Check if
6942 return is also a lazy string.
6943 (print_string_repr): Add lazy string printing branch.
6944 (print_children): Likewise.
6945 * python/py-lazy-string.c: New file. Implement lazy strings.
6946 * python/python.c (_initialize_python): Call
6947 gdbpy_initialize_lazy_string.
6948 * varobj.c (value_get_print_value): Add lazy string printing
6949 branch. Account for encoding.
6950 * c-lang.c (c_printstr): Account for new encoding argument. If
6951 encoding is NULL, find encoding suited for type, otherwise use
6953 * language.h (language_defn): Add encoding argument.
6954 (LA_PRINT_STRING): Likewise.
6955 * language.c (unk_lang_printstr): Update to reflect new encoding
6956 argument to language_defn.
6957 * ada-lang.h (ada_printstr): Likewise.
6958 * c-lang.h (c_printstr): Likewise.
6959 * p-lang.h (pascal_printstr);
6960 * f-lang.c (f_printstr): Likewise.
6961 * m2-lang.c (m2_printstr): Likewise.
6962 * objc-lang.c (objc_printstr): Likewise.
6963 * p-lang.c (pascal_printstr): Likewise.
6964 * scm-lang.c (scm_printstr): Likewise.
6965 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
6967 * ada-valprint.c (ada_printstr): Likewise.
6968 * f-valprint.c (f_val_print): Likewise
6969 * m2-valprint.c (m2_val_print): Likewise.
6970 * p-valprint.c (pascal_val_print): Likewise.
6971 * expprint.c (print_subexp_standard): Likewise.
6972 * valprint.c (val_print_string): Likewise.
6973 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
6974 (SUBDIR_PYTHON_SRCS): Likewise.
6975 (py-lazy-string.o): New rule.
6977 2010-01-13 Doug Evans <dje@google.com>
6979 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
6980 uninitialized" warning from gcc on local `tree'.
6982 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
6984 Implement core awareness.
6986 * bcache.c (compare_ints): Remove
6987 (print_percentage): Use compare_positive_ints.
6988 * defs.h (compare_positive_ints): Declare.
6989 * linux-nat.h (struct lin_lwp): New field core.
6990 (linux_nat_core_of_thread_1): Declare.
6991 * linux-nat.c (add_lwp): Init the 'core' field.
6992 (linux_nat_wait_1): Record the core.
6993 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
6994 (linux_nat_add_target): Register the above.
6995 * linux-thread-db.c (update_thread_core): New.
6996 (thread_db_find_new_threads): Update core information for
6998 * remote.c (struct private_thread_info): New.
6999 (free_private_thread_info, demand_private_info): New.
7000 (PACKET_qXfer_threads, use_osdata_threads): New.
7001 (struct thread_item, threads_parsing_context
7002 (start_thread, end_thread, thread_attributes)
7003 (thread_children, threads_children, threads_elements): New.
7004 (remote_threads_info): Try qXfer:threads before anything
7006 (remote_protocol_packets): Register qXfer:threads.
7007 (remote_open_1): Init use_osdata_threads.
7008 (struct stop_reply): New field 'core'.
7009 (remote_parse_stop_reply): Parse core number.
7010 (process_stop_reply): Record core number.
7011 (remote_xfer_partial): Handle qXfer:threads.
7012 (remote_core_of_thread): New.
7013 (init_remote_ops): Register remote_core_of_thread.
7014 (_initialize_remote): Register qXfer:read.
7015 * target.c (target_core_of_thread): New
7016 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
7017 (struct target_ops): New field to_core_of_threads.
7018 (target_core_of_thread): Declare.
7019 * gdbthread.h (struct thread_info): New field private_dtor.
7020 * thread.c (print_thread_info): Report the core.
7021 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
7022 * utils.c (compare_positive_ints): New.
7023 * features/threads.dtd: New.
7024 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
7025 * mi/mi-main.c (struct collect_cores_data, collect_cores)
7026 (do_nothing, free_vector_of_osdata_items)
7027 (splay_tree_int_comparator, free_splay_tree): New.
7028 (print_one_inferior_data): Implemented printing of selected
7029 inferiors. Collect and print cores.
7030 (output_cores): New.
7031 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
7032 thread groups together with --available.
7034 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7036 * configure: Regenerate (for _STRUCTURED_PROC).
7038 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7040 Delete dead function.
7041 * ada-lang.c (extract_string): Delete. No longer used.
7043 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7045 Fix -Wunused warning in dec-thread.c.
7046 * dec-thread.c (dec_thread_count_gdb_threads)
7047 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
7049 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7051 * ada-valprint.c (ada_print_floating): Remove trailing space.
7053 2010-01-12 Joel Brobecker <brobecker@adacore.com>
7055 Add support for DW_AT_GNAT_descriptive_type.
7056 * gdbtypes.h (enum type_specific_kind): New enum.
7057 (struct main_type) [type_specific_field]: New component.
7058 [type_specific]: Add new component "gnat_stuff".
7059 (struct gnat_aux_type): New type.
7060 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
7061 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
7062 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
7063 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
7064 (TYPE_SPECIFIC_FIELD): New macros.
7065 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
7066 type does not hold any cplus-specific data.
7067 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
7068 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
7069 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
7070 cplus-specific data.
7071 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
7072 Set new component TYPE_SPECIFIC_FIELD (type).
7073 (gnat_aux_default): New constant.
7074 (allocate_gnat_aux_type): New function.
7075 (init_type): Add initialization the type-specific stuff for
7076 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
7077 (print_gnat_stuff): New function.
7078 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
7079 specific data. Adjust code that prints the contents of the
7080 type-specific union using the TYPE_SPECIFIC_FIELD value.
7081 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
7082 the type cplus stuff for Ada types.
7083 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
7084 Error out if these routines are called with an Ada type.
7085 (read_structure_type, read_array_type, read_subrange_type):
7086 Add call to set_descriptive_type.
7087 (set_die_type): Initialize the gnat-specific data if necessary.
7088 (need_gnat_info, die_descriptive_type, set_descriptive_type):
7090 * ada-lang.c (decode_constrained_packed_array_type): Use
7091 decode_constrained_packed_array_type instead of doing a standard
7092 lookup to locate a parallel type.
7093 (find_parallel_type_by_descriptive_type): New function.
7094 (ada_find_parallel_type_with_name): New function.
7095 (ada_find_parallel_type): Reimplement using
7096 ada_find_parallel_type_with_name.
7097 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
7098 to check if type has a cplus stuff.
7099 * linespec.c (total_number_of_methods): Likewise.
7100 * mdebugread.c (new_type): Likewise.
7102 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7104 * NEWS: Document the 0b binary number prefix parsing.
7106 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7108 * objfiles.c (objfile_relocate1): Change the return type to int.
7109 Describe the new return value. Return non-zero if data changed.
7110 (objfile_relocate): New variable changed. Set it. Call
7111 breakpoint_re_set depending on CHANGED.
7113 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7115 Implement binary numbers parsing.
7116 * c-exp.y (parse_number): New case 'b' and 'B'.
7118 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7119 Tristan Gingold <gingold@adacore.com>
7121 * solib.c (info_sharedlibrary_command): Replace
7122 objfile_has_partial_symbols and objfile_has_full_symbols calls by
7123 objfile_has_symbols.
7125 2010-01-10 Joel Brobecker <brobecker@adacore.com>
7127 * NEWS: Document the improvements made to the mips-irix port.
7129 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7131 Fix the documentation of valprint.c:value_print.
7132 * valprint.c (value_print): Update the function description to
7133 mention that the syntax of the output follows the current_language,
7136 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7138 Fix displacement of separate debug info files.
7139 * objfiles.c (objfile_relocate): Rename to ...
7140 (objfile_relocate1): ... here and make it static. Extend the comment.
7141 (objfile_relocate): New function.
7142 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
7143 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
7144 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
7145 allocated using alloca.
7146 * symfile.c (copy_section_addr_info): Remove.
7147 (build_section_addr_info_from_objfile): Make it global. New variables
7148 addr_bit and mask, use them.
7149 * symfile.h (build_section_addr_info_from_objfile): New prototype.
7150 (copy_section_addr_info): Remove.
7152 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7154 Signal unwinder for mips-irix N32.
7155 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
7157 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
7158 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
7159 (SIGCONTEXT_LO_OFF): New macros.
7160 (mips_irix_n32_tramp_frame_init): New function.
7161 (mips_irix_n32_tramp_frame): New static constant.
7162 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
7164 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7166 Breakpoint in shared library does not work on mips-irix.
7167 * procfs.c: #include "observer.h".
7168 (procfs_inferior_created): New function, moving here the code
7169 which unsets the syssgi syscall-exit notifications.
7170 (procfs_create_inferior): Remove the code which unsets the syssgi
7171 syscall-exit notifications. It is too early to do this here.
7172 (_initialize_procfs): Attach the procfs_inferior_created observer.
7174 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7176 Wrong return convention for arrays (mips-irix).
7177 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
7178 128 bits or smaller are returned the same way as structs
7179 and unions of the the same size.
7181 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7183 Cannot set the PC on mips-irix.
7184 * irix5-nat.c (fill_gregset): Check regno against the raw PC
7185 register number, no the cooked one.
7187 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7189 Error while loading core file on mips-irix.
7190 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
7191 if debugging from a core file.
7193 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7195 GDB hangs when attaching to process on mips-irix.
7196 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
7197 attaching to a process.
7199 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7201 Use the correct breakpoint instruction on mips-irix.
7202 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
7203 containing the correct breakpoint instruction to use on mips-irix.
7204 Use it when the osabi is GDB_OSABI_IRIX.
7206 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7208 -Wunused warning in procfs.c (mips-irix only).
7209 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
7210 throughout instead of using praddset and prdelset respectively.
7212 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7214 GDB crash while stepping into function.
7215 * infrun.c (handle_inferior_event): Refetch the current frame
7216 after handling what.main_action, in case that pointer became
7219 2010-01-09 Joel Brobecker <brobecker@adacore.com>
7221 Fix build failure of solaris-hosted cross debuggers.
7222 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
7224 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
7226 Fix build failure on sparc-solaris.
7227 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
7229 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7231 Move some symfile code into subroutines.
7232 * symfile.h (relative_addr_info_to_section_offsets)
7233 (addr_info_make_relative): New prototypes.
7234 * symfile.c (default_symfile_offsets): Move a part to ...
7235 (relative_addr_info_to_section_offsets): ... this new function.
7236 (default_symfile_offsets): Call it.
7237 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
7239 (addr_info_make_relative): ... this new function.
7241 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7243 Add from_tty to solib_create_inferior_hook.
7244 * infcmd.c (post_create_inferior): Move solib_add after
7245 solib_create_inferior_hook. Pass from_tty to
7246 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
7247 0 from_tty and comment why.
7248 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
7249 * linux-nat.c (linux_child_follow_fork): Likewise.
7250 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
7251 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
7253 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
7254 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
7255 * solib-null.c (null_solib_create_inferior_hook): Likewise.
7256 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
7257 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
7258 * solib-som.c (som_solib_create_inferior_hook): Likewise.
7259 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
7260 Pass it to svr4_so_ops.solib_create_inferior_hook.
7261 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
7263 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
7265 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
7267 * solib-target.c (solib_target_solib_create_inferior_hook): New
7269 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
7270 it to ops->solib_create_inferior_hook.
7271 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
7272 Move solib_add after solib_create_inferior_hook, call it now with
7273 from_tty as 0. New comment there.
7274 * solib.h (solib_create_inferior_hook): New parameter from_tty.
7275 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
7278 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
7281 * infrun.c (handle_inferior_event): Use get_thread_regcache
7282 with events ptid, not get_current_regcache.
7284 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7286 GDB crash with empty executable name (MinGW).
7287 * source.c (openp): Add assert that parameter string is not NULL.
7288 if parameter string is an empty string, then return with a failure
7291 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7293 Get rid of support for VAX Floats.
7294 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7295 (ada_vax_float_print_function): Delete.
7296 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
7297 (ada_vax_float_print_function): Delete.
7298 * ada-typeprint.c (print_vax_floating_point_type): Delete.
7299 (ada_print_type): Remove support for VAX floats.
7300 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
7302 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7304 * stabsread.c (read_args): Handle zero arguments.
7306 2009-01-08 Joel Brobecker <brobecker@adacore.com>
7308 Cannot find in-tree libiconv.a after reconfigure.
7309 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
7310 that we can use, then cache the path to this archive.
7311 * configure: Regenerate.
7313 2010-01-07 Stan Shebs <stan@codesourcery.com>
7315 Make tracepoint operations go through target vector.
7316 * target.h (enum trace_find_type): New enum.
7317 (struct target_ops): New fields to_trace_init,
7318 to_download_tracepoint, to_download_trace_state_variable,
7319 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
7320 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
7321 to_set_disconnected_tracing.
7322 (target_trace_init): New macro.
7323 (target_download_tracepoint): New macro.
7324 (target_download_trace_state_variable): New macro.
7325 (target_trace_start): New macro.
7326 (target_trace_set_readonly_regions): New macro.
7327 (target_get_trace_status): New macro.
7328 (target_trace_stop): New macro.
7329 (target_trace_find): New macro.
7330 (target_get_trace_state_variable_value): New macro.
7331 (target_set_disconnected_tracing): New macro.
7332 * target.c (update_current_target): Inherit and set defaults for
7333 tracepoint operations.
7334 * tracepoint.c (default_collect): Make globally visible.
7335 (target_is_remote): Remove, along with all calls.
7336 (tvariables_info): Call target_get_trace_state_variable_value.
7337 (remote_set_transparent_ranges): Remove.
7338 (trace_start_command): Call target_trace_init,
7339 target_download_tracepoint, etc.
7340 (download_tracepoint): Remove.
7341 (trace_stop_command): Simplify.
7342 (stop_tracing): Call target_trace_stop.
7343 (get_trace_status): Call target_get_trace_status.
7344 (trace_status_command): Add case for targets that cannot trace.
7345 (finish_tfind_command): Change to take numerical arguments, call
7347 (trace_find_command): Update call to finish_tfind_command.
7348 (trace_find_pc_command): Ditto.
7349 (trace_find_tracepoint_command): Ditto.
7350 (trace_find_line_command): Ditto.
7351 (trace_find_range_command): Ditto.
7352 (trace_find_outside_command): Ditto.
7353 (set_disconnected_tracing_value): Call
7354 target_set_disconnected_tracing.
7355 * remote.c: Add protocol encoding bits from tracepoint.c.
7356 (trace_error): Move from tracepoint.c.
7357 (remote_get_noisy_reply): Ditto.
7358 (free_actions_list_cleanup_wrapper): Ditto.
7359 (free_actions_list): Ditto.
7360 (remote_trace_init): New function.
7361 (remote_download_tracepoint): New function.
7362 (remote_download_trace_state_variable): New function.
7363 (remote_trace_set_readonly_regions): New function.
7364 (remote_trace_start): New function.
7365 (remote_get_trace_status): New function.
7366 (remote_trace_stop): New function.
7367 (remote_trace_find): New function.
7368 (remote_download_trace_state_variable): New function.
7369 (remote_set_disconnected_tracing): New function.
7370 (init_remote_ops): Add tracepoint operations.
7372 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
7374 2010-01-07 Tristan Gingold <gingold@adacore.com>
7376 * symfile.c (build_section_addr_info_from_objfile): New function.
7377 (symbol_file_add_separate): Don't use offsets from objfile but
7380 2010-01-06 Stan Shebs <stan@codesourcery.com>
7382 Support disconnected tracing.
7383 * infcmd.c (detach_command): Ask whether to stop tracing.
7384 * cli/cli-cmds.c (quit_command): Ditto.
7385 * breakpoint.h (struct breakpoint): New field number_on_target.
7386 * breakpoint.c (create_tracepoint_from_upload): New function.
7387 (get_tracepoint_by_number_on_target): New function.
7388 * remote.c (struct remote): New field disconnected_tracing.
7389 (remote_disconnected_tracing_feature): New function.
7390 (remote_protocol_features): Add DisconnectedTracing.
7391 (struct uploaded_tp): New struct.
7392 (uploaded_tps): New global.
7393 (get_uploaded_tp): New function.
7394 (find_matching_tracepoint): New function.
7395 (remote_get_tracing_state): New function.
7396 (remote_start_remote): Call it.
7397 * tracepoint.c (disconnected_tracing): New global.
7398 (trace_start_command): Initialize number_on_target.
7399 (stop_tracing): New function, split out from...
7400 (trace_stop_command): Call stop_tracing.
7401 (get_trace_status): New function, split out from...
7402 (trace_status_command): Call get_trace_status, add info on
7403 disconnection behavior.
7404 (disconnect_or_stop_tracing): New function.
7405 (finish_tfind_command): Translate from number on target.
7406 (trace_find_tracepoint_command): Translate to number on target.
7407 (send_disconnected_tracing_value): New function.
7408 (set_disconnected_tracing): New function.
7409 (_initialize_tracepoint): Add disconnected-tracing variable.
7410 * NEWS: Mention disconnected tracing.
7412 2010-01-06 Tristan Gingold <gingold@adacore.com>
7414 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
7415 parameter to main_objfile. Iterate on all separate debug objfiles.
7416 * symfile.h (symbol_file_add_separate)
7417 (find_separate_debug_file_by_debuglink): Remove parameter names.
7418 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
7419 (reread_symbols): Use free_objfile_separate_debug.
7420 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
7422 (objfile_separate_debug_iterate, add_separate_debug_objfile)
7423 (free_objfile_separate_debug): New prototypes.
7424 * objfiles.c (objfile_separate_debug_iterate): New function.
7425 (add_separate_debug_objfile, free_objfile_separate_debug): New
7427 (free_objfile): Use free_objfile_separate_debug. Adjust for
7428 multiple separate debug objfile.
7429 (objfile_has_symbols): Adjust comment. Iterate on all separate
7431 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
7433 (lookup_minimal_symbol_text): Ditto.
7434 (lookup_minimal_symbol_by_pc_name): Ditto.
7435 (lookup_minimal_symbol_solib_trampoline): Ditto.
7436 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
7439 2010-01-05 Stan Shebs <stan@codesourcery.com>
7441 Add fast tracepoints.
7442 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
7443 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
7444 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
7445 * breakpoint.c (tracepoint_type): New function.
7446 (ALL_TRACEPOINTS): Use it.
7447 (should_be_inserted): Ditto.
7448 (bpstat_check_location): Ditto.
7449 (print_one_breakpoint_location): Ditto.
7450 (user_settable_breakpoint): Ditto.
7451 (set_breakpoint_location_function): Ditto.
7452 (disable_breakpoints_in_shlibs): Ditto.
7453 (delete_trace_command): Ditto.
7454 (print_it_typical): Add bp_fast_tracepoint case.
7455 (bpstat_what): Ditto.
7456 (print_one_breakpoint_location): Ditto.
7457 (allocate_bp_location): Ditto.
7459 (breakpoint_re_set_one): Ditto.
7460 (disable_command): Ditto.
7461 (enable_command): Ditto.
7462 (check_fast_tracepoint_sals): New function.
7463 (break_command_really): Call it.
7464 (ftrace_command): New function.
7465 (_initialize_breakpoint): Add ftrace command.
7466 * gdbarch.sh (fast_tracepoint_valid_at): New.
7467 * gdbarch.h, gdbarch.c: Regenerate.
7468 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
7469 (i386_gdbarch_init): Use it.
7470 * remote.c (struct remote_state): New field fast_tracepoints.
7471 (PACKET_FastTracepoints): New packet config type.
7472 (remote_fast_tracepoint_feature): New function.
7473 (remote_protocol_features): Add FastTracepoints.
7474 (remote_supports_fast_tracepoints): New function.
7475 (_initialize_remote): Add FastTracepoints.
7476 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
7477 * NEWS: Mention fast tracepoints.
7479 2010-01-06 Joel Brobecker <brobecker@adacore.com>
7481 * gdb-gdb.py: New file.
7483 2010-01-05 Michael Snyder <msnyder@vmware.com>
7485 * infrun.c (handle_inferior_event): Fix typo in comment.
7487 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7489 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
7491 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7493 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7495 (s390-linux32-expedite): Define.
7496 (s390-linux64-expedite): Define.
7497 (s390x-linux64-expedite): Define.
7498 * features/s390-acr.xml: New file.
7499 * features/s390-fpr.xml: New file.
7500 * features/s390-core32.xml: New file.
7501 * features/s390-core64.xml: New file.
7502 * features/s390x-core64.xml: New file.
7503 * features/s390-linux32.xml: New file.
7504 * features/s390-linux64.xml: New file.
7505 * features/s390x-linux64.xml: New file.
7506 * features/s390-linux32.c: New generated file.
7507 * features/s390-linux64.c: New generated file.
7508 * features/s390x-linux64.c: New generated file.
7510 * regformats/s390-linux32.dat: New generated file.
7511 * regformats/s390-linux64.dat: New generated file.
7512 * regformats/s390x-linux64.dat: New generated file.
7513 * regformats/reg-s390.dat: Remove.
7514 * regformats/reg-s390x.dat: Remove.
7516 * s390-nat.c: Include "auxv.h" and <elf.h>.
7517 (HWCAP_S390_HIGH_GPRS): Define if undefined.
7518 (s390_target_wordsize): New function.
7519 (s390_auxv_parse): Likewise.
7520 (s390_get_hwcap): Likewise.
7521 (s390_read_description): Likewise.
7522 (_initialize_s390_nat): Install s390_auxv_parse and
7523 s390_read_description.
7525 * s390-tdep.c: Include "features/s390-linux32.c",
7526 "features/s390-linux64.c", and "features/s390x-linux64.c".
7527 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
7528 (s390_register_call_saved): New function.
7529 (s390_register_name): Remove.
7530 (s390_register_type): Remove.
7531 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
7532 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
7533 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
7534 (s390_pseudo_register_name): New function.
7535 (s390_pseudo_register_type): New function.
7536 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
7537 Handle full GPR pesudos and varying pseudo register numbers.
7538 (s390_pseudo_register_write): Likewise
7539 (s390x_pseudo_register_read): Remove.
7540 (s390x_pseudo_register_write): Likewise.
7541 (s390_register_group): Remove.
7542 (s390_pseudo_register_group): New function.
7543 (s390_regmap_gregset): Add GPR upper halves.
7544 (s390x_regmap_gregset): Likewise.
7545 (s390_regmap_fpregset): Likewise.
7546 (s390_regmap_upper): New global variable.
7547 (s390_upper_regset): New global variable.
7548 (s390_upper_regset_sections): New global variable.
7549 (s390_regset_from_core_section): Handle GPR upper halves.
7550 (s390_core_read_description): New function.
7551 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
7552 register information. Handle varying pseudo register numbers.
7553 (s390_backchain_frame_unwind_cache): Likewise.
7554 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
7555 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
7556 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
7557 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
7558 Handle varying pseudo register numbers.
7559 (s390_unwind_pc): Handle varying pseudo register numbers.
7560 (s390_dwarf2_prev_register): New function.
7561 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
7562 register information. Handle varying pseudo register numbers.
7563 Install s390_dwarf2_prev_register to unwind full GPRs.
7564 (s390_gdbarch_init): Handle target descriptions. Assign varying
7565 pseudo register numbers. Install s390_adjust_frame_regnum.
7566 (_initialize_s390_tdep): Initialize target descriptions.
7568 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
7569 (S390_NUM_REGS): Redefine to include upper half registers.
7570 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
7571 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
7572 (tdesc_s390_linux32): Add declaration.
7573 (tdesc_s390_linux64): Likewise.
7574 (tdesc_s390x_linux64): Likewise.
7576 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7578 * regset.h (struct core_regset_section): Add HUMAN_NAME.
7579 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
7580 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
7581 (ppc_linux_vmx_regset_sections): Likewise.
7582 (ppc_linux_fp_regset_sections): Likewise.
7584 * corelow.c (get_core_register_section): Constify arguments.
7585 (get_core_registers): Use gdbarch_core_regset_sections instead
7586 of hard-coded platform-specific register section names.
7588 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7590 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
7591 a register, assume the least-significant part is used.
7592 (write_pieced_value): Likewise.
7594 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7596 * printcmd.c: Include "arch-utils.h".
7597 (do_one_display): Re-parse expression if current architecture changed.
7599 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7600 Joel Brobecker <brobecker@adacore.com>
7602 * gdbtypes.c (check_typedef): New comment on type length.
7603 * value.c (allocate_value_lazy): Remove the unused atype variable. New
7604 comment on type length.
7605 (value_primitive_field): Keep the original TYPE value, new comment.
7607 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7609 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
7610 p_start. Change != comparisons to > and < comparisons.
7612 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7614 * cli/cli-script.c (process_next_line): Check P2 overrun.
7616 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7618 Update the copyright hearder to add year 2010 for most GDB files.
7620 2009-01-01 Joel Brobecker <brobecker@adacore.com>
7622 Fix build failure in inf-ptrace.c.
7623 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
7625 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7627 * top.c (print_gdb_version): Update copyright year.
7629 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7631 Fix break *FUN'address thread NUM.
7632 * ada-lex.l (task): Expand rule to also match the thread keyword.
7634 2010-01-01 Joel Brobecker <brobecker@adacore.com>
7636 Fix break *FUN'address task NUM.
7637 * ada-lex.l (task): New rule.
7638 * ada-lang.c (valid_task_id): Make sure the Ada task list has
7639 been built before using it.
7641 For older changes see ChangeLog-2009.
7647 version-control: never