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