Fix mail addres in ChangeLog.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1583e7ea 12010-12-12 Mark Kettenis <kettenis@gnu.org>
89fa5cc8
MK
2
3 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
4 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
5
7a58cce8
MK
62010-12-12 Mark Kettenis <kettenis@gnu.org>
7
8 * sparc-tdep.c: Fix typo in comment.
9
ae2de4f8
DE
102010-12-10 Doug Evans <dje@google.com>
11
12 * dwarf2read.c: Whitespace cleanup, plus comment additions.
13 No code changes.
14
66cb8159
TT
152010-12-10 Tom Tromey <tromey@redhat.com>
16
17 * NEWS: Document exception-handling change.
18
30a7f059
MK
192010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
20
21 * mi/mi-parse.c (mi_parse): Wrong error message.
22
ad727bb2
DE
232010-12-09 Doug Evans <dje@google.com>
24
25 * symfile.h (quick_symbol_functions): Clarify usage of
26 map_symbol_filenames.
27
305aeedc
TT
282010-12-09 Tom Tromey <tromey@redhat.com>
29
30 * mi/mi-parse.h (mi_parse): Update.
31 * mi/mi-parse.c (mi_parse_cleanup): New function.
32 (mi_parse): Add 'token' argument. Throw exception on error.
33 * mi/mi-main.c (mi_print_exception): New function.
34 (mi_execute_command): Use mi_print_exception. Catch exceptions
35 from mi_parse.
36
186c406b
TT
372010-12-09 Tom Tromey <tromey@redhat.com>
38
39 PR c++/9593:
40 * thread.c (clear_thread_inferior_resources): Call
41 delete_longjmp_breakpoint.
42 * infrun.c (handle_inferior_event): Handle exception breakpoints.
43 (handle_inferior_event): Likewise.
44 (insert_exception_resume_breakpoint): New function.
45 (check_exception_resume): Likewise.
46 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
47 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
48 (step_1): Set thread's initiating frame.
49 (until_next_continuation): New function.
50 (until_next_command): Support exception breakpoints.
51 (finish_command_continuation): Delete longjmp breakpoint.
52 (finish_forward): Support exception breakpoints.
53 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
54 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
55 bp_exception_master>: New constants.
56 (struct bpstat_what) <is_longjmp>: New field.
57 (set_longjmp_breakpoint): Update.
58 * breakpoint.c (create_exception_master_breakpoint): New function.
59 (update_breakpoints_after_exec): Handle bp_exception_master. Call
60 create_exception_master_breakpoint.
61 (print_it_typical): Handle bp_exception_master, bp_exception.
62 (bpstat_stop_status): Handle bp_exception_master.
63 (bpstat_what): Handle bp_exception_master, bp_exception,
64 bp_exception_resume.
65 (bptype_string): Likewise.
66 (print_one_breakpoint_location): Likewise.
67 (allocate_bp_location): Likewise.
68 (set_longjmp_breakpoint): Handle exception breakpoints. Change
69 interface.
70 (delete_longjmp_breakpoint): Handle exception breakpoints.
71 (mention): Likewise.
72 (struct until_break_command_continuation_args) <thread_num>: New
73 field.
74 (until_break_command_continuation): Call
75 delete_longjmp_breakpoint.
76 (until_break_command): Support exception breakpoints.
77 (delete_command): Likewise.
78 (breakpoint_re_set_one): Likewise.
79 (breakpoint_re_set): Likewise.
80
1ef75ecc
DE
812010-12-08 Doug Evans <dje@google.com>
82
4e4666e6
DE
83 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
84
73e2eb35
DE
85 * gdbtypes.c (check_typedef): Tweak comment.
86
0a5429f6
DE
87 PR symtab/12302
88 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
89 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
90 (struct addrmap_index_data): New struct.
91 (add_address_entry): Remove arg `pst', new args `start', `end'.
92 (add_address_entry_worker, write_address_map): New functions.
93 (write_psymtabs_to_index): Address table generation moved to
94 write_address_map. Build a table mapping psymtab to CU index
95 to pass to it.
96
7e17e088
DE
97 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
98 name to perror.
99
d4637a04
DE
100 * symfile.h (quick_symbol_functions): Clarify usage of
101 expand_symtabs_with_filename.
102 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
103 comp units, ignore type units.
104
1ef75ecc
DE
105 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
106
aae1c79a
DE
1072010-12-07 Doug Evans <dje@google.com>
108
74dd2ca6
DE
109 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
110 gdb_realpath.
111
aae1c79a
DE
112 PR python/12227
113 * NEWS: Mention -data-directory.
114 * main.c (captured_main): Recognize -data-directory.
115
8e0e408a
MK
1162010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
117
118 * mi/mi-parse.c (mi_parse): Missing else.
119
97fc68fe
MM
1202010-12-04 Masaki Muranaka <monaka@monami-software.com>
121
122 * configure.tgt: Accept microblaze*-*-linux* for linux target
123 and microblaze*-*-* for as target.
124
d03a3acf
KS
1252010-12-02 Keith Seitz <keiths@redhat.com>
126
127 * linespec.c (find_method): Move name canonicalization outside
128 the loop.
129 Be paranoid and use a cleanup.
130
148c11bf
DE
1312010-12-01 Doug Evans <dje@google.com>
132
133 * dwarf2read.c (save_gdb_index_command): Add comment.
134
4aac0db7
UW
1352010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
136
137 * valops.c (value_assign): Returned value is never lazy. If a
138 C++ class type is returned, fix incorrect enclosing type / embedded
139 offset. If internal variable is returned, allocate new internalvar
140 value using value_of_internalvar.
141
142 * NEWS: Document changes in behavior of "print x = 0" and similar
143 expressions.
144
4e04c971
DE
1452010-11-29 Doug Evans <dje@google.com>
146
147 * python/lib/gdb/printing.py (register_pretty_printer): Change
148 printer-name:subprinter-name to printer-name;subprinter-name.
149 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
150 Ditto.
151 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
152
8cf6f0b1
TT
1532010-11-29 Tom Tromey <tromey@redhat.com>
154
155 * opencl-lang.c (lval_func_check_synthetic_pointer): New
156 function.
157 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
158 New fields.
159 (value_bits_synthetic_pointer): Declare.
160 * value.c (value_bits_synthetic_pointer): New function.
161 * valprint.c (valprint_check_validity): Handle synthetic
162 pointers.
163 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
164 * valarith.c (value_ptradd): Use set_value_component_location.
165 * p-valprint.c (pascal_object_print_value_fields): Handle
166 synthetic pointers.
167 * jv-valprint.c (java_print_value_fields): Handle synthetic
168 pointers.
169 * dwarf2read.c (dwarf_stack_op_name): Add
170 DW_OP_GNU_implicit_pointer.
171 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
172 arguments. Handle location lists.
173 (fill_in_loclist_baton): New function.
174 (dwarf2_symbol_mark_computed): Use it.
175 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
176 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
177 arguments.
178 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
179 find_location_expression. No longer static. Update all callers.
180 (dwarf_expr_frame_pc): New function.
181 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
182 all callers.
183 (struct piece_closure) <per_cu>: New field.
184 (allocate_piece_closure): Add per_cu argument.
185 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
186 (check_pieced_value_bits): Remove validity argument, add check_for
187 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
188 (check_pieced_value_validity, check_pieced_value_invalid):
189 Update.
190 (check_pieced_synthetic_pointer): New function.
191 (get_frame_address_in_block_wrapper): New function.
192 (indirect_pieced_value): New function.
193 (pieced_value_funcs): Update.
194 (invalid_synthetic_pointer): New function.
195 (dwarf2_evaluate_loc_desc_full): Rename from
196 dwarf2_evaluate_loc_desc. Add byte_offset argument.
197 (dwarf2_evaluate_loc_desc): Rewrite.
198 (dwarf2_loc_desc_needs_frame): Set new field on context.
199 (get_ax_pc): New function.
200 (disassemble_dwarf_expression): Handle
201 DW_OP_GNU_implicit_pointer.
202 * dwarf2expr.h (enum dwarf_value_location)
203 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
204 (struct dwarf_expr_context) <get_frame_pc>: New field.
205 (struct dwarf_expr_piece) <v.ptr>: New field.
206 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
207 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
208 * dwarf2-frame.c (no_get_frame_pc): New function.
209 (execute_stack_op): Set new field on context.
210 * cp-valprint.c (cp_print_value_fields): Handle synthetic
211 pointers.
212
94b6973e
PM
2132010-11-29 Phil Muldoon <pmuldoon@redhat.com>
214
215 PR python/12199
216
217 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
218
8358c15c
JK
2192010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
220
221 Fix step_resume_breakpoint unsaved during an infcall.
222 * gdbthread.h (struct thread_control_state): Move here field
223 step_resume_breakpoint ...
224 (struct thread_info): ... from here.
225 * infrun.c (save_infcall_control_state): Reset
226 control.step_resume_breakpoint to NULL.
227 (restore_infcall_control_state, discard_infcall_control_state): Delete
228 control.step_resume_breakpoint.
229 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
230 the moved field.
231
16c381f0
JK
2322010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
233
234 Rename and move inferior_thread_state and inferior_status.
235 * gdbthread.h (struct thread_control_state): New struct, move fields
236 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
237 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
238 stop_step and stop_bpstat here from struct thread_info.
239 (struct thread_suspend_state): New struct, move field stop_signal here
240 from struct thread_info.
241 (struct thread_info): Move the fields above from this struct.
242 * inferior.h: Move the inferior_thread_state and inferior_status
243 declarations comment to their definitions at infrun.c.
244 (struct inferior_control_state): New struct, move field stop_soon from
245 struct inferior here.
246 (struct inferior_suspend_state): New empty struct.
247 (struct inferior): New fields control and suspend. Move out field
248 stop_soon.
249 * infrun.c (struct inferior_thread_state): Rename to ...
250 (infcall_suspend_state): ... here. Replace field stop_signal by
251 fields thread_suspend and inferior_suspend.
252 (save_inferior_thread_state): Rename to ...
253 (save_infcall_suspend_state): ... here. New variable inf. Update the
254 code for new fields.
255 (restore_inferior_thread_state): Rename to ...
256 (restore_infcall_suspend_state): ... here. New variable inf. Update
257 the code for new fields.
258 (do_restore_inferior_thread_state_cleanup): Rename to ...
259 (do_restore_infcall_suspend_state_cleanup): ... here.
260 (make_cleanup_restore_inferior_thread_state): Rename to ...
261 (make_cleanup_restore_infcall_suspend_state): ... here.
262 (discard_inferior_thread_state): Rename to ...
263 (discard_infcall_suspend_state): ... here.
264 (get_inferior_thread_state_regcache): Rename to ...
265 (get_infcall_suspend_state_regcache): ... here.
266 (struct inferior_status): Rename to ...
267 (struct infcall_control_state): ... here. Replace fields
268 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
269 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
270 stop_step, stop_bpstat and stop_soon by fields thread_control and
271 inferior_control.
272 (save_inferior_status): Rename to ...
273 (save_infcall_control_state): ... here. Update the code for new
274 fields.
275 (restore_inferior_status): Rename to ...
276 (restore_infcall_control_state): ... here. Update the code for new
277 fields.
278 (do_restore_inferior_status_cleanup): Rename to ...
279 (do_restore_infcall_control_state_cleanup): ... here.
280 (make_cleanup_restore_inferior_status): Rename to ...
281 (make_cleanup_restore_infcall_control_state): ... here.
282 (discard_inferior_status): Rename to ...
283 (discard_infcall_control_state): ... here.
284 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
285 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
286 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
287 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
288 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
289 references to the moved fields and renamed functions.
290
35515841
JK
2912010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
292
293 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
294 the comment.
295 (save_inferior_thread_state): Reset tp->stop_signal.
296
fef8420a
JK
2972010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
298
7ea14533
JK
299 * infcall.c (call_function_by_hand): Remove variable
300 caller_state_cleanup.
fef8420a 301
f5a8e22b
MK
3022010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
303
304 PR breakpoints/12217
305
306 * breakpoint.c (is_marker_spec): Check for NULL.
307
50389644
PA
3082010-11-25 Pedro Alves <pedro@codesourcery.com>
309
310 * breakpoint.h: No longer include python.h or python-internal.h.
311 (struct breakpoint_object): Forward declare.
312 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
313 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
314 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
315 PyObject pointer.
316 (gdbpy_breakpoint_created): Remove casts around py_bp_object
317 accesses.
318
50a99728
JB
3192010-11-24 Joel Brobecker <brobecker@adacore.com>
320
321 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
322 only if HAVE_ELF is defined.
323
d82142e2
JK
3242010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
325
a418ecb5
JK
326 Code cleanup.
327 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
328 (save_inferior_status) <stepping_over_breakpoint>
329 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
330 trap_expected.
331 (struct inferior_status) <step_resume_break_address>: Remove.
332
3332010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
334
335 Code cleanup.
d82142e2
JK
336 * infrun.c (struct inferior_status, save_inferior_status)
337 (restore_inferior_status): Group and reorder the fields, comment their
338 groups.
339
2edb89d3
JK
3402010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
341
342 Code cleanup.
343 * dictionary.c
344 (struct dict_vector) <iter_match_first, iter_match_next>
345 (iter_match_first_hashed, iter_match_next_hashed)
346 (iter_match_first_linear, iter_match_next_linear)
347 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
348 (iter_match_next_hashed, iter_match_first_linear)
349 (iter_match_next_linear): Use symbol_compare_ftype.
350 * dictionary.h: Include symfile.h.
351 (dict_iter_match_first, dict_iter_match_next): Use
352 symbol_compare_ftype.
353 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
354 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
355 (map_matching_symbols_psymtab): Likewise.
356 * symfile.h (symbol_compare_ftype): New typedef.
357 (struct quick_symbol_functions) <map_matching_symbols): Use
358 symbol_compare_ftype.
359
5ae98d25
TT
3602010-11-23 Tom Tromey <tromey@redhat.com>
361
39037522
TT
362 * configure: Rebuild.
363 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
364
3652010-11-19 Tom Tromey <tromey@redhat.com>
366
5ae98d25
TT
367 * Makefile.in (SUBDIRS): Add doc.
368 * configure: Rebuild.
369 * configure.ac: Don't configure in doc. Create doc/Makefile.
370
ea976c60
PM
3712010-11-23 Phil Muldoon <pmuldoon@redhat.com>
372
373 PR python/12212
374
375 * python/py-inferior.c (find_thread_object): Check if PIDGET
376 returns 0.
377
378010-11-22 Joel Brobecker <brobecker@adacore.com>
d94e4f4f
JB
379
380 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
381
96dbd2c1
JB
3822010-11-22 Joel Brobecker <brobecker@adacore.com>
383
384 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
385 Return the original type if the main type portions match rather
386 than when the type themselves match.
387
27f2a97b
JB
3882010-11-22 Joel Brobecker <brobecker@adacore.com>
389
390 * ada-lang.c (ada_template_to_fixed_record_type_1):
391 For dynamic fields, check the field size against the maximum
392 object size.
393
1324a0d9
JB
3942010-11-22 Joel Brobecker <brobecker@adacore.com>
395
396 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
397 function.
398 (mips_irix_n32_stack_tramp_frame): New static global.
399 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
400 list of unwinder.
401
09e7f15b
JB
4022010-11-22 Jerome Guitton <guitton@adacore.com>
403
404 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
405 ATCB symbols.
406
3a867c22
JB
4072010-11-22 Joel Brobecker <brobecker@adacore.com>
408
409 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
410 if type1 is a typedef.
411
df30368d
JB
4122010-11-22 Joel Brobecker <brobecker@adacore.com>
413
414 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
415 "_finalizer" to the list.
416
4889bbbc
JB
4172010-11-22 Joel Brobecker <brobecker@adacore.com>
418
419 * symfile.c: Remove all "#if 0"/"#endif" blocks.
420
0d14a781
JB
4212010-11-22 Joel Brobecker <brobecker@adacore.com>
422
423 * symfile.c: Add missing second space after period in various comments.
424
feb864b7
JB
4252010-11-22 Joel Brobecker <brobecker@adacore.com>
426
427 * ada-typeprint.c (print_array_type): Fix formatting in comment.
428 (print_selected_record_field_types): Fix formatting in function
429 documentation.
430
04f9d4d0
JB
4312010-11-22 Joel Brobecker <brobecker@adacore.com>
432
433 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
434 in name of "show ravenscar" prefix command name.
435
b64edec4
JB
4362010-11-22 Joel Brobecker <brobecker@adacore.com>
437
438 * ravenscar-thread.c (show_ravenscar_task_switching_command):
439 Add missing '\n' in output.
440
7f39f34a
JB
4412010-11-22 Joel Brobecker <brobecker@adacore.com>
442
443 * ravenscar-thread.c (running_thread_name): Change value.
444 (read_thread_id): Remove advance declaration.
445 (get_running_thread_msymbol): New function.
446 (has_ravenscar_runtime): Use get_running_thread_msymbol to
447 compute msym_running_thread.
448 (get_running_thread_id): Renames read_thread_id. Slight modifications
449 to not take any argument anymore, using get_running_thread_msymbol
450 to determine which symbol to use instead.
451 (ravenscar_running_thread): Use get_running_thread_id instead of
452 read_thread_id.
453
f3890d59
JB
4542010-11-22 Joel Brobecker <brobecker@adacore.com>
455
456 * ravenscar-sparc-thread.c (supply_register_at_address):
457 Fix passing of buf in call to regcache_raw_supply.
458
594e8718
JK
4592010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
462
7ba86c9e
TT
4632010-11-22 Tom Tromey <tromey@redhat.com>
464
465 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
466
1bfda48e
KS
4672010-11-19 Keith Seitz <keiths@redhat.com>
468
469 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
470 Remove extraneous '/' after $(DESTDIR).
471 (PYTHON_INSTALL_DIR): Likewise.
472
3f1eff0a
JK
4732010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
474
475 Fix stale memory references.
476 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
477 xfree, new comment.
478
954d8cae
TT
4792010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
480 Tom Tromey <tromey@redhat.com>
481
482 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
483 (.PHONY): Remove for .y outputs.
484
d53d4ac5
TT
4852010-11-19 Will Drewry <wad@google.com>
486 Tavis Ormandy <taviso@google.com>
487 Jan Kratochvil <jan.kratochvil@redhat.com>
488
489 * dwarf2read.c (decode_locdesc): Enforce location description stack
490 boundaries.
491
77bc0675
PM
4922010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
493
494 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
495 instruction is found.
496
ba19bb4d
TT
4972010-11-17 Tom Tromey <tromey@redhat.com>
498
499 * value.c (value_entirely_optimized_out): Check the
500 'check_any_valid' field.
501
19f220c3
JK
5022010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
503
504 * ada-lang.c (modify_general_field): Remove.
505 (make_array_descriptor): Replace all modify_general_field calls by
506 modify_field.
507 * value.c (modify_field): Update comment. New variable bytesize.
508 Normalize BITPOS. Initialize BYTESIZE, use it.
509
87df528e
JK
5102010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
511
512 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
513 elements after xfree.
514
97924a97
TT
5152010-11-16 Tom Tromey <tromey@redhat.com>
516
517 * gdb-add-index.sh: Really remove.
518
9816fde3
JK
5192010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
520
521 Code cleanup.
522 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
523 (init_one_comp_unit): ... this one.
524 (prepare_one_comp_unit): New prototype.
525 (dw2_require_line_header, process_psymtab_comp_unit): Use
526 init_one_comp_unit.
527 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
528 (load_partial_comp_unit): Remove variable attr. Use
529 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
530 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
531 prepare_one_comp_unit.
532 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
533 Use prepare_one_comp_unit.
534 (alloc_one_comp_unit): Rename to ...
535 (init_one_comp_unit): ... here and remove there calloc, new parameter
536 cu.
537 (prepare_one_comp_unit): New function.
538
73c964d6
PM
5392010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
540
541 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
542 possible used of uninitialized variable.
543
74af9197
NF
5442010-11-12 Nathan Froyd <froydnj@codesourcery.com>
545
546 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
547 (rs6000_gdbarch_init): Call it.
548
e52d5016
NF
5492010-11-12 Nathan Froyd <froydnj@codesourcery.com>
550
551 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
552 instructions if debugging an E500 binary.
553
621c8364
TT
5542010-11-12 Tom Tromey <tromey@redhat.com>
555
556 * varobj.c (value_get_print_value): Rearrange. Pass stream to
557 apply_varobj_pretty_printer.
558 * c-lang.c: Include exceptions.h.
559 (c_get_string): Throw MEMORY_ERROR when appropriate.
560 * python/py-prettyprint.c (enum string_repr_result): New.
561 (print_stack_unless_memory_error): New function.
562 (print_string_repr): Change return type. Use
563 print_stack_unless_memory_error.
564 (print_children): Use print_stack_unless_memory_error.
565 (apply_val_pretty_printer): Update. Don't print children if
566 string representation threw an exception.
567 (apply_varobj_pretty_printer): Add 'stream' argument. Use
568 print_stack_unless_memory_error.
569 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
570 globals.
571 (_initialize_python): Initialize them.
572 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
573 gdbpy_convert_exception.
574 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
575 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
576 (gdbpy_convert_exception): Declare.
577 (apply_varobj_pretty_printer): Update.
578 * python/py-utils.c (gdbpy_convert_exception): New function.
579
f1b9e6e7
MK
5802010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
581
582 * mi/mi-main.c (mi_cmd_target_detach): Accept new
583 thread-group id format.
584
74884f7b
JK
5852010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
586
587 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
588
84f4c1fe
PM
5892010-11-11 Phil Muldoon <pmuldoon@redhat.com>
590
591 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
592 NULL.
593 (BPPY_SET_REQUIRE_VALID): Ditto.
594 (bpnum_is_valid): Delete function.
595 (bppy_get_visibility): New function.
596 (bppy_new): Parse for, and validate internal keyword. Pass
597 internal keyword to breakpoint or watchpoint functions.
598 (build_bp_list): New function.
599 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
600 iterate_over_breakpoints.
601 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
602 look-aside vector.
603 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
604 to internal breakpoint chain.
605
606 * breakpoint.c (set_breakpoint_number): New function.
607 (breakpoint_1): Check if breakpoint number is more than zero.
608 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
609 (create_breakpoint_sal): Take a new parameter called internal.
610 Call set_breakpoint_number with internal parameter. Do not
611 mention internal breakpoints. All callers updated.
612 (create_breakpoint): Ditto.
613 (create_breakpoints_sal): Ditto.
614 (watch_command_1): Ditto.
615 (watch_command_wrapper): Take a new parameter called internal.
616 All callers updated.
617 (rwatch_command_wrapper): Ditto.
618 (awatch_command_wrapper): Ditto.
619 (save_breakpoints): Update breakpoint save condition check.
620 (iterate_over_breakpoints): New function.
621 * breakpoint.h: Add conditional python includes. Add py_bp_object
622 and comment to struct breakpoint. Update all callers.
623 * defs.h: Add PyObject definition for GDB builds without Python.
624
4dfea560
DE
6252010-11-10 Doug Evans <dje@google.com>
626
f61a2da7
DE
627 * python/lib/gdb/command/pretty_printers.py
628 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
629
4dfea560
DE
630 * value.c (set_value_enclosing_type): Renamed from
631 value_change_enclosing_type. All callers updated.
632 * value.h (set_value_enclosing_type): Update.
633 * valops.c (value_full_object): Always return a copy if we need to
634 make changes to the input value.
635
a1442452
PA
6362010-11-09 Pedro Alves <pedro@codesourcery.com>
637
638 * breakpoint.c (watch_command_1): Get a pointer of the lazy
639 version of the expression's value, even if reading the value from
640 memory fails. When creating a -location watchpoint, get the
641 value's address from the lazy value pointer.
642
803b5f95
JK
6432010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
644
645 * infrun.c (restore_inferior_thread_state): Use
646 discard_inferior_thread_state to free the data.
647 (discard_inferior_thread_state): xfree also siginfo_data.
648
99e7ae30
DE
6492010-11-05 Doug Evans <dje@google.com>
650
651 Make gdb.parameter("directories") work.
652 New command "set directories".
653 * NEWS: Document them.
654 * source.c (set_directories_command): New function.
655 (show_directories_1): Renamed from show_directories.
656 All callers updated.
657 (show_directories_command): New function.
658 (_initialize_source): Install "directories" as a set/show
659 variable instead of just a show command.
660
f4b8a18d
KW
6612010-11-05 Ken Werner <ken.werner@de.ibm.com>
662
663 * NEWS: Mention OpenCL C language support.
664 * Makefile.in (SFILES): Add opencl-lang.c.
665 (COMMON_OBS): Add opencl-lang.o.
666 * opencl-lang.c: New File
667 * defs.h (enum language): Add language_opencl.
668 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
669 IBM XL C OpenCL compiler.
670 * c-lang.h: Include "parser-defs.h".
671 (evaluate_subexp_c): Declare.
672 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
673 (c_op_print_tab): Add declaration.
674 * eval.c (binop_promote): Handle language_opencl.
675 * c-exp.y: Lookup the primitive types instead of referring to the
676 builtins.
677
075ff26d
JK
6782010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
679
680 Fix configure --enable-plugins --without-python.
681 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
682 * configure: Regenerate.
683
14ad3217
JK
6842010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
685
686 * solib.c (solib_read_symbols): Call exception_fprintf even without
687 FROM_TTY. Print also so->so_name.
688
a9d5ef47
SW
6892010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
690
691 * gdbtypes.h (struct rank): Created subrank.
692 * gdbtypes.c: Initialized subrank for all
693 'BADNESS' constants.
694 (distance_to_ancestor): New function.
695 (is_ancestor): Use distance_to_ancestor.
696 (is_public_ancestor): Ditto.
697 (sum_ranks): Handle subrank.
698 (compare_ranks): Ditto.
699 (rank_one_type): Subrank base conversions.
700
6403aeea
SW
7012010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
702
703 * gdbtypes.h: Create struct rank.
704 Convert all 'BADNESS' macros to const struct rank declarations.
705 (sum_ranks): New function.
706 (compare_ranks): New function.
707 * valops.c (find_oload_champ): Updated.
708 (classify_oload_match): Use compare_ranks.
709 Improved comments.
710 (compare_parameters): Use compare_ranks.
711 * gdbtypes.c: Initialize 'BADNESS' constants.
712 (sum_ranks): New function.
713 (compare_ranks): New function.
714 (compare_badness): Use compare_ranks.
715 (rank_function): Use global constants instead of literals.
716 (rank_one_type): Ditto.
717 Return struct rank.
718 Use sum_ranks.
719
23fa7f66
DE
7202010-11-04 Doug Evans <dje@google.com>
721
722 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
723 (find_pretty_printer): Fix comments.
724
608bcef2
HZ
7252010-11-04 Hui Zhu <teawater@gmail.com>
726
727 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
728
9addb3b9
JB
7292010-11-03 Joel Brobecker <brobecker@adacore.com>
730
731 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
732 and `len' declaration and computation inside block where they
733 are being used.
734
75be741b
JB
7352010-11-03 Joel Brobecker <brobecker@adacore.com>
736
737 * valprint.c (val_print_array_elements): Put back handling of
738 empty arrays.
739
dbc98a8b
KW
7402010-11-03 Ken Werner <ken.werner@de.ibm.com>
741
742 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
743 DIE and set the length of the type.
744 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
745 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
746 return 0 if the corresponding bounds of the type are undefined.
747 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
748 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
749 (val_print_array_elements): Use get_array_bounds to compute the number
750 of array elements instead of dividing the length of the array by the
751 length of the element types.
752 * valarith.c (vector_binop): Likewise.
753 * valops.c (value_cast): Likewise.
754 * c-valprint.c (c_val_print): Likewise.
755 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
756
120bd360
KW
7572010-11-03 Ken Werner <ken.werner@de.ibm.com>
758
759 * valarith.c (value_pos, value_neg, value_complement): Handle
760 vector types.
761 * valops.c (value_one): Likewise.
762
c37f7098
KW
7632010-11-03 Ken Werner <ken.werner@de.ibm.com>
764
765 * value.h (value_non_lval): Declare.
766 * value.c (value_non_lval): New function.
767 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
768 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
769 non-lvalue.
770
7b51bc51
DE
7712010-11-02 Doug Evans <dje@google.com>
772
773 New python module gdb.printing, and new commands info pretty-printer,
774 enable pretty-printer, disable pretty-printer.
775 * NEWS: Mention them.
776 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
777 gdb/command/__init__.py, gdb/command/pretty_printers.py.
778 * python/lib/gdb/__init__.py: Install pretty-printer commands.
779 * python/lib/gdb/printing.py: New file.
780 * python/lib/gdb/command/__init__.py: New file.
781 * python/lib/gdb/command/pretty_printers.py: New file.
782
50c97f38
TT
7832010-11-02 Tom Tromey <tromey@redhat.com>
784
785 * NEWS: Mention Guile removal.
786 * defs.h (enum language) <language_scm>: Remove.
787 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
788 scm-valprint.c.
789 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
790 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
791 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
792 Remove.
793
9dea9163
DE
7942010-11-02 Doug Evans <dje@google.com>
795
796 * top.c: #include "python/python.h".
797 (gdb_init): Add a comment regarding initialize_all_files.
798 Call finish_python_initialization at the end.
799 * python/python.h (finish_python_initialization): Declare.
800 * python/python.c (finish_python_initialization): New function.
801 (_initialize_python): Move python-implemented initialization there
802 and call it.
803 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
804
a289b8f6
JK
8052010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
806
807 Revert:
808 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
809 Pedro Alves <pedro@codesourcery.com>
810 * gdbthread.h (currently_stepping): New declaration.
811 * infrun.c (currently_stepping): Remove the forward declaration.
812 (currently_stepping): Make it global.
813 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
814 variables tp and step, initialized them. Pass STEP to to_resume.
815 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
816 * remote.c (currently_stepping_callback): New.
817 (remote_vcont_resume)
818 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
819 New variable tp. Call currently_stepping_callback and step such
820 thread.
821
2209c807
HZ
8222010-11-01 Hui Zhu <teawater@gmail.com>
823
824 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
825
0a2a54b8
HZ
8262010-10-28 Hui Zhu <teawater@gmail.com>
827
828 * tracepoint.c (trace_save): Change utp->actions to
829 utp->step_actions.
830
284a3db3
JB
8312010-10-26 Joel Brobecker <brobecker@adacore.com>
832
833 * (_FILE_OFFSET_BITS): Fix typo in comment.
834
aed1781d
JB
8352010-10-26 Joel Brobecker <brobecker@adacore.com>
836
837 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
838 (PyEval_InitThreads): Remove duplicate. Define as nothing.
839 (PyEval_ReleaseLock): Define as nothing.
840
1e3fad37
JB
8412010-10-26 Joel Brobecker <brobecker@adacore.com>
842
843 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
844 by call to FILENAME_CMP.
845
558b1900
JB
8462010-10-26 Joel Brobecker <brobecker@adacore.com>
847
848 * dictionary.c (dict_hash): Move assignment out of if condition.
849
f474844c
JZ
8502010-10-22 Jie Zhang <jie@codesourcery.com>
851
852 * Makefile.in (install): Remove dependency of install-only and
853 recursively invoke make for install-only.
854 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
855 (install): Pass FLAGS_TO_PASS when recursively make install-only.
856
8991e9fa
HZ
8572010-10-20 Hui Zhu <teawater@gmail.com>
858
859 * tracepoint.c (tfile_get_traceframe_address): Call
860 extract_signed_integer.
861 (tfile_trace_find): Call extract_signed_integer and
862 extract_unsigned_integer. Change data_size to unsigned int.
863 (tfile_fetch_registers): Call extract_unsigned_integer.
864 (tfile_xfer_partial): Ditto.
865 (tfile_get_trace_state_variable_value): Call
866 extract_signed_integer and extract_unsigned_integer.
867
21bce120
VP
8682010-10-20 Vladimir Prus <vladimir@codesourcery.com>
869
870 * remote.c (remote_get_threadlist): If we got empty
871 response, bail out immediately, and don't emit any
872 warnings.
873
ad8b5167
UW
8742010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
875
876 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
877 for "mov pc, REG" as well.
878 (thumb_instruction_changes_pc): Likewise.
879
79afc5ef
SW
8802010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
881
882 PR C++/11500:
883 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
884 * eval.c (evaluate_subexp_standard): Check for overload of
885 'operator->'.
886 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
887 (value_x_unop): Ditto.
888 * valops.c: Include "exceptions.h".
889 (find_overload_match): Throw NOT_FOUND_ERROR.
890 (value_struct_elt): Ditto.
891
cca56ac7
TT
8922010-10-19 Tom Tromey <tromey@redhat.com>
893
894 * python/py-cmd.c (cmdpy_function): Unreference exception state.
895
026ffab7
SW
8962010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
897
898 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
899 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
900 for conversion.
901 Make all other conversions illegal.
902
8c540a24
DE
9032010-10-18 Doug Evans <dje@google.com>
904
905 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
906 assumptions of when this case happens. Print "<unnamed typedef>".
907
3a772aa4
TT
9082010-10-18 Tom Tromey <tromey@redhat.com>
909
910 * valprint.c (val_print_string): Pass 'encoding' to
911 LA_PRINT_STRING.
912
01f8c46d
JK
9132010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
914
915 Fix the `stopped language detection' testcase for gcc-4.5.
916 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
917 * symfile.c (set_initial_language): Move variable filename to a more
918 inner block. Prefer LANGUAGE_OF_MAIN.
919 * symtab.c (language_of_main): New variable.
920 (set_main_name): Always reset LANGUAGE_OF_MAIN.
921 * symtab.h (language_of_main): New declaration.
922
8aeb23f3
JK
9232010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
924 Pedro Alves <pedro@codesourcery.com>
925
926 * gdbthread.h (currently_stepping): New declaration.
927 * infrun.c (currently_stepping): Remove the forward declaration.
928 (currently_stepping): Make it global.
929 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
930 variables tp and step, initialized them. Pass STEP to to_resume.
931 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
932 * remote.c (currently_stepping_callback): New.
933 (remote_vcont_resume)
934 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
935 New variable tp. Call currently_stepping_callback and step such
936 thread.
937
c1e56572
JK
9382010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
939
940 * infrun.c (follow_exec): Replace symbol_file_add_main by
941 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
942 breakpoint_re_set.
943 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
944 clear_symtab_users.
945 * objfiles.c (free_all_objfiles): Likewise.
946 * remote-m32r-sdi.c (m32r_load): Likewise.
947 * solib-som.c (som_solib_create_inferior_hook): Likewise.
948 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
949 clear_symtab_users with ADD_FLAGS.
950 (reread_symbols): Use parameter 0 for clear_symtab_users.
951 (clear_symtab_users): New parameter add_flags. Do not call
952 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
953 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
954 * symtab.h (clear_symtab_users): New parameter add_flags.
955
3a182a69
JK
9562010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
957
958 Fix GCC false warning.
959 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
960
3a9d7214
PM
9612010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
962
963 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
964 display of type of method arguments.
965
09ca9e2e
TT
9662010-10-15 Tom Tromey <tromey@redhat.com>
967
968 PR python/11948:
969 * varobj.c (value_get_print_value): Use val_print_string to print
970 lazy strings.
971 * python/py-prettyprint.c (print_string_repr): Use
972 val_print_string to print lazy strings. Fix cleanup logic.
973 (print_children): Likewise.
974 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
975 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
976 Change return type to 'void', add 'addr' argument.
977 * value.h (val_print_string): Update.
978 * valprint.c (val_print_string): Add 'encoding' argument.
979 * printcmd.c (print_formatted): Update.
980 * p-valprint.c (pascal_val_print): Update.
981 * m2-valprint.c (print_unpacked_pointer): Update.
982 (m2_print_array_contents): Likewise.
983 * jv-valprint.c (java_value_print): Update.
984 * f-valprint.c (f_val_print): Update.
985 * c-valprint.c (c_val_print): Update.
986 * auxv.c (fprint_target_auxv): Update.
987
92163a10
JK
9882010-10-15 Doug Evans <dje@google.com>
989 Jan Kratochvil <jan.kratochvil@redhat.com>
990
991 PR exp/12117
992 * gdbtypes.c (check_typedef): Clean up function comment.
993 Keep track of instance flags as we strip typedefs and create a new
994 type to preserve them if necessary.
995 * gdbtypes.h (type) <instance_flags>: Extend the comment.
996
dae71413
PM
9972010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
998
999 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1000
7062b0a0
SW
10012010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1002
1003 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1004 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1005 to...
1006 (types_equal): ...here. And changed it as follows:
1007 Outside of typedefs type must be of the same TYPE_CODE.
1008 When compairing two pointers or references they are equal if their
1009 targets are equal.
1010 Correct pointer conversions.
1011
5c3da5ea
PM
10122010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1013
1014 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1015 having fields without names.
1016
577ce03a
TT
10172010-10-13 Tom Tromey <tromey@redhat.com>
1018
1019 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1020
a737a51b
DE
10212010-10-13 Doug Evans <dje@google.com>
1022
0e3509db
DE
1023 New python module gdb.types.
1024 * NEWS: Document it.
1025 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1026 * python/lib/gdb/types.py: New file.
1027
a737a51b
DE
1028 * c-typeprint.c: Whitespace cleanup.
1029 (cp_type_print_method_args): Remove unnecessary forward decl.
1030 (cp_type_print_derivation_info): Ditto.
1031 (c_type_print_varspec_prefix): Mark as static at definition.
1032 (c_type_print_modifier): Fix arg descriptions.
1033
8dc78533
JK
10342010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1035
1036 * python/py-breakpoint.c (bppy_set_condition): New comment.
1037 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1038 failed PyUnicode_Decode.
1039 (cmdpy_completer): Skip element for failed
1040 python_string_to_host_string.
1041 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1042 * python/py-frame.c (frapy_read_var): Extend the function comment.
1043 * python/py-function.c (fnpy_init): Return -1 on failed
1044 python_string_to_host_string.
1045 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1046 the function comment.
1047 (infpy_search_memory): Extend the function comment. Remove the
1048 PyErr_SetString call on already set error state.
1049 * python/py-param.c (set_parameter_value): Extend the function
1050 comment. Return -1 on failed python_string_to_host_string, twice.
1051 (set_attr): Extend the function comment.
1052 (compute_enum_values): Extend the function comment. New variable
1053 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1054 failed python_string_to_host_string.
1055 (get_doc_string): Call gdbpy_print_stack on failed
1056 python_string_to_host_string.
1057 (parmpy_init): Extend the function comment.
1058 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1059 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1060 failed python_string_to_host_string.
1061 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1062 (valpy_binop, valpy_richcompare): Extend the function comment.
1063 * python/python.c
1064 (struct python_env) <error_type, error_value, error_traceback>: New
1065 fields.
1066 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1067 (ensure_python_env): Call PyErr_Fetch.
1068 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1069 failed convert_value_from_python.
1070 (value_get_print_value): Call gdbpy_print_stack on failed
1071 python_string_to_target_python_string.
1072
1bdb0c54
TT
10732010-10-12 Tom Tromey <tromey@redhat.com>
1074
1075 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1076
0526b37a
SW
10772010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1078
1079 * gdbtypes.c (do_is_ancestor): New function.
1080 (is_ancestor): Use do_is_ancestor.
1081 (is_public_ancestor): Use do_is_ancestor.
1082
c1b5be38
PM
10832010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1084
1085 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1086
68770265
MGD
10872010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1088
1089 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1090
64b00020
DE
10912010-10-11 Doug Evans <dje@google.com>
1092
1093 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1094 the address space id too.
1095
43b8e241
JK
10962010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1097
1098 Fix attaching to re-prelinked executables on ppc64.
1099 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1100 initialize it, try to adjust FILESZ field by it.
1101
417b5110
DJ
11022010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1103
1104 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1105 messages if info_verbose.
1106
3bdf2bbd
KW
11072010-10-08 Ken Werner <ken.werner@de.ibm.com>
1108
1109 * valops.c (value_cast): Handle vector types.
1110 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1111
ec3d575a
UW
11122010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1113
1114 * arm-tdep.c (thumb_expand_immediate): New function.
1115 (thumb_instruction_changes_pc): Likewise.
1116 (thumb2_instruction_changes_pc): Likewise.
1117 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1118 prologue parsing. Improved support for optimized code.
1119 (thumb_scan_prologue): Do not reply on line-number information,
1120 use same heuristics as arm_scan_prologue insead.
1121 (skip_prologue_function): Accept functions
1122 "__tls_get_addr" and "__aeabi_read_tp".
1123
4024ca99
UW
11242010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1125 Daniel Jacobowitz <dan@codesourcery.com>
1126
1127 * arm-tdep.c (thumb_in_function_epilogue_p)
1128 (arm_in_function_epilogue_p): New.
1129 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1130 gdbarch_in_function_epilogue_p callback.
1131
855c153f
DE
11322010-10-07 Doug Evans <dje@google.com>
1133
00e14314
DE
1134 * cc-with-index.sh (output_file): Default to a.out.
1135
3876f04e
DE
1136 * dwarf2read.c (mapped_index): Rename member index_table to
1137 symbol_table and index_table_slots to symbol_table_slots.
1138 All uses updated.
1139 (create_symbol_hash_table): Renamed from create_index_table.
1140 All callers updated.
1141 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1142 (write_hash_table): Rename local index_table to symbol_hash_table.
1143
855c153f
DE
1144 * addrmap.h (addrmap_foreach_fn): New typedef.
1145 (addrmap_foreach): Declare.
1146 * addrmap.c (struct addrmap_funcs): New member foreach.
1147 (addrmap_foreach): New function.
1148 (addrmap_fixed_foreach): New function.
1149 (addrmap_fixed_funcs): Update.
1150 (struct mutable_foreach_data): New struct.
1151 (addrmap_mutable_foreach_worker): New function.
1152 (addrmap_mutable_foreach): New function.
1153 (addrmap_mutable_funcs): Update.
1154
1d2a4540
PH
11552010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1156
1157 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1158 more cases.
1159
40658b94
PH
11602010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1161
1162 * ada-lang.c (full_match): Declare.
1163 (ada_match_name): Rename to match_name (we should avoid prefixing static
1164 symbols with "ada_").
1165 (match_name): New name for ada_match_name.
1166 (struct ada_psym_data): Remove and replace with...
1167 (struct match_data): User data for map_matching_symbols.
1168 (ada_add_psyms): Remove.
1169 (aux_add_nonlocal_symbols): New function, used as callback for
1170 map_matching_symbols.
1171 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1172 symbols.
1173 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1174 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1175 Rework to use map_matching_symbols instead of map_ada_symtabs.
1176 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1177 * psymtab.c: Include dependency on dictionary.h.
1178 (match_partial_symbol): New function.
1179 (ada_lookup_partial_symbol): Remove.
1180 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1181 (map_matching_symbols_psymtab): New function.
1182 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1183 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1184
c4d840bd
PH
11852010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1186
1187 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
1188 (wild_match): Change API to be consistent with that of strcmp_iw;
1189 return 0 for a match, and switch operand order.
1190 (full_match): New function.
1191 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1192 matching to allow use of hashing.
1193 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1194 iter_name_next ot iter_match_first, iter_match_next.
1195 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1196 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1197 (iter_name_first_linear): Replace with iter_match_first_linear.
1198 (iter_name_next_linear): Replace with iter_match_next_linear.
1199 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1200 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1201 (dict_iter_match_first): New function.
1202 (dict_iter_match_next): New function.
1203 (dict_hash): New function.
1204 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1205 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 1206
543ecec7
DE
12072010-10-06 Doug Evans <dje@google.com>
1208
1209 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1210
2f608a3a
KW
12112010-10-06 Ken Werner <ken.werner@de.ibm.com>
1212
1213 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1214
aa2e2d8d
DE
12152010-10-06 Doug Evans <dje@google.com>
1216
9c9606fb
DE
1217 * Makefile.in (REQUIRED_SUBDIRS): New var.
1218 (subdir_do): Verify required subdir Makefiles exist.
1219
aa2e2d8d
DE
1220 Create subdir data-directory.
1221 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1222 data-directory/Makefile.in.
1223 (SUBDIRS): Add data-directory.
1224 (all): Remove xml-syscall-copy dependency.
1225 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1226 stamp-syscalls.
1227 (xml-syscall-install): Moved to data-directory/Makefile.in as
1228 install-syscalls.
1229 (install-only): Remove xml-syscall-install dependency.
1230 (all-data-directory): New rule.
1231 (data-directory/Makefile): New rule.
1232 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1233 * configure: Regenerate.
1234 * data-directory/Makefile.in: New file.
1235 * python/lib/gdb/__init__.py: New file.
1236
aa27d0b3
JB
12372010-10-06 Joel Brobecker <brobecker@adacore.com>
1238
1239 Fix ARI warnings in advance_wild_match.
1240 * ada-lang.c (advance_wild_match): Delete local variable t2.
1241 Adjust code accordingly. Minor reformatting.
1242
2844d6b5
KW
12432010-10-06 Ken Werner <ken.werner@de.ibm.com>
1244
1245 * gdbtypes.h (struct main_type): Remove flag_nottext.
1246 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1247 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1248 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1249 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1250 of TYPE_FLAG_NOTTEXT.
1251 (init_type): Remove the initialization of the flag_nottext field.
1252 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1253 TYPE_FLAG_NOTTEXT.
1254 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1255
2fdf6df6
DE
12562010-10-04 Doug Evans <dje@google.com>
1257
ea65fe05
DE
1258 * cc-with-index.sh: New file.
1259
2fdf6df6
DE
1260 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1261 function comment.
1262 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1263 (create_cus_from_index, create_addrmap_from_index): Ditto.
1264 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1265 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1266 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
1267 (eq_strtab_entry, create_strtab, add_string): Ditto.
1268 (hash_strtab_entry): Ditto.
1269 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1270 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1271 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1272 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1273 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1274 (write_psymtabs_to_index): Ditto.
2fdf6df6 1275
40bc484c
JB
12762010-10-04 Joel Brobecker <brobecker@adacore.com>
1277
1278 * ada-lang.c: #include "value.h".
1279 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1280 arguments. Implement using value_allocate_space_in_inferior
1281 instead of allocating memory from the stack.
1282 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1283 calls to ensure_lval.
1284 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1285 calls to make_array_descriptor and ensure_lval.
1286 * ada-lang.h (ada_convert_actual): Update declaration.
1287 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1288
f17618ea
DE
12892010-10-04 Doug Evans <dje@google.com>
1290
1291 * python/python.c (_initialize_python): Define new function
1292 GdbSetPythonDirectory in python. Use it to update sys.path and
1293 gdb.__path__.
1294
83e3a93c
PH
12952010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1296
1297 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1298 incorporating and generalizing print_record_field_types.
1299 (print_record_field_types): Change return value and update comment.
1300 Re-implement using print_selected_record_field_types.
1301 (print_choices): Print "=>" here.
1302 Handle case of unencoded variant branch.
1303 (print_variant_clauses): Reformat comment.
1304 Special-case unencoded variant branch.
1305
13062010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
1307
1308 * ada-lang.c (wild_match): Reimplement.
1309 Change API to eliminate unused length argument, reverse arguments and
1310 make 0 the 'true' return value.
1311 (advance_wild_match): New auxiliary function for wild_match to improve
1312 readability.
1313 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1314 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1315 API for wild_match.
1316 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1317 wild_match.
1318 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1319
11570e71
DE
13202010-10-01 Doug Evans <dje@google.com>
1321
1322 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1323 for `save gdb-index' command.
1324
72b9f47f
TT
13252010-10-01 Tom Tromey <tromey@redhat.com>
1326
1327 * symfile.h (allocate_symtab): Update.
1328 * symfile.c (allocate_symtab): Make 'filename' const.
1329 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1330 (add_psymbol_to_list): Likewise.
1331 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1332 const.
1333 (add_psymbol_to_list): Update.
1334 * mdebugread.c (new_symtab): Make 'name' const.
1335 (psymtab_to_symtab_1): Make 'filename' const.
1336 * elfread.c (elfstab_offset_sections): Update.
1337 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1338 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1339 (psymtab_include_file_name): Update.
1340 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1341 * buildsym.h (start_subfile): Update.
1342 * buildsym.c (start_subfile): Make arguments const.
1343
55e39473
MS
13442010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1345
1346 * fork-child.c (breakup_args): Fix crash if shell forking is
1347 disabled at compile time.
1348
05e522ef
JB
13492010-10-01 Joel Brobecker <brobecker@adacore.com>
1350
1351 * ada-lang.c (desc_bounds): Add handling of the case where
1352 the P_BOUNDS field is a pointer to a stub.
1353 (desc_data_target_type): Same for P_ARRAY field.
1354 (ada_check_typedef): Strip the typedef layers from the type
1355 found by ada_find_any_type.
1356
49a45ecf
JB
13572010-10-01 Joel Brobecker <brobecker@adacore.com>
1358
1359 * sparc-tdep.c (sparc32_frame_align): New function.
1360 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1361 * sparc64-tdep.c (sparc64_frame_align): New function.
1362 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1363
a5916a62
L
13642010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1365
1366 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1367
00b5771c
TT
13682010-09-30 Tom Tromey <tromey@redhat.com>
1369
1370 * symfile.h (struct sym_fns) <next>: Remove.
1371 (add_symtab_fns): Update.
1372 * symfile.c (sym_fns_ptr): New typedef.
1373 (symtab_fns): Now a VEC.
1374 (add_symtab_fns): Update. Change argument type.
1375 (find_sym_fns): Update. Change return type.
1376 (get_symfile_segment_data): Update.
1377 * objfiles.h (struct objfile) <sf>: Now const.
1378 * somread.c (som_sym_fns): Now const. Update.
1379 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1380 * mipsread.c (ecoff_sym_fns): Now const. Update.
1381 * machoread.c (macho_sym_fns): Now const. Update.
1382 * elfread.c (elf_sym_fns): Now const. Update.
1383 (elf_sym_fns_gdb_index): Likewise.
1384 * dbxread.c (aout_sym_fns): Now const. Update.
1385 * coffread.c (coff_sym_fns): Now const. Update.
1386
38f12cfc
TT
13872010-09-30 Tom Tromey <tromey@redhat.com>
1388
1389 * value.c (value_primitive_field): Take 'offset' into account for
1390 packed field.
1391
9ae8282d
TT
13922010-09-30 Tom Tromey <tromey@redhat.com>
1393
1394 * completer.c (count_struct_fields): Handle anonymous structs and
1395 unions.
1396 (add_struct_fields): Likewise.
1397
e9e07ba6
JK
13982010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1399
1400 Fix printing parameters of inlined functions.
1401 * ada-lang.c (is_known_support_routine)
1402 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1403 for find_frame_funname.
1404 * python/py-frame.c (frapy_name): Likewise.
1405 * stack.c (find_frame_funname): New parameter funcp. Update the
1406 function comment. Fill it in.
1407 (print_frame): New variable func. Initialize it by
1408 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1409 FUNC as the parameter of print_args_stub.
1410 * stack.h (find_frame_funname): New parameter funcp. Remove the
1411 function declaration comment.
1412
cd2effb2
JK
14132010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1414
1415 PR corefiles/12071.
1416 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1417 tp. Iterate INFERIOR_LIST and call target_has_execution.
1418
bceffbf3
JK
14192010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1420
1421 Fix GDB crash on inferior calls with self-referencing classes.
1422 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1423 member fields.
1424
abc72ce4
DE
14252010-09-29 Doug Evans <dje@google.com>
1426
1427 Workaround for gcc/45682.
1428 * dwarf2read.c (partial_die_info): New fields fixup_called,
1429 linkage_name.
1430 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1431 Move definition next to use. Use linkage_name to determine if class
1432 is in a namespace. All callers updated.
1433 (fixup_partial_die): Return early if already called.
1434 Set fixup_called when done.
1435 (guess_full_die_structure_name): New function.
1436 (determine_prefix): Call it for class/struct/union dies if c++ and
1437 .debug_types section is present and parent is DW_TAG_compile_unit.
1438
0ac7be25
JB
14392010-09-28 Joel Brobecker <brobecker@adacore.com>
1440
1441 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1442 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1443
6e1bb179
JB
14442010-09-28 Joel Brobecker <brobecker@adacore.com>
1445
1446 * NEWS: Announce Ravenscar Profile support.
1447
036b1ba8
JB
14482010-09-28 Joel Brobecker <brobecker@adacore.com>
1449 Jerome Guitton <guitton@adacore.com>
1450
1451 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1452 New files.
1453 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1454 ravenscar-sparc-thread.o to gdb_target_obs.
1455
474011fb
JB
14562010-09-28 Joel Brobecker <brobecker@adacore.com>
1457
1458 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1459 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1460
99e24b90
PM
14612010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1462
1463 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1464 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1465 skip_main_prologue method.
1466
987d643c
TT
14672010-09-27 Tom Tromey <tromey@redhat.com>
1468
1469 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1470 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1471 Only emit a given psymbol once.
1472 (struct signatured_type_index_data) <psyms_seen>: New field.
1473 (write_one_signatured_type): Update.
1474 (cleanup_htab): New function.
1475 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1476 version to 3.
1477 (save_gdb_index_command): Update index documentation.
1478
d3aff959
TT
14792010-09-27 Tom Tromey <tromey@redhat.com>
1480
1481 * bcache.c (expand_hash_table): Use hash_function, not hash.
1482
716b65bf
TT
14832010-09-27 Tom Tromey <tromey@redhat.com>
1484
1485 * gdb_wchar.h: Change minimum libiconv to 0x108.
1486
1736ad11
JK
14872010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 Fix lost siginfo_t for inferior calls.
1490 * infrun.c
1491 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1492 (save_inferior_thread_state): New variables regcache, gdbarch and
1493 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1494 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1495 using REGCACHE.
1496 (restore_inferior_thread_state): New variables regcache and gdbarch.
1497 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1498 REGCACHE. Free also SIGINFO_DATA.
1499
4b5246aa
TT
15002010-09-24 Tom Tromey <tromey@redhat.com>
1501
1502 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1503 MAYBE_SWAPs.
1504 (dw2_map_symbol_names): Likewise.
1505
2a7d6a25
SW
15062010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1507
1508 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1509 discard_cleanups do_cleanups.
1510
b53a1623
PA
15112010-09-24 Pedro Alves <pedro@codesourcery.com>
1512
e6ee044d
PA
1513 PR gdb/11842
1514
b53a1623
PA
1515 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1516 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1517 si_code is < 0. Check for si_code == SI_TIMER before checking for
1518 si_code < 0.
1519
96a8853a
PA
15202010-09-24 Pedro Alves <pedro@codesourcery.com>
1521
1522 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1523
39383a48
JB
15242010-09-22 Joel Brobecker <brobecker@adacore.com>
1525
1526 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1527 debugging a core file.
1528
d31d2fc3
JK
15292010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1530
1531 Code cleanup.
1532 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1533 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1534 xfree.
1535 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1536 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1537 Remove.
1538 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1539 Remove the conditional.
1540 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1541
7f6130ff
JK
15422010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1543
1544 * main.c: Include objfiles.h.
1545 (captured_main): New variable objfile. Call
1546 load_auto_scripts_for_objfile for ALL_OBJFILES.
1547
c2b0a229
JK
15482010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1549
1550 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1551 DW_TAG_constant.
1552
72929c62
JB
15532010-09-22 Joel Brobecker <brobecker@adacore.com>
1554
1555 * dwarf2read.c (scan_partial_symbols): Add handling of
1556 DW_TAG_constant DIEs.
1557 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1558
496c0e1b
JB
15592010-09-22 Joel Brobecker <brobecker@adacore.com>
1560
1561 * configure.ac: Add support for --enable-gdbserver.
1562 * configure: Regenerate.
1563
ec322823
SW
15642010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1565
1566 PR C++/12028
1567 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1568 'old_cleanups' reassignment.
1569
1558ab4c
JK
15702010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1571
1572 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1573 characters.
1574
875b4ff5
PM
15752010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1576
1577 PR mi/11407
1578 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1579 read_var_value and common_val_print and print a warning.
1580
65dedcb2
JK
15812010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1582
1583 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1584 keep the list in alphabetical order. Use longer e-mail address.
1585
0e780a22
TT
15862010-09-15 Tom Tromey <tromey@redhat.com>
1587
1588 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1589
62234ccc
TT
15902010-09-15 Tom Tromey <tromey@redhat.com>
1591
1592 * charset.c (iconv_open): New define.
1593 (iconv): Likewise.
1594 (iconv_close): Likewise.
1595 (phony_iconv_open): Add "phony_" prefix.
1596 (phony_iconv_close): Likewise.
1597 (phony_iconv): Likewise.
1598 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1599 Change how INTERMEDIATE_ENCODING is defined.
1600
4950bc1c
DE
16012010-09-15 Doug Evans <dje@google.com>
1602
1603 * dwarf2read.c (struct die_info): Fix comment.
1604
349126ea
AM
16052010-09-15 Alan Modra <amodra@gmail.com>
1606
1607 PR 4606
1608 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1609 than setting SEC_NEVER_LOAD on sections that need not be copied.
1610
923c6a3d
TT
16112010-09-14 Tom Tromey <tromey@redhat.com>
1612
1613 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1614 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1615 Declare.
1616 * symfile.h (extend_psymbol_list): Remove.
1617 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1618 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1619 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1620
a9e6a4bb
JK
16212010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1622
1623 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1624 Update the comment.
1625
7155d578
TT
16262010-09-14 Tom Tromey <tromey@redhat.com>
1627
1628 PR symtab/8399:
1629 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1630 for unrecognized frame base expression.
1631
515ed532
TT
16322010-09-14 Tom Tromey <tromey@redhat.com>
1633
1634 PR exp/11803:
1635 * value.c (value_static_field): Use value_of_variable.
1636
b467f580
PM
16372010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1638
1639 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1640 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1641
450ca57c
SW
16422010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1643
1644 PR symtab/11992:
1645 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1646 UNKNOWN_CPP_NAME.
1647
1aee7009
JB
16482010-09-13 Joel Brobecker <brobecker@adacore.com>
1649
1650 * NEWS: Add x86-lynxos to the list of platforms supported by
1651 gdbserver.
1652
5ec6ebf9
JB
16532010-09-13 Joel Brobecker <brobecker@adacore.com>
1654
1655 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1656
1863c96c
TT
16572010-09-13 Tom Tromey <tromey@redhat.com>
1658
1659 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1660
0c5acf93
L
16612010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1662
1663 * i386-tdep.c (i386_ymm_type): Set type name to
1664 builtin_type_vec256i.
1665
1c6272a6
MS
16662010-09-12 Michael Snyder <msnyder@vmware.com>
1667
1668 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1669
e866c497
L
16702010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1671
1672 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1673
9191d390
L
16742010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1675
1676 * amd64-tdep.c (amd64_register_name): Removed.
1677 (amd64_init_abi): Don't call set_gdbarch_register_name.
1678
1679 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1680
1681 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1682
8d4d924b
JK
16832010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1684 Paul Bolle <pebolle@tiscali.nl>
1685
1686 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1687 * cli-logging.c (struct saved_output_files) <targerr>: New.
1688 (set_logging_redirect, pop_output_files, handle_redirections):
1689 Redirect also gdb_stdtargerr.
1690 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1691 declarations.
1692 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1693 also gdb_stdtargerr.
1694 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1695 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1696 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1697 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1698 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1699 New functions.
1700
3329c4b5
PM
17012010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1702
1703 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1704 to display a host address.
1705 * monitor.c (monitor_read_memory): Likewise.
1706 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1707
5e8db398
PM
17082010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1709
1710 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1711 `CORE_ADDRESS' as it might contain target addresses.
1712
37049e31
PM
17132010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1714
1715 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1716 before cast to pointer to avoid warning.
1717
351a3e56
KB
17182010-09-09 Kevin Buettner <kevinb@redhat.com>
1719
1720 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1721 type to be signed.
349126ea 1722
6afafb54
UW
17232010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1724
1725 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1726 anonymous class partial DIEs.
1727
60430eff
DJ
17282010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1729
1730 * dwarf2read.c (dwarf2_compute_name): Check that the first
1731 argument is a pointer.
1732
f1078f66
DJ
17332010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1734
1735 * dwarf2read.c (read_func_scope, read_structure_type)
1736 (read_common_block): Check for a NULL return from new_symbol.
1737
82430852
JK
17382010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1739
1740 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1741
c767944b
DJ
17422010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1743
1744 * dwarf2read.c (read_structure_type): Move processing of
1745 fields and member functions from here...
1746 (process_structure_scope): ... to here.
1747
561d3825
DJ
17482010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1749
1750 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1751 the domain type.
1752 (gnuv3_make_method_ptr): Likewise.
1753
9bd89d67
TT
17542010-09-08 Tom Tromey <tromey@redhat.com>
1755
1756 * breakpoint.c (create_breakpoint): Add missing _().
1757
1d040b0d
DE
17582010-09-08 Doug Evans <dje@google.com>
1759
1760 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1761
774b6a14
TT
17622010-09-08 Tom Tromey <tromey@redhat.com>
1763
1764 Revert:
1765 2010-09-01 Tom Tromey <tromey@redhat.com>
1766 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1767 symtab.h: Revert earlier change.
1768
fc956729
SW
17692010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1770
1771 * psymtab.c (add_psymbol_to_bcache): Initialize
1772 obj_section.
1773 memset psymbol.ginfo.value to 0.
1774
48f9886d
PA
17752010-09-06 Pedro Alves <pedro@codesourcery.com>
1776
1777 * infrun.c (resume): Extend comment on ignoring single-step
1778 requests on vfork parents waiting for a vfork-done.
1779
423ec54c
JK
17802010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1781 Pedro Alves <pedro@codesourcery.com>
1782
1783 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1784 is NULL.
1785 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1786 target_signal type.
1787 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1788 calling strsignal. Use enum target_signal type for saved_signo.
1789 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1790 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1791 target_signal_to_host before calling strsignal.
1792 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1793 TARGET_SIGNAL_0.
1794
a6eb9bc8
JK
17952010-09-06 Pedro Alves <pedro@codesourcery.com>
1796 Jan Kratochvil <jan.kratochvil@redhat.com>
1797
1798 * common/signals.c (ANY): Remove.
1799 (SET): No longer use ANY.
1800
74609e71
YQ
18012010-09-06 Yao Qi <yao@codesourcery.com>
1802
1803 * infrunc(resume): When inferior is waiting_for_vfork_done,
1804 clear step and don't use displaced stepping.
1805
8464be76
DJ
18062010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1807
1808 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1809 value specially.
1810
33d62d64
JK
18112010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1812
1813 Code cleanup - split print_stop_reason.
1814 * infrun.c (enum inferior_stop_reason): Remove.
1815 (print_stop_reason): Remove by splitting into ...
1816 (print_exited_reason, print_signal_exited_reason)
1817 (print_no_history_reason, print_signal_received_reason)
1818 (print_end_stepping_range_reason): ... these new functions. Update
1819 the preceding comment.
1820 (handle_inferior_event): Change the calls to print_exited_reason,
1821 print_signal_exited_reason, print_no_history_reason,
1822 print_signal_received_reason, print_end_stepping_range_reason.
1823 (handle_step_into_function, handle_step_into_function_backward):
1824 Change the calls to print_end_stepping_range_reason.
1825
14dba4b4
JK
18262010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1827
1828 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1829 * cli-out.c: Include vec.h.
1830 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1831 variable stream, initialize it, use it.
1832 (cli_redirect): New function comment. Replace the stream and
1833 original_stream fields by the new streams field. Remove the
1834 original_stream != NULL conditional, assert error on NULL instead.
1835 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1836 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1837 original_stream fields by the new streams field.
1838 (cli_out_set_stream): Replace the stream field by the new streams
1839 field.
1840 * cli-out.h: Include vec.h.
1841 (ui_filep): New typedef, call DEF_VEC_P for it.
1842 (struct cli_ui_out_data): Replace the stream and original_stream
1843 fields by the new streams field.
1844 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1845 NULL first. Extend the comment.
1846 (handle_redirections): Call ui_out_redirect with output.
1847 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1848 calls outside of the TRY_CATCH block.
1849
b04bc5d4 18502010-09-03 Joel Brobecker <brobecker@adacore.com>
1851
1852 GDB 7.2 released.
1853
080db4e0
JB
18542010-09-02 Joel Brobecker <brobecker@adacore.com>
1855
1856 Back out the following change:
1857 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1858 | * record.c (set_record_pic_cmdlist,
1859 | show_record_pic_cmdlist): New variables.
1860 | (set_record_pic_command,
1861 | show_record_pic_command): New functions.
1862 | (record_pic_function, record_pic_line, record_pic_enum,
1863 | set_record_pic_type, record_pic_hide_nofunction,
1864 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1865 | (record_pic_fputs): New function.
1866 | (function_list, node_list, edge_list): New struct.
1867 | (function_list, node_list, edge_list): New variables.
1868 | (record_pic_cleanups, record_pic_node,
1869 | record_pic_edge, cmd_record_pic): New functions.
1870 | (_initialize_record): Add new commands for record pic.
1871
0a4f61e3
DJ
18722010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1873
1874 * config.in, configure: Regenerated.
1875 * configure.ac: Check for waitpid.
1876 * ser-pipe.c (pipe_close): Wait for the program to exit.
1877
58b61394
JK
18782010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1879
ba720883 1880 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1881 (set_logging_overwrite): New function.
1882 (logging_redirect): New comment.
1883 (logging_no_redirect_file, set_logging_redirect)
1884 (pop_output_files) <logging_no_redirect_file>: New.
1885 (handle_redirections) <!logging_redirect>: New variable
1886 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1887 discard cleanup for the close of former OUTPUT. Set
1888 LOGGING_NO_REDIRECT_FILE.
1889 (handle_redirections) <logging_redirect>: gdb_assert
1890 LOGGING_NO_REDIRECT_FILE.
1891 (show_logging_command) <logging_redirect handling>: Adjust messages
1892 for SAVED_FILENAME not NULL.
1893 (_initialize_cli_logging): Install set_logging_overwrite and
1894 set_logging_redirect.
1895
706774f2
JK
18962010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1897
1898 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1899
9a35ccf7
JK
19002010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1901
1902 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1903 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1904 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1905 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1906
ba9b2ec3
YQ
19072010-09-02 Yao Qi <yao@codesourcery.com>
1908
1909 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1910 number from a WIFSIGNALED status.
1911
faf68db7
TT
19122010-09-01 Tom Tromey <tromey@redhat.com>
1913
1914 * symtab.h (lookup_type_symbol): Declare.
1915 * symtab.c (lookup_symbol_in_language_full): Rename from
1916 lookup_symbol_in_language. Add 'for_type' argument.
1917 (lookup_symbol_in_language): New function.
1918 (lookup_type_symbol): Likewise.
1919 (lookup_symbol_aux): Add 'for_type' argument.
1920 (match_symbol_aux): New function.
1921 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1922 (match_transparent_type): New function.
1923 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1924 * symfile.h (struct quick_symbol_functions)
1925 <pre_expand_symtabs_matching>: Remove.
1926 <expand_one_symtab_matching>: New field.
1927 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1928 (pre_expand_symtabs_matching_psymtabs): Remove.
1929 (psym_functions): Update.
1930 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1931 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1932 (dw2_pre_expand_symtabs_matching): Remove.
1933 (dw2_expand_one_symtab_matching): New function.
1934 (dwarf2_gdb_index_functions): Update.
1935
248c9dbc
JB
19362010-09-01 Joel Brobecker <brobecker@adacore.com>
1937
1938 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1939
f75d858b
MK
19402010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1941
1942 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1943 as a feature reported by -list-target-features.
1944
0482b03b
JB
19452010-09-01 Joel Brobecker <brobecker@adacore.com>
1946
1947 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1948 (powerpc-32.o, powerpc-32.c): New rules.
1949 (clean): Also remove powerpc-32.c.
1950 * regformats/rs6000/powerpc-32.dat: Generate.
1951
710e1a31
SW
19522010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1953
1954 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1955 psymbol_bcache_init.
1956 * psymtab.h (psymbol_bcache_init): New function prototype.
1957 (psymbol_bcache_free): New function prototype.
1958 (psymbol_bcache_get_bcache): New function prototype.
1959 * psymtab.c (psymbol_bcache_init): New function.
1960 (psymbol_bcache_free): New function.
1961 (psymbol_bcache_full): New function.
1962 (psymbol_bcache_get_bcache): New function.
1963 (add_psymbol_to_bcache): use psymbol_bcache_full.
1964 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1965 psymbol_bcache.
1966 * symmisc.c (print_symbol_bcache_statistics): Updated.
1967 (print_objfile_statistics): Updated.
1968 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1969 psymbol_cache.
1970 (free_objfile): Use psymbol_bcache_free.
1971
64382290
TT
19722010-08-31 Tom Tromey <tromey@redhat.com>
1973
1974 PR c++/11961:
1975 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1976 Don't set TYPE_NAME on the type.
1977
8bbed405
MS
19782010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1979
1980 * infrun.c (set_exec_direction_func): Error out if target does not
1981 support reverse execution.
1982
06253dd3
JK
19832010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 Make linux_get_siginfo_type `type *' unique.
1986 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1987 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1988 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1989 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1990 (_initialize_linux_tdep): New.
1991
b8edc417
JK
19922010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1993
1994 Code cleanup.
1995 * defs.h (find_memory_region_ftype): New typedef.
1996 (exec_set_find_memory_regions): Use it.
1997 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1998 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1999 * gcore.c (objfile_find_memory_regions): Likewise.
2000 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2001 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2002 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2003 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2004 find_memory_region_ftype.
2005 (insert_dbx_link_bpt_in_region): Likewise.
2006 (iterate_over_mappings): Likewise. Drop the comment part about the
2007 function prototype.
2008 (find_memory_regions_callback): Use find_memory_region_ftype.
2009 (proc_find_memory_regions): Likewise.
2010 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2011 find_memory_region_ftype.
2012 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2013 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2014
cbd70537
SW
20152010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2016
2017 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2018 'static partial_symbol psymbol'.
2019 (psymbol_hash): New function.
2020 (psymbol_compare): New function.
2021 * bcache.c (hash_continue): New.
2022 (hash): Use hash_continue.
2023 * bcache.c: Add hash_function and compare_function
2024 pointers to bcache struct.
2025 (bcache_full): Use bcache->hash_function, and
2026 bcache->compare_function.
2027 (bcache_compare): New function.
2028 (bcache_xmalloc): Take hash_function and
2029 compare_function arguments and initialize the
2030 bcach's pointers.
2031 Updated comment.
2032 * objfiles.c (allocate_objfile): Updated.
2033 * symfile.c (reread_symbols): Updated.
2034 * python/py-type.c (typy_richcompare): Updated.
2035
03f17ccf
TT
20362010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2037 Tom Tromey <tromey@redhat.com>
2038
2039 PR python/11792:
2040 * python/py-value.c (valpy_get_dynamic_type): New function.
2041 (value_object_getset): Add "dynamic_type".
2042 (valpy_get_type): Fail on error.
2043
25b41d01
YQ
20442010-08-30 Yao Qi <yao@codesourcery.com>
2045
2046 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2047 (arm_linux_syscall_next_pc): New.
2048 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2049 (arm_linux_init_abi): Initialize syscall_next_pc.
2050 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2051 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2052 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2053 Declare arm_frame_is_thumb.
2054
5760d0ab
JK
20552010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2056
2057 Code cleanup.
2058 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2059 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2060 code.
2061 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2062 calls of bpstat_alloc. Remove explicit bs chain termination.
2063
46a96992
JK
20642010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2065
2066 Code cleanup.
2067 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2068 (my_waitpid): Likewise.
2069
36374493
DE
20702010-08-27 Doug Evans <dje@google.com>
2071
2072 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2073 as appropriate.
2074
8b93c54c
TT
20752010-08-27 Tom Tromey <tromey@redhat.com>
2076
2077 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2078 TYPE_FIELD_IGNORE_BITS.
2079
16be1145
DE
20802010-08-27 Doug Evans <dje@google.com>
2081
2082 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2083 the order they're defined in. munmap .debug_types buffer.
2084
e254ef6a
DE
20852010-08-26 Doug Evans <dje@google.com>
2086
2087 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2088 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2089 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2090 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2091 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2092 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2093 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2094 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2095 (write_psymtabs_to_index): Ditto.
2096
ae53ffa4
PA
20972010-08-26 Pedro Alves <pedro@codesourcery.com>
2098
2099 * NEWS: Mention libthread_db debugging with core files.
2100
c6da4cef
DE
21012010-08-26 Doug Evans <dje@google.com>
2102
2103 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2104 forward decl. Pass pst->dirname to dwarf_decode_lines.
2105 (psymtab_include_file_name): New function.
2106 (dwarf_decode_lines): Call it. Update comments.
2107
cd02d79d
PA
21082010-08-25 Pedro Alves <pedro@codesourcery.com>
2109
2110 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2111 compilation unit being different from target die's.
2112
673bfd45
DE
21132010-08-24 Doug Evans <dje@google.com>
2114
2115 PR symtab/11942
2116 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2117 debug_types_type_hash.
2118 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2119 All uses updated.
2120 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2121 appropriate type_hash table. All callers updated.
2122 (allocate_signatured_type_table): Renamed from
2123 allocate_signatured_type_hash_table. All callers updated.
2124 (create_signatured_type_table_from_index): Renamed from
2125 create_signatured_type_hash_from_index. All callers updated.
2126 (read_die_type): Add comment. Move actual reading to ...
2127 (read_die_type_1): ... here. New function.
2128 (follow_die_ref_or_sig): Tweak comment.
2129 (set_die_type): Rewrite to use appropriate choice of
2130 debug_info_type_hash or debug_types_type_hash.
2131 (get_die_type_at_offset): New function.
2132 (get_die_type): Call it.
2133
e8fd65ef
JK
21342010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2135
2136 * python/py-type.c (typy_richcompare): Initialize worklist.
2137
9779414d
DJ
21382010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2139 Kazu Hirata <kazu@codesourcery.com>
2140 Jonathan Larmour <jifl@eCosCentric.com>
2141
2142 * arm-tdep.c: Include features/arm-with-m.c.
2143 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2144 call this function.
2145 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2146 Check is_m after force-mode.
2147 (arm_gdbarch_init): Check the binary before the target description.
2148 Add check for M profile attribute. If we have an M-profile device,
2149 but no target register description, use arm-with-m. Recognize the
2150 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2151 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2152 * arm-tdep.h (XPSR_T): Define.
2153 (struct gdbarch_tdep): Add is_m member.
2154 * features/arm-m-profile.xml, features/arm-with-m.c,
2155 features/arm-with-m.xml: New files.
2156
9dc481d3
DE
21572010-08-23 Doug Evans <dje@google.com>
2158
2159 * dwarf2read.c (read_structure_type): Add comment.
2160 (read_enumeration_type): Add comment.
2161 (process_enumeration_scope): Move definition of some locals
2162 closer to their use.
2163 (read_namespace_type): Add comment.
e71ec853 2164 (set_die_type): Fix typo in comment.
9dc481d3 2165
f9ffd4bb
TT
21662010-08-23 Tom Tromey <tromey@redhat.com>
2167
2168 PR python/11145:
2169 * python/py-value.c: Include expression.h.
2170 (valpy_do_cast): New function.
2171 (valpy_cast): Use it.
2172 (valpy_dynamic_cast): New function.
2173 (valpy_reinterpret_cast): Likewise.
2174 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2175
96f73ba5
TT
21762010-08-23 Tom Tromey <tromey@redhat.com>
2177
2178 PR python/11391:
2179 * python/py-value.c (valpy_nonzero): Don't throw error for other
2180 Value types.
2181
d839c8a4
TT
21822010-08-23 Tom Tromey <tromey@redhat.com>
2183
2184 PR python/10676:
2185 * python/py-type.c: Include bcache.h, vec.h.
2186 (struct type_equality_entry): New.
2187 (compare_strings): New function.
2188 (check_types_equal): Likewise.
2189 (check_types_worklist): Likewise.
2190 (typy_richcompare): Likewise.
2191 (type_object_type): Set tp_richcompare field.
2192
05d0e1e7
TT
21932010-08-23 Tom Tromey <tromey@redhat.com>
2194
2195 PR python/10953:
2196 * python/py-type.c (typy_fields): Call check_typedef.
2197 (typy_template_argument): Add TRY_CATCH.
2198
702c2711
TT
21992010-08-23 Tom Tromey <tromey@redhat.com>
2200
2201 PR python/11915:
2202 * python/py-type.c (typy_array): New function.
2203 (type_object_methods): Add "array".
2204
4a532131
PA
22052010-08-20 Pedro Alves <pedro@codesourcery.com>
2206
2207 * python/python.c: Include "serial.h".
2208 (gdbpy_event_fds): Change type to `struct serial *' a array from
2209 int array.
2210 (gdbpy_run_events): Change parameters. Use serial_readchar in
2211 place of read.
2212 (gdbpy_post_event): Use serial_write in place of write.
2213 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2214 serial_async in place of add_file_handler.
2215
58f07bae
PA
22162010-08-20 Pedro Alves <pedro@codesourcery.com>
2217
2218 * serial.h (gdb_pipe, serial_pipe): Declare.
2219 * serial.c (serial_interface_lookup): Take a const char pointer.
2220 (serial_fdopen): Rename to ...
2221 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2222 Call the OPS' fdopen function if there is one.
2223 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2224 (serial_pipe): New.
2225 (struct serial_ops) <fdopen>: New field.
2226
2227 * ser-mingw.c (free_pipe_state):
2228 (free_pipe_state): Close output on non-pex pipes.
2229 (pipe_windows_fdopen): New.
2230 (gdb_pipe): New.
2231 (_initialize_ser_windows): Register pipe_windows_fdopen.
2232 * ser-go32.c (gdb_pipe): New.
2233 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2234 no state pointer.
2235 (pipe_ops): Delete.
2236 (gdb_pipe): New.
2237
3da10d80
KS
22382010-08-20 Keith Seitz <keiths@redhat.com>
2239
2240 PR symtab/11465:
889bf7c5 2241 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
2242 (struct dwarf2_cu): Add vector method_list.
2243 (scan_partial_symbols): Count methods for union, class, structure,
2244 and interface types.
2245 (add_to_method_list): New function.
2246 (free_delayed_list): New function.
2247 (compute_delayed_physnames): New function.
2248 (process_full_comp_unit): Make a cleanup for the CU's delayed
2249 physname list, compute the delayed physnames, and free the
2250 the list.
2251 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2252 of the physname until after the CU is read.
2253
2254 * dwarf2read.c (read_structure_type): Check if the current
2255 DIE's type was already completed after dwarf2_full_name
2256 was called.
889bf7c5 2257
ca11e899
SS
22582010-08-19 Stan Shebs <stan@codesourcery.com>
2259
2260 * NEWS: Mention some additional changes.
2261
4d2dc20a
TT
22622010-08-19 Tom Tromey <tromey@redhat.com>
2263
2264 * Makefile.in (install-python): Add DESTDIR.
2265
d30f5e1f
DE
22662010-08-19 Doug Evans <dje@google.com>
2267
2268 PR exp/11926
2269 * parser-defs.h (parse_float, parse_c_float): Declare.
2270 * parse.c (parse_float, parse_c_float): New function.
2271 * c-exp.y (parse_number): Call parse_c_float.
2272 * objc-exp.y (parse_number): Ditto.
2273 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2274 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2275
2837d59e
JB
22762010-08-19 Joel Brobecker <brobecker@adacore.com>
2277
2278 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2279 the arguments in the correct order.
2280 * symtab.c (maybe_add_partial_symtab_filename): Declare
2281 the arguments in the correct order.
2282
35633fef
JK
22832010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2284
2285 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2286 initialize it by null_frame_id, wrap its usage by get_frame_id,
2287 frame_id_p and frame_find_by_id.
2288
94f7449c
TT
22892010-08-18 Tom Tromey <tromey@redhat.com>
2290
2291 PR python/11900:
2292 * configure: Rebuild.
2293 * configure.ac: Add install-python to CONFIG_INSTALL.
2294 * Makefile.in (install-python): New.
2295
f3574227
DE
22962010-08-18 Doug Evans <dje@google.com>
2297
2298 * gdb_assert.h (gdb_assert_not_reached): New macro.
2299 (gdb_assert_fail): Fix typo in comment.
2300 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2301 gdb_assert (0).
2302 * darwin-nat.c (darwin_check_new_threads): Ditto.
2303 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2304 (munmap_section_buffer): Ditto.
2305 * m32c-tdep.c (make_types): Ditto.
2306 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2307 * macroexp.c (get_character_constant): Ditto.
2308 (get_string_literal): Ditto.
2309 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2310 (mep_pseudo_cr_index, mep_register_type): Ditto.
2311 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2312 (mep_get_insn, mep_analyze_prologue): Ditto.
2313 * objfiles.c (qsort_cmp): Ditto.
2314 * prologue-value.c (pv_is_identical): Ditto.
2315 * record.c (record_get_loc): Ditto.
2316 * value.c (value_static_field): Ditto.
2317 * xtensa-tdep.c (call0_track_op): Ditto.
2318
c92817ce
TT
23192010-08-18 Tom Tromey <tromey@redhat.com>
2320
2321 PR symtab/11919:
2322 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2323 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2324 name-copying lower. Document exception behavior.
2325 * completer.c (expression_completer): Catch exceptions from
2326 parse_field_expression.
2327
856d6f99
PA
23282010-08-18 Pedro Alves <pedro@codesourcery.com>
2329
2330 PR corefile/8210
2331
2332 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2333 workaround on core files.
2334 (try_thread_db_load_1): Don't try enabling thread event reporting
2335 on core files.
2336 (thread_db_load): Allow thread_db on core files.
2337 (attach_thread): Don't check thread signals on core files, nor try
2338 really attaching to the thread, nor enabling thread event event
2339 reporting.
2340 (thread_db_detach): Don't try disabing thread event reporting or
2341 removing thread event breakpoints when debugging a core file.
2342 (find_new_threads_callback): Don't try enabling thread event
2343 reporting on core files.
2344 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2345 debugging a core file.
2346 (thread_db_find_new_threads): Don't update thread
2347 cores (processors) when debugging a core (dump).
2348
261b8d08
PA
23492010-08-18 Pedro Alves <pedro@codesourcery.com>
2350
2351 PR corefile/8210
2352
2353 * corelow.c (add_to_thread_list): Don't use
2354 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2355 (get_core_register_section): Don't use
2356 gdbarch_core_reg_section_encodes_pid.
2357
2358 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2359 * gdbarch.h, gdbarch.c: Regenerate.
2360 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2361 gdbarch_core_reg_section_encodes_pid.
2362 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2363 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2364 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2365
f9b42018
YQ
23662010-08-18 Yao Qi <yao@codesourcery.com>
2367
2368 * MAINTAINERS : Add myself under Write After Approval.
2369
def98928
TT
23702010-08-17 Tom Tromey <tromey@redhat.com>
2371
2372 * NEWS: Mention template parameter support.
2373
0807b50c
PA
23742010-08-17 Pedro Alves <pedro@codesourcery.com>
2375
2376 PR breakpoints/11371
2377
2378 * breakpoint.c (decref_bp_location): Assert the reference count is
2379 sane.
2380
f431efe5
PA
23812010-08-17 Pedro Alves <pedro@codesourcery.com>
2382
2383 PR breakpoints/11371
2384
2385 * breakpoint.c (breakpoint_init_inferior): Decrement the
2386 location's reference count instead of deleting right away.
2387 (bpstat_free): Decrement the location's reference count. Make
2388 static.
2389 (bpstat_copy): Increment the location's reference count.
2390 (bpstat_find_breakpoint): Adjust.
2391 (bpstat_num): Adjust.
2392 (print_it_typical): Adjust. Use the breakpoint pointer in the
2393 bpstat instead of the location's owner.
2394 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2395 Adjust to record the location's owner in the bpstat.
2396 (watchpoint_check): Use the breakpoint pointer in the bpstat
2397 instead of the location's owner.
2398 (bpstat_check_breakpoint_conditions): Don't handle
2399 bp_watchpoint_scope here. Use the breakpoint pointer in the
2400 bpstat instead of the location's owner.
2401 (bpstat_stop_status): Defer inferior function calls to after
2402 building the bpstat list. Handle bp_watchpoint_scope here. Use
2403 the breakpoint pointer in the bpstat instead of the location's
2404 owner.
2405 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2406 the location's owner.
2407 (free_bp_location): Don't walk bpstats clearing locations.
2408 (incref_bp_location): New.
2409 (decref_bp_location): New.
2410 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2411 instead of the location's owner.
2412 (update_global_location_list): Clear the location's owner, and
2413 decrement the location's reference count instead of deleting it
2414 right away.
2415 (breakpoint_retire_moribund): Decrement the location's reference
2416 count instead of deleting it right away.
2417 (bpstat_remove_bp_location): Delete.
2418 (bpstat_remove_breakpoint): New.
2419 (bpstat_remove_bp_location_callback): Delete.
2420 (bpstat_remove_breakpoint_callback): New.
2421 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2422 clearing references to the breakpoint that is being deleted.
2423
2424 * breakpoint.h (struct bp_location) <refc>: New field.
2425 <owner>: Update comments.
2426 (bpstat_free): Delete declaration.
2427 (struct bpstats): Change the type of the breakpoint_at field to
2428 struct breakpoint point, from struct bp_location pointer. Add new
2429 field bp_location_at.
2430
14c0d4e1
TT
24312010-08-16 Tom Tromey <tromey@redhat.com>
2432
2433 * NEWS: Fix typo.
2434
b56df873
TT
24352010-08-16 Tom Tromey <tromey@redhat.com>
2436
2437 * NEWS: Mention watch -location.
2438
d63d0675
JK
24392010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2440
2441 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2442 EXP_STRING_REPARSE to EXP_STRING.
2443 (watch_command_1): Set also EXP_STRING_REPARSE.
2444 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2445 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2446 Update comment for exp_string.
2447
06a64a0b
TT
24482010-08-16 Tom Tromey <tromey@redhat.com>
2449
2450 * value.c (release_value): Clear 'next' pointer.
2451 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2452 (watch_command_wrapper): Update.
2453 (watch_maybe_just_location): New function.
2454 (watch_command): Update.
2455 (rwatch_command_wrapper): Update.
2456 (rwatch_command): Update.
2457 (awatch_command_wrapper): Update.
2458 (awatch_command): Update.
2459 (check_for_argument): New function.
2460 (_initialize_breakpoint): Update help text.
2461
f96b8fa0
UW
24622010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2463
2464 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2465 typedef'ed function types correctly.
2466
4eb54052
TT
24672010-08-13 Tom Tromey <tromey@redhat.com>
2468
2469 * python/python-internal.h (gdbpy_get_hook_function): Don't
2470 declare.
2471
44be957e
JK
24722010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2473
ba720883 2474 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2475 static.
2476
76d8b686
KW
24772010-08-13 Ken Werner <ken.werner@de.ibm.com>
2478
2479 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2480 the format strings to be compatible with Python 2.4.
2481
8dedea02
VP
24822010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2483
2484 Easier and more stubborn MI memory read commands.
2485
2486 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2487 and data-write-memory-bytes.
2488 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2489 (mi_cmd_data_write_memory_bytes): New.
2490 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2491 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2492 New.
2493 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2494 * target.c (target_read_until_error): Remove.
2495 (read_whatever_is_readable, free_memory_read_result_vector)
2496 (read_memory_robust): New.
2497 * target.h (target_read_until_error): Remove.
2498 (struct memory_read_result, free_memory_read_result_vector)
2499 (read_memory_robust): New.
2500
1d9ec526
HZ
25012010-08-13 Hui Zhu <teawater@gmail.com>
2502
2503 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2504 (read_comp_unit): Initialize back_to.
2505
98bfdba5
PA
25062010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2507 Pedro Alves <pedro@codesourcery.com>
2508
2509 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2510 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2511 (struct partial_die_info) <has_template_arguments>: New field.
2512 <num_attrs>: Change type to unsigned char.
2513 <building_fullname>: New field.
2514 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2515 allocate a CU if we don't have one already. Add a cleanup for the
2516 CU.
2517 (partial_die_full_name): Handle template arguments not in
2518 DW_AT_name.
2519 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2520 (load_full_comp_unit): Only allocate a CU if we don't have one
2521 already.
2522 (do_ui_file_peek_last): New.
2523 (dwarf2_compute_name): Handle template parameters not in
2524 DW_AT_name.
2525 (read_comp_unit): Read and free abbrevs if not read yet.
2526 (load_partial_dies): Handle template arguments not in DW_AT_name.
2527 (find_partial_die): If we have a CU, but no a partial dies yet,
2528 also read in the CU.
2529 (dwarf2_const_value_attr): New, abstracted out from
2530 dwarf2_const_value.
2531 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2532 dwarf2_const_value_attr.
2533 (determine_prefix): Detect and break loops created by RCVT's debug
2534 info.
2535 (maybe_queue_comp_unit): Bail out early if reading partial
2536 symbols.
2537 (follow_die_offset): Load full CU if we have no dies.
2538 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2539 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2540
ca5c20b6 25412010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2542 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2543
2544 * python/python.c (gdbpy_run_events): New function.
2545 (gdbpy_post_event): Likewise.
2546 (gdbpy_initialize_events): Likewise.
2547 (_initialize_python): Call gdbpy_initialize_events.
2548
7346b668
KW
25492010-08-11 Ken Werner <ken.werner@de.ibm.com>
2550
2551 * gdb/valarith.c (vector_binop): New function.
2552 (scalar_binop): Likewise.
2553 (value_binop): Call scalar_binop or vector_binop depending on the types.
2554 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2555 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2556 to pointers.
2557 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2558
62183e15
TT
25592010-08-11 Brad Roberts <braddr@puremagic.com>
2560
2561 * d-lang.c (extract_identifiers): Handle multiple digits.
2562
39d7b0e2
JK
25632010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2564
2565 Code cleanup.
2566 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2567 Rename to dummy_frame_unwind.
2568 (dummy_frame_unwind): Remove.
2569 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2570 * frame-unwind.c (frame_unwind_init): Use address of
2571 dummy_frame_unwind and inline_frame_unwind.
2572 * frame.c (create_sentinel_frame): Use address of
2573 sentinel_frame_unwind.
2574 * inline-frame.c (inline_frame_unwinder): Rename to
2575 inline_frame_unwind.
2576 (inline_frame_unwind): Remove.
2577 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2578 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2579 sentinel_frame_unwind.
2580 (sentinel_frame_unwind): Remove.
2581 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2582 struct.
2583
9f9a8002
JK
25842010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2585
2586 Code cleanup.
2587 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2588 and returned value. New comment from frame-unwind.h.
2589 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2590 Extend the comment.
2591 * frame.c (get_frame_id, frame_unwind_register_value)
2592 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2593 (get_frame_type, frame_unwind_arch): Do not use the return value of
2594 frame_unwind_find_by_frame.
2595
cb2e07a6 25962010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2597 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2598 Tom Tromey <tromey@redhat.com>
2599
2600 * python/python.c (gdbpy_solib_address): New function.
2601 (gdbpy_decode_line): Likewise.
2602
c29c521f
TT
26032010-08-10 Tom Tromey <tromey@redhat.com>
2604
2605 Revert gdb-add-index addition:
2606 * Makefile.in (install-only): Don't install gdb-add-index.
2607 * gdb-add-index.sh: Remove.
2608
0c012db1
KB
26092010-08-09 Kevin Buettner <kevinb@redhat.com>
2610
2611 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2612 `target_has_execution' check with `to_has_memory' check.
2613 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2614 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2615 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2616
db04efe6
KB
26172010-08-09 Kevin Buettner <kevinb@redhat.com>
2618
2619 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2620 (resume_siggnal, resume_step): Move these static globals...
2621 (struct sim_inferior_data): ...into this new struct.
2622 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2623 New static globals.
2624 (gdb_callback, callbacks_initialized): Move these globals to
2625 a point earlier in the file.
2626 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2627 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2628 (gdbsim_close_inferior, gdbsim_resume_inferior)
2629 (gdbsim_stop_inferior): New functions.
2630 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2631 New constants.
2632 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2633 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2634 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2635 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2636 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2637 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2638 new local variable `sim_data' in each of these functions. Use
2639 `sim_data' to reference former globals `program_loaded',
2640 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2641 `resume_step'.
2642 (gdbsim_open): Remove local variable `argv'. Put results of call
2643 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2644 make a cleanup for it. Free it though when a sim instance cannot
2645 be obtained.
2646 (gdbsim_close): Free sim_argv and null it out as appropriate.
2647 Close sim instances in all inferiors.
2648 (gdbsim_cntrl_c): Stop all inferiors.
2649 (gdbsim_wait):
2650 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2651
e37fd15a
SW
26522010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2653
2654 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2655 function after symbol construction is complete.
2656 Do the same for template symbol addition to template_symbols list.
2657
45c58896
SW
26582010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2659
2660 * symtab.c (symbol_get_demangled_name): Remove assertion and
2661 return NULL when language_specific.cplus_specific is not initialized.
2662 * stabsread.c (define_symbol): Set the name before calling
2663 cp_scan_for_anonymous_namespaces.
2664
33e5013e
SW
26652010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2666
2667 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2668 SYMBOL_SET_LANGUAGE.
2669 (symbol_init_language_specific): Renamed to symbol_set_language.
2670 * symtab.c (symbol_init_language_specific): Removed redundant check
2671 for language_cplus.
2672 Renamed to symbol_set_language.
2673 * stabsread.c (define_symbol): Updated.
2674 (read_enum_type): Updated
2675 * psymtab.c (add_psymbol_to_bcache): Updated.
2676 * minsyms.c (install_minimal_symbols): Updated.
2677 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2678 SYMBOL_LANGUAGE to set the language.
2679 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2680 * mdebugread.c (new_symbol): Ditto.
2681 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2682 * dwarf2read.c (new_symbol_full): Ditto.
2683 * jv-lang.c (add_class_symbol): Ditto.
2684
5da1313b
JK
26852010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2686
2687 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2688 (make_cleanup_restore_page_info)
2689 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2690 * gdbcmd.h (execute_command_to_string): New declaration.
2691 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2692 (make_cleanup_restore_ui_file): Move to utils.c
2693 (execute_gdb_command) <to_string>: Move ...
2694 * top.c (execute_command_to_string): ... here. Call
2695 set_batch_flag_and_make_cleanup_restore_page_info.
2696 * utils.c (make_cleanup_restore_integer): New source file blank line.
2697 (make_cleanup_restore_uinteger): New.
2698 (struct restore_ui_file_closure, do_restore_ui_file)
2699 (make_cleanup_restore_ui_file): Move here from python/python.c.
2700 (init_page_info) <batch_flag>
2701 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2702 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2703
c820c52a
PA
27042010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2705
2706 * thread.c (add_thread_silent): Use null_ptid instead of
2707 minus_one_ptid while getting rid of stale inferior_ptid.
2708
8da614df
CV
27092010-08-06 Corinna Vinschen <vinschen@redhat.com>
2710
2711 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2712 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2713 (decode_frame_entry_1): Remove redundant setting of
2714 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2715 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2716 on examined frame section. Add comment to explain why.
2717 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2718 comment to explain usage.
2719 * gdbarch.c: Regenerate.
2720 * gdbarch.h: Regenerate.
2721
2722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2723
e4195b40
JK
27242010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2725
2726 Code cleanup.
2727 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2728 a more inner block.
2729
a3217aa0
PA
27302010-08-05 Pedro Alves <pedro@codesourcery.com>
2731
2732 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2733 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2734 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2735 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2736 linux-tdep.o to gdb_target_obs.
2737
e2b4a699 27382010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2739
2740 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2741 argument.
889bf7c5 2742
50e8a0d5
HZ
27432010-08-05 Hui Zhu <teawater@gmail.com>
2744
2745 * mips-linux-tdep.c(regset.h): New include.
2746 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2747 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2748 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2749 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2750 mips_linux_regset_from_core_section): New functions.
2751 (fetch_core_registers, regset_core_fns): Deleted.
2752 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2753 Deleted regset_core_fns.
2754 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2755 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2756 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2757 and fpregset64.
2758
70728992
PA
27592010-08-04 Pedro Alves <pedro@codesourcery.com>
2760
2761 * s390-tdep.c: Include linux-tdep.h.
2762 (s390_gdbarch_init): Call linux_init_abi.
2763
a5ee0f0c
PA
27642010-08-04 Pedro Alves <pedro@codesourcery.com>
2765
2766 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2767 instead of printing "Thread" here.
2768 * linux-tdep.c: Include inferior.h.
2769 (linux_core_pid_to_str): New.
2770 (linux_init_abi): New.
2771 * linux-tdep.h (linux_init_abi): Declare.
2772 * alpha-linux-tdep.c: Include linux-tdep.h.
2773 (alpha_linux_init_abi): Call linux_init_abi.
2774 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2775 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2776 * frv-linux-tdep.c: Include linux-tdep.h
2777 (frv_linux_init_abi): Call linux_init_abi.
2778 * hppa-linux-tdep.c: Include linux-tdep.h
2779 (hppa_linux_init_abi): Call linux_init_abi.
2780 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2781 * ia64-linux-tdep.c: Include linux-tdep.h.
2782 (ia64_linux_init_abi): Call linux_init_abi.
2783 * m32r-linux-tdep.c: Include linux-tdep.h.
2784 (m32r_linux_init_abi): Call linux_init_abi.
2785 * m68klinux-tdep.c: Include linux-tdep.h.
2786 (m68k_linux_init_abi): Call linux_init_abi.
2787 * microblaze-linux-tdep.c: Include linux-tdep.h.
2788 (microblaze_linux_init_abi): Call linux_init_abi.
2789 * mips-linux-tdep.c: Include linux-tdep.h.
2790 (mips_linux_init_abi): Call linux_init_abi.
2791 * mn10300-linux-tdep.c: Include linux-tdep.h.
2792 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2793 'gdbinfo' parameter to 'info'.
2794 * ppc-linux-tdep.c: Include linux-tdep.h.
2795 (ppc_linux_init_abi): Call linux_init_abi.
2796 * sh-linux-tdep.c: Include linux-tdep.h.
2797 (sh_linux_init_abi): Call linux_init_abi.
2798 * sparc-linux-tdep.c: Include linux-tdep.h.
2799 (sparc32_linux_init_abi): Call linux_init_abi.
2800 * sparc64-linux-tdep.c: Include linux-tdep.h.
2801 (sparc64_linux_init_abi): Call linux_init_abi.
2802 * xtensa-linux-tdep.c: Include linux-tdep.h.
2803 (xtensa_linux_init_abi): Call linux_init_abi.
2804 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2805 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2806 callback.
2807
bc043ef3
DE
28082010-08-03 Doug Evans <dje@google.com>
2809
2810 * breakpoint.c (bpdisp_text): Constify bpdisps.
2811 * solib-svr4.c (solib_break_names): Constify.
2812 (bkpt_names, main_name_list): Constify.
2813 (match_main): Constify soname arg.
63cdd227
DE
2814 (bfd_lookup_symbol): Remove unnecessary forward decl.
2815 Constify symname arg.
bc043ef3
DE
2816 (enable_break): Constify bkpt_namep.
2817 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2818 (symtab_symbol_info): Constify classnames.
2819
585d1eb8
PM
28202010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2821
2822 * NEWS: Document Python value inferior function calls.
2823
2de00c64
DE
28242010-08-02 Doug Evans <dje@google.com>
2825
2826 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2827
02d868e8
PP
28282010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2829
2830 * linux-thread-db.c (libthread_db_debug): New variable.
2831 (thread_db_find_new_threads_silently): Control verbosity with it.
2832 (try_thread_db_load_1, try_thread_db_load): Likewise.
2833 (find_new_threads_once): Likewise.
2834 (_initialize_thread_db): Set/show it.
2835
a19cae16
JK
28362010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2837
2838 * common/signals.c (signals): Move the content to signals.def.
2839 Include it. Remove the INDENT comments.
2840
c2bbed2a
TT
28412010-07-30 Tom Tromey <tromey@redhat.com>
2842
2843 * Makefile.in (install-only): Install gdb-add-index.
2844 * gdb-add-index.sh: New file.
2845
f32b2f09
CR
28462010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2847
2848 * MAINTAINERS: Add myself for write after approval privileges.
2849
1276c759
JK
28502010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2851
2852 * symfile.c (addr_section_name): New function.
2853 (addrs_section_compar): Use it.
2854 (addr_info_make_relative): Use it. Move variable sect_name into a more
2855 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2856
420697bb
TT
28572010-07-30 Tom Tromey <tromey@redhat.com>
2858
2859 * configure: Rebuild.
2860 * configure.ac: Add missing case for Python 2.7.
2861
d0d99561
DD
28622010-07-29 DJ Delorie <dj@redhat.com>
2863
2864 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2865 conditions.
2866
0b29bdde
PA
28672010-07-29 Pedro Alves <pedro@codesourcery.com>
2868
2869 * PROBLEMS: Remove mention of all problems.
2870
110ed339
PA
28712010-07-28 Pedro Alves <pedro@codesourcery.com>
2872
2873 PR build/11848
2874 * configure.ac: Check for wresize.
2875 * configure, config.in: Regenerate.
2876 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2877 with HAVE_WRESIZE.
2878
326fd672
TT
28792010-07-28 Tom Tromey <tromey@redhat.com>
2880
2881 PR python/11060:
2882 * python/py-type.c (typy_legacy_template_argument): New function,
2883 extracted from typy_template_argument.
2884 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2885 value when needed.
2886
4ac8c4da
TT
28872010-07-28 Oleg Nesterov <oleg@redhat.com>
2888
2889 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2890
053315c2
TT
28912010-07-27 Tom Tromey <tromey@redhat.com>
2892
2893 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2894
3ce3b1ba
PA
28952010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2896
2897 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2898 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2899
2bb4f988
TT
29002010-07-28 Tom Tromey <tromey@redhat.com>
2901
2902 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2903
74232302
JB
29042010-07-28 Joel Brobecker <brobecker@adacore.com>
2905
2906 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2907 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2908
385d04dc
JB
29092010-07-28 Joel Brobecker <brobecker@adacore.com>
2910
2911 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2912 down, just before the block that parse the breakpoint addr_string.
2913
34eaf542
TT
29142010-07-28 Tom Tromey <tromey@redhat.com>
2915
2916 PR c++/9946:
2917 * symfile.c (reread_symbols): Clear template_symbols.
2918 * symtab.h (struct symbol) <is_cplus_template_function>: New
2919 field.
2920 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2921 (struct template_symbol): New.
2922 * symtab.c (lookup_symbol_aux_local): Use
2923 cp_lookup_symbol_imports_or_template.
2924 * objfiles.h (struct objfile) <template_symbols>: New field.
2925 * objfiles.c (relocate_one_symbol): New function.
2926 (objfile_relocate1): Use it. Relocate isolated symbols.
2927 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2928 template_arguments>: New fields.
2929 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2930 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2931 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2932 (lookup_typename): Update.
2933 * gdbtypes.c (lookup_typename): Constify "block" argument.
2934 * dwarf2read.c: Include vec.h.
2935 (symbolp): New typedef.
2936 (read_func_scope): Read template arguments. Allocate a
2937 template_symbol when needed.
2938 (read_structure_type): Read template arguments.
2939 (new_symbol_full): New function, from new_symbol. Handle
2940 DW_TAG_template_type_param and DW_TAG_template_value_param.
2941 (new_symbol): Rewrite as wrapper.
2942 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2943 * cp-namespace.c: Include language.h.
2944 (search_symbol_list): New function.
2945 (cp_lookup_symbol_imports_or_template): Likewise.
2946
d27b3be4
PA
29472010-07-28 Balazs Kezes <rlblaster@gmail.com>
2948
2949 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2950 the command window to the new size and position.
2951
0036e657
PA
29522010-07-28 Balazs Kezes <rlblaster@gmail.com>
2953
a782f43e 2954 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
2955 coordinates.
2956
36900355
PA
29572010-07-28 Balazs Kezes <rlblaster@gmail.com>
2958
a782f43e 2959 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 2960 after a detecting a resize.
a782f43e 2961 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
2962 call.
2963
db5e03ae
PA
29642010-07-28 Pedro Alves <pedro@codesourcery.com>
2965
2966 * configure.ac: Check for resize_term.
2967 * configure, config.in: Regenerate.
2968
b71fff68
JB
29692010-07-27 Joel Brobecker <brobecker@adacore.com>
2970
2971 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2972
9b1c24c8
PA
29732010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2974
2975 * dwarf2read.c (read_string): Rename to ...
2976 (read_direct_string): ... this.
2977 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2978 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2979
00390b84
JK
29802010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2981
2982 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2983 (count_events_callback, select_event_lwp_callback)
2984 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2985
26ab7092
JK
29862010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2987
2988 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2989 (_initialize_ia64_linux_nat): Install it.
2990 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2991 (linux_nat_set_status_is_event): New.
2992 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2993 cancel_breakpoints_callback, linux_nat_filter_event)
2994 (linux_nat_wait_1): Use linux_nat_status_is_event.
2995 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2996
283e6a52
TT
29972010-07-27 Tom Tromey <tromey@redhat.com>
2998
2999 * NEWS: Mention labels, .gdb_index.
3000
53a71c06
CR
30012010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3002
3003 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 3004 "start,+length" form of arguments.
53a71c06
CR
3005 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3006 since GDB 7.1"; and merge two separated paragraphs of disassemble
3007 description in "Changes in GDB 7.0".
3008
c63a1f86
JK
30092010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3010
3011 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3012 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3013 (fputs_maybe_filtered): Do not do filtering also on
3014 ! INPUT_FROM_TERMINAL_P.
3015
abebb8b0
JB
30162010-07-27 Joel Brobecker <brobecker@adacore.com>
3017
3018 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3019 in warning message.
3020
5374244e
PM
30212010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3022
3023 * python/py-value.c (valpy_call): New Function.
3024
ac0b195c
KW
30252010-07-27 Ken Werner <ken.werner@de.ibm.com>
3026
889bf7c5 3027 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
3028 types_list_elements variables.
3029
09d8bd00
TT
30302010-07-26 Tom Tromey <tromey@redhat.com>
3031
3032 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3033 TLS with DW_OP_const4u or DW_OP_const8u.
3034
9fe70b4f
TJB
30352010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3036
3037 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3038 VSX registers contents.
3039
caac4577
JG
30402010-07-26 Jerome Guitton <guitton@adacore.com>
3041
3042 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3043 its adress is null. Add comment to explain why.
3044 (new_symbol): Ditto.
3045
857d11d0
JK
30462010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3047
3048 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3049 the host signal first.
3050
1fd400ff
TT
30512010-07-23 Tom Tromey <tromey@redhat.com>
3052
3053 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3054 type_comp_units>: New fields.
3055 (dw2_get_cu): New function.
3056 (create_cus_from_index): Remove unused argument.
3057 (create_signatured_type_hash_from_index): New function.
3058 (create_addrmap_from_index): Update.
3059 (dwarf2_read_index): Handle version 2.
3060 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3061 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3062 (dw2_print_stats, dw2_expand_all_symtabs)
3063 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3064 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3065 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3066 (allocate_signatured_type_hash_table): New function.
3067 (add_signatured_type_cu_to_list): Likewise.
3068 (create_debug_types_hash_table): Use them. Set type_comp_units.
3069 (read_signatured_type): Ensure section data is available.
3070 (add_address_entry): Don't record empty ranges.
3071 (struct signatured_type_index_data): New.
3072 (write_one_signatured_type): New function.
3073 (write_psymtabs_to_index): Write type CUs.
3074 (save_gdb_index_command): Update comment.
3075 (process_type_comp_unit): Move inititalization of
3076 from_debug_types...
3077 (create_debug_types_hash_table): ... here.
3078
3a674486
JK
30792010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3080
3081 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3082 cleanup and generating of gdb script to it.
3083 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3084 and terminal size. Convert $tmpfile to a series of -ex-es.
3085
54ec275a
KS
30862010-07-23 Keith Seitz <keiths@redhat.com>
3087
3088 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3089 hook for STATIC_BLOCK types, too.
3090
8fd447e6
KS
30912010-07-23 Keith Seitz <keiths@redhat.com>
3092
3093 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3094 and vector definition.
3095
25b72dde
JK
30962010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3097
3098 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3099
96d19272
JK
31002010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3101
3102 * dwarf2read.c: Include completer.h.
3103 (save_gdb_index_command): Use matching usage command name.
3104 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3105 Set filename_completer for it.
3106
ca1f3406
TT
31072010-07-22 Tom Tromey <tromey@redhat.com>
3108
3109 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3110 type signature's per-CU data.
3111
ba25b921
PA
31122010-07-22 Pedro Alves <pedro@codesourcery.com>
3113
3114 * NEWS: Mention target reported shared libraries support by
3115 default.
3116
23bd0f7c
PA
31172010-07-21 Pedro Alves <pedro@codesourcery.com>
3118
3119 PR symtab/11827
3120
3121 Revert:
3122 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3123 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3124 and DW_TAG_volatile_type.
3125 (new_symbol): Likewise.
3126
883df6dd
SW
31272010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3128
3129 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3130 function symbols before overload resolution.
3131
269b11a2
PA
31322010-07-21 Pedro Alves <pedro@codesourcery.com>
3133
3134 * breakpoint.c (bptype_string): New, abstracted out from
3135 print_one_breakpoint_location.
3136 (print_one_breakpoint_location): Adjust.
3137 (breakpoint_1): Adjust the type column width dynamically.
3138
569b05a5
JK
31392010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3140
3141 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3142 a gdb_assert call, new comment.
3143
ad34eb2f
JK
31442010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 * linux-nat.c (linux_handle_extended_wait): Handle case when
3147 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3148
33355866
JK
31492010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3150
3151 Code cleanup.
3152 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3153 linux_nat_wait_1. Use always LP->STATUS afterwards.
3154
26590820
HZ
31552010-07-20 Hui Zhu <teawater@gmail.com>
3156
3157 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3158 (inf_ptrace_attach): Ditto.
3159
c0edd9ed
JK
31602010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3161
3162 Make core files the process_stratum.
3163 * corefile.c (core_target): New variable.
3164 (core_file_command): Remove variable t, use core_target.
3165 * corelow.c (core_ops): Make it static.
3166 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3167 * defs.h (make_cleanup_unpush_target): New prototype.
3168 * gdbarch.h: Regenerate.
3169 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3170 * gdbcore.h (core_target): New declaration.
3171 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3172 variables ops_already_pushed and back_to. Use push_target,
3173 make_cleanup_unpush_target and discard_cleanups calls.
3174 * record.c (record_open): Replace core_stratum by a core_bfd check.
3175 * target.c (target_is_pushed): New function.
3176 (find_core_target): Remove.
3177 * target.h (enum strata) <core_stratum>: Remove.
3178 (target_is_pushed): New declaration.
3179 (find_core_target): Remove declaration.
3180 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3181 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3182
f02253f1
HZ
31832010-07-19 Hui Zhu <teawater@gmail.com>
3184
3185 * breakpoint.c (single_step_breakpoints_inserted): New
3186 function.
3187 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3188 * infrun.c (maybe_software_singlestep): Add check code.
3189 * record.c (record_resume): Add code for software single step.
3190 (record_wait): Ditto.
3191
78768c4a
JK
31922010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3193
3194 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3195 a more inner block. Remove its unused declaration initializer.
3196
431e49aa
TJB
31972010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3198
3199 * NEWS: Mention support for the new ptrace interface and hardware
3200 accelerated watchpoint conditions on powerpc-linux.
3201
bd91e7ae
OS
32022010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3203
3204 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3205 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3206 and host_address_to_string() and %s for pointers.
3207 (debug_to_remove_breakpoint): Likewise.
3208 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3209 (debug_to_can_accel_watchpoint_condition): Likewise.
3210 (debug_to_stopped_data_address): Likewise.
3211 (debug_to_watchpoint_addr_within_range): Likewise.
3212 (debug_to_insert_hw_breakpoint): Likewise.
3213 (debug_to_remove_hw_breakpoint): Likewise.
3214 (debug_to_insert_watchpoint): Likewise.
3215 (debug_to_remove_watchpoint): Likewise.
3216
29df156d
SW
32172010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3218
3219 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3220 argument.
3221 (cplus_specific): New struct.
3222 * symtab.c (symbol_set_demangled_name): Updated.
3223 Use cplus_specific for cplus symbols.
3224 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3225 struct for cplus symbols.
3226 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3227 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3228 * symtab.c (symbol_init_cplus_specific): New function.
3229
b250c185
SW
32302010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3231
3232 * symtab.h (symbol_set_demangled_name): New function.
3233 (symbol_get_demangled_name): New function.
3234 * symtab.c (symbol_set_demangled_name): New function.
3235 (symbol_get_demangled_name): New function.
3236 (symbol_init_language_specific): Use demangled_name setter and getter.
3237 (symbol_set_names): Ditto.
3238 (symbol_natural_name): Ditto.
3239 (symbol_demangled_name): Ditto.
3240 * dwarf2read.c (new_symbol): Ditto.
3241
afa16725
SW
32422010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3243
3244 * symtab.h: Renamed cplus_specific to mangled_lang.
3245 * symtab.c (symbol_init_language_specific): Updated.
3246 (symbol_set_names): Updated.
3247 (symbol_natural_name): Updated.
3248 (symbol_demangled_name): Updated.
3249 * ada-lang.c (ada_decode_symbol): Updated.
3250 * dwarf2read.c (new_symbol): Updated.
3251
3cbaedff
KW
32522010-07-14 Ken Werner <ken.werner@de.ibm.com>
3253
3254 * valops.c (value_assign): Do not call to value_coerce_to_target.
3255 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3256
c932f1be
KW
32572010-07-14 Ken Werner <ken.werner@de.ibm.com>
3258
3259 * MAINTAINERS: Add myself for write after approval privileges.
3260
91158a56
TT
32612010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3262
3263 * c-valprint.c (c_val_print): Add embedded_offset to address in
3264 call to val_print_array_elements.
3265
b3b272e1
TT
32662010-07-13 Tom Tromey <tromey@redhat.com>
3267
3268 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3269
bb3fa9d0
TT
32702010-07-13 Tom Tromey <tromey@redhat.com>
3271
3272 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3273 objfile.
3274
dd786858
TT
32752010-07-13 Tom Tromey <tromey@redhat.com>
3276
3277 * symfile.c (set_initial_language): Update.
3278 (deduce_language_from_filename): Argument type now const.
3279 * symtab.h (find_main_filename): Update.
3280 (deduce_language_from_filename): Update.
3281 * symtab.c (find_main_filename): Make result const.
3282 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3283 * psymtab.c (find_symbol_file_from_partial): Change return type.
3284 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3285 Make result const.
3286
9291a0cd
TT
32872010-07-13 Tom Tromey <tromey@redhat.com>
3288
3289 * breakpoint.c (save_cmdlist): No longer static.
3290 * gdbcmd.h (save_cmdlist): Declare.
3291 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3292 OBJF_READNOW on objfile if readnow_symbol_files.
3293 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3294 (elf_sym_fns_gdb_index): New global.
3295 * dwarf2read.c: Include exceptions.h.
3296 (offset_type): New.
3297 (struct mapped_index): New.
3298 (dwarf2_per_cu_data_ptr): New typedef.
3299 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3300 New fields.
3301 (GDB_INDEX_SECTION): New define.
3302 (struct dwarf2_per_cu_quick_data): New.
3303 (struct dwarf2_per_cu_data) <objfile>: New field.
3304 <psymtab>: Removed.
3305 <v>: New field.
3306 (byte_swap): New function.
3307 (MAYBE_SWAP): New macro.
3308 (INDEX_SUFFIX): New macro.
3309 (dw2_do_instantiate_symtab): New function.
3310 (dw2_instantiate_symtab): Likewise.
3311 (create_cus_from_index): Likewise.
3312 (create_addrmap_from_index): Likewise.
3313 (mapped_index_string_hash): Likewise.
3314 (find_slot_in_mapped_hash): Likewise.
3315 (dwarf2_read_index): Likewise.
3316 (dw2_setup): Likewise.
3317 (dw2_require_line_header): Likewise.
3318 (dw2_require_full_path): Likewise.
3319 (dw2_find_last_source_symtab): Likewise.
3320 (dw2_forget_cached_source_info): Likewise.
3321 (dw2_lookup_symtab): Likewise.
3322 (dw2_lookup_symbol): Likewise.
3323 (dw2_do_expand_symtabs_matching): Likewise.
3324 (dw2_pre_expand_symtabs_matching): Likewise.
3325 (dw2_print_stats): Likewise.
3326 (dw2_dump): Likewise.
3327 (dw2_relocate): Likewise.
3328 (dw2_expand_symtabs_for_function): Likewise.
3329 (dw2_expand_all_symtabs): Likewise.
3330 (dw2_expand_symtabs_with_filename): Likewise.
3331 (dw2_find_symbol_file): Likewise.
3332 (dw2_map_ada_symtabs): Likewise.
3333 (dw2_expand_symtabs_matching): Likewise.
3334 (dw2_find_pc_sect_symtab): Likewise.
3335 (dw2_map_symbol_names): Likewise.
3336 (dw2_map_symbol_filenames): Likewise.
3337 (dw2_has_symbols): Likewise.
3338 (dwarf2_gdb_index_functions): New global.
3339 (dwarf2_initialize_objfile): New function.
3340 (process_psymtab_comp_unit): Update.
3341 (add_partial_subprogram): Likewise.
3342 (dwarf2_psymtab_to_symtab): Likewise.
3343 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3344 (process_full_comp_unit): Update.
3345 (find_file_and_directory): New function.
3346 (read_file_scope): Use find_file_and_directory.
3347 (dwarf2_per_cu_objfile): Update.
3348 (dwarf2_per_cu_addr_size): Update.
3349 (dwarf2_per_cu_offset_size): Update.
3350 (dwarf2_free_objfile): Free the index, if needed.
3351 (dwarf2_per_objfile_free): Unmap the index, if needed.
3352 (struct strtab_entry): New.
3353 (hash_strtab_entry): New function.
3354 (eq_strtab_entry): Likewise.
3355 (create_strtab): Likewise.
3356 (add_string): Likewise.
3357 (struct symtab_index_entry): New.
3358 (struct mapped_symtab): New.
3359 (hash_symtab_entry): New function.
3360 (eq_symtab_entry): Likewise.
3361 (delete_symtab_entry): Likewise.
3362 (create_index_table): Likewise.
3363 (create_mapped_symtab): Likewise.
3364 (cleanup_mapped_symtab): Likewise.
3365 (find_slot): Likewise.
3366 (hash_expand): Likewise.
3367 (add_index_entry): Likewise.
3368 (add_indices_to_cpool): Likewise.
3369 (write_hash_table): Likewise.
3370 (add_address_entry): Likewise.
3371 (write_psymbols): Likewise.
3372 (write_obstack): Likewise.
3373 (unlink_if_set): Likewise.
3374 (write_psymtabs_to_index): Likewise.
3375 (save_gdb_index_command): Likewise.
3376 (_initialize_dwarf2_read): Install "save gdb-index"
3377 command.
3378 (create_all_comp_units): Initialize 'objfile' field of CU.
3379 (dwarf2_locate_sections): Check for .gdb_index.
3380 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3381 * symfile.h (dwarf2_initialize_objfile): Declare.
3382
58b6ab13
TT
33832010-07-13 Tom Tromey <tromey@redhat.com>
3384
3385 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3386 (basic_lookup_transparent_type): Likewise.
3387 * symfile.h (struct quick_symbol_functions)
3388 <pre_expand_symtabs_matching>: New field.
3389 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3390 (psym_functions): Update.
3391
0f5238ed
TT
33922010-07-13 Tom Tromey <tromey@redhat.com>
3393
3394 PR breakpoints/8357:
3395 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3396 * linespec.c (decode_line_1): Update comment. Call decode_label.
3397 (decode_label): New function.
3398 (symbol_found): Handle LOC_LABEL.
3399 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3400 domain. Call add_symbol_to_list.
3401
9aa1f1e3
TT
34022010-07-13 Tom Tromey <tromey@redhat.com>
3403
3404 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3405 * dwarf2loc.c (find_location_expression): Use
3406 dwarf2_per_cu_text_offset.
3407 (dwarf2_evaluate_loc_desc): Likewise.
3408 (dwarf2_loc_desc_needs_frame): Likewise.
3409 (compile_dwarf_to_ax): Likewise.
3410 (loclist_describe_location): Likewise.
3411 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3412 (dwarf2_per_cu_objfile): Update comment.
3413
953ac07e
JK
34142010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3415
3416 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3417 * p-lang.c (pascal_printstr): Likewise.
3418
f04e4012
TT
34192010-07-09 Tom Tromey <tromey@redhat.com>
3420
3421 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3422 'hint' if it is NULL.
3423
f4dfd9c0
HZ
34242010-07-09 Hui Zhu <teawater@gmail.com>
3425
3426 * source.c (print_source_lines_base): Add check for noprint.
3427
7e6e39e5
JB
34282010-07-08 Joel Brobecker <brobecker@adacore.com>
3429
3430 * python/python-config.py: Resync with Python 2.7 version of this
3431 script.
3432
76b8507d
JB
34332010-07-08 Joel Brobecker <brobecker@adacore.com>
3434
3435 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3436
797054e6
JB
34372010-07-07 Joel Brobecker <brobecker@adacore.com>
3438
3439 * NEWS: Create a new section for the next release branch.
3440 Rename the section of the current branch, now that it has
3441 been cut.
3442
c80befee 34432010-07-07 Joel Brobecker <brobecker@adacore.com>
3444
3445 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3446 * version.in: Bump version to 7.2.50.20100707-cvs.
3447
ac56253d
TT
34482010-07-07 Tom Tromey <tromey@redhat.com>
3449
3450 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3451 LOC_COMPUTED symbol.
3452 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3453 (dwarf2_loc_desc_needs_frame): Likewise.
3454 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3455 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3456 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3457 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3458 'offset' argument.
3459 (struct dwarf2_frame_cache) <text_offset>: New field.
3460 (dwarf2_frame_cache): Set new field.
3461 (dwarf2_frame_prev_register): Update.
3462 (dwarf2_frame_sniffer): Update.
3463 (dwarf2_frame_base_sniffer): Update.
3464 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3465
0cf6dd15
TJB
34662010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3467 Thiago Jung Bauermann <bauerman@br.ibm.com>
3468
3469 Support for hw accelerated condition watchpoints in booke powerpc.
3470
3471 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3472 and move to eval.c. Change callers.
3473 (insert_bp_location): Pass watchpoint condition in
3474 target_insert_watchpoint.
3475 (remove_breakpoint_1) Pass watchpoint condition in
3476 target_remove_watchpoint.
3477 (watchpoint_locations_match): Call
3478 target_can_accel_watchpoint_condition.
3479 * eval.c: Include wrapper.h.
3480 (fetch_subexp_value): Moved from breakpoint.c.
3481 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3482 Formatting fix.
3483 (can_use_watchpoint_cond_accel): New function.
3484 (calculate_dvc): Likewise.
3485 (num_memory_accesses): Likewise.
3486 (check_condition): Likewise.
3487 (ppc_linux_can_accel_watchpoint_condition): Likewise
3488 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3489 check_condition and calculate_dvc.
3490 (ppc_linux_remove_watchpoint): Likewise.
3491 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3492 ppc_linux_can_accel_watchpoint_condition
3493 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3494 condition.
3495 (debug_to_remove_watchpoint): Likewise.
3496 (debug_to_can_accel_watchpoint_condition): New function.
3497 (update_current_target): Set to_can_accel_watchpoint_condition.
3498 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3499 * target.h: Add opaque declaration for struct expression.
3500 (struct target_ops) <to_insert_watchpoint>,
3501 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3502 <to_can_accel_watchpoint_condition>: New member.
3503 condition. Update all callers and implementations.
3504 (target_can_accel_watchpoint_condition): New macro.
3505 * value.c (free_value_chain): New function.
3506 * value.h (fetch_subexp_value): New prototype.
3507 (free_value_chain): Likewise.
3508
2f2241f1
UW
35092010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3510
3511 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3512 from gdbarch_core_regset_sections also for .reg if present.
3513
3514 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3515 section size for .reg.
3516 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3517 (ppc_linux_vmx_regset_sections): Likewise.
3518 (ppc_linux_fp_regset_sections): Likewise.
3519 (ppc64_linux_vsx_regset_sections): New variable.
3520 (ppc64_linux_vmx_regset_sections): Likewise.
3521 (ppc64_linux_fp_regset_sections): Likewise.
3522 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3523 for current word size.
3524
1fd7cdc2
JB
35252010-07-06 Joel Brobecker <brobecker@adacore.com>
3526
3527 * server.c (myresume): Make static.
3528
11763c18
TT
35292010-07-06 Tom Tromey <tromey@redhat.com>
3530
3531 * configure, config.in: Rebuild.
3532 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3533 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3534
a6cc4789
AS
35352010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3536
3537 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3538 "clear".
3539
f9e9243a
UW
35402010-07-06 Ken Werner <ken.werner@de.ibm.com>
3541
3542 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3543 * gdbtypes.c (floatformats_ieee_half): New variable.
3544 * doublest.c (floatformat_from_length): Set format to
3545 gdbarch_half_format if length matches.
3546 * gdbarch.sh (half_bit): New architecture method.
3547 (half_format): Likewise.
3548 * gdbarch.h: Regenerate.
3549 * gdbarch.c: Likewise.
3550
4e5799b6
JK
35512010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3552 Joel Brobecker <brobecker@adacore.com>
3553
3554 Fix re-run of PIE executable, PR shlibs/11776.
3555 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3556 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3557
86e4bafc
JK
35582010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3559 Joel Brobecker <brobecker@adacore.com>
3560
3561 * auxv.c (memory_xfer_auxv): Update attach comment.
3562 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3563 svr4_relocate_main_executable.
3564 (svr4_solib_create_inferior_hook): Make the call to
3565 svr4_relocate_main_executable unconditional.
3566
3cd07d20
JK
35672010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3568 Joel Brobecker <brobecker@adacore.com>
3569
3570 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3571
0a1e94c7
JK
35722010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3573 Joel Brobecker <brobecker@adacore.com>
3574
3575 Fix attaching to PIEs prelinked on the disk after the process was
3576 started.
3577 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3578 Verify it against bfd_get_arch_size. Try to match arbitrary
3579 displacement for the phdrs comparison.
3580
5387647f
TT
35812010-07-02 Tom Tromey <tromey@redhat.com>
3582
3583 PR exp/11780:
3584 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3585 value as optimized-out.
3586
38b6c3b3
TJB
35872010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3588 Thiago Jung Bauermann <bauerman@br.ibm.com>
3589
3590 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3591 represent?" question in comment. Change comment to a proper sentence.
3592
a17ac5b0
TT
35932010-07-02 Ken Werner <ken.werner@de.ibm.com>
3594
3595 * c-valprint.c (c_val_print): Fix printing of character vectors.
3596
bddaafad
JK
35972010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3598
3599 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3600 create_breakpoint prototype.
3601
d41c0fc8
PA
36022010-07-01 Pedro Alves <pedro@codesourcery.com>
3603
3604 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3605 usefulness suggestion of multiple breakpoints at same location.
3606
dc10affe
PA
36072010-07-01 Pedro Alves <pedro@codesourcery.com>
3608
3609 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3610
cabe9ab6
PA
36112010-07-01 Pedro Alves <pedro@codesourcery.com>
3612
3613 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3614 (loclist_tracepoint_var_ref): Handle optimized out values.
3615
cce7e648
PA
36162010-07-01 Pedro Alves <pedro@codesourcery.com>
3617
3618 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3619 unnecessary space in string.
3620 * filesystem.c (_initialize_filesystem): Ditto.
3621 * frame.c (_initialize_frame): Ditto.
3622 * infcmd.c (step_once): Ditto.
3623 * infrun.c (_initialize_infrun): Ditto.
3624 * linux-nat.c (linux_child_follow_fork): Ditto.
3625 * maint.c (maintenance_deprecate): Ditto.
3626 * memattr.c (_initialize_mem): Ditto.
3627 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3628 * monitor.c (monitor_open): Ditto.
3629 * procfs.c (procfs_xfer_memory): Ditto.
3630 * reverse.c (bookmarks_info): Ditto.
3631 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3632 * stack.c (_initialize_stack): Ditto.
3633 * tracepoint.c (_initialize_tracepoint): Ditto.
3634 * xtensa-tdep.c (xtensa_supply_gregset,
3635 xtensa_regset_from_core_section): Ditto.
3636
b65c7efe
TT
36372010-07-01 Tom Tromey <tromey@redhat.com>
3638
3639 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3640 check_all_valid.
3641 * value.c (value_entirely_optimized_out): Invert result. Update
3642 for new function name.
3643
0fb4aa4b
PA
36442010-07-01 Pedro Alves <pedro@codesourcery.com>
3645
3646 Static tracepoints support.
3647
3648 * NEWS: Mention new support for static tracepoints.
3649 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3650 qXfer:statictrace:read.
3651 (New features in the GDB remote stub, GDBserver): Mention static
3652 tracepoints support using an UST based backend.
3653 (New commands): Mention "info static-tracepoint-markers" and
3654 "strace".
3655 * breakpoint.c (is_marker_spec): New.
3656 (is_tracepoint): Handle static tracepoints.
3657 (validate_commands_for_breakpoint): Static tracepoints can't do
3658 while-stepping.
3659 (static_tracepoints_here): New.
3660 (bpstat_what): Handle static tracepoints.
3661 (print_one_breakpoint_location, allocate_bp_location, mention):
3662 Ditto.
3663 (create_breakpoint_sal): Ditto.
3664 (decode_static_tracepoint_spec): New.
3665 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3666 `type_wanted'. Adjust. Handle static tracepoint marker
3667 locations.
3668 (break_command_1): Adjust.
3669 (update_static_tracepoint): New.
3670 (update_breakpoint_locations): Handle static tracepoints.
3671 (breakpoint_re_set_one): Handle static tracepoint marker
3672 locations.
3673 (disable_command, enable_command): Handle static tracepoints.
3674 (trace_command, ftrace_command): Adjust.
3675 (strace_command): New.
3676 (create_tracepoint_from_upload): Adjust.
3677 (save_breakpoints): Handle static tracepoints.
3678 (_initialize_breakpoint): Install the "strace" command.
3679 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3680 (struct breakpoint): New fields static_trace_marker_id and
3681 static_trace_marker_id_idx.
3682 (breakpoints_here_p): Declare.
3683 (create_breakpoint): Adjust.
3684 (static_tracepoints_here): Declare.
3685 * remote.c (struct remote_state) <static_tracepoints>: New field.
3686 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3687 (remote_static_tracepoint_marker_at): New.
3688 (remote_static_tracepoint_markers_by_strid): New.
3689 (remote_static_tracepoint_feature): New.
3690 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3691 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3692 (remote_supports_static_tracepoints): New.
3693 (remote_download_tracepoint): Download static tracepoints.
3694 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3695 remote_static_tracepoint_markers_by_strid.
3696 (_initialize_remote): Install set|show remote static-tracepoints,
3697 and set|show remote read-sdata-object commands.
3698 * target.c (update_current_target): Inherit and default
3699 to_static_tracepoint_marker_at, and
3700 to_static_tracepoint_markers_by_strid.
3701 * target.h (static_tracepoint_marker): Forward declare.
3702 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3703 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3704 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3705 (struct target_ops): New fields to_static_tracepoint_marker_at and
3706 to_static_tracepoint_markers_by_strid.
3707 (target_static_tracepoint_marker_at)
3708 (target_static_tracepoint_markers_by_strid): New.
3709 * tracepoint.c: Include source.h.
3710 (validate_actionline): Handle $_sdata.
3711 (struct collection_list): New field strace_data.
3712 (add_static_trace_data): New.
3713 (clear_collection_list): Clear strace_data.
3714 (stringify_collection_list): Account for a possible static trace
3715 data collection.
3716 (encode_actions_1): Encode an $_sdata collection.
3717 (parse_tracepoint_definition): Handle static tracepoints.
3718 (parse_static_tracepoint_marker_definition): New.
3719 (release_static_tracepoint_marker): New.
3720 (print_one_static_tracepoint_marker): New.
3721 (info_static_tracepoint_markers_command): New.
3722 (sdata_make_value): New.
3723 (_initialize_tracepoint): Create the $_sdata convenience variable.
3724 Add the "info static-tracepoint-markers" command.
3725 Mention $_sdata in the "collect" command's help output.
3726 * tracepoint.h (struct static_tracepoint_marker): New.
3727 (parse_static_tracepoint_marker_definition)
3728 (release_static_tracepoint_marker): Declare.
3729 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3730 * python/py-breakpoint.c (bppy_new): Adjust.
3731
aac63f0f
JB
37322010-06-30 Joel Brobecker <brobecker@adacore.com>
3733
3734 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3735 including Python.h.
3736
e68994a7
DE
37372010-06-29 Doug Evans <dje@google.com>
3738
3863f96c
DE
3739 PR gdb/11702
3740 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3741 DW_AT_external is present.
3742
254e6b9e
DE
3743 PR gdb/11702
3744 * NEWS: Add entry.
3745 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3746 create a symbol for the field and record the value.
3747 (new_symbol): Handle DW_TAG_member.
3748 * gdbtypes.c (field_is_static): Remove FIXME.
3749 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3750 only ignore LOC_CONST symbols that are enums.
3751
6e70227d
DE
3752 * dwarf2read.c: Remove trailing whitespace.
3753
e68994a7
DE
3754 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3755 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3756 (struct main_type, field loc): Delete dwarf_block.
3757 (FIELD_DWARF_BLOCK): Delete.
3758 (SET_FIELD_DWARF_BLOCK): Delete.
3759 (TYPE_FIELD_DWARF_BLOCK): Delete.
3760 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3761 Update.
3762
a480d2f6
HZ
37632010-06-29 Hui Zhu <teawater@gmail.com>
3764
3765 * record.c (set_record_pic_cmdlist,
3766 show_record_pic_cmdlist): New variables.
3767 (set_record_pic_command,
3768 show_record_pic_command): New functions.
3769 (record_pic_function, record_pic_line, record_pic_enum,
3770 set_record_pic_type, record_pic_hide_nofunction,
3771 record_pic_hide_nosource, record_pic_hide_same): New variables.
3772 (record_pic_fputs): New function.
3773 (function_list, node_list, edge_list): New struct.
3774 (function_list, node_list, edge_list): New variables.
3775 (record_pic_cleanups, record_pic_node,
3776 record_pic_edge, cmd_record_pic): New functions.
3777 (_initialize_record): Add new commands for record pic.
3778
a0d7a4ff
JK
37792010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3780
3781 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3782 ALLOCATE_CPLUS_STRUCT_TYPE.
3783
595939de 37842010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3785 Tom Tromey <tromey@redhat.com>
3786 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3787
3788 * value.c (pack_unsigned_long): New function.
3789 (value_from_ulongest): New function.
3790 * value.h (value_from_ulongest): Declare.
3791 * python/python.c (_initialize_python): Call
3792 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3793 * python/python-internal.h: Define thread_object.
3794 (gdbpy_inferiors, gdbpy_selected_thread)
3795 (frame_info_to_frame_object, create_thread_object)
3796 (find_thread_object, find_inferior_object)
3797 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3798 (gdbpy_is_value_object, get_addr_from_python): Declare.
3799 * python/py-value.c (builtin_type_upylong): Define.
3800 (convert_value_from_python): Add logic for ulongest.
3801 (gdbpy_is_value_object): New function.
3802 * python/py-utils.c (get_addr_from_python): New function.
3803 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3804 (gdbpy_selected_frame): Use PyObject over frame_info.
3805 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3806 py-infthread.
3807 (SUBDIR_PYTHON_SRCS): Likewise.
3808 (py-inferior.o): New Rule.
3809 (py-infthread.o): New Rule.
3810 * python/py-inferior.c: New File.
3811 * python/py-infthread.c: New File.
3812
98751a41
JK
38132010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3814
3815 * c-typeprint.c (c_type_print_base): For no fields check include also
3816 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3817 * dwarf2read.c (struct typedef_field_list)
3818 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3819 (dwarf2_add_typedef): New.
3820 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3821 Copy also FI.TYPEDEF_FIELD_LIST.
3822 * gdbtypes.h (struct typedef_field)
3823 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3824 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3825 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3826
41f62f39
JK
38272010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3828
3829 * cp-namespace.c (cp_lookup_nested_type): New variable
3830 concatenated_name. Turn the current return condition into a reverse
3831 one. Call also lookup_static_symbol_aux on the constructed qualified
3832 name.
3833 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3834 other files into a called ...
3835 (lookup_static_symbol_aux): ... new function here.
3836 * symtab.h (lookup_static_symbol_aux): New prototype.
3837 * valops.c (value_maybe_namespace_elt): Call also
3838 lookup_static_symbol_aux if we failed otherwise.
3839
af53d231
JK
38402010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3841
3842 Fix PR c++/11703 and PR gdb/1448.
3843 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3844 FIRST_ITER check.
3845
9655fd1a
JK
38462010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3847
3848 Fix modification of cplus_struct_default.
3849 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3850 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3851 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3852
9279c692
JB
38532010-06-28 Joel Brobecker <brobecker@adacore.com>
3854
3855 * NEWS: Add entry announcing the python directory.
3856
d3f41bb1
TT
38572010-06-28 Tom Tromey <tromey@redhat.com>
3858
3859 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3860
23e7acfb
DE
38612010-06-28 Doug Evans <dje@google.com>
3862
3863 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3864 All callers updated.
3865
6036c742
JK
38662010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3867
3868 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3869 obstack_begin after each obstack_free.
3870
9f18a3b3
DE
38712010-06-27 Doug Evans <dje@google.com>
3872
1596cb5d
DE
3873 * value.c (value_static_field): Use `switch' instead of `if'.
3874 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3875
9f18a3b3
DE
3876 * valops.c (search_struct_field): Fix typo in error message.
3877
43dabe42
UW
38782010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3879
3880 * dwarf2expr.c (execute_stack_op): Place preprocessor
3881 directives at the start of the source line.
3882
0f3bb72e
PH
38832010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3884
6036c742
JK
3885 * defs.h (make_command_stats_cleanup): Declare.
3886 (set_display_time): Declare.
3887 (set_display_space): Declare.
3888 * event-top.c (command_handler): Use make_command_stats_cleanup.
3889 * main.c (display_time, display_space): Move definitions to utils.c.
3890 (captured_main): Use make_command_stats_cleanup to get start-up
3891 statistics.
3892 Use set_display_time and set_display_space for processing OPT_STATISTICS
3893 case.
3894 * maint.c (maintenance_time_display): Use set_display_time.
3895 (maintenance_space_display): Use set_display_space.
3896 * top.c (execute_command): Remove obsolete 'maint time' code.
3897 (command_loop): Use make_command_stats_cleanup.
3898 * utils.c (struct cmd_stats): Structure for storing initial time
3899 and space usage.
3900 (display_time, display_space): Move definitions here from utils.c.
3901 (set_display_time): New function.
3902 (set_display_space): New function.
3903 (make_command_stats_cleanup): New function.
3904 (report_command_stats): New auxiliary function for
3905 make_command_stats_cleanup.
0f3bb72e 3906
070c8028
UW
39072010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3908
3909 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3910 hosts where CORE_ADDR is long long.
3911
bc9f0842
TT
39122010-06-25 Tom Tromey <tromey@redhat.com>
3913
3914 PR python/10808:
3915 * python/python.c (execute_gdb_command): Add keywords. Accept
3916 "to_string" argument.
3917 (struct restore_ui_file_closure): New.
3918 (restore_ui_file): New function.
3919 (make_cleanup_restore_ui_file): Likewise.
3920 (GdbMethods) <execute>: Update.
3921
c0cc4c83
UW
39222010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3923
3924 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3925 during inferior call stack frame setup.
3926
f1d8ee66
UW
39272010-06-25 Ken Werner <ken.werner@de.ibm.com>
3928
3929 * solib-spu.c: Include "exception.h".
3930 (ocl_program_data_key): New variable.
3931 (append_ocl_sos): New function.
3932 (ocl_enable_break): Likewise.
3933 (spu_current_sos): Call append_ocl_sos.
3934 (spu_solib_loaded): Call ocl_enable_break.
3935 (_initialize_spu_solib): Register ocl_program_data_key.
3936
19c0c0f8
UW
39372010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3938
3939 * cp-support.c (reset_directive_searched): New function.
3940 (make_symbol_overload_list_using): Prevent recursive calls.
3941
0f6a939d
PM
39422010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3943
3944 * printcmd.c (print_variable_and_value): Print error message on
3945 caught exception.
3946
f2c7657e
UW
39472010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3948
3949 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3950 of stack values.
3951 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3952 "value" member.
3953 (dwarf_expr_push): Change input type to ULONGEST.
3954 (dwarf_expr_fetch): Change return type to ULONGEST.
3955 (dwarf_expr_fetch_address): Add prototype.
3956 (dwarf2_read_address): Remove prototype.
3957 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3958 Truncate stack values to ctx->addr_size bytes.
3959 (dwarf_expr_fetch): Change return value to ULONGEST.
3960 (dwarf_expr_fetch_address): New function.
3961 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3962 when appropriate. Update for struct dwarf_expr_piece changes.
3963 (dwarf2_read_address): Remove.
3964 (unsigned_address_type): Remove.
3965 (signed_address_type): Remove.
3966 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3967 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3968 values. Perform operations on ULONGEST instead of on GDB values,
3969 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3970 values and DW_OP_deref results as unsigned integers.
3971 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3972 changes.
3973 (write_pieced_value): Likewise.
3974 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3975 dwarf_expr_fetch when appropriate.
3976 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3977 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3978 instead of dwarf_expr_fetch when appropriate.
3979
b1d61bc9
PM
39802010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3981
3982 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3983
b14285f6
JB
39842010-06-24 Joel Brobecker <brobecker@adacore.com>
3985
3986 * python/python.c (_initialize_python): Add new "constant"
3987 PYTHONDIR in gdb module. Insert this path at the head of
3988 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3989 exec its __init__.py script if it exists in that directory.
3990
fd60dc69
KB
39912010-06-24 Kevin Buettner <kevinb@redhat.com>
3992
3993 * rx-tdep.c (RX_ACC_REGNUM): Define.
3994 (RX_NUM_REGS): Redefine to 26.
3995 (rx_register_name): Add register "acc". Change order of several
3996 registers. Change name of "vct" register to "fintv" to match RX
3997 documentation.
3998 (rx_register_type): Add case for RX_ACC_REGNUM.
3999
18430289
TT
40002010-06-24 Tom Tromey <tromey@redhat.com>
4001
4002 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4003
40618926
JK
40042010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4005 Tom Tromey <tromey@redhat.com>
4006
4007 Fix GDB startup on readonly filesystem.
4008 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4009
628fe4e4
JK
40102010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4011 Pedro Alves <pedro@codesourcery.com>
4012
4013 Fix PR 9436.
4014 * breakpoint.c (handle_jit_event): New function.
4015 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4016 jit, err, table and bs_class. New variables shlib_event, jit_event,
4017 this_action and bptype. Change bs_class assignments to this_action
4018 assignments. new unhandled bptype internal error. Move here
4019 shlib_event and jit_event handling from handle_inferior_event.
4020 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4021 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4022 BPSTAT_WHAT_CHECK_JIT.
4023 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4024 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4025 (handle_inferior_event): Reinitialize frame and gdbarch after
4026 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4027 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4028 gdbarch when frame gets reinitialized.
4029
f1421989
HZ
40302010-06-24 Hui Zhu <teawater@gmail.com>
4031
4032 * printcmd.c (ui_printf): New function.
4033 (printf_command): Call ui_printf.
4034 (_initialize_printcmd): New command "eval".
4035
d03285ec
UW
40362010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4037
4038 * infrun.c (handle_inferior_event): Handle presence of single-step
4039 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4040 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4041 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4042 * breakpoint.c (detach_single_step_breakpoints): New function.
4043 (detach_breakpoints): Call it.
4044 (cancel_single_step_breakpoints): New function.
4045 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4046
4047 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4048 (spu_gdbarch_init): Install it.
4049
38f6b338
JK
40502010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4051
4052 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4053 * configure: Regenerate.
4054
bb08c432
HZ
40552010-06-22 Hui Zhu <teawater@gmail.com>
4056
4057 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4058 (i386_process_record): Ditto.
4059 * record.c (record_memory_query): New variable.
4060 (_initialize_record): New command "set record memory-query".
4061 * record.h (record_memory_query): New extern.
4062
b55078be
DE
40632010-06-21 Doug Evans <dje@google.com>
4064
4065 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4066 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4067 (i386_syscall_p): Change type of lengthp to int.
4068 (i386_displaced_step_fixup): Handle kernels that run one past a
4069 syscall insn.
4070 * i386-linux-tdep.c (i386_linux_init_abi): Use
4071 i386_displaced_step_copy_insn instead of
4072 simple_displaced_step_copy_insn.
4073
75079b2b
TT
40742010-06-21 Tom Tromey <tromey@redhat.com>
4075
4076 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4077 (dwarf_type_encoding_name): Likewise.
4078
b00fdb78
TT
40792010-06-21 Tom Tromey <tromey@redhat.com>
4080
4081 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4082 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4083 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4084 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4085 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4086 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4087 * dwarf2read.c (tag_type_to_type): Create a new error type on
4088 failure.
4089 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4090 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4091
84951ab5
MS
40922010-06-21 Michael Snyder <msnyder@vmware.com>
4093
889bf7c5 4094 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
4095 not add_abbrev_prefix_cmd, for "enable breakpoints".
4096
d4a087c7
UW
40972010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4098
4099 * dwarf2loc.c (find_location_expression): Add relocation offset
4100 to base-address-selection entry base addresses. Read addresses
4101 (and offsets) as signed/unsigned integers, depending on the
4102 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4103 (loclist_describe_location): Likewise.
4104 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4105 unsigned integer. Do not call dwarf2_read_address.
4106 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4107
13def385
UW
41082010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4109
4110 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4111 value instead of hard-coded SPU_LS_SIZE.
4112 (spu_software_single_step): Likewise.
4113 * spu-tdep.h (SPU_LS_SIZE): Remove.
4114
d2ed6730
UW
41152010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4116
4117 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4118 limit on local store memory accesses.
4119 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4120 * spu-tdep.c (spu_lslr): Remove.
4121 (spu_pointer_to_address): Do not truncate addresses.
4122 (spu_integer_to_address): Likewise.
4123 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4124 * spu-tdep.h: Add comments.
4125 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4126 (SPU_OVERLAY_LMA): Define.
4127
6aed2dbc
SS
41282010-06-18 Stan Shebs <stan@codesourcery.com>
4129
a61408f8
SS
4130 * osdata.c (get_osdata): Warn separately if target does not report
4131 type list.
4132 (info_osdata_command): Allow empty type, report error if target
4133 does not return available types of OS data.
4134 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4135 types if no annex supplied.
4136
6aed2dbc
SS
4137 * thread.c (thread_id_make_value): Make a value representing the
4138 current thread.
4139 (_initialize_thread): Create $_thread.
4140
ec61707d
JB
41412010-06-17 Joel Brobecker <brobecker@adacore.com>
4142
4143 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4144 last local variable declaration. No real code change.
4145
60606b2c
TT
41462010-06-17 Tom Tromey <tromey@redhat.com>
4147
4148 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4149 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4150 temporary obstack.
4151
65d79d4b
SDJ
41522010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4153 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 * breakpoint.c: Include parser-defs.h.
4156 (watchpoint_exp_is_const): New function.
4157 (watch_command_1): Call watchpoint_exp_is_const to check
4158 if the expression is constant.
4159
0407b3f1
AS
41602010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4161
4162 * configure.ac: Check for RDYNAMIC also for cross builds.
4163 * configure: Regenerate.
4164
98d64339
PA
41652010-06-15 Pedro Alves <pedro@codesourcery.com>
4166
4167 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4168 (SFILES): Remove solib-null.c, add solib-target.c.
4169 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4170 (ALLDEPFILES): Remove solib-target.c.
4171 * solib-target.c (_initialize_solib_target): Set
4172 current_target_so_ops to solib_target_so_ops if not already set.
4173 * solib-null.c: Delete.
4174
6a271cae
PA
41752010-06-14 Pedro Alves <pedro@codesourcery.com>
4176
4177 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4178 bytecode.
4179
1e9beacb
UW
41802010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4181
4182 * cp-valprint.c (cp_print_static_field): Members of
4183 dont_print_stat_array_obstack are of type "struct type *".
4184 (_initialize_cp_valprint): Likewise.
4185
21a176fb
UW
41862010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4187
4188 * frame.c (frame_register_unwind): Do not access contents
4189 of "optimized out" unwound register value.
4190
25b524e8
JK
41912010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4192
4193 * ada-lang.h (ada_print_type): Make varstring const.
4194 * ada-typeprint.c (print_func_type): Make name const.
4195 (ada_print_type): Make varstring const.
4196 * c-lang.h (c_print_type): Make varstring const.
4197 * c-typeprint.c (c_print_type): Likewise.
4198 * f-lang.h (f_print_type): Likewise.
4199 * f-typeprint.c (f_print_type): Likewise.
4200 * jv-lang.h (java_print_type): Likewise.
4201 * jv-typeprint.c (java_print_type): Likewise.
4202 * language.c (unk_lang_print_type): Likewise.
4203 * language.h (struct language_defn) <la_print_type>: Likewise.
4204 * m2-lang.h (m2_print_type): Likewise.
4205 * m2-typeprint.c (m2_print_type): Likewise.
4206 * p-lang.h (pascal_print_type): Likewise.
4207 * p-typeprint.c (pascal_print_type): Likewise.
4208
d914c394
SS
42092010-06-11 Stan Shebs <stan@codesourcery.com>
4210
4211 Add per-operation permission flags.
4212
4213 * target.h (struct target_ops): New method to_set_permissions.
4214 (target_set_permissions): New macro.
4215 (target_insert_breakpoint): Change macro to function.
4216 (target_remove_breakpoint): Ditto.
4217 (target_stop): Ditto.
4218 (may_write_registers): Declare.
4219 (may_write_memory): Declare.
4220 (may_insert_breakpoints): Declare.
4221 (may_insert_tracepoints): Declare.
4222 (may_insert_fast_tracepoints): Declare.
4223 (may_stop): Declare.
4224 * target.c (may_write_registers, may_write_registers_1): New globals.
4225 (may_write_memory, may_write_memory_1): New globals.
4226 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4227 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4228 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4229 globals.
4230 (may_stop, may_stop_1): New global.
4231 (target_xfer_partial): Test for write permission.
4232 (target_store_registers): Ditto.
4233 (target_insert_breakpoint): New function.
4234 (target_remove_breakpoint): New function.
4235 (target_stop): New function.
4236 (_initialize_targets): Add new set/show variables.
4237 (set_write_memory_permission): New function.
4238 (update_target_permissions): New function.
4239 (set_target_permissions): New function.
4240 (update_current_target): Default to_set_permissions.
4241 (_initialize_targets): Use new globals and setter function.
4242 * tracepoint.c (start_tracing): Test for permission.
4243 * inferior.h (update_observer_mode): Declare.
4244 * infrun.c (non_stop_1): Define earlier.
4245 (observer_mode, observer_mode_1): New globals.
4246 (set_observer_mode, show_observer_mode): New functions.
4247 (update_observer_mode): New function.
4248 (_initialize_infrun): Define "set observer" command.
4249 * remote.c (PACKET_QAllow): New optional packet.
4250 (remote_protocol_features): Add QAllow.
4251 (remote_set_permissions): New function.
4252 (remote_start_remote): Call it.
4253 (init_remote_ops): Add it to target vector.
4254 (_initialize_remote): Add config command for QAllow.
4255
aec5aa8b
TT
42562010-06-11 Tom Tromey <tromey@redhat.com>
4257
4258 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4259 DW_AT_vtable_elem_location even when GCC extension is seen.
4260
0e03807e
TT
42612010-06-11 Tom Tromey <tromey@redhat.com>
4262
4263 PR gdb/9977, PR exp/11636:
4264 * value.h (value_offset): Update.
4265 (struct lval_funcs) <check_validity>: New field.
4266 <copy_closure>: Make argument const.
4267 (value_computed_closure): Update.
4268 (value_contents_for_printing): Declare.
4269 (value_bits_valid): Likewise.
4270 (val_print): Likewise.
4271 (set_value_component_location): Update.
4272 (value_entirely_optimized_out): Declare.
4273 * value.c (value_offset): Argument now const.
4274 (require_not_optimized_out): New function.
4275 (value_contents_for_printing): New function.
4276 (value_contents_all): Call require_not_optimized_out.
4277 (value_contents): Likewise.
4278 (value_bits_valid): New function.
4279 (value_computed_closure): Argument now const.
4280 (set_value_component_location): Make 'whole' argument const.
4281 (value_entirely_optimized_out): New function.
4282 (value_bitsize): Argument now 'const'.
4283 (value_bitpos): Likewise.
4284 (value_type): Likewise.
4285 * valprint.h (val_print_array_elements): Update.
4286 * valprint.c (val_print): Add 'val' argument. Use
4287 valprint_check_validity.
4288 (valprint_check_validity): New function.
4289 (value_check_printable): Use value_entirely_optimized_out.
4290 (common_val_print): Update.
4291 (value_print): Likewise.
4292 (val_print_array_elements): Add 'val' argument.
4293 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4294 value_bits_valid. Reinit frame cache for lval_computed.
4295 * sh64-tdep.c (sh64_do_register): Update.
4296 * scm-valprint.c (scm_val_print): Add 'val' argument.
4297 * scm-lang.h (scm_val_print): Update.
4298 * python/python.h (apply_val_pretty_printer): Update.
4299 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4300 argument. Call set_value_component_location.
4301 * printcmd.c (print_scalar_formatted): Update.
4302 * p-valprint.c (pascal_val_print): Add 'val' argument.
4303 (pascal_object_print_value_fields): Likewise.
4304 (pascal_object_print_value): Likewise.
4305 (pascal_object_print_static_field): Update.
4306 * p-lang.h (pascal_val_print): Update.
4307 (pascal_object_print_value_fields): Update.
4308 * mt-tdep.c (mt_registers_info): Update.
4309 * mi/mi-main.c (get_register): Update.
4310 (mi_cmd_data_evaluate_expression): Use common_val_print.
4311 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4312 (m2_print_unbounded_array): Likewise.
4313 (m2_val_print): Likewise.
4314 * m2-lang.h (m2_val_print): Update.
4315 * language.h (struct language_defn) <la_val_print>: Add 'val'
4316 argument.
4317 (LA_VAL_PRINT): Likewise.
4318 * language.c (unk_lang_val_print): Add 'val' argument.
4319 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4320 (java_val_print): Likewise.
4321 * jv-lang.h (java_val_print): Add 'val' argument.
4322 * infcmd.c (default_print_registers_info): Update.
4323 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4324 (f77_print_array): Likewise.
4325 (f_val_print): Likewise.
4326 * f-lang.h (f_val_print): Add 'val' argument.
4327 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4328 value_bitpos.
4329 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4330 set_value_optimized_out.
4331 (write_pieced_value): Use value_bitsize and value_bitpos.
4332 <default>: Don't exit loop.
4333 (check_pieced_value_validity): New function.
4334 (pieced_value_funcs): Reference check_pieced_value_validity,
4335 check_pieced_value_invalid.
4336 (copy_pieced_value_closure): Update.
4337 (check_pieced_value_bits): New function.
4338 (check_pieced_value_invalid): New function.
4339 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4340 (d_val_print): Likewise.
4341 * d-lang.h (d_val_print): Update.
4342 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4343 (cp_print_value_fields_rtti): Likewise.
4344 (cp_print_value): Likewise.
4345 (cp_print_static_field): Update.
4346 * c-valprint.c (c_val_print): Add 'val' argument.
4347 (c_value_print): Update.
4348 * c-lang.h (c_val_print): Update.
4349 (cp_print_value_fields): Likewise.
4350 (cp_print_value_fields_rtti): Likewise.
4351 * ada-valprint.c (struct ada_val_print_args): Remove.
4352 (val_print_packed_array_elements): Add 'val' argument.
4353 (ada_val_print): Likewise. Rewrite.
4354 (ada_val_print_stub): Remove.
4355 (ada_val_print_array): Add 'val' argument.
4356 (ada_val_print_1): Likewise.
4357 (print_variant_part): Likewise.
4358 (ada_value_print): Update.
4359 (print_record): Add 'val' argument.
4360 (print_field_values): Likewise.
4361 * ada-lang.h (ada_val_print): Update.
4362
3cf03773
TT
43632010-06-11 Tom Tromey <tromey@redhat.com>
4364
4365 * vec.h (VEC_cleanup): New macro.
4366 (DEF_VEC_ALLOC_FUNC_I): Update.
4367 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4368 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4369 * dwarf2loc.c (struct axs_var_loc): Remove.
4370 (unimplemented): New function.
4371 (translate_register): Likewise.
4372 (access_memory): Likewise.
4373 (compile_dwarf_to_ax): Likewise.
4374 (dwarf2_tracepoint_var_loc): Remove.
4375 (dwarf2_tracepoint_var_access): Likewise.
4376 (dwarf2_tracepoint_var_ref): Likewise.
4377 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4378 (loclist_tracepoint_var_ref): Likewise.
4379 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4380 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4381 require_composition. No longer static.
4382 (execute_stack_op): Update.
4383 * ax-gdb.h (trace_kludge): Declare.
4384
2bdf28a0
JK
43852010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4386
4387 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4388 (should_be_inserted): Return zero also on NULL OWNER.
4389 (breakpoint_program_space_exit): New OWNER comment.
4390 (insert_breakpoint_locations): Extend comment for OWNER.
4391 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4392 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4393 New OWNER comment.
4394 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4395 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4396 (bpstat_check_location): New assert on OWNER.
4397 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4398 and B initializations to the code block. New assert on them.
4399 (print_one_breakpoint_location): New OWNER comment.
4400 (watchpoint_locations_match): Assert on OWNER.
4401 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4402 initializations to the code block. New assert on OWNER.
4403 (set_breakpoint_location_function): New assert on OWNER.
4404 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4405 (bp_location_compare, update_global_location_list)
4406 (update_global_location_list): New OWNER comment.
4407
5b9a19af
UW
44082010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4409
4410 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4411
669211f5
UW
44122010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4413
4414 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4415 (lin_thread_get_thread_signals): Remove prototype.
4416 (GET_THREAD_SIGNALS): Remove.
4417 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4418 * linux-thread-db.c (check_thread_signals): Directly call
4419 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4420
b7a8b4ef
UW
44212010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4422
4423 * gregset.h (GDB_FPXREGSET_T): Remove.
4424 (gdb_fpxregset_t): Likewise.
4425 (supply_fpxregset): Remove prototype.
4426 (fill_fpxregset): Likewise.
4427 * i386-linux-nat.c (supply_fpxregset): Remove.
4428 (fill_fpxregset): Likewise.
4429 (fetch_fpxregs): Inline supply_fpxregset call.
4430 (store_fpxregs): Inline fill_fpxregset call.
4431
4432 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4433 * config/i386/nm-linux.h: Remove file.
4434
82892036
MS
44352010-06-09 Michael Snyder <msnyder@vmware.com>
4436
4437 * target.c (update_current_target): Fix spelling error in comment.
4438 (target_mourn_inferior): Fix spelling error in error message.
4439
5ddb52fa
PH
44402010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4441
4442 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4443 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4444
0f2caa1b
MS
44452010-06-08 Michael Snyder <msnyder@vmware.com>
4446
4447 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4448
3bebe2f2
JK
44492010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4450
4451 * configure.ac <"${have_libpython}" != no>: New workaround of
4452 python#4434.
4453 * configure: Regenerate.
4454
eaaffdf4
HZ
44552010-06-08 Hui Zhu <teawater@gmail.com>
4456
4457 * record.c (record_wait): Move signal out of replay code.
4458
5c631832
JK
44592010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4460
4461 Fix PR 10640.
4462 * dwarf2-frame.c (no_dwarf_call): New function.
4463 (execute_stack_op): Set CTX->DWARF_CALL.
4464 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4465 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4466 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4467 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4468 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4469 (needs_frame_dwarf_call): New function.
4470 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4471 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4472 Update the comment. Move variables die, offset and error call to ...
4473 (follow_die_ref): ... a new function.
4474 (dwarf2_fetch_die_location_block): New function.
4475 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4476
17ea53c3
JK
44772010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4478
4479 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4480 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4481 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4482 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4483 this change.
4484 (struct needs_frame_baton): New field per_cu.
4485 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4486 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4487
245040d7
SW
44882010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4489
4490 * cp-support.c (make_symbol_overload_list_namespace): Only search
4491 static and global blocks.
4492 (make_symbol_overload_list_block): New function.
4493 (make_symbol_overload_list): Separate namespace search from block
4494 search.
4495 (make_symbol_overload_list_qualified): Use
4496 make_symbol_overload_list_block.
4497
4c3376c8
SW
44982010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4499
4500 * value.h: Created oload_search_type enum.
4501 (find_overload_match): Use oload_search_type enum.
4502 * valops.c (find_overload_match): Support combined member and
4503 non-member search.
4504 * eval.c (evaluate_subexp_standard): Calls to
4505 find_overload_match now use oload_search_type enum.
4506 (oload_method_static): Verify index is a proper value.
4507 * valarith.c (value_user_defined_cpp_op): Search for and handle
4508 both member and non-member operators.
4509 (value_user_defined_cpp_op): New function.
4510 (value_user_defined_op): New function.
4511 (value_x_unop): Use value_user_defined_op.
4512 (value_x_binop): Ditto.
4513 * cp-support.c (make_symbol_overload_list_using): Added block
4514 iteration.
4515 Add check for namespace aliases and imported declarations.
4516
ee55da67
JK
45172010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4518
4519 * breakpoint.h (owner): Extend the comment.
4520
1a2ab13a
JK
45212010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4522
4523 Clear stale specific bp_location from former whole breakpoint.
4524 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4525 code ...
4526 (free_bp_location): ... here. Rename there the called function to
4527 bpstat_remove_bp_location_callback.
4528 (bpstat_remove_breakpoint_callback): Rename to ...
4529 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4530 to struct bp_location. Change the called function to
4531 bpstat_remove_bp_location. Create new declaration for the function.
4532 (bpstat_remove_breakpoint): Rename to ...
4533 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4534 code for the new parameter type.
4535
16d6b4b7
NS
45362010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4537
4538 * README: Make version-agnostic.
4539
7e314c57
JK
45402010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4541
4542 Fix duplicate types for single DIE.
4543 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4544 set_die_type.
4545 (read_array_type): Remove type initialization. Recheck get_die_type
4546 after initial die_type. Move set_die_type before set_descriptive_type.
4547 (read_set_type): New variable domain_type. Recheck get_die_type after
4548 initial die_type. Move attr initialization later.
4549 (read_tag_pointer_type, read_tag_reference_type): New variable
4550 target_type. Recheck get_die_type after initial die_type.
4551 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4552 die_type and die_containing_type.
4553 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4554 Recheck get_die_type after initial die_type.
4555 (read_subrange_type): Recheck get_die_type after initial die_type.
4556 Move set_die_type before set_descriptive_type.
4557 (set_die_type): Extend the function comment. Call complaint if DIE has
4558 some type already set.
4559
2f296114
VP
45602010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4561
4562 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4563 for current naming of thread groups (iN, not N).
4564
554794dc
SDJ
45652010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4566
4567 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4568 * parse.c (operator_length): Likewise.
4569 (operator_length_standard): Likewise.
4570 * parser-defs.h (operator_length): Likewise.
4571 (operator_length_standard): Likewise.
4572 (struct exp_descriptor <operator_length>): Likewise.
4573
967cf477
DE
45742010-06-04 Doug Evans <dje@google.com>
4575
bddaacb9 4576 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4577 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4578 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4579 * python/python.c (gdbpy_enabled_cst): Define.
4580 (_initialize_python): Initialize gdbpy_enabled_cst.
4581 * NEWS: Add entry.
4582
2dec564e
JK
45832010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4584
4585 * breakpoint.c (update_global_location_list): Fix comment typo.
4586
44b5680a
HZ
45872010-06-04 Hui Zhu <teawater@gmail.com>
4588
4589 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4590
e7a30f46
DE
45912010-06-03 Doug Evans <dje@google.com>
4592
4593 * configure.ac: Don't fail if python is unusable when
4594 configured with --with-python=auto.
4595 * configure: Regenerate.
4596
84b4420f
SW
45972010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4598
889bf7c5 4599 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4600
df178451
PM
46012010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4602
4603 * valprint.h (get_array_bounds): Change low and high parameter types
4604 to LONGEST *.
0407b3f1 4605 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4606 compute bounds.
4607 (val_print_array_elements): Adapt to change above.
4608 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4609 * p-valprint.c (pascal_val_print): Likewise.
4610
fd5700c7
JK
46112010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4612
4613 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4614 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4615 .F08.
4616
f55ee35c
JK
46172010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4618
4619 Support DW_TAG_module as separate namespaces.
4620 * dwarf2read.c (typename_concat): New parameter physname.
4621 (read_module_type): New function and declaration.
4622 (scan_partial_symbols): Scan also DW_TAG_module children.
4623 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4624 to typename_concat backward compatible physname value 0.
4625 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4626 backward compatible physname value 0.
4627 (add_partial_module, read_module): Remove FIXME comment.
4628 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4629 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4630 DIEs under DW_TAG_module.
4631 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4632 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4633 && physname and return there instead of just setting NAME. Extend
4634 the main block for language_fortran. Pass physname parameter to the
4635 typename_concat call.
4636 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4637 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4638 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4639 missing from SYMBOL_SET_NAMES in the language_fortran case.
4640 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4641 variables.
4642 (read_type_die) <DW_TAG_module>: New.
4643 (MAX_SEP_LEN): Increase to 7.
4644 (typename_concat): New parameter physname. New variable lead. Support
4645 also language_fortran.
4646 * f-exp.y (yylex): Consider : also as a symbol name character class.
4647 * f-lang.c: Include cp-support.h.
4648 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4649 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4650 f_word_break_characters and f_make_symbol_completion_list.
4651 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4652 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4653 * symtab.c (symbol_init_language_specific): Support language_fortran.
4654 (symbol_find_demangled_name): New comment on language_fortran.
4655 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4656 for language_fortran.
4657 (lookup_symbol_aux_local): Check imports also for language_fortran.
4658 (default_make_symbol_completion_list): Rename to ...
4659 (default_make_symbol_completion_list_break_on): ... this name. New
4660 parameter break_on, use it.
4661 (default_make_symbol_completion_list): New stub.
4662 * symtab.h (default_make_symbol_completion_list_break_on): New
4663 prototype.
4664
cb91c06a
JB
46652010-06-02 Joel Brobecker <brobecker@adacore.com>
4666
4667 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4668 to error.
4669
5c315b68
JK
46702010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4671
4672 * dwarf2read.c (typename_concat): Add const to the variable sep.
4673
9eae7c52
TT
46742010-06-02 Tom Tromey <tromey@redhat.com>
4675
4676 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4677 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4678 type is const. Add 'def' argument. Add missing operators, remove
4679 unhandled ones.
4680 (decode_locdesc): Update.
4681 (dwarf2_always_disassemble): New global.
4682 (show_dwarf2_always_disassemble): New function.
4683 (_initialize_dwarf2_read): Add always-disassemble.
4684 (dwarf2_per_cu_offset_size): New function.
4685 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4686 (piece_end_p): New function.
4687 (locexpr_describe_location_piece): Replace 'size' argument with
4688 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4689 some constants. Remove errors.
4690 (disassemble_dwarf_expression): New function.
4691 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4692 Add 'offset_size' argument.
4693 (loclist_describe_location): Change output formatting.
4694 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4695
7d3fe98e
SW
46962010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4697
4698 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4699 anonymous type case.
4700
e77813c8
PM
47012010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4702
4703 * dwarf2read.c (read_subrange_type): Handle missing base type
4704 according to Dwarf-2 specifications.
4705
7cf3118a
SDJ
47062010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4707
4708 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4709 BINOP_EXCL.
4710 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4711 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4712 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4713 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4714 UNOP_CHMAX, UNOP_CHMIN.
4715 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4716 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4717 UNOP_CHMIN>: Remove opcodes.
4718
ae4d0c03
PM
47192010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4720
4721 * dwarf2read.c (read_func_scope): Do not complain for
4722 external function if bounds are not found.
4723
fa593d66
PA
47242010-06-01 Pedro Alves <pedro@codesourcery.com>
4725
4726 * NEWS: Mention gdbserver fast tracepoints support.
4727
cd44747c
PM
47282010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4729
4730 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4731 New macros.
4732 (windows_set_console_info): New function.
4733 (windows_create_inferior): Call windows_set_console_info
4734 if NEW_CONSOLE is true.
4735 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4736 (_initialize_loadable): Initialize GetConsoleFontSize and
4737 GetCurrentConsoleFont.
4738
f6528abd
JK
47392010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4740
4741 * Makefile.in (RDYNAMIC): New.
4742 (SFILES): Add proc-service.list.
4743 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4744 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4745 * config/arm/linux.mh: Likewise.
4746 * config/i386/linux.mh: Likewise.
4747 * config/i386/linux64.mh: Likewise.
4748 * config/ia64/linux.mh: Likewise.
4749 * config/m32r/linux.mh: Likewise.
4750 * config/m68k/linux.mh: Likewise.
4751 * config/mips/linux.mh: Likewise.
4752 * config/pa/linux.mh: Likewise.
4753 * config/powerpc/linux.mh: Likewise.
4754 * config/powerpc/ppc64-linux.mh: Likewise.
4755 * config/s390/s390.mh: Likewise.
4756 * config/sparc/linux.mh: Likewise.
4757 * config/sparc/linux64.mh: Likewise.
4758 * config/xtensa/linux.mh: Likewise.
4759 * configure.ac: New RDYNAMIC on native host and GCC.
4760 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4761 * configure: Regenerate.
4762 * proc-service.list: New.
4763
ca2a87a0
JK
47642010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4765
4766 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4767 CONTENT.
4768
1e225492
JK
47692010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4770
4771 * linux-nat.c (linux_nat_wait_1): Do not call
4772 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4773 TARGET_WAITKIND_SIGNALLED.
4774
e802dbe0
JB
47752010-05-27 Joel Brobecker <brobecker@adacore.com>
4776
4777 * ada-lang.c (ada_inferior_data): New struct.
4778 (ada_inferior_data): New static global.
4779 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4780 (ada_get_tsd_type): New functions.
4781 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4782 to look the tsd type up.
4783 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4784 event. Set ada_inferior_data.
4785
176a6961
PA
47862010-05-27 Pedro Alves <pedro@codesourcery.com>
4787
4788 * remote.c (unpack_varlen_hex): Remove forward declaration.
4789 (remote_console_output): Make static, and add forward declaration.
4790 * remote.h: Drop FIXME comment.
4791 (unpack_varlen_hex): Declare.
4792 (remote_console_output, remote_cisco_objfile_relocate)
4793 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4794 Delete declarations.
4795 * tracepoint.c: Include "remote.h".
4796 (unpack_varlen_hex): Delete declaration.
4797
88bfdde4
TT
47982010-05-27 Tom Tromey <tromey@redhat.com>
4799
4800 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4801 (allocate_piece_closure): Initialize refc.
4802 (copy_pieced_value_closure): Use refc.
4803 (free_pieced_value_closure): Likewise.
4804
8c6363cf
TT
48052010-05-27 Tom Tromey <tromey@redhat.com>
4806
4807 * arm-tdep.c (push_stack_item): 'contents' now const.
4808 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4809 value_contents_writeable. Introduce new temporary.
4810
7ecb917e
TT
48112010-05-27 Tom Tromey <tromey@redhat.com>
4812
4813 * findcmd.c (parse_find_args): Use value_contents, not
4814 value_contents_raw.
4815
f42a0a33
TT
48162010-05-27 Tom Tromey <tromey@redhat.com>
4817
4818 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4819 const. Use value_contents, not value_contents_writeable.
4820
12b795ad
JB
48212010-05-27 Joel Brobecker <brobecker@adacore.com>
4822
4823 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4824 by call to value_contents.
4825
5a2e11c7
OS
48262010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4827
4828 * MAINTAINERS: Add myself for write after approval privileges.
4829
ec685c5e
DE
48302010-05-26 Doug Evans <dje@google.com>
4831
0c4a4063
DE
4832 Allow python to find its files if moved from original location.
4833 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4834 (GDB_AC_WITH_DIR): Call it.
4835 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4836 python installation directory.
4837 * config.in: Regenerate.
4838 * configure: Regenerate.
4839 * defs.h (python_libdir): Declare.
4840 * main.c (python_libdir): Define.
4841 (captured_main): Initialize python_libdir.
4842 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4843 call Py_SetProgramName to make sure python can find its libraries
4844 and modules.
4845
ec685c5e
DE
4846 * configure.ac: Try to use python's distutils to fetch compilation
4847 parameters.
4848 * configure: Regenerate.
4849 * python/python-config.py: New file.
4850
363a6e9f
OS
48512010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4852
4853 * ser-tcp.c (net_open): Check error return from socket() call by its
4854 equality to -1 not by it being negative.
4855 (net_close): Likewise.
4856
dde08ee1
PA
48572010-05-26 Pedro Alves <pedro@codesourcery.com>
4858
4859 * NEWS: Mention the `qRelocInsn' feature.
4860 * gdbarch.sh (relocate_instruction): New.
4861 * amd64-tdep.c (rip_relative_offset): New.
4862 (append_insns): New.
4863 (amd64_relocate_instruction): New.
4864 (amd64_init_abi): Install it.
4865 * i386-tdep.c (append_insns): New.
4866 (i386_relocate_instruction): New.
4867 (i386_gdbarch_init): Install it.
4868 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4869 * gdbarch.h, gdbarch.c: Regenerate.
4870
947bb88f
TT
48712010-05-26 Tom Tromey <tromey@redhat.com>
4872
4873 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4874 (struct dwarf2_loclist_baton) <data>: Likewise.
4875 * dwarf2loc.c (find_location_expression): Constify return type.
4876 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4877 (dwarf2_loc_desc_needs_frame): Likewise.
4878 (loclist_read_variable): Constify.
4879 (loclist_describe_location): Likewise.
4880 (loclist_tracepoint_var_ref): Likewise.
4881
0d45f56e
TT
48822010-05-25 Tom Tromey <tromey@redhat.com>
4883
4884 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4885 (dwarf_expr_frame_base_1): Likewise.
4886 (read_pieced_value): Update.
4887 (needs_frame_frame_base): Constify.
4888 (dwarf2_tracepoint_var_loc): Likewise.
4889 (dwarf2_tracepoint_var_access): Likewise.
4890 (locexpr_describe_location_piece): Likewise.
4891 (locexpr_describe_location_1): Likewise.
4892 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4893 Constify.
4894 (data): Now const.
4895 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4896 (dwarf_expr_eval, read_uleb128, read_sleb128)
4897 (dwarf2_read_address): Update.
4898 * dwarf2expr.c (dwarf_expr_eval): Constify.
4899 (read_uleb128): Likewise.
4900 (read_sleb128): Likewise.
4901 (dwarf2_read_address): Likewise.
4902 (require_composition): Likewise.
4903 (execute_stack_op): Likewise.
4904 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4905 "const gdb_byte *".
4906 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4907 Now const.
4908 (no_get_frame_base): Constify.
4909 (execute_stack_op): Likewise.
4910 (execute_cfa_program): Likewise.
4911 (read_encoded_value): Likewise.
4912
07ca107c
DE
49132010-05-25 Doug Evans <dje@google.com>
4914
e34838f0
DE
4915 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4916
01f69b38
DE
4917 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4918 * event-loop.c: ... here.
4919 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4920 `error' for clarity.
4921 (tui_getc): Pass correct value for `error' parameter to
4922 tui_readline_output.
4923
07ca107c
DE
4924 Add python gdb.GdbError and gdb.string_to_argv.
4925 * NEWS: Document them.
4926 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4927 the exception is gdb.GdbError. Print a second traceback if there's
4928 an error computing the error message.
4929 (gdbpy_string_to_argv): New function.
4930 * python/py-utils.c (gdbpy_obj_to_string): New function.
4931 (gdbpy_exception_to_string): New function.
4932 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4933 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4934 (gdbpy_gdberror_exc): Declare.
4935 * python/python.c (gdbpy_gdberror_exc): New global.
4936 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4937 gdb.GdbError.
4938 (GdbMethods): Add string_to_argv.
4939
5572ce1f
PM
49402010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4941
4942 * windows-nat.c (display_selector): Call GetLastError to give better
4943 failure explanation.
4944
acd5838a
PA
49452010-05-24 Pedro Alves <pedro@codesourcery.com>
4946
4947 * config.in: Regenerate.
4948
b26a4dcb
JK
49492010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4950
4951 Code cleanup.
4952 * target.c (push_target): Return only void. Remove the return value
4953 comment.
4954 * target.h (push_target): Return only void.
4955
f434ba03
PA
49562010-05-23 Pedro Alves <pedro@codesourcery.com>
4957
4958 Update gnulib from latest git.
4959 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4960
4961 * gnulib/memcmp.c: Removed.
4962 * gnulib/memchr.valgrind: New.
4963 * gnulib/stddef.in.h: New.
4964 * gnulib/Makefile.am: Updated.
4965 * gnulib/memchr.c: Updated.
4966 * gnulib/memmem.c: Updated.
4967 * gnulib/stdint.in.h: Updated.
4968 * gnulib/str-two-way.h: Updated.
4969 * gnulib/string.in.h: Updated.
4970 * gnulib/wchar.in.h: Updated.
4971
4972 * gnulib/extra/link-warning.h: Removed.
4973 * gnulib/extra/c++defs.h: New.
4974 * gnulib/extra/warn-on-use.h: New.
4975 * gnulib/extra/arg-nonnull.h: Updated.
4976
4977 * gnulib/m4/extensions.m4: Updated.
4978 * gnulib/m4/gnulib-cache.m4: Updated.
4979 * gnulib/m4/gnulib-common.m4: Updated.
4980 * gnulib/m4/gnulib-comp.m4: Updated.
4981 * gnulib/m4/gnulib-tool.m4: Updated.
4982 * gnulib/m4/include_next.m4: Updated.
4983 * gnulib/m4/longlong.m4: Updated.
4984 * gnulib/m4/memchr.m4: Updated.
4985 * gnulib/m4/memmem.m4: Updated.
4986 * gnulib/m4/stdint.m4: Updated.
4987 * gnulib/m4/string_h.m4: Updated.
4988 * gnulib/m4/memcmp.m4: Removed.
4989 * gnulib/m4/onceonly_2_57.m4: Removed.
4990 * gnulib/m4/00gnulib.m4: New.
4991 * gnulib/m4/mmap-anon.m4: New.
4992 * gnulib/m4/multiarch.m4: New.
4993 * gnulib/m4/onceonly.m4: New.
4994 * gnulib/m4/stddef_h.m4: New.
4995 * gnulib/m4/warn-on-use.m4: New.
4996 * gnulib/m4/wchar.m4: Removed.
4997 * gnulib/m4/wchar_h.m4: New.
4998 * gnulib/m4/wchar_t.m4: New.
4999 * gnulib/m4/wint_t.m4: New.
5000
5001 * aclocal.m4: Regenerate.
5002 * config.in: Likewise.
5003 * configure: Likewise.
5004 * gnulib/Makefile.in: Likewise.
5005
d3b1e874
TT
50062010-05-21 Tom Tromey <tromey@redhat.com>
5007
5008 * dwarf2loc.c (extract_bits_primitive): New function.
5009 (extract_bits): Likewise.
5010 (insert_bits): Likewise.
5011 (copy_bitwise): Likewise.
5012 (read_pieced_value): Do all operations in bits.
5013 (write_pieced_value): Likewise.
5014 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5015 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5016 Always use xrealloc to resize piece array.
5017 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5018 <DW_OP_piece>: Update.
5019 <DW_OP_bit_piece>: New case.
5020
cb826367
TT
50212010-05-21 Tom Tromey <tromey@redhat.com>
5022
5023 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5024 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5025 * dwarf2expr.h (enum dwarf_value_location)
5026 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5027 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5028 (add_piece): Handle empty piece.
5029 (execute_stack_op) <DW_OP_piece>: Handle
5030 DWARF_VALUE_OPTIMIZED_OUT.
5031
74de6778
TT
50322010-05-21 Tom Tromey <tromey@redhat.com>
5033
5034 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5035 evaluate_subexp, not evaluate_subexp_with_coercion.
5036
f346a30d
PM
50372010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5038
5039 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5040 attribute.
5041
afd74c5f
TT
50422010-05-21 Tom Tromey <tromey@redhat.com>
5043
5044 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5045 offset.
5046 (write_pieced_value): Likewise.
5047
90e7c2c5
PM
50482010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5049
5050 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5051 and DW_TAG_volatile_type.
5052 (new_symbol): Likewise.
5053
8148cf8d
PM
50542010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5055
5056 * p-valprint.c (pascal_val_print): Call get_array_bounds
5057 to obtain the number of elements in an array.
5058
3a1d4620
DE
50592010-05-19 Doug Evans <dje@google.com>
5060
0bf0f8c4
DE
5061 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5062
3a1d4620
DE
5063 * python.c (source_python_script): Add comment.
5064 (source_python_script_for_objfile): Remove unnecessary call to
5065 gdbpy_print_stack.
5066
dc21167c
JK
50672010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5068 Sergio Durigan Junior <sergiodj@redhat.com>
5069
5070 Code cleanup.
5071 * parse.c (exp_iterate): Use operator_length wrapper function.
5072
5b4ee69b
MS
50732010-05-18 Michael Snyder <msnyder@vmware.com>
5074
5075 * ada-lang.c: White space.
5076 * ada-typeprint.c: White space.
5077 * ada-valprint.c: White space.
5078 * addrmap.c: White space.
5079 * auxv.c: White space.
5080 * ax-gdb.c: White space.
5081
e17c9e56
HZ
50822010-05-18 Hui Zhu <teawater@gmail.com>
5083
5084 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5085 for oldfp.
5086 (inferior_call_waitpid): Move make_cleanup out of check.
5087 Check the return of waitpid.
5088 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5089
a109c7c1
MS
50902010-05-17 Michael Snyder <msnyder@vmware.com>
5091
1c5313c5
MS
5092 * tui/tui.c: White space.
5093 * tui/tui-data.c: White space.
5094 * tui/tui-disasm.c: White space.
5095 * tui/tui-file.c: White space.
5096 * tui/tui-interp.c: White space.
5097 * tui/tui-main.c: White space.
5098 * tui/tui-out.c: White space.
5099 * tui/tui-regs.c: White space.
5100 * tui/tui-source.c: White space.
5101 * tui/tui-stack.c: White space.
5102 * tui/tui-win.c: White space.
5103 * tui/tui-winsource.c: White space.
5104
f4a14ae6
MS
5105 * procfs.c: White space.
5106
d59b6f6c
MS
5107 * python/py-auto-load.c: White space.
5108 * python/py-block.c: White space.
5109 * python/py-breakpoint.c: White space.
5110 * python/py-cmd.c: White space.
5111 * python/py-function.c: White space.
5112 * python/py-lazy-string.c: White space.
5113 * python/py-objfile.c: White space.
5114 * python/py-param.c: White space.
5115 * python/py-prettyprint.c: White space.
5116 * python/py-progspace.c: White space.
5117 * python/py-symtab.c: White space.
5118 * python/python.c: White space.
5119 * python/py-type.c: White space.
5120 * python/py-utils.c: White space.
5121 * python/py-value.c: White space.
5122
102040f0
MS
5123 * mi/mi-cmd-break.c: White space.
5124 * mi/mi-cmd-env.c: White space.
5125 * mi/mi-cmds.c: White space.
5126 * mi/mi-cmd-stack.c: White space.
5127 * mi/mi-cmd-var.c: White space.
5128 * mi/mi-console.c: White space.
5129 * mi/mi-getopt.c: White space.
5130 * mi/mi-interp.c: White space.
5131 * mi/mi-main.c: White space.
5132 * mi/mi-out.c: White space.
5133 * mi/mi-parse.c: White space.
5134
cdb27c12
MS
5135 * cli/cli-cmds.c: White space.
5136 * cli/cli-decode.c: White space.
5137 * cli/cli-dump.c: White space.
5138 * cli/cli-interp.c: White space.
5139 * cli/cli-logging.c: White space.
5140 * cli/cli-script.c: White space.
5141 * cli/cli-setshow.c: White space.
5142
a109c7c1
MS
5143 * valarith.c: White space.
5144 * valops.c: White space.
5145 * valprint.c: White space.
5146 * value.c: White space.
5147 * varobj.c: White space.
5148 * xcoffread.c: White space.
5149 * xml-support.c: White space.
5150 * xml-tdesc.c: White space.
5151
3872d37d
AS
51522010-05-17 Andreas Schwab <schwab@redhat.com>
5153
5154 PR gdb/11092
5155 * c-lang.c (c_printstr): Compute real length of NUL terminated
5156 string at first.
5157
0cce5bd9
JB
51582010-05-17 Joel Brobecker <brobecker@adacore.com>
5159
5160 * parse.c (parse_exp_in_context): When block is not NULL, use
5161 its associated language to parse the expression instead of
5162 the current_language.
5163
5f19d646
JB
51642010-05-17 Joel Brobecker <brobecker@adacore.com>
5165
5166 * jv-lang.c (java_lookup_class): Remove commented out code.
5167 (type_from_class): Likewise.
5168 (java_op_print_tab): Remove commented-out elements.
5169
28c85d6c
JB
51702010-05-17 Joel Brobecker <brobecker@adacore.com>
5171
5172 * ada-lang.c (to_fixed_range_type): The the raw index type as
5173 argument instead of the raw type name. Remove orig_type parameter.
5174 Update calls throughout.
5175 (ada_fixup_array_indexes_type): New function.
5176 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5177 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5178 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5179 Remove name parameter.
5180 (print_array_type): Add call to ada_fixup_array_indexes_type.
5181 Update calls to print_range_type.
5182 (ada_print_type): Update calls to print_range_type.
5183
d09039dd
PM
51842010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5185
5186 * dwarf2read.c (read_set_type): Set type length if
5187 DW_AT_byte_size attribute is present.
5188
7a081a30
PM
51892010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5190
5191 * p-valprint.c (pascal_val_print): Handle set type if range limits
5192 are undefined but size is known.
5193
77382aee
PA
51942010-05-17 Pedro Alves <pedro@codesourcery.com>
5195
5196 * procfs.c: Reformat.
5197
433759f7
MS
51982010-05-16 Michael Snyder <msnyder@vmware.com>
5199
5d502164
MS
5200 * target.c: White space.
5201 * target-descriptions.c: White space.
5202 * target-memory.c: White space.
5203 * thread.c: White space.
5204 * top.c: White space.
5205 * tracepoint.c: White space.
5206 * trad-frame.c: White space.
5207 * tramp-frame.c: White space.
5208 * ui-file.c: White space.
5209 * ui-out.c: White space.
5210 * user-regs.c: White space.
5211 * utils.c: White space.
5212
433759f7
MS
5213 * scm-exp.c: White space.
5214 * scm-lang.c: White space.
5215 * scm-valprint.c: White space.
5216 * sentinel-frame.c: White space.
5217 * ser-base.c: White space.
5218 * ser-go32.c: White space.
5219 * serial.c: White space.
5220 * ser-mingw.c: White space.
5221 * ser-pipe.c: White space.
5222 * ser-tcp.c: White space.
5223 * ser-unix.c: White space.
5224 * solib.c: White space.
5225 * solib-darwin.c: White space.
5226 * solib-frv.c: White space.
5227 * solib-irix.c: White space.
5228 * solib-osf.c: White space.
5229 * solib-pa64.c: White space.
5230 * solib-som.c: White space.
5231 * solib-spu.c: White space.
5232 * solib-svr4.c: White space.
5233 * solib-target.c: White space.
5234 * source.c: White space.
5235 * stabsread.c: White space.
5236 * stack.c: White space.
5237 * std-regs.c: White space.
5238 * symfile.c: White space.
5239 * symmisc.c: White space.
5240 * symtab.c: White space.
5241
dd304d53
MS
52422010-05-16 Michael Snyder <msnyder@vmware.com>
5243
5244 * source.c (_initialize_source): Add "rev" as an abbreviation
5245 for the "reverse-search" command.
5246
a744cf53
MS
52472010-05-16 Michael Snyder <msnyder@vmware.com>
5248
123f5f96
MS
5249 * record.c: White space.
5250 * regcache.c: White space.
5251 * reggroups.c: White space.
5252 * remote-fileio.c: White space.
5253 * remote-m32r-sdi.c: White space.
5254 * remote-mips.c: White space.
5255 * remote-sim.c: White space.
a744cf53
MS
5256 * remote.c: White space.
5257 (process_g_packet): Remove orphan braces.
5258
b8d56208
MS
52592010-05-15 Michael Snyder <msnyder@vmware.com>
5260
ad3bbd48
MS
5261 * parse.c: White space.
5262 * p-lang.c: White space.
5263 * posix-hdep.c: White space.
5264 * printcmd.c: White space.
5265 * progspace.c: White space.
5266 * prologue-value.c: White space.
5267 * psymtab.c: White space.
5268 * p-typeprint.c: White space.
5269 * p-valprint.c: White space.
5270
5cc80db3
MS
5271 * objc-lang.c: White space.
5272 * objfiles.c: White space.
5273 * observer.c: White space.
5274 * osabi.c: White space.
5275 * osdata.c: White space.
5276
b8d56208
MS
5277 * m2-lang.c: White space.
5278 * m2-valprint.c: White space.
5279 * macrocmd.c: White space.
5280 * macroexp.c: White space.
5281 * macroscope.c: White space.
5282 * macrotab.c: White space.
5283 * main.c: White space.
5284 * maint.c: White space.
5285 * mdebugread.c: White space.
5286 * memattr.c: White space.
5287 * minsyms.c: White space.
5288 * monitor.c: White space.
5289
9a619af0
MS
52902010-05-14 Michael Snyder <msnyder@vmware.com>
5291
e0881a8e
MS
5292 * jv-lang.c: White space.
5293 * jv-typeprint.c: White space.
5294 * jv-valprint.c: White space.
5295 * language.c: White space.
5296 * libunwind-frame.c: White space.
5297 * linespec.c: White space.
5298 * linux-nat.c: White space.
5299 * linux-record.c: White space.
5300 * linux-thread-db.c: White space.
5301
abbb1732
MS
5302 * infcall.c: White space.
5303 * inf-child.c: White space.
5304 * infcmd.c: White space.
5305 * inferior.c: White space.
5306 * inf-loop.c: White space.
5307 * inflow.c: White space.
5308 * inline-frame.c: White space.
5309 * interps.c: White space.
5310
d8734c88
MS
5311 * gcore.c: White space.
5312 * gdb.c: White space.
5313 * gdbtypes.c: White space.
5314 * gnu-nat.c: White space.
5315 * gnu-v2-abi.c: White space.
5316 * gnu-v3-abi.c: White space.
5317
bb9bcb69
MS
5318 * findcmd.c: White space.
5319 * findvar.c: White space.
5320 * fork-child.c: White space.
5321 * frame-base.c: White space.
5322 * frame.c: White space.
5323 * frame-unwind.c: White space.
5324 * f-valprint.c: White space.
5325
d7f9d729
MS
5326 * elfread.c: White space.
5327 * environ.c: White space.
5328 * eval.c: White space.
5329 * event-loop.c: White space.
5330 * event-top.c: White space.
5331 * exceptions.c: White space.
5332 * exec.c: White space.
5333 * expprint.c: White space.
5334
9a619af0
MS
5335 * dbxread.c: White space.
5336 * dcache.c: White space.
5337 * disasm.c: White space.
5338 * doublest.c: White space.
5339 * dsrec.c: White space.
5340 * dummy-frame.c: White space.
5341 * dwarf2expr.c: White space.
5342 * dwarf2-frame.c: White space.
5343 * dwarf2loc.c: White space.
5344 * dwarf2read.c: White space.
5345
88d4aea7
PM
53462010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5347
889bf7c5 5348 PR python/11482
88d4aea7
PM
5349
5350 * python/py-value.c (valpy_hash): New function.
5351 (value_object_type): Register valpy_hash.
5352
7a298875 53532010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 5354 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
5355
5356 * linux-fork.c (gdbthread.h): New include.
5357 (fork_info): Add parent_ptid.
5358 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5359 functions.
5360 (delete_checkpoint_command): Call inferior_call_waitpid.
5361 (checkpoint_command): Set parent_ptid.
5362
c14feecc
MS
53632010-05-13 Michael Snyder <msnyder@vmware.com>
5364
6595d32b
MS
5365 * dictionary.c: Re-indent to GNU coding standard.
5366
c5504eaf
MS
5367 * charset.c: White space.
5368 * c-lang.c: White space.
5369 * cli-out.c: White space.
5370 * coffread.c: White space.
5371 * complaints.c: White space.
5372 * completer.c: White space.
5373 * corefile.c: White space.
5374 * corelow.c: White space.
5375 * cp-abi.c: White space.
5376 * cp-namespace.c: White space.
5377 * cp-support.c: White space.
5378 * cp-valprint.c: White space.
5379 * c-typeprint.c: White space.
5380 * c-valprint.c: White space.
cc59ec59
MS
5381 * blockframe.c: White space.
5382 * breakpoint.c: White space.
5383 * buildsym.c: White space.
5384 * blockframe.c: White space.
b6de9da4 5385 * bcache.c: White space.
05c547f6
MS
5386 * gdbarch.sh: White space, add blank lines.
5387 * arch-utils.c: Ditto.
5388 * gdbarch.c: Regenerate.
1c4d3f96 5389 * frame.c: White space, add blank lines.
f89b749f
MS
5390 * stack.c: White space, add blank lines.
5391 (initialize_stack): Remove long-dead code.
c14feecc 5392
a2d33775
JK
53932010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 Code cleanup.
5396 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5397 (locexpr_read_variable, loclist_read_variable): Update the callers.
5398
33ac96f0
JK
53992010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5400
5401 Code cleanup.
5402 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5403 Remove check of NULL returned by tag_type_to_type.
5404 (die_containing_type): Remove variable type. Remove type_die variable
5405 initialization. Remove check of NULL returned by tag_type_to_type.
5406
f5a010c0
PM
54072010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5408
5409 PR exp/11530.
5410 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5411 names of unnamed structures or unions.
5412
bf701c2c
PM
54132010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5414
5415 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 5416 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
5417 find_procinfo_or_die call.
5418 (procfs_stopped_data_address): New function.
5419 (procfs_use_watchpoints): Register new watchpoint related function.
5420
d02691ef
TT
54212010-05-11 Tom Tromey <tromey@redhat.com>
5422
5423 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5424
e0627e85
MS
54252010-05-10 Michael Snyder <msnyder@vmware.com>
5426
5427 * utils.c: White space cleanup.
5428
cc73bb8c
TT
54292010-05-10 Tom Tromey <tromey@redhat.com>
5430
5431 * eval.c (ptrmath_type_p): Add 'lang' argument.
5432 (evaluate_subexp_standard): Update.
5433 (evaluate_subexp_with_coercion): Update.
5434 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5435
c02866a0
MS
54362010-05-10 Michael Snyder <msnyder@vmware.com>
5437
5438 * utils.c (do_fclose_cleanup) Restore local variable.
5439
06280d23
DE
54402010-05-09 Doug Evans <dje@google.com>
5441
5442 * record.c (init_record_core_ops): Rename record_core to record-core.
5443
fa07e785
JB
54442010-05-08 Joel Brobecker <brobecker@adacore.com>
5445
5446 Implement task switching on pa-hpux.
5447 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5448 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5449
4c680d1d
PM
54502010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5451
5452 * valops.c (find_overload_match): Add missing i18n markup.
5453
28e176a6
PM
54542010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5455
5456 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5457
48cb83fd
JK
54582010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5459
5460 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5461 list for the obconcat call.
5462 * mdebugread.c (parse_symbol): Likewise.
5463 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5464 Likewise.
5465 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5466 New variable ap. Remove variables len and val.
5467 * symfile.h (obconcat): Likewise for the prototype.
5468
f92adf3c
MS
54692010-05-07 Michael Snyder <msnyder@vmware.com>
5470
5471 * python/python.c (execute_gdb_command): Remove unused variables.
5472 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5473 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5474 Remove unused variable.
5475 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5476 (cmdpy_completer): Remove unused variable.
5477 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5478 * python/py-function.c (fnpy_call): Remove unused variable.
5479 * python/py-objfile.c (objfile_to_objfile_object):
5480 Remove unused variable.
5481 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5482 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5483 Remove unused variable.
5484 (gdbpy_default_visualizer): Remove unused variable.
5485 * python/py-progspace.c (pspace_to_pspace_object):
5486 Remove unused variable.
0407b3f1 5487 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5488 Remove unused variable.
0407b3f1 5489 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5490 Remove unused variable.
5491 * python/py-value.c (valpy_string): Remove unused variable.
5492 (convert_value_from_python): Remove unused variables.
5493
d160942f
MS
54942010-05-07 Michael Snyder <msnyder@vmware.com>
5495
5496 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5497 and use it to compute variable 't1'.
5498
587542ab
JB
54992010-05-07 Joel Brobecker <brobecker@adacore.com>
5500
5501 * ada-lang.c (assign_aggregate): Remove unused variable.
5502
7322dca9
SW
55032010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5504
5505 PR C++/7943:
5506 * valops.c (find_overload_match): Handle fsym == NULL case.
5507 Add int no_adl argument.
5508 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5509 when appropriate.
5510 Add int no_adl argument.
5511 (find_oload_champ_namespace): Add int no_adl argument.
5512 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5513 expression.
5514 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5515 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5516 Evaluate arguments and use them to perform ADL lookup.
5517 Pass no_adl argument to find_overload_match.
5518 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5519 * cp-support.h: Added prototype for
5520 make_symbol_overload_list_namespace.
5521 * cp-support.c (make_symbol_overload_list_namespace): New function.
5522 (make_symbol_overload_list_adl_namespace): New function.
5523 (make_symbol_overload_list_adl): New function.
5524 (make_symbol_overload_list_using): Moved code to add function to
5525 overload set to make_symbol_overload_list_namespace.
5526 * c-exp.y: create UNKNOWN_CPP_NAME token.
5527 Add parse rule for ADL functions.
5528 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5529
3f1f6884
JK
55302010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5531
5532 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5533 sentinel.
5534
3caf13b4
JB
55352010-05-07 Joel Brobecker <brobecker@adacore.com>
5536
5537 Implement task switching on solaris targets.
5538 * sol-thread.c (thread_db_find_thread_from_tid)
5539 (sol_get_ada_task_ptid): New functions.
5540 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5541
94b0dee1
PA
55422010-05-07 Pedro Alves <pedro@codesourcery.com>
5543
5544 * remote.c (remote_query_supported_append): Use reconcat.
5545 (remote_query_supported): Install a cleanup. Use reconcat.
5546
1408c251
PA
55472010-05-07 Pedro Alves <pedro@codesourcery.com>
5548
5549 * gdbarch.sh (qsupported): Delete.
5550 * gdbarch.h, gdbarch.c: Regenerate.
5551 * remote.c (remote_query_supported): Remove use of
5552 gdbarch_qsupported.
5553
f8e50cfe
SDJ
55542010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5555
5556 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5557 function.
5558
8ea13695
MS
55592010-05-06 Michael Snyder <msnyder@vmware.com>
5560
c6913b7d
MS
5561 * xml-support.c (xinclude_start_include): Delete unused variable.
5562 (xml_process_xincludes): Delete unused variable.
5563 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5564 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5565 (tdesc_find_arch_register): Delete unused variable.
5566 (tdesc_use_registers): Delete unused variable.
5567 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5568 * inferior.c (print_inferior): Delete unused variable.
5569 * record.c (record_open_1): Delete unused variable.
5570 (record_restore): Delete unused variable.
5571 (cmd_record_save): Delete unused variable.
5572 * gcore.c (derive_heap_segment): Delete unused variable.
5573 (objfile_find_memory_regions): Use unused variable.
5574 * jit.c (jit_inferior_init): Delete unused variable.
5575 * progspace.c (clone_program_space): Delete unused variable.
5576 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5577
5578 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5579 Delete unused variable.
5580 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5581 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5582 (method_name_from_physname): Delete unused variable.
5583 (cp_func_name): Delete unused variable.
5584 (cp_validate_operator): Delete unused variable.
0407b3f1 5585 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5586 Delete unused variable.
0407b3f1 5587 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5588 Delete unused variable.
5589 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5590
1be757cf
MS
5591 * serial.c (serial_for_fd): Delete unused variable.
5592 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5593 * top.c (execute_command): Delete unused variable.
5594 (init_main): Delete unused variable.
5595 * utils.c (do_fclose_cleanup): Delete unused variable.
5596 (do_all_inferior_continuations): Delete unused variable.
5597 (initialize_utils): Delete unused variable.
5598 (internal_problem_mode): Delete unused global.
5599 * frame.c (get_prev_frame): Delete unused global.
5600 (get_frame_locals_address): Delete unused global.
5601 (get_frame_args_address): Delete unused global.
5602
9216103f
MS
5603 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5604 (pascal_type_print_varspec_prefix): Delete unused variable.
5605 * f-typeprint.c (f_type_print_base): Delete unused variable.
5606 (f_type_print_varspec_suffix): Delete unused variable.
5607 * m2-typeprint.c (m2_print_type): Delete unused variable.
5608 (m2_long_set): Delete unused variable.
5609 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5610 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5611 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5612 Delete unused variable.
5613 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5614 * m2-valprint.c (m2_val_print): Delete unused variable.
5615
34fa1d9d
MS
5616 * ui-out.c (ui_out_field_int): Delete unused variable.
5617 (ui_out_field_fmt_int): Delete unused variable.
5618 * varobj.c (varobj_list_children): Delete unused variable.
5619 (varobj_set_value): Delete unused variable.
5620 (install_new_value_visualizer): Delete unused variable.
5621 (varobj_set_visualizer): Delete unused variable.
5622 (varobj_update): Delete unused variable.
5623 (varobj_editable_p): Delete unused variable.
5624 (c_value_of_root): Delete unused variable.
5625 (cplus_describe_child): Delete unused variable.
5626
b5385fc0
MS
5627 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5628 (decode_constrained_packed_array_type): Delete unused variable.
5629 (add_defn_to_vec): Delete unused variable.
5630 (symbol_completion_match): Delete unused variable.
5631 (value_tag_from_contents_and_address): Delete unused variable.
5632 (ada_evaluate_subexp): Delete unused variable.
5633 * c-lang.c (classify_type): Delete unused variable.
5634 * f-lang.c (f_printstr): Delete unused variable.
5635 * objc-lang.c (objc_printstr): Delete unused variable.
5636 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5637 * jv-lang.c (type_from_class): ifdef unused variable.
5638 (java_class_name_from_physname): Delete unused variable.
5639 * m2-lang.c (m2_printstr): Delete unused variable.
5640
4fc06681
MS
5641 * objfiles.c (objfile_relocate): Delete unused variable.
5642 * maint.c (_initialize_maint_cmds): Delete unused variable.
5643 * demangle.c (_initialize_demangler): Delete unused variable.
5644 * corefile.c (reopen_exec_file): Delete unused variable.
5645 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5646 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5647
6b4398f7
MS
5648 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5649 * memattr.c (mem_delete): Delete unused variable.
5650 (invalidate_target_mem_regions): Delete unused variable.
5651 * mem-break.c (default_memory_insert_breakpoint):
5652 Delete unused variable.
5653 * target.c (target_get_osdata): Delete unused variable.
5654 * parse.c (length_of_subexp): Delete unused variable.
5655 (prefixify_subexp): Delete unused variable.
5656 (exp_iterate): Delete unused variable.
5657 * reverse.c (delete_bookmark_command): Delete unused variable.
5658
308d96ed
MS
5659 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5660 * macroexp.c (gather_arguments): Delete unused variable.
5661 (substitute_args): Delete unused variable.
5662 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5663 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5664 (_initialize_gdbarch): Delete unused variable.
5665 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5666 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5667 Delete unused variable.
5668 (_initialize_gdbarch_utils): Delete unused variable.
5669 * gdbtypes.c (make_cv_type): Delete unused variable.
5670 (make_type_with_address_space): Delete unused variable.
5671
167e4384
MS
5672 * linespec.c (decode_compound): Delete unused variable.
5673 * dictionary.c (iterator_next_hashed): Delete unused variable.
5674 * infcall.c (call_function_by_hand): Delete unused variable.
5675 * infcmd.c (step_1): Delete unused variable.
5676 (registers_info): Delete unused variable.
5677 (attach_command): Delete unused variable.
5678 * infrun.c (follow_exec): Delete unused variable.
5679 (handle_step_into_function_backwards): Delete unused variable.
5680 (_initialize_infrun): Delete unused variable.
5681 * stack.c (parse_frame_specification_1): Delete unused variable.
5682 (frame_info): Delete unused variable.
5683 (backtrace_command_1): Delete unused variable.
5684 (catch_info): Delete unused variable.
5685
8f78b329
MS
5686 * eval.c (evaluate_subexp_standard): Delete unused variable.
5687 * valops.c (value_cast_pointers): Delete unused variable.
5688 (value_dynamic_cast): Delete unused variable.
5689 (value_array): Delete unused variable.
5690 (find_overload_match): Delete unused variable.
5691 * valarith.c (value_subscript): Delete unused variable.
5692 (value_binop): Delete unused variable.
5693 * valprint.c (_initialize_valprint): Delete unused variable.
5694 * printcmd.c (print_command_1): Delete unused variable.
5695 (address_info): Delete unused variable.
5696 (printf_command): Delete unused variable.
5697
8ea13695
MS
5698 * auxv.c (target_auxv_search): Delete unused variable.
5699 * blockframe.c (get_frame_block): Delete unused variable.
5700 * regcache.c (regcache_cpy): Delete unused variable.
5701 (regcache_cpy_no_passthrough): Delete unused variable.
5702 * charset.c (wchar_iterate): Delete unused variable.
5703 (find_charset_names): Delete unused variable.
5704 (_initialize_charset): Delete unused variable.
0407b3f1 5705 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5706 Delete unused variable.
0407b3f1 5707 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5708 Delete unused variable.
5709 (set_substitute_path_command): Delete unused variable.
5710 * value.c (preserve_values): Delete unused variable.
5711 (value_from_double): Delete unused variable.
5712
afe38095
MS
57132010-05-05 Michael Snyder <msnyder@vmware.com>
5714
952a6d41
MS
5715 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5716 (find_last_source_symtab_from_partial): Delete unused variable.
5717 * symfile.c (place_section): Delete unused variable.
5718 (default_symfile_offsets): Delete unused variable.
5719 (get_debug_link_info): Delete unused variable.
5720 (find_separate_debug_file_by_debuglink): Delete unused variable.
5721 (add_symbol_file_command): Delete unused variable.
5722 (symfile_find_segment_sections): Delete unused variable.
5723 * symmisc.c (free_symtab): Delete unused variable.
5724 (dump_symtab_1): Delete unused variable.
5725 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5726 (find_pc_sect_symtab): Delete unused variable.
5727 (skip_prologue_using_lineinfo): Delete unused variable.
5728 (sources_info): Delete unused variable.
5729 (completion_list_add_name): Delete unused variable.
5730 (expand_line_sal): Delete unused variable.
5731
0407b3f1 5732 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5733 Delete unused variables.
5734 (insert_catchpoint): Delete unused variable.
5735 (update_watchpoint): Delete unused variable.
5736 (insert_bp_location): Delete unused variable.
5737 (insert_breakpoint_locations): Delete unused variable.
5738 (remove_breakpoint_1): Delete unused variable.
5739 (software_breakpoint_inserted_here_p): Delete unused variable.
5740 (watchpoints_triggered): Delete unused variable.
5741 (bpstat_check_watchpoint): Delete unused variable.
5742 (bpstat_stop_status): Delete unused variable.
5743 (print_one_breakpoint_location): Delete unused variable.
5744 (allocate_bp_location): Delete unused variable.
5745 (create_breakpoint): Delete unused variable.
5746 (watch_command_1): Delete unused variable.
5747 (catch_exception_command_1): Delete unused variable.
5748 (catch_ada_exception_command): Delete unused variable.
5749 (delete_breakpoint): Delete unused variable.
5750 (breakpoint_re_set_one): Delete unused variable.
5751 (do_enable_breakpoint): Delete unused variable.
5752
eda5a4d7
PA
57532010-05-06 Pedro Alves <pedro@codesourcery.com>
5754
5755 * amd64-tdep.c: Include disasm.h.
5756 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5757 (amd64_insn_length): Moved to disasm.c and renamed.
5758 (fixup_riprel): Adjust.
5759 * disasm.c (do_ui_file_delete): New.
5760 (gdb_insn_length): New.
5761 (gdb_buffered_insn_length_fprintf)
5762 (gdb_buffered_insn_length_init_dis)
5763 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5764 renamed.
5765 * disasm.h (gdb_insn_length): Declare.
5766 (gdb_buffered_insn_length): Declare.
5767
02357a4a
PA
57682010-05-06 Pedro Alves <pedro@codesourcery.com>
5769
5770 * remote.c (clear_threads_parsing_context): New.
5771 (remote_threads_info): Delete unused null_cleanup. Install a
5772 cleanup to clear the threads_parsing_context in case parsing
5773 throws.
5774
8c5630cb
MS
57752010-05-05 Michael Snyder <msnyder@vmware.com>
5776
5777 * c-exp.y (parse_string_or_char): Delete unused variable.
5778 (c_lex): Delete unused variable.
5779 * cp-name-parser.y (cpname_lex): Delete unused variable.
5780 * ada-exp.y (find_primitive_type): Delete unused variable.
5781 (write_var_or_type): Delete unused variable.
5782 * jv-exp.y (java_parse): Delete unused variable.
5783 (push_expression_name): Delete unused variable.
5784 * p-exp.y (pascal_lex): Delete unused variable.
5785
46c162d4
PA
57862010-05-05 Pedro Alves <pedro@codesourcery.com>
5787
5788 * remote.c (remote_threads_info): Really revert previous previous
5789 change.
5790
0043e6a5
MS
57912010-05-05 Michael Snyder <msnyder@vmware.com>
5792
fa238c03
MS
5793 * elfread.c (elf_symtab_read): Delete unused variable.
5794 (find_separate_debug_file_by_buildid): Delete unused variables.
5795 (elf_symfile_read): Delete unused variable.
5796
5797 * coffread.c (coff_symfile_read): Delete unused variables.
5798
5799 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5800 (read_pe_exported_syms): Delete unused variable.
5801
5802 * stabsread.c (define_symbol): Delete unused variable.
5803
5804 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5805 (process_psymtab_comp_unit): Delete unused variable.
5806 (dwarf2_build_psymtabs_hard): Delete unused variable.
5807 (load_partial_comp_unit): Delete unused variable.
5808 (create_all_comp_units): Delete unused variable.
5809 (scan_partial_symbols): Delete unused variable.
5810 (add_partial_symbol): Delete unused variable.
5811 (add_partial_namespace): Delete unused variable.
5812 (add_partial_enumeration): Delete unused variable.
5813 (load_full_comp_unit): Delete unused variable.
5814 (process_full_comp_unit): Delete unused variable.
5815 (read_file_scope): Delete unused variable.
5816 (read_type_unit_scope): Delete unused variable.
5817 (process_structure_scope): Delete unused variable.
5818 (process_enumeration_scope): Delete unused variable.
5819 (read_tag_ptr_to_member_type): Delete unused variable.
5820 (read_typedef): Delete unused variable.
5821 (read_partial_die): Delete unused variable.
5822 (decode_locdesc): Delete unused variable.
5823 (zeroed_partial_die): Delete unused global variable.
5824
0407b3f1 5825 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5826 Delete unused variable.
0407b3f1 5827 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5828 Delete unused variable.
5829 (tui_check_register_values): Delete unused variable.
5830 (tui_register_format): Delete unused variable.
5831 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5832 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5833 Delete unused variables.
5834 (tui_vertical_data_scroll): Delete unused variables.
5835
75721c66
MS
58362010-05-05 Michael Snyder <msnyder@vmware.com>
5837
c31a71f4
MS
5838 * remote.c (remote_threads_info): Revert questionable part of
5839 the previous change.
5840
58412010-05-05 Michael Snyder <msnyder@vmware.com>
5842
5843 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5844 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5845 (mi_cmd_var_list_children): Delete unused variable.
5846 (varobj_update_one): Delete unused variable.
5847 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5848 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5849 Delete unused variable.
5850 (mi_cmd_stack_list_variables): Delete unused variable.
5851 (list_args_or_locals): Delete unused variable.
0407b3f1 5852 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5853 Delete unused variables.
5854 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5855 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5856 Delete unused variable.
5857 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5858 (mi_cmd_interpreter_exec): Delete unused variable.
5859 (mi_on_normal_stop): Delete unused variable.
5860 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5861 (print_one_inferior): Delete unused variables.
5862 (mi_execute_command): Delete unused variable.
5863 (mi_cmd_execute): Delete unused variable.
5864 (timestamp): Delete unused variable.
5865
5866 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5867 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5868 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5869 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5870 (recurse_read_control_structure): Delete unused variable.
5871 (script_from_file): Delete unused variable.
c31a71f4 5872 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5873 (disassemble_command): Delete unused variable.
5874
5875 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5876 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5877 Delete unused variables.
5878 (encode_actions_1): Delete unused variables.
5879 (start_tracing): Delete unused variable.
5880 (trace_status_mi): Delete unused variable.
5881 (tfind_1): Delete unused variable.
5882 (trace_find_pc_command): Delete unused variable.
5883 (trace_find_line_command): Delete unused variables.
5884 (trace_find_range_command): Delete unused variables.
5885 (trace_find_outside_command): Delete unused variables.
5886 (parse_tracepoint_definition): Delete unused variables.
5887 (tfile_fetch_registers): Delete unused variable.
5888
9128a503
MS
5889 * dcache.c (dcache_init): Delete unused variable.
5890 (dcache_info): Delete unused variable.
5891
aa369b55 5892 * remote.c (remote_threads_info): Delete unused variable.
9128a503 5893 (process_stop_reply) :Delete unused variable.
aa369b55
MS
5894 (remote_get_trace_status): Delete unused variables.
5895
9e9547e4
MS
5896 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5897 (thread_from_lwp): Delete unused variable.
5898 (enable_thread_event_reporting): Delete unused variable.
5899 (check_for_thread_db): Delete unused variables.
5900 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 5901
9e9547e4
MS
5902 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5903 (checkpoint_command): Delete unused variable.
5904 (linux_fork_context): Delete unused variables.
5905
fa238c03 5906 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
5907 (linux_tracefork_child): Delete unused variable.
5908 (linux_child_follow_fork): Delete unused variable.
5909 (linux_nat_detach): Delete unused variable.
5910 (linux_handle_extended_wait): Delete unused variable.
5911 (linux_nat_has_pending_sigint): Delete unused variable.
5912 (linux_nat_find_memory_regions): Delete unused variable.
5913 (linux_nat_make_corefile_notes): Delete unused variables.
5914 (linux_nat_info_proc_cmd): Delete unused variable.
5915 (linux_proc_pending_signals): Delete unused variable.
5916 (linux_nat_stop_lwp): Delete unused variables.
5917 (_initialize_linux_nat): Delete unused variable.
5918
fa238c03 5919 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 5920
0407b3f1 5921 * linux-record.c (record_linux_system_call):
e0f069a3
MS
5922 Delete unused variables.
5923
789d24f0
MS
5924 * corelow.c (core_xfer_partial): Delete unused variables.
5925
1cd337a5 5926 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 5927 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
5928 conditionally-used variable declarations.
5929
b00e3f56
MS
5930 * solib.c (solib_find): Delete unused variable.
5931 (free_so_symbols): Delete unused variable.
5932 (info_sharedlibrary_command): Delete unused variable.
5933 (reload_shared_libraries_1): Delete unused variable.
5934 (_initialize_solib): Delete unused variable.
5935
90f62196
MS
5936 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5937 (i386_collect_xstateregset): Delete unused variable.
5938 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5939
75721c66
MS
5940 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5941 Delete unused variable 'type'.
5942
af33db37
JB
59432010-05-05 Joel Brobecker <brobecker@adacore.com>
5944
90f62196 5945 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
5946 ada-lang.c: Remove comment mentioning these macros.
5947 * m2-exp.y: Delete commented out code.
af33db37 5948
0497f5b0
JB
59492010-05-05 Joel Brobecker <brobecker@adacore.com>
5950
5951 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5952 for array types.
5953 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5954
6e39997a
PM
59552010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5956
5957 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 5958 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
5959 ATTRIBUTE_UNUSED.
5960 (cleanup_kernel_helper_return): Likewise.
5961 * arm-tdep.c (copy_unmodified): Likewise.
5962 (copy_preload): Likewise.
5963 (copy_copro_load_store): Likewise.
5964 (cleanup_branch): Likewise.
5965 (copy_b_bl_blx): Likewise.
5966 (copy_bx_blx_reg): Likewise.
5967 (copy_alu_imm): Likewise.
5968 (copy_alu_reg): Likewise.
5969 (copy_alu_shifted_reg): Likewise.
5970 (cleanup_load): Likewise.
5971 (cleanup_store): Likewise.
5972 (cleanup_block_load_pc): Likewise.
5973 (cleanup_svc): Likewise.
5974 (copy_undef): Likewise.
5975 (copy_unpred): Likewise.
5976 * remote.c (register_remote_support_xml): Likewise.
5977
1412f70b
HZ
59782010-05-05 Hui Zhu <teawater@gmail.com>
5979
5980 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5981
c4f7c687
MK
59822010-05-04 Mark Kettenis <kettenis@gnu.org>
5983
5984 * remote.c (register_remote_support_xml)
5985 (remote_query_supported_append, remote_query_supported): Add cast
5986 to NULL used as sentinel.
5987 * tracepoint.c (tvariables_info_1): Likewise.
5988 * utils.c (add_internal_problem_command): Likewise.
5989
63b4f126
MGD
59902010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5991
5992 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5993 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5994 registers gracefully.
5995
2f1bdd26
MGD
59962010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5997
0407b3f1 5998 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
5999 specific parts.
6000
e1c34c5d
PM
60012010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6002
6003 PR exp/11349.
6004 * printcmd.c (x_command): Only dereference once implicitly for
6005 TYPE_CODE_REF.
6006
ae462839
DE
60072010-05-03 Doug Evans <dje@google.com>
6008
6009 * event-loop.c (gdb_timer): Delete unused global.
6010 (create_timer): Update.
6011
1ac77ea1
JK
60122010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6013
6014 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6015 CURRENT->DECLARATION case.
6016 * cp-support.h (struct using_direct): Provide extended comment.
6017
7c54a108
MK
60182010-05-03 Mark Kettenis <kettenis@gnu.org>
6019
6020 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6021 HPPABSD_SIZEOF_GREGS.
6022 (HPPAOBSD_SIZEOF_FPREGS): New define.
6023 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6024 (hppaobsd_supply_fpregset): New function.
6025 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6026 (hppaobsd_fpregset): New variable.
6027 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6028 (_initialize_hppabsd_tdep): Remove spurious blank line.
6029
278582cb
PM
60302010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6031
6032 PR pascal/11349.
6033 * p-valprint.c (pascal_value_print): Always dereference a value with
6034 type code TYPE_CODE_REF.
0407b3f1 6035
f0223081
PA
60362010-05-03 Pedro Alves <pedro@codesourcery.com>
6037
6038 * remote.c (remote_notice_signals): New.
6039 (remote_start_remote): In non-stop mode, update the remote end on
6040 which signals it can silently pass.
6041 (init_remote_ops): Install remote_notice_signals.
6042
c25c4a8b
JK
60432010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6044
6045 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6046 * command.h (error_no_arg): ... here. Remove NORETURN, change
6047 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6048 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6049 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6050 (internal_verror, internal_error, nomem): Remove NORETURN, change
6051 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6052 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6053 (throw_vfatal, throw_error): Remove NORETURN.
6054 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6055 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6056 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6057 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6058 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6059 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6060 NORETURN.
6061 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6062 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6063 ATTRIBUTE_NORETURN.
6064 * target.c (tcomplain): Likewise.
6065 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6066 ATTRIBUTE_NORETURN.
6067 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6068 (internal_error, perror_with_name, nomem): Remove NORETURN.
6069 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6070 ATTRIBUTE_NORETURN.
6071
a0b31db1
JK
60722010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6073
6074 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6075 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6076 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6077 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6078 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6079 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6080 * complaints.h (complaint, internal_complaint): Likewise.
6081 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6082 (ATTR_FORMAT): Remove.
6083 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6084 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6085 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6086 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6087 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6088 (internal_error, internal_vwarning, internal_warning, warning)
6089 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6090 * disasm.c (fprintf_disasm): Likewise.
6091 * exceptions.c (throw_it): Likewise.
6092 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6093 (throw_error): Likewise.
6094 * language.h (type_error, range_error): Likewise.
6095 * linespec.c (cplusplus_error): Likewise.
6096 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6097 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6098 * monitor.c (monitor_debug): Likewise.
6099 * parser-defs.h (parser_fprintf): Likewise.
6100 * serial.h (serial_printf): Likewise.
6101 * tui/tui-hooks.c (tui_query_hook): Likewise.
6102 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6103 (uo_message): Likewise.
6104 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6105 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6106 Likewise.
6107 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6108
02a45ac0
PA
61092010-05-02 Pedro Alves <pedro@codesourcery.com>
6110
6111 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6112 (cli_table_header, cli_begin, cli_end, cli_field_int)
6113 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6114 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6115 Delete forward declarations.
6116 (cli_ui_out_impl): Move below the callbacks.
6117 (_initialize_cli_out): Delete.
6118
1915ef4f
PA
61192010-05-02 Pedro Alves <pedro@codesourcery.com>
6120
6121 * README: Use consistent `GDB' and `GDBserver' spellings.
6122
0dfb946f
JK
61232010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6124
6125 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6126
4d533103
PA
61272010-05-01 Pedro Alves <pedro@codesourcery.com>
6128
6129 * infrun.c (prepare_for_detach): In non-stop, context switch to
6130 the thread that got the event before handling the event.
6131
705b5767
TT
61322010-04-30 Tom Tromey <tromey@redhat.com>
6133
6134 * symtab.c (symbol_set_names): Fix typo.
6135
3c0ee1a4
PM
61362010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6137
6138 * python/py-param.c (parm_constants): Avoid ARI warning
6139 by adding ARI comment.
6140 (parmpy_init): Likewise.
6141
ea1fae46
PM
61422010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6143
6144 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6145 and created type for re-use.
6146
c24d0242
PM
61472010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6148
6149 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6150
a26d8d11
DE
61512010-04-29 Doug Evans <dje@google.com>
6152
6153 * ser-base.h (reschedule): Delete prototype.
6154 * ser-base.c (reschedule): Make static.
6155
f8624c62
MGD
61562010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6157
6158 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6159 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 6160 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 6161 EABI.
0407b3f1 6162 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
6163 use.
6164
e66408ed
PA
61652010-04-29 Pedro Alves <pedro@codesourcery.com>
6166
6167 PR gdb/11557
6168
6169 * regcache.c (registers_changed): Rename to ...
6170 (registers_changed_ptid): ... this, and only delete register cache
6171 entries matching the ptid filter argument.
6172 (registers_changed): Reimplement on top of registers_changed_ptid.
6173 * regcache.h (registers_changed_ptid): Declare.
6174 * target.c (target_resume): Flush register caches.
6175
d7b32ed3 61762010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
6177 Tom Tromey <tromey@redhat.com>
6178 Thiago Jung Bauermann <bauerman@br.ibm.com>
6179
6180 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6181 (SUBDIR_PYTHON_SRCS): Likewise.
6182 (py-parameter.o): New rule.
6183 * python/py-parameter.c: New file.
6184 * python/python-internal.h (gdbpy_initialize_parameter)
6185 (gdbpy_parameter, gdbpy_parameter_value)
6186 (gdbpy_parse_command_name): Declare.
6187 * python/py-cmd.c (parse_command_name): Rename to
6188 gdbpy_parse_command_name.
6189 (gdbpy_parse_command_name): Accept a starting list parameter and
6190 use over cmdlist.
6191 (cmdpy_init): Use gdbpy_parse_command_name.
6192 * python/python.c (parameter_to_python): Rename to
6193 gdbpy_parameter_to_python. Accept enum var_types and value.
6194 (gdbpy_parameter): Use gdbpy_parameter_value.
6195 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 6196
ce72ce41
MGD
61972010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6198
6199 * MAINTAINERS: Add myself for write after approval privileges.
6200
6aecb9c2
JB
62012010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6202
6203 D language support.
6204 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6205 (COMMON_OBS): Add d-lang.o d-valprint.o.
6206 (HFILES_NO_SRCDIR): Add d-lang.h.
6207 * NEWS: Mention D language support.
6208 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6209 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6210 * d-lang.c: New file.
6211 * d-lang.h: New file.
6212 * d-valprint.c: New file.
6213 * defs.h (enum language): Add language_d.
6214 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6215 * language.c (binop_result_type, integral_type, character_type)
6216 (string_type, boolean_type, structured_type): Add language_d.
6217 * symfile.c (init_filename_language_table): Add language_d.
6218 * symtab.c: Include d-lang.h.
6219 (symbol_init_language_specific, symbol_find_demangled_name)
6220 (symbol_natural_name, lookup_symbol_in_language)
6221 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6222
6f992fbf
JB
62232010-04-27 Joel Brobecker <brobecker@adacore.com>
6224
6225 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6226
dde59185
JB
62272010-04-27 Joel Brobecker <brobecker@adacore.com>
6228
6229 * symfile.c (init_filename_language_table): Register .dg files
6230 with language_ada.
6231
d09ce91e
JB
62322010-04-27 Joel Brobecker <brobecker@adacore.com>
6233
6234 * gdbtypes.h (struct main_type): Expand comment about target_type
6235 field.
6236
67f1675e
JB
62372010-04-27 Pedro Alves <pedro@codesourcery.com>
6238 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
6239
6240 * symfile.c (reread_symbols): Also search for file in libraries.
6241 Update comment.
6242
dfd0fe27
JB
62432010-04-27 Joel Brobecker <brobecker@adacore.com>
6244
6245 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6246 in terms of configuration.
6247
0133421a
JK
62482010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6249
6250 * objfiles.c: Include solist.h.
6251 (free_all_objfiles): New variable so. Check stale solist objfiles.
6252 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6253 and no_shared_libraries.
6254
e78f4312
JB
62552010-04-27 Joel Brobecker <brobecker@adacore.com>
6256
6257 ARI warning fix.
6258 * python/py-auto-load.c (source_section_scripts): Remove trailing
6259 new-line in i18n string.
6260
9214d371
DE
62612010-04-26 Doug Evans <dje@google.com>
6262
6263 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6264
3f172e24
TT
62652010-04-26 Tom Tromey <tromey@redhat.com>
6266
6267 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6268 command list.
6269
e790e06e
PM
62702010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6271
6272 Removal of config/i386/nm-i386sol2.h native configuration file.
6273 * config/i386/nm-i386sol2.h: Remove file.
6274 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6275 * config/i386/sol2-64.mh: Idem.
88562582
PM
6276 * config/djgpp/fnchange.lst: Remove reference to that file.
6277 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 6278
b7da9e9f
PM
62792010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6280
6281 PR breakpoints/11531.
6282 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6283 macro definition and related comment.
6284 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6285 (resume): Remove code and comment related to this macro.
6286
72f6eb52
JK
62872010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6288
6289 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6290 Fix whitespace.
6291
ab38a727
PA
62922010-04-24 Pedro Alves <pedro@codesourcery.com>
6293
6294 * defs.h: Adjust comment.
6295 * filesystem.h, filesystem.c: New files.
6296 * Makefile.in (SFILES): Add filesystem.c.
6297 (COMMON_OBS): Add filesystem.o.
6298 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6299 different target and host path flavours.
6300 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6301 has_dos_based_file_system on the gdbarch.
6302 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6303 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6304 * i386-tdep.c (i386_go32_init_abi): Ditto.
6305 * gdbarch.sh (has_dos_based_file_system): New.
6306 * gdbarch.h, gdbarch.c: Regenerate.
6307 * NEWS: Mention improved support for remote targets with DOS-based
6308 filesystems. Mention new `set/show target-file-system-kind'
6309 commands.
6310
35c9c7ba
SS
63112010-04-23 Stan Shebs <stan@codesourcery.com>
6312
6313 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6314 comments.
6315 (struct agent_reqs): Remove.
6316 (ax_reg_mask): Declare.
6317 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6318 (free_agent_expr): Free reg_mask.
6319 (ax_print): Add scope and register mask info.
6320 (ax_reqs): Remove agent_reqs argument, use agent expression
6321 fields, and move part of register mask computation to...
6322 (ax_reg_mask): New function.
6323 * ax-gdb.c (gen_trace_static_fields): Call it.
6324 (gen_traced_pop): Ditto.
6325 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6326 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6327 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6328 (gen_eval_for_expr): Ditto, and require an rvalue.
6329 (agent_command): Call ax_reqs.
6330 (agent_eval_command): Ditto.
6331 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6332 (validate_action_line): Ditto.
6333 (collect_symbol): Ditto.
6334 (encode_actions_1): Ditto.
6335
492928e4
JK
63362010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6337 Paul Pluzhnikov <ppluzhnikov@google.com>
6338 Jan Kratochvil <jan.kratochvil@redhat.com>
6339
6340 Fix deadlock on looped list of loaded shared objects.
6341 * solib-svr4.c (LM_PREV): New function.
6342 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6343 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6344 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6345 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6346
66d09542
DE
63472010-04-23 Doug Evans <dje@google.com>
6348
88a1906b
DE
6349 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6350 python.
6351 * configure: Regenerate.
6352 * main.c: #include "python/python.h".
6353 (captured_main): Defer loading auto-loaded scripts until after
6354 local_gdbinit has been sourced.
6355 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6356 (load_auto_scripts_for_objfile): New function.
6357 (auto_load_new_objfile): Call it.
6358 * python/python.h (gdbpy_global_auto_load): Declare.
6359 (load_auto_scripts_for_objfile): Declare.
6360
66d09542
DE
6361 Add support for auto-loading scripts from .debug_gdb_scripts section.
6362 * NEWS: Add entry for .debug_gdb_scripts.
6363 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6364 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6365 (py-auto-load.o): New rule.
6366 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6367 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6368 * python/py-auto-load.c: New file.
6369 * python/python-internal.h: #include <stdio.h>.
6370 (set_python_list, show_python_list): Declare.
6371 (gdbpy_initialize_auto_load): Declare.
6372 (source_python_script_for_objfile): Declare.
6373 * python/python.c: Remove #include of observer.h.
6374 (gdbpy_auto_load): Moved to py-auto-load.c.
6375 (GDBPY_AUTO_FILENAME): Ditto.
6376 (gdbpy_new_objfile): Delete.
6377 (source_python_script_for_objfile): New function.
6378 (set_python_list, show_python_list): Make externally visible.
6379 (_initialize_python): Move "auto-load" command to py-auto-load.c
6380 and observer_attach_new_objfile to py-auto-load.c.
6381
3a48e6ff 63822010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 6383
3a48e6ff
JG
6384 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6385 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6386 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6387 New constants.
6388 (alpha_heuristic_analyze_probing_loop): New function.
6389 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6390 and handle cases when a stack probe loop is generated.
6391 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6392 (alpha_mdebug_max_frame_size_exceeded): New function.
6393 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6394 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6395 Return 0 when the maximum debuggable frame size has been exceeded.
6396
e4166a49
JB
63972010-04-23 Joel Brobecker <brobecker@adacore.com>
6398
6399 Fix ARI warning.
6400 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6401
8bd10a10
CM
64022010-04-20 Chris Moller <cmoller@redhat.com>
6403
6404 PR 10179
6405
6406 * symtab.c (rbreak_command): Added code to include a filename
6407 specification in the rbreak argument.
6408 * NEWS: Added a brief description of filename-qualified rbreak.
6409
c0201579
JK
64102010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6411
6412 Fix crashes on dangling display expressions.
6413 * ada-lang.c (ada_operator_check): New function.
6414 (ada_exp_descriptor): Fill-in the field operator_check.
6415 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6416 * jv-lang.c (exp_descriptor_java): Likewise.
6417 * m2-lang.c (exp_descriptor_modula2): Likewise.
6418 * scm-lang.c (exp_descriptor_scm): Likewise.
6419 * parse.c (exp_descriptor_standard): Likewise.
6420 (operator_check_standard): New function.
6421 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6422 * parser-defs.h (struct exp_descriptor): New field operator_check.
6423 (operator_check_standard, exp_uses_objfile): New declarations.
6424 * printcmd.c: Remove the inclusion of solib.h.
6425 (display_uses_solib_p): Remove the function.
6426 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6427 and exp_uses_objfile instead of display_uses_solib_p.
6428 * solist.h (struct so_list) <objfile>: New comment.
6429 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6430 * symtab.h (lookup_objfile_from_block): New declaration.
6431 (struct general_symbol_info) <obj_section>: Extend the comment.
6432
6ffbb7ab
TJB
64332010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6434 Thiago Jung Bauermann <bauerman@br.ibm.com>
6435
6436 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6437 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6438 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6439 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6440 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6441 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6442 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6443 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6444 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6445 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6446 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6447 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6448 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6449 Define, in case <ptrace.h> doesn't provide it.
6450 (booke_debug_info): New variable.
6451 (max_slots_number): Ditto.
6452 (hw_break_tuple): New struct.
6453 (thread_points): Ditto.
6454 (ppc_threads): New variable.
6455 (PPC_DEBUG_CURRENT_VERSION): New define.
6456 (have_ptrace_new_debug_booke): New function.
6457 (ppc_linux_check_watch_resources): Renamed to ...
6458 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6459 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6460 (booke_cmp_hw_point): New function.
6461 (booke_find_thread_points_by_tid): Ditto.
6462 (booke_insert_point): Ditto.
6463 (booke_remove_point): Ditto.
6464 (ppc_linux_insert_hw_breakpoint): Ditto.
6465 (ppc_linux_remove_hw_breakpoint): Ditto.
6466 (get_trigger_type): Ditto.
6467 (ppc_linux_insert_watchpoint): Handle BookE processors.
6468 (ppc_linux_remove_watchpoint): Ditto.
6469 (ppc_linux_new_thread): Ditto.
6470 (ppc_linux_thread_exit): New function..
6471 (ppc_linux_stopped_data_address): Handle BookE processors.
6472 (ppc_linux_watchpoint_addr_within_range): Ditto.
6473 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6474 to_remove_hw_breakpoint fields of the target operations struct.
6475 Add observe for the thread_exit event.
6476
be0d2954
L
64772010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6478
6479 * i386-linux-nat.c (regmap): Removed.
6480 (fetch_register): Replace regmap with
6481 i386_linux_gregset_reg_offset.
6482 (store_register): Likewise.
6483 (supply_gregset): Likewise.
6484 (fill_gregset): Likewise.
6485
6486 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6487 global.
6488
6489 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6490
f56dcb88
CM
64912010-04-22 Chris Moller <cmoller@redhat.com>
6492
6493 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6494 method of popping recursion-detection stack with a method based on
6495 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6496 the static array obstack rather than the static member obstack.)
6497
6cd6a2ae
L
64982010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6499
6500 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6501 (_initialize_amd64_linux_nat): Replace
6502 amd64_linux_gregset64_reg_offset with
6503 amd64_linux_gregset_reg_offset.
6504
6505 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6506 global.
6507
6508 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6509
621791b8
PM
65102010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6511
6512 PR stabs/11479.
6513 * stabsread.c (set_length_in_type_chain): New function.
6514 (read_struct_type): Call set_length_in_type_chain function.
6515 (read_enum_type): Idem.
6516
105c2d85
SS
65172010-04-21 Stan Shebs <stan@codesourcery.com>
6518 Nathan Sidwell <nathan@codesourcery.com>
6519
6520 * tracepoint.c (trace_save): Open in binary mode.
6521
9a22f0d0
PM
65222010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6523
6524 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6525 fields.
0407b3f1 6526 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6527 builtin_char32 fields.
6528 * printcmd.c (decode_format): Set char size to '\0'
6529 for strings unless explicit size is given.
6530 (print_formatted): Correct calculation of NEXT_ADDRESS
6531 for 16 or 32 bit strings.
6532 (do_examine): Do not force byte size for strings.
6533 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6534 16 or 32 bit-wide strings.
9a22f0d0
PM
6535 (x_command): Set LAST_SIZE to 'b' for string type.
6536
f335d1b3
L
65372010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6538
6539 PR corefiles/11523
6540 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6541 XCR0 first.
6542
6543 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6544 there is no .reg-xstate section.
6545 (i386_linux_core_read_description): Check XCR0 first.
6546
a9789a6b
MF
65472010-04-21 Mike Frysinger <vapier@gentoo.org>
6548
6549 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6550 for len <= 8.
6551
0b66f317
CM
65522010-04-21 Chris Moller <cmoller@redhat.com>
6553
6554 PR 9167
6555 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6556 method of popping recursion-detection stack with a method based on
6557 obstack_object_size().
0b66f317 6558
6e354e5e
PM
65592010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6560
6561 PR pascal/11492.
6562 * p-valprint.c (pascal_val_print): Fix default printing of integer
6563 arrays.
6564
57174f31
PM
65652010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6566
6567 Fix compilation warning on gcc-4.1.2.
6568 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6569 local variable`pc' to zero.
6570
6fbc7cd8
JB
65712010-04-20 Joel Brobecker <brobecker@adacore.com>
6572
6573 Implement thread support with core files on alpha-tru64.
6574 * dec-thread.c (dec_thread_find_new_threads): New function,
6575 extracted from resync_thread_list.
6576 (resync_thread_list): Add OPS parameter. Replace extracted-out
6577 code by call to dec_thread_find_new_threads.
6578 (dec_thread_wait): Update call to resync_thread_list.
6579 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6580
438c98a1
JB
65812010-04-20 Joel Brobecker <brobecker@adacore.com>
6582
6583 * ada-lang.c (value_pointer): New function.
6584 (make_array_descriptor): Call value_pointer to convert addresses to
6585 pointers.
6586
2971b56b
JB
65872010-04-20 Joel Brobecker <brobecker@adacore.com>
6588
6589 * rs6000-aix-tdep.c: #include exceptions.h.
6590 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6591 while reading the memory at ADDR, then ADDR cannot be a function
6592 descriptor.
6593
be942545
JB
65942010-04-20 Joel Brobecker <brobecker@adacore.com>
6595
6596 * ada-typeprint.c (ada_print_typedef): New function.
6597 * ada-lang.h (ada_print_typedef): Add declaration.
6598 * ada-lang.c (ada_language_defn): set la_print_typdef field
6599 to ada_print_typedef.
6600
1ca8fce0
JB
66012010-04-20 Joel Brobecker <brobecker@adacore.com>
6602
6603 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6604
e9ef4f39
JB
66052010-04-20 Joel Brobecker <brobecker@adacore.com>
6606
6607 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6608 (iterate_over_mappings): Adjust function profile. Add declaration.
6609 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6610 Adjust accordingly.
6611
e294797a
JB
66122010-04-20 Joel Brobecker <brobecker@adacore.com>
6613
6614 * procfs.c (solib_mappings_callback): Move function up to avoid
6615 a compiler warning.
6616
a223f1e7
JB
66172010-04-20 Joel Brobecker <brobecker@adacore.com>
6618
6619 * procfs.c (find_signalled_thread, find_stop_signal): Move
6620 these functions down to define them only when used.
6621
0c3acc09
JB
66222010-04-20 Joel Brobecker <brobecker@adacore.com>
6623
6624 * valprint.c (common_val_print): Fix the value before extracting
6625 its contents.
6626 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6627 * ada-lang.h (ada_to_fixed_value): New function declaration.
6628 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6629 to avoid code duplication and fix a bug in the handling of
6630 fixed types contents.
6631
31ef98ae
TT
66322010-04-20 Tom Tromey <tromey@redhat.com>
6633
6634 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6635 (read_partial_die): Likewise.
6636 (dwarf_attr_name): Likewise.
6637
ec31cde5 66382010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6639
ec31cde5
CM
6640 PR 10867
6641
6642 * cp-valprint.c (global): Adding new static array recursion
6643 detection obstack.
6644 (cp_print_value_fields, cp_print_static_field): Added new static
6645 array recursion detection code.
6646
e0e0e543
MK
66472010-04-20 Mark Kettenis <kettenis@gnu.org>
6648
6649 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6650 general-purpose register set should be 68 instead of 144.
6651 (i386_linux_sse_regset_sections): Likewise.
6652 (i386_linux_avx_regset_sections): Likewise.
6653
08922a10
SS
66542010-04-20 Stan Shebs <stan@codesourcery.com>
6655 Nathan Sidwell <nathan@codesourcery.com>
6656
6657 * dwarf2loc.c (struct axs_var_loc): New struct.
6658 (dwarf2_tracepoint_var_loc): New function.
6659 (dwarf2_tracepoint_var_access): New function.
6660 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6661 with DW_OP_piece.
6662 (locexpr_describe_location_piece): New function.
6663 (locexpr_describe_location_1): New function.
6664 (locexpr_describe_location): Call it, update signature.
6665 (loclist_describe_location): Rewrite to loop over locations,
6666 update signature.
6667 * symtab.h (struct symbol_computed_ops): Add address to
6668 describe_location arguments, return void.
6669 * printcmd.c (address_info): Get context PC, pass to computed
6670 location description.
6671 * tracepoint.c (scope_info): Ditto.
6672 * ax-gdb.c (trace_kludge): Export.
6673
2dc7f7b3
TT
66742010-04-20 Tom Tromey <tromey@redhat.com>
6675
6676 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6677 (struct dwarf2_cie) <segment_size>: New field.
6678 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6679 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6680 DW_FORM_exprloc.
6681 (read_attribute_value): Handle DW_FORM_flag_present,
6682 DW_FORM_sec_offset, DW_FORM_exprloc.
6683 (dump_die_shallow): Likewise.
6684 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6685 (dwarf2_const_value): Handle DW_FORM_exprloc.
6686 (attr_form_is_block): Likewise.
6687 (struct line_header) <maximum_ops_per_instruction>: New field.
6688 (dwarf_decode_line_header): Set new field.
6689 (dwarf_decode_lines): Handle new field.
6690
ce4b0682
SDJ
66912010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6692
6693 * f-exp.y: Add new production to recognize the `logical*8' type.
6694 (LOGICAL_S8_KEYWORD): New token.
6695 * f-lang.c (enum f_primitive_types)
6696 <f_primitive_type_logical_s8>: New field.
6697 (f_language_arch_info): Handling `logical*8' type.
6698 (build_fortran_types): Building `logical*8' type.
6699 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6700
ff9f22f1
DE
67012010-04-19 Doug Evans <dje@google.com>
6702
6703 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6704 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6705 (pipe_close): Ditto.
6706
437125bd
PM
67072010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6708
6709 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6710
e8e6c82e
PM
67112010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6712
6713 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6714 type to void function.
6715
4136fdd2
SS
67162010-04-19 Stan Shebs <stan@codesourcery.com>
6717 Vladimir Prus <vladimir@codesourcery.com>
6718
6719 * tracepoint.c (tfind_1): Add missing newline, report exit from
6720 tfind mode as such.
6721 * target.c (update_current_target): Make default
6722 to_trace_find return -1.
6723
0c4b2e63
MF
67242010-04-19 Mike Frysinger <vapier@gentoo.org>
6725
6726 * objc-lang.c (find_methods): Move symname check up.
6727
78076abc
PA
67282010-04-19 Pedro Alves <pedro@codesourcery.com>
6729
6730 * ada-lang.c (print_recreate_exception)
6731 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6732 not "catch unhandled".
6733
6149aea9
PA
67342010-04-19 Pedro Alves <pedro@codesourcery.com>
6735
6736 PR breakpoints/8554.
6737
6738 Implement `save-breakpoints'.
6739
6740 * breakpoint.c (save_cmdlist): New.
6741 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6742 to save_cmdlist.
6743 (print_recreate_catch_fork): New.
6744 (catch_fork_breakpoint_ops): Install it.
6745 (print_recreate_catch_vfork): New.
6746 (catch_vfork_breakpoint_ops): Install it.
6747 (print_recreate_catch_syscall): New.
6748 (catch_syscall_breakpoint_ops): Install it.
6749 (print_recreate_catch_exec): New.
6750 (catch_exec_breakpoint_ops): Install it.
6751 (print_recreate_exception_catchpoint): New.
6752 (gnu_v3_exception_catchpoint_ops): Install it.
6753 (save_breakpoints): New, based on tracepoint_save_command, but
6754 handle all breakpoint types.
6755 (save_breakpoints_command): New.
6756 (tracepoint_save_command): Rename to...
6757 (save_tracepoints_command): ... this, and reimplement using
6758 save_breakpoints.
6759 (save_command): New.
6760 (_initialize_breakpoints): Install the "save" command prefix.
6761 Install the "save breakpoints" command. Make "save-tracepoints" a
6762 deprecated alias for "save tracepoints".
6763 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6764 * ada-lang.c (print_recreate_exception): New.
6765 (print_recreate_catch_exception): New.
6766 (catch_exception_breakpoint_ops): Install it.
6767 (print_recreate_catch_exception_unhandled): New.
6768 (catch_exception_unhandled_breakpoint_ops): Install it.
6769 (print_recreate_catch_assert): New.
6770 (catch_assert_breakpoint_ops): Install it.
6771
6772 * NEWS: Mention the new `save breakpoints' command. Mention the
6773 new `save tracepoints' alias and that `save-tracepoints' is now
6774 deprecated.
6775
0a8fce9a
PA
67762010-04-18 Pedro Alves <pedro@codesourcery.com>
6777
6778 PR tui/9217
6779
6780 * tui/tui-out.c: Include cli-out.h.
6781 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6782 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6783 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6784 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6785 declarations.
6786 (struct ui_out_data): Rename to...
6787 (struct tui_ui_out_data): ... this. Remove `stream' and
6788 `suppress_output' fields, and inherit cli_ui_out_data.
6789 (tui_out_data): New typedef.
6790 (tui_ui_out_impl): Don't initialize fields staticaly.
6791 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6792 (tui_begin, tui_end): Delete.
6793 (tui_field_int): Adjust to delegate most work to the base type.
6794 (tui_field_skip): Delete.
6795 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6796 delegate most work to the base type.
6797 (tui_spaces): Delete.
6798 (tui_text): Adjust to delegate most work to the base type.
6799 (tui_message): Delete.
6800 (tui_wrap_hint): Delete.
6801 (tui_flush): Delete.
6802 (out_field_fmt): Delete.
6803 (field_separator): Delete.
6804 (tui_out_new): Adjust to initialize the base type.
6805 (_initialize_tui_out): Initialize tui_ui_out_impl.
6806 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6807 cli_ui_out_data.
6808 (cli_out_data): Adjust.
6809 (cli_ui_out_impl): Make extern.
6810 (cli_table_header, cli_field_int, cli_field_skip): Use
6811 uo_field_string instead of cli_field_string.
6812 (cli_redirect): Adjust to use cli_out_data.
6813 (cli_out_data_ctor): New.
6814 (cli_out_new): Use it.
6815 * cli-out.h (struct ui_file): Remove forward declaration.
6816 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6817 (cli_ui_out_impl): Declare.
6818 (cli_out_data_ctor): Declare.
6819 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6820 (uo_field_string): No longer static.
6821 (ui_out_data): Change return type to void pointer.
6822 (ui_out_new): Change `data' parameter type to void pointer.
6823 * ui-out.h (struct ui_out_data): Don't forward declare.
6824 (ui_out_data): Change return type to void pointer.
6825 (ui_out_new): Change `data' parameter type to void pointer.
6826 (uo_field_string): Declare.
6827
172240dd
PA
68282010-04-17 Pedro Alves <pedro@codesourcery.com>
6829
6830 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6831 instead of always false.
6832
ed41462c
L
68332010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6834
6835 PR corefiles/11511
6836 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6837 orig_rax.
6838
cc60f2e3
PA
68392010-04-17 Pedro Alves <pedro@codesourcery.com>
6840
6841 * breakpoint.c (watchpoints_triggered): Use
6842 is_hardware_watchpoint.
6843 (watchpoints_triggered): Ditto.
6844 (bpstat_check_location): Use is_watchpoint and
6845 is_hardware_watchpoint.
6846 (bpstat_check_watchpoint): Use is_watchpoint and
6847 is_hardware_watchpoint.
6848 (bpstat_stop_status): Fix comment.
6849 (user_settable_breakpoint): Use is_watchpoint.
6850 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6851 (disable_watchpoints_before_interactive_call_start): Use
6852 is_watchpoint.
6853 (enable_watchpoints_after_interactive_call_stop): Use
6854 is_watchpoint.
6855 (clear_command): Use is_watchpoint.
6856 (do_enable_breakpoint): Use is_watchpoint.
6857
cb7db0f2
MF
68582010-04-16 Mike Frysinger <vapier@gentoo.org>
6859
6860 * solib-frv.c (enable_break1_done): Delete.
6861 (enable_break2): Do not check enable_break1_done. Move the
6862 enable_break2_done setting and call to
6863 remove_solib_event_breakpoints() to the end. Return without
6864 warning when the contents of _dl_debug_addr are 0.
6865 (enable_break): Do not set enable_break1_done.
6866 (frv_clear_solib): Likewise.
6867
d77b48cf
KB
68682010-04-16 Kevin Buettner <kevinb@redhat.com>
6869
6870 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6871 instead of an error if no PLT entry is found. Return a
6872 potentially useful result.
6873 (m32c_m16c_pointer_to_address): Add code to search for function
6874 address when no .plt entry is found.
6875
f90824dc
SS
68762010-04-16 Stan Shebs <stan@codesourcery.com>
6877
6878 * tracepoint.c (trace_variable_command): Run a cleanup.
6879
9b79b476
PM
68802010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6881
6882 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6883
711e434b
PM
68842010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6885
6886 Support for Windows OS Thread Information Block.
6887 * NEWS: Document new feature.
6888 * remote.c (PACKET_qGetTIBAddr): New enum element.
6889 (remote_get_tib_address): New function.
6890 (init_remote_ops): Set to_get_tib_address field
6891 to remote_get_tib_address.
6892 (_initialize_remote): Add add_packet_config_cmd
6893 for PACKET_qGetTIBAddr.
6894 * target.c (update_current_target): Set default value for
6895 new to_get_tib_address field.
6896 * target.h (target_ops): New field to_get_tib_address.
6897 (target_get_tib_address): New macro.
6898 * windows-nat.c (thread_info): Add thread_local_base field.
6899 (windows_add_thread): Add tlb argument of type 'void *'.
6900 (fake_create_process): Adapt windows_add_thread call.
6901 (get_windows_debug_event): Idem.
6902 (windows_get_tib_address): New function.
6903 (init_windows_ops): Set to_get_tib_address field
6904 to remote_get_tib_address.
6905 (_initialize_windows_nat): Replace info_w32_cmdlist
6906 initialization by a call to init_w32_command_list.
6907 (info_w32_command, info_w32_cmdlist): Removed from here...
6908 to windows-tdep.c file.
6909 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 6910 (init_w32_command_list): New external function
711e434b
PM
6911 declaration.
6912 * windows-tdep.c: Add several headers.
6913 (info_w32_cmdlist): to here, made global.
6914 (thread_information_32): New struct.
6915 (thread_information_64): New struct.
6916 (TIB_NAME): New char array.
6917 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6918 (maint_display_all_tib): New static variable.
6919 (windows_get_tlb_type): New function.
6920 (tlb_value_read, tlb_value_write): New functions.
6921 (tlb_value_funcs): New static struct.
6922 (tlb_make_value): New function.
6923 (display_one_tib): New function.
6924 (display_tib): New function.
6925 (show_maint_show_all_tib):New function.
6926 (info_w32_command): Moved from windows-nat.c.
6927 (init_w32_command_list): New function.
6928 (_initialize_windows_tdep): New function.
6929 New "maint set/show show-all-tib" command
6930 New "$_tlb" internal variable.
6931
cae3f17b
JB
69322010-04-16 Joel Brobecker <brobecker@adacore.com>
6933
6934 * tui/tui-regs.c (tui_display_register): Add comment about
6935 a couple of casts.
6936 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6937
2ce6d6bf
SS
69382010-04-15 Stan Shebs <stan@codesourcery.com>
6939
6940 * frame.c: Include tracepoint.h.
6941 (get_current_frame): Allow a trace frame to be an alternate source
6942 of stack frame data.
6943 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6944 it won't succeed.
6945
7e559477
PA
69462010-04-15 Pedro Alves <pedro@codesourcery.com>
6947
6948 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6949 flags.
6950 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6951
3f7b2faa
DE
69522010-04-15 Doug Evans <dje@google.com>
6953
fa33c3cd
DE
6954 * NEWS: Add entry for python program space support.
6955 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6956 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6957 (py-progspace.o): New rule.
6958 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6959 function.
6960 (find_pretty_printer_from_progspace): New function.
6961 (find_pretty_printer_from_gdb): New function.
6962 (find_pretty_printer): Rewrite.
6963 * python/py-progspace.c: New file.
6964 * python/python-internal.h (program_space): Add forward decl.
6965 (pspace_to_pspace_object, pspy_get_printers): Declare.
6966 (gdbpy_initialize_pspace): Declare.
6967 * python/python.c: #include "progspace.h".
6968 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6969 (_initialize_python): Call gdbpy_initialize_pspace.
6970 (GdbMethods): Add current_progspace, progspaces.
6971
3f7b2faa
DE
6972 Add -s option to source command.
6973 * NEWS: Document new option.
6974 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6975 Delete from_tty and cleanupp args. Split filep arg into file and
6976 full_pathp. New arg search_path.
6977 (source_script_from_stream): New function.
6978 (source_script_with_search): New function.
6979 (source_script): Rewrite.
6980 (source_command): Parse "-s" option.
6981 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6982 * python/python.c (source_python_script): Make file arg a const char *.
6983 Don't call fclose, leave for caller.
6984 * python/python.h (source_python_script): Update.
6985
a86988f2
PA
69862010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6987 Pedro Alves <pedro@codesourcery.com>
6988
6989 Avoid rereading shared libraries that haven't changed.
6990
6991 * solib.c (free_so_symbols): New function, from ...
6992 (free_so): ... here. Call it.
6993 (solib_read_symbols): Don't warn here if symbols have already been
6994 loaded.
6995 (solib_add): Warn here instead, if a pattern was specified.
6996 (reload_shared_libraries_1): New.
6997 (reload_shared_libraries): Rewrite to not fetch the library list.
6998
e6d9b9c2
DE
69992010-04-14 Doug Evans <dje@google.com>
7000
589390d6 7001 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
7002 concatenating string to search path.
7003
516ba659
PA
70042010-04-14 Pedro Alves <pedro@codesourcery.com>
7005
7006 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7007 * objfiles.c (gdb_bfd_close_or_warn): New.
7008 * corelow.c: Include objfiles.h
7009 (core_close): Use gdb_bfd_close_or_warn.
7010 * elfread.c (build_id_verify): Ditto.
7011 * exec.c (exec_close, exec_close_1): Ditto.
7012
048d532d
PA
70132010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7014 Pedro Alves <pedro@codesourcery.com>
7015
7016 Group errors for many missing shared libraries.
7017
7018 * solist.h (struct so_list): Remove from_tty.
7019 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7020 (solib_map_sections): Take so_list argument. Return 0 if we
7021 failed to open a BFD. Add target sections here.
7022 (symbol_add_stub): Delete.
7023 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7024 not from_tty copied from the so_list. Don't warn a second time
7025 for a missing library.
7026 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7027 add to the section table here. Print out a single warning for all
7028 missing libraries.
7029 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7030 flags.
7031
044c0f87
PM
70322010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7033
7034 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7035 error/warning messages. Capitalize and use complete sentences.
7036 (blpy_block_syms_iternext): Likewise.
7037 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7038 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7039 (frame_info_to_frame_object, frapy_read_var)
7040 (gdbpy_frame_stop_reason_string): Likewise.
7041 * python/py-lazy-string.c (stpy_convert_to_value)
7042 (gdbpy_create_lazy_string_object): Likewise.
7043 * python/py-objfile.c (objfpy_set_printers): Likewise.
7044 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7045 * python/python.c (parameter_to_python): Likewise.
7046 * python/py-type.c (typy_range, typy_target): Likewise.
7047 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7048 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7049
7050
79f283fe
PM
70512010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7052
7053 PR python/11381
7054
7055 * python/py-prettyprint.c (pretty_print_one_value): Test for
7056 Py_None.
7057 (print_string_repr): Test for Py_None. Set flags accordingly.
7058 Return value depending on return type.
7059 (print_children): Take a value indicating whether data was printed
7060 before this function was called. Alter output accordingly.
7061 (apply_val_pretty_printer): Capture return value from
7062 print_string_repr and pass to print_children.
7063
4ac5d44e
MK
70642010-04-13 Mark Kettenis <kettenis@gnu.org>
7065
e1caee70 7066 PR corefiles/11481
4ac5d44e
MK
7067 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7068 register note sections.
7069 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7070 New variables.
7071 (i386_linux_init_abi): Install list of supported register note
7072 sections that matches the target description.
7073
ad91cd99
PA
70742010-04-13 Pedro Alves <pedro@codesourcery.com>
7075
7076 * remote.c (remote_get_noisy_reply): Don't error out on empty
7077 replies.
7078 (remote_start_remote): Update and merge tracepoints and trace
7079 state variables as long as the target supports tracepoints.
7080 (remote_trace_init): Fix prototype.
7081 (remote_download_trace_state_variable): Validate reply.
7082 (remote_trace_set_readonly_regions): Fix prototype.
7083 (remote_trace_start): Fix prototype. Check for empty reply.
7084 (remote_get_trace_status): Small cleanup.
7085 (remote_trace_stop): Fix prototype. Check for empty reply.
7086 (remote_trace_find): Check for empty reply.
7087 (remote_save_trace_data): Validate reply.
7088 (remote_set_disconnected_tracing): Check for empty reply, and
7089 validate reply.
7090 (remote_set_circular_trace_buffer): Ditto.
7091
ae3bccd4
PM
70922010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7093
7094 Suppress unused value warning during compilation.
7095 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7096 calls to void.
7097 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7098
523136f2
SS
70992010-04-12 Stan Shebs <stan@codesourcery.com>
7100
7101 * tracepoint.c (tfile_xfer_partial): Check read result.
7102
0d18d720
MF
71032010-04-12 Mike Frysinger <vapier@gentoo.org>
7104
7105 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7106 * remote-sim.c (gdbsim_files_info): Likewise.
7107
3b273a55
RE
71082010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7109
7110 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7111 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7112 variable.
7113 (fetch_vfp_registers): New function to fetch VFP registers.
7114 (store_vfp_registers): New function to store VFP registers.
7115 (arm_linux_fetch_inferior_registers): Add support for VFP
7116 registers.
7117 (arm_linux_store_inferior_registers): Likewise.
7118 (arm_linux_read_description): Likewise.
7119 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7120 until we need it.
7121
778c7095
L
71222010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7123
7124 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7125 tdep.
7126 (amd64_collect_xstateregset): Likewise.
7127
2114d44c
SS
71282010-04-09 Stan Shebs <stan@codesourcery.com>
7129
87290684
SS
7130 * tracepoint.c (trace_status_mi): Report frames created.
7131
2114d44c
SS
7132 * tracepoint.c (trace_dump_command): Include default-collect
7133 expressions.
7134
86da934b
UW
71352010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7136
7137 * symtab.c (find_function_start_sal): Never return SAL pointing
7138 before function start address, even if line info is missing.
7139
2d6e647a 71402010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
7141
7142 * NEWS: Mention tracepoints support.
7143
a97153c7
PA
71442010-04-09 Pedro Alves <pedro@codesourcery.com>
7145
7146 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7147 circular trace buffer statuses.
7148
7a66d603
JK
71492010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7150
7151 * config/djgpp/fnchange.lst: Fix typo in translations for
7152 symbol-without-target_section.exp and symbol-without-target_section.c.
7153
2566ad2d
PA
71542010-04-09 Pedro Alves <pedro@codesourcery.com>
7155
7156 * breakpoint.c (condition_command): Pass condition expression to
7157 set_breakpoint_condition stripped from breakpoint number.
7158
adc36818
PM
71592010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7160 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 7161 Tom Tromey <tromey@redhat.com>
adc36818
PM
7162
7163 * breakpoint.c (condition_command): Simplify. Move condition
7164 setting code to ...
7165 (set_breakpoint_condition): ... here. New function.
7166 * breakpoint.h (set_breakpoint_condition): Declare.
7167 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7168 (SUBDIR_PYTHON_SRCS): Likewise.
7169 (py-breakpoint.o): New rule.
7170 * python/py-breakpoint.c: New file.
7171 * python/python-internal.h (gdbpy_breakpoints)
7172 (gdbpy_initialize_breakpoints): Declare.
7173 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7174
219f2f23
PA
71752010-04-09 Pedro Alves <pedro@codesourcery.com>
7176
7177 * regformats/regdat.sh: Include server.h. Don't include
7178 regcache.h.
7179
33da3f1c
SS
71802010-04-08 Stan Shebs <stan@codesourcery.com>
7181 Pedro Alves <pedro@codesourcery.com>
7182
7183 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7184 and circular_buffer.
7185 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7186 * tracepoint.c (trace_status_command): Display target's status for
7187 disconnected tracing and circular buffer.
7188 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7189 query for non-disconnected-tracing case, remove the stop_tracing
7190 call.
7191 (tfile_open): Clear disconnected and circular buffer status.
7192 (trace_save): Save disconnected and circular buffer status.
7193 (parse_trace_status): Parse disconnected and circular buffer status,
7194 also recognize disconnected as a stop reason.
7195 * remote.c (remote_set_disconnected_tracing): Only set
7196 QTDisconnected if the remote end supports disconnected tracing.
7197 Warn otherwise, if trying to enable disconnected tracing.
7198 * infcmd.c (detach_command): Update disconnect_tracing call.
7199 * cli/cli-cmds.c (quit_command): Ditto.
7200
4e4d8374
L
72012010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7202
7203 * i387-tdep.c (i387_collect_xsave): Replace abort with
7204 internal_error.
7205
ad443146
SS
72062010-04-08 Stan Shebs <stan@codesourcery.com>
7207
7208 * breakpoint.c (default_collect_info): New function.
7209 (breakpoints_info): Call it.
7210 (maintenance_info_breakpoints): Ditto.
7211 (tracepoints_info): Ditto.
7212
40936b0d
L
72132010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7214
7215 * i387-tdep.c (i387_collect_xsave): Re-indent.
7216
3a13a53b
L
72172010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7218
7219 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7220 if HAVE_PTRACE_GETFPXREGS is defined.
7221 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7222 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7223
7224 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7225 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7226 if .reg-xfp section doesn't exist.
7227 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7228
7229 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7230
7231 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7232 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7233 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7234 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7235 (i386_gdbarch_init): Update comments.
7236 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7237
7238 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7239
7240 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7241
7242 * features/Makefile (i386/i386-mmx-expedite): New.
7243 (i386/i386-mmx-linux-expedite): Likewise.
7244 ($(outdir)/i386/i386-mmx.dat): Likewise.
7245 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7246
7247 * features/i386/i386-mmx-linux.c: New.
7248 * features/i386/i386-mmx-linux.xml: Likewise.
7249 * features/i386/i386-mmx.c: Likewise.
7250 * features/i386/i386-mmx.xml: Likewise.
7251 * regformats/i386/i386-mmx-linux.dat: Likewise.
7252 * regformats/i386/i386-mmx.dat: Likewise.
7253
7254 * features/Makefile (WHICH): Add i386/i386-mmx and
7255 i386/i386-mmx-linux.
7256
08001717
DE
72572010-04-08 Doug Evans <dje@google.com>
7258
7259 * source.c (openp): Skip $cdir in PATH.
7260
fff5cc64
PM
72612010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7262
7263 PR python/11417
fff5cc64 7264 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
7265 a NULL address.
7266 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7267 address and a zero length.
fff5cc64 7268
f8c4f480
HZ
72692010-04-08 Hui Zhu <teawater@gmail.com>
7270
7271 * i386-tdep.c (i386_process_record): Add support for insn
7272 rdtsc.
7273
eb5cda86
DE
72742010-04-07 Doug Evans <dje@google.com>
7275
7276 * python/python.c (source_python_script): Use ensure_python_env
7277 to prepare environment for script.
7278
a055a187
L
72792010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7280
7281 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7282 <sys/uio.h> and "i386-xstate.h".
7283 (PTRACE_GETREGSET): New.
7284 (PTRACE_SETREGSET): Likewise.
7285 (have_ptrace_getregset): Likewise.
7286 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7287 registers.
7288 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7289 registers.
7290 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7291 (amd64_linux_store_inferior_registers): Likewise.
7292 (amd64_linux_read_description): Check and enable AVX target
7293 descriptions.
7294
7295 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7296 and "features/i386/amd64-avx-linux.c".
7297 (amd64_linux_regset_sections): New.
7298 (amd64_linux_core_read_description): Check and enable AVX
7299 target description.
7300 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7301 set_gdbarch_core_regset_sections.
7302 (_initialize_amd64_linux_tdep): Call
7303 initialize_tdesc_amd64_avx_linux.
7304
7305 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7306 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7307 (tdesc_amd64_avx_linux): New.
7308 (amd64_linux_update_xstateregset): Likewise.
7309
7310 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7311 (amd64_ymm_names): New.
7312 (amd64_ymmh_names): Likewise.
7313 (amd64_register_name): Likewise.
7314 (amd64_supply_xstateregset): Likewise.
7315 (amd64_collect_xstateregset): Likewise.
7316 (amd64_supply_xsave): Likewise.
7317 (amd64_collect_xsave): Likewise.
7318 (AMD64_NUM_REGS): Removed.
7319 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7320 %xmmN if AVX is available.
7321 (amd64_pseudo_register_name): Support pseudo YMM registers.
7322 (amd64_regset_from_core_section): Support .reg-xstate section.
7323 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7324 and ymm0h_regnum. Call set_gdbarch_register_name.
7325 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7326
7327 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7328 AMD64_YMM15H_REGNUM.
7329 (AMD64_NUM_REGS): New.
7330 (amd64_supply_xsave): Likewise.
7331 (amd64_collect_xsave): Likewise.
7332 (amd64_register_name): Removed.
7333 (amd64_register_type): Likewise.
7334
31aeac78
L
73352010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7336
7337 * i387-tdep.c: Include "i386-xstate.h".
7338 (XSAVE_XSTATE_BV_ADDR): New.
7339 (xsave_avxh_offset): Likewise.
7340 (XSAVE_AVXH_ADDR): Likewise.
7341 (i387_supply_xsave): Likewise.
7342 (i387_collect_xsave): Likewise.
7343
7344 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7345 (I387_YMM0H_REGNUM): Likewise.
7346 (I387_YMMENDH_REGNUM): Likewise.
7347 (i387_supply_xsave): Likewise.
7348 (i387_collect_xsave): Likewise.
7349
c131fcee
L
73502010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7351
7352 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7353 <sys/uio.h> and "i386-xstate.h".
7354 (PTRACE_GETREGSET): New.
7355 (PTRACE_SETREGSET): Likewise.
7356 (fetch_xstateregs): Likewise.
7357 (store_xstateregs): Likewise.
7358 (GETXSTATEREGS_SUPPLIES): Likewise.
7359 (regmap): Include 8 upper YMM registers.
7360 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7361 state.
7362 (i386_linux_store_inferior_registers): Likewise.
7363 (i386_linux_read_description): Check and enable AVX target
7364 descriptions.
7365
7366 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7367 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7368 (i386_linux_regset_sections): Add ".reg-xstate".
7369 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7370 (i386_linux_core_read_xcr0): New.
7371 (i386_linux_core_read_description): Check and enable AVX target
7372 description.
7373 (i386_linux_init_abi): Set xsave_xcr0_offset.
7374 (_initialize_i386_linux_tdep): Call
7375 initialize_tdesc_i386_avx_linux.
7376
7377 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7378 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7379 (i386_linux_core_read_xcr0): New.
7380 (tdesc_i386_avx_linux): Likewise.
7381 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7382
7383 * i386-tdep.c: Include "i386-xstate.h" and
7384 "features/i386/i386-avx.c".
7385 (i386_ymm_names): New.
7386 (i386_ymmh_names): Likewise.
7387 (i386_ymmh_regnum_p): Likewise.
7388 (i386_ymm_regnum_p): Likewise.
7389 (i386_xmm_regnum_p): Likewise.
7390 (i386_register_name): Likewise.
7391 (i386_ymm_type): Likewise.
7392 (i386_supply_xstateregset): Likewise.
7393 (i386_collect_xstateregset): Likewise.
7394 (i386_sse_regnum_p): Removed.
7395 (i386_pseudo_register_name): Support pseudo YMM registers.
7396 (i386_pseudo_register_type): Likewise.
7397 (i386_pseudo_register_read): Likewise.
7398 (i386_pseudo_register_write): Likewise.
7399 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7400 %xmmN if AVX is available.
7401 (i386_regset_from_core_section): Support .reg-xstate section.
7402 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7403 (i386_process_record): Replace i386_sse_regnum_p with
7404 i386_xmm_regnum_p.
7405 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7406 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 7407 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
7408 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7409 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7410 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7411 Set ymm0_regnum.
7412 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7413
7414 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7415 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7416 i386_ymm_type.
7417 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7418 (I386_AVX_NUM_REGS): New.
7419 (i386_xmm_regnum_p): Likewise.
7420 (i386_ymm_regnum_p): Likewise.
7421 (i386_ymmh_regnum_p): Likewise.
7422
7423 * common/i386-xstate.h: New.
7424
98adf0f3
L
74252010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7426
7427 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7428
7429 * features/Makefile (WHICH): Add i386/i386-avx,
7430 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7431 (i386/i386-avx-expedite): New.
7432 (i386/i386-avx-linux-expedite): Likewise.
7433 (i386/x86-64-avx-expedite):Likewise.
7434 (i386/x86-64-avx-linux-expedite): Likewise.
7435 ($(outdir)/i386/i386-avx.dat): New dependency.
7436 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7437 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7438 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7439
7440 * features/i386/32bit-avx.xml: New.
7441 * features/i386/64bit-avx.xml: Likewise.
7442 * features/i386/i386-avx-linux.c: Likewise.
7443 * features/i386/i386-avx-linux.xml: Likewise.
7444 * features/i386/i386-avx.c: Likewise.
7445 * features/i386/i386-avx.xml: Likewise.
7446 * features/i386/x86-64-avx-linux.c: Likewise.
7447 * features/i386/x86-64-avx-linux.xml: Likewise.
7448 * features/i386/x86-64-avx.c: Likewise.
7449 * features/i386/x86-64-avx.xml: Likewise.
7450 * regformats/i386/i386-avx-linux.dat: Likewise.
7451 * regformats/i386/i386-avx.dat: Likewise.
7452 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7453 * regformats/i386/x86-64-avx.dat: Likewise.
7454
05159abe
DE
74552010-04-07 Doug Evans <dje@google.com>
7456
7457 * top.c (source_file_name): Make const char *.
7458 * top.h (source_file_name): Update.
7459 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7460 const char *.
7461 (script_from_file): Change `file' arg to const char *.
7462 * cli/cli-script.h (script_from_file): Update.
7463
96e39866
DE
74642010-04-06 Doug Evans <dje@google.com>
7465
7466 * cli/cli-cmds.c (source_command): Run cleanups.
7467
3149d8c1
SS
74682010-04-06 Stan Shebs <stan@codesourcery.com>
7469
7470 * defs.h (char_ptr): Move typedef here from...
7471 * ada-lang.c (char_ptr): Remove.
7472 * charset.c (char_ptr): Remove.
7473 * tracepoint.h (struct uploaded_string): Remove.
7474 (struct uploaded_tp): Use vectors for string arrays.
7475 * tracepoint.c (trace_save): Use vectors of actions.
7476 (parse_tracepoint_definition): Ditto.
7477 (get_uploaded_tp): Clear vectors.
7478 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7479 (next_cmd): Change to an int.
7480 (read_next_cmd): Use vector of command strings.
7481
4cc23ede
DE
74822010-04-06 Doug Evans <dje@google.com>
7483
7484 * top.h (source_script, cd_command): Delete.
7485 * main.c: #include "cli/cli-cmds.h"
7486
bd333fb7
KB
74872010-04-06 Kevin Buettner <kevinb@redhat.com>
7488
7489 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7490 type in bytes, not bits.
7491
ec8a089a
PM
74922010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7493
7494 * stabsread.c (define_symbol): Add support for char
7495 and string constants.
7496
2244ba2e
PM
74972010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7498
7499 Remove remaining "%ll" uses.
7500 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7501 hex_string call.
7502 * rs6000-nat.c (rs6000_ptrace64): Idem.
7503 * solib-pa64.c (pa64_current_sos): Idem.
7504 * solib-spu.c (spu_current_sos): Idem.
7505 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7506 plongest call.
7507 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7508 phex (VAR, 8) call.
7509 * sh64-tdep.c (sh64_show_media_regs): Idem.
7510
fce3c1f0
SS
75112010-04-05 Stan Shebs <stan@codesourcery.com>
7512
7513 * tracepoint.c: Include gdbcore.h.
7514 (tfile_xfer_partial): Return partial results, also try reading
7515 from executable.
7516 (tfile_has_all_memory): New function.
7517 (init_tfile_ops): Use it.
7518
626ea16d
SDJ
75192010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7520
7521 PR gdb/10736:
7522 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7523 the changes in data-directory.
7524 (init_sysinfo): Reload the syscall XML file if the data-directory
7525 has changed.
7526
1f7ccab2
JK
75272010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 Code cleanup.
7530 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7531
d77f58be
SS
75322010-04-04 Stan Shebs <stan@codesourcery.com>
7533 Nathan Sidwell <nathan@codesourcery.com>
7534
7535 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7536 breakpoints printed.
7537 (is_hardware_watchpoint): Make argument const.
7538 (is_watchpoint): Ditto.
7539 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7540 use it everywhere.
7541 (breakpoints_info): Pass NULL to breakpoint_1.
7542 (maintenance_info_breakpoints): Ditto.
7543 (watchpoints_info): New function.
7544 (tracepoints_info): Use breakpoint_1 filter.
7545 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7546 (_initialize_breakpoint): Make "info watchpoints" its own command.
7547 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7548 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7549
af54718e
SS
75502010-04-04 Stan Shebs <stan@codesourcery.com>
7551
7552 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7553
74d1f91e
JK
75542010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7555
7556 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7557 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7558
91d91ceb
JK
75592010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7560
7561 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7562 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7563
60531b24
JK
75642010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7565
7566 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7567 code form.
7568
a3c4230a
HZ
75692010-04-02 Hui Zhu <teawater@gmail.com>
7570
7571 * i386-tdep.c (OT_DQUAD): New enum.
7572 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7573 SSE3, SSSE3 and SSE4.
7574
b15758fe
HZ
75752010-04-02 Hui Zhu <teawater@gmail.com>
7576
7577 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7578 "*addr = 0".
7579
afd02f27
PA
75802010-04-02 Pedro Alves <pedro@codesourcery.com>
7581
7582 * tracepoint.c (trace_dump_actions): New, factored out from
7583 trace_dump_command, and adjusted to recurse into while-stepping's
7584 action list.
7585 (trace_dump_command): Use it.
7586
5cea2a26
PA
75872010-04-02 Pedro Alves <pedro@codesourcery.com>
7588
7589 * breakpoint.h (struct counted_command_line): Moved definition to
7590 breakpoint.c, and forward declare.
7591 (breakpoint_commands): Declare.
7592 * breakpoint.c (struct counted_command_line): Moved here.
7593 (breakpoint_commands): New.
7594 * tracepoint.c (encode_actions): Use breakpoint_commands.
7595 * remote.c (remote_download_tracepoint): Ditto.
7596
7c47795c
L
75972010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7598
7599 * remote.c (remote_parse_stop_reply): Use hex_string instead
7600 of phex_nz for error.
7601
fff87407
SS
76022010-04-01 Stan Shebs <stan@codesourcery.com>
7603 Nathan Sidwell <nathan@codesourcery.com>
7604
7605 * tracepoint.h (enum actionline_type): Remove.
7606 (validate_actionline): Change return to void.
7607 * tracepoint.c (report_agent_reqs_errors): New function.
7608 (validate_actionline): Call it, change return to void, report errors
7609 more consistently.
7610 (collect_symbol): Call report_agent_reqs_errors.
7611 (encode_actions_1): Ditto.
7612 (encode_actions): Don't expect a result from validate_actionline.
7613
615bcdef
SS
76142010-04-01 Stan Shebs <stan@codesourcery.com>
7615
7616 * tracepoint.c (trace_start_command): Confirm if trace is running.
7617 (trace_stop_command): Error if trace not running.
7618
fe01d668
L
76192010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7620
7621 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7622 (AMD64_NUM_LOWER_BYTE_REGS): New.
7623 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7624 (amd64_pseudo_register_write): Likewise.
7625 (amd64_init_abi): Set num_byte_regs to 20.
7626
86b17b60
PA
76272010-04-01 Pedro Alves <pedro@codesourcery.com>
7628
7629 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7630 (prev_breakpoint_count): New.
7631 (set_breakpoint_count): Adjust.
7632 (rbreak_start_breakpoint_count): New.
7633 (start_rbreak_breakpoints): Adjust.
7634 (end_rbreak_breakpoints): Adjust.
7635 (struct commands_info) <arg>: New field.
7636 (do_map_commands_command): Tweak output to include breakpoint spec
7637 range.
7638 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7639 ARG was empty on entry. Set INFO's arg.
7640 (create_breakpoint): Adjust.
7641
7642 * NEWS: Clarify `commands' changes.
7643
2c58c0a9
PA
76442010-04-01 Pedro Alves <pedro@codesourcery.com>
7645
7646 * tracepoint.c: Include stack.h.
7647 (struct add_local_symbols_data): New.
7648 (do_collect_symbol): New.
7649 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7650 iterate_over_block_local_vars.
7651 * stack.c (print_block_frame_locals): Rewrite as ...
7652 (iterate_over_block_locals): ... this. Take a callback function
7653 pointer and generic data pointer, and call that instead of
7654 print_variable_and_value.
7655 (struct print_variable_and_value_data): New.
7656 (do_print_variable_and_value): New.
7657 (iterate_over_block_local_vars): New, abstracted out from
7658 print_frame_local_vars.
7659 (print_frame_local_vars): Rewrite using
7660 iterate_over_block_local_vars.
7661 (iterate_over_block_arg_vars): New, abstracted out from
7662 print_frame_arg_vars.
7663 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7664 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7665 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7666
d476da0e
RE
76672010-03-31 Richard Earnshaw <rearnsha@arm.com>
7668
7669 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7670 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7671 PC register.
7672
8072405b
JK
76732010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 Fix crash on reading wrong function declaration DWARF.
7676 * dwarf2read.c (read_subroutine_type): New variable void_type.
7677 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7678 more close to their use.
7679
8bf6485c
SS
76802010-03-31 Stan Shebs <stan@codesourcery.com>
7681
7682 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7683 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7684 * tracepoint.c (save_trace_state_variables): New function.
7685 * tracepoint.h (save_trace_state_variables): Declare it.
7686
2ae2a0b7
PM
76872010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7688
1a161f72 7689 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7690
86ffb506
KS
76912010-03-30 Keith Seitz <keiths@redhat.com>
7692
7693 * c-typeprint.c (c_type_print_args): Don't print "void"
7694 for java, regardless of whether it is TYPE_PROTOTYPED.
7695 Use the passed-in language instead of current_language.
7696 (c_type_print_varspec_suffix): Use current_language instead
7697 of assuming language_c.
7698 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7699 any return type specifier from the physname.
7700
956c2c8b
PA
77012010-03-30 Pedro Alves <pedro@codesourcery.com>
7702
7703 * tui/tui-interp.c (tui_is_toplevel): New.
7704 (tui_init): Set it.
7705 (tui_allowed_p): New.
7706 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7707 enabling it.
7708 * tui/tui.h (tui_allowed_p): Declare.
7709
98e5a990
TT
77102010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7711
7712 * serial.h: Include winsock2.h before windows.h.
7713
c8d5aac9
L
77142010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7715
7716 * NEWS: Mention xmlRegisters= in qSupported packet.
7717
7718 * i386-tdep.c: Include "remote.h".
7719 (_initialize_i386_tdep): Call register_remote_support_xml.
7720
7721 * remote.c (remote_support_xml): New.
7722 (register_remote_support_xml): Likewise.
7723 (remote_query_supported_append): Likewise.
7724 (remote_query_supported): Support remote_support_xml.
7725
7726 * remote.h (register_remote_support_xml): New.
7727
76a2b958
SS
77282010-03-29 Stan Shebs <stan@codesourcery.com>
7729
42e08e69
SS
7730 * tracepoint.c (trace_find_line_command): Remove dead code.
7731
409873ef
SS
7732 * tracepoint.h (struct uploaded_string): New struct.
7733 (struct uploaded_tp): New fields for source strings.
7734 * breakpoint.c (this_utp, next_cmd): New globals.
7735 (read_uploaded_action): New function.
7736 (create_tracepoint_from_upload): Fill in more parts
7737 of a tracepoint.
7738 * tracepoint.c (encode_source_string): New function.
7739 (trace_save): Write out source strings, fix error checks.
7740 (parse_tracepoint_definition): Add source string parsing.
7741 * remote.c (PACKET_TracepointSource): New packet type.
7742 (remote_download_command_source): New function.
7743 (remote_download_tracepoint): Download source pieces also.
7744 (_initialize_remote): Add packet config command.
7745
a0405854
SS
7746 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7747 expression handler.
7748
76a2b958
SS
7749 * tracepoint.c (start_tracing): Check tracepoints before sending
7750 commands to target, don't start if all tracepoints disabled.
7751
d350db38
PA
77522010-03-28 Pedro Alves <pedro@codesourcery.com>
7753
12f2d601 7754 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7755
8b9b7ef8
SS
77562010-03-26 Stan Shebs <stan@codesourcery.com>
7757
7758 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7759
9766ced4
SS
77602010-03-26 Tom Tromey <tromey@redhat.com>
7761
7762 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7763
059acae7
UW
77642010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7765
7766 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7767 (skip_prologue_sal): Remove local definition.
7768 (resolve_sal_pc): Remove now unnecessary code.
7769 * linespec.c (minsym_found): Call skip_prologue_sal.
7770 * symtab.c (find_function_start_pc): Remove.
7771 (find_function_start_sal): Extract prologue skipping into ...
7772 (skip_prologue_sal): ... this new function. Handle code both
7773 with and without debug info. Respect SAL's explicit_pc and
7774 explicit_line flags. Inline old find_function_start_pc.
7775 * symtab.h (find_function_start_pc): Remove.
7776 (skip_prologue_sal): Add prototype.
7777
4a811a97
UW
77782010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7779
7780 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7781 for DW_TAG_imported_module children.
7782
907af001
UW
77832010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7784
7785 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7786 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7787 * completer.c (add_struct_fields): Fix inverted logic.
7788
dde2d684
UW
77892010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7790
7791 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7792
a609a0c8
PA
77932010-03-26 Pedro Alves <pedro@codesourcery.com>
7794
7795 * tracepoint.c (current_trace_status): Don't make sure error_desc
7796 is non-NULL here.
7797 (parse_trace_status): Release a previous error_desc string, and
7798 set it to NULL by default. If stop reason is tracepoint_error,
7799 make sure error_desc is not left NULL.
7800
610197fd
PA
78012010-03-26 Pedro Alves <pedro@codesourcery.com>
7802
7803 * tracepoint.c (trace_save): Remove X from tracepoint error
7804 description.
7805
99b5e152
PA
78062010-03-26 Pedro Alves <pedro@codesourcery.com>
7807
7808 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7809 the terror description. Don't expect an X prefix.
7810
6c28cbf2
SS
78112010-03-25 Stan Shebs <stan@codesourcery.com>
7812
7813 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7814 (struct trace_status): New field error_desc.
7815 * tracepoint.c (stop_reason_names): Add terror.
7816 (current_trace_status): Ensure non-NULL error description.
7817 (trace_status_command): Add error report.
7818 (trace_status_mi): Ditto.
7819 (trace_save): Add special case for error description.
7820 (parse_trace_status): Add case for errors.
7821
418835cc
KS
78222010-03-25 Keith Seitz <keiths@redhat.com>
7823
7824 * dwarf2read.c (read_subroutine_type): If the compilation unit
7825 language is Java, mark any formal parameter named "this" as
7826 artificial (GCC/43521).
7827 (dwarf2_name): Add special handling for Java constructors.
7828
aa7d318d
TT
78292010-03-25 Tom Tromey <tromey@redhat.com>
7830
7831 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7832 * infrun.c (handle_inferior_event): Change initialization of
7833 stop_stack_dummy.
7834 (handle_inferior_event): Change assignment to stop_stack_dummy.
7835 (normal_stop): Update use of stop_stack_dummy.
7836 (struct inferior_status) <stop_stack_dummy>: Change type.
7837 * inferior.h (stop_stack_dummy): Update.
7838 * infcmd.c (stop_stack_dummy): Change type.
7839 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7840 function.
7841 (call_function_by_hand): Call set_std_terminate_breakpoint.
7842 Rewrite std::terminate handling.
7843 * breakpoint.h (enum bptype) <bp_std_terminate,
7844 bp_std_terminate_master>: New.
7845 (enum stop_stack_kind): New.
7846 (struct bpstat_what) <call_dummy>: Change type.
7847 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7848 Declare.
7849 * breakpoint.c (create_std_terminate_master_breakpoint): New
7850 function.
7851 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7852 Call create_std_terminate_master_breakpoint.
7853 (print_it_typical): Handle new breakpoint kinds.
7854 (bpstat_stop_status): Handle bp_std_terminate_master.
7855 (bpstat_what): Correctly set call_dummy field. Handle
7856 bp_std_terminate_master and bp_std_terminate.
7857 (print_one_breakpoint_location): Update.
7858 (allocate_bp_location): Update.
7859 (set_std_terminate_breakpoint): New function.
7860 (delete_std_terminate_breakpoint): Likewise.
7861 (create_thread_event_breakpoint): Update.
7862 (delete_command): Update.
7863 (breakpoint_re_set_one): Update.
7864 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7865
82ccf5a5
JK
78662010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7867
7868 * symfile.c (build_section_addr_info_from_bfd): New.
7869 (build_section_addr_info_from_objfile): Base it on
7870 build_section_addr_info_from_bfd.
7871 (addrs_section_compar, addrs_section_sort): New.
7872 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7873 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7874 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7875
737c4c52
MS
78762010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7877
8d95cc3b 7878 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7879 Remove unused local variable.
7880
95a42b64
TT
78812010-03-24 Tom Tromey <tromey@redhat.com>
7882
7883 PR breakpoints/9352:
7884 * NEWS: Mention changes to `commands' and `rbreak'.
7885 * symtab.c (do_end_rbreak_breakpoints): New function.
7886 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7887 end_rbreak_breakpoints.
7888 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7889 (set_breakpoint_count): Likewise. Clear last_was_multi.
7890 (multi_start, multi_end, last_was_multi): New globals.
7891 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7892 functions.
7893 (struct commands_info): New
7894 (do_map_commands_command): New function.
7895 (commands_command_1): New function.
7896 (commands_command): Use it.
7897 (commands_from_control_command): Likewise.
7898 (do_delete_breakpoint): New function.
7899 (delete_command): Use it.
7900 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7901 (do_map_disable_breakpoint): New function.
7902 (disable_command): Use it.
7903 (do_map_enable_breakpoint): New function.
7904 (enable_command): Use it.
7905 (enable_once_breakpoint): Add argument.
7906 (enable_once_command): Update.
7907 (enable_delete_breakpoint): Add argument.
7908 (enable_delete_command): Update.
7909 (break_command_really): Set last_was_multi when needed.
7910 (check_tracepoint_command): Fix formatting.
7911 (validate_commands_for_breakpoint): New function.
7912 (breakpoint_set_commands): Use it.
7913 (tracepoint_save_command): Update.
7914 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7915 Declare.
7916
9add0f1b
TT
79172010-03-24 Tom Tromey <tromey@redhat.com>
7918
7919 * breakpoint.h (struct counted_command_line): New struct.
7920 (struct breakpoint) <commands>: Change type.
7921 (struct bpstats) <commands>: Change type.
7922 <commands_left>: New field.
7923 * breakpoint.c (alloc_counted_command_line): New function.
7924 (incref_counted_command_line): Likewise.
7925 (decref_counted_command_line): Likewise.
7926 (do_cleanup_counted_command_line): Likewise.
7927 (make_cleanup_decref_counted_command_line): Likewise.
7928 (breakpoint_set_commands): Use decref_counted_command_line and
7929 alloc_counted_command_line.
7930 (commands_command): Don't error if breakpoint commands are
7931 executing.
7932 (commands_from_control_command): Likewise.
7933 (bpstat_free): Update.
7934 (bpstat_copy): Likewise.
7935 (bpstat_clear_actions): Likewise.
7936 (bpstat_do_actions_1): Likewise.
7937 (bpstat_stop_status): Likewise.
7938 (print_one_breakpoint_location): Likewise.
7939 (delete_breakpoint): Likewise.
7940 (bpstat_alloc): Initialize new field.
7941 (tracepoint_save_command): Update.
7942 * tracepoint.c (encode_actions): Update.
7943 (trace_dump_command): Update.
7944
a6c727b2
DJ
79452010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7946
7947 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7948 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7949 (read_structure_type): For RealView, set TYPE_STUB on structures with
7950 no byte size and no children.
7951 (read_subroutine_type): Mark functions as prototyped by default.
7952 * symtab.c (producer_is_realview): New function.
7953 * symtab.h (expand_line_sal): Fix declaration formatting.
7954 (producer_is_realview): Declare.
7955
0d39a070
DJ
79562010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7957
7958 * arm-tdep.c (skip_prologue_function): New function.
7959 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7960 (thumb_analyze_prologue): Document return value. Recognize more
7961 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7962 Add debug output.
7963 (arm_skip_prologue): Remove call dummy check. Check the prologue
7964 for non-GNU compilers.
7965 (arm_instruction_changes_pc): New function.
7966 (arm_analyze_prologue): New function, broken out from
7967 arm_scan_prologue. Recognize more ARM instructions and skippable
7968 calls. Update comments. Handle NULL cache. Return the address
7969 of the first unrecognized instruction. Do not skip past other
7970 instructions which change control flow. Add debug output.
7971 (arm_scan_prologue): Use arm_analyze_prologue.
7972 (ARM_PC_32): Delete.
7973 (shifted_reg_val): Simplify ARM_PC_32 check.
7974
4baf5cf4
VP
79752010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7976
7977 * tracepoint.c (tvariables_info_1): Actually compute
7978 the number of rows in the result.
7979
4a5e7a5b
PA
79802010-03-24 Pedro Alves <pedro@codesourcery.com>
7981
7982 * remote.c (crc32): Constify `buf' parameter.
7983 (remote_verify_memory): New, abstracted out from...
7984 (compare_sections_command): ... this. Remove hardcoded target
7985 checks.
7986 (init_remote_ops): Install remote_verify_memory.
7987 * target.c (target_verify_memory): New.
7988 * target.h (struct target_ops) <to_verify_memory>: New field.
7989 (target_verify_memory): Declare.
7990
011aacb0
VP
79912010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7992
7993 Implement -trace-save.
7994
7995 * mi-cmds.h (mi_cmds_trace_save): Declare.
7996 * mi-cmds.c (mi_cmds): Register -trace-save.
7997 * mi/mi-main.c (mi_cmd_trace_save): New.
7998 * remote.c (remote_save_trace_data): Take const parameter.
7999 * target.h (struct target_ops::to_save_trace_data): Take
8000 const parameter.
8001 * target.c (update_current_target): Adjust to the above.
8002 * tracepoint.c (trave_save): New, extracted from
8003 (trace_save_command): ...this.
8004 (tfile_trace_find): Remove message that is unnecessary now
8005 that 'tfind' reports found frame.
8006 * tracepoint.h (trace_save): Declare.
8007
f197e0f1
VP
80082010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8009
8010 Implement -trace-find.
8011
8012 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8013 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8014 * mi/mi-main.c (mi_cmd_trace_find): New.
8015 * target.h (struct target_ops): Document to_trace_find.
8016 * tracepoint.h (tfind_1): Declare.
8017 * tracepoint.c (finish_tfind_command): Rename to...
8018 (tfind_1): ...this.
8019 * remote.c (remote_trace_find): Return -1 if target say
8020 there's no frame. Improve error diagnostics.
8021
40e1c229
VP
80222010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8023
8024 -trace-define-variable and -trace-list-variables.
8025
8026 * tracepoint.c (create_trace_state_variable): Make
8027 private copy of name, as opposed to assuming the
8028 pointer lives forever.
8029 (tvariables_info_1): New.
8030 (tvariables_info): Use the above.
8031 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8032 Declare.
8033 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8034 and -trace-list-variables.
8035 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8036 (mi_cmd_trace_list_variables): New.
8037 * mi/mi-main.c (mi_cmd_trace_define_variable)
8038 (mi_cmd_trace_list_variables): New.
8039
9b4c786c
VP
80402010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8041
8042 Implement -break-passcount.
8043
8044 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8045 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8046 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8047
f224b49d
VP
80482010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8049
8050 -trace-start/-trace-end/-trace-status.
8051
8052 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8053 and -trace-stop.
8054 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8055 (mi_cmd_trace_stop): Declare.
8056 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8057 (mi_cmd_trace_stop): New.
8058 * tracepoint.c (start_tracing): New, extracted from...
8059 (trace_start_command): ...this.
8060 (trace_status_mi): New.
8061 * tracepoint.h (struct trace_status): Document
8062 stopping_tracepoint.
8063 (start_tracing, stop_tracing, trace_status_mi): Declare.
8064
6534d786
VP
80652010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8066
8067 Implement creating tracepoints with -break-insert.
8068
8069 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8070 to mean that tracepoint should be created.
8071
51661e93
VP
80722010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8073
8074 * breakpoint.c (check_no_tracepoint_commands): Use
8075 current spelling of 'teval'.
8076
a7bdde9e
VP
80772010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8078
8079 Unify actions and commands
8080
8081 * defs.h (read_command_lines, read_command_lines_1): New
8082 parameters validator and closure.
8083 * tracepoint.h (struct action_line): Remove.
8084 * breakpoint.h (struct breakpoint): Remove the 'actions'
8085 field.
8086 * defs.h (enum command_control_type): New value
8087 while_stepping_control.
8088 (struct command_line): Add comments.
8089 * breakpoint.c (breakoint_is_tracepoint): New.
8090 (breakpoint_set_commands): For tracepoints,
8091 verify the commands are permissible.
8092 (check_tracepoint_commands): New.
8093 (commands_command): Require that each new line is validated using
8094 check_tracepoint_command, if we set commands for a tracepoint.
8095 (create_tracepoint_from_upload): Likewise.
8096 (print_one_breakpoint_location): Remove the code to print
8097 actions specifically.
8098 (tracepoint_save_command): Relay to print_command_lines.
8099 * cli/cli-script.c (process_next_line): New parameters validator
8100 and closure. Handle 'while-stepping'. Call validator if not null.
8101 (read_command_lines, read_command_lines1): Likewise.
8102 (recurse_read_control_structure): New parameters validator and
8103 closure. Handle while_stepping_control.
8104 (print_command_lines): Handle while-stepping.
8105 (get_command_line, define_command, document_command): Adjust.
8106 * remote.c (remote_download_tracepoint): Adjust.
8107 * tracepoint.c (make_cleanup_free_actions, read_actions)
8108 (free_actions, do_free_actions_cleanup): Remove.
8109 (trace_actions_command): Use read_command_lines.
8110 (validate_actionline): Use error in one place.
8111 (encode_actions_1): New, extracted from...
8112 (encode_actions): ...this. Also use cleanups for exception
8113 safety.
8114 (trace_dump_command): Adjust.
8115 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8116 it's tracepoint.
8117
64e3cf3d
MF
81182010-03-23 Mike Frysinger <vapier@gentoo.org>
8119
8120 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8121
52e9fde8
SS
81222010-03-22 Stan Shebs <stan@codesourcery.com>
8123
8124 * value.c (value_static_field): Be lazy about the field's value.
8125
508ccb1f
TT
81262010-03-22 Reid Kleckner <reid@kleckner.net>
8127
8128 PR gdb/11094
8129 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8130 bp_jit_event.
8131 (disable_breakpoints_in_shlibs): Likewise.
8132
acebe513
UW
81332010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8134
8135 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8136 GCC 4.1 debug info generation (GCC PR c++/28460).
8137 (determine_prefix): Likewise.
8138
957b8b5a
DJ
81392010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8140
8141 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8142 get_current_arch.
8143 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8144
3b11a015
SS
81452010-03-19 Stan Shebs <stan@codesourcery.com>
8146
8147 * ax-gdb.c (gen_fetch): Handle bool.
8148 (gen_usual_unary): Ditto.
8149 (gen_cast): Ditto.
8150 (gen_equal): New function.
8151 (gen_less): New function.
8152 (gen_expr_binop_rest): Call them, also return integer type from
8153 logical operations.
8154 (gen_expr): Ditto.
8155
20781792
TT
81562010-03-19 Tom Tromey <tromey@redhat.com>
8157
8158 * jv-lang.c (jv_dynamics_objfile_data_key)
8159 (jv_type_objfile_data_key): New globals.
8160 (class_symtab): Move earlier.
8161 (jv_per_objfile_free): New function.
8162 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8163 parameter.
8164 Remove ancient #if 1.
8165 (add_class_symbol): Remove redundant declaration.
8166 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8167 (java_link_class_type): Mark as static. Update.
8168 (jv_clear_object_type): New function.
8169 (set_java_object_type): Likewise.
8170 (get_java_object_type): Use set_java_object_type.
8171 (is_object_type): Likewise.
8172 (_initialize_java_language): Register new objfile keys.
8173 (get_java_class_symtab): Add 'gdbarch' parameter.
8174 (add_class_symtab_symbol): Update.
8175 (type_from_class): Update.
8176
cf3e25ca
SS
81772010-03-19 Stan Shebs <stan@codesourcery.com>
8178
8d95cc3b 8179 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 8180
f1ae44c9 81812010-03-18 Joel Brobecker <brobecker@adacore.com>
8182
8183 GDB 7.1 released.
8184
4daf5ac0
SS
81852010-03-18 Stan Shebs <stan@codesourcery.com>
8186 Pedro Alves <pedro@codesourcery.com>
8187
8188 * target.h (struct target_ops): New method
8189 to_set_circular_trace_buffer.
8190 (target_set_circular_trace_buffer): New macro.
8191 * target.c (update_current_target): Add
8192 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8193 default behavior.
8194 * remote.c (remote_set_circular_trace_buffer): New function.
8195 (init_remote_ops): Add it to vector.
8196 * tracepoint.h (struct trace_status): New field traceframes_created,
8197 change buffer_size and buffer_free to int.
8198 * tracepoint.c (circular_trace_buffer): New global.
8199 (start_tracing): Send values of disconnected tracing and circular
8200 trace buffer settings.
8201 (set_circular_trace_buffer): New function.
8202 (parse_trace_state): Handle total space and frames created.
8203 (trace_status_command): Display total space and total frames
8204 created.
8205 (trace_save): Write out new status values.
8206 (parse_trace_status): Set traceframe_count, traceframes_created,
8207 buffer_free and buffer_size to -1 by default.
8208 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8209 * NEWS: Mention the circular trace buffer option.
8210
40c549d6
TT
82112010-03-18 Tom Tromey <tromey@redhat.com>
8212
8213 * infcmd.c (finish_command_continuation): Wrap print_return_value
8214 in TRY_CATCH.
8215
e8d05480
JB
82162010-03-18 Joel Brobecker <brobecker@adacore.com>
8217
8218 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8219 DIE has a name before creating the associated partial symbol.
8220 (read_func_scope): Emit a complaint if the subprogram does not
8221 have a name or when we can't extract the subprogram PC bounds.
8222
441b986a
UW
82232010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8224
8225 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8226 instead of selected frame architecture.
8227
4247603b
PA
82282010-03-18 Pedro Alves <pedro@codesourcery.com>
8229
8230 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8231 a valid selected thread, and that it is not running.
8232 (advance_command): Ditto.
8233 (finish_command): Ditto.
8234
400c6af0
SS
82352010-03-17 Stan Shebs <stan@codesourcery.com>
8236
3a96536b
SS
8237 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8238
573cda03
SS
8239 * infcall.c: Include tracepoint.h.
8240 (call_function_by_hand): Disallow calls in tfind mode.
8241 * infcmd.c: Include tracepoint.h.
8242 (ensure_not_tfind_mode): New function.
8243 (continue_1): Call it.
8244 (step_1) Ditto.
8245 (jump_command): Ditto.
8246 (signal_command): Ditto.
8247 (advance_command): Ditto.
8248 (until_command): Ditto.
8249 (finish_command): Ditto.
8250 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8251
400c6af0
SS
8252 * ax-gdb.h (struct axs_value): New field optimized_out.
8253 (gen_trace_for_var): Add gdbarch argument.
8254 * ax-gdb.c (gen_trace_static_fields): New function.
8255 (gen_traced_pop): Call it, add gdbarch argument.
8256 (gen_trace_for_expr): Update call to it.
8257 (gen_trace_for_var): Ditto, and report optimized-out variables.
8258 (gen_struct_ref_recursive): Check for optimized-out value.
8259 (gen_struct_elt_for_reference): Ditto.
8260 (gen_static_field): Pass gdbarch instead of expression, assume
8261 optimization if field not found.
8262 (gen_var_ref): Set the optimized_out flag.
8263 (gen_expr): Error on optimized-out variable.
8264 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8265 expressions, skip optimized-out variables with computed locations.
8266 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8267 erroring out if location expression missing.
8268 (loclist_tracepoint_var_ref): Don't error out here.
8269
a3b2a86b
TT
82702010-03-17 Tom Tromey <tromey@redhat.com>
8271
8272 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8273 DWARF data is available.
8274
38963c97
DJ
82752010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8276
8277 * symfile.c (generic_load): Reset breakpoints after loading.
8278
ddabfc73
TT
82792010-03-17 Tom Tromey <tromey@redhat.com>
8280
8281 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8282
d8c09fb5
JK
82832010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8284
8285 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8286 create_breakpoint call, adjust the parameters.
8287
bbb0eef6
JK
82882010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8289 Chandru <chandru@in.ibm.com>
8290
8291 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8292 * valarith.c (value_subscripted_rvalue): Suppress error if
8293 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8294
46956e39
HZ
82952010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8296
8297 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8298
b8d088ac
JB
82992010-03-16 Joel Brobecker <brobecker@adacore.com>
8300
8301 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8302 before doing the associated thread switch.
8303
322be962
DJ
83042010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8305
8306 * MAINTAINERS: Update my email address.
8307
8cdf0e15
VP
83082010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8309
8310 Simplify MI breakpoint setting.
8311
8312 * breakpoint.c (break_command_really): Make nonstatic and
8313 rename to...
8314 (create_breakpoint): ...this. Rename prior function by this name
8315 to...
8316 (create_breakpoint_sal): ...this.
8317 (create_breakpoints): Rename to...
8318 (create_breakpoints_sal): ...this.
8319 (set_breakpoint): Remove.
8320 * breakpoint.h: Adjust to above changes.
8321 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8322
b6e7192f
SS
83232010-03-15 Stan Shebs <stan@codesourcery.com>
8324
8325 * ax-gdb.c: Include cp-support.h.
8326 (find_field): Remove.
8327 (gen_primitive_field): New function.
8328 (gen_struct_ref_recursive): New function.
8329 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8330 of find_field.
8331 (gen_static_field): New function.
8332 (gen_struct_elt_for_reference): New.
8333 (gen_namespace_elt): New.
8334 (gen_maybe_namespace_elt): New.
8335 (gen_aggregate_elt_ref): New.
8336 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8337
1054b214
TT
83382010-03-15 Tom Tromey <tromey@redhat.com>
8339
8340 * dwarf2read.c (die_needs_namespace): Also return 0 for
8341 DW_TAG_subprogram.
8342
13387711
SW
83432010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8344
8345 PR c++/7936:
8346 * cp-support.h: Added char *declaration element to using_direct
8347 data struct.
8348 (cp_add_using): Added char *declaration argument.
8349 (cp_add_using_directive): Ditto.
8350 (cp_lookup_symbol_imports): made extern.
8351 * cp-namespace.c: Updated with the above changes.
8352 * dwarf2read.c (read_import_statement): Ditto.
8353 (read_namespace): Ditto.
8354 (read_import_statement): Support import declarations.
8355 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8356 declarations.
8357 Added support for 'declaration_only' search.
8358 (cp_lookup_symbol_namespace): Attempt to search for the name as
8359 is before consideration of imports.
8360 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8361 search at every block level search.
8362 Now takes language argument.
8363 (lookup_symbol_aux): Updated.
8364
6e31430b
TT
83652010-03-15 Tom Tromey <tromey@redhat.com>
8366
8367 * c-exp.y (name_not_typename): Add 'operator' clause.
8368
4dea3bb7 83692010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
8370
8371 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8372 * configure: Regenerate.
8373
4d9743af
JK
83742010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8375
8376 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8377 and ".sdynbss". Update the comment.
8378
f75150fe
JZ
83792010-03-15 Jie Zhang <jie@codesourcery.com>
8380
8381 * MAINTAINERS: Update my email address.
8382
3c13bc11
DJ
83832010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8384
8385 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8386
43484f03
DJ
83872010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8388
8389 * charset.c [USE_WIN32API]: Include <windows.h>.
8390 (_initialize_charset): Correct type of w32_host_default_charset.
8391
5f25d77d
PA
83922010-03-14 Pedro Alves <pedro@codesourcery.com>
8393
8394 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8395
1c809c68
TT
83962010-03-12 Tom Tromey <tromey@redhat.com>
8397
8398 PR c++/9708:
8399 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8400 in a lexical block does not need a namespace.
8401 (new_symbol) <DW_TAG_variable>: Put extern variables on
8402 list_in_scope in all cases.
8403
948103cf
SS
84042010-03-12 Stan Shebs <stan@codesourcery.com>
8405
8406 * ax-gdb.c (gen_expr): Add shift expressions.
8407 (gen_expr_binop_rest): Ditto.
8408
00ae8fef
SW
84092010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8410
8411 * buildsym.c (finish_block): Reset using_directives pointer
8412 after block initialization.
8413
9cad29ac
L
84142010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8415
8416 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8417 * i386-tdep.c (i386_word_names): Likewise.
8418
2f4d8875
PA
84192010-03-12 Pedro Alves <pedro@codesourcery.com>
8420
8421 * target.c (memory_xfer_partial): Don't use the stack cache if
8422 inspecting trace frames.
8423 * tracepoint.c (finish_tfind_command): Invalidate the target
8424 dcache.
8425
ccf26247
JK
84262010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8427
8428 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8429 for the PIC displacement, print also the displacement value.
8430 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8431
477c84a7
KB
84322010-03-10 Kevin Buettner <kevinb@redhat.com>
8433
8434 * remote-mips.c (close_ports, mips_initialize_cleanups)
8435 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8436 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8437 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8438 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8439 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8440 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8441 comments describing each of these functions.
8442 (mips_enter_debug, mips_exit_debug, common_open)
8443 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8444 blank line after the comment describing the function.
8445
01c30d6e
JK
84462010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8447
8448 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8449 parameter displacementp. Update comment.
8450 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8451 element exists. Return if svr4_exec_displacement was not successful.
8452 Update comment.
8453
09919ac2
JK
84542010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8455 Daniel Jacobowitz <dan@codesourcery.com>
8456
8457 * solib-svr4.c (read_program_header): Support type == -1 to read
8458 all program headers.
8459 (read_program_headers_from_bfd): New function.
8460 (svr4_static_exec_displacement): Remove and move the comment ...
8461 (svr4_exec_displacement): ... here. Remove variable found. New
8462 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8463 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8464 targets using read_program_headers_from_bfd. Remove the call of
8465 svr4_static_exec_displacement.
8466
d146bf1e
TT
84672010-03-10 Tom Tromey <tromey@redhat.com>
8468
8469 * dwarf2read.c (struct pubnames_header): Remove.
8470 (_PUBNAMES_HEADER): Remove.
8471 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8472 (struct aranges_header): Remove.
8473 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8474 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8475 (PUBNAMES_SECTION): Remove.
8476 (ARANGES_SECTION): Remove.
8477 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8478 (dwarf2_build_psymtabs): Remove dead code.
8479 (dwarf2_build_psymtabs_easy): Remove.
8480
be391dca
TT
84812010-03-10 Tom Tromey <tromey@redhat.com>
8482
8483 * elfread.c (elf_symfile_read): Don't call
8484 dwarf2_build_frame_info.
8485 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8486 (struct dwarf2_per_objfile) <objfile>: New field.
8487 (dwarf2_has_info): Now idempotent. Set objfile field.
8488 (dwarf2_read_section): Check and set readin field. Call
8489 posix_madvise.
8490 (dwarf2_build_psymtabs): Don't read all sections.
8491 (read_type_comp_unit_head): Read types section.
8492 (create_debug_types_hash_table): Likewise.
8493 (init_cu_die_reader): Add asserts.
8494 (process_type_comp_unit): Add assert.
8495 (dwarf2_build_psymtabs_hard): Read info section.
8496 (load_partial_comp_unit): Add assert.
8497 (create_all_comp_units): Read info section.
8498 (load_full_comp_unit): Likewise.
8499 (dwarf2_ranges_read): Read ranges section.
8500 (dwarf2_record_block_ranges): Add assert.
8501 (dwarf2_read_abbrevs): Read abbrev section.
8502 (read_indirect_string): Read str section.
8503 (dwarf_decode_line_header): Read line section.
8504 (read_signatured_type_at_offset): Read types section.
8505 (dwarf_decode_macros): Read macinfo section.
8506 (dwarf2_symbol_mark_computed): Read loc section.
8507 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8508 dwarf2_build_frame_info.
8509 (dwarf2_build_frame_info): Unconditionally set
8510 dwarf2_frame_objfile_data on the objfile.
8511 * configure.ac: Check for posix_madvise.
8512 * config.in, configure: Rebuild.
8513
ccefe4c4
TT
85142010-03-10 Tom Tromey <tromey@redhat.com>
8515
e38df1d0
TT
8516 * xcoffread.c (xcoff_start_psymtab): Update.
8517 (xcoff_end_psymtab): Update.
8518 * psymtab.c (allocate_psymtab): Remove dead code.
8519 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8520 void*.
8521 * mdebugread.c (parse_partial_symbols): Update.
8522 (new_psymtab): Likewise.
8523 * dwarf2read.c (process_psymtab_comp_unit): Update.
8524 (psymtab_to_symtab_1): Update.
8525 * dbxread.c (start_psymtab): Update.
8526 (end_psymtab): Likewise.
8527
be391dca 85282010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8529
ccefe4c4
TT
8530 * xcoffread.c: Include psymtab.h.
8531 (xcoff_sym_fns): Update.
8532 * symtab.h (struct partial_symbol): Remove.
8533 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8534 (struct partial_symtab): Remove.
8535 (PSYMTAB_TO_SYMTAB): Remove.
8536 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8537 (find_pc_sect_psymtab): Remove.
8538 (find_pc_sect_symtab_via_partial): Declare.
8539 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8540 (find_main_psymtab): Remove.
8541 (find_main_filename): Declare.
8542 (fixup_psymbol_section): Remove.
8543 (fixup_section): Declare.
8544 * symtab.c: Include psymtab.h.
8545 (lookup_symtab): Use lookup_symtab method.
8546 (lookup_partial_symtab): Remove.
8547 (find_pc_sect_psymtab_closer): Remove.
8548 (find_pc_sect_psymtab): Remove.
8549 (find_pc_sect_symtab_via_partial): New function.
8550 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8551 (fixup_section): No longer static.
8552 (fixup_psymbol_section): Remove.
8553 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8554 (lookup_global_symbol_from_objfile): Likewise.
8555 (lookup_symbol_aux_psymtabs): Remove.
8556 (lookup_symbol_aux_quick): New function.
8557 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8558 (lookup_partial_symbol): Remove.
8559 (basic_lookup_transparent_type_quick): New function.
8560 (basic_lookup_transparent_type): Use it.
8561 (find_main_psymtab): Remove.
8562 (find_main_filename): New function.
8563 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8564 (find_line_symtab): Use expand_symtabs_with_filename method.
8565 (output_partial_symbol_filename): New function.
8566 (sources_info): Use map_partial_symbol_filenames.
8567 (struct search_symbols_data): New type.
8568 (search_symbols_file_matches): New function.
8569 (search_symbols_name_matches): Likewise.
8570 (search_symbols): Use expand_symtabs_matching method.
8571 (struct add_name_data): Rename from add_macro_name_data.
8572 (add_macro_name): Update.
8573 (add_partial_symbol_name): New function.
8574 (default_make_symbol_completion_list): Use
8575 map_partial_symbol_names.
8576 (struct add_partial_symbol_name): New type.
8577 (maybe_add_partial_symtab_filename): New function.
8578 (make_source_files_completion_list): Use
8579 map_partial_symbol_filenames.
8580 (expand_line_sal): Use expand_symtabs_with_filename method.
8581 * symmisc.c: Include psymtab.h.
8582 (print_objfile_statistics): Use print_stats method.
8583 (dump_objfile): Use dump method.
8584 (dump_psymtab, maintenance_print_psymbols)
8585 (maintenance_info_psymtabs, maintenance_check_symtabs)
8586 (extend_psymbol_list): Remove.
8587 * symfile.h (struct quick_symbol_functions): New struct.
8588 (struct sym_fns) <qf>: New field.
8589 (sort_pst_symbols): Remove.
8590 (increment_reading_symtab): Declare.
8591 * symfile.c: Include psymtab.h.
8592 (compare_psymbols, sort_pst_symbols): Remove.
8593 (psymtab_to_symtab): Remove.
8594 (increment_reading_symtab): New function.
8595 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8596 method.
8597 (set_initial_language): Use find_main_filename.
8598 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8599 (free_named_symtabs): Remove unused code.
8600 (start_psymtab_common, add_psymbol_to_bcache)
8601 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8602 Remove.
8603 * stack.c: Include psymtab.h, symfile.h.
8604 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8605 * source.h (psymtab_to_fullname): Don't declare.
8606 * source.c: Include psymtab.h.
8607 (select_source_symtab): Use find_last_source_symtab method.
8608 (forget_cached_source_info): Use forget_cached_source_info
8609 method.
8610 (find_and_open_source): No longer static.
8611 (psymtab_to_fullname): Remove.
8612 * somread.c: Include psymtab.h.
8613 (som_sym_fns): Update.
8614 * psympriv.h: New file.
8615 * psymtab.h: New file.
8616 * psymtab.c: New file.
8617 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8618 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8619 * objfiles.c: Include psymtab.h.
8620 (objfile_relocate1): Use relocate method.
8621 (objfile_has_partial_symbols): Use has_symbols method.
8622 * mipsread.c: Include psymtab.h.
8623 (ecoff_sym_fns): Update.
8624 * mi/mi-cmd-file.c: Include psymtab.h.
8625 (print_partial_file_name): New function.
8626 (mi_cmd_file_list_exec_source_files): Use
8627 map_partial_symbol_filenames.
8628 * mdebugread.c: Include psympriv.h.
8629 * machoread.c: Include psympriv.h.
8630 (macho_sym_fns): Update.
8631 * m2-exp.y (yylex): Use lookup_symtab.
8632 * elfread.c: Include psympriv.h.
8633 (elf_sym_fns): Update.
8634 * dwarf2read.c: Include psympriv.h.
8635 * dbxread.c: Include psympriv.h.
8636 (aout_sym_fns): Update.
8637 * cp-support.c: Include psymtab.h.
8638 (read_in_psymtabs): Remove.
8639 (make_symbol_overload_list_qualified): Use
8640 expand_symtabs_for_function method.
8641 * coffread.c: Include psympriv.h.
8642 (coff_sym_fns): Update.
8643 * blockframe.c: Include psymtab.h.
8644 (find_pc_partial_function): Use find_pc_sect_symtab method.
8645 * ada-lang.h (ada_update_initial_language): Update.
8646 * ada-lang.c: Include psymtab.h.
8647 (ada_update_initial_language): Remove 'main_pst' argument.
8648 (ada_lookup_partial_symbol): Remove.
8649 (struct ada_psym_data): New type.
8650 (ada_add_psyms): New function.
8651 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8652 (struct add_partial_datum): New type.
8653 (ada_add_partial_symbol_completions): New function.
8654 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8655 (ada_exception_support_info_sniffer): Update.
8656 * Makefile.in (SFILES): Add psymtab.c.
8657 (COMMON_OBS): Add psymtab.o.
8658 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8659
7d8500b7
PM
86602010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8661
8662 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8663
c0cc3a76
SW
86642010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8665
8666 PR C++/11236:
8667 * cp-namespace.c (cp_add_using): Deleted.
8668 (cp_add_using_directive): Use obstack allocations.
8669 Merged the function cp_add_using into this one.
8670 Added 'struct obstack *' argument.
8671 (cp_scan_for_anonymous_namespaces): Updated.
8672 * cp-support.h: Updated.
8673 * dwarf2read.c (read_import_statement): Updated.
8674 (read_namespace): Updated.
8675
452fa064
CF
86762010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8677
8678 * windows-nat.c (cygwin_conv_path): Remove old macro.
8679
60e1c644
PA
86802010-03-10 Pedro Alves <pedro@codesourcery.com>
8681
8682 * breakpoint.c (condition_command): Handle watchpoint conditions.
8683 (is_hardware_watchpoint): Add comment.
8684 (is_watchpoint): New.
8685 (update_watchpoint): Don't reparse the watchpoint's condition
8686 unless necessary.
8687 (WP_IGNORE): New.
8688 (watchpoint_check): Use it.
8689 (bpstat_check_watchpoint): Handle it.
8690 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8691 conditions in a frame where it makes sense.
8692 (watch_command_1): Store the innermost block of the condition
8693 expression.
8694 (delete_breakpoint): Delete the watchpoint condition expression.
8695 * breakpoint.h (struct bp_location) <cond>: Update comment.
8696 (struct breakpoint): New field `cond_exp_valid_block'.
8697
af6b7be1
JB
86982010-03-09 Joel Brobecker <brobecker@adacore.com>
8699
8700 Adjust handling of Ada DIEs after dwarf2_physname patch.
8701 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8702
60c5c021
CF
87032010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8704 Pierre Muller <muller@ics.u-strasbg.fr>
8705
8706 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8707 from/to posix/win32.
8708 (windows_make_so): Use non-Cygwin 1.7 specific function.
8709 (windows_create_inferior): Make sure that cygallargs points to
8710 original args in non Cygwin 1.7. case.
8711
60a1502a
MS
87122010-03-09 Michael Snyder <msnyder@vmware.com>
8713
8714 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8715 after target_read_memory to get host byte order.
8716 (i386_process_record): Ditto.
8717
94af9270
KS
87182010-03-09 Keith Seitz <keiths@redhat.com>
8719
8720 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8721 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8722 print out const or volatile qualifiers, too.
8723 (c_type_print_args): Add parameters show_artificial and language.
8724 Skip artificial parameters when requested.
8725 Use the appropriate language printer.
8726 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8727 parameters and pass language_c.
8728 * dwarf2read.c (die_list): New file global.
8729 (struct partial_die_info): Update comments for name field.
8730 (pdi_needs_namespace): Renamed to ...
8731 (die_needs_namespace): ... this. Rewrite.
8732 (dwarf2_linkage_name): Remove.
8733 (add_partial_symbol): Do not predicate the call to
8734 partial_die_full_name based on pdi_needs_namespace.
8735 Remove call to cp_check_possible_namespace_symbols and associated
8736 outdated comments.
8737 (guess_structure_name): Do not inspect child subprogram DIEs.
8738 (dwarf2_fullname): Update comments.
8739 Use die_needs_namespace to assist in computing the name.
8740 (read_func_scope): Use dwarf2_name to get the DIE's name.
8741 Use dwarf2_physname to get the "linkage name" of the DIE.
8742 (dwarf2_add_member_field): Use dwarf2_physname instead of
8743 dwarf2_linkage_name.
8744 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8745 (determine_class): Remove.
8746 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8747 except Ada.
8748 (new_symbol): Unconditionally call dwarf2_name.
8749 Compute the "linkage name" using dwarf2_physname.
8750 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8751 When determining to scan for anonymous C++ namespaces, ignore
8752 the linkage name.
8753 (dwarf2_physname): New function.
8754 (dwarf2_full_name): Move content to new function and call
8755 that.
8756 (dwarf2_compute_name): "New" function.
8757 (_initialize_dwarf2_read): Initialize die_list.
8758 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8759 physname.
8760 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8761 without a demangled name.
8762 Print out type information for non-virtual methods.
c8d5aac9 8763 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8764 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8765 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8766 (decode_compound): Stop consuming at an open parenthesis.
8767 Keep template parameters.
8768 Keep any overload information.
8769 Keep keywords like "const".
8770 Remove paren_pointer.
8771 Move is_quoted check from set_flags to here.
8772 Remove #if 0 code from 2000. Ten years is long enough.
8773 (find_method): Before comparing symbol names, canonicalize the string
8774 from the user.
8775 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8776 (find_method_overload_end): New function.
8777 (set_flags): Remove.
c8d5aac9
L
8778 (decode_compound): Assume that parentheses are matched.
8779 It's a lot easier.
94af9270
KS
8780 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8781 to cplus_demangle.
8782 * linespec.c (decode_line_1): Keep important keywords like
8783 "const" and "volatile".
8784 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8785 * typeprint.h (c_type_print_args): Add declaration.
8786 * ui-file.c (do_ui_file_obsavestring): New function.
8787 (ui_file_obsavestring): New function.
8788 * ui-file.h (ui_file_obsavestring): Add declaration.
8789 * valops.c (find_overload_match): Resolve the object to
8790 a non-pointer type.
8791 If the object is a data member, search the object for the member
8792 and return with staticp set.
8793 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8794 Do not attempt to extract a function name from non-function types.
8795 If the extracted function name and the original name are the same,
8796 we don't have a C++ method.
8797
8d95cc3b
PA
8798 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8799 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8800
8801 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8802 and arguments from symbol lookups.
8803 * ax-gdb.c (gen_expr): Likewise.
8804 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8805 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8806 lookup_possible_namespace_symbol): Likewise.
8807 * cp-support.c (read_in_psymtabs): Likewise.
8808 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8809 * language.h (la_lookup_symbol_nonlocal): Likewise.
8810 * scm-valprint.c (scm_inferior_print): Likewise.
8811 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8812 * solib-svr.c (elf_lookup_lib): Likewise.
8813 * solib.c (show_auto_solib_add): Likewise.
8814 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8815 * symmisc.c (maintenance_check_symtabs): Likewise.
8816 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8817 lookup_symbol_aux_local, lookup_symbol_aux_block,
8818 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8819 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8820 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8821 basic_lookup_transparent_type, find_main_psymtab,
8822 lookup_block_symbol): Likewise.
8823 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8824 lookup_symbol_global, lookup_symbol_aux_block,
8825 lookup_symbol_partial_symbol, lookup_block_symbol,
8826 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8827
9cb74f47
PM
88282010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8829
8830 * python/python-internal.h: Include symtab.h.
8831
af6b7be1
JB
88322010-03-09 Joel Brobecker <brobecker@adacore.com>
8833 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8834
8835 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8836 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8837 indentation.
8838
bad56014
TT
88392010-03-08 Tom Tromey <tromey@redhat.com>
8840
8841 * breakpoint.c (breakpoint_1): Add "QUIT".
8842
08105857
PA
88432010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8844 Pedro Alves <pedro@codesourcery.com>
8845
8846 * solib.c (solib_find): Replace extension if
8847 solib_symbols_extension is set in the target gdbarch.
8848 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8849 solib_symbols_extension to "sym".
8850 * gdbarch.sh (solib_symbols_extension): New variable.
8851 (pstring): New function.
8852 * gdbarch.h, gdbarch.c: Regenerate.
8853
7c953934
TT
88542010-03-08 Tom Tromey <tromey@redhat.com>
8855
8856 PR cli/9591:
8857 * NEWS: Update.
8858 * utils.c: Include main.h.
8859 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8860 (defaulted_query): Use default answer if `batch_flag'.
8861 * main.h (batch_flag): Declare.
8862 * main.c (batch_flag): New global.
8863 (captured_main): Remove 'batch'. Update.
8864
bbd2783e
KB
88652010-03-08 Kevin Buettner <kevinb@redhat.com>
8866
8867 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8868 and Kevin Buettner:
8869
8870 * remote-mips.c (rockhopper_ops): New target_ops struct.
8871 (MON_ROCKHOPPER): New mips_monitor_type.
8872 (read_hex_value): New function.
8873 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8874 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8875 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8876 (rockhopper_open): New function.
8877 (mips_wait): Read the PC, FP and SP fields as strings. Use
8878 read_hex_value to parse them and mips_set_register to commit them.
8879 (mips_set_register): New function.
8880 (mips_fetch_registers): Do not cast register value to "unsigned"
8881 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8882 (mips_store_registers): Use a 'T' packet to set registers when
8883 using MON_ROCKHOPPER.
8884 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8885 and expect the total to be printed before the entry address.
8886 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8887
566f3d17
KB
88882010-03-08 Kevin Buettner <kevinb@redhat.com>
8889
8890 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8891 Change return value to int. Store value fetched in location
8892 addressed by `val'. Use function's return value as success
8893 or failure indicator. Adjust all callers.
8894
9c8ee2ab 88952010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
8896
8897 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8898
7155de5a
HZ
88992010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8900 Hui Zhu <teawater@gmail.com>
8901
8902 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8903 tmp_to_stopped_data_address.
8904 (record_open): Reset tmp_to_stopped_by_watchpoint and
8905 tmp_to_stopped_data_address.
8906 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8907 to_stopped_data_address.
8908
580879fc
HZ
89092010-03-08 Hui Zhu <teawater@gmail.com>
8910
8911 * i386-tdep.c (i386_process_record): Initialize regnum.
8912
b0fcb67f
JK
89132010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8914
8915 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8916 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8917
08597104
JB
89182010-03-08 Joel Brobecker <brobecker@adacore.com>
8919
8920 Memory error when reading wrong core file.
8921 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8922 errors while reading the inferior memory, and return zero if
8923 an exception was raised.
8924
425b824a
MS
89252010-03-07 Michael Snyder <msnyder@vmware.com>
8926
ec6dbf37
MS
8927 * record.c (record_restore): Rename tmpu8 to rectype.
8928
648d0c8b
MS
8929 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8930 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8931
8932 (i386_record_push): Rename local tmpulongest to addr.
8933
8934 (i386_process_record): Rename local tmpulongest to addr.
8935
8936 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8937 addr64.
955db0c0
MS
8938
8939 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 8940
10760264
JB
89412010-03-07 Joel Brobecker <brobecker@adacore.com>
8942
8943 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 8944 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 8945
b3c613f2
CF
89462010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8947
8948 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8949 block. Define helper macros to reduce ifdefs in code.
8950 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8951 size. Call unadorned GetModuleFileNameEx rather than
8952 GetModuleFileNameEx*.
8953 (windows_make_so): Use __PMAX to denote maximum buffer size and
8954 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8955 appropriate.
8956 (get_image_name): Use __PMAX to denote maximum buffer size.
8957 (handle_load_dll): Likewise.
8958 (windows_pid_to_exec_file): Likewise.
8959 (windows_create_inferior): Add many accommodations for older Cygwin and
8960 non-Cygwin.
8961 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8962 __USEWIDE conditional.
8963 (bad_GetModuleFileNameExA): Likewise.
8964 (_initialize_loadable): Just use real function names without the dyn_
8965 part since they are defined earlier.
8966
f870a310
TT
89672010-03-05 Corinna Vinschen <vinschen@redhat.com>
8968 Tom Tromey <tromey@redhat.com>
8969
8970 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8971 (parse_escape): Likewise.
8972 * python/py-utils.c (unicode_to_target_string): Update.
8973 (unicode_to_target_python_string): Update.
8974 (target_string_to_unicode): Update.
8975 * printcmd.c (printf_command): Update.
8976 * p-exp.y (yylex): Update.
8977 * objc-exp.y (yylex): Update.
8978 * mi/mi-parse.c: Include charset.h.
8979 (mi_parse_escape): New function.
8980 (mi_parse_argv): Use it.
8981 * jv-exp.y (yylex): Update.
8982 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8983 function.
8984 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8985 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8986 * gdbarch.c: Rebuild.
8987 * gdbarch.h: Rebuild.
8988 * defs.h (parse_escape): Update.
8989 * cli/cli-setshow.c: Include arch-utils.h.
8990 (do_setshow_command): Update.
8991 * cli/cli-cmds.c (echo_command): Update.
8992 * charset.h (target_charset, target_wide_charset): Update.
8993 * charset.c: Include arch-utils.h.
8994 (target_charset_name): Default to "auto".
8995 (target_wide_charset_name): Likewise.
8996 (show_target_charset_name): Handle "auto".
8997 (show_target_wide_charset_name): Likewise.
8998 (be_le_arch): New global.
8999 (set_be_le_names): Add 'gdbarch' argument.
9000 (validate): Likewise. Don't call set_be_le_names.
9001 (set_charset_sfunc, set_host_charset_sfunc)
9002 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9003 Update.
9004 (target_charset): Add 'gdbarch' argument.
9005 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9006 (auto_target_charset_name): New global.
9007 (default_auto_charset, default_auto_wide_charset): New functions.
9008 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9009 for target charsets. Copy result of nl_langinfo. Use GetACP if
9010 USE_WIN32API.
9011 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9012 remove 'byte_order' argument. Update.
9013 (classify_type): Likewise.
9014 (c_emit_char): Update.
9015 (c_printchar): Update.
9016 (c_printstr): Update.
9017 (c_get_string): Update.
9018 (evaluate_subexp_c): Update.
9019 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9020 Declare.
9021 * python/python.c (gdbpy_target_charset): New function.
9022 (gdbpy_target_wide_charset): Likewise.
9023 (GdbMethods): Update.
9024 * NEWS: Update.
9025
4e7386b0
UW
90262010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9027
9028 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9029 off high address bits.
9030
aab48ede
UW
90312010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9032
9033 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9034 address as UnsignedLongLong, not LongLong.
9035
8eeafb51 90362010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 9037 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
9038
9039 * remote-mips.c (gdbthread.h): Include.
9040 (remote_mips_ptid): Declare.
9041 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9042 (common_open): Set inferior_ptid, add it as an inferior, and
9043 as a thread too. Delete FIXME comment regarding start_remote().
9044 (mips_close): Invoke generic_mourn_inferior().
9045 (mips_kill): Make sure that target_mourn_inferior is invoked.
9046 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9047 it's now invoked from mips_close().
9048 (mips_load): Don't null out inferior_ptid. Don't call
9049 clear_symtab_users().
9050 (mips_thread_alive, mips_pid_to_str): New functions.
9051 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9052 to_thread_alive and to_pid_to_str operations.
9053
ae411497
TT
90542010-03-04 Tom Tromey <tromey@redhat.com>
9055
9056 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9057 in DWARF 3 and later.
9058 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9059
0e0b460e
KS
90602010-03-04 Keith Seitz <keiths@redhat.com>
9061
9062 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9063 If the filename portion of the linespec was quoted, recheck the
9064 remainder for additional quoting.
9065 (locate_first_half): Skip over completer chars, too.
9066
1b93ff13
TT
90672010-03-04 Tom Tromey <tromey@redhat.com>
9068
9069 * printcmd.c (printf_command): Pass dummy argument to
9070 printf_filtered.
9071
fc36e839
DE
90722010-03-04 Doug Evans <dje@google.com>
9073
111f853c
DE
9074 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9075 unwound_fp.
9076
fc36e839
DE
9077 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9078
c7437ca6
PA
90792010-03-04 Pedro Alves <pedro@codesourcery.com>
9080
9081 * breakpoint.c (update_watchpoint): Create a sentinel location if
9082 the software watchpoint isn't watching any memory.
9083 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9084
58dadb1b
PA
90852010-03-04 Pedro Alves <pedro@codesourcery.com>
9086
9087 * utils.c (fputs_maybe_filtered): Check if there's already a top
9088 level interpreter before dereferencing it. If there isn't one,
9089 don't paginate either.
9090
50e98be4
DJ
90912010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9092
9093 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9094 the state right when single stepping.
9095 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9096 Get the next PC along with the instruction state.
9097 (thumb_get_next_pc): Remove.
9098 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9099
2e3ceee9
HZ
91002010-03-04 Hui Zhu <teawater@gmail.com>
9101
9102 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9103
390a8aca
PA
91042010-03-03 Pedro Alves <pedro@codesourcery.com>
9105
9106 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9107 top level interpreter is MI.
9108
9355b391
SS
91092010-03-03 Stan Shebs <stan@codesourcery.com>
9110
9111 * remote.c (remote_download_tracepoint): Iterate over locations.
9112 * tracepoint.c (validate_actionline): Ditto.
9113 (encode_actions): Add location argument.
9114 (trace_dump_command): Check all locations to see if stepping
9115 frame.
390a8aca 9116
8685c86f
L
91172010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9118 Eli Zaretskii <eliz@gnu.org>
9119
9120 * NEWS: Add X86 general purpose registers section.
9121
e8f781e2
TT
91222010-03-03 Tom Tromey <tromey@redhat.com>
9123
9124 PR mi/11098:
9125 * varobj.c (install_new_value): Handle case where new print_value
9126 is NULL.
9127
a0e0ef55
TT
91282010-03-03 Dainis Jonitis <jonitis@gmail.com>
9129
9130 PR gdb/11345:
9131 * printcmd.c (printf_command): Print end of format string using
9132 printf_filtered.
9133
a58d7472
TT
91342010-03-02 Tom Tromey <tromey@redhat.com>
9135
9136 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9137 * defs.h (read_command_lines_1): Add missing 'void'.
9138 * cli/cli-script.c (recurse_read_control_structure): Add missing
9139 'void'.
9140 (read_next_line): Likewise.
9141 (read_command_lines_1): Likewise.
9142
ce50d78b
UW
91432010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9144
9145 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9146 store backchain as part of prologue.
9147
7e9af34a
DJ
91482010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9149
9150 * progspace.c (update_address_spaces): Update inferior address spaces
9151 also.
9152
01637564
DE
91532010-03-02 Doug Evans <dje@google.com>
9154
9155 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9156 lowpc,highpc args to addrmap_set_empty.
9157
1ba53b71
L
91582010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9159
9160 * amd64-tdep.c (amd64_byte_names): New.
9161 (amd64_word_names): Likewise.
9162 (amd64_dword_names): Likewise.
9163 (amd64_pseudo_register_name): Likewise.
9164 (amd64_pseudo_register_read): Likewise.
9165 (amd64_pseudo_register_write): Likewise.
9166 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9167 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9168 set_gdbarch_pseudo_register_write and
9169 set_tdesc_pseudo_register_name. Don't call
9170 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9171
9172 * i386-tdep.c (i386_num_mmx_regs): Removed.
9173 (i386_num_pseudo_regs): Likewise.
9174 (i386_byte_names): New.
9175 (i386_word_names): Likewise.
9176 (i386_byte_regnum_p): Likewise.
9177 (i386_word_regnum_p): Likewise.
9178 (i386_mmx_regnum_p): Updated.
9179 (i386_pseudo_register_name): Make it global. Handle byte and
9180 word pseudo-registers.
9181 (i386_pseudo_register_read): Likewise.
9182 (i386_pseudo_register_write): Likewise.
9183 (i386_pseudo_register_type): Handle byte, word and dword
9184 pseudo-registers
9185 (i386_register_reggroup_p): Don't include pseudo
9186 registers, except for MXX, in any register groups. Don't
9187 include pseudo byte, word, dword registers in general_reggroup.
9188 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9189 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9190 pseudo-registers after word pseudo-registers. Call
9191 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9192
9193 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9194 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9195 eax_regnum.
9196 (i386_byte_regnum_p): New.
9197 (i386_word_regnum_p): Likewise.
9198 (i386_dword_regnum_p): Likewise.
9199 (i386_pseudo_register_name): Likewise.
9200 (i386_pseudo_register_read): Likewise.
9201 (i386_pseudo_register_write): Likewise.
9202
a6f5ef51
L
92032010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9204
9205 * target-descriptions.c (tdesc_type): Remove
9206 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9207 (tdesc_predefined_types): Likewise.
9208 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9209 if flag name is empty.
9210 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9211
9212 * features/i386/32bit-core.xml: Define i386_eflags.
9213 * features/i386/64bit-core.xml: Likewise.
9214
9215 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9216 * features/i386/64bit-sse.xml: Likewise.
9217
9218 * features/i386/amd64-linux.c: Regenerated.
9219 * features/i386/amd64.c: Likewise.
9220 * features/i386/i386-linux.c: Likewise.
9221 * features/i386/i386.c: Likewise.
9222
f5dff777
DJ
92232010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9224
9225 * gdbtypes.c (append_composite_type_field_raw): New.
9226 (append_composite_type_field_aligned): Use the new function.
9227 * gdbtypes.h (append_composite_type_field_raw): Declare.
9228 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9229 (struct tdesc_type_flag): New type.
9230 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9231 kind. Add size to u.u. Add u.f for flags.
9232 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9233 (tdesc_free_type): Likewise.
9234 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9235 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9236 (tdesc_add_bitfield, tdesc_add_flag): New.
9237 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9238 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9239 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9240 current_type. Add current_type_size and current_type_is_flags.
9241 (tdesc_start_union): Clear the new fields.
9242 (tdesc_start_struct, tdesc_start_flags): New.
9243 (tdesc_start_field): Handle struct fields, including bitfields.
9244 (field_attributes): Make type optional. Add start and end.
9245 (union_children): Rename to struct_union_children.
9246 (union_attributes): Rename to struct_union_attributes. Add optional
9247 size.
9248 (flags_attributes): New.
9249 (feature_children): Add struct and flags.
9250 * features/gdb-target.dtd: Add flags and struct to features.
9251 Make field type optional. Add field start and end.
9252
90884b2b
L
92532010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9254
9255 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9256 (amd64_linux_read_description): Likewise.
9257 (_initialize_amd64_linux_nat): Set to_read_description to
9258 amd64_linux_read_description.
9259
9260 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9261 (amd64_linux_register_name): Removed.
9262 (amd64_linux_register_type): Likewise.
9263 (amd64_linux_core_read_description): New.
9264 (amd64_linux_init_abi): Set target description to
9265 tdesc_amd64_linux if needed. Support orig_rax in target
9266 description. Don't call set_gdbarch_register_name nor
9267 set_gdbarch_register_type. Call
9268 set_gdbarch_core_read_description.
9269 (_initialize_amd64_linux_tdep): Call
9270 initialize_tdesc_amd64_linux.
9271
9272 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9273
9274 * amd64-tdep.c: Include "features/i386/amd64.c".
9275 (amd64_register_names): Removed.
9276 (amd64_register_name): Likewise.
9277 (amd64_register_type): Likewise.
9278 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 9279 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
9280 set_gdbarch_register_name nor set_gdbarch_register_type.
9281 (_initialize_amd64_tdep): New.
9282
9283 * i386-linux-nat.c (i386_linux_read_description): New.
9284 (_initialize_i386_linux_nat): Set to_read_description to
9285 i386_linux_read_description.
9286
9287 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9288 (i386_linux_register_name): Removed.
9289 (i386_linux_core_read_description): New.
9290 (i386_linux_read_description): Likewise.
9291 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9292 Set target description to tdesc_i386_linux if needed. Support
9293 orig_eax. Set register_reggroup_p. Call
9294 set_gdbarch_core_read_description.
9295 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9296
9297 * i386-linux-tdep.h (tdesc_i386_linux): New.
9298
9299 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9300 with I387_NUM_REGS.
9301
9302 * i386-tdep.c: Include "features/i386/i386.c".
9303 (i386_register_names): Make it const.
9304 (i386_mmx_names): Likewise.
9305 (i386_num_register_names): Removed.
9306 (i386_register_name): Likewise.
9307 (i386_eflags_type): Likewise.
9308 (i386_mxcsr_type): Likewise.
9309 (i386_sse_type): Likewise.
9310 (i386_register_type): Likewise.
9311 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9312 (i386_pseudo_register_name): New.
9313 (i386_pseudo_register_type): Likewise.
9314 (i386_mmx_type): Make it static.
9315 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9316 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9317 call set_gdbarch_register_name nor set_gdbarch_register_type.
9318 Set register_reggroup_p. Set target description to tdesc_i386
9319 if needed. Call set_tdesc_pseudo_register_type,
9320 set_tdesc_pseudo_register_name and tdesc_use_registers.
9321 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9322 initialize_tdesc_x86_64.
9323
9324 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9325 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9326 register_names, tdesc and register_reggroup_p.
9327 (I386_NUM_FREGS): Removed.
9328 (i386_eflags_type): Likewise.
9329 (i386_mxcsr_type): Likewise.
9330 (i386_mmx_type): Likewise.
9331 (i386_sse_type): Likewise.
9332 (i386_register_name): Likewise.
9333 (i386_regnum): Add I386_MXCSR_REGNUM.
9334 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9335
9336 * i387-tdep.h (I387_NUM_REGS): New.
9337
9338 * regformats/i386/i386-linux.dat: Generated.
9339 * regformats/i386/i386.dat: Likewise.
9340 * regformats/i386/amd64-linux.dat: Likewise.
9341 * regformats/i386/amd64.dat: Likewise.
9342
9343 * regformats/reg-i386-linux.dat: Removed.
9344 * regformats/reg-i386.dat: Likewise.
9345 * regformats/reg-x86-64-linux.dat: Likewise.
9346 * regformats/reg-x86-64.dat: Likewise.
9347
d0d0ab16
CV
93482010-03-01 Corinna Vinschen <vinschen@redhat.com>
9349
9350 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9351 cygwin_conv_path API rather than the deprecated
9352 cygwin_conv_to_full_posix_path.
9353 * windows-nat.c:
9354 (GetModuleFileNameExA): Undefine for Cygwin.
9355 (GetModuleFileNameExW): Define for Cygwin.
9356 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9357 Call GetModuleFileNameExW and convert path to POSIX using
9358 cygwin_conv_path.
9359 (windows_make_so): Always define p. Drop unused variable m.
9360 Don't use Win32 functions to check file existance, rather use
9361 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9362 Use canonicalize_file_name to get full path.
9363 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9364 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9365 use correct target buffer size in call to WideCharToMultiByte.
9366 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9367 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9368 (windows_create_inferior): Convert all paths and arguments to wchar_t
9369 and use CreateProcessW on Cygwin.
9370 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9371 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9372 (bad_GetModuleFileNameExW): Define for Cygwin.
9373 (_initialize_loadable): Load GetModuleFileNameExW into
9374 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9375
dc00d89f
PM
93762010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9377
9378 PR python/11036
9379 * python/py-frame.c (frapy_read_var): Add block argument and logic
9380 to cope with user provided blocks.
9381
0e095b7e
JK
93822010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9383
9384 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9385 New comment.
9386
2f9e05b4
CV
93872010-02-28 Corinna Vinschen <vinschen@redhat.com>
9388
9389 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9390 (COMMON_OBS): ... to here since it's used unconditionally.
9391 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9392 (SFILES): To here.
9393
eb195664
DD
93942010-02-26 David Daney <ddaney@caviumnetworks.com>
9395
9396 * mips-linux-tdep.c: Update struct sigframe comments.
9397 (SIGFRAME_CODE_OFFSET): Delete macro.
9398 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9399 this_frame's sp.
9400 (mips_linux_n32n64_sigframe_init): Same.
9401
97b0f3e2
KB
94022010-02-26 Kevin Buettner <kevinb@redhat.com>
9403
9404 * remote-mips.c (mips_load): Don't use pseudo-register when
9405 invalidating regcache.
9406
4069ebbe
DJ
94072010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9408
9409 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9410
05071a4d
PA
94112010-02-26 Pedro Alves <pedro@codesourcery.com>
9412
9413 * NEWS: Add "New targets" section, and mention ARM Symbian
9414 support.
9415
6063c216
UW
94162010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9417
9418 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9419 add ADDR_SIZE member.
9420 (allocate_piece_closure): Update.
9421 (copy_pieced_value_closure): Likewise.
9422 (dwarf2_evaluate_loc_desc): Likewise.
9423 (read_pieced_value): Use DWARF address size instead of
9424 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9425
5107b149 94262010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 9427 Tom Tromey <tromey@redhat.com>
5107b149
PM
9428
9429 * python/py-type.c (typy_lookup_typename): Add in block argument.
9430 If provided restrict lookup to specified blocks.
9431 (gdbpy_lookup_type): Likewise.
9432 (typy_lookup_type): Likewise.
9433
78664fa3 94342010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 9435
78664fa3
PA
9436 Symbian config
9437
9438 gdb/
9439 * arm-symbian-tdep.c: New.
9440 * configure.tgt (arm*-*-symbianelf*): New target.
9441 (*-*-symbianelf*): New OS.
9442 * osabi.c (gdb_osabi_names): Add Symbian.
9443 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9444 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9445 (ALLDEPFILES): Add arm-symbian-tdep.c.
9446
eb73e134
DJ
94472010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9448
9449 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9450
46ef47e5
PA
94512010-02-24 Pedro Alves <pedro@codesourcery.com>
9452
9453 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9454
f3e9a817 94552010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9456 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9457 Thiago Jung Bauermann <bauerman@br.ibm.com>
9458
9459 * python/python.c (_initialize_python): Call
9460 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9461 gdbpy_initialize_blocks.
9462 * python/python-internal.h: Declare struct symbol, block and
9463 symtab_and_line. Declare block_object_type and
9464 symbol_object_type
9465 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9466 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9467 (symbol_to_symbol_object, block_to_block_object)
9468 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9469 (gdbpy_initialize_blocks ): Declare.
9470 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9471 (frapy_select): Add methods.
9472 (frapy_read_var): Add symbol branch.
9473 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9474 py-block.
9475 (SUBDIR_PYTHON_SRCS): Likewise.
9476 (py-symbol.o): New rule.
9477 (py-symtab.o): Likewise.
9478 (py-block.o): Likewise.
9479 * python/py-symbol.c: New file.
9480 * python/py-symtab.c: Likewise.
9481 * python/py-block.c: Likewise.
9482
24291992
PA
94832010-02-24 Pedro Alves <pedro@codesourcery.com>
9484
9485 PR gdb/11321
9486
9487 * inferior.h (prepare_for_detach): Declare.
9488 (struct inferior) <detaching>: New field.
9489 * infrun.c (prepare_for_detach): New.
9490 (handle_inferior_event) <random signal>: Don't stop if detaching.
9491 * target.c (target_detach): Call prepare_for_detach.
9492
fc1cf338
PA
94932010-02-24 Pedro Alves <pedro@codesourcery.com>
9494
9495 Per-process displaced stepping queue.
9496
9497 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9498 (displaced_step_gdbarch, displaced_step_closure,
9499 (displaced_step_original, displaced_step_copy): Move globals to
9500 this...
9501 (struct displaced_step_inferior_state): ... new structure.
9502 (displaced_step_inferior_states): New global.
9503 (get_displaced_stepping_state, add_displaced_stepping_state)
9504 (remove_displaced_stepping_state, infrun_inferior_exit): New
9505 functions.
9506 (displaced_step_clear): Add displaced_step_inferior_state
9507 parameter, and adjust to handle it.
9508 (displaced_step_clear_cleanup): Parameter is now a
9509 displaced_step_inferior_state. Adjust.
9510 (displaced_step_prepare): Adjust.
9511 (displaced_step_fixup, displaced_step_fixup)
9512 (infrun_thread_ptid_changed, resume): Adjust.
9513 (init_wait_for_inferior): Don't call displaced_step_clear.
9514 (infrun_thread_stop_requested): Rewrite.
9515 (_initialize_infrun): Install infrun_inferior_exit as
9516 inferior_exit observer.
9517
0723dbf5
PA
95182010-02-24 Pedro Alves <pedro@codesourcery.com>
9519
9520 * inferior.h (ptid_match): Declare.
9521 * infrun.c (ptid_match): New.
9522 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9523 (handle_notification): Add debug output.
9524 * linux-nat.c (ptid_match): Delete.
9525
09de9781
DM
95262010-02-24 David S. Miller <davem@davemloft.net>
9527
9528 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9529 * syscalls/sparc-linux.xml: New.
9530 * syscalls/sparc64-linux.xml: New.
9531 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9532 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9533 (sparc32_linux_get_syscall_number): New function.
9534 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9535 syscall number fetcher.
9536 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9537 (sparc64_linux_get_syscall_number): New function.
9538 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9539 syscall number fetcher.
9540
a79b8f6e
VP
95412010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9542
9543 Multiexec MI
9544
9545 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9546 * inferior.c (add_inferior_silent): Notify inferior_added
9547 observer.
9548 (delete_inferior_1): Notify inferior_removed observer.
9549 (exit_inferior_1): Pass inferior, not pid, to observer.
9550 (inferior_appeared): Likewise.
9551 (add_inferior_with_spaces): New.
9552 (add_inferior_command): Use the above.
9553 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9554 Declare.
9555
9556 * inflow.c (inflow_inferior_exit): Likewise.
9557 * jit.c (jit_inferior_exit_hook): Likewise.
9558
9559 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9560 remove-inferior.
9561 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9562 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9563 (report_initial_inferior): New.
9564 (mi_inferior_removed): Register the above. Make sure
9565 inferior_added observer is called on the first inferior.
9566 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9567 inferior number, not pid.
9568 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9569 affected.
9570 * mi/mi-main.c (current_context): New.
9571 (proceed_thread_callback): Use typed closure.
9572 Proceed everything if pid is 0. Most implementation split into
9573 (proceed_thread): ... this.
9574 (run_one_inferior): New.
9575 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9576 Adjust for multiexec behaviour.
9577 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9578 (mi_cmd_execute): Handle the 'thread-group' option here.
9579 Do some extra checks.
9580 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9581 options.
9582 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9583
115d30f9
VP
95842010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9585
9586 Make -exec-run a proper MI commands.
9587
9588 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9589 * mi/mi-cmds.c (mi_cmds): Adjust.
9590 * mi/mi-main.c (mi_cmd_exec_run): New.
9591
06cd862c
PA
95922010-02-24 Pedro Alves <pedro@codesourcery.com>
9593 Stan Shebs <stan@codesourcery.com>
9594
9595 * tracepoint.h (set_traceframe_number)
9596 (cleanup_restore_current_traceframe): Declare.
9597 * tracepoint.c (set_traceframe_number): New.
9598 (struct current_traceframe_cleanup): New.
9599 (do_restore_current_traceframe_cleanup)
9600 (restore_current_traceframe_cleanup_dtor)
9601 (make_cleanup_restore_current_traceframe): New.
9602 * infrun.c: Include tracepoint.h.
9603 (fetch_inferior_event): Switch out and in of tfind mode.
9604
ab92d69b
PA
96052010-02-24 Pedro Alves <pedro@codesourcery.com>
9606
9607 * breakpoint.c (breakpoint_init_inferior): Also delete
9608 bp_shlib_event breakpoints.
9609 * solib-frv.c (enable_break): Remove call to
9610 remove_solib_event_breakpoints.
9611 * solib-svr4.c (enable_break): Ditto.
9612 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9613 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9614 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9615 * solib-spu.c (spu_enable_break): Ditto.
9616
e707a91d
PA
96172010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9618
9619 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9620
cfce2ea2
PA
96212010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9622
9623 * varobj.c (varobj_update): Avoid non-constants in initializers.
9624
05566b3b
TT
96252010-02-23 Tom Tromey <tromey@redhat.com>
9626
9627 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9628 handle big-endian values.
9629 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9630
85d721b8
PA
96312010-02-22 Pedro Alves <pedro@codesourcery.com>
9632
9633 PR9605
9634
9635 gdb/
9636 * breakpoint.c (insert_bp_location): If inserting the read
9637 watchpoint failed, fallback to an access watchpoint.
9638 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9639 if the value changed, if not watching the same memory for writes.
9640 (watchpoint_locations_match): Add comment.
9641 (update_global_location_list): Copy the location's watchpoint type.
9642 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9643 handle read watchpoints here.
9644 (i386_insert_watchpoint): Read watchpoints aren't supported.
9645 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9646 packets.
9647 * target.h (target_insert_watchpoint): Update description.
9648
48ea67a7
TT
96492010-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9652 * m2-typeprint.c (m2_print_type): Update.
9653 * gdbtypes.c (recursive_dump_type): Update.
9654 (copy_type_recursive): Update.
9655 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9656 (c_type_print_base): Update.
9657 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9658 Remove.
9659 (struct cplus_struct_type) <ntemplate_args>: Remove.
9660 <struct template_arg>: Remove.
9661 <is_dynamic>: Move earlier.
9662 (TYPE_TEMPLATE_ARGS): Remove.
9663 (TYPE_NTEMPLATE_ARGS): Remove.
9664 (TYPE_TEMPLATE_ARG): Remove.
9665
48e32051
TT
96662010-02-19 Tom Tromey <tromey@redhat.com>
9667
9668 PR c++/8693, PR c++/9496:
9669 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9670 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9671 write_dollar_variable. Don't try to classify NAME tokens.
9672 (token_and_value): New type.
9673 (token_fifo, popping, name_obstack): New globals.
9674 (classify_name): New function.
9675 (classify_inner_name): Likewise.
9676 (yylex): Likewise.
9677 (VARIABLE): Now has type sval.
9678 (exp : VARIABLE): Call write_dollar_variable.
9679 (qualified_name): Use TYPENAME, not typebase. Add production for
9680 multiple "::" instances.
9681 (variable): Use name_not_typename.
9682 (qualified_type): Remove.
9683 (typebase): Update.
9684
672d9c23
JK
96852010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9686
9687 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9688 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9689 found by bfd_get_section_by_name.
9690 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9691
bfbf3774
JB
96922010-02-19 Joel Brobecker <brobecker@adacore.com>
9693
9694 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9695 7.0 section" into "Changes in 7.1".
9696
6756b09b 96972010-02-19 Joel Brobecker <brobecker@adacore.com>
9698
9699 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9700 * version.in: Bump version to 7.1.50.20100219-cvs.
9701
202b96c1
PA
97022010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9703
9704 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9705 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9706
de2e5182
TT
97072010-02-17 Tom Tromey <tromey@redhat.com>
9708
9709 * NEWS: Add Python API Improvements section.
9710
7280022e
DJ
97112010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9712
9713 * NEWS: Correct typo.
9714
6f451e5e
TT
97152010-02-17 Tom Tromey <tromey@redhat.com>
9716
9717 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9718
012836ea
JK
97192010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9720
9721 * symfile.c (build_section_addr_info_from_objfile): Include sections
9722 only if they are SEC_ALLOC or SEC_LOAD.
9723
d182d057
L
97242010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9725
9726 PR shlibs/11293
9727 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9728 of ULONGEST for address size.
9729
4eef138c
TT
97302010-02-17 Tom Tromey <tromey@redhat.com>
9731
9732 * NEWS: Add C++ improvements section.
9733
548a926a
UW
97342010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9735
9736 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9737 PyThreadState_Swap): Avoid "statement with no effect" warning.
9738
ad3a0e5b
JK
97392010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9740
9741 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9742 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9743
243e2c5d 97442010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9745 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9746
9747 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9748 gdb_assert. Fix info->size for SIG prologue.
9749
275f2e57
DJ
97502010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9751
9752 * infcmd.c (show_inferior_tty_command): Check for NULL.
9753 Correct output message.
9754
791dfb64
DJ
97552010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9756
9757 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9758 FUNCTION contains parentheses. Improve removal of a trailing
9759 single quote.
9760
14d1346b
DJ
97612010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9762
9763 * gcore.c (do_bfd_delete_cleanup): New function.
9764 (gcore_command): Use it. Discard the cleanup after success.
9765 (gcore_copy_callback): Delete dead code.
9766
e76ab67f
DJ
97672010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9768
9769 * symfile.c (addr_info_make_relative): Always use
9770 find_lowest_section.
9771
71dee663
SW
97722010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9773
9774 * NEWS: Added entry for namespace fixes.
9775
a9854bd5
TT
97762010-02-15 Tom Tromey <tromey@redhat.com>
9777
9778 * dwarf2read.c (guess_structure_name): Allocate name on the
9779 objfile obstack.
9780
fd9e29b5
TT
97812010-02-15 Tom Tromey <tromey@redhat.com>
9782
9783 * c-typeprint.c (c_type_print_base): Reverse order of test.
9784
4e1fc9c9
JK
97852010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9786
9787 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9788 initialize it from ELF BFD. Extend the prelink condition by it.
9789
74164c56
JK
97902010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9791
9792 * defs.h (parse_pid_to_attach): New.
9793 * utils.c (parse_pid_to_attach): New.
9794 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9795 * gnu-nat.c (gnu_attach): Likewise.
9796 * nto-procfs.c (procfs_attach): Likewise.
9797 * procfs.c (procfs_attach): Likewise.
9798 * windows-nat.c (windows_attach): Likewise.
9799 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9800 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9801 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9802 check.
9803
bf6adea8
MM
98042010-02-14 Masaki Muranaka <monaka@monami-software.com>
9805
9806 * MAINTAINERS: Add myself for write after approval privileges.
9807
28f34a8f
JK
98082010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9809
9810 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9811 block.
9812
701ed6dc
JK
98132010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9814
9815 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9816 only if INFO_VERBOSE.
9817
e5829bee
MS
98182010-02-12 Tomas Holmberg <th@virtutech.com>
9819
9820 * mi/mi-main.c: Added the --reverse flag to the following MI
9821 commands: exec-continue, exec-finish, exec-next, exec-step,
9822 exec-next-instruction, exec-step-instruction. This is to
9823 support reverse execution over the MI interface to gdb.
9824
081dfbf7
PA
98252010-02-12 Pedro Alves <pedro@codesourcery.com>
9826
9827 * tracepoint.c (_initialize_tracepoint): Specify that the address
9828 range of `tfind outsize' is exclusive, and that the address range
9829 of `tfind range' is inclusive, in the commands' help strings.
9830
ecc13e53
JB
98312010-02-12 Joel Brobecker <brobecker@adacore.com>
9832
9833 Spurious "dll not found" error messages on x64-windows.
9834 * windows-nat.c: Add include of complaints.h.
9835 (handle_unload_dll): Change dll-not-found error into a complaint.
9836
15c3d785
PA
98372010-02-12 Pedro Alves <pedro@codesourcery.com>
9838
9839 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9840 bp_tracepoint and bp_fast_tracepoint, not
9841 bp_loc_software_breakpoint.
9842 (update_global_location_list): Tracepoints are never duplicates of
9843 anything.
9844
fd9b8c24
PA
98452010-02-12 Pedro Alves <pedro@codesourcery.com>
9846
9847 * breakpoint.c (break_command_really): Change return type to int.
9848 Return false if no breakpoint was created, true otherwise.
9849 (trace_command): Don't set the tracepoint count if no tracepoint
9850 was created.
9851 (ftrace_command): Ditto.
9852 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9853 created in the breakpoints table.
9854
5c0d192f
JK
98552010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9856 Ulrich Weigand <uweigand@de.ibm.com>
9857
9858 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9859
5d5b640e
PA
98602010-02-11 Pedro Alves <pedro@codesourcery.com>
9861
9862 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9863 the offset value isn't of integral type.
9864
e5a0a904
JK
98652010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9866
9867 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9868 New.
9869
be636754
PA
98702010-02-11 Pedro Alves <pedro@codesourcery.com>
9871
9872 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9873 non-subscriptable types.
9874 * valarith.c (binop_types_user_defined_p): New, abstracted out
9875 from ...
9876 (binop_user_defined_p): ... this.
9877 * value.h (binop_types_user_defined_p): Declare.
9878
10ef8d6a
PA
98792010-02-11 Pedro Alves <pedro@codesourcery.com>
9880
9881 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9882 Merge uploaded TSVs before merging uploaded tracepoints.
9883
b1028c8e
PA
98842010-02-11 Pedro Alves <pedro@codesourcery.com>
9885
9886 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9887
7a93fb82 98882010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9889
7a93fb82
VP
9890 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9891 whitespace character after a dot in comment.
9892 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9893 Likewise.
9894 (list_args_or_locals): For the 'all' (that is
9895 -stack-list-variables) case, always output list of tuples.
9896 Output 'arg' field if variable is argument.
84d90c10 9897
92981e24
TT
98982010-02-10 Tom Tromey <tromey@redhat.com>
9899
9900 * parser-defs.h (parser_debug): Declare.
9901 * parse.c (_initialize_parse): Install "debug parser" set/show
9902 command.
9903 (parser_debug): New global.
9904 (show_parserdebug): New function.
9905 * c-exp.y (c_parse): Set yydebug.
9906
9fd3625f
L
99072010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9908
9909 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9910 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9911 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9912 i386_mxcsr.
9913 (tdesc_find_type): New.
9914 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9915 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9916
9917 * target-descriptions.h (tdesc_find_type): New.
9918
2fe842e5
MS
99192010-02-10 Michael Snyder <msnyder@vmware.com>
9920
9921 * gdb-gdb.py: Comment fix.
9922
f18b4cab
TG
99232010-02-09 Tristan Gingold <gingold@adacore.com>
9924
9925 * machoread.c (macho_symfile_relocate): New function.
9926 (macho_sym_fns): Use macho_symfile_relocate instead of
9927 default_symfile_relocate.
9928 (macho_oso_data): New type.
9929 (current_oso): New variable.
9930 (macho_add_oso_symfile): Do not compute section_addr_info, but
9931 instead set vma of sections.
9932 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9933 Set and clear current_oso.
9934
31dbc1c5
JB
99352010-02-09 Joel Brobecker <brobecker@adacore.com>
9936
9937 Wrong type description for tagged type parameter.
9938 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9939 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9940 reference to a tagged type.
9941
399f313b
TG
99422010-02-09 Tristan Gingold <gingold@adacore.com>
9943
9944 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9945 brothers of the parent.
9946
714f19d5
TT
99472010-02-08 Tom Tromey <tromey@redhat.com>
9948
9949 PR c++/8017:
9950 * value.h: Update.
9951 * valops.c (search_struct_field): Make 'name' const.
9952 (search_struct_method): Likewise.
9953 (find_method_list): Make 'method' const.
9954 (value_struct_elt): Make 'name' and 'err' const.
9955 (value_find_oload_method_list): Make 'method' const.
9956 (find_overload_match): Make 'name' const.
9957 * eval.c (evaluate_subexp_standard): New locals function,
9958 function_name.
9959 <OP_FUNCALL>: Handle OP_SCOPE specially.
9960
de0a0249
UW
99612010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9962
9963 * infrun.c (handle_inferior_event): Do not look up regcache
9964 for exited processes.
9965
8d95cc3b 99662010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
9967
9968 PR gdb/10728
9969 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 9970 warn if found, and assume length = 1.
83b10087 9971
99903ae3
CM
99722010-02-08 Chris Moller <cmoller@redhat.com>
9973
9974 PR gdb/9067
9975 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 9976 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 9977
e3e9f5a2
PA
99782010-02-08 Pedro Alves <pedro@codesourcery.com>
9979
9980 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9981 resumed LWPs as resumed.
9982 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9983 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9984 of throwing an internal error. If an LWP of a process we're not
9985 waiting for reports a signal, don't force collecting a SIGSTOP,
9986 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9987 go through all LWPs cancelling breakpoints in non-stop mode.
9988 (resume_stopped_resumed_lwps): New.
9989 (linux_nat_wait): Use it.
9990
46763423
L
99912010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9992
9993 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9994 i386/amd64 and i386/amd64-linux.
9995 (i386/i386-expedite): New.
9996 (i386/i386-linux-expedite): Likewise.
9997 (i386/amd64-expedite):Likewise.
9998 (i386/amd64-linux-expedite): Likewise.
9999 ($(outdir)/i386/i386-linux.dat): Likewise.
10000 ($(outdir)/i386/amd64.dat): Likewise.
10001 ($(outdir)/i386/amd64-linux.dat): Likewise.
10002
10003 * features/i386/32bit-core.xml: New.
10004 * features/i386/32bit-linux.xml: Likewise.
10005 * features/i386/32bit-sse.xml: Likewise.
10006 * features/i386/64bit-core.xml: Likewise.
10007 * features/i386/64bit-linux.xml: Likewise.
10008 * features/i386/64bit-sse.xml: Likewise.
10009 * features/i386/i386-linux.xml: Likewise.
10010 * features/i386/i386.xml: Likewise.
10011 * features/i386/amd64-linux.xml: Likewise.
10012 * features/i386/amd64.xml: Likewise.
10013 * features/i386/i386-linux.c: Likewise.
10014 * features/i386/i386.c: Likewise.
10015 * features/i386/amd64-linux.c: Likewise.
10016 * features/i386/amd64.c: Likewise.
10017
82856980
SW
100182010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10019
10020 PR c++/7935:
10021 * cp-support.h: Added char* alias element to using_direct data
10022 struct.
10023 (cp_add_using): Added char* alias argument.
10024 (cp_add_using_directive): Ditto.
10025 * cp-namespace.c: Updated with the above changes.
10026 (cp_lookup_symbol_imports): Check for aliases.
10027 * dwarf2read.c (read_import_statement): Figure out local alias
10028 for the import and pass it on to cp_add_using.
10029 (read_namespace): Pass alias argument to cp_add_using.
10030
d18b8b7a
HZ
100312010-02-05 Hui Zhu <teawater@gmail.com>
10032
10033 * defs.h (gdb_bfd_errmsg): New extern.
10034 * exec.c (exec_file_attach): Change bfd_errmsg to
10035 gdb_bfd_errmsg.
10036 * utils.c (AMBIGUOUS_MESS1): New macro.
10037 (AMBIGUOUS_MESS2): New macro.
10038 (gdb_bfd_errmsg): New function.
10039
48379de6
DE
100402010-02-04 Doug Evans <dje@google.com>
10041
10042 * solib-svr4.c (enable_break): Add comment.
10043
4ee73e90
AG
100442010-02-04 Anthony Green <green@moxielogic.com>
10045
10046 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10047 gracefully.
10048
1a334831
TT
100492010-02-04 Tom Tromey <tromey@redhat.com>
10050
10051 * valops.c (search_struct_field): Account for
10052 value_embedded_offset. Fix check for virtual base past the end of
10053 the object. Use value_copy when making a slice of the value.
10054
1180b2c8
L
100552010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10056
10057 PR tui/9622
10058 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10059 only if gdb_stdout is a tty.
10060
c3f08eb7
L
100612010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10062
10063 * target-descriptions.c: Include "osabi.h".
10064 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10065 OSABI.
10066
2d33f7b8
TG
100672010-02-04 Tristan Gingold <gingold@adacore.com>
10068
10069 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10070 (macho_symtab_read): Adjust calls to macho_add_oso.
10071 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10072 (macho_symfile_read): Adjust call to macho_oso_symfile.
10073 (macho_new_init): Move this function after declarations.
10074 (macho_symfile_init): Ditto.
10075 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10076 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10077
11334b82
VP
100782010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10079
10080 Include MI command in remotelog.
10081
10082 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10083
ff97be06
L
100842010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10085
10086 * remote.c (remote_state): Remove gdbarch.
10087 (init_remote_state): Don't set gdbarch.
10088 (remote_query_supported): Pass target_gdbarch instead of
10089 rs->gdbarch to gdbarch_qsupported.
10090
75cebea9
L
100912010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10092
10093 * gdbarch.sh: Add qsupported.
10094
10095 * gdbarch.c: Regenerated.
10096 * gdbarch.h: Likewise.
10097
10098 * remote.c (remote_state): Add gdbarch.
10099 (init_remote_state): Set gdbarch.
10100 (remote_query_supported): Support gdbarch_qsupported.
10101
c1dec97b
DJ
101022010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10103
10104 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10105 __FreeBSD_kernel_version.
10106
ac8035ab
TG
101072010-02-03 Tristan Gingold <gingold@adacore.com>
10108
10109 * symfile.h (struct sym_fns): Add sym_relocate field.
10110 (default_symfile_relocate): New prototype.
10111 (symfile_relocate_debug_section): First argument is now an objfile.
10112 * symfile.c (default_symfile_relocate): Rename from
10113 symfile_relocate_debug_section, first argument is now an objfile.
10114 (symfile_relocate_debug_section): New function.
10115 * coffread.c (coff_sym_fns): Set sym_relocate field.
10116 * somread.c (som_sym_fns): Ditto.
10117 * mipsread.c (ecoff_sym_fns): Ditto.
10118 * machoread.c (macho_sym_fns): Ditto.
10119 * elfread.c (elf_sym_fns): Ditto.
10120 * dwarf2read.c (dwarf2_read_section): Ditto.
10121 * xcoffread.c (xcoff_sym_fns): Ditto.
10122 * dbxread.c (aout_sym_fns): Ditto.
10123 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10124 (elfstab_build_psymtabs): Ditto.
10125
be52b756
L
101262010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10127
10128 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10129
9c3c02fd
TT
101302010-02-02 Tom Tromey <tromey@redhat.com>
10131
10132 * valops.c (value_cast_structs): Try downcasting using the RTTI
10133 type.
10134
f23f4c59
TT
101352010-02-02 Tom Tromey <tromey@redhat.com>
10136
10137 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10138 (gnuv2_baseclass_offset): Now static.
10139 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10140 * gnu-v2-abi.h: Remove.
10141
0cc2414c
TT
101422010-02-02 Tom Tromey <tromey@redhat.com>
10143
10144 * m2-typeprint.c (m2_record_fields): Don't use
10145 TYPE_DECLARED_TYPE.
10146 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10147 (struct main_type) <flag_declared_class>: New field.
10148 (struct cplus_struct_type) <declared_type>: Remove.
10149 <ntemplate_args>: Move earlier.
10150 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10151 (DECLARED_TYPE_TEMPLATE): Remove.
10152 (TYPE_DECLARED_TYPE): Remove.
10153 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10154 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10155 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10156 TYPE_DECLARED_TYPE.
10157
edf3d5f3
TT
101582010-02-02 Tom Tromey <tromey@redhat.com>
10159
10160 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10161 * valops.c (search_struct_field): Compute nbases after calling
10162 CHECK_TYPEDEF.
10163 (check_field): Call CHECK_TYPEDEF.
10164 * cp-valprint.c (cp_print_value): Pass correct address to
10165 baseclass_offset. Fix check for virtual base past the end of the
10166 object. Don't offset address passed to cp_print_value_fields or
10167 apply_val_pretty_printer.
10168 (cp_print_value_fields): Fix call to val_print.
10169 (cp_print_value_fields_rtti): New function.
10170 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10171 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10172 val_print.
10173 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10174 offset to address.
10175 * language.h (struct language_defn) <la_val_print>: Document.
10176 * c-lang.h (cp_print_value_fields_rtti): Declare.
10177
e4b7f41c
JK
101782010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10179
10180 PR libc/11214:
10181 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10182 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10183 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10184
7618e12b
DJ
101852010-02-01 Michael Matz <matz@suse.de>
10186 Daniel Jacobowitz <dan@codesourcery.com>
10187
e4b7f41c 10188 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
10189 functions use a frame pointer.
10190
b381ea14
JK
101912010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10192
10193 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10194 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10195 * config/djgpp/fnchange.lst: Add translations for
10196 symbol-without-target_section.exp and symbol-without-target_section.c.
10197
0e05dfcb
DJ
101982010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10199
10200 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10201 (remote_breakpoint_for_pc): Correct invalid_p check.
10202 * gdbarch.c: Regenerated.
10203
f9d67f43
DJ
102042010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10205
10206 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10207 arm_pc_is_thumb.
10208 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10209 (extend_buffer_earlier): New function.
10210 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10211 (arm_adjust_breakpoint_address): New function.
10212 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10213
177321bd
DJ
102142010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10215
10216 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10217 (arm_linux_thumb2_le_breakpoint): New constants.
10218 (arm_linux_init_abi): Set thumb2_breakpoint and
10219 thumb2_breakpoint_size.
10220 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10221 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10222 Implement support for single stepping through IT blocks if
10223 a 32-bit Thumb breakpoint instruction is available.
10224 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10225 is available, use it when needed.
10226 (arm_remote_breakpoint_from_pc): New function.
10227 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10228 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10229 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10230
a1dcb23a
DJ
102312010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10232
10233 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10234 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10235 * gdbarch.c, gdbarch.h: Regenerated.
10236 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10237 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10238 gdbarch_remote_breakpoint_from_pc.
10239
2b009048
DJ
102402010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10241
10242 * infrun.c (prepare_to_proceed): Handle other signals which might
10243 match a breakpoint.
10244 (handle_inferior_event): Move the check for unusual breakpoint
10245 signals earlier.
10246
e4e2711a
JB
102472010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10248
10249 amd64 - function returning record with field straddling 2 registers.
10250 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10251 a record of length <= 16 in which a field straddles the two
10252 eightbytes.
10253
cba6fab5
JB
102542010-01-29 Joel Brobecker <brobecker@adacore.com>
10255
10256 Implement return values on amd64-windows.
10257 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10258 (amd64_windows_return_value): New function.
10259 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10260 amd64_windows_return_value.
10261
3af6ddfe
JB
102622010-01-29 Joel Brobecker <brobecker@adacore.com>
10263
10264 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 10265 parameter registers.
3af6ddfe
JB
10266 * i386-tdep.h (struct gdbarch_tdep): Add new field
10267 integer_param_regs_saved_in_caller_frame.
10268 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10269 tdep->integer_param_regs_saved_in_caller_frame to 1.
10270 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10271 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10272
80d19a06
JB
102732010-01-29 Joel Brobecker <brobecker@adacore.com>
10274
10275 amd64-windows: memory args passed by pointer during function calls.
10276 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10277 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10278 where tdep->memory_args_by_pointer is non-zero.
10279 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10280 tdep->memory_args_by_pointer to 1.
10281
ba581dc1
JB
102822010-01-29 Joel Brobecker <brobecker@adacore.com>
10283
4966b6c2 10284 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
10285 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10286 amd64-tdep.c.
10287 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10288 call_dummy_integer_regs, and classify.
10289 * amd64-tdep.h (amd64_classify): Add declaration.
10290 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10291 (amd64_reg_class): Delete, moved to i386-tdep.h.
10292 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10293 Replace call to amd64_classify by call to tdep->classify.
10294 (amd64_push_arguments): Get the list of registers to use for
10295 passing integer parameters from the gdbarch tdep structure,
10296 rather than using a hardcoded one. Replace calls to amd64_classify
10297 by calls to tdep->classify.
10298 (amd64_push_dummy_call): Get the register number used for
10299 the "hidden" argument from tdep->call_dummy_integer_regs.
10300 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10301 and tdep->call_dummy_integer_regs. Set tdep->classify.
10302 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10303 (amd64_windows_dummy_call_integer_regs): New static global.
10304 (amd64_windows_classify): New function.
10305 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10306 tdep->call_dummy_integer_regs and tdep->classify.
10307
d37346f0
DJ
103082010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10309
10310 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10311 for the new regcache. All callers updated.
10312 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10313 (get_thread_arch_regcache): Do not set aspace here.
10314 * regcache.h (regcache_xmalloc): Update declaration.
10315
10316 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10317 regcache_xmalloc updated.
10318
7434dadd
JB
103192010-01-28 Joel Brobecker <brobecker@adacore.com>
10320
10321 Another -Wunused-function error in procfs.c (sparc-solaris)
10322 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10323 Only define if SYS_syssgi is defined.
10324 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10325 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10326 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10327 is itself defined.
10328
16d905e2
CF
103292010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10330
10331 * windows-nat.c (windows_initialization_done): New variable.
10332 (get_windows_debug_event): Issue error when process dies before
10333 completely initializing.
10334 (do_initial_windows_stuff): Set flag to indicate when we are done with
10335 the initial steps of attaching to the child.
10336
cd55e50f
JK
103372010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10338
10339 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10340
99cc78aa
DE
103412010-01-27 Doug Evans <dje@google.com>
10342
4c7dcb84
DE
10343 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10344
99cc78aa
DE
10345 * breakpoint.c (bpstat_stop_status): Delete useless code.
10346
52334bf5
JK
103472010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10348
10349 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10350 objfile via SYMBOL_SYMTAB.
10351
708ead4e
TT
103522010-01-26 Tom Tromey <tromey@redhat.com>
10353
10354 PR exp/7643:
10355 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10356 coerce_array on result.
10357
b14e635e
SW
103582010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10359
10360 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10361 search_parent argument.
10362 (cp_add_using): Initialize 'searched' field.
10363 (reset_directive_searched): New function.
10364 * cp-support.h: Add 'searched' field to using_direct struct.
10365 (cp_lookup_symbol_imports): Ditto.
10366 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10367 Perform recursive search.
10368 Implement non parent search.
10369 * valops.c (value_maybe_namespace_elt): Updated.
10370
8540c487
SW
103712010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10372
10373 PR gdb/10929:
10374 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10375 scopes which contain using directives even if they contain no
10376 declarations.
10377 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10378 la_lookup_symbol_nonlocal.
10379 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10380 cp_lookup_symbol_namespace.
10381 (cp_lookup_symbol_namespace): Perform an import lookup at every
10382 block level.
10383 (cp_lookup_symbol_imports): New function.
10384 (cp_lookup_symbol_in_namespace): New function.
10385
421d5d99
TT
103862010-01-25 Tom Tromey <tromey@redhat.com>
10387
10388 PR gdb/11049:
10389 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10390 result.
10391
6bcc772d
RO
103922010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10393
10394 * configure.ac: Only use host_os part when disabling TUI on osf.
10395 Use test to check variables, prefix strings with x.
10396 * configure: Regenerate.
10397
10398 * solib-osf.c (osf_current_sos): Initialize tail.
10399
1c1238a5
TG
104002010-01-25 gingold <gingold@adacore.com>
10401
c8d5aac9
L
10402 * windows-nat.c (windows_continue): Use %x to print thread id.
10403 (get_windows_debug_event): Ditto.
1c1238a5 10404
0b92b5bb
TT
104052010-01-22 Tom Tromey <tromey@redhat.com>
10406
10407 PR symtab/11199:
10408 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10409 type and arguments. Use smash_to_methodptr_type.
10410 (read_structure_type): Call quirk_gcc_member_function_pointer
10411 later.
10412 * gdbtypes.h (smash_to_methodptr_type): Declare.
10413 * gdbtypes.c (smash_to_methodptr_type): New function.
10414 (lookup_methodptr_type): Use it.
10415
0d5392b8
TT
104162010-01-21 Tom Tromey <tromey@redhat.com>
10417
10418 PR symtab/11198:
10419 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10420 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10421 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10422 (glibc_skip_solib_resolver): Use
10423 lookup_minimal_symbol_and_objfile.
10424
e6d088ec
KT
104252010-01-21 Kai Tietz <kai.tietz@onevision.com>
10426
10427 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10428 WIN32 targets.
10429
b966cb8a
TT
104302010-01-20 Tom Tromey <tromey@redhat.com>
10431
10432 PR backtrace/10770:
10433 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10434 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10435 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10436 dwarf_stack_values, not CORE_ADDRs.
10437 (execute_stack_op): Change DW_OP_div and comparison operators to
10438 use signed operands.
10439
3f81c18a
VP
104402010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10441
10442 Per-inferior args and tty and environment.
10443
10444 * infcmd.c (inferior_args): Rename to ...
10445 (inferior_args_scratch): ... this.
10446 (inferior_io_terminal): Rename to ...
10447 (inferior_io_terminal_scratch): ... this.
10448 (inferior_argc, inferior_argv): Remove.
10449 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10450 inside current_inferior().
10451 (set_inferior_tty_command, show_inferior_tty_command): New.
10452 (get_inferior_args, set_inferior_args): Store inside
10453 current_inferior().
10454 (notice_args_set): Likewise and rename to...
10455 (set_args_command): ... this.
10456 (set_inferior_args_vector): Likewise.
10457 (notice_args_read): Rename to...
10458 (show_args_command): ...new.
10459 (tty_command): Remove.
10460 (run_command_1): Don't free old args, as they are freed by
10461 set_inferior_arg now.
10462 (run_no_args_command): Likewise.
10463 (inferior_environ): Remove.
10464 (run_command_1): Use environment of the current inferior.
10465 (environment_info, set_environment_command)
10466 (unset_environment_command, path_info, path_command): Likewise.
10467 (_initialize_infcmd): Adjust for function and variable renames.
10468 Do not init inferior_environ.
10469 * inferior.h (set_inferior_arg): Adjust prototype.
10470 (struct inferior): New fields args, argc, argv, terminal, environment.
10471 (inferior_environ): Remove declaration.
10472 * inferior.c (free_inferior): Free new fields.
10473 (add_inferior_silent): Initialize 'environment' field.
10474 * main.c (captured_main): Set arguments only after the initial
10475 inferior has been created. Set set_inferior_io_terminal,
10476 not tty_command.
10477 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10478 inferior.
10479 (_initialize_mi_cmd_env): Adjust for disappearance of global
10480 inferior_environ.
10481 * solib.c (solib_find): Use environment of the current inferior.
10482
d8b65138
JK
104832010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10484
10485 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10486 HAVE_PYTHON.
10487 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10488
692465f1
JB
104892010-01-20 Joel Brobecker <brobecker@adacore.com>
10490
10491 Get rid of ada-lang.c:function_name_from_pc.
10492 * ada-lang.c: Add "stack.h" #include.
10493 (function_name_from_pc): Delete.
10494 (is_known_support_routine): Replace call to function_name_from_pc
10495 by call to find_frame_funname.
10496 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10497
95519e0e
TT
104982010-01-19 Tom Tromey <tromey@redhat.com>
10499
10500 PR c++/11026:
10501 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10502 objfile obstack.
10503
95c11dc7
TT
105042010-01-19 Tom Tromey <tromey@redhat.com>
10505
10506 * top.c (stop_sig, float_handler, do_nothing): Remove.
10507
a0f49112
JK
105082010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10509
10510 * breakpoint.c (watchpoint_check): Check the call
10511 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10512 Extend the comment.
8d95cc3b 10513 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10514 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10515 watchpoint-cond-gone-stripped.c.
10516
ceeb3d5a
TT
105172010-01-19 Tom Tromey <tromey@redhat.com>
10518
10519 PR c++/8000:
10520 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10521 into parent scope, and enumerator into grandparent scope.
10522
2b71fc8e
JB
105232010-01-19 Joel Brobecker <brobecker@adacore.com>
10524
10525 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10526
03564ed9
JB
105272010-01-19 Joel Brobecker <brobecker@adacore.com>
10528
10529 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10530 i[34567]86-*-solaris2.1[0-9]*.
10531 * configure.tgt: Likewise.
10532
fb2e7cb4
JB
105332010-01-19 Joel Brobecker <brobecker@adacore.com>
10534
10535 * NEWS: Document the source command enhancement allowing it
10536 to load Python scripts. Document the "set/show script-extension"
10537 commands.
10538
1cb5e2a4
JB
105392010-01-19 Joel Brobecker <brobecker@adacore.com>
10540
10541 Add -Wunused-function to compile flags.
10542 * configure.ac: Add -Wunused-function to build_warnings.
10543 * configure: Regenerate.
10544
0ec6cd0c
JB
105452010-01-19 Joel Brobecker <brobecker@adacore.com>
10546
10547 "delete" ada-lex.c:input function, not used.
10548 * ada-lex.l: #define YY_NO_INPUT.
10549
b74845da
JB
105502010-01-19 Joel Brobecker <brobecker@adacore.com>
10551
10552 Delete free_named_symtabs and associated cleanup.
10553 * symfile.h (free_named_symtabs): Delete declaration.
10554 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10555 (cashier_psymtab): Comment function out.
10556 Delete declaration.
10557 (free_named_symtabs): Delete.
10558 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10559 * dbxread.c (end_psymtab): Likewise.
10560 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10561 * exec.c (exec_close_1): Ditto.
10562 * xcoffread.c (xcoff_end_psymtab): Likewise.
10563
65c06092
JB
105642010-01-19 Joel Brobecker <brobecker@adacore.com>
10565
10566 * stack.c (print_block_frame_labels): Comment function out.
10567
d5cd6034
JB
105682010-01-19 Joel Brobecker <brobecker@adacore.com>
10569
10570 Delete unused or undefined functions.
10571 * breakpoint.c (ep_parse_optional_filename): Delete.
10572 * dcache.c (dcache_write_line): Remove declaration.
10573 * infrun.c (build_infrun): Remove declaration.
10574 * tracepoint.c (tracepoint_save_command): Remove declaration.
10575 * linux-nat.c (init_lwp_list): Delete. No longer used.
10576 * event-loop.c (check_async_signal_handlers): Delete declaration.
10577 * infrun.c (init_execution_control_state): Delete.
10578 (proceed): Update comment to avoid mentioning
10579 init_execution_control_state.
10580 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10581 * ada-lang.c (ada_to_static_fixed_value): Delete.
10582 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10583 * cp-namespace.c (cp_copy_usings): Delete.
10584 * xml-syscall.c (xml_number_of_syscalls): Delete.
10585 * progspace.c (find_program_space_by_num): Delete.
10586 * inflow.c (handle_sigio): Delete declaration.
10587 * hppa-tdep.c (hppa_alignof): Delete.
10588 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10589 (mipsnbsd_core_osabi_sniffer): Delete.
10590
4e8f195d
TT
105912010-01-18 Tom Tromey <tromey@redhat.com>
10592
10593 PR c++/9680:
10594 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10595 (CONST_CAST): New tokens.
10596 (exp): Add new productions.
10597 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10598 reinterpret_cast.
10599 (is_cast_operator): New function.
10600 (yylex): Handle cast operators specially.
10601 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10602 UNOP_REINTERPRET_CAST>: New cases.
10603 * expprint.c (print_subexp_standard): Likewise.
10604 (op_name_standard): Likewise.
10605 (dump_subexp_body_standard): Likewise.
10606 * parse.c (operator_length_standard): Likewise.
10607 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10608 UNOP_REINTERPRET_CAST.
10609 * gdbtypes.c (class_types_same_p): New function.
10610 (is_ancestor): Use it.
10611 (is_public_ancestor): New function.
10612 (is_unique_ancestor_worker): Likewise.
10613 (is_unique_ancestor): Likewise.
10614 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10615 (is_unique_ancestor): Declare.
10616 * valops.c (value_reinterpret_cast): New function.
10617 (dynamic_cast_check_1): Likewise.
10618 (dynamic_cast_check_2): Likewise.
10619 (value_dynamic_cast): Likewise.
10620 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10621
d9c57d9f
JB
106222010-01-18 Joel Brobecker <brobecker@adacore.com>
10623
10624 Fix build failure when building without Python support.
10625 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10626 is not defined.
10627
f80d3ff2
JB
106282010-01-18 Joel Brobecker <brobecker@adacore.com>
10629
10630 Use XVS field type instead of doing a parallel lookup.
10631 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10632 if it is a reference type instead of doing a type lookup using
10633 the XVS field name.
10634
5bf03f13
JB
106352010-01-18 Joel Brobecker <brobecker@adacore.com>
10636
10637 Trust PAD types instead of using PAD___XVS.
10638 * ada-lang.c (trust_pad_over_xvs): New static variable.
10639 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10640 parallel XVS type, follow the XVS type instead of the PAD type.
10641 (unwrap_value): Make sure that there is no parallel XVE type
10642 before returning the value as is.
10643 (set_ada_list, show_ada_list): New static variables.
10644 (set_ada_command, show_ada_command): New functions.
10645 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10646 Add new "set/show ada trust-PAD-over-XVS" setting.
10647
973817a3
JB
106482010-01-18 Tom Tromey <tromey@redhat.com>
10649 Thiago Jung Bauermann <bauerman@br.ibm.com>
10650
10651 Allow "source" to load python scripts.
10652 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10653 * python/python.c (source_python_script): New function.
10654 * python/python.h (source_python_script): Add declaration.
10655 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10656 (script_ext_off, script_ext_soft, script_ext_strict)
10657 (script_ext_enums, script_ext_mode): New static constants.
10658 (show_script_ext_mode, find_and_open_script): New functions.
10659 (source_script): Enhance to handle Python scripts.
10660 (init_cli_cmds): Add set/show script-extension commands.
10661
98e03262
SS
106622010-01-16 Stan Shebs <stan@codesourcery.com>
10663
10664 * tracepoint.h (struct trace_status): Use unsigned long long
10665 instead of size_t.
10666 * tracepoint.c (trace_status_command): Fix printf directive.
10667 (trace_save_command): Check fwrite returns, fix printf directive.
10668 (trace_filename): New global.
10669 (tfile_open): Set it, check read returns.
10670 (tfile_close): Free trace_filename.
10671 (tfile_get_traceframe_address): Check read returns.
10672 (tfile_trace_find): Ditto.
10673 (tfile_fetch_registers): Ditto.
10674 (tfile_xfer_partial): Ditto.
10675 (tfile_get_trace_state_variable_value): Ditto.
10676
00bf0b85
SS
106772010-01-15 Stan Shebs <stan@codesourcery.com>
10678
10679 Add trace file support.
10680 * tracepoint.h (enum trace_stop_reason): New enum.
10681 (struct trace_status): New struct.
10682 (parse_trace_status): Declare.
10683 (struct uploaded_tp): Move here from remote.c,
10684 add fields for actions.
10685 (struct uploaded_tsv): New struct.
10686 * tracepoint.c (tfile_ops): New target vector.
10687 (trace_fd): New global.
10688 (tfile_open): New function.
10689 (tfile_close): New function.
10690 (tfile_files_info): New function.
10691 (tfile_get_trace_status): New function.
10692 (tfile_get_traceframe_address): New function.
10693 (tfile_trace_find): New function.
10694 (tfile_fetch_registers): New function.
10695 (tfile_xfer_partial): New function.
10696 (tfile_get_trace_state_variable_value): New function.
10697 (init_tfile_ops): New function.
10698 (_initialize_tracepoint): Call it, add tfile target.
10699 (trace_status): New global.
10700 (current_trace_status): New function.
10701 (trace_running_p): Remove, change all users to get from
10702 current_trace_status()->running.
10703 (get_trace_status): Remove.
10704 (trace_status_command): Call target_get_trace_status directly,
10705 report more detail including tracing stop reasons.
10706 (trace_find_command): Always allow tfind on a file.
10707 (trace_find_pc_command): Ditto.
10708 (trace_find_tracepoint_command): Ditto.
10709 (trace_find_line_command): Ditto.
10710 (trace_find_range_command): Ditto.
10711 (trace_find_outside_command): Ditto.
10712 (trace_frames_offset, cur_offset): Declare as off_t.
10713 (trace_regblock_size): Rename from reg_size, update users.
10714 (parse_trace_status): New function.
10715 (tfile_interp_line): New function.
10716 (disconnect_or_stop_tracing): Ensure current trace
10717 status before asking what to do.
10718 (stop_reason_names): New global.
10719 (trace_save_command): New command.
10720 (get_uploaded_tp): Move here from remote.c.
10721 (find_matching_tracepoint): Ditto.
10722 (merge_uploaded_tracepoints): New function.
10723 (parse_trace_status): Use stop_reason_names.
10724 (_initialize_tracepoint): Define tsave command.
10725 * target.h (target_ops): New fields to_save_trace_data,
10726 to_upload_tracepoints, to_upload_trace_state_variables,
10727 to_get_raw_trace_data, change to_get_trace_status
10728 to take a pointer to a status struct.
10729 (target_save_trace_data): New macro.
10730 (target_upload_tracepoints): New macro.
10731 (target_upload_trace_state_variables): New macro.
10732 (target_get_raw_trace_data): New macro.
10733 * target.c (update_current_target): Add new methods, change
10734 signature of to_get_trace_status.
10735 * remote.c (hex2bin): Make globally visible.
10736 (bin2hex): Ditto.
10737 (remote_download_trace_state_variable): Download name also.
10738 (remote_get_trace_status): Update parameter, use
10739 parse_trace_status.
10740 (remote_save_trace_data): New function.
10741 (remote_upload_tracepoints): New function.
10742 (remote_upload_trace_state_variables): New function.
10743 (remote_get_raw_trace_data): New function.
10744 (remote_start_remote): Use them.
10745 (_initialize_remote_ops): Add operations.
10746 * ax-gdb.c: Include breakpoint.h.
10747 * breakpoint.c (create_tracepoint_from_upload): Use
10748 break_command_really, return tracepoint, warn about unimplemented
10749 parts.
10750 * NEWS: Mention trace file addition.
10751
d904de5b
JK
107522010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 Fix compilation warning on gcc-3.4.
10755 * exec.c (print_section_info): Move the `displacement' variable
10756 initialization to its declaration.
10757
64aa9731
JK
107582010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10759
10760 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10761 comparison.
10762
ca1f5def 107632010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10764
10765 "info tasks" broken by typedefs in ATCB type definitions.
10766 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10767 ada_check_typedef before retrieving the length of the type for
10768 regular fields.
10769
12ab9e09
JB
107702010-01-15 Joel Brobecker <brobecker@adacore.com>
10771
10772 Do not use name-based lookup for unconstrained packed arrays.
10773 * ada-lang.c (find_parallel_type_by_descriptive_type):
10774 Limit the fallback to name-based lookups to the case where
10775 the type is a constrained packed array.
10776
c389c3dc
JB
107772010-01-15 Joel Brobecker <brobecker@adacore.com>
10778
10779 Enhance gdb-gdb.py to handle main_type.type_specific.
10780 * gdb-gdb.py: Print the type-specific part of struct main_type.
10781
7991dee7
JK
107822010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10783
10784 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10785 * configure: Regenerate.
10786 * config.in: Regenerate.
10787 * utils.c: Include sys/resource.h.
10788 (dump_core, can_dump_core): New.
10789 (internal_vproblem): Update the comment. Check can_dump_core while
10790 setting dump_core_p. Replace two abort calls by dump_core calls.
10791
93c26624
JK
107922010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10793 Eli Zaretskii <eliz@gnu.org>
10794
10795 * NEWS: Document the PIE support.
10796
55235ad7
JK
107972010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10798
10799 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10800 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10801
41752192
JK
108022010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10803
10804 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10805 Replace exec_entry_point call by bfd_get_start_address.
10806
9f2982ff
JK
108072010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10808
10809 Support Valgrind attachments broken by the PIE support.
10810 * auxv.c: Include gdbcore.h.
10811 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10812 parameters ops, object and annex. Remove their assertions.
10813 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10814 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10815 (memory_xfer_auxv): ... here.
10816 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10817 memory_xfer_auxv.
10818 * procfs.c (procfs_xfer_partial): Likewise.
10819 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10820 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10821 (svr4_solib_create_inferior_hook): Conditionalize the
10822 svr4_relocate_main_executable call.
10823
61f0d762
JK
108242010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10825
10826 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10827 target_section. Find SECT in current_target_sections, gdb_assert it.
10828 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10829 New variable abfd.
10830 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10831 of separate debug info file.
10832
51bee8e9
JK
108332010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10834
10835 Support PIEs with no symfile_objfile.
10836 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10837 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10838
b8040f19
JK
108392010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10840
10841 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10842 code part to ...
10843 (svr4_static_exec_displacement): ... a new function.
10844 (svr4_exec_displacement): New function.
10845 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10846 new_offsets using alloca now. Remove variable old_chain and changed.
10847 Call objfile_relocate unconditionally now.
10848
eb90ce83
DE
108492010-01-14 Doug Evans <dje@google.com>
10850
10851 * gdbtypes.c (arch_flags_type): Fix comment.
10852 * gdbtypes.h (arch_composite_type): Fix comment.
10853
bdfed3bc
TG
108542009-01-14 Tristan Gingold <gingold@adacore.com>
10855
10856 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10857 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10858 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10859 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10860 macho_add_oso_symfile.
10861 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10862
1596ad23
JB
108632010-01-14 Joel Brobecker <brobecker@adacore.com>
10864
10865 Tru64: Dead threads are never deleted.
10866 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10867 (dec_thread_count_gdb_threads): Fix counter increment.
10868 (dec_thread_add_gdb_thread): Fix *listp increment.
10869 (resync_thread_list): Fix bug in deletion of dead threads that
10870 caused all threads to be deleted, instead of just the dead ones.
10871
be759fcf
PM
108722010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10873
10874 PR python/10705
10875
10876 * python/python-internal.h: Add lazy_string_object_type
10877 definition.
10878 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10879 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10880 * python/py-value.c (valpy_lazy_string): New function.
10881 (convert_value_from_python): Add lazy string conversion.
10882 * python/py-prettyprint.c (pretty_print_one_value): Check if
10883 return is also a lazy string.
10884 (print_string_repr): Add lazy string printing branch.
10885 (print_children): Likewise.
10886 * python/py-lazy-string.c: New file. Implement lazy strings.
10887 * python/python.c (_initialize_python): Call
10888 gdbpy_initialize_lazy_string.
10889 * varobj.c (value_get_print_value): Add lazy string printing
10890 branch. Account for encoding.
10891 * c-lang.c (c_printstr): Account for new encoding argument. If
10892 encoding is NULL, find encoding suited for type, otherwise use
10893 user encoding.
10894 * language.h (language_defn): Add encoding argument.
10895 (LA_PRINT_STRING): Likewise.
10896 * language.c (unk_lang_printstr): Update to reflect new encoding
10897 argument to language_defn.
10898 * ada-lang.h (ada_printstr): Likewise.
10899 * c-lang.h (c_printstr): Likewise.
10900 * p-lang.h (pascal_printstr);
10901 * f-lang.c (f_printstr): Likewise.
10902 * m2-lang.c (m2_printstr): Likewise.
10903 * objc-lang.c (objc_printstr): Likewise.
10904 * p-lang.c (pascal_printstr): Likewise.
10905 * scm-lang.c (scm_printstr): Likewise.
10906 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10907 encoding argument.
10908 * ada-valprint.c (ada_printstr): Likewise.
10909 * f-valprint.c (f_val_print): Likewise
10910 * m2-valprint.c (m2_val_print): Likewise.
10911 * p-valprint.c (pascal_val_print): Likewise.
10912 * expprint.c (print_subexp_standard): Likewise.
10913 * valprint.c (val_print_string): Likewise.
10914 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10915 (SUBDIR_PYTHON_SRCS): Likewise.
10916 (py-lazy-string.o): New rule.
10917
1fe72117 109182010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
10919
10920 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10921 uninitialized" warning from gcc on local `tree'.
10922
dc146f7c
VP
109232010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10924
10925 Implement core awareness.
10926
10927 * bcache.c (compare_ints): Remove
10928 (print_percentage): Use compare_positive_ints.
10929 * defs.h (compare_positive_ints): Declare.
10930 * linux-nat.h (struct lin_lwp): New field core.
10931 (linux_nat_core_of_thread_1): Declare.
10932 * linux-nat.c (add_lwp): Init the 'core' field.
10933 (linux_nat_wait_1): Record the core.
10934 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10935 (linux_nat_add_target): Register the above.
10936 * linux-thread-db.c (update_thread_core): New.
10937 (thread_db_find_new_threads): Update core information for
10938 every thread.
10939 * remote.c (struct private_thread_info): New.
10940 (free_private_thread_info, demand_private_info): New.
10941 (PACKET_qXfer_threads, use_osdata_threads): New.
10942 (struct thread_item, threads_parsing_context
10943 (start_thread, end_thread, thread_attributes)
10944 (thread_children, threads_children, threads_elements): New.
10945 (remote_threads_info): Try qXfer:threads before anything
10946 else.
10947 (remote_protocol_packets): Register qXfer:threads.
10948 (remote_open_1): Init use_osdata_threads.
10949 (struct stop_reply): New field 'core'.
10950 (remote_parse_stop_reply): Parse core number.
10951 (process_stop_reply): Record core number.
10952 (remote_xfer_partial): Handle qXfer:threads.
10953 (remote_core_of_thread): New.
10954 (init_remote_ops): Register remote_core_of_thread.
10955 (_initialize_remote): Register qXfer:read.
10956 * target.c (target_core_of_thread): New
10957 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10958 (struct target_ops): New field to_core_of_threads.
10959 (target_core_of_thread): Declare.
10960 * gdbthread.h (struct thread_info): New field private_dtor.
10961 * thread.c (print_thread_info): Report the core.
10962 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10963 * utils.c (compare_positive_ints): New.
10964 * features/threads.dtd: New.
10965 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10966 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10967 (do_nothing, free_vector_of_osdata_items)
10968 (splay_tree_int_comparator, free_splay_tree): New.
10969 (print_one_inferior_data): Implemented printing of selected
10970 inferiors. Collect and print cores.
10971 (output_cores): New.
10972 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10973 thread groups together with --available.
10974
d30c5336
JK
109752010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10976
10977 * configure: Regenerate (for _STRUCTURED_PROC).
10978
02893727
JB
109792010-01-12 Joel Brobecker <brobecker@adacore.com>
10980
10981 Delete dead function.
10982 * ada-lang.c (extract_string): Delete. No longer used.
10983
46ed2d6f
JB
109842010-01-12 Joel Brobecker <brobecker@adacore.com>
10985
10986 Fix -Wunused warning in dec-thread.c.
10987 * dec-thread.c (dec_thread_count_gdb_threads)
10988 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10989
606b8d1a
JB
109902010-01-12 Joel Brobecker <brobecker@adacore.com>
10991
10992 * ada-valprint.c (ada_print_floating): Remove trailing space.
10993
b4ba55a1
JB
109942010-01-12 Joel Brobecker <brobecker@adacore.com>
10995
10996 Add support for DW_AT_GNAT_descriptive_type.
10997 * gdbtypes.h (enum type_specific_kind): New enum.
10998 (struct main_type) [type_specific_field]: New component.
10999 [type_specific]: Add new component "gnat_stuff".
11000 (struct gnat_aux_type): New type.
11001 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11002 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11003 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11004 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11005 (TYPE_SPECIFIC_FIELD): New macros.
11006 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11007 type does not hold any cplus-specific data.
11008 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11009 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11010 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11011 cplus-specific data.
11012 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11013 Set new component TYPE_SPECIFIC_FIELD (type).
11014 (gnat_aux_default): New constant.
11015 (allocate_gnat_aux_type): New function.
11016 (init_type): Add initialization the type-specific stuff for
11017 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11018 (print_gnat_stuff): New function.
11019 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11020 specific data. Adjust code that prints the contents of the
11021 type-specific union using the TYPE_SPECIFIC_FIELD value.
11022 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11023 the type cplus stuff for Ada types.
11024 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11025 Error out if these routines are called with an Ada type.
11026 (read_structure_type, read_array_type, read_subrange_type):
11027 Add call to set_descriptive_type.
11028 (set_die_type): Initialize the gnat-specific data if necessary.
11029 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11030 New functions.
11031 * ada-lang.c (decode_constrained_packed_array_type): Use
11032 decode_constrained_packed_array_type instead of doing a standard
11033 lookup to locate a parallel type.
11034 (find_parallel_type_by_descriptive_type): New function.
11035 (ada_find_parallel_type_with_name): New function.
11036 (ada_find_parallel_type): Reimplement using
11037 ada_find_parallel_type_with_name.
11038 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11039 to check if type has a cplus stuff.
11040 * linespec.c (total_number_of_methods): Likewise.
11041 * mdebugread.c (new_type): Likewise.
11042
b0f02ee9
JK
110432010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11044
11045 * NEWS: Document the 0b binary number prefix parsing.
11046
b260e109
JK
110472010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11048
11049 * objfiles.c (objfile_relocate1): Change the return type to int.
11050 Describe the new return value. Return non-zero if data changed.
11051 (objfile_relocate): New variable changed. Set it. Call
11052 breakpoint_re_set depending on CHANGED.
11053
b5cfddf5
JK
110542010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11055
11056 Implement binary numbers parsing.
11057 * c-exp.y (parse_number): New case 'b' and 'B'.
11058
e0ae4240
JK
110592010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11060 Tristan Gingold <gingold@adacore.com>
11061
11062 * solib.c (info_sharedlibrary_command): Replace
11063 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11064 objfile_has_symbols.
11065
6e0e5977
JB
110662010-01-10 Joel Brobecker <brobecker@adacore.com>
11067
11068 * NEWS: Document the improvements made to the mips-irix port.
11069
7348c5e1
JB
110702010-01-09 Joel Brobecker <brobecker@adacore.com>
11071
11072 Fix the documentation of valprint.c:value_print.
11073 * valprint.c (value_print): Update the function description to
11074 mention that the syntax of the output follows the current_language,
11075 not necessarily C.
11076
567995e1
JK
110772010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11078
11079 Fix displacement of separate debug info files.
11080 * objfiles.c (objfile_relocate): Rename to ...
11081 (objfile_relocate1): ... here and make it static. Extend the comment.
11082 (objfile_relocate): New function.
11083 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11084 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11085 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11086 allocated using alloca.
11087 * symfile.c (copy_section_addr_info): Remove.
11088 (build_section_addr_info_from_objfile): Make it global. New variables
11089 addr_bit and mask, use them.
11090 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11091 (copy_section_addr_info): Remove.
11092
6d8eadbd
JB
110932010-01-09 Joel Brobecker <brobecker@adacore.com>
11094
11095 Signal unwinder for mips-irix N32.
11096 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11097 tramp-frame.h.
11098 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11099 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
11100 (SIGCONTEXT_LO_OFF): New macros.
11101 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
11102 (mips_irix_n32_tramp_frame): New static constant.
11103 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11104
27087a3d
JB
111052010-01-09 Joel Brobecker <brobecker@adacore.com>
11106
11107 Breakpoint in shared library does not work on mips-irix.
11108 * procfs.c: #include "observer.h".
11109 (procfs_inferior_created): New function, moving here the code
11110 which unsets the syssgi syscall-exit notifications.
11111 (procfs_create_inferior): Remove the code which unsets the syssgi
11112 syscall-exit notifications. It is too early to do this here.
11113 (_initialize_procfs): Attach the procfs_inferior_created observer.
11114
f08877ba
JB
111152010-01-09 Joel Brobecker <brobecker@adacore.com>
11116
11117 Wrong return convention for arrays (mips-irix).
11118 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11119 128 bits or smaller are returned the same way as structs
11120 and unions of the the same size.
11121
e4b97d48
JB
111222010-01-09 Joel Brobecker <brobecker@adacore.com>
11123
11124 Cannot set the PC on mips-irix.
11125 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11126 register number, no the cooked one.
11127
11377e68
JB
111282010-01-09 Joel Brobecker <brobecker@adacore.com>
11129
11130 Error while loading core file on mips-irix.
11131 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11132 if debugging from a core file.
11133
b2391021
JB
111342010-01-09 Joel Brobecker <brobecker@adacore.com>
11135
11136 GDB hangs when attaching to process on mips-irix.
11137 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11138 attaching to a process.
11139
f2ec0ecf
JB
111402010-01-09 Joel Brobecker <brobecker@adacore.com>
11141
11142 Use the correct breakpoint instruction on mips-irix.
11143 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11144 containing the correct breakpoint instruction to use on mips-irix.
11145 Use it when the osabi is GDB_OSABI_IRIX.
11146
3c95f01c
JB
111472010-01-09 Joel Brobecker <brobecker@adacore.com>
11148
11149 -Wunused warning in procfs.c (mips-irix only).
11150 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11151 throughout instead of using praddset and prdelset respectively.
11152
4b7703ad
JB
111532010-01-09 Joel Brobecker <brobecker@adacore.com>
11154
11155 GDB crash while stepping into function.
11156 * infrun.c (handle_inferior_event): Refetch the current frame
11157 after handling what.main_action, in case that pointer became
11158 dangling.
11159
12c89474
JB
111602010-01-09 Joel Brobecker <brobecker@adacore.com>
11161
11162 Fix build failure of solaris-hosted cross debuggers.
11163 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11164
1a3fd262 111652010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
11166
11167 Fix build failure on sparc-solaris.
11168 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11169
75242ef4
JK
111702010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11171
11172 Move some symfile code into subroutines.
11173 * symfile.h (relative_addr_info_to_section_offsets)
11174 (addr_info_make_relative): New prototypes.
11175 * symfile.c (default_symfile_offsets): Move a part to ...
11176 (relative_addr_info_to_section_offsets): ... this new function.
11177 (default_symfile_offsets): Call it.
11178 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11179 this part to ...
11180 (addr_info_make_relative): ... this new function.
11181
268a4a75
JK
111822010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11183
11184 Add from_tty to solib_create_inferior_hook.
11185 * infcmd.c (post_create_inferior): Move solib_add after
11186 solib_create_inferior_hook. Pass from_tty to
11187 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11188 0 from_tty and comment why.
11189 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11190 * linux-nat.c (linux_child_follow_fork): Likewise.
11191 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11192 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11193 from_tty.
11194 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11195 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11196 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11197 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11198 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11199 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11200 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11201 Pass it to svr4_so_ops.solib_create_inferior_hook.
11202 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11203 from_tty.
11204 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11205 solib_add.
11206 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11207 enable_break.
11208 * solib-target.c (solib_target_solib_create_inferior_hook): New
11209 parameter from_tty.
11210 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11211 it to ops->solib_create_inferior_hook.
11212 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11213 Move solib_add after solib_create_inferior_hook, call it now with
11214 from_tty as 0. New comment there.
11215 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11216 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11217 Likewise.
11218
cf00dfa7
VP
112192010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11220
11221 Fix multiexec race.
11222 * infrun.c (handle_inferior_event): Use get_thread_regcache
11223 with events ptid, not get_current_regcache.
11224
f91e5ac3
JB
112252009-01-08 Joel Brobecker <brobecker@adacore.com>
11226
11227 GDB crash with empty executable name (MinGW).
11228 * source.c (openp): Add assert that parameter string is not NULL.
11229 if parameter string is an empty string, then return with a failure
11230 immediately.
11231
92b9ce5b
JB
112322009-01-08 Joel Brobecker <brobecker@adacore.com>
11233
11234 Get rid of support for VAX Floats.
11235 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11236 (ada_vax_float_print_function): Delete.
11237 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11238 (ada_vax_float_print_function): Delete.
11239 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11240 (ada_print_type): Remove support for VAX floats.
11241 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11242
268a4a75 112432010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
11244
11245 * stabsread.c (read_args): Handle zero arguments.
11246
f0f20949
JB
112472009-01-08 Joel Brobecker <brobecker@adacore.com>
11248
11249 Cannot find in-tree libiconv.a after reconfigure.
11250 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11251 that we can use, then cache the path to this archive.
11252 * configure: Regenerate.
11253
6b6218c5
SS
112542010-01-07 Stan Shebs <stan@codesourcery.com>
11255
35b1e5cc
SS
11256 Make tracepoint operations go through target vector.
11257 * target.h (enum trace_find_type): New enum.
11258 (struct target_ops): New fields to_trace_init,
11259 to_download_tracepoint, to_download_trace_state_variable,
11260 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11261 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11262 to_set_disconnected_tracing.
11263 (target_trace_init): New macro.
11264 (target_download_tracepoint): New macro.
11265 (target_download_trace_state_variable): New macro.
11266 (target_trace_start): New macro.
11267 (target_trace_set_readonly_regions): New macro.
11268 (target_get_trace_status): New macro.
11269 (target_trace_stop): New macro.
11270 (target_trace_find): New macro.
11271 (target_get_trace_state_variable_value): New macro.
11272 (target_set_disconnected_tracing): New macro.
11273 * target.c (update_current_target): Inherit and set defaults for
11274 tracepoint operations.
11275 * tracepoint.c (default_collect): Make globally visible.
11276 (target_is_remote): Remove, along with all calls.
11277 (tvariables_info): Call target_get_trace_state_variable_value.
11278 (remote_set_transparent_ranges): Remove.
11279 (trace_start_command): Call target_trace_init,
11280 target_download_tracepoint, etc.
11281 (download_tracepoint): Remove.
11282 (trace_stop_command): Simplify.
11283 (stop_tracing): Call target_trace_stop.
11284 (get_trace_status): Call target_get_trace_status.
11285 (trace_status_command): Add case for targets that cannot trace.
11286 (finish_tfind_command): Change to take numerical arguments, call
11287 target_trace_find.
11288 (trace_find_command): Update call to finish_tfind_command.
11289 (trace_find_pc_command): Ditto.
11290 (trace_find_tracepoint_command): Ditto.
11291 (trace_find_line_command): Ditto.
11292 (trace_find_range_command): Ditto.
11293 (trace_find_outside_command): Ditto.
11294 (set_disconnected_tracing_value): Call
11295 target_set_disconnected_tracing.
11296 * remote.c: Add protocol encoding bits from tracepoint.c.
11297 (trace_error): Move from tracepoint.c.
11298 (remote_get_noisy_reply): Ditto.
11299 (free_actions_list_cleanup_wrapper): Ditto.
11300 (free_actions_list): Ditto.
11301 (remote_trace_init): New function.
11302 (remote_download_tracepoint): New function.
11303 (remote_download_trace_state_variable): New function.
11304 (remote_trace_set_readonly_regions): New function.
11305 (remote_trace_start): New function.
11306 (remote_get_trace_status): New function.
11307 (remote_trace_stop): New function.
11308 (remote_trace_find): New function.
11309 (remote_download_trace_state_variable): New function.
11310 (remote_set_disconnected_tracing): New function.
11311 (init_remote_ops): Add tracepoint operations.
11312
6b6218c5
SS
11313 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11314
089b4803
TG
113152010-01-07 Tristan Gingold <gingold@adacore.com>
11316
11317 * symfile.c (build_section_addr_info_from_objfile): New function.
11318 (symbol_file_add_separate): Don't use offsets from objfile but
11319 built an addr info.
11320
d5551862
SS
113212010-01-06 Stan Shebs <stan@codesourcery.com>
11322
11323 Support disconnected tracing.
11324 * infcmd.c (detach_command): Ask whether to stop tracing.
11325 * cli/cli-cmds.c (quit_command): Ditto.
11326 * breakpoint.h (struct breakpoint): New field number_on_target.
11327 * breakpoint.c (create_tracepoint_from_upload): New function.
11328 (get_tracepoint_by_number_on_target): New function.
11329 * remote.c (struct remote): New field disconnected_tracing.
11330 (remote_disconnected_tracing_feature): New function.
11331 (remote_protocol_features): Add DisconnectedTracing.
11332 (struct uploaded_tp): New struct.
11333 (uploaded_tps): New global.
11334 (get_uploaded_tp): New function.
11335 (find_matching_tracepoint): New function.
11336 (remote_get_tracing_state): New function.
11337 (remote_start_remote): Call it.
11338 * tracepoint.c (disconnected_tracing): New global.
11339 (trace_start_command): Initialize number_on_target.
11340 (stop_tracing): New function, split out from...
11341 (trace_stop_command): Call stop_tracing.
11342 (get_trace_status): New function, split out from...
11343 (trace_status_command): Call get_trace_status, add info on
11344 disconnection behavior.
11345 (disconnect_or_stop_tracing): New function.
11346 (finish_tfind_command): Translate from number on target.
11347 (trace_find_tracepoint_command): Translate to number on target.
11348 (send_disconnected_tracing_value): New function.
11349 (set_disconnected_tracing): New function.
11350 (_initialize_tracepoint): Add disconnected-tracing variable.
11351 * NEWS: Mention disconnected tracing.
11352
15d123c9
TG
113532010-01-06 Tristan Gingold <gingold@adacore.com>
11354
11355 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11356 parameter to main_objfile. Iterate on all separate debug objfiles.
11357 * symfile.h (symbol_file_add_separate)
11358 (find_separate_debug_file_by_debuglink): Remove parameter names.
11359 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11360 (reread_symbols): Use free_objfile_separate_debug.
11361 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11362 Adjust comment.
11363 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11364 (free_objfile_separate_debug): New prototypes.
11365 * objfiles.c (objfile_separate_debug_iterate): New function.
11366 (add_separate_debug_objfile, free_objfile_separate_debug): New
11367 functions.
11368 (free_objfile): Use free_objfile_separate_debug. Adjust for
11369 multiple separate debug objfile.
11370 (objfile_has_symbols): Adjust comment. Iterate on all separate
11371 debug objfiles.
11372 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11373 debug objfile.
11374 (lookup_minimal_symbol_text): Ditto.
11375 (lookup_minimal_symbol_by_pc_name): Ditto.
11376 (lookup_minimal_symbol_solib_trampoline): Ditto.
11377 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11378 debug objfiles.
11379
7a697b8d
SS
113802010-01-05 Stan Shebs <stan@codesourcery.com>
11381
11382 Add fast tracepoints.
11383 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11384 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11385 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11386 * breakpoint.c (tracepoint_type): New function.
11387 (ALL_TRACEPOINTS): Use it.
11388 (should_be_inserted): Ditto.
11389 (bpstat_check_location): Ditto.
11390 (print_one_breakpoint_location): Ditto.
11391 (user_settable_breakpoint): Ditto.
11392 (set_breakpoint_location_function): Ditto.
11393 (disable_breakpoints_in_shlibs): Ditto.
11394 (delete_trace_command): Ditto.
11395 (print_it_typical): Add bp_fast_tracepoint case.
11396 (bpstat_what): Ditto.
11397 (print_one_breakpoint_location): Ditto.
11398 (allocate_bp_location): Ditto.
11399 (mention): Ditto.
11400 (breakpoint_re_set_one): Ditto.
11401 (disable_command): Ditto.
11402 (enable_command): Ditto.
11403 (check_fast_tracepoint_sals): New function.
11404 (break_command_really): Call it.
11405 (ftrace_command): New function.
11406 (_initialize_breakpoint): Add ftrace command.
11407 * gdbarch.sh (fast_tracepoint_valid_at): New.
11408 * gdbarch.h, gdbarch.c: Regenerate.
11409 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11410 (i386_gdbarch_init): Use it.
11411 * remote.c (struct remote_state): New field fast_tracepoints.
11412 (PACKET_FastTracepoints): New packet config type.
11413 (remote_fast_tracepoint_feature): New function.
11414 (remote_protocol_features): Add FastTracepoints.
11415 (remote_supports_fast_tracepoints): New function.
11416 (_initialize_remote): Add FastTracepoints.
11417 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11418 * NEWS: Mention fast tracepoints.
11419
737a160e
JB
114202010-01-06 Joel Brobecker <brobecker@adacore.com>
11421
11422 * gdb-gdb.py: New file.
11423
ce6cca6d
MS
114242010-01-05 Michael Snyder <msnyder@vmware.com>
11425
11426 * infrun.c (handle_inferior_event): Fix typo in comment.
11427
0d15807d
JK
114282010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11429
11430 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11431
7803799a
UW
114322010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11433
c8d5aac9 11434 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
11435 and s390x-linux64.
11436 (s390-linux32-expedite): Define.
11437 (s390-linux64-expedite): Define.
11438 (s390x-linux64-expedite): Define.
11439 * features/s390-acr.xml: New file.
11440 * features/s390-fpr.xml: New file.
11441 * features/s390-core32.xml: New file.
11442 * features/s390-core64.xml: New file.
11443 * features/s390x-core64.xml: New file.
11444 * features/s390-linux32.xml: New file.
11445 * features/s390-linux64.xml: New file.
11446 * features/s390x-linux64.xml: New file.
11447 * features/s390-linux32.c: New generated file.
11448 * features/s390-linux64.c: New generated file.
11449 * features/s390x-linux64.c: New generated file.
11450
11451 * regformats/s390-linux32.dat: New generated file.
11452 * regformats/s390-linux64.dat: New generated file.
11453 * regformats/s390x-linux64.dat: New generated file.
11454 * regformats/reg-s390.dat: Remove.
11455 * regformats/reg-s390x.dat: Remove.
11456
11457 * s390-nat.c: Include "auxv.h" and <elf.h>.
11458 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11459 (s390_target_wordsize): New function.
11460 (s390_auxv_parse): Likewise.
11461 (s390_get_hwcap): Likewise.
11462 (s390_read_description): Likewise.
11463 (_initialize_s390_nat): Install s390_auxv_parse and
11464 s390_read_description.
11465
11466 * s390-tdep.c: Include "features/s390-linux32.c",
11467 "features/s390-linux64.c", and "features/s390x-linux64.c".
11468 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11469 (s390_register_call_saved): New function.
11470 (s390_register_name): Remove.
11471 (s390_register_type): Remove.
11472 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11473 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11474 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11475 (s390_pseudo_register_name): New function.
11476 (s390_pseudo_register_type): New function.
11477 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11478 Handle full GPR pesudos and varying pseudo register numbers.
11479 (s390_pseudo_register_write): Likewise
11480 (s390x_pseudo_register_read): Remove.
11481 (s390x_pseudo_register_write): Likewise.
11482 (s390_register_group): Remove.
11483 (s390_pseudo_register_group): New function.
11484 (s390_regmap_gregset): Add GPR upper halves.
11485 (s390x_regmap_gregset): Likewise.
11486 (s390_regmap_fpregset): Likewise.
11487 (s390_regmap_upper): New global variable.
11488 (s390_upper_regset): New global variable.
11489 (s390_upper_regset_sections): New global variable.
11490 (s390_regset_from_core_section): Handle GPR upper halves.
11491 (s390_core_read_description): New function.
11492 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11493 register information. Handle varying pseudo register numbers.
11494 (s390_backchain_frame_unwind_cache): Likewise.
11495 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11496 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11497 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11498 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11499 Handle varying pseudo register numbers.
11500 (s390_unwind_pc): Handle varying pseudo register numbers.
11501 (s390_dwarf2_prev_register): New function.
11502 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11503 register information. Handle varying pseudo register numbers.
11504 Install s390_dwarf2_prev_register to unwind full GPRs.
11505 (s390_gdbarch_init): Handle target descriptions. Assign varying
11506 pseudo register numbers. Install s390_adjust_frame_regnum.
11507 (_initialize_s390_tdep): Initialize target descriptions.
11508
11509 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11510 (S390_NUM_REGS): Redefine to include upper half registers.
11511 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11512 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11513 (tdesc_s390_linux32): Add declaration.
11514 (tdesc_s390_linux64): Likewise.
11515 (tdesc_s390x_linux64): Likewise.
11516
1b1818e4
UW
115172010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11518
11519 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11520 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11521 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11522 (ppc_linux_vmx_regset_sections): Likewise.
11523 (ppc_linux_fp_regset_sections): Likewise.
11524
11525 * corelow.c (get_core_register_section): Constify arguments.
11526 (get_core_registers): Use gdbarch_core_regset_sections instead
11527 of hard-coded platform-specific register section names.
11528
dcbf108f
UW
115292010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11530
11531 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11532 a register, assume the least-significant part is used.
dcbf108f
UW
11533 (write_pieced_value): Likewise.
11534
704e9165
UW
115352010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11536
11537 * printcmd.c: Include "arch-utils.h".
11538 (do_one_display): Re-parse expression if current architecture changed.
11539
c54eabfa
JK
115402010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11541 Joel Brobecker <brobecker@adacore.com>
11542
11543 * gdbtypes.c (check_typedef): New comment on type length.
11544 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11545 comment on type length.
11546 (value_primitive_field): Keep the original TYPE value, new comment.
11547
50cb2941
JK
115482010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11549
11550 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11551 p_start. Change != comparisons to > and < comparisons.
11552
be66db07
JK
115532010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11554
11555 * cli/cli-script.c (process_next_line): Check P2 overrun.
11556
abd775ce
JB
115572009-01-01 Joel Brobecker <brobecker@adacore.com>
11558
11559 Update the copyright hearder to add year 2010 for most GDB files.
11560
6479260d
JB
115612009-01-01 Joel Brobecker <brobecker@adacore.com>
11562
11563 Fix build failure in inf-ptrace.c.
11564 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11565
4a70f654
JB
115662010-01-01 Joel Brobecker <brobecker@adacore.com>
11567
11568 * top.c (print_gdb_version): Update copyright year.
11569
595939de 115702010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11571
11572 Fix break *FUN'address thread NUM.
11573 * ada-lex.l (task): Expand rule to also match the thread keyword.
11574
70575d34
JB
115752010-01-01 Joel Brobecker <brobecker@adacore.com>
11576
11577 Fix break *FUN'address task NUM.
11578 * ada-lex.l (task): New rule.
11579 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11580 been built before using it.
11581
e1e4d4a4 11582For older changes see ChangeLog-2009.
c906108c
SS
11583\f
11584Local Variables:
11585mode: change-log
11586left-margin: 8
11587fill-column: 74
11588version-control: never
57da7796 11589coding: utf-8
c906108c 11590End:
This page took 5.122887 seconds and 4 git commands to generate.