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