* ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6ab12e0f
PA
12010-12-28 Pedro Alves <pedro@codesourcery.com>
2
3 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
4 collect a user register.
5
175ff332
HZ
62010-12-28 Hui Zhu <teawater@gmail.com>
7
8 * gdbarch.sh (ax_pseudo_register_collect,
9 ax_pseudo_register_push_stack): new callbacks.
10 (agent_expr): Forward declare.
11 * gdbarch.h, gdbarch.c: Regenerate.
12 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
13 * ax-general.c (user-regs.h): New include.
14 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
15 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
16 * mips-tdep.c (ax.h): New include.
17 (mips_ax_pseudo_register_collect,
18 mips_ax_pseudo_register_push_stack): New functions.
19 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
20 mips_ax_pseudo_register_push_stack.
21
f32bf4a4
YQ
222010-12-28 Yao Qi <yao@codesourcery.com>
23
24 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
25
f73b1357
JB
262010-12-28 Joel Brobecker <brobecker@adacore.com>
27
28 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
29 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
30 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
31 target_acknowledge_created_inferior.
32 * inf-ttrace.c (inf_ttrace_him): Likewise.
33 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
34 field.
35 (target_acknowledge_created_inferior): Delete.
36 * target.c (update_current_target): Remove setting of
37 to_acknowledge_created_inferior field. Do default value for that
38 field either.
39 (debug_to_acknowledge_created_inferior): Delete.
40 (setup_target_debug): Remove setting of
41 current_target.to_acknowledge_created_inferior.
42
128070bb
PA
432010-12-27 Pedro Alves <pedro@codesourcery.com>
44
45 gdb/
46 * breakpoint.c (breakpoint_restore_shadows): When looking for the
47 location with the lowest address that overlaps the memory range we
48 want to restore shadows for, account for multiple locations at the
49 same address.
50
35df4500
TJB
512010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
52
53 Code cleanup - renaming.
54 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
55 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
56 variables.
57
6229fbea 582010-12-27 Kevin Buettner <kevinb@redhat.com>
35df4500 59 Hui Zhu <teawater@gmail.com>
6229fbea
HZ
60
61 * mips-tedp.c (mips_register_name): Add comments.
62
621c6d5b
YQ
632010-12-23 Yao Qi <yao@codesourcery.com>
64
65 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
66 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
67 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
68 (arm_analyze_load_stack_chk_guard): New.
69 (arm_skip_stack_protector): New.
70 (arm_skip_prologue): Adjust post_prologue_pc by
71 arm_skip_stack_protector.
72
81ec3cce 73
0e8708c7
YQ
742010-12-23 Yao Qi <yao@codesourcery.com>
75
76 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
77 set_gdbarch_deprecated_fp_regnum.
78
8fa067af
MK
792010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
80
81 * inferior.c (remove_inferior_command): Don't remove an active inferior.
82 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
83
a7658b96
TT
842010-12-21 Tom Tromey <tromey@redhat.com>
85
86 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
87
54483882
YQ
882010-12-20 Yao Qi <yao@codesourcery.com>
89
90 * arm-tdep.c (arm_register_reggroup_p): New.
91 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
92 register_reggroup_p.
93
8ab03ccb
YQ
942010-12-20 Yao Qi <yao@codesourcery.com>
95
96 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
97 * features/arm-with-iwmmxt.c: Regenerate.
98 * features/arm-with-neon.c: Regenerate.
99 * features/arm-with-vfpv2.c: Regenerate.
100 * features/arm-with-vfpv3.c: Regenerate.
101
57bf2d7e
MK
1022010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
103
104 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
105 (get_other_inferior): New.
106
b3422a0d
MK
1072010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
108
109 * python/py-progspace.c (py_free_pspace): Obtain arch another
110 way to avoid dereferencing a null pointer.
111
5f2302ab
MS
1122010-12-17 Michael Snyder <msnyder@vmware.com>
113
114 * utils.c (do_my_cleanups): Comment fix-up.
115
930bd0e0
KB
1162010-12-17 Kevin Buettner <kevinb@redhat.com>
117
118 * mips-tdep.c (make_mips16_addr): New function.
119 (mips_elf_make_msymbol_special): Don't set the low bit in the
120 symbol's address.
121 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
122 indicating mips16 address, if present.
123 (mips_write_pc): Set bit indicating mips16 address when in a mips16
124 function.
125 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
126 but for each function pointer argument to inferior function call.
127
900c7f9d
TT
1282010-12-17 Tom Tromey <tromey@redhat.com>
129
130 * psympriv.h (struct partial_symtab) <readin>: Move field
131 earlier.
132
ee51a8c7
KB
1332010-12-16 Kevin Buettner <kevinb@redhat.com>
134
135 * mips-tdep.c (mips_convert_register_float_case_p)
136 (mips_convert_register_gpreg_case_p): New functions.
137 (mips_convert_register_p): Invoke new functions above.
138 (mips_register_to_value): Add case for fetching value shorter
139 than 64 bits from a 64-bit register.
140 (mips_value_to_register): Add case for storing value shorter
141 than 64 bits into a 64-bit register.
142
fa595c27
TT
1432010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
144
145 * python/py-value.c (value_object_type) <tp_flags>: Add
146 Py_TPFLAGS_BASETYPE.
147
448a92bf
MF
1482010-12-16 Mike Frysinger <vapier@gentoo.org>
149
150 * NEWS: Mention new sim --map-info flag.
151
fc1a9d6e
DE
1522010-12-15 Doug Evans <dje@google.com>
153
154 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
155 "save gdb-index" command.
156
5b79abe7
TT
1572010-12-15 Tom Tromey <tromey@redhat.com>
158
159 * infrun.c (save_infcall_control_state): Handle the
160 exception-resume breakpoint.
161 (restore_infcall_control_state): Likewise.
162 (discard_infcall_control_state): Likewise.
163
8bdf35dc
KB
1642010-12-15 Kevin Buettner <kevinb@redhat.com>
165
166 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
167 cooked values that are being transferred to 64-bit raw registers.
168 (mips_pseudo_register_read): Revise to preserve symmetry with
169 mips_pseudo_register_write().
170
45ccdddc
TT
1712010-12-15 Greg Watson <g.watson@computer.org>
172
173 * f-exp.y (yylex): Check entire token against keywords.
174
a86caf66
DE
1752010-12-15 Doug Evans <dje@google.com>
176
177 Rename "maint set python auto-load" to "set auto-load-scripts".
178 * NEWS: Mention it.
179 * python/py-auto-load.c (auto_load_scripts): Renamed from
180 gdbpy_auto_load.
181 (load_auto_scripts_for_objfile): Update.
182 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
183 "set auto-load-scripts".
184
a8852dc5
KB
1852010-12-14 Kevin Buettner <kevinb@redhat.com>
186
187 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
188 than unsigned, values in registers.
189
b6c882c7
L
1902010-12-14 Ken Werner <ken.werner@de.ibm.com>
191
192 * valops.c (value_one): Use get_array_bounds to compute the number
193 of array elements instead of dividing the length of the array by the
194 length of the element types.
195 * valarith.c (value_complement, value_neg): Likewise.
196
043b6510
JB
1972010-12-14 Joel Brobecker <brobecker@adacore.com>
198
199 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
200 and __fp_scr respectively throughout.
201 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
202 Python using GCC on IRIX.
203 * configure: Regenerate.
204
c6490bf2
KB
2052010-12-13 Kevin Buettner <kevinb@redhat.com>
206
207 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
208 when attaching, on the names in bkpt_names: _start, __start, and
209 main.
210
0914bcdb
SS
2112010-12-12 Stan Shebs <stan@codesourcery.com>
212
213 * value.c (value_of_internalvar): Add case for trace state
214 variables.
215
7b9f3c50
DE
2162010-12-12 Doug Evans <dje@google.com>
217
218 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
219 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
220 section. Delete members lines full_names. Rename read_lines to
221 no_file_data.
222 (quick_file_names): New struct.
223 (hash_file_name_entry, eq_file_name_entry): New functions.
224 (delete_file_name_entry, create_quick_file_names_table): New functions.
225 (dwarf2_read_index): Initialize quick_file_names_table.
226 (dw2_get_file_names): Renamed from dw2_require_line_header.
227 Return pointer to quick_file_names entry. All callers updated.
228 (dw2_get_real_path): Renamed from dw2_require_full_path.
229 Replace per_cu arg with pointer to quick_file_names entry.
230 All callers updated.
231 (dw2_free_cached_file_names): New function.
232 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
233 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
234 the OBJF_READNOW case.
235 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
236
1583e7ea 2372010-12-12 Mark Kettenis <kettenis@gnu.org>
89fa5cc8
MK
238
239 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
240 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
241
7a58cce8
MK
2422010-12-12 Mark Kettenis <kettenis@gnu.org>
243
244 * sparc-tdep.c: Fix typo in comment.
245
ae2de4f8
DE
2462010-12-10 Doug Evans <dje@google.com>
247
248 * dwarf2read.c: Whitespace cleanup, plus comment additions.
249 No code changes.
250
66cb8159
TT
2512010-12-10 Tom Tromey <tromey@redhat.com>
252
253 * NEWS: Document exception-handling change.
254
30a7f059
MK
2552010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
256
257 * mi/mi-parse.c (mi_parse): Wrong error message.
258
ad727bb2
DE
2592010-12-09 Doug Evans <dje@google.com>
260
261 * symfile.h (quick_symbol_functions): Clarify usage of
262 map_symbol_filenames.
263
305aeedc
TT
2642010-12-09 Tom Tromey <tromey@redhat.com>
265
266 * mi/mi-parse.h (mi_parse): Update.
267 * mi/mi-parse.c (mi_parse_cleanup): New function.
268 (mi_parse): Add 'token' argument. Throw exception on error.
269 * mi/mi-main.c (mi_print_exception): New function.
270 (mi_execute_command): Use mi_print_exception. Catch exceptions
271 from mi_parse.
272
186c406b
TT
2732010-12-09 Tom Tromey <tromey@redhat.com>
274
275 PR c++/9593:
276 * thread.c (clear_thread_inferior_resources): Call
277 delete_longjmp_breakpoint.
278 * infrun.c (handle_inferior_event): Handle exception breakpoints.
279 (handle_inferior_event): Likewise.
280 (insert_exception_resume_breakpoint): New function.
281 (check_exception_resume): Likewise.
282 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
283 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
284 (step_1): Set thread's initiating frame.
285 (until_next_continuation): New function.
286 (until_next_command): Support exception breakpoints.
287 (finish_command_continuation): Delete longjmp breakpoint.
288 (finish_forward): Support exception breakpoints.
289 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
290 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
291 bp_exception_master>: New constants.
292 (struct bpstat_what) <is_longjmp>: New field.
293 (set_longjmp_breakpoint): Update.
294 * breakpoint.c (create_exception_master_breakpoint): New function.
295 (update_breakpoints_after_exec): Handle bp_exception_master. Call
296 create_exception_master_breakpoint.
297 (print_it_typical): Handle bp_exception_master, bp_exception.
298 (bpstat_stop_status): Handle bp_exception_master.
299 (bpstat_what): Handle bp_exception_master, bp_exception,
300 bp_exception_resume.
301 (bptype_string): Likewise.
302 (print_one_breakpoint_location): Likewise.
303 (allocate_bp_location): Likewise.
304 (set_longjmp_breakpoint): Handle exception breakpoints. Change
305 interface.
306 (delete_longjmp_breakpoint): Handle exception breakpoints.
307 (mention): Likewise.
308 (struct until_break_command_continuation_args) <thread_num>: New
309 field.
310 (until_break_command_continuation): Call
311 delete_longjmp_breakpoint.
312 (until_break_command): Support exception breakpoints.
313 (delete_command): Likewise.
314 (breakpoint_re_set_one): Likewise.
315 (breakpoint_re_set): Likewise.
316
1ef75ecc
DE
3172010-12-08 Doug Evans <dje@google.com>
318
4e4666e6
DE
319 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
320
73e2eb35
DE
321 * gdbtypes.c (check_typedef): Tweak comment.
322
0a5429f6
DE
323 PR symtab/12302
324 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
325 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
326 (struct addrmap_index_data): New struct.
327 (add_address_entry): Remove arg `pst', new args `start', `end'.
328 (add_address_entry_worker, write_address_map): New functions.
329 (write_psymtabs_to_index): Address table generation moved to
330 write_address_map. Build a table mapping psymtab to CU index
331 to pass to it.
332
7e17e088
DE
333 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
334 name to perror.
335
d4637a04
DE
336 * symfile.h (quick_symbol_functions): Clarify usage of
337 expand_symtabs_with_filename.
338 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
339 comp units, ignore type units.
340
1ef75ecc
DE
341 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
342
aae1c79a
DE
3432010-12-07 Doug Evans <dje@google.com>
344
74dd2ca6
DE
345 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
346 gdb_realpath.
347
aae1c79a
DE
348 PR python/12227
349 * NEWS: Mention -data-directory.
350 * main.c (captured_main): Recognize -data-directory.
351
8e0e408a
MK
3522010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
353
354 * mi/mi-parse.c (mi_parse): Missing else.
355
97fc68fe
MM
3562010-12-04 Masaki Muranaka <monaka@monami-software.com>
357
358 * configure.tgt: Accept microblaze*-*-linux* for linux target
359 and microblaze*-*-* for as target.
360
d03a3acf
KS
3612010-12-02 Keith Seitz <keiths@redhat.com>
362
363 * linespec.c (find_method): Move name canonicalization outside
364 the loop.
365 Be paranoid and use a cleanup.
366
148c11bf
DE
3672010-12-01 Doug Evans <dje@google.com>
368
369 * dwarf2read.c (save_gdb_index_command): Add comment.
370
4aac0db7
UW
3712010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
372
373 * valops.c (value_assign): Returned value is never lazy. If a
374 C++ class type is returned, fix incorrect enclosing type / embedded
375 offset. If internal variable is returned, allocate new internalvar
376 value using value_of_internalvar.
377
378 * NEWS: Document changes in behavior of "print x = 0" and similar
379 expressions.
380
4e04c971
DE
3812010-11-29 Doug Evans <dje@google.com>
382
383 * python/lib/gdb/printing.py (register_pretty_printer): Change
384 printer-name:subprinter-name to printer-name;subprinter-name.
385 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
386 Ditto.
387 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
388
8cf6f0b1
TT
3892010-11-29 Tom Tromey <tromey@redhat.com>
390
391 * opencl-lang.c (lval_func_check_synthetic_pointer): New
392 function.
393 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
394 New fields.
395 (value_bits_synthetic_pointer): Declare.
396 * value.c (value_bits_synthetic_pointer): New function.
397 * valprint.c (valprint_check_validity): Handle synthetic
398 pointers.
399 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
400 * valarith.c (value_ptradd): Use set_value_component_location.
401 * p-valprint.c (pascal_object_print_value_fields): Handle
402 synthetic pointers.
403 * jv-valprint.c (java_print_value_fields): Handle synthetic
404 pointers.
405 * dwarf2read.c (dwarf_stack_op_name): Add
406 DW_OP_GNU_implicit_pointer.
407 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
408 arguments. Handle location lists.
409 (fill_in_loclist_baton): New function.
410 (dwarf2_symbol_mark_computed): Use it.
411 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
412 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
413 arguments.
414 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
415 find_location_expression. No longer static. Update all callers.
416 (dwarf_expr_frame_pc): New function.
417 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
418 all callers.
419 (struct piece_closure) <per_cu>: New field.
420 (allocate_piece_closure): Add per_cu argument.
421 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
422 (check_pieced_value_bits): Remove validity argument, add check_for
423 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
424 (check_pieced_value_validity, check_pieced_value_invalid):
425 Update.
426 (check_pieced_synthetic_pointer): New function.
427 (get_frame_address_in_block_wrapper): New function.
428 (indirect_pieced_value): New function.
429 (pieced_value_funcs): Update.
430 (invalid_synthetic_pointer): New function.
431 (dwarf2_evaluate_loc_desc_full): Rename from
432 dwarf2_evaluate_loc_desc. Add byte_offset argument.
433 (dwarf2_evaluate_loc_desc): Rewrite.
434 (dwarf2_loc_desc_needs_frame): Set new field on context.
435 (get_ax_pc): New function.
436 (disassemble_dwarf_expression): Handle
437 DW_OP_GNU_implicit_pointer.
438 * dwarf2expr.h (enum dwarf_value_location)
439 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
440 (struct dwarf_expr_context) <get_frame_pc>: New field.
441 (struct dwarf_expr_piece) <v.ptr>: New field.
442 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
443 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
444 * dwarf2-frame.c (no_get_frame_pc): New function.
445 (execute_stack_op): Set new field on context.
446 * cp-valprint.c (cp_print_value_fields): Handle synthetic
447 pointers.
448
94b6973e
PM
4492010-11-29 Phil Muldoon <pmuldoon@redhat.com>
450
451 PR python/12199
452
453 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
454
8358c15c
JK
4552010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
456
457 Fix step_resume_breakpoint unsaved during an infcall.
458 * gdbthread.h (struct thread_control_state): Move here field
459 step_resume_breakpoint ...
460 (struct thread_info): ... from here.
461 * infrun.c (save_infcall_control_state): Reset
462 control.step_resume_breakpoint to NULL.
463 (restore_infcall_control_state, discard_infcall_control_state): Delete
464 control.step_resume_breakpoint.
465 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
466 the moved field.
467
16c381f0
JK
4682010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
469
470 Rename and move inferior_thread_state and inferior_status.
471 * gdbthread.h (struct thread_control_state): New struct, move fields
472 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
473 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
474 stop_step and stop_bpstat here from struct thread_info.
475 (struct thread_suspend_state): New struct, move field stop_signal here
476 from struct thread_info.
477 (struct thread_info): Move the fields above from this struct.
478 * inferior.h: Move the inferior_thread_state and inferior_status
479 declarations comment to their definitions at infrun.c.
480 (struct inferior_control_state): New struct, move field stop_soon from
481 struct inferior here.
482 (struct inferior_suspend_state): New empty struct.
483 (struct inferior): New fields control and suspend. Move out field
484 stop_soon.
485 * infrun.c (struct inferior_thread_state): Rename to ...
486 (infcall_suspend_state): ... here. Replace field stop_signal by
487 fields thread_suspend and inferior_suspend.
488 (save_inferior_thread_state): Rename to ...
489 (save_infcall_suspend_state): ... here. New variable inf. Update the
490 code for new fields.
491 (restore_inferior_thread_state): Rename to ...
492 (restore_infcall_suspend_state): ... here. New variable inf. Update
493 the code for new fields.
494 (do_restore_inferior_thread_state_cleanup): Rename to ...
495 (do_restore_infcall_suspend_state_cleanup): ... here.
496 (make_cleanup_restore_inferior_thread_state): Rename to ...
497 (make_cleanup_restore_infcall_suspend_state): ... here.
498 (discard_inferior_thread_state): Rename to ...
499 (discard_infcall_suspend_state): ... here.
500 (get_inferior_thread_state_regcache): Rename to ...
501 (get_infcall_suspend_state_regcache): ... here.
502 (struct inferior_status): Rename to ...
503 (struct infcall_control_state): ... here. Replace fields
504 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
505 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
506 stop_step, stop_bpstat and stop_soon by fields thread_control and
507 inferior_control.
508 (save_inferior_status): Rename to ...
509 (save_infcall_control_state): ... here. Update the code for new
510 fields.
511 (restore_inferior_status): Rename to ...
512 (restore_infcall_control_state): ... here. Update the code for new
513 fields.
514 (do_restore_inferior_status_cleanup): Rename to ...
515 (do_restore_infcall_control_state_cleanup): ... here.
516 (make_cleanup_restore_inferior_status): Rename to ...
517 (make_cleanup_restore_infcall_control_state): ... here.
518 (discard_inferior_status): Rename to ...
519 (discard_infcall_control_state): ... here.
520 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
521 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
522 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
523 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
524 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
525 references to the moved fields and renamed functions.
526
35515841
JK
5272010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
528
529 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
530 the comment.
531 (save_inferior_thread_state): Reset tp->stop_signal.
532
fef8420a
JK
5332010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
534
7ea14533
JK
535 * infcall.c (call_function_by_hand): Remove variable
536 caller_state_cleanup.
fef8420a 537
f5a8e22b
MK
5382010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
539
540 PR breakpoints/12217
541
542 * breakpoint.c (is_marker_spec): Check for NULL.
543
50389644
PA
5442010-11-25 Pedro Alves <pedro@codesourcery.com>
545
546 * breakpoint.h: No longer include python.h or python-internal.h.
547 (struct breakpoint_object): Forward declare.
548 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
549 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
550 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
551 PyObject pointer.
552 (gdbpy_breakpoint_created): Remove casts around py_bp_object
553 accesses.
554
50a99728
JB
5552010-11-24 Joel Brobecker <brobecker@adacore.com>
556
557 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
558 only if HAVE_ELF is defined.
559
d82142e2
JK
5602010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
561
a418ecb5
JK
562 Code cleanup.
563 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
564 (save_inferior_status) <stepping_over_breakpoint>
565 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
566 trap_expected.
567 (struct inferior_status) <step_resume_break_address>: Remove.
568
5692010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
570
571 Code cleanup.
d82142e2
JK
572 * infrun.c (struct inferior_status, save_inferior_status)
573 (restore_inferior_status): Group and reorder the fields, comment their
574 groups.
575
2edb89d3
JK
5762010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
577
578 Code cleanup.
579 * dictionary.c
580 (struct dict_vector) <iter_match_first, iter_match_next>
581 (iter_match_first_hashed, iter_match_next_hashed)
582 (iter_match_first_linear, iter_match_next_linear)
583 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
584 (iter_match_next_hashed, iter_match_first_linear)
585 (iter_match_next_linear): Use symbol_compare_ftype.
586 * dictionary.h: Include symfile.h.
587 (dict_iter_match_first, dict_iter_match_next): Use
588 symbol_compare_ftype.
589 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
590 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
591 (map_matching_symbols_psymtab): Likewise.
592 * symfile.h (symbol_compare_ftype): New typedef.
593 (struct quick_symbol_functions) <map_matching_symbols): Use
594 symbol_compare_ftype.
595
5ae98d25
TT
5962010-11-23 Tom Tromey <tromey@redhat.com>
597
39037522
TT
598 * configure: Rebuild.
599 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
600
6012010-11-19 Tom Tromey <tromey@redhat.com>
602
5ae98d25
TT
603 * Makefile.in (SUBDIRS): Add doc.
604 * configure: Rebuild.
605 * configure.ac: Don't configure in doc. Create doc/Makefile.
606
ea976c60
PM
6072010-11-23 Phil Muldoon <pmuldoon@redhat.com>
608
609 PR python/12212
610
611 * python/py-inferior.c (find_thread_object): Check if PIDGET
612 returns 0.
613
614010-11-22 Joel Brobecker <brobecker@adacore.com>
d94e4f4f
JB
615
616 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
617
96dbd2c1
JB
6182010-11-22 Joel Brobecker <brobecker@adacore.com>
619
620 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
621 Return the original type if the main type portions match rather
622 than when the type themselves match.
623
27f2a97b
JB
6242010-11-22 Joel Brobecker <brobecker@adacore.com>
625
626 * ada-lang.c (ada_template_to_fixed_record_type_1):
627 For dynamic fields, check the field size against the maximum
628 object size.
629
1324a0d9
JB
6302010-11-22 Joel Brobecker <brobecker@adacore.com>
631
632 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
633 function.
634 (mips_irix_n32_stack_tramp_frame): New static global.
635 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
636 list of unwinder.
637
09e7f15b
JB
6382010-11-22 Jerome Guitton <guitton@adacore.com>
639
640 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
641 ATCB symbols.
642
3a867c22
JB
6432010-11-22 Joel Brobecker <brobecker@adacore.com>
644
645 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
646 if type1 is a typedef.
647
df30368d
JB
6482010-11-22 Joel Brobecker <brobecker@adacore.com>
649
650 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
651 "_finalizer" to the list.
652
4889bbbc
JB
6532010-11-22 Joel Brobecker <brobecker@adacore.com>
654
655 * symfile.c: Remove all "#if 0"/"#endif" blocks.
656
0d14a781
JB
6572010-11-22 Joel Brobecker <brobecker@adacore.com>
658
659 * symfile.c: Add missing second space after period in various comments.
660
feb864b7
JB
6612010-11-22 Joel Brobecker <brobecker@adacore.com>
662
663 * ada-typeprint.c (print_array_type): Fix formatting in comment.
664 (print_selected_record_field_types): Fix formatting in function
665 documentation.
666
04f9d4d0
JB
6672010-11-22 Joel Brobecker <brobecker@adacore.com>
668
669 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
670 in name of "show ravenscar" prefix command name.
671
b64edec4
JB
6722010-11-22 Joel Brobecker <brobecker@adacore.com>
673
674 * ravenscar-thread.c (show_ravenscar_task_switching_command):
675 Add missing '\n' in output.
676
7f39f34a
JB
6772010-11-22 Joel Brobecker <brobecker@adacore.com>
678
679 * ravenscar-thread.c (running_thread_name): Change value.
680 (read_thread_id): Remove advance declaration.
681 (get_running_thread_msymbol): New function.
682 (has_ravenscar_runtime): Use get_running_thread_msymbol to
683 compute msym_running_thread.
684 (get_running_thread_id): Renames read_thread_id. Slight modifications
685 to not take any argument anymore, using get_running_thread_msymbol
686 to determine which symbol to use instead.
687 (ravenscar_running_thread): Use get_running_thread_id instead of
688 read_thread_id.
689
f3890d59
JB
6902010-11-22 Joel Brobecker <brobecker@adacore.com>
691
692 * ravenscar-sparc-thread.c (supply_register_at_address):
693 Fix passing of buf in call to regcache_raw_supply.
694
594e8718
JK
6952010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
696
697 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
698
7ba86c9e
TT
6992010-11-22 Tom Tromey <tromey@redhat.com>
700
701 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
702
1bfda48e
KS
7032010-11-19 Keith Seitz <keiths@redhat.com>
704
705 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
706 Remove extraneous '/' after $(DESTDIR).
707 (PYTHON_INSTALL_DIR): Likewise.
708
3f1eff0a
JK
7092010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
710
711 Fix stale memory references.
712 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
713 xfree, new comment.
714
954d8cae
TT
7152010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
716 Tom Tromey <tromey@redhat.com>
717
718 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
719 (.PHONY): Remove for .y outputs.
720
d53d4ac5
TT
7212010-11-19 Will Drewry <wad@google.com>
722 Tavis Ormandy <taviso@google.com>
723 Jan Kratochvil <jan.kratochvil@redhat.com>
724
725 * dwarf2read.c (decode_locdesc): Enforce location description stack
726 boundaries.
727
77bc0675
PM
7282010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
729
730 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
731 instruction is found.
732
ba19bb4d
TT
7332010-11-17 Tom Tromey <tromey@redhat.com>
734
735 * value.c (value_entirely_optimized_out): Check the
736 'check_any_valid' field.
737
19f220c3
JK
7382010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
739
740 * ada-lang.c (modify_general_field): Remove.
741 (make_array_descriptor): Replace all modify_general_field calls by
742 modify_field.
743 * value.c (modify_field): Update comment. New variable bytesize.
744 Normalize BITPOS. Initialize BYTESIZE, use it.
745
87df528e
JK
7462010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
747
748 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
749 elements after xfree.
750
97924a97
TT
7512010-11-16 Tom Tromey <tromey@redhat.com>
752
753 * gdb-add-index.sh: Really remove.
754
9816fde3
JK
7552010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
756
757 Code cleanup.
758 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
759 (init_one_comp_unit): ... this one.
760 (prepare_one_comp_unit): New prototype.
761 (dw2_require_line_header, process_psymtab_comp_unit): Use
762 init_one_comp_unit.
763 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
764 (load_partial_comp_unit): Remove variable attr. Use
765 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
766 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
767 prepare_one_comp_unit.
768 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
769 Use prepare_one_comp_unit.
770 (alloc_one_comp_unit): Rename to ...
771 (init_one_comp_unit): ... here and remove there calloc, new parameter
772 cu.
773 (prepare_one_comp_unit): New function.
774
73c964d6
PM
7752010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
776
777 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
778 possible used of uninitialized variable.
779
74af9197
NF
7802010-11-12 Nathan Froyd <froydnj@codesourcery.com>
781
782 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
783 (rs6000_gdbarch_init): Call it.
784
e52d5016
NF
7852010-11-12 Nathan Froyd <froydnj@codesourcery.com>
786
787 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
788 instructions if debugging an E500 binary.
789
621c8364
TT
7902010-11-12 Tom Tromey <tromey@redhat.com>
791
792 * varobj.c (value_get_print_value): Rearrange. Pass stream to
793 apply_varobj_pretty_printer.
794 * c-lang.c: Include exceptions.h.
795 (c_get_string): Throw MEMORY_ERROR when appropriate.
796 * python/py-prettyprint.c (enum string_repr_result): New.
797 (print_stack_unless_memory_error): New function.
798 (print_string_repr): Change return type. Use
799 print_stack_unless_memory_error.
800 (print_children): Use print_stack_unless_memory_error.
801 (apply_val_pretty_printer): Update. Don't print children if
802 string representation threw an exception.
803 (apply_varobj_pretty_printer): Add 'stream' argument. Use
804 print_stack_unless_memory_error.
805 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
806 globals.
807 (_initialize_python): Initialize them.
808 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
809 gdbpy_convert_exception.
810 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
811 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
812 (gdbpy_convert_exception): Declare.
813 (apply_varobj_pretty_printer): Update.
814 * python/py-utils.c (gdbpy_convert_exception): New function.
815
f1b9e6e7
MK
8162010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
817
818 * mi/mi-main.c (mi_cmd_target_detach): Accept new
819 thread-group id format.
820
74884f7b
JK
8212010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
822
823 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
824
84f4c1fe
PM
8252010-11-11 Phil Muldoon <pmuldoon@redhat.com>
826
827 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
828 NULL.
829 (BPPY_SET_REQUIRE_VALID): Ditto.
830 (bpnum_is_valid): Delete function.
831 (bppy_get_visibility): New function.
832 (bppy_new): Parse for, and validate internal keyword. Pass
833 internal keyword to breakpoint or watchpoint functions.
834 (build_bp_list): New function.
835 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
836 iterate_over_breakpoints.
837 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
838 look-aside vector.
839 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
840 to internal breakpoint chain.
841
842 * breakpoint.c (set_breakpoint_number): New function.
843 (breakpoint_1): Check if breakpoint number is more than zero.
844 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
845 (create_breakpoint_sal): Take a new parameter called internal.
846 Call set_breakpoint_number with internal parameter. Do not
847 mention internal breakpoints. All callers updated.
848 (create_breakpoint): Ditto.
849 (create_breakpoints_sal): Ditto.
850 (watch_command_1): Ditto.
851 (watch_command_wrapper): Take a new parameter called internal.
852 All callers updated.
853 (rwatch_command_wrapper): Ditto.
854 (awatch_command_wrapper): Ditto.
855 (save_breakpoints): Update breakpoint save condition check.
856 (iterate_over_breakpoints): New function.
857 * breakpoint.h: Add conditional python includes. Add py_bp_object
858 and comment to struct breakpoint. Update all callers.
859 * defs.h: Add PyObject definition for GDB builds without Python.
860
4dfea560
DE
8612010-11-10 Doug Evans <dje@google.com>
862
f61a2da7
DE
863 * python/lib/gdb/command/pretty_printers.py
864 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
865
4dfea560
DE
866 * value.c (set_value_enclosing_type): Renamed from
867 value_change_enclosing_type. All callers updated.
868 * value.h (set_value_enclosing_type): Update.
869 * valops.c (value_full_object): Always return a copy if we need to
870 make changes to the input value.
871
a1442452
PA
8722010-11-09 Pedro Alves <pedro@codesourcery.com>
873
874 * breakpoint.c (watch_command_1): Get a pointer of the lazy
875 version of the expression's value, even if reading the value from
876 memory fails. When creating a -location watchpoint, get the
877 value's address from the lazy value pointer.
878
803b5f95
JK
8792010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
880
881 * infrun.c (restore_inferior_thread_state): Use
882 discard_inferior_thread_state to free the data.
883 (discard_inferior_thread_state): xfree also siginfo_data.
884
99e7ae30
DE
8852010-11-05 Doug Evans <dje@google.com>
886
887 Make gdb.parameter("directories") work.
888 New command "set directories".
889 * NEWS: Document them.
890 * source.c (set_directories_command): New function.
891 (show_directories_1): Renamed from show_directories.
892 All callers updated.
893 (show_directories_command): New function.
894 (_initialize_source): Install "directories" as a set/show
895 variable instead of just a show command.
896
f4b8a18d
KW
8972010-11-05 Ken Werner <ken.werner@de.ibm.com>
898
899 * NEWS: Mention OpenCL C language support.
900 * Makefile.in (SFILES): Add opencl-lang.c.
901 (COMMON_OBS): Add opencl-lang.o.
902 * opencl-lang.c: New File
903 * defs.h (enum language): Add language_opencl.
904 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
905 IBM XL C OpenCL compiler.
906 * c-lang.h: Include "parser-defs.h".
907 (evaluate_subexp_c): Declare.
908 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
909 (c_op_print_tab): Add declaration.
910 * eval.c (binop_promote): Handle language_opencl.
911 * c-exp.y: Lookup the primitive types instead of referring to the
912 builtins.
913
075ff26d
JK
9142010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
915
916 Fix configure --enable-plugins --without-python.
917 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
918 * configure: Regenerate.
919
14ad3217
JK
9202010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
921
922 * solib.c (solib_read_symbols): Call exception_fprintf even without
923 FROM_TTY. Print also so->so_name.
924
a9d5ef47
SW
9252010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
926
927 * gdbtypes.h (struct rank): Created subrank.
928 * gdbtypes.c: Initialized subrank for all
929 'BADNESS' constants.
930 (distance_to_ancestor): New function.
931 (is_ancestor): Use distance_to_ancestor.
932 (is_public_ancestor): Ditto.
933 (sum_ranks): Handle subrank.
934 (compare_ranks): Ditto.
935 (rank_one_type): Subrank base conversions.
936
6403aeea
SW
9372010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
938
939 * gdbtypes.h: Create struct rank.
940 Convert all 'BADNESS' macros to const struct rank declarations.
941 (sum_ranks): New function.
942 (compare_ranks): New function.
943 * valops.c (find_oload_champ): Updated.
944 (classify_oload_match): Use compare_ranks.
945 Improved comments.
946 (compare_parameters): Use compare_ranks.
947 * gdbtypes.c: Initialize 'BADNESS' constants.
948 (sum_ranks): New function.
949 (compare_ranks): New function.
950 (compare_badness): Use compare_ranks.
951 (rank_function): Use global constants instead of literals.
952 (rank_one_type): Ditto.
953 Return struct rank.
954 Use sum_ranks.
955
23fa7f66
DE
9562010-11-04 Doug Evans <dje@google.com>
957
958 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
959 (find_pretty_printer): Fix comments.
960
608bcef2
HZ
9612010-11-04 Hui Zhu <teawater@gmail.com>
962
963 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
964
9addb3b9
JB
9652010-11-03 Joel Brobecker <brobecker@adacore.com>
966
967 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
968 and `len' declaration and computation inside block where they
969 are being used.
970
75be741b
JB
9712010-11-03 Joel Brobecker <brobecker@adacore.com>
972
973 * valprint.c (val_print_array_elements): Put back handling of
974 empty arrays.
975
dbc98a8b
KW
9762010-11-03 Ken Werner <ken.werner@de.ibm.com>
977
978 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
979 DIE and set the length of the type.
980 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
981 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
982 return 0 if the corresponding bounds of the type are undefined.
983 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
984 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
985 (val_print_array_elements): Use get_array_bounds to compute the number
986 of array elements instead of dividing the length of the array by the
987 length of the element types.
988 * valarith.c (vector_binop): Likewise.
989 * valops.c (value_cast): Likewise.
990 * c-valprint.c (c_val_print): Likewise.
991 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
992
120bd360
KW
9932010-11-03 Ken Werner <ken.werner@de.ibm.com>
994
995 * valarith.c (value_pos, value_neg, value_complement): Handle
996 vector types.
997 * valops.c (value_one): Likewise.
998
c37f7098
KW
9992010-11-03 Ken Werner <ken.werner@de.ibm.com>
1000
1001 * value.h (value_non_lval): Declare.
1002 * value.c (value_non_lval): New function.
1003 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1004 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1005 non-lvalue.
1006
7b51bc51
DE
10072010-11-02 Doug Evans <dje@google.com>
1008
1009 New python module gdb.printing, and new commands info pretty-printer,
1010 enable pretty-printer, disable pretty-printer.
1011 * NEWS: Mention them.
1012 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1013 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1014 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1015 * python/lib/gdb/printing.py: New file.
1016 * python/lib/gdb/command/__init__.py: New file.
1017 * python/lib/gdb/command/pretty_printers.py: New file.
1018
50c97f38
TT
10192010-11-02 Tom Tromey <tromey@redhat.com>
1020
1021 * NEWS: Mention Guile removal.
1022 * defs.h (enum language) <language_scm>: Remove.
1023 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1024 scm-valprint.c.
1025 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1026 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1027 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1028 Remove.
1029
9dea9163
DE
10302010-11-02 Doug Evans <dje@google.com>
1031
1032 * top.c: #include "python/python.h".
1033 (gdb_init): Add a comment regarding initialize_all_files.
1034 Call finish_python_initialization at the end.
1035 * python/python.h (finish_python_initialization): Declare.
1036 * python/python.c (finish_python_initialization): New function.
1037 (_initialize_python): Move python-implemented initialization there
1038 and call it.
1039 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1040
a289b8f6
JK
10412010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 Revert:
1044 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1045 Pedro Alves <pedro@codesourcery.com>
1046 * gdbthread.h (currently_stepping): New declaration.
1047 * infrun.c (currently_stepping): Remove the forward declaration.
1048 (currently_stepping): Make it global.
1049 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1050 variables tp and step, initialized them. Pass STEP to to_resume.
1051 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1052 * remote.c (currently_stepping_callback): New.
1053 (remote_vcont_resume)
1054 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1055 New variable tp. Call currently_stepping_callback and step such
1056 thread.
1057
2209c807
HZ
10582010-11-01 Hui Zhu <teawater@gmail.com>
1059
1060 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1061
0a2a54b8
HZ
10622010-10-28 Hui Zhu <teawater@gmail.com>
1063
1064 * tracepoint.c (trace_save): Change utp->actions to
1065 utp->step_actions.
1066
284a3db3
JB
10672010-10-26 Joel Brobecker <brobecker@adacore.com>
1068
1069 * (_FILE_OFFSET_BITS): Fix typo in comment.
1070
aed1781d
JB
10712010-10-26 Joel Brobecker <brobecker@adacore.com>
1072
1073 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1074 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1075 (PyEval_ReleaseLock): Define as nothing.
1076
1e3fad37
JB
10772010-10-26 Joel Brobecker <brobecker@adacore.com>
1078
1079 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1080 by call to FILENAME_CMP.
1081
558b1900
JB
10822010-10-26 Joel Brobecker <brobecker@adacore.com>
1083
1084 * dictionary.c (dict_hash): Move assignment out of if condition.
1085
f474844c
JZ
10862010-10-22 Jie Zhang <jie@codesourcery.com>
1087
1088 * Makefile.in (install): Remove dependency of install-only and
1089 recursively invoke make for install-only.
1090 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1091 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1092
8991e9fa
HZ
10932010-10-20 Hui Zhu <teawater@gmail.com>
1094
1095 * tracepoint.c (tfile_get_traceframe_address): Call
1096 extract_signed_integer.
1097 (tfile_trace_find): Call extract_signed_integer and
1098 extract_unsigned_integer. Change data_size to unsigned int.
1099 (tfile_fetch_registers): Call extract_unsigned_integer.
1100 (tfile_xfer_partial): Ditto.
1101 (tfile_get_trace_state_variable_value): Call
1102 extract_signed_integer and extract_unsigned_integer.
1103
21bce120
VP
11042010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1105
1106 * remote.c (remote_get_threadlist): If we got empty
1107 response, bail out immediately, and don't emit any
1108 warnings.
1109
ad8b5167
UW
11102010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1111
1112 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1113 for "mov pc, REG" as well.
1114 (thumb_instruction_changes_pc): Likewise.
1115
79afc5ef
SW
11162010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1117
1118 PR C++/11500:
1119 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1120 * eval.c (evaluate_subexp_standard): Check for overload of
1121 'operator->'.
1122 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1123 (value_x_unop): Ditto.
1124 * valops.c: Include "exceptions.h".
1125 (find_overload_match): Throw NOT_FOUND_ERROR.
1126 (value_struct_elt): Ditto.
1127
cca56ac7
TT
11282010-10-19 Tom Tromey <tromey@redhat.com>
1129
1130 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1131
026ffab7
SW
11322010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1133
1134 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1135 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1136 for conversion.
1137 Make all other conversions illegal.
1138
8c540a24
DE
11392010-10-18 Doug Evans <dje@google.com>
1140
1141 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1142 assumptions of when this case happens. Print "<unnamed typedef>".
1143
3a772aa4
TT
11442010-10-18 Tom Tromey <tromey@redhat.com>
1145
1146 * valprint.c (val_print_string): Pass 'encoding' to
1147 LA_PRINT_STRING.
1148
01f8c46d
JK
11492010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1150
1151 Fix the `stopped language detection' testcase for gcc-4.5.
1152 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1153 * symfile.c (set_initial_language): Move variable filename to a more
1154 inner block. Prefer LANGUAGE_OF_MAIN.
1155 * symtab.c (language_of_main): New variable.
1156 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1157 * symtab.h (language_of_main): New declaration.
1158
8aeb23f3
JK
11592010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1160 Pedro Alves <pedro@codesourcery.com>
1161
1162 * gdbthread.h (currently_stepping): New declaration.
1163 * infrun.c (currently_stepping): Remove the forward declaration.
1164 (currently_stepping): Make it global.
1165 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1166 variables tp and step, initialized them. Pass STEP to to_resume.
1167 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1168 * remote.c (currently_stepping_callback): New.
1169 (remote_vcont_resume)
1170 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1171 New variable tp. Call currently_stepping_callback and step such
1172 thread.
1173
c1e56572
JK
11742010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1175
1176 * infrun.c (follow_exec): Replace symbol_file_add_main by
1177 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1178 breakpoint_re_set.
1179 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1180 clear_symtab_users.
1181 * objfiles.c (free_all_objfiles): Likewise.
1182 * remote-m32r-sdi.c (m32r_load): Likewise.
1183 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1184 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1185 clear_symtab_users with ADD_FLAGS.
1186 (reread_symbols): Use parameter 0 for clear_symtab_users.
1187 (clear_symtab_users): New parameter add_flags. Do not call
1188 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1189 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1190 * symtab.h (clear_symtab_users): New parameter add_flags.
1191
3a182a69
JK
11922010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1193
1194 Fix GCC false warning.
1195 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1196
3a9d7214
PM
11972010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1198
1199 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1200 display of type of method arguments.
1201
09ca9e2e
TT
12022010-10-15 Tom Tromey <tromey@redhat.com>
1203
1204 PR python/11948:
1205 * varobj.c (value_get_print_value): Use val_print_string to print
1206 lazy strings.
1207 * python/py-prettyprint.c (print_string_repr): Use
1208 val_print_string to print lazy strings. Fix cleanup logic.
1209 (print_children): Likewise.
1210 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1211 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1212 Change return type to 'void', add 'addr' argument.
1213 * value.h (val_print_string): Update.
1214 * valprint.c (val_print_string): Add 'encoding' argument.
1215 * printcmd.c (print_formatted): Update.
1216 * p-valprint.c (pascal_val_print): Update.
1217 * m2-valprint.c (print_unpacked_pointer): Update.
1218 (m2_print_array_contents): Likewise.
1219 * jv-valprint.c (java_value_print): Update.
1220 * f-valprint.c (f_val_print): Update.
1221 * c-valprint.c (c_val_print): Update.
1222 * auxv.c (fprint_target_auxv): Update.
1223
92163a10
JK
12242010-10-15 Doug Evans <dje@google.com>
1225 Jan Kratochvil <jan.kratochvil@redhat.com>
1226
1227 PR exp/12117
1228 * gdbtypes.c (check_typedef): Clean up function comment.
1229 Keep track of instance flags as we strip typedefs and create a new
1230 type to preserve them if necessary.
1231 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1232
dae71413
PM
12332010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1234
1235 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1236
7062b0a0
SW
12372010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1238
1239 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1240 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1241 to...
1242 (types_equal): ...here. And changed it as follows:
1243 Outside of typedefs type must be of the same TYPE_CODE.
1244 When compairing two pointers or references they are equal if their
1245 targets are equal.
1246 Correct pointer conversions.
1247
5c3da5ea
PM
12482010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1249
1250 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1251 having fields without names.
1252
577ce03a
TT
12532010-10-13 Tom Tromey <tromey@redhat.com>
1254
1255 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1256
a737a51b
DE
12572010-10-13 Doug Evans <dje@google.com>
1258
0e3509db
DE
1259 New python module gdb.types.
1260 * NEWS: Document it.
1261 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1262 * python/lib/gdb/types.py: New file.
1263
a737a51b
DE
1264 * c-typeprint.c: Whitespace cleanup.
1265 (cp_type_print_method_args): Remove unnecessary forward decl.
1266 (cp_type_print_derivation_info): Ditto.
1267 (c_type_print_varspec_prefix): Mark as static at definition.
1268 (c_type_print_modifier): Fix arg descriptions.
1269
8dc78533
JK
12702010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1271
1272 * python/py-breakpoint.c (bppy_set_condition): New comment.
1273 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1274 failed PyUnicode_Decode.
1275 (cmdpy_completer): Skip element for failed
1276 python_string_to_host_string.
1277 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1278 * python/py-frame.c (frapy_read_var): Extend the function comment.
1279 * python/py-function.c (fnpy_init): Return -1 on failed
1280 python_string_to_host_string.
1281 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1282 the function comment.
1283 (infpy_search_memory): Extend the function comment. Remove the
1284 PyErr_SetString call on already set error state.
1285 * python/py-param.c (set_parameter_value): Extend the function
1286 comment. Return -1 on failed python_string_to_host_string, twice.
1287 (set_attr): Extend the function comment.
1288 (compute_enum_values): Extend the function comment. New variable
1289 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1290 failed python_string_to_host_string.
1291 (get_doc_string): Call gdbpy_print_stack on failed
1292 python_string_to_host_string.
1293 (parmpy_init): Extend the function comment.
1294 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1295 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1296 failed python_string_to_host_string.
1297 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1298 (valpy_binop, valpy_richcompare): Extend the function comment.
1299 * python/python.c
1300 (struct python_env) <error_type, error_value, error_traceback>: New
1301 fields.
1302 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1303 (ensure_python_env): Call PyErr_Fetch.
1304 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1305 failed convert_value_from_python.
1306 (value_get_print_value): Call gdbpy_print_stack on failed
1307 python_string_to_target_python_string.
1308
1bdb0c54
TT
13092010-10-12 Tom Tromey <tromey@redhat.com>
1310
1311 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1312
0526b37a
SW
13132010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1314
1315 * gdbtypes.c (do_is_ancestor): New function.
1316 (is_ancestor): Use do_is_ancestor.
1317 (is_public_ancestor): Use do_is_ancestor.
1318
c1b5be38
PM
13192010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1320
1321 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1322
68770265
MGD
13232010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1324
1325 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1326
64b00020
DE
13272010-10-11 Doug Evans <dje@google.com>
1328
1329 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1330 the address space id too.
1331
43b8e241
JK
13322010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1333
1334 Fix attaching to re-prelinked executables on ppc64.
1335 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1336 initialize it, try to adjust FILESZ field by it.
1337
417b5110
DJ
13382010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1339
1340 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1341 messages if info_verbose.
1342
3bdf2bbd
KW
13432010-10-08 Ken Werner <ken.werner@de.ibm.com>
1344
1345 * valops.c (value_cast): Handle vector types.
1346 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1347
ec3d575a
UW
13482010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1349
1350 * arm-tdep.c (thumb_expand_immediate): New function.
1351 (thumb_instruction_changes_pc): Likewise.
1352 (thumb2_instruction_changes_pc): Likewise.
1353 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1354 prologue parsing. Improved support for optimized code.
1355 (thumb_scan_prologue): Do not reply on line-number information,
1356 use same heuristics as arm_scan_prologue insead.
1357 (skip_prologue_function): Accept functions
1358 "__tls_get_addr" and "__aeabi_read_tp".
1359
4024ca99
UW
13602010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1361 Daniel Jacobowitz <dan@codesourcery.com>
1362
1363 * arm-tdep.c (thumb_in_function_epilogue_p)
1364 (arm_in_function_epilogue_p): New.
1365 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1366 gdbarch_in_function_epilogue_p callback.
1367
855c153f
DE
13682010-10-07 Doug Evans <dje@google.com>
1369
00e14314
DE
1370 * cc-with-index.sh (output_file): Default to a.out.
1371
3876f04e
DE
1372 * dwarf2read.c (mapped_index): Rename member index_table to
1373 symbol_table and index_table_slots to symbol_table_slots.
1374 All uses updated.
1375 (create_symbol_hash_table): Renamed from create_index_table.
1376 All callers updated.
1377 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1378 (write_hash_table): Rename local index_table to symbol_hash_table.
1379
855c153f
DE
1380 * addrmap.h (addrmap_foreach_fn): New typedef.
1381 (addrmap_foreach): Declare.
1382 * addrmap.c (struct addrmap_funcs): New member foreach.
1383 (addrmap_foreach): New function.
1384 (addrmap_fixed_foreach): New function.
1385 (addrmap_fixed_funcs): Update.
1386 (struct mutable_foreach_data): New struct.
1387 (addrmap_mutable_foreach_worker): New function.
1388 (addrmap_mutable_foreach): New function.
1389 (addrmap_mutable_funcs): Update.
1390
1d2a4540
PH
13912010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1392
1393 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1394 more cases.
1395
40658b94
PH
13962010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1397
1398 * ada-lang.c (full_match): Declare.
1399 (ada_match_name): Rename to match_name (we should avoid prefixing static
1400 symbols with "ada_").
1401 (match_name): New name for ada_match_name.
1402 (struct ada_psym_data): Remove and replace with...
1403 (struct match_data): User data for map_matching_symbols.
1404 (ada_add_psyms): Remove.
1405 (aux_add_nonlocal_symbols): New function, used as callback for
1406 map_matching_symbols.
1407 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1408 symbols.
1409 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1410 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1411 Rework to use map_matching_symbols instead of map_ada_symtabs.
1412 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1413 * psymtab.c: Include dependency on dictionary.h.
1414 (match_partial_symbol): New function.
1415 (ada_lookup_partial_symbol): Remove.
1416 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1417 (map_matching_symbols_psymtab): New function.
1418 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1419 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1420
c4d840bd
PH
14212010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1422
1423 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
1424 (wild_match): Change API to be consistent with that of strcmp_iw;
1425 return 0 for a match, and switch operand order.
1426 (full_match): New function.
1427 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1428 matching to allow use of hashing.
1429 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1430 iter_name_next ot iter_match_first, iter_match_next.
1431 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1432 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1433 (iter_name_first_linear): Replace with iter_match_first_linear.
1434 (iter_name_next_linear): Replace with iter_match_next_linear.
1435 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1436 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1437 (dict_iter_match_first): New function.
1438 (dict_iter_match_next): New function.
1439 (dict_hash): New function.
1440 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1441 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 1442
543ecec7
DE
14432010-10-06 Doug Evans <dje@google.com>
1444
1445 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1446
2f608a3a
KW
14472010-10-06 Ken Werner <ken.werner@de.ibm.com>
1448
1449 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1450
aa2e2d8d
DE
14512010-10-06 Doug Evans <dje@google.com>
1452
9c9606fb
DE
1453 * Makefile.in (REQUIRED_SUBDIRS): New var.
1454 (subdir_do): Verify required subdir Makefiles exist.
1455
aa2e2d8d
DE
1456 Create subdir data-directory.
1457 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1458 data-directory/Makefile.in.
1459 (SUBDIRS): Add data-directory.
1460 (all): Remove xml-syscall-copy dependency.
1461 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1462 stamp-syscalls.
1463 (xml-syscall-install): Moved to data-directory/Makefile.in as
1464 install-syscalls.
1465 (install-only): Remove xml-syscall-install dependency.
1466 (all-data-directory): New rule.
1467 (data-directory/Makefile): New rule.
1468 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1469 * configure: Regenerate.
1470 * data-directory/Makefile.in: New file.
1471 * python/lib/gdb/__init__.py: New file.
1472
aa27d0b3
JB
14732010-10-06 Joel Brobecker <brobecker@adacore.com>
1474
1475 Fix ARI warnings in advance_wild_match.
1476 * ada-lang.c (advance_wild_match): Delete local variable t2.
1477 Adjust code accordingly. Minor reformatting.
1478
2844d6b5
KW
14792010-10-06 Ken Werner <ken.werner@de.ibm.com>
1480
1481 * gdbtypes.h (struct main_type): Remove flag_nottext.
1482 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1483 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1484 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1485 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1486 of TYPE_FLAG_NOTTEXT.
1487 (init_type): Remove the initialization of the flag_nottext field.
1488 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1489 TYPE_FLAG_NOTTEXT.
1490 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1491
2fdf6df6
DE
14922010-10-04 Doug Evans <dje@google.com>
1493
ea65fe05
DE
1494 * cc-with-index.sh: New file.
1495
2fdf6df6
DE
1496 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1497 function comment.
1498 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1499 (create_cus_from_index, create_addrmap_from_index): Ditto.
1500 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1501 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1502 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
1503 (eq_strtab_entry, create_strtab, add_string): Ditto.
1504 (hash_strtab_entry): Ditto.
1505 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1506 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1507 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1508 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1509 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1510 (write_psymtabs_to_index): Ditto.
2fdf6df6 1511
40bc484c
JB
15122010-10-04 Joel Brobecker <brobecker@adacore.com>
1513
1514 * ada-lang.c: #include "value.h".
1515 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1516 arguments. Implement using value_allocate_space_in_inferior
1517 instead of allocating memory from the stack.
1518 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1519 calls to ensure_lval.
1520 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1521 calls to make_array_descriptor and ensure_lval.
1522 * ada-lang.h (ada_convert_actual): Update declaration.
1523 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1524
f17618ea
DE
15252010-10-04 Doug Evans <dje@google.com>
1526
1527 * python/python.c (_initialize_python): Define new function
1528 GdbSetPythonDirectory in python. Use it to update sys.path and
1529 gdb.__path__.
1530
83e3a93c
PH
15312010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1532
1533 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1534 incorporating and generalizing print_record_field_types.
1535 (print_record_field_types): Change return value and update comment.
1536 Re-implement using print_selected_record_field_types.
1537 (print_choices): Print "=>" here.
1538 Handle case of unencoded variant branch.
1539 (print_variant_clauses): Reformat comment.
1540 Special-case unencoded variant branch.
1541
15422010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
1543
1544 * ada-lang.c (wild_match): Reimplement.
1545 Change API to eliminate unused length argument, reverse arguments and
1546 make 0 the 'true' return value.
1547 (advance_wild_match): New auxiliary function for wild_match to improve
1548 readability.
1549 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1550 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1551 API for wild_match.
1552 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1553 wild_match.
1554 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1555
11570e71
DE
15562010-10-01 Doug Evans <dje@google.com>
1557
1558 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1559 for `save gdb-index' command.
1560
72b9f47f
TT
15612010-10-01 Tom Tromey <tromey@redhat.com>
1562
1563 * symfile.h (allocate_symtab): Update.
1564 * symfile.c (allocate_symtab): Make 'filename' const.
1565 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1566 (add_psymbol_to_list): Likewise.
1567 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1568 const.
1569 (add_psymbol_to_list): Update.
1570 * mdebugread.c (new_symtab): Make 'name' const.
1571 (psymtab_to_symtab_1): Make 'filename' const.
1572 * elfread.c (elfstab_offset_sections): Update.
1573 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1574 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1575 (psymtab_include_file_name): Update.
1576 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1577 * buildsym.h (start_subfile): Update.
1578 * buildsym.c (start_subfile): Make arguments const.
1579
55e39473
MS
15802010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1581
1582 * fork-child.c (breakup_args): Fix crash if shell forking is
1583 disabled at compile time.
1584
05e522ef
JB
15852010-10-01 Joel Brobecker <brobecker@adacore.com>
1586
1587 * ada-lang.c (desc_bounds): Add handling of the case where
1588 the P_BOUNDS field is a pointer to a stub.
1589 (desc_data_target_type): Same for P_ARRAY field.
1590 (ada_check_typedef): Strip the typedef layers from the type
1591 found by ada_find_any_type.
1592
49a45ecf
JB
15932010-10-01 Joel Brobecker <brobecker@adacore.com>
1594
1595 * sparc-tdep.c (sparc32_frame_align): New function.
1596 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1597 * sparc64-tdep.c (sparc64_frame_align): New function.
1598 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1599
a5916a62
L
16002010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1601
1602 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1603
00b5771c
TT
16042010-09-30 Tom Tromey <tromey@redhat.com>
1605
1606 * symfile.h (struct sym_fns) <next>: Remove.
1607 (add_symtab_fns): Update.
1608 * symfile.c (sym_fns_ptr): New typedef.
1609 (symtab_fns): Now a VEC.
1610 (add_symtab_fns): Update. Change argument type.
1611 (find_sym_fns): Update. Change return type.
1612 (get_symfile_segment_data): Update.
1613 * objfiles.h (struct objfile) <sf>: Now const.
1614 * somread.c (som_sym_fns): Now const. Update.
1615 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1616 * mipsread.c (ecoff_sym_fns): Now const. Update.
1617 * machoread.c (macho_sym_fns): Now const. Update.
1618 * elfread.c (elf_sym_fns): Now const. Update.
1619 (elf_sym_fns_gdb_index): Likewise.
1620 * dbxread.c (aout_sym_fns): Now const. Update.
1621 * coffread.c (coff_sym_fns): Now const. Update.
1622
38f12cfc
TT
16232010-09-30 Tom Tromey <tromey@redhat.com>
1624
1625 * value.c (value_primitive_field): Take 'offset' into account for
1626 packed field.
1627
9ae8282d
TT
16282010-09-30 Tom Tromey <tromey@redhat.com>
1629
1630 * completer.c (count_struct_fields): Handle anonymous structs and
1631 unions.
1632 (add_struct_fields): Likewise.
1633
e9e07ba6
JK
16342010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1635
1636 Fix printing parameters of inlined functions.
1637 * ada-lang.c (is_known_support_routine)
1638 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1639 for find_frame_funname.
1640 * python/py-frame.c (frapy_name): Likewise.
1641 * stack.c (find_frame_funname): New parameter funcp. Update the
1642 function comment. Fill it in.
1643 (print_frame): New variable func. Initialize it by
1644 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1645 FUNC as the parameter of print_args_stub.
1646 * stack.h (find_frame_funname): New parameter funcp. Remove the
1647 function declaration comment.
1648
cd2effb2
JK
16492010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1650
1651 PR corefiles/12071.
1652 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1653 tp. Iterate INFERIOR_LIST and call target_has_execution.
1654
bceffbf3
JK
16552010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1656
1657 Fix GDB crash on inferior calls with self-referencing classes.
1658 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1659 member fields.
1660
abc72ce4
DE
16612010-09-29 Doug Evans <dje@google.com>
1662
1663 Workaround for gcc/45682.
1664 * dwarf2read.c (partial_die_info): New fields fixup_called,
1665 linkage_name.
1666 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1667 Move definition next to use. Use linkage_name to determine if class
1668 is in a namespace. All callers updated.
1669 (fixup_partial_die): Return early if already called.
1670 Set fixup_called when done.
1671 (guess_full_die_structure_name): New function.
1672 (determine_prefix): Call it for class/struct/union dies if c++ and
1673 .debug_types section is present and parent is DW_TAG_compile_unit.
1674
0ac7be25
JB
16752010-09-28 Joel Brobecker <brobecker@adacore.com>
1676
1677 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1678 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1679
6e1bb179
JB
16802010-09-28 Joel Brobecker <brobecker@adacore.com>
1681
1682 * NEWS: Announce Ravenscar Profile support.
1683
036b1ba8
JB
16842010-09-28 Joel Brobecker <brobecker@adacore.com>
1685 Jerome Guitton <guitton@adacore.com>
1686
1687 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1688 New files.
1689 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1690 ravenscar-sparc-thread.o to gdb_target_obs.
1691
474011fb
JB
16922010-09-28 Joel Brobecker <brobecker@adacore.com>
1693
1694 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1695 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1696
99e24b90
PM
16972010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1698
1699 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1700 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1701 skip_main_prologue method.
1702
987d643c
TT
17032010-09-27 Tom Tromey <tromey@redhat.com>
1704
1705 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1706 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1707 Only emit a given psymbol once.
1708 (struct signatured_type_index_data) <psyms_seen>: New field.
1709 (write_one_signatured_type): Update.
1710 (cleanup_htab): New function.
1711 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1712 version to 3.
1713 (save_gdb_index_command): Update index documentation.
1714
d3aff959
TT
17152010-09-27 Tom Tromey <tromey@redhat.com>
1716
1717 * bcache.c (expand_hash_table): Use hash_function, not hash.
1718
716b65bf
TT
17192010-09-27 Tom Tromey <tromey@redhat.com>
1720
1721 * gdb_wchar.h: Change minimum libiconv to 0x108.
1722
1736ad11
JK
17232010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1724
1725 Fix lost siginfo_t for inferior calls.
1726 * infrun.c
1727 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1728 (save_inferior_thread_state): New variables regcache, gdbarch and
1729 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1730 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1731 using REGCACHE.
1732 (restore_inferior_thread_state): New variables regcache and gdbarch.
1733 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1734 REGCACHE. Free also SIGINFO_DATA.
1735
4b5246aa
TT
17362010-09-24 Tom Tromey <tromey@redhat.com>
1737
1738 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1739 MAYBE_SWAPs.
1740 (dw2_map_symbol_names): Likewise.
1741
2a7d6a25
SW
17422010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1743
1744 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1745 discard_cleanups do_cleanups.
1746
b53a1623
PA
17472010-09-24 Pedro Alves <pedro@codesourcery.com>
1748
e6ee044d
PA
1749 PR gdb/11842
1750
b53a1623
PA
1751 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1752 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1753 si_code is < 0. Check for si_code == SI_TIMER before checking for
1754 si_code < 0.
1755
96a8853a
PA
17562010-09-24 Pedro Alves <pedro@codesourcery.com>
1757
1758 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1759
39383a48
JB
17602010-09-22 Joel Brobecker <brobecker@adacore.com>
1761
1762 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1763 debugging a core file.
1764
d31d2fc3
JK
17652010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1766
1767 Code cleanup.
1768 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1769 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1770 xfree.
1771 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1772 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1773 Remove.
1774 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1775 Remove the conditional.
1776 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1777
7f6130ff
JK
17782010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1779
1780 * main.c: Include objfiles.h.
1781 (captured_main): New variable objfile. Call
1782 load_auto_scripts_for_objfile for ALL_OBJFILES.
1783
c2b0a229
JK
17842010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1787 DW_TAG_constant.
1788
72929c62
JB
17892010-09-22 Joel Brobecker <brobecker@adacore.com>
1790
1791 * dwarf2read.c (scan_partial_symbols): Add handling of
1792 DW_TAG_constant DIEs.
1793 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1794
496c0e1b
JB
17952010-09-22 Joel Brobecker <brobecker@adacore.com>
1796
1797 * configure.ac: Add support for --enable-gdbserver.
1798 * configure: Regenerate.
1799
ec322823
SW
18002010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1801
1802 PR C++/12028
1803 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1804 'old_cleanups' reassignment.
1805
1558ab4c
JK
18062010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1807
1808 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1809 characters.
1810
875b4ff5
PM
18112010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1812
1813 PR mi/11407
1814 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1815 read_var_value and common_val_print and print a warning.
1816
65dedcb2
JK
18172010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1818
1819 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1820 keep the list in alphabetical order. Use longer e-mail address.
1821
0e780a22
TT
18222010-09-15 Tom Tromey <tromey@redhat.com>
1823
1824 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1825
62234ccc
TT
18262010-09-15 Tom Tromey <tromey@redhat.com>
1827
1828 * charset.c (iconv_open): New define.
1829 (iconv): Likewise.
1830 (iconv_close): Likewise.
1831 (phony_iconv_open): Add "phony_" prefix.
1832 (phony_iconv_close): Likewise.
1833 (phony_iconv): Likewise.
1834 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1835 Change how INTERMEDIATE_ENCODING is defined.
1836
4950bc1c
DE
18372010-09-15 Doug Evans <dje@google.com>
1838
1839 * dwarf2read.c (struct die_info): Fix comment.
1840
349126ea
AM
18412010-09-15 Alan Modra <amodra@gmail.com>
1842
1843 PR 4606
1844 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1845 than setting SEC_NEVER_LOAD on sections that need not be copied.
1846
923c6a3d
TT
18472010-09-14 Tom Tromey <tromey@redhat.com>
1848
1849 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1850 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1851 Declare.
1852 * symfile.h (extend_psymbol_list): Remove.
1853 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1854 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1855 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1856
a9e6a4bb
JK
18572010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1858
1859 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1860 Update the comment.
1861
7155d578
TT
18622010-09-14 Tom Tromey <tromey@redhat.com>
1863
1864 PR symtab/8399:
1865 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1866 for unrecognized frame base expression.
1867
515ed532
TT
18682010-09-14 Tom Tromey <tromey@redhat.com>
1869
1870 PR exp/11803:
1871 * value.c (value_static_field): Use value_of_variable.
1872
b467f580
PM
18732010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1874
1875 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1876 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1877
450ca57c
SW
18782010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1879
1880 PR symtab/11992:
1881 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1882 UNKNOWN_CPP_NAME.
1883
1aee7009
JB
18842010-09-13 Joel Brobecker <brobecker@adacore.com>
1885
1886 * NEWS: Add x86-lynxos to the list of platforms supported by
1887 gdbserver.
1888
5ec6ebf9
JB
18892010-09-13 Joel Brobecker <brobecker@adacore.com>
1890
1891 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1892
1863c96c
TT
18932010-09-13 Tom Tromey <tromey@redhat.com>
1894
1895 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1896
0c5acf93
L
18972010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1898
1899 * i386-tdep.c (i386_ymm_type): Set type name to
1900 builtin_type_vec256i.
1901
1c6272a6
MS
19022010-09-12 Michael Snyder <msnyder@vmware.com>
1903
1904 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1905
e866c497
L
19062010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1907
1908 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1909
9191d390
L
19102010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1911
1912 * amd64-tdep.c (amd64_register_name): Removed.
1913 (amd64_init_abi): Don't call set_gdbarch_register_name.
1914
1915 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1916
1917 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1918
8d4d924b
JK
19192010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1920 Paul Bolle <pebolle@tiscali.nl>
1921
1922 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1923 * cli-logging.c (struct saved_output_files) <targerr>: New.
1924 (set_logging_redirect, pop_output_files, handle_redirections):
1925 Redirect also gdb_stdtargerr.
1926 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1927 declarations.
1928 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1929 also gdb_stdtargerr.
1930 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1931 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1932 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1933 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1934 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1935 New functions.
1936
3329c4b5
PM
19372010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1938
1939 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1940 to display a host address.
1941 * monitor.c (monitor_read_memory): Likewise.
1942 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1943
5e8db398
PM
19442010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1945
1946 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1947 `CORE_ADDRESS' as it might contain target addresses.
1948
37049e31
PM
19492010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1950
1951 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1952 before cast to pointer to avoid warning.
1953
351a3e56
KB
19542010-09-09 Kevin Buettner <kevinb@redhat.com>
1955
1956 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1957 type to be signed.
349126ea 1958
6afafb54
UW
19592010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1960
1961 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1962 anonymous class partial DIEs.
1963
60430eff
DJ
19642010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1965
1966 * dwarf2read.c (dwarf2_compute_name): Check that the first
1967 argument is a pointer.
1968
f1078f66
DJ
19692010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1970
1971 * dwarf2read.c (read_func_scope, read_structure_type)
1972 (read_common_block): Check for a NULL return from new_symbol.
1973
82430852
JK
19742010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1975
1976 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1977
c767944b
DJ
19782010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1979
1980 * dwarf2read.c (read_structure_type): Move processing of
1981 fields and member functions from here...
1982 (process_structure_scope): ... to here.
1983
561d3825
DJ
19842010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1985
1986 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1987 the domain type.
1988 (gnuv3_make_method_ptr): Likewise.
1989
9bd89d67
TT
19902010-09-08 Tom Tromey <tromey@redhat.com>
1991
1992 * breakpoint.c (create_breakpoint): Add missing _().
1993
1d040b0d
DE
19942010-09-08 Doug Evans <dje@google.com>
1995
1996 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1997
774b6a14
TT
19982010-09-08 Tom Tromey <tromey@redhat.com>
1999
2000 Revert:
2001 2010-09-01 Tom Tromey <tromey@redhat.com>
2002 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2003 symtab.h: Revert earlier change.
2004
fc956729
SW
20052010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2006
2007 * psymtab.c (add_psymbol_to_bcache): Initialize
2008 obj_section.
2009 memset psymbol.ginfo.value to 0.
2010
48f9886d
PA
20112010-09-06 Pedro Alves <pedro@codesourcery.com>
2012
2013 * infrun.c (resume): Extend comment on ignoring single-step
2014 requests on vfork parents waiting for a vfork-done.
2015
423ec54c
JK
20162010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 Pedro Alves <pedro@codesourcery.com>
2018
2019 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2020 is NULL.
2021 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2022 target_signal type.
2023 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2024 calling strsignal. Use enum target_signal type for saved_signo.
2025 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2026 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2027 target_signal_to_host before calling strsignal.
2028 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2029 TARGET_SIGNAL_0.
2030
a6eb9bc8
JK
20312010-09-06 Pedro Alves <pedro@codesourcery.com>
2032 Jan Kratochvil <jan.kratochvil@redhat.com>
2033
2034 * common/signals.c (ANY): Remove.
2035 (SET): No longer use ANY.
2036
74609e71
YQ
20372010-09-06 Yao Qi <yao@codesourcery.com>
2038
2039 * infrunc(resume): When inferior is waiting_for_vfork_done,
2040 clear step and don't use displaced stepping.
2041
8464be76
DJ
20422010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2043
2044 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2045 value specially.
2046
33d62d64
JK
20472010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2048
2049 Code cleanup - split print_stop_reason.
2050 * infrun.c (enum inferior_stop_reason): Remove.
2051 (print_stop_reason): Remove by splitting into ...
2052 (print_exited_reason, print_signal_exited_reason)
2053 (print_no_history_reason, print_signal_received_reason)
2054 (print_end_stepping_range_reason): ... these new functions. Update
2055 the preceding comment.
2056 (handle_inferior_event): Change the calls to print_exited_reason,
2057 print_signal_exited_reason, print_no_history_reason,
2058 print_signal_received_reason, print_end_stepping_range_reason.
2059 (handle_step_into_function, handle_step_into_function_backward):
2060 Change the calls to print_end_stepping_range_reason.
2061
14dba4b4
JK
20622010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2063
2064 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2065 * cli-out.c: Include vec.h.
2066 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2067 variable stream, initialize it, use it.
2068 (cli_redirect): New function comment. Replace the stream and
2069 original_stream fields by the new streams field. Remove the
2070 original_stream != NULL conditional, assert error on NULL instead.
2071 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2072 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2073 original_stream fields by the new streams field.
2074 (cli_out_set_stream): Replace the stream field by the new streams
2075 field.
2076 * cli-out.h: Include vec.h.
2077 (ui_filep): New typedef, call DEF_VEC_P for it.
2078 (struct cli_ui_out_data): Replace the stream and original_stream
2079 fields by the new streams field.
2080 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2081 NULL first. Extend the comment.
2082 (handle_redirections): Call ui_out_redirect with output.
2083 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2084 calls outside of the TRY_CATCH block.
2085
b04bc5d4 20862010-09-03 Joel Brobecker <brobecker@adacore.com>
2087
2088 GDB 7.2 released.
2089
080db4e0
JB
20902010-09-02 Joel Brobecker <brobecker@adacore.com>
2091
2092 Back out the following change:
2093 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2094 | * record.c (set_record_pic_cmdlist,
2095 | show_record_pic_cmdlist): New variables.
2096 | (set_record_pic_command,
2097 | show_record_pic_command): New functions.
2098 | (record_pic_function, record_pic_line, record_pic_enum,
2099 | set_record_pic_type, record_pic_hide_nofunction,
2100 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2101 | (record_pic_fputs): New function.
2102 | (function_list, node_list, edge_list): New struct.
2103 | (function_list, node_list, edge_list): New variables.
2104 | (record_pic_cleanups, record_pic_node,
2105 | record_pic_edge, cmd_record_pic): New functions.
2106 | (_initialize_record): Add new commands for record pic.
2107
0a4f61e3
DJ
21082010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2109
2110 * config.in, configure: Regenerated.
2111 * configure.ac: Check for waitpid.
2112 * ser-pipe.c (pipe_close): Wait for the program to exit.
2113
58b61394
JK
21142010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2115
ba720883 2116 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
2117 (set_logging_overwrite): New function.
2118 (logging_redirect): New comment.
2119 (logging_no_redirect_file, set_logging_redirect)
2120 (pop_output_files) <logging_no_redirect_file>: New.
2121 (handle_redirections) <!logging_redirect>: New variable
2122 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2123 discard cleanup for the close of former OUTPUT. Set
2124 LOGGING_NO_REDIRECT_FILE.
2125 (handle_redirections) <logging_redirect>: gdb_assert
2126 LOGGING_NO_REDIRECT_FILE.
2127 (show_logging_command) <logging_redirect handling>: Adjust messages
2128 for SAVED_FILENAME not NULL.
2129 (_initialize_cli_logging): Install set_logging_overwrite and
2130 set_logging_redirect.
2131
706774f2
JK
21322010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2133
2134 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2135
9a35ccf7
JK
21362010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2137
2138 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2139 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2140 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2141 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2142
ba9b2ec3
YQ
21432010-09-02 Yao Qi <yao@codesourcery.com>
2144
2145 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2146 number from a WIFSIGNALED status.
2147
faf68db7
TT
21482010-09-01 Tom Tromey <tromey@redhat.com>
2149
2150 * symtab.h (lookup_type_symbol): Declare.
2151 * symtab.c (lookup_symbol_in_language_full): Rename from
2152 lookup_symbol_in_language. Add 'for_type' argument.
2153 (lookup_symbol_in_language): New function.
2154 (lookup_type_symbol): Likewise.
2155 (lookup_symbol_aux): Add 'for_type' argument.
2156 (match_symbol_aux): New function.
2157 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2158 (match_transparent_type): New function.
2159 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2160 * symfile.h (struct quick_symbol_functions)
2161 <pre_expand_symtabs_matching>: Remove.
2162 <expand_one_symtab_matching>: New field.
2163 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2164 (pre_expand_symtabs_matching_psymtabs): Remove.
2165 (psym_functions): Update.
2166 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2167 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2168 (dw2_pre_expand_symtabs_matching): Remove.
2169 (dw2_expand_one_symtab_matching): New function.
2170 (dwarf2_gdb_index_functions): Update.
2171
248c9dbc
JB
21722010-09-01 Joel Brobecker <brobecker@adacore.com>
2173
2174 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2175
f75d858b
MK
21762010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2177
2178 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2179 as a feature reported by -list-target-features.
2180
0482b03b
JB
21812010-09-01 Joel Brobecker <brobecker@adacore.com>
2182
2183 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2184 (powerpc-32.o, powerpc-32.c): New rules.
2185 (clean): Also remove powerpc-32.c.
2186 * regformats/rs6000/powerpc-32.dat: Generate.
2187
710e1a31
SW
21882010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2189
2190 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2191 psymbol_bcache_init.
2192 * psymtab.h (psymbol_bcache_init): New function prototype.
2193 (psymbol_bcache_free): New function prototype.
2194 (psymbol_bcache_get_bcache): New function prototype.
2195 * psymtab.c (psymbol_bcache_init): New function.
2196 (psymbol_bcache_free): New function.
2197 (psymbol_bcache_full): New function.
2198 (psymbol_bcache_get_bcache): New function.
2199 (add_psymbol_to_bcache): use psymbol_bcache_full.
2200 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2201 psymbol_bcache.
2202 * symmisc.c (print_symbol_bcache_statistics): Updated.
2203 (print_objfile_statistics): Updated.
2204 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2205 psymbol_cache.
2206 (free_objfile): Use psymbol_bcache_free.
2207
64382290
TT
22082010-08-31 Tom Tromey <tromey@redhat.com>
2209
2210 PR c++/11961:
2211 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2212 Don't set TYPE_NAME on the type.
2213
8bbed405
MS
22142010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2215
2216 * infrun.c (set_exec_direction_func): Error out if target does not
2217 support reverse execution.
2218
06253dd3
JK
22192010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2220
2221 Make linux_get_siginfo_type `type *' unique.
2222 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2223 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2224 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2225 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2226 (_initialize_linux_tdep): New.
2227
b8edc417
JK
22282010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2229
2230 Code cleanup.
2231 * defs.h (find_memory_region_ftype): New typedef.
2232 (exec_set_find_memory_regions): Use it.
2233 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2234 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2235 * gcore.c (objfile_find_memory_regions): Likewise.
2236 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2237 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2238 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2239 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2240 find_memory_region_ftype.
2241 (insert_dbx_link_bpt_in_region): Likewise.
2242 (iterate_over_mappings): Likewise. Drop the comment part about the
2243 function prototype.
2244 (find_memory_regions_callback): Use find_memory_region_ftype.
2245 (proc_find_memory_regions): Likewise.
2246 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2247 find_memory_region_ftype.
2248 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2249 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2250
cbd70537
SW
22512010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2252
2253 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2254 'static partial_symbol psymbol'.
2255 (psymbol_hash): New function.
2256 (psymbol_compare): New function.
2257 * bcache.c (hash_continue): New.
2258 (hash): Use hash_continue.
2259 * bcache.c: Add hash_function and compare_function
2260 pointers to bcache struct.
2261 (bcache_full): Use bcache->hash_function, and
2262 bcache->compare_function.
2263 (bcache_compare): New function.
2264 (bcache_xmalloc): Take hash_function and
2265 compare_function arguments and initialize the
2266 bcach's pointers.
2267 Updated comment.
2268 * objfiles.c (allocate_objfile): Updated.
2269 * symfile.c (reread_symbols): Updated.
2270 * python/py-type.c (typy_richcompare): Updated.
2271
03f17ccf
TT
22722010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2273 Tom Tromey <tromey@redhat.com>
2274
2275 PR python/11792:
2276 * python/py-value.c (valpy_get_dynamic_type): New function.
2277 (value_object_getset): Add "dynamic_type".
2278 (valpy_get_type): Fail on error.
2279
25b41d01
YQ
22802010-08-30 Yao Qi <yao@codesourcery.com>
2281
2282 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2283 (arm_linux_syscall_next_pc): New.
2284 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2285 (arm_linux_init_abi): Initialize syscall_next_pc.
2286 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2287 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2288 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2289 Declare arm_frame_is_thumb.
2290
5760d0ab
JK
22912010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2292
2293 Code cleanup.
2294 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2295 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2296 code.
2297 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2298 calls of bpstat_alloc. Remove explicit bs chain termination.
2299
46a96992
JK
23002010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2301
2302 Code cleanup.
2303 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2304 (my_waitpid): Likewise.
2305
36374493
DE
23062010-08-27 Doug Evans <dje@google.com>
2307
2308 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2309 as appropriate.
2310
8b93c54c
TT
23112010-08-27 Tom Tromey <tromey@redhat.com>
2312
2313 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2314 TYPE_FIELD_IGNORE_BITS.
2315
16be1145
DE
23162010-08-27 Doug Evans <dje@google.com>
2317
2318 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2319 the order they're defined in. munmap .debug_types buffer.
2320
e254ef6a
DE
23212010-08-26 Doug Evans <dje@google.com>
2322
2323 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2324 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2325 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2326 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2327 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2328 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2329 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2330 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2331 (write_psymtabs_to_index): Ditto.
2332
ae53ffa4
PA
23332010-08-26 Pedro Alves <pedro@codesourcery.com>
2334
2335 * NEWS: Mention libthread_db debugging with core files.
2336
c6da4cef
DE
23372010-08-26 Doug Evans <dje@google.com>
2338
2339 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2340 forward decl. Pass pst->dirname to dwarf_decode_lines.
2341 (psymtab_include_file_name): New function.
2342 (dwarf_decode_lines): Call it. Update comments.
2343
cd02d79d
PA
23442010-08-25 Pedro Alves <pedro@codesourcery.com>
2345
2346 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2347 compilation unit being different from target die's.
2348
673bfd45
DE
23492010-08-24 Doug Evans <dje@google.com>
2350
2351 PR symtab/11942
2352 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2353 debug_types_type_hash.
2354 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2355 All uses updated.
2356 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2357 appropriate type_hash table. All callers updated.
2358 (allocate_signatured_type_table): Renamed from
2359 allocate_signatured_type_hash_table. All callers updated.
2360 (create_signatured_type_table_from_index): Renamed from
2361 create_signatured_type_hash_from_index. All callers updated.
2362 (read_die_type): Add comment. Move actual reading to ...
2363 (read_die_type_1): ... here. New function.
2364 (follow_die_ref_or_sig): Tweak comment.
2365 (set_die_type): Rewrite to use appropriate choice of
2366 debug_info_type_hash or debug_types_type_hash.
2367 (get_die_type_at_offset): New function.
2368 (get_die_type): Call it.
2369
e8fd65ef
JK
23702010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2371
2372 * python/py-type.c (typy_richcompare): Initialize worklist.
2373
9779414d
DJ
23742010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2375 Kazu Hirata <kazu@codesourcery.com>
2376 Jonathan Larmour <jifl@eCosCentric.com>
2377
2378 * arm-tdep.c: Include features/arm-with-m.c.
2379 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2380 call this function.
2381 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2382 Check is_m after force-mode.
2383 (arm_gdbarch_init): Check the binary before the target description.
2384 Add check for M profile attribute. If we have an M-profile device,
2385 but no target register description, use arm-with-m. Recognize the
2386 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2387 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2388 * arm-tdep.h (XPSR_T): Define.
2389 (struct gdbarch_tdep): Add is_m member.
2390 * features/arm-m-profile.xml, features/arm-with-m.c,
2391 features/arm-with-m.xml: New files.
2392
9dc481d3
DE
23932010-08-23 Doug Evans <dje@google.com>
2394
2395 * dwarf2read.c (read_structure_type): Add comment.
2396 (read_enumeration_type): Add comment.
2397 (process_enumeration_scope): Move definition of some locals
2398 closer to their use.
2399 (read_namespace_type): Add comment.
e71ec853 2400 (set_die_type): Fix typo in comment.
9dc481d3 2401
f9ffd4bb
TT
24022010-08-23 Tom Tromey <tromey@redhat.com>
2403
2404 PR python/11145:
2405 * python/py-value.c: Include expression.h.
2406 (valpy_do_cast): New function.
2407 (valpy_cast): Use it.
2408 (valpy_dynamic_cast): New function.
2409 (valpy_reinterpret_cast): Likewise.
2410 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2411
96f73ba5
TT
24122010-08-23 Tom Tromey <tromey@redhat.com>
2413
2414 PR python/11391:
2415 * python/py-value.c (valpy_nonzero): Don't throw error for other
2416 Value types.
2417
d839c8a4
TT
24182010-08-23 Tom Tromey <tromey@redhat.com>
2419
2420 PR python/10676:
2421 * python/py-type.c: Include bcache.h, vec.h.
2422 (struct type_equality_entry): New.
2423 (compare_strings): New function.
2424 (check_types_equal): Likewise.
2425 (check_types_worklist): Likewise.
2426 (typy_richcompare): Likewise.
2427 (type_object_type): Set tp_richcompare field.
2428
05d0e1e7
TT
24292010-08-23 Tom Tromey <tromey@redhat.com>
2430
2431 PR python/10953:
2432 * python/py-type.c (typy_fields): Call check_typedef.
2433 (typy_template_argument): Add TRY_CATCH.
2434
702c2711
TT
24352010-08-23 Tom Tromey <tromey@redhat.com>
2436
2437 PR python/11915:
2438 * python/py-type.c (typy_array): New function.
2439 (type_object_methods): Add "array".
2440
4a532131
PA
24412010-08-20 Pedro Alves <pedro@codesourcery.com>
2442
2443 * python/python.c: Include "serial.h".
2444 (gdbpy_event_fds): Change type to `struct serial *' a array from
2445 int array.
2446 (gdbpy_run_events): Change parameters. Use serial_readchar in
2447 place of read.
2448 (gdbpy_post_event): Use serial_write in place of write.
2449 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2450 serial_async in place of add_file_handler.
2451
58f07bae
PA
24522010-08-20 Pedro Alves <pedro@codesourcery.com>
2453
2454 * serial.h (gdb_pipe, serial_pipe): Declare.
2455 * serial.c (serial_interface_lookup): Take a const char pointer.
2456 (serial_fdopen): Rename to ...
2457 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2458 Call the OPS' fdopen function if there is one.
2459 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2460 (serial_pipe): New.
2461 (struct serial_ops) <fdopen>: New field.
2462
2463 * ser-mingw.c (free_pipe_state):
2464 (free_pipe_state): Close output on non-pex pipes.
2465 (pipe_windows_fdopen): New.
2466 (gdb_pipe): New.
2467 (_initialize_ser_windows): Register pipe_windows_fdopen.
2468 * ser-go32.c (gdb_pipe): New.
2469 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2470 no state pointer.
2471 (pipe_ops): Delete.
2472 (gdb_pipe): New.
2473
3da10d80
KS
24742010-08-20 Keith Seitz <keiths@redhat.com>
2475
2476 PR symtab/11465:
889bf7c5 2477 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
2478 (struct dwarf2_cu): Add vector method_list.
2479 (scan_partial_symbols): Count methods for union, class, structure,
2480 and interface types.
2481 (add_to_method_list): New function.
2482 (free_delayed_list): New function.
2483 (compute_delayed_physnames): New function.
2484 (process_full_comp_unit): Make a cleanup for the CU's delayed
2485 physname list, compute the delayed physnames, and free the
2486 the list.
2487 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2488 of the physname until after the CU is read.
2489
2490 * dwarf2read.c (read_structure_type): Check if the current
2491 DIE's type was already completed after dwarf2_full_name
2492 was called.
889bf7c5 2493
ca11e899
SS
24942010-08-19 Stan Shebs <stan@codesourcery.com>
2495
2496 * NEWS: Mention some additional changes.
2497
4d2dc20a
TT
24982010-08-19 Tom Tromey <tromey@redhat.com>
2499
2500 * Makefile.in (install-python): Add DESTDIR.
2501
d30f5e1f
DE
25022010-08-19 Doug Evans <dje@google.com>
2503
2504 PR exp/11926
2505 * parser-defs.h (parse_float, parse_c_float): Declare.
2506 * parse.c (parse_float, parse_c_float): New function.
2507 * c-exp.y (parse_number): Call parse_c_float.
2508 * objc-exp.y (parse_number): Ditto.
2509 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2510 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2511
2837d59e
JB
25122010-08-19 Joel Brobecker <brobecker@adacore.com>
2513
2514 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2515 the arguments in the correct order.
2516 * symtab.c (maybe_add_partial_symtab_filename): Declare
2517 the arguments in the correct order.
2518
35633fef
JK
25192010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2520
2521 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2522 initialize it by null_frame_id, wrap its usage by get_frame_id,
2523 frame_id_p and frame_find_by_id.
2524
94f7449c
TT
25252010-08-18 Tom Tromey <tromey@redhat.com>
2526
2527 PR python/11900:
2528 * configure: Rebuild.
2529 * configure.ac: Add install-python to CONFIG_INSTALL.
2530 * Makefile.in (install-python): New.
2531
f3574227
DE
25322010-08-18 Doug Evans <dje@google.com>
2533
2534 * gdb_assert.h (gdb_assert_not_reached): New macro.
2535 (gdb_assert_fail): Fix typo in comment.
2536 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2537 gdb_assert (0).
2538 * darwin-nat.c (darwin_check_new_threads): Ditto.
2539 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2540 (munmap_section_buffer): Ditto.
2541 * m32c-tdep.c (make_types): Ditto.
2542 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2543 * macroexp.c (get_character_constant): Ditto.
2544 (get_string_literal): Ditto.
2545 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2546 (mep_pseudo_cr_index, mep_register_type): Ditto.
2547 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2548 (mep_get_insn, mep_analyze_prologue): Ditto.
2549 * objfiles.c (qsort_cmp): Ditto.
2550 * prologue-value.c (pv_is_identical): Ditto.
2551 * record.c (record_get_loc): Ditto.
2552 * value.c (value_static_field): Ditto.
2553 * xtensa-tdep.c (call0_track_op): Ditto.
2554
c92817ce
TT
25552010-08-18 Tom Tromey <tromey@redhat.com>
2556
2557 PR symtab/11919:
2558 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2559 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2560 name-copying lower. Document exception behavior.
2561 * completer.c (expression_completer): Catch exceptions from
2562 parse_field_expression.
2563
856d6f99
PA
25642010-08-18 Pedro Alves <pedro@codesourcery.com>
2565
2566 PR corefile/8210
2567
2568 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2569 workaround on core files.
2570 (try_thread_db_load_1): Don't try enabling thread event reporting
2571 on core files.
2572 (thread_db_load): Allow thread_db on core files.
2573 (attach_thread): Don't check thread signals on core files, nor try
2574 really attaching to the thread, nor enabling thread event event
2575 reporting.
2576 (thread_db_detach): Don't try disabing thread event reporting or
2577 removing thread event breakpoints when debugging a core file.
2578 (find_new_threads_callback): Don't try enabling thread event
2579 reporting on core files.
2580 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2581 debugging a core file.
2582 (thread_db_find_new_threads): Don't update thread
2583 cores (processors) when debugging a core (dump).
2584
261b8d08
PA
25852010-08-18 Pedro Alves <pedro@codesourcery.com>
2586
2587 PR corefile/8210
2588
2589 * corelow.c (add_to_thread_list): Don't use
2590 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2591 (get_core_register_section): Don't use
2592 gdbarch_core_reg_section_encodes_pid.
2593
2594 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2595 * gdbarch.h, gdbarch.c: Regenerate.
2596 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2597 gdbarch_core_reg_section_encodes_pid.
2598 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2599 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2600 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2601
f9b42018
YQ
26022010-08-18 Yao Qi <yao@codesourcery.com>
2603
2604 * MAINTAINERS : Add myself under Write After Approval.
2605
def98928
TT
26062010-08-17 Tom Tromey <tromey@redhat.com>
2607
2608 * NEWS: Mention template parameter support.
2609
0807b50c
PA
26102010-08-17 Pedro Alves <pedro@codesourcery.com>
2611
2612 PR breakpoints/11371
2613
2614 * breakpoint.c (decref_bp_location): Assert the reference count is
2615 sane.
2616
f431efe5
PA
26172010-08-17 Pedro Alves <pedro@codesourcery.com>
2618
2619 PR breakpoints/11371
2620
2621 * breakpoint.c (breakpoint_init_inferior): Decrement the
2622 location's reference count instead of deleting right away.
2623 (bpstat_free): Decrement the location's reference count. Make
2624 static.
2625 (bpstat_copy): Increment the location's reference count.
2626 (bpstat_find_breakpoint): Adjust.
2627 (bpstat_num): Adjust.
2628 (print_it_typical): Adjust. Use the breakpoint pointer in the
2629 bpstat instead of the location's owner.
2630 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2631 Adjust to record the location's owner in the bpstat.
2632 (watchpoint_check): Use the breakpoint pointer in the bpstat
2633 instead of the location's owner.
2634 (bpstat_check_breakpoint_conditions): Don't handle
2635 bp_watchpoint_scope here. Use the breakpoint pointer in the
2636 bpstat instead of the location's owner.
2637 (bpstat_stop_status): Defer inferior function calls to after
2638 building the bpstat list. Handle bp_watchpoint_scope here. Use
2639 the breakpoint pointer in the bpstat instead of the location's
2640 owner.
2641 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2642 the location's owner.
2643 (free_bp_location): Don't walk bpstats clearing locations.
2644 (incref_bp_location): New.
2645 (decref_bp_location): New.
2646 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2647 instead of the location's owner.
2648 (update_global_location_list): Clear the location's owner, and
2649 decrement the location's reference count instead of deleting it
2650 right away.
2651 (breakpoint_retire_moribund): Decrement the location's reference
2652 count instead of deleting it right away.
2653 (bpstat_remove_bp_location): Delete.
2654 (bpstat_remove_breakpoint): New.
2655 (bpstat_remove_bp_location_callback): Delete.
2656 (bpstat_remove_breakpoint_callback): New.
2657 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2658 clearing references to the breakpoint that is being deleted.
2659
2660 * breakpoint.h (struct bp_location) <refc>: New field.
2661 <owner>: Update comments.
2662 (bpstat_free): Delete declaration.
2663 (struct bpstats): Change the type of the breakpoint_at field to
2664 struct breakpoint point, from struct bp_location pointer. Add new
2665 field bp_location_at.
2666
14c0d4e1
TT
26672010-08-16 Tom Tromey <tromey@redhat.com>
2668
2669 * NEWS: Fix typo.
2670
b56df873
TT
26712010-08-16 Tom Tromey <tromey@redhat.com>
2672
2673 * NEWS: Mention watch -location.
2674
d63d0675
JK
26752010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2676
2677 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2678 EXP_STRING_REPARSE to EXP_STRING.
2679 (watch_command_1): Set also EXP_STRING_REPARSE.
2680 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2681 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2682 Update comment for exp_string.
2683
06a64a0b
TT
26842010-08-16 Tom Tromey <tromey@redhat.com>
2685
2686 * value.c (release_value): Clear 'next' pointer.
2687 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2688 (watch_command_wrapper): Update.
2689 (watch_maybe_just_location): New function.
2690 (watch_command): Update.
2691 (rwatch_command_wrapper): Update.
2692 (rwatch_command): Update.
2693 (awatch_command_wrapper): Update.
2694 (awatch_command): Update.
2695 (check_for_argument): New function.
2696 (_initialize_breakpoint): Update help text.
2697
f96b8fa0
UW
26982010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2699
2700 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2701 typedef'ed function types correctly.
2702
4eb54052
TT
27032010-08-13 Tom Tromey <tromey@redhat.com>
2704
2705 * python/python-internal.h (gdbpy_get_hook_function): Don't
2706 declare.
2707
44be957e
JK
27082010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2709
ba720883 2710 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2711 static.
2712
76d8b686
KW
27132010-08-13 Ken Werner <ken.werner@de.ibm.com>
2714
2715 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2716 the format strings to be compatible with Python 2.4.
2717
8dedea02
VP
27182010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2719
2720 Easier and more stubborn MI memory read commands.
2721
2722 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2723 and data-write-memory-bytes.
2724 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2725 (mi_cmd_data_write_memory_bytes): New.
2726 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2727 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2728 New.
2729 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2730 * target.c (target_read_until_error): Remove.
2731 (read_whatever_is_readable, free_memory_read_result_vector)
2732 (read_memory_robust): New.
2733 * target.h (target_read_until_error): Remove.
2734 (struct memory_read_result, free_memory_read_result_vector)
2735 (read_memory_robust): New.
2736
1d9ec526
HZ
27372010-08-13 Hui Zhu <teawater@gmail.com>
2738
2739 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2740 (read_comp_unit): Initialize back_to.
2741
98bfdba5
PA
27422010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2743 Pedro Alves <pedro@codesourcery.com>
2744
2745 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2746 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2747 (struct partial_die_info) <has_template_arguments>: New field.
2748 <num_attrs>: Change type to unsigned char.
2749 <building_fullname>: New field.
2750 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2751 allocate a CU if we don't have one already. Add a cleanup for the
2752 CU.
2753 (partial_die_full_name): Handle template arguments not in
2754 DW_AT_name.
2755 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2756 (load_full_comp_unit): Only allocate a CU if we don't have one
2757 already.
2758 (do_ui_file_peek_last): New.
2759 (dwarf2_compute_name): Handle template parameters not in
2760 DW_AT_name.
2761 (read_comp_unit): Read and free abbrevs if not read yet.
2762 (load_partial_dies): Handle template arguments not in DW_AT_name.
2763 (find_partial_die): If we have a CU, but no a partial dies yet,
2764 also read in the CU.
2765 (dwarf2_const_value_attr): New, abstracted out from
2766 dwarf2_const_value.
2767 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2768 dwarf2_const_value_attr.
2769 (determine_prefix): Detect and break loops created by RCVT's debug
2770 info.
2771 (maybe_queue_comp_unit): Bail out early if reading partial
2772 symbols.
2773 (follow_die_offset): Load full CU if we have no dies.
2774 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2775 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2776
ca5c20b6 27772010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2778 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2779
2780 * python/python.c (gdbpy_run_events): New function.
2781 (gdbpy_post_event): Likewise.
2782 (gdbpy_initialize_events): Likewise.
2783 (_initialize_python): Call gdbpy_initialize_events.
2784
7346b668
KW
27852010-08-11 Ken Werner <ken.werner@de.ibm.com>
2786
2787 * gdb/valarith.c (vector_binop): New function.
2788 (scalar_binop): Likewise.
2789 (value_binop): Call scalar_binop or vector_binop depending on the types.
2790 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2791 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2792 to pointers.
2793 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2794
62183e15
TT
27952010-08-11 Brad Roberts <braddr@puremagic.com>
2796
2797 * d-lang.c (extract_identifiers): Handle multiple digits.
2798
39d7b0e2
JK
27992010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2800
2801 Code cleanup.
2802 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2803 Rename to dummy_frame_unwind.
2804 (dummy_frame_unwind): Remove.
2805 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2806 * frame-unwind.c (frame_unwind_init): Use address of
2807 dummy_frame_unwind and inline_frame_unwind.
2808 * frame.c (create_sentinel_frame): Use address of
2809 sentinel_frame_unwind.
2810 * inline-frame.c (inline_frame_unwinder): Rename to
2811 inline_frame_unwind.
2812 (inline_frame_unwind): Remove.
2813 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2814 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2815 sentinel_frame_unwind.
2816 (sentinel_frame_unwind): Remove.
2817 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2818 struct.
2819
9f9a8002
JK
28202010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2821
2822 Code cleanup.
2823 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2824 and returned value. New comment from frame-unwind.h.
2825 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2826 Extend the comment.
2827 * frame.c (get_frame_id, frame_unwind_register_value)
2828 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2829 (get_frame_type, frame_unwind_arch): Do not use the return value of
2830 frame_unwind_find_by_frame.
2831
cb2e07a6 28322010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2833 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2834 Tom Tromey <tromey@redhat.com>
2835
2836 * python/python.c (gdbpy_solib_address): New function.
2837 (gdbpy_decode_line): Likewise.
2838
c29c521f
TT
28392010-08-10 Tom Tromey <tromey@redhat.com>
2840
2841 Revert gdb-add-index addition:
2842 * Makefile.in (install-only): Don't install gdb-add-index.
2843 * gdb-add-index.sh: Remove.
2844
0c012db1
KB
28452010-08-09 Kevin Buettner <kevinb@redhat.com>
2846
2847 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2848 `target_has_execution' check with `to_has_memory' check.
2849 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2850 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2851 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2852
db04efe6
KB
28532010-08-09 Kevin Buettner <kevinb@redhat.com>
2854
2855 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2856 (resume_siggnal, resume_step): Move these static globals...
2857 (struct sim_inferior_data): ...into this new struct.
2858 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2859 New static globals.
2860 (gdb_callback, callbacks_initialized): Move these globals to
2861 a point earlier in the file.
2862 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2863 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2864 (gdbsim_close_inferior, gdbsim_resume_inferior)
2865 (gdbsim_stop_inferior): New functions.
2866 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2867 New constants.
2868 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2869 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2870 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2871 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2872 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2873 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2874 new local variable `sim_data' in each of these functions. Use
2875 `sim_data' to reference former globals `program_loaded',
2876 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2877 `resume_step'.
2878 (gdbsim_open): Remove local variable `argv'. Put results of call
2879 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2880 make a cleanup for it. Free it though when a sim instance cannot
2881 be obtained.
2882 (gdbsim_close): Free sim_argv and null it out as appropriate.
2883 Close sim instances in all inferiors.
2884 (gdbsim_cntrl_c): Stop all inferiors.
2885 (gdbsim_wait):
2886 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2887
e37fd15a
SW
28882010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2889
2890 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2891 function after symbol construction is complete.
2892 Do the same for template symbol addition to template_symbols list.
2893
45c58896
SW
28942010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2895
2896 * symtab.c (symbol_get_demangled_name): Remove assertion and
2897 return NULL when language_specific.cplus_specific is not initialized.
2898 * stabsread.c (define_symbol): Set the name before calling
2899 cp_scan_for_anonymous_namespaces.
2900
33e5013e
SW
29012010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2902
2903 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2904 SYMBOL_SET_LANGUAGE.
2905 (symbol_init_language_specific): Renamed to symbol_set_language.
2906 * symtab.c (symbol_init_language_specific): Removed redundant check
2907 for language_cplus.
2908 Renamed to symbol_set_language.
2909 * stabsread.c (define_symbol): Updated.
2910 (read_enum_type): Updated
2911 * psymtab.c (add_psymbol_to_bcache): Updated.
2912 * minsyms.c (install_minimal_symbols): Updated.
2913 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2914 SYMBOL_LANGUAGE to set the language.
2915 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2916 * mdebugread.c (new_symbol): Ditto.
2917 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2918 * dwarf2read.c (new_symbol_full): Ditto.
2919 * jv-lang.c (add_class_symbol): Ditto.
2920
5da1313b
JK
29212010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2924 (make_cleanup_restore_page_info)
2925 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2926 * gdbcmd.h (execute_command_to_string): New declaration.
2927 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2928 (make_cleanup_restore_ui_file): Move to utils.c
2929 (execute_gdb_command) <to_string>: Move ...
2930 * top.c (execute_command_to_string): ... here. Call
2931 set_batch_flag_and_make_cleanup_restore_page_info.
2932 * utils.c (make_cleanup_restore_integer): New source file blank line.
2933 (make_cleanup_restore_uinteger): New.
2934 (struct restore_ui_file_closure, do_restore_ui_file)
2935 (make_cleanup_restore_ui_file): Move here from python/python.c.
2936 (init_page_info) <batch_flag>
2937 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2938 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2939
c820c52a
PA
29402010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2941
2942 * thread.c (add_thread_silent): Use null_ptid instead of
2943 minus_one_ptid while getting rid of stale inferior_ptid.
2944
8da614df
CV
29452010-08-06 Corinna Vinschen <vinschen@redhat.com>
2946
2947 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2948 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2949 (decode_frame_entry_1): Remove redundant setting of
2950 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2951 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2952 on examined frame section. Add comment to explain why.
2953 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2954 comment to explain usage.
2955 * gdbarch.c: Regenerate.
2956 * gdbarch.h: Regenerate.
2957
2958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2959
e4195b40
JK
29602010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2961
2962 Code cleanup.
2963 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2964 a more inner block.
2965
a3217aa0
PA
29662010-08-05 Pedro Alves <pedro@codesourcery.com>
2967
2968 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2969 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2970 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2971 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2972 linux-tdep.o to gdb_target_obs.
2973
e2b4a699 29742010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2975
2976 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2977 argument.
889bf7c5 2978
50e8a0d5
HZ
29792010-08-05 Hui Zhu <teawater@gmail.com>
2980
2981 * mips-linux-tdep.c(regset.h): New include.
2982 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2983 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2984 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2985 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2986 mips_linux_regset_from_core_section): New functions.
2987 (fetch_core_registers, regset_core_fns): Deleted.
2988 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2989 Deleted regset_core_fns.
2990 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2991 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2992 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2993 and fpregset64.
2994
70728992
PA
29952010-08-04 Pedro Alves <pedro@codesourcery.com>
2996
2997 * s390-tdep.c: Include linux-tdep.h.
2998 (s390_gdbarch_init): Call linux_init_abi.
2999
a5ee0f0c
PA
30002010-08-04 Pedro Alves <pedro@codesourcery.com>
3001
3002 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3003 instead of printing "Thread" here.
3004 * linux-tdep.c: Include inferior.h.
3005 (linux_core_pid_to_str): New.
3006 (linux_init_abi): New.
3007 * linux-tdep.h (linux_init_abi): Declare.
3008 * alpha-linux-tdep.c: Include linux-tdep.h.
3009 (alpha_linux_init_abi): Call linux_init_abi.
3010 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3011 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3012 * frv-linux-tdep.c: Include linux-tdep.h
3013 (frv_linux_init_abi): Call linux_init_abi.
3014 * hppa-linux-tdep.c: Include linux-tdep.h
3015 (hppa_linux_init_abi): Call linux_init_abi.
3016 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3017 * ia64-linux-tdep.c: Include linux-tdep.h.
3018 (ia64_linux_init_abi): Call linux_init_abi.
3019 * m32r-linux-tdep.c: Include linux-tdep.h.
3020 (m32r_linux_init_abi): Call linux_init_abi.
3021 * m68klinux-tdep.c: Include linux-tdep.h.
3022 (m68k_linux_init_abi): Call linux_init_abi.
3023 * microblaze-linux-tdep.c: Include linux-tdep.h.
3024 (microblaze_linux_init_abi): Call linux_init_abi.
3025 * mips-linux-tdep.c: Include linux-tdep.h.
3026 (mips_linux_init_abi): Call linux_init_abi.
3027 * mn10300-linux-tdep.c: Include linux-tdep.h.
3028 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3029 'gdbinfo' parameter to 'info'.
3030 * ppc-linux-tdep.c: Include linux-tdep.h.
3031 (ppc_linux_init_abi): Call linux_init_abi.
3032 * sh-linux-tdep.c: Include linux-tdep.h.
3033 (sh_linux_init_abi): Call linux_init_abi.
3034 * sparc-linux-tdep.c: Include linux-tdep.h.
3035 (sparc32_linux_init_abi): Call linux_init_abi.
3036 * sparc64-linux-tdep.c: Include linux-tdep.h.
3037 (sparc64_linux_init_abi): Call linux_init_abi.
3038 * xtensa-linux-tdep.c: Include linux-tdep.h.
3039 (xtensa_linux_init_abi): Call linux_init_abi.
3040 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3041 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3042 callback.
3043
bc043ef3
DE
30442010-08-03 Doug Evans <dje@google.com>
3045
3046 * breakpoint.c (bpdisp_text): Constify bpdisps.
3047 * solib-svr4.c (solib_break_names): Constify.
3048 (bkpt_names, main_name_list): Constify.
3049 (match_main): Constify soname arg.
63cdd227
DE
3050 (bfd_lookup_symbol): Remove unnecessary forward decl.
3051 Constify symname arg.
bc043ef3
DE
3052 (enable_break): Constify bkpt_namep.
3053 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3054 (symtab_symbol_info): Constify classnames.
3055
585d1eb8
PM
30562010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3057
3058 * NEWS: Document Python value inferior function calls.
3059
2de00c64
DE
30602010-08-02 Doug Evans <dje@google.com>
3061
3062 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3063
02d868e8
PP
30642010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3065
3066 * linux-thread-db.c (libthread_db_debug): New variable.
3067 (thread_db_find_new_threads_silently): Control verbosity with it.
3068 (try_thread_db_load_1, try_thread_db_load): Likewise.
3069 (find_new_threads_once): Likewise.
3070 (_initialize_thread_db): Set/show it.
3071
a19cae16
JK
30722010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3073
3074 * common/signals.c (signals): Move the content to signals.def.
3075 Include it. Remove the INDENT comments.
3076
c2bbed2a
TT
30772010-07-30 Tom Tromey <tromey@redhat.com>
3078
3079 * Makefile.in (install-only): Install gdb-add-index.
3080 * gdb-add-index.sh: New file.
3081
f32b2f09
CR
30822010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3083
3084 * MAINTAINERS: Add myself for write after approval privileges.
3085
1276c759
JK
30862010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3087
3088 * symfile.c (addr_section_name): New function.
3089 (addrs_section_compar): Use it.
3090 (addr_info_make_relative): Use it. Move variable sect_name into a more
3091 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3092
420697bb
TT
30932010-07-30 Tom Tromey <tromey@redhat.com>
3094
3095 * configure: Rebuild.
3096 * configure.ac: Add missing case for Python 2.7.
3097
d0d99561
DD
30982010-07-29 DJ Delorie <dj@redhat.com>
3099
3100 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3101 conditions.
3102
0b29bdde
PA
31032010-07-29 Pedro Alves <pedro@codesourcery.com>
3104
3105 * PROBLEMS: Remove mention of all problems.
3106
110ed339
PA
31072010-07-28 Pedro Alves <pedro@codesourcery.com>
3108
3109 PR build/11848
3110 * configure.ac: Check for wresize.
3111 * configure, config.in: Regenerate.
3112 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3113 with HAVE_WRESIZE.
3114
326fd672
TT
31152010-07-28 Tom Tromey <tromey@redhat.com>
3116
3117 PR python/11060:
3118 * python/py-type.c (typy_legacy_template_argument): New function,
3119 extracted from typy_template_argument.
3120 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3121 value when needed.
3122
4ac8c4da
TT
31232010-07-28 Oleg Nesterov <oleg@redhat.com>
3124
3125 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3126
053315c2
TT
31272010-07-27 Tom Tromey <tromey@redhat.com>
3128
3129 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3130
3ce3b1ba
PA
31312010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3132
3133 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3134 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3135
2bb4f988
TT
31362010-07-28 Tom Tromey <tromey@redhat.com>
3137
3138 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3139
74232302
JB
31402010-07-28 Joel Brobecker <brobecker@adacore.com>
3141
3142 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3143 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3144
385d04dc
JB
31452010-07-28 Joel Brobecker <brobecker@adacore.com>
3146
3147 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3148 down, just before the block that parse the breakpoint addr_string.
3149
34eaf542
TT
31502010-07-28 Tom Tromey <tromey@redhat.com>
3151
3152 PR c++/9946:
3153 * symfile.c (reread_symbols): Clear template_symbols.
3154 * symtab.h (struct symbol) <is_cplus_template_function>: New
3155 field.
3156 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3157 (struct template_symbol): New.
3158 * symtab.c (lookup_symbol_aux_local): Use
3159 cp_lookup_symbol_imports_or_template.
3160 * objfiles.h (struct objfile) <template_symbols>: New field.
3161 * objfiles.c (relocate_one_symbol): New function.
3162 (objfile_relocate1): Use it. Relocate isolated symbols.
3163 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3164 template_arguments>: New fields.
3165 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3166 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3167 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3168 (lookup_typename): Update.
3169 * gdbtypes.c (lookup_typename): Constify "block" argument.
3170 * dwarf2read.c: Include vec.h.
3171 (symbolp): New typedef.
3172 (read_func_scope): Read template arguments. Allocate a
3173 template_symbol when needed.
3174 (read_structure_type): Read template arguments.
3175 (new_symbol_full): New function, from new_symbol. Handle
3176 DW_TAG_template_type_param and DW_TAG_template_value_param.
3177 (new_symbol): Rewrite as wrapper.
3178 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3179 * cp-namespace.c: Include language.h.
3180 (search_symbol_list): New function.
3181 (cp_lookup_symbol_imports_or_template): Likewise.
3182
d27b3be4
PA
31832010-07-28 Balazs Kezes <rlblaster@gmail.com>
3184
3185 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3186 the command window to the new size and position.
3187
0036e657
PA
31882010-07-28 Balazs Kezes <rlblaster@gmail.com>
3189
a782f43e 3190 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
3191 coordinates.
3192
36900355
PA
31932010-07-28 Balazs Kezes <rlblaster@gmail.com>
3194
a782f43e 3195 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 3196 after a detecting a resize.
a782f43e 3197 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
3198 call.
3199
db5e03ae
PA
32002010-07-28 Pedro Alves <pedro@codesourcery.com>
3201
3202 * configure.ac: Check for resize_term.
3203 * configure, config.in: Regenerate.
3204
b71fff68
JB
32052010-07-27 Joel Brobecker <brobecker@adacore.com>
3206
3207 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3208
9b1c24c8
PA
32092010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3210
3211 * dwarf2read.c (read_string): Rename to ...
3212 (read_direct_string): ... this.
3213 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3214 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3215
00390b84
JK
32162010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3217
3218 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3219 (count_events_callback, select_event_lwp_callback)
3220 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3221
26ab7092
JK
32222010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3223
3224 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3225 (_initialize_ia64_linux_nat): Install it.
3226 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3227 (linux_nat_set_status_is_event): New.
3228 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3229 cancel_breakpoints_callback, linux_nat_filter_event)
3230 (linux_nat_wait_1): Use linux_nat_status_is_event.
3231 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3232
283e6a52
TT
32332010-07-27 Tom Tromey <tromey@redhat.com>
3234
3235 * NEWS: Mention labels, .gdb_index.
3236
53a71c06
CR
32372010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3238
3239 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 3240 "start,+length" form of arguments.
53a71c06
CR
3241 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3242 since GDB 7.1"; and merge two separated paragraphs of disassemble
3243 description in "Changes in GDB 7.0".
3244
c63a1f86
JK
32452010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3246
3247 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3248 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3249 (fputs_maybe_filtered): Do not do filtering also on
3250 ! INPUT_FROM_TERMINAL_P.
3251
abebb8b0
JB
32522010-07-27 Joel Brobecker <brobecker@adacore.com>
3253
3254 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3255 in warning message.
3256
5374244e
PM
32572010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3258
3259 * python/py-value.c (valpy_call): New Function.
3260
ac0b195c
KW
32612010-07-27 Ken Werner <ken.werner@de.ibm.com>
3262
889bf7c5 3263 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
3264 types_list_elements variables.
3265
09d8bd00
TT
32662010-07-26 Tom Tromey <tromey@redhat.com>
3267
3268 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3269 TLS with DW_OP_const4u or DW_OP_const8u.
3270
9fe70b4f
TJB
32712010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3272
3273 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3274 VSX registers contents.
3275
caac4577
JG
32762010-07-26 Jerome Guitton <guitton@adacore.com>
3277
3278 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3279 its adress is null. Add comment to explain why.
3280 (new_symbol): Ditto.
3281
857d11d0
JK
32822010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3283
3284 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3285 the host signal first.
3286
1fd400ff
TT
32872010-07-23 Tom Tromey <tromey@redhat.com>
3288
3289 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3290 type_comp_units>: New fields.
3291 (dw2_get_cu): New function.
3292 (create_cus_from_index): Remove unused argument.
3293 (create_signatured_type_hash_from_index): New function.
3294 (create_addrmap_from_index): Update.
3295 (dwarf2_read_index): Handle version 2.
3296 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3297 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3298 (dw2_print_stats, dw2_expand_all_symtabs)
3299 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3300 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3301 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3302 (allocate_signatured_type_hash_table): New function.
3303 (add_signatured_type_cu_to_list): Likewise.
3304 (create_debug_types_hash_table): Use them. Set type_comp_units.
3305 (read_signatured_type): Ensure section data is available.
3306 (add_address_entry): Don't record empty ranges.
3307 (struct signatured_type_index_data): New.
3308 (write_one_signatured_type): New function.
3309 (write_psymtabs_to_index): Write type CUs.
3310 (save_gdb_index_command): Update comment.
3311 (process_type_comp_unit): Move inititalization of
3312 from_debug_types...
3313 (create_debug_types_hash_table): ... here.
3314
3a674486
JK
33152010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3316
3317 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3318 cleanup and generating of gdb script to it.
3319 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3320 and terminal size. Convert $tmpfile to a series of -ex-es.
3321
54ec275a
KS
33222010-07-23 Keith Seitz <keiths@redhat.com>
3323
3324 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3325 hook for STATIC_BLOCK types, too.
3326
8fd447e6
KS
33272010-07-23 Keith Seitz <keiths@redhat.com>
3328
3329 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3330 and vector definition.
3331
25b72dde
JK
33322010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3333
3334 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3335
96d19272
JK
33362010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3337
3338 * dwarf2read.c: Include completer.h.
3339 (save_gdb_index_command): Use matching usage command name.
3340 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3341 Set filename_completer for it.
3342
ca1f3406
TT
33432010-07-22 Tom Tromey <tromey@redhat.com>
3344
3345 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3346 type signature's per-CU data.
3347
ba25b921
PA
33482010-07-22 Pedro Alves <pedro@codesourcery.com>
3349
3350 * NEWS: Mention target reported shared libraries support by
3351 default.
3352
23bd0f7c
PA
33532010-07-21 Pedro Alves <pedro@codesourcery.com>
3354
3355 PR symtab/11827
3356
3357 Revert:
3358 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3359 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3360 and DW_TAG_volatile_type.
3361 (new_symbol): Likewise.
3362
883df6dd
SW
33632010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3364
3365 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3366 function symbols before overload resolution.
3367
269b11a2
PA
33682010-07-21 Pedro Alves <pedro@codesourcery.com>
3369
3370 * breakpoint.c (bptype_string): New, abstracted out from
3371 print_one_breakpoint_location.
3372 (print_one_breakpoint_location): Adjust.
3373 (breakpoint_1): Adjust the type column width dynamically.
3374
569b05a5
JK
33752010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3378 a gdb_assert call, new comment.
3379
ad34eb2f
JK
33802010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3381
3382 * linux-nat.c (linux_handle_extended_wait): Handle case when
3383 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3384
33355866
JK
33852010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3386
3387 Code cleanup.
3388 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3389 linux_nat_wait_1. Use always LP->STATUS afterwards.
3390
26590820
HZ
33912010-07-20 Hui Zhu <teawater@gmail.com>
3392
3393 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3394 (inf_ptrace_attach): Ditto.
3395
c0edd9ed
JK
33962010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3397
3398 Make core files the process_stratum.
3399 * corefile.c (core_target): New variable.
3400 (core_file_command): Remove variable t, use core_target.
3401 * corelow.c (core_ops): Make it static.
3402 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3403 * defs.h (make_cleanup_unpush_target): New prototype.
3404 * gdbarch.h: Regenerate.
3405 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3406 * gdbcore.h (core_target): New declaration.
3407 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3408 variables ops_already_pushed and back_to. Use push_target,
3409 make_cleanup_unpush_target and discard_cleanups calls.
3410 * record.c (record_open): Replace core_stratum by a core_bfd check.
3411 * target.c (target_is_pushed): New function.
3412 (find_core_target): Remove.
3413 * target.h (enum strata) <core_stratum>: Remove.
3414 (target_is_pushed): New declaration.
3415 (find_core_target): Remove declaration.
3416 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3417 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3418
f02253f1
HZ
34192010-07-19 Hui Zhu <teawater@gmail.com>
3420
3421 * breakpoint.c (single_step_breakpoints_inserted): New
3422 function.
3423 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3424 * infrun.c (maybe_software_singlestep): Add check code.
3425 * record.c (record_resume): Add code for software single step.
3426 (record_wait): Ditto.
3427
78768c4a
JK
34282010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3429
3430 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3431 a more inner block. Remove its unused declaration initializer.
3432
431e49aa
TJB
34332010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3434
3435 * NEWS: Mention support for the new ptrace interface and hardware
3436 accelerated watchpoint conditions on powerpc-linux.
3437
bd91e7ae
OS
34382010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3439
3440 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3441 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3442 and host_address_to_string() and %s for pointers.
3443 (debug_to_remove_breakpoint): Likewise.
3444 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3445 (debug_to_can_accel_watchpoint_condition): Likewise.
3446 (debug_to_stopped_data_address): Likewise.
3447 (debug_to_watchpoint_addr_within_range): Likewise.
3448 (debug_to_insert_hw_breakpoint): Likewise.
3449 (debug_to_remove_hw_breakpoint): Likewise.
3450 (debug_to_insert_watchpoint): Likewise.
3451 (debug_to_remove_watchpoint): Likewise.
3452
29df156d
SW
34532010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3454
3455 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3456 argument.
3457 (cplus_specific): New struct.
3458 * symtab.c (symbol_set_demangled_name): Updated.
3459 Use cplus_specific for cplus symbols.
3460 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3461 struct for cplus symbols.
3462 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3463 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3464 * symtab.c (symbol_init_cplus_specific): New function.
3465
b250c185
SW
34662010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3467
3468 * symtab.h (symbol_set_demangled_name): New function.
3469 (symbol_get_demangled_name): New function.
3470 * symtab.c (symbol_set_demangled_name): New function.
3471 (symbol_get_demangled_name): New function.
3472 (symbol_init_language_specific): Use demangled_name setter and getter.
3473 (symbol_set_names): Ditto.
3474 (symbol_natural_name): Ditto.
3475 (symbol_demangled_name): Ditto.
3476 * dwarf2read.c (new_symbol): Ditto.
3477
afa16725
SW
34782010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3479
3480 * symtab.h: Renamed cplus_specific to mangled_lang.
3481 * symtab.c (symbol_init_language_specific): Updated.
3482 (symbol_set_names): Updated.
3483 (symbol_natural_name): Updated.
3484 (symbol_demangled_name): Updated.
3485 * ada-lang.c (ada_decode_symbol): Updated.
3486 * dwarf2read.c (new_symbol): Updated.
3487
3cbaedff
KW
34882010-07-14 Ken Werner <ken.werner@de.ibm.com>
3489
3490 * valops.c (value_assign): Do not call to value_coerce_to_target.
3491 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3492
c932f1be
KW
34932010-07-14 Ken Werner <ken.werner@de.ibm.com>
3494
3495 * MAINTAINERS: Add myself for write after approval privileges.
3496
91158a56
TT
34972010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3498
3499 * c-valprint.c (c_val_print): Add embedded_offset to address in
3500 call to val_print_array_elements.
3501
b3b272e1
TT
35022010-07-13 Tom Tromey <tromey@redhat.com>
3503
3504 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3505
bb3fa9d0
TT
35062010-07-13 Tom Tromey <tromey@redhat.com>
3507
3508 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3509 objfile.
3510
dd786858
TT
35112010-07-13 Tom Tromey <tromey@redhat.com>
3512
3513 * symfile.c (set_initial_language): Update.
3514 (deduce_language_from_filename): Argument type now const.
3515 * symtab.h (find_main_filename): Update.
3516 (deduce_language_from_filename): Update.
3517 * symtab.c (find_main_filename): Make result const.
3518 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3519 * psymtab.c (find_symbol_file_from_partial): Change return type.
3520 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3521 Make result const.
3522
9291a0cd
TT
35232010-07-13 Tom Tromey <tromey@redhat.com>
3524
3525 * breakpoint.c (save_cmdlist): No longer static.
3526 * gdbcmd.h (save_cmdlist): Declare.
3527 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3528 OBJF_READNOW on objfile if readnow_symbol_files.
3529 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3530 (elf_sym_fns_gdb_index): New global.
3531 * dwarf2read.c: Include exceptions.h.
3532 (offset_type): New.
3533 (struct mapped_index): New.
3534 (dwarf2_per_cu_data_ptr): New typedef.
3535 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3536 New fields.
3537 (GDB_INDEX_SECTION): New define.
3538 (struct dwarf2_per_cu_quick_data): New.
3539 (struct dwarf2_per_cu_data) <objfile>: New field.
3540 <psymtab>: Removed.
3541 <v>: New field.
3542 (byte_swap): New function.
3543 (MAYBE_SWAP): New macro.
3544 (INDEX_SUFFIX): New macro.
3545 (dw2_do_instantiate_symtab): New function.
3546 (dw2_instantiate_symtab): Likewise.
3547 (create_cus_from_index): Likewise.
3548 (create_addrmap_from_index): Likewise.
3549 (mapped_index_string_hash): Likewise.
3550 (find_slot_in_mapped_hash): Likewise.
3551 (dwarf2_read_index): Likewise.
3552 (dw2_setup): Likewise.
3553 (dw2_require_line_header): Likewise.
3554 (dw2_require_full_path): Likewise.
3555 (dw2_find_last_source_symtab): Likewise.
3556 (dw2_forget_cached_source_info): Likewise.
3557 (dw2_lookup_symtab): Likewise.
3558 (dw2_lookup_symbol): Likewise.
3559 (dw2_do_expand_symtabs_matching): Likewise.
3560 (dw2_pre_expand_symtabs_matching): Likewise.
3561 (dw2_print_stats): Likewise.
3562 (dw2_dump): Likewise.
3563 (dw2_relocate): Likewise.
3564 (dw2_expand_symtabs_for_function): Likewise.
3565 (dw2_expand_all_symtabs): Likewise.
3566 (dw2_expand_symtabs_with_filename): Likewise.
3567 (dw2_find_symbol_file): Likewise.
3568 (dw2_map_ada_symtabs): Likewise.
3569 (dw2_expand_symtabs_matching): Likewise.
3570 (dw2_find_pc_sect_symtab): Likewise.
3571 (dw2_map_symbol_names): Likewise.
3572 (dw2_map_symbol_filenames): Likewise.
3573 (dw2_has_symbols): Likewise.
3574 (dwarf2_gdb_index_functions): New global.
3575 (dwarf2_initialize_objfile): New function.
3576 (process_psymtab_comp_unit): Update.
3577 (add_partial_subprogram): Likewise.
3578 (dwarf2_psymtab_to_symtab): Likewise.
3579 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3580 (process_full_comp_unit): Update.
3581 (find_file_and_directory): New function.
3582 (read_file_scope): Use find_file_and_directory.
3583 (dwarf2_per_cu_objfile): Update.
3584 (dwarf2_per_cu_addr_size): Update.
3585 (dwarf2_per_cu_offset_size): Update.
3586 (dwarf2_free_objfile): Free the index, if needed.
3587 (dwarf2_per_objfile_free): Unmap the index, if needed.
3588 (struct strtab_entry): New.
3589 (hash_strtab_entry): New function.
3590 (eq_strtab_entry): Likewise.
3591 (create_strtab): Likewise.
3592 (add_string): Likewise.
3593 (struct symtab_index_entry): New.
3594 (struct mapped_symtab): New.
3595 (hash_symtab_entry): New function.
3596 (eq_symtab_entry): Likewise.
3597 (delete_symtab_entry): Likewise.
3598 (create_index_table): Likewise.
3599 (create_mapped_symtab): Likewise.
3600 (cleanup_mapped_symtab): Likewise.
3601 (find_slot): Likewise.
3602 (hash_expand): Likewise.
3603 (add_index_entry): Likewise.
3604 (add_indices_to_cpool): Likewise.
3605 (write_hash_table): Likewise.
3606 (add_address_entry): Likewise.
3607 (write_psymbols): Likewise.
3608 (write_obstack): Likewise.
3609 (unlink_if_set): Likewise.
3610 (write_psymtabs_to_index): Likewise.
3611 (save_gdb_index_command): Likewise.
3612 (_initialize_dwarf2_read): Install "save gdb-index"
3613 command.
3614 (create_all_comp_units): Initialize 'objfile' field of CU.
3615 (dwarf2_locate_sections): Check for .gdb_index.
3616 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3617 * symfile.h (dwarf2_initialize_objfile): Declare.
3618
58b6ab13
TT
36192010-07-13 Tom Tromey <tromey@redhat.com>
3620
3621 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3622 (basic_lookup_transparent_type): Likewise.
3623 * symfile.h (struct quick_symbol_functions)
3624 <pre_expand_symtabs_matching>: New field.
3625 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3626 (psym_functions): Update.
3627
0f5238ed
TT
36282010-07-13 Tom Tromey <tromey@redhat.com>
3629
3630 PR breakpoints/8357:
3631 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3632 * linespec.c (decode_line_1): Update comment. Call decode_label.
3633 (decode_label): New function.
3634 (symbol_found): Handle LOC_LABEL.
3635 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3636 domain. Call add_symbol_to_list.
3637
9aa1f1e3
TT
36382010-07-13 Tom Tromey <tromey@redhat.com>
3639
3640 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3641 * dwarf2loc.c (find_location_expression): Use
3642 dwarf2_per_cu_text_offset.
3643 (dwarf2_evaluate_loc_desc): Likewise.
3644 (dwarf2_loc_desc_needs_frame): Likewise.
3645 (compile_dwarf_to_ax): Likewise.
3646 (loclist_describe_location): Likewise.
3647 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3648 (dwarf2_per_cu_objfile): Update comment.
3649
953ac07e
JK
36502010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3651
3652 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3653 * p-lang.c (pascal_printstr): Likewise.
3654
f04e4012
TT
36552010-07-09 Tom Tromey <tromey@redhat.com>
3656
3657 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3658 'hint' if it is NULL.
3659
f4dfd9c0
HZ
36602010-07-09 Hui Zhu <teawater@gmail.com>
3661
3662 * source.c (print_source_lines_base): Add check for noprint.
3663
7e6e39e5
JB
36642010-07-08 Joel Brobecker <brobecker@adacore.com>
3665
3666 * python/python-config.py: Resync with Python 2.7 version of this
3667 script.
3668
76b8507d
JB
36692010-07-08 Joel Brobecker <brobecker@adacore.com>
3670
3671 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3672
797054e6
JB
36732010-07-07 Joel Brobecker <brobecker@adacore.com>
3674
3675 * NEWS: Create a new section for the next release branch.
3676 Rename the section of the current branch, now that it has
3677 been cut.
3678
c80befee 36792010-07-07 Joel Brobecker <brobecker@adacore.com>
3680
3681 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3682 * version.in: Bump version to 7.2.50.20100707-cvs.
3683
ac56253d
TT
36842010-07-07 Tom Tromey <tromey@redhat.com>
3685
3686 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3687 LOC_COMPUTED symbol.
3688 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3689 (dwarf2_loc_desc_needs_frame): Likewise.
3690 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3691 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3692 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3693 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3694 'offset' argument.
3695 (struct dwarf2_frame_cache) <text_offset>: New field.
3696 (dwarf2_frame_cache): Set new field.
3697 (dwarf2_frame_prev_register): Update.
3698 (dwarf2_frame_sniffer): Update.
3699 (dwarf2_frame_base_sniffer): Update.
3700 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3701
0cf6dd15
TJB
37022010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3703 Thiago Jung Bauermann <bauerman@br.ibm.com>
3704
3705 Support for hw accelerated condition watchpoints in booke powerpc.
3706
3707 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3708 and move to eval.c. Change callers.
3709 (insert_bp_location): Pass watchpoint condition in
3710 target_insert_watchpoint.
3711 (remove_breakpoint_1) Pass watchpoint condition in
3712 target_remove_watchpoint.
3713 (watchpoint_locations_match): Call
3714 target_can_accel_watchpoint_condition.
3715 * eval.c: Include wrapper.h.
3716 (fetch_subexp_value): Moved from breakpoint.c.
3717 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3718 Formatting fix.
3719 (can_use_watchpoint_cond_accel): New function.
3720 (calculate_dvc): Likewise.
3721 (num_memory_accesses): Likewise.
3722 (check_condition): Likewise.
3723 (ppc_linux_can_accel_watchpoint_condition): Likewise
3724 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3725 check_condition and calculate_dvc.
3726 (ppc_linux_remove_watchpoint): Likewise.
3727 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3728 ppc_linux_can_accel_watchpoint_condition
3729 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3730 condition.
3731 (debug_to_remove_watchpoint): Likewise.
3732 (debug_to_can_accel_watchpoint_condition): New function.
3733 (update_current_target): Set to_can_accel_watchpoint_condition.
3734 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3735 * target.h: Add opaque declaration for struct expression.
3736 (struct target_ops) <to_insert_watchpoint>,
3737 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3738 <to_can_accel_watchpoint_condition>: New member.
3739 condition. Update all callers and implementations.
3740 (target_can_accel_watchpoint_condition): New macro.
3741 * value.c (free_value_chain): New function.
3742 * value.h (fetch_subexp_value): New prototype.
3743 (free_value_chain): Likewise.
3744
2f2241f1
UW
37452010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3746
3747 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3748 from gdbarch_core_regset_sections also for .reg if present.
3749
3750 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3751 section size for .reg.
3752 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3753 (ppc_linux_vmx_regset_sections): Likewise.
3754 (ppc_linux_fp_regset_sections): Likewise.
3755 (ppc64_linux_vsx_regset_sections): New variable.
3756 (ppc64_linux_vmx_regset_sections): Likewise.
3757 (ppc64_linux_fp_regset_sections): Likewise.
3758 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3759 for current word size.
3760
1fd7cdc2
JB
37612010-07-06 Joel Brobecker <brobecker@adacore.com>
3762
3763 * server.c (myresume): Make static.
3764
11763c18
TT
37652010-07-06 Tom Tromey <tromey@redhat.com>
3766
3767 * configure, config.in: Rebuild.
3768 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3769 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3770
a6cc4789
AS
37712010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3772
3773 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3774 "clear".
3775
f9e9243a
UW
37762010-07-06 Ken Werner <ken.werner@de.ibm.com>
3777
3778 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3779 * gdbtypes.c (floatformats_ieee_half): New variable.
3780 * doublest.c (floatformat_from_length): Set format to
3781 gdbarch_half_format if length matches.
3782 * gdbarch.sh (half_bit): New architecture method.
3783 (half_format): Likewise.
3784 * gdbarch.h: Regenerate.
3785 * gdbarch.c: Likewise.
3786
4e5799b6
JK
37872010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3788 Joel Brobecker <brobecker@adacore.com>
3789
3790 Fix re-run of PIE executable, PR shlibs/11776.
3791 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3792 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3793
86e4bafc
JK
37942010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3795 Joel Brobecker <brobecker@adacore.com>
3796
3797 * auxv.c (memory_xfer_auxv): Update attach comment.
3798 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3799 svr4_relocate_main_executable.
3800 (svr4_solib_create_inferior_hook): Make the call to
3801 svr4_relocate_main_executable unconditional.
3802
3cd07d20
JK
38032010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3804 Joel Brobecker <brobecker@adacore.com>
3805
3806 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3807
0a1e94c7
JK
38082010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3809 Joel Brobecker <brobecker@adacore.com>
3810
3811 Fix attaching to PIEs prelinked on the disk after the process was
3812 started.
3813 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3814 Verify it against bfd_get_arch_size. Try to match arbitrary
3815 displacement for the phdrs comparison.
3816
5387647f
TT
38172010-07-02 Tom Tromey <tromey@redhat.com>
3818
3819 PR exp/11780:
3820 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3821 value as optimized-out.
3822
38b6c3b3
TJB
38232010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3824 Thiago Jung Bauermann <bauerman@br.ibm.com>
3825
3826 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3827 represent?" question in comment. Change comment to a proper sentence.
3828
a17ac5b0
TT
38292010-07-02 Ken Werner <ken.werner@de.ibm.com>
3830
3831 * c-valprint.c (c_val_print): Fix printing of character vectors.
3832
bddaafad
JK
38332010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3834
3835 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3836 create_breakpoint prototype.
3837
d41c0fc8
PA
38382010-07-01 Pedro Alves <pedro@codesourcery.com>
3839
3840 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3841 usefulness suggestion of multiple breakpoints at same location.
3842
dc10affe
PA
38432010-07-01 Pedro Alves <pedro@codesourcery.com>
3844
3845 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3846
cabe9ab6
PA
38472010-07-01 Pedro Alves <pedro@codesourcery.com>
3848
3849 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3850 (loclist_tracepoint_var_ref): Handle optimized out values.
3851
cce7e648
PA
38522010-07-01 Pedro Alves <pedro@codesourcery.com>
3853
3854 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3855 unnecessary space in string.
3856 * filesystem.c (_initialize_filesystem): Ditto.
3857 * frame.c (_initialize_frame): Ditto.
3858 * infcmd.c (step_once): Ditto.
3859 * infrun.c (_initialize_infrun): Ditto.
3860 * linux-nat.c (linux_child_follow_fork): Ditto.
3861 * maint.c (maintenance_deprecate): Ditto.
3862 * memattr.c (_initialize_mem): Ditto.
3863 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3864 * monitor.c (monitor_open): Ditto.
3865 * procfs.c (procfs_xfer_memory): Ditto.
3866 * reverse.c (bookmarks_info): Ditto.
3867 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3868 * stack.c (_initialize_stack): Ditto.
3869 * tracepoint.c (_initialize_tracepoint): Ditto.
3870 * xtensa-tdep.c (xtensa_supply_gregset,
3871 xtensa_regset_from_core_section): Ditto.
3872
b65c7efe
TT
38732010-07-01 Tom Tromey <tromey@redhat.com>
3874
3875 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3876 check_all_valid.
3877 * value.c (value_entirely_optimized_out): Invert result. Update
3878 for new function name.
3879
0fb4aa4b
PA
38802010-07-01 Pedro Alves <pedro@codesourcery.com>
3881
3882 Static tracepoints support.
3883
3884 * NEWS: Mention new support for static tracepoints.
3885 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3886 qXfer:statictrace:read.
3887 (New features in the GDB remote stub, GDBserver): Mention static
3888 tracepoints support using an UST based backend.
3889 (New commands): Mention "info static-tracepoint-markers" and
3890 "strace".
3891 * breakpoint.c (is_marker_spec): New.
3892 (is_tracepoint): Handle static tracepoints.
3893 (validate_commands_for_breakpoint): Static tracepoints can't do
3894 while-stepping.
3895 (static_tracepoints_here): New.
3896 (bpstat_what): Handle static tracepoints.
3897 (print_one_breakpoint_location, allocate_bp_location, mention):
3898 Ditto.
3899 (create_breakpoint_sal): Ditto.
3900 (decode_static_tracepoint_spec): New.
3901 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3902 `type_wanted'. Adjust. Handle static tracepoint marker
3903 locations.
3904 (break_command_1): Adjust.
3905 (update_static_tracepoint): New.
3906 (update_breakpoint_locations): Handle static tracepoints.
3907 (breakpoint_re_set_one): Handle static tracepoint marker
3908 locations.
3909 (disable_command, enable_command): Handle static tracepoints.
3910 (trace_command, ftrace_command): Adjust.
3911 (strace_command): New.
3912 (create_tracepoint_from_upload): Adjust.
3913 (save_breakpoints): Handle static tracepoints.
3914 (_initialize_breakpoint): Install the "strace" command.
3915 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3916 (struct breakpoint): New fields static_trace_marker_id and
3917 static_trace_marker_id_idx.
3918 (breakpoints_here_p): Declare.
3919 (create_breakpoint): Adjust.
3920 (static_tracepoints_here): Declare.
3921 * remote.c (struct remote_state) <static_tracepoints>: New field.
3922 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3923 (remote_static_tracepoint_marker_at): New.
3924 (remote_static_tracepoint_markers_by_strid): New.
3925 (remote_static_tracepoint_feature): New.
3926 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3927 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3928 (remote_supports_static_tracepoints): New.
3929 (remote_download_tracepoint): Download static tracepoints.
3930 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3931 remote_static_tracepoint_markers_by_strid.
3932 (_initialize_remote): Install set|show remote static-tracepoints,
3933 and set|show remote read-sdata-object commands.
3934 * target.c (update_current_target): Inherit and default
3935 to_static_tracepoint_marker_at, and
3936 to_static_tracepoint_markers_by_strid.
3937 * target.h (static_tracepoint_marker): Forward declare.
3938 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3939 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3940 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3941 (struct target_ops): New fields to_static_tracepoint_marker_at and
3942 to_static_tracepoint_markers_by_strid.
3943 (target_static_tracepoint_marker_at)
3944 (target_static_tracepoint_markers_by_strid): New.
3945 * tracepoint.c: Include source.h.
3946 (validate_actionline): Handle $_sdata.
3947 (struct collection_list): New field strace_data.
3948 (add_static_trace_data): New.
3949 (clear_collection_list): Clear strace_data.
3950 (stringify_collection_list): Account for a possible static trace
3951 data collection.
3952 (encode_actions_1): Encode an $_sdata collection.
3953 (parse_tracepoint_definition): Handle static tracepoints.
3954 (parse_static_tracepoint_marker_definition): New.
3955 (release_static_tracepoint_marker): New.
3956 (print_one_static_tracepoint_marker): New.
3957 (info_static_tracepoint_markers_command): New.
3958 (sdata_make_value): New.
3959 (_initialize_tracepoint): Create the $_sdata convenience variable.
3960 Add the "info static-tracepoint-markers" command.
3961 Mention $_sdata in the "collect" command's help output.
3962 * tracepoint.h (struct static_tracepoint_marker): New.
3963 (parse_static_tracepoint_marker_definition)
3964 (release_static_tracepoint_marker): Declare.
3965 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3966 * python/py-breakpoint.c (bppy_new): Adjust.
3967
aac63f0f
JB
39682010-06-30 Joel Brobecker <brobecker@adacore.com>
3969
3970 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3971 including Python.h.
3972
e68994a7
DE
39732010-06-29 Doug Evans <dje@google.com>
3974
3863f96c
DE
3975 PR gdb/11702
3976 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3977 DW_AT_external is present.
3978
254e6b9e
DE
3979 PR gdb/11702
3980 * NEWS: Add entry.
3981 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3982 create a symbol for the field and record the value.
3983 (new_symbol): Handle DW_TAG_member.
3984 * gdbtypes.c (field_is_static): Remove FIXME.
3985 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3986 only ignore LOC_CONST symbols that are enums.
3987
6e70227d
DE
3988 * dwarf2read.c: Remove trailing whitespace.
3989
e68994a7
DE
3990 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3991 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3992 (struct main_type, field loc): Delete dwarf_block.
3993 (FIELD_DWARF_BLOCK): Delete.
3994 (SET_FIELD_DWARF_BLOCK): Delete.
3995 (TYPE_FIELD_DWARF_BLOCK): Delete.
3996 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3997 Update.
3998
a480d2f6
HZ
39992010-06-29 Hui Zhu <teawater@gmail.com>
4000
4001 * record.c (set_record_pic_cmdlist,
4002 show_record_pic_cmdlist): New variables.
4003 (set_record_pic_command,
4004 show_record_pic_command): New functions.
4005 (record_pic_function, record_pic_line, record_pic_enum,
4006 set_record_pic_type, record_pic_hide_nofunction,
4007 record_pic_hide_nosource, record_pic_hide_same): New variables.
4008 (record_pic_fputs): New function.
4009 (function_list, node_list, edge_list): New struct.
4010 (function_list, node_list, edge_list): New variables.
4011 (record_pic_cleanups, record_pic_node,
4012 record_pic_edge, cmd_record_pic): New functions.
4013 (_initialize_record): Add new commands for record pic.
4014
a0d7a4ff
JK
40152010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4016
4017 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4018 ALLOCATE_CPLUS_STRUCT_TYPE.
4019
595939de 40202010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
4021 Tom Tromey <tromey@redhat.com>
4022 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
4023
4024 * value.c (pack_unsigned_long): New function.
4025 (value_from_ulongest): New function.
4026 * value.h (value_from_ulongest): Declare.
4027 * python/python.c (_initialize_python): Call
4028 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4029 * python/python-internal.h: Define thread_object.
4030 (gdbpy_inferiors, gdbpy_selected_thread)
4031 (frame_info_to_frame_object, create_thread_object)
4032 (find_thread_object, find_inferior_object)
4033 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4034 (gdbpy_is_value_object, get_addr_from_python): Declare.
4035 * python/py-value.c (builtin_type_upylong): Define.
4036 (convert_value_from_python): Add logic for ulongest.
4037 (gdbpy_is_value_object): New function.
4038 * python/py-utils.c (get_addr_from_python): New function.
4039 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4040 (gdbpy_selected_frame): Use PyObject over frame_info.
4041 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4042 py-infthread.
4043 (SUBDIR_PYTHON_SRCS): Likewise.
4044 (py-inferior.o): New Rule.
4045 (py-infthread.o): New Rule.
4046 * python/py-inferior.c: New File.
4047 * python/py-infthread.c: New File.
4048
98751a41
JK
40492010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4050
4051 * c-typeprint.c (c_type_print_base): For no fields check include also
4052 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4053 * dwarf2read.c (struct typedef_field_list)
4054 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4055 (dwarf2_add_typedef): New.
4056 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4057 Copy also FI.TYPEDEF_FIELD_LIST.
4058 * gdbtypes.h (struct typedef_field)
4059 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4060 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4061 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4062
41f62f39
JK
40632010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4064
4065 * cp-namespace.c (cp_lookup_nested_type): New variable
4066 concatenated_name. Turn the current return condition into a reverse
4067 one. Call also lookup_static_symbol_aux on the constructed qualified
4068 name.
4069 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4070 other files into a called ...
4071 (lookup_static_symbol_aux): ... new function here.
4072 * symtab.h (lookup_static_symbol_aux): New prototype.
4073 * valops.c (value_maybe_namespace_elt): Call also
4074 lookup_static_symbol_aux if we failed otherwise.
4075
af53d231
JK
40762010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4077
4078 Fix PR c++/11703 and PR gdb/1448.
4079 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4080 FIRST_ITER check.
4081
9655fd1a
JK
40822010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4083
4084 Fix modification of cplus_struct_default.
4085 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4086 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4087 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4088
9279c692
JB
40892010-06-28 Joel Brobecker <brobecker@adacore.com>
4090
4091 * NEWS: Add entry announcing the python directory.
4092
d3f41bb1
TT
40932010-06-28 Tom Tromey <tromey@redhat.com>
4094
4095 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4096
23e7acfb
DE
40972010-06-28 Doug Evans <dje@google.com>
4098
4099 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4100 All callers updated.
4101
6036c742
JK
41022010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4103
4104 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4105 obstack_begin after each obstack_free.
4106
9f18a3b3
DE
41072010-06-27 Doug Evans <dje@google.com>
4108
1596cb5d
DE
4109 * value.c (value_static_field): Use `switch' instead of `if'.
4110 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4111
9f18a3b3
DE
4112 * valops.c (search_struct_field): Fix typo in error message.
4113
43dabe42
UW
41142010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4115
4116 * dwarf2expr.c (execute_stack_op): Place preprocessor
4117 directives at the start of the source line.
4118
0f3bb72e
PH
41192010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4120
6036c742
JK
4121 * defs.h (make_command_stats_cleanup): Declare.
4122 (set_display_time): Declare.
4123 (set_display_space): Declare.
4124 * event-top.c (command_handler): Use make_command_stats_cleanup.
4125 * main.c (display_time, display_space): Move definitions to utils.c.
4126 (captured_main): Use make_command_stats_cleanup to get start-up
4127 statistics.
4128 Use set_display_time and set_display_space for processing OPT_STATISTICS
4129 case.
4130 * maint.c (maintenance_time_display): Use set_display_time.
4131 (maintenance_space_display): Use set_display_space.
4132 * top.c (execute_command): Remove obsolete 'maint time' code.
4133 (command_loop): Use make_command_stats_cleanup.
4134 * utils.c (struct cmd_stats): Structure for storing initial time
4135 and space usage.
4136 (display_time, display_space): Move definitions here from utils.c.
4137 (set_display_time): New function.
4138 (set_display_space): New function.
4139 (make_command_stats_cleanup): New function.
4140 (report_command_stats): New auxiliary function for
4141 make_command_stats_cleanup.
0f3bb72e 4142
070c8028
UW
41432010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4144
4145 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4146 hosts where CORE_ADDR is long long.
4147
bc9f0842
TT
41482010-06-25 Tom Tromey <tromey@redhat.com>
4149
4150 PR python/10808:
4151 * python/python.c (execute_gdb_command): Add keywords. Accept
4152 "to_string" argument.
4153 (struct restore_ui_file_closure): New.
4154 (restore_ui_file): New function.
4155 (make_cleanup_restore_ui_file): Likewise.
4156 (GdbMethods) <execute>: Update.
4157
c0cc4c83
UW
41582010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4159
4160 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4161 during inferior call stack frame setup.
4162
f1d8ee66
UW
41632010-06-25 Ken Werner <ken.werner@de.ibm.com>
4164
4165 * solib-spu.c: Include "exception.h".
4166 (ocl_program_data_key): New variable.
4167 (append_ocl_sos): New function.
4168 (ocl_enable_break): Likewise.
4169 (spu_current_sos): Call append_ocl_sos.
4170 (spu_solib_loaded): Call ocl_enable_break.
4171 (_initialize_spu_solib): Register ocl_program_data_key.
4172
19c0c0f8
UW
41732010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4174
4175 * cp-support.c (reset_directive_searched): New function.
4176 (make_symbol_overload_list_using): Prevent recursive calls.
4177
0f6a939d
PM
41782010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4179
4180 * printcmd.c (print_variable_and_value): Print error message on
4181 caught exception.
4182
f2c7657e
UW
41832010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4184
4185 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4186 of stack values.
4187 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4188 "value" member.
4189 (dwarf_expr_push): Change input type to ULONGEST.
4190 (dwarf_expr_fetch): Change return type to ULONGEST.
4191 (dwarf_expr_fetch_address): Add prototype.
4192 (dwarf2_read_address): Remove prototype.
4193 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4194 Truncate stack values to ctx->addr_size bytes.
4195 (dwarf_expr_fetch): Change return value to ULONGEST.
4196 (dwarf_expr_fetch_address): New function.
4197 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4198 when appropriate. Update for struct dwarf_expr_piece changes.
4199 (dwarf2_read_address): Remove.
4200 (unsigned_address_type): Remove.
4201 (signed_address_type): Remove.
4202 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4203 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4204 values. Perform operations on ULONGEST instead of on GDB values,
4205 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4206 values and DW_OP_deref results as unsigned integers.
4207 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4208 changes.
4209 (write_pieced_value): Likewise.
4210 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4211 dwarf_expr_fetch when appropriate.
4212 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4213 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4214 instead of dwarf_expr_fetch when appropriate.
4215
b1d61bc9
PM
42162010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4217
4218 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4219
b14285f6
JB
42202010-06-24 Joel Brobecker <brobecker@adacore.com>
4221
4222 * python/python.c (_initialize_python): Add new "constant"
4223 PYTHONDIR in gdb module. Insert this path at the head of
4224 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4225 exec its __init__.py script if it exists in that directory.
4226
fd60dc69
KB
42272010-06-24 Kevin Buettner <kevinb@redhat.com>
4228
4229 * rx-tdep.c (RX_ACC_REGNUM): Define.
4230 (RX_NUM_REGS): Redefine to 26.
4231 (rx_register_name): Add register "acc". Change order of several
4232 registers. Change name of "vct" register to "fintv" to match RX
4233 documentation.
4234 (rx_register_type): Add case for RX_ACC_REGNUM.
4235
18430289
TT
42362010-06-24 Tom Tromey <tromey@redhat.com>
4237
4238 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4239
40618926
JK
42402010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4241 Tom Tromey <tromey@redhat.com>
4242
4243 Fix GDB startup on readonly filesystem.
4244 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4245
628fe4e4
JK
42462010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4247 Pedro Alves <pedro@codesourcery.com>
4248
4249 Fix PR 9436.
4250 * breakpoint.c (handle_jit_event): New function.
4251 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4252 jit, err, table and bs_class. New variables shlib_event, jit_event,
4253 this_action and bptype. Change bs_class assignments to this_action
4254 assignments. new unhandled bptype internal error. Move here
4255 shlib_event and jit_event handling from handle_inferior_event.
4256 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4257 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4258 BPSTAT_WHAT_CHECK_JIT.
4259 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4260 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4261 (handle_inferior_event): Reinitialize frame and gdbarch after
4262 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4263 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4264 gdbarch when frame gets reinitialized.
4265
f1421989
HZ
42662010-06-24 Hui Zhu <teawater@gmail.com>
4267
4268 * printcmd.c (ui_printf): New function.
4269 (printf_command): Call ui_printf.
4270 (_initialize_printcmd): New command "eval".
4271
d03285ec
UW
42722010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4273
4274 * infrun.c (handle_inferior_event): Handle presence of single-step
4275 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4276 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4277 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4278 * breakpoint.c (detach_single_step_breakpoints): New function.
4279 (detach_breakpoints): Call it.
4280 (cancel_single_step_breakpoints): New function.
4281 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4282
4283 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4284 (spu_gdbarch_init): Install it.
4285
38f6b338
JK
42862010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4287
4288 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4289 * configure: Regenerate.
4290
bb08c432
HZ
42912010-06-22 Hui Zhu <teawater@gmail.com>
4292
4293 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4294 (i386_process_record): Ditto.
4295 * record.c (record_memory_query): New variable.
4296 (_initialize_record): New command "set record memory-query".
4297 * record.h (record_memory_query): New extern.
4298
b55078be
DE
42992010-06-21 Doug Evans <dje@google.com>
4300
4301 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4302 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4303 (i386_syscall_p): Change type of lengthp to int.
4304 (i386_displaced_step_fixup): Handle kernels that run one past a
4305 syscall insn.
4306 * i386-linux-tdep.c (i386_linux_init_abi): Use
4307 i386_displaced_step_copy_insn instead of
4308 simple_displaced_step_copy_insn.
4309
75079b2b
TT
43102010-06-21 Tom Tromey <tromey@redhat.com>
4311
4312 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4313 (dwarf_type_encoding_name): Likewise.
4314
b00fdb78
TT
43152010-06-21 Tom Tromey <tromey@redhat.com>
4316
4317 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4318 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4319 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4320 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4321 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4322 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4323 * dwarf2read.c (tag_type_to_type): Create a new error type on
4324 failure.
4325 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4326 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4327
84951ab5
MS
43282010-06-21 Michael Snyder <msnyder@vmware.com>
4329
889bf7c5 4330 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
4331 not add_abbrev_prefix_cmd, for "enable breakpoints".
4332
d4a087c7
UW
43332010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4334
4335 * dwarf2loc.c (find_location_expression): Add relocation offset
4336 to base-address-selection entry base addresses. Read addresses
4337 (and offsets) as signed/unsigned integers, depending on the
4338 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4339 (loclist_describe_location): Likewise.
4340 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4341 unsigned integer. Do not call dwarf2_read_address.
4342 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4343
13def385
UW
43442010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4345
4346 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4347 value instead of hard-coded SPU_LS_SIZE.
4348 (spu_software_single_step): Likewise.
4349 * spu-tdep.h (SPU_LS_SIZE): Remove.
4350
d2ed6730
UW
43512010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4352
4353 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4354 limit on local store memory accesses.
4355 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4356 * spu-tdep.c (spu_lslr): Remove.
4357 (spu_pointer_to_address): Do not truncate addresses.
4358 (spu_integer_to_address): Likewise.
4359 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4360 * spu-tdep.h: Add comments.
4361 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4362 (SPU_OVERLAY_LMA): Define.
4363
6aed2dbc
SS
43642010-06-18 Stan Shebs <stan@codesourcery.com>
4365
a61408f8
SS
4366 * osdata.c (get_osdata): Warn separately if target does not report
4367 type list.
4368 (info_osdata_command): Allow empty type, report error if target
4369 does not return available types of OS data.
4370 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4371 types if no annex supplied.
4372
6aed2dbc
SS
4373 * thread.c (thread_id_make_value): Make a value representing the
4374 current thread.
4375 (_initialize_thread): Create $_thread.
4376
ec61707d
JB
43772010-06-17 Joel Brobecker <brobecker@adacore.com>
4378
4379 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4380 last local variable declaration. No real code change.
4381
60606b2c
TT
43822010-06-17 Tom Tromey <tromey@redhat.com>
4383
4384 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4385 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4386 temporary obstack.
4387
65d79d4b
SDJ
43882010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4389 Jan Kratochvil <jan.kratochvil@redhat.com>
4390
4391 * breakpoint.c: Include parser-defs.h.
4392 (watchpoint_exp_is_const): New function.
4393 (watch_command_1): Call watchpoint_exp_is_const to check
4394 if the expression is constant.
4395
0407b3f1
AS
43962010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4397
4398 * configure.ac: Check for RDYNAMIC also for cross builds.
4399 * configure: Regenerate.
4400
98d64339
PA
44012010-06-15 Pedro Alves <pedro@codesourcery.com>
4402
4403 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4404 (SFILES): Remove solib-null.c, add solib-target.c.
4405 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4406 (ALLDEPFILES): Remove solib-target.c.
4407 * solib-target.c (_initialize_solib_target): Set
4408 current_target_so_ops to solib_target_so_ops if not already set.
4409 * solib-null.c: Delete.
4410
6a271cae
PA
44112010-06-14 Pedro Alves <pedro@codesourcery.com>
4412
4413 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4414 bytecode.
4415
1e9beacb
UW
44162010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4417
4418 * cp-valprint.c (cp_print_static_field): Members of
4419 dont_print_stat_array_obstack are of type "struct type *".
4420 (_initialize_cp_valprint): Likewise.
4421
21a176fb
UW
44222010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4423
4424 * frame.c (frame_register_unwind): Do not access contents
4425 of "optimized out" unwound register value.
4426
25b524e8
JK
44272010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4428
4429 * ada-lang.h (ada_print_type): Make varstring const.
4430 * ada-typeprint.c (print_func_type): Make name const.
4431 (ada_print_type): Make varstring const.
4432 * c-lang.h (c_print_type): Make varstring const.
4433 * c-typeprint.c (c_print_type): Likewise.
4434 * f-lang.h (f_print_type): Likewise.
4435 * f-typeprint.c (f_print_type): Likewise.
4436 * jv-lang.h (java_print_type): Likewise.
4437 * jv-typeprint.c (java_print_type): Likewise.
4438 * language.c (unk_lang_print_type): Likewise.
4439 * language.h (struct language_defn) <la_print_type>: Likewise.
4440 * m2-lang.h (m2_print_type): Likewise.
4441 * m2-typeprint.c (m2_print_type): Likewise.
4442 * p-lang.h (pascal_print_type): Likewise.
4443 * p-typeprint.c (pascal_print_type): Likewise.
4444
d914c394
SS
44452010-06-11 Stan Shebs <stan@codesourcery.com>
4446
4447 Add per-operation permission flags.
4448
4449 * target.h (struct target_ops): New method to_set_permissions.
4450 (target_set_permissions): New macro.
4451 (target_insert_breakpoint): Change macro to function.
4452 (target_remove_breakpoint): Ditto.
4453 (target_stop): Ditto.
4454 (may_write_registers): Declare.
4455 (may_write_memory): Declare.
4456 (may_insert_breakpoints): Declare.
4457 (may_insert_tracepoints): Declare.
4458 (may_insert_fast_tracepoints): Declare.
4459 (may_stop): Declare.
4460 * target.c (may_write_registers, may_write_registers_1): New globals.
4461 (may_write_memory, may_write_memory_1): New globals.
4462 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4463 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4464 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4465 globals.
4466 (may_stop, may_stop_1): New global.
4467 (target_xfer_partial): Test for write permission.
4468 (target_store_registers): Ditto.
4469 (target_insert_breakpoint): New function.
4470 (target_remove_breakpoint): New function.
4471 (target_stop): New function.
4472 (_initialize_targets): Add new set/show variables.
4473 (set_write_memory_permission): New function.
4474 (update_target_permissions): New function.
4475 (set_target_permissions): New function.
4476 (update_current_target): Default to_set_permissions.
4477 (_initialize_targets): Use new globals and setter function.
4478 * tracepoint.c (start_tracing): Test for permission.
4479 * inferior.h (update_observer_mode): Declare.
4480 * infrun.c (non_stop_1): Define earlier.
4481 (observer_mode, observer_mode_1): New globals.
4482 (set_observer_mode, show_observer_mode): New functions.
4483 (update_observer_mode): New function.
4484 (_initialize_infrun): Define "set observer" command.
4485 * remote.c (PACKET_QAllow): New optional packet.
4486 (remote_protocol_features): Add QAllow.
4487 (remote_set_permissions): New function.
4488 (remote_start_remote): Call it.
4489 (init_remote_ops): Add it to target vector.
4490 (_initialize_remote): Add config command for QAllow.
4491
aec5aa8b
TT
44922010-06-11 Tom Tromey <tromey@redhat.com>
4493
4494 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4495 DW_AT_vtable_elem_location even when GCC extension is seen.
4496
0e03807e
TT
44972010-06-11 Tom Tromey <tromey@redhat.com>
4498
4499 PR gdb/9977, PR exp/11636:
4500 * value.h (value_offset): Update.
4501 (struct lval_funcs) <check_validity>: New field.
4502 <copy_closure>: Make argument const.
4503 (value_computed_closure): Update.
4504 (value_contents_for_printing): Declare.
4505 (value_bits_valid): Likewise.
4506 (val_print): Likewise.
4507 (set_value_component_location): Update.
4508 (value_entirely_optimized_out): Declare.
4509 * value.c (value_offset): Argument now const.
4510 (require_not_optimized_out): New function.
4511 (value_contents_for_printing): New function.
4512 (value_contents_all): Call require_not_optimized_out.
4513 (value_contents): Likewise.
4514 (value_bits_valid): New function.
4515 (value_computed_closure): Argument now const.
4516 (set_value_component_location): Make 'whole' argument const.
4517 (value_entirely_optimized_out): New function.
4518 (value_bitsize): Argument now 'const'.
4519 (value_bitpos): Likewise.
4520 (value_type): Likewise.
4521 * valprint.h (val_print_array_elements): Update.
4522 * valprint.c (val_print): Add 'val' argument. Use
4523 valprint_check_validity.
4524 (valprint_check_validity): New function.
4525 (value_check_printable): Use value_entirely_optimized_out.
4526 (common_val_print): Update.
4527 (value_print): Likewise.
4528 (val_print_array_elements): Add 'val' argument.
4529 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4530 value_bits_valid. Reinit frame cache for lval_computed.
4531 * sh64-tdep.c (sh64_do_register): Update.
4532 * scm-valprint.c (scm_val_print): Add 'val' argument.
4533 * scm-lang.h (scm_val_print): Update.
4534 * python/python.h (apply_val_pretty_printer): Update.
4535 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4536 argument. Call set_value_component_location.
4537 * printcmd.c (print_scalar_formatted): Update.
4538 * p-valprint.c (pascal_val_print): Add 'val' argument.
4539 (pascal_object_print_value_fields): Likewise.
4540 (pascal_object_print_value): Likewise.
4541 (pascal_object_print_static_field): Update.
4542 * p-lang.h (pascal_val_print): Update.
4543 (pascal_object_print_value_fields): Update.
4544 * mt-tdep.c (mt_registers_info): Update.
4545 * mi/mi-main.c (get_register): Update.
4546 (mi_cmd_data_evaluate_expression): Use common_val_print.
4547 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4548 (m2_print_unbounded_array): Likewise.
4549 (m2_val_print): Likewise.
4550 * m2-lang.h (m2_val_print): Update.
4551 * language.h (struct language_defn) <la_val_print>: Add 'val'
4552 argument.
4553 (LA_VAL_PRINT): Likewise.
4554 * language.c (unk_lang_val_print): Add 'val' argument.
4555 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4556 (java_val_print): Likewise.
4557 * jv-lang.h (java_val_print): Add 'val' argument.
4558 * infcmd.c (default_print_registers_info): Update.
4559 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4560 (f77_print_array): Likewise.
4561 (f_val_print): Likewise.
4562 * f-lang.h (f_val_print): Add 'val' argument.
4563 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4564 value_bitpos.
4565 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4566 set_value_optimized_out.
4567 (write_pieced_value): Use value_bitsize and value_bitpos.
4568 <default>: Don't exit loop.
4569 (check_pieced_value_validity): New function.
4570 (pieced_value_funcs): Reference check_pieced_value_validity,
4571 check_pieced_value_invalid.
4572 (copy_pieced_value_closure): Update.
4573 (check_pieced_value_bits): New function.
4574 (check_pieced_value_invalid): New function.
4575 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4576 (d_val_print): Likewise.
4577 * d-lang.h (d_val_print): Update.
4578 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4579 (cp_print_value_fields_rtti): Likewise.
4580 (cp_print_value): Likewise.
4581 (cp_print_static_field): Update.
4582 * c-valprint.c (c_val_print): Add 'val' argument.
4583 (c_value_print): Update.
4584 * c-lang.h (c_val_print): Update.
4585 (cp_print_value_fields): Likewise.
4586 (cp_print_value_fields_rtti): Likewise.
4587 * ada-valprint.c (struct ada_val_print_args): Remove.
4588 (val_print_packed_array_elements): Add 'val' argument.
4589 (ada_val_print): Likewise. Rewrite.
4590 (ada_val_print_stub): Remove.
4591 (ada_val_print_array): Add 'val' argument.
4592 (ada_val_print_1): Likewise.
4593 (print_variant_part): Likewise.
4594 (ada_value_print): Update.
4595 (print_record): Add 'val' argument.
4596 (print_field_values): Likewise.
4597 * ada-lang.h (ada_val_print): Update.
4598
3cf03773
TT
45992010-06-11 Tom Tromey <tromey@redhat.com>
4600
4601 * vec.h (VEC_cleanup): New macro.
4602 (DEF_VEC_ALLOC_FUNC_I): Update.
4603 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4604 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4605 * dwarf2loc.c (struct axs_var_loc): Remove.
4606 (unimplemented): New function.
4607 (translate_register): Likewise.
4608 (access_memory): Likewise.
4609 (compile_dwarf_to_ax): Likewise.
4610 (dwarf2_tracepoint_var_loc): Remove.
4611 (dwarf2_tracepoint_var_access): Likewise.
4612 (dwarf2_tracepoint_var_ref): Likewise.
4613 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4614 (loclist_tracepoint_var_ref): Likewise.
4615 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4616 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4617 require_composition. No longer static.
4618 (execute_stack_op): Update.
4619 * ax-gdb.h (trace_kludge): Declare.
4620
2bdf28a0
JK
46212010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4622
4623 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4624 (should_be_inserted): Return zero also on NULL OWNER.
4625 (breakpoint_program_space_exit): New OWNER comment.
4626 (insert_breakpoint_locations): Extend comment for OWNER.
4627 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4628 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4629 New OWNER comment.
4630 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4631 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4632 (bpstat_check_location): New assert on OWNER.
4633 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4634 and B initializations to the code block. New assert on them.
4635 (print_one_breakpoint_location): New OWNER comment.
4636 (watchpoint_locations_match): Assert on OWNER.
4637 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4638 initializations to the code block. New assert on OWNER.
4639 (set_breakpoint_location_function): New assert on OWNER.
4640 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4641 (bp_location_compare, update_global_location_list)
4642 (update_global_location_list): New OWNER comment.
4643
5b9a19af
UW
46442010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4645
4646 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4647
669211f5
UW
46482010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4649
4650 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4651 (lin_thread_get_thread_signals): Remove prototype.
4652 (GET_THREAD_SIGNALS): Remove.
4653 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4654 * linux-thread-db.c (check_thread_signals): Directly call
4655 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4656
b7a8b4ef
UW
46572010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4658
4659 * gregset.h (GDB_FPXREGSET_T): Remove.
4660 (gdb_fpxregset_t): Likewise.
4661 (supply_fpxregset): Remove prototype.
4662 (fill_fpxregset): Likewise.
4663 * i386-linux-nat.c (supply_fpxregset): Remove.
4664 (fill_fpxregset): Likewise.
4665 (fetch_fpxregs): Inline supply_fpxregset call.
4666 (store_fpxregs): Inline fill_fpxregset call.
4667
4668 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4669 * config/i386/nm-linux.h: Remove file.
4670
82892036
MS
46712010-06-09 Michael Snyder <msnyder@vmware.com>
4672
4673 * target.c (update_current_target): Fix spelling error in comment.
4674 (target_mourn_inferior): Fix spelling error in error message.
4675
5ddb52fa
PH
46762010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4677
4678 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4679 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4680
0f2caa1b
MS
46812010-06-08 Michael Snyder <msnyder@vmware.com>
4682
4683 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4684
3bebe2f2
JK
46852010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4686
4687 * configure.ac <"${have_libpython}" != no>: New workaround of
4688 python#4434.
4689 * configure: Regenerate.
4690
eaaffdf4
HZ
46912010-06-08 Hui Zhu <teawater@gmail.com>
4692
4693 * record.c (record_wait): Move signal out of replay code.
4694
5c631832
JK
46952010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4696
4697 Fix PR 10640.
4698 * dwarf2-frame.c (no_dwarf_call): New function.
4699 (execute_stack_op): Set CTX->DWARF_CALL.
4700 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4701 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4702 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4703 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4704 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4705 (needs_frame_dwarf_call): New function.
4706 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4707 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4708 Update the comment. Move variables die, offset and error call to ...
4709 (follow_die_ref): ... a new function.
4710 (dwarf2_fetch_die_location_block): New function.
4711 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4712
17ea53c3
JK
47132010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4714
4715 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4716 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4717 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4718 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4719 this change.
4720 (struct needs_frame_baton): New field per_cu.
4721 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4722 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4723
245040d7
SW
47242010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4725
4726 * cp-support.c (make_symbol_overload_list_namespace): Only search
4727 static and global blocks.
4728 (make_symbol_overload_list_block): New function.
4729 (make_symbol_overload_list): Separate namespace search from block
4730 search.
4731 (make_symbol_overload_list_qualified): Use
4732 make_symbol_overload_list_block.
4733
4c3376c8
SW
47342010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4735
4736 * value.h: Created oload_search_type enum.
4737 (find_overload_match): Use oload_search_type enum.
4738 * valops.c (find_overload_match): Support combined member and
4739 non-member search.
4740 * eval.c (evaluate_subexp_standard): Calls to
4741 find_overload_match now use oload_search_type enum.
4742 (oload_method_static): Verify index is a proper value.
4743 * valarith.c (value_user_defined_cpp_op): Search for and handle
4744 both member and non-member operators.
4745 (value_user_defined_cpp_op): New function.
4746 (value_user_defined_op): New function.
4747 (value_x_unop): Use value_user_defined_op.
4748 (value_x_binop): Ditto.
4749 * cp-support.c (make_symbol_overload_list_using): Added block
4750 iteration.
4751 Add check for namespace aliases and imported declarations.
4752
ee55da67
JK
47532010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4754
4755 * breakpoint.h (owner): Extend the comment.
4756
1a2ab13a
JK
47572010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4758
4759 Clear stale specific bp_location from former whole breakpoint.
4760 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4761 code ...
4762 (free_bp_location): ... here. Rename there the called function to
4763 bpstat_remove_bp_location_callback.
4764 (bpstat_remove_breakpoint_callback): Rename to ...
4765 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4766 to struct bp_location. Change the called function to
4767 bpstat_remove_bp_location. Create new declaration for the function.
4768 (bpstat_remove_breakpoint): Rename to ...
4769 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4770 code for the new parameter type.
4771
16d6b4b7
NS
47722010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4773
4774 * README: Make version-agnostic.
4775
7e314c57
JK
47762010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4777
4778 Fix duplicate types for single DIE.
4779 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4780 set_die_type.
4781 (read_array_type): Remove type initialization. Recheck get_die_type
4782 after initial die_type. Move set_die_type before set_descriptive_type.
4783 (read_set_type): New variable domain_type. Recheck get_die_type after
4784 initial die_type. Move attr initialization later.
4785 (read_tag_pointer_type, read_tag_reference_type): New variable
4786 target_type. Recheck get_die_type after initial die_type.
4787 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4788 die_type and die_containing_type.
4789 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4790 Recheck get_die_type after initial die_type.
4791 (read_subrange_type): Recheck get_die_type after initial die_type.
4792 Move set_die_type before set_descriptive_type.
4793 (set_die_type): Extend the function comment. Call complaint if DIE has
4794 some type already set.
4795
2f296114
VP
47962010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4797
4798 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4799 for current naming of thread groups (iN, not N).
4800
554794dc
SDJ
48012010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4802
4803 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4804 * parse.c (operator_length): Likewise.
4805 (operator_length_standard): Likewise.
4806 * parser-defs.h (operator_length): Likewise.
4807 (operator_length_standard): Likewise.
4808 (struct exp_descriptor <operator_length>): Likewise.
4809
967cf477
DE
48102010-06-04 Doug Evans <dje@google.com>
4811
bddaacb9 4812 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4813 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4814 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4815 * python/python.c (gdbpy_enabled_cst): Define.
4816 (_initialize_python): Initialize gdbpy_enabled_cst.
4817 * NEWS: Add entry.
4818
2dec564e
JK
48192010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4820
4821 * breakpoint.c (update_global_location_list): Fix comment typo.
4822
44b5680a
HZ
48232010-06-04 Hui Zhu <teawater@gmail.com>
4824
4825 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4826
e7a30f46
DE
48272010-06-03 Doug Evans <dje@google.com>
4828
4829 * configure.ac: Don't fail if python is unusable when
4830 configured with --with-python=auto.
4831 * configure: Regenerate.
4832
84b4420f
SW
48332010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4834
889bf7c5 4835 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4836
df178451
PM
48372010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4838
4839 * valprint.h (get_array_bounds): Change low and high parameter types
4840 to LONGEST *.
0407b3f1 4841 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4842 compute bounds.
4843 (val_print_array_elements): Adapt to change above.
4844 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4845 * p-valprint.c (pascal_val_print): Likewise.
4846
fd5700c7
JK
48472010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4848
4849 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4850 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4851 .F08.
4852
f55ee35c
JK
48532010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4854
4855 Support DW_TAG_module as separate namespaces.
4856 * dwarf2read.c (typename_concat): New parameter physname.
4857 (read_module_type): New function and declaration.
4858 (scan_partial_symbols): Scan also DW_TAG_module children.
4859 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4860 to typename_concat backward compatible physname value 0.
4861 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4862 backward compatible physname value 0.
4863 (add_partial_module, read_module): Remove FIXME comment.
4864 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4865 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4866 DIEs under DW_TAG_module.
4867 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4868 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4869 && physname and return there instead of just setting NAME. Extend
4870 the main block for language_fortran. Pass physname parameter to the
4871 typename_concat call.
4872 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4873 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4874 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4875 missing from SYMBOL_SET_NAMES in the language_fortran case.
4876 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4877 variables.
4878 (read_type_die) <DW_TAG_module>: New.
4879 (MAX_SEP_LEN): Increase to 7.
4880 (typename_concat): New parameter physname. New variable lead. Support
4881 also language_fortran.
4882 * f-exp.y (yylex): Consider : also as a symbol name character class.
4883 * f-lang.c: Include cp-support.h.
4884 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4885 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4886 f_word_break_characters and f_make_symbol_completion_list.
4887 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4888 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4889 * symtab.c (symbol_init_language_specific): Support language_fortran.
4890 (symbol_find_demangled_name): New comment on language_fortran.
4891 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4892 for language_fortran.
4893 (lookup_symbol_aux_local): Check imports also for language_fortran.
4894 (default_make_symbol_completion_list): Rename to ...
4895 (default_make_symbol_completion_list_break_on): ... this name. New
4896 parameter break_on, use it.
4897 (default_make_symbol_completion_list): New stub.
4898 * symtab.h (default_make_symbol_completion_list_break_on): New
4899 prototype.
4900
cb91c06a
JB
49012010-06-02 Joel Brobecker <brobecker@adacore.com>
4902
4903 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4904 to error.
4905
5c315b68
JK
49062010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 * dwarf2read.c (typename_concat): Add const to the variable sep.
4909
9eae7c52
TT
49102010-06-02 Tom Tromey <tromey@redhat.com>
4911
4912 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4913 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4914 type is const. Add 'def' argument. Add missing operators, remove
4915 unhandled ones.
4916 (decode_locdesc): Update.
4917 (dwarf2_always_disassemble): New global.
4918 (show_dwarf2_always_disassemble): New function.
4919 (_initialize_dwarf2_read): Add always-disassemble.
4920 (dwarf2_per_cu_offset_size): New function.
4921 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4922 (piece_end_p): New function.
4923 (locexpr_describe_location_piece): Replace 'size' argument with
4924 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4925 some constants. Remove errors.
4926 (disassemble_dwarf_expression): New function.
4927 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4928 Add 'offset_size' argument.
4929 (loclist_describe_location): Change output formatting.
4930 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4931
7d3fe98e
SW
49322010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4933
4934 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4935 anonymous type case.
4936
e77813c8
PM
49372010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4938
4939 * dwarf2read.c (read_subrange_type): Handle missing base type
4940 according to Dwarf-2 specifications.
4941
7cf3118a
SDJ
49422010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4943
4944 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4945 BINOP_EXCL.
4946 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4947 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4948 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4949 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4950 UNOP_CHMAX, UNOP_CHMIN.
4951 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4952 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4953 UNOP_CHMIN>: Remove opcodes.
4954
ae4d0c03
PM
49552010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4956
4957 * dwarf2read.c (read_func_scope): Do not complain for
4958 external function if bounds are not found.
4959
fa593d66
PA
49602010-06-01 Pedro Alves <pedro@codesourcery.com>
4961
4962 * NEWS: Mention gdbserver fast tracepoints support.
4963
cd44747c
PM
49642010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4965
4966 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4967 New macros.
4968 (windows_set_console_info): New function.
4969 (windows_create_inferior): Call windows_set_console_info
4970 if NEW_CONSOLE is true.
4971 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4972 (_initialize_loadable): Initialize GetConsoleFontSize and
4973 GetCurrentConsoleFont.
4974
f6528abd
JK
49752010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4976
4977 * Makefile.in (RDYNAMIC): New.
4978 (SFILES): Add proc-service.list.
4979 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4980 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4981 * config/arm/linux.mh: Likewise.
4982 * config/i386/linux.mh: Likewise.
4983 * config/i386/linux64.mh: Likewise.
4984 * config/ia64/linux.mh: Likewise.
4985 * config/m32r/linux.mh: Likewise.
4986 * config/m68k/linux.mh: Likewise.
4987 * config/mips/linux.mh: Likewise.
4988 * config/pa/linux.mh: Likewise.
4989 * config/powerpc/linux.mh: Likewise.
4990 * config/powerpc/ppc64-linux.mh: Likewise.
4991 * config/s390/s390.mh: Likewise.
4992 * config/sparc/linux.mh: Likewise.
4993 * config/sparc/linux64.mh: Likewise.
4994 * config/xtensa/linux.mh: Likewise.
4995 * configure.ac: New RDYNAMIC on native host and GCC.
4996 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4997 * configure: Regenerate.
4998 * proc-service.list: New.
4999
ca2a87a0
JK
50002010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5001
5002 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5003 CONTENT.
5004
1e225492
JK
50052010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5006
5007 * linux-nat.c (linux_nat_wait_1): Do not call
5008 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5009 TARGET_WAITKIND_SIGNALLED.
5010
e802dbe0
JB
50112010-05-27 Joel Brobecker <brobecker@adacore.com>
5012
5013 * ada-lang.c (ada_inferior_data): New struct.
5014 (ada_inferior_data): New static global.
5015 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5016 (ada_get_tsd_type): New functions.
5017 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5018 to look the tsd type up.
5019 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5020 event. Set ada_inferior_data.
5021
176a6961
PA
50222010-05-27 Pedro Alves <pedro@codesourcery.com>
5023
5024 * remote.c (unpack_varlen_hex): Remove forward declaration.
5025 (remote_console_output): Make static, and add forward declaration.
5026 * remote.h: Drop FIXME comment.
5027 (unpack_varlen_hex): Declare.
5028 (remote_console_output, remote_cisco_objfile_relocate)
5029 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5030 Delete declarations.
5031 * tracepoint.c: Include "remote.h".
5032 (unpack_varlen_hex): Delete declaration.
5033
88bfdde4
TT
50342010-05-27 Tom Tromey <tromey@redhat.com>
5035
5036 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5037 (allocate_piece_closure): Initialize refc.
5038 (copy_pieced_value_closure): Use refc.
5039 (free_pieced_value_closure): Likewise.
5040
8c6363cf
TT
50412010-05-27 Tom Tromey <tromey@redhat.com>
5042
5043 * arm-tdep.c (push_stack_item): 'contents' now const.
5044 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5045 value_contents_writeable. Introduce new temporary.
5046
7ecb917e
TT
50472010-05-27 Tom Tromey <tromey@redhat.com>
5048
5049 * findcmd.c (parse_find_args): Use value_contents, not
5050 value_contents_raw.
5051
f42a0a33
TT
50522010-05-27 Tom Tromey <tromey@redhat.com>
5053
5054 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5055 const. Use value_contents, not value_contents_writeable.
5056
12b795ad
JB
50572010-05-27 Joel Brobecker <brobecker@adacore.com>
5058
5059 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5060 by call to value_contents.
5061
5a2e11c7
OS
50622010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5063
5064 * MAINTAINERS: Add myself for write after approval privileges.
5065
ec685c5e
DE
50662010-05-26 Doug Evans <dje@google.com>
5067
0c4a4063
DE
5068 Allow python to find its files if moved from original location.
5069 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5070 (GDB_AC_WITH_DIR): Call it.
5071 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5072 python installation directory.
5073 * config.in: Regenerate.
5074 * configure: Regenerate.
5075 * defs.h (python_libdir): Declare.
5076 * main.c (python_libdir): Define.
5077 (captured_main): Initialize python_libdir.
5078 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5079 call Py_SetProgramName to make sure python can find its libraries
5080 and modules.
5081
ec685c5e
DE
5082 * configure.ac: Try to use python's distutils to fetch compilation
5083 parameters.
5084 * configure: Regenerate.
5085 * python/python-config.py: New file.
5086
363a6e9f
OS
50872010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5088
5089 * ser-tcp.c (net_open): Check error return from socket() call by its
5090 equality to -1 not by it being negative.
5091 (net_close): Likewise.
5092
dde08ee1
PA
50932010-05-26 Pedro Alves <pedro@codesourcery.com>
5094
5095 * NEWS: Mention the `qRelocInsn' feature.
5096 * gdbarch.sh (relocate_instruction): New.
5097 * amd64-tdep.c (rip_relative_offset): New.
5098 (append_insns): New.
5099 (amd64_relocate_instruction): New.
5100 (amd64_init_abi): Install it.
5101 * i386-tdep.c (append_insns): New.
5102 (i386_relocate_instruction): New.
5103 (i386_gdbarch_init): Install it.
5104 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5105 * gdbarch.h, gdbarch.c: Regenerate.
5106
947bb88f
TT
51072010-05-26 Tom Tromey <tromey@redhat.com>
5108
5109 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5110 (struct dwarf2_loclist_baton) <data>: Likewise.
5111 * dwarf2loc.c (find_location_expression): Constify return type.
5112 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5113 (dwarf2_loc_desc_needs_frame): Likewise.
5114 (loclist_read_variable): Constify.
5115 (loclist_describe_location): Likewise.
5116 (loclist_tracepoint_var_ref): Likewise.
5117
0d45f56e
TT
51182010-05-25 Tom Tromey <tromey@redhat.com>
5119
5120 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5121 (dwarf_expr_frame_base_1): Likewise.
5122 (read_pieced_value): Update.
5123 (needs_frame_frame_base): Constify.
5124 (dwarf2_tracepoint_var_loc): Likewise.
5125 (dwarf2_tracepoint_var_access): Likewise.
5126 (locexpr_describe_location_piece): Likewise.
5127 (locexpr_describe_location_1): Likewise.
5128 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5129 Constify.
5130 (data): Now const.
5131 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5132 (dwarf_expr_eval, read_uleb128, read_sleb128)
5133 (dwarf2_read_address): Update.
5134 * dwarf2expr.c (dwarf_expr_eval): Constify.
5135 (read_uleb128): Likewise.
5136 (read_sleb128): Likewise.
5137 (dwarf2_read_address): Likewise.
5138 (require_composition): Likewise.
5139 (execute_stack_op): Likewise.
5140 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5141 "const gdb_byte *".
5142 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5143 Now const.
5144 (no_get_frame_base): Constify.
5145 (execute_stack_op): Likewise.
5146 (execute_cfa_program): Likewise.
5147 (read_encoded_value): Likewise.
5148
07ca107c
DE
51492010-05-25 Doug Evans <dje@google.com>
5150
e34838f0
DE
5151 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5152
01f69b38
DE
5153 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5154 * event-loop.c: ... here.
5155 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5156 `error' for clarity.
5157 (tui_getc): Pass correct value for `error' parameter to
5158 tui_readline_output.
5159
07ca107c
DE
5160 Add python gdb.GdbError and gdb.string_to_argv.
5161 * NEWS: Document them.
5162 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5163 the exception is gdb.GdbError. Print a second traceback if there's
5164 an error computing the error message.
5165 (gdbpy_string_to_argv): New function.
5166 * python/py-utils.c (gdbpy_obj_to_string): New function.
5167 (gdbpy_exception_to_string): New function.
5168 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5169 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5170 (gdbpy_gdberror_exc): Declare.
5171 * python/python.c (gdbpy_gdberror_exc): New global.
5172 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5173 gdb.GdbError.
5174 (GdbMethods): Add string_to_argv.
5175
5572ce1f
PM
51762010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5177
5178 * windows-nat.c (display_selector): Call GetLastError to give better
5179 failure explanation.
5180
acd5838a
PA
51812010-05-24 Pedro Alves <pedro@codesourcery.com>
5182
5183 * config.in: Regenerate.
5184
b26a4dcb
JK
51852010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5186
5187 Code cleanup.
5188 * target.c (push_target): Return only void. Remove the return value
5189 comment.
5190 * target.h (push_target): Return only void.
5191
f434ba03
PA
51922010-05-23 Pedro Alves <pedro@codesourcery.com>
5193
5194 Update gnulib from latest git.
5195 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5196
5197 * gnulib/memcmp.c: Removed.
5198 * gnulib/memchr.valgrind: New.
5199 * gnulib/stddef.in.h: New.
5200 * gnulib/Makefile.am: Updated.
5201 * gnulib/memchr.c: Updated.
5202 * gnulib/memmem.c: Updated.
5203 * gnulib/stdint.in.h: Updated.
5204 * gnulib/str-two-way.h: Updated.
5205 * gnulib/string.in.h: Updated.
5206 * gnulib/wchar.in.h: Updated.
5207
5208 * gnulib/extra/link-warning.h: Removed.
5209 * gnulib/extra/c++defs.h: New.
5210 * gnulib/extra/warn-on-use.h: New.
5211 * gnulib/extra/arg-nonnull.h: Updated.
5212
5213 * gnulib/m4/extensions.m4: Updated.
5214 * gnulib/m4/gnulib-cache.m4: Updated.
5215 * gnulib/m4/gnulib-common.m4: Updated.
5216 * gnulib/m4/gnulib-comp.m4: Updated.
5217 * gnulib/m4/gnulib-tool.m4: Updated.
5218 * gnulib/m4/include_next.m4: Updated.
5219 * gnulib/m4/longlong.m4: Updated.
5220 * gnulib/m4/memchr.m4: Updated.
5221 * gnulib/m4/memmem.m4: Updated.
5222 * gnulib/m4/stdint.m4: Updated.
5223 * gnulib/m4/string_h.m4: Updated.
5224 * gnulib/m4/memcmp.m4: Removed.
5225 * gnulib/m4/onceonly_2_57.m4: Removed.
5226 * gnulib/m4/00gnulib.m4: New.
5227 * gnulib/m4/mmap-anon.m4: New.
5228 * gnulib/m4/multiarch.m4: New.
5229 * gnulib/m4/onceonly.m4: New.
5230 * gnulib/m4/stddef_h.m4: New.
5231 * gnulib/m4/warn-on-use.m4: New.
5232 * gnulib/m4/wchar.m4: Removed.
5233 * gnulib/m4/wchar_h.m4: New.
5234 * gnulib/m4/wchar_t.m4: New.
5235 * gnulib/m4/wint_t.m4: New.
5236
5237 * aclocal.m4: Regenerate.
5238 * config.in: Likewise.
5239 * configure: Likewise.
5240 * gnulib/Makefile.in: Likewise.
5241
d3b1e874
TT
52422010-05-21 Tom Tromey <tromey@redhat.com>
5243
5244 * dwarf2loc.c (extract_bits_primitive): New function.
5245 (extract_bits): Likewise.
5246 (insert_bits): Likewise.
5247 (copy_bitwise): Likewise.
5248 (read_pieced_value): Do all operations in bits.
5249 (write_pieced_value): Likewise.
5250 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5251 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5252 Always use xrealloc to resize piece array.
5253 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5254 <DW_OP_piece>: Update.
5255 <DW_OP_bit_piece>: New case.
5256
cb826367
TT
52572010-05-21 Tom Tromey <tromey@redhat.com>
5258
5259 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5260 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5261 * dwarf2expr.h (enum dwarf_value_location)
5262 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5263 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5264 (add_piece): Handle empty piece.
5265 (execute_stack_op) <DW_OP_piece>: Handle
5266 DWARF_VALUE_OPTIMIZED_OUT.
5267
74de6778
TT
52682010-05-21 Tom Tromey <tromey@redhat.com>
5269
5270 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5271 evaluate_subexp, not evaluate_subexp_with_coercion.
5272
f346a30d
PM
52732010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5274
5275 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5276 attribute.
5277
afd74c5f
TT
52782010-05-21 Tom Tromey <tromey@redhat.com>
5279
5280 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5281 offset.
5282 (write_pieced_value): Likewise.
5283
90e7c2c5
PM
52842010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5285
5286 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5287 and DW_TAG_volatile_type.
5288 (new_symbol): Likewise.
5289
8148cf8d
PM
52902010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5291
5292 * p-valprint.c (pascal_val_print): Call get_array_bounds
5293 to obtain the number of elements in an array.
5294
3a1d4620
DE
52952010-05-19 Doug Evans <dje@google.com>
5296
0bf0f8c4
DE
5297 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5298
3a1d4620
DE
5299 * python.c (source_python_script): Add comment.
5300 (source_python_script_for_objfile): Remove unnecessary call to
5301 gdbpy_print_stack.
5302
dc21167c
JK
53032010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5304 Sergio Durigan Junior <sergiodj@redhat.com>
5305
5306 Code cleanup.
5307 * parse.c (exp_iterate): Use operator_length wrapper function.
5308
5b4ee69b
MS
53092010-05-18 Michael Snyder <msnyder@vmware.com>
5310
5311 * ada-lang.c: White space.
5312 * ada-typeprint.c: White space.
5313 * ada-valprint.c: White space.
5314 * addrmap.c: White space.
5315 * auxv.c: White space.
5316 * ax-gdb.c: White space.
5317
e17c9e56
HZ
53182010-05-18 Hui Zhu <teawater@gmail.com>
5319
5320 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5321 for oldfp.
5322 (inferior_call_waitpid): Move make_cleanup out of check.
5323 Check the return of waitpid.
5324 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5325
a109c7c1
MS
53262010-05-17 Michael Snyder <msnyder@vmware.com>
5327
1c5313c5
MS
5328 * tui/tui.c: White space.
5329 * tui/tui-data.c: White space.
5330 * tui/tui-disasm.c: White space.
5331 * tui/tui-file.c: White space.
5332 * tui/tui-interp.c: White space.
5333 * tui/tui-main.c: White space.
5334 * tui/tui-out.c: White space.
5335 * tui/tui-regs.c: White space.
5336 * tui/tui-source.c: White space.
5337 * tui/tui-stack.c: White space.
5338 * tui/tui-win.c: White space.
5339 * tui/tui-winsource.c: White space.
5340
f4a14ae6
MS
5341 * procfs.c: White space.
5342
d59b6f6c
MS
5343 * python/py-auto-load.c: White space.
5344 * python/py-block.c: White space.
5345 * python/py-breakpoint.c: White space.
5346 * python/py-cmd.c: White space.
5347 * python/py-function.c: White space.
5348 * python/py-lazy-string.c: White space.
5349 * python/py-objfile.c: White space.
5350 * python/py-param.c: White space.
5351 * python/py-prettyprint.c: White space.
5352 * python/py-progspace.c: White space.
5353 * python/py-symtab.c: White space.
5354 * python/python.c: White space.
5355 * python/py-type.c: White space.
5356 * python/py-utils.c: White space.
5357 * python/py-value.c: White space.
5358
102040f0
MS
5359 * mi/mi-cmd-break.c: White space.
5360 * mi/mi-cmd-env.c: White space.
5361 * mi/mi-cmds.c: White space.
5362 * mi/mi-cmd-stack.c: White space.
5363 * mi/mi-cmd-var.c: White space.
5364 * mi/mi-console.c: White space.
5365 * mi/mi-getopt.c: White space.
5366 * mi/mi-interp.c: White space.
5367 * mi/mi-main.c: White space.
5368 * mi/mi-out.c: White space.
5369 * mi/mi-parse.c: White space.
5370
cdb27c12
MS
5371 * cli/cli-cmds.c: White space.
5372 * cli/cli-decode.c: White space.
5373 * cli/cli-dump.c: White space.
5374 * cli/cli-interp.c: White space.
5375 * cli/cli-logging.c: White space.
5376 * cli/cli-script.c: White space.
5377 * cli/cli-setshow.c: White space.
5378
a109c7c1
MS
5379 * valarith.c: White space.
5380 * valops.c: White space.
5381 * valprint.c: White space.
5382 * value.c: White space.
5383 * varobj.c: White space.
5384 * xcoffread.c: White space.
5385 * xml-support.c: White space.
5386 * xml-tdesc.c: White space.
5387
3872d37d
AS
53882010-05-17 Andreas Schwab <schwab@redhat.com>
5389
5390 PR gdb/11092
5391 * c-lang.c (c_printstr): Compute real length of NUL terminated
5392 string at first.
5393
0cce5bd9
JB
53942010-05-17 Joel Brobecker <brobecker@adacore.com>
5395
5396 * parse.c (parse_exp_in_context): When block is not NULL, use
5397 its associated language to parse the expression instead of
5398 the current_language.
5399
5f19d646
JB
54002010-05-17 Joel Brobecker <brobecker@adacore.com>
5401
5402 * jv-lang.c (java_lookup_class): Remove commented out code.
5403 (type_from_class): Likewise.
5404 (java_op_print_tab): Remove commented-out elements.
5405
28c85d6c
JB
54062010-05-17 Joel Brobecker <brobecker@adacore.com>
5407
5408 * ada-lang.c (to_fixed_range_type): The the raw index type as
5409 argument instead of the raw type name. Remove orig_type parameter.
5410 Update calls throughout.
5411 (ada_fixup_array_indexes_type): New function.
5412 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5413 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5414 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5415 Remove name parameter.
5416 (print_array_type): Add call to ada_fixup_array_indexes_type.
5417 Update calls to print_range_type.
5418 (ada_print_type): Update calls to print_range_type.
5419
d09039dd
PM
54202010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5421
5422 * dwarf2read.c (read_set_type): Set type length if
5423 DW_AT_byte_size attribute is present.
5424
7a081a30
PM
54252010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5426
5427 * p-valprint.c (pascal_val_print): Handle set type if range limits
5428 are undefined but size is known.
5429
77382aee
PA
54302010-05-17 Pedro Alves <pedro@codesourcery.com>
5431
5432 * procfs.c: Reformat.
5433
433759f7
MS
54342010-05-16 Michael Snyder <msnyder@vmware.com>
5435
5d502164
MS
5436 * target.c: White space.
5437 * target-descriptions.c: White space.
5438 * target-memory.c: White space.
5439 * thread.c: White space.
5440 * top.c: White space.
5441 * tracepoint.c: White space.
5442 * trad-frame.c: White space.
5443 * tramp-frame.c: White space.
5444 * ui-file.c: White space.
5445 * ui-out.c: White space.
5446 * user-regs.c: White space.
5447 * utils.c: White space.
5448
433759f7
MS
5449 * scm-exp.c: White space.
5450 * scm-lang.c: White space.
5451 * scm-valprint.c: White space.
5452 * sentinel-frame.c: White space.
5453 * ser-base.c: White space.
5454 * ser-go32.c: White space.
5455 * serial.c: White space.
5456 * ser-mingw.c: White space.
5457 * ser-pipe.c: White space.
5458 * ser-tcp.c: White space.
5459 * ser-unix.c: White space.
5460 * solib.c: White space.
5461 * solib-darwin.c: White space.
5462 * solib-frv.c: White space.
5463 * solib-irix.c: White space.
5464 * solib-osf.c: White space.
5465 * solib-pa64.c: White space.
5466 * solib-som.c: White space.
5467 * solib-spu.c: White space.
5468 * solib-svr4.c: White space.
5469 * solib-target.c: White space.
5470 * source.c: White space.
5471 * stabsread.c: White space.
5472 * stack.c: White space.
5473 * std-regs.c: White space.
5474 * symfile.c: White space.
5475 * symmisc.c: White space.
5476 * symtab.c: White space.
5477
dd304d53
MS
54782010-05-16 Michael Snyder <msnyder@vmware.com>
5479
5480 * source.c (_initialize_source): Add "rev" as an abbreviation
5481 for the "reverse-search" command.
5482
a744cf53
MS
54832010-05-16 Michael Snyder <msnyder@vmware.com>
5484
123f5f96
MS
5485 * record.c: White space.
5486 * regcache.c: White space.
5487 * reggroups.c: White space.
5488 * remote-fileio.c: White space.
5489 * remote-m32r-sdi.c: White space.
5490 * remote-mips.c: White space.
5491 * remote-sim.c: White space.
a744cf53
MS
5492 * remote.c: White space.
5493 (process_g_packet): Remove orphan braces.
5494
b8d56208
MS
54952010-05-15 Michael Snyder <msnyder@vmware.com>
5496
ad3bbd48
MS
5497 * parse.c: White space.
5498 * p-lang.c: White space.
5499 * posix-hdep.c: White space.
5500 * printcmd.c: White space.
5501 * progspace.c: White space.
5502 * prologue-value.c: White space.
5503 * psymtab.c: White space.
5504 * p-typeprint.c: White space.
5505 * p-valprint.c: White space.
5506
5cc80db3
MS
5507 * objc-lang.c: White space.
5508 * objfiles.c: White space.
5509 * observer.c: White space.
5510 * osabi.c: White space.
5511 * osdata.c: White space.
5512
b8d56208
MS
5513 * m2-lang.c: White space.
5514 * m2-valprint.c: White space.
5515 * macrocmd.c: White space.
5516 * macroexp.c: White space.
5517 * macroscope.c: White space.
5518 * macrotab.c: White space.
5519 * main.c: White space.
5520 * maint.c: White space.
5521 * mdebugread.c: White space.
5522 * memattr.c: White space.
5523 * minsyms.c: White space.
5524 * monitor.c: White space.
5525
9a619af0
MS
55262010-05-14 Michael Snyder <msnyder@vmware.com>
5527
e0881a8e
MS
5528 * jv-lang.c: White space.
5529 * jv-typeprint.c: White space.
5530 * jv-valprint.c: White space.
5531 * language.c: White space.
5532 * libunwind-frame.c: White space.
5533 * linespec.c: White space.
5534 * linux-nat.c: White space.
5535 * linux-record.c: White space.
5536 * linux-thread-db.c: White space.
5537
abbb1732
MS
5538 * infcall.c: White space.
5539 * inf-child.c: White space.
5540 * infcmd.c: White space.
5541 * inferior.c: White space.
5542 * inf-loop.c: White space.
5543 * inflow.c: White space.
5544 * inline-frame.c: White space.
5545 * interps.c: White space.
5546
d8734c88
MS
5547 * gcore.c: White space.
5548 * gdb.c: White space.
5549 * gdbtypes.c: White space.
5550 * gnu-nat.c: White space.
5551 * gnu-v2-abi.c: White space.
5552 * gnu-v3-abi.c: White space.
5553
bb9bcb69
MS
5554 * findcmd.c: White space.
5555 * findvar.c: White space.
5556 * fork-child.c: White space.
5557 * frame-base.c: White space.
5558 * frame.c: White space.
5559 * frame-unwind.c: White space.
5560 * f-valprint.c: White space.
5561
d7f9d729
MS
5562 * elfread.c: White space.
5563 * environ.c: White space.
5564 * eval.c: White space.
5565 * event-loop.c: White space.
5566 * event-top.c: White space.
5567 * exceptions.c: White space.
5568 * exec.c: White space.
5569 * expprint.c: White space.
5570
9a619af0
MS
5571 * dbxread.c: White space.
5572 * dcache.c: White space.
5573 * disasm.c: White space.
5574 * doublest.c: White space.
5575 * dsrec.c: White space.
5576 * dummy-frame.c: White space.
5577 * dwarf2expr.c: White space.
5578 * dwarf2-frame.c: White space.
5579 * dwarf2loc.c: White space.
5580 * dwarf2read.c: White space.
5581
88d4aea7
PM
55822010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5583
889bf7c5 5584 PR python/11482
88d4aea7
PM
5585
5586 * python/py-value.c (valpy_hash): New function.
5587 (value_object_type): Register valpy_hash.
5588
7a298875 55892010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 5590 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
5591
5592 * linux-fork.c (gdbthread.h): New include.
5593 (fork_info): Add parent_ptid.
5594 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5595 functions.
5596 (delete_checkpoint_command): Call inferior_call_waitpid.
5597 (checkpoint_command): Set parent_ptid.
5598
c14feecc
MS
55992010-05-13 Michael Snyder <msnyder@vmware.com>
5600
6595d32b
MS
5601 * dictionary.c: Re-indent to GNU coding standard.
5602
c5504eaf
MS
5603 * charset.c: White space.
5604 * c-lang.c: White space.
5605 * cli-out.c: White space.
5606 * coffread.c: White space.
5607 * complaints.c: White space.
5608 * completer.c: White space.
5609 * corefile.c: White space.
5610 * corelow.c: White space.
5611 * cp-abi.c: White space.
5612 * cp-namespace.c: White space.
5613 * cp-support.c: White space.
5614 * cp-valprint.c: White space.
5615 * c-typeprint.c: White space.
5616 * c-valprint.c: White space.
cc59ec59
MS
5617 * blockframe.c: White space.
5618 * breakpoint.c: White space.
5619 * buildsym.c: White space.
5620 * blockframe.c: White space.
b6de9da4 5621 * bcache.c: White space.
05c547f6
MS
5622 * gdbarch.sh: White space, add blank lines.
5623 * arch-utils.c: Ditto.
5624 * gdbarch.c: Regenerate.
1c4d3f96 5625 * frame.c: White space, add blank lines.
f89b749f
MS
5626 * stack.c: White space, add blank lines.
5627 (initialize_stack): Remove long-dead code.
c14feecc 5628
a2d33775
JK
56292010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5630
5631 Code cleanup.
5632 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5633 (locexpr_read_variable, loclist_read_variable): Update the callers.
5634
33ac96f0
JK
56352010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5636
5637 Code cleanup.
5638 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5639 Remove check of NULL returned by tag_type_to_type.
5640 (die_containing_type): Remove variable type. Remove type_die variable
5641 initialization. Remove check of NULL returned by tag_type_to_type.
5642
f5a010c0
PM
56432010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5644
5645 PR exp/11530.
5646 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5647 names of unnamed structures or unions.
5648
bf701c2c
PM
56492010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5650
5651 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 5652 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
5653 find_procinfo_or_die call.
5654 (procfs_stopped_data_address): New function.
5655 (procfs_use_watchpoints): Register new watchpoint related function.
5656
d02691ef
TT
56572010-05-11 Tom Tromey <tromey@redhat.com>
5658
5659 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5660
e0627e85
MS
56612010-05-10 Michael Snyder <msnyder@vmware.com>
5662
5663 * utils.c: White space cleanup.
5664
cc73bb8c
TT
56652010-05-10 Tom Tromey <tromey@redhat.com>
5666
5667 * eval.c (ptrmath_type_p): Add 'lang' argument.
5668 (evaluate_subexp_standard): Update.
5669 (evaluate_subexp_with_coercion): Update.
5670 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5671
c02866a0
MS
56722010-05-10 Michael Snyder <msnyder@vmware.com>
5673
5674 * utils.c (do_fclose_cleanup) Restore local variable.
5675
06280d23
DE
56762010-05-09 Doug Evans <dje@google.com>
5677
5678 * record.c (init_record_core_ops): Rename record_core to record-core.
5679
fa07e785
JB
56802010-05-08 Joel Brobecker <brobecker@adacore.com>
5681
5682 Implement task switching on pa-hpux.
5683 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5684 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5685
4c680d1d
PM
56862010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5687
5688 * valops.c (find_overload_match): Add missing i18n markup.
5689
28e176a6
PM
56902010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5691
5692 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5693
48cb83fd
JK
56942010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5695
5696 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5697 list for the obconcat call.
5698 * mdebugread.c (parse_symbol): Likewise.
5699 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5700 Likewise.
5701 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5702 New variable ap. Remove variables len and val.
5703 * symfile.h (obconcat): Likewise for the prototype.
5704
f92adf3c
MS
57052010-05-07 Michael Snyder <msnyder@vmware.com>
5706
5707 * python/python.c (execute_gdb_command): Remove unused variables.
5708 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5709 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5710 Remove unused variable.
5711 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5712 (cmdpy_completer): Remove unused variable.
5713 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5714 * python/py-function.c (fnpy_call): Remove unused variable.
5715 * python/py-objfile.c (objfile_to_objfile_object):
5716 Remove unused variable.
5717 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5718 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5719 Remove unused variable.
5720 (gdbpy_default_visualizer): Remove unused variable.
5721 * python/py-progspace.c (pspace_to_pspace_object):
5722 Remove unused variable.
0407b3f1 5723 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5724 Remove unused variable.
0407b3f1 5725 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5726 Remove unused variable.
5727 * python/py-value.c (valpy_string): Remove unused variable.
5728 (convert_value_from_python): Remove unused variables.
5729
d160942f
MS
57302010-05-07 Michael Snyder <msnyder@vmware.com>
5731
5732 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5733 and use it to compute variable 't1'.
5734
587542ab
JB
57352010-05-07 Joel Brobecker <brobecker@adacore.com>
5736
5737 * ada-lang.c (assign_aggregate): Remove unused variable.
5738
7322dca9
SW
57392010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5740
5741 PR C++/7943:
5742 * valops.c (find_overload_match): Handle fsym == NULL case.
5743 Add int no_adl argument.
5744 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5745 when appropriate.
5746 Add int no_adl argument.
5747 (find_oload_champ_namespace): Add int no_adl argument.
5748 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5749 expression.
5750 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5751 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5752 Evaluate arguments and use them to perform ADL lookup.
5753 Pass no_adl argument to find_overload_match.
5754 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5755 * cp-support.h: Added prototype for
5756 make_symbol_overload_list_namespace.
5757 * cp-support.c (make_symbol_overload_list_namespace): New function.
5758 (make_symbol_overload_list_adl_namespace): New function.
5759 (make_symbol_overload_list_adl): New function.
5760 (make_symbol_overload_list_using): Moved code to add function to
5761 overload set to make_symbol_overload_list_namespace.
5762 * c-exp.y: create UNKNOWN_CPP_NAME token.
5763 Add parse rule for ADL functions.
5764 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5765
3f1f6884
JK
57662010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5767
5768 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5769 sentinel.
5770
3caf13b4
JB
57712010-05-07 Joel Brobecker <brobecker@adacore.com>
5772
5773 Implement task switching on solaris targets.
5774 * sol-thread.c (thread_db_find_thread_from_tid)
5775 (sol_get_ada_task_ptid): New functions.
5776 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5777
94b0dee1
PA
57782010-05-07 Pedro Alves <pedro@codesourcery.com>
5779
5780 * remote.c (remote_query_supported_append): Use reconcat.
5781 (remote_query_supported): Install a cleanup. Use reconcat.
5782
1408c251
PA
57832010-05-07 Pedro Alves <pedro@codesourcery.com>
5784
5785 * gdbarch.sh (qsupported): Delete.
5786 * gdbarch.h, gdbarch.c: Regenerate.
5787 * remote.c (remote_query_supported): Remove use of
5788 gdbarch_qsupported.
5789
f8e50cfe
SDJ
57902010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5791
5792 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5793 function.
5794
8ea13695
MS
57952010-05-06 Michael Snyder <msnyder@vmware.com>
5796
c6913b7d
MS
5797 * xml-support.c (xinclude_start_include): Delete unused variable.
5798 (xml_process_xincludes): Delete unused variable.
5799 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5800 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5801 (tdesc_find_arch_register): Delete unused variable.
5802 (tdesc_use_registers): Delete unused variable.
5803 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5804 * inferior.c (print_inferior): Delete unused variable.
5805 * record.c (record_open_1): Delete unused variable.
5806 (record_restore): Delete unused variable.
5807 (cmd_record_save): Delete unused variable.
5808 * gcore.c (derive_heap_segment): Delete unused variable.
5809 (objfile_find_memory_regions): Use unused variable.
5810 * jit.c (jit_inferior_init): Delete unused variable.
5811 * progspace.c (clone_program_space): Delete unused variable.
5812 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5813
5814 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5815 Delete unused variable.
5816 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5817 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5818 (method_name_from_physname): Delete unused variable.
5819 (cp_func_name): Delete unused variable.
5820 (cp_validate_operator): Delete unused variable.
0407b3f1 5821 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5822 Delete unused variable.
0407b3f1 5823 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5824 Delete unused variable.
5825 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5826
1be757cf
MS
5827 * serial.c (serial_for_fd): Delete unused variable.
5828 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5829 * top.c (execute_command): Delete unused variable.
5830 (init_main): Delete unused variable.
5831 * utils.c (do_fclose_cleanup): Delete unused variable.
5832 (do_all_inferior_continuations): Delete unused variable.
5833 (initialize_utils): Delete unused variable.
5834 (internal_problem_mode): Delete unused global.
5835 * frame.c (get_prev_frame): Delete unused global.
5836 (get_frame_locals_address): Delete unused global.
5837 (get_frame_args_address): Delete unused global.
5838
9216103f
MS
5839 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5840 (pascal_type_print_varspec_prefix): Delete unused variable.
5841 * f-typeprint.c (f_type_print_base): Delete unused variable.
5842 (f_type_print_varspec_suffix): Delete unused variable.
5843 * m2-typeprint.c (m2_print_type): Delete unused variable.
5844 (m2_long_set): Delete unused variable.
5845 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5846 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5847 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5848 Delete unused variable.
5849 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5850 * m2-valprint.c (m2_val_print): Delete unused variable.
5851
34fa1d9d
MS
5852 * ui-out.c (ui_out_field_int): Delete unused variable.
5853 (ui_out_field_fmt_int): Delete unused variable.
5854 * varobj.c (varobj_list_children): Delete unused variable.
5855 (varobj_set_value): Delete unused variable.
5856 (install_new_value_visualizer): Delete unused variable.
5857 (varobj_set_visualizer): Delete unused variable.
5858 (varobj_update): Delete unused variable.
5859 (varobj_editable_p): Delete unused variable.
5860 (c_value_of_root): Delete unused variable.
5861 (cplus_describe_child): Delete unused variable.
5862
b5385fc0
MS
5863 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5864 (decode_constrained_packed_array_type): Delete unused variable.
5865 (add_defn_to_vec): Delete unused variable.
5866 (symbol_completion_match): Delete unused variable.
5867 (value_tag_from_contents_and_address): Delete unused variable.
5868 (ada_evaluate_subexp): Delete unused variable.
5869 * c-lang.c (classify_type): Delete unused variable.
5870 * f-lang.c (f_printstr): Delete unused variable.
5871 * objc-lang.c (objc_printstr): Delete unused variable.
5872 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5873 * jv-lang.c (type_from_class): ifdef unused variable.
5874 (java_class_name_from_physname): Delete unused variable.
5875 * m2-lang.c (m2_printstr): Delete unused variable.
5876
4fc06681
MS
5877 * objfiles.c (objfile_relocate): Delete unused variable.
5878 * maint.c (_initialize_maint_cmds): Delete unused variable.
5879 * demangle.c (_initialize_demangler): Delete unused variable.
5880 * corefile.c (reopen_exec_file): Delete unused variable.
5881 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5882 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5883
6b4398f7
MS
5884 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5885 * memattr.c (mem_delete): Delete unused variable.
5886 (invalidate_target_mem_regions): Delete unused variable.
5887 * mem-break.c (default_memory_insert_breakpoint):
5888 Delete unused variable.
5889 * target.c (target_get_osdata): Delete unused variable.
5890 * parse.c (length_of_subexp): Delete unused variable.
5891 (prefixify_subexp): Delete unused variable.
5892 (exp_iterate): Delete unused variable.
5893 * reverse.c (delete_bookmark_command): Delete unused variable.
5894
308d96ed
MS
5895 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5896 * macroexp.c (gather_arguments): Delete unused variable.
5897 (substitute_args): Delete unused variable.
5898 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5899 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5900 (_initialize_gdbarch): Delete unused variable.
5901 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5902 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5903 Delete unused variable.
5904 (_initialize_gdbarch_utils): Delete unused variable.
5905 * gdbtypes.c (make_cv_type): Delete unused variable.
5906 (make_type_with_address_space): Delete unused variable.
5907
167e4384
MS
5908 * linespec.c (decode_compound): Delete unused variable.
5909 * dictionary.c (iterator_next_hashed): Delete unused variable.
5910 * infcall.c (call_function_by_hand): Delete unused variable.
5911 * infcmd.c (step_1): Delete unused variable.
5912 (registers_info): Delete unused variable.
5913 (attach_command): Delete unused variable.
5914 * infrun.c (follow_exec): Delete unused variable.
5915 (handle_step_into_function_backwards): Delete unused variable.
5916 (_initialize_infrun): Delete unused variable.
5917 * stack.c (parse_frame_specification_1): Delete unused variable.
5918 (frame_info): Delete unused variable.
5919 (backtrace_command_1): Delete unused variable.
5920 (catch_info): Delete unused variable.
5921
8f78b329
MS
5922 * eval.c (evaluate_subexp_standard): Delete unused variable.
5923 * valops.c (value_cast_pointers): Delete unused variable.
5924 (value_dynamic_cast): Delete unused variable.
5925 (value_array): Delete unused variable.
5926 (find_overload_match): Delete unused variable.
5927 * valarith.c (value_subscript): Delete unused variable.
5928 (value_binop): Delete unused variable.
5929 * valprint.c (_initialize_valprint): Delete unused variable.
5930 * printcmd.c (print_command_1): Delete unused variable.
5931 (address_info): Delete unused variable.
5932 (printf_command): Delete unused variable.
5933
8ea13695
MS
5934 * auxv.c (target_auxv_search): Delete unused variable.
5935 * blockframe.c (get_frame_block): Delete unused variable.
5936 * regcache.c (regcache_cpy): Delete unused variable.
5937 (regcache_cpy_no_passthrough): Delete unused variable.
5938 * charset.c (wchar_iterate): Delete unused variable.
5939 (find_charset_names): Delete unused variable.
5940 (_initialize_charset): Delete unused variable.
0407b3f1 5941 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5942 Delete unused variable.
0407b3f1 5943 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5944 Delete unused variable.
5945 (set_substitute_path_command): Delete unused variable.
5946 * value.c (preserve_values): Delete unused variable.
5947 (value_from_double): Delete unused variable.
5948
afe38095
MS
59492010-05-05 Michael Snyder <msnyder@vmware.com>
5950
952a6d41
MS
5951 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5952 (find_last_source_symtab_from_partial): Delete unused variable.
5953 * symfile.c (place_section): Delete unused variable.
5954 (default_symfile_offsets): Delete unused variable.
5955 (get_debug_link_info): Delete unused variable.
5956 (find_separate_debug_file_by_debuglink): Delete unused variable.
5957 (add_symbol_file_command): Delete unused variable.
5958 (symfile_find_segment_sections): Delete unused variable.
5959 * symmisc.c (free_symtab): Delete unused variable.
5960 (dump_symtab_1): Delete unused variable.
5961 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5962 (find_pc_sect_symtab): Delete unused variable.
5963 (skip_prologue_using_lineinfo): Delete unused variable.
5964 (sources_info): Delete unused variable.
5965 (completion_list_add_name): Delete unused variable.
5966 (expand_line_sal): Delete unused variable.
5967
0407b3f1 5968 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5969 Delete unused variables.
5970 (insert_catchpoint): Delete unused variable.
5971 (update_watchpoint): Delete unused variable.
5972 (insert_bp_location): Delete unused variable.
5973 (insert_breakpoint_locations): Delete unused variable.
5974 (remove_breakpoint_1): Delete unused variable.
5975 (software_breakpoint_inserted_here_p): Delete unused variable.
5976 (watchpoints_triggered): Delete unused variable.
5977 (bpstat_check_watchpoint): Delete unused variable.
5978 (bpstat_stop_status): Delete unused variable.
5979 (print_one_breakpoint_location): Delete unused variable.
5980 (allocate_bp_location): Delete unused variable.
5981 (create_breakpoint): Delete unused variable.
5982 (watch_command_1): Delete unused variable.
5983 (catch_exception_command_1): Delete unused variable.
5984 (catch_ada_exception_command): Delete unused variable.
5985 (delete_breakpoint): Delete unused variable.
5986 (breakpoint_re_set_one): Delete unused variable.
5987 (do_enable_breakpoint): Delete unused variable.
5988
eda5a4d7
PA
59892010-05-06 Pedro Alves <pedro@codesourcery.com>
5990
5991 * amd64-tdep.c: Include disasm.h.
5992 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5993 (amd64_insn_length): Moved to disasm.c and renamed.
5994 (fixup_riprel): Adjust.
5995 * disasm.c (do_ui_file_delete): New.
5996 (gdb_insn_length): New.
5997 (gdb_buffered_insn_length_fprintf)
5998 (gdb_buffered_insn_length_init_dis)
5999 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6000 renamed.
6001 * disasm.h (gdb_insn_length): Declare.
6002 (gdb_buffered_insn_length): Declare.
6003
02357a4a
PA
60042010-05-06 Pedro Alves <pedro@codesourcery.com>
6005
6006 * remote.c (clear_threads_parsing_context): New.
6007 (remote_threads_info): Delete unused null_cleanup. Install a
6008 cleanup to clear the threads_parsing_context in case parsing
6009 throws.
6010
8c5630cb
MS
60112010-05-05 Michael Snyder <msnyder@vmware.com>
6012
6013 * c-exp.y (parse_string_or_char): Delete unused variable.
6014 (c_lex): Delete unused variable.
6015 * cp-name-parser.y (cpname_lex): Delete unused variable.
6016 * ada-exp.y (find_primitive_type): Delete unused variable.
6017 (write_var_or_type): Delete unused variable.
6018 * jv-exp.y (java_parse): Delete unused variable.
6019 (push_expression_name): Delete unused variable.
6020 * p-exp.y (pascal_lex): Delete unused variable.
6021
46c162d4
PA
60222010-05-05 Pedro Alves <pedro@codesourcery.com>
6023
6024 * remote.c (remote_threads_info): Really revert previous previous
6025 change.
6026
0043e6a5
MS
60272010-05-05 Michael Snyder <msnyder@vmware.com>
6028
fa238c03
MS
6029 * elfread.c (elf_symtab_read): Delete unused variable.
6030 (find_separate_debug_file_by_buildid): Delete unused variables.
6031 (elf_symfile_read): Delete unused variable.
6032
6033 * coffread.c (coff_symfile_read): Delete unused variables.
6034
6035 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6036 (read_pe_exported_syms): Delete unused variable.
6037
6038 * stabsread.c (define_symbol): Delete unused variable.
6039
6040 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6041 (process_psymtab_comp_unit): Delete unused variable.
6042 (dwarf2_build_psymtabs_hard): Delete unused variable.
6043 (load_partial_comp_unit): Delete unused variable.
6044 (create_all_comp_units): Delete unused variable.
6045 (scan_partial_symbols): Delete unused variable.
6046 (add_partial_symbol): Delete unused variable.
6047 (add_partial_namespace): Delete unused variable.
6048 (add_partial_enumeration): Delete unused variable.
6049 (load_full_comp_unit): Delete unused variable.
6050 (process_full_comp_unit): Delete unused variable.
6051 (read_file_scope): Delete unused variable.
6052 (read_type_unit_scope): Delete unused variable.
6053 (process_structure_scope): Delete unused variable.
6054 (process_enumeration_scope): Delete unused variable.
6055 (read_tag_ptr_to_member_type): Delete unused variable.
6056 (read_typedef): Delete unused variable.
6057 (read_partial_die): Delete unused variable.
6058 (decode_locdesc): Delete unused variable.
6059 (zeroed_partial_die): Delete unused global variable.
6060
0407b3f1 6061 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 6062 Delete unused variable.
0407b3f1 6063 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
6064 Delete unused variable.
6065 (tui_check_register_values): Delete unused variable.
6066 (tui_register_format): Delete unused variable.
6067 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 6068 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
6069 Delete unused variables.
6070 (tui_vertical_data_scroll): Delete unused variables.
6071
75721c66
MS
60722010-05-05 Michael Snyder <msnyder@vmware.com>
6073
c31a71f4
MS
6074 * remote.c (remote_threads_info): Revert questionable part of
6075 the previous change.
6076
60772010-05-05 Michael Snyder <msnyder@vmware.com>
6078
6079 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6080 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6081 (mi_cmd_var_list_children): Delete unused variable.
6082 (varobj_update_one): Delete unused variable.
6083 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 6084 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
6085 Delete unused variable.
6086 (mi_cmd_stack_list_variables): Delete unused variable.
6087 (list_args_or_locals): Delete unused variable.
0407b3f1 6088 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
6089 Delete unused variables.
6090 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 6091 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
6092 Delete unused variable.
6093 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6094 (mi_cmd_interpreter_exec): Delete unused variable.
6095 (mi_on_normal_stop): Delete unused variable.
6096 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6097 (print_one_inferior): Delete unused variables.
6098 (mi_execute_command): Delete unused variable.
6099 (mi_cmd_execute): Delete unused variable.
6100 (timestamp): Delete unused variable.
6101
6102 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 6103 (restore_binary_file): Delete unused variable.
c31a71f4
MS
6104 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6105 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
6106 (recurse_read_control_structure): Delete unused variable.
6107 (script_from_file): Delete unused variable.
c31a71f4 6108 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
6109 (disassemble_command): Delete unused variable.
6110
6111 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 6112 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
6113 Delete unused variables.
6114 (encode_actions_1): Delete unused variables.
6115 (start_tracing): Delete unused variable.
6116 (trace_status_mi): Delete unused variable.
6117 (tfind_1): Delete unused variable.
6118 (trace_find_pc_command): Delete unused variable.
6119 (trace_find_line_command): Delete unused variables.
6120 (trace_find_range_command): Delete unused variables.
6121 (trace_find_outside_command): Delete unused variables.
6122 (parse_tracepoint_definition): Delete unused variables.
6123 (tfile_fetch_registers): Delete unused variable.
6124
9128a503
MS
6125 * dcache.c (dcache_init): Delete unused variable.
6126 (dcache_info): Delete unused variable.
6127
aa369b55 6128 * remote.c (remote_threads_info): Delete unused variable.
9128a503 6129 (process_stop_reply) :Delete unused variable.
aa369b55
MS
6130 (remote_get_trace_status): Delete unused variables.
6131
9e9547e4
MS
6132 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6133 (thread_from_lwp): Delete unused variable.
6134 (enable_thread_event_reporting): Delete unused variable.
6135 (check_for_thread_db): Delete unused variables.
6136 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 6137
9e9547e4
MS
6138 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6139 (checkpoint_command): Delete unused variable.
6140 (linux_fork_context): Delete unused variables.
6141
fa238c03 6142 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
6143 (linux_tracefork_child): Delete unused variable.
6144 (linux_child_follow_fork): Delete unused variable.
6145 (linux_nat_detach): Delete unused variable.
6146 (linux_handle_extended_wait): Delete unused variable.
6147 (linux_nat_has_pending_sigint): Delete unused variable.
6148 (linux_nat_find_memory_regions): Delete unused variable.
6149 (linux_nat_make_corefile_notes): Delete unused variables.
6150 (linux_nat_info_proc_cmd): Delete unused variable.
6151 (linux_proc_pending_signals): Delete unused variable.
6152 (linux_nat_stop_lwp): Delete unused variables.
6153 (_initialize_linux_nat): Delete unused variable.
6154
fa238c03 6155 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 6156
0407b3f1 6157 * linux-record.c (record_linux_system_call):
e0f069a3
MS
6158 Delete unused variables.
6159
789d24f0
MS
6160 * corelow.c (core_xfer_partial): Delete unused variables.
6161
1cd337a5 6162 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 6163 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
6164 conditionally-used variable declarations.
6165
b00e3f56
MS
6166 * solib.c (solib_find): Delete unused variable.
6167 (free_so_symbols): Delete unused variable.
6168 (info_sharedlibrary_command): Delete unused variable.
6169 (reload_shared_libraries_1): Delete unused variable.
6170 (_initialize_solib): Delete unused variable.
6171
90f62196
MS
6172 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6173 (i386_collect_xstateregset): Delete unused variable.
6174 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6175
75721c66
MS
6176 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6177 Delete unused variable 'type'.
6178
af33db37
JB
61792010-05-05 Joel Brobecker <brobecker@adacore.com>
6180
90f62196 6181 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
6182 ada-lang.c: Remove comment mentioning these macros.
6183 * m2-exp.y: Delete commented out code.
af33db37 6184
0497f5b0
JB
61852010-05-05 Joel Brobecker <brobecker@adacore.com>
6186
6187 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6188 for array types.
6189 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6190
6e39997a
PM
61912010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6192
6193 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 6194 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
6195 ATTRIBUTE_UNUSED.
6196 (cleanup_kernel_helper_return): Likewise.
6197 * arm-tdep.c (copy_unmodified): Likewise.
6198 (copy_preload): Likewise.
6199 (copy_copro_load_store): Likewise.
6200 (cleanup_branch): Likewise.
6201 (copy_b_bl_blx): Likewise.
6202 (copy_bx_blx_reg): Likewise.
6203 (copy_alu_imm): Likewise.
6204 (copy_alu_reg): Likewise.
6205 (copy_alu_shifted_reg): Likewise.
6206 (cleanup_load): Likewise.
6207 (cleanup_store): Likewise.
6208 (cleanup_block_load_pc): Likewise.
6209 (cleanup_svc): Likewise.
6210 (copy_undef): Likewise.
6211 (copy_unpred): Likewise.
6212 * remote.c (register_remote_support_xml): Likewise.
6213
1412f70b
HZ
62142010-05-05 Hui Zhu <teawater@gmail.com>
6215
6216 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6217
c4f7c687
MK
62182010-05-04 Mark Kettenis <kettenis@gnu.org>
6219
6220 * remote.c (register_remote_support_xml)
6221 (remote_query_supported_append, remote_query_supported): Add cast
6222 to NULL used as sentinel.
6223 * tracepoint.c (tvariables_info_1): Likewise.
6224 * utils.c (add_internal_problem_command): Likewise.
6225
63b4f126
MGD
62262010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6227
6228 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6229 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6230 registers gracefully.
6231
2f1bdd26
MGD
62322010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6233
0407b3f1 6234 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
6235 specific parts.
6236
e1c34c5d
PM
62372010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6238
6239 PR exp/11349.
6240 * printcmd.c (x_command): Only dereference once implicitly for
6241 TYPE_CODE_REF.
6242
ae462839
DE
62432010-05-03 Doug Evans <dje@google.com>
6244
6245 * event-loop.c (gdb_timer): Delete unused global.
6246 (create_timer): Update.
6247
1ac77ea1
JK
62482010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6249
6250 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6251 CURRENT->DECLARATION case.
6252 * cp-support.h (struct using_direct): Provide extended comment.
6253
7c54a108
MK
62542010-05-03 Mark Kettenis <kettenis@gnu.org>
6255
6256 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6257 HPPABSD_SIZEOF_GREGS.
6258 (HPPAOBSD_SIZEOF_FPREGS): New define.
6259 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6260 (hppaobsd_supply_fpregset): New function.
6261 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6262 (hppaobsd_fpregset): New variable.
6263 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6264 (_initialize_hppabsd_tdep): Remove spurious blank line.
6265
278582cb
PM
62662010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6267
6268 PR pascal/11349.
6269 * p-valprint.c (pascal_value_print): Always dereference a value with
6270 type code TYPE_CODE_REF.
0407b3f1 6271
f0223081
PA
62722010-05-03 Pedro Alves <pedro@codesourcery.com>
6273
6274 * remote.c (remote_notice_signals): New.
6275 (remote_start_remote): In non-stop mode, update the remote end on
6276 which signals it can silently pass.
6277 (init_remote_ops): Install remote_notice_signals.
6278
c25c4a8b
JK
62792010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6280
6281 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6282 * command.h (error_no_arg): ... here. Remove NORETURN, change
6283 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6284 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6285 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6286 (internal_verror, internal_error, nomem): Remove NORETURN, change
6287 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6288 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6289 (throw_vfatal, throw_error): Remove NORETURN.
6290 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6291 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6292 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6293 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6294 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6295 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6296 NORETURN.
6297 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6298 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6299 ATTRIBUTE_NORETURN.
6300 * target.c (tcomplain): Likewise.
6301 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6302 ATTRIBUTE_NORETURN.
6303 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6304 (internal_error, perror_with_name, nomem): Remove NORETURN.
6305 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6306 ATTRIBUTE_NORETURN.
6307
a0b31db1
JK
63082010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6309
6310 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6311 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6312 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6313 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6314 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6315 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6316 * complaints.h (complaint, internal_complaint): Likewise.
6317 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6318 (ATTR_FORMAT): Remove.
6319 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6320 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6321 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6322 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6323 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6324 (internal_error, internal_vwarning, internal_warning, warning)
6325 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6326 * disasm.c (fprintf_disasm): Likewise.
6327 * exceptions.c (throw_it): Likewise.
6328 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6329 (throw_error): Likewise.
6330 * language.h (type_error, range_error): Likewise.
6331 * linespec.c (cplusplus_error): Likewise.
6332 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6333 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6334 * monitor.c (monitor_debug): Likewise.
6335 * parser-defs.h (parser_fprintf): Likewise.
6336 * serial.h (serial_printf): Likewise.
6337 * tui/tui-hooks.c (tui_query_hook): Likewise.
6338 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6339 (uo_message): Likewise.
6340 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6341 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6342 Likewise.
6343 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6344
02a45ac0
PA
63452010-05-02 Pedro Alves <pedro@codesourcery.com>
6346
6347 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6348 (cli_table_header, cli_begin, cli_end, cli_field_int)
6349 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6350 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6351 Delete forward declarations.
6352 (cli_ui_out_impl): Move below the callbacks.
6353 (_initialize_cli_out): Delete.
6354
1915ef4f
PA
63552010-05-02 Pedro Alves <pedro@codesourcery.com>
6356
6357 * README: Use consistent `GDB' and `GDBserver' spellings.
6358
0dfb946f
JK
63592010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6360
6361 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6362
4d533103
PA
63632010-05-01 Pedro Alves <pedro@codesourcery.com>
6364
6365 * infrun.c (prepare_for_detach): In non-stop, context switch to
6366 the thread that got the event before handling the event.
6367
705b5767
TT
63682010-04-30 Tom Tromey <tromey@redhat.com>
6369
6370 * symtab.c (symbol_set_names): Fix typo.
6371
3c0ee1a4
PM
63722010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6373
6374 * python/py-param.c (parm_constants): Avoid ARI warning
6375 by adding ARI comment.
6376 (parmpy_init): Likewise.
6377
ea1fae46
PM
63782010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6379
6380 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6381 and created type for re-use.
6382
c24d0242
PM
63832010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6384
6385 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6386
a26d8d11
DE
63872010-04-29 Doug Evans <dje@google.com>
6388
6389 * ser-base.h (reschedule): Delete prototype.
6390 * ser-base.c (reschedule): Make static.
6391
f8624c62
MGD
63922010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6393
6394 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6395 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 6396 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 6397 EABI.
0407b3f1 6398 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
6399 use.
6400
e66408ed
PA
64012010-04-29 Pedro Alves <pedro@codesourcery.com>
6402
6403 PR gdb/11557
6404
6405 * regcache.c (registers_changed): Rename to ...
6406 (registers_changed_ptid): ... this, and only delete register cache
6407 entries matching the ptid filter argument.
6408 (registers_changed): Reimplement on top of registers_changed_ptid.
6409 * regcache.h (registers_changed_ptid): Declare.
6410 * target.c (target_resume): Flush register caches.
6411
d7b32ed3 64122010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
6413 Tom Tromey <tromey@redhat.com>
6414 Thiago Jung Bauermann <bauerman@br.ibm.com>
6415
6416 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6417 (SUBDIR_PYTHON_SRCS): Likewise.
6418 (py-parameter.o): New rule.
6419 * python/py-parameter.c: New file.
6420 * python/python-internal.h (gdbpy_initialize_parameter)
6421 (gdbpy_parameter, gdbpy_parameter_value)
6422 (gdbpy_parse_command_name): Declare.
6423 * python/py-cmd.c (parse_command_name): Rename to
6424 gdbpy_parse_command_name.
6425 (gdbpy_parse_command_name): Accept a starting list parameter and
6426 use over cmdlist.
6427 (cmdpy_init): Use gdbpy_parse_command_name.
6428 * python/python.c (parameter_to_python): Rename to
6429 gdbpy_parameter_to_python. Accept enum var_types and value.
6430 (gdbpy_parameter): Use gdbpy_parameter_value.
6431 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 6432
ce72ce41
MGD
64332010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6434
6435 * MAINTAINERS: Add myself for write after approval privileges.
6436
6aecb9c2
JB
64372010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6438
6439 D language support.
6440 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6441 (COMMON_OBS): Add d-lang.o d-valprint.o.
6442 (HFILES_NO_SRCDIR): Add d-lang.h.
6443 * NEWS: Mention D language support.
6444 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6445 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6446 * d-lang.c: New file.
6447 * d-lang.h: New file.
6448 * d-valprint.c: New file.
6449 * defs.h (enum language): Add language_d.
6450 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6451 * language.c (binop_result_type, integral_type, character_type)
6452 (string_type, boolean_type, structured_type): Add language_d.
6453 * symfile.c (init_filename_language_table): Add language_d.
6454 * symtab.c: Include d-lang.h.
6455 (symbol_init_language_specific, symbol_find_demangled_name)
6456 (symbol_natural_name, lookup_symbol_in_language)
6457 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6458
6f992fbf
JB
64592010-04-27 Joel Brobecker <brobecker@adacore.com>
6460
6461 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6462
dde59185
JB
64632010-04-27 Joel Brobecker <brobecker@adacore.com>
6464
6465 * symfile.c (init_filename_language_table): Register .dg files
6466 with language_ada.
6467
d09ce91e
JB
64682010-04-27 Joel Brobecker <brobecker@adacore.com>
6469
6470 * gdbtypes.h (struct main_type): Expand comment about target_type
6471 field.
6472
67f1675e
JB
64732010-04-27 Pedro Alves <pedro@codesourcery.com>
6474 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
6475
6476 * symfile.c (reread_symbols): Also search for file in libraries.
6477 Update comment.
6478
dfd0fe27
JB
64792010-04-27 Joel Brobecker <brobecker@adacore.com>
6480
6481 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6482 in terms of configuration.
6483
0133421a
JK
64842010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6485
6486 * objfiles.c: Include solist.h.
6487 (free_all_objfiles): New variable so. Check stale solist objfiles.
6488 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6489 and no_shared_libraries.
6490
e78f4312
JB
64912010-04-27 Joel Brobecker <brobecker@adacore.com>
6492
6493 ARI warning fix.
6494 * python/py-auto-load.c (source_section_scripts): Remove trailing
6495 new-line in i18n string.
6496
9214d371
DE
64972010-04-26 Doug Evans <dje@google.com>
6498
6499 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6500
3f172e24
TT
65012010-04-26 Tom Tromey <tromey@redhat.com>
6502
6503 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6504 command list.
6505
e790e06e
PM
65062010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6507
6508 Removal of config/i386/nm-i386sol2.h native configuration file.
6509 * config/i386/nm-i386sol2.h: Remove file.
6510 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6511 * config/i386/sol2-64.mh: Idem.
88562582
PM
6512 * config/djgpp/fnchange.lst: Remove reference to that file.
6513 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 6514
b7da9e9f
PM
65152010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6516
6517 PR breakpoints/11531.
6518 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6519 macro definition and related comment.
6520 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6521 (resume): Remove code and comment related to this macro.
6522
72f6eb52
JK
65232010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6524
6525 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6526 Fix whitespace.
6527
ab38a727
PA
65282010-04-24 Pedro Alves <pedro@codesourcery.com>
6529
6530 * defs.h: Adjust comment.
6531 * filesystem.h, filesystem.c: New files.
6532 * Makefile.in (SFILES): Add filesystem.c.
6533 (COMMON_OBS): Add filesystem.o.
6534 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6535 different target and host path flavours.
6536 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6537 has_dos_based_file_system on the gdbarch.
6538 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6539 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6540 * i386-tdep.c (i386_go32_init_abi): Ditto.
6541 * gdbarch.sh (has_dos_based_file_system): New.
6542 * gdbarch.h, gdbarch.c: Regenerate.
6543 * NEWS: Mention improved support for remote targets with DOS-based
6544 filesystems. Mention new `set/show target-file-system-kind'
6545 commands.
6546
35c9c7ba
SS
65472010-04-23 Stan Shebs <stan@codesourcery.com>
6548
6549 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6550 comments.
6551 (struct agent_reqs): Remove.
6552 (ax_reg_mask): Declare.
6553 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6554 (free_agent_expr): Free reg_mask.
6555 (ax_print): Add scope and register mask info.
6556 (ax_reqs): Remove agent_reqs argument, use agent expression
6557 fields, and move part of register mask computation to...
6558 (ax_reg_mask): New function.
6559 * ax-gdb.c (gen_trace_static_fields): Call it.
6560 (gen_traced_pop): Ditto.
6561 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6562 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6563 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6564 (gen_eval_for_expr): Ditto, and require an rvalue.
6565 (agent_command): Call ax_reqs.
6566 (agent_eval_command): Ditto.
6567 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6568 (validate_action_line): Ditto.
6569 (collect_symbol): Ditto.
6570 (encode_actions_1): Ditto.
6571
492928e4
JK
65722010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6573 Paul Pluzhnikov <ppluzhnikov@google.com>
6574 Jan Kratochvil <jan.kratochvil@redhat.com>
6575
6576 Fix deadlock on looped list of loaded shared objects.
6577 * solib-svr4.c (LM_PREV): New function.
6578 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6579 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6580 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6581 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6582
66d09542
DE
65832010-04-23 Doug Evans <dje@google.com>
6584
88a1906b
DE
6585 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6586 python.
6587 * configure: Regenerate.
6588 * main.c: #include "python/python.h".
6589 (captured_main): Defer loading auto-loaded scripts until after
6590 local_gdbinit has been sourced.
6591 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6592 (load_auto_scripts_for_objfile): New function.
6593 (auto_load_new_objfile): Call it.
6594 * python/python.h (gdbpy_global_auto_load): Declare.
6595 (load_auto_scripts_for_objfile): Declare.
6596
66d09542
DE
6597 Add support for auto-loading scripts from .debug_gdb_scripts section.
6598 * NEWS: Add entry for .debug_gdb_scripts.
6599 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6600 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6601 (py-auto-load.o): New rule.
6602 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6603 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6604 * python/py-auto-load.c: New file.
6605 * python/python-internal.h: #include <stdio.h>.
6606 (set_python_list, show_python_list): Declare.
6607 (gdbpy_initialize_auto_load): Declare.
6608 (source_python_script_for_objfile): Declare.
6609 * python/python.c: Remove #include of observer.h.
6610 (gdbpy_auto_load): Moved to py-auto-load.c.
6611 (GDBPY_AUTO_FILENAME): Ditto.
6612 (gdbpy_new_objfile): Delete.
6613 (source_python_script_for_objfile): New function.
6614 (set_python_list, show_python_list): Make externally visible.
6615 (_initialize_python): Move "auto-load" command to py-auto-load.c
6616 and observer_attach_new_objfile to py-auto-load.c.
6617
3a48e6ff 66182010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 6619
3a48e6ff
JG
6620 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6621 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6622 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6623 New constants.
6624 (alpha_heuristic_analyze_probing_loop): New function.
6625 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6626 and handle cases when a stack probe loop is generated.
6627 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6628 (alpha_mdebug_max_frame_size_exceeded): New function.
6629 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6630 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6631 Return 0 when the maximum debuggable frame size has been exceeded.
6632
e4166a49
JB
66332010-04-23 Joel Brobecker <brobecker@adacore.com>
6634
6635 Fix ARI warning.
6636 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6637
8bd10a10
CM
66382010-04-20 Chris Moller <cmoller@redhat.com>
6639
6640 PR 10179
6641
6642 * symtab.c (rbreak_command): Added code to include a filename
6643 specification in the rbreak argument.
6644 * NEWS: Added a brief description of filename-qualified rbreak.
6645
c0201579
JK
66462010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6647
6648 Fix crashes on dangling display expressions.
6649 * ada-lang.c (ada_operator_check): New function.
6650 (ada_exp_descriptor): Fill-in the field operator_check.
6651 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6652 * jv-lang.c (exp_descriptor_java): Likewise.
6653 * m2-lang.c (exp_descriptor_modula2): Likewise.
6654 * scm-lang.c (exp_descriptor_scm): Likewise.
6655 * parse.c (exp_descriptor_standard): Likewise.
6656 (operator_check_standard): New function.
6657 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6658 * parser-defs.h (struct exp_descriptor): New field operator_check.
6659 (operator_check_standard, exp_uses_objfile): New declarations.
6660 * printcmd.c: Remove the inclusion of solib.h.
6661 (display_uses_solib_p): Remove the function.
6662 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6663 and exp_uses_objfile instead of display_uses_solib_p.
6664 * solist.h (struct so_list) <objfile>: New comment.
6665 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6666 * symtab.h (lookup_objfile_from_block): New declaration.
6667 (struct general_symbol_info) <obj_section>: Extend the comment.
6668
6ffbb7ab
TJB
66692010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6670 Thiago Jung Bauermann <bauerman@br.ibm.com>
6671
6672 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6673 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6674 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6675 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6676 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6677 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6678 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6679 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6680 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6681 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6682 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6683 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6684 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6685 Define, in case <ptrace.h> doesn't provide it.
6686 (booke_debug_info): New variable.
6687 (max_slots_number): Ditto.
6688 (hw_break_tuple): New struct.
6689 (thread_points): Ditto.
6690 (ppc_threads): New variable.
6691 (PPC_DEBUG_CURRENT_VERSION): New define.
6692 (have_ptrace_new_debug_booke): New function.
6693 (ppc_linux_check_watch_resources): Renamed to ...
6694 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6695 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6696 (booke_cmp_hw_point): New function.
6697 (booke_find_thread_points_by_tid): Ditto.
6698 (booke_insert_point): Ditto.
6699 (booke_remove_point): Ditto.
6700 (ppc_linux_insert_hw_breakpoint): Ditto.
6701 (ppc_linux_remove_hw_breakpoint): Ditto.
6702 (get_trigger_type): Ditto.
6703 (ppc_linux_insert_watchpoint): Handle BookE processors.
6704 (ppc_linux_remove_watchpoint): Ditto.
6705 (ppc_linux_new_thread): Ditto.
6706 (ppc_linux_thread_exit): New function..
6707 (ppc_linux_stopped_data_address): Handle BookE processors.
6708 (ppc_linux_watchpoint_addr_within_range): Ditto.
6709 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6710 to_remove_hw_breakpoint fields of the target operations struct.
6711 Add observe for the thread_exit event.
6712
be0d2954
L
67132010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6714
6715 * i386-linux-nat.c (regmap): Removed.
6716 (fetch_register): Replace regmap with
6717 i386_linux_gregset_reg_offset.
6718 (store_register): Likewise.
6719 (supply_gregset): Likewise.
6720 (fill_gregset): Likewise.
6721
6722 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6723 global.
6724
6725 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6726
f56dcb88
CM
67272010-04-22 Chris Moller <cmoller@redhat.com>
6728
6729 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6730 method of popping recursion-detection stack with a method based on
6731 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6732 the static array obstack rather than the static member obstack.)
6733
6cd6a2ae
L
67342010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6735
6736 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6737 (_initialize_amd64_linux_nat): Replace
6738 amd64_linux_gregset64_reg_offset with
6739 amd64_linux_gregset_reg_offset.
6740
6741 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6742 global.
6743
6744 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6745
621791b8
PM
67462010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6747
6748 PR stabs/11479.
6749 * stabsread.c (set_length_in_type_chain): New function.
6750 (read_struct_type): Call set_length_in_type_chain function.
6751 (read_enum_type): Idem.
6752
105c2d85
SS
67532010-04-21 Stan Shebs <stan@codesourcery.com>
6754 Nathan Sidwell <nathan@codesourcery.com>
6755
6756 * tracepoint.c (trace_save): Open in binary mode.
6757
9a22f0d0
PM
67582010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6759
6760 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6761 fields.
0407b3f1 6762 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6763 builtin_char32 fields.
6764 * printcmd.c (decode_format): Set char size to '\0'
6765 for strings unless explicit size is given.
6766 (print_formatted): Correct calculation of NEXT_ADDRESS
6767 for 16 or 32 bit strings.
6768 (do_examine): Do not force byte size for strings.
6769 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6770 16 or 32 bit-wide strings.
9a22f0d0
PM
6771 (x_command): Set LAST_SIZE to 'b' for string type.
6772
f335d1b3
L
67732010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6774
6775 PR corefiles/11523
6776 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6777 XCR0 first.
6778
6779 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6780 there is no .reg-xstate section.
6781 (i386_linux_core_read_description): Check XCR0 first.
6782
a9789a6b
MF
67832010-04-21 Mike Frysinger <vapier@gentoo.org>
6784
6785 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6786 for len <= 8.
6787
0b66f317
CM
67882010-04-21 Chris Moller <cmoller@redhat.com>
6789
6790 PR 9167
6791 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6792 method of popping recursion-detection stack with a method based on
6793 obstack_object_size().
0b66f317 6794
6e354e5e
PM
67952010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6796
6797 PR pascal/11492.
6798 * p-valprint.c (pascal_val_print): Fix default printing of integer
6799 arrays.
6800
57174f31
PM
68012010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6802
6803 Fix compilation warning on gcc-4.1.2.
6804 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6805 local variable`pc' to zero.
6806
6fbc7cd8
JB
68072010-04-20 Joel Brobecker <brobecker@adacore.com>
6808
6809 Implement thread support with core files on alpha-tru64.
6810 * dec-thread.c (dec_thread_find_new_threads): New function,
6811 extracted from resync_thread_list.
6812 (resync_thread_list): Add OPS parameter. Replace extracted-out
6813 code by call to dec_thread_find_new_threads.
6814 (dec_thread_wait): Update call to resync_thread_list.
6815 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6816
438c98a1
JB
68172010-04-20 Joel Brobecker <brobecker@adacore.com>
6818
6819 * ada-lang.c (value_pointer): New function.
6820 (make_array_descriptor): Call value_pointer to convert addresses to
6821 pointers.
6822
2971b56b
JB
68232010-04-20 Joel Brobecker <brobecker@adacore.com>
6824
6825 * rs6000-aix-tdep.c: #include exceptions.h.
6826 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6827 while reading the memory at ADDR, then ADDR cannot be a function
6828 descriptor.
6829
be942545
JB
68302010-04-20 Joel Brobecker <brobecker@adacore.com>
6831
6832 * ada-typeprint.c (ada_print_typedef): New function.
6833 * ada-lang.h (ada_print_typedef): Add declaration.
6834 * ada-lang.c (ada_language_defn): set la_print_typdef field
6835 to ada_print_typedef.
6836
1ca8fce0
JB
68372010-04-20 Joel Brobecker <brobecker@adacore.com>
6838
6839 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6840
e9ef4f39
JB
68412010-04-20 Joel Brobecker <brobecker@adacore.com>
6842
6843 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6844 (iterate_over_mappings): Adjust function profile. Add declaration.
6845 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6846 Adjust accordingly.
6847
e294797a
JB
68482010-04-20 Joel Brobecker <brobecker@adacore.com>
6849
6850 * procfs.c (solib_mappings_callback): Move function up to avoid
6851 a compiler warning.
6852
a223f1e7
JB
68532010-04-20 Joel Brobecker <brobecker@adacore.com>
6854
6855 * procfs.c (find_signalled_thread, find_stop_signal): Move
6856 these functions down to define them only when used.
6857
0c3acc09
JB
68582010-04-20 Joel Brobecker <brobecker@adacore.com>
6859
6860 * valprint.c (common_val_print): Fix the value before extracting
6861 its contents.
6862 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6863 * ada-lang.h (ada_to_fixed_value): New function declaration.
6864 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6865 to avoid code duplication and fix a bug in the handling of
6866 fixed types contents.
6867
31ef98ae
TT
68682010-04-20 Tom Tromey <tromey@redhat.com>
6869
6870 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6871 (read_partial_die): Likewise.
6872 (dwarf_attr_name): Likewise.
6873
ec31cde5 68742010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6875
ec31cde5
CM
6876 PR 10867
6877
6878 * cp-valprint.c (global): Adding new static array recursion
6879 detection obstack.
6880 (cp_print_value_fields, cp_print_static_field): Added new static
6881 array recursion detection code.
6882
e0e0e543
MK
68832010-04-20 Mark Kettenis <kettenis@gnu.org>
6884
6885 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6886 general-purpose register set should be 68 instead of 144.
6887 (i386_linux_sse_regset_sections): Likewise.
6888 (i386_linux_avx_regset_sections): Likewise.
6889
08922a10
SS
68902010-04-20 Stan Shebs <stan@codesourcery.com>
6891 Nathan Sidwell <nathan@codesourcery.com>
6892
6893 * dwarf2loc.c (struct axs_var_loc): New struct.
6894 (dwarf2_tracepoint_var_loc): New function.
6895 (dwarf2_tracepoint_var_access): New function.
6896 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6897 with DW_OP_piece.
6898 (locexpr_describe_location_piece): New function.
6899 (locexpr_describe_location_1): New function.
6900 (locexpr_describe_location): Call it, update signature.
6901 (loclist_describe_location): Rewrite to loop over locations,
6902 update signature.
6903 * symtab.h (struct symbol_computed_ops): Add address to
6904 describe_location arguments, return void.
6905 * printcmd.c (address_info): Get context PC, pass to computed
6906 location description.
6907 * tracepoint.c (scope_info): Ditto.
6908 * ax-gdb.c (trace_kludge): Export.
6909
2dc7f7b3
TT
69102010-04-20 Tom Tromey <tromey@redhat.com>
6911
6912 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6913 (struct dwarf2_cie) <segment_size>: New field.
6914 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6915 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6916 DW_FORM_exprloc.
6917 (read_attribute_value): Handle DW_FORM_flag_present,
6918 DW_FORM_sec_offset, DW_FORM_exprloc.
6919 (dump_die_shallow): Likewise.
6920 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6921 (dwarf2_const_value): Handle DW_FORM_exprloc.
6922 (attr_form_is_block): Likewise.
6923 (struct line_header) <maximum_ops_per_instruction>: New field.
6924 (dwarf_decode_line_header): Set new field.
6925 (dwarf_decode_lines): Handle new field.
6926
ce4b0682
SDJ
69272010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6928
6929 * f-exp.y: Add new production to recognize the `logical*8' type.
6930 (LOGICAL_S8_KEYWORD): New token.
6931 * f-lang.c (enum f_primitive_types)
6932 <f_primitive_type_logical_s8>: New field.
6933 (f_language_arch_info): Handling `logical*8' type.
6934 (build_fortran_types): Building `logical*8' type.
6935 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6936
ff9f22f1
DE
69372010-04-19 Doug Evans <dje@google.com>
6938
6939 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6940 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6941 (pipe_close): Ditto.
6942
437125bd
PM
69432010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6944
6945 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6946
e8e6c82e
PM
69472010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6948
6949 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6950 type to void function.
6951
4136fdd2
SS
69522010-04-19 Stan Shebs <stan@codesourcery.com>
6953 Vladimir Prus <vladimir@codesourcery.com>
6954
6955 * tracepoint.c (tfind_1): Add missing newline, report exit from
6956 tfind mode as such.
6957 * target.c (update_current_target): Make default
6958 to_trace_find return -1.
6959
0c4b2e63
MF
69602010-04-19 Mike Frysinger <vapier@gentoo.org>
6961
6962 * objc-lang.c (find_methods): Move symname check up.
6963
78076abc
PA
69642010-04-19 Pedro Alves <pedro@codesourcery.com>
6965
6966 * ada-lang.c (print_recreate_exception)
6967 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6968 not "catch unhandled".
6969
6149aea9
PA
69702010-04-19 Pedro Alves <pedro@codesourcery.com>
6971
6972 PR breakpoints/8554.
6973
6974 Implement `save-breakpoints'.
6975
6976 * breakpoint.c (save_cmdlist): New.
6977 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6978 to save_cmdlist.
6979 (print_recreate_catch_fork): New.
6980 (catch_fork_breakpoint_ops): Install it.
6981 (print_recreate_catch_vfork): New.
6982 (catch_vfork_breakpoint_ops): Install it.
6983 (print_recreate_catch_syscall): New.
6984 (catch_syscall_breakpoint_ops): Install it.
6985 (print_recreate_catch_exec): New.
6986 (catch_exec_breakpoint_ops): Install it.
6987 (print_recreate_exception_catchpoint): New.
6988 (gnu_v3_exception_catchpoint_ops): Install it.
6989 (save_breakpoints): New, based on tracepoint_save_command, but
6990 handle all breakpoint types.
6991 (save_breakpoints_command): New.
6992 (tracepoint_save_command): Rename to...
6993 (save_tracepoints_command): ... this, and reimplement using
6994 save_breakpoints.
6995 (save_command): New.
6996 (_initialize_breakpoints): Install the "save" command prefix.
6997 Install the "save breakpoints" command. Make "save-tracepoints" a
6998 deprecated alias for "save tracepoints".
6999 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7000 * ada-lang.c (print_recreate_exception): New.
7001 (print_recreate_catch_exception): New.
7002 (catch_exception_breakpoint_ops): Install it.
7003 (print_recreate_catch_exception_unhandled): New.
7004 (catch_exception_unhandled_breakpoint_ops): Install it.
7005 (print_recreate_catch_assert): New.
7006 (catch_assert_breakpoint_ops): Install it.
7007
7008 * NEWS: Mention the new `save breakpoints' command. Mention the
7009 new `save tracepoints' alias and that `save-tracepoints' is now
7010 deprecated.
7011
0a8fce9a
PA
70122010-04-18 Pedro Alves <pedro@codesourcery.com>
7013
7014 PR tui/9217
7015
7016 * tui/tui-out.c: Include cli-out.h.
7017 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7018 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7019 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7020 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7021 declarations.
7022 (struct ui_out_data): Rename to...
7023 (struct tui_ui_out_data): ... this. Remove `stream' and
7024 `suppress_output' fields, and inherit cli_ui_out_data.
7025 (tui_out_data): New typedef.
7026 (tui_ui_out_impl): Don't initialize fields staticaly.
7027 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7028 (tui_begin, tui_end): Delete.
7029 (tui_field_int): Adjust to delegate most work to the base type.
7030 (tui_field_skip): Delete.
7031 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7032 delegate most work to the base type.
7033 (tui_spaces): Delete.
7034 (tui_text): Adjust to delegate most work to the base type.
7035 (tui_message): Delete.
7036 (tui_wrap_hint): Delete.
7037 (tui_flush): Delete.
7038 (out_field_fmt): Delete.
7039 (field_separator): Delete.
7040 (tui_out_new): Adjust to initialize the base type.
7041 (_initialize_tui_out): Initialize tui_ui_out_impl.
7042 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7043 cli_ui_out_data.
7044 (cli_out_data): Adjust.
7045 (cli_ui_out_impl): Make extern.
7046 (cli_table_header, cli_field_int, cli_field_skip): Use
7047 uo_field_string instead of cli_field_string.
7048 (cli_redirect): Adjust to use cli_out_data.
7049 (cli_out_data_ctor): New.
7050 (cli_out_new): Use it.
7051 * cli-out.h (struct ui_file): Remove forward declaration.
7052 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7053 (cli_ui_out_impl): Declare.
7054 (cli_out_data_ctor): Declare.
7055 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7056 (uo_field_string): No longer static.
7057 (ui_out_data): Change return type to void pointer.
7058 (ui_out_new): Change `data' parameter type to void pointer.
7059 * ui-out.h (struct ui_out_data): Don't forward declare.
7060 (ui_out_data): Change return type to void pointer.
7061 (ui_out_new): Change `data' parameter type to void pointer.
7062 (uo_field_string): Declare.
7063
172240dd
PA
70642010-04-17 Pedro Alves <pedro@codesourcery.com>
7065
7066 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7067 instead of always false.
7068
ed41462c
L
70692010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7070
7071 PR corefiles/11511
7072 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7073 orig_rax.
7074
cc60f2e3
PA
70752010-04-17 Pedro Alves <pedro@codesourcery.com>
7076
7077 * breakpoint.c (watchpoints_triggered): Use
7078 is_hardware_watchpoint.
7079 (watchpoints_triggered): Ditto.
7080 (bpstat_check_location): Use is_watchpoint and
7081 is_hardware_watchpoint.
7082 (bpstat_check_watchpoint): Use is_watchpoint and
7083 is_hardware_watchpoint.
7084 (bpstat_stop_status): Fix comment.
7085 (user_settable_breakpoint): Use is_watchpoint.
7086 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7087 (disable_watchpoints_before_interactive_call_start): Use
7088 is_watchpoint.
7089 (enable_watchpoints_after_interactive_call_stop): Use
7090 is_watchpoint.
7091 (clear_command): Use is_watchpoint.
7092 (do_enable_breakpoint): Use is_watchpoint.
7093
cb7db0f2
MF
70942010-04-16 Mike Frysinger <vapier@gentoo.org>
7095
7096 * solib-frv.c (enable_break1_done): Delete.
7097 (enable_break2): Do not check enable_break1_done. Move the
7098 enable_break2_done setting and call to
7099 remove_solib_event_breakpoints() to the end. Return without
7100 warning when the contents of _dl_debug_addr are 0.
7101 (enable_break): Do not set enable_break1_done.
7102 (frv_clear_solib): Likewise.
7103
d77b48cf
KB
71042010-04-16 Kevin Buettner <kevinb@redhat.com>
7105
7106 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7107 instead of an error if no PLT entry is found. Return a
7108 potentially useful result.
7109 (m32c_m16c_pointer_to_address): Add code to search for function
7110 address when no .plt entry is found.
7111
f90824dc
SS
71122010-04-16 Stan Shebs <stan@codesourcery.com>
7113
7114 * tracepoint.c (trace_variable_command): Run a cleanup.
7115
9b79b476
PM
71162010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7117
7118 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7119
711e434b
PM
71202010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7121
7122 Support for Windows OS Thread Information Block.
7123 * NEWS: Document new feature.
7124 * remote.c (PACKET_qGetTIBAddr): New enum element.
7125 (remote_get_tib_address): New function.
7126 (init_remote_ops): Set to_get_tib_address field
7127 to remote_get_tib_address.
7128 (_initialize_remote): Add add_packet_config_cmd
7129 for PACKET_qGetTIBAddr.
7130 * target.c (update_current_target): Set default value for
7131 new to_get_tib_address field.
7132 * target.h (target_ops): New field to_get_tib_address.
7133 (target_get_tib_address): New macro.
7134 * windows-nat.c (thread_info): Add thread_local_base field.
7135 (windows_add_thread): Add tlb argument of type 'void *'.
7136 (fake_create_process): Adapt windows_add_thread call.
7137 (get_windows_debug_event): Idem.
7138 (windows_get_tib_address): New function.
7139 (init_windows_ops): Set to_get_tib_address field
7140 to remote_get_tib_address.
7141 (_initialize_windows_nat): Replace info_w32_cmdlist
7142 initialization by a call to init_w32_command_list.
7143 (info_w32_command, info_w32_cmdlist): Removed from here...
7144 to windows-tdep.c file.
7145 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 7146 (init_w32_command_list): New external function
711e434b
PM
7147 declaration.
7148 * windows-tdep.c: Add several headers.
7149 (info_w32_cmdlist): to here, made global.
7150 (thread_information_32): New struct.
7151 (thread_information_64): New struct.
7152 (TIB_NAME): New char array.
7153 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7154 (maint_display_all_tib): New static variable.
7155 (windows_get_tlb_type): New function.
7156 (tlb_value_read, tlb_value_write): New functions.
7157 (tlb_value_funcs): New static struct.
7158 (tlb_make_value): New function.
7159 (display_one_tib): New function.
7160 (display_tib): New function.
7161 (show_maint_show_all_tib):New function.
7162 (info_w32_command): Moved from windows-nat.c.
7163 (init_w32_command_list): New function.
7164 (_initialize_windows_tdep): New function.
7165 New "maint set/show show-all-tib" command
7166 New "$_tlb" internal variable.
7167
cae3f17b
JB
71682010-04-16 Joel Brobecker <brobecker@adacore.com>
7169
7170 * tui/tui-regs.c (tui_display_register): Add comment about
7171 a couple of casts.
7172 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7173
2ce6d6bf
SS
71742010-04-15 Stan Shebs <stan@codesourcery.com>
7175
7176 * frame.c: Include tracepoint.h.
7177 (get_current_frame): Allow a trace frame to be an alternate source
7178 of stack frame data.
7179 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7180 it won't succeed.
7181
7e559477
PA
71822010-04-15 Pedro Alves <pedro@codesourcery.com>
7183
7184 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7185 flags.
7186 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7187
3f7b2faa
DE
71882010-04-15 Doug Evans <dje@google.com>
7189
fa33c3cd
DE
7190 * NEWS: Add entry for python program space support.
7191 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7192 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7193 (py-progspace.o): New rule.
7194 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7195 function.
7196 (find_pretty_printer_from_progspace): New function.
7197 (find_pretty_printer_from_gdb): New function.
7198 (find_pretty_printer): Rewrite.
7199 * python/py-progspace.c: New file.
7200 * python/python-internal.h (program_space): Add forward decl.
7201 (pspace_to_pspace_object, pspy_get_printers): Declare.
7202 (gdbpy_initialize_pspace): Declare.
7203 * python/python.c: #include "progspace.h".
7204 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7205 (_initialize_python): Call gdbpy_initialize_pspace.
7206 (GdbMethods): Add current_progspace, progspaces.
7207
3f7b2faa
DE
7208 Add -s option to source command.
7209 * NEWS: Document new option.
7210 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7211 Delete from_tty and cleanupp args. Split filep arg into file and
7212 full_pathp. New arg search_path.
7213 (source_script_from_stream): New function.
7214 (source_script_with_search): New function.
7215 (source_script): Rewrite.
7216 (source_command): Parse "-s" option.
7217 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7218 * python/python.c (source_python_script): Make file arg a const char *.
7219 Don't call fclose, leave for caller.
7220 * python/python.h (source_python_script): Update.
7221
a86988f2
PA
72222010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7223 Pedro Alves <pedro@codesourcery.com>
7224
7225 Avoid rereading shared libraries that haven't changed.
7226
7227 * solib.c (free_so_symbols): New function, from ...
7228 (free_so): ... here. Call it.
7229 (solib_read_symbols): Don't warn here if symbols have already been
7230 loaded.
7231 (solib_add): Warn here instead, if a pattern was specified.
7232 (reload_shared_libraries_1): New.
7233 (reload_shared_libraries): Rewrite to not fetch the library list.
7234
e6d9b9c2
DE
72352010-04-14 Doug Evans <dje@google.com>
7236
589390d6 7237 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
7238 concatenating string to search path.
7239
516ba659
PA
72402010-04-14 Pedro Alves <pedro@codesourcery.com>
7241
7242 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7243 * objfiles.c (gdb_bfd_close_or_warn): New.
7244 * corelow.c: Include objfiles.h
7245 (core_close): Use gdb_bfd_close_or_warn.
7246 * elfread.c (build_id_verify): Ditto.
7247 * exec.c (exec_close, exec_close_1): Ditto.
7248
048d532d
PA
72492010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7250 Pedro Alves <pedro@codesourcery.com>
7251
7252 Group errors for many missing shared libraries.
7253
7254 * solist.h (struct so_list): Remove from_tty.
7255 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7256 (solib_map_sections): Take so_list argument. Return 0 if we
7257 failed to open a BFD. Add target sections here.
7258 (symbol_add_stub): Delete.
7259 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7260 not from_tty copied from the so_list. Don't warn a second time
7261 for a missing library.
7262 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7263 add to the section table here. Print out a single warning for all
7264 missing libraries.
7265 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7266 flags.
7267
044c0f87
PM
72682010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7269
7270 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7271 error/warning messages. Capitalize and use complete sentences.
7272 (blpy_block_syms_iternext): Likewise.
7273 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7274 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7275 (frame_info_to_frame_object, frapy_read_var)
7276 (gdbpy_frame_stop_reason_string): Likewise.
7277 * python/py-lazy-string.c (stpy_convert_to_value)
7278 (gdbpy_create_lazy_string_object): Likewise.
7279 * python/py-objfile.c (objfpy_set_printers): Likewise.
7280 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7281 * python/python.c (parameter_to_python): Likewise.
7282 * python/py-type.c (typy_range, typy_target): Likewise.
7283 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7284 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7285
7286
79f283fe
PM
72872010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7288
7289 PR python/11381
7290
7291 * python/py-prettyprint.c (pretty_print_one_value): Test for
7292 Py_None.
7293 (print_string_repr): Test for Py_None. Set flags accordingly.
7294 Return value depending on return type.
7295 (print_children): Take a value indicating whether data was printed
7296 before this function was called. Alter output accordingly.
7297 (apply_val_pretty_printer): Capture return value from
7298 print_string_repr and pass to print_children.
7299
4ac5d44e
MK
73002010-04-13 Mark Kettenis <kettenis@gnu.org>
7301
e1caee70 7302 PR corefiles/11481
4ac5d44e
MK
7303 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7304 register note sections.
7305 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7306 New variables.
7307 (i386_linux_init_abi): Install list of supported register note
7308 sections that matches the target description.
7309
ad91cd99
PA
73102010-04-13 Pedro Alves <pedro@codesourcery.com>
7311
7312 * remote.c (remote_get_noisy_reply): Don't error out on empty
7313 replies.
7314 (remote_start_remote): Update and merge tracepoints and trace
7315 state variables as long as the target supports tracepoints.
7316 (remote_trace_init): Fix prototype.
7317 (remote_download_trace_state_variable): Validate reply.
7318 (remote_trace_set_readonly_regions): Fix prototype.
7319 (remote_trace_start): Fix prototype. Check for empty reply.
7320 (remote_get_trace_status): Small cleanup.
7321 (remote_trace_stop): Fix prototype. Check for empty reply.
7322 (remote_trace_find): Check for empty reply.
7323 (remote_save_trace_data): Validate reply.
7324 (remote_set_disconnected_tracing): Check for empty reply, and
7325 validate reply.
7326 (remote_set_circular_trace_buffer): Ditto.
7327
ae3bccd4
PM
73282010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7329
7330 Suppress unused value warning during compilation.
7331 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7332 calls to void.
7333 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7334
523136f2
SS
73352010-04-12 Stan Shebs <stan@codesourcery.com>
7336
7337 * tracepoint.c (tfile_xfer_partial): Check read result.
7338
0d18d720
MF
73392010-04-12 Mike Frysinger <vapier@gentoo.org>
7340
7341 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7342 * remote-sim.c (gdbsim_files_info): Likewise.
7343
3b273a55
RE
73442010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7345
7346 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7347 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7348 variable.
7349 (fetch_vfp_registers): New function to fetch VFP registers.
7350 (store_vfp_registers): New function to store VFP registers.
7351 (arm_linux_fetch_inferior_registers): Add support for VFP
7352 registers.
7353 (arm_linux_store_inferior_registers): Likewise.
7354 (arm_linux_read_description): Likewise.
7355 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7356 until we need it.
7357
778c7095
L
73582010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7359
7360 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7361 tdep.
7362 (amd64_collect_xstateregset): Likewise.
7363
2114d44c
SS
73642010-04-09 Stan Shebs <stan@codesourcery.com>
7365
87290684
SS
7366 * tracepoint.c (trace_status_mi): Report frames created.
7367
2114d44c
SS
7368 * tracepoint.c (trace_dump_command): Include default-collect
7369 expressions.
7370
86da934b
UW
73712010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7372
7373 * symtab.c (find_function_start_sal): Never return SAL pointing
7374 before function start address, even if line info is missing.
7375
2d6e647a 73762010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
7377
7378 * NEWS: Mention tracepoints support.
7379
a97153c7
PA
73802010-04-09 Pedro Alves <pedro@codesourcery.com>
7381
7382 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7383 circular trace buffer statuses.
7384
7a66d603
JK
73852010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7386
7387 * config/djgpp/fnchange.lst: Fix typo in translations for
7388 symbol-without-target_section.exp and symbol-without-target_section.c.
7389
2566ad2d
PA
73902010-04-09 Pedro Alves <pedro@codesourcery.com>
7391
7392 * breakpoint.c (condition_command): Pass condition expression to
7393 set_breakpoint_condition stripped from breakpoint number.
7394
adc36818
PM
73952010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7396 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 7397 Tom Tromey <tromey@redhat.com>
adc36818
PM
7398
7399 * breakpoint.c (condition_command): Simplify. Move condition
7400 setting code to ...
7401 (set_breakpoint_condition): ... here. New function.
7402 * breakpoint.h (set_breakpoint_condition): Declare.
7403 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7404 (SUBDIR_PYTHON_SRCS): Likewise.
7405 (py-breakpoint.o): New rule.
7406 * python/py-breakpoint.c: New file.
7407 * python/python-internal.h (gdbpy_breakpoints)
7408 (gdbpy_initialize_breakpoints): Declare.
7409 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7410
219f2f23
PA
74112010-04-09 Pedro Alves <pedro@codesourcery.com>
7412
7413 * regformats/regdat.sh: Include server.h. Don't include
7414 regcache.h.
7415
33da3f1c
SS
74162010-04-08 Stan Shebs <stan@codesourcery.com>
7417 Pedro Alves <pedro@codesourcery.com>
7418
7419 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7420 and circular_buffer.
7421 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7422 * tracepoint.c (trace_status_command): Display target's status for
7423 disconnected tracing and circular buffer.
7424 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7425 query for non-disconnected-tracing case, remove the stop_tracing
7426 call.
7427 (tfile_open): Clear disconnected and circular buffer status.
7428 (trace_save): Save disconnected and circular buffer status.
7429 (parse_trace_status): Parse disconnected and circular buffer status,
7430 also recognize disconnected as a stop reason.
7431 * remote.c (remote_set_disconnected_tracing): Only set
7432 QTDisconnected if the remote end supports disconnected tracing.
7433 Warn otherwise, if trying to enable disconnected tracing.
7434 * infcmd.c (detach_command): Update disconnect_tracing call.
7435 * cli/cli-cmds.c (quit_command): Ditto.
7436
4e4d8374
L
74372010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7438
7439 * i387-tdep.c (i387_collect_xsave): Replace abort with
7440 internal_error.
7441
ad443146
SS
74422010-04-08 Stan Shebs <stan@codesourcery.com>
7443
7444 * breakpoint.c (default_collect_info): New function.
7445 (breakpoints_info): Call it.
7446 (maintenance_info_breakpoints): Ditto.
7447 (tracepoints_info): Ditto.
7448
40936b0d
L
74492010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7450
7451 * i387-tdep.c (i387_collect_xsave): Re-indent.
7452
3a13a53b
L
74532010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7454
7455 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7456 if HAVE_PTRACE_GETFPXREGS is defined.
7457 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7458 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7459
7460 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7461 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7462 if .reg-xfp section doesn't exist.
7463 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7464
7465 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7466
7467 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7468 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7469 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7470 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7471 (i386_gdbarch_init): Update comments.
7472 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7473
7474 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7475
7476 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7477
7478 * features/Makefile (i386/i386-mmx-expedite): New.
7479 (i386/i386-mmx-linux-expedite): Likewise.
7480 ($(outdir)/i386/i386-mmx.dat): Likewise.
7481 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7482
7483 * features/i386/i386-mmx-linux.c: New.
7484 * features/i386/i386-mmx-linux.xml: Likewise.
7485 * features/i386/i386-mmx.c: Likewise.
7486 * features/i386/i386-mmx.xml: Likewise.
7487 * regformats/i386/i386-mmx-linux.dat: Likewise.
7488 * regformats/i386/i386-mmx.dat: Likewise.
7489
7490 * features/Makefile (WHICH): Add i386/i386-mmx and
7491 i386/i386-mmx-linux.
7492
08001717
DE
74932010-04-08 Doug Evans <dje@google.com>
7494
7495 * source.c (openp): Skip $cdir in PATH.
7496
fff5cc64
PM
74972010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7498
7499 PR python/11417
fff5cc64 7500 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
7501 a NULL address.
7502 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7503 address and a zero length.
fff5cc64 7504
f8c4f480
HZ
75052010-04-08 Hui Zhu <teawater@gmail.com>
7506
7507 * i386-tdep.c (i386_process_record): Add support for insn
7508 rdtsc.
7509
eb5cda86
DE
75102010-04-07 Doug Evans <dje@google.com>
7511
7512 * python/python.c (source_python_script): Use ensure_python_env
7513 to prepare environment for script.
7514
a055a187
L
75152010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7516
7517 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7518 <sys/uio.h> and "i386-xstate.h".
7519 (PTRACE_GETREGSET): New.
7520 (PTRACE_SETREGSET): Likewise.
7521 (have_ptrace_getregset): Likewise.
7522 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7523 registers.
7524 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7525 registers.
7526 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7527 (amd64_linux_store_inferior_registers): Likewise.
7528 (amd64_linux_read_description): Check and enable AVX target
7529 descriptions.
7530
7531 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7532 and "features/i386/amd64-avx-linux.c".
7533 (amd64_linux_regset_sections): New.
7534 (amd64_linux_core_read_description): Check and enable AVX
7535 target description.
7536 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7537 set_gdbarch_core_regset_sections.
7538 (_initialize_amd64_linux_tdep): Call
7539 initialize_tdesc_amd64_avx_linux.
7540
7541 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7542 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7543 (tdesc_amd64_avx_linux): New.
7544 (amd64_linux_update_xstateregset): Likewise.
7545
7546 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7547 (amd64_ymm_names): New.
7548 (amd64_ymmh_names): Likewise.
7549 (amd64_register_name): Likewise.
7550 (amd64_supply_xstateregset): Likewise.
7551 (amd64_collect_xstateregset): Likewise.
7552 (amd64_supply_xsave): Likewise.
7553 (amd64_collect_xsave): Likewise.
7554 (AMD64_NUM_REGS): Removed.
7555 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7556 %xmmN if AVX is available.
7557 (amd64_pseudo_register_name): Support pseudo YMM registers.
7558 (amd64_regset_from_core_section): Support .reg-xstate section.
7559 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7560 and ymm0h_regnum. Call set_gdbarch_register_name.
7561 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7562
7563 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7564 AMD64_YMM15H_REGNUM.
7565 (AMD64_NUM_REGS): New.
7566 (amd64_supply_xsave): Likewise.
7567 (amd64_collect_xsave): Likewise.
7568 (amd64_register_name): Removed.
7569 (amd64_register_type): Likewise.
7570
31aeac78
L
75712010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7572
7573 * i387-tdep.c: Include "i386-xstate.h".
7574 (XSAVE_XSTATE_BV_ADDR): New.
7575 (xsave_avxh_offset): Likewise.
7576 (XSAVE_AVXH_ADDR): Likewise.
7577 (i387_supply_xsave): Likewise.
7578 (i387_collect_xsave): Likewise.
7579
7580 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7581 (I387_YMM0H_REGNUM): Likewise.
7582 (I387_YMMENDH_REGNUM): Likewise.
7583 (i387_supply_xsave): Likewise.
7584 (i387_collect_xsave): Likewise.
7585
c131fcee
L
75862010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7587
7588 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7589 <sys/uio.h> and "i386-xstate.h".
7590 (PTRACE_GETREGSET): New.
7591 (PTRACE_SETREGSET): Likewise.
7592 (fetch_xstateregs): Likewise.
7593 (store_xstateregs): Likewise.
7594 (GETXSTATEREGS_SUPPLIES): Likewise.
7595 (regmap): Include 8 upper YMM registers.
7596 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7597 state.
7598 (i386_linux_store_inferior_registers): Likewise.
7599 (i386_linux_read_description): Check and enable AVX target
7600 descriptions.
7601
7602 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7603 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7604 (i386_linux_regset_sections): Add ".reg-xstate".
7605 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7606 (i386_linux_core_read_xcr0): New.
7607 (i386_linux_core_read_description): Check and enable AVX target
7608 description.
7609 (i386_linux_init_abi): Set xsave_xcr0_offset.
7610 (_initialize_i386_linux_tdep): Call
7611 initialize_tdesc_i386_avx_linux.
7612
7613 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7614 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7615 (i386_linux_core_read_xcr0): New.
7616 (tdesc_i386_avx_linux): Likewise.
7617 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7618
7619 * i386-tdep.c: Include "i386-xstate.h" and
7620 "features/i386/i386-avx.c".
7621 (i386_ymm_names): New.
7622 (i386_ymmh_names): Likewise.
7623 (i386_ymmh_regnum_p): Likewise.
7624 (i386_ymm_regnum_p): Likewise.
7625 (i386_xmm_regnum_p): Likewise.
7626 (i386_register_name): Likewise.
7627 (i386_ymm_type): Likewise.
7628 (i386_supply_xstateregset): Likewise.
7629 (i386_collect_xstateregset): Likewise.
7630 (i386_sse_regnum_p): Removed.
7631 (i386_pseudo_register_name): Support pseudo YMM registers.
7632 (i386_pseudo_register_type): Likewise.
7633 (i386_pseudo_register_read): Likewise.
7634 (i386_pseudo_register_write): Likewise.
7635 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7636 %xmmN if AVX is available.
7637 (i386_regset_from_core_section): Support .reg-xstate section.
7638 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7639 (i386_process_record): Replace i386_sse_regnum_p with
7640 i386_xmm_regnum_p.
7641 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7642 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 7643 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
7644 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7645 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7646 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7647 Set ymm0_regnum.
7648 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7649
7650 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7651 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7652 i386_ymm_type.
7653 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7654 (I386_AVX_NUM_REGS): New.
7655 (i386_xmm_regnum_p): Likewise.
7656 (i386_ymm_regnum_p): Likewise.
7657 (i386_ymmh_regnum_p): Likewise.
7658
7659 * common/i386-xstate.h: New.
7660
98adf0f3
L
76612010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7662
7663 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7664
7665 * features/Makefile (WHICH): Add i386/i386-avx,
7666 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7667 (i386/i386-avx-expedite): New.
7668 (i386/i386-avx-linux-expedite): Likewise.
7669 (i386/x86-64-avx-expedite):Likewise.
7670 (i386/x86-64-avx-linux-expedite): Likewise.
7671 ($(outdir)/i386/i386-avx.dat): New dependency.
7672 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7673 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7674 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7675
7676 * features/i386/32bit-avx.xml: New.
7677 * features/i386/64bit-avx.xml: Likewise.
7678 * features/i386/i386-avx-linux.c: Likewise.
7679 * features/i386/i386-avx-linux.xml: Likewise.
7680 * features/i386/i386-avx.c: Likewise.
7681 * features/i386/i386-avx.xml: Likewise.
7682 * features/i386/x86-64-avx-linux.c: Likewise.
7683 * features/i386/x86-64-avx-linux.xml: Likewise.
7684 * features/i386/x86-64-avx.c: Likewise.
7685 * features/i386/x86-64-avx.xml: Likewise.
7686 * regformats/i386/i386-avx-linux.dat: Likewise.
7687 * regformats/i386/i386-avx.dat: Likewise.
7688 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7689 * regformats/i386/x86-64-avx.dat: Likewise.
7690
05159abe
DE
76912010-04-07 Doug Evans <dje@google.com>
7692
7693 * top.c (source_file_name): Make const char *.
7694 * top.h (source_file_name): Update.
7695 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7696 const char *.
7697 (script_from_file): Change `file' arg to const char *.
7698 * cli/cli-script.h (script_from_file): Update.
7699
96e39866
DE
77002010-04-06 Doug Evans <dje@google.com>
7701
7702 * cli/cli-cmds.c (source_command): Run cleanups.
7703
3149d8c1
SS
77042010-04-06 Stan Shebs <stan@codesourcery.com>
7705
7706 * defs.h (char_ptr): Move typedef here from...
7707 * ada-lang.c (char_ptr): Remove.
7708 * charset.c (char_ptr): Remove.
7709 * tracepoint.h (struct uploaded_string): Remove.
7710 (struct uploaded_tp): Use vectors for string arrays.
7711 * tracepoint.c (trace_save): Use vectors of actions.
7712 (parse_tracepoint_definition): Ditto.
7713 (get_uploaded_tp): Clear vectors.
7714 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7715 (next_cmd): Change to an int.
7716 (read_next_cmd): Use vector of command strings.
7717
4cc23ede
DE
77182010-04-06 Doug Evans <dje@google.com>
7719
7720 * top.h (source_script, cd_command): Delete.
7721 * main.c: #include "cli/cli-cmds.h"
7722
bd333fb7
KB
77232010-04-06 Kevin Buettner <kevinb@redhat.com>
7724
7725 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7726 type in bytes, not bits.
7727
ec8a089a
PM
77282010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7729
7730 * stabsread.c (define_symbol): Add support for char
7731 and string constants.
7732
2244ba2e
PM
77332010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7734
7735 Remove remaining "%ll" uses.
7736 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7737 hex_string call.
7738 * rs6000-nat.c (rs6000_ptrace64): Idem.
7739 * solib-pa64.c (pa64_current_sos): Idem.
7740 * solib-spu.c (spu_current_sos): Idem.
7741 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7742 plongest call.
7743 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7744 phex (VAR, 8) call.
7745 * sh64-tdep.c (sh64_show_media_regs): Idem.
7746
fce3c1f0
SS
77472010-04-05 Stan Shebs <stan@codesourcery.com>
7748
7749 * tracepoint.c: Include gdbcore.h.
7750 (tfile_xfer_partial): Return partial results, also try reading
7751 from executable.
7752 (tfile_has_all_memory): New function.
7753 (init_tfile_ops): Use it.
7754
626ea16d
SDJ
77552010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7756
7757 PR gdb/10736:
7758 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7759 the changes in data-directory.
7760 (init_sysinfo): Reload the syscall XML file if the data-directory
7761 has changed.
7762
1f7ccab2
JK
77632010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7764
7765 Code cleanup.
7766 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7767
d77f58be
SS
77682010-04-04 Stan Shebs <stan@codesourcery.com>
7769 Nathan Sidwell <nathan@codesourcery.com>
7770
7771 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7772 breakpoints printed.
7773 (is_hardware_watchpoint): Make argument const.
7774 (is_watchpoint): Ditto.
7775 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7776 use it everywhere.
7777 (breakpoints_info): Pass NULL to breakpoint_1.
7778 (maintenance_info_breakpoints): Ditto.
7779 (watchpoints_info): New function.
7780 (tracepoints_info): Use breakpoint_1 filter.
7781 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7782 (_initialize_breakpoint): Make "info watchpoints" its own command.
7783 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7784 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7785
af54718e
SS
77862010-04-04 Stan Shebs <stan@codesourcery.com>
7787
7788 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7789
74d1f91e
JK
77902010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7791
7792 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7793 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7794
91d91ceb
JK
77952010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7796
7797 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7798 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7799
60531b24
JK
78002010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7801
7802 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7803 code form.
7804
a3c4230a
HZ
78052010-04-02 Hui Zhu <teawater@gmail.com>
7806
7807 * i386-tdep.c (OT_DQUAD): New enum.
7808 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7809 SSE3, SSSE3 and SSE4.
7810
b15758fe
HZ
78112010-04-02 Hui Zhu <teawater@gmail.com>
7812
7813 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7814 "*addr = 0".
7815
afd02f27
PA
78162010-04-02 Pedro Alves <pedro@codesourcery.com>
7817
7818 * tracepoint.c (trace_dump_actions): New, factored out from
7819 trace_dump_command, and adjusted to recurse into while-stepping's
7820 action list.
7821 (trace_dump_command): Use it.
7822
5cea2a26
PA
78232010-04-02 Pedro Alves <pedro@codesourcery.com>
7824
7825 * breakpoint.h (struct counted_command_line): Moved definition to
7826 breakpoint.c, and forward declare.
7827 (breakpoint_commands): Declare.
7828 * breakpoint.c (struct counted_command_line): Moved here.
7829 (breakpoint_commands): New.
7830 * tracepoint.c (encode_actions): Use breakpoint_commands.
7831 * remote.c (remote_download_tracepoint): Ditto.
7832
7c47795c
L
78332010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7834
7835 * remote.c (remote_parse_stop_reply): Use hex_string instead
7836 of phex_nz for error.
7837
fff87407
SS
78382010-04-01 Stan Shebs <stan@codesourcery.com>
7839 Nathan Sidwell <nathan@codesourcery.com>
7840
7841 * tracepoint.h (enum actionline_type): Remove.
7842 (validate_actionline): Change return to void.
7843 * tracepoint.c (report_agent_reqs_errors): New function.
7844 (validate_actionline): Call it, change return to void, report errors
7845 more consistently.
7846 (collect_symbol): Call report_agent_reqs_errors.
7847 (encode_actions_1): Ditto.
7848 (encode_actions): Don't expect a result from validate_actionline.
7849
615bcdef
SS
78502010-04-01 Stan Shebs <stan@codesourcery.com>
7851
7852 * tracepoint.c (trace_start_command): Confirm if trace is running.
7853 (trace_stop_command): Error if trace not running.
7854
fe01d668
L
78552010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7856
7857 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7858 (AMD64_NUM_LOWER_BYTE_REGS): New.
7859 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7860 (amd64_pseudo_register_write): Likewise.
7861 (amd64_init_abi): Set num_byte_regs to 20.
7862
86b17b60
PA
78632010-04-01 Pedro Alves <pedro@codesourcery.com>
7864
7865 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7866 (prev_breakpoint_count): New.
7867 (set_breakpoint_count): Adjust.
7868 (rbreak_start_breakpoint_count): New.
7869 (start_rbreak_breakpoints): Adjust.
7870 (end_rbreak_breakpoints): Adjust.
7871 (struct commands_info) <arg>: New field.
7872 (do_map_commands_command): Tweak output to include breakpoint spec
7873 range.
7874 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7875 ARG was empty on entry. Set INFO's arg.
7876 (create_breakpoint): Adjust.
7877
7878 * NEWS: Clarify `commands' changes.
7879
2c58c0a9
PA
78802010-04-01 Pedro Alves <pedro@codesourcery.com>
7881
7882 * tracepoint.c: Include stack.h.
7883 (struct add_local_symbols_data): New.
7884 (do_collect_symbol): New.
7885 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7886 iterate_over_block_local_vars.
7887 * stack.c (print_block_frame_locals): Rewrite as ...
7888 (iterate_over_block_locals): ... this. Take a callback function
7889 pointer and generic data pointer, and call that instead of
7890 print_variable_and_value.
7891 (struct print_variable_and_value_data): New.
7892 (do_print_variable_and_value): New.
7893 (iterate_over_block_local_vars): New, abstracted out from
7894 print_frame_local_vars.
7895 (print_frame_local_vars): Rewrite using
7896 iterate_over_block_local_vars.
7897 (iterate_over_block_arg_vars): New, abstracted out from
7898 print_frame_arg_vars.
7899 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7900 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7901 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7902
d476da0e
RE
79032010-03-31 Richard Earnshaw <rearnsha@arm.com>
7904
7905 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7906 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7907 PC register.
7908
8072405b
JK
79092010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7910
7911 Fix crash on reading wrong function declaration DWARF.
7912 * dwarf2read.c (read_subroutine_type): New variable void_type.
7913 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7914 more close to their use.
7915
8bf6485c
SS
79162010-03-31 Stan Shebs <stan@codesourcery.com>
7917
7918 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7919 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7920 * tracepoint.c (save_trace_state_variables): New function.
7921 * tracepoint.h (save_trace_state_variables): Declare it.
7922
2ae2a0b7
PM
79232010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7924
1a161f72 7925 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7926
86ffb506
KS
79272010-03-30 Keith Seitz <keiths@redhat.com>
7928
7929 * c-typeprint.c (c_type_print_args): Don't print "void"
7930 for java, regardless of whether it is TYPE_PROTOTYPED.
7931 Use the passed-in language instead of current_language.
7932 (c_type_print_varspec_suffix): Use current_language instead
7933 of assuming language_c.
7934 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7935 any return type specifier from the physname.
7936
956c2c8b
PA
79372010-03-30 Pedro Alves <pedro@codesourcery.com>
7938
7939 * tui/tui-interp.c (tui_is_toplevel): New.
7940 (tui_init): Set it.
7941 (tui_allowed_p): New.
7942 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7943 enabling it.
7944 * tui/tui.h (tui_allowed_p): Declare.
7945
98e5a990
TT
79462010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7947
7948 * serial.h: Include winsock2.h before windows.h.
7949
c8d5aac9
L
79502010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7951
7952 * NEWS: Mention xmlRegisters= in qSupported packet.
7953
7954 * i386-tdep.c: Include "remote.h".
7955 (_initialize_i386_tdep): Call register_remote_support_xml.
7956
7957 * remote.c (remote_support_xml): New.
7958 (register_remote_support_xml): Likewise.
7959 (remote_query_supported_append): Likewise.
7960 (remote_query_supported): Support remote_support_xml.
7961
7962 * remote.h (register_remote_support_xml): New.
7963
76a2b958
SS
79642010-03-29 Stan Shebs <stan@codesourcery.com>
7965
42e08e69
SS
7966 * tracepoint.c (trace_find_line_command): Remove dead code.
7967
409873ef
SS
7968 * tracepoint.h (struct uploaded_string): New struct.
7969 (struct uploaded_tp): New fields for source strings.
7970 * breakpoint.c (this_utp, next_cmd): New globals.
7971 (read_uploaded_action): New function.
7972 (create_tracepoint_from_upload): Fill in more parts
7973 of a tracepoint.
7974 * tracepoint.c (encode_source_string): New function.
7975 (trace_save): Write out source strings, fix error checks.
7976 (parse_tracepoint_definition): Add source string parsing.
7977 * remote.c (PACKET_TracepointSource): New packet type.
7978 (remote_download_command_source): New function.
7979 (remote_download_tracepoint): Download source pieces also.
7980 (_initialize_remote): Add packet config command.
7981
a0405854
SS
7982 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7983 expression handler.
7984
76a2b958
SS
7985 * tracepoint.c (start_tracing): Check tracepoints before sending
7986 commands to target, don't start if all tracepoints disabled.
7987
d350db38
PA
79882010-03-28 Pedro Alves <pedro@codesourcery.com>
7989
12f2d601 7990 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7991
8b9b7ef8
SS
79922010-03-26 Stan Shebs <stan@codesourcery.com>
7993
7994 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7995
9766ced4
SS
79962010-03-26 Tom Tromey <tromey@redhat.com>
7997
7998 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7999
059acae7
UW
80002010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8001
8002 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8003 (skip_prologue_sal): Remove local definition.
8004 (resolve_sal_pc): Remove now unnecessary code.
8005 * linespec.c (minsym_found): Call skip_prologue_sal.
8006 * symtab.c (find_function_start_pc): Remove.
8007 (find_function_start_sal): Extract prologue skipping into ...
8008 (skip_prologue_sal): ... this new function. Handle code both
8009 with and without debug info. Respect SAL's explicit_pc and
8010 explicit_line flags. Inline old find_function_start_pc.
8011 * symtab.h (find_function_start_pc): Remove.
8012 (skip_prologue_sal): Add prototype.
8013
4a811a97
UW
80142010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8015
8016 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8017 for DW_TAG_imported_module children.
8018
907af001
UW
80192010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8020
8021 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8022 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8023 * completer.c (add_struct_fields): Fix inverted logic.
8024
dde2d684
UW
80252010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8026
8027 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8028
a609a0c8
PA
80292010-03-26 Pedro Alves <pedro@codesourcery.com>
8030
8031 * tracepoint.c (current_trace_status): Don't make sure error_desc
8032 is non-NULL here.
8033 (parse_trace_status): Release a previous error_desc string, and
8034 set it to NULL by default. If stop reason is tracepoint_error,
8035 make sure error_desc is not left NULL.
8036
610197fd
PA
80372010-03-26 Pedro Alves <pedro@codesourcery.com>
8038
8039 * tracepoint.c (trace_save): Remove X from tracepoint error
8040 description.
8041
99b5e152
PA
80422010-03-26 Pedro Alves <pedro@codesourcery.com>
8043
8044 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8045 the terror description. Don't expect an X prefix.
8046
6c28cbf2
SS
80472010-03-25 Stan Shebs <stan@codesourcery.com>
8048
8049 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8050 (struct trace_status): New field error_desc.
8051 * tracepoint.c (stop_reason_names): Add terror.
8052 (current_trace_status): Ensure non-NULL error description.
8053 (trace_status_command): Add error report.
8054 (trace_status_mi): Ditto.
8055 (trace_save): Add special case for error description.
8056 (parse_trace_status): Add case for errors.
8057
418835cc
KS
80582010-03-25 Keith Seitz <keiths@redhat.com>
8059
8060 * dwarf2read.c (read_subroutine_type): If the compilation unit
8061 language is Java, mark any formal parameter named "this" as
8062 artificial (GCC/43521).
8063 (dwarf2_name): Add special handling for Java constructors.
8064
aa7d318d
TT
80652010-03-25 Tom Tromey <tromey@redhat.com>
8066
8067 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8068 * infrun.c (handle_inferior_event): Change initialization of
8069 stop_stack_dummy.
8070 (handle_inferior_event): Change assignment to stop_stack_dummy.
8071 (normal_stop): Update use of stop_stack_dummy.
8072 (struct inferior_status) <stop_stack_dummy>: Change type.
8073 * inferior.h (stop_stack_dummy): Update.
8074 * infcmd.c (stop_stack_dummy): Change type.
8075 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8076 function.
8077 (call_function_by_hand): Call set_std_terminate_breakpoint.
8078 Rewrite std::terminate handling.
8079 * breakpoint.h (enum bptype) <bp_std_terminate,
8080 bp_std_terminate_master>: New.
8081 (enum stop_stack_kind): New.
8082 (struct bpstat_what) <call_dummy>: Change type.
8083 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8084 Declare.
8085 * breakpoint.c (create_std_terminate_master_breakpoint): New
8086 function.
8087 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8088 Call create_std_terminate_master_breakpoint.
8089 (print_it_typical): Handle new breakpoint kinds.
8090 (bpstat_stop_status): Handle bp_std_terminate_master.
8091 (bpstat_what): Correctly set call_dummy field. Handle
8092 bp_std_terminate_master and bp_std_terminate.
8093 (print_one_breakpoint_location): Update.
8094 (allocate_bp_location): Update.
8095 (set_std_terminate_breakpoint): New function.
8096 (delete_std_terminate_breakpoint): Likewise.
8097 (create_thread_event_breakpoint): Update.
8098 (delete_command): Update.
8099 (breakpoint_re_set_one): Update.
8100 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8101
82ccf5a5
JK
81022010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8103
8104 * symfile.c (build_section_addr_info_from_bfd): New.
8105 (build_section_addr_info_from_objfile): Base it on
8106 build_section_addr_info_from_bfd.
8107 (addrs_section_compar, addrs_section_sort): New.
8108 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8109 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8110 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8111
737c4c52
MS
81122010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8113
8d95cc3b 8114 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
8115 Remove unused local variable.
8116
95a42b64
TT
81172010-03-24 Tom Tromey <tromey@redhat.com>
8118
8119 PR breakpoints/9352:
8120 * NEWS: Mention changes to `commands' and `rbreak'.
8121 * symtab.c (do_end_rbreak_breakpoints): New function.
8122 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8123 end_rbreak_breakpoints.
8124 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8125 (set_breakpoint_count): Likewise. Clear last_was_multi.
8126 (multi_start, multi_end, last_was_multi): New globals.
8127 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8128 functions.
8129 (struct commands_info): New
8130 (do_map_commands_command): New function.
8131 (commands_command_1): New function.
8132 (commands_command): Use it.
8133 (commands_from_control_command): Likewise.
8134 (do_delete_breakpoint): New function.
8135 (delete_command): Use it.
8136 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8137 (do_map_disable_breakpoint): New function.
8138 (disable_command): Use it.
8139 (do_map_enable_breakpoint): New function.
8140 (enable_command): Use it.
8141 (enable_once_breakpoint): Add argument.
8142 (enable_once_command): Update.
8143 (enable_delete_breakpoint): Add argument.
8144 (enable_delete_command): Update.
8145 (break_command_really): Set last_was_multi when needed.
8146 (check_tracepoint_command): Fix formatting.
8147 (validate_commands_for_breakpoint): New function.
8148 (breakpoint_set_commands): Use it.
8149 (tracepoint_save_command): Update.
8150 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8151 Declare.
8152
9add0f1b
TT
81532010-03-24 Tom Tromey <tromey@redhat.com>
8154
8155 * breakpoint.h (struct counted_command_line): New struct.
8156 (struct breakpoint) <commands>: Change type.
8157 (struct bpstats) <commands>: Change type.
8158 <commands_left>: New field.
8159 * breakpoint.c (alloc_counted_command_line): New function.
8160 (incref_counted_command_line): Likewise.
8161 (decref_counted_command_line): Likewise.
8162 (do_cleanup_counted_command_line): Likewise.
8163 (make_cleanup_decref_counted_command_line): Likewise.
8164 (breakpoint_set_commands): Use decref_counted_command_line and
8165 alloc_counted_command_line.
8166 (commands_command): Don't error if breakpoint commands are
8167 executing.
8168 (commands_from_control_command): Likewise.
8169 (bpstat_free): Update.
8170 (bpstat_copy): Likewise.
8171 (bpstat_clear_actions): Likewise.
8172 (bpstat_do_actions_1): Likewise.
8173 (bpstat_stop_status): Likewise.
8174 (print_one_breakpoint_location): Likewise.
8175 (delete_breakpoint): Likewise.
8176 (bpstat_alloc): Initialize new field.
8177 (tracepoint_save_command): Update.
8178 * tracepoint.c (encode_actions): Update.
8179 (trace_dump_command): Update.
8180
a6c727b2
DJ
81812010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8182
8183 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8184 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8185 (read_structure_type): For RealView, set TYPE_STUB on structures with
8186 no byte size and no children.
8187 (read_subroutine_type): Mark functions as prototyped by default.
8188 * symtab.c (producer_is_realview): New function.
8189 * symtab.h (expand_line_sal): Fix declaration formatting.
8190 (producer_is_realview): Declare.
8191
0d39a070
DJ
81922010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8193
8194 * arm-tdep.c (skip_prologue_function): New function.
8195 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8196 (thumb_analyze_prologue): Document return value. Recognize more
8197 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8198 Add debug output.
8199 (arm_skip_prologue): Remove call dummy check. Check the prologue
8200 for non-GNU compilers.
8201 (arm_instruction_changes_pc): New function.
8202 (arm_analyze_prologue): New function, broken out from
8203 arm_scan_prologue. Recognize more ARM instructions and skippable
8204 calls. Update comments. Handle NULL cache. Return the address
8205 of the first unrecognized instruction. Do not skip past other
8206 instructions which change control flow. Add debug output.
8207 (arm_scan_prologue): Use arm_analyze_prologue.
8208 (ARM_PC_32): Delete.
8209 (shifted_reg_val): Simplify ARM_PC_32 check.
8210
4baf5cf4
VP
82112010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8212
8213 * tracepoint.c (tvariables_info_1): Actually compute
8214 the number of rows in the result.
8215
4a5e7a5b
PA
82162010-03-24 Pedro Alves <pedro@codesourcery.com>
8217
8218 * remote.c (crc32): Constify `buf' parameter.
8219 (remote_verify_memory): New, abstracted out from...
8220 (compare_sections_command): ... this. Remove hardcoded target
8221 checks.
8222 (init_remote_ops): Install remote_verify_memory.
8223 * target.c (target_verify_memory): New.
8224 * target.h (struct target_ops) <to_verify_memory>: New field.
8225 (target_verify_memory): Declare.
8226
011aacb0
VP
82272010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8228
8229 Implement -trace-save.
8230
8231 * mi-cmds.h (mi_cmds_trace_save): Declare.
8232 * mi-cmds.c (mi_cmds): Register -trace-save.
8233 * mi/mi-main.c (mi_cmd_trace_save): New.
8234 * remote.c (remote_save_trace_data): Take const parameter.
8235 * target.h (struct target_ops::to_save_trace_data): Take
8236 const parameter.
8237 * target.c (update_current_target): Adjust to the above.
8238 * tracepoint.c (trave_save): New, extracted from
8239 (trace_save_command): ...this.
8240 (tfile_trace_find): Remove message that is unnecessary now
8241 that 'tfind' reports found frame.
8242 * tracepoint.h (trace_save): Declare.
8243
f197e0f1
VP
82442010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8245
8246 Implement -trace-find.
8247
8248 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8249 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8250 * mi/mi-main.c (mi_cmd_trace_find): New.
8251 * target.h (struct target_ops): Document to_trace_find.
8252 * tracepoint.h (tfind_1): Declare.
8253 * tracepoint.c (finish_tfind_command): Rename to...
8254 (tfind_1): ...this.
8255 * remote.c (remote_trace_find): Return -1 if target say
8256 there's no frame. Improve error diagnostics.
8257
40e1c229
VP
82582010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8259
8260 -trace-define-variable and -trace-list-variables.
8261
8262 * tracepoint.c (create_trace_state_variable): Make
8263 private copy of name, as opposed to assuming the
8264 pointer lives forever.
8265 (tvariables_info_1): New.
8266 (tvariables_info): Use the above.
8267 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8268 Declare.
8269 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8270 and -trace-list-variables.
8271 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8272 (mi_cmd_trace_list_variables): New.
8273 * mi/mi-main.c (mi_cmd_trace_define_variable)
8274 (mi_cmd_trace_list_variables): New.
8275
9b4c786c
VP
82762010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8277
8278 Implement -break-passcount.
8279
8280 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8281 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8282 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8283
f224b49d
VP
82842010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8285
8286 -trace-start/-trace-end/-trace-status.
8287
8288 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8289 and -trace-stop.
8290 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8291 (mi_cmd_trace_stop): Declare.
8292 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8293 (mi_cmd_trace_stop): New.
8294 * tracepoint.c (start_tracing): New, extracted from...
8295 (trace_start_command): ...this.
8296 (trace_status_mi): New.
8297 * tracepoint.h (struct trace_status): Document
8298 stopping_tracepoint.
8299 (start_tracing, stop_tracing, trace_status_mi): Declare.
8300
6534d786
VP
83012010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8302
8303 Implement creating tracepoints with -break-insert.
8304
8305 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8306 to mean that tracepoint should be created.
8307
51661e93
VP
83082010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8309
8310 * breakpoint.c (check_no_tracepoint_commands): Use
8311 current spelling of 'teval'.
8312
a7bdde9e
VP
83132010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8314
8315 Unify actions and commands
8316
8317 * defs.h (read_command_lines, read_command_lines_1): New
8318 parameters validator and closure.
8319 * tracepoint.h (struct action_line): Remove.
8320 * breakpoint.h (struct breakpoint): Remove the 'actions'
8321 field.
8322 * defs.h (enum command_control_type): New value
8323 while_stepping_control.
8324 (struct command_line): Add comments.
8325 * breakpoint.c (breakoint_is_tracepoint): New.
8326 (breakpoint_set_commands): For tracepoints,
8327 verify the commands are permissible.
8328 (check_tracepoint_commands): New.
8329 (commands_command): Require that each new line is validated using
8330 check_tracepoint_command, if we set commands for a tracepoint.
8331 (create_tracepoint_from_upload): Likewise.
8332 (print_one_breakpoint_location): Remove the code to print
8333 actions specifically.
8334 (tracepoint_save_command): Relay to print_command_lines.
8335 * cli/cli-script.c (process_next_line): New parameters validator
8336 and closure. Handle 'while-stepping'. Call validator if not null.
8337 (read_command_lines, read_command_lines1): Likewise.
8338 (recurse_read_control_structure): New parameters validator and
8339 closure. Handle while_stepping_control.
8340 (print_command_lines): Handle while-stepping.
8341 (get_command_line, define_command, document_command): Adjust.
8342 * remote.c (remote_download_tracepoint): Adjust.
8343 * tracepoint.c (make_cleanup_free_actions, read_actions)
8344 (free_actions, do_free_actions_cleanup): Remove.
8345 (trace_actions_command): Use read_command_lines.
8346 (validate_actionline): Use error in one place.
8347 (encode_actions_1): New, extracted from...
8348 (encode_actions): ...this. Also use cleanups for exception
8349 safety.
8350 (trace_dump_command): Adjust.
8351 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8352 it's tracepoint.
8353
64e3cf3d
MF
83542010-03-23 Mike Frysinger <vapier@gentoo.org>
8355
8356 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8357
52e9fde8
SS
83582010-03-22 Stan Shebs <stan@codesourcery.com>
8359
8360 * value.c (value_static_field): Be lazy about the field's value.
8361
508ccb1f
TT
83622010-03-22 Reid Kleckner <reid@kleckner.net>
8363
8364 PR gdb/11094
8365 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8366 bp_jit_event.
8367 (disable_breakpoints_in_shlibs): Likewise.
8368
acebe513
UW
83692010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8370
8371 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8372 GCC 4.1 debug info generation (GCC PR c++/28460).
8373 (determine_prefix): Likewise.
8374
957b8b5a
DJ
83752010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8376
8377 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8378 get_current_arch.
8379 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8380
3b11a015
SS
83812010-03-19 Stan Shebs <stan@codesourcery.com>
8382
8383 * ax-gdb.c (gen_fetch): Handle bool.
8384 (gen_usual_unary): Ditto.
8385 (gen_cast): Ditto.
8386 (gen_equal): New function.
8387 (gen_less): New function.
8388 (gen_expr_binop_rest): Call them, also return integer type from
8389 logical operations.
8390 (gen_expr): Ditto.
8391
20781792
TT
83922010-03-19 Tom Tromey <tromey@redhat.com>
8393
8394 * jv-lang.c (jv_dynamics_objfile_data_key)
8395 (jv_type_objfile_data_key): New globals.
8396 (class_symtab): Move earlier.
8397 (jv_per_objfile_free): New function.
8398 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8399 parameter.
8400 Remove ancient #if 1.
8401 (add_class_symbol): Remove redundant declaration.
8402 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8403 (java_link_class_type): Mark as static. Update.
8404 (jv_clear_object_type): New function.
8405 (set_java_object_type): Likewise.
8406 (get_java_object_type): Use set_java_object_type.
8407 (is_object_type): Likewise.
8408 (_initialize_java_language): Register new objfile keys.
8409 (get_java_class_symtab): Add 'gdbarch' parameter.
8410 (add_class_symtab_symbol): Update.
8411 (type_from_class): Update.
8412
cf3e25ca
SS
84132010-03-19 Stan Shebs <stan@codesourcery.com>
8414
8d95cc3b 8415 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 8416
f1ae44c9 84172010-03-18 Joel Brobecker <brobecker@adacore.com>
8418
8419 GDB 7.1 released.
8420
4daf5ac0
SS
84212010-03-18 Stan Shebs <stan@codesourcery.com>
8422 Pedro Alves <pedro@codesourcery.com>
8423
8424 * target.h (struct target_ops): New method
8425 to_set_circular_trace_buffer.
8426 (target_set_circular_trace_buffer): New macro.
8427 * target.c (update_current_target): Add
8428 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8429 default behavior.
8430 * remote.c (remote_set_circular_trace_buffer): New function.
8431 (init_remote_ops): Add it to vector.
8432 * tracepoint.h (struct trace_status): New field traceframes_created,
8433 change buffer_size and buffer_free to int.
8434 * tracepoint.c (circular_trace_buffer): New global.
8435 (start_tracing): Send values of disconnected tracing and circular
8436 trace buffer settings.
8437 (set_circular_trace_buffer): New function.
8438 (parse_trace_state): Handle total space and frames created.
8439 (trace_status_command): Display total space and total frames
8440 created.
8441 (trace_save): Write out new status values.
8442 (parse_trace_status): Set traceframe_count, traceframes_created,
8443 buffer_free and buffer_size to -1 by default.
8444 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8445 * NEWS: Mention the circular trace buffer option.
8446
40c549d6
TT
84472010-03-18 Tom Tromey <tromey@redhat.com>
8448
8449 * infcmd.c (finish_command_continuation): Wrap print_return_value
8450 in TRY_CATCH.
8451
e8d05480
JB
84522010-03-18 Joel Brobecker <brobecker@adacore.com>
8453
8454 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8455 DIE has a name before creating the associated partial symbol.
8456 (read_func_scope): Emit a complaint if the subprogram does not
8457 have a name or when we can't extract the subprogram PC bounds.
8458
441b986a
UW
84592010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8460
8461 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8462 instead of selected frame architecture.
8463
4247603b
PA
84642010-03-18 Pedro Alves <pedro@codesourcery.com>
8465
8466 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8467 a valid selected thread, and that it is not running.
8468 (advance_command): Ditto.
8469 (finish_command): Ditto.
8470
400c6af0
SS
84712010-03-17 Stan Shebs <stan@codesourcery.com>
8472
3a96536b
SS
8473 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8474
573cda03
SS
8475 * infcall.c: Include tracepoint.h.
8476 (call_function_by_hand): Disallow calls in tfind mode.
8477 * infcmd.c: Include tracepoint.h.
8478 (ensure_not_tfind_mode): New function.
8479 (continue_1): Call it.
8480 (step_1) Ditto.
8481 (jump_command): Ditto.
8482 (signal_command): Ditto.
8483 (advance_command): Ditto.
8484 (until_command): Ditto.
8485 (finish_command): Ditto.
8486 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8487
400c6af0
SS
8488 * ax-gdb.h (struct axs_value): New field optimized_out.
8489 (gen_trace_for_var): Add gdbarch argument.
8490 * ax-gdb.c (gen_trace_static_fields): New function.
8491 (gen_traced_pop): Call it, add gdbarch argument.
8492 (gen_trace_for_expr): Update call to it.
8493 (gen_trace_for_var): Ditto, and report optimized-out variables.
8494 (gen_struct_ref_recursive): Check for optimized-out value.
8495 (gen_struct_elt_for_reference): Ditto.
8496 (gen_static_field): Pass gdbarch instead of expression, assume
8497 optimization if field not found.
8498 (gen_var_ref): Set the optimized_out flag.
8499 (gen_expr): Error on optimized-out variable.
8500 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8501 expressions, skip optimized-out variables with computed locations.
8502 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8503 erroring out if location expression missing.
8504 (loclist_tracepoint_var_ref): Don't error out here.
8505
a3b2a86b
TT
85062010-03-17 Tom Tromey <tromey@redhat.com>
8507
8508 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8509 DWARF data is available.
8510
38963c97
DJ
85112010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8512
8513 * symfile.c (generic_load): Reset breakpoints after loading.
8514
ddabfc73
TT
85152010-03-17 Tom Tromey <tromey@redhat.com>
8516
8517 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8518
d8c09fb5
JK
85192010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8520
8521 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8522 create_breakpoint call, adjust the parameters.
8523
bbb0eef6
JK
85242010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8525 Chandru <chandru@in.ibm.com>
8526
8527 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8528 * valarith.c (value_subscripted_rvalue): Suppress error if
8529 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8530
46956e39
HZ
85312010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8532
8533 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8534
b8d088ac
JB
85352010-03-16 Joel Brobecker <brobecker@adacore.com>
8536
8537 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8538 before doing the associated thread switch.
8539
322be962
DJ
85402010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8541
8542 * MAINTAINERS: Update my email address.
8543
8cdf0e15
VP
85442010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8545
8546 Simplify MI breakpoint setting.
8547
8548 * breakpoint.c (break_command_really): Make nonstatic and
8549 rename to...
8550 (create_breakpoint): ...this. Rename prior function by this name
8551 to...
8552 (create_breakpoint_sal): ...this.
8553 (create_breakpoints): Rename to...
8554 (create_breakpoints_sal): ...this.
8555 (set_breakpoint): Remove.
8556 * breakpoint.h: Adjust to above changes.
8557 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8558
b6e7192f
SS
85592010-03-15 Stan Shebs <stan@codesourcery.com>
8560
8561 * ax-gdb.c: Include cp-support.h.
8562 (find_field): Remove.
8563 (gen_primitive_field): New function.
8564 (gen_struct_ref_recursive): New function.
8565 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8566 of find_field.
8567 (gen_static_field): New function.
8568 (gen_struct_elt_for_reference): New.
8569 (gen_namespace_elt): New.
8570 (gen_maybe_namespace_elt): New.
8571 (gen_aggregate_elt_ref): New.
8572 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8573
1054b214
TT
85742010-03-15 Tom Tromey <tromey@redhat.com>
8575
8576 * dwarf2read.c (die_needs_namespace): Also return 0 for
8577 DW_TAG_subprogram.
8578
13387711
SW
85792010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8580
8581 PR c++/7936:
8582 * cp-support.h: Added char *declaration element to using_direct
8583 data struct.
8584 (cp_add_using): Added char *declaration argument.
8585 (cp_add_using_directive): Ditto.
8586 (cp_lookup_symbol_imports): made extern.
8587 * cp-namespace.c: Updated with the above changes.
8588 * dwarf2read.c (read_import_statement): Ditto.
8589 (read_namespace): Ditto.
8590 (read_import_statement): Support import declarations.
8591 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8592 declarations.
8593 Added support for 'declaration_only' search.
8594 (cp_lookup_symbol_namespace): Attempt to search for the name as
8595 is before consideration of imports.
8596 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8597 search at every block level search.
8598 Now takes language argument.
8599 (lookup_symbol_aux): Updated.
8600
6e31430b
TT
86012010-03-15 Tom Tromey <tromey@redhat.com>
8602
8603 * c-exp.y (name_not_typename): Add 'operator' clause.
8604
4dea3bb7 86052010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
8606
8607 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8608 * configure: Regenerate.
8609
4d9743af
JK
86102010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8611
8612 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8613 and ".sdynbss". Update the comment.
8614
f75150fe
JZ
86152010-03-15 Jie Zhang <jie@codesourcery.com>
8616
8617 * MAINTAINERS: Update my email address.
8618
3c13bc11
DJ
86192010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8620
8621 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8622
43484f03
DJ
86232010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8624
8625 * charset.c [USE_WIN32API]: Include <windows.h>.
8626 (_initialize_charset): Correct type of w32_host_default_charset.
8627
5f25d77d
PA
86282010-03-14 Pedro Alves <pedro@codesourcery.com>
8629
8630 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8631
1c809c68
TT
86322010-03-12 Tom Tromey <tromey@redhat.com>
8633
8634 PR c++/9708:
8635 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8636 in a lexical block does not need a namespace.
8637 (new_symbol) <DW_TAG_variable>: Put extern variables on
8638 list_in_scope in all cases.
8639
948103cf
SS
86402010-03-12 Stan Shebs <stan@codesourcery.com>
8641
8642 * ax-gdb.c (gen_expr): Add shift expressions.
8643 (gen_expr_binop_rest): Ditto.
8644
00ae8fef
SW
86452010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8646
8647 * buildsym.c (finish_block): Reset using_directives pointer
8648 after block initialization.
8649
9cad29ac
L
86502010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8651
8652 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8653 * i386-tdep.c (i386_word_names): Likewise.
8654
2f4d8875
PA
86552010-03-12 Pedro Alves <pedro@codesourcery.com>
8656
8657 * target.c (memory_xfer_partial): Don't use the stack cache if
8658 inspecting trace frames.
8659 * tracepoint.c (finish_tfind_command): Invalidate the target
8660 dcache.
8661
ccf26247
JK
86622010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8663
8664 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8665 for the PIC displacement, print also the displacement value.
8666 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8667
477c84a7
KB
86682010-03-10 Kevin Buettner <kevinb@redhat.com>
8669
8670 * remote-mips.c (close_ports, mips_initialize_cleanups)
8671 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8672 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8673 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8674 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8675 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8676 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8677 comments describing each of these functions.
8678 (mips_enter_debug, mips_exit_debug, common_open)
8679 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8680 blank line after the comment describing the function.
8681
01c30d6e
JK
86822010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8683
8684 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8685 parameter displacementp. Update comment.
8686 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8687 element exists. Return if svr4_exec_displacement was not successful.
8688 Update comment.
8689
09919ac2
JK
86902010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8691 Daniel Jacobowitz <dan@codesourcery.com>
8692
8693 * solib-svr4.c (read_program_header): Support type == -1 to read
8694 all program headers.
8695 (read_program_headers_from_bfd): New function.
8696 (svr4_static_exec_displacement): Remove and move the comment ...
8697 (svr4_exec_displacement): ... here. Remove variable found. New
8698 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8699 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8700 targets using read_program_headers_from_bfd. Remove the call of
8701 svr4_static_exec_displacement.
8702
d146bf1e
TT
87032010-03-10 Tom Tromey <tromey@redhat.com>
8704
8705 * dwarf2read.c (struct pubnames_header): Remove.
8706 (_PUBNAMES_HEADER): Remove.
8707 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8708 (struct aranges_header): Remove.
8709 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8710 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8711 (PUBNAMES_SECTION): Remove.
8712 (ARANGES_SECTION): Remove.
8713 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8714 (dwarf2_build_psymtabs): Remove dead code.
8715 (dwarf2_build_psymtabs_easy): Remove.
8716
be391dca
TT
87172010-03-10 Tom Tromey <tromey@redhat.com>
8718
8719 * elfread.c (elf_symfile_read): Don't call
8720 dwarf2_build_frame_info.
8721 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8722 (struct dwarf2_per_objfile) <objfile>: New field.
8723 (dwarf2_has_info): Now idempotent. Set objfile field.
8724 (dwarf2_read_section): Check and set readin field. Call
8725 posix_madvise.
8726 (dwarf2_build_psymtabs): Don't read all sections.
8727 (read_type_comp_unit_head): Read types section.
8728 (create_debug_types_hash_table): Likewise.
8729 (init_cu_die_reader): Add asserts.
8730 (process_type_comp_unit): Add assert.
8731 (dwarf2_build_psymtabs_hard): Read info section.
8732 (load_partial_comp_unit): Add assert.
8733 (create_all_comp_units): Read info section.
8734 (load_full_comp_unit): Likewise.
8735 (dwarf2_ranges_read): Read ranges section.
8736 (dwarf2_record_block_ranges): Add assert.
8737 (dwarf2_read_abbrevs): Read abbrev section.
8738 (read_indirect_string): Read str section.
8739 (dwarf_decode_line_header): Read line section.
8740 (read_signatured_type_at_offset): Read types section.
8741 (dwarf_decode_macros): Read macinfo section.
8742 (dwarf2_symbol_mark_computed): Read loc section.
8743 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8744 dwarf2_build_frame_info.
8745 (dwarf2_build_frame_info): Unconditionally set
8746 dwarf2_frame_objfile_data on the objfile.
8747 * configure.ac: Check for posix_madvise.
8748 * config.in, configure: Rebuild.
8749
ccefe4c4
TT
87502010-03-10 Tom Tromey <tromey@redhat.com>
8751
e38df1d0
TT
8752 * xcoffread.c (xcoff_start_psymtab): Update.
8753 (xcoff_end_psymtab): Update.
8754 * psymtab.c (allocate_psymtab): Remove dead code.
8755 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8756 void*.
8757 * mdebugread.c (parse_partial_symbols): Update.
8758 (new_psymtab): Likewise.
8759 * dwarf2read.c (process_psymtab_comp_unit): Update.
8760 (psymtab_to_symtab_1): Update.
8761 * dbxread.c (start_psymtab): Update.
8762 (end_psymtab): Likewise.
8763
be391dca 87642010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8765
ccefe4c4
TT
8766 * xcoffread.c: Include psymtab.h.
8767 (xcoff_sym_fns): Update.
8768 * symtab.h (struct partial_symbol): Remove.
8769 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8770 (struct partial_symtab): Remove.
8771 (PSYMTAB_TO_SYMTAB): Remove.
8772 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8773 (find_pc_sect_psymtab): Remove.
8774 (find_pc_sect_symtab_via_partial): Declare.
8775 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8776 (find_main_psymtab): Remove.
8777 (find_main_filename): Declare.
8778 (fixup_psymbol_section): Remove.
8779 (fixup_section): Declare.
8780 * symtab.c: Include psymtab.h.
8781 (lookup_symtab): Use lookup_symtab method.
8782 (lookup_partial_symtab): Remove.
8783 (find_pc_sect_psymtab_closer): Remove.
8784 (find_pc_sect_psymtab): Remove.
8785 (find_pc_sect_symtab_via_partial): New function.
8786 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8787 (fixup_section): No longer static.
8788 (fixup_psymbol_section): Remove.
8789 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8790 (lookup_global_symbol_from_objfile): Likewise.
8791 (lookup_symbol_aux_psymtabs): Remove.
8792 (lookup_symbol_aux_quick): New function.
8793 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8794 (lookup_partial_symbol): Remove.
8795 (basic_lookup_transparent_type_quick): New function.
8796 (basic_lookup_transparent_type): Use it.
8797 (find_main_psymtab): Remove.
8798 (find_main_filename): New function.
8799 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8800 (find_line_symtab): Use expand_symtabs_with_filename method.
8801 (output_partial_symbol_filename): New function.
8802 (sources_info): Use map_partial_symbol_filenames.
8803 (struct search_symbols_data): New type.
8804 (search_symbols_file_matches): New function.
8805 (search_symbols_name_matches): Likewise.
8806 (search_symbols): Use expand_symtabs_matching method.
8807 (struct add_name_data): Rename from add_macro_name_data.
8808 (add_macro_name): Update.
8809 (add_partial_symbol_name): New function.
8810 (default_make_symbol_completion_list): Use
8811 map_partial_symbol_names.
8812 (struct add_partial_symbol_name): New type.
8813 (maybe_add_partial_symtab_filename): New function.
8814 (make_source_files_completion_list): Use
8815 map_partial_symbol_filenames.
8816 (expand_line_sal): Use expand_symtabs_with_filename method.
8817 * symmisc.c: Include psymtab.h.
8818 (print_objfile_statistics): Use print_stats method.
8819 (dump_objfile): Use dump method.
8820 (dump_psymtab, maintenance_print_psymbols)
8821 (maintenance_info_psymtabs, maintenance_check_symtabs)
8822 (extend_psymbol_list): Remove.
8823 * symfile.h (struct quick_symbol_functions): New struct.
8824 (struct sym_fns) <qf>: New field.
8825 (sort_pst_symbols): Remove.
8826 (increment_reading_symtab): Declare.
8827 * symfile.c: Include psymtab.h.
8828 (compare_psymbols, sort_pst_symbols): Remove.
8829 (psymtab_to_symtab): Remove.
8830 (increment_reading_symtab): New function.
8831 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8832 method.
8833 (set_initial_language): Use find_main_filename.
8834 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8835 (free_named_symtabs): Remove unused code.
8836 (start_psymtab_common, add_psymbol_to_bcache)
8837 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8838 Remove.
8839 * stack.c: Include psymtab.h, symfile.h.
8840 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8841 * source.h (psymtab_to_fullname): Don't declare.
8842 * source.c: Include psymtab.h.
8843 (select_source_symtab): Use find_last_source_symtab method.
8844 (forget_cached_source_info): Use forget_cached_source_info
8845 method.
8846 (find_and_open_source): No longer static.
8847 (psymtab_to_fullname): Remove.
8848 * somread.c: Include psymtab.h.
8849 (som_sym_fns): Update.
8850 * psympriv.h: New file.
8851 * psymtab.h: New file.
8852 * psymtab.c: New file.
8853 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8854 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8855 * objfiles.c: Include psymtab.h.
8856 (objfile_relocate1): Use relocate method.
8857 (objfile_has_partial_symbols): Use has_symbols method.
8858 * mipsread.c: Include psymtab.h.
8859 (ecoff_sym_fns): Update.
8860 * mi/mi-cmd-file.c: Include psymtab.h.
8861 (print_partial_file_name): New function.
8862 (mi_cmd_file_list_exec_source_files): Use
8863 map_partial_symbol_filenames.
8864 * mdebugread.c: Include psympriv.h.
8865 * machoread.c: Include psympriv.h.
8866 (macho_sym_fns): Update.
8867 * m2-exp.y (yylex): Use lookup_symtab.
8868 * elfread.c: Include psympriv.h.
8869 (elf_sym_fns): Update.
8870 * dwarf2read.c: Include psympriv.h.
8871 * dbxread.c: Include psympriv.h.
8872 (aout_sym_fns): Update.
8873 * cp-support.c: Include psymtab.h.
8874 (read_in_psymtabs): Remove.
8875 (make_symbol_overload_list_qualified): Use
8876 expand_symtabs_for_function method.
8877 * coffread.c: Include psympriv.h.
8878 (coff_sym_fns): Update.
8879 * blockframe.c: Include psymtab.h.
8880 (find_pc_partial_function): Use find_pc_sect_symtab method.
8881 * ada-lang.h (ada_update_initial_language): Update.
8882 * ada-lang.c: Include psymtab.h.
8883 (ada_update_initial_language): Remove 'main_pst' argument.
8884 (ada_lookup_partial_symbol): Remove.
8885 (struct ada_psym_data): New type.
8886 (ada_add_psyms): New function.
8887 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8888 (struct add_partial_datum): New type.
8889 (ada_add_partial_symbol_completions): New function.
8890 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8891 (ada_exception_support_info_sniffer): Update.
8892 * Makefile.in (SFILES): Add psymtab.c.
8893 (COMMON_OBS): Add psymtab.o.
8894 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8895
7d8500b7
PM
88962010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8897
8898 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8899
c0cc3a76
SW
89002010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8901
8902 PR C++/11236:
8903 * cp-namespace.c (cp_add_using): Deleted.
8904 (cp_add_using_directive): Use obstack allocations.
8905 Merged the function cp_add_using into this one.
8906 Added 'struct obstack *' argument.
8907 (cp_scan_for_anonymous_namespaces): Updated.
8908 * cp-support.h: Updated.
8909 * dwarf2read.c (read_import_statement): Updated.
8910 (read_namespace): Updated.
8911
452fa064
CF
89122010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8913
8914 * windows-nat.c (cygwin_conv_path): Remove old macro.
8915
60e1c644
PA
89162010-03-10 Pedro Alves <pedro@codesourcery.com>
8917
8918 * breakpoint.c (condition_command): Handle watchpoint conditions.
8919 (is_hardware_watchpoint): Add comment.
8920 (is_watchpoint): New.
8921 (update_watchpoint): Don't reparse the watchpoint's condition
8922 unless necessary.
8923 (WP_IGNORE): New.
8924 (watchpoint_check): Use it.
8925 (bpstat_check_watchpoint): Handle it.
8926 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8927 conditions in a frame where it makes sense.
8928 (watch_command_1): Store the innermost block of the condition
8929 expression.
8930 (delete_breakpoint): Delete the watchpoint condition expression.
8931 * breakpoint.h (struct bp_location) <cond>: Update comment.
8932 (struct breakpoint): New field `cond_exp_valid_block'.
8933
af6b7be1
JB
89342010-03-09 Joel Brobecker <brobecker@adacore.com>
8935
8936 Adjust handling of Ada DIEs after dwarf2_physname patch.
8937 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8938
60c5c021
CF
89392010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8940 Pierre Muller <muller@ics.u-strasbg.fr>
8941
8942 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8943 from/to posix/win32.
8944 (windows_make_so): Use non-Cygwin 1.7 specific function.
8945 (windows_create_inferior): Make sure that cygallargs points to
8946 original args in non Cygwin 1.7. case.
8947
60a1502a
MS
89482010-03-09 Michael Snyder <msnyder@vmware.com>
8949
8950 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8951 after target_read_memory to get host byte order.
8952 (i386_process_record): Ditto.
8953
94af9270
KS
89542010-03-09 Keith Seitz <keiths@redhat.com>
8955
8956 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8957 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8958 print out const or volatile qualifiers, too.
8959 (c_type_print_args): Add parameters show_artificial and language.
8960 Skip artificial parameters when requested.
8961 Use the appropriate language printer.
8962 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8963 parameters and pass language_c.
8964 * dwarf2read.c (die_list): New file global.
8965 (struct partial_die_info): Update comments for name field.
8966 (pdi_needs_namespace): Renamed to ...
8967 (die_needs_namespace): ... this. Rewrite.
8968 (dwarf2_linkage_name): Remove.
8969 (add_partial_symbol): Do not predicate the call to
8970 partial_die_full_name based on pdi_needs_namespace.
8971 Remove call to cp_check_possible_namespace_symbols and associated
8972 outdated comments.
8973 (guess_structure_name): Do not inspect child subprogram DIEs.
8974 (dwarf2_fullname): Update comments.
8975 Use die_needs_namespace to assist in computing the name.
8976 (read_func_scope): Use dwarf2_name to get the DIE's name.
8977 Use dwarf2_physname to get the "linkage name" of the DIE.
8978 (dwarf2_add_member_field): Use dwarf2_physname instead of
8979 dwarf2_linkage_name.
8980 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8981 (determine_class): Remove.
8982 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8983 except Ada.
8984 (new_symbol): Unconditionally call dwarf2_name.
8985 Compute the "linkage name" using dwarf2_physname.
8986 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8987 When determining to scan for anonymous C++ namespaces, ignore
8988 the linkage name.
8989 (dwarf2_physname): New function.
8990 (dwarf2_full_name): Move content to new function and call
8991 that.
8992 (dwarf2_compute_name): "New" function.
8993 (_initialize_dwarf2_read): Initialize die_list.
8994 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8995 physname.
8996 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8997 without a demangled name.
8998 Print out type information for non-virtual methods.
c8d5aac9 8999 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 9000 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
9001 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9002 (decode_compound): Stop consuming at an open parenthesis.
9003 Keep template parameters.
9004 Keep any overload information.
9005 Keep keywords like "const".
9006 Remove paren_pointer.
9007 Move is_quoted check from set_flags to here.
9008 Remove #if 0 code from 2000. Ten years is long enough.
9009 (find_method): Before comparing symbol names, canonicalize the string
9010 from the user.
9011 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
9012 (find_method_overload_end): New function.
9013 (set_flags): Remove.
c8d5aac9
L
9014 (decode_compound): Assume that parentheses are matched.
9015 It's a lot easier.
94af9270
KS
9016 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9017 to cplus_demangle.
9018 * linespec.c (decode_line_1): Keep important keywords like
9019 "const" and "volatile".
9020 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9021 * typeprint.h (c_type_print_args): Add declaration.
9022 * ui-file.c (do_ui_file_obsavestring): New function.
9023 (ui_file_obsavestring): New function.
9024 * ui-file.h (ui_file_obsavestring): Add declaration.
9025 * valops.c (find_overload_match): Resolve the object to
9026 a non-pointer type.
9027 If the object is a data member, search the object for the member
9028 and return with staticp set.
9029 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9030 Do not attempt to extract a function name from non-function types.
9031 If the extracted function name and the original name are the same,
9032 we don't have a C++ method.
9033
8d95cc3b
PA
9034 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9035 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
9036
9037 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9038 and arguments from symbol lookups.
9039 * ax-gdb.c (gen_expr): Likewise.
9040 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9041 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9042 lookup_possible_namespace_symbol): Likewise.
9043 * cp-support.c (read_in_psymtabs): Likewise.
9044 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9045 * language.h (la_lookup_symbol_nonlocal): Likewise.
9046 * scm-valprint.c (scm_inferior_print): Likewise.
9047 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9048 * solib-svr.c (elf_lookup_lib): Likewise.
9049 * solib.c (show_auto_solib_add): Likewise.
9050 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9051 * symmisc.c (maintenance_check_symtabs): Likewise.
9052 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9053 lookup_symbol_aux_local, lookup_symbol_aux_block,
9054 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9055 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9056 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9057 basic_lookup_transparent_type, find_main_psymtab,
9058 lookup_block_symbol): Likewise.
9059 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9060 lookup_symbol_global, lookup_symbol_aux_block,
9061 lookup_symbol_partial_symbol, lookup_block_symbol,
9062 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9063
9cb74f47
PM
90642010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9065
9066 * python/python-internal.h: Include symtab.h.
9067
af6b7be1
JB
90682010-03-09 Joel Brobecker <brobecker@adacore.com>
9069 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
9070
9071 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9072 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9073 indentation.
9074
bad56014
TT
90752010-03-08 Tom Tromey <tromey@redhat.com>
9076
9077 * breakpoint.c (breakpoint_1): Add "QUIT".
9078
08105857
PA
90792010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9080 Pedro Alves <pedro@codesourcery.com>
9081
9082 * solib.c (solib_find): Replace extension if
9083 solib_symbols_extension is set in the target gdbarch.
9084 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9085 solib_symbols_extension to "sym".
9086 * gdbarch.sh (solib_symbols_extension): New variable.
9087 (pstring): New function.
9088 * gdbarch.h, gdbarch.c: Regenerate.
9089
7c953934
TT
90902010-03-08 Tom Tromey <tromey@redhat.com>
9091
9092 PR cli/9591:
9093 * NEWS: Update.
9094 * utils.c: Include main.h.
9095 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9096 (defaulted_query): Use default answer if `batch_flag'.
9097 * main.h (batch_flag): Declare.
9098 * main.c (batch_flag): New global.
9099 (captured_main): Remove 'batch'. Update.
9100
bbd2783e
KB
91012010-03-08 Kevin Buettner <kevinb@redhat.com>
9102
9103 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9104 and Kevin Buettner:
9105
9106 * remote-mips.c (rockhopper_ops): New target_ops struct.
9107 (MON_ROCKHOPPER): New mips_monitor_type.
9108 (read_hex_value): New function.
9109 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 9110 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
9111 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9112 (rockhopper_open): New function.
9113 (mips_wait): Read the PC, FP and SP fields as strings. Use
9114 read_hex_value to parse them and mips_set_register to commit them.
9115 (mips_set_register): New function.
9116 (mips_fetch_registers): Do not cast register value to "unsigned"
9117 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9118 (mips_store_registers): Use a 'T' packet to set registers when
9119 using MON_ROCKHOPPER.
9120 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9121 and expect the total to be printed before the entry address.
9122 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9123
566f3d17
KB
91242010-03-08 Kevin Buettner <kevinb@redhat.com>
9125
9126 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9127 Change return value to int. Store value fetched in location
9128 addressed by `val'. Use function's return value as success
9129 or failure indicator. Adjust all callers.
9130
9c8ee2ab 91312010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
9132
9133 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9134
7155de5a
HZ
91352010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9136 Hui Zhu <teawater@gmail.com>
9137
9138 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9139 tmp_to_stopped_data_address.
9140 (record_open): Reset tmp_to_stopped_by_watchpoint and
9141 tmp_to_stopped_data_address.
9142 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9143 to_stopped_data_address.
9144
580879fc
HZ
91452010-03-08 Hui Zhu <teawater@gmail.com>
9146
9147 * i386-tdep.c (i386_process_record): Initialize regnum.
9148
b0fcb67f
JK
91492010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9150
9151 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9152 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9153
08597104
JB
91542010-03-08 Joel Brobecker <brobecker@adacore.com>
9155
9156 Memory error when reading wrong core file.
9157 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9158 errors while reading the inferior memory, and return zero if
9159 an exception was raised.
9160
425b824a
MS
91612010-03-07 Michael Snyder <msnyder@vmware.com>
9162
ec6dbf37
MS
9163 * record.c (record_restore): Rename tmpu8 to rectype.
9164
648d0c8b
MS
9165 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9166 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9167
9168 (i386_record_push): Rename local tmpulongest to addr.
9169
9170 (i386_process_record): Rename local tmpulongest to addr.
9171
9172 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9173 addr64.
955db0c0
MS
9174
9175 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 9176
10760264
JB
91772010-03-07 Joel Brobecker <brobecker@adacore.com>
9178
9179 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 9180 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 9181
b3c613f2
CF
91822010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9183
9184 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9185 block. Define helper macros to reduce ifdefs in code.
9186 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9187 size. Call unadorned GetModuleFileNameEx rather than
9188 GetModuleFileNameEx*.
9189 (windows_make_so): Use __PMAX to denote maximum buffer size and
9190 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9191 appropriate.
9192 (get_image_name): Use __PMAX to denote maximum buffer size.
9193 (handle_load_dll): Likewise.
9194 (windows_pid_to_exec_file): Likewise.
9195 (windows_create_inferior): Add many accommodations for older Cygwin and
9196 non-Cygwin.
9197 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9198 __USEWIDE conditional.
9199 (bad_GetModuleFileNameExA): Likewise.
9200 (_initialize_loadable): Just use real function names without the dyn_
9201 part since they are defined earlier.
9202
f870a310
TT
92032010-03-05 Corinna Vinschen <vinschen@redhat.com>
9204 Tom Tromey <tromey@redhat.com>
9205
9206 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9207 (parse_escape): Likewise.
9208 * python/py-utils.c (unicode_to_target_string): Update.
9209 (unicode_to_target_python_string): Update.
9210 (target_string_to_unicode): Update.
9211 * printcmd.c (printf_command): Update.
9212 * p-exp.y (yylex): Update.
9213 * objc-exp.y (yylex): Update.
9214 * mi/mi-parse.c: Include charset.h.
9215 (mi_parse_escape): New function.
9216 (mi_parse_argv): Use it.
9217 * jv-exp.y (yylex): Update.
9218 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9219 function.
9220 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9221 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9222 * gdbarch.c: Rebuild.
9223 * gdbarch.h: Rebuild.
9224 * defs.h (parse_escape): Update.
9225 * cli/cli-setshow.c: Include arch-utils.h.
9226 (do_setshow_command): Update.
9227 * cli/cli-cmds.c (echo_command): Update.
9228 * charset.h (target_charset, target_wide_charset): Update.
9229 * charset.c: Include arch-utils.h.
9230 (target_charset_name): Default to "auto".
9231 (target_wide_charset_name): Likewise.
9232 (show_target_charset_name): Handle "auto".
9233 (show_target_wide_charset_name): Likewise.
9234 (be_le_arch): New global.
9235 (set_be_le_names): Add 'gdbarch' argument.
9236 (validate): Likewise. Don't call set_be_le_names.
9237 (set_charset_sfunc, set_host_charset_sfunc)
9238 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9239 Update.
9240 (target_charset): Add 'gdbarch' argument.
9241 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9242 (auto_target_charset_name): New global.
9243 (default_auto_charset, default_auto_wide_charset): New functions.
9244 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9245 for target charsets. Copy result of nl_langinfo. Use GetACP if
9246 USE_WIN32API.
9247 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9248 remove 'byte_order' argument. Update.
9249 (classify_type): Likewise.
9250 (c_emit_char): Update.
9251 (c_printchar): Update.
9252 (c_printstr): Update.
9253 (c_get_string): Update.
9254 (evaluate_subexp_c): Update.
9255 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9256 Declare.
9257 * python/python.c (gdbpy_target_charset): New function.
9258 (gdbpy_target_wide_charset): Likewise.
9259 (GdbMethods): Update.
9260 * NEWS: Update.
9261
4e7386b0
UW
92622010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9263
9264 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9265 off high address bits.
9266
aab48ede
UW
92672010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9268
9269 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9270 address as UnsignedLongLong, not LongLong.
9271
8eeafb51 92722010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 9273 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
9274
9275 * remote-mips.c (gdbthread.h): Include.
9276 (remote_mips_ptid): Declare.
9277 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9278 (common_open): Set inferior_ptid, add it as an inferior, and
9279 as a thread too. Delete FIXME comment regarding start_remote().
9280 (mips_close): Invoke generic_mourn_inferior().
9281 (mips_kill): Make sure that target_mourn_inferior is invoked.
9282 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9283 it's now invoked from mips_close().
9284 (mips_load): Don't null out inferior_ptid. Don't call
9285 clear_symtab_users().
9286 (mips_thread_alive, mips_pid_to_str): New functions.
9287 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9288 to_thread_alive and to_pid_to_str operations.
9289
ae411497
TT
92902010-03-04 Tom Tromey <tromey@redhat.com>
9291
9292 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9293 in DWARF 3 and later.
9294 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9295
0e0b460e
KS
92962010-03-04 Keith Seitz <keiths@redhat.com>
9297
9298 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9299 If the filename portion of the linespec was quoted, recheck the
9300 remainder for additional quoting.
9301 (locate_first_half): Skip over completer chars, too.
9302
1b93ff13
TT
93032010-03-04 Tom Tromey <tromey@redhat.com>
9304
9305 * printcmd.c (printf_command): Pass dummy argument to
9306 printf_filtered.
9307
fc36e839
DE
93082010-03-04 Doug Evans <dje@google.com>
9309
111f853c
DE
9310 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9311 unwound_fp.
9312
fc36e839
DE
9313 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9314
c7437ca6
PA
93152010-03-04 Pedro Alves <pedro@codesourcery.com>
9316
9317 * breakpoint.c (update_watchpoint): Create a sentinel location if
9318 the software watchpoint isn't watching any memory.
9319 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9320
58dadb1b
PA
93212010-03-04 Pedro Alves <pedro@codesourcery.com>
9322
9323 * utils.c (fputs_maybe_filtered): Check if there's already a top
9324 level interpreter before dereferencing it. If there isn't one,
9325 don't paginate either.
9326
50e98be4
DJ
93272010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9328
9329 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9330 the state right when single stepping.
9331 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9332 Get the next PC along with the instruction state.
9333 (thumb_get_next_pc): Remove.
9334 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9335
2e3ceee9
HZ
93362010-03-04 Hui Zhu <teawater@gmail.com>
9337
9338 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9339
390a8aca
PA
93402010-03-03 Pedro Alves <pedro@codesourcery.com>
9341
9342 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9343 top level interpreter is MI.
9344
9355b391
SS
93452010-03-03 Stan Shebs <stan@codesourcery.com>
9346
9347 * remote.c (remote_download_tracepoint): Iterate over locations.
9348 * tracepoint.c (validate_actionline): Ditto.
9349 (encode_actions): Add location argument.
9350 (trace_dump_command): Check all locations to see if stepping
9351 frame.
390a8aca 9352
8685c86f
L
93532010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9354 Eli Zaretskii <eliz@gnu.org>
9355
9356 * NEWS: Add X86 general purpose registers section.
9357
e8f781e2
TT
93582010-03-03 Tom Tromey <tromey@redhat.com>
9359
9360 PR mi/11098:
9361 * varobj.c (install_new_value): Handle case where new print_value
9362 is NULL.
9363
a0e0ef55
TT
93642010-03-03 Dainis Jonitis <jonitis@gmail.com>
9365
9366 PR gdb/11345:
9367 * printcmd.c (printf_command): Print end of format string using
9368 printf_filtered.
9369
a58d7472
TT
93702010-03-02 Tom Tromey <tromey@redhat.com>
9371
9372 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9373 * defs.h (read_command_lines_1): Add missing 'void'.
9374 * cli/cli-script.c (recurse_read_control_structure): Add missing
9375 'void'.
9376 (read_next_line): Likewise.
9377 (read_command_lines_1): Likewise.
9378
ce50d78b
UW
93792010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9380
9381 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9382 store backchain as part of prologue.
9383
7e9af34a
DJ
93842010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9385
9386 * progspace.c (update_address_spaces): Update inferior address spaces
9387 also.
9388
01637564
DE
93892010-03-02 Doug Evans <dje@google.com>
9390
9391 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9392 lowpc,highpc args to addrmap_set_empty.
9393
1ba53b71
L
93942010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9395
9396 * amd64-tdep.c (amd64_byte_names): New.
9397 (amd64_word_names): Likewise.
9398 (amd64_dword_names): Likewise.
9399 (amd64_pseudo_register_name): Likewise.
9400 (amd64_pseudo_register_read): Likewise.
9401 (amd64_pseudo_register_write): Likewise.
9402 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9403 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9404 set_gdbarch_pseudo_register_write and
9405 set_tdesc_pseudo_register_name. Don't call
9406 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9407
9408 * i386-tdep.c (i386_num_mmx_regs): Removed.
9409 (i386_num_pseudo_regs): Likewise.
9410 (i386_byte_names): New.
9411 (i386_word_names): Likewise.
9412 (i386_byte_regnum_p): Likewise.
9413 (i386_word_regnum_p): Likewise.
9414 (i386_mmx_regnum_p): Updated.
9415 (i386_pseudo_register_name): Make it global. Handle byte and
9416 word pseudo-registers.
9417 (i386_pseudo_register_read): Likewise.
9418 (i386_pseudo_register_write): Likewise.
9419 (i386_pseudo_register_type): Handle byte, word and dword
9420 pseudo-registers
9421 (i386_register_reggroup_p): Don't include pseudo
9422 registers, except for MXX, in any register groups. Don't
9423 include pseudo byte, word, dword registers in general_reggroup.
9424 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9425 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9426 pseudo-registers after word pseudo-registers. Call
9427 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9428
9429 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9430 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9431 eax_regnum.
9432 (i386_byte_regnum_p): New.
9433 (i386_word_regnum_p): Likewise.
9434 (i386_dword_regnum_p): Likewise.
9435 (i386_pseudo_register_name): Likewise.
9436 (i386_pseudo_register_read): Likewise.
9437 (i386_pseudo_register_write): Likewise.
9438
a6f5ef51
L
94392010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9440
9441 * target-descriptions.c (tdesc_type): Remove
9442 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9443 (tdesc_predefined_types): Likewise.
9444 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9445 if flag name is empty.
9446 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9447
9448 * features/i386/32bit-core.xml: Define i386_eflags.
9449 * features/i386/64bit-core.xml: Likewise.
9450
9451 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9452 * features/i386/64bit-sse.xml: Likewise.
9453
9454 * features/i386/amd64-linux.c: Regenerated.
9455 * features/i386/amd64.c: Likewise.
9456 * features/i386/i386-linux.c: Likewise.
9457 * features/i386/i386.c: Likewise.
9458
f5dff777
DJ
94592010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9460
9461 * gdbtypes.c (append_composite_type_field_raw): New.
9462 (append_composite_type_field_aligned): Use the new function.
9463 * gdbtypes.h (append_composite_type_field_raw): Declare.
9464 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9465 (struct tdesc_type_flag): New type.
9466 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9467 kind. Add size to u.u. Add u.f for flags.
9468 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9469 (tdesc_free_type): Likewise.
9470 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9471 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9472 (tdesc_add_bitfield, tdesc_add_flag): New.
9473 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9474 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9475 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9476 current_type. Add current_type_size and current_type_is_flags.
9477 (tdesc_start_union): Clear the new fields.
9478 (tdesc_start_struct, tdesc_start_flags): New.
9479 (tdesc_start_field): Handle struct fields, including bitfields.
9480 (field_attributes): Make type optional. Add start and end.
9481 (union_children): Rename to struct_union_children.
9482 (union_attributes): Rename to struct_union_attributes. Add optional
9483 size.
9484 (flags_attributes): New.
9485 (feature_children): Add struct and flags.
9486 * features/gdb-target.dtd: Add flags and struct to features.
9487 Make field type optional. Add field start and end.
9488
90884b2b
L
94892010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9490
9491 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9492 (amd64_linux_read_description): Likewise.
9493 (_initialize_amd64_linux_nat): Set to_read_description to
9494 amd64_linux_read_description.
9495
9496 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9497 (amd64_linux_register_name): Removed.
9498 (amd64_linux_register_type): Likewise.
9499 (amd64_linux_core_read_description): New.
9500 (amd64_linux_init_abi): Set target description to
9501 tdesc_amd64_linux if needed. Support orig_rax in target
9502 description. Don't call set_gdbarch_register_name nor
9503 set_gdbarch_register_type. Call
9504 set_gdbarch_core_read_description.
9505 (_initialize_amd64_linux_tdep): Call
9506 initialize_tdesc_amd64_linux.
9507
9508 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9509
9510 * amd64-tdep.c: Include "features/i386/amd64.c".
9511 (amd64_register_names): Removed.
9512 (amd64_register_name): Likewise.
9513 (amd64_register_type): Likewise.
9514 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 9515 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
9516 set_gdbarch_register_name nor set_gdbarch_register_type.
9517 (_initialize_amd64_tdep): New.
9518
9519 * i386-linux-nat.c (i386_linux_read_description): New.
9520 (_initialize_i386_linux_nat): Set to_read_description to
9521 i386_linux_read_description.
9522
9523 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9524 (i386_linux_register_name): Removed.
9525 (i386_linux_core_read_description): New.
9526 (i386_linux_read_description): Likewise.
9527 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9528 Set target description to tdesc_i386_linux if needed. Support
9529 orig_eax. Set register_reggroup_p. Call
9530 set_gdbarch_core_read_description.
9531 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9532
9533 * i386-linux-tdep.h (tdesc_i386_linux): New.
9534
9535 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9536 with I387_NUM_REGS.
9537
9538 * i386-tdep.c: Include "features/i386/i386.c".
9539 (i386_register_names): Make it const.
9540 (i386_mmx_names): Likewise.
9541 (i386_num_register_names): Removed.
9542 (i386_register_name): Likewise.
9543 (i386_eflags_type): Likewise.
9544 (i386_mxcsr_type): Likewise.
9545 (i386_sse_type): Likewise.
9546 (i386_register_type): Likewise.
9547 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9548 (i386_pseudo_register_name): New.
9549 (i386_pseudo_register_type): Likewise.
9550 (i386_mmx_type): Make it static.
9551 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9552 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9553 call set_gdbarch_register_name nor set_gdbarch_register_type.
9554 Set register_reggroup_p. Set target description to tdesc_i386
9555 if needed. Call set_tdesc_pseudo_register_type,
9556 set_tdesc_pseudo_register_name and tdesc_use_registers.
9557 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9558 initialize_tdesc_x86_64.
9559
9560 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9561 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9562 register_names, tdesc and register_reggroup_p.
9563 (I386_NUM_FREGS): Removed.
9564 (i386_eflags_type): Likewise.
9565 (i386_mxcsr_type): Likewise.
9566 (i386_mmx_type): Likewise.
9567 (i386_sse_type): Likewise.
9568 (i386_register_name): Likewise.
9569 (i386_regnum): Add I386_MXCSR_REGNUM.
9570 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9571
9572 * i387-tdep.h (I387_NUM_REGS): New.
9573
9574 * regformats/i386/i386-linux.dat: Generated.
9575 * regformats/i386/i386.dat: Likewise.
9576 * regformats/i386/amd64-linux.dat: Likewise.
9577 * regformats/i386/amd64.dat: Likewise.
9578
9579 * regformats/reg-i386-linux.dat: Removed.
9580 * regformats/reg-i386.dat: Likewise.
9581 * regformats/reg-x86-64-linux.dat: Likewise.
9582 * regformats/reg-x86-64.dat: Likewise.
9583
d0d0ab16
CV
95842010-03-01 Corinna Vinschen <vinschen@redhat.com>
9585
9586 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9587 cygwin_conv_path API rather than the deprecated
9588 cygwin_conv_to_full_posix_path.
9589 * windows-nat.c:
9590 (GetModuleFileNameExA): Undefine for Cygwin.
9591 (GetModuleFileNameExW): Define for Cygwin.
9592 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9593 Call GetModuleFileNameExW and convert path to POSIX using
9594 cygwin_conv_path.
9595 (windows_make_so): Always define p. Drop unused variable m.
9596 Don't use Win32 functions to check file existance, rather use
9597 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9598 Use canonicalize_file_name to get full path.
9599 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9600 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9601 use correct target buffer size in call to WideCharToMultiByte.
9602 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9603 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9604 (windows_create_inferior): Convert all paths and arguments to wchar_t
9605 and use CreateProcessW on Cygwin.
9606 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9607 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9608 (bad_GetModuleFileNameExW): Define for Cygwin.
9609 (_initialize_loadable): Load GetModuleFileNameExW into
9610 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9611
dc00d89f
PM
96122010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9613
9614 PR python/11036
9615 * python/py-frame.c (frapy_read_var): Add block argument and logic
9616 to cope with user provided blocks.
9617
0e095b7e
JK
96182010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9619
9620 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9621 New comment.
9622
2f9e05b4
CV
96232010-02-28 Corinna Vinschen <vinschen@redhat.com>
9624
9625 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9626 (COMMON_OBS): ... to here since it's used unconditionally.
9627 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9628 (SFILES): To here.
9629
eb195664
DD
96302010-02-26 David Daney <ddaney@caviumnetworks.com>
9631
9632 * mips-linux-tdep.c: Update struct sigframe comments.
9633 (SIGFRAME_CODE_OFFSET): Delete macro.
9634 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9635 this_frame's sp.
9636 (mips_linux_n32n64_sigframe_init): Same.
9637
97b0f3e2
KB
96382010-02-26 Kevin Buettner <kevinb@redhat.com>
9639
9640 * remote-mips.c (mips_load): Don't use pseudo-register when
9641 invalidating regcache.
9642
4069ebbe
DJ
96432010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9644
9645 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9646
05071a4d
PA
96472010-02-26 Pedro Alves <pedro@codesourcery.com>
9648
9649 * NEWS: Add "New targets" section, and mention ARM Symbian
9650 support.
9651
6063c216
UW
96522010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9653
9654 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9655 add ADDR_SIZE member.
9656 (allocate_piece_closure): Update.
9657 (copy_pieced_value_closure): Likewise.
9658 (dwarf2_evaluate_loc_desc): Likewise.
9659 (read_pieced_value): Use DWARF address size instead of
9660 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9661
5107b149 96622010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 9663 Tom Tromey <tromey@redhat.com>
5107b149
PM
9664
9665 * python/py-type.c (typy_lookup_typename): Add in block argument.
9666 If provided restrict lookup to specified blocks.
9667 (gdbpy_lookup_type): Likewise.
9668 (typy_lookup_type): Likewise.
9669
78664fa3 96702010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 9671
78664fa3
PA
9672 Symbian config
9673
9674 gdb/
9675 * arm-symbian-tdep.c: New.
9676 * configure.tgt (arm*-*-symbianelf*): New target.
9677 (*-*-symbianelf*): New OS.
9678 * osabi.c (gdb_osabi_names): Add Symbian.
9679 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9680 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9681 (ALLDEPFILES): Add arm-symbian-tdep.c.
9682
eb73e134
DJ
96832010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9684
9685 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9686
46ef47e5
PA
96872010-02-24 Pedro Alves <pedro@codesourcery.com>
9688
9689 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9690
f3e9a817 96912010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9692 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9693 Thiago Jung Bauermann <bauerman@br.ibm.com>
9694
9695 * python/python.c (_initialize_python): Call
9696 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9697 gdbpy_initialize_blocks.
9698 * python/python-internal.h: Declare struct symbol, block and
9699 symtab_and_line. Declare block_object_type and
9700 symbol_object_type
9701 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9702 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9703 (symbol_to_symbol_object, block_to_block_object)
9704 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9705 (gdbpy_initialize_blocks ): Declare.
9706 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9707 (frapy_select): Add methods.
9708 (frapy_read_var): Add symbol branch.
9709 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9710 py-block.
9711 (SUBDIR_PYTHON_SRCS): Likewise.
9712 (py-symbol.o): New rule.
9713 (py-symtab.o): Likewise.
9714 (py-block.o): Likewise.
9715 * python/py-symbol.c: New file.
9716 * python/py-symtab.c: Likewise.
9717 * python/py-block.c: Likewise.
9718
24291992
PA
97192010-02-24 Pedro Alves <pedro@codesourcery.com>
9720
9721 PR gdb/11321
9722
9723 * inferior.h (prepare_for_detach): Declare.
9724 (struct inferior) <detaching>: New field.
9725 * infrun.c (prepare_for_detach): New.
9726 (handle_inferior_event) <random signal>: Don't stop if detaching.
9727 * target.c (target_detach): Call prepare_for_detach.
9728
fc1cf338
PA
97292010-02-24 Pedro Alves <pedro@codesourcery.com>
9730
9731 Per-process displaced stepping queue.
9732
9733 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9734 (displaced_step_gdbarch, displaced_step_closure,
9735 (displaced_step_original, displaced_step_copy): Move globals to
9736 this...
9737 (struct displaced_step_inferior_state): ... new structure.
9738 (displaced_step_inferior_states): New global.
9739 (get_displaced_stepping_state, add_displaced_stepping_state)
9740 (remove_displaced_stepping_state, infrun_inferior_exit): New
9741 functions.
9742 (displaced_step_clear): Add displaced_step_inferior_state
9743 parameter, and adjust to handle it.
9744 (displaced_step_clear_cleanup): Parameter is now a
9745 displaced_step_inferior_state. Adjust.
9746 (displaced_step_prepare): Adjust.
9747 (displaced_step_fixup, displaced_step_fixup)
9748 (infrun_thread_ptid_changed, resume): Adjust.
9749 (init_wait_for_inferior): Don't call displaced_step_clear.
9750 (infrun_thread_stop_requested): Rewrite.
9751 (_initialize_infrun): Install infrun_inferior_exit as
9752 inferior_exit observer.
9753
0723dbf5
PA
97542010-02-24 Pedro Alves <pedro@codesourcery.com>
9755
9756 * inferior.h (ptid_match): Declare.
9757 * infrun.c (ptid_match): New.
9758 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9759 (handle_notification): Add debug output.
9760 * linux-nat.c (ptid_match): Delete.
9761
09de9781
DM
97622010-02-24 David S. Miller <davem@davemloft.net>
9763
9764 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9765 * syscalls/sparc-linux.xml: New.
9766 * syscalls/sparc64-linux.xml: New.
9767 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9768 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9769 (sparc32_linux_get_syscall_number): New function.
9770 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9771 syscall number fetcher.
9772 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9773 (sparc64_linux_get_syscall_number): New function.
9774 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9775 syscall number fetcher.
9776
a79b8f6e
VP
97772010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9778
9779 Multiexec MI
9780
9781 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9782 * inferior.c (add_inferior_silent): Notify inferior_added
9783 observer.
9784 (delete_inferior_1): Notify inferior_removed observer.
9785 (exit_inferior_1): Pass inferior, not pid, to observer.
9786 (inferior_appeared): Likewise.
9787 (add_inferior_with_spaces): New.
9788 (add_inferior_command): Use the above.
9789 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9790 Declare.
9791
9792 * inflow.c (inflow_inferior_exit): Likewise.
9793 * jit.c (jit_inferior_exit_hook): Likewise.
9794
9795 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9796 remove-inferior.
9797 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9798 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9799 (report_initial_inferior): New.
9800 (mi_inferior_removed): Register the above. Make sure
9801 inferior_added observer is called on the first inferior.
9802 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9803 inferior number, not pid.
9804 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9805 affected.
9806 * mi/mi-main.c (current_context): New.
9807 (proceed_thread_callback): Use typed closure.
9808 Proceed everything if pid is 0. Most implementation split into
9809 (proceed_thread): ... this.
9810 (run_one_inferior): New.
9811 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9812 Adjust for multiexec behaviour.
9813 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9814 (mi_cmd_execute): Handle the 'thread-group' option here.
9815 Do some extra checks.
9816 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9817 options.
9818 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9819
115d30f9
VP
98202010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9821
9822 Make -exec-run a proper MI commands.
9823
9824 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9825 * mi/mi-cmds.c (mi_cmds): Adjust.
9826 * mi/mi-main.c (mi_cmd_exec_run): New.
9827
06cd862c
PA
98282010-02-24 Pedro Alves <pedro@codesourcery.com>
9829 Stan Shebs <stan@codesourcery.com>
9830
9831 * tracepoint.h (set_traceframe_number)
9832 (cleanup_restore_current_traceframe): Declare.
9833 * tracepoint.c (set_traceframe_number): New.
9834 (struct current_traceframe_cleanup): New.
9835 (do_restore_current_traceframe_cleanup)
9836 (restore_current_traceframe_cleanup_dtor)
9837 (make_cleanup_restore_current_traceframe): New.
9838 * infrun.c: Include tracepoint.h.
9839 (fetch_inferior_event): Switch out and in of tfind mode.
9840
ab92d69b
PA
98412010-02-24 Pedro Alves <pedro@codesourcery.com>
9842
9843 * breakpoint.c (breakpoint_init_inferior): Also delete
9844 bp_shlib_event breakpoints.
9845 * solib-frv.c (enable_break): Remove call to
9846 remove_solib_event_breakpoints.
9847 * solib-svr4.c (enable_break): Ditto.
9848 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9849 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9850 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9851 * solib-spu.c (spu_enable_break): Ditto.
9852
e707a91d
PA
98532010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9854
9855 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9856
cfce2ea2
PA
98572010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9858
9859 * varobj.c (varobj_update): Avoid non-constants in initializers.
9860
05566b3b
TT
98612010-02-23 Tom Tromey <tromey@redhat.com>
9862
9863 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9864 handle big-endian values.
9865 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9866
85d721b8
PA
98672010-02-22 Pedro Alves <pedro@codesourcery.com>
9868
9869 PR9605
9870
9871 gdb/
9872 * breakpoint.c (insert_bp_location): If inserting the read
9873 watchpoint failed, fallback to an access watchpoint.
9874 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9875 if the value changed, if not watching the same memory for writes.
9876 (watchpoint_locations_match): Add comment.
9877 (update_global_location_list): Copy the location's watchpoint type.
9878 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9879 handle read watchpoints here.
9880 (i386_insert_watchpoint): Read watchpoints aren't supported.
9881 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9882 packets.
9883 * target.h (target_insert_watchpoint): Update description.
9884
48ea67a7
TT
98852010-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9888 * m2-typeprint.c (m2_print_type): Update.
9889 * gdbtypes.c (recursive_dump_type): Update.
9890 (copy_type_recursive): Update.
9891 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9892 (c_type_print_base): Update.
9893 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9894 Remove.
9895 (struct cplus_struct_type) <ntemplate_args>: Remove.
9896 <struct template_arg>: Remove.
9897 <is_dynamic>: Move earlier.
9898 (TYPE_TEMPLATE_ARGS): Remove.
9899 (TYPE_NTEMPLATE_ARGS): Remove.
9900 (TYPE_TEMPLATE_ARG): Remove.
9901
48e32051
TT
99022010-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 PR c++/8693, PR c++/9496:
9905 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9906 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9907 write_dollar_variable. Don't try to classify NAME tokens.
9908 (token_and_value): New type.
9909 (token_fifo, popping, name_obstack): New globals.
9910 (classify_name): New function.
9911 (classify_inner_name): Likewise.
9912 (yylex): Likewise.
9913 (VARIABLE): Now has type sval.
9914 (exp : VARIABLE): Call write_dollar_variable.
9915 (qualified_name): Use TYPENAME, not typebase. Add production for
9916 multiple "::" instances.
9917 (variable): Use name_not_typename.
9918 (qualified_type): Remove.
9919 (typebase): Update.
9920
672d9c23
JK
99212010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9922
9923 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9924 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9925 found by bfd_get_section_by_name.
9926 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9927
bfbf3774
JB
99282010-02-19 Joel Brobecker <brobecker@adacore.com>
9929
9930 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9931 7.0 section" into "Changes in 7.1".
9932
6756b09b 99332010-02-19 Joel Brobecker <brobecker@adacore.com>
9934
9935 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9936 * version.in: Bump version to 7.1.50.20100219-cvs.
9937
202b96c1
PA
99382010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9939
9940 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9941 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9942
de2e5182
TT
99432010-02-17 Tom Tromey <tromey@redhat.com>
9944
9945 * NEWS: Add Python API Improvements section.
9946
7280022e
DJ
99472010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9948
9949 * NEWS: Correct typo.
9950
6f451e5e
TT
99512010-02-17 Tom Tromey <tromey@redhat.com>
9952
9953 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9954
012836ea
JK
99552010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9956
9957 * symfile.c (build_section_addr_info_from_objfile): Include sections
9958 only if they are SEC_ALLOC or SEC_LOAD.
9959
d182d057
L
99602010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9961
9962 PR shlibs/11293
9963 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9964 of ULONGEST for address size.
9965
4eef138c
TT
99662010-02-17 Tom Tromey <tromey@redhat.com>
9967
9968 * NEWS: Add C++ improvements section.
9969
548a926a
UW
99702010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9971
9972 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9973 PyThreadState_Swap): Avoid "statement with no effect" warning.
9974
ad3a0e5b
JK
99752010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9978 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9979
243e2c5d 99802010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9981 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9982
9983 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9984 gdb_assert. Fix info->size for SIG prologue.
9985
275f2e57
DJ
99862010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9987
9988 * infcmd.c (show_inferior_tty_command): Check for NULL.
9989 Correct output message.
9990
791dfb64
DJ
99912010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9992
9993 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9994 FUNCTION contains parentheses. Improve removal of a trailing
9995 single quote.
9996
14d1346b
DJ
99972010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9998
9999 * gcore.c (do_bfd_delete_cleanup): New function.
10000 (gcore_command): Use it. Discard the cleanup after success.
10001 (gcore_copy_callback): Delete dead code.
10002
e76ab67f
DJ
100032010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10004
10005 * symfile.c (addr_info_make_relative): Always use
10006 find_lowest_section.
10007
71dee663
SW
100082010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10009
10010 * NEWS: Added entry for namespace fixes.
10011
a9854bd5
TT
100122010-02-15 Tom Tromey <tromey@redhat.com>
10013
10014 * dwarf2read.c (guess_structure_name): Allocate name on the
10015 objfile obstack.
10016
fd9e29b5
TT
100172010-02-15 Tom Tromey <tromey@redhat.com>
10018
10019 * c-typeprint.c (c_type_print_base): Reverse order of test.
10020
4e1fc9c9
JK
100212010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10022
10023 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10024 initialize it from ELF BFD. Extend the prelink condition by it.
10025
74164c56
JK
100262010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10027
10028 * defs.h (parse_pid_to_attach): New.
10029 * utils.c (parse_pid_to_attach): New.
10030 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10031 * gnu-nat.c (gnu_attach): Likewise.
10032 * nto-procfs.c (procfs_attach): Likewise.
10033 * procfs.c (procfs_attach): Likewise.
10034 * windows-nat.c (windows_attach): Likewise.
10035 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10036 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10037 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10038 check.
10039
bf6adea8
MM
100402010-02-14 Masaki Muranaka <monaka@monami-software.com>
10041
10042 * MAINTAINERS: Add myself for write after approval privileges.
10043
28f34a8f
JK
100442010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10045
10046 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10047 block.
10048
701ed6dc
JK
100492010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10050
10051 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10052 only if INFO_VERBOSE.
10053
e5829bee
MS
100542010-02-12 Tomas Holmberg <th@virtutech.com>
10055
10056 * mi/mi-main.c: Added the --reverse flag to the following MI
10057 commands: exec-continue, exec-finish, exec-next, exec-step,
10058 exec-next-instruction, exec-step-instruction. This is to
10059 support reverse execution over the MI interface to gdb.
10060
081dfbf7
PA
100612010-02-12 Pedro Alves <pedro@codesourcery.com>
10062
10063 * tracepoint.c (_initialize_tracepoint): Specify that the address
10064 range of `tfind outsize' is exclusive, and that the address range
10065 of `tfind range' is inclusive, in the commands' help strings.
10066
ecc13e53
JB
100672010-02-12 Joel Brobecker <brobecker@adacore.com>
10068
10069 Spurious "dll not found" error messages on x64-windows.
10070 * windows-nat.c: Add include of complaints.h.
10071 (handle_unload_dll): Change dll-not-found error into a complaint.
10072
15c3d785
PA
100732010-02-12 Pedro Alves <pedro@codesourcery.com>
10074
10075 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10076 bp_tracepoint and bp_fast_tracepoint, not
10077 bp_loc_software_breakpoint.
10078 (update_global_location_list): Tracepoints are never duplicates of
10079 anything.
10080
fd9b8c24
PA
100812010-02-12 Pedro Alves <pedro@codesourcery.com>
10082
10083 * breakpoint.c (break_command_really): Change return type to int.
10084 Return false if no breakpoint was created, true otherwise.
10085 (trace_command): Don't set the tracepoint count if no tracepoint
10086 was created.
10087 (ftrace_command): Ditto.
10088 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10089 created in the breakpoints table.
10090
5c0d192f
JK
100912010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10092 Ulrich Weigand <uweigand@de.ibm.com>
10093
10094 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10095
5d5b640e
PA
100962010-02-11 Pedro Alves <pedro@codesourcery.com>
10097
10098 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10099 the offset value isn't of integral type.
10100
e5a0a904
JK
101012010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10102
10103 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10104 New.
10105
be636754
PA
101062010-02-11 Pedro Alves <pedro@codesourcery.com>
10107
10108 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10109 non-subscriptable types.
10110 * valarith.c (binop_types_user_defined_p): New, abstracted out
10111 from ...
10112 (binop_user_defined_p): ... this.
10113 * value.h (binop_types_user_defined_p): Declare.
10114
10ef8d6a
PA
101152010-02-11 Pedro Alves <pedro@codesourcery.com>
10116
10117 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10118 Merge uploaded TSVs before merging uploaded tracepoints.
10119
b1028c8e
PA
101202010-02-11 Pedro Alves <pedro@codesourcery.com>
10121
10122 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10123
7a93fb82 101242010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 10125
7a93fb82
VP
10126 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10127 whitespace character after a dot in comment.
10128 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10129 Likewise.
10130 (list_args_or_locals): For the 'all' (that is
10131 -stack-list-variables) case, always output list of tuples.
10132 Output 'arg' field if variable is argument.
84d90c10 10133
92981e24
TT
101342010-02-10 Tom Tromey <tromey@redhat.com>
10135
10136 * parser-defs.h (parser_debug): Declare.
10137 * parse.c (_initialize_parse): Install "debug parser" set/show
10138 command.
10139 (parser_debug): New global.
10140 (show_parserdebug): New function.
10141 * c-exp.y (c_parse): Set yydebug.
10142
9fd3625f
L
101432010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10144
10145 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10146 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10147 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10148 i386_mxcsr.
10149 (tdesc_find_type): New.
10150 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10151 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10152
10153 * target-descriptions.h (tdesc_find_type): New.
10154
2fe842e5
MS
101552010-02-10 Michael Snyder <msnyder@vmware.com>
10156
10157 * gdb-gdb.py: Comment fix.
10158
f18b4cab
TG
101592010-02-09 Tristan Gingold <gingold@adacore.com>
10160
10161 * machoread.c (macho_symfile_relocate): New function.
10162 (macho_sym_fns): Use macho_symfile_relocate instead of
10163 default_symfile_relocate.
10164 (macho_oso_data): New type.
10165 (current_oso): New variable.
10166 (macho_add_oso_symfile): Do not compute section_addr_info, but
10167 instead set vma of sections.
10168 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10169 Set and clear current_oso.
10170
31dbc1c5
JB
101712010-02-09 Joel Brobecker <brobecker@adacore.com>
10172
10173 Wrong type description for tagged type parameter.
10174 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10175 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10176 reference to a tagged type.
10177
399f313b
TG
101782010-02-09 Tristan Gingold <gingold@adacore.com>
10179
10180 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10181 brothers of the parent.
10182
714f19d5
TT
101832010-02-08 Tom Tromey <tromey@redhat.com>
10184
10185 PR c++/8017:
10186 * value.h: Update.
10187 * valops.c (search_struct_field): Make 'name' const.
10188 (search_struct_method): Likewise.
10189 (find_method_list): Make 'method' const.
10190 (value_struct_elt): Make 'name' and 'err' const.
10191 (value_find_oload_method_list): Make 'method' const.
10192 (find_overload_match): Make 'name' const.
10193 * eval.c (evaluate_subexp_standard): New locals function,
10194 function_name.
10195 <OP_FUNCALL>: Handle OP_SCOPE specially.
10196
de0a0249
UW
101972010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10198
10199 * infrun.c (handle_inferior_event): Do not look up regcache
10200 for exited processes.
10201
8d95cc3b 102022010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
10203
10204 PR gdb/10728
10205 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 10206 warn if found, and assume length = 1.
83b10087 10207
99903ae3
CM
102082010-02-08 Chris Moller <cmoller@redhat.com>
10209
10210 PR gdb/9067
10211 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 10212 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 10213
e3e9f5a2
PA
102142010-02-08 Pedro Alves <pedro@codesourcery.com>
10215
10216 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10217 resumed LWPs as resumed.
10218 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10219 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10220 of throwing an internal error. If an LWP of a process we're not
10221 waiting for reports a signal, don't force collecting a SIGSTOP,
10222 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10223 go through all LWPs cancelling breakpoints in non-stop mode.
10224 (resume_stopped_resumed_lwps): New.
10225 (linux_nat_wait): Use it.
10226
46763423
L
102272010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10228
10229 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10230 i386/amd64 and i386/amd64-linux.
10231 (i386/i386-expedite): New.
10232 (i386/i386-linux-expedite): Likewise.
10233 (i386/amd64-expedite):Likewise.
10234 (i386/amd64-linux-expedite): Likewise.
10235 ($(outdir)/i386/i386-linux.dat): Likewise.
10236 ($(outdir)/i386/amd64.dat): Likewise.
10237 ($(outdir)/i386/amd64-linux.dat): Likewise.
10238
10239 * features/i386/32bit-core.xml: New.
10240 * features/i386/32bit-linux.xml: Likewise.
10241 * features/i386/32bit-sse.xml: Likewise.
10242 * features/i386/64bit-core.xml: Likewise.
10243 * features/i386/64bit-linux.xml: Likewise.
10244 * features/i386/64bit-sse.xml: Likewise.
10245 * features/i386/i386-linux.xml: Likewise.
10246 * features/i386/i386.xml: Likewise.
10247 * features/i386/amd64-linux.xml: Likewise.
10248 * features/i386/amd64.xml: Likewise.
10249 * features/i386/i386-linux.c: Likewise.
10250 * features/i386/i386.c: Likewise.
10251 * features/i386/amd64-linux.c: Likewise.
10252 * features/i386/amd64.c: Likewise.
10253
82856980
SW
102542010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10255
10256 PR c++/7935:
10257 * cp-support.h: Added char* alias element to using_direct data
10258 struct.
10259 (cp_add_using): Added char* alias argument.
10260 (cp_add_using_directive): Ditto.
10261 * cp-namespace.c: Updated with the above changes.
10262 (cp_lookup_symbol_imports): Check for aliases.
10263 * dwarf2read.c (read_import_statement): Figure out local alias
10264 for the import and pass it on to cp_add_using.
10265 (read_namespace): Pass alias argument to cp_add_using.
10266
d18b8b7a
HZ
102672010-02-05 Hui Zhu <teawater@gmail.com>
10268
10269 * defs.h (gdb_bfd_errmsg): New extern.
10270 * exec.c (exec_file_attach): Change bfd_errmsg to
10271 gdb_bfd_errmsg.
10272 * utils.c (AMBIGUOUS_MESS1): New macro.
10273 (AMBIGUOUS_MESS2): New macro.
10274 (gdb_bfd_errmsg): New function.
10275
48379de6
DE
102762010-02-04 Doug Evans <dje@google.com>
10277
10278 * solib-svr4.c (enable_break): Add comment.
10279
4ee73e90
AG
102802010-02-04 Anthony Green <green@moxielogic.com>
10281
10282 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10283 gracefully.
10284
1a334831
TT
102852010-02-04 Tom Tromey <tromey@redhat.com>
10286
10287 * valops.c (search_struct_field): Account for
10288 value_embedded_offset. Fix check for virtual base past the end of
10289 the object. Use value_copy when making a slice of the value.
10290
1180b2c8
L
102912010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10292
10293 PR tui/9622
10294 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10295 only if gdb_stdout is a tty.
10296
c3f08eb7
L
102972010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10298
10299 * target-descriptions.c: Include "osabi.h".
10300 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10301 OSABI.
10302
2d33f7b8
TG
103032010-02-04 Tristan Gingold <gingold@adacore.com>
10304
10305 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10306 (macho_symtab_read): Adjust calls to macho_add_oso.
10307 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10308 (macho_symfile_read): Adjust call to macho_oso_symfile.
10309 (macho_new_init): Move this function after declarations.
10310 (macho_symfile_init): Ditto.
10311 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10312 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10313
11334b82
VP
103142010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10315
10316 Include MI command in remotelog.
10317
10318 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10319
ff97be06
L
103202010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10321
10322 * remote.c (remote_state): Remove gdbarch.
10323 (init_remote_state): Don't set gdbarch.
10324 (remote_query_supported): Pass target_gdbarch instead of
10325 rs->gdbarch to gdbarch_qsupported.
10326
75cebea9
L
103272010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10328
10329 * gdbarch.sh: Add qsupported.
10330
10331 * gdbarch.c: Regenerated.
10332 * gdbarch.h: Likewise.
10333
10334 * remote.c (remote_state): Add gdbarch.
10335 (init_remote_state): Set gdbarch.
10336 (remote_query_supported): Support gdbarch_qsupported.
10337
c1dec97b
DJ
103382010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10339
10340 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10341 __FreeBSD_kernel_version.
10342
ac8035ab
TG
103432010-02-03 Tristan Gingold <gingold@adacore.com>
10344
10345 * symfile.h (struct sym_fns): Add sym_relocate field.
10346 (default_symfile_relocate): New prototype.
10347 (symfile_relocate_debug_section): First argument is now an objfile.
10348 * symfile.c (default_symfile_relocate): Rename from
10349 symfile_relocate_debug_section, first argument is now an objfile.
10350 (symfile_relocate_debug_section): New function.
10351 * coffread.c (coff_sym_fns): Set sym_relocate field.
10352 * somread.c (som_sym_fns): Ditto.
10353 * mipsread.c (ecoff_sym_fns): Ditto.
10354 * machoread.c (macho_sym_fns): Ditto.
10355 * elfread.c (elf_sym_fns): Ditto.
10356 * dwarf2read.c (dwarf2_read_section): Ditto.
10357 * xcoffread.c (xcoff_sym_fns): Ditto.
10358 * dbxread.c (aout_sym_fns): Ditto.
10359 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10360 (elfstab_build_psymtabs): Ditto.
10361
be52b756
L
103622010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10363
10364 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10365
9c3c02fd
TT
103662010-02-02 Tom Tromey <tromey@redhat.com>
10367
10368 * valops.c (value_cast_structs): Try downcasting using the RTTI
10369 type.
10370
f23f4c59
TT
103712010-02-02 Tom Tromey <tromey@redhat.com>
10372
10373 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10374 (gnuv2_baseclass_offset): Now static.
10375 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10376 * gnu-v2-abi.h: Remove.
10377
0cc2414c
TT
103782010-02-02 Tom Tromey <tromey@redhat.com>
10379
10380 * m2-typeprint.c (m2_record_fields): Don't use
10381 TYPE_DECLARED_TYPE.
10382 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10383 (struct main_type) <flag_declared_class>: New field.
10384 (struct cplus_struct_type) <declared_type>: Remove.
10385 <ntemplate_args>: Move earlier.
10386 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10387 (DECLARED_TYPE_TEMPLATE): Remove.
10388 (TYPE_DECLARED_TYPE): Remove.
10389 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10390 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10391 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10392 TYPE_DECLARED_TYPE.
10393
edf3d5f3
TT
103942010-02-02 Tom Tromey <tromey@redhat.com>
10395
10396 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10397 * valops.c (search_struct_field): Compute nbases after calling
10398 CHECK_TYPEDEF.
10399 (check_field): Call CHECK_TYPEDEF.
10400 * cp-valprint.c (cp_print_value): Pass correct address to
10401 baseclass_offset. Fix check for virtual base past the end of the
10402 object. Don't offset address passed to cp_print_value_fields or
10403 apply_val_pretty_printer.
10404 (cp_print_value_fields): Fix call to val_print.
10405 (cp_print_value_fields_rtti): New function.
10406 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10407 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10408 val_print.
10409 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10410 offset to address.
10411 * language.h (struct language_defn) <la_val_print>: Document.
10412 * c-lang.h (cp_print_value_fields_rtti): Declare.
10413
e4b7f41c
JK
104142010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10415
10416 PR libc/11214:
10417 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10418 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10419 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10420
7618e12b
DJ
104212010-02-01 Michael Matz <matz@suse.de>
10422 Daniel Jacobowitz <dan@codesourcery.com>
10423
e4b7f41c 10424 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
10425 functions use a frame pointer.
10426
b381ea14
JK
104272010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10428
10429 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10430 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10431 * config/djgpp/fnchange.lst: Add translations for
10432 symbol-without-target_section.exp and symbol-without-target_section.c.
10433
0e05dfcb
DJ
104342010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10435
10436 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10437 (remote_breakpoint_for_pc): Correct invalid_p check.
10438 * gdbarch.c: Regenerated.
10439
f9d67f43
DJ
104402010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10441
10442 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10443 arm_pc_is_thumb.
10444 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10445 (extend_buffer_earlier): New function.
10446 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10447 (arm_adjust_breakpoint_address): New function.
10448 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10449
177321bd
DJ
104502010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10451
10452 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10453 (arm_linux_thumb2_le_breakpoint): New constants.
10454 (arm_linux_init_abi): Set thumb2_breakpoint and
10455 thumb2_breakpoint_size.
10456 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10457 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10458 Implement support for single stepping through IT blocks if
10459 a 32-bit Thumb breakpoint instruction is available.
10460 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10461 is available, use it when needed.
10462 (arm_remote_breakpoint_from_pc): New function.
10463 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10464 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10465 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10466
a1dcb23a
DJ
104672010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10468
10469 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10470 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10471 * gdbarch.c, gdbarch.h: Regenerated.
10472 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10473 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10474 gdbarch_remote_breakpoint_from_pc.
10475
2b009048
DJ
104762010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10477
10478 * infrun.c (prepare_to_proceed): Handle other signals which might
10479 match a breakpoint.
10480 (handle_inferior_event): Move the check for unusual breakpoint
10481 signals earlier.
10482
e4e2711a
JB
104832010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10484
10485 amd64 - function returning record with field straddling 2 registers.
10486 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10487 a record of length <= 16 in which a field straddles the two
10488 eightbytes.
10489
cba6fab5
JB
104902010-01-29 Joel Brobecker <brobecker@adacore.com>
10491
10492 Implement return values on amd64-windows.
10493 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10494 (amd64_windows_return_value): New function.
10495 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10496 amd64_windows_return_value.
10497
3af6ddfe
JB
104982010-01-29 Joel Brobecker <brobecker@adacore.com>
10499
10500 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 10501 parameter registers.
3af6ddfe
JB
10502 * i386-tdep.h (struct gdbarch_tdep): Add new field
10503 integer_param_regs_saved_in_caller_frame.
10504 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10505 tdep->integer_param_regs_saved_in_caller_frame to 1.
10506 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10507 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10508
80d19a06
JB
105092010-01-29 Joel Brobecker <brobecker@adacore.com>
10510
10511 amd64-windows: memory args passed by pointer during function calls.
10512 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10513 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10514 where tdep->memory_args_by_pointer is non-zero.
10515 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10516 tdep->memory_args_by_pointer to 1.
10517
ba581dc1
JB
105182010-01-29 Joel Brobecker <brobecker@adacore.com>
10519
4966b6c2 10520 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
10521 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10522 amd64-tdep.c.
10523 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10524 call_dummy_integer_regs, and classify.
10525 * amd64-tdep.h (amd64_classify): Add declaration.
10526 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10527 (amd64_reg_class): Delete, moved to i386-tdep.h.
10528 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10529 Replace call to amd64_classify by call to tdep->classify.
10530 (amd64_push_arguments): Get the list of registers to use for
10531 passing integer parameters from the gdbarch tdep structure,
10532 rather than using a hardcoded one. Replace calls to amd64_classify
10533 by calls to tdep->classify.
10534 (amd64_push_dummy_call): Get the register number used for
10535 the "hidden" argument from tdep->call_dummy_integer_regs.
10536 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10537 and tdep->call_dummy_integer_regs. Set tdep->classify.
10538 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10539 (amd64_windows_dummy_call_integer_regs): New static global.
10540 (amd64_windows_classify): New function.
10541 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10542 tdep->call_dummy_integer_regs and tdep->classify.
10543
d37346f0
DJ
105442010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10545
10546 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10547 for the new regcache. All callers updated.
10548 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10549 (get_thread_arch_regcache): Do not set aspace here.
10550 * regcache.h (regcache_xmalloc): Update declaration.
10551
10552 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10553 regcache_xmalloc updated.
10554
7434dadd
JB
105552010-01-28 Joel Brobecker <brobecker@adacore.com>
10556
10557 Another -Wunused-function error in procfs.c (sparc-solaris)
10558 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10559 Only define if SYS_syssgi is defined.
10560 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10561 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10562 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10563 is itself defined.
10564
16d905e2
CF
105652010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10566
10567 * windows-nat.c (windows_initialization_done): New variable.
10568 (get_windows_debug_event): Issue error when process dies before
10569 completely initializing.
10570 (do_initial_windows_stuff): Set flag to indicate when we are done with
10571 the initial steps of attaching to the child.
10572
cd55e50f
JK
105732010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10574
10575 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10576
99cc78aa
DE
105772010-01-27 Doug Evans <dje@google.com>
10578
4c7dcb84
DE
10579 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10580
99cc78aa
DE
10581 * breakpoint.c (bpstat_stop_status): Delete useless code.
10582
52334bf5
JK
105832010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10584
10585 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10586 objfile via SYMBOL_SYMTAB.
10587
708ead4e
TT
105882010-01-26 Tom Tromey <tromey@redhat.com>
10589
10590 PR exp/7643:
10591 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10592 coerce_array on result.
10593
b14e635e
SW
105942010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10595
10596 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10597 search_parent argument.
10598 (cp_add_using): Initialize 'searched' field.
10599 (reset_directive_searched): New function.
10600 * cp-support.h: Add 'searched' field to using_direct struct.
10601 (cp_lookup_symbol_imports): Ditto.
10602 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10603 Perform recursive search.
10604 Implement non parent search.
10605 * valops.c (value_maybe_namespace_elt): Updated.
10606
8540c487
SW
106072010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10608
10609 PR gdb/10929:
10610 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10611 scopes which contain using directives even if they contain no
10612 declarations.
10613 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10614 la_lookup_symbol_nonlocal.
10615 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10616 cp_lookup_symbol_namespace.
10617 (cp_lookup_symbol_namespace): Perform an import lookup at every
10618 block level.
10619 (cp_lookup_symbol_imports): New function.
10620 (cp_lookup_symbol_in_namespace): New function.
10621
421d5d99
TT
106222010-01-25 Tom Tromey <tromey@redhat.com>
10623
10624 PR gdb/11049:
10625 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10626 result.
10627
6bcc772d
RO
106282010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10629
10630 * configure.ac: Only use host_os part when disabling TUI on osf.
10631 Use test to check variables, prefix strings with x.
10632 * configure: Regenerate.
10633
10634 * solib-osf.c (osf_current_sos): Initialize tail.
10635
1c1238a5
TG
106362010-01-25 gingold <gingold@adacore.com>
10637
c8d5aac9
L
10638 * windows-nat.c (windows_continue): Use %x to print thread id.
10639 (get_windows_debug_event): Ditto.
1c1238a5 10640
0b92b5bb
TT
106412010-01-22 Tom Tromey <tromey@redhat.com>
10642
10643 PR symtab/11199:
10644 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10645 type and arguments. Use smash_to_methodptr_type.
10646 (read_structure_type): Call quirk_gcc_member_function_pointer
10647 later.
10648 * gdbtypes.h (smash_to_methodptr_type): Declare.
10649 * gdbtypes.c (smash_to_methodptr_type): New function.
10650 (lookup_methodptr_type): Use it.
10651
0d5392b8
TT
106522010-01-21 Tom Tromey <tromey@redhat.com>
10653
10654 PR symtab/11198:
10655 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10656 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10657 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10658 (glibc_skip_solib_resolver): Use
10659 lookup_minimal_symbol_and_objfile.
10660
e6d088ec
KT
106612010-01-21 Kai Tietz <kai.tietz@onevision.com>
10662
10663 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10664 WIN32 targets.
10665
b966cb8a
TT
106662010-01-20 Tom Tromey <tromey@redhat.com>
10667
10668 PR backtrace/10770:
10669 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10670 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10671 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10672 dwarf_stack_values, not CORE_ADDRs.
10673 (execute_stack_op): Change DW_OP_div and comparison operators to
10674 use signed operands.
10675
3f81c18a
VP
106762010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10677
10678 Per-inferior args and tty and environment.
10679
10680 * infcmd.c (inferior_args): Rename to ...
10681 (inferior_args_scratch): ... this.
10682 (inferior_io_terminal): Rename to ...
10683 (inferior_io_terminal_scratch): ... this.
10684 (inferior_argc, inferior_argv): Remove.
10685 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10686 inside current_inferior().
10687 (set_inferior_tty_command, show_inferior_tty_command): New.
10688 (get_inferior_args, set_inferior_args): Store inside
10689 current_inferior().
10690 (notice_args_set): Likewise and rename to...
10691 (set_args_command): ... this.
10692 (set_inferior_args_vector): Likewise.
10693 (notice_args_read): Rename to...
10694 (show_args_command): ...new.
10695 (tty_command): Remove.
10696 (run_command_1): Don't free old args, as they are freed by
10697 set_inferior_arg now.
10698 (run_no_args_command): Likewise.
10699 (inferior_environ): Remove.
10700 (run_command_1): Use environment of the current inferior.
10701 (environment_info, set_environment_command)
10702 (unset_environment_command, path_info, path_command): Likewise.
10703 (_initialize_infcmd): Adjust for function and variable renames.
10704 Do not init inferior_environ.
10705 * inferior.h (set_inferior_arg): Adjust prototype.
10706 (struct inferior): New fields args, argc, argv, terminal, environment.
10707 (inferior_environ): Remove declaration.
10708 * inferior.c (free_inferior): Free new fields.
10709 (add_inferior_silent): Initialize 'environment' field.
10710 * main.c (captured_main): Set arguments only after the initial
10711 inferior has been created. Set set_inferior_io_terminal,
10712 not tty_command.
10713 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10714 inferior.
10715 (_initialize_mi_cmd_env): Adjust for disappearance of global
10716 inferior_environ.
10717 * solib.c (solib_find): Use environment of the current inferior.
10718
d8b65138
JK
107192010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10720
10721 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10722 HAVE_PYTHON.
10723 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10724
692465f1
JB
107252010-01-20 Joel Brobecker <brobecker@adacore.com>
10726
10727 Get rid of ada-lang.c:function_name_from_pc.
10728 * ada-lang.c: Add "stack.h" #include.
10729 (function_name_from_pc): Delete.
10730 (is_known_support_routine): Replace call to function_name_from_pc
10731 by call to find_frame_funname.
10732 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10733
95519e0e
TT
107342010-01-19 Tom Tromey <tromey@redhat.com>
10735
10736 PR c++/11026:
10737 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10738 objfile obstack.
10739
95c11dc7
TT
107402010-01-19 Tom Tromey <tromey@redhat.com>
10741
10742 * top.c (stop_sig, float_handler, do_nothing): Remove.
10743
a0f49112
JK
107442010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10745
10746 * breakpoint.c (watchpoint_check): Check the call
10747 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10748 Extend the comment.
8d95cc3b 10749 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10750 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10751 watchpoint-cond-gone-stripped.c.
10752
ceeb3d5a
TT
107532010-01-19 Tom Tromey <tromey@redhat.com>
10754
10755 PR c++/8000:
10756 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10757 into parent scope, and enumerator into grandparent scope.
10758
2b71fc8e
JB
107592010-01-19 Joel Brobecker <brobecker@adacore.com>
10760
10761 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10762
03564ed9
JB
107632010-01-19 Joel Brobecker <brobecker@adacore.com>
10764
10765 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10766 i[34567]86-*-solaris2.1[0-9]*.
10767 * configure.tgt: Likewise.
10768
fb2e7cb4
JB
107692010-01-19 Joel Brobecker <brobecker@adacore.com>
10770
10771 * NEWS: Document the source command enhancement allowing it
10772 to load Python scripts. Document the "set/show script-extension"
10773 commands.
10774
1cb5e2a4
JB
107752010-01-19 Joel Brobecker <brobecker@adacore.com>
10776
10777 Add -Wunused-function to compile flags.
10778 * configure.ac: Add -Wunused-function to build_warnings.
10779 * configure: Regenerate.
10780
0ec6cd0c
JB
107812010-01-19 Joel Brobecker <brobecker@adacore.com>
10782
10783 "delete" ada-lex.c:input function, not used.
10784 * ada-lex.l: #define YY_NO_INPUT.
10785
b74845da
JB
107862010-01-19 Joel Brobecker <brobecker@adacore.com>
10787
10788 Delete free_named_symtabs and associated cleanup.
10789 * symfile.h (free_named_symtabs): Delete declaration.
10790 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10791 (cashier_psymtab): Comment function out.
10792 Delete declaration.
10793 (free_named_symtabs): Delete.
10794 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10795 * dbxread.c (end_psymtab): Likewise.
10796 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10797 * exec.c (exec_close_1): Ditto.
10798 * xcoffread.c (xcoff_end_psymtab): Likewise.
10799
65c06092
JB
108002010-01-19 Joel Brobecker <brobecker@adacore.com>
10801
10802 * stack.c (print_block_frame_labels): Comment function out.
10803
d5cd6034
JB
108042010-01-19 Joel Brobecker <brobecker@adacore.com>
10805
10806 Delete unused or undefined functions.
10807 * breakpoint.c (ep_parse_optional_filename): Delete.
10808 * dcache.c (dcache_write_line): Remove declaration.
10809 * infrun.c (build_infrun): Remove declaration.
10810 * tracepoint.c (tracepoint_save_command): Remove declaration.
10811 * linux-nat.c (init_lwp_list): Delete. No longer used.
10812 * event-loop.c (check_async_signal_handlers): Delete declaration.
10813 * infrun.c (init_execution_control_state): Delete.
10814 (proceed): Update comment to avoid mentioning
10815 init_execution_control_state.
10816 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10817 * ada-lang.c (ada_to_static_fixed_value): Delete.
10818 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10819 * cp-namespace.c (cp_copy_usings): Delete.
10820 * xml-syscall.c (xml_number_of_syscalls): Delete.
10821 * progspace.c (find_program_space_by_num): Delete.
10822 * inflow.c (handle_sigio): Delete declaration.
10823 * hppa-tdep.c (hppa_alignof): Delete.
10824 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10825 (mipsnbsd_core_osabi_sniffer): Delete.
10826
4e8f195d
TT
108272010-01-18 Tom Tromey <tromey@redhat.com>
10828
10829 PR c++/9680:
10830 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10831 (CONST_CAST): New tokens.
10832 (exp): Add new productions.
10833 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10834 reinterpret_cast.
10835 (is_cast_operator): New function.
10836 (yylex): Handle cast operators specially.
10837 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10838 UNOP_REINTERPRET_CAST>: New cases.
10839 * expprint.c (print_subexp_standard): Likewise.
10840 (op_name_standard): Likewise.
10841 (dump_subexp_body_standard): Likewise.
10842 * parse.c (operator_length_standard): Likewise.
10843 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10844 UNOP_REINTERPRET_CAST.
10845 * gdbtypes.c (class_types_same_p): New function.
10846 (is_ancestor): Use it.
10847 (is_public_ancestor): New function.
10848 (is_unique_ancestor_worker): Likewise.
10849 (is_unique_ancestor): Likewise.
10850 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10851 (is_unique_ancestor): Declare.
10852 * valops.c (value_reinterpret_cast): New function.
10853 (dynamic_cast_check_1): Likewise.
10854 (dynamic_cast_check_2): Likewise.
10855 (value_dynamic_cast): Likewise.
10856 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10857
d9c57d9f
JB
108582010-01-18 Joel Brobecker <brobecker@adacore.com>
10859
10860 Fix build failure when building without Python support.
10861 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10862 is not defined.
10863
f80d3ff2
JB
108642010-01-18 Joel Brobecker <brobecker@adacore.com>
10865
10866 Use XVS field type instead of doing a parallel lookup.
10867 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10868 if it is a reference type instead of doing a type lookup using
10869 the XVS field name.
10870
5bf03f13
JB
108712010-01-18 Joel Brobecker <brobecker@adacore.com>
10872
10873 Trust PAD types instead of using PAD___XVS.
10874 * ada-lang.c (trust_pad_over_xvs): New static variable.
10875 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10876 parallel XVS type, follow the XVS type instead of the PAD type.
10877 (unwrap_value): Make sure that there is no parallel XVE type
10878 before returning the value as is.
10879 (set_ada_list, show_ada_list): New static variables.
10880 (set_ada_command, show_ada_command): New functions.
10881 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10882 Add new "set/show ada trust-PAD-over-XVS" setting.
10883
973817a3
JB
108842010-01-18 Tom Tromey <tromey@redhat.com>
10885 Thiago Jung Bauermann <bauerman@br.ibm.com>
10886
10887 Allow "source" to load python scripts.
10888 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10889 * python/python.c (source_python_script): New function.
10890 * python/python.h (source_python_script): Add declaration.
10891 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10892 (script_ext_off, script_ext_soft, script_ext_strict)
10893 (script_ext_enums, script_ext_mode): New static constants.
10894 (show_script_ext_mode, find_and_open_script): New functions.
10895 (source_script): Enhance to handle Python scripts.
10896 (init_cli_cmds): Add set/show script-extension commands.
10897
98e03262
SS
108982010-01-16 Stan Shebs <stan@codesourcery.com>
10899
10900 * tracepoint.h (struct trace_status): Use unsigned long long
10901 instead of size_t.
10902 * tracepoint.c (trace_status_command): Fix printf directive.
10903 (trace_save_command): Check fwrite returns, fix printf directive.
10904 (trace_filename): New global.
10905 (tfile_open): Set it, check read returns.
10906 (tfile_close): Free trace_filename.
10907 (tfile_get_traceframe_address): Check read returns.
10908 (tfile_trace_find): Ditto.
10909 (tfile_fetch_registers): Ditto.
10910 (tfile_xfer_partial): Ditto.
10911 (tfile_get_trace_state_variable_value): Ditto.
10912
00bf0b85
SS
109132010-01-15 Stan Shebs <stan@codesourcery.com>
10914
10915 Add trace file support.
10916 * tracepoint.h (enum trace_stop_reason): New enum.
10917 (struct trace_status): New struct.
10918 (parse_trace_status): Declare.
10919 (struct uploaded_tp): Move here from remote.c,
10920 add fields for actions.
10921 (struct uploaded_tsv): New struct.
10922 * tracepoint.c (tfile_ops): New target vector.
10923 (trace_fd): New global.
10924 (tfile_open): New function.
10925 (tfile_close): New function.
10926 (tfile_files_info): New function.
10927 (tfile_get_trace_status): New function.
10928 (tfile_get_traceframe_address): New function.
10929 (tfile_trace_find): New function.
10930 (tfile_fetch_registers): New function.
10931 (tfile_xfer_partial): New function.
10932 (tfile_get_trace_state_variable_value): New function.
10933 (init_tfile_ops): New function.
10934 (_initialize_tracepoint): Call it, add tfile target.
10935 (trace_status): New global.
10936 (current_trace_status): New function.
10937 (trace_running_p): Remove, change all users to get from
10938 current_trace_status()->running.
10939 (get_trace_status): Remove.
10940 (trace_status_command): Call target_get_trace_status directly,
10941 report more detail including tracing stop reasons.
10942 (trace_find_command): Always allow tfind on a file.
10943 (trace_find_pc_command): Ditto.
10944 (trace_find_tracepoint_command): Ditto.
10945 (trace_find_line_command): Ditto.
10946 (trace_find_range_command): Ditto.
10947 (trace_find_outside_command): Ditto.
10948 (trace_frames_offset, cur_offset): Declare as off_t.
10949 (trace_regblock_size): Rename from reg_size, update users.
10950 (parse_trace_status): New function.
10951 (tfile_interp_line): New function.
10952 (disconnect_or_stop_tracing): Ensure current trace
10953 status before asking what to do.
10954 (stop_reason_names): New global.
10955 (trace_save_command): New command.
10956 (get_uploaded_tp): Move here from remote.c.
10957 (find_matching_tracepoint): Ditto.
10958 (merge_uploaded_tracepoints): New function.
10959 (parse_trace_status): Use stop_reason_names.
10960 (_initialize_tracepoint): Define tsave command.
10961 * target.h (target_ops): New fields to_save_trace_data,
10962 to_upload_tracepoints, to_upload_trace_state_variables,
10963 to_get_raw_trace_data, change to_get_trace_status
10964 to take a pointer to a status struct.
10965 (target_save_trace_data): New macro.
10966 (target_upload_tracepoints): New macro.
10967 (target_upload_trace_state_variables): New macro.
10968 (target_get_raw_trace_data): New macro.
10969 * target.c (update_current_target): Add new methods, change
10970 signature of to_get_trace_status.
10971 * remote.c (hex2bin): Make globally visible.
10972 (bin2hex): Ditto.
10973 (remote_download_trace_state_variable): Download name also.
10974 (remote_get_trace_status): Update parameter, use
10975 parse_trace_status.
10976 (remote_save_trace_data): New function.
10977 (remote_upload_tracepoints): New function.
10978 (remote_upload_trace_state_variables): New function.
10979 (remote_get_raw_trace_data): New function.
10980 (remote_start_remote): Use them.
10981 (_initialize_remote_ops): Add operations.
10982 * ax-gdb.c: Include breakpoint.h.
10983 * breakpoint.c (create_tracepoint_from_upload): Use
10984 break_command_really, return tracepoint, warn about unimplemented
10985 parts.
10986 * NEWS: Mention trace file addition.
10987
d904de5b
JK
109882010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10989
10990 Fix compilation warning on gcc-3.4.
10991 * exec.c (print_section_info): Move the `displacement' variable
10992 initialization to its declaration.
10993
64aa9731
JK
109942010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10995
10996 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10997 comparison.
10998
ca1f5def 109992010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
11000
11001 "info tasks" broken by typedefs in ATCB type definitions.
11002 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11003 ada_check_typedef before retrieving the length of the type for
11004 regular fields.
11005
12ab9e09
JB
110062010-01-15 Joel Brobecker <brobecker@adacore.com>
11007
11008 Do not use name-based lookup for unconstrained packed arrays.
11009 * ada-lang.c (find_parallel_type_by_descriptive_type):
11010 Limit the fallback to name-based lookups to the case where
11011 the type is a constrained packed array.
11012
c389c3dc
JB
110132010-01-15 Joel Brobecker <brobecker@adacore.com>
11014
11015 Enhance gdb-gdb.py to handle main_type.type_specific.
11016 * gdb-gdb.py: Print the type-specific part of struct main_type.
11017
7991dee7
JK
110182010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11019
11020 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11021 * configure: Regenerate.
11022 * config.in: Regenerate.
11023 * utils.c: Include sys/resource.h.
11024 (dump_core, can_dump_core): New.
11025 (internal_vproblem): Update the comment. Check can_dump_core while
11026 setting dump_core_p. Replace two abort calls by dump_core calls.
11027
93c26624
JK
110282010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11029 Eli Zaretskii <eliz@gnu.org>
11030
11031 * NEWS: Document the PIE support.
11032
55235ad7
JK
110332010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11034
11035 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11036 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11037
41752192
JK
110382010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11039
11040 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11041 Replace exec_entry_point call by bfd_get_start_address.
11042
9f2982ff
JK
110432010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11044
11045 Support Valgrind attachments broken by the PIE support.
11046 * auxv.c: Include gdbcore.h.
11047 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11048 parameters ops, object and annex. Remove their assertions.
11049 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11050 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11051 (memory_xfer_auxv): ... here.
11052 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11053 memory_xfer_auxv.
11054 * procfs.c (procfs_xfer_partial): Likewise.
11055 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11056 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11057 (svr4_solib_create_inferior_hook): Conditionalize the
11058 svr4_relocate_main_executable call.
11059
61f0d762
JK
110602010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11061
11062 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11063 target_section. Find SECT in current_target_sections, gdb_assert it.
11064 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11065 New variable abfd.
11066 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11067 of separate debug info file.
11068
51bee8e9
JK
110692010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11070
11071 Support PIEs with no symfile_objfile.
11072 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11073 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11074
b8040f19
JK
110752010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11076
11077 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11078 code part to ...
11079 (svr4_static_exec_displacement): ... a new function.
11080 (svr4_exec_displacement): New function.
11081 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11082 new_offsets using alloca now. Remove variable old_chain and changed.
11083 Call objfile_relocate unconditionally now.
11084
eb90ce83
DE
110852010-01-14 Doug Evans <dje@google.com>
11086
11087 * gdbtypes.c (arch_flags_type): Fix comment.
11088 * gdbtypes.h (arch_composite_type): Fix comment.
11089
bdfed3bc
TG
110902009-01-14 Tristan Gingold <gingold@adacore.com>
11091
11092 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11093 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11094 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11095 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11096 macho_add_oso_symfile.
11097 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11098
1596ad23
JB
110992010-01-14 Joel Brobecker <brobecker@adacore.com>
11100
11101 Tru64: Dead threads are never deleted.
11102 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11103 (dec_thread_count_gdb_threads): Fix counter increment.
11104 (dec_thread_add_gdb_thread): Fix *listp increment.
11105 (resync_thread_list): Fix bug in deletion of dead threads that
11106 caused all threads to be deleted, instead of just the dead ones.
11107
be759fcf
PM
111082010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11109
11110 PR python/10705
11111
11112 * python/python-internal.h: Add lazy_string_object_type
11113 definition.
11114 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11115 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11116 * python/py-value.c (valpy_lazy_string): New function.
11117 (convert_value_from_python): Add lazy string conversion.
11118 * python/py-prettyprint.c (pretty_print_one_value): Check if
11119 return is also a lazy string.
11120 (print_string_repr): Add lazy string printing branch.
11121 (print_children): Likewise.
11122 * python/py-lazy-string.c: New file. Implement lazy strings.
11123 * python/python.c (_initialize_python): Call
11124 gdbpy_initialize_lazy_string.
11125 * varobj.c (value_get_print_value): Add lazy string printing
11126 branch. Account for encoding.
11127 * c-lang.c (c_printstr): Account for new encoding argument. If
11128 encoding is NULL, find encoding suited for type, otherwise use
11129 user encoding.
11130 * language.h (language_defn): Add encoding argument.
11131 (LA_PRINT_STRING): Likewise.
11132 * language.c (unk_lang_printstr): Update to reflect new encoding
11133 argument to language_defn.
11134 * ada-lang.h (ada_printstr): Likewise.
11135 * c-lang.h (c_printstr): Likewise.
11136 * p-lang.h (pascal_printstr);
11137 * f-lang.c (f_printstr): Likewise.
11138 * m2-lang.c (m2_printstr): Likewise.
11139 * objc-lang.c (objc_printstr): Likewise.
11140 * p-lang.c (pascal_printstr): Likewise.
11141 * scm-lang.c (scm_printstr): Likewise.
11142 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11143 encoding argument.
11144 * ada-valprint.c (ada_printstr): Likewise.
11145 * f-valprint.c (f_val_print): Likewise
11146 * m2-valprint.c (m2_val_print): Likewise.
11147 * p-valprint.c (pascal_val_print): Likewise.
11148 * expprint.c (print_subexp_standard): Likewise.
11149 * valprint.c (val_print_string): Likewise.
11150 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11151 (SUBDIR_PYTHON_SRCS): Likewise.
11152 (py-lazy-string.o): New rule.
11153
1fe72117 111542010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
11155
11156 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11157 uninitialized" warning from gcc on local `tree'.
11158
dc146f7c
VP
111592010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11160
11161 Implement core awareness.
11162
11163 * bcache.c (compare_ints): Remove
11164 (print_percentage): Use compare_positive_ints.
11165 * defs.h (compare_positive_ints): Declare.
11166 * linux-nat.h (struct lin_lwp): New field core.
11167 (linux_nat_core_of_thread_1): Declare.
11168 * linux-nat.c (add_lwp): Init the 'core' field.
11169 (linux_nat_wait_1): Record the core.
11170 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11171 (linux_nat_add_target): Register the above.
11172 * linux-thread-db.c (update_thread_core): New.
11173 (thread_db_find_new_threads): Update core information for
11174 every thread.
11175 * remote.c (struct private_thread_info): New.
11176 (free_private_thread_info, demand_private_info): New.
11177 (PACKET_qXfer_threads, use_osdata_threads): New.
11178 (struct thread_item, threads_parsing_context
11179 (start_thread, end_thread, thread_attributes)
11180 (thread_children, threads_children, threads_elements): New.
11181 (remote_threads_info): Try qXfer:threads before anything
11182 else.
11183 (remote_protocol_packets): Register qXfer:threads.
11184 (remote_open_1): Init use_osdata_threads.
11185 (struct stop_reply): New field 'core'.
11186 (remote_parse_stop_reply): Parse core number.
11187 (process_stop_reply): Record core number.
11188 (remote_xfer_partial): Handle qXfer:threads.
11189 (remote_core_of_thread): New.
11190 (init_remote_ops): Register remote_core_of_thread.
11191 (_initialize_remote): Register qXfer:read.
11192 * target.c (target_core_of_thread): New
11193 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11194 (struct target_ops): New field to_core_of_threads.
11195 (target_core_of_thread): Declare.
11196 * gdbthread.h (struct thread_info): New field private_dtor.
11197 * thread.c (print_thread_info): Report the core.
11198 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11199 * utils.c (compare_positive_ints): New.
11200 * features/threads.dtd: New.
11201 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11202 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11203 (do_nothing, free_vector_of_osdata_items)
11204 (splay_tree_int_comparator, free_splay_tree): New.
11205 (print_one_inferior_data): Implemented printing of selected
11206 inferiors. Collect and print cores.
11207 (output_cores): New.
11208 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11209 thread groups together with --available.
11210
d30c5336
JK
112112010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11212
11213 * configure: Regenerate (for _STRUCTURED_PROC).
11214
02893727
JB
112152010-01-12 Joel Brobecker <brobecker@adacore.com>
11216
11217 Delete dead function.
11218 * ada-lang.c (extract_string): Delete. No longer used.
11219
46ed2d6f
JB
112202010-01-12 Joel Brobecker <brobecker@adacore.com>
11221
11222 Fix -Wunused warning in dec-thread.c.
11223 * dec-thread.c (dec_thread_count_gdb_threads)
11224 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11225
606b8d1a
JB
112262010-01-12 Joel Brobecker <brobecker@adacore.com>
11227
11228 * ada-valprint.c (ada_print_floating): Remove trailing space.
11229
b4ba55a1
JB
112302010-01-12 Joel Brobecker <brobecker@adacore.com>
11231
11232 Add support for DW_AT_GNAT_descriptive_type.
11233 * gdbtypes.h (enum type_specific_kind): New enum.
11234 (struct main_type) [type_specific_field]: New component.
11235 [type_specific]: Add new component "gnat_stuff".
11236 (struct gnat_aux_type): New type.
11237 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11238 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11239 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11240 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11241 (TYPE_SPECIFIC_FIELD): New macros.
11242 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11243 type does not hold any cplus-specific data.
11244 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11245 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11246 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11247 cplus-specific data.
11248 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11249 Set new component TYPE_SPECIFIC_FIELD (type).
11250 (gnat_aux_default): New constant.
11251 (allocate_gnat_aux_type): New function.
11252 (init_type): Add initialization the type-specific stuff for
11253 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11254 (print_gnat_stuff): New function.
11255 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11256 specific data. Adjust code that prints the contents of the
11257 type-specific union using the TYPE_SPECIFIC_FIELD value.
11258 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11259 the type cplus stuff for Ada types.
11260 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11261 Error out if these routines are called with an Ada type.
11262 (read_structure_type, read_array_type, read_subrange_type):
11263 Add call to set_descriptive_type.
11264 (set_die_type): Initialize the gnat-specific data if necessary.
11265 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11266 New functions.
11267 * ada-lang.c (decode_constrained_packed_array_type): Use
11268 decode_constrained_packed_array_type instead of doing a standard
11269 lookup to locate a parallel type.
11270 (find_parallel_type_by_descriptive_type): New function.
11271 (ada_find_parallel_type_with_name): New function.
11272 (ada_find_parallel_type): Reimplement using
11273 ada_find_parallel_type_with_name.
11274 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11275 to check if type has a cplus stuff.
11276 * linespec.c (total_number_of_methods): Likewise.
11277 * mdebugread.c (new_type): Likewise.
11278
b0f02ee9
JK
112792010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11280
11281 * NEWS: Document the 0b binary number prefix parsing.
11282
b260e109
JK
112832010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11284
11285 * objfiles.c (objfile_relocate1): Change the return type to int.
11286 Describe the new return value. Return non-zero if data changed.
11287 (objfile_relocate): New variable changed. Set it. Call
11288 breakpoint_re_set depending on CHANGED.
11289
b5cfddf5
JK
112902010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11291
11292 Implement binary numbers parsing.
11293 * c-exp.y (parse_number): New case 'b' and 'B'.
11294
e0ae4240
JK
112952010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11296 Tristan Gingold <gingold@adacore.com>
11297
11298 * solib.c (info_sharedlibrary_command): Replace
11299 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11300 objfile_has_symbols.
11301
6e0e5977
JB
113022010-01-10 Joel Brobecker <brobecker@adacore.com>
11303
11304 * NEWS: Document the improvements made to the mips-irix port.
11305
7348c5e1
JB
113062010-01-09 Joel Brobecker <brobecker@adacore.com>
11307
11308 Fix the documentation of valprint.c:value_print.
11309 * valprint.c (value_print): Update the function description to
11310 mention that the syntax of the output follows the current_language,
11311 not necessarily C.
11312
567995e1
JK
113132010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11314
11315 Fix displacement of separate debug info files.
11316 * objfiles.c (objfile_relocate): Rename to ...
11317 (objfile_relocate1): ... here and make it static. Extend the comment.
11318 (objfile_relocate): New function.
11319 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11320 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11321 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11322 allocated using alloca.
11323 * symfile.c (copy_section_addr_info): Remove.
11324 (build_section_addr_info_from_objfile): Make it global. New variables
11325 addr_bit and mask, use them.
11326 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11327 (copy_section_addr_info): Remove.
11328
6d8eadbd
JB
113292010-01-09 Joel Brobecker <brobecker@adacore.com>
11330
11331 Signal unwinder for mips-irix N32.
11332 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11333 tramp-frame.h.
11334 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11335 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
11336 (SIGCONTEXT_LO_OFF): New macros.
11337 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
11338 (mips_irix_n32_tramp_frame): New static constant.
11339 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11340
27087a3d
JB
113412010-01-09 Joel Brobecker <brobecker@adacore.com>
11342
11343 Breakpoint in shared library does not work on mips-irix.
11344 * procfs.c: #include "observer.h".
11345 (procfs_inferior_created): New function, moving here the code
11346 which unsets the syssgi syscall-exit notifications.
11347 (procfs_create_inferior): Remove the code which unsets the syssgi
11348 syscall-exit notifications. It is too early to do this here.
11349 (_initialize_procfs): Attach the procfs_inferior_created observer.
11350
f08877ba
JB
113512010-01-09 Joel Brobecker <brobecker@adacore.com>
11352
11353 Wrong return convention for arrays (mips-irix).
11354 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11355 128 bits or smaller are returned the same way as structs
11356 and unions of the the same size.
11357
e4b97d48
JB
113582010-01-09 Joel Brobecker <brobecker@adacore.com>
11359
11360 Cannot set the PC on mips-irix.
11361 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11362 register number, no the cooked one.
11363
11377e68
JB
113642010-01-09 Joel Brobecker <brobecker@adacore.com>
11365
11366 Error while loading core file on mips-irix.
11367 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11368 if debugging from a core file.
11369
b2391021
JB
113702010-01-09 Joel Brobecker <brobecker@adacore.com>
11371
11372 GDB hangs when attaching to process on mips-irix.
11373 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11374 attaching to a process.
11375
f2ec0ecf
JB
113762010-01-09 Joel Brobecker <brobecker@adacore.com>
11377
11378 Use the correct breakpoint instruction on mips-irix.
11379 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11380 containing the correct breakpoint instruction to use on mips-irix.
11381 Use it when the osabi is GDB_OSABI_IRIX.
11382
3c95f01c
JB
113832010-01-09 Joel Brobecker <brobecker@adacore.com>
11384
11385 -Wunused warning in procfs.c (mips-irix only).
11386 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11387 throughout instead of using praddset and prdelset respectively.
11388
4b7703ad
JB
113892010-01-09 Joel Brobecker <brobecker@adacore.com>
11390
11391 GDB crash while stepping into function.
11392 * infrun.c (handle_inferior_event): Refetch the current frame
11393 after handling what.main_action, in case that pointer became
11394 dangling.
11395
12c89474
JB
113962010-01-09 Joel Brobecker <brobecker@adacore.com>
11397
11398 Fix build failure of solaris-hosted cross debuggers.
11399 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11400
1a3fd262 114012010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
11402
11403 Fix build failure on sparc-solaris.
11404 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11405
75242ef4
JK
114062010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11407
11408 Move some symfile code into subroutines.
11409 * symfile.h (relative_addr_info_to_section_offsets)
11410 (addr_info_make_relative): New prototypes.
11411 * symfile.c (default_symfile_offsets): Move a part to ...
11412 (relative_addr_info_to_section_offsets): ... this new function.
11413 (default_symfile_offsets): Call it.
11414 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11415 this part to ...
11416 (addr_info_make_relative): ... this new function.
11417
268a4a75
JK
114182010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11419
11420 Add from_tty to solib_create_inferior_hook.
11421 * infcmd.c (post_create_inferior): Move solib_add after
11422 solib_create_inferior_hook. Pass from_tty to
11423 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11424 0 from_tty and comment why.
11425 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11426 * linux-nat.c (linux_child_follow_fork): Likewise.
11427 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11428 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11429 from_tty.
11430 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11431 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11432 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11433 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11434 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11435 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11436 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11437 Pass it to svr4_so_ops.solib_create_inferior_hook.
11438 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11439 from_tty.
11440 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11441 solib_add.
11442 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11443 enable_break.
11444 * solib-target.c (solib_target_solib_create_inferior_hook): New
11445 parameter from_tty.
11446 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11447 it to ops->solib_create_inferior_hook.
11448 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11449 Move solib_add after solib_create_inferior_hook, call it now with
11450 from_tty as 0. New comment there.
11451 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11452 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11453 Likewise.
11454
cf00dfa7
VP
114552010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11456
11457 Fix multiexec race.
11458 * infrun.c (handle_inferior_event): Use get_thread_regcache
11459 with events ptid, not get_current_regcache.
11460
f91e5ac3
JB
114612009-01-08 Joel Brobecker <brobecker@adacore.com>
11462
11463 GDB crash with empty executable name (MinGW).
11464 * source.c (openp): Add assert that parameter string is not NULL.
11465 if parameter string is an empty string, then return with a failure
11466 immediately.
11467
92b9ce5b
JB
114682009-01-08 Joel Brobecker <brobecker@adacore.com>
11469
11470 Get rid of support for VAX Floats.
11471 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11472 (ada_vax_float_print_function): Delete.
11473 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11474 (ada_vax_float_print_function): Delete.
11475 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11476 (ada_print_type): Remove support for VAX floats.
11477 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11478
268a4a75 114792010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
11480
11481 * stabsread.c (read_args): Handle zero arguments.
11482
f0f20949
JB
114832009-01-08 Joel Brobecker <brobecker@adacore.com>
11484
11485 Cannot find in-tree libiconv.a after reconfigure.
11486 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11487 that we can use, then cache the path to this archive.
11488 * configure: Regenerate.
11489
6b6218c5
SS
114902010-01-07 Stan Shebs <stan@codesourcery.com>
11491
35b1e5cc
SS
11492 Make tracepoint operations go through target vector.
11493 * target.h (enum trace_find_type): New enum.
11494 (struct target_ops): New fields to_trace_init,
11495 to_download_tracepoint, to_download_trace_state_variable,
11496 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11497 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11498 to_set_disconnected_tracing.
11499 (target_trace_init): New macro.
11500 (target_download_tracepoint): New macro.
11501 (target_download_trace_state_variable): New macro.
11502 (target_trace_start): New macro.
11503 (target_trace_set_readonly_regions): New macro.
11504 (target_get_trace_status): New macro.
11505 (target_trace_stop): New macro.
11506 (target_trace_find): New macro.
11507 (target_get_trace_state_variable_value): New macro.
11508 (target_set_disconnected_tracing): New macro.
11509 * target.c (update_current_target): Inherit and set defaults for
11510 tracepoint operations.
11511 * tracepoint.c (default_collect): Make globally visible.
11512 (target_is_remote): Remove, along with all calls.
11513 (tvariables_info): Call target_get_trace_state_variable_value.
11514 (remote_set_transparent_ranges): Remove.
11515 (trace_start_command): Call target_trace_init,
11516 target_download_tracepoint, etc.
11517 (download_tracepoint): Remove.
11518 (trace_stop_command): Simplify.
11519 (stop_tracing): Call target_trace_stop.
11520 (get_trace_status): Call target_get_trace_status.
11521 (trace_status_command): Add case for targets that cannot trace.
11522 (finish_tfind_command): Change to take numerical arguments, call
11523 target_trace_find.
11524 (trace_find_command): Update call to finish_tfind_command.
11525 (trace_find_pc_command): Ditto.
11526 (trace_find_tracepoint_command): Ditto.
11527 (trace_find_line_command): Ditto.
11528 (trace_find_range_command): Ditto.
11529 (trace_find_outside_command): Ditto.
11530 (set_disconnected_tracing_value): Call
11531 target_set_disconnected_tracing.
11532 * remote.c: Add protocol encoding bits from tracepoint.c.
11533 (trace_error): Move from tracepoint.c.
11534 (remote_get_noisy_reply): Ditto.
11535 (free_actions_list_cleanup_wrapper): Ditto.
11536 (free_actions_list): Ditto.
11537 (remote_trace_init): New function.
11538 (remote_download_tracepoint): New function.
11539 (remote_download_trace_state_variable): New function.
11540 (remote_trace_set_readonly_regions): New function.
11541 (remote_trace_start): New function.
11542 (remote_get_trace_status): New function.
11543 (remote_trace_stop): New function.
11544 (remote_trace_find): New function.
11545 (remote_download_trace_state_variable): New function.
11546 (remote_set_disconnected_tracing): New function.
11547 (init_remote_ops): Add tracepoint operations.
11548
6b6218c5
SS
11549 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11550
089b4803
TG
115512010-01-07 Tristan Gingold <gingold@adacore.com>
11552
11553 * symfile.c (build_section_addr_info_from_objfile): New function.
11554 (symbol_file_add_separate): Don't use offsets from objfile but
11555 built an addr info.
11556
d5551862
SS
115572010-01-06 Stan Shebs <stan@codesourcery.com>
11558
11559 Support disconnected tracing.
11560 * infcmd.c (detach_command): Ask whether to stop tracing.
11561 * cli/cli-cmds.c (quit_command): Ditto.
11562 * breakpoint.h (struct breakpoint): New field number_on_target.
11563 * breakpoint.c (create_tracepoint_from_upload): New function.
11564 (get_tracepoint_by_number_on_target): New function.
11565 * remote.c (struct remote): New field disconnected_tracing.
11566 (remote_disconnected_tracing_feature): New function.
11567 (remote_protocol_features): Add DisconnectedTracing.
11568 (struct uploaded_tp): New struct.
11569 (uploaded_tps): New global.
11570 (get_uploaded_tp): New function.
11571 (find_matching_tracepoint): New function.
11572 (remote_get_tracing_state): New function.
11573 (remote_start_remote): Call it.
11574 * tracepoint.c (disconnected_tracing): New global.
11575 (trace_start_command): Initialize number_on_target.
11576 (stop_tracing): New function, split out from...
11577 (trace_stop_command): Call stop_tracing.
11578 (get_trace_status): New function, split out from...
11579 (trace_status_command): Call get_trace_status, add info on
11580 disconnection behavior.
11581 (disconnect_or_stop_tracing): New function.
11582 (finish_tfind_command): Translate from number on target.
11583 (trace_find_tracepoint_command): Translate to number on target.
11584 (send_disconnected_tracing_value): New function.
11585 (set_disconnected_tracing): New function.
11586 (_initialize_tracepoint): Add disconnected-tracing variable.
11587 * NEWS: Mention disconnected tracing.
11588
15d123c9
TG
115892010-01-06 Tristan Gingold <gingold@adacore.com>
11590
11591 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11592 parameter to main_objfile. Iterate on all separate debug objfiles.
11593 * symfile.h (symbol_file_add_separate)
11594 (find_separate_debug_file_by_debuglink): Remove parameter names.
11595 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11596 (reread_symbols): Use free_objfile_separate_debug.
11597 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11598 Adjust comment.
11599 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11600 (free_objfile_separate_debug): New prototypes.
11601 * objfiles.c (objfile_separate_debug_iterate): New function.
11602 (add_separate_debug_objfile, free_objfile_separate_debug): New
11603 functions.
11604 (free_objfile): Use free_objfile_separate_debug. Adjust for
11605 multiple separate debug objfile.
11606 (objfile_has_symbols): Adjust comment. Iterate on all separate
11607 debug objfiles.
11608 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11609 debug objfile.
11610 (lookup_minimal_symbol_text): Ditto.
11611 (lookup_minimal_symbol_by_pc_name): Ditto.
11612 (lookup_minimal_symbol_solib_trampoline): Ditto.
11613 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11614 debug objfiles.
11615
7a697b8d
SS
116162010-01-05 Stan Shebs <stan@codesourcery.com>
11617
11618 Add fast tracepoints.
11619 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11620 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11621 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11622 * breakpoint.c (tracepoint_type): New function.
11623 (ALL_TRACEPOINTS): Use it.
11624 (should_be_inserted): Ditto.
11625 (bpstat_check_location): Ditto.
11626 (print_one_breakpoint_location): Ditto.
11627 (user_settable_breakpoint): Ditto.
11628 (set_breakpoint_location_function): Ditto.
11629 (disable_breakpoints_in_shlibs): Ditto.
11630 (delete_trace_command): Ditto.
11631 (print_it_typical): Add bp_fast_tracepoint case.
11632 (bpstat_what): Ditto.
11633 (print_one_breakpoint_location): Ditto.
11634 (allocate_bp_location): Ditto.
11635 (mention): Ditto.
11636 (breakpoint_re_set_one): Ditto.
11637 (disable_command): Ditto.
11638 (enable_command): Ditto.
11639 (check_fast_tracepoint_sals): New function.
11640 (break_command_really): Call it.
11641 (ftrace_command): New function.
11642 (_initialize_breakpoint): Add ftrace command.
11643 * gdbarch.sh (fast_tracepoint_valid_at): New.
11644 * gdbarch.h, gdbarch.c: Regenerate.
11645 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11646 (i386_gdbarch_init): Use it.
11647 * remote.c (struct remote_state): New field fast_tracepoints.
11648 (PACKET_FastTracepoints): New packet config type.
11649 (remote_fast_tracepoint_feature): New function.
11650 (remote_protocol_features): Add FastTracepoints.
11651 (remote_supports_fast_tracepoints): New function.
11652 (_initialize_remote): Add FastTracepoints.
11653 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11654 * NEWS: Mention fast tracepoints.
11655
737a160e
JB
116562010-01-06 Joel Brobecker <brobecker@adacore.com>
11657
11658 * gdb-gdb.py: New file.
11659
ce6cca6d
MS
116602010-01-05 Michael Snyder <msnyder@vmware.com>
11661
11662 * infrun.c (handle_inferior_event): Fix typo in comment.
11663
0d15807d
JK
116642010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11665
11666 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11667
7803799a
UW
116682010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11669
c8d5aac9 11670 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
11671 and s390x-linux64.
11672 (s390-linux32-expedite): Define.
11673 (s390-linux64-expedite): Define.
11674 (s390x-linux64-expedite): Define.
11675 * features/s390-acr.xml: New file.
11676 * features/s390-fpr.xml: New file.
11677 * features/s390-core32.xml: New file.
11678 * features/s390-core64.xml: New file.
11679 * features/s390x-core64.xml: New file.
11680 * features/s390-linux32.xml: New file.
11681 * features/s390-linux64.xml: New file.
11682 * features/s390x-linux64.xml: New file.
11683 * features/s390-linux32.c: New generated file.
11684 * features/s390-linux64.c: New generated file.
11685 * features/s390x-linux64.c: New generated file.
11686
11687 * regformats/s390-linux32.dat: New generated file.
11688 * regformats/s390-linux64.dat: New generated file.
11689 * regformats/s390x-linux64.dat: New generated file.
11690 * regformats/reg-s390.dat: Remove.
11691 * regformats/reg-s390x.dat: Remove.
11692
11693 * s390-nat.c: Include "auxv.h" and <elf.h>.
11694 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11695 (s390_target_wordsize): New function.
11696 (s390_auxv_parse): Likewise.
11697 (s390_get_hwcap): Likewise.
11698 (s390_read_description): Likewise.
11699 (_initialize_s390_nat): Install s390_auxv_parse and
11700 s390_read_description.
11701
11702 * s390-tdep.c: Include "features/s390-linux32.c",
11703 "features/s390-linux64.c", and "features/s390x-linux64.c".
11704 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11705 (s390_register_call_saved): New function.
11706 (s390_register_name): Remove.
11707 (s390_register_type): Remove.
11708 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11709 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11710 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11711 (s390_pseudo_register_name): New function.
11712 (s390_pseudo_register_type): New function.
11713 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11714 Handle full GPR pesudos and varying pseudo register numbers.
11715 (s390_pseudo_register_write): Likewise
11716 (s390x_pseudo_register_read): Remove.
11717 (s390x_pseudo_register_write): Likewise.
11718 (s390_register_group): Remove.
11719 (s390_pseudo_register_group): New function.
11720 (s390_regmap_gregset): Add GPR upper halves.
11721 (s390x_regmap_gregset): Likewise.
11722 (s390_regmap_fpregset): Likewise.
11723 (s390_regmap_upper): New global variable.
11724 (s390_upper_regset): New global variable.
11725 (s390_upper_regset_sections): New global variable.
11726 (s390_regset_from_core_section): Handle GPR upper halves.
11727 (s390_core_read_description): New function.
11728 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11729 register information. Handle varying pseudo register numbers.
11730 (s390_backchain_frame_unwind_cache): Likewise.
11731 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11732 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11733 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11734 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11735 Handle varying pseudo register numbers.
11736 (s390_unwind_pc): Handle varying pseudo register numbers.
11737 (s390_dwarf2_prev_register): New function.
11738 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11739 register information. Handle varying pseudo register numbers.
11740 Install s390_dwarf2_prev_register to unwind full GPRs.
11741 (s390_gdbarch_init): Handle target descriptions. Assign varying
11742 pseudo register numbers. Install s390_adjust_frame_regnum.
11743 (_initialize_s390_tdep): Initialize target descriptions.
11744
11745 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11746 (S390_NUM_REGS): Redefine to include upper half registers.
11747 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11748 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11749 (tdesc_s390_linux32): Add declaration.
11750 (tdesc_s390_linux64): Likewise.
11751 (tdesc_s390x_linux64): Likewise.
11752
1b1818e4
UW
117532010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11754
11755 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11756 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11757 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11758 (ppc_linux_vmx_regset_sections): Likewise.
11759 (ppc_linux_fp_regset_sections): Likewise.
11760
11761 * corelow.c (get_core_register_section): Constify arguments.
11762 (get_core_registers): Use gdbarch_core_regset_sections instead
11763 of hard-coded platform-specific register section names.
11764
dcbf108f
UW
117652010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11766
11767 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11768 a register, assume the least-significant part is used.
dcbf108f
UW
11769 (write_pieced_value): Likewise.
11770
704e9165
UW
117712010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11772
11773 * printcmd.c: Include "arch-utils.h".
11774 (do_one_display): Re-parse expression if current architecture changed.
11775
c54eabfa
JK
117762010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11777 Joel Brobecker <brobecker@adacore.com>
11778
11779 * gdbtypes.c (check_typedef): New comment on type length.
11780 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11781 comment on type length.
11782 (value_primitive_field): Keep the original TYPE value, new comment.
11783
50cb2941
JK
117842010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11785
11786 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11787 p_start. Change != comparisons to > and < comparisons.
11788
be66db07
JK
117892010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11790
11791 * cli/cli-script.c (process_next_line): Check P2 overrun.
11792
abd775ce
JB
117932009-01-01 Joel Brobecker <brobecker@adacore.com>
11794
11795 Update the copyright hearder to add year 2010 for most GDB files.
11796
6479260d
JB
117972009-01-01 Joel Brobecker <brobecker@adacore.com>
11798
11799 Fix build failure in inf-ptrace.c.
11800 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11801
4a70f654
JB
118022010-01-01 Joel Brobecker <brobecker@adacore.com>
11803
11804 * top.c (print_gdb_version): Update copyright year.
11805
595939de 118062010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11807
11808 Fix break *FUN'address thread NUM.
11809 * ada-lex.l (task): Expand rule to also match the thread keyword.
11810
70575d34
JB
118112010-01-01 Joel Brobecker <brobecker@adacore.com>
11812
11813 Fix break *FUN'address task NUM.
11814 * ada-lex.l (task): New rule.
11815 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11816 been built before using it.
11817
e1e4d4a4 11818For older changes see ChangeLog-2009.
c906108c
SS
11819\f
11820Local Variables:
11821mode: change-log
11822left-margin: 8
11823fill-column: 74
11824version-control: never
57da7796 11825coding: utf-8
c906108c 11826End:
This page took 1.772864 seconds and 4 git commands to generate.