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