* psympriv.h (struct partial_symtab) <readin>: Move field
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
900c7f9d
TT
12010-12-17 Tom Tromey <tromey@redhat.com>
2
3 * psympriv.h (struct partial_symtab) <readin>: Move field
4 earlier.
5
ee51a8c7
KB
62010-12-16 Kevin Buettner <kevinb@redhat.com>
7
8 * mips-tdep.c (mips_convert_register_float_case_p)
9 (mips_convert_register_gpreg_case_p): New functions.
10 (mips_convert_register_p): Invoke new functions above.
11 (mips_register_to_value): Add case for fetching value shorter
12 than 64 bits from a 64-bit register.
13 (mips_value_to_register): Add case for storing value shorter
14 than 64 bits into a 64-bit register.
15
fa595c27
TT
162010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
17
18 * python/py-value.c (value_object_type) <tp_flags>: Add
19 Py_TPFLAGS_BASETYPE.
20
448a92bf
MF
212010-12-16 Mike Frysinger <vapier@gentoo.org>
22
23 * NEWS: Mention new sim --map-info flag.
24
fc1a9d6e
DE
252010-12-15 Doug Evans <dje@google.com>
26
27 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
28 "save gdb-index" command.
29
5b79abe7
TT
302010-12-15 Tom Tromey <tromey@redhat.com>
31
32 * infrun.c (save_infcall_control_state): Handle the
33 exception-resume breakpoint.
34 (restore_infcall_control_state): Likewise.
35 (discard_infcall_control_state): Likewise.
36
8bdf35dc
KB
372010-12-15 Kevin Buettner <kevinb@redhat.com>
38
39 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
40 cooked values that are being transferred to 64-bit raw registers.
41 (mips_pseudo_register_read): Revise to preserve symmetry with
42 mips_pseudo_register_write().
43
45ccdddc
TT
442010-12-15 Greg Watson <g.watson@computer.org>
45
46 * f-exp.y (yylex): Check entire token against keywords.
47
a86caf66
DE
482010-12-15 Doug Evans <dje@google.com>
49
50 Rename "maint set python auto-load" to "set auto-load-scripts".
51 * NEWS: Mention it.
52 * python/py-auto-load.c (auto_load_scripts): Renamed from
53 gdbpy_auto_load.
54 (load_auto_scripts_for_objfile): Update.
55 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
56 "set auto-load-scripts".
57
a8852dc5
KB
582010-12-14 Kevin Buettner <kevinb@redhat.com>
59
60 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
61 than unsigned, values in registers.
62
b6c882c7
L
632010-12-14 Ken Werner <ken.werner@de.ibm.com>
64
65 * valops.c (value_one): Use get_array_bounds to compute the number
66 of array elements instead of dividing the length of the array by the
67 length of the element types.
68 * valarith.c (value_complement, value_neg): Likewise.
69
043b6510
JB
702010-12-14 Joel Brobecker <brobecker@adacore.com>
71
72 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
73 and __fp_scr respectively throughout.
74 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
75 Python using GCC on IRIX.
76 * configure: Regenerate.
77
c6490bf2
KB
782010-12-13 Kevin Buettner <kevinb@redhat.com>
79
80 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
81 when attaching, on the names in bkpt_names: _start, __start, and
82 main.
83
0914bcdb
SS
842010-12-12 Stan Shebs <stan@codesourcery.com>
85
86 * value.c (value_of_internalvar): Add case for trace state
87 variables.
88
7b9f3c50
DE
892010-12-12 Doug Evans <dje@google.com>
90
91 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
92 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
93 section. Delete members lines full_names. Rename read_lines to
94 no_file_data.
95 (quick_file_names): New struct.
96 (hash_file_name_entry, eq_file_name_entry): New functions.
97 (delete_file_name_entry, create_quick_file_names_table): New functions.
98 (dwarf2_read_index): Initialize quick_file_names_table.
99 (dw2_get_file_names): Renamed from dw2_require_line_header.
100 Return pointer to quick_file_names entry. All callers updated.
101 (dw2_get_real_path): Renamed from dw2_require_full_path.
102 Replace per_cu arg with pointer to quick_file_names entry.
103 All callers updated.
104 (dw2_free_cached_file_names): New function.
105 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
106 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
107 the OBJF_READNOW case.
108 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
109
1583e7ea 1102010-12-12 Mark Kettenis <kettenis@gnu.org>
89fa5cc8
MK
111
112 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
113 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
114
7a58cce8
MK
1152010-12-12 Mark Kettenis <kettenis@gnu.org>
116
117 * sparc-tdep.c: Fix typo in comment.
118
ae2de4f8
DE
1192010-12-10 Doug Evans <dje@google.com>
120
121 * dwarf2read.c: Whitespace cleanup, plus comment additions.
122 No code changes.
123
66cb8159
TT
1242010-12-10 Tom Tromey <tromey@redhat.com>
125
126 * NEWS: Document exception-handling change.
127
30a7f059
MK
1282010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
129
130 * mi/mi-parse.c (mi_parse): Wrong error message.
131
ad727bb2
DE
1322010-12-09 Doug Evans <dje@google.com>
133
134 * symfile.h (quick_symbol_functions): Clarify usage of
135 map_symbol_filenames.
136
305aeedc
TT
1372010-12-09 Tom Tromey <tromey@redhat.com>
138
139 * mi/mi-parse.h (mi_parse): Update.
140 * mi/mi-parse.c (mi_parse_cleanup): New function.
141 (mi_parse): Add 'token' argument. Throw exception on error.
142 * mi/mi-main.c (mi_print_exception): New function.
143 (mi_execute_command): Use mi_print_exception. Catch exceptions
144 from mi_parse.
145
186c406b
TT
1462010-12-09 Tom Tromey <tromey@redhat.com>
147
148 PR c++/9593:
149 * thread.c (clear_thread_inferior_resources): Call
150 delete_longjmp_breakpoint.
151 * infrun.c (handle_inferior_event): Handle exception breakpoints.
152 (handle_inferior_event): Likewise.
153 (insert_exception_resume_breakpoint): New function.
154 (check_exception_resume): Likewise.
155 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
156 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
157 (step_1): Set thread's initiating frame.
158 (until_next_continuation): New function.
159 (until_next_command): Support exception breakpoints.
160 (finish_command_continuation): Delete longjmp breakpoint.
161 (finish_forward): Support exception breakpoints.
162 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
163 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
164 bp_exception_master>: New constants.
165 (struct bpstat_what) <is_longjmp>: New field.
166 (set_longjmp_breakpoint): Update.
167 * breakpoint.c (create_exception_master_breakpoint): New function.
168 (update_breakpoints_after_exec): Handle bp_exception_master. Call
169 create_exception_master_breakpoint.
170 (print_it_typical): Handle bp_exception_master, bp_exception.
171 (bpstat_stop_status): Handle bp_exception_master.
172 (bpstat_what): Handle bp_exception_master, bp_exception,
173 bp_exception_resume.
174 (bptype_string): Likewise.
175 (print_one_breakpoint_location): Likewise.
176 (allocate_bp_location): Likewise.
177 (set_longjmp_breakpoint): Handle exception breakpoints. Change
178 interface.
179 (delete_longjmp_breakpoint): Handle exception breakpoints.
180 (mention): Likewise.
181 (struct until_break_command_continuation_args) <thread_num>: New
182 field.
183 (until_break_command_continuation): Call
184 delete_longjmp_breakpoint.
185 (until_break_command): Support exception breakpoints.
186 (delete_command): Likewise.
187 (breakpoint_re_set_one): Likewise.
188 (breakpoint_re_set): Likewise.
189
1ef75ecc
DE
1902010-12-08 Doug Evans <dje@google.com>
191
4e4666e6
DE
192 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
193
73e2eb35
DE
194 * gdbtypes.c (check_typedef): Tweak comment.
195
0a5429f6
DE
196 PR symtab/12302
197 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
198 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
199 (struct addrmap_index_data): New struct.
200 (add_address_entry): Remove arg `pst', new args `start', `end'.
201 (add_address_entry_worker, write_address_map): New functions.
202 (write_psymtabs_to_index): Address table generation moved to
203 write_address_map. Build a table mapping psymtab to CU index
204 to pass to it.
205
7e17e088
DE
206 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
207 name to perror.
208
d4637a04
DE
209 * symfile.h (quick_symbol_functions): Clarify usage of
210 expand_symtabs_with_filename.
211 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
212 comp units, ignore type units.
213
1ef75ecc
DE
214 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
215
aae1c79a
DE
2162010-12-07 Doug Evans <dje@google.com>
217
74dd2ca6
DE
218 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
219 gdb_realpath.
220
aae1c79a
DE
221 PR python/12227
222 * NEWS: Mention -data-directory.
223 * main.c (captured_main): Recognize -data-directory.
224
8e0e408a
MK
2252010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
226
227 * mi/mi-parse.c (mi_parse): Missing else.
228
97fc68fe
MM
2292010-12-04 Masaki Muranaka <monaka@monami-software.com>
230
231 * configure.tgt: Accept microblaze*-*-linux* for linux target
232 and microblaze*-*-* for as target.
233
d03a3acf
KS
2342010-12-02 Keith Seitz <keiths@redhat.com>
235
236 * linespec.c (find_method): Move name canonicalization outside
237 the loop.
238 Be paranoid and use a cleanup.
239
148c11bf
DE
2402010-12-01 Doug Evans <dje@google.com>
241
242 * dwarf2read.c (save_gdb_index_command): Add comment.
243
4aac0db7
UW
2442010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
245
246 * valops.c (value_assign): Returned value is never lazy. If a
247 C++ class type is returned, fix incorrect enclosing type / embedded
248 offset. If internal variable is returned, allocate new internalvar
249 value using value_of_internalvar.
250
251 * NEWS: Document changes in behavior of "print x = 0" and similar
252 expressions.
253
4e04c971
DE
2542010-11-29 Doug Evans <dje@google.com>
255
256 * python/lib/gdb/printing.py (register_pretty_printer): Change
257 printer-name:subprinter-name to printer-name;subprinter-name.
258 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
259 Ditto.
260 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
261
8cf6f0b1
TT
2622010-11-29 Tom Tromey <tromey@redhat.com>
263
264 * opencl-lang.c (lval_func_check_synthetic_pointer): New
265 function.
266 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
267 New fields.
268 (value_bits_synthetic_pointer): Declare.
269 * value.c (value_bits_synthetic_pointer): New function.
270 * valprint.c (valprint_check_validity): Handle synthetic
271 pointers.
272 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
273 * valarith.c (value_ptradd): Use set_value_component_location.
274 * p-valprint.c (pascal_object_print_value_fields): Handle
275 synthetic pointers.
276 * jv-valprint.c (java_print_value_fields): Handle synthetic
277 pointers.
278 * dwarf2read.c (dwarf_stack_op_name): Add
279 DW_OP_GNU_implicit_pointer.
280 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
281 arguments. Handle location lists.
282 (fill_in_loclist_baton): New function.
283 (dwarf2_symbol_mark_computed): Use it.
284 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
285 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
286 arguments.
287 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
288 find_location_expression. No longer static. Update all callers.
289 (dwarf_expr_frame_pc): New function.
290 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
291 all callers.
292 (struct piece_closure) <per_cu>: New field.
293 (allocate_piece_closure): Add per_cu argument.
294 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
295 (check_pieced_value_bits): Remove validity argument, add check_for
296 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
297 (check_pieced_value_validity, check_pieced_value_invalid):
298 Update.
299 (check_pieced_synthetic_pointer): New function.
300 (get_frame_address_in_block_wrapper): New function.
301 (indirect_pieced_value): New function.
302 (pieced_value_funcs): Update.
303 (invalid_synthetic_pointer): New function.
304 (dwarf2_evaluate_loc_desc_full): Rename from
305 dwarf2_evaluate_loc_desc. Add byte_offset argument.
306 (dwarf2_evaluate_loc_desc): Rewrite.
307 (dwarf2_loc_desc_needs_frame): Set new field on context.
308 (get_ax_pc): New function.
309 (disassemble_dwarf_expression): Handle
310 DW_OP_GNU_implicit_pointer.
311 * dwarf2expr.h (enum dwarf_value_location)
312 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
313 (struct dwarf_expr_context) <get_frame_pc>: New field.
314 (struct dwarf_expr_piece) <v.ptr>: New field.
315 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
316 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
317 * dwarf2-frame.c (no_get_frame_pc): New function.
318 (execute_stack_op): Set new field on context.
319 * cp-valprint.c (cp_print_value_fields): Handle synthetic
320 pointers.
321
94b6973e
PM
3222010-11-29 Phil Muldoon <pmuldoon@redhat.com>
323
324 PR python/12199
325
326 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
327
8358c15c
JK
3282010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
329
330 Fix step_resume_breakpoint unsaved during an infcall.
331 * gdbthread.h (struct thread_control_state): Move here field
332 step_resume_breakpoint ...
333 (struct thread_info): ... from here.
334 * infrun.c (save_infcall_control_state): Reset
335 control.step_resume_breakpoint to NULL.
336 (restore_infcall_control_state, discard_infcall_control_state): Delete
337 control.step_resume_breakpoint.
338 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
339 the moved field.
340
16c381f0
JK
3412010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
342
343 Rename and move inferior_thread_state and inferior_status.
344 * gdbthread.h (struct thread_control_state): New struct, move fields
345 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
346 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
347 stop_step and stop_bpstat here from struct thread_info.
348 (struct thread_suspend_state): New struct, move field stop_signal here
349 from struct thread_info.
350 (struct thread_info): Move the fields above from this struct.
351 * inferior.h: Move the inferior_thread_state and inferior_status
352 declarations comment to their definitions at infrun.c.
353 (struct inferior_control_state): New struct, move field stop_soon from
354 struct inferior here.
355 (struct inferior_suspend_state): New empty struct.
356 (struct inferior): New fields control and suspend. Move out field
357 stop_soon.
358 * infrun.c (struct inferior_thread_state): Rename to ...
359 (infcall_suspend_state): ... here. Replace field stop_signal by
360 fields thread_suspend and inferior_suspend.
361 (save_inferior_thread_state): Rename to ...
362 (save_infcall_suspend_state): ... here. New variable inf. Update the
363 code for new fields.
364 (restore_inferior_thread_state): Rename to ...
365 (restore_infcall_suspend_state): ... here. New variable inf. Update
366 the code for new fields.
367 (do_restore_inferior_thread_state_cleanup): Rename to ...
368 (do_restore_infcall_suspend_state_cleanup): ... here.
369 (make_cleanup_restore_inferior_thread_state): Rename to ...
370 (make_cleanup_restore_infcall_suspend_state): ... here.
371 (discard_inferior_thread_state): Rename to ...
372 (discard_infcall_suspend_state): ... here.
373 (get_inferior_thread_state_regcache): Rename to ...
374 (get_infcall_suspend_state_regcache): ... here.
375 (struct inferior_status): Rename to ...
376 (struct infcall_control_state): ... here. Replace fields
377 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
378 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
379 stop_step, stop_bpstat and stop_soon by fields thread_control and
380 inferior_control.
381 (save_inferior_status): Rename to ...
382 (save_infcall_control_state): ... here. Update the code for new
383 fields.
384 (restore_inferior_status): Rename to ...
385 (restore_infcall_control_state): ... here. Update the code for new
386 fields.
387 (do_restore_inferior_status_cleanup): Rename to ...
388 (do_restore_infcall_control_state_cleanup): ... here.
389 (make_cleanup_restore_inferior_status): Rename to ...
390 (make_cleanup_restore_infcall_control_state): ... here.
391 (discard_inferior_status): Rename to ...
392 (discard_infcall_control_state): ... here.
393 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
394 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
395 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
396 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
397 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
398 references to the moved fields and renamed functions.
399
35515841
JK
4002010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
401
402 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
403 the comment.
404 (save_inferior_thread_state): Reset tp->stop_signal.
405
fef8420a
JK
4062010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
407
7ea14533
JK
408 * infcall.c (call_function_by_hand): Remove variable
409 caller_state_cleanup.
fef8420a 410
f5a8e22b
MK
4112010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
412
413 PR breakpoints/12217
414
415 * breakpoint.c (is_marker_spec): Check for NULL.
416
50389644
PA
4172010-11-25 Pedro Alves <pedro@codesourcery.com>
418
419 * breakpoint.h: No longer include python.h or python-internal.h.
420 (struct breakpoint_object): Forward declare.
421 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
422 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
423 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
424 PyObject pointer.
425 (gdbpy_breakpoint_created): Remove casts around py_bp_object
426 accesses.
427
50a99728
JB
4282010-11-24 Joel Brobecker <brobecker@adacore.com>
429
430 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
431 only if HAVE_ELF is defined.
432
d82142e2
JK
4332010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
434
a418ecb5
JK
435 Code cleanup.
436 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
437 (save_inferior_status) <stepping_over_breakpoint>
438 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
439 trap_expected.
440 (struct inferior_status) <step_resume_break_address>: Remove.
441
4422010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
443
444 Code cleanup.
d82142e2
JK
445 * infrun.c (struct inferior_status, save_inferior_status)
446 (restore_inferior_status): Group and reorder the fields, comment their
447 groups.
448
2edb89d3
JK
4492010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
450
451 Code cleanup.
452 * dictionary.c
453 (struct dict_vector) <iter_match_first, iter_match_next>
454 (iter_match_first_hashed, iter_match_next_hashed)
455 (iter_match_first_linear, iter_match_next_linear)
456 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
457 (iter_match_next_hashed, iter_match_first_linear)
458 (iter_match_next_linear): Use symbol_compare_ftype.
459 * dictionary.h: Include symfile.h.
460 (dict_iter_match_first, dict_iter_match_next): Use
461 symbol_compare_ftype.
462 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
463 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
464 (map_matching_symbols_psymtab): Likewise.
465 * symfile.h (symbol_compare_ftype): New typedef.
466 (struct quick_symbol_functions) <map_matching_symbols): Use
467 symbol_compare_ftype.
468
5ae98d25
TT
4692010-11-23 Tom Tromey <tromey@redhat.com>
470
39037522
TT
471 * configure: Rebuild.
472 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
473
4742010-11-19 Tom Tromey <tromey@redhat.com>
475
5ae98d25
TT
476 * Makefile.in (SUBDIRS): Add doc.
477 * configure: Rebuild.
478 * configure.ac: Don't configure in doc. Create doc/Makefile.
479
ea976c60
PM
4802010-11-23 Phil Muldoon <pmuldoon@redhat.com>
481
482 PR python/12212
483
484 * python/py-inferior.c (find_thread_object): Check if PIDGET
485 returns 0.
486
487010-11-22 Joel Brobecker <brobecker@adacore.com>
d94e4f4f
JB
488
489 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
490
96dbd2c1
JB
4912010-11-22 Joel Brobecker <brobecker@adacore.com>
492
493 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
494 Return the original type if the main type portions match rather
495 than when the type themselves match.
496
27f2a97b
JB
4972010-11-22 Joel Brobecker <brobecker@adacore.com>
498
499 * ada-lang.c (ada_template_to_fixed_record_type_1):
500 For dynamic fields, check the field size against the maximum
501 object size.
502
1324a0d9
JB
5032010-11-22 Joel Brobecker <brobecker@adacore.com>
504
505 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
506 function.
507 (mips_irix_n32_stack_tramp_frame): New static global.
508 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
509 list of unwinder.
510
09e7f15b
JB
5112010-11-22 Jerome Guitton <guitton@adacore.com>
512
513 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
514 ATCB symbols.
515
3a867c22
JB
5162010-11-22 Joel Brobecker <brobecker@adacore.com>
517
518 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
519 if type1 is a typedef.
520
df30368d
JB
5212010-11-22 Joel Brobecker <brobecker@adacore.com>
522
523 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
524 "_finalizer" to the list.
525
4889bbbc
JB
5262010-11-22 Joel Brobecker <brobecker@adacore.com>
527
528 * symfile.c: Remove all "#if 0"/"#endif" blocks.
529
0d14a781
JB
5302010-11-22 Joel Brobecker <brobecker@adacore.com>
531
532 * symfile.c: Add missing second space after period in various comments.
533
feb864b7
JB
5342010-11-22 Joel Brobecker <brobecker@adacore.com>
535
536 * ada-typeprint.c (print_array_type): Fix formatting in comment.
537 (print_selected_record_field_types): Fix formatting in function
538 documentation.
539
04f9d4d0
JB
5402010-11-22 Joel Brobecker <brobecker@adacore.com>
541
542 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
543 in name of "show ravenscar" prefix command name.
544
b64edec4
JB
5452010-11-22 Joel Brobecker <brobecker@adacore.com>
546
547 * ravenscar-thread.c (show_ravenscar_task_switching_command):
548 Add missing '\n' in output.
549
7f39f34a
JB
5502010-11-22 Joel Brobecker <brobecker@adacore.com>
551
552 * ravenscar-thread.c (running_thread_name): Change value.
553 (read_thread_id): Remove advance declaration.
554 (get_running_thread_msymbol): New function.
555 (has_ravenscar_runtime): Use get_running_thread_msymbol to
556 compute msym_running_thread.
557 (get_running_thread_id): Renames read_thread_id. Slight modifications
558 to not take any argument anymore, using get_running_thread_msymbol
559 to determine which symbol to use instead.
560 (ravenscar_running_thread): Use get_running_thread_id instead of
561 read_thread_id.
562
f3890d59
JB
5632010-11-22 Joel Brobecker <brobecker@adacore.com>
564
565 * ravenscar-sparc-thread.c (supply_register_at_address):
566 Fix passing of buf in call to regcache_raw_supply.
567
594e8718
JK
5682010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
569
570 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
571
7ba86c9e
TT
5722010-11-22 Tom Tromey <tromey@redhat.com>
573
574 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
575
1bfda48e
KS
5762010-11-19 Keith Seitz <keiths@redhat.com>
577
578 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
579 Remove extraneous '/' after $(DESTDIR).
580 (PYTHON_INSTALL_DIR): Likewise.
581
3f1eff0a
JK
5822010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
583
584 Fix stale memory references.
585 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
586 xfree, new comment.
587
954d8cae
TT
5882010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
589 Tom Tromey <tromey@redhat.com>
590
591 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
592 (.PHONY): Remove for .y outputs.
593
d53d4ac5
TT
5942010-11-19 Will Drewry <wad@google.com>
595 Tavis Ormandy <taviso@google.com>
596 Jan Kratochvil <jan.kratochvil@redhat.com>
597
598 * dwarf2read.c (decode_locdesc): Enforce location description stack
599 boundaries.
600
77bc0675
PM
6012010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
602
603 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
604 instruction is found.
605
ba19bb4d
TT
6062010-11-17 Tom Tromey <tromey@redhat.com>
607
608 * value.c (value_entirely_optimized_out): Check the
609 'check_any_valid' field.
610
19f220c3
JK
6112010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
612
613 * ada-lang.c (modify_general_field): Remove.
614 (make_array_descriptor): Replace all modify_general_field calls by
615 modify_field.
616 * value.c (modify_field): Update comment. New variable bytesize.
617 Normalize BITPOS. Initialize BYTESIZE, use it.
618
87df528e
JK
6192010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
622 elements after xfree.
623
97924a97
TT
6242010-11-16 Tom Tromey <tromey@redhat.com>
625
626 * gdb-add-index.sh: Really remove.
627
9816fde3
JK
6282010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
629
630 Code cleanup.
631 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
632 (init_one_comp_unit): ... this one.
633 (prepare_one_comp_unit): New prototype.
634 (dw2_require_line_header, process_psymtab_comp_unit): Use
635 init_one_comp_unit.
636 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
637 (load_partial_comp_unit): Remove variable attr. Use
638 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
639 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
640 prepare_one_comp_unit.
641 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
642 Use prepare_one_comp_unit.
643 (alloc_one_comp_unit): Rename to ...
644 (init_one_comp_unit): ... here and remove there calloc, new parameter
645 cu.
646 (prepare_one_comp_unit): New function.
647
73c964d6
PM
6482010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
649
650 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
651 possible used of uninitialized variable.
652
74af9197
NF
6532010-11-12 Nathan Froyd <froydnj@codesourcery.com>
654
655 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
656 (rs6000_gdbarch_init): Call it.
657
e52d5016
NF
6582010-11-12 Nathan Froyd <froydnj@codesourcery.com>
659
660 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
661 instructions if debugging an E500 binary.
662
621c8364
TT
6632010-11-12 Tom Tromey <tromey@redhat.com>
664
665 * varobj.c (value_get_print_value): Rearrange. Pass stream to
666 apply_varobj_pretty_printer.
667 * c-lang.c: Include exceptions.h.
668 (c_get_string): Throw MEMORY_ERROR when appropriate.
669 * python/py-prettyprint.c (enum string_repr_result): New.
670 (print_stack_unless_memory_error): New function.
671 (print_string_repr): Change return type. Use
672 print_stack_unless_memory_error.
673 (print_children): Use print_stack_unless_memory_error.
674 (apply_val_pretty_printer): Update. Don't print children if
675 string representation threw an exception.
676 (apply_varobj_pretty_printer): Add 'stream' argument. Use
677 print_stack_unless_memory_error.
678 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
679 globals.
680 (_initialize_python): Initialize them.
681 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
682 gdbpy_convert_exception.
683 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
684 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
685 (gdbpy_convert_exception): Declare.
686 (apply_varobj_pretty_printer): Update.
687 * python/py-utils.c (gdbpy_convert_exception): New function.
688
f1b9e6e7
MK
6892010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
690
691 * mi/mi-main.c (mi_cmd_target_detach): Accept new
692 thread-group id format.
693
74884f7b
JK
6942010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
695
696 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
697
84f4c1fe
PM
6982010-11-11 Phil Muldoon <pmuldoon@redhat.com>
699
700 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
701 NULL.
702 (BPPY_SET_REQUIRE_VALID): Ditto.
703 (bpnum_is_valid): Delete function.
704 (bppy_get_visibility): New function.
705 (bppy_new): Parse for, and validate internal keyword. Pass
706 internal keyword to breakpoint or watchpoint functions.
707 (build_bp_list): New function.
708 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
709 iterate_over_breakpoints.
710 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
711 look-aside vector.
712 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
713 to internal breakpoint chain.
714
715 * breakpoint.c (set_breakpoint_number): New function.
716 (breakpoint_1): Check if breakpoint number is more than zero.
717 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
718 (create_breakpoint_sal): Take a new parameter called internal.
719 Call set_breakpoint_number with internal parameter. Do not
720 mention internal breakpoints. All callers updated.
721 (create_breakpoint): Ditto.
722 (create_breakpoints_sal): Ditto.
723 (watch_command_1): Ditto.
724 (watch_command_wrapper): Take a new parameter called internal.
725 All callers updated.
726 (rwatch_command_wrapper): Ditto.
727 (awatch_command_wrapper): Ditto.
728 (save_breakpoints): Update breakpoint save condition check.
729 (iterate_over_breakpoints): New function.
730 * breakpoint.h: Add conditional python includes. Add py_bp_object
731 and comment to struct breakpoint. Update all callers.
732 * defs.h: Add PyObject definition for GDB builds without Python.
733
4dfea560
DE
7342010-11-10 Doug Evans <dje@google.com>
735
f61a2da7
DE
736 * python/lib/gdb/command/pretty_printers.py
737 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
738
4dfea560
DE
739 * value.c (set_value_enclosing_type): Renamed from
740 value_change_enclosing_type. All callers updated.
741 * value.h (set_value_enclosing_type): Update.
742 * valops.c (value_full_object): Always return a copy if we need to
743 make changes to the input value.
744
a1442452
PA
7452010-11-09 Pedro Alves <pedro@codesourcery.com>
746
747 * breakpoint.c (watch_command_1): Get a pointer of the lazy
748 version of the expression's value, even if reading the value from
749 memory fails. When creating a -location watchpoint, get the
750 value's address from the lazy value pointer.
751
803b5f95
JK
7522010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
753
754 * infrun.c (restore_inferior_thread_state): Use
755 discard_inferior_thread_state to free the data.
756 (discard_inferior_thread_state): xfree also siginfo_data.
757
99e7ae30
DE
7582010-11-05 Doug Evans <dje@google.com>
759
760 Make gdb.parameter("directories") work.
761 New command "set directories".
762 * NEWS: Document them.
763 * source.c (set_directories_command): New function.
764 (show_directories_1): Renamed from show_directories.
765 All callers updated.
766 (show_directories_command): New function.
767 (_initialize_source): Install "directories" as a set/show
768 variable instead of just a show command.
769
f4b8a18d
KW
7702010-11-05 Ken Werner <ken.werner@de.ibm.com>
771
772 * NEWS: Mention OpenCL C language support.
773 * Makefile.in (SFILES): Add opencl-lang.c.
774 (COMMON_OBS): Add opencl-lang.o.
775 * opencl-lang.c: New File
776 * defs.h (enum language): Add language_opencl.
777 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
778 IBM XL C OpenCL compiler.
779 * c-lang.h: Include "parser-defs.h".
780 (evaluate_subexp_c): Declare.
781 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
782 (c_op_print_tab): Add declaration.
783 * eval.c (binop_promote): Handle language_opencl.
784 * c-exp.y: Lookup the primitive types instead of referring to the
785 builtins.
786
075ff26d
JK
7872010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
788
789 Fix configure --enable-plugins --without-python.
790 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
791 * configure: Regenerate.
792
14ad3217
JK
7932010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
794
795 * solib.c (solib_read_symbols): Call exception_fprintf even without
796 FROM_TTY. Print also so->so_name.
797
a9d5ef47
SW
7982010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
799
800 * gdbtypes.h (struct rank): Created subrank.
801 * gdbtypes.c: Initialized subrank for all
802 'BADNESS' constants.
803 (distance_to_ancestor): New function.
804 (is_ancestor): Use distance_to_ancestor.
805 (is_public_ancestor): Ditto.
806 (sum_ranks): Handle subrank.
807 (compare_ranks): Ditto.
808 (rank_one_type): Subrank base conversions.
809
6403aeea
SW
8102010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
811
812 * gdbtypes.h: Create struct rank.
813 Convert all 'BADNESS' macros to const struct rank declarations.
814 (sum_ranks): New function.
815 (compare_ranks): New function.
816 * valops.c (find_oload_champ): Updated.
817 (classify_oload_match): Use compare_ranks.
818 Improved comments.
819 (compare_parameters): Use compare_ranks.
820 * gdbtypes.c: Initialize 'BADNESS' constants.
821 (sum_ranks): New function.
822 (compare_ranks): New function.
823 (compare_badness): Use compare_ranks.
824 (rank_function): Use global constants instead of literals.
825 (rank_one_type): Ditto.
826 Return struct rank.
827 Use sum_ranks.
828
23fa7f66
DE
8292010-11-04 Doug Evans <dje@google.com>
830
831 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
832 (find_pretty_printer): Fix comments.
833
608bcef2
HZ
8342010-11-04 Hui Zhu <teawater@gmail.com>
835
836 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
837
9addb3b9
JB
8382010-11-03 Joel Brobecker <brobecker@adacore.com>
839
840 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
841 and `len' declaration and computation inside block where they
842 are being used.
843
75be741b
JB
8442010-11-03 Joel Brobecker <brobecker@adacore.com>
845
846 * valprint.c (val_print_array_elements): Put back handling of
847 empty arrays.
848
dbc98a8b
KW
8492010-11-03 Ken Werner <ken.werner@de.ibm.com>
850
851 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
852 DIE and set the length of the type.
853 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
854 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
855 return 0 if the corresponding bounds of the type are undefined.
856 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
857 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
858 (val_print_array_elements): Use get_array_bounds to compute the number
859 of array elements instead of dividing the length of the array by the
860 length of the element types.
861 * valarith.c (vector_binop): Likewise.
862 * valops.c (value_cast): Likewise.
863 * c-valprint.c (c_val_print): Likewise.
864 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
865
120bd360
KW
8662010-11-03 Ken Werner <ken.werner@de.ibm.com>
867
868 * valarith.c (value_pos, value_neg, value_complement): Handle
869 vector types.
870 * valops.c (value_one): Likewise.
871
c37f7098
KW
8722010-11-03 Ken Werner <ken.werner@de.ibm.com>
873
874 * value.h (value_non_lval): Declare.
875 * value.c (value_non_lval): New function.
876 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
877 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
878 non-lvalue.
879
7b51bc51
DE
8802010-11-02 Doug Evans <dje@google.com>
881
882 New python module gdb.printing, and new commands info pretty-printer,
883 enable pretty-printer, disable pretty-printer.
884 * NEWS: Mention them.
885 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
886 gdb/command/__init__.py, gdb/command/pretty_printers.py.
887 * python/lib/gdb/__init__.py: Install pretty-printer commands.
888 * python/lib/gdb/printing.py: New file.
889 * python/lib/gdb/command/__init__.py: New file.
890 * python/lib/gdb/command/pretty_printers.py: New file.
891
50c97f38
TT
8922010-11-02 Tom Tromey <tromey@redhat.com>
893
894 * NEWS: Mention Guile removal.
895 * defs.h (enum language) <language_scm>: Remove.
896 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
897 scm-valprint.c.
898 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
899 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
900 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
901 Remove.
902
9dea9163
DE
9032010-11-02 Doug Evans <dje@google.com>
904
905 * top.c: #include "python/python.h".
906 (gdb_init): Add a comment regarding initialize_all_files.
907 Call finish_python_initialization at the end.
908 * python/python.h (finish_python_initialization): Declare.
909 * python/python.c (finish_python_initialization): New function.
910 (_initialize_python): Move python-implemented initialization there
911 and call it.
912 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
913
a289b8f6
JK
9142010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
915
916 Revert:
917 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
918 Pedro Alves <pedro@codesourcery.com>
919 * gdbthread.h (currently_stepping): New declaration.
920 * infrun.c (currently_stepping): Remove the forward declaration.
921 (currently_stepping): Make it global.
922 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
923 variables tp and step, initialized them. Pass STEP to to_resume.
924 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
925 * remote.c (currently_stepping_callback): New.
926 (remote_vcont_resume)
927 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
928 New variable tp. Call currently_stepping_callback and step such
929 thread.
930
2209c807
HZ
9312010-11-01 Hui Zhu <teawater@gmail.com>
932
933 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
934
0a2a54b8
HZ
9352010-10-28 Hui Zhu <teawater@gmail.com>
936
937 * tracepoint.c (trace_save): Change utp->actions to
938 utp->step_actions.
939
284a3db3
JB
9402010-10-26 Joel Brobecker <brobecker@adacore.com>
941
942 * (_FILE_OFFSET_BITS): Fix typo in comment.
943
aed1781d
JB
9442010-10-26 Joel Brobecker <brobecker@adacore.com>
945
946 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
947 (PyEval_InitThreads): Remove duplicate. Define as nothing.
948 (PyEval_ReleaseLock): Define as nothing.
949
1e3fad37
JB
9502010-10-26 Joel Brobecker <brobecker@adacore.com>
951
952 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
953 by call to FILENAME_CMP.
954
558b1900
JB
9552010-10-26 Joel Brobecker <brobecker@adacore.com>
956
957 * dictionary.c (dict_hash): Move assignment out of if condition.
958
f474844c
JZ
9592010-10-22 Jie Zhang <jie@codesourcery.com>
960
961 * Makefile.in (install): Remove dependency of install-only and
962 recursively invoke make for install-only.
963 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
964 (install): Pass FLAGS_TO_PASS when recursively make install-only.
965
8991e9fa
HZ
9662010-10-20 Hui Zhu <teawater@gmail.com>
967
968 * tracepoint.c (tfile_get_traceframe_address): Call
969 extract_signed_integer.
970 (tfile_trace_find): Call extract_signed_integer and
971 extract_unsigned_integer. Change data_size to unsigned int.
972 (tfile_fetch_registers): Call extract_unsigned_integer.
973 (tfile_xfer_partial): Ditto.
974 (tfile_get_trace_state_variable_value): Call
975 extract_signed_integer and extract_unsigned_integer.
976
21bce120
VP
9772010-10-20 Vladimir Prus <vladimir@codesourcery.com>
978
979 * remote.c (remote_get_threadlist): If we got empty
980 response, bail out immediately, and don't emit any
981 warnings.
982
ad8b5167
UW
9832010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
984
985 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
986 for "mov pc, REG" as well.
987 (thumb_instruction_changes_pc): Likewise.
988
79afc5ef
SW
9892010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
990
991 PR C++/11500:
992 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
993 * eval.c (evaluate_subexp_standard): Check for overload of
994 'operator->'.
995 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
996 (value_x_unop): Ditto.
997 * valops.c: Include "exceptions.h".
998 (find_overload_match): Throw NOT_FOUND_ERROR.
999 (value_struct_elt): Ditto.
1000
cca56ac7
TT
10012010-10-19 Tom Tromey <tromey@redhat.com>
1002
1003 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1004
026ffab7
SW
10052010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1006
1007 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1008 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1009 for conversion.
1010 Make all other conversions illegal.
1011
8c540a24
DE
10122010-10-18 Doug Evans <dje@google.com>
1013
1014 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1015 assumptions of when this case happens. Print "<unnamed typedef>".
1016
3a772aa4
TT
10172010-10-18 Tom Tromey <tromey@redhat.com>
1018
1019 * valprint.c (val_print_string): Pass 'encoding' to
1020 LA_PRINT_STRING.
1021
01f8c46d
JK
10222010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1023
1024 Fix the `stopped language detection' testcase for gcc-4.5.
1025 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1026 * symfile.c (set_initial_language): Move variable filename to a more
1027 inner block. Prefer LANGUAGE_OF_MAIN.
1028 * symtab.c (language_of_main): New variable.
1029 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1030 * symtab.h (language_of_main): New declaration.
1031
8aeb23f3
JK
10322010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1033 Pedro Alves <pedro@codesourcery.com>
1034
1035 * gdbthread.h (currently_stepping): New declaration.
1036 * infrun.c (currently_stepping): Remove the forward declaration.
1037 (currently_stepping): Make it global.
1038 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1039 variables tp and step, initialized them. Pass STEP to to_resume.
1040 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1041 * remote.c (currently_stepping_callback): New.
1042 (remote_vcont_resume)
1043 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1044 New variable tp. Call currently_stepping_callback and step such
1045 thread.
1046
c1e56572
JK
10472010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1048
1049 * infrun.c (follow_exec): Replace symbol_file_add_main by
1050 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1051 breakpoint_re_set.
1052 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1053 clear_symtab_users.
1054 * objfiles.c (free_all_objfiles): Likewise.
1055 * remote-m32r-sdi.c (m32r_load): Likewise.
1056 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1057 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1058 clear_symtab_users with ADD_FLAGS.
1059 (reread_symbols): Use parameter 0 for clear_symtab_users.
1060 (clear_symtab_users): New parameter add_flags. Do not call
1061 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1062 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1063 * symtab.h (clear_symtab_users): New parameter add_flags.
1064
3a182a69
JK
10652010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1066
1067 Fix GCC false warning.
1068 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1069
3a9d7214
PM
10702010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1071
1072 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1073 display of type of method arguments.
1074
09ca9e2e
TT
10752010-10-15 Tom Tromey <tromey@redhat.com>
1076
1077 PR python/11948:
1078 * varobj.c (value_get_print_value): Use val_print_string to print
1079 lazy strings.
1080 * python/py-prettyprint.c (print_string_repr): Use
1081 val_print_string to print lazy strings. Fix cleanup logic.
1082 (print_children): Likewise.
1083 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1084 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1085 Change return type to 'void', add 'addr' argument.
1086 * value.h (val_print_string): Update.
1087 * valprint.c (val_print_string): Add 'encoding' argument.
1088 * printcmd.c (print_formatted): Update.
1089 * p-valprint.c (pascal_val_print): Update.
1090 * m2-valprint.c (print_unpacked_pointer): Update.
1091 (m2_print_array_contents): Likewise.
1092 * jv-valprint.c (java_value_print): Update.
1093 * f-valprint.c (f_val_print): Update.
1094 * c-valprint.c (c_val_print): Update.
1095 * auxv.c (fprint_target_auxv): Update.
1096
92163a10
JK
10972010-10-15 Doug Evans <dje@google.com>
1098 Jan Kratochvil <jan.kratochvil@redhat.com>
1099
1100 PR exp/12117
1101 * gdbtypes.c (check_typedef): Clean up function comment.
1102 Keep track of instance flags as we strip typedefs and create a new
1103 type to preserve them if necessary.
1104 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1105
dae71413
PM
11062010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1107
1108 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1109
7062b0a0
SW
11102010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1111
1112 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1113 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1114 to...
1115 (types_equal): ...here. And changed it as follows:
1116 Outside of typedefs type must be of the same TYPE_CODE.
1117 When compairing two pointers or references they are equal if their
1118 targets are equal.
1119 Correct pointer conversions.
1120
5c3da5ea
PM
11212010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1122
1123 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1124 having fields without names.
1125
577ce03a
TT
11262010-10-13 Tom Tromey <tromey@redhat.com>
1127
1128 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1129
a737a51b
DE
11302010-10-13 Doug Evans <dje@google.com>
1131
0e3509db
DE
1132 New python module gdb.types.
1133 * NEWS: Document it.
1134 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1135 * python/lib/gdb/types.py: New file.
1136
a737a51b
DE
1137 * c-typeprint.c: Whitespace cleanup.
1138 (cp_type_print_method_args): Remove unnecessary forward decl.
1139 (cp_type_print_derivation_info): Ditto.
1140 (c_type_print_varspec_prefix): Mark as static at definition.
1141 (c_type_print_modifier): Fix arg descriptions.
1142
8dc78533
JK
11432010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1144
1145 * python/py-breakpoint.c (bppy_set_condition): New comment.
1146 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1147 failed PyUnicode_Decode.
1148 (cmdpy_completer): Skip element for failed
1149 python_string_to_host_string.
1150 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1151 * python/py-frame.c (frapy_read_var): Extend the function comment.
1152 * python/py-function.c (fnpy_init): Return -1 on failed
1153 python_string_to_host_string.
1154 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1155 the function comment.
1156 (infpy_search_memory): Extend the function comment. Remove the
1157 PyErr_SetString call on already set error state.
1158 * python/py-param.c (set_parameter_value): Extend the function
1159 comment. Return -1 on failed python_string_to_host_string, twice.
1160 (set_attr): Extend the function comment.
1161 (compute_enum_values): Extend the function comment. New variable
1162 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1163 failed python_string_to_host_string.
1164 (get_doc_string): Call gdbpy_print_stack on failed
1165 python_string_to_host_string.
1166 (parmpy_init): Extend the function comment.
1167 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1168 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1169 failed python_string_to_host_string.
1170 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1171 (valpy_binop, valpy_richcompare): Extend the function comment.
1172 * python/python.c
1173 (struct python_env) <error_type, error_value, error_traceback>: New
1174 fields.
1175 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1176 (ensure_python_env): Call PyErr_Fetch.
1177 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1178 failed convert_value_from_python.
1179 (value_get_print_value): Call gdbpy_print_stack on failed
1180 python_string_to_target_python_string.
1181
1bdb0c54
TT
11822010-10-12 Tom Tromey <tromey@redhat.com>
1183
1184 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1185
0526b37a
SW
11862010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1187
1188 * gdbtypes.c (do_is_ancestor): New function.
1189 (is_ancestor): Use do_is_ancestor.
1190 (is_public_ancestor): Use do_is_ancestor.
1191
c1b5be38
PM
11922010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1193
1194 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1195
68770265
MGD
11962010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1197
1198 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1199
64b00020
DE
12002010-10-11 Doug Evans <dje@google.com>
1201
1202 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1203 the address space id too.
1204
43b8e241
JK
12052010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1206
1207 Fix attaching to re-prelinked executables on ppc64.
1208 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1209 initialize it, try to adjust FILESZ field by it.
1210
417b5110
DJ
12112010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1212
1213 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1214 messages if info_verbose.
1215
3bdf2bbd
KW
12162010-10-08 Ken Werner <ken.werner@de.ibm.com>
1217
1218 * valops.c (value_cast): Handle vector types.
1219 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1220
ec3d575a
UW
12212010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1222
1223 * arm-tdep.c (thumb_expand_immediate): New function.
1224 (thumb_instruction_changes_pc): Likewise.
1225 (thumb2_instruction_changes_pc): Likewise.
1226 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1227 prologue parsing. Improved support for optimized code.
1228 (thumb_scan_prologue): Do not reply on line-number information,
1229 use same heuristics as arm_scan_prologue insead.
1230 (skip_prologue_function): Accept functions
1231 "__tls_get_addr" and "__aeabi_read_tp".
1232
4024ca99
UW
12332010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1234 Daniel Jacobowitz <dan@codesourcery.com>
1235
1236 * arm-tdep.c (thumb_in_function_epilogue_p)
1237 (arm_in_function_epilogue_p): New.
1238 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1239 gdbarch_in_function_epilogue_p callback.
1240
855c153f
DE
12412010-10-07 Doug Evans <dje@google.com>
1242
00e14314
DE
1243 * cc-with-index.sh (output_file): Default to a.out.
1244
3876f04e
DE
1245 * dwarf2read.c (mapped_index): Rename member index_table to
1246 symbol_table and index_table_slots to symbol_table_slots.
1247 All uses updated.
1248 (create_symbol_hash_table): Renamed from create_index_table.
1249 All callers updated.
1250 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1251 (write_hash_table): Rename local index_table to symbol_hash_table.
1252
855c153f
DE
1253 * addrmap.h (addrmap_foreach_fn): New typedef.
1254 (addrmap_foreach): Declare.
1255 * addrmap.c (struct addrmap_funcs): New member foreach.
1256 (addrmap_foreach): New function.
1257 (addrmap_fixed_foreach): New function.
1258 (addrmap_fixed_funcs): Update.
1259 (struct mutable_foreach_data): New struct.
1260 (addrmap_mutable_foreach_worker): New function.
1261 (addrmap_mutable_foreach): New function.
1262 (addrmap_mutable_funcs): Update.
1263
1d2a4540
PH
12642010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1265
1266 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1267 more cases.
1268
40658b94
PH
12692010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1270
1271 * ada-lang.c (full_match): Declare.
1272 (ada_match_name): Rename to match_name (we should avoid prefixing static
1273 symbols with "ada_").
1274 (match_name): New name for ada_match_name.
1275 (struct ada_psym_data): Remove and replace with...
1276 (struct match_data): User data for map_matching_symbols.
1277 (ada_add_psyms): Remove.
1278 (aux_add_nonlocal_symbols): New function, used as callback for
1279 map_matching_symbols.
1280 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1281 symbols.
1282 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1283 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1284 Rework to use map_matching_symbols instead of map_ada_symtabs.
1285 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1286 * psymtab.c: Include dependency on dictionary.h.
1287 (match_partial_symbol): New function.
1288 (ada_lookup_partial_symbol): Remove.
1289 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1290 (map_matching_symbols_psymtab): New function.
1291 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1292 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1293
c4d840bd
PH
12942010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1295
1296 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
1297 (wild_match): Change API to be consistent with that of strcmp_iw;
1298 return 0 for a match, and switch operand order.
1299 (full_match): New function.
1300 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1301 matching to allow use of hashing.
1302 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1303 iter_name_next ot iter_match_first, iter_match_next.
1304 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1305 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1306 (iter_name_first_linear): Replace with iter_match_first_linear.
1307 (iter_name_next_linear): Replace with iter_match_next_linear.
1308 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1309 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1310 (dict_iter_match_first): New function.
1311 (dict_iter_match_next): New function.
1312 (dict_hash): New function.
1313 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1314 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 1315
543ecec7
DE
13162010-10-06 Doug Evans <dje@google.com>
1317
1318 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1319
2f608a3a
KW
13202010-10-06 Ken Werner <ken.werner@de.ibm.com>
1321
1322 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1323
aa2e2d8d
DE
13242010-10-06 Doug Evans <dje@google.com>
1325
9c9606fb
DE
1326 * Makefile.in (REQUIRED_SUBDIRS): New var.
1327 (subdir_do): Verify required subdir Makefiles exist.
1328
aa2e2d8d
DE
1329 Create subdir data-directory.
1330 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1331 data-directory/Makefile.in.
1332 (SUBDIRS): Add data-directory.
1333 (all): Remove xml-syscall-copy dependency.
1334 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1335 stamp-syscalls.
1336 (xml-syscall-install): Moved to data-directory/Makefile.in as
1337 install-syscalls.
1338 (install-only): Remove xml-syscall-install dependency.
1339 (all-data-directory): New rule.
1340 (data-directory/Makefile): New rule.
1341 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1342 * configure: Regenerate.
1343 * data-directory/Makefile.in: New file.
1344 * python/lib/gdb/__init__.py: New file.
1345
aa27d0b3
JB
13462010-10-06 Joel Brobecker <brobecker@adacore.com>
1347
1348 Fix ARI warnings in advance_wild_match.
1349 * ada-lang.c (advance_wild_match): Delete local variable t2.
1350 Adjust code accordingly. Minor reformatting.
1351
2844d6b5
KW
13522010-10-06 Ken Werner <ken.werner@de.ibm.com>
1353
1354 * gdbtypes.h (struct main_type): Remove flag_nottext.
1355 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1356 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1357 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1358 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1359 of TYPE_FLAG_NOTTEXT.
1360 (init_type): Remove the initialization of the flag_nottext field.
1361 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1362 TYPE_FLAG_NOTTEXT.
1363 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1364
2fdf6df6
DE
13652010-10-04 Doug Evans <dje@google.com>
1366
ea65fe05
DE
1367 * cc-with-index.sh: New file.
1368
2fdf6df6
DE
1369 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1370 function comment.
1371 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1372 (create_cus_from_index, create_addrmap_from_index): Ditto.
1373 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1374 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1375 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
1376 (eq_strtab_entry, create_strtab, add_string): Ditto.
1377 (hash_strtab_entry): Ditto.
1378 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1379 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1380 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1381 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1382 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1383 (write_psymtabs_to_index): Ditto.
2fdf6df6 1384
40bc484c
JB
13852010-10-04 Joel Brobecker <brobecker@adacore.com>
1386
1387 * ada-lang.c: #include "value.h".
1388 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1389 arguments. Implement using value_allocate_space_in_inferior
1390 instead of allocating memory from the stack.
1391 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1392 calls to ensure_lval.
1393 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1394 calls to make_array_descriptor and ensure_lval.
1395 * ada-lang.h (ada_convert_actual): Update declaration.
1396 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1397
f17618ea
DE
13982010-10-04 Doug Evans <dje@google.com>
1399
1400 * python/python.c (_initialize_python): Define new function
1401 GdbSetPythonDirectory in python. Use it to update sys.path and
1402 gdb.__path__.
1403
83e3a93c
PH
14042010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1405
1406 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1407 incorporating and generalizing print_record_field_types.
1408 (print_record_field_types): Change return value and update comment.
1409 Re-implement using print_selected_record_field_types.
1410 (print_choices): Print "=>" here.
1411 Handle case of unencoded variant branch.
1412 (print_variant_clauses): Reformat comment.
1413 Special-case unencoded variant branch.
1414
14152010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
1416
1417 * ada-lang.c (wild_match): Reimplement.
1418 Change API to eliminate unused length argument, reverse arguments and
1419 make 0 the 'true' return value.
1420 (advance_wild_match): New auxiliary function for wild_match to improve
1421 readability.
1422 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1423 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1424 API for wild_match.
1425 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1426 wild_match.
1427 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1428
11570e71
DE
14292010-10-01 Doug Evans <dje@google.com>
1430
1431 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1432 for `save gdb-index' command.
1433
72b9f47f
TT
14342010-10-01 Tom Tromey <tromey@redhat.com>
1435
1436 * symfile.h (allocate_symtab): Update.
1437 * symfile.c (allocate_symtab): Make 'filename' const.
1438 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1439 (add_psymbol_to_list): Likewise.
1440 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1441 const.
1442 (add_psymbol_to_list): Update.
1443 * mdebugread.c (new_symtab): Make 'name' const.
1444 (psymtab_to_symtab_1): Make 'filename' const.
1445 * elfread.c (elfstab_offset_sections): Update.
1446 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1447 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1448 (psymtab_include_file_name): Update.
1449 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1450 * buildsym.h (start_subfile): Update.
1451 * buildsym.c (start_subfile): Make arguments const.
1452
55e39473
MS
14532010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1454
1455 * fork-child.c (breakup_args): Fix crash if shell forking is
1456 disabled at compile time.
1457
05e522ef
JB
14582010-10-01 Joel Brobecker <brobecker@adacore.com>
1459
1460 * ada-lang.c (desc_bounds): Add handling of the case where
1461 the P_BOUNDS field is a pointer to a stub.
1462 (desc_data_target_type): Same for P_ARRAY field.
1463 (ada_check_typedef): Strip the typedef layers from the type
1464 found by ada_find_any_type.
1465
49a45ecf
JB
14662010-10-01 Joel Brobecker <brobecker@adacore.com>
1467
1468 * sparc-tdep.c (sparc32_frame_align): New function.
1469 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1470 * sparc64-tdep.c (sparc64_frame_align): New function.
1471 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1472
a5916a62
L
14732010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1474
1475 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1476
00b5771c
TT
14772010-09-30 Tom Tromey <tromey@redhat.com>
1478
1479 * symfile.h (struct sym_fns) <next>: Remove.
1480 (add_symtab_fns): Update.
1481 * symfile.c (sym_fns_ptr): New typedef.
1482 (symtab_fns): Now a VEC.
1483 (add_symtab_fns): Update. Change argument type.
1484 (find_sym_fns): Update. Change return type.
1485 (get_symfile_segment_data): Update.
1486 * objfiles.h (struct objfile) <sf>: Now const.
1487 * somread.c (som_sym_fns): Now const. Update.
1488 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1489 * mipsread.c (ecoff_sym_fns): Now const. Update.
1490 * machoread.c (macho_sym_fns): Now const. Update.
1491 * elfread.c (elf_sym_fns): Now const. Update.
1492 (elf_sym_fns_gdb_index): Likewise.
1493 * dbxread.c (aout_sym_fns): Now const. Update.
1494 * coffread.c (coff_sym_fns): Now const. Update.
1495
38f12cfc
TT
14962010-09-30 Tom Tromey <tromey@redhat.com>
1497
1498 * value.c (value_primitive_field): Take 'offset' into account for
1499 packed field.
1500
9ae8282d
TT
15012010-09-30 Tom Tromey <tromey@redhat.com>
1502
1503 * completer.c (count_struct_fields): Handle anonymous structs and
1504 unions.
1505 (add_struct_fields): Likewise.
1506
e9e07ba6
JK
15072010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1508
1509 Fix printing parameters of inlined functions.
1510 * ada-lang.c (is_known_support_routine)
1511 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1512 for find_frame_funname.
1513 * python/py-frame.c (frapy_name): Likewise.
1514 * stack.c (find_frame_funname): New parameter funcp. Update the
1515 function comment. Fill it in.
1516 (print_frame): New variable func. Initialize it by
1517 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1518 FUNC as the parameter of print_args_stub.
1519 * stack.h (find_frame_funname): New parameter funcp. Remove the
1520 function declaration comment.
1521
cd2effb2
JK
15222010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1523
1524 PR corefiles/12071.
1525 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1526 tp. Iterate INFERIOR_LIST and call target_has_execution.
1527
bceffbf3
JK
15282010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1529
1530 Fix GDB crash on inferior calls with self-referencing classes.
1531 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1532 member fields.
1533
abc72ce4
DE
15342010-09-29 Doug Evans <dje@google.com>
1535
1536 Workaround for gcc/45682.
1537 * dwarf2read.c (partial_die_info): New fields fixup_called,
1538 linkage_name.
1539 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1540 Move definition next to use. Use linkage_name to determine if class
1541 is in a namespace. All callers updated.
1542 (fixup_partial_die): Return early if already called.
1543 Set fixup_called when done.
1544 (guess_full_die_structure_name): New function.
1545 (determine_prefix): Call it for class/struct/union dies if c++ and
1546 .debug_types section is present and parent is DW_TAG_compile_unit.
1547
0ac7be25
JB
15482010-09-28 Joel Brobecker <brobecker@adacore.com>
1549
1550 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1551 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1552
6e1bb179
JB
15532010-09-28 Joel Brobecker <brobecker@adacore.com>
1554
1555 * NEWS: Announce Ravenscar Profile support.
1556
036b1ba8
JB
15572010-09-28 Joel Brobecker <brobecker@adacore.com>
1558 Jerome Guitton <guitton@adacore.com>
1559
1560 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1561 New files.
1562 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1563 ravenscar-sparc-thread.o to gdb_target_obs.
1564
474011fb
JB
15652010-09-28 Joel Brobecker <brobecker@adacore.com>
1566
1567 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1568 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1569
99e24b90
PM
15702010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1571
1572 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1573 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1574 skip_main_prologue method.
1575
987d643c
TT
15762010-09-27 Tom Tromey <tromey@redhat.com>
1577
1578 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1579 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1580 Only emit a given psymbol once.
1581 (struct signatured_type_index_data) <psyms_seen>: New field.
1582 (write_one_signatured_type): Update.
1583 (cleanup_htab): New function.
1584 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1585 version to 3.
1586 (save_gdb_index_command): Update index documentation.
1587
d3aff959
TT
15882010-09-27 Tom Tromey <tromey@redhat.com>
1589
1590 * bcache.c (expand_hash_table): Use hash_function, not hash.
1591
716b65bf
TT
15922010-09-27 Tom Tromey <tromey@redhat.com>
1593
1594 * gdb_wchar.h: Change minimum libiconv to 0x108.
1595
1736ad11
JK
15962010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1597
1598 Fix lost siginfo_t for inferior calls.
1599 * infrun.c
1600 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1601 (save_inferior_thread_state): New variables regcache, gdbarch and
1602 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1603 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1604 using REGCACHE.
1605 (restore_inferior_thread_state): New variables regcache and gdbarch.
1606 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1607 REGCACHE. Free also SIGINFO_DATA.
1608
4b5246aa
TT
16092010-09-24 Tom Tromey <tromey@redhat.com>
1610
1611 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1612 MAYBE_SWAPs.
1613 (dw2_map_symbol_names): Likewise.
1614
2a7d6a25
SW
16152010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1616
1617 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1618 discard_cleanups do_cleanups.
1619
b53a1623
PA
16202010-09-24 Pedro Alves <pedro@codesourcery.com>
1621
e6ee044d
PA
1622 PR gdb/11842
1623
b53a1623
PA
1624 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1625 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1626 si_code is < 0. Check for si_code == SI_TIMER before checking for
1627 si_code < 0.
1628
96a8853a
PA
16292010-09-24 Pedro Alves <pedro@codesourcery.com>
1630
1631 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1632
39383a48
JB
16332010-09-22 Joel Brobecker <brobecker@adacore.com>
1634
1635 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1636 debugging a core file.
1637
d31d2fc3
JK
16382010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1639
1640 Code cleanup.
1641 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1642 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1643 xfree.
1644 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1645 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1646 Remove.
1647 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1648 Remove the conditional.
1649 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1650
7f6130ff
JK
16512010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1652
1653 * main.c: Include objfiles.h.
1654 (captured_main): New variable objfile. Call
1655 load_auto_scripts_for_objfile for ALL_OBJFILES.
1656
c2b0a229
JK
16572010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1658
1659 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1660 DW_TAG_constant.
1661
72929c62
JB
16622010-09-22 Joel Brobecker <brobecker@adacore.com>
1663
1664 * dwarf2read.c (scan_partial_symbols): Add handling of
1665 DW_TAG_constant DIEs.
1666 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1667
496c0e1b
JB
16682010-09-22 Joel Brobecker <brobecker@adacore.com>
1669
1670 * configure.ac: Add support for --enable-gdbserver.
1671 * configure: Regenerate.
1672
ec322823
SW
16732010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1674
1675 PR C++/12028
1676 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1677 'old_cleanups' reassignment.
1678
1558ab4c
JK
16792010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1680
1681 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1682 characters.
1683
875b4ff5
PM
16842010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1685
1686 PR mi/11407
1687 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1688 read_var_value and common_val_print and print a warning.
1689
65dedcb2
JK
16902010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1691
1692 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1693 keep the list in alphabetical order. Use longer e-mail address.
1694
0e780a22
TT
16952010-09-15 Tom Tromey <tromey@redhat.com>
1696
1697 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1698
62234ccc
TT
16992010-09-15 Tom Tromey <tromey@redhat.com>
1700
1701 * charset.c (iconv_open): New define.
1702 (iconv): Likewise.
1703 (iconv_close): Likewise.
1704 (phony_iconv_open): Add "phony_" prefix.
1705 (phony_iconv_close): Likewise.
1706 (phony_iconv): Likewise.
1707 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1708 Change how INTERMEDIATE_ENCODING is defined.
1709
4950bc1c
DE
17102010-09-15 Doug Evans <dje@google.com>
1711
1712 * dwarf2read.c (struct die_info): Fix comment.
1713
349126ea
AM
17142010-09-15 Alan Modra <amodra@gmail.com>
1715
1716 PR 4606
1717 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1718 than setting SEC_NEVER_LOAD on sections that need not be copied.
1719
923c6a3d
TT
17202010-09-14 Tom Tromey <tromey@redhat.com>
1721
1722 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1723 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1724 Declare.
1725 * symfile.h (extend_psymbol_list): Remove.
1726 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1727 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1728 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1729
a9e6a4bb
JK
17302010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1733 Update the comment.
1734
7155d578
TT
17352010-09-14 Tom Tromey <tromey@redhat.com>
1736
1737 PR symtab/8399:
1738 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1739 for unrecognized frame base expression.
1740
515ed532
TT
17412010-09-14 Tom Tromey <tromey@redhat.com>
1742
1743 PR exp/11803:
1744 * value.c (value_static_field): Use value_of_variable.
1745
b467f580
PM
17462010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1747
1748 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1749 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1750
450ca57c
SW
17512010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1752
1753 PR symtab/11992:
1754 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1755 UNKNOWN_CPP_NAME.
1756
1aee7009
JB
17572010-09-13 Joel Brobecker <brobecker@adacore.com>
1758
1759 * NEWS: Add x86-lynxos to the list of platforms supported by
1760 gdbserver.
1761
5ec6ebf9
JB
17622010-09-13 Joel Brobecker <brobecker@adacore.com>
1763
1764 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1765
1863c96c
TT
17662010-09-13 Tom Tromey <tromey@redhat.com>
1767
1768 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1769
0c5acf93
L
17702010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1771
1772 * i386-tdep.c (i386_ymm_type): Set type name to
1773 builtin_type_vec256i.
1774
1c6272a6
MS
17752010-09-12 Michael Snyder <msnyder@vmware.com>
1776
1777 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1778
e866c497
L
17792010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1782
9191d390
L
17832010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1784
1785 * amd64-tdep.c (amd64_register_name): Removed.
1786 (amd64_init_abi): Don't call set_gdbarch_register_name.
1787
1788 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1789
1790 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1791
8d4d924b
JK
17922010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1793 Paul Bolle <pebolle@tiscali.nl>
1794
1795 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1796 * cli-logging.c (struct saved_output_files) <targerr>: New.
1797 (set_logging_redirect, pop_output_files, handle_redirections):
1798 Redirect also gdb_stdtargerr.
1799 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1800 declarations.
1801 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1802 also gdb_stdtargerr.
1803 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1804 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1805 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1806 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1807 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1808 New functions.
1809
3329c4b5
PM
18102010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1811
1812 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1813 to display a host address.
1814 * monitor.c (monitor_read_memory): Likewise.
1815 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1816
5e8db398
PM
18172010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1818
1819 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1820 `CORE_ADDRESS' as it might contain target addresses.
1821
37049e31
PM
18222010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1823
1824 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1825 before cast to pointer to avoid warning.
1826
351a3e56
KB
18272010-09-09 Kevin Buettner <kevinb@redhat.com>
1828
1829 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1830 type to be signed.
349126ea 1831
6afafb54
UW
18322010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1833
1834 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1835 anonymous class partial DIEs.
1836
60430eff
DJ
18372010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1838
1839 * dwarf2read.c (dwarf2_compute_name): Check that the first
1840 argument is a pointer.
1841
f1078f66
DJ
18422010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1843
1844 * dwarf2read.c (read_func_scope, read_structure_type)
1845 (read_common_block): Check for a NULL return from new_symbol.
1846
82430852
JK
18472010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1848
1849 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1850
c767944b
DJ
18512010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1852
1853 * dwarf2read.c (read_structure_type): Move processing of
1854 fields and member functions from here...
1855 (process_structure_scope): ... to here.
1856
561d3825
DJ
18572010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1858
1859 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1860 the domain type.
1861 (gnuv3_make_method_ptr): Likewise.
1862
9bd89d67
TT
18632010-09-08 Tom Tromey <tromey@redhat.com>
1864
1865 * breakpoint.c (create_breakpoint): Add missing _().
1866
1d040b0d
DE
18672010-09-08 Doug Evans <dje@google.com>
1868
1869 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1870
774b6a14
TT
18712010-09-08 Tom Tromey <tromey@redhat.com>
1872
1873 Revert:
1874 2010-09-01 Tom Tromey <tromey@redhat.com>
1875 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1876 symtab.h: Revert earlier change.
1877
fc956729
SW
18782010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1879
1880 * psymtab.c (add_psymbol_to_bcache): Initialize
1881 obj_section.
1882 memset psymbol.ginfo.value to 0.
1883
48f9886d
PA
18842010-09-06 Pedro Alves <pedro@codesourcery.com>
1885
1886 * infrun.c (resume): Extend comment on ignoring single-step
1887 requests on vfork parents waiting for a vfork-done.
1888
423ec54c
JK
18892010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1890 Pedro Alves <pedro@codesourcery.com>
1891
1892 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1893 is NULL.
1894 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1895 target_signal type.
1896 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1897 calling strsignal. Use enum target_signal type for saved_signo.
1898 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1899 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1900 target_signal_to_host before calling strsignal.
1901 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1902 TARGET_SIGNAL_0.
1903
a6eb9bc8
JK
19042010-09-06 Pedro Alves <pedro@codesourcery.com>
1905 Jan Kratochvil <jan.kratochvil@redhat.com>
1906
1907 * common/signals.c (ANY): Remove.
1908 (SET): No longer use ANY.
1909
74609e71
YQ
19102010-09-06 Yao Qi <yao@codesourcery.com>
1911
1912 * infrunc(resume): When inferior is waiting_for_vfork_done,
1913 clear step and don't use displaced stepping.
1914
8464be76
DJ
19152010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1916
1917 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1918 value specially.
1919
33d62d64
JK
19202010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1921
1922 Code cleanup - split print_stop_reason.
1923 * infrun.c (enum inferior_stop_reason): Remove.
1924 (print_stop_reason): Remove by splitting into ...
1925 (print_exited_reason, print_signal_exited_reason)
1926 (print_no_history_reason, print_signal_received_reason)
1927 (print_end_stepping_range_reason): ... these new functions. Update
1928 the preceding comment.
1929 (handle_inferior_event): Change the calls to print_exited_reason,
1930 print_signal_exited_reason, print_no_history_reason,
1931 print_signal_received_reason, print_end_stepping_range_reason.
1932 (handle_step_into_function, handle_step_into_function_backward):
1933 Change the calls to print_end_stepping_range_reason.
1934
14dba4b4
JK
19352010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1936
1937 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1938 * cli-out.c: Include vec.h.
1939 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1940 variable stream, initialize it, use it.
1941 (cli_redirect): New function comment. Replace the stream and
1942 original_stream fields by the new streams field. Remove the
1943 original_stream != NULL conditional, assert error on NULL instead.
1944 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1945 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1946 original_stream fields by the new streams field.
1947 (cli_out_set_stream): Replace the stream field by the new streams
1948 field.
1949 * cli-out.h: Include vec.h.
1950 (ui_filep): New typedef, call DEF_VEC_P for it.
1951 (struct cli_ui_out_data): Replace the stream and original_stream
1952 fields by the new streams field.
1953 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1954 NULL first. Extend the comment.
1955 (handle_redirections): Call ui_out_redirect with output.
1956 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1957 calls outside of the TRY_CATCH block.
1958
b04bc5d4 19592010-09-03 Joel Brobecker <brobecker@adacore.com>
1960
1961 GDB 7.2 released.
1962
080db4e0
JB
19632010-09-02 Joel Brobecker <brobecker@adacore.com>
1964
1965 Back out the following change:
1966 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1967 | * record.c (set_record_pic_cmdlist,
1968 | show_record_pic_cmdlist): New variables.
1969 | (set_record_pic_command,
1970 | show_record_pic_command): New functions.
1971 | (record_pic_function, record_pic_line, record_pic_enum,
1972 | set_record_pic_type, record_pic_hide_nofunction,
1973 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1974 | (record_pic_fputs): New function.
1975 | (function_list, node_list, edge_list): New struct.
1976 | (function_list, node_list, edge_list): New variables.
1977 | (record_pic_cleanups, record_pic_node,
1978 | record_pic_edge, cmd_record_pic): New functions.
1979 | (_initialize_record): Add new commands for record pic.
1980
0a4f61e3
DJ
19812010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1982
1983 * config.in, configure: Regenerated.
1984 * configure.ac: Check for waitpid.
1985 * ser-pipe.c (pipe_close): Wait for the program to exit.
1986
58b61394
JK
19872010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1988
ba720883 1989 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1990 (set_logging_overwrite): New function.
1991 (logging_redirect): New comment.
1992 (logging_no_redirect_file, set_logging_redirect)
1993 (pop_output_files) <logging_no_redirect_file>: New.
1994 (handle_redirections) <!logging_redirect>: New variable
1995 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1996 discard cleanup for the close of former OUTPUT. Set
1997 LOGGING_NO_REDIRECT_FILE.
1998 (handle_redirections) <logging_redirect>: gdb_assert
1999 LOGGING_NO_REDIRECT_FILE.
2000 (show_logging_command) <logging_redirect handling>: Adjust messages
2001 for SAVED_FILENAME not NULL.
2002 (_initialize_cli_logging): Install set_logging_overwrite and
2003 set_logging_redirect.
2004
706774f2
JK
20052010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2006
2007 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2008
9a35ccf7
JK
20092010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2010
2011 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2012 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2013 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2014 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2015
ba9b2ec3
YQ
20162010-09-02 Yao Qi <yao@codesourcery.com>
2017
2018 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2019 number from a WIFSIGNALED status.
2020
faf68db7
TT
20212010-09-01 Tom Tromey <tromey@redhat.com>
2022
2023 * symtab.h (lookup_type_symbol): Declare.
2024 * symtab.c (lookup_symbol_in_language_full): Rename from
2025 lookup_symbol_in_language. Add 'for_type' argument.
2026 (lookup_symbol_in_language): New function.
2027 (lookup_type_symbol): Likewise.
2028 (lookup_symbol_aux): Add 'for_type' argument.
2029 (match_symbol_aux): New function.
2030 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2031 (match_transparent_type): New function.
2032 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2033 * symfile.h (struct quick_symbol_functions)
2034 <pre_expand_symtabs_matching>: Remove.
2035 <expand_one_symtab_matching>: New field.
2036 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2037 (pre_expand_symtabs_matching_psymtabs): Remove.
2038 (psym_functions): Update.
2039 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2040 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2041 (dw2_pre_expand_symtabs_matching): Remove.
2042 (dw2_expand_one_symtab_matching): New function.
2043 (dwarf2_gdb_index_functions): Update.
2044
248c9dbc
JB
20452010-09-01 Joel Brobecker <brobecker@adacore.com>
2046
2047 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2048
f75d858b
MK
20492010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2050
2051 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2052 as a feature reported by -list-target-features.
2053
0482b03b
JB
20542010-09-01 Joel Brobecker <brobecker@adacore.com>
2055
2056 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2057 (powerpc-32.o, powerpc-32.c): New rules.
2058 (clean): Also remove powerpc-32.c.
2059 * regformats/rs6000/powerpc-32.dat: Generate.
2060
710e1a31
SW
20612010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2062
2063 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2064 psymbol_bcache_init.
2065 * psymtab.h (psymbol_bcache_init): New function prototype.
2066 (psymbol_bcache_free): New function prototype.
2067 (psymbol_bcache_get_bcache): New function prototype.
2068 * psymtab.c (psymbol_bcache_init): New function.
2069 (psymbol_bcache_free): New function.
2070 (psymbol_bcache_full): New function.
2071 (psymbol_bcache_get_bcache): New function.
2072 (add_psymbol_to_bcache): use psymbol_bcache_full.
2073 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2074 psymbol_bcache.
2075 * symmisc.c (print_symbol_bcache_statistics): Updated.
2076 (print_objfile_statistics): Updated.
2077 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2078 psymbol_cache.
2079 (free_objfile): Use psymbol_bcache_free.
2080
64382290
TT
20812010-08-31 Tom Tromey <tromey@redhat.com>
2082
2083 PR c++/11961:
2084 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2085 Don't set TYPE_NAME on the type.
2086
8bbed405
MS
20872010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2088
2089 * infrun.c (set_exec_direction_func): Error out if target does not
2090 support reverse execution.
2091
06253dd3
JK
20922010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2093
2094 Make linux_get_siginfo_type `type *' unique.
2095 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2096 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2097 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2098 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2099 (_initialize_linux_tdep): New.
2100
b8edc417
JK
21012010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2102
2103 Code cleanup.
2104 * defs.h (find_memory_region_ftype): New typedef.
2105 (exec_set_find_memory_regions): Use it.
2106 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2107 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2108 * gcore.c (objfile_find_memory_regions): Likewise.
2109 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2110 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2111 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2112 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2113 find_memory_region_ftype.
2114 (insert_dbx_link_bpt_in_region): Likewise.
2115 (iterate_over_mappings): Likewise. Drop the comment part about the
2116 function prototype.
2117 (find_memory_regions_callback): Use find_memory_region_ftype.
2118 (proc_find_memory_regions): Likewise.
2119 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2120 find_memory_region_ftype.
2121 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2122 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2123
cbd70537
SW
21242010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2125
2126 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2127 'static partial_symbol psymbol'.
2128 (psymbol_hash): New function.
2129 (psymbol_compare): New function.
2130 * bcache.c (hash_continue): New.
2131 (hash): Use hash_continue.
2132 * bcache.c: Add hash_function and compare_function
2133 pointers to bcache struct.
2134 (bcache_full): Use bcache->hash_function, and
2135 bcache->compare_function.
2136 (bcache_compare): New function.
2137 (bcache_xmalloc): Take hash_function and
2138 compare_function arguments and initialize the
2139 bcach's pointers.
2140 Updated comment.
2141 * objfiles.c (allocate_objfile): Updated.
2142 * symfile.c (reread_symbols): Updated.
2143 * python/py-type.c (typy_richcompare): Updated.
2144
03f17ccf
TT
21452010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2146 Tom Tromey <tromey@redhat.com>
2147
2148 PR python/11792:
2149 * python/py-value.c (valpy_get_dynamic_type): New function.
2150 (value_object_getset): Add "dynamic_type".
2151 (valpy_get_type): Fail on error.
2152
25b41d01
YQ
21532010-08-30 Yao Qi <yao@codesourcery.com>
2154
2155 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2156 (arm_linux_syscall_next_pc): New.
2157 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2158 (arm_linux_init_abi): Initialize syscall_next_pc.
2159 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2160 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2161 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2162 Declare arm_frame_is_thumb.
2163
5760d0ab
JK
21642010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2165
2166 Code cleanup.
2167 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2168 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2169 code.
2170 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2171 calls of bpstat_alloc. Remove explicit bs chain termination.
2172
46a96992
JK
21732010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2174
2175 Code cleanup.
2176 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2177 (my_waitpid): Likewise.
2178
36374493
DE
21792010-08-27 Doug Evans <dje@google.com>
2180
2181 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2182 as appropriate.
2183
8b93c54c
TT
21842010-08-27 Tom Tromey <tromey@redhat.com>
2185
2186 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2187 TYPE_FIELD_IGNORE_BITS.
2188
16be1145
DE
21892010-08-27 Doug Evans <dje@google.com>
2190
2191 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2192 the order they're defined in. munmap .debug_types buffer.
2193
e254ef6a
DE
21942010-08-26 Doug Evans <dje@google.com>
2195
2196 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2197 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2198 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2199 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2200 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2201 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2202 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2203 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2204 (write_psymtabs_to_index): Ditto.
2205
ae53ffa4
PA
22062010-08-26 Pedro Alves <pedro@codesourcery.com>
2207
2208 * NEWS: Mention libthread_db debugging with core files.
2209
c6da4cef
DE
22102010-08-26 Doug Evans <dje@google.com>
2211
2212 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2213 forward decl. Pass pst->dirname to dwarf_decode_lines.
2214 (psymtab_include_file_name): New function.
2215 (dwarf_decode_lines): Call it. Update comments.
2216
cd02d79d
PA
22172010-08-25 Pedro Alves <pedro@codesourcery.com>
2218
2219 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2220 compilation unit being different from target die's.
2221
673bfd45
DE
22222010-08-24 Doug Evans <dje@google.com>
2223
2224 PR symtab/11942
2225 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2226 debug_types_type_hash.
2227 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2228 All uses updated.
2229 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2230 appropriate type_hash table. All callers updated.
2231 (allocate_signatured_type_table): Renamed from
2232 allocate_signatured_type_hash_table. All callers updated.
2233 (create_signatured_type_table_from_index): Renamed from
2234 create_signatured_type_hash_from_index. All callers updated.
2235 (read_die_type): Add comment. Move actual reading to ...
2236 (read_die_type_1): ... here. New function.
2237 (follow_die_ref_or_sig): Tweak comment.
2238 (set_die_type): Rewrite to use appropriate choice of
2239 debug_info_type_hash or debug_types_type_hash.
2240 (get_die_type_at_offset): New function.
2241 (get_die_type): Call it.
2242
e8fd65ef
JK
22432010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2244
2245 * python/py-type.c (typy_richcompare): Initialize worklist.
2246
9779414d
DJ
22472010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2248 Kazu Hirata <kazu@codesourcery.com>
2249 Jonathan Larmour <jifl@eCosCentric.com>
2250
2251 * arm-tdep.c: Include features/arm-with-m.c.
2252 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2253 call this function.
2254 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2255 Check is_m after force-mode.
2256 (arm_gdbarch_init): Check the binary before the target description.
2257 Add check for M profile attribute. If we have an M-profile device,
2258 but no target register description, use arm-with-m. Recognize the
2259 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2260 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2261 * arm-tdep.h (XPSR_T): Define.
2262 (struct gdbarch_tdep): Add is_m member.
2263 * features/arm-m-profile.xml, features/arm-with-m.c,
2264 features/arm-with-m.xml: New files.
2265
9dc481d3
DE
22662010-08-23 Doug Evans <dje@google.com>
2267
2268 * dwarf2read.c (read_structure_type): Add comment.
2269 (read_enumeration_type): Add comment.
2270 (process_enumeration_scope): Move definition of some locals
2271 closer to their use.
2272 (read_namespace_type): Add comment.
e71ec853 2273 (set_die_type): Fix typo in comment.
9dc481d3 2274
f9ffd4bb
TT
22752010-08-23 Tom Tromey <tromey@redhat.com>
2276
2277 PR python/11145:
2278 * python/py-value.c: Include expression.h.
2279 (valpy_do_cast): New function.
2280 (valpy_cast): Use it.
2281 (valpy_dynamic_cast): New function.
2282 (valpy_reinterpret_cast): Likewise.
2283 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2284
96f73ba5
TT
22852010-08-23 Tom Tromey <tromey@redhat.com>
2286
2287 PR python/11391:
2288 * python/py-value.c (valpy_nonzero): Don't throw error for other
2289 Value types.
2290
d839c8a4
TT
22912010-08-23 Tom Tromey <tromey@redhat.com>
2292
2293 PR python/10676:
2294 * python/py-type.c: Include bcache.h, vec.h.
2295 (struct type_equality_entry): New.
2296 (compare_strings): New function.
2297 (check_types_equal): Likewise.
2298 (check_types_worklist): Likewise.
2299 (typy_richcompare): Likewise.
2300 (type_object_type): Set tp_richcompare field.
2301
05d0e1e7
TT
23022010-08-23 Tom Tromey <tromey@redhat.com>
2303
2304 PR python/10953:
2305 * python/py-type.c (typy_fields): Call check_typedef.
2306 (typy_template_argument): Add TRY_CATCH.
2307
702c2711
TT
23082010-08-23 Tom Tromey <tromey@redhat.com>
2309
2310 PR python/11915:
2311 * python/py-type.c (typy_array): New function.
2312 (type_object_methods): Add "array".
2313
4a532131
PA
23142010-08-20 Pedro Alves <pedro@codesourcery.com>
2315
2316 * python/python.c: Include "serial.h".
2317 (gdbpy_event_fds): Change type to `struct serial *' a array from
2318 int array.
2319 (gdbpy_run_events): Change parameters. Use serial_readchar in
2320 place of read.
2321 (gdbpy_post_event): Use serial_write in place of write.
2322 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2323 serial_async in place of add_file_handler.
2324
58f07bae
PA
23252010-08-20 Pedro Alves <pedro@codesourcery.com>
2326
2327 * serial.h (gdb_pipe, serial_pipe): Declare.
2328 * serial.c (serial_interface_lookup): Take a const char pointer.
2329 (serial_fdopen): Rename to ...
2330 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2331 Call the OPS' fdopen function if there is one.
2332 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2333 (serial_pipe): New.
2334 (struct serial_ops) <fdopen>: New field.
2335
2336 * ser-mingw.c (free_pipe_state):
2337 (free_pipe_state): Close output on non-pex pipes.
2338 (pipe_windows_fdopen): New.
2339 (gdb_pipe): New.
2340 (_initialize_ser_windows): Register pipe_windows_fdopen.
2341 * ser-go32.c (gdb_pipe): New.
2342 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2343 no state pointer.
2344 (pipe_ops): Delete.
2345 (gdb_pipe): New.
2346
3da10d80
KS
23472010-08-20 Keith Seitz <keiths@redhat.com>
2348
2349 PR symtab/11465:
889bf7c5 2350 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
2351 (struct dwarf2_cu): Add vector method_list.
2352 (scan_partial_symbols): Count methods for union, class, structure,
2353 and interface types.
2354 (add_to_method_list): New function.
2355 (free_delayed_list): New function.
2356 (compute_delayed_physnames): New function.
2357 (process_full_comp_unit): Make a cleanup for the CU's delayed
2358 physname list, compute the delayed physnames, and free the
2359 the list.
2360 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2361 of the physname until after the CU is read.
2362
2363 * dwarf2read.c (read_structure_type): Check if the current
2364 DIE's type was already completed after dwarf2_full_name
2365 was called.
889bf7c5 2366
ca11e899
SS
23672010-08-19 Stan Shebs <stan@codesourcery.com>
2368
2369 * NEWS: Mention some additional changes.
2370
4d2dc20a
TT
23712010-08-19 Tom Tromey <tromey@redhat.com>
2372
2373 * Makefile.in (install-python): Add DESTDIR.
2374
d30f5e1f
DE
23752010-08-19 Doug Evans <dje@google.com>
2376
2377 PR exp/11926
2378 * parser-defs.h (parse_float, parse_c_float): Declare.
2379 * parse.c (parse_float, parse_c_float): New function.
2380 * c-exp.y (parse_number): Call parse_c_float.
2381 * objc-exp.y (parse_number): Ditto.
2382 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2383 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2384
2837d59e
JB
23852010-08-19 Joel Brobecker <brobecker@adacore.com>
2386
2387 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2388 the arguments in the correct order.
2389 * symtab.c (maybe_add_partial_symtab_filename): Declare
2390 the arguments in the correct order.
2391
35633fef
JK
23922010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2395 initialize it by null_frame_id, wrap its usage by get_frame_id,
2396 frame_id_p and frame_find_by_id.
2397
94f7449c
TT
23982010-08-18 Tom Tromey <tromey@redhat.com>
2399
2400 PR python/11900:
2401 * configure: Rebuild.
2402 * configure.ac: Add install-python to CONFIG_INSTALL.
2403 * Makefile.in (install-python): New.
2404
f3574227
DE
24052010-08-18 Doug Evans <dje@google.com>
2406
2407 * gdb_assert.h (gdb_assert_not_reached): New macro.
2408 (gdb_assert_fail): Fix typo in comment.
2409 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2410 gdb_assert (0).
2411 * darwin-nat.c (darwin_check_new_threads): Ditto.
2412 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2413 (munmap_section_buffer): Ditto.
2414 * m32c-tdep.c (make_types): Ditto.
2415 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2416 * macroexp.c (get_character_constant): Ditto.
2417 (get_string_literal): Ditto.
2418 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2419 (mep_pseudo_cr_index, mep_register_type): Ditto.
2420 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2421 (mep_get_insn, mep_analyze_prologue): Ditto.
2422 * objfiles.c (qsort_cmp): Ditto.
2423 * prologue-value.c (pv_is_identical): Ditto.
2424 * record.c (record_get_loc): Ditto.
2425 * value.c (value_static_field): Ditto.
2426 * xtensa-tdep.c (call0_track_op): Ditto.
2427
c92817ce
TT
24282010-08-18 Tom Tromey <tromey@redhat.com>
2429
2430 PR symtab/11919:
2431 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2432 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2433 name-copying lower. Document exception behavior.
2434 * completer.c (expression_completer): Catch exceptions from
2435 parse_field_expression.
2436
856d6f99
PA
24372010-08-18 Pedro Alves <pedro@codesourcery.com>
2438
2439 PR corefile/8210
2440
2441 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2442 workaround on core files.
2443 (try_thread_db_load_1): Don't try enabling thread event reporting
2444 on core files.
2445 (thread_db_load): Allow thread_db on core files.
2446 (attach_thread): Don't check thread signals on core files, nor try
2447 really attaching to the thread, nor enabling thread event event
2448 reporting.
2449 (thread_db_detach): Don't try disabing thread event reporting or
2450 removing thread event breakpoints when debugging a core file.
2451 (find_new_threads_callback): Don't try enabling thread event
2452 reporting on core files.
2453 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2454 debugging a core file.
2455 (thread_db_find_new_threads): Don't update thread
2456 cores (processors) when debugging a core (dump).
2457
261b8d08
PA
24582010-08-18 Pedro Alves <pedro@codesourcery.com>
2459
2460 PR corefile/8210
2461
2462 * corelow.c (add_to_thread_list): Don't use
2463 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2464 (get_core_register_section): Don't use
2465 gdbarch_core_reg_section_encodes_pid.
2466
2467 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2468 * gdbarch.h, gdbarch.c: Regenerate.
2469 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2470 gdbarch_core_reg_section_encodes_pid.
2471 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2472 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2473 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2474
f9b42018
YQ
24752010-08-18 Yao Qi <yao@codesourcery.com>
2476
2477 * MAINTAINERS : Add myself under Write After Approval.
2478
def98928
TT
24792010-08-17 Tom Tromey <tromey@redhat.com>
2480
2481 * NEWS: Mention template parameter support.
2482
0807b50c
PA
24832010-08-17 Pedro Alves <pedro@codesourcery.com>
2484
2485 PR breakpoints/11371
2486
2487 * breakpoint.c (decref_bp_location): Assert the reference count is
2488 sane.
2489
f431efe5
PA
24902010-08-17 Pedro Alves <pedro@codesourcery.com>
2491
2492 PR breakpoints/11371
2493
2494 * breakpoint.c (breakpoint_init_inferior): Decrement the
2495 location's reference count instead of deleting right away.
2496 (bpstat_free): Decrement the location's reference count. Make
2497 static.
2498 (bpstat_copy): Increment the location's reference count.
2499 (bpstat_find_breakpoint): Adjust.
2500 (bpstat_num): Adjust.
2501 (print_it_typical): Adjust. Use the breakpoint pointer in the
2502 bpstat instead of the location's owner.
2503 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2504 Adjust to record the location's owner in the bpstat.
2505 (watchpoint_check): Use the breakpoint pointer in the bpstat
2506 instead of the location's owner.
2507 (bpstat_check_breakpoint_conditions): Don't handle
2508 bp_watchpoint_scope here. Use the breakpoint pointer in the
2509 bpstat instead of the location's owner.
2510 (bpstat_stop_status): Defer inferior function calls to after
2511 building the bpstat list. Handle bp_watchpoint_scope here. Use
2512 the breakpoint pointer in the bpstat instead of the location's
2513 owner.
2514 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2515 the location's owner.
2516 (free_bp_location): Don't walk bpstats clearing locations.
2517 (incref_bp_location): New.
2518 (decref_bp_location): New.
2519 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2520 instead of the location's owner.
2521 (update_global_location_list): Clear the location's owner, and
2522 decrement the location's reference count instead of deleting it
2523 right away.
2524 (breakpoint_retire_moribund): Decrement the location's reference
2525 count instead of deleting it right away.
2526 (bpstat_remove_bp_location): Delete.
2527 (bpstat_remove_breakpoint): New.
2528 (bpstat_remove_bp_location_callback): Delete.
2529 (bpstat_remove_breakpoint_callback): New.
2530 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2531 clearing references to the breakpoint that is being deleted.
2532
2533 * breakpoint.h (struct bp_location) <refc>: New field.
2534 <owner>: Update comments.
2535 (bpstat_free): Delete declaration.
2536 (struct bpstats): Change the type of the breakpoint_at field to
2537 struct breakpoint point, from struct bp_location pointer. Add new
2538 field bp_location_at.
2539
14c0d4e1
TT
25402010-08-16 Tom Tromey <tromey@redhat.com>
2541
2542 * NEWS: Fix typo.
2543
b56df873
TT
25442010-08-16 Tom Tromey <tromey@redhat.com>
2545
2546 * NEWS: Mention watch -location.
2547
d63d0675
JK
25482010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2549
2550 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2551 EXP_STRING_REPARSE to EXP_STRING.
2552 (watch_command_1): Set also EXP_STRING_REPARSE.
2553 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2554 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2555 Update comment for exp_string.
2556
06a64a0b
TT
25572010-08-16 Tom Tromey <tromey@redhat.com>
2558
2559 * value.c (release_value): Clear 'next' pointer.
2560 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2561 (watch_command_wrapper): Update.
2562 (watch_maybe_just_location): New function.
2563 (watch_command): Update.
2564 (rwatch_command_wrapper): Update.
2565 (rwatch_command): Update.
2566 (awatch_command_wrapper): Update.
2567 (awatch_command): Update.
2568 (check_for_argument): New function.
2569 (_initialize_breakpoint): Update help text.
2570
f96b8fa0
UW
25712010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2572
2573 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2574 typedef'ed function types correctly.
2575
4eb54052
TT
25762010-08-13 Tom Tromey <tromey@redhat.com>
2577
2578 * python/python-internal.h (gdbpy_get_hook_function): Don't
2579 declare.
2580
44be957e
JK
25812010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
ba720883 2583 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2584 static.
2585
76d8b686
KW
25862010-08-13 Ken Werner <ken.werner@de.ibm.com>
2587
2588 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2589 the format strings to be compatible with Python 2.4.
2590
8dedea02
VP
25912010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2592
2593 Easier and more stubborn MI memory read commands.
2594
2595 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2596 and data-write-memory-bytes.
2597 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2598 (mi_cmd_data_write_memory_bytes): New.
2599 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2600 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2601 New.
2602 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2603 * target.c (target_read_until_error): Remove.
2604 (read_whatever_is_readable, free_memory_read_result_vector)
2605 (read_memory_robust): New.
2606 * target.h (target_read_until_error): Remove.
2607 (struct memory_read_result, free_memory_read_result_vector)
2608 (read_memory_robust): New.
2609
1d9ec526
HZ
26102010-08-13 Hui Zhu <teawater@gmail.com>
2611
2612 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2613 (read_comp_unit): Initialize back_to.
2614
98bfdba5
PA
26152010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2616 Pedro Alves <pedro@codesourcery.com>
2617
2618 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2619 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2620 (struct partial_die_info) <has_template_arguments>: New field.
2621 <num_attrs>: Change type to unsigned char.
2622 <building_fullname>: New field.
2623 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2624 allocate a CU if we don't have one already. Add a cleanup for the
2625 CU.
2626 (partial_die_full_name): Handle template arguments not in
2627 DW_AT_name.
2628 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2629 (load_full_comp_unit): Only allocate a CU if we don't have one
2630 already.
2631 (do_ui_file_peek_last): New.
2632 (dwarf2_compute_name): Handle template parameters not in
2633 DW_AT_name.
2634 (read_comp_unit): Read and free abbrevs if not read yet.
2635 (load_partial_dies): Handle template arguments not in DW_AT_name.
2636 (find_partial_die): If we have a CU, but no a partial dies yet,
2637 also read in the CU.
2638 (dwarf2_const_value_attr): New, abstracted out from
2639 dwarf2_const_value.
2640 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2641 dwarf2_const_value_attr.
2642 (determine_prefix): Detect and break loops created by RCVT's debug
2643 info.
2644 (maybe_queue_comp_unit): Bail out early if reading partial
2645 symbols.
2646 (follow_die_offset): Load full CU if we have no dies.
2647 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2648 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2649
ca5c20b6 26502010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2651 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2652
2653 * python/python.c (gdbpy_run_events): New function.
2654 (gdbpy_post_event): Likewise.
2655 (gdbpy_initialize_events): Likewise.
2656 (_initialize_python): Call gdbpy_initialize_events.
2657
7346b668
KW
26582010-08-11 Ken Werner <ken.werner@de.ibm.com>
2659
2660 * gdb/valarith.c (vector_binop): New function.
2661 (scalar_binop): Likewise.
2662 (value_binop): Call scalar_binop or vector_binop depending on the types.
2663 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2664 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2665 to pointers.
2666 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2667
62183e15
TT
26682010-08-11 Brad Roberts <braddr@puremagic.com>
2669
2670 * d-lang.c (extract_identifiers): Handle multiple digits.
2671
39d7b0e2
JK
26722010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2673
2674 Code cleanup.
2675 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2676 Rename to dummy_frame_unwind.
2677 (dummy_frame_unwind): Remove.
2678 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2679 * frame-unwind.c (frame_unwind_init): Use address of
2680 dummy_frame_unwind and inline_frame_unwind.
2681 * frame.c (create_sentinel_frame): Use address of
2682 sentinel_frame_unwind.
2683 * inline-frame.c (inline_frame_unwinder): Rename to
2684 inline_frame_unwind.
2685 (inline_frame_unwind): Remove.
2686 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2687 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2688 sentinel_frame_unwind.
2689 (sentinel_frame_unwind): Remove.
2690 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2691 struct.
2692
9f9a8002
JK
26932010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2694
2695 Code cleanup.
2696 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2697 and returned value. New comment from frame-unwind.h.
2698 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2699 Extend the comment.
2700 * frame.c (get_frame_id, frame_unwind_register_value)
2701 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2702 (get_frame_type, frame_unwind_arch): Do not use the return value of
2703 frame_unwind_find_by_frame.
2704
cb2e07a6 27052010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2706 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2707 Tom Tromey <tromey@redhat.com>
2708
2709 * python/python.c (gdbpy_solib_address): New function.
2710 (gdbpy_decode_line): Likewise.
2711
c29c521f
TT
27122010-08-10 Tom Tromey <tromey@redhat.com>
2713
2714 Revert gdb-add-index addition:
2715 * Makefile.in (install-only): Don't install gdb-add-index.
2716 * gdb-add-index.sh: Remove.
2717
0c012db1
KB
27182010-08-09 Kevin Buettner <kevinb@redhat.com>
2719
2720 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2721 `target_has_execution' check with `to_has_memory' check.
2722 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2723 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2724 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2725
db04efe6
KB
27262010-08-09 Kevin Buettner <kevinb@redhat.com>
2727
2728 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2729 (resume_siggnal, resume_step): Move these static globals...
2730 (struct sim_inferior_data): ...into this new struct.
2731 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2732 New static globals.
2733 (gdb_callback, callbacks_initialized): Move these globals to
2734 a point earlier in the file.
2735 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2736 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2737 (gdbsim_close_inferior, gdbsim_resume_inferior)
2738 (gdbsim_stop_inferior): New functions.
2739 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2740 New constants.
2741 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2742 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2743 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2744 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2745 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2746 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2747 new local variable `sim_data' in each of these functions. Use
2748 `sim_data' to reference former globals `program_loaded',
2749 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2750 `resume_step'.
2751 (gdbsim_open): Remove local variable `argv'. Put results of call
2752 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2753 make a cleanup for it. Free it though when a sim instance cannot
2754 be obtained.
2755 (gdbsim_close): Free sim_argv and null it out as appropriate.
2756 Close sim instances in all inferiors.
2757 (gdbsim_cntrl_c): Stop all inferiors.
2758 (gdbsim_wait):
2759 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2760
e37fd15a
SW
27612010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2762
2763 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2764 function after symbol construction is complete.
2765 Do the same for template symbol addition to template_symbols list.
2766
45c58896
SW
27672010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2768
2769 * symtab.c (symbol_get_demangled_name): Remove assertion and
2770 return NULL when language_specific.cplus_specific is not initialized.
2771 * stabsread.c (define_symbol): Set the name before calling
2772 cp_scan_for_anonymous_namespaces.
2773
33e5013e
SW
27742010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2775
2776 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2777 SYMBOL_SET_LANGUAGE.
2778 (symbol_init_language_specific): Renamed to symbol_set_language.
2779 * symtab.c (symbol_init_language_specific): Removed redundant check
2780 for language_cplus.
2781 Renamed to symbol_set_language.
2782 * stabsread.c (define_symbol): Updated.
2783 (read_enum_type): Updated
2784 * psymtab.c (add_psymbol_to_bcache): Updated.
2785 * minsyms.c (install_minimal_symbols): Updated.
2786 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2787 SYMBOL_LANGUAGE to set the language.
2788 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2789 * mdebugread.c (new_symbol): Ditto.
2790 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2791 * dwarf2read.c (new_symbol_full): Ditto.
2792 * jv-lang.c (add_class_symbol): Ditto.
2793
5da1313b
JK
27942010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2797 (make_cleanup_restore_page_info)
2798 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2799 * gdbcmd.h (execute_command_to_string): New declaration.
2800 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2801 (make_cleanup_restore_ui_file): Move to utils.c
2802 (execute_gdb_command) <to_string>: Move ...
2803 * top.c (execute_command_to_string): ... here. Call
2804 set_batch_flag_and_make_cleanup_restore_page_info.
2805 * utils.c (make_cleanup_restore_integer): New source file blank line.
2806 (make_cleanup_restore_uinteger): New.
2807 (struct restore_ui_file_closure, do_restore_ui_file)
2808 (make_cleanup_restore_ui_file): Move here from python/python.c.
2809 (init_page_info) <batch_flag>
2810 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2811 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2812
c820c52a
PA
28132010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2814
2815 * thread.c (add_thread_silent): Use null_ptid instead of
2816 minus_one_ptid while getting rid of stale inferior_ptid.
2817
8da614df
CV
28182010-08-06 Corinna Vinschen <vinschen@redhat.com>
2819
2820 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2821 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2822 (decode_frame_entry_1): Remove redundant setting of
2823 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2824 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2825 on examined frame section. Add comment to explain why.
2826 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2827 comment to explain usage.
2828 * gdbarch.c: Regenerate.
2829 * gdbarch.h: Regenerate.
2830
2831 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2832
e4195b40
JK
28332010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 Code cleanup.
2836 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2837 a more inner block.
2838
a3217aa0
PA
28392010-08-05 Pedro Alves <pedro@codesourcery.com>
2840
2841 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2842 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2843 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2844 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2845 linux-tdep.o to gdb_target_obs.
2846
e2b4a699 28472010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2848
2849 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2850 argument.
889bf7c5 2851
50e8a0d5
HZ
28522010-08-05 Hui Zhu <teawater@gmail.com>
2853
2854 * mips-linux-tdep.c(regset.h): New include.
2855 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2856 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2857 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2858 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2859 mips_linux_regset_from_core_section): New functions.
2860 (fetch_core_registers, regset_core_fns): Deleted.
2861 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2862 Deleted regset_core_fns.
2863 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2864 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2865 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2866 and fpregset64.
2867
70728992
PA
28682010-08-04 Pedro Alves <pedro@codesourcery.com>
2869
2870 * s390-tdep.c: Include linux-tdep.h.
2871 (s390_gdbarch_init): Call linux_init_abi.
2872
a5ee0f0c
PA
28732010-08-04 Pedro Alves <pedro@codesourcery.com>
2874
2875 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2876 instead of printing "Thread" here.
2877 * linux-tdep.c: Include inferior.h.
2878 (linux_core_pid_to_str): New.
2879 (linux_init_abi): New.
2880 * linux-tdep.h (linux_init_abi): Declare.
2881 * alpha-linux-tdep.c: Include linux-tdep.h.
2882 (alpha_linux_init_abi): Call linux_init_abi.
2883 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2884 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2885 * frv-linux-tdep.c: Include linux-tdep.h
2886 (frv_linux_init_abi): Call linux_init_abi.
2887 * hppa-linux-tdep.c: Include linux-tdep.h
2888 (hppa_linux_init_abi): Call linux_init_abi.
2889 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2890 * ia64-linux-tdep.c: Include linux-tdep.h.
2891 (ia64_linux_init_abi): Call linux_init_abi.
2892 * m32r-linux-tdep.c: Include linux-tdep.h.
2893 (m32r_linux_init_abi): Call linux_init_abi.
2894 * m68klinux-tdep.c: Include linux-tdep.h.
2895 (m68k_linux_init_abi): Call linux_init_abi.
2896 * microblaze-linux-tdep.c: Include linux-tdep.h.
2897 (microblaze_linux_init_abi): Call linux_init_abi.
2898 * mips-linux-tdep.c: Include linux-tdep.h.
2899 (mips_linux_init_abi): Call linux_init_abi.
2900 * mn10300-linux-tdep.c: Include linux-tdep.h.
2901 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2902 'gdbinfo' parameter to 'info'.
2903 * ppc-linux-tdep.c: Include linux-tdep.h.
2904 (ppc_linux_init_abi): Call linux_init_abi.
2905 * sh-linux-tdep.c: Include linux-tdep.h.
2906 (sh_linux_init_abi): Call linux_init_abi.
2907 * sparc-linux-tdep.c: Include linux-tdep.h.
2908 (sparc32_linux_init_abi): Call linux_init_abi.
2909 * sparc64-linux-tdep.c: Include linux-tdep.h.
2910 (sparc64_linux_init_abi): Call linux_init_abi.
2911 * xtensa-linux-tdep.c: Include linux-tdep.h.
2912 (xtensa_linux_init_abi): Call linux_init_abi.
2913 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2914 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2915 callback.
2916
bc043ef3
DE
29172010-08-03 Doug Evans <dje@google.com>
2918
2919 * breakpoint.c (bpdisp_text): Constify bpdisps.
2920 * solib-svr4.c (solib_break_names): Constify.
2921 (bkpt_names, main_name_list): Constify.
2922 (match_main): Constify soname arg.
63cdd227
DE
2923 (bfd_lookup_symbol): Remove unnecessary forward decl.
2924 Constify symname arg.
bc043ef3
DE
2925 (enable_break): Constify bkpt_namep.
2926 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2927 (symtab_symbol_info): Constify classnames.
2928
585d1eb8
PM
29292010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2930
2931 * NEWS: Document Python value inferior function calls.
2932
2de00c64
DE
29332010-08-02 Doug Evans <dje@google.com>
2934
2935 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2936
02d868e8
PP
29372010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2938
2939 * linux-thread-db.c (libthread_db_debug): New variable.
2940 (thread_db_find_new_threads_silently): Control verbosity with it.
2941 (try_thread_db_load_1, try_thread_db_load): Likewise.
2942 (find_new_threads_once): Likewise.
2943 (_initialize_thread_db): Set/show it.
2944
a19cae16
JK
29452010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2946
2947 * common/signals.c (signals): Move the content to signals.def.
2948 Include it. Remove the INDENT comments.
2949
c2bbed2a
TT
29502010-07-30 Tom Tromey <tromey@redhat.com>
2951
2952 * Makefile.in (install-only): Install gdb-add-index.
2953 * gdb-add-index.sh: New file.
2954
f32b2f09
CR
29552010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2956
2957 * MAINTAINERS: Add myself for write after approval privileges.
2958
1276c759
JK
29592010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2960
2961 * symfile.c (addr_section_name): New function.
2962 (addrs_section_compar): Use it.
2963 (addr_info_make_relative): Use it. Move variable sect_name into a more
2964 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2965
420697bb
TT
29662010-07-30 Tom Tromey <tromey@redhat.com>
2967
2968 * configure: Rebuild.
2969 * configure.ac: Add missing case for Python 2.7.
2970
d0d99561
DD
29712010-07-29 DJ Delorie <dj@redhat.com>
2972
2973 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2974 conditions.
2975
0b29bdde
PA
29762010-07-29 Pedro Alves <pedro@codesourcery.com>
2977
2978 * PROBLEMS: Remove mention of all problems.
2979
110ed339
PA
29802010-07-28 Pedro Alves <pedro@codesourcery.com>
2981
2982 PR build/11848
2983 * configure.ac: Check for wresize.
2984 * configure, config.in: Regenerate.
2985 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2986 with HAVE_WRESIZE.
2987
326fd672
TT
29882010-07-28 Tom Tromey <tromey@redhat.com>
2989
2990 PR python/11060:
2991 * python/py-type.c (typy_legacy_template_argument): New function,
2992 extracted from typy_template_argument.
2993 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2994 value when needed.
2995
4ac8c4da
TT
29962010-07-28 Oleg Nesterov <oleg@redhat.com>
2997
2998 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2999
053315c2
TT
30002010-07-27 Tom Tromey <tromey@redhat.com>
3001
3002 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3003
3ce3b1ba
PA
30042010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3005
3006 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3007 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3008
2bb4f988
TT
30092010-07-28 Tom Tromey <tromey@redhat.com>
3010
3011 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3012
74232302
JB
30132010-07-28 Joel Brobecker <brobecker@adacore.com>
3014
3015 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3016 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3017
385d04dc
JB
30182010-07-28 Joel Brobecker <brobecker@adacore.com>
3019
3020 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3021 down, just before the block that parse the breakpoint addr_string.
3022
34eaf542
TT
30232010-07-28 Tom Tromey <tromey@redhat.com>
3024
3025 PR c++/9946:
3026 * symfile.c (reread_symbols): Clear template_symbols.
3027 * symtab.h (struct symbol) <is_cplus_template_function>: New
3028 field.
3029 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3030 (struct template_symbol): New.
3031 * symtab.c (lookup_symbol_aux_local): Use
3032 cp_lookup_symbol_imports_or_template.
3033 * objfiles.h (struct objfile) <template_symbols>: New field.
3034 * objfiles.c (relocate_one_symbol): New function.
3035 (objfile_relocate1): Use it. Relocate isolated symbols.
3036 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3037 template_arguments>: New fields.
3038 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3039 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3040 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3041 (lookup_typename): Update.
3042 * gdbtypes.c (lookup_typename): Constify "block" argument.
3043 * dwarf2read.c: Include vec.h.
3044 (symbolp): New typedef.
3045 (read_func_scope): Read template arguments. Allocate a
3046 template_symbol when needed.
3047 (read_structure_type): Read template arguments.
3048 (new_symbol_full): New function, from new_symbol. Handle
3049 DW_TAG_template_type_param and DW_TAG_template_value_param.
3050 (new_symbol): Rewrite as wrapper.
3051 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3052 * cp-namespace.c: Include language.h.
3053 (search_symbol_list): New function.
3054 (cp_lookup_symbol_imports_or_template): Likewise.
3055
d27b3be4
PA
30562010-07-28 Balazs Kezes <rlblaster@gmail.com>
3057
3058 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3059 the command window to the new size and position.
3060
0036e657
PA
30612010-07-28 Balazs Kezes <rlblaster@gmail.com>
3062
a782f43e 3063 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
3064 coordinates.
3065
36900355
PA
30662010-07-28 Balazs Kezes <rlblaster@gmail.com>
3067
a782f43e 3068 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 3069 after a detecting a resize.
a782f43e 3070 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
3071 call.
3072
db5e03ae
PA
30732010-07-28 Pedro Alves <pedro@codesourcery.com>
3074
3075 * configure.ac: Check for resize_term.
3076 * configure, config.in: Regenerate.
3077
b71fff68
JB
30782010-07-27 Joel Brobecker <brobecker@adacore.com>
3079
3080 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3081
9b1c24c8
PA
30822010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3083
3084 * dwarf2read.c (read_string): Rename to ...
3085 (read_direct_string): ... this.
3086 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3087 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3088
00390b84
JK
30892010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3090
3091 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3092 (count_events_callback, select_event_lwp_callback)
3093 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3094
26ab7092
JK
30952010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3096
3097 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3098 (_initialize_ia64_linux_nat): Install it.
3099 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3100 (linux_nat_set_status_is_event): New.
3101 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3102 cancel_breakpoints_callback, linux_nat_filter_event)
3103 (linux_nat_wait_1): Use linux_nat_status_is_event.
3104 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3105
283e6a52
TT
31062010-07-27 Tom Tromey <tromey@redhat.com>
3107
3108 * NEWS: Mention labels, .gdb_index.
3109
53a71c06
CR
31102010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3111
3112 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 3113 "start,+length" form of arguments.
53a71c06
CR
3114 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3115 since GDB 7.1"; and merge two separated paragraphs of disassemble
3116 description in "Changes in GDB 7.0".
3117
c63a1f86
JK
31182010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3119
3120 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3121 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3122 (fputs_maybe_filtered): Do not do filtering also on
3123 ! INPUT_FROM_TERMINAL_P.
3124
abebb8b0
JB
31252010-07-27 Joel Brobecker <brobecker@adacore.com>
3126
3127 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3128 in warning message.
3129
5374244e
PM
31302010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3131
3132 * python/py-value.c (valpy_call): New Function.
3133
ac0b195c
KW
31342010-07-27 Ken Werner <ken.werner@de.ibm.com>
3135
889bf7c5 3136 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
3137 types_list_elements variables.
3138
09d8bd00
TT
31392010-07-26 Tom Tromey <tromey@redhat.com>
3140
3141 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3142 TLS with DW_OP_const4u or DW_OP_const8u.
3143
9fe70b4f
TJB
31442010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3145
3146 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3147 VSX registers contents.
3148
caac4577
JG
31492010-07-26 Jerome Guitton <guitton@adacore.com>
3150
3151 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3152 its adress is null. Add comment to explain why.
3153 (new_symbol): Ditto.
3154
857d11d0
JK
31552010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3156
3157 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3158 the host signal first.
3159
1fd400ff
TT
31602010-07-23 Tom Tromey <tromey@redhat.com>
3161
3162 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3163 type_comp_units>: New fields.
3164 (dw2_get_cu): New function.
3165 (create_cus_from_index): Remove unused argument.
3166 (create_signatured_type_hash_from_index): New function.
3167 (create_addrmap_from_index): Update.
3168 (dwarf2_read_index): Handle version 2.
3169 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3170 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3171 (dw2_print_stats, dw2_expand_all_symtabs)
3172 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3173 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3174 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3175 (allocate_signatured_type_hash_table): New function.
3176 (add_signatured_type_cu_to_list): Likewise.
3177 (create_debug_types_hash_table): Use them. Set type_comp_units.
3178 (read_signatured_type): Ensure section data is available.
3179 (add_address_entry): Don't record empty ranges.
3180 (struct signatured_type_index_data): New.
3181 (write_one_signatured_type): New function.
3182 (write_psymtabs_to_index): Write type CUs.
3183 (save_gdb_index_command): Update comment.
3184 (process_type_comp_unit): Move inititalization of
3185 from_debug_types...
3186 (create_debug_types_hash_table): ... here.
3187
3a674486
JK
31882010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3189
3190 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3191 cleanup and generating of gdb script to it.
3192 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3193 and terminal size. Convert $tmpfile to a series of -ex-es.
3194
54ec275a
KS
31952010-07-23 Keith Seitz <keiths@redhat.com>
3196
3197 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3198 hook for STATIC_BLOCK types, too.
3199
8fd447e6
KS
32002010-07-23 Keith Seitz <keiths@redhat.com>
3201
3202 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3203 and vector definition.
3204
25b72dde
JK
32052010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3206
3207 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3208
96d19272
JK
32092010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 * dwarf2read.c: Include completer.h.
3212 (save_gdb_index_command): Use matching usage command name.
3213 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3214 Set filename_completer for it.
3215
ca1f3406
TT
32162010-07-22 Tom Tromey <tromey@redhat.com>
3217
3218 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3219 type signature's per-CU data.
3220
ba25b921
PA
32212010-07-22 Pedro Alves <pedro@codesourcery.com>
3222
3223 * NEWS: Mention target reported shared libraries support by
3224 default.
3225
23bd0f7c
PA
32262010-07-21 Pedro Alves <pedro@codesourcery.com>
3227
3228 PR symtab/11827
3229
3230 Revert:
3231 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3232 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3233 and DW_TAG_volatile_type.
3234 (new_symbol): Likewise.
3235
883df6dd
SW
32362010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3237
3238 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3239 function symbols before overload resolution.
3240
269b11a2
PA
32412010-07-21 Pedro Alves <pedro@codesourcery.com>
3242
3243 * breakpoint.c (bptype_string): New, abstracted out from
3244 print_one_breakpoint_location.
3245 (print_one_breakpoint_location): Adjust.
3246 (breakpoint_1): Adjust the type column width dynamically.
3247
569b05a5
JK
32482010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3249
3250 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3251 a gdb_assert call, new comment.
3252
ad34eb2f
JK
32532010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3254
3255 * linux-nat.c (linux_handle_extended_wait): Handle case when
3256 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3257
33355866
JK
32582010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3259
3260 Code cleanup.
3261 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3262 linux_nat_wait_1. Use always LP->STATUS afterwards.
3263
26590820
HZ
32642010-07-20 Hui Zhu <teawater@gmail.com>
3265
3266 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3267 (inf_ptrace_attach): Ditto.
3268
c0edd9ed
JK
32692010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3270
3271 Make core files the process_stratum.
3272 * corefile.c (core_target): New variable.
3273 (core_file_command): Remove variable t, use core_target.
3274 * corelow.c (core_ops): Make it static.
3275 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3276 * defs.h (make_cleanup_unpush_target): New prototype.
3277 * gdbarch.h: Regenerate.
3278 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3279 * gdbcore.h (core_target): New declaration.
3280 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3281 variables ops_already_pushed and back_to. Use push_target,
3282 make_cleanup_unpush_target and discard_cleanups calls.
3283 * record.c (record_open): Replace core_stratum by a core_bfd check.
3284 * target.c (target_is_pushed): New function.
3285 (find_core_target): Remove.
3286 * target.h (enum strata) <core_stratum>: Remove.
3287 (target_is_pushed): New declaration.
3288 (find_core_target): Remove declaration.
3289 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3290 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3291
f02253f1
HZ
32922010-07-19 Hui Zhu <teawater@gmail.com>
3293
3294 * breakpoint.c (single_step_breakpoints_inserted): New
3295 function.
3296 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3297 * infrun.c (maybe_software_singlestep): Add check code.
3298 * record.c (record_resume): Add code for software single step.
3299 (record_wait): Ditto.
3300
78768c4a
JK
33012010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3302
3303 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3304 a more inner block. Remove its unused declaration initializer.
3305
431e49aa
TJB
33062010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3307
3308 * NEWS: Mention support for the new ptrace interface and hardware
3309 accelerated watchpoint conditions on powerpc-linux.
3310
bd91e7ae
OS
33112010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3312
3313 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3314 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3315 and host_address_to_string() and %s for pointers.
3316 (debug_to_remove_breakpoint): Likewise.
3317 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3318 (debug_to_can_accel_watchpoint_condition): Likewise.
3319 (debug_to_stopped_data_address): Likewise.
3320 (debug_to_watchpoint_addr_within_range): Likewise.
3321 (debug_to_insert_hw_breakpoint): Likewise.
3322 (debug_to_remove_hw_breakpoint): Likewise.
3323 (debug_to_insert_watchpoint): Likewise.
3324 (debug_to_remove_watchpoint): Likewise.
3325
29df156d
SW
33262010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3327
3328 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3329 argument.
3330 (cplus_specific): New struct.
3331 * symtab.c (symbol_set_demangled_name): Updated.
3332 Use cplus_specific for cplus symbols.
3333 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3334 struct for cplus symbols.
3335 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3336 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3337 * symtab.c (symbol_init_cplus_specific): New function.
3338
b250c185
SW
33392010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3340
3341 * symtab.h (symbol_set_demangled_name): New function.
3342 (symbol_get_demangled_name): New function.
3343 * symtab.c (symbol_set_demangled_name): New function.
3344 (symbol_get_demangled_name): New function.
3345 (symbol_init_language_specific): Use demangled_name setter and getter.
3346 (symbol_set_names): Ditto.
3347 (symbol_natural_name): Ditto.
3348 (symbol_demangled_name): Ditto.
3349 * dwarf2read.c (new_symbol): Ditto.
3350
afa16725
SW
33512010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3352
3353 * symtab.h: Renamed cplus_specific to mangled_lang.
3354 * symtab.c (symbol_init_language_specific): Updated.
3355 (symbol_set_names): Updated.
3356 (symbol_natural_name): Updated.
3357 (symbol_demangled_name): Updated.
3358 * ada-lang.c (ada_decode_symbol): Updated.
3359 * dwarf2read.c (new_symbol): Updated.
3360
3cbaedff
KW
33612010-07-14 Ken Werner <ken.werner@de.ibm.com>
3362
3363 * valops.c (value_assign): Do not call to value_coerce_to_target.
3364 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3365
c932f1be
KW
33662010-07-14 Ken Werner <ken.werner@de.ibm.com>
3367
3368 * MAINTAINERS: Add myself for write after approval privileges.
3369
91158a56
TT
33702010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3371
3372 * c-valprint.c (c_val_print): Add embedded_offset to address in
3373 call to val_print_array_elements.
3374
b3b272e1
TT
33752010-07-13 Tom Tromey <tromey@redhat.com>
3376
3377 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3378
bb3fa9d0
TT
33792010-07-13 Tom Tromey <tromey@redhat.com>
3380
3381 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3382 objfile.
3383
dd786858
TT
33842010-07-13 Tom Tromey <tromey@redhat.com>
3385
3386 * symfile.c (set_initial_language): Update.
3387 (deduce_language_from_filename): Argument type now const.
3388 * symtab.h (find_main_filename): Update.
3389 (deduce_language_from_filename): Update.
3390 * symtab.c (find_main_filename): Make result const.
3391 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3392 * psymtab.c (find_symbol_file_from_partial): Change return type.
3393 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3394 Make result const.
3395
9291a0cd
TT
33962010-07-13 Tom Tromey <tromey@redhat.com>
3397
3398 * breakpoint.c (save_cmdlist): No longer static.
3399 * gdbcmd.h (save_cmdlist): Declare.
3400 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3401 OBJF_READNOW on objfile if readnow_symbol_files.
3402 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3403 (elf_sym_fns_gdb_index): New global.
3404 * dwarf2read.c: Include exceptions.h.
3405 (offset_type): New.
3406 (struct mapped_index): New.
3407 (dwarf2_per_cu_data_ptr): New typedef.
3408 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3409 New fields.
3410 (GDB_INDEX_SECTION): New define.
3411 (struct dwarf2_per_cu_quick_data): New.
3412 (struct dwarf2_per_cu_data) <objfile>: New field.
3413 <psymtab>: Removed.
3414 <v>: New field.
3415 (byte_swap): New function.
3416 (MAYBE_SWAP): New macro.
3417 (INDEX_SUFFIX): New macro.
3418 (dw2_do_instantiate_symtab): New function.
3419 (dw2_instantiate_symtab): Likewise.
3420 (create_cus_from_index): Likewise.
3421 (create_addrmap_from_index): Likewise.
3422 (mapped_index_string_hash): Likewise.
3423 (find_slot_in_mapped_hash): Likewise.
3424 (dwarf2_read_index): Likewise.
3425 (dw2_setup): Likewise.
3426 (dw2_require_line_header): Likewise.
3427 (dw2_require_full_path): Likewise.
3428 (dw2_find_last_source_symtab): Likewise.
3429 (dw2_forget_cached_source_info): Likewise.
3430 (dw2_lookup_symtab): Likewise.
3431 (dw2_lookup_symbol): Likewise.
3432 (dw2_do_expand_symtabs_matching): Likewise.
3433 (dw2_pre_expand_symtabs_matching): Likewise.
3434 (dw2_print_stats): Likewise.
3435 (dw2_dump): Likewise.
3436 (dw2_relocate): Likewise.
3437 (dw2_expand_symtabs_for_function): Likewise.
3438 (dw2_expand_all_symtabs): Likewise.
3439 (dw2_expand_symtabs_with_filename): Likewise.
3440 (dw2_find_symbol_file): Likewise.
3441 (dw2_map_ada_symtabs): Likewise.
3442 (dw2_expand_symtabs_matching): Likewise.
3443 (dw2_find_pc_sect_symtab): Likewise.
3444 (dw2_map_symbol_names): Likewise.
3445 (dw2_map_symbol_filenames): Likewise.
3446 (dw2_has_symbols): Likewise.
3447 (dwarf2_gdb_index_functions): New global.
3448 (dwarf2_initialize_objfile): New function.
3449 (process_psymtab_comp_unit): Update.
3450 (add_partial_subprogram): Likewise.
3451 (dwarf2_psymtab_to_symtab): Likewise.
3452 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3453 (process_full_comp_unit): Update.
3454 (find_file_and_directory): New function.
3455 (read_file_scope): Use find_file_and_directory.
3456 (dwarf2_per_cu_objfile): Update.
3457 (dwarf2_per_cu_addr_size): Update.
3458 (dwarf2_per_cu_offset_size): Update.
3459 (dwarf2_free_objfile): Free the index, if needed.
3460 (dwarf2_per_objfile_free): Unmap the index, if needed.
3461 (struct strtab_entry): New.
3462 (hash_strtab_entry): New function.
3463 (eq_strtab_entry): Likewise.
3464 (create_strtab): Likewise.
3465 (add_string): Likewise.
3466 (struct symtab_index_entry): New.
3467 (struct mapped_symtab): New.
3468 (hash_symtab_entry): New function.
3469 (eq_symtab_entry): Likewise.
3470 (delete_symtab_entry): Likewise.
3471 (create_index_table): Likewise.
3472 (create_mapped_symtab): Likewise.
3473 (cleanup_mapped_symtab): Likewise.
3474 (find_slot): Likewise.
3475 (hash_expand): Likewise.
3476 (add_index_entry): Likewise.
3477 (add_indices_to_cpool): Likewise.
3478 (write_hash_table): Likewise.
3479 (add_address_entry): Likewise.
3480 (write_psymbols): Likewise.
3481 (write_obstack): Likewise.
3482 (unlink_if_set): Likewise.
3483 (write_psymtabs_to_index): Likewise.
3484 (save_gdb_index_command): Likewise.
3485 (_initialize_dwarf2_read): Install "save gdb-index"
3486 command.
3487 (create_all_comp_units): Initialize 'objfile' field of CU.
3488 (dwarf2_locate_sections): Check for .gdb_index.
3489 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3490 * symfile.h (dwarf2_initialize_objfile): Declare.
3491
58b6ab13
TT
34922010-07-13 Tom Tromey <tromey@redhat.com>
3493
3494 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3495 (basic_lookup_transparent_type): Likewise.
3496 * symfile.h (struct quick_symbol_functions)
3497 <pre_expand_symtabs_matching>: New field.
3498 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3499 (psym_functions): Update.
3500
0f5238ed
TT
35012010-07-13 Tom Tromey <tromey@redhat.com>
3502
3503 PR breakpoints/8357:
3504 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3505 * linespec.c (decode_line_1): Update comment. Call decode_label.
3506 (decode_label): New function.
3507 (symbol_found): Handle LOC_LABEL.
3508 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3509 domain. Call add_symbol_to_list.
3510
9aa1f1e3
TT
35112010-07-13 Tom Tromey <tromey@redhat.com>
3512
3513 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3514 * dwarf2loc.c (find_location_expression): Use
3515 dwarf2_per_cu_text_offset.
3516 (dwarf2_evaluate_loc_desc): Likewise.
3517 (dwarf2_loc_desc_needs_frame): Likewise.
3518 (compile_dwarf_to_ax): Likewise.
3519 (loclist_describe_location): Likewise.
3520 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3521 (dwarf2_per_cu_objfile): Update comment.
3522
953ac07e
JK
35232010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3524
3525 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3526 * p-lang.c (pascal_printstr): Likewise.
3527
f04e4012
TT
35282010-07-09 Tom Tromey <tromey@redhat.com>
3529
3530 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3531 'hint' if it is NULL.
3532
f4dfd9c0
HZ
35332010-07-09 Hui Zhu <teawater@gmail.com>
3534
3535 * source.c (print_source_lines_base): Add check for noprint.
3536
7e6e39e5
JB
35372010-07-08 Joel Brobecker <brobecker@adacore.com>
3538
3539 * python/python-config.py: Resync with Python 2.7 version of this
3540 script.
3541
76b8507d
JB
35422010-07-08 Joel Brobecker <brobecker@adacore.com>
3543
3544 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3545
797054e6
JB
35462010-07-07 Joel Brobecker <brobecker@adacore.com>
3547
3548 * NEWS: Create a new section for the next release branch.
3549 Rename the section of the current branch, now that it has
3550 been cut.
3551
c80befee 35522010-07-07 Joel Brobecker <brobecker@adacore.com>
3553
3554 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3555 * version.in: Bump version to 7.2.50.20100707-cvs.
3556
ac56253d
TT
35572010-07-07 Tom Tromey <tromey@redhat.com>
3558
3559 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3560 LOC_COMPUTED symbol.
3561 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3562 (dwarf2_loc_desc_needs_frame): Likewise.
3563 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3564 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3565 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3566 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3567 'offset' argument.
3568 (struct dwarf2_frame_cache) <text_offset>: New field.
3569 (dwarf2_frame_cache): Set new field.
3570 (dwarf2_frame_prev_register): Update.
3571 (dwarf2_frame_sniffer): Update.
3572 (dwarf2_frame_base_sniffer): Update.
3573 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3574
0cf6dd15
TJB
35752010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3576 Thiago Jung Bauermann <bauerman@br.ibm.com>
3577
3578 Support for hw accelerated condition watchpoints in booke powerpc.
3579
3580 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3581 and move to eval.c. Change callers.
3582 (insert_bp_location): Pass watchpoint condition in
3583 target_insert_watchpoint.
3584 (remove_breakpoint_1) Pass watchpoint condition in
3585 target_remove_watchpoint.
3586 (watchpoint_locations_match): Call
3587 target_can_accel_watchpoint_condition.
3588 * eval.c: Include wrapper.h.
3589 (fetch_subexp_value): Moved from breakpoint.c.
3590 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3591 Formatting fix.
3592 (can_use_watchpoint_cond_accel): New function.
3593 (calculate_dvc): Likewise.
3594 (num_memory_accesses): Likewise.
3595 (check_condition): Likewise.
3596 (ppc_linux_can_accel_watchpoint_condition): Likewise
3597 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3598 check_condition and calculate_dvc.
3599 (ppc_linux_remove_watchpoint): Likewise.
3600 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3601 ppc_linux_can_accel_watchpoint_condition
3602 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3603 condition.
3604 (debug_to_remove_watchpoint): Likewise.
3605 (debug_to_can_accel_watchpoint_condition): New function.
3606 (update_current_target): Set to_can_accel_watchpoint_condition.
3607 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3608 * target.h: Add opaque declaration for struct expression.
3609 (struct target_ops) <to_insert_watchpoint>,
3610 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3611 <to_can_accel_watchpoint_condition>: New member.
3612 condition. Update all callers and implementations.
3613 (target_can_accel_watchpoint_condition): New macro.
3614 * value.c (free_value_chain): New function.
3615 * value.h (fetch_subexp_value): New prototype.
3616 (free_value_chain): Likewise.
3617
2f2241f1
UW
36182010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3619
3620 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3621 from gdbarch_core_regset_sections also for .reg if present.
3622
3623 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3624 section size for .reg.
3625 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3626 (ppc_linux_vmx_regset_sections): Likewise.
3627 (ppc_linux_fp_regset_sections): Likewise.
3628 (ppc64_linux_vsx_regset_sections): New variable.
3629 (ppc64_linux_vmx_regset_sections): Likewise.
3630 (ppc64_linux_fp_regset_sections): Likewise.
3631 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3632 for current word size.
3633
1fd7cdc2
JB
36342010-07-06 Joel Brobecker <brobecker@adacore.com>
3635
3636 * server.c (myresume): Make static.
3637
11763c18
TT
36382010-07-06 Tom Tromey <tromey@redhat.com>
3639
3640 * configure, config.in: Rebuild.
3641 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3642 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3643
a6cc4789
AS
36442010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3645
3646 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3647 "clear".
3648
f9e9243a
UW
36492010-07-06 Ken Werner <ken.werner@de.ibm.com>
3650
3651 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3652 * gdbtypes.c (floatformats_ieee_half): New variable.
3653 * doublest.c (floatformat_from_length): Set format to
3654 gdbarch_half_format if length matches.
3655 * gdbarch.sh (half_bit): New architecture method.
3656 (half_format): Likewise.
3657 * gdbarch.h: Regenerate.
3658 * gdbarch.c: Likewise.
3659
4e5799b6
JK
36602010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3661 Joel Brobecker <brobecker@adacore.com>
3662
3663 Fix re-run of PIE executable, PR shlibs/11776.
3664 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3665 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3666
86e4bafc
JK
36672010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3668 Joel Brobecker <brobecker@adacore.com>
3669
3670 * auxv.c (memory_xfer_auxv): Update attach comment.
3671 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3672 svr4_relocate_main_executable.
3673 (svr4_solib_create_inferior_hook): Make the call to
3674 svr4_relocate_main_executable unconditional.
3675
3cd07d20
JK
36762010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3677 Joel Brobecker <brobecker@adacore.com>
3678
3679 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3680
0a1e94c7
JK
36812010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3682 Joel Brobecker <brobecker@adacore.com>
3683
3684 Fix attaching to PIEs prelinked on the disk after the process was
3685 started.
3686 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3687 Verify it against bfd_get_arch_size. Try to match arbitrary
3688 displacement for the phdrs comparison.
3689
5387647f
TT
36902010-07-02 Tom Tromey <tromey@redhat.com>
3691
3692 PR exp/11780:
3693 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3694 value as optimized-out.
3695
38b6c3b3
TJB
36962010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3697 Thiago Jung Bauermann <bauerman@br.ibm.com>
3698
3699 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3700 represent?" question in comment. Change comment to a proper sentence.
3701
a17ac5b0
TT
37022010-07-02 Ken Werner <ken.werner@de.ibm.com>
3703
3704 * c-valprint.c (c_val_print): Fix printing of character vectors.
3705
bddaafad
JK
37062010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3707
3708 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3709 create_breakpoint prototype.
3710
d41c0fc8
PA
37112010-07-01 Pedro Alves <pedro@codesourcery.com>
3712
3713 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3714 usefulness suggestion of multiple breakpoints at same location.
3715
dc10affe
PA
37162010-07-01 Pedro Alves <pedro@codesourcery.com>
3717
3718 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3719
cabe9ab6
PA
37202010-07-01 Pedro Alves <pedro@codesourcery.com>
3721
3722 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3723 (loclist_tracepoint_var_ref): Handle optimized out values.
3724
cce7e648
PA
37252010-07-01 Pedro Alves <pedro@codesourcery.com>
3726
3727 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3728 unnecessary space in string.
3729 * filesystem.c (_initialize_filesystem): Ditto.
3730 * frame.c (_initialize_frame): Ditto.
3731 * infcmd.c (step_once): Ditto.
3732 * infrun.c (_initialize_infrun): Ditto.
3733 * linux-nat.c (linux_child_follow_fork): Ditto.
3734 * maint.c (maintenance_deprecate): Ditto.
3735 * memattr.c (_initialize_mem): Ditto.
3736 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3737 * monitor.c (monitor_open): Ditto.
3738 * procfs.c (procfs_xfer_memory): Ditto.
3739 * reverse.c (bookmarks_info): Ditto.
3740 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3741 * stack.c (_initialize_stack): Ditto.
3742 * tracepoint.c (_initialize_tracepoint): Ditto.
3743 * xtensa-tdep.c (xtensa_supply_gregset,
3744 xtensa_regset_from_core_section): Ditto.
3745
b65c7efe
TT
37462010-07-01 Tom Tromey <tromey@redhat.com>
3747
3748 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3749 check_all_valid.
3750 * value.c (value_entirely_optimized_out): Invert result. Update
3751 for new function name.
3752
0fb4aa4b
PA
37532010-07-01 Pedro Alves <pedro@codesourcery.com>
3754
3755 Static tracepoints support.
3756
3757 * NEWS: Mention new support for static tracepoints.
3758 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3759 qXfer:statictrace:read.
3760 (New features in the GDB remote stub, GDBserver): Mention static
3761 tracepoints support using an UST based backend.
3762 (New commands): Mention "info static-tracepoint-markers" and
3763 "strace".
3764 * breakpoint.c (is_marker_spec): New.
3765 (is_tracepoint): Handle static tracepoints.
3766 (validate_commands_for_breakpoint): Static tracepoints can't do
3767 while-stepping.
3768 (static_tracepoints_here): New.
3769 (bpstat_what): Handle static tracepoints.
3770 (print_one_breakpoint_location, allocate_bp_location, mention):
3771 Ditto.
3772 (create_breakpoint_sal): Ditto.
3773 (decode_static_tracepoint_spec): New.
3774 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3775 `type_wanted'. Adjust. Handle static tracepoint marker
3776 locations.
3777 (break_command_1): Adjust.
3778 (update_static_tracepoint): New.
3779 (update_breakpoint_locations): Handle static tracepoints.
3780 (breakpoint_re_set_one): Handle static tracepoint marker
3781 locations.
3782 (disable_command, enable_command): Handle static tracepoints.
3783 (trace_command, ftrace_command): Adjust.
3784 (strace_command): New.
3785 (create_tracepoint_from_upload): Adjust.
3786 (save_breakpoints): Handle static tracepoints.
3787 (_initialize_breakpoint): Install the "strace" command.
3788 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3789 (struct breakpoint): New fields static_trace_marker_id and
3790 static_trace_marker_id_idx.
3791 (breakpoints_here_p): Declare.
3792 (create_breakpoint): Adjust.
3793 (static_tracepoints_here): Declare.
3794 * remote.c (struct remote_state) <static_tracepoints>: New field.
3795 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3796 (remote_static_tracepoint_marker_at): New.
3797 (remote_static_tracepoint_markers_by_strid): New.
3798 (remote_static_tracepoint_feature): New.
3799 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3800 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3801 (remote_supports_static_tracepoints): New.
3802 (remote_download_tracepoint): Download static tracepoints.
3803 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3804 remote_static_tracepoint_markers_by_strid.
3805 (_initialize_remote): Install set|show remote static-tracepoints,
3806 and set|show remote read-sdata-object commands.
3807 * target.c (update_current_target): Inherit and default
3808 to_static_tracepoint_marker_at, and
3809 to_static_tracepoint_markers_by_strid.
3810 * target.h (static_tracepoint_marker): Forward declare.
3811 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3812 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3813 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3814 (struct target_ops): New fields to_static_tracepoint_marker_at and
3815 to_static_tracepoint_markers_by_strid.
3816 (target_static_tracepoint_marker_at)
3817 (target_static_tracepoint_markers_by_strid): New.
3818 * tracepoint.c: Include source.h.
3819 (validate_actionline): Handle $_sdata.
3820 (struct collection_list): New field strace_data.
3821 (add_static_trace_data): New.
3822 (clear_collection_list): Clear strace_data.
3823 (stringify_collection_list): Account for a possible static trace
3824 data collection.
3825 (encode_actions_1): Encode an $_sdata collection.
3826 (parse_tracepoint_definition): Handle static tracepoints.
3827 (parse_static_tracepoint_marker_definition): New.
3828 (release_static_tracepoint_marker): New.
3829 (print_one_static_tracepoint_marker): New.
3830 (info_static_tracepoint_markers_command): New.
3831 (sdata_make_value): New.
3832 (_initialize_tracepoint): Create the $_sdata convenience variable.
3833 Add the "info static-tracepoint-markers" command.
3834 Mention $_sdata in the "collect" command's help output.
3835 * tracepoint.h (struct static_tracepoint_marker): New.
3836 (parse_static_tracepoint_marker_definition)
3837 (release_static_tracepoint_marker): Declare.
3838 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3839 * python/py-breakpoint.c (bppy_new): Adjust.
3840
aac63f0f
JB
38412010-06-30 Joel Brobecker <brobecker@adacore.com>
3842
3843 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3844 including Python.h.
3845
e68994a7
DE
38462010-06-29 Doug Evans <dje@google.com>
3847
3863f96c
DE
3848 PR gdb/11702
3849 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3850 DW_AT_external is present.
3851
254e6b9e
DE
3852 PR gdb/11702
3853 * NEWS: Add entry.
3854 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3855 create a symbol for the field and record the value.
3856 (new_symbol): Handle DW_TAG_member.
3857 * gdbtypes.c (field_is_static): Remove FIXME.
3858 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3859 only ignore LOC_CONST symbols that are enums.
3860
6e70227d
DE
3861 * dwarf2read.c: Remove trailing whitespace.
3862
e68994a7
DE
3863 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3864 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3865 (struct main_type, field loc): Delete dwarf_block.
3866 (FIELD_DWARF_BLOCK): Delete.
3867 (SET_FIELD_DWARF_BLOCK): Delete.
3868 (TYPE_FIELD_DWARF_BLOCK): Delete.
3869 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3870 Update.
3871
a480d2f6
HZ
38722010-06-29 Hui Zhu <teawater@gmail.com>
3873
3874 * record.c (set_record_pic_cmdlist,
3875 show_record_pic_cmdlist): New variables.
3876 (set_record_pic_command,
3877 show_record_pic_command): New functions.
3878 (record_pic_function, record_pic_line, record_pic_enum,
3879 set_record_pic_type, record_pic_hide_nofunction,
3880 record_pic_hide_nosource, record_pic_hide_same): New variables.
3881 (record_pic_fputs): New function.
3882 (function_list, node_list, edge_list): New struct.
3883 (function_list, node_list, edge_list): New variables.
3884 (record_pic_cleanups, record_pic_node,
3885 record_pic_edge, cmd_record_pic): New functions.
3886 (_initialize_record): Add new commands for record pic.
3887
a0d7a4ff
JK
38882010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3889
3890 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3891 ALLOCATE_CPLUS_STRUCT_TYPE.
3892
595939de 38932010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3894 Tom Tromey <tromey@redhat.com>
3895 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3896
3897 * value.c (pack_unsigned_long): New function.
3898 (value_from_ulongest): New function.
3899 * value.h (value_from_ulongest): Declare.
3900 * python/python.c (_initialize_python): Call
3901 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3902 * python/python-internal.h: Define thread_object.
3903 (gdbpy_inferiors, gdbpy_selected_thread)
3904 (frame_info_to_frame_object, create_thread_object)
3905 (find_thread_object, find_inferior_object)
3906 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3907 (gdbpy_is_value_object, get_addr_from_python): Declare.
3908 * python/py-value.c (builtin_type_upylong): Define.
3909 (convert_value_from_python): Add logic for ulongest.
3910 (gdbpy_is_value_object): New function.
3911 * python/py-utils.c (get_addr_from_python): New function.
3912 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3913 (gdbpy_selected_frame): Use PyObject over frame_info.
3914 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3915 py-infthread.
3916 (SUBDIR_PYTHON_SRCS): Likewise.
3917 (py-inferior.o): New Rule.
3918 (py-infthread.o): New Rule.
3919 * python/py-inferior.c: New File.
3920 * python/py-infthread.c: New File.
3921
98751a41
JK
39222010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3923
3924 * c-typeprint.c (c_type_print_base): For no fields check include also
3925 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3926 * dwarf2read.c (struct typedef_field_list)
3927 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3928 (dwarf2_add_typedef): New.
3929 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3930 Copy also FI.TYPEDEF_FIELD_LIST.
3931 * gdbtypes.h (struct typedef_field)
3932 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3933 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3934 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3935
41f62f39
JK
39362010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3937
3938 * cp-namespace.c (cp_lookup_nested_type): New variable
3939 concatenated_name. Turn the current return condition into a reverse
3940 one. Call also lookup_static_symbol_aux on the constructed qualified
3941 name.
3942 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3943 other files into a called ...
3944 (lookup_static_symbol_aux): ... new function here.
3945 * symtab.h (lookup_static_symbol_aux): New prototype.
3946 * valops.c (value_maybe_namespace_elt): Call also
3947 lookup_static_symbol_aux if we failed otherwise.
3948
af53d231
JK
39492010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3950
3951 Fix PR c++/11703 and PR gdb/1448.
3952 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3953 FIRST_ITER check.
3954
9655fd1a
JK
39552010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3956
3957 Fix modification of cplus_struct_default.
3958 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3959 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3960 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3961
9279c692
JB
39622010-06-28 Joel Brobecker <brobecker@adacore.com>
3963
3964 * NEWS: Add entry announcing the python directory.
3965
d3f41bb1
TT
39662010-06-28 Tom Tromey <tromey@redhat.com>
3967
3968 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3969
23e7acfb
DE
39702010-06-28 Doug Evans <dje@google.com>
3971
3972 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3973 All callers updated.
3974
6036c742
JK
39752010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3976
3977 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3978 obstack_begin after each obstack_free.
3979
9f18a3b3
DE
39802010-06-27 Doug Evans <dje@google.com>
3981
1596cb5d
DE
3982 * value.c (value_static_field): Use `switch' instead of `if'.
3983 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3984
9f18a3b3
DE
3985 * valops.c (search_struct_field): Fix typo in error message.
3986
43dabe42
UW
39872010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3988
3989 * dwarf2expr.c (execute_stack_op): Place preprocessor
3990 directives at the start of the source line.
3991
0f3bb72e
PH
39922010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3993
6036c742
JK
3994 * defs.h (make_command_stats_cleanup): Declare.
3995 (set_display_time): Declare.
3996 (set_display_space): Declare.
3997 * event-top.c (command_handler): Use make_command_stats_cleanup.
3998 * main.c (display_time, display_space): Move definitions to utils.c.
3999 (captured_main): Use make_command_stats_cleanup to get start-up
4000 statistics.
4001 Use set_display_time and set_display_space for processing OPT_STATISTICS
4002 case.
4003 * maint.c (maintenance_time_display): Use set_display_time.
4004 (maintenance_space_display): Use set_display_space.
4005 * top.c (execute_command): Remove obsolete 'maint time' code.
4006 (command_loop): Use make_command_stats_cleanup.
4007 * utils.c (struct cmd_stats): Structure for storing initial time
4008 and space usage.
4009 (display_time, display_space): Move definitions here from utils.c.
4010 (set_display_time): New function.
4011 (set_display_space): New function.
4012 (make_command_stats_cleanup): New function.
4013 (report_command_stats): New auxiliary function for
4014 make_command_stats_cleanup.
0f3bb72e 4015
070c8028
UW
40162010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4017
4018 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4019 hosts where CORE_ADDR is long long.
4020
bc9f0842
TT
40212010-06-25 Tom Tromey <tromey@redhat.com>
4022
4023 PR python/10808:
4024 * python/python.c (execute_gdb_command): Add keywords. Accept
4025 "to_string" argument.
4026 (struct restore_ui_file_closure): New.
4027 (restore_ui_file): New function.
4028 (make_cleanup_restore_ui_file): Likewise.
4029 (GdbMethods) <execute>: Update.
4030
c0cc4c83
UW
40312010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4032
4033 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4034 during inferior call stack frame setup.
4035
f1d8ee66
UW
40362010-06-25 Ken Werner <ken.werner@de.ibm.com>
4037
4038 * solib-spu.c: Include "exception.h".
4039 (ocl_program_data_key): New variable.
4040 (append_ocl_sos): New function.
4041 (ocl_enable_break): Likewise.
4042 (spu_current_sos): Call append_ocl_sos.
4043 (spu_solib_loaded): Call ocl_enable_break.
4044 (_initialize_spu_solib): Register ocl_program_data_key.
4045
19c0c0f8
UW
40462010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4047
4048 * cp-support.c (reset_directive_searched): New function.
4049 (make_symbol_overload_list_using): Prevent recursive calls.
4050
0f6a939d
PM
40512010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4052
4053 * printcmd.c (print_variable_and_value): Print error message on
4054 caught exception.
4055
f2c7657e
UW
40562010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4057
4058 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4059 of stack values.
4060 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4061 "value" member.
4062 (dwarf_expr_push): Change input type to ULONGEST.
4063 (dwarf_expr_fetch): Change return type to ULONGEST.
4064 (dwarf_expr_fetch_address): Add prototype.
4065 (dwarf2_read_address): Remove prototype.
4066 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4067 Truncate stack values to ctx->addr_size bytes.
4068 (dwarf_expr_fetch): Change return value to ULONGEST.
4069 (dwarf_expr_fetch_address): New function.
4070 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4071 when appropriate. Update for struct dwarf_expr_piece changes.
4072 (dwarf2_read_address): Remove.
4073 (unsigned_address_type): Remove.
4074 (signed_address_type): Remove.
4075 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4076 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4077 values. Perform operations on ULONGEST instead of on GDB values,
4078 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4079 values and DW_OP_deref results as unsigned integers.
4080 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4081 changes.
4082 (write_pieced_value): Likewise.
4083 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4084 dwarf_expr_fetch when appropriate.
4085 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4086 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4087 instead of dwarf_expr_fetch when appropriate.
4088
b1d61bc9
PM
40892010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4090
4091 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4092
b14285f6
JB
40932010-06-24 Joel Brobecker <brobecker@adacore.com>
4094
4095 * python/python.c (_initialize_python): Add new "constant"
4096 PYTHONDIR in gdb module. Insert this path at the head of
4097 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4098 exec its __init__.py script if it exists in that directory.
4099
fd60dc69
KB
41002010-06-24 Kevin Buettner <kevinb@redhat.com>
4101
4102 * rx-tdep.c (RX_ACC_REGNUM): Define.
4103 (RX_NUM_REGS): Redefine to 26.
4104 (rx_register_name): Add register "acc". Change order of several
4105 registers. Change name of "vct" register to "fintv" to match RX
4106 documentation.
4107 (rx_register_type): Add case for RX_ACC_REGNUM.
4108
18430289
TT
41092010-06-24 Tom Tromey <tromey@redhat.com>
4110
4111 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4112
40618926
JK
41132010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4114 Tom Tromey <tromey@redhat.com>
4115
4116 Fix GDB startup on readonly filesystem.
4117 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4118
628fe4e4
JK
41192010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4120 Pedro Alves <pedro@codesourcery.com>
4121
4122 Fix PR 9436.
4123 * breakpoint.c (handle_jit_event): New function.
4124 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4125 jit, err, table and bs_class. New variables shlib_event, jit_event,
4126 this_action and bptype. Change bs_class assignments to this_action
4127 assignments. new unhandled bptype internal error. Move here
4128 shlib_event and jit_event handling from handle_inferior_event.
4129 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4130 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4131 BPSTAT_WHAT_CHECK_JIT.
4132 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4133 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4134 (handle_inferior_event): Reinitialize frame and gdbarch after
4135 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4136 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4137 gdbarch when frame gets reinitialized.
4138
f1421989
HZ
41392010-06-24 Hui Zhu <teawater@gmail.com>
4140
4141 * printcmd.c (ui_printf): New function.
4142 (printf_command): Call ui_printf.
4143 (_initialize_printcmd): New command "eval".
4144
d03285ec
UW
41452010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4146
4147 * infrun.c (handle_inferior_event): Handle presence of single-step
4148 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4149 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4150 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4151 * breakpoint.c (detach_single_step_breakpoints): New function.
4152 (detach_breakpoints): Call it.
4153 (cancel_single_step_breakpoints): New function.
4154 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4155
4156 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4157 (spu_gdbarch_init): Install it.
4158
38f6b338
JK
41592010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4160
4161 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4162 * configure: Regenerate.
4163
bb08c432
HZ
41642010-06-22 Hui Zhu <teawater@gmail.com>
4165
4166 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4167 (i386_process_record): Ditto.
4168 * record.c (record_memory_query): New variable.
4169 (_initialize_record): New command "set record memory-query".
4170 * record.h (record_memory_query): New extern.
4171
b55078be
DE
41722010-06-21 Doug Evans <dje@google.com>
4173
4174 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4175 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4176 (i386_syscall_p): Change type of lengthp to int.
4177 (i386_displaced_step_fixup): Handle kernels that run one past a
4178 syscall insn.
4179 * i386-linux-tdep.c (i386_linux_init_abi): Use
4180 i386_displaced_step_copy_insn instead of
4181 simple_displaced_step_copy_insn.
4182
75079b2b
TT
41832010-06-21 Tom Tromey <tromey@redhat.com>
4184
4185 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4186 (dwarf_type_encoding_name): Likewise.
4187
b00fdb78
TT
41882010-06-21 Tom Tromey <tromey@redhat.com>
4189
4190 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4191 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4192 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4193 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4194 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4195 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4196 * dwarf2read.c (tag_type_to_type): Create a new error type on
4197 failure.
4198 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4199 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4200
84951ab5
MS
42012010-06-21 Michael Snyder <msnyder@vmware.com>
4202
889bf7c5 4203 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
4204 not add_abbrev_prefix_cmd, for "enable breakpoints".
4205
d4a087c7
UW
42062010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4207
4208 * dwarf2loc.c (find_location_expression): Add relocation offset
4209 to base-address-selection entry base addresses. Read addresses
4210 (and offsets) as signed/unsigned integers, depending on the
4211 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4212 (loclist_describe_location): Likewise.
4213 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4214 unsigned integer. Do not call dwarf2_read_address.
4215 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4216
13def385
UW
42172010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4218
4219 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4220 value instead of hard-coded SPU_LS_SIZE.
4221 (spu_software_single_step): Likewise.
4222 * spu-tdep.h (SPU_LS_SIZE): Remove.
4223
d2ed6730
UW
42242010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4225
4226 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4227 limit on local store memory accesses.
4228 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4229 * spu-tdep.c (spu_lslr): Remove.
4230 (spu_pointer_to_address): Do not truncate addresses.
4231 (spu_integer_to_address): Likewise.
4232 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4233 * spu-tdep.h: Add comments.
4234 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4235 (SPU_OVERLAY_LMA): Define.
4236
6aed2dbc
SS
42372010-06-18 Stan Shebs <stan@codesourcery.com>
4238
a61408f8
SS
4239 * osdata.c (get_osdata): Warn separately if target does not report
4240 type list.
4241 (info_osdata_command): Allow empty type, report error if target
4242 does not return available types of OS data.
4243 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4244 types if no annex supplied.
4245
6aed2dbc
SS
4246 * thread.c (thread_id_make_value): Make a value representing the
4247 current thread.
4248 (_initialize_thread): Create $_thread.
4249
ec61707d
JB
42502010-06-17 Joel Brobecker <brobecker@adacore.com>
4251
4252 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4253 last local variable declaration. No real code change.
4254
60606b2c
TT
42552010-06-17 Tom Tromey <tromey@redhat.com>
4256
4257 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4258 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4259 temporary obstack.
4260
65d79d4b
SDJ
42612010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4262 Jan Kratochvil <jan.kratochvil@redhat.com>
4263
4264 * breakpoint.c: Include parser-defs.h.
4265 (watchpoint_exp_is_const): New function.
4266 (watch_command_1): Call watchpoint_exp_is_const to check
4267 if the expression is constant.
4268
0407b3f1
AS
42692010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4270
4271 * configure.ac: Check for RDYNAMIC also for cross builds.
4272 * configure: Regenerate.
4273
98d64339
PA
42742010-06-15 Pedro Alves <pedro@codesourcery.com>
4275
4276 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4277 (SFILES): Remove solib-null.c, add solib-target.c.
4278 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4279 (ALLDEPFILES): Remove solib-target.c.
4280 * solib-target.c (_initialize_solib_target): Set
4281 current_target_so_ops to solib_target_so_ops if not already set.
4282 * solib-null.c: Delete.
4283
6a271cae
PA
42842010-06-14 Pedro Alves <pedro@codesourcery.com>
4285
4286 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4287 bytecode.
4288
1e9beacb
UW
42892010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4290
4291 * cp-valprint.c (cp_print_static_field): Members of
4292 dont_print_stat_array_obstack are of type "struct type *".
4293 (_initialize_cp_valprint): Likewise.
4294
21a176fb
UW
42952010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4296
4297 * frame.c (frame_register_unwind): Do not access contents
4298 of "optimized out" unwound register value.
4299
25b524e8
JK
43002010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4301
4302 * ada-lang.h (ada_print_type): Make varstring const.
4303 * ada-typeprint.c (print_func_type): Make name const.
4304 (ada_print_type): Make varstring const.
4305 * c-lang.h (c_print_type): Make varstring const.
4306 * c-typeprint.c (c_print_type): Likewise.
4307 * f-lang.h (f_print_type): Likewise.
4308 * f-typeprint.c (f_print_type): Likewise.
4309 * jv-lang.h (java_print_type): Likewise.
4310 * jv-typeprint.c (java_print_type): Likewise.
4311 * language.c (unk_lang_print_type): Likewise.
4312 * language.h (struct language_defn) <la_print_type>: Likewise.
4313 * m2-lang.h (m2_print_type): Likewise.
4314 * m2-typeprint.c (m2_print_type): Likewise.
4315 * p-lang.h (pascal_print_type): Likewise.
4316 * p-typeprint.c (pascal_print_type): Likewise.
4317
d914c394
SS
43182010-06-11 Stan Shebs <stan@codesourcery.com>
4319
4320 Add per-operation permission flags.
4321
4322 * target.h (struct target_ops): New method to_set_permissions.
4323 (target_set_permissions): New macro.
4324 (target_insert_breakpoint): Change macro to function.
4325 (target_remove_breakpoint): Ditto.
4326 (target_stop): Ditto.
4327 (may_write_registers): Declare.
4328 (may_write_memory): Declare.
4329 (may_insert_breakpoints): Declare.
4330 (may_insert_tracepoints): Declare.
4331 (may_insert_fast_tracepoints): Declare.
4332 (may_stop): Declare.
4333 * target.c (may_write_registers, may_write_registers_1): New globals.
4334 (may_write_memory, may_write_memory_1): New globals.
4335 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4336 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4337 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4338 globals.
4339 (may_stop, may_stop_1): New global.
4340 (target_xfer_partial): Test for write permission.
4341 (target_store_registers): Ditto.
4342 (target_insert_breakpoint): New function.
4343 (target_remove_breakpoint): New function.
4344 (target_stop): New function.
4345 (_initialize_targets): Add new set/show variables.
4346 (set_write_memory_permission): New function.
4347 (update_target_permissions): New function.
4348 (set_target_permissions): New function.
4349 (update_current_target): Default to_set_permissions.
4350 (_initialize_targets): Use new globals and setter function.
4351 * tracepoint.c (start_tracing): Test for permission.
4352 * inferior.h (update_observer_mode): Declare.
4353 * infrun.c (non_stop_1): Define earlier.
4354 (observer_mode, observer_mode_1): New globals.
4355 (set_observer_mode, show_observer_mode): New functions.
4356 (update_observer_mode): New function.
4357 (_initialize_infrun): Define "set observer" command.
4358 * remote.c (PACKET_QAllow): New optional packet.
4359 (remote_protocol_features): Add QAllow.
4360 (remote_set_permissions): New function.
4361 (remote_start_remote): Call it.
4362 (init_remote_ops): Add it to target vector.
4363 (_initialize_remote): Add config command for QAllow.
4364
aec5aa8b
TT
43652010-06-11 Tom Tromey <tromey@redhat.com>
4366
4367 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4368 DW_AT_vtable_elem_location even when GCC extension is seen.
4369
0e03807e
TT
43702010-06-11 Tom Tromey <tromey@redhat.com>
4371
4372 PR gdb/9977, PR exp/11636:
4373 * value.h (value_offset): Update.
4374 (struct lval_funcs) <check_validity>: New field.
4375 <copy_closure>: Make argument const.
4376 (value_computed_closure): Update.
4377 (value_contents_for_printing): Declare.
4378 (value_bits_valid): Likewise.
4379 (val_print): Likewise.
4380 (set_value_component_location): Update.
4381 (value_entirely_optimized_out): Declare.
4382 * value.c (value_offset): Argument now const.
4383 (require_not_optimized_out): New function.
4384 (value_contents_for_printing): New function.
4385 (value_contents_all): Call require_not_optimized_out.
4386 (value_contents): Likewise.
4387 (value_bits_valid): New function.
4388 (value_computed_closure): Argument now const.
4389 (set_value_component_location): Make 'whole' argument const.
4390 (value_entirely_optimized_out): New function.
4391 (value_bitsize): Argument now 'const'.
4392 (value_bitpos): Likewise.
4393 (value_type): Likewise.
4394 * valprint.h (val_print_array_elements): Update.
4395 * valprint.c (val_print): Add 'val' argument. Use
4396 valprint_check_validity.
4397 (valprint_check_validity): New function.
4398 (value_check_printable): Use value_entirely_optimized_out.
4399 (common_val_print): Update.
4400 (value_print): Likewise.
4401 (val_print_array_elements): Add 'val' argument.
4402 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4403 value_bits_valid. Reinit frame cache for lval_computed.
4404 * sh64-tdep.c (sh64_do_register): Update.
4405 * scm-valprint.c (scm_val_print): Add 'val' argument.
4406 * scm-lang.h (scm_val_print): Update.
4407 * python/python.h (apply_val_pretty_printer): Update.
4408 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4409 argument. Call set_value_component_location.
4410 * printcmd.c (print_scalar_formatted): Update.
4411 * p-valprint.c (pascal_val_print): Add 'val' argument.
4412 (pascal_object_print_value_fields): Likewise.
4413 (pascal_object_print_value): Likewise.
4414 (pascal_object_print_static_field): Update.
4415 * p-lang.h (pascal_val_print): Update.
4416 (pascal_object_print_value_fields): Update.
4417 * mt-tdep.c (mt_registers_info): Update.
4418 * mi/mi-main.c (get_register): Update.
4419 (mi_cmd_data_evaluate_expression): Use common_val_print.
4420 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4421 (m2_print_unbounded_array): Likewise.
4422 (m2_val_print): Likewise.
4423 * m2-lang.h (m2_val_print): Update.
4424 * language.h (struct language_defn) <la_val_print>: Add 'val'
4425 argument.
4426 (LA_VAL_PRINT): Likewise.
4427 * language.c (unk_lang_val_print): Add 'val' argument.
4428 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4429 (java_val_print): Likewise.
4430 * jv-lang.h (java_val_print): Add 'val' argument.
4431 * infcmd.c (default_print_registers_info): Update.
4432 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4433 (f77_print_array): Likewise.
4434 (f_val_print): Likewise.
4435 * f-lang.h (f_val_print): Add 'val' argument.
4436 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4437 value_bitpos.
4438 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4439 set_value_optimized_out.
4440 (write_pieced_value): Use value_bitsize and value_bitpos.
4441 <default>: Don't exit loop.
4442 (check_pieced_value_validity): New function.
4443 (pieced_value_funcs): Reference check_pieced_value_validity,
4444 check_pieced_value_invalid.
4445 (copy_pieced_value_closure): Update.
4446 (check_pieced_value_bits): New function.
4447 (check_pieced_value_invalid): New function.
4448 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4449 (d_val_print): Likewise.
4450 * d-lang.h (d_val_print): Update.
4451 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4452 (cp_print_value_fields_rtti): Likewise.
4453 (cp_print_value): Likewise.
4454 (cp_print_static_field): Update.
4455 * c-valprint.c (c_val_print): Add 'val' argument.
4456 (c_value_print): Update.
4457 * c-lang.h (c_val_print): Update.
4458 (cp_print_value_fields): Likewise.
4459 (cp_print_value_fields_rtti): Likewise.
4460 * ada-valprint.c (struct ada_val_print_args): Remove.
4461 (val_print_packed_array_elements): Add 'val' argument.
4462 (ada_val_print): Likewise. Rewrite.
4463 (ada_val_print_stub): Remove.
4464 (ada_val_print_array): Add 'val' argument.
4465 (ada_val_print_1): Likewise.
4466 (print_variant_part): Likewise.
4467 (ada_value_print): Update.
4468 (print_record): Add 'val' argument.
4469 (print_field_values): Likewise.
4470 * ada-lang.h (ada_val_print): Update.
4471
3cf03773
TT
44722010-06-11 Tom Tromey <tromey@redhat.com>
4473
4474 * vec.h (VEC_cleanup): New macro.
4475 (DEF_VEC_ALLOC_FUNC_I): Update.
4476 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4477 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4478 * dwarf2loc.c (struct axs_var_loc): Remove.
4479 (unimplemented): New function.
4480 (translate_register): Likewise.
4481 (access_memory): Likewise.
4482 (compile_dwarf_to_ax): Likewise.
4483 (dwarf2_tracepoint_var_loc): Remove.
4484 (dwarf2_tracepoint_var_access): Likewise.
4485 (dwarf2_tracepoint_var_ref): Likewise.
4486 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4487 (loclist_tracepoint_var_ref): Likewise.
4488 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4489 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4490 require_composition. No longer static.
4491 (execute_stack_op): Update.
4492 * ax-gdb.h (trace_kludge): Declare.
4493
2bdf28a0
JK
44942010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4495
4496 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4497 (should_be_inserted): Return zero also on NULL OWNER.
4498 (breakpoint_program_space_exit): New OWNER comment.
4499 (insert_breakpoint_locations): Extend comment for OWNER.
4500 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4501 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4502 New OWNER comment.
4503 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4504 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4505 (bpstat_check_location): New assert on OWNER.
4506 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4507 and B initializations to the code block. New assert on them.
4508 (print_one_breakpoint_location): New OWNER comment.
4509 (watchpoint_locations_match): Assert on OWNER.
4510 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4511 initializations to the code block. New assert on OWNER.
4512 (set_breakpoint_location_function): New assert on OWNER.
4513 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4514 (bp_location_compare, update_global_location_list)
4515 (update_global_location_list): New OWNER comment.
4516
5b9a19af
UW
45172010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4518
4519 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4520
669211f5
UW
45212010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4522
4523 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4524 (lin_thread_get_thread_signals): Remove prototype.
4525 (GET_THREAD_SIGNALS): Remove.
4526 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4527 * linux-thread-db.c (check_thread_signals): Directly call
4528 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4529
b7a8b4ef
UW
45302010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4531
4532 * gregset.h (GDB_FPXREGSET_T): Remove.
4533 (gdb_fpxregset_t): Likewise.
4534 (supply_fpxregset): Remove prototype.
4535 (fill_fpxregset): Likewise.
4536 * i386-linux-nat.c (supply_fpxregset): Remove.
4537 (fill_fpxregset): Likewise.
4538 (fetch_fpxregs): Inline supply_fpxregset call.
4539 (store_fpxregs): Inline fill_fpxregset call.
4540
4541 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4542 * config/i386/nm-linux.h: Remove file.
4543
82892036
MS
45442010-06-09 Michael Snyder <msnyder@vmware.com>
4545
4546 * target.c (update_current_target): Fix spelling error in comment.
4547 (target_mourn_inferior): Fix spelling error in error message.
4548
5ddb52fa
PH
45492010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4550
4551 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4552 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4553
0f2caa1b
MS
45542010-06-08 Michael Snyder <msnyder@vmware.com>
4555
4556 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4557
3bebe2f2
JK
45582010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4559
4560 * configure.ac <"${have_libpython}" != no>: New workaround of
4561 python#4434.
4562 * configure: Regenerate.
4563
eaaffdf4
HZ
45642010-06-08 Hui Zhu <teawater@gmail.com>
4565
4566 * record.c (record_wait): Move signal out of replay code.
4567
5c631832
JK
45682010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4569
4570 Fix PR 10640.
4571 * dwarf2-frame.c (no_dwarf_call): New function.
4572 (execute_stack_op): Set CTX->DWARF_CALL.
4573 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4574 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4575 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4576 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4577 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4578 (needs_frame_dwarf_call): New function.
4579 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4580 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4581 Update the comment. Move variables die, offset and error call to ...
4582 (follow_die_ref): ... a new function.
4583 (dwarf2_fetch_die_location_block): New function.
4584 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4585
17ea53c3
JK
45862010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4587
4588 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4589 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4590 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4591 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4592 this change.
4593 (struct needs_frame_baton): New field per_cu.
4594 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4595 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4596
245040d7
SW
45972010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4598
4599 * cp-support.c (make_symbol_overload_list_namespace): Only search
4600 static and global blocks.
4601 (make_symbol_overload_list_block): New function.
4602 (make_symbol_overload_list): Separate namespace search from block
4603 search.
4604 (make_symbol_overload_list_qualified): Use
4605 make_symbol_overload_list_block.
4606
4c3376c8
SW
46072010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4608
4609 * value.h: Created oload_search_type enum.
4610 (find_overload_match): Use oload_search_type enum.
4611 * valops.c (find_overload_match): Support combined member and
4612 non-member search.
4613 * eval.c (evaluate_subexp_standard): Calls to
4614 find_overload_match now use oload_search_type enum.
4615 (oload_method_static): Verify index is a proper value.
4616 * valarith.c (value_user_defined_cpp_op): Search for and handle
4617 both member and non-member operators.
4618 (value_user_defined_cpp_op): New function.
4619 (value_user_defined_op): New function.
4620 (value_x_unop): Use value_user_defined_op.
4621 (value_x_binop): Ditto.
4622 * cp-support.c (make_symbol_overload_list_using): Added block
4623 iteration.
4624 Add check for namespace aliases and imported declarations.
4625
ee55da67
JK
46262010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4627
4628 * breakpoint.h (owner): Extend the comment.
4629
1a2ab13a
JK
46302010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4631
4632 Clear stale specific bp_location from former whole breakpoint.
4633 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4634 code ...
4635 (free_bp_location): ... here. Rename there the called function to
4636 bpstat_remove_bp_location_callback.
4637 (bpstat_remove_breakpoint_callback): Rename to ...
4638 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4639 to struct bp_location. Change the called function to
4640 bpstat_remove_bp_location. Create new declaration for the function.
4641 (bpstat_remove_breakpoint): Rename to ...
4642 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4643 code for the new parameter type.
4644
16d6b4b7
NS
46452010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4646
4647 * README: Make version-agnostic.
4648
7e314c57
JK
46492010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4650
4651 Fix duplicate types for single DIE.
4652 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4653 set_die_type.
4654 (read_array_type): Remove type initialization. Recheck get_die_type
4655 after initial die_type. Move set_die_type before set_descriptive_type.
4656 (read_set_type): New variable domain_type. Recheck get_die_type after
4657 initial die_type. Move attr initialization later.
4658 (read_tag_pointer_type, read_tag_reference_type): New variable
4659 target_type. Recheck get_die_type after initial die_type.
4660 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4661 die_type and die_containing_type.
4662 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4663 Recheck get_die_type after initial die_type.
4664 (read_subrange_type): Recheck get_die_type after initial die_type.
4665 Move set_die_type before set_descriptive_type.
4666 (set_die_type): Extend the function comment. Call complaint if DIE has
4667 some type already set.
4668
2f296114
VP
46692010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4670
4671 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4672 for current naming of thread groups (iN, not N).
4673
554794dc
SDJ
46742010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4675
4676 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4677 * parse.c (operator_length): Likewise.
4678 (operator_length_standard): Likewise.
4679 * parser-defs.h (operator_length): Likewise.
4680 (operator_length_standard): Likewise.
4681 (struct exp_descriptor <operator_length>): Likewise.
4682
967cf477
DE
46832010-06-04 Doug Evans <dje@google.com>
4684
bddaacb9 4685 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4686 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4687 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4688 * python/python.c (gdbpy_enabled_cst): Define.
4689 (_initialize_python): Initialize gdbpy_enabled_cst.
4690 * NEWS: Add entry.
4691
2dec564e
JK
46922010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4693
4694 * breakpoint.c (update_global_location_list): Fix comment typo.
4695
44b5680a
HZ
46962010-06-04 Hui Zhu <teawater@gmail.com>
4697
4698 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4699
e7a30f46
DE
47002010-06-03 Doug Evans <dje@google.com>
4701
4702 * configure.ac: Don't fail if python is unusable when
4703 configured with --with-python=auto.
4704 * configure: Regenerate.
4705
84b4420f
SW
47062010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4707
889bf7c5 4708 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4709
df178451
PM
47102010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4711
4712 * valprint.h (get_array_bounds): Change low and high parameter types
4713 to LONGEST *.
0407b3f1 4714 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4715 compute bounds.
4716 (val_print_array_elements): Adapt to change above.
4717 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4718 * p-valprint.c (pascal_val_print): Likewise.
4719
fd5700c7
JK
47202010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4721
4722 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4723 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4724 .F08.
4725
f55ee35c
JK
47262010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4727
4728 Support DW_TAG_module as separate namespaces.
4729 * dwarf2read.c (typename_concat): New parameter physname.
4730 (read_module_type): New function and declaration.
4731 (scan_partial_symbols): Scan also DW_TAG_module children.
4732 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4733 to typename_concat backward compatible physname value 0.
4734 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4735 backward compatible physname value 0.
4736 (add_partial_module, read_module): Remove FIXME comment.
4737 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4738 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4739 DIEs under DW_TAG_module.
4740 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4741 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4742 && physname and return there instead of just setting NAME. Extend
4743 the main block for language_fortran. Pass physname parameter to the
4744 typename_concat call.
4745 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4746 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4747 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4748 missing from SYMBOL_SET_NAMES in the language_fortran case.
4749 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4750 variables.
4751 (read_type_die) <DW_TAG_module>: New.
4752 (MAX_SEP_LEN): Increase to 7.
4753 (typename_concat): New parameter physname. New variable lead. Support
4754 also language_fortran.
4755 * f-exp.y (yylex): Consider : also as a symbol name character class.
4756 * f-lang.c: Include cp-support.h.
4757 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4758 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4759 f_word_break_characters and f_make_symbol_completion_list.
4760 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4761 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4762 * symtab.c (symbol_init_language_specific): Support language_fortran.
4763 (symbol_find_demangled_name): New comment on language_fortran.
4764 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4765 for language_fortran.
4766 (lookup_symbol_aux_local): Check imports also for language_fortran.
4767 (default_make_symbol_completion_list): Rename to ...
4768 (default_make_symbol_completion_list_break_on): ... this name. New
4769 parameter break_on, use it.
4770 (default_make_symbol_completion_list): New stub.
4771 * symtab.h (default_make_symbol_completion_list_break_on): New
4772 prototype.
4773
cb91c06a
JB
47742010-06-02 Joel Brobecker <brobecker@adacore.com>
4775
4776 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4777 to error.
4778
5c315b68
JK
47792010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 * dwarf2read.c (typename_concat): Add const to the variable sep.
4782
9eae7c52
TT
47832010-06-02 Tom Tromey <tromey@redhat.com>
4784
4785 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4786 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4787 type is const. Add 'def' argument. Add missing operators, remove
4788 unhandled ones.
4789 (decode_locdesc): Update.
4790 (dwarf2_always_disassemble): New global.
4791 (show_dwarf2_always_disassemble): New function.
4792 (_initialize_dwarf2_read): Add always-disassemble.
4793 (dwarf2_per_cu_offset_size): New function.
4794 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4795 (piece_end_p): New function.
4796 (locexpr_describe_location_piece): Replace 'size' argument with
4797 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4798 some constants. Remove errors.
4799 (disassemble_dwarf_expression): New function.
4800 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4801 Add 'offset_size' argument.
4802 (loclist_describe_location): Change output formatting.
4803 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4804
7d3fe98e
SW
48052010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4806
4807 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4808 anonymous type case.
4809
e77813c8
PM
48102010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4811
4812 * dwarf2read.c (read_subrange_type): Handle missing base type
4813 according to Dwarf-2 specifications.
4814
7cf3118a
SDJ
48152010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4816
4817 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4818 BINOP_EXCL.
4819 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4820 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4821 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4822 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4823 UNOP_CHMAX, UNOP_CHMIN.
4824 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4825 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4826 UNOP_CHMIN>: Remove opcodes.
4827
ae4d0c03
PM
48282010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4829
4830 * dwarf2read.c (read_func_scope): Do not complain for
4831 external function if bounds are not found.
4832
fa593d66
PA
48332010-06-01 Pedro Alves <pedro@codesourcery.com>
4834
4835 * NEWS: Mention gdbserver fast tracepoints support.
4836
cd44747c
PM
48372010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4838
4839 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4840 New macros.
4841 (windows_set_console_info): New function.
4842 (windows_create_inferior): Call windows_set_console_info
4843 if NEW_CONSOLE is true.
4844 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4845 (_initialize_loadable): Initialize GetConsoleFontSize and
4846 GetCurrentConsoleFont.
4847
f6528abd
JK
48482010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4849
4850 * Makefile.in (RDYNAMIC): New.
4851 (SFILES): Add proc-service.list.
4852 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4853 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4854 * config/arm/linux.mh: Likewise.
4855 * config/i386/linux.mh: Likewise.
4856 * config/i386/linux64.mh: Likewise.
4857 * config/ia64/linux.mh: Likewise.
4858 * config/m32r/linux.mh: Likewise.
4859 * config/m68k/linux.mh: Likewise.
4860 * config/mips/linux.mh: Likewise.
4861 * config/pa/linux.mh: Likewise.
4862 * config/powerpc/linux.mh: Likewise.
4863 * config/powerpc/ppc64-linux.mh: Likewise.
4864 * config/s390/s390.mh: Likewise.
4865 * config/sparc/linux.mh: Likewise.
4866 * config/sparc/linux64.mh: Likewise.
4867 * config/xtensa/linux.mh: Likewise.
4868 * configure.ac: New RDYNAMIC on native host and GCC.
4869 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4870 * configure: Regenerate.
4871 * proc-service.list: New.
4872
ca2a87a0
JK
48732010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4874
4875 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4876 CONTENT.
4877
1e225492
JK
48782010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4879
4880 * linux-nat.c (linux_nat_wait_1): Do not call
4881 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4882 TARGET_WAITKIND_SIGNALLED.
4883
e802dbe0
JB
48842010-05-27 Joel Brobecker <brobecker@adacore.com>
4885
4886 * ada-lang.c (ada_inferior_data): New struct.
4887 (ada_inferior_data): New static global.
4888 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4889 (ada_get_tsd_type): New functions.
4890 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4891 to look the tsd type up.
4892 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4893 event. Set ada_inferior_data.
4894
176a6961
PA
48952010-05-27 Pedro Alves <pedro@codesourcery.com>
4896
4897 * remote.c (unpack_varlen_hex): Remove forward declaration.
4898 (remote_console_output): Make static, and add forward declaration.
4899 * remote.h: Drop FIXME comment.
4900 (unpack_varlen_hex): Declare.
4901 (remote_console_output, remote_cisco_objfile_relocate)
4902 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4903 Delete declarations.
4904 * tracepoint.c: Include "remote.h".
4905 (unpack_varlen_hex): Delete declaration.
4906
88bfdde4
TT
49072010-05-27 Tom Tromey <tromey@redhat.com>
4908
4909 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4910 (allocate_piece_closure): Initialize refc.
4911 (copy_pieced_value_closure): Use refc.
4912 (free_pieced_value_closure): Likewise.
4913
8c6363cf
TT
49142010-05-27 Tom Tromey <tromey@redhat.com>
4915
4916 * arm-tdep.c (push_stack_item): 'contents' now const.
4917 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4918 value_contents_writeable. Introduce new temporary.
4919
7ecb917e
TT
49202010-05-27 Tom Tromey <tromey@redhat.com>
4921
4922 * findcmd.c (parse_find_args): Use value_contents, not
4923 value_contents_raw.
4924
f42a0a33
TT
49252010-05-27 Tom Tromey <tromey@redhat.com>
4926
4927 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4928 const. Use value_contents, not value_contents_writeable.
4929
12b795ad
JB
49302010-05-27 Joel Brobecker <brobecker@adacore.com>
4931
4932 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4933 by call to value_contents.
4934
5a2e11c7
OS
49352010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4936
4937 * MAINTAINERS: Add myself for write after approval privileges.
4938
ec685c5e
DE
49392010-05-26 Doug Evans <dje@google.com>
4940
0c4a4063
DE
4941 Allow python to find its files if moved from original location.
4942 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4943 (GDB_AC_WITH_DIR): Call it.
4944 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4945 python installation directory.
4946 * config.in: Regenerate.
4947 * configure: Regenerate.
4948 * defs.h (python_libdir): Declare.
4949 * main.c (python_libdir): Define.
4950 (captured_main): Initialize python_libdir.
4951 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4952 call Py_SetProgramName to make sure python can find its libraries
4953 and modules.
4954
ec685c5e
DE
4955 * configure.ac: Try to use python's distutils to fetch compilation
4956 parameters.
4957 * configure: Regenerate.
4958 * python/python-config.py: New file.
4959
363a6e9f
OS
49602010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4961
4962 * ser-tcp.c (net_open): Check error return from socket() call by its
4963 equality to -1 not by it being negative.
4964 (net_close): Likewise.
4965
dde08ee1
PA
49662010-05-26 Pedro Alves <pedro@codesourcery.com>
4967
4968 * NEWS: Mention the `qRelocInsn' feature.
4969 * gdbarch.sh (relocate_instruction): New.
4970 * amd64-tdep.c (rip_relative_offset): New.
4971 (append_insns): New.
4972 (amd64_relocate_instruction): New.
4973 (amd64_init_abi): Install it.
4974 * i386-tdep.c (append_insns): New.
4975 (i386_relocate_instruction): New.
4976 (i386_gdbarch_init): Install it.
4977 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4978 * gdbarch.h, gdbarch.c: Regenerate.
4979
947bb88f
TT
49802010-05-26 Tom Tromey <tromey@redhat.com>
4981
4982 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4983 (struct dwarf2_loclist_baton) <data>: Likewise.
4984 * dwarf2loc.c (find_location_expression): Constify return type.
4985 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4986 (dwarf2_loc_desc_needs_frame): Likewise.
4987 (loclist_read_variable): Constify.
4988 (loclist_describe_location): Likewise.
4989 (loclist_tracepoint_var_ref): Likewise.
4990
0d45f56e
TT
49912010-05-25 Tom Tromey <tromey@redhat.com>
4992
4993 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4994 (dwarf_expr_frame_base_1): Likewise.
4995 (read_pieced_value): Update.
4996 (needs_frame_frame_base): Constify.
4997 (dwarf2_tracepoint_var_loc): Likewise.
4998 (dwarf2_tracepoint_var_access): Likewise.
4999 (locexpr_describe_location_piece): Likewise.
5000 (locexpr_describe_location_1): Likewise.
5001 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5002 Constify.
5003 (data): Now const.
5004 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5005 (dwarf_expr_eval, read_uleb128, read_sleb128)
5006 (dwarf2_read_address): Update.
5007 * dwarf2expr.c (dwarf_expr_eval): Constify.
5008 (read_uleb128): Likewise.
5009 (read_sleb128): Likewise.
5010 (dwarf2_read_address): Likewise.
5011 (require_composition): Likewise.
5012 (execute_stack_op): Likewise.
5013 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5014 "const gdb_byte *".
5015 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5016 Now const.
5017 (no_get_frame_base): Constify.
5018 (execute_stack_op): Likewise.
5019 (execute_cfa_program): Likewise.
5020 (read_encoded_value): Likewise.
5021
07ca107c
DE
50222010-05-25 Doug Evans <dje@google.com>
5023
e34838f0
DE
5024 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5025
01f69b38
DE
5026 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5027 * event-loop.c: ... here.
5028 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5029 `error' for clarity.
5030 (tui_getc): Pass correct value for `error' parameter to
5031 tui_readline_output.
5032
07ca107c
DE
5033 Add python gdb.GdbError and gdb.string_to_argv.
5034 * NEWS: Document them.
5035 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5036 the exception is gdb.GdbError. Print a second traceback if there's
5037 an error computing the error message.
5038 (gdbpy_string_to_argv): New function.
5039 * python/py-utils.c (gdbpy_obj_to_string): New function.
5040 (gdbpy_exception_to_string): New function.
5041 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5042 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5043 (gdbpy_gdberror_exc): Declare.
5044 * python/python.c (gdbpy_gdberror_exc): New global.
5045 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5046 gdb.GdbError.
5047 (GdbMethods): Add string_to_argv.
5048
5572ce1f
PM
50492010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5050
5051 * windows-nat.c (display_selector): Call GetLastError to give better
5052 failure explanation.
5053
acd5838a
PA
50542010-05-24 Pedro Alves <pedro@codesourcery.com>
5055
5056 * config.in: Regenerate.
5057
b26a4dcb
JK
50582010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5059
5060 Code cleanup.
5061 * target.c (push_target): Return only void. Remove the return value
5062 comment.
5063 * target.h (push_target): Return only void.
5064
f434ba03
PA
50652010-05-23 Pedro Alves <pedro@codesourcery.com>
5066
5067 Update gnulib from latest git.
5068 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5069
5070 * gnulib/memcmp.c: Removed.
5071 * gnulib/memchr.valgrind: New.
5072 * gnulib/stddef.in.h: New.
5073 * gnulib/Makefile.am: Updated.
5074 * gnulib/memchr.c: Updated.
5075 * gnulib/memmem.c: Updated.
5076 * gnulib/stdint.in.h: Updated.
5077 * gnulib/str-two-way.h: Updated.
5078 * gnulib/string.in.h: Updated.
5079 * gnulib/wchar.in.h: Updated.
5080
5081 * gnulib/extra/link-warning.h: Removed.
5082 * gnulib/extra/c++defs.h: New.
5083 * gnulib/extra/warn-on-use.h: New.
5084 * gnulib/extra/arg-nonnull.h: Updated.
5085
5086 * gnulib/m4/extensions.m4: Updated.
5087 * gnulib/m4/gnulib-cache.m4: Updated.
5088 * gnulib/m4/gnulib-common.m4: Updated.
5089 * gnulib/m4/gnulib-comp.m4: Updated.
5090 * gnulib/m4/gnulib-tool.m4: Updated.
5091 * gnulib/m4/include_next.m4: Updated.
5092 * gnulib/m4/longlong.m4: Updated.
5093 * gnulib/m4/memchr.m4: Updated.
5094 * gnulib/m4/memmem.m4: Updated.
5095 * gnulib/m4/stdint.m4: Updated.
5096 * gnulib/m4/string_h.m4: Updated.
5097 * gnulib/m4/memcmp.m4: Removed.
5098 * gnulib/m4/onceonly_2_57.m4: Removed.
5099 * gnulib/m4/00gnulib.m4: New.
5100 * gnulib/m4/mmap-anon.m4: New.
5101 * gnulib/m4/multiarch.m4: New.
5102 * gnulib/m4/onceonly.m4: New.
5103 * gnulib/m4/stddef_h.m4: New.
5104 * gnulib/m4/warn-on-use.m4: New.
5105 * gnulib/m4/wchar.m4: Removed.
5106 * gnulib/m4/wchar_h.m4: New.
5107 * gnulib/m4/wchar_t.m4: New.
5108 * gnulib/m4/wint_t.m4: New.
5109
5110 * aclocal.m4: Regenerate.
5111 * config.in: Likewise.
5112 * configure: Likewise.
5113 * gnulib/Makefile.in: Likewise.
5114
d3b1e874
TT
51152010-05-21 Tom Tromey <tromey@redhat.com>
5116
5117 * dwarf2loc.c (extract_bits_primitive): New function.
5118 (extract_bits): Likewise.
5119 (insert_bits): Likewise.
5120 (copy_bitwise): Likewise.
5121 (read_pieced_value): Do all operations in bits.
5122 (write_pieced_value): Likewise.
5123 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5124 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5125 Always use xrealloc to resize piece array.
5126 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5127 <DW_OP_piece>: Update.
5128 <DW_OP_bit_piece>: New case.
5129
cb826367
TT
51302010-05-21 Tom Tromey <tromey@redhat.com>
5131
5132 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5133 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5134 * dwarf2expr.h (enum dwarf_value_location)
5135 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5136 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5137 (add_piece): Handle empty piece.
5138 (execute_stack_op) <DW_OP_piece>: Handle
5139 DWARF_VALUE_OPTIMIZED_OUT.
5140
74de6778
TT
51412010-05-21 Tom Tromey <tromey@redhat.com>
5142
5143 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5144 evaluate_subexp, not evaluate_subexp_with_coercion.
5145
f346a30d
PM
51462010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5147
5148 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5149 attribute.
5150
afd74c5f
TT
51512010-05-21 Tom Tromey <tromey@redhat.com>
5152
5153 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5154 offset.
5155 (write_pieced_value): Likewise.
5156
90e7c2c5
PM
51572010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5158
5159 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5160 and DW_TAG_volatile_type.
5161 (new_symbol): Likewise.
5162
8148cf8d
PM
51632010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5164
5165 * p-valprint.c (pascal_val_print): Call get_array_bounds
5166 to obtain the number of elements in an array.
5167
3a1d4620
DE
51682010-05-19 Doug Evans <dje@google.com>
5169
0bf0f8c4
DE
5170 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5171
3a1d4620
DE
5172 * python.c (source_python_script): Add comment.
5173 (source_python_script_for_objfile): Remove unnecessary call to
5174 gdbpy_print_stack.
5175
dc21167c
JK
51762010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5177 Sergio Durigan Junior <sergiodj@redhat.com>
5178
5179 Code cleanup.
5180 * parse.c (exp_iterate): Use operator_length wrapper function.
5181
5b4ee69b
MS
51822010-05-18 Michael Snyder <msnyder@vmware.com>
5183
5184 * ada-lang.c: White space.
5185 * ada-typeprint.c: White space.
5186 * ada-valprint.c: White space.
5187 * addrmap.c: White space.
5188 * auxv.c: White space.
5189 * ax-gdb.c: White space.
5190
e17c9e56
HZ
51912010-05-18 Hui Zhu <teawater@gmail.com>
5192
5193 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5194 for oldfp.
5195 (inferior_call_waitpid): Move make_cleanup out of check.
5196 Check the return of waitpid.
5197 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5198
a109c7c1
MS
51992010-05-17 Michael Snyder <msnyder@vmware.com>
5200
1c5313c5
MS
5201 * tui/tui.c: White space.
5202 * tui/tui-data.c: White space.
5203 * tui/tui-disasm.c: White space.
5204 * tui/tui-file.c: White space.
5205 * tui/tui-interp.c: White space.
5206 * tui/tui-main.c: White space.
5207 * tui/tui-out.c: White space.
5208 * tui/tui-regs.c: White space.
5209 * tui/tui-source.c: White space.
5210 * tui/tui-stack.c: White space.
5211 * tui/tui-win.c: White space.
5212 * tui/tui-winsource.c: White space.
5213
f4a14ae6
MS
5214 * procfs.c: White space.
5215
d59b6f6c
MS
5216 * python/py-auto-load.c: White space.
5217 * python/py-block.c: White space.
5218 * python/py-breakpoint.c: White space.
5219 * python/py-cmd.c: White space.
5220 * python/py-function.c: White space.
5221 * python/py-lazy-string.c: White space.
5222 * python/py-objfile.c: White space.
5223 * python/py-param.c: White space.
5224 * python/py-prettyprint.c: White space.
5225 * python/py-progspace.c: White space.
5226 * python/py-symtab.c: White space.
5227 * python/python.c: White space.
5228 * python/py-type.c: White space.
5229 * python/py-utils.c: White space.
5230 * python/py-value.c: White space.
5231
102040f0
MS
5232 * mi/mi-cmd-break.c: White space.
5233 * mi/mi-cmd-env.c: White space.
5234 * mi/mi-cmds.c: White space.
5235 * mi/mi-cmd-stack.c: White space.
5236 * mi/mi-cmd-var.c: White space.
5237 * mi/mi-console.c: White space.
5238 * mi/mi-getopt.c: White space.
5239 * mi/mi-interp.c: White space.
5240 * mi/mi-main.c: White space.
5241 * mi/mi-out.c: White space.
5242 * mi/mi-parse.c: White space.
5243
cdb27c12
MS
5244 * cli/cli-cmds.c: White space.
5245 * cli/cli-decode.c: White space.
5246 * cli/cli-dump.c: White space.
5247 * cli/cli-interp.c: White space.
5248 * cli/cli-logging.c: White space.
5249 * cli/cli-script.c: White space.
5250 * cli/cli-setshow.c: White space.
5251
a109c7c1
MS
5252 * valarith.c: White space.
5253 * valops.c: White space.
5254 * valprint.c: White space.
5255 * value.c: White space.
5256 * varobj.c: White space.
5257 * xcoffread.c: White space.
5258 * xml-support.c: White space.
5259 * xml-tdesc.c: White space.
5260
3872d37d
AS
52612010-05-17 Andreas Schwab <schwab@redhat.com>
5262
5263 PR gdb/11092
5264 * c-lang.c (c_printstr): Compute real length of NUL terminated
5265 string at first.
5266
0cce5bd9
JB
52672010-05-17 Joel Brobecker <brobecker@adacore.com>
5268
5269 * parse.c (parse_exp_in_context): When block is not NULL, use
5270 its associated language to parse the expression instead of
5271 the current_language.
5272
5f19d646
JB
52732010-05-17 Joel Brobecker <brobecker@adacore.com>
5274
5275 * jv-lang.c (java_lookup_class): Remove commented out code.
5276 (type_from_class): Likewise.
5277 (java_op_print_tab): Remove commented-out elements.
5278
28c85d6c
JB
52792010-05-17 Joel Brobecker <brobecker@adacore.com>
5280
5281 * ada-lang.c (to_fixed_range_type): The the raw index type as
5282 argument instead of the raw type name. Remove orig_type parameter.
5283 Update calls throughout.
5284 (ada_fixup_array_indexes_type): New function.
5285 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5286 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5287 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5288 Remove name parameter.
5289 (print_array_type): Add call to ada_fixup_array_indexes_type.
5290 Update calls to print_range_type.
5291 (ada_print_type): Update calls to print_range_type.
5292
d09039dd
PM
52932010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5294
5295 * dwarf2read.c (read_set_type): Set type length if
5296 DW_AT_byte_size attribute is present.
5297
7a081a30
PM
52982010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5299
5300 * p-valprint.c (pascal_val_print): Handle set type if range limits
5301 are undefined but size is known.
5302
77382aee
PA
53032010-05-17 Pedro Alves <pedro@codesourcery.com>
5304
5305 * procfs.c: Reformat.
5306
433759f7
MS
53072010-05-16 Michael Snyder <msnyder@vmware.com>
5308
5d502164
MS
5309 * target.c: White space.
5310 * target-descriptions.c: White space.
5311 * target-memory.c: White space.
5312 * thread.c: White space.
5313 * top.c: White space.
5314 * tracepoint.c: White space.
5315 * trad-frame.c: White space.
5316 * tramp-frame.c: White space.
5317 * ui-file.c: White space.
5318 * ui-out.c: White space.
5319 * user-regs.c: White space.
5320 * utils.c: White space.
5321
433759f7
MS
5322 * scm-exp.c: White space.
5323 * scm-lang.c: White space.
5324 * scm-valprint.c: White space.
5325 * sentinel-frame.c: White space.
5326 * ser-base.c: White space.
5327 * ser-go32.c: White space.
5328 * serial.c: White space.
5329 * ser-mingw.c: White space.
5330 * ser-pipe.c: White space.
5331 * ser-tcp.c: White space.
5332 * ser-unix.c: White space.
5333 * solib.c: White space.
5334 * solib-darwin.c: White space.
5335 * solib-frv.c: White space.
5336 * solib-irix.c: White space.
5337 * solib-osf.c: White space.
5338 * solib-pa64.c: White space.
5339 * solib-som.c: White space.
5340 * solib-spu.c: White space.
5341 * solib-svr4.c: White space.
5342 * solib-target.c: White space.
5343 * source.c: White space.
5344 * stabsread.c: White space.
5345 * stack.c: White space.
5346 * std-regs.c: White space.
5347 * symfile.c: White space.
5348 * symmisc.c: White space.
5349 * symtab.c: White space.
5350
dd304d53
MS
53512010-05-16 Michael Snyder <msnyder@vmware.com>
5352
5353 * source.c (_initialize_source): Add "rev" as an abbreviation
5354 for the "reverse-search" command.
5355
a744cf53
MS
53562010-05-16 Michael Snyder <msnyder@vmware.com>
5357
123f5f96
MS
5358 * record.c: White space.
5359 * regcache.c: White space.
5360 * reggroups.c: White space.
5361 * remote-fileio.c: White space.
5362 * remote-m32r-sdi.c: White space.
5363 * remote-mips.c: White space.
5364 * remote-sim.c: White space.
a744cf53
MS
5365 * remote.c: White space.
5366 (process_g_packet): Remove orphan braces.
5367
b8d56208
MS
53682010-05-15 Michael Snyder <msnyder@vmware.com>
5369
ad3bbd48
MS
5370 * parse.c: White space.
5371 * p-lang.c: White space.
5372 * posix-hdep.c: White space.
5373 * printcmd.c: White space.
5374 * progspace.c: White space.
5375 * prologue-value.c: White space.
5376 * psymtab.c: White space.
5377 * p-typeprint.c: White space.
5378 * p-valprint.c: White space.
5379
5cc80db3
MS
5380 * objc-lang.c: White space.
5381 * objfiles.c: White space.
5382 * observer.c: White space.
5383 * osabi.c: White space.
5384 * osdata.c: White space.
5385
b8d56208
MS
5386 * m2-lang.c: White space.
5387 * m2-valprint.c: White space.
5388 * macrocmd.c: White space.
5389 * macroexp.c: White space.
5390 * macroscope.c: White space.
5391 * macrotab.c: White space.
5392 * main.c: White space.
5393 * maint.c: White space.
5394 * mdebugread.c: White space.
5395 * memattr.c: White space.
5396 * minsyms.c: White space.
5397 * monitor.c: White space.
5398
9a619af0
MS
53992010-05-14 Michael Snyder <msnyder@vmware.com>
5400
e0881a8e
MS
5401 * jv-lang.c: White space.
5402 * jv-typeprint.c: White space.
5403 * jv-valprint.c: White space.
5404 * language.c: White space.
5405 * libunwind-frame.c: White space.
5406 * linespec.c: White space.
5407 * linux-nat.c: White space.
5408 * linux-record.c: White space.
5409 * linux-thread-db.c: White space.
5410
abbb1732
MS
5411 * infcall.c: White space.
5412 * inf-child.c: White space.
5413 * infcmd.c: White space.
5414 * inferior.c: White space.
5415 * inf-loop.c: White space.
5416 * inflow.c: White space.
5417 * inline-frame.c: White space.
5418 * interps.c: White space.
5419
d8734c88
MS
5420 * gcore.c: White space.
5421 * gdb.c: White space.
5422 * gdbtypes.c: White space.
5423 * gnu-nat.c: White space.
5424 * gnu-v2-abi.c: White space.
5425 * gnu-v3-abi.c: White space.
5426
bb9bcb69
MS
5427 * findcmd.c: White space.
5428 * findvar.c: White space.
5429 * fork-child.c: White space.
5430 * frame-base.c: White space.
5431 * frame.c: White space.
5432 * frame-unwind.c: White space.
5433 * f-valprint.c: White space.
5434
d7f9d729
MS
5435 * elfread.c: White space.
5436 * environ.c: White space.
5437 * eval.c: White space.
5438 * event-loop.c: White space.
5439 * event-top.c: White space.
5440 * exceptions.c: White space.
5441 * exec.c: White space.
5442 * expprint.c: White space.
5443
9a619af0
MS
5444 * dbxread.c: White space.
5445 * dcache.c: White space.
5446 * disasm.c: White space.
5447 * doublest.c: White space.
5448 * dsrec.c: White space.
5449 * dummy-frame.c: White space.
5450 * dwarf2expr.c: White space.
5451 * dwarf2-frame.c: White space.
5452 * dwarf2loc.c: White space.
5453 * dwarf2read.c: White space.
5454
88d4aea7
PM
54552010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5456
889bf7c5 5457 PR python/11482
88d4aea7
PM
5458
5459 * python/py-value.c (valpy_hash): New function.
5460 (value_object_type): Register valpy_hash.
5461
7a298875 54622010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 5463 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
5464
5465 * linux-fork.c (gdbthread.h): New include.
5466 (fork_info): Add parent_ptid.
5467 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5468 functions.
5469 (delete_checkpoint_command): Call inferior_call_waitpid.
5470 (checkpoint_command): Set parent_ptid.
5471
c14feecc
MS
54722010-05-13 Michael Snyder <msnyder@vmware.com>
5473
6595d32b
MS
5474 * dictionary.c: Re-indent to GNU coding standard.
5475
c5504eaf
MS
5476 * charset.c: White space.
5477 * c-lang.c: White space.
5478 * cli-out.c: White space.
5479 * coffread.c: White space.
5480 * complaints.c: White space.
5481 * completer.c: White space.
5482 * corefile.c: White space.
5483 * corelow.c: White space.
5484 * cp-abi.c: White space.
5485 * cp-namespace.c: White space.
5486 * cp-support.c: White space.
5487 * cp-valprint.c: White space.
5488 * c-typeprint.c: White space.
5489 * c-valprint.c: White space.
cc59ec59
MS
5490 * blockframe.c: White space.
5491 * breakpoint.c: White space.
5492 * buildsym.c: White space.
5493 * blockframe.c: White space.
b6de9da4 5494 * bcache.c: White space.
05c547f6
MS
5495 * gdbarch.sh: White space, add blank lines.
5496 * arch-utils.c: Ditto.
5497 * gdbarch.c: Regenerate.
1c4d3f96 5498 * frame.c: White space, add blank lines.
f89b749f
MS
5499 * stack.c: White space, add blank lines.
5500 (initialize_stack): Remove long-dead code.
c14feecc 5501
a2d33775
JK
55022010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5503
5504 Code cleanup.
5505 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5506 (locexpr_read_variable, loclist_read_variable): Update the callers.
5507
33ac96f0
JK
55082010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5509
5510 Code cleanup.
5511 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5512 Remove check of NULL returned by tag_type_to_type.
5513 (die_containing_type): Remove variable type. Remove type_die variable
5514 initialization. Remove check of NULL returned by tag_type_to_type.
5515
f5a010c0
PM
55162010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5517
5518 PR exp/11530.
5519 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5520 names of unnamed structures or unions.
5521
bf701c2c
PM
55222010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5523
5524 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 5525 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
5526 find_procinfo_or_die call.
5527 (procfs_stopped_data_address): New function.
5528 (procfs_use_watchpoints): Register new watchpoint related function.
5529
d02691ef
TT
55302010-05-11 Tom Tromey <tromey@redhat.com>
5531
5532 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5533
e0627e85
MS
55342010-05-10 Michael Snyder <msnyder@vmware.com>
5535
5536 * utils.c: White space cleanup.
5537
cc73bb8c
TT
55382010-05-10 Tom Tromey <tromey@redhat.com>
5539
5540 * eval.c (ptrmath_type_p): Add 'lang' argument.
5541 (evaluate_subexp_standard): Update.
5542 (evaluate_subexp_with_coercion): Update.
5543 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5544
c02866a0
MS
55452010-05-10 Michael Snyder <msnyder@vmware.com>
5546
5547 * utils.c (do_fclose_cleanup) Restore local variable.
5548
06280d23
DE
55492010-05-09 Doug Evans <dje@google.com>
5550
5551 * record.c (init_record_core_ops): Rename record_core to record-core.
5552
fa07e785
JB
55532010-05-08 Joel Brobecker <brobecker@adacore.com>
5554
5555 Implement task switching on pa-hpux.
5556 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5557 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5558
4c680d1d
PM
55592010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5560
5561 * valops.c (find_overload_match): Add missing i18n markup.
5562
28e176a6
PM
55632010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5564
5565 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5566
48cb83fd
JK
55672010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5568
5569 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5570 list for the obconcat call.
5571 * mdebugread.c (parse_symbol): Likewise.
5572 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5573 Likewise.
5574 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5575 New variable ap. Remove variables len and val.
5576 * symfile.h (obconcat): Likewise for the prototype.
5577
f92adf3c
MS
55782010-05-07 Michael Snyder <msnyder@vmware.com>
5579
5580 * python/python.c (execute_gdb_command): Remove unused variables.
5581 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5582 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5583 Remove unused variable.
5584 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5585 (cmdpy_completer): Remove unused variable.
5586 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5587 * python/py-function.c (fnpy_call): Remove unused variable.
5588 * python/py-objfile.c (objfile_to_objfile_object):
5589 Remove unused variable.
5590 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5591 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5592 Remove unused variable.
5593 (gdbpy_default_visualizer): Remove unused variable.
5594 * python/py-progspace.c (pspace_to_pspace_object):
5595 Remove unused variable.
0407b3f1 5596 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5597 Remove unused variable.
0407b3f1 5598 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5599 Remove unused variable.
5600 * python/py-value.c (valpy_string): Remove unused variable.
5601 (convert_value_from_python): Remove unused variables.
5602
d160942f
MS
56032010-05-07 Michael Snyder <msnyder@vmware.com>
5604
5605 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5606 and use it to compute variable 't1'.
5607
587542ab
JB
56082010-05-07 Joel Brobecker <brobecker@adacore.com>
5609
5610 * ada-lang.c (assign_aggregate): Remove unused variable.
5611
7322dca9
SW
56122010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5613
5614 PR C++/7943:
5615 * valops.c (find_overload_match): Handle fsym == NULL case.
5616 Add int no_adl argument.
5617 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5618 when appropriate.
5619 Add int no_adl argument.
5620 (find_oload_champ_namespace): Add int no_adl argument.
5621 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5622 expression.
5623 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5624 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5625 Evaluate arguments and use them to perform ADL lookup.
5626 Pass no_adl argument to find_overload_match.
5627 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5628 * cp-support.h: Added prototype for
5629 make_symbol_overload_list_namespace.
5630 * cp-support.c (make_symbol_overload_list_namespace): New function.
5631 (make_symbol_overload_list_adl_namespace): New function.
5632 (make_symbol_overload_list_adl): New function.
5633 (make_symbol_overload_list_using): Moved code to add function to
5634 overload set to make_symbol_overload_list_namespace.
5635 * c-exp.y: create UNKNOWN_CPP_NAME token.
5636 Add parse rule for ADL functions.
5637 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5638
3f1f6884
JK
56392010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5640
5641 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5642 sentinel.
5643
3caf13b4
JB
56442010-05-07 Joel Brobecker <brobecker@adacore.com>
5645
5646 Implement task switching on solaris targets.
5647 * sol-thread.c (thread_db_find_thread_from_tid)
5648 (sol_get_ada_task_ptid): New functions.
5649 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5650
94b0dee1
PA
56512010-05-07 Pedro Alves <pedro@codesourcery.com>
5652
5653 * remote.c (remote_query_supported_append): Use reconcat.
5654 (remote_query_supported): Install a cleanup. Use reconcat.
5655
1408c251
PA
56562010-05-07 Pedro Alves <pedro@codesourcery.com>
5657
5658 * gdbarch.sh (qsupported): Delete.
5659 * gdbarch.h, gdbarch.c: Regenerate.
5660 * remote.c (remote_query_supported): Remove use of
5661 gdbarch_qsupported.
5662
f8e50cfe
SDJ
56632010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5664
5665 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5666 function.
5667
8ea13695
MS
56682010-05-06 Michael Snyder <msnyder@vmware.com>
5669
c6913b7d
MS
5670 * xml-support.c (xinclude_start_include): Delete unused variable.
5671 (xml_process_xincludes): Delete unused variable.
5672 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5673 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5674 (tdesc_find_arch_register): Delete unused variable.
5675 (tdesc_use_registers): Delete unused variable.
5676 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5677 * inferior.c (print_inferior): Delete unused variable.
5678 * record.c (record_open_1): Delete unused variable.
5679 (record_restore): Delete unused variable.
5680 (cmd_record_save): Delete unused variable.
5681 * gcore.c (derive_heap_segment): Delete unused variable.
5682 (objfile_find_memory_regions): Use unused variable.
5683 * jit.c (jit_inferior_init): Delete unused variable.
5684 * progspace.c (clone_program_space): Delete unused variable.
5685 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5686
5687 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5688 Delete unused variable.
5689 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5690 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5691 (method_name_from_physname): Delete unused variable.
5692 (cp_func_name): Delete unused variable.
5693 (cp_validate_operator): Delete unused variable.
0407b3f1 5694 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5695 Delete unused variable.
0407b3f1 5696 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5697 Delete unused variable.
5698 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5699
1be757cf
MS
5700 * serial.c (serial_for_fd): Delete unused variable.
5701 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5702 * top.c (execute_command): Delete unused variable.
5703 (init_main): Delete unused variable.
5704 * utils.c (do_fclose_cleanup): Delete unused variable.
5705 (do_all_inferior_continuations): Delete unused variable.
5706 (initialize_utils): Delete unused variable.
5707 (internal_problem_mode): Delete unused global.
5708 * frame.c (get_prev_frame): Delete unused global.
5709 (get_frame_locals_address): Delete unused global.
5710 (get_frame_args_address): Delete unused global.
5711
9216103f
MS
5712 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5713 (pascal_type_print_varspec_prefix): Delete unused variable.
5714 * f-typeprint.c (f_type_print_base): Delete unused variable.
5715 (f_type_print_varspec_suffix): Delete unused variable.
5716 * m2-typeprint.c (m2_print_type): Delete unused variable.
5717 (m2_long_set): Delete unused variable.
5718 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5719 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5720 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5721 Delete unused variable.
5722 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5723 * m2-valprint.c (m2_val_print): Delete unused variable.
5724
34fa1d9d
MS
5725 * ui-out.c (ui_out_field_int): Delete unused variable.
5726 (ui_out_field_fmt_int): Delete unused variable.
5727 * varobj.c (varobj_list_children): Delete unused variable.
5728 (varobj_set_value): Delete unused variable.
5729 (install_new_value_visualizer): Delete unused variable.
5730 (varobj_set_visualizer): Delete unused variable.
5731 (varobj_update): Delete unused variable.
5732 (varobj_editable_p): Delete unused variable.
5733 (c_value_of_root): Delete unused variable.
5734 (cplus_describe_child): Delete unused variable.
5735
b5385fc0
MS
5736 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5737 (decode_constrained_packed_array_type): Delete unused variable.
5738 (add_defn_to_vec): Delete unused variable.
5739 (symbol_completion_match): Delete unused variable.
5740 (value_tag_from_contents_and_address): Delete unused variable.
5741 (ada_evaluate_subexp): Delete unused variable.
5742 * c-lang.c (classify_type): Delete unused variable.
5743 * f-lang.c (f_printstr): Delete unused variable.
5744 * objc-lang.c (objc_printstr): Delete unused variable.
5745 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5746 * jv-lang.c (type_from_class): ifdef unused variable.
5747 (java_class_name_from_physname): Delete unused variable.
5748 * m2-lang.c (m2_printstr): Delete unused variable.
5749
4fc06681
MS
5750 * objfiles.c (objfile_relocate): Delete unused variable.
5751 * maint.c (_initialize_maint_cmds): Delete unused variable.
5752 * demangle.c (_initialize_demangler): Delete unused variable.
5753 * corefile.c (reopen_exec_file): Delete unused variable.
5754 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5755 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5756
6b4398f7
MS
5757 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5758 * memattr.c (mem_delete): Delete unused variable.
5759 (invalidate_target_mem_regions): Delete unused variable.
5760 * mem-break.c (default_memory_insert_breakpoint):
5761 Delete unused variable.
5762 * target.c (target_get_osdata): Delete unused variable.
5763 * parse.c (length_of_subexp): Delete unused variable.
5764 (prefixify_subexp): Delete unused variable.
5765 (exp_iterate): Delete unused variable.
5766 * reverse.c (delete_bookmark_command): Delete unused variable.
5767
308d96ed
MS
5768 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5769 * macroexp.c (gather_arguments): Delete unused variable.
5770 (substitute_args): Delete unused variable.
5771 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5772 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5773 (_initialize_gdbarch): Delete unused variable.
5774 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5775 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5776 Delete unused variable.
5777 (_initialize_gdbarch_utils): Delete unused variable.
5778 * gdbtypes.c (make_cv_type): Delete unused variable.
5779 (make_type_with_address_space): Delete unused variable.
5780
167e4384
MS
5781 * linespec.c (decode_compound): Delete unused variable.
5782 * dictionary.c (iterator_next_hashed): Delete unused variable.
5783 * infcall.c (call_function_by_hand): Delete unused variable.
5784 * infcmd.c (step_1): Delete unused variable.
5785 (registers_info): Delete unused variable.
5786 (attach_command): Delete unused variable.
5787 * infrun.c (follow_exec): Delete unused variable.
5788 (handle_step_into_function_backwards): Delete unused variable.
5789 (_initialize_infrun): Delete unused variable.
5790 * stack.c (parse_frame_specification_1): Delete unused variable.
5791 (frame_info): Delete unused variable.
5792 (backtrace_command_1): Delete unused variable.
5793 (catch_info): Delete unused variable.
5794
8f78b329
MS
5795 * eval.c (evaluate_subexp_standard): Delete unused variable.
5796 * valops.c (value_cast_pointers): Delete unused variable.
5797 (value_dynamic_cast): Delete unused variable.
5798 (value_array): Delete unused variable.
5799 (find_overload_match): Delete unused variable.
5800 * valarith.c (value_subscript): Delete unused variable.
5801 (value_binop): Delete unused variable.
5802 * valprint.c (_initialize_valprint): Delete unused variable.
5803 * printcmd.c (print_command_1): Delete unused variable.
5804 (address_info): Delete unused variable.
5805 (printf_command): Delete unused variable.
5806
8ea13695
MS
5807 * auxv.c (target_auxv_search): Delete unused variable.
5808 * blockframe.c (get_frame_block): Delete unused variable.
5809 * regcache.c (regcache_cpy): Delete unused variable.
5810 (regcache_cpy_no_passthrough): Delete unused variable.
5811 * charset.c (wchar_iterate): Delete unused variable.
5812 (find_charset_names): Delete unused variable.
5813 (_initialize_charset): Delete unused variable.
0407b3f1 5814 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5815 Delete unused variable.
0407b3f1 5816 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5817 Delete unused variable.
5818 (set_substitute_path_command): Delete unused variable.
5819 * value.c (preserve_values): Delete unused variable.
5820 (value_from_double): Delete unused variable.
5821
afe38095
MS
58222010-05-05 Michael Snyder <msnyder@vmware.com>
5823
952a6d41
MS
5824 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5825 (find_last_source_symtab_from_partial): Delete unused variable.
5826 * symfile.c (place_section): Delete unused variable.
5827 (default_symfile_offsets): Delete unused variable.
5828 (get_debug_link_info): Delete unused variable.
5829 (find_separate_debug_file_by_debuglink): Delete unused variable.
5830 (add_symbol_file_command): Delete unused variable.
5831 (symfile_find_segment_sections): Delete unused variable.
5832 * symmisc.c (free_symtab): Delete unused variable.
5833 (dump_symtab_1): Delete unused variable.
5834 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5835 (find_pc_sect_symtab): Delete unused variable.
5836 (skip_prologue_using_lineinfo): Delete unused variable.
5837 (sources_info): Delete unused variable.
5838 (completion_list_add_name): Delete unused variable.
5839 (expand_line_sal): Delete unused variable.
5840
0407b3f1 5841 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5842 Delete unused variables.
5843 (insert_catchpoint): Delete unused variable.
5844 (update_watchpoint): Delete unused variable.
5845 (insert_bp_location): Delete unused variable.
5846 (insert_breakpoint_locations): Delete unused variable.
5847 (remove_breakpoint_1): Delete unused variable.
5848 (software_breakpoint_inserted_here_p): Delete unused variable.
5849 (watchpoints_triggered): Delete unused variable.
5850 (bpstat_check_watchpoint): Delete unused variable.
5851 (bpstat_stop_status): Delete unused variable.
5852 (print_one_breakpoint_location): Delete unused variable.
5853 (allocate_bp_location): Delete unused variable.
5854 (create_breakpoint): Delete unused variable.
5855 (watch_command_1): Delete unused variable.
5856 (catch_exception_command_1): Delete unused variable.
5857 (catch_ada_exception_command): Delete unused variable.
5858 (delete_breakpoint): Delete unused variable.
5859 (breakpoint_re_set_one): Delete unused variable.
5860 (do_enable_breakpoint): Delete unused variable.
5861
eda5a4d7
PA
58622010-05-06 Pedro Alves <pedro@codesourcery.com>
5863
5864 * amd64-tdep.c: Include disasm.h.
5865 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5866 (amd64_insn_length): Moved to disasm.c and renamed.
5867 (fixup_riprel): Adjust.
5868 * disasm.c (do_ui_file_delete): New.
5869 (gdb_insn_length): New.
5870 (gdb_buffered_insn_length_fprintf)
5871 (gdb_buffered_insn_length_init_dis)
5872 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5873 renamed.
5874 * disasm.h (gdb_insn_length): Declare.
5875 (gdb_buffered_insn_length): Declare.
5876
02357a4a
PA
58772010-05-06 Pedro Alves <pedro@codesourcery.com>
5878
5879 * remote.c (clear_threads_parsing_context): New.
5880 (remote_threads_info): Delete unused null_cleanup. Install a
5881 cleanup to clear the threads_parsing_context in case parsing
5882 throws.
5883
8c5630cb
MS
58842010-05-05 Michael Snyder <msnyder@vmware.com>
5885
5886 * c-exp.y (parse_string_or_char): Delete unused variable.
5887 (c_lex): Delete unused variable.
5888 * cp-name-parser.y (cpname_lex): Delete unused variable.
5889 * ada-exp.y (find_primitive_type): Delete unused variable.
5890 (write_var_or_type): Delete unused variable.
5891 * jv-exp.y (java_parse): Delete unused variable.
5892 (push_expression_name): Delete unused variable.
5893 * p-exp.y (pascal_lex): Delete unused variable.
5894
46c162d4
PA
58952010-05-05 Pedro Alves <pedro@codesourcery.com>
5896
5897 * remote.c (remote_threads_info): Really revert previous previous
5898 change.
5899
0043e6a5
MS
59002010-05-05 Michael Snyder <msnyder@vmware.com>
5901
fa238c03
MS
5902 * elfread.c (elf_symtab_read): Delete unused variable.
5903 (find_separate_debug_file_by_buildid): Delete unused variables.
5904 (elf_symfile_read): Delete unused variable.
5905
5906 * coffread.c (coff_symfile_read): Delete unused variables.
5907
5908 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5909 (read_pe_exported_syms): Delete unused variable.
5910
5911 * stabsread.c (define_symbol): Delete unused variable.
5912
5913 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5914 (process_psymtab_comp_unit): Delete unused variable.
5915 (dwarf2_build_psymtabs_hard): Delete unused variable.
5916 (load_partial_comp_unit): Delete unused variable.
5917 (create_all_comp_units): Delete unused variable.
5918 (scan_partial_symbols): Delete unused variable.
5919 (add_partial_symbol): Delete unused variable.
5920 (add_partial_namespace): Delete unused variable.
5921 (add_partial_enumeration): Delete unused variable.
5922 (load_full_comp_unit): Delete unused variable.
5923 (process_full_comp_unit): Delete unused variable.
5924 (read_file_scope): Delete unused variable.
5925 (read_type_unit_scope): Delete unused variable.
5926 (process_structure_scope): Delete unused variable.
5927 (process_enumeration_scope): Delete unused variable.
5928 (read_tag_ptr_to_member_type): Delete unused variable.
5929 (read_typedef): Delete unused variable.
5930 (read_partial_die): Delete unused variable.
5931 (decode_locdesc): Delete unused variable.
5932 (zeroed_partial_die): Delete unused global variable.
5933
0407b3f1 5934 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5935 Delete unused variable.
0407b3f1 5936 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5937 Delete unused variable.
5938 (tui_check_register_values): Delete unused variable.
5939 (tui_register_format): Delete unused variable.
5940 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5941 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5942 Delete unused variables.
5943 (tui_vertical_data_scroll): Delete unused variables.
5944
75721c66
MS
59452010-05-05 Michael Snyder <msnyder@vmware.com>
5946
c31a71f4
MS
5947 * remote.c (remote_threads_info): Revert questionable part of
5948 the previous change.
5949
59502010-05-05 Michael Snyder <msnyder@vmware.com>
5951
5952 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5953 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5954 (mi_cmd_var_list_children): Delete unused variable.
5955 (varobj_update_one): Delete unused variable.
5956 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5957 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5958 Delete unused variable.
5959 (mi_cmd_stack_list_variables): Delete unused variable.
5960 (list_args_or_locals): Delete unused variable.
0407b3f1 5961 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5962 Delete unused variables.
5963 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5964 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5965 Delete unused variable.
5966 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5967 (mi_cmd_interpreter_exec): Delete unused variable.
5968 (mi_on_normal_stop): Delete unused variable.
5969 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5970 (print_one_inferior): Delete unused variables.
5971 (mi_execute_command): Delete unused variable.
5972 (mi_cmd_execute): Delete unused variable.
5973 (timestamp): Delete unused variable.
5974
5975 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5976 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5977 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5978 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5979 (recurse_read_control_structure): Delete unused variable.
5980 (script_from_file): Delete unused variable.
c31a71f4 5981 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5982 (disassemble_command): Delete unused variable.
5983
5984 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5985 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5986 Delete unused variables.
5987 (encode_actions_1): Delete unused variables.
5988 (start_tracing): Delete unused variable.
5989 (trace_status_mi): Delete unused variable.
5990 (tfind_1): Delete unused variable.
5991 (trace_find_pc_command): Delete unused variable.
5992 (trace_find_line_command): Delete unused variables.
5993 (trace_find_range_command): Delete unused variables.
5994 (trace_find_outside_command): Delete unused variables.
5995 (parse_tracepoint_definition): Delete unused variables.
5996 (tfile_fetch_registers): Delete unused variable.
5997
9128a503
MS
5998 * dcache.c (dcache_init): Delete unused variable.
5999 (dcache_info): Delete unused variable.
6000
aa369b55 6001 * remote.c (remote_threads_info): Delete unused variable.
9128a503 6002 (process_stop_reply) :Delete unused variable.
aa369b55
MS
6003 (remote_get_trace_status): Delete unused variables.
6004
9e9547e4
MS
6005 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6006 (thread_from_lwp): Delete unused variable.
6007 (enable_thread_event_reporting): Delete unused variable.
6008 (check_for_thread_db): Delete unused variables.
6009 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 6010
9e9547e4
MS
6011 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6012 (checkpoint_command): Delete unused variable.
6013 (linux_fork_context): Delete unused variables.
6014
fa238c03 6015 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
6016 (linux_tracefork_child): Delete unused variable.
6017 (linux_child_follow_fork): Delete unused variable.
6018 (linux_nat_detach): Delete unused variable.
6019 (linux_handle_extended_wait): Delete unused variable.
6020 (linux_nat_has_pending_sigint): Delete unused variable.
6021 (linux_nat_find_memory_regions): Delete unused variable.
6022 (linux_nat_make_corefile_notes): Delete unused variables.
6023 (linux_nat_info_proc_cmd): Delete unused variable.
6024 (linux_proc_pending_signals): Delete unused variable.
6025 (linux_nat_stop_lwp): Delete unused variables.
6026 (_initialize_linux_nat): Delete unused variable.
6027
fa238c03 6028 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 6029
0407b3f1 6030 * linux-record.c (record_linux_system_call):
e0f069a3
MS
6031 Delete unused variables.
6032
789d24f0
MS
6033 * corelow.c (core_xfer_partial): Delete unused variables.
6034
1cd337a5 6035 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 6036 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
6037 conditionally-used variable declarations.
6038
b00e3f56
MS
6039 * solib.c (solib_find): Delete unused variable.
6040 (free_so_symbols): Delete unused variable.
6041 (info_sharedlibrary_command): Delete unused variable.
6042 (reload_shared_libraries_1): Delete unused variable.
6043 (_initialize_solib): Delete unused variable.
6044
90f62196
MS
6045 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6046 (i386_collect_xstateregset): Delete unused variable.
6047 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6048
75721c66
MS
6049 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6050 Delete unused variable 'type'.
6051
af33db37
JB
60522010-05-05 Joel Brobecker <brobecker@adacore.com>
6053
90f62196 6054 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
6055 ada-lang.c: Remove comment mentioning these macros.
6056 * m2-exp.y: Delete commented out code.
af33db37 6057
0497f5b0
JB
60582010-05-05 Joel Brobecker <brobecker@adacore.com>
6059
6060 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6061 for array types.
6062 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6063
6e39997a
PM
60642010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6065
6066 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 6067 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
6068 ATTRIBUTE_UNUSED.
6069 (cleanup_kernel_helper_return): Likewise.
6070 * arm-tdep.c (copy_unmodified): Likewise.
6071 (copy_preload): Likewise.
6072 (copy_copro_load_store): Likewise.
6073 (cleanup_branch): Likewise.
6074 (copy_b_bl_blx): Likewise.
6075 (copy_bx_blx_reg): Likewise.
6076 (copy_alu_imm): Likewise.
6077 (copy_alu_reg): Likewise.
6078 (copy_alu_shifted_reg): Likewise.
6079 (cleanup_load): Likewise.
6080 (cleanup_store): Likewise.
6081 (cleanup_block_load_pc): Likewise.
6082 (cleanup_svc): Likewise.
6083 (copy_undef): Likewise.
6084 (copy_unpred): Likewise.
6085 * remote.c (register_remote_support_xml): Likewise.
6086
1412f70b
HZ
60872010-05-05 Hui Zhu <teawater@gmail.com>
6088
6089 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6090
c4f7c687
MK
60912010-05-04 Mark Kettenis <kettenis@gnu.org>
6092
6093 * remote.c (register_remote_support_xml)
6094 (remote_query_supported_append, remote_query_supported): Add cast
6095 to NULL used as sentinel.
6096 * tracepoint.c (tvariables_info_1): Likewise.
6097 * utils.c (add_internal_problem_command): Likewise.
6098
63b4f126
MGD
60992010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6100
6101 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6102 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6103 registers gracefully.
6104
2f1bdd26
MGD
61052010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6106
0407b3f1 6107 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
6108 specific parts.
6109
e1c34c5d
PM
61102010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6111
6112 PR exp/11349.
6113 * printcmd.c (x_command): Only dereference once implicitly for
6114 TYPE_CODE_REF.
6115
ae462839
DE
61162010-05-03 Doug Evans <dje@google.com>
6117
6118 * event-loop.c (gdb_timer): Delete unused global.
6119 (create_timer): Update.
6120
1ac77ea1
JK
61212010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6122
6123 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6124 CURRENT->DECLARATION case.
6125 * cp-support.h (struct using_direct): Provide extended comment.
6126
7c54a108
MK
61272010-05-03 Mark Kettenis <kettenis@gnu.org>
6128
6129 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6130 HPPABSD_SIZEOF_GREGS.
6131 (HPPAOBSD_SIZEOF_FPREGS): New define.
6132 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6133 (hppaobsd_supply_fpregset): New function.
6134 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6135 (hppaobsd_fpregset): New variable.
6136 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6137 (_initialize_hppabsd_tdep): Remove spurious blank line.
6138
278582cb
PM
61392010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6140
6141 PR pascal/11349.
6142 * p-valprint.c (pascal_value_print): Always dereference a value with
6143 type code TYPE_CODE_REF.
0407b3f1 6144
f0223081
PA
61452010-05-03 Pedro Alves <pedro@codesourcery.com>
6146
6147 * remote.c (remote_notice_signals): New.
6148 (remote_start_remote): In non-stop mode, update the remote end on
6149 which signals it can silently pass.
6150 (init_remote_ops): Install remote_notice_signals.
6151
c25c4a8b
JK
61522010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6153
6154 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6155 * command.h (error_no_arg): ... here. Remove NORETURN, change
6156 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6157 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6158 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6159 (internal_verror, internal_error, nomem): Remove NORETURN, change
6160 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6161 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6162 (throw_vfatal, throw_error): Remove NORETURN.
6163 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6164 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6165 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6166 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6167 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6168 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6169 NORETURN.
6170 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6171 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6172 ATTRIBUTE_NORETURN.
6173 * target.c (tcomplain): Likewise.
6174 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6175 ATTRIBUTE_NORETURN.
6176 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6177 (internal_error, perror_with_name, nomem): Remove NORETURN.
6178 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6179 ATTRIBUTE_NORETURN.
6180
a0b31db1
JK
61812010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6182
6183 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6184 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6185 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6186 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6187 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6188 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6189 * complaints.h (complaint, internal_complaint): Likewise.
6190 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6191 (ATTR_FORMAT): Remove.
6192 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6193 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6194 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6195 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6196 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6197 (internal_error, internal_vwarning, internal_warning, warning)
6198 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6199 * disasm.c (fprintf_disasm): Likewise.
6200 * exceptions.c (throw_it): Likewise.
6201 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6202 (throw_error): Likewise.
6203 * language.h (type_error, range_error): Likewise.
6204 * linespec.c (cplusplus_error): Likewise.
6205 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6206 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6207 * monitor.c (monitor_debug): Likewise.
6208 * parser-defs.h (parser_fprintf): Likewise.
6209 * serial.h (serial_printf): Likewise.
6210 * tui/tui-hooks.c (tui_query_hook): Likewise.
6211 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6212 (uo_message): Likewise.
6213 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6214 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6215 Likewise.
6216 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6217
02a45ac0
PA
62182010-05-02 Pedro Alves <pedro@codesourcery.com>
6219
6220 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6221 (cli_table_header, cli_begin, cli_end, cli_field_int)
6222 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6223 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6224 Delete forward declarations.
6225 (cli_ui_out_impl): Move below the callbacks.
6226 (_initialize_cli_out): Delete.
6227
1915ef4f
PA
62282010-05-02 Pedro Alves <pedro@codesourcery.com>
6229
6230 * README: Use consistent `GDB' and `GDBserver' spellings.
6231
0dfb946f
JK
62322010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6233
6234 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6235
4d533103
PA
62362010-05-01 Pedro Alves <pedro@codesourcery.com>
6237
6238 * infrun.c (prepare_for_detach): In non-stop, context switch to
6239 the thread that got the event before handling the event.
6240
705b5767
TT
62412010-04-30 Tom Tromey <tromey@redhat.com>
6242
6243 * symtab.c (symbol_set_names): Fix typo.
6244
3c0ee1a4
PM
62452010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6246
6247 * python/py-param.c (parm_constants): Avoid ARI warning
6248 by adding ARI comment.
6249 (parmpy_init): Likewise.
6250
ea1fae46
PM
62512010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6252
6253 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6254 and created type for re-use.
6255
c24d0242
PM
62562010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6257
6258 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6259
a26d8d11
DE
62602010-04-29 Doug Evans <dje@google.com>
6261
6262 * ser-base.h (reschedule): Delete prototype.
6263 * ser-base.c (reschedule): Make static.
6264
f8624c62
MGD
62652010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6266
6267 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6268 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 6269 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 6270 EABI.
0407b3f1 6271 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
6272 use.
6273
e66408ed
PA
62742010-04-29 Pedro Alves <pedro@codesourcery.com>
6275
6276 PR gdb/11557
6277
6278 * regcache.c (registers_changed): Rename to ...
6279 (registers_changed_ptid): ... this, and only delete register cache
6280 entries matching the ptid filter argument.
6281 (registers_changed): Reimplement on top of registers_changed_ptid.
6282 * regcache.h (registers_changed_ptid): Declare.
6283 * target.c (target_resume): Flush register caches.
6284
d7b32ed3 62852010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
6286 Tom Tromey <tromey@redhat.com>
6287 Thiago Jung Bauermann <bauerman@br.ibm.com>
6288
6289 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6290 (SUBDIR_PYTHON_SRCS): Likewise.
6291 (py-parameter.o): New rule.
6292 * python/py-parameter.c: New file.
6293 * python/python-internal.h (gdbpy_initialize_parameter)
6294 (gdbpy_parameter, gdbpy_parameter_value)
6295 (gdbpy_parse_command_name): Declare.
6296 * python/py-cmd.c (parse_command_name): Rename to
6297 gdbpy_parse_command_name.
6298 (gdbpy_parse_command_name): Accept a starting list parameter and
6299 use over cmdlist.
6300 (cmdpy_init): Use gdbpy_parse_command_name.
6301 * python/python.c (parameter_to_python): Rename to
6302 gdbpy_parameter_to_python. Accept enum var_types and value.
6303 (gdbpy_parameter): Use gdbpy_parameter_value.
6304 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 6305
ce72ce41
MGD
63062010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6307
6308 * MAINTAINERS: Add myself for write after approval privileges.
6309
6aecb9c2
JB
63102010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6311
6312 D language support.
6313 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6314 (COMMON_OBS): Add d-lang.o d-valprint.o.
6315 (HFILES_NO_SRCDIR): Add d-lang.h.
6316 * NEWS: Mention D language support.
6317 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6318 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6319 * d-lang.c: New file.
6320 * d-lang.h: New file.
6321 * d-valprint.c: New file.
6322 * defs.h (enum language): Add language_d.
6323 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6324 * language.c (binop_result_type, integral_type, character_type)
6325 (string_type, boolean_type, structured_type): Add language_d.
6326 * symfile.c (init_filename_language_table): Add language_d.
6327 * symtab.c: Include d-lang.h.
6328 (symbol_init_language_specific, symbol_find_demangled_name)
6329 (symbol_natural_name, lookup_symbol_in_language)
6330 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6331
6f992fbf
JB
63322010-04-27 Joel Brobecker <brobecker@adacore.com>
6333
6334 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6335
dde59185
JB
63362010-04-27 Joel Brobecker <brobecker@adacore.com>
6337
6338 * symfile.c (init_filename_language_table): Register .dg files
6339 with language_ada.
6340
d09ce91e
JB
63412010-04-27 Joel Brobecker <brobecker@adacore.com>
6342
6343 * gdbtypes.h (struct main_type): Expand comment about target_type
6344 field.
6345
67f1675e
JB
63462010-04-27 Pedro Alves <pedro@codesourcery.com>
6347 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
6348
6349 * symfile.c (reread_symbols): Also search for file in libraries.
6350 Update comment.
6351
dfd0fe27
JB
63522010-04-27 Joel Brobecker <brobecker@adacore.com>
6353
6354 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6355 in terms of configuration.
6356
0133421a
JK
63572010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6358
6359 * objfiles.c: Include solist.h.
6360 (free_all_objfiles): New variable so. Check stale solist objfiles.
6361 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6362 and no_shared_libraries.
6363
e78f4312
JB
63642010-04-27 Joel Brobecker <brobecker@adacore.com>
6365
6366 ARI warning fix.
6367 * python/py-auto-load.c (source_section_scripts): Remove trailing
6368 new-line in i18n string.
6369
9214d371
DE
63702010-04-26 Doug Evans <dje@google.com>
6371
6372 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6373
3f172e24
TT
63742010-04-26 Tom Tromey <tromey@redhat.com>
6375
6376 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6377 command list.
6378
e790e06e
PM
63792010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6380
6381 Removal of config/i386/nm-i386sol2.h native configuration file.
6382 * config/i386/nm-i386sol2.h: Remove file.
6383 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6384 * config/i386/sol2-64.mh: Idem.
88562582
PM
6385 * config/djgpp/fnchange.lst: Remove reference to that file.
6386 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 6387
b7da9e9f
PM
63882010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6389
6390 PR breakpoints/11531.
6391 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6392 macro definition and related comment.
6393 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6394 (resume): Remove code and comment related to this macro.
6395
72f6eb52
JK
63962010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6397
6398 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6399 Fix whitespace.
6400
ab38a727
PA
64012010-04-24 Pedro Alves <pedro@codesourcery.com>
6402
6403 * defs.h: Adjust comment.
6404 * filesystem.h, filesystem.c: New files.
6405 * Makefile.in (SFILES): Add filesystem.c.
6406 (COMMON_OBS): Add filesystem.o.
6407 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6408 different target and host path flavours.
6409 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6410 has_dos_based_file_system on the gdbarch.
6411 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6412 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6413 * i386-tdep.c (i386_go32_init_abi): Ditto.
6414 * gdbarch.sh (has_dos_based_file_system): New.
6415 * gdbarch.h, gdbarch.c: Regenerate.
6416 * NEWS: Mention improved support for remote targets with DOS-based
6417 filesystems. Mention new `set/show target-file-system-kind'
6418 commands.
6419
35c9c7ba
SS
64202010-04-23 Stan Shebs <stan@codesourcery.com>
6421
6422 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6423 comments.
6424 (struct agent_reqs): Remove.
6425 (ax_reg_mask): Declare.
6426 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6427 (free_agent_expr): Free reg_mask.
6428 (ax_print): Add scope and register mask info.
6429 (ax_reqs): Remove agent_reqs argument, use agent expression
6430 fields, and move part of register mask computation to...
6431 (ax_reg_mask): New function.
6432 * ax-gdb.c (gen_trace_static_fields): Call it.
6433 (gen_traced_pop): Ditto.
6434 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6435 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6436 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6437 (gen_eval_for_expr): Ditto, and require an rvalue.
6438 (agent_command): Call ax_reqs.
6439 (agent_eval_command): Ditto.
6440 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6441 (validate_action_line): Ditto.
6442 (collect_symbol): Ditto.
6443 (encode_actions_1): Ditto.
6444
492928e4
JK
64452010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6446 Paul Pluzhnikov <ppluzhnikov@google.com>
6447 Jan Kratochvil <jan.kratochvil@redhat.com>
6448
6449 Fix deadlock on looped list of loaded shared objects.
6450 * solib-svr4.c (LM_PREV): New function.
6451 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6452 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6453 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6454 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6455
66d09542
DE
64562010-04-23 Doug Evans <dje@google.com>
6457
88a1906b
DE
6458 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6459 python.
6460 * configure: Regenerate.
6461 * main.c: #include "python/python.h".
6462 (captured_main): Defer loading auto-loaded scripts until after
6463 local_gdbinit has been sourced.
6464 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6465 (load_auto_scripts_for_objfile): New function.
6466 (auto_load_new_objfile): Call it.
6467 * python/python.h (gdbpy_global_auto_load): Declare.
6468 (load_auto_scripts_for_objfile): Declare.
6469
66d09542
DE
6470 Add support for auto-loading scripts from .debug_gdb_scripts section.
6471 * NEWS: Add entry for .debug_gdb_scripts.
6472 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6473 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6474 (py-auto-load.o): New rule.
6475 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6476 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6477 * python/py-auto-load.c: New file.
6478 * python/python-internal.h: #include <stdio.h>.
6479 (set_python_list, show_python_list): Declare.
6480 (gdbpy_initialize_auto_load): Declare.
6481 (source_python_script_for_objfile): Declare.
6482 * python/python.c: Remove #include of observer.h.
6483 (gdbpy_auto_load): Moved to py-auto-load.c.
6484 (GDBPY_AUTO_FILENAME): Ditto.
6485 (gdbpy_new_objfile): Delete.
6486 (source_python_script_for_objfile): New function.
6487 (set_python_list, show_python_list): Make externally visible.
6488 (_initialize_python): Move "auto-load" command to py-auto-load.c
6489 and observer_attach_new_objfile to py-auto-load.c.
6490
3a48e6ff 64912010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 6492
3a48e6ff
JG
6493 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6494 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6495 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6496 New constants.
6497 (alpha_heuristic_analyze_probing_loop): New function.
6498 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6499 and handle cases when a stack probe loop is generated.
6500 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6501 (alpha_mdebug_max_frame_size_exceeded): New function.
6502 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6503 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6504 Return 0 when the maximum debuggable frame size has been exceeded.
6505
e4166a49
JB
65062010-04-23 Joel Brobecker <brobecker@adacore.com>
6507
6508 Fix ARI warning.
6509 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6510
8bd10a10
CM
65112010-04-20 Chris Moller <cmoller@redhat.com>
6512
6513 PR 10179
6514
6515 * symtab.c (rbreak_command): Added code to include a filename
6516 specification in the rbreak argument.
6517 * NEWS: Added a brief description of filename-qualified rbreak.
6518
c0201579
JK
65192010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6520
6521 Fix crashes on dangling display expressions.
6522 * ada-lang.c (ada_operator_check): New function.
6523 (ada_exp_descriptor): Fill-in the field operator_check.
6524 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6525 * jv-lang.c (exp_descriptor_java): Likewise.
6526 * m2-lang.c (exp_descriptor_modula2): Likewise.
6527 * scm-lang.c (exp_descriptor_scm): Likewise.
6528 * parse.c (exp_descriptor_standard): Likewise.
6529 (operator_check_standard): New function.
6530 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6531 * parser-defs.h (struct exp_descriptor): New field operator_check.
6532 (operator_check_standard, exp_uses_objfile): New declarations.
6533 * printcmd.c: Remove the inclusion of solib.h.
6534 (display_uses_solib_p): Remove the function.
6535 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6536 and exp_uses_objfile instead of display_uses_solib_p.
6537 * solist.h (struct so_list) <objfile>: New comment.
6538 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6539 * symtab.h (lookup_objfile_from_block): New declaration.
6540 (struct general_symbol_info) <obj_section>: Extend the comment.
6541
6ffbb7ab
TJB
65422010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6543 Thiago Jung Bauermann <bauerman@br.ibm.com>
6544
6545 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6546 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6547 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6548 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6549 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6550 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6551 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6552 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6553 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6554 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6555 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6556 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6557 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6558 Define, in case <ptrace.h> doesn't provide it.
6559 (booke_debug_info): New variable.
6560 (max_slots_number): Ditto.
6561 (hw_break_tuple): New struct.
6562 (thread_points): Ditto.
6563 (ppc_threads): New variable.
6564 (PPC_DEBUG_CURRENT_VERSION): New define.
6565 (have_ptrace_new_debug_booke): New function.
6566 (ppc_linux_check_watch_resources): Renamed to ...
6567 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6568 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6569 (booke_cmp_hw_point): New function.
6570 (booke_find_thread_points_by_tid): Ditto.
6571 (booke_insert_point): Ditto.
6572 (booke_remove_point): Ditto.
6573 (ppc_linux_insert_hw_breakpoint): Ditto.
6574 (ppc_linux_remove_hw_breakpoint): Ditto.
6575 (get_trigger_type): Ditto.
6576 (ppc_linux_insert_watchpoint): Handle BookE processors.
6577 (ppc_linux_remove_watchpoint): Ditto.
6578 (ppc_linux_new_thread): Ditto.
6579 (ppc_linux_thread_exit): New function..
6580 (ppc_linux_stopped_data_address): Handle BookE processors.
6581 (ppc_linux_watchpoint_addr_within_range): Ditto.
6582 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6583 to_remove_hw_breakpoint fields of the target operations struct.
6584 Add observe for the thread_exit event.
6585
be0d2954
L
65862010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6587
6588 * i386-linux-nat.c (regmap): Removed.
6589 (fetch_register): Replace regmap with
6590 i386_linux_gregset_reg_offset.
6591 (store_register): Likewise.
6592 (supply_gregset): Likewise.
6593 (fill_gregset): Likewise.
6594
6595 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6596 global.
6597
6598 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6599
f56dcb88
CM
66002010-04-22 Chris Moller <cmoller@redhat.com>
6601
6602 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6603 method of popping recursion-detection stack with a method based on
6604 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6605 the static array obstack rather than the static member obstack.)
6606
6cd6a2ae
L
66072010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6608
6609 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6610 (_initialize_amd64_linux_nat): Replace
6611 amd64_linux_gregset64_reg_offset with
6612 amd64_linux_gregset_reg_offset.
6613
6614 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6615 global.
6616
6617 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6618
621791b8
PM
66192010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6620
6621 PR stabs/11479.
6622 * stabsread.c (set_length_in_type_chain): New function.
6623 (read_struct_type): Call set_length_in_type_chain function.
6624 (read_enum_type): Idem.
6625
105c2d85
SS
66262010-04-21 Stan Shebs <stan@codesourcery.com>
6627 Nathan Sidwell <nathan@codesourcery.com>
6628
6629 * tracepoint.c (trace_save): Open in binary mode.
6630
9a22f0d0
PM
66312010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6632
6633 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6634 fields.
0407b3f1 6635 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6636 builtin_char32 fields.
6637 * printcmd.c (decode_format): Set char size to '\0'
6638 for strings unless explicit size is given.
6639 (print_formatted): Correct calculation of NEXT_ADDRESS
6640 for 16 or 32 bit strings.
6641 (do_examine): Do not force byte size for strings.
6642 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6643 16 or 32 bit-wide strings.
9a22f0d0
PM
6644 (x_command): Set LAST_SIZE to 'b' for string type.
6645
f335d1b3
L
66462010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6647
6648 PR corefiles/11523
6649 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6650 XCR0 first.
6651
6652 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6653 there is no .reg-xstate section.
6654 (i386_linux_core_read_description): Check XCR0 first.
6655
a9789a6b
MF
66562010-04-21 Mike Frysinger <vapier@gentoo.org>
6657
6658 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6659 for len <= 8.
6660
0b66f317
CM
66612010-04-21 Chris Moller <cmoller@redhat.com>
6662
6663 PR 9167
6664 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6665 method of popping recursion-detection stack with a method based on
6666 obstack_object_size().
0b66f317 6667
6e354e5e
PM
66682010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6669
6670 PR pascal/11492.
6671 * p-valprint.c (pascal_val_print): Fix default printing of integer
6672 arrays.
6673
57174f31
PM
66742010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6675
6676 Fix compilation warning on gcc-4.1.2.
6677 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6678 local variable`pc' to zero.
6679
6fbc7cd8
JB
66802010-04-20 Joel Brobecker <brobecker@adacore.com>
6681
6682 Implement thread support with core files on alpha-tru64.
6683 * dec-thread.c (dec_thread_find_new_threads): New function,
6684 extracted from resync_thread_list.
6685 (resync_thread_list): Add OPS parameter. Replace extracted-out
6686 code by call to dec_thread_find_new_threads.
6687 (dec_thread_wait): Update call to resync_thread_list.
6688 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6689
438c98a1
JB
66902010-04-20 Joel Brobecker <brobecker@adacore.com>
6691
6692 * ada-lang.c (value_pointer): New function.
6693 (make_array_descriptor): Call value_pointer to convert addresses to
6694 pointers.
6695
2971b56b
JB
66962010-04-20 Joel Brobecker <brobecker@adacore.com>
6697
6698 * rs6000-aix-tdep.c: #include exceptions.h.
6699 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6700 while reading the memory at ADDR, then ADDR cannot be a function
6701 descriptor.
6702
be942545
JB
67032010-04-20 Joel Brobecker <brobecker@adacore.com>
6704
6705 * ada-typeprint.c (ada_print_typedef): New function.
6706 * ada-lang.h (ada_print_typedef): Add declaration.
6707 * ada-lang.c (ada_language_defn): set la_print_typdef field
6708 to ada_print_typedef.
6709
1ca8fce0
JB
67102010-04-20 Joel Brobecker <brobecker@adacore.com>
6711
6712 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6713
e9ef4f39
JB
67142010-04-20 Joel Brobecker <brobecker@adacore.com>
6715
6716 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6717 (iterate_over_mappings): Adjust function profile. Add declaration.
6718 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6719 Adjust accordingly.
6720
e294797a
JB
67212010-04-20 Joel Brobecker <brobecker@adacore.com>
6722
6723 * procfs.c (solib_mappings_callback): Move function up to avoid
6724 a compiler warning.
6725
a223f1e7
JB
67262010-04-20 Joel Brobecker <brobecker@adacore.com>
6727
6728 * procfs.c (find_signalled_thread, find_stop_signal): Move
6729 these functions down to define them only when used.
6730
0c3acc09
JB
67312010-04-20 Joel Brobecker <brobecker@adacore.com>
6732
6733 * valprint.c (common_val_print): Fix the value before extracting
6734 its contents.
6735 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6736 * ada-lang.h (ada_to_fixed_value): New function declaration.
6737 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6738 to avoid code duplication and fix a bug in the handling of
6739 fixed types contents.
6740
31ef98ae
TT
67412010-04-20 Tom Tromey <tromey@redhat.com>
6742
6743 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6744 (read_partial_die): Likewise.
6745 (dwarf_attr_name): Likewise.
6746
ec31cde5 67472010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6748
ec31cde5
CM
6749 PR 10867
6750
6751 * cp-valprint.c (global): Adding new static array recursion
6752 detection obstack.
6753 (cp_print_value_fields, cp_print_static_field): Added new static
6754 array recursion detection code.
6755
e0e0e543
MK
67562010-04-20 Mark Kettenis <kettenis@gnu.org>
6757
6758 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6759 general-purpose register set should be 68 instead of 144.
6760 (i386_linux_sse_regset_sections): Likewise.
6761 (i386_linux_avx_regset_sections): Likewise.
6762
08922a10
SS
67632010-04-20 Stan Shebs <stan@codesourcery.com>
6764 Nathan Sidwell <nathan@codesourcery.com>
6765
6766 * dwarf2loc.c (struct axs_var_loc): New struct.
6767 (dwarf2_tracepoint_var_loc): New function.
6768 (dwarf2_tracepoint_var_access): New function.
6769 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6770 with DW_OP_piece.
6771 (locexpr_describe_location_piece): New function.
6772 (locexpr_describe_location_1): New function.
6773 (locexpr_describe_location): Call it, update signature.
6774 (loclist_describe_location): Rewrite to loop over locations,
6775 update signature.
6776 * symtab.h (struct symbol_computed_ops): Add address to
6777 describe_location arguments, return void.
6778 * printcmd.c (address_info): Get context PC, pass to computed
6779 location description.
6780 * tracepoint.c (scope_info): Ditto.
6781 * ax-gdb.c (trace_kludge): Export.
6782
2dc7f7b3
TT
67832010-04-20 Tom Tromey <tromey@redhat.com>
6784
6785 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6786 (struct dwarf2_cie) <segment_size>: New field.
6787 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6788 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6789 DW_FORM_exprloc.
6790 (read_attribute_value): Handle DW_FORM_flag_present,
6791 DW_FORM_sec_offset, DW_FORM_exprloc.
6792 (dump_die_shallow): Likewise.
6793 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6794 (dwarf2_const_value): Handle DW_FORM_exprloc.
6795 (attr_form_is_block): Likewise.
6796 (struct line_header) <maximum_ops_per_instruction>: New field.
6797 (dwarf_decode_line_header): Set new field.
6798 (dwarf_decode_lines): Handle new field.
6799
ce4b0682
SDJ
68002010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 * f-exp.y: Add new production to recognize the `logical*8' type.
6803 (LOGICAL_S8_KEYWORD): New token.
6804 * f-lang.c (enum f_primitive_types)
6805 <f_primitive_type_logical_s8>: New field.
6806 (f_language_arch_info): Handling `logical*8' type.
6807 (build_fortran_types): Building `logical*8' type.
6808 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6809
ff9f22f1
DE
68102010-04-19 Doug Evans <dje@google.com>
6811
6812 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6813 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6814 (pipe_close): Ditto.
6815
437125bd
PM
68162010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6817
6818 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6819
e8e6c82e
PM
68202010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6821
6822 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6823 type to void function.
6824
4136fdd2
SS
68252010-04-19 Stan Shebs <stan@codesourcery.com>
6826 Vladimir Prus <vladimir@codesourcery.com>
6827
6828 * tracepoint.c (tfind_1): Add missing newline, report exit from
6829 tfind mode as such.
6830 * target.c (update_current_target): Make default
6831 to_trace_find return -1.
6832
0c4b2e63
MF
68332010-04-19 Mike Frysinger <vapier@gentoo.org>
6834
6835 * objc-lang.c (find_methods): Move symname check up.
6836
78076abc
PA
68372010-04-19 Pedro Alves <pedro@codesourcery.com>
6838
6839 * ada-lang.c (print_recreate_exception)
6840 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6841 not "catch unhandled".
6842
6149aea9
PA
68432010-04-19 Pedro Alves <pedro@codesourcery.com>
6844
6845 PR breakpoints/8554.
6846
6847 Implement `save-breakpoints'.
6848
6849 * breakpoint.c (save_cmdlist): New.
6850 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6851 to save_cmdlist.
6852 (print_recreate_catch_fork): New.
6853 (catch_fork_breakpoint_ops): Install it.
6854 (print_recreate_catch_vfork): New.
6855 (catch_vfork_breakpoint_ops): Install it.
6856 (print_recreate_catch_syscall): New.
6857 (catch_syscall_breakpoint_ops): Install it.
6858 (print_recreate_catch_exec): New.
6859 (catch_exec_breakpoint_ops): Install it.
6860 (print_recreate_exception_catchpoint): New.
6861 (gnu_v3_exception_catchpoint_ops): Install it.
6862 (save_breakpoints): New, based on tracepoint_save_command, but
6863 handle all breakpoint types.
6864 (save_breakpoints_command): New.
6865 (tracepoint_save_command): Rename to...
6866 (save_tracepoints_command): ... this, and reimplement using
6867 save_breakpoints.
6868 (save_command): New.
6869 (_initialize_breakpoints): Install the "save" command prefix.
6870 Install the "save breakpoints" command. Make "save-tracepoints" a
6871 deprecated alias for "save tracepoints".
6872 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6873 * ada-lang.c (print_recreate_exception): New.
6874 (print_recreate_catch_exception): New.
6875 (catch_exception_breakpoint_ops): Install it.
6876 (print_recreate_catch_exception_unhandled): New.
6877 (catch_exception_unhandled_breakpoint_ops): Install it.
6878 (print_recreate_catch_assert): New.
6879 (catch_assert_breakpoint_ops): Install it.
6880
6881 * NEWS: Mention the new `save breakpoints' command. Mention the
6882 new `save tracepoints' alias and that `save-tracepoints' is now
6883 deprecated.
6884
0a8fce9a
PA
68852010-04-18 Pedro Alves <pedro@codesourcery.com>
6886
6887 PR tui/9217
6888
6889 * tui/tui-out.c: Include cli-out.h.
6890 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6891 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6892 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6893 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6894 declarations.
6895 (struct ui_out_data): Rename to...
6896 (struct tui_ui_out_data): ... this. Remove `stream' and
6897 `suppress_output' fields, and inherit cli_ui_out_data.
6898 (tui_out_data): New typedef.
6899 (tui_ui_out_impl): Don't initialize fields staticaly.
6900 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6901 (tui_begin, tui_end): Delete.
6902 (tui_field_int): Adjust to delegate most work to the base type.
6903 (tui_field_skip): Delete.
6904 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6905 delegate most work to the base type.
6906 (tui_spaces): Delete.
6907 (tui_text): Adjust to delegate most work to the base type.
6908 (tui_message): Delete.
6909 (tui_wrap_hint): Delete.
6910 (tui_flush): Delete.
6911 (out_field_fmt): Delete.
6912 (field_separator): Delete.
6913 (tui_out_new): Adjust to initialize the base type.
6914 (_initialize_tui_out): Initialize tui_ui_out_impl.
6915 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6916 cli_ui_out_data.
6917 (cli_out_data): Adjust.
6918 (cli_ui_out_impl): Make extern.
6919 (cli_table_header, cli_field_int, cli_field_skip): Use
6920 uo_field_string instead of cli_field_string.
6921 (cli_redirect): Adjust to use cli_out_data.
6922 (cli_out_data_ctor): New.
6923 (cli_out_new): Use it.
6924 * cli-out.h (struct ui_file): Remove forward declaration.
6925 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6926 (cli_ui_out_impl): Declare.
6927 (cli_out_data_ctor): Declare.
6928 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6929 (uo_field_string): No longer static.
6930 (ui_out_data): Change return type to void pointer.
6931 (ui_out_new): Change `data' parameter type to void pointer.
6932 * ui-out.h (struct ui_out_data): Don't forward declare.
6933 (ui_out_data): Change return type to void pointer.
6934 (ui_out_new): Change `data' parameter type to void pointer.
6935 (uo_field_string): Declare.
6936
172240dd
PA
69372010-04-17 Pedro Alves <pedro@codesourcery.com>
6938
6939 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6940 instead of always false.
6941
ed41462c
L
69422010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6943
6944 PR corefiles/11511
6945 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6946 orig_rax.
6947
cc60f2e3
PA
69482010-04-17 Pedro Alves <pedro@codesourcery.com>
6949
6950 * breakpoint.c (watchpoints_triggered): Use
6951 is_hardware_watchpoint.
6952 (watchpoints_triggered): Ditto.
6953 (bpstat_check_location): Use is_watchpoint and
6954 is_hardware_watchpoint.
6955 (bpstat_check_watchpoint): Use is_watchpoint and
6956 is_hardware_watchpoint.
6957 (bpstat_stop_status): Fix comment.
6958 (user_settable_breakpoint): Use is_watchpoint.
6959 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6960 (disable_watchpoints_before_interactive_call_start): Use
6961 is_watchpoint.
6962 (enable_watchpoints_after_interactive_call_stop): Use
6963 is_watchpoint.
6964 (clear_command): Use is_watchpoint.
6965 (do_enable_breakpoint): Use is_watchpoint.
6966
cb7db0f2
MF
69672010-04-16 Mike Frysinger <vapier@gentoo.org>
6968
6969 * solib-frv.c (enable_break1_done): Delete.
6970 (enable_break2): Do not check enable_break1_done. Move the
6971 enable_break2_done setting and call to
6972 remove_solib_event_breakpoints() to the end. Return without
6973 warning when the contents of _dl_debug_addr are 0.
6974 (enable_break): Do not set enable_break1_done.
6975 (frv_clear_solib): Likewise.
6976
d77b48cf
KB
69772010-04-16 Kevin Buettner <kevinb@redhat.com>
6978
6979 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6980 instead of an error if no PLT entry is found. Return a
6981 potentially useful result.
6982 (m32c_m16c_pointer_to_address): Add code to search for function
6983 address when no .plt entry is found.
6984
f90824dc
SS
69852010-04-16 Stan Shebs <stan@codesourcery.com>
6986
6987 * tracepoint.c (trace_variable_command): Run a cleanup.
6988
9b79b476
PM
69892010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6990
6991 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6992
711e434b
PM
69932010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6994
6995 Support for Windows OS Thread Information Block.
6996 * NEWS: Document new feature.
6997 * remote.c (PACKET_qGetTIBAddr): New enum element.
6998 (remote_get_tib_address): New function.
6999 (init_remote_ops): Set to_get_tib_address field
7000 to remote_get_tib_address.
7001 (_initialize_remote): Add add_packet_config_cmd
7002 for PACKET_qGetTIBAddr.
7003 * target.c (update_current_target): Set default value for
7004 new to_get_tib_address field.
7005 * target.h (target_ops): New field to_get_tib_address.
7006 (target_get_tib_address): New macro.
7007 * windows-nat.c (thread_info): Add thread_local_base field.
7008 (windows_add_thread): Add tlb argument of type 'void *'.
7009 (fake_create_process): Adapt windows_add_thread call.
7010 (get_windows_debug_event): Idem.
7011 (windows_get_tib_address): New function.
7012 (init_windows_ops): Set to_get_tib_address field
7013 to remote_get_tib_address.
7014 (_initialize_windows_nat): Replace info_w32_cmdlist
7015 initialization by a call to init_w32_command_list.
7016 (info_w32_command, info_w32_cmdlist): Removed from here...
7017 to windows-tdep.c file.
7018 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 7019 (init_w32_command_list): New external function
711e434b
PM
7020 declaration.
7021 * windows-tdep.c: Add several headers.
7022 (info_w32_cmdlist): to here, made global.
7023 (thread_information_32): New struct.
7024 (thread_information_64): New struct.
7025 (TIB_NAME): New char array.
7026 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7027 (maint_display_all_tib): New static variable.
7028 (windows_get_tlb_type): New function.
7029 (tlb_value_read, tlb_value_write): New functions.
7030 (tlb_value_funcs): New static struct.
7031 (tlb_make_value): New function.
7032 (display_one_tib): New function.
7033 (display_tib): New function.
7034 (show_maint_show_all_tib):New function.
7035 (info_w32_command): Moved from windows-nat.c.
7036 (init_w32_command_list): New function.
7037 (_initialize_windows_tdep): New function.
7038 New "maint set/show show-all-tib" command
7039 New "$_tlb" internal variable.
7040
cae3f17b
JB
70412010-04-16 Joel Brobecker <brobecker@adacore.com>
7042
7043 * tui/tui-regs.c (tui_display_register): Add comment about
7044 a couple of casts.
7045 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7046
2ce6d6bf
SS
70472010-04-15 Stan Shebs <stan@codesourcery.com>
7048
7049 * frame.c: Include tracepoint.h.
7050 (get_current_frame): Allow a trace frame to be an alternate source
7051 of stack frame data.
7052 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7053 it won't succeed.
7054
7e559477
PA
70552010-04-15 Pedro Alves <pedro@codesourcery.com>
7056
7057 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7058 flags.
7059 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7060
3f7b2faa
DE
70612010-04-15 Doug Evans <dje@google.com>
7062
fa33c3cd
DE
7063 * NEWS: Add entry for python program space support.
7064 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7065 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7066 (py-progspace.o): New rule.
7067 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7068 function.
7069 (find_pretty_printer_from_progspace): New function.
7070 (find_pretty_printer_from_gdb): New function.
7071 (find_pretty_printer): Rewrite.
7072 * python/py-progspace.c: New file.
7073 * python/python-internal.h (program_space): Add forward decl.
7074 (pspace_to_pspace_object, pspy_get_printers): Declare.
7075 (gdbpy_initialize_pspace): Declare.
7076 * python/python.c: #include "progspace.h".
7077 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7078 (_initialize_python): Call gdbpy_initialize_pspace.
7079 (GdbMethods): Add current_progspace, progspaces.
7080
3f7b2faa
DE
7081 Add -s option to source command.
7082 * NEWS: Document new option.
7083 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7084 Delete from_tty and cleanupp args. Split filep arg into file and
7085 full_pathp. New arg search_path.
7086 (source_script_from_stream): New function.
7087 (source_script_with_search): New function.
7088 (source_script): Rewrite.
7089 (source_command): Parse "-s" option.
7090 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7091 * python/python.c (source_python_script): Make file arg a const char *.
7092 Don't call fclose, leave for caller.
7093 * python/python.h (source_python_script): Update.
7094
a86988f2
PA
70952010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7096 Pedro Alves <pedro@codesourcery.com>
7097
7098 Avoid rereading shared libraries that haven't changed.
7099
7100 * solib.c (free_so_symbols): New function, from ...
7101 (free_so): ... here. Call it.
7102 (solib_read_symbols): Don't warn here if symbols have already been
7103 loaded.
7104 (solib_add): Warn here instead, if a pattern was specified.
7105 (reload_shared_libraries_1): New.
7106 (reload_shared_libraries): Rewrite to not fetch the library list.
7107
e6d9b9c2
DE
71082010-04-14 Doug Evans <dje@google.com>
7109
589390d6 7110 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
7111 concatenating string to search path.
7112
516ba659
PA
71132010-04-14 Pedro Alves <pedro@codesourcery.com>
7114
7115 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7116 * objfiles.c (gdb_bfd_close_or_warn): New.
7117 * corelow.c: Include objfiles.h
7118 (core_close): Use gdb_bfd_close_or_warn.
7119 * elfread.c (build_id_verify): Ditto.
7120 * exec.c (exec_close, exec_close_1): Ditto.
7121
048d532d
PA
71222010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7123 Pedro Alves <pedro@codesourcery.com>
7124
7125 Group errors for many missing shared libraries.
7126
7127 * solist.h (struct so_list): Remove from_tty.
7128 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7129 (solib_map_sections): Take so_list argument. Return 0 if we
7130 failed to open a BFD. Add target sections here.
7131 (symbol_add_stub): Delete.
7132 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7133 not from_tty copied from the so_list. Don't warn a second time
7134 for a missing library.
7135 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7136 add to the section table here. Print out a single warning for all
7137 missing libraries.
7138 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7139 flags.
7140
044c0f87
PM
71412010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7142
7143 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7144 error/warning messages. Capitalize and use complete sentences.
7145 (blpy_block_syms_iternext): Likewise.
7146 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7147 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7148 (frame_info_to_frame_object, frapy_read_var)
7149 (gdbpy_frame_stop_reason_string): Likewise.
7150 * python/py-lazy-string.c (stpy_convert_to_value)
7151 (gdbpy_create_lazy_string_object): Likewise.
7152 * python/py-objfile.c (objfpy_set_printers): Likewise.
7153 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7154 * python/python.c (parameter_to_python): Likewise.
7155 * python/py-type.c (typy_range, typy_target): Likewise.
7156 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7157 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7158
7159
79f283fe
PM
71602010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7161
7162 PR python/11381
7163
7164 * python/py-prettyprint.c (pretty_print_one_value): Test for
7165 Py_None.
7166 (print_string_repr): Test for Py_None. Set flags accordingly.
7167 Return value depending on return type.
7168 (print_children): Take a value indicating whether data was printed
7169 before this function was called. Alter output accordingly.
7170 (apply_val_pretty_printer): Capture return value from
7171 print_string_repr and pass to print_children.
7172
4ac5d44e
MK
71732010-04-13 Mark Kettenis <kettenis@gnu.org>
7174
e1caee70 7175 PR corefiles/11481
4ac5d44e
MK
7176 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7177 register note sections.
7178 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7179 New variables.
7180 (i386_linux_init_abi): Install list of supported register note
7181 sections that matches the target description.
7182
ad91cd99
PA
71832010-04-13 Pedro Alves <pedro@codesourcery.com>
7184
7185 * remote.c (remote_get_noisy_reply): Don't error out on empty
7186 replies.
7187 (remote_start_remote): Update and merge tracepoints and trace
7188 state variables as long as the target supports tracepoints.
7189 (remote_trace_init): Fix prototype.
7190 (remote_download_trace_state_variable): Validate reply.
7191 (remote_trace_set_readonly_regions): Fix prototype.
7192 (remote_trace_start): Fix prototype. Check for empty reply.
7193 (remote_get_trace_status): Small cleanup.
7194 (remote_trace_stop): Fix prototype. Check for empty reply.
7195 (remote_trace_find): Check for empty reply.
7196 (remote_save_trace_data): Validate reply.
7197 (remote_set_disconnected_tracing): Check for empty reply, and
7198 validate reply.
7199 (remote_set_circular_trace_buffer): Ditto.
7200
ae3bccd4
PM
72012010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7202
7203 Suppress unused value warning during compilation.
7204 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7205 calls to void.
7206 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7207
523136f2
SS
72082010-04-12 Stan Shebs <stan@codesourcery.com>
7209
7210 * tracepoint.c (tfile_xfer_partial): Check read result.
7211
0d18d720
MF
72122010-04-12 Mike Frysinger <vapier@gentoo.org>
7213
7214 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7215 * remote-sim.c (gdbsim_files_info): Likewise.
7216
3b273a55
RE
72172010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7218
7219 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7220 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7221 variable.
7222 (fetch_vfp_registers): New function to fetch VFP registers.
7223 (store_vfp_registers): New function to store VFP registers.
7224 (arm_linux_fetch_inferior_registers): Add support for VFP
7225 registers.
7226 (arm_linux_store_inferior_registers): Likewise.
7227 (arm_linux_read_description): Likewise.
7228 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7229 until we need it.
7230
778c7095
L
72312010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7232
7233 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7234 tdep.
7235 (amd64_collect_xstateregset): Likewise.
7236
2114d44c
SS
72372010-04-09 Stan Shebs <stan@codesourcery.com>
7238
87290684
SS
7239 * tracepoint.c (trace_status_mi): Report frames created.
7240
2114d44c
SS
7241 * tracepoint.c (trace_dump_command): Include default-collect
7242 expressions.
7243
86da934b
UW
72442010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7245
7246 * symtab.c (find_function_start_sal): Never return SAL pointing
7247 before function start address, even if line info is missing.
7248
2d6e647a 72492010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
7250
7251 * NEWS: Mention tracepoints support.
7252
a97153c7
PA
72532010-04-09 Pedro Alves <pedro@codesourcery.com>
7254
7255 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7256 circular trace buffer statuses.
7257
7a66d603
JK
72582010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7259
7260 * config/djgpp/fnchange.lst: Fix typo in translations for
7261 symbol-without-target_section.exp and symbol-without-target_section.c.
7262
2566ad2d
PA
72632010-04-09 Pedro Alves <pedro@codesourcery.com>
7264
7265 * breakpoint.c (condition_command): Pass condition expression to
7266 set_breakpoint_condition stripped from breakpoint number.
7267
adc36818
PM
72682010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7269 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 7270 Tom Tromey <tromey@redhat.com>
adc36818
PM
7271
7272 * breakpoint.c (condition_command): Simplify. Move condition
7273 setting code to ...
7274 (set_breakpoint_condition): ... here. New function.
7275 * breakpoint.h (set_breakpoint_condition): Declare.
7276 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7277 (SUBDIR_PYTHON_SRCS): Likewise.
7278 (py-breakpoint.o): New rule.
7279 * python/py-breakpoint.c: New file.
7280 * python/python-internal.h (gdbpy_breakpoints)
7281 (gdbpy_initialize_breakpoints): Declare.
7282 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7283
219f2f23
PA
72842010-04-09 Pedro Alves <pedro@codesourcery.com>
7285
7286 * regformats/regdat.sh: Include server.h. Don't include
7287 regcache.h.
7288
33da3f1c
SS
72892010-04-08 Stan Shebs <stan@codesourcery.com>
7290 Pedro Alves <pedro@codesourcery.com>
7291
7292 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7293 and circular_buffer.
7294 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7295 * tracepoint.c (trace_status_command): Display target's status for
7296 disconnected tracing and circular buffer.
7297 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7298 query for non-disconnected-tracing case, remove the stop_tracing
7299 call.
7300 (tfile_open): Clear disconnected and circular buffer status.
7301 (trace_save): Save disconnected and circular buffer status.
7302 (parse_trace_status): Parse disconnected and circular buffer status,
7303 also recognize disconnected as a stop reason.
7304 * remote.c (remote_set_disconnected_tracing): Only set
7305 QTDisconnected if the remote end supports disconnected tracing.
7306 Warn otherwise, if trying to enable disconnected tracing.
7307 * infcmd.c (detach_command): Update disconnect_tracing call.
7308 * cli/cli-cmds.c (quit_command): Ditto.
7309
4e4d8374
L
73102010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7311
7312 * i387-tdep.c (i387_collect_xsave): Replace abort with
7313 internal_error.
7314
ad443146
SS
73152010-04-08 Stan Shebs <stan@codesourcery.com>
7316
7317 * breakpoint.c (default_collect_info): New function.
7318 (breakpoints_info): Call it.
7319 (maintenance_info_breakpoints): Ditto.
7320 (tracepoints_info): Ditto.
7321
40936b0d
L
73222010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7323
7324 * i387-tdep.c (i387_collect_xsave): Re-indent.
7325
3a13a53b
L
73262010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7327
7328 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7329 if HAVE_PTRACE_GETFPXREGS is defined.
7330 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7331 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7332
7333 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7334 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7335 if .reg-xfp section doesn't exist.
7336 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7337
7338 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7339
7340 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7341 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7342 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7343 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7344 (i386_gdbarch_init): Update comments.
7345 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7346
7347 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7348
7349 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7350
7351 * features/Makefile (i386/i386-mmx-expedite): New.
7352 (i386/i386-mmx-linux-expedite): Likewise.
7353 ($(outdir)/i386/i386-mmx.dat): Likewise.
7354 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7355
7356 * features/i386/i386-mmx-linux.c: New.
7357 * features/i386/i386-mmx-linux.xml: Likewise.
7358 * features/i386/i386-mmx.c: Likewise.
7359 * features/i386/i386-mmx.xml: Likewise.
7360 * regformats/i386/i386-mmx-linux.dat: Likewise.
7361 * regformats/i386/i386-mmx.dat: Likewise.
7362
7363 * features/Makefile (WHICH): Add i386/i386-mmx and
7364 i386/i386-mmx-linux.
7365
08001717
DE
73662010-04-08 Doug Evans <dje@google.com>
7367
7368 * source.c (openp): Skip $cdir in PATH.
7369
fff5cc64
PM
73702010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7371
7372 PR python/11417
fff5cc64 7373 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
7374 a NULL address.
7375 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7376 address and a zero length.
fff5cc64 7377
f8c4f480
HZ
73782010-04-08 Hui Zhu <teawater@gmail.com>
7379
7380 * i386-tdep.c (i386_process_record): Add support for insn
7381 rdtsc.
7382
eb5cda86
DE
73832010-04-07 Doug Evans <dje@google.com>
7384
7385 * python/python.c (source_python_script): Use ensure_python_env
7386 to prepare environment for script.
7387
a055a187
L
73882010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7389
7390 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7391 <sys/uio.h> and "i386-xstate.h".
7392 (PTRACE_GETREGSET): New.
7393 (PTRACE_SETREGSET): Likewise.
7394 (have_ptrace_getregset): Likewise.
7395 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7396 registers.
7397 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7398 registers.
7399 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7400 (amd64_linux_store_inferior_registers): Likewise.
7401 (amd64_linux_read_description): Check and enable AVX target
7402 descriptions.
7403
7404 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7405 and "features/i386/amd64-avx-linux.c".
7406 (amd64_linux_regset_sections): New.
7407 (amd64_linux_core_read_description): Check and enable AVX
7408 target description.
7409 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7410 set_gdbarch_core_regset_sections.
7411 (_initialize_amd64_linux_tdep): Call
7412 initialize_tdesc_amd64_avx_linux.
7413
7414 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7415 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7416 (tdesc_amd64_avx_linux): New.
7417 (amd64_linux_update_xstateregset): Likewise.
7418
7419 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7420 (amd64_ymm_names): New.
7421 (amd64_ymmh_names): Likewise.
7422 (amd64_register_name): Likewise.
7423 (amd64_supply_xstateregset): Likewise.
7424 (amd64_collect_xstateregset): Likewise.
7425 (amd64_supply_xsave): Likewise.
7426 (amd64_collect_xsave): Likewise.
7427 (AMD64_NUM_REGS): Removed.
7428 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7429 %xmmN if AVX is available.
7430 (amd64_pseudo_register_name): Support pseudo YMM registers.
7431 (amd64_regset_from_core_section): Support .reg-xstate section.
7432 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7433 and ymm0h_regnum. Call set_gdbarch_register_name.
7434 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7435
7436 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7437 AMD64_YMM15H_REGNUM.
7438 (AMD64_NUM_REGS): New.
7439 (amd64_supply_xsave): Likewise.
7440 (amd64_collect_xsave): Likewise.
7441 (amd64_register_name): Removed.
7442 (amd64_register_type): Likewise.
7443
31aeac78
L
74442010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7445
7446 * i387-tdep.c: Include "i386-xstate.h".
7447 (XSAVE_XSTATE_BV_ADDR): New.
7448 (xsave_avxh_offset): Likewise.
7449 (XSAVE_AVXH_ADDR): Likewise.
7450 (i387_supply_xsave): Likewise.
7451 (i387_collect_xsave): Likewise.
7452
7453 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7454 (I387_YMM0H_REGNUM): Likewise.
7455 (I387_YMMENDH_REGNUM): Likewise.
7456 (i387_supply_xsave): Likewise.
7457 (i387_collect_xsave): Likewise.
7458
c131fcee
L
74592010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7460
7461 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7462 <sys/uio.h> and "i386-xstate.h".
7463 (PTRACE_GETREGSET): New.
7464 (PTRACE_SETREGSET): Likewise.
7465 (fetch_xstateregs): Likewise.
7466 (store_xstateregs): Likewise.
7467 (GETXSTATEREGS_SUPPLIES): Likewise.
7468 (regmap): Include 8 upper YMM registers.
7469 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7470 state.
7471 (i386_linux_store_inferior_registers): Likewise.
7472 (i386_linux_read_description): Check and enable AVX target
7473 descriptions.
7474
7475 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7476 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7477 (i386_linux_regset_sections): Add ".reg-xstate".
7478 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7479 (i386_linux_core_read_xcr0): New.
7480 (i386_linux_core_read_description): Check and enable AVX target
7481 description.
7482 (i386_linux_init_abi): Set xsave_xcr0_offset.
7483 (_initialize_i386_linux_tdep): Call
7484 initialize_tdesc_i386_avx_linux.
7485
7486 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7487 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7488 (i386_linux_core_read_xcr0): New.
7489 (tdesc_i386_avx_linux): Likewise.
7490 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7491
7492 * i386-tdep.c: Include "i386-xstate.h" and
7493 "features/i386/i386-avx.c".
7494 (i386_ymm_names): New.
7495 (i386_ymmh_names): Likewise.
7496 (i386_ymmh_regnum_p): Likewise.
7497 (i386_ymm_regnum_p): Likewise.
7498 (i386_xmm_regnum_p): Likewise.
7499 (i386_register_name): Likewise.
7500 (i386_ymm_type): Likewise.
7501 (i386_supply_xstateregset): Likewise.
7502 (i386_collect_xstateregset): Likewise.
7503 (i386_sse_regnum_p): Removed.
7504 (i386_pseudo_register_name): Support pseudo YMM registers.
7505 (i386_pseudo_register_type): Likewise.
7506 (i386_pseudo_register_read): Likewise.
7507 (i386_pseudo_register_write): Likewise.
7508 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7509 %xmmN if AVX is available.
7510 (i386_regset_from_core_section): Support .reg-xstate section.
7511 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7512 (i386_process_record): Replace i386_sse_regnum_p with
7513 i386_xmm_regnum_p.
7514 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7515 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 7516 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
7517 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7518 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7519 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7520 Set ymm0_regnum.
7521 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7522
7523 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7524 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7525 i386_ymm_type.
7526 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7527 (I386_AVX_NUM_REGS): New.
7528 (i386_xmm_regnum_p): Likewise.
7529 (i386_ymm_regnum_p): Likewise.
7530 (i386_ymmh_regnum_p): Likewise.
7531
7532 * common/i386-xstate.h: New.
7533
98adf0f3
L
75342010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7535
7536 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7537
7538 * features/Makefile (WHICH): Add i386/i386-avx,
7539 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7540 (i386/i386-avx-expedite): New.
7541 (i386/i386-avx-linux-expedite): Likewise.
7542 (i386/x86-64-avx-expedite):Likewise.
7543 (i386/x86-64-avx-linux-expedite): Likewise.
7544 ($(outdir)/i386/i386-avx.dat): New dependency.
7545 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7546 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7547 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7548
7549 * features/i386/32bit-avx.xml: New.
7550 * features/i386/64bit-avx.xml: Likewise.
7551 * features/i386/i386-avx-linux.c: Likewise.
7552 * features/i386/i386-avx-linux.xml: Likewise.
7553 * features/i386/i386-avx.c: Likewise.
7554 * features/i386/i386-avx.xml: Likewise.
7555 * features/i386/x86-64-avx-linux.c: Likewise.
7556 * features/i386/x86-64-avx-linux.xml: Likewise.
7557 * features/i386/x86-64-avx.c: Likewise.
7558 * features/i386/x86-64-avx.xml: Likewise.
7559 * regformats/i386/i386-avx-linux.dat: Likewise.
7560 * regformats/i386/i386-avx.dat: Likewise.
7561 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7562 * regformats/i386/x86-64-avx.dat: Likewise.
7563
05159abe
DE
75642010-04-07 Doug Evans <dje@google.com>
7565
7566 * top.c (source_file_name): Make const char *.
7567 * top.h (source_file_name): Update.
7568 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7569 const char *.
7570 (script_from_file): Change `file' arg to const char *.
7571 * cli/cli-script.h (script_from_file): Update.
7572
96e39866
DE
75732010-04-06 Doug Evans <dje@google.com>
7574
7575 * cli/cli-cmds.c (source_command): Run cleanups.
7576
3149d8c1
SS
75772010-04-06 Stan Shebs <stan@codesourcery.com>
7578
7579 * defs.h (char_ptr): Move typedef here from...
7580 * ada-lang.c (char_ptr): Remove.
7581 * charset.c (char_ptr): Remove.
7582 * tracepoint.h (struct uploaded_string): Remove.
7583 (struct uploaded_tp): Use vectors for string arrays.
7584 * tracepoint.c (trace_save): Use vectors of actions.
7585 (parse_tracepoint_definition): Ditto.
7586 (get_uploaded_tp): Clear vectors.
7587 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7588 (next_cmd): Change to an int.
7589 (read_next_cmd): Use vector of command strings.
7590
4cc23ede
DE
75912010-04-06 Doug Evans <dje@google.com>
7592
7593 * top.h (source_script, cd_command): Delete.
7594 * main.c: #include "cli/cli-cmds.h"
7595
bd333fb7
KB
75962010-04-06 Kevin Buettner <kevinb@redhat.com>
7597
7598 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7599 type in bytes, not bits.
7600
ec8a089a
PM
76012010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7602
7603 * stabsread.c (define_symbol): Add support for char
7604 and string constants.
7605
2244ba2e
PM
76062010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7607
7608 Remove remaining "%ll" uses.
7609 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7610 hex_string call.
7611 * rs6000-nat.c (rs6000_ptrace64): Idem.
7612 * solib-pa64.c (pa64_current_sos): Idem.
7613 * solib-spu.c (spu_current_sos): Idem.
7614 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7615 plongest call.
7616 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7617 phex (VAR, 8) call.
7618 * sh64-tdep.c (sh64_show_media_regs): Idem.
7619
fce3c1f0
SS
76202010-04-05 Stan Shebs <stan@codesourcery.com>
7621
7622 * tracepoint.c: Include gdbcore.h.
7623 (tfile_xfer_partial): Return partial results, also try reading
7624 from executable.
7625 (tfile_has_all_memory): New function.
7626 (init_tfile_ops): Use it.
7627
626ea16d
SDJ
76282010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7629
7630 PR gdb/10736:
7631 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7632 the changes in data-directory.
7633 (init_sysinfo): Reload the syscall XML file if the data-directory
7634 has changed.
7635
1f7ccab2
JK
76362010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7637
7638 Code cleanup.
7639 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7640
d77f58be
SS
76412010-04-04 Stan Shebs <stan@codesourcery.com>
7642 Nathan Sidwell <nathan@codesourcery.com>
7643
7644 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7645 breakpoints printed.
7646 (is_hardware_watchpoint): Make argument const.
7647 (is_watchpoint): Ditto.
7648 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7649 use it everywhere.
7650 (breakpoints_info): Pass NULL to breakpoint_1.
7651 (maintenance_info_breakpoints): Ditto.
7652 (watchpoints_info): New function.
7653 (tracepoints_info): Use breakpoint_1 filter.
7654 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7655 (_initialize_breakpoint): Make "info watchpoints" its own command.
7656 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7657 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7658
af54718e
SS
76592010-04-04 Stan Shebs <stan@codesourcery.com>
7660
7661 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7662
74d1f91e
JK
76632010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7664
7665 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7666 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7667
91d91ceb
JK
76682010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7669
7670 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7671 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7672
60531b24
JK
76732010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7676 code form.
7677
a3c4230a
HZ
76782010-04-02 Hui Zhu <teawater@gmail.com>
7679
7680 * i386-tdep.c (OT_DQUAD): New enum.
7681 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7682 SSE3, SSSE3 and SSE4.
7683
b15758fe
HZ
76842010-04-02 Hui Zhu <teawater@gmail.com>
7685
7686 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7687 "*addr = 0".
7688
afd02f27
PA
76892010-04-02 Pedro Alves <pedro@codesourcery.com>
7690
7691 * tracepoint.c (trace_dump_actions): New, factored out from
7692 trace_dump_command, and adjusted to recurse into while-stepping's
7693 action list.
7694 (trace_dump_command): Use it.
7695
5cea2a26
PA
76962010-04-02 Pedro Alves <pedro@codesourcery.com>
7697
7698 * breakpoint.h (struct counted_command_line): Moved definition to
7699 breakpoint.c, and forward declare.
7700 (breakpoint_commands): Declare.
7701 * breakpoint.c (struct counted_command_line): Moved here.
7702 (breakpoint_commands): New.
7703 * tracepoint.c (encode_actions): Use breakpoint_commands.
7704 * remote.c (remote_download_tracepoint): Ditto.
7705
7c47795c
L
77062010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7707
7708 * remote.c (remote_parse_stop_reply): Use hex_string instead
7709 of phex_nz for error.
7710
fff87407
SS
77112010-04-01 Stan Shebs <stan@codesourcery.com>
7712 Nathan Sidwell <nathan@codesourcery.com>
7713
7714 * tracepoint.h (enum actionline_type): Remove.
7715 (validate_actionline): Change return to void.
7716 * tracepoint.c (report_agent_reqs_errors): New function.
7717 (validate_actionline): Call it, change return to void, report errors
7718 more consistently.
7719 (collect_symbol): Call report_agent_reqs_errors.
7720 (encode_actions_1): Ditto.
7721 (encode_actions): Don't expect a result from validate_actionline.
7722
615bcdef
SS
77232010-04-01 Stan Shebs <stan@codesourcery.com>
7724
7725 * tracepoint.c (trace_start_command): Confirm if trace is running.
7726 (trace_stop_command): Error if trace not running.
7727
fe01d668
L
77282010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7729
7730 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7731 (AMD64_NUM_LOWER_BYTE_REGS): New.
7732 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7733 (amd64_pseudo_register_write): Likewise.
7734 (amd64_init_abi): Set num_byte_regs to 20.
7735
86b17b60
PA
77362010-04-01 Pedro Alves <pedro@codesourcery.com>
7737
7738 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7739 (prev_breakpoint_count): New.
7740 (set_breakpoint_count): Adjust.
7741 (rbreak_start_breakpoint_count): New.
7742 (start_rbreak_breakpoints): Adjust.
7743 (end_rbreak_breakpoints): Adjust.
7744 (struct commands_info) <arg>: New field.
7745 (do_map_commands_command): Tweak output to include breakpoint spec
7746 range.
7747 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7748 ARG was empty on entry. Set INFO's arg.
7749 (create_breakpoint): Adjust.
7750
7751 * NEWS: Clarify `commands' changes.
7752
2c58c0a9
PA
77532010-04-01 Pedro Alves <pedro@codesourcery.com>
7754
7755 * tracepoint.c: Include stack.h.
7756 (struct add_local_symbols_data): New.
7757 (do_collect_symbol): New.
7758 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7759 iterate_over_block_local_vars.
7760 * stack.c (print_block_frame_locals): Rewrite as ...
7761 (iterate_over_block_locals): ... this. Take a callback function
7762 pointer and generic data pointer, and call that instead of
7763 print_variable_and_value.
7764 (struct print_variable_and_value_data): New.
7765 (do_print_variable_and_value): New.
7766 (iterate_over_block_local_vars): New, abstracted out from
7767 print_frame_local_vars.
7768 (print_frame_local_vars): Rewrite using
7769 iterate_over_block_local_vars.
7770 (iterate_over_block_arg_vars): New, abstracted out from
7771 print_frame_arg_vars.
7772 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7773 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7774 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7775
d476da0e
RE
77762010-03-31 Richard Earnshaw <rearnsha@arm.com>
7777
7778 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7779 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7780 PC register.
7781
8072405b
JK
77822010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7783
7784 Fix crash on reading wrong function declaration DWARF.
7785 * dwarf2read.c (read_subroutine_type): New variable void_type.
7786 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7787 more close to their use.
7788
8bf6485c
SS
77892010-03-31 Stan Shebs <stan@codesourcery.com>
7790
7791 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7792 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7793 * tracepoint.c (save_trace_state_variables): New function.
7794 * tracepoint.h (save_trace_state_variables): Declare it.
7795
2ae2a0b7
PM
77962010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7797
1a161f72 7798 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7799
86ffb506
KS
78002010-03-30 Keith Seitz <keiths@redhat.com>
7801
7802 * c-typeprint.c (c_type_print_args): Don't print "void"
7803 for java, regardless of whether it is TYPE_PROTOTYPED.
7804 Use the passed-in language instead of current_language.
7805 (c_type_print_varspec_suffix): Use current_language instead
7806 of assuming language_c.
7807 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7808 any return type specifier from the physname.
7809
956c2c8b
PA
78102010-03-30 Pedro Alves <pedro@codesourcery.com>
7811
7812 * tui/tui-interp.c (tui_is_toplevel): New.
7813 (tui_init): Set it.
7814 (tui_allowed_p): New.
7815 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7816 enabling it.
7817 * tui/tui.h (tui_allowed_p): Declare.
7818
98e5a990
TT
78192010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7820
7821 * serial.h: Include winsock2.h before windows.h.
7822
c8d5aac9
L
78232010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7824
7825 * NEWS: Mention xmlRegisters= in qSupported packet.
7826
7827 * i386-tdep.c: Include "remote.h".
7828 (_initialize_i386_tdep): Call register_remote_support_xml.
7829
7830 * remote.c (remote_support_xml): New.
7831 (register_remote_support_xml): Likewise.
7832 (remote_query_supported_append): Likewise.
7833 (remote_query_supported): Support remote_support_xml.
7834
7835 * remote.h (register_remote_support_xml): New.
7836
76a2b958
SS
78372010-03-29 Stan Shebs <stan@codesourcery.com>
7838
42e08e69
SS
7839 * tracepoint.c (trace_find_line_command): Remove dead code.
7840
409873ef
SS
7841 * tracepoint.h (struct uploaded_string): New struct.
7842 (struct uploaded_tp): New fields for source strings.
7843 * breakpoint.c (this_utp, next_cmd): New globals.
7844 (read_uploaded_action): New function.
7845 (create_tracepoint_from_upload): Fill in more parts
7846 of a tracepoint.
7847 * tracepoint.c (encode_source_string): New function.
7848 (trace_save): Write out source strings, fix error checks.
7849 (parse_tracepoint_definition): Add source string parsing.
7850 * remote.c (PACKET_TracepointSource): New packet type.
7851 (remote_download_command_source): New function.
7852 (remote_download_tracepoint): Download source pieces also.
7853 (_initialize_remote): Add packet config command.
7854
a0405854
SS
7855 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7856 expression handler.
7857
76a2b958
SS
7858 * tracepoint.c (start_tracing): Check tracepoints before sending
7859 commands to target, don't start if all tracepoints disabled.
7860
d350db38
PA
78612010-03-28 Pedro Alves <pedro@codesourcery.com>
7862
12f2d601 7863 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7864
8b9b7ef8
SS
78652010-03-26 Stan Shebs <stan@codesourcery.com>
7866
7867 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7868
9766ced4
SS
78692010-03-26 Tom Tromey <tromey@redhat.com>
7870
7871 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7872
059acae7
UW
78732010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7874
7875 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7876 (skip_prologue_sal): Remove local definition.
7877 (resolve_sal_pc): Remove now unnecessary code.
7878 * linespec.c (minsym_found): Call skip_prologue_sal.
7879 * symtab.c (find_function_start_pc): Remove.
7880 (find_function_start_sal): Extract prologue skipping into ...
7881 (skip_prologue_sal): ... this new function. Handle code both
7882 with and without debug info. Respect SAL's explicit_pc and
7883 explicit_line flags. Inline old find_function_start_pc.
7884 * symtab.h (find_function_start_pc): Remove.
7885 (skip_prologue_sal): Add prototype.
7886
4a811a97
UW
78872010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7888
7889 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7890 for DW_TAG_imported_module children.
7891
907af001
UW
78922010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7893
7894 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7895 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7896 * completer.c (add_struct_fields): Fix inverted logic.
7897
dde2d684
UW
78982010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7899
7900 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7901
a609a0c8
PA
79022010-03-26 Pedro Alves <pedro@codesourcery.com>
7903
7904 * tracepoint.c (current_trace_status): Don't make sure error_desc
7905 is non-NULL here.
7906 (parse_trace_status): Release a previous error_desc string, and
7907 set it to NULL by default. If stop reason is tracepoint_error,
7908 make sure error_desc is not left NULL.
7909
610197fd
PA
79102010-03-26 Pedro Alves <pedro@codesourcery.com>
7911
7912 * tracepoint.c (trace_save): Remove X from tracepoint error
7913 description.
7914
99b5e152
PA
79152010-03-26 Pedro Alves <pedro@codesourcery.com>
7916
7917 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7918 the terror description. Don't expect an X prefix.
7919
6c28cbf2
SS
79202010-03-25 Stan Shebs <stan@codesourcery.com>
7921
7922 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7923 (struct trace_status): New field error_desc.
7924 * tracepoint.c (stop_reason_names): Add terror.
7925 (current_trace_status): Ensure non-NULL error description.
7926 (trace_status_command): Add error report.
7927 (trace_status_mi): Ditto.
7928 (trace_save): Add special case for error description.
7929 (parse_trace_status): Add case for errors.
7930
418835cc
KS
79312010-03-25 Keith Seitz <keiths@redhat.com>
7932
7933 * dwarf2read.c (read_subroutine_type): If the compilation unit
7934 language is Java, mark any formal parameter named "this" as
7935 artificial (GCC/43521).
7936 (dwarf2_name): Add special handling for Java constructors.
7937
aa7d318d
TT
79382010-03-25 Tom Tromey <tromey@redhat.com>
7939
7940 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7941 * infrun.c (handle_inferior_event): Change initialization of
7942 stop_stack_dummy.
7943 (handle_inferior_event): Change assignment to stop_stack_dummy.
7944 (normal_stop): Update use of stop_stack_dummy.
7945 (struct inferior_status) <stop_stack_dummy>: Change type.
7946 * inferior.h (stop_stack_dummy): Update.
7947 * infcmd.c (stop_stack_dummy): Change type.
7948 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7949 function.
7950 (call_function_by_hand): Call set_std_terminate_breakpoint.
7951 Rewrite std::terminate handling.
7952 * breakpoint.h (enum bptype) <bp_std_terminate,
7953 bp_std_terminate_master>: New.
7954 (enum stop_stack_kind): New.
7955 (struct bpstat_what) <call_dummy>: Change type.
7956 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7957 Declare.
7958 * breakpoint.c (create_std_terminate_master_breakpoint): New
7959 function.
7960 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7961 Call create_std_terminate_master_breakpoint.
7962 (print_it_typical): Handle new breakpoint kinds.
7963 (bpstat_stop_status): Handle bp_std_terminate_master.
7964 (bpstat_what): Correctly set call_dummy field. Handle
7965 bp_std_terminate_master and bp_std_terminate.
7966 (print_one_breakpoint_location): Update.
7967 (allocate_bp_location): Update.
7968 (set_std_terminate_breakpoint): New function.
7969 (delete_std_terminate_breakpoint): Likewise.
7970 (create_thread_event_breakpoint): Update.
7971 (delete_command): Update.
7972 (breakpoint_re_set_one): Update.
7973 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7974
82ccf5a5
JK
79752010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7976
7977 * symfile.c (build_section_addr_info_from_bfd): New.
7978 (build_section_addr_info_from_objfile): Base it on
7979 build_section_addr_info_from_bfd.
7980 (addrs_section_compar, addrs_section_sort): New.
7981 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7982 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7983 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7984
737c4c52
MS
79852010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7986
8d95cc3b 7987 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7988 Remove unused local variable.
7989
95a42b64
TT
79902010-03-24 Tom Tromey <tromey@redhat.com>
7991
7992 PR breakpoints/9352:
7993 * NEWS: Mention changes to `commands' and `rbreak'.
7994 * symtab.c (do_end_rbreak_breakpoints): New function.
7995 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7996 end_rbreak_breakpoints.
7997 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7998 (set_breakpoint_count): Likewise. Clear last_was_multi.
7999 (multi_start, multi_end, last_was_multi): New globals.
8000 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8001 functions.
8002 (struct commands_info): New
8003 (do_map_commands_command): New function.
8004 (commands_command_1): New function.
8005 (commands_command): Use it.
8006 (commands_from_control_command): Likewise.
8007 (do_delete_breakpoint): New function.
8008 (delete_command): Use it.
8009 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8010 (do_map_disable_breakpoint): New function.
8011 (disable_command): Use it.
8012 (do_map_enable_breakpoint): New function.
8013 (enable_command): Use it.
8014 (enable_once_breakpoint): Add argument.
8015 (enable_once_command): Update.
8016 (enable_delete_breakpoint): Add argument.
8017 (enable_delete_command): Update.
8018 (break_command_really): Set last_was_multi when needed.
8019 (check_tracepoint_command): Fix formatting.
8020 (validate_commands_for_breakpoint): New function.
8021 (breakpoint_set_commands): Use it.
8022 (tracepoint_save_command): Update.
8023 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8024 Declare.
8025
9add0f1b
TT
80262010-03-24 Tom Tromey <tromey@redhat.com>
8027
8028 * breakpoint.h (struct counted_command_line): New struct.
8029 (struct breakpoint) <commands>: Change type.
8030 (struct bpstats) <commands>: Change type.
8031 <commands_left>: New field.
8032 * breakpoint.c (alloc_counted_command_line): New function.
8033 (incref_counted_command_line): Likewise.
8034 (decref_counted_command_line): Likewise.
8035 (do_cleanup_counted_command_line): Likewise.
8036 (make_cleanup_decref_counted_command_line): Likewise.
8037 (breakpoint_set_commands): Use decref_counted_command_line and
8038 alloc_counted_command_line.
8039 (commands_command): Don't error if breakpoint commands are
8040 executing.
8041 (commands_from_control_command): Likewise.
8042 (bpstat_free): Update.
8043 (bpstat_copy): Likewise.
8044 (bpstat_clear_actions): Likewise.
8045 (bpstat_do_actions_1): Likewise.
8046 (bpstat_stop_status): Likewise.
8047 (print_one_breakpoint_location): Likewise.
8048 (delete_breakpoint): Likewise.
8049 (bpstat_alloc): Initialize new field.
8050 (tracepoint_save_command): Update.
8051 * tracepoint.c (encode_actions): Update.
8052 (trace_dump_command): Update.
8053
a6c727b2
DJ
80542010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8055
8056 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8057 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8058 (read_structure_type): For RealView, set TYPE_STUB on structures with
8059 no byte size and no children.
8060 (read_subroutine_type): Mark functions as prototyped by default.
8061 * symtab.c (producer_is_realview): New function.
8062 * symtab.h (expand_line_sal): Fix declaration formatting.
8063 (producer_is_realview): Declare.
8064
0d39a070
DJ
80652010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8066
8067 * arm-tdep.c (skip_prologue_function): New function.
8068 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8069 (thumb_analyze_prologue): Document return value. Recognize more
8070 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8071 Add debug output.
8072 (arm_skip_prologue): Remove call dummy check. Check the prologue
8073 for non-GNU compilers.
8074 (arm_instruction_changes_pc): New function.
8075 (arm_analyze_prologue): New function, broken out from
8076 arm_scan_prologue. Recognize more ARM instructions and skippable
8077 calls. Update comments. Handle NULL cache. Return the address
8078 of the first unrecognized instruction. Do not skip past other
8079 instructions which change control flow. Add debug output.
8080 (arm_scan_prologue): Use arm_analyze_prologue.
8081 (ARM_PC_32): Delete.
8082 (shifted_reg_val): Simplify ARM_PC_32 check.
8083
4baf5cf4
VP
80842010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8085
8086 * tracepoint.c (tvariables_info_1): Actually compute
8087 the number of rows in the result.
8088
4a5e7a5b
PA
80892010-03-24 Pedro Alves <pedro@codesourcery.com>
8090
8091 * remote.c (crc32): Constify `buf' parameter.
8092 (remote_verify_memory): New, abstracted out from...
8093 (compare_sections_command): ... this. Remove hardcoded target
8094 checks.
8095 (init_remote_ops): Install remote_verify_memory.
8096 * target.c (target_verify_memory): New.
8097 * target.h (struct target_ops) <to_verify_memory>: New field.
8098 (target_verify_memory): Declare.
8099
011aacb0
VP
81002010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8101
8102 Implement -trace-save.
8103
8104 * mi-cmds.h (mi_cmds_trace_save): Declare.
8105 * mi-cmds.c (mi_cmds): Register -trace-save.
8106 * mi/mi-main.c (mi_cmd_trace_save): New.
8107 * remote.c (remote_save_trace_data): Take const parameter.
8108 * target.h (struct target_ops::to_save_trace_data): Take
8109 const parameter.
8110 * target.c (update_current_target): Adjust to the above.
8111 * tracepoint.c (trave_save): New, extracted from
8112 (trace_save_command): ...this.
8113 (tfile_trace_find): Remove message that is unnecessary now
8114 that 'tfind' reports found frame.
8115 * tracepoint.h (trace_save): Declare.
8116
f197e0f1
VP
81172010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8118
8119 Implement -trace-find.
8120
8121 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8122 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8123 * mi/mi-main.c (mi_cmd_trace_find): New.
8124 * target.h (struct target_ops): Document to_trace_find.
8125 * tracepoint.h (tfind_1): Declare.
8126 * tracepoint.c (finish_tfind_command): Rename to...
8127 (tfind_1): ...this.
8128 * remote.c (remote_trace_find): Return -1 if target say
8129 there's no frame. Improve error diagnostics.
8130
40e1c229
VP
81312010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8132
8133 -trace-define-variable and -trace-list-variables.
8134
8135 * tracepoint.c (create_trace_state_variable): Make
8136 private copy of name, as opposed to assuming the
8137 pointer lives forever.
8138 (tvariables_info_1): New.
8139 (tvariables_info): Use the above.
8140 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8141 Declare.
8142 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8143 and -trace-list-variables.
8144 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8145 (mi_cmd_trace_list_variables): New.
8146 * mi/mi-main.c (mi_cmd_trace_define_variable)
8147 (mi_cmd_trace_list_variables): New.
8148
9b4c786c
VP
81492010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8150
8151 Implement -break-passcount.
8152
8153 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8154 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8155 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8156
f224b49d
VP
81572010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8158
8159 -trace-start/-trace-end/-trace-status.
8160
8161 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8162 and -trace-stop.
8163 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8164 (mi_cmd_trace_stop): Declare.
8165 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8166 (mi_cmd_trace_stop): New.
8167 * tracepoint.c (start_tracing): New, extracted from...
8168 (trace_start_command): ...this.
8169 (trace_status_mi): New.
8170 * tracepoint.h (struct trace_status): Document
8171 stopping_tracepoint.
8172 (start_tracing, stop_tracing, trace_status_mi): Declare.
8173
6534d786
VP
81742010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8175
8176 Implement creating tracepoints with -break-insert.
8177
8178 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8179 to mean that tracepoint should be created.
8180
51661e93
VP
81812010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8182
8183 * breakpoint.c (check_no_tracepoint_commands): Use
8184 current spelling of 'teval'.
8185
a7bdde9e
VP
81862010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8187
8188 Unify actions and commands
8189
8190 * defs.h (read_command_lines, read_command_lines_1): New
8191 parameters validator and closure.
8192 * tracepoint.h (struct action_line): Remove.
8193 * breakpoint.h (struct breakpoint): Remove the 'actions'
8194 field.
8195 * defs.h (enum command_control_type): New value
8196 while_stepping_control.
8197 (struct command_line): Add comments.
8198 * breakpoint.c (breakoint_is_tracepoint): New.
8199 (breakpoint_set_commands): For tracepoints,
8200 verify the commands are permissible.
8201 (check_tracepoint_commands): New.
8202 (commands_command): Require that each new line is validated using
8203 check_tracepoint_command, if we set commands for a tracepoint.
8204 (create_tracepoint_from_upload): Likewise.
8205 (print_one_breakpoint_location): Remove the code to print
8206 actions specifically.
8207 (tracepoint_save_command): Relay to print_command_lines.
8208 * cli/cli-script.c (process_next_line): New parameters validator
8209 and closure. Handle 'while-stepping'. Call validator if not null.
8210 (read_command_lines, read_command_lines1): Likewise.
8211 (recurse_read_control_structure): New parameters validator and
8212 closure. Handle while_stepping_control.
8213 (print_command_lines): Handle while-stepping.
8214 (get_command_line, define_command, document_command): Adjust.
8215 * remote.c (remote_download_tracepoint): Adjust.
8216 * tracepoint.c (make_cleanup_free_actions, read_actions)
8217 (free_actions, do_free_actions_cleanup): Remove.
8218 (trace_actions_command): Use read_command_lines.
8219 (validate_actionline): Use error in one place.
8220 (encode_actions_1): New, extracted from...
8221 (encode_actions): ...this. Also use cleanups for exception
8222 safety.
8223 (trace_dump_command): Adjust.
8224 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8225 it's tracepoint.
8226
64e3cf3d
MF
82272010-03-23 Mike Frysinger <vapier@gentoo.org>
8228
8229 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8230
52e9fde8
SS
82312010-03-22 Stan Shebs <stan@codesourcery.com>
8232
8233 * value.c (value_static_field): Be lazy about the field's value.
8234
508ccb1f
TT
82352010-03-22 Reid Kleckner <reid@kleckner.net>
8236
8237 PR gdb/11094
8238 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8239 bp_jit_event.
8240 (disable_breakpoints_in_shlibs): Likewise.
8241
acebe513
UW
82422010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8243
8244 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8245 GCC 4.1 debug info generation (GCC PR c++/28460).
8246 (determine_prefix): Likewise.
8247
957b8b5a
DJ
82482010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8249
8250 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8251 get_current_arch.
8252 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8253
3b11a015
SS
82542010-03-19 Stan Shebs <stan@codesourcery.com>
8255
8256 * ax-gdb.c (gen_fetch): Handle bool.
8257 (gen_usual_unary): Ditto.
8258 (gen_cast): Ditto.
8259 (gen_equal): New function.
8260 (gen_less): New function.
8261 (gen_expr_binop_rest): Call them, also return integer type from
8262 logical operations.
8263 (gen_expr): Ditto.
8264
20781792
TT
82652010-03-19 Tom Tromey <tromey@redhat.com>
8266
8267 * jv-lang.c (jv_dynamics_objfile_data_key)
8268 (jv_type_objfile_data_key): New globals.
8269 (class_symtab): Move earlier.
8270 (jv_per_objfile_free): New function.
8271 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8272 parameter.
8273 Remove ancient #if 1.
8274 (add_class_symbol): Remove redundant declaration.
8275 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8276 (java_link_class_type): Mark as static. Update.
8277 (jv_clear_object_type): New function.
8278 (set_java_object_type): Likewise.
8279 (get_java_object_type): Use set_java_object_type.
8280 (is_object_type): Likewise.
8281 (_initialize_java_language): Register new objfile keys.
8282 (get_java_class_symtab): Add 'gdbarch' parameter.
8283 (add_class_symtab_symbol): Update.
8284 (type_from_class): Update.
8285
cf3e25ca
SS
82862010-03-19 Stan Shebs <stan@codesourcery.com>
8287
8d95cc3b 8288 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 8289
f1ae44c9 82902010-03-18 Joel Brobecker <brobecker@adacore.com>
8291
8292 GDB 7.1 released.
8293
4daf5ac0
SS
82942010-03-18 Stan Shebs <stan@codesourcery.com>
8295 Pedro Alves <pedro@codesourcery.com>
8296
8297 * target.h (struct target_ops): New method
8298 to_set_circular_trace_buffer.
8299 (target_set_circular_trace_buffer): New macro.
8300 * target.c (update_current_target): Add
8301 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8302 default behavior.
8303 * remote.c (remote_set_circular_trace_buffer): New function.
8304 (init_remote_ops): Add it to vector.
8305 * tracepoint.h (struct trace_status): New field traceframes_created,
8306 change buffer_size and buffer_free to int.
8307 * tracepoint.c (circular_trace_buffer): New global.
8308 (start_tracing): Send values of disconnected tracing and circular
8309 trace buffer settings.
8310 (set_circular_trace_buffer): New function.
8311 (parse_trace_state): Handle total space and frames created.
8312 (trace_status_command): Display total space and total frames
8313 created.
8314 (trace_save): Write out new status values.
8315 (parse_trace_status): Set traceframe_count, traceframes_created,
8316 buffer_free and buffer_size to -1 by default.
8317 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8318 * NEWS: Mention the circular trace buffer option.
8319
40c549d6
TT
83202010-03-18 Tom Tromey <tromey@redhat.com>
8321
8322 * infcmd.c (finish_command_continuation): Wrap print_return_value
8323 in TRY_CATCH.
8324
e8d05480
JB
83252010-03-18 Joel Brobecker <brobecker@adacore.com>
8326
8327 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8328 DIE has a name before creating the associated partial symbol.
8329 (read_func_scope): Emit a complaint if the subprogram does not
8330 have a name or when we can't extract the subprogram PC bounds.
8331
441b986a
UW
83322010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8333
8334 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8335 instead of selected frame architecture.
8336
4247603b
PA
83372010-03-18 Pedro Alves <pedro@codesourcery.com>
8338
8339 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8340 a valid selected thread, and that it is not running.
8341 (advance_command): Ditto.
8342 (finish_command): Ditto.
8343
400c6af0
SS
83442010-03-17 Stan Shebs <stan@codesourcery.com>
8345
3a96536b
SS
8346 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8347
573cda03
SS
8348 * infcall.c: Include tracepoint.h.
8349 (call_function_by_hand): Disallow calls in tfind mode.
8350 * infcmd.c: Include tracepoint.h.
8351 (ensure_not_tfind_mode): New function.
8352 (continue_1): Call it.
8353 (step_1) Ditto.
8354 (jump_command): Ditto.
8355 (signal_command): Ditto.
8356 (advance_command): Ditto.
8357 (until_command): Ditto.
8358 (finish_command): Ditto.
8359 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8360
400c6af0
SS
8361 * ax-gdb.h (struct axs_value): New field optimized_out.
8362 (gen_trace_for_var): Add gdbarch argument.
8363 * ax-gdb.c (gen_trace_static_fields): New function.
8364 (gen_traced_pop): Call it, add gdbarch argument.
8365 (gen_trace_for_expr): Update call to it.
8366 (gen_trace_for_var): Ditto, and report optimized-out variables.
8367 (gen_struct_ref_recursive): Check for optimized-out value.
8368 (gen_struct_elt_for_reference): Ditto.
8369 (gen_static_field): Pass gdbarch instead of expression, assume
8370 optimization if field not found.
8371 (gen_var_ref): Set the optimized_out flag.
8372 (gen_expr): Error on optimized-out variable.
8373 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8374 expressions, skip optimized-out variables with computed locations.
8375 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8376 erroring out if location expression missing.
8377 (loclist_tracepoint_var_ref): Don't error out here.
8378
a3b2a86b
TT
83792010-03-17 Tom Tromey <tromey@redhat.com>
8380
8381 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8382 DWARF data is available.
8383
38963c97
DJ
83842010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8385
8386 * symfile.c (generic_load): Reset breakpoints after loading.
8387
ddabfc73
TT
83882010-03-17 Tom Tromey <tromey@redhat.com>
8389
8390 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8391
d8c09fb5
JK
83922010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8393
8394 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8395 create_breakpoint call, adjust the parameters.
8396
bbb0eef6
JK
83972010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8398 Chandru <chandru@in.ibm.com>
8399
8400 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8401 * valarith.c (value_subscripted_rvalue): Suppress error if
8402 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8403
46956e39
HZ
84042010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8405
8406 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8407
b8d088ac
JB
84082010-03-16 Joel Brobecker <brobecker@adacore.com>
8409
8410 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8411 before doing the associated thread switch.
8412
322be962
DJ
84132010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8414
8415 * MAINTAINERS: Update my email address.
8416
8cdf0e15
VP
84172010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8418
8419 Simplify MI breakpoint setting.
8420
8421 * breakpoint.c (break_command_really): Make nonstatic and
8422 rename to...
8423 (create_breakpoint): ...this. Rename prior function by this name
8424 to...
8425 (create_breakpoint_sal): ...this.
8426 (create_breakpoints): Rename to...
8427 (create_breakpoints_sal): ...this.
8428 (set_breakpoint): Remove.
8429 * breakpoint.h: Adjust to above changes.
8430 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8431
b6e7192f
SS
84322010-03-15 Stan Shebs <stan@codesourcery.com>
8433
8434 * ax-gdb.c: Include cp-support.h.
8435 (find_field): Remove.
8436 (gen_primitive_field): New function.
8437 (gen_struct_ref_recursive): New function.
8438 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8439 of find_field.
8440 (gen_static_field): New function.
8441 (gen_struct_elt_for_reference): New.
8442 (gen_namespace_elt): New.
8443 (gen_maybe_namespace_elt): New.
8444 (gen_aggregate_elt_ref): New.
8445 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8446
1054b214
TT
84472010-03-15 Tom Tromey <tromey@redhat.com>
8448
8449 * dwarf2read.c (die_needs_namespace): Also return 0 for
8450 DW_TAG_subprogram.
8451
13387711
SW
84522010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8453
8454 PR c++/7936:
8455 * cp-support.h: Added char *declaration element to using_direct
8456 data struct.
8457 (cp_add_using): Added char *declaration argument.
8458 (cp_add_using_directive): Ditto.
8459 (cp_lookup_symbol_imports): made extern.
8460 * cp-namespace.c: Updated with the above changes.
8461 * dwarf2read.c (read_import_statement): Ditto.
8462 (read_namespace): Ditto.
8463 (read_import_statement): Support import declarations.
8464 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8465 declarations.
8466 Added support for 'declaration_only' search.
8467 (cp_lookup_symbol_namespace): Attempt to search for the name as
8468 is before consideration of imports.
8469 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8470 search at every block level search.
8471 Now takes language argument.
8472 (lookup_symbol_aux): Updated.
8473
6e31430b
TT
84742010-03-15 Tom Tromey <tromey@redhat.com>
8475
8476 * c-exp.y (name_not_typename): Add 'operator' clause.
8477
4dea3bb7 84782010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
8479
8480 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8481 * configure: Regenerate.
8482
4d9743af
JK
84832010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8484
8485 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8486 and ".sdynbss". Update the comment.
8487
f75150fe
JZ
84882010-03-15 Jie Zhang <jie@codesourcery.com>
8489
8490 * MAINTAINERS: Update my email address.
8491
3c13bc11
DJ
84922010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8493
8494 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8495
43484f03
DJ
84962010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8497
8498 * charset.c [USE_WIN32API]: Include <windows.h>.
8499 (_initialize_charset): Correct type of w32_host_default_charset.
8500
5f25d77d
PA
85012010-03-14 Pedro Alves <pedro@codesourcery.com>
8502
8503 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8504
1c809c68
TT
85052010-03-12 Tom Tromey <tromey@redhat.com>
8506
8507 PR c++/9708:
8508 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8509 in a lexical block does not need a namespace.
8510 (new_symbol) <DW_TAG_variable>: Put extern variables on
8511 list_in_scope in all cases.
8512
948103cf
SS
85132010-03-12 Stan Shebs <stan@codesourcery.com>
8514
8515 * ax-gdb.c (gen_expr): Add shift expressions.
8516 (gen_expr_binop_rest): Ditto.
8517
00ae8fef
SW
85182010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8519
8520 * buildsym.c (finish_block): Reset using_directives pointer
8521 after block initialization.
8522
9cad29ac
L
85232010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8524
8525 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8526 * i386-tdep.c (i386_word_names): Likewise.
8527
2f4d8875
PA
85282010-03-12 Pedro Alves <pedro@codesourcery.com>
8529
8530 * target.c (memory_xfer_partial): Don't use the stack cache if
8531 inspecting trace frames.
8532 * tracepoint.c (finish_tfind_command): Invalidate the target
8533 dcache.
8534
ccf26247
JK
85352010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8536
8537 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8538 for the PIC displacement, print also the displacement value.
8539 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8540
477c84a7
KB
85412010-03-10 Kevin Buettner <kevinb@redhat.com>
8542
8543 * remote-mips.c (close_ports, mips_initialize_cleanups)
8544 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8545 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8546 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8547 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8548 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8549 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8550 comments describing each of these functions.
8551 (mips_enter_debug, mips_exit_debug, common_open)
8552 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8553 blank line after the comment describing the function.
8554
01c30d6e
JK
85552010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8556
8557 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8558 parameter displacementp. Update comment.
8559 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8560 element exists. Return if svr4_exec_displacement was not successful.
8561 Update comment.
8562
09919ac2
JK
85632010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8564 Daniel Jacobowitz <dan@codesourcery.com>
8565
8566 * solib-svr4.c (read_program_header): Support type == -1 to read
8567 all program headers.
8568 (read_program_headers_from_bfd): New function.
8569 (svr4_static_exec_displacement): Remove and move the comment ...
8570 (svr4_exec_displacement): ... here. Remove variable found. New
8571 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8572 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8573 targets using read_program_headers_from_bfd. Remove the call of
8574 svr4_static_exec_displacement.
8575
d146bf1e
TT
85762010-03-10 Tom Tromey <tromey@redhat.com>
8577
8578 * dwarf2read.c (struct pubnames_header): Remove.
8579 (_PUBNAMES_HEADER): Remove.
8580 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8581 (struct aranges_header): Remove.
8582 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8583 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8584 (PUBNAMES_SECTION): Remove.
8585 (ARANGES_SECTION): Remove.
8586 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8587 (dwarf2_build_psymtabs): Remove dead code.
8588 (dwarf2_build_psymtabs_easy): Remove.
8589
be391dca
TT
85902010-03-10 Tom Tromey <tromey@redhat.com>
8591
8592 * elfread.c (elf_symfile_read): Don't call
8593 dwarf2_build_frame_info.
8594 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8595 (struct dwarf2_per_objfile) <objfile>: New field.
8596 (dwarf2_has_info): Now idempotent. Set objfile field.
8597 (dwarf2_read_section): Check and set readin field. Call
8598 posix_madvise.
8599 (dwarf2_build_psymtabs): Don't read all sections.
8600 (read_type_comp_unit_head): Read types section.
8601 (create_debug_types_hash_table): Likewise.
8602 (init_cu_die_reader): Add asserts.
8603 (process_type_comp_unit): Add assert.
8604 (dwarf2_build_psymtabs_hard): Read info section.
8605 (load_partial_comp_unit): Add assert.
8606 (create_all_comp_units): Read info section.
8607 (load_full_comp_unit): Likewise.
8608 (dwarf2_ranges_read): Read ranges section.
8609 (dwarf2_record_block_ranges): Add assert.
8610 (dwarf2_read_abbrevs): Read abbrev section.
8611 (read_indirect_string): Read str section.
8612 (dwarf_decode_line_header): Read line section.
8613 (read_signatured_type_at_offset): Read types section.
8614 (dwarf_decode_macros): Read macinfo section.
8615 (dwarf2_symbol_mark_computed): Read loc section.
8616 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8617 dwarf2_build_frame_info.
8618 (dwarf2_build_frame_info): Unconditionally set
8619 dwarf2_frame_objfile_data on the objfile.
8620 * configure.ac: Check for posix_madvise.
8621 * config.in, configure: Rebuild.
8622
ccefe4c4
TT
86232010-03-10 Tom Tromey <tromey@redhat.com>
8624
e38df1d0
TT
8625 * xcoffread.c (xcoff_start_psymtab): Update.
8626 (xcoff_end_psymtab): Update.
8627 * psymtab.c (allocate_psymtab): Remove dead code.
8628 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8629 void*.
8630 * mdebugread.c (parse_partial_symbols): Update.
8631 (new_psymtab): Likewise.
8632 * dwarf2read.c (process_psymtab_comp_unit): Update.
8633 (psymtab_to_symtab_1): Update.
8634 * dbxread.c (start_psymtab): Update.
8635 (end_psymtab): Likewise.
8636
be391dca 86372010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8638
ccefe4c4
TT
8639 * xcoffread.c: Include psymtab.h.
8640 (xcoff_sym_fns): Update.
8641 * symtab.h (struct partial_symbol): Remove.
8642 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8643 (struct partial_symtab): Remove.
8644 (PSYMTAB_TO_SYMTAB): Remove.
8645 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8646 (find_pc_sect_psymtab): Remove.
8647 (find_pc_sect_symtab_via_partial): Declare.
8648 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8649 (find_main_psymtab): Remove.
8650 (find_main_filename): Declare.
8651 (fixup_psymbol_section): Remove.
8652 (fixup_section): Declare.
8653 * symtab.c: Include psymtab.h.
8654 (lookup_symtab): Use lookup_symtab method.
8655 (lookup_partial_symtab): Remove.
8656 (find_pc_sect_psymtab_closer): Remove.
8657 (find_pc_sect_psymtab): Remove.
8658 (find_pc_sect_symtab_via_partial): New function.
8659 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8660 (fixup_section): No longer static.
8661 (fixup_psymbol_section): Remove.
8662 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8663 (lookup_global_symbol_from_objfile): Likewise.
8664 (lookup_symbol_aux_psymtabs): Remove.
8665 (lookup_symbol_aux_quick): New function.
8666 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8667 (lookup_partial_symbol): Remove.
8668 (basic_lookup_transparent_type_quick): New function.
8669 (basic_lookup_transparent_type): Use it.
8670 (find_main_psymtab): Remove.
8671 (find_main_filename): New function.
8672 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8673 (find_line_symtab): Use expand_symtabs_with_filename method.
8674 (output_partial_symbol_filename): New function.
8675 (sources_info): Use map_partial_symbol_filenames.
8676 (struct search_symbols_data): New type.
8677 (search_symbols_file_matches): New function.
8678 (search_symbols_name_matches): Likewise.
8679 (search_symbols): Use expand_symtabs_matching method.
8680 (struct add_name_data): Rename from add_macro_name_data.
8681 (add_macro_name): Update.
8682 (add_partial_symbol_name): New function.
8683 (default_make_symbol_completion_list): Use
8684 map_partial_symbol_names.
8685 (struct add_partial_symbol_name): New type.
8686 (maybe_add_partial_symtab_filename): New function.
8687 (make_source_files_completion_list): Use
8688 map_partial_symbol_filenames.
8689 (expand_line_sal): Use expand_symtabs_with_filename method.
8690 * symmisc.c: Include psymtab.h.
8691 (print_objfile_statistics): Use print_stats method.
8692 (dump_objfile): Use dump method.
8693 (dump_psymtab, maintenance_print_psymbols)
8694 (maintenance_info_psymtabs, maintenance_check_symtabs)
8695 (extend_psymbol_list): Remove.
8696 * symfile.h (struct quick_symbol_functions): New struct.
8697 (struct sym_fns) <qf>: New field.
8698 (sort_pst_symbols): Remove.
8699 (increment_reading_symtab): Declare.
8700 * symfile.c: Include psymtab.h.
8701 (compare_psymbols, sort_pst_symbols): Remove.
8702 (psymtab_to_symtab): Remove.
8703 (increment_reading_symtab): New function.
8704 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8705 method.
8706 (set_initial_language): Use find_main_filename.
8707 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8708 (free_named_symtabs): Remove unused code.
8709 (start_psymtab_common, add_psymbol_to_bcache)
8710 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8711 Remove.
8712 * stack.c: Include psymtab.h, symfile.h.
8713 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8714 * source.h (psymtab_to_fullname): Don't declare.
8715 * source.c: Include psymtab.h.
8716 (select_source_symtab): Use find_last_source_symtab method.
8717 (forget_cached_source_info): Use forget_cached_source_info
8718 method.
8719 (find_and_open_source): No longer static.
8720 (psymtab_to_fullname): Remove.
8721 * somread.c: Include psymtab.h.
8722 (som_sym_fns): Update.
8723 * psympriv.h: New file.
8724 * psymtab.h: New file.
8725 * psymtab.c: New file.
8726 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8727 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8728 * objfiles.c: Include psymtab.h.
8729 (objfile_relocate1): Use relocate method.
8730 (objfile_has_partial_symbols): Use has_symbols method.
8731 * mipsread.c: Include psymtab.h.
8732 (ecoff_sym_fns): Update.
8733 * mi/mi-cmd-file.c: Include psymtab.h.
8734 (print_partial_file_name): New function.
8735 (mi_cmd_file_list_exec_source_files): Use
8736 map_partial_symbol_filenames.
8737 * mdebugread.c: Include psympriv.h.
8738 * machoread.c: Include psympriv.h.
8739 (macho_sym_fns): Update.
8740 * m2-exp.y (yylex): Use lookup_symtab.
8741 * elfread.c: Include psympriv.h.
8742 (elf_sym_fns): Update.
8743 * dwarf2read.c: Include psympriv.h.
8744 * dbxread.c: Include psympriv.h.
8745 (aout_sym_fns): Update.
8746 * cp-support.c: Include psymtab.h.
8747 (read_in_psymtabs): Remove.
8748 (make_symbol_overload_list_qualified): Use
8749 expand_symtabs_for_function method.
8750 * coffread.c: Include psympriv.h.
8751 (coff_sym_fns): Update.
8752 * blockframe.c: Include psymtab.h.
8753 (find_pc_partial_function): Use find_pc_sect_symtab method.
8754 * ada-lang.h (ada_update_initial_language): Update.
8755 * ada-lang.c: Include psymtab.h.
8756 (ada_update_initial_language): Remove 'main_pst' argument.
8757 (ada_lookup_partial_symbol): Remove.
8758 (struct ada_psym_data): New type.
8759 (ada_add_psyms): New function.
8760 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8761 (struct add_partial_datum): New type.
8762 (ada_add_partial_symbol_completions): New function.
8763 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8764 (ada_exception_support_info_sniffer): Update.
8765 * Makefile.in (SFILES): Add psymtab.c.
8766 (COMMON_OBS): Add psymtab.o.
8767 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8768
7d8500b7
PM
87692010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8770
8771 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8772
c0cc3a76
SW
87732010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8774
8775 PR C++/11236:
8776 * cp-namespace.c (cp_add_using): Deleted.
8777 (cp_add_using_directive): Use obstack allocations.
8778 Merged the function cp_add_using into this one.
8779 Added 'struct obstack *' argument.
8780 (cp_scan_for_anonymous_namespaces): Updated.
8781 * cp-support.h: Updated.
8782 * dwarf2read.c (read_import_statement): Updated.
8783 (read_namespace): Updated.
8784
452fa064
CF
87852010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8786
8787 * windows-nat.c (cygwin_conv_path): Remove old macro.
8788
60e1c644
PA
87892010-03-10 Pedro Alves <pedro@codesourcery.com>
8790
8791 * breakpoint.c (condition_command): Handle watchpoint conditions.
8792 (is_hardware_watchpoint): Add comment.
8793 (is_watchpoint): New.
8794 (update_watchpoint): Don't reparse the watchpoint's condition
8795 unless necessary.
8796 (WP_IGNORE): New.
8797 (watchpoint_check): Use it.
8798 (bpstat_check_watchpoint): Handle it.
8799 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8800 conditions in a frame where it makes sense.
8801 (watch_command_1): Store the innermost block of the condition
8802 expression.
8803 (delete_breakpoint): Delete the watchpoint condition expression.
8804 * breakpoint.h (struct bp_location) <cond>: Update comment.
8805 (struct breakpoint): New field `cond_exp_valid_block'.
8806
af6b7be1
JB
88072010-03-09 Joel Brobecker <brobecker@adacore.com>
8808
8809 Adjust handling of Ada DIEs after dwarf2_physname patch.
8810 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8811
60c5c021
CF
88122010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8813 Pierre Muller <muller@ics.u-strasbg.fr>
8814
8815 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8816 from/to posix/win32.
8817 (windows_make_so): Use non-Cygwin 1.7 specific function.
8818 (windows_create_inferior): Make sure that cygallargs points to
8819 original args in non Cygwin 1.7. case.
8820
60a1502a
MS
88212010-03-09 Michael Snyder <msnyder@vmware.com>
8822
8823 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8824 after target_read_memory to get host byte order.
8825 (i386_process_record): Ditto.
8826
94af9270
KS
88272010-03-09 Keith Seitz <keiths@redhat.com>
8828
8829 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8830 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8831 print out const or volatile qualifiers, too.
8832 (c_type_print_args): Add parameters show_artificial and language.
8833 Skip artificial parameters when requested.
8834 Use the appropriate language printer.
8835 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8836 parameters and pass language_c.
8837 * dwarf2read.c (die_list): New file global.
8838 (struct partial_die_info): Update comments for name field.
8839 (pdi_needs_namespace): Renamed to ...
8840 (die_needs_namespace): ... this. Rewrite.
8841 (dwarf2_linkage_name): Remove.
8842 (add_partial_symbol): Do not predicate the call to
8843 partial_die_full_name based on pdi_needs_namespace.
8844 Remove call to cp_check_possible_namespace_symbols and associated
8845 outdated comments.
8846 (guess_structure_name): Do not inspect child subprogram DIEs.
8847 (dwarf2_fullname): Update comments.
8848 Use die_needs_namespace to assist in computing the name.
8849 (read_func_scope): Use dwarf2_name to get the DIE's name.
8850 Use dwarf2_physname to get the "linkage name" of the DIE.
8851 (dwarf2_add_member_field): Use dwarf2_physname instead of
8852 dwarf2_linkage_name.
8853 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8854 (determine_class): Remove.
8855 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8856 except Ada.
8857 (new_symbol): Unconditionally call dwarf2_name.
8858 Compute the "linkage name" using dwarf2_physname.
8859 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8860 When determining to scan for anonymous C++ namespaces, ignore
8861 the linkage name.
8862 (dwarf2_physname): New function.
8863 (dwarf2_full_name): Move content to new function and call
8864 that.
8865 (dwarf2_compute_name): "New" function.
8866 (_initialize_dwarf2_read): Initialize die_list.
8867 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8868 physname.
8869 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8870 without a demangled name.
8871 Print out type information for non-virtual methods.
c8d5aac9 8872 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8873 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8874 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8875 (decode_compound): Stop consuming at an open parenthesis.
8876 Keep template parameters.
8877 Keep any overload information.
8878 Keep keywords like "const".
8879 Remove paren_pointer.
8880 Move is_quoted check from set_flags to here.
8881 Remove #if 0 code from 2000. Ten years is long enough.
8882 (find_method): Before comparing symbol names, canonicalize the string
8883 from the user.
8884 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8885 (find_method_overload_end): New function.
8886 (set_flags): Remove.
c8d5aac9
L
8887 (decode_compound): Assume that parentheses are matched.
8888 It's a lot easier.
94af9270
KS
8889 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8890 to cplus_demangle.
8891 * linespec.c (decode_line_1): Keep important keywords like
8892 "const" and "volatile".
8893 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8894 * typeprint.h (c_type_print_args): Add declaration.
8895 * ui-file.c (do_ui_file_obsavestring): New function.
8896 (ui_file_obsavestring): New function.
8897 * ui-file.h (ui_file_obsavestring): Add declaration.
8898 * valops.c (find_overload_match): Resolve the object to
8899 a non-pointer type.
8900 If the object is a data member, search the object for the member
8901 and return with staticp set.
8902 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8903 Do not attempt to extract a function name from non-function types.
8904 If the extracted function name and the original name are the same,
8905 we don't have a C++ method.
8906
8d95cc3b
PA
8907 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8908 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8909
8910 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8911 and arguments from symbol lookups.
8912 * ax-gdb.c (gen_expr): Likewise.
8913 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8914 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8915 lookup_possible_namespace_symbol): Likewise.
8916 * cp-support.c (read_in_psymtabs): Likewise.
8917 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8918 * language.h (la_lookup_symbol_nonlocal): Likewise.
8919 * scm-valprint.c (scm_inferior_print): Likewise.
8920 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8921 * solib-svr.c (elf_lookup_lib): Likewise.
8922 * solib.c (show_auto_solib_add): Likewise.
8923 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8924 * symmisc.c (maintenance_check_symtabs): Likewise.
8925 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8926 lookup_symbol_aux_local, lookup_symbol_aux_block,
8927 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8928 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8929 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8930 basic_lookup_transparent_type, find_main_psymtab,
8931 lookup_block_symbol): Likewise.
8932 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8933 lookup_symbol_global, lookup_symbol_aux_block,
8934 lookup_symbol_partial_symbol, lookup_block_symbol,
8935 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8936
9cb74f47
PM
89372010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8938
8939 * python/python-internal.h: Include symtab.h.
8940
af6b7be1
JB
89412010-03-09 Joel Brobecker <brobecker@adacore.com>
8942 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8943
8944 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8945 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8946 indentation.
8947
bad56014
TT
89482010-03-08 Tom Tromey <tromey@redhat.com>
8949
8950 * breakpoint.c (breakpoint_1): Add "QUIT".
8951
08105857
PA
89522010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8953 Pedro Alves <pedro@codesourcery.com>
8954
8955 * solib.c (solib_find): Replace extension if
8956 solib_symbols_extension is set in the target gdbarch.
8957 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8958 solib_symbols_extension to "sym".
8959 * gdbarch.sh (solib_symbols_extension): New variable.
8960 (pstring): New function.
8961 * gdbarch.h, gdbarch.c: Regenerate.
8962
7c953934
TT
89632010-03-08 Tom Tromey <tromey@redhat.com>
8964
8965 PR cli/9591:
8966 * NEWS: Update.
8967 * utils.c: Include main.h.
8968 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8969 (defaulted_query): Use default answer if `batch_flag'.
8970 * main.h (batch_flag): Declare.
8971 * main.c (batch_flag): New global.
8972 (captured_main): Remove 'batch'. Update.
8973
bbd2783e
KB
89742010-03-08 Kevin Buettner <kevinb@redhat.com>
8975
8976 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8977 and Kevin Buettner:
8978
8979 * remote-mips.c (rockhopper_ops): New target_ops struct.
8980 (MON_ROCKHOPPER): New mips_monitor_type.
8981 (read_hex_value): New function.
8982 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8983 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8984 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8985 (rockhopper_open): New function.
8986 (mips_wait): Read the PC, FP and SP fields as strings. Use
8987 read_hex_value to parse them and mips_set_register to commit them.
8988 (mips_set_register): New function.
8989 (mips_fetch_registers): Do not cast register value to "unsigned"
8990 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8991 (mips_store_registers): Use a 'T' packet to set registers when
8992 using MON_ROCKHOPPER.
8993 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8994 and expect the total to be printed before the entry address.
8995 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8996
566f3d17
KB
89972010-03-08 Kevin Buettner <kevinb@redhat.com>
8998
8999 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9000 Change return value to int. Store value fetched in location
9001 addressed by `val'. Use function's return value as success
9002 or failure indicator. Adjust all callers.
9003
9c8ee2ab 90042010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
9005
9006 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9007
7155de5a
HZ
90082010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9009 Hui Zhu <teawater@gmail.com>
9010
9011 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9012 tmp_to_stopped_data_address.
9013 (record_open): Reset tmp_to_stopped_by_watchpoint and
9014 tmp_to_stopped_data_address.
9015 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9016 to_stopped_data_address.
9017
580879fc
HZ
90182010-03-08 Hui Zhu <teawater@gmail.com>
9019
9020 * i386-tdep.c (i386_process_record): Initialize regnum.
9021
b0fcb67f
JK
90222010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9023
9024 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9025 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9026
08597104
JB
90272010-03-08 Joel Brobecker <brobecker@adacore.com>
9028
9029 Memory error when reading wrong core file.
9030 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9031 errors while reading the inferior memory, and return zero if
9032 an exception was raised.
9033
425b824a
MS
90342010-03-07 Michael Snyder <msnyder@vmware.com>
9035
ec6dbf37
MS
9036 * record.c (record_restore): Rename tmpu8 to rectype.
9037
648d0c8b
MS
9038 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9039 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9040
9041 (i386_record_push): Rename local tmpulongest to addr.
9042
9043 (i386_process_record): Rename local tmpulongest to addr.
9044
9045 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9046 addr64.
955db0c0
MS
9047
9048 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 9049
10760264
JB
90502010-03-07 Joel Brobecker <brobecker@adacore.com>
9051
9052 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 9053 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 9054
b3c613f2
CF
90552010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9056
9057 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9058 block. Define helper macros to reduce ifdefs in code.
9059 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9060 size. Call unadorned GetModuleFileNameEx rather than
9061 GetModuleFileNameEx*.
9062 (windows_make_so): Use __PMAX to denote maximum buffer size and
9063 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9064 appropriate.
9065 (get_image_name): Use __PMAX to denote maximum buffer size.
9066 (handle_load_dll): Likewise.
9067 (windows_pid_to_exec_file): Likewise.
9068 (windows_create_inferior): Add many accommodations for older Cygwin and
9069 non-Cygwin.
9070 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9071 __USEWIDE conditional.
9072 (bad_GetModuleFileNameExA): Likewise.
9073 (_initialize_loadable): Just use real function names without the dyn_
9074 part since they are defined earlier.
9075
f870a310
TT
90762010-03-05 Corinna Vinschen <vinschen@redhat.com>
9077 Tom Tromey <tromey@redhat.com>
9078
9079 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9080 (parse_escape): Likewise.
9081 * python/py-utils.c (unicode_to_target_string): Update.
9082 (unicode_to_target_python_string): Update.
9083 (target_string_to_unicode): Update.
9084 * printcmd.c (printf_command): Update.
9085 * p-exp.y (yylex): Update.
9086 * objc-exp.y (yylex): Update.
9087 * mi/mi-parse.c: Include charset.h.
9088 (mi_parse_escape): New function.
9089 (mi_parse_argv): Use it.
9090 * jv-exp.y (yylex): Update.
9091 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9092 function.
9093 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9094 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9095 * gdbarch.c: Rebuild.
9096 * gdbarch.h: Rebuild.
9097 * defs.h (parse_escape): Update.
9098 * cli/cli-setshow.c: Include arch-utils.h.
9099 (do_setshow_command): Update.
9100 * cli/cli-cmds.c (echo_command): Update.
9101 * charset.h (target_charset, target_wide_charset): Update.
9102 * charset.c: Include arch-utils.h.
9103 (target_charset_name): Default to "auto".
9104 (target_wide_charset_name): Likewise.
9105 (show_target_charset_name): Handle "auto".
9106 (show_target_wide_charset_name): Likewise.
9107 (be_le_arch): New global.
9108 (set_be_le_names): Add 'gdbarch' argument.
9109 (validate): Likewise. Don't call set_be_le_names.
9110 (set_charset_sfunc, set_host_charset_sfunc)
9111 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9112 Update.
9113 (target_charset): Add 'gdbarch' argument.
9114 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9115 (auto_target_charset_name): New global.
9116 (default_auto_charset, default_auto_wide_charset): New functions.
9117 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9118 for target charsets. Copy result of nl_langinfo. Use GetACP if
9119 USE_WIN32API.
9120 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9121 remove 'byte_order' argument. Update.
9122 (classify_type): Likewise.
9123 (c_emit_char): Update.
9124 (c_printchar): Update.
9125 (c_printstr): Update.
9126 (c_get_string): Update.
9127 (evaluate_subexp_c): Update.
9128 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9129 Declare.
9130 * python/python.c (gdbpy_target_charset): New function.
9131 (gdbpy_target_wide_charset): Likewise.
9132 (GdbMethods): Update.
9133 * NEWS: Update.
9134
4e7386b0
UW
91352010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9136
9137 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9138 off high address bits.
9139
aab48ede
UW
91402010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9141
9142 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9143 address as UnsignedLongLong, not LongLong.
9144
8eeafb51 91452010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 9146 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
9147
9148 * remote-mips.c (gdbthread.h): Include.
9149 (remote_mips_ptid): Declare.
9150 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9151 (common_open): Set inferior_ptid, add it as an inferior, and
9152 as a thread too. Delete FIXME comment regarding start_remote().
9153 (mips_close): Invoke generic_mourn_inferior().
9154 (mips_kill): Make sure that target_mourn_inferior is invoked.
9155 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9156 it's now invoked from mips_close().
9157 (mips_load): Don't null out inferior_ptid. Don't call
9158 clear_symtab_users().
9159 (mips_thread_alive, mips_pid_to_str): New functions.
9160 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9161 to_thread_alive and to_pid_to_str operations.
9162
ae411497
TT
91632010-03-04 Tom Tromey <tromey@redhat.com>
9164
9165 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9166 in DWARF 3 and later.
9167 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9168
0e0b460e
KS
91692010-03-04 Keith Seitz <keiths@redhat.com>
9170
9171 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9172 If the filename portion of the linespec was quoted, recheck the
9173 remainder for additional quoting.
9174 (locate_first_half): Skip over completer chars, too.
9175
1b93ff13
TT
91762010-03-04 Tom Tromey <tromey@redhat.com>
9177
9178 * printcmd.c (printf_command): Pass dummy argument to
9179 printf_filtered.
9180
fc36e839
DE
91812010-03-04 Doug Evans <dje@google.com>
9182
111f853c
DE
9183 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9184 unwound_fp.
9185
fc36e839
DE
9186 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9187
c7437ca6
PA
91882010-03-04 Pedro Alves <pedro@codesourcery.com>
9189
9190 * breakpoint.c (update_watchpoint): Create a sentinel location if
9191 the software watchpoint isn't watching any memory.
9192 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9193
58dadb1b
PA
91942010-03-04 Pedro Alves <pedro@codesourcery.com>
9195
9196 * utils.c (fputs_maybe_filtered): Check if there's already a top
9197 level interpreter before dereferencing it. If there isn't one,
9198 don't paginate either.
9199
50e98be4
DJ
92002010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9201
9202 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9203 the state right when single stepping.
9204 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9205 Get the next PC along with the instruction state.
9206 (thumb_get_next_pc): Remove.
9207 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9208
2e3ceee9
HZ
92092010-03-04 Hui Zhu <teawater@gmail.com>
9210
9211 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9212
390a8aca
PA
92132010-03-03 Pedro Alves <pedro@codesourcery.com>
9214
9215 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9216 top level interpreter is MI.
9217
9355b391
SS
92182010-03-03 Stan Shebs <stan@codesourcery.com>
9219
9220 * remote.c (remote_download_tracepoint): Iterate over locations.
9221 * tracepoint.c (validate_actionline): Ditto.
9222 (encode_actions): Add location argument.
9223 (trace_dump_command): Check all locations to see if stepping
9224 frame.
390a8aca 9225
8685c86f
L
92262010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9227 Eli Zaretskii <eliz@gnu.org>
9228
9229 * NEWS: Add X86 general purpose registers section.
9230
e8f781e2
TT
92312010-03-03 Tom Tromey <tromey@redhat.com>
9232
9233 PR mi/11098:
9234 * varobj.c (install_new_value): Handle case where new print_value
9235 is NULL.
9236
a0e0ef55
TT
92372010-03-03 Dainis Jonitis <jonitis@gmail.com>
9238
9239 PR gdb/11345:
9240 * printcmd.c (printf_command): Print end of format string using
9241 printf_filtered.
9242
a58d7472
TT
92432010-03-02 Tom Tromey <tromey@redhat.com>
9244
9245 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9246 * defs.h (read_command_lines_1): Add missing 'void'.
9247 * cli/cli-script.c (recurse_read_control_structure): Add missing
9248 'void'.
9249 (read_next_line): Likewise.
9250 (read_command_lines_1): Likewise.
9251
ce50d78b
UW
92522010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9253
9254 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9255 store backchain as part of prologue.
9256
7e9af34a
DJ
92572010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9258
9259 * progspace.c (update_address_spaces): Update inferior address spaces
9260 also.
9261
01637564
DE
92622010-03-02 Doug Evans <dje@google.com>
9263
9264 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9265 lowpc,highpc args to addrmap_set_empty.
9266
1ba53b71
L
92672010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9268
9269 * amd64-tdep.c (amd64_byte_names): New.
9270 (amd64_word_names): Likewise.
9271 (amd64_dword_names): Likewise.
9272 (amd64_pseudo_register_name): Likewise.
9273 (amd64_pseudo_register_read): Likewise.
9274 (amd64_pseudo_register_write): Likewise.
9275 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9276 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9277 set_gdbarch_pseudo_register_write and
9278 set_tdesc_pseudo_register_name. Don't call
9279 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9280
9281 * i386-tdep.c (i386_num_mmx_regs): Removed.
9282 (i386_num_pseudo_regs): Likewise.
9283 (i386_byte_names): New.
9284 (i386_word_names): Likewise.
9285 (i386_byte_regnum_p): Likewise.
9286 (i386_word_regnum_p): Likewise.
9287 (i386_mmx_regnum_p): Updated.
9288 (i386_pseudo_register_name): Make it global. Handle byte and
9289 word pseudo-registers.
9290 (i386_pseudo_register_read): Likewise.
9291 (i386_pseudo_register_write): Likewise.
9292 (i386_pseudo_register_type): Handle byte, word and dword
9293 pseudo-registers
9294 (i386_register_reggroup_p): Don't include pseudo
9295 registers, except for MXX, in any register groups. Don't
9296 include pseudo byte, word, dword registers in general_reggroup.
9297 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9298 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9299 pseudo-registers after word pseudo-registers. Call
9300 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9301
9302 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9303 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9304 eax_regnum.
9305 (i386_byte_regnum_p): New.
9306 (i386_word_regnum_p): Likewise.
9307 (i386_dword_regnum_p): Likewise.
9308 (i386_pseudo_register_name): Likewise.
9309 (i386_pseudo_register_read): Likewise.
9310 (i386_pseudo_register_write): Likewise.
9311
a6f5ef51
L
93122010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9313
9314 * target-descriptions.c (tdesc_type): Remove
9315 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9316 (tdesc_predefined_types): Likewise.
9317 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9318 if flag name is empty.
9319 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9320
9321 * features/i386/32bit-core.xml: Define i386_eflags.
9322 * features/i386/64bit-core.xml: Likewise.
9323
9324 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9325 * features/i386/64bit-sse.xml: Likewise.
9326
9327 * features/i386/amd64-linux.c: Regenerated.
9328 * features/i386/amd64.c: Likewise.
9329 * features/i386/i386-linux.c: Likewise.
9330 * features/i386/i386.c: Likewise.
9331
f5dff777
DJ
93322010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9333
9334 * gdbtypes.c (append_composite_type_field_raw): New.
9335 (append_composite_type_field_aligned): Use the new function.
9336 * gdbtypes.h (append_composite_type_field_raw): Declare.
9337 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9338 (struct tdesc_type_flag): New type.
9339 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9340 kind. Add size to u.u. Add u.f for flags.
9341 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9342 (tdesc_free_type): Likewise.
9343 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9344 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9345 (tdesc_add_bitfield, tdesc_add_flag): New.
9346 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9347 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9348 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9349 current_type. Add current_type_size and current_type_is_flags.
9350 (tdesc_start_union): Clear the new fields.
9351 (tdesc_start_struct, tdesc_start_flags): New.
9352 (tdesc_start_field): Handle struct fields, including bitfields.
9353 (field_attributes): Make type optional. Add start and end.
9354 (union_children): Rename to struct_union_children.
9355 (union_attributes): Rename to struct_union_attributes. Add optional
9356 size.
9357 (flags_attributes): New.
9358 (feature_children): Add struct and flags.
9359 * features/gdb-target.dtd: Add flags and struct to features.
9360 Make field type optional. Add field start and end.
9361
90884b2b
L
93622010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9363
9364 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9365 (amd64_linux_read_description): Likewise.
9366 (_initialize_amd64_linux_nat): Set to_read_description to
9367 amd64_linux_read_description.
9368
9369 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9370 (amd64_linux_register_name): Removed.
9371 (amd64_linux_register_type): Likewise.
9372 (amd64_linux_core_read_description): New.
9373 (amd64_linux_init_abi): Set target description to
9374 tdesc_amd64_linux if needed. Support orig_rax in target
9375 description. Don't call set_gdbarch_register_name nor
9376 set_gdbarch_register_type. Call
9377 set_gdbarch_core_read_description.
9378 (_initialize_amd64_linux_tdep): Call
9379 initialize_tdesc_amd64_linux.
9380
9381 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9382
9383 * amd64-tdep.c: Include "features/i386/amd64.c".
9384 (amd64_register_names): Removed.
9385 (amd64_register_name): Likewise.
9386 (amd64_register_type): Likewise.
9387 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 9388 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
9389 set_gdbarch_register_name nor set_gdbarch_register_type.
9390 (_initialize_amd64_tdep): New.
9391
9392 * i386-linux-nat.c (i386_linux_read_description): New.
9393 (_initialize_i386_linux_nat): Set to_read_description to
9394 i386_linux_read_description.
9395
9396 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9397 (i386_linux_register_name): Removed.
9398 (i386_linux_core_read_description): New.
9399 (i386_linux_read_description): Likewise.
9400 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9401 Set target description to tdesc_i386_linux if needed. Support
9402 orig_eax. Set register_reggroup_p. Call
9403 set_gdbarch_core_read_description.
9404 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9405
9406 * i386-linux-tdep.h (tdesc_i386_linux): New.
9407
9408 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9409 with I387_NUM_REGS.
9410
9411 * i386-tdep.c: Include "features/i386/i386.c".
9412 (i386_register_names): Make it const.
9413 (i386_mmx_names): Likewise.
9414 (i386_num_register_names): Removed.
9415 (i386_register_name): Likewise.
9416 (i386_eflags_type): Likewise.
9417 (i386_mxcsr_type): Likewise.
9418 (i386_sse_type): Likewise.
9419 (i386_register_type): Likewise.
9420 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9421 (i386_pseudo_register_name): New.
9422 (i386_pseudo_register_type): Likewise.
9423 (i386_mmx_type): Make it static.
9424 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9425 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9426 call set_gdbarch_register_name nor set_gdbarch_register_type.
9427 Set register_reggroup_p. Set target description to tdesc_i386
9428 if needed. Call set_tdesc_pseudo_register_type,
9429 set_tdesc_pseudo_register_name and tdesc_use_registers.
9430 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9431 initialize_tdesc_x86_64.
9432
9433 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9434 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9435 register_names, tdesc and register_reggroup_p.
9436 (I386_NUM_FREGS): Removed.
9437 (i386_eflags_type): Likewise.
9438 (i386_mxcsr_type): Likewise.
9439 (i386_mmx_type): Likewise.
9440 (i386_sse_type): Likewise.
9441 (i386_register_name): Likewise.
9442 (i386_regnum): Add I386_MXCSR_REGNUM.
9443 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9444
9445 * i387-tdep.h (I387_NUM_REGS): New.
9446
9447 * regformats/i386/i386-linux.dat: Generated.
9448 * regformats/i386/i386.dat: Likewise.
9449 * regformats/i386/amd64-linux.dat: Likewise.
9450 * regformats/i386/amd64.dat: Likewise.
9451
9452 * regformats/reg-i386-linux.dat: Removed.
9453 * regformats/reg-i386.dat: Likewise.
9454 * regformats/reg-x86-64-linux.dat: Likewise.
9455 * regformats/reg-x86-64.dat: Likewise.
9456
d0d0ab16
CV
94572010-03-01 Corinna Vinschen <vinschen@redhat.com>
9458
9459 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9460 cygwin_conv_path API rather than the deprecated
9461 cygwin_conv_to_full_posix_path.
9462 * windows-nat.c:
9463 (GetModuleFileNameExA): Undefine for Cygwin.
9464 (GetModuleFileNameExW): Define for Cygwin.
9465 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9466 Call GetModuleFileNameExW and convert path to POSIX using
9467 cygwin_conv_path.
9468 (windows_make_so): Always define p. Drop unused variable m.
9469 Don't use Win32 functions to check file existance, rather use
9470 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9471 Use canonicalize_file_name to get full path.
9472 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9473 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9474 use correct target buffer size in call to WideCharToMultiByte.
9475 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9476 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9477 (windows_create_inferior): Convert all paths and arguments to wchar_t
9478 and use CreateProcessW on Cygwin.
9479 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9480 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9481 (bad_GetModuleFileNameExW): Define for Cygwin.
9482 (_initialize_loadable): Load GetModuleFileNameExW into
9483 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9484
dc00d89f
PM
94852010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9486
9487 PR python/11036
9488 * python/py-frame.c (frapy_read_var): Add block argument and logic
9489 to cope with user provided blocks.
9490
0e095b7e
JK
94912010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9492
9493 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9494 New comment.
9495
2f9e05b4
CV
94962010-02-28 Corinna Vinschen <vinschen@redhat.com>
9497
9498 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9499 (COMMON_OBS): ... to here since it's used unconditionally.
9500 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9501 (SFILES): To here.
9502
eb195664
DD
95032010-02-26 David Daney <ddaney@caviumnetworks.com>
9504
9505 * mips-linux-tdep.c: Update struct sigframe comments.
9506 (SIGFRAME_CODE_OFFSET): Delete macro.
9507 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9508 this_frame's sp.
9509 (mips_linux_n32n64_sigframe_init): Same.
9510
97b0f3e2
KB
95112010-02-26 Kevin Buettner <kevinb@redhat.com>
9512
9513 * remote-mips.c (mips_load): Don't use pseudo-register when
9514 invalidating regcache.
9515
4069ebbe
DJ
95162010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9517
9518 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9519
05071a4d
PA
95202010-02-26 Pedro Alves <pedro@codesourcery.com>
9521
9522 * NEWS: Add "New targets" section, and mention ARM Symbian
9523 support.
9524
6063c216
UW
95252010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9526
9527 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9528 add ADDR_SIZE member.
9529 (allocate_piece_closure): Update.
9530 (copy_pieced_value_closure): Likewise.
9531 (dwarf2_evaluate_loc_desc): Likewise.
9532 (read_pieced_value): Use DWARF address size instead of
9533 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9534
5107b149 95352010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 9536 Tom Tromey <tromey@redhat.com>
5107b149
PM
9537
9538 * python/py-type.c (typy_lookup_typename): Add in block argument.
9539 If provided restrict lookup to specified blocks.
9540 (gdbpy_lookup_type): Likewise.
9541 (typy_lookup_type): Likewise.
9542
78664fa3 95432010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 9544
78664fa3
PA
9545 Symbian config
9546
9547 gdb/
9548 * arm-symbian-tdep.c: New.
9549 * configure.tgt (arm*-*-symbianelf*): New target.
9550 (*-*-symbianelf*): New OS.
9551 * osabi.c (gdb_osabi_names): Add Symbian.
9552 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9553 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9554 (ALLDEPFILES): Add arm-symbian-tdep.c.
9555
eb73e134
DJ
95562010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9557
9558 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9559
46ef47e5
PA
95602010-02-24 Pedro Alves <pedro@codesourcery.com>
9561
9562 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9563
f3e9a817 95642010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9565 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9566 Thiago Jung Bauermann <bauerman@br.ibm.com>
9567
9568 * python/python.c (_initialize_python): Call
9569 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9570 gdbpy_initialize_blocks.
9571 * python/python-internal.h: Declare struct symbol, block and
9572 symtab_and_line. Declare block_object_type and
9573 symbol_object_type
9574 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9575 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9576 (symbol_to_symbol_object, block_to_block_object)
9577 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9578 (gdbpy_initialize_blocks ): Declare.
9579 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9580 (frapy_select): Add methods.
9581 (frapy_read_var): Add symbol branch.
9582 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9583 py-block.
9584 (SUBDIR_PYTHON_SRCS): Likewise.
9585 (py-symbol.o): New rule.
9586 (py-symtab.o): Likewise.
9587 (py-block.o): Likewise.
9588 * python/py-symbol.c: New file.
9589 * python/py-symtab.c: Likewise.
9590 * python/py-block.c: Likewise.
9591
24291992
PA
95922010-02-24 Pedro Alves <pedro@codesourcery.com>
9593
9594 PR gdb/11321
9595
9596 * inferior.h (prepare_for_detach): Declare.
9597 (struct inferior) <detaching>: New field.
9598 * infrun.c (prepare_for_detach): New.
9599 (handle_inferior_event) <random signal>: Don't stop if detaching.
9600 * target.c (target_detach): Call prepare_for_detach.
9601
fc1cf338
PA
96022010-02-24 Pedro Alves <pedro@codesourcery.com>
9603
9604 Per-process displaced stepping queue.
9605
9606 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9607 (displaced_step_gdbarch, displaced_step_closure,
9608 (displaced_step_original, displaced_step_copy): Move globals to
9609 this...
9610 (struct displaced_step_inferior_state): ... new structure.
9611 (displaced_step_inferior_states): New global.
9612 (get_displaced_stepping_state, add_displaced_stepping_state)
9613 (remove_displaced_stepping_state, infrun_inferior_exit): New
9614 functions.
9615 (displaced_step_clear): Add displaced_step_inferior_state
9616 parameter, and adjust to handle it.
9617 (displaced_step_clear_cleanup): Parameter is now a
9618 displaced_step_inferior_state. Adjust.
9619 (displaced_step_prepare): Adjust.
9620 (displaced_step_fixup, displaced_step_fixup)
9621 (infrun_thread_ptid_changed, resume): Adjust.
9622 (init_wait_for_inferior): Don't call displaced_step_clear.
9623 (infrun_thread_stop_requested): Rewrite.
9624 (_initialize_infrun): Install infrun_inferior_exit as
9625 inferior_exit observer.
9626
0723dbf5
PA
96272010-02-24 Pedro Alves <pedro@codesourcery.com>
9628
9629 * inferior.h (ptid_match): Declare.
9630 * infrun.c (ptid_match): New.
9631 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9632 (handle_notification): Add debug output.
9633 * linux-nat.c (ptid_match): Delete.
9634
09de9781
DM
96352010-02-24 David S. Miller <davem@davemloft.net>
9636
9637 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9638 * syscalls/sparc-linux.xml: New.
9639 * syscalls/sparc64-linux.xml: New.
9640 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9641 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9642 (sparc32_linux_get_syscall_number): New function.
9643 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9644 syscall number fetcher.
9645 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9646 (sparc64_linux_get_syscall_number): New function.
9647 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9648 syscall number fetcher.
9649
a79b8f6e
VP
96502010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9651
9652 Multiexec MI
9653
9654 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9655 * inferior.c (add_inferior_silent): Notify inferior_added
9656 observer.
9657 (delete_inferior_1): Notify inferior_removed observer.
9658 (exit_inferior_1): Pass inferior, not pid, to observer.
9659 (inferior_appeared): Likewise.
9660 (add_inferior_with_spaces): New.
9661 (add_inferior_command): Use the above.
9662 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9663 Declare.
9664
9665 * inflow.c (inflow_inferior_exit): Likewise.
9666 * jit.c (jit_inferior_exit_hook): Likewise.
9667
9668 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9669 remove-inferior.
9670 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9671 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9672 (report_initial_inferior): New.
9673 (mi_inferior_removed): Register the above. Make sure
9674 inferior_added observer is called on the first inferior.
9675 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9676 inferior number, not pid.
9677 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9678 affected.
9679 * mi/mi-main.c (current_context): New.
9680 (proceed_thread_callback): Use typed closure.
9681 Proceed everything if pid is 0. Most implementation split into
9682 (proceed_thread): ... this.
9683 (run_one_inferior): New.
9684 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9685 Adjust for multiexec behaviour.
9686 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9687 (mi_cmd_execute): Handle the 'thread-group' option here.
9688 Do some extra checks.
9689 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9690 options.
9691 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9692
115d30f9
VP
96932010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9694
9695 Make -exec-run a proper MI commands.
9696
9697 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9698 * mi/mi-cmds.c (mi_cmds): Adjust.
9699 * mi/mi-main.c (mi_cmd_exec_run): New.
9700
06cd862c
PA
97012010-02-24 Pedro Alves <pedro@codesourcery.com>
9702 Stan Shebs <stan@codesourcery.com>
9703
9704 * tracepoint.h (set_traceframe_number)
9705 (cleanup_restore_current_traceframe): Declare.
9706 * tracepoint.c (set_traceframe_number): New.
9707 (struct current_traceframe_cleanup): New.
9708 (do_restore_current_traceframe_cleanup)
9709 (restore_current_traceframe_cleanup_dtor)
9710 (make_cleanup_restore_current_traceframe): New.
9711 * infrun.c: Include tracepoint.h.
9712 (fetch_inferior_event): Switch out and in of tfind mode.
9713
ab92d69b
PA
97142010-02-24 Pedro Alves <pedro@codesourcery.com>
9715
9716 * breakpoint.c (breakpoint_init_inferior): Also delete
9717 bp_shlib_event breakpoints.
9718 * solib-frv.c (enable_break): Remove call to
9719 remove_solib_event_breakpoints.
9720 * solib-svr4.c (enable_break): Ditto.
9721 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9722 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9723 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9724 * solib-spu.c (spu_enable_break): Ditto.
9725
e707a91d
PA
97262010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9727
9728 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9729
cfce2ea2
PA
97302010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9731
9732 * varobj.c (varobj_update): Avoid non-constants in initializers.
9733
05566b3b
TT
97342010-02-23 Tom Tromey <tromey@redhat.com>
9735
9736 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9737 handle big-endian values.
9738 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9739
85d721b8
PA
97402010-02-22 Pedro Alves <pedro@codesourcery.com>
9741
9742 PR9605
9743
9744 gdb/
9745 * breakpoint.c (insert_bp_location): If inserting the read
9746 watchpoint failed, fallback to an access watchpoint.
9747 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9748 if the value changed, if not watching the same memory for writes.
9749 (watchpoint_locations_match): Add comment.
9750 (update_global_location_list): Copy the location's watchpoint type.
9751 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9752 handle read watchpoints here.
9753 (i386_insert_watchpoint): Read watchpoints aren't supported.
9754 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9755 packets.
9756 * target.h (target_insert_watchpoint): Update description.
9757
48ea67a7
TT
97582010-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9761 * m2-typeprint.c (m2_print_type): Update.
9762 * gdbtypes.c (recursive_dump_type): Update.
9763 (copy_type_recursive): Update.
9764 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9765 (c_type_print_base): Update.
9766 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9767 Remove.
9768 (struct cplus_struct_type) <ntemplate_args>: Remove.
9769 <struct template_arg>: Remove.
9770 <is_dynamic>: Move earlier.
9771 (TYPE_TEMPLATE_ARGS): Remove.
9772 (TYPE_NTEMPLATE_ARGS): Remove.
9773 (TYPE_TEMPLATE_ARG): Remove.
9774
48e32051
TT
97752010-02-19 Tom Tromey <tromey@redhat.com>
9776
9777 PR c++/8693, PR c++/9496:
9778 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9779 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9780 write_dollar_variable. Don't try to classify NAME tokens.
9781 (token_and_value): New type.
9782 (token_fifo, popping, name_obstack): New globals.
9783 (classify_name): New function.
9784 (classify_inner_name): Likewise.
9785 (yylex): Likewise.
9786 (VARIABLE): Now has type sval.
9787 (exp : VARIABLE): Call write_dollar_variable.
9788 (qualified_name): Use TYPENAME, not typebase. Add production for
9789 multiple "::" instances.
9790 (variable): Use name_not_typename.
9791 (qualified_type): Remove.
9792 (typebase): Update.
9793
672d9c23
JK
97942010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9795
9796 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9797 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9798 found by bfd_get_section_by_name.
9799 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9800
bfbf3774
JB
98012010-02-19 Joel Brobecker <brobecker@adacore.com>
9802
9803 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9804 7.0 section" into "Changes in 7.1".
9805
6756b09b 98062010-02-19 Joel Brobecker <brobecker@adacore.com>
9807
9808 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9809 * version.in: Bump version to 7.1.50.20100219-cvs.
9810
202b96c1
PA
98112010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9812
9813 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9814 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9815
de2e5182
TT
98162010-02-17 Tom Tromey <tromey@redhat.com>
9817
9818 * NEWS: Add Python API Improvements section.
9819
7280022e
DJ
98202010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9821
9822 * NEWS: Correct typo.
9823
6f451e5e
TT
98242010-02-17 Tom Tromey <tromey@redhat.com>
9825
9826 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9827
012836ea
JK
98282010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9829
9830 * symfile.c (build_section_addr_info_from_objfile): Include sections
9831 only if they are SEC_ALLOC or SEC_LOAD.
9832
d182d057
L
98332010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9834
9835 PR shlibs/11293
9836 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9837 of ULONGEST for address size.
9838
4eef138c
TT
98392010-02-17 Tom Tromey <tromey@redhat.com>
9840
9841 * NEWS: Add C++ improvements section.
9842
548a926a
UW
98432010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9844
9845 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9846 PyThreadState_Swap): Avoid "statement with no effect" warning.
9847
ad3a0e5b
JK
98482010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9849
9850 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9851 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9852
243e2c5d 98532010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9854 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9855
9856 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9857 gdb_assert. Fix info->size for SIG prologue.
9858
275f2e57
DJ
98592010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9860
9861 * infcmd.c (show_inferior_tty_command): Check for NULL.
9862 Correct output message.
9863
791dfb64
DJ
98642010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9865
9866 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9867 FUNCTION contains parentheses. Improve removal of a trailing
9868 single quote.
9869
14d1346b
DJ
98702010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9871
9872 * gcore.c (do_bfd_delete_cleanup): New function.
9873 (gcore_command): Use it. Discard the cleanup after success.
9874 (gcore_copy_callback): Delete dead code.
9875
e76ab67f
DJ
98762010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9877
9878 * symfile.c (addr_info_make_relative): Always use
9879 find_lowest_section.
9880
71dee663
SW
98812010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9882
9883 * NEWS: Added entry for namespace fixes.
9884
a9854bd5
TT
98852010-02-15 Tom Tromey <tromey@redhat.com>
9886
9887 * dwarf2read.c (guess_structure_name): Allocate name on the
9888 objfile obstack.
9889
fd9e29b5
TT
98902010-02-15 Tom Tromey <tromey@redhat.com>
9891
9892 * c-typeprint.c (c_type_print_base): Reverse order of test.
9893
4e1fc9c9
JK
98942010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9895
9896 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9897 initialize it from ELF BFD. Extend the prelink condition by it.
9898
74164c56
JK
98992010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9900
9901 * defs.h (parse_pid_to_attach): New.
9902 * utils.c (parse_pid_to_attach): New.
9903 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9904 * gnu-nat.c (gnu_attach): Likewise.
9905 * nto-procfs.c (procfs_attach): Likewise.
9906 * procfs.c (procfs_attach): Likewise.
9907 * windows-nat.c (windows_attach): Likewise.
9908 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9909 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9910 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9911 check.
9912
bf6adea8
MM
99132010-02-14 Masaki Muranaka <monaka@monami-software.com>
9914
9915 * MAINTAINERS: Add myself for write after approval privileges.
9916
28f34a8f
JK
99172010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9918
9919 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9920 block.
9921
701ed6dc
JK
99222010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9923
9924 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9925 only if INFO_VERBOSE.
9926
e5829bee
MS
99272010-02-12 Tomas Holmberg <th@virtutech.com>
9928
9929 * mi/mi-main.c: Added the --reverse flag to the following MI
9930 commands: exec-continue, exec-finish, exec-next, exec-step,
9931 exec-next-instruction, exec-step-instruction. This is to
9932 support reverse execution over the MI interface to gdb.
9933
081dfbf7
PA
99342010-02-12 Pedro Alves <pedro@codesourcery.com>
9935
9936 * tracepoint.c (_initialize_tracepoint): Specify that the address
9937 range of `tfind outsize' is exclusive, and that the address range
9938 of `tfind range' is inclusive, in the commands' help strings.
9939
ecc13e53
JB
99402010-02-12 Joel Brobecker <brobecker@adacore.com>
9941
9942 Spurious "dll not found" error messages on x64-windows.
9943 * windows-nat.c: Add include of complaints.h.
9944 (handle_unload_dll): Change dll-not-found error into a complaint.
9945
15c3d785
PA
99462010-02-12 Pedro Alves <pedro@codesourcery.com>
9947
9948 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9949 bp_tracepoint and bp_fast_tracepoint, not
9950 bp_loc_software_breakpoint.
9951 (update_global_location_list): Tracepoints are never duplicates of
9952 anything.
9953
fd9b8c24
PA
99542010-02-12 Pedro Alves <pedro@codesourcery.com>
9955
9956 * breakpoint.c (break_command_really): Change return type to int.
9957 Return false if no breakpoint was created, true otherwise.
9958 (trace_command): Don't set the tracepoint count if no tracepoint
9959 was created.
9960 (ftrace_command): Ditto.
9961 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9962 created in the breakpoints table.
9963
5c0d192f
JK
99642010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9965 Ulrich Weigand <uweigand@de.ibm.com>
9966
9967 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9968
5d5b640e
PA
99692010-02-11 Pedro Alves <pedro@codesourcery.com>
9970
9971 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9972 the offset value isn't of integral type.
9973
e5a0a904
JK
99742010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9975
9976 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9977 New.
9978
be636754
PA
99792010-02-11 Pedro Alves <pedro@codesourcery.com>
9980
9981 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9982 non-subscriptable types.
9983 * valarith.c (binop_types_user_defined_p): New, abstracted out
9984 from ...
9985 (binop_user_defined_p): ... this.
9986 * value.h (binop_types_user_defined_p): Declare.
9987
10ef8d6a
PA
99882010-02-11 Pedro Alves <pedro@codesourcery.com>
9989
9990 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9991 Merge uploaded TSVs before merging uploaded tracepoints.
9992
b1028c8e
PA
99932010-02-11 Pedro Alves <pedro@codesourcery.com>
9994
9995 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9996
7a93fb82 99972010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9998
7a93fb82
VP
9999 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10000 whitespace character after a dot in comment.
10001 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10002 Likewise.
10003 (list_args_or_locals): For the 'all' (that is
10004 -stack-list-variables) case, always output list of tuples.
10005 Output 'arg' field if variable is argument.
84d90c10 10006
92981e24
TT
100072010-02-10 Tom Tromey <tromey@redhat.com>
10008
10009 * parser-defs.h (parser_debug): Declare.
10010 * parse.c (_initialize_parse): Install "debug parser" set/show
10011 command.
10012 (parser_debug): New global.
10013 (show_parserdebug): New function.
10014 * c-exp.y (c_parse): Set yydebug.
10015
9fd3625f
L
100162010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10017
10018 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10019 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10020 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10021 i386_mxcsr.
10022 (tdesc_find_type): New.
10023 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10024 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10025
10026 * target-descriptions.h (tdesc_find_type): New.
10027
2fe842e5
MS
100282010-02-10 Michael Snyder <msnyder@vmware.com>
10029
10030 * gdb-gdb.py: Comment fix.
10031
f18b4cab
TG
100322010-02-09 Tristan Gingold <gingold@adacore.com>
10033
10034 * machoread.c (macho_symfile_relocate): New function.
10035 (macho_sym_fns): Use macho_symfile_relocate instead of
10036 default_symfile_relocate.
10037 (macho_oso_data): New type.
10038 (current_oso): New variable.
10039 (macho_add_oso_symfile): Do not compute section_addr_info, but
10040 instead set vma of sections.
10041 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10042 Set and clear current_oso.
10043
31dbc1c5
JB
100442010-02-09 Joel Brobecker <brobecker@adacore.com>
10045
10046 Wrong type description for tagged type parameter.
10047 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10048 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10049 reference to a tagged type.
10050
399f313b
TG
100512010-02-09 Tristan Gingold <gingold@adacore.com>
10052
10053 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10054 brothers of the parent.
10055
714f19d5
TT
100562010-02-08 Tom Tromey <tromey@redhat.com>
10057
10058 PR c++/8017:
10059 * value.h: Update.
10060 * valops.c (search_struct_field): Make 'name' const.
10061 (search_struct_method): Likewise.
10062 (find_method_list): Make 'method' const.
10063 (value_struct_elt): Make 'name' and 'err' const.
10064 (value_find_oload_method_list): Make 'method' const.
10065 (find_overload_match): Make 'name' const.
10066 * eval.c (evaluate_subexp_standard): New locals function,
10067 function_name.
10068 <OP_FUNCALL>: Handle OP_SCOPE specially.
10069
de0a0249
UW
100702010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10071
10072 * infrun.c (handle_inferior_event): Do not look up regcache
10073 for exited processes.
10074
8d95cc3b 100752010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
10076
10077 PR gdb/10728
10078 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 10079 warn if found, and assume length = 1.
83b10087 10080
99903ae3
CM
100812010-02-08 Chris Moller <cmoller@redhat.com>
10082
10083 PR gdb/9067
10084 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 10085 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 10086
e3e9f5a2
PA
100872010-02-08 Pedro Alves <pedro@codesourcery.com>
10088
10089 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10090 resumed LWPs as resumed.
10091 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10092 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10093 of throwing an internal error. If an LWP of a process we're not
10094 waiting for reports a signal, don't force collecting a SIGSTOP,
10095 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10096 go through all LWPs cancelling breakpoints in non-stop mode.
10097 (resume_stopped_resumed_lwps): New.
10098 (linux_nat_wait): Use it.
10099
46763423
L
101002010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10101
10102 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10103 i386/amd64 and i386/amd64-linux.
10104 (i386/i386-expedite): New.
10105 (i386/i386-linux-expedite): Likewise.
10106 (i386/amd64-expedite):Likewise.
10107 (i386/amd64-linux-expedite): Likewise.
10108 ($(outdir)/i386/i386-linux.dat): Likewise.
10109 ($(outdir)/i386/amd64.dat): Likewise.
10110 ($(outdir)/i386/amd64-linux.dat): Likewise.
10111
10112 * features/i386/32bit-core.xml: New.
10113 * features/i386/32bit-linux.xml: Likewise.
10114 * features/i386/32bit-sse.xml: Likewise.
10115 * features/i386/64bit-core.xml: Likewise.
10116 * features/i386/64bit-linux.xml: Likewise.
10117 * features/i386/64bit-sse.xml: Likewise.
10118 * features/i386/i386-linux.xml: Likewise.
10119 * features/i386/i386.xml: Likewise.
10120 * features/i386/amd64-linux.xml: Likewise.
10121 * features/i386/amd64.xml: Likewise.
10122 * features/i386/i386-linux.c: Likewise.
10123 * features/i386/i386.c: Likewise.
10124 * features/i386/amd64-linux.c: Likewise.
10125 * features/i386/amd64.c: Likewise.
10126
82856980
SW
101272010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10128
10129 PR c++/7935:
10130 * cp-support.h: Added char* alias element to using_direct data
10131 struct.
10132 (cp_add_using): Added char* alias argument.
10133 (cp_add_using_directive): Ditto.
10134 * cp-namespace.c: Updated with the above changes.
10135 (cp_lookup_symbol_imports): Check for aliases.
10136 * dwarf2read.c (read_import_statement): Figure out local alias
10137 for the import and pass it on to cp_add_using.
10138 (read_namespace): Pass alias argument to cp_add_using.
10139
d18b8b7a
HZ
101402010-02-05 Hui Zhu <teawater@gmail.com>
10141
10142 * defs.h (gdb_bfd_errmsg): New extern.
10143 * exec.c (exec_file_attach): Change bfd_errmsg to
10144 gdb_bfd_errmsg.
10145 * utils.c (AMBIGUOUS_MESS1): New macro.
10146 (AMBIGUOUS_MESS2): New macro.
10147 (gdb_bfd_errmsg): New function.
10148
48379de6
DE
101492010-02-04 Doug Evans <dje@google.com>
10150
10151 * solib-svr4.c (enable_break): Add comment.
10152
4ee73e90
AG
101532010-02-04 Anthony Green <green@moxielogic.com>
10154
10155 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10156 gracefully.
10157
1a334831
TT
101582010-02-04 Tom Tromey <tromey@redhat.com>
10159
10160 * valops.c (search_struct_field): Account for
10161 value_embedded_offset. Fix check for virtual base past the end of
10162 the object. Use value_copy when making a slice of the value.
10163
1180b2c8
L
101642010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10165
10166 PR tui/9622
10167 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10168 only if gdb_stdout is a tty.
10169
c3f08eb7
L
101702010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10171
10172 * target-descriptions.c: Include "osabi.h".
10173 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10174 OSABI.
10175
2d33f7b8
TG
101762010-02-04 Tristan Gingold <gingold@adacore.com>
10177
10178 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10179 (macho_symtab_read): Adjust calls to macho_add_oso.
10180 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10181 (macho_symfile_read): Adjust call to macho_oso_symfile.
10182 (macho_new_init): Move this function after declarations.
10183 (macho_symfile_init): Ditto.
10184 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10185 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10186
11334b82
VP
101872010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10188
10189 Include MI command in remotelog.
10190
10191 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10192
ff97be06
L
101932010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10194
10195 * remote.c (remote_state): Remove gdbarch.
10196 (init_remote_state): Don't set gdbarch.
10197 (remote_query_supported): Pass target_gdbarch instead of
10198 rs->gdbarch to gdbarch_qsupported.
10199
75cebea9
L
102002010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10201
10202 * gdbarch.sh: Add qsupported.
10203
10204 * gdbarch.c: Regenerated.
10205 * gdbarch.h: Likewise.
10206
10207 * remote.c (remote_state): Add gdbarch.
10208 (init_remote_state): Set gdbarch.
10209 (remote_query_supported): Support gdbarch_qsupported.
10210
c1dec97b
DJ
102112010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10212
10213 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10214 __FreeBSD_kernel_version.
10215
ac8035ab
TG
102162010-02-03 Tristan Gingold <gingold@adacore.com>
10217
10218 * symfile.h (struct sym_fns): Add sym_relocate field.
10219 (default_symfile_relocate): New prototype.
10220 (symfile_relocate_debug_section): First argument is now an objfile.
10221 * symfile.c (default_symfile_relocate): Rename from
10222 symfile_relocate_debug_section, first argument is now an objfile.
10223 (symfile_relocate_debug_section): New function.
10224 * coffread.c (coff_sym_fns): Set sym_relocate field.
10225 * somread.c (som_sym_fns): Ditto.
10226 * mipsread.c (ecoff_sym_fns): Ditto.
10227 * machoread.c (macho_sym_fns): Ditto.
10228 * elfread.c (elf_sym_fns): Ditto.
10229 * dwarf2read.c (dwarf2_read_section): Ditto.
10230 * xcoffread.c (xcoff_sym_fns): Ditto.
10231 * dbxread.c (aout_sym_fns): Ditto.
10232 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10233 (elfstab_build_psymtabs): Ditto.
10234
be52b756
L
102352010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10236
10237 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10238
9c3c02fd
TT
102392010-02-02 Tom Tromey <tromey@redhat.com>
10240
10241 * valops.c (value_cast_structs): Try downcasting using the RTTI
10242 type.
10243
f23f4c59
TT
102442010-02-02 Tom Tromey <tromey@redhat.com>
10245
10246 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10247 (gnuv2_baseclass_offset): Now static.
10248 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10249 * gnu-v2-abi.h: Remove.
10250
0cc2414c
TT
102512010-02-02 Tom Tromey <tromey@redhat.com>
10252
10253 * m2-typeprint.c (m2_record_fields): Don't use
10254 TYPE_DECLARED_TYPE.
10255 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10256 (struct main_type) <flag_declared_class>: New field.
10257 (struct cplus_struct_type) <declared_type>: Remove.
10258 <ntemplate_args>: Move earlier.
10259 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10260 (DECLARED_TYPE_TEMPLATE): Remove.
10261 (TYPE_DECLARED_TYPE): Remove.
10262 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10263 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10264 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10265 TYPE_DECLARED_TYPE.
10266
edf3d5f3
TT
102672010-02-02 Tom Tromey <tromey@redhat.com>
10268
10269 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10270 * valops.c (search_struct_field): Compute nbases after calling
10271 CHECK_TYPEDEF.
10272 (check_field): Call CHECK_TYPEDEF.
10273 * cp-valprint.c (cp_print_value): Pass correct address to
10274 baseclass_offset. Fix check for virtual base past the end of the
10275 object. Don't offset address passed to cp_print_value_fields or
10276 apply_val_pretty_printer.
10277 (cp_print_value_fields): Fix call to val_print.
10278 (cp_print_value_fields_rtti): New function.
10279 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10280 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10281 val_print.
10282 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10283 offset to address.
10284 * language.h (struct language_defn) <la_val_print>: Document.
10285 * c-lang.h (cp_print_value_fields_rtti): Declare.
10286
e4b7f41c
JK
102872010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10288
10289 PR libc/11214:
10290 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10291 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10292 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10293
7618e12b
DJ
102942010-02-01 Michael Matz <matz@suse.de>
10295 Daniel Jacobowitz <dan@codesourcery.com>
10296
e4b7f41c 10297 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
10298 functions use a frame pointer.
10299
b381ea14
JK
103002010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10301
10302 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10303 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10304 * config/djgpp/fnchange.lst: Add translations for
10305 symbol-without-target_section.exp and symbol-without-target_section.c.
10306
0e05dfcb
DJ
103072010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10308
10309 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10310 (remote_breakpoint_for_pc): Correct invalid_p check.
10311 * gdbarch.c: Regenerated.
10312
f9d67f43
DJ
103132010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10314
10315 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10316 arm_pc_is_thumb.
10317 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10318 (extend_buffer_earlier): New function.
10319 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10320 (arm_adjust_breakpoint_address): New function.
10321 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10322
177321bd
DJ
103232010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10324
10325 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10326 (arm_linux_thumb2_le_breakpoint): New constants.
10327 (arm_linux_init_abi): Set thumb2_breakpoint and
10328 thumb2_breakpoint_size.
10329 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10330 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10331 Implement support for single stepping through IT blocks if
10332 a 32-bit Thumb breakpoint instruction is available.
10333 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10334 is available, use it when needed.
10335 (arm_remote_breakpoint_from_pc): New function.
10336 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10337 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10338 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10339
a1dcb23a
DJ
103402010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10341
10342 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10343 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10344 * gdbarch.c, gdbarch.h: Regenerated.
10345 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10346 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10347 gdbarch_remote_breakpoint_from_pc.
10348
2b009048
DJ
103492010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10350
10351 * infrun.c (prepare_to_proceed): Handle other signals which might
10352 match a breakpoint.
10353 (handle_inferior_event): Move the check for unusual breakpoint
10354 signals earlier.
10355
e4e2711a
JB
103562010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10357
10358 amd64 - function returning record with field straddling 2 registers.
10359 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10360 a record of length <= 16 in which a field straddles the two
10361 eightbytes.
10362
cba6fab5
JB
103632010-01-29 Joel Brobecker <brobecker@adacore.com>
10364
10365 Implement return values on amd64-windows.
10366 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10367 (amd64_windows_return_value): New function.
10368 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10369 amd64_windows_return_value.
10370
3af6ddfe
JB
103712010-01-29 Joel Brobecker <brobecker@adacore.com>
10372
10373 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 10374 parameter registers.
3af6ddfe
JB
10375 * i386-tdep.h (struct gdbarch_tdep): Add new field
10376 integer_param_regs_saved_in_caller_frame.
10377 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10378 tdep->integer_param_regs_saved_in_caller_frame to 1.
10379 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10380 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10381
80d19a06
JB
103822010-01-29 Joel Brobecker <brobecker@adacore.com>
10383
10384 amd64-windows: memory args passed by pointer during function calls.
10385 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10386 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10387 where tdep->memory_args_by_pointer is non-zero.
10388 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10389 tdep->memory_args_by_pointer to 1.
10390
ba581dc1
JB
103912010-01-29 Joel Brobecker <brobecker@adacore.com>
10392
4966b6c2 10393 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
10394 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10395 amd64-tdep.c.
10396 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10397 call_dummy_integer_regs, and classify.
10398 * amd64-tdep.h (amd64_classify): Add declaration.
10399 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10400 (amd64_reg_class): Delete, moved to i386-tdep.h.
10401 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10402 Replace call to amd64_classify by call to tdep->classify.
10403 (amd64_push_arguments): Get the list of registers to use for
10404 passing integer parameters from the gdbarch tdep structure,
10405 rather than using a hardcoded one. Replace calls to amd64_classify
10406 by calls to tdep->classify.
10407 (amd64_push_dummy_call): Get the register number used for
10408 the "hidden" argument from tdep->call_dummy_integer_regs.
10409 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10410 and tdep->call_dummy_integer_regs. Set tdep->classify.
10411 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10412 (amd64_windows_dummy_call_integer_regs): New static global.
10413 (amd64_windows_classify): New function.
10414 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10415 tdep->call_dummy_integer_regs and tdep->classify.
10416
d37346f0
DJ
104172010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10418
10419 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10420 for the new regcache. All callers updated.
10421 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10422 (get_thread_arch_regcache): Do not set aspace here.
10423 * regcache.h (regcache_xmalloc): Update declaration.
10424
10425 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10426 regcache_xmalloc updated.
10427
7434dadd
JB
104282010-01-28 Joel Brobecker <brobecker@adacore.com>
10429
10430 Another -Wunused-function error in procfs.c (sparc-solaris)
10431 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10432 Only define if SYS_syssgi is defined.
10433 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10434 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10435 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10436 is itself defined.
10437
16d905e2
CF
104382010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10439
10440 * windows-nat.c (windows_initialization_done): New variable.
10441 (get_windows_debug_event): Issue error when process dies before
10442 completely initializing.
10443 (do_initial_windows_stuff): Set flag to indicate when we are done with
10444 the initial steps of attaching to the child.
10445
cd55e50f
JK
104462010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10447
10448 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10449
99cc78aa
DE
104502010-01-27 Doug Evans <dje@google.com>
10451
4c7dcb84
DE
10452 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10453
99cc78aa
DE
10454 * breakpoint.c (bpstat_stop_status): Delete useless code.
10455
52334bf5
JK
104562010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10457
10458 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10459 objfile via SYMBOL_SYMTAB.
10460
708ead4e
TT
104612010-01-26 Tom Tromey <tromey@redhat.com>
10462
10463 PR exp/7643:
10464 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10465 coerce_array on result.
10466
b14e635e
SW
104672010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10468
10469 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10470 search_parent argument.
10471 (cp_add_using): Initialize 'searched' field.
10472 (reset_directive_searched): New function.
10473 * cp-support.h: Add 'searched' field to using_direct struct.
10474 (cp_lookup_symbol_imports): Ditto.
10475 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10476 Perform recursive search.
10477 Implement non parent search.
10478 * valops.c (value_maybe_namespace_elt): Updated.
10479
8540c487
SW
104802010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10481
10482 PR gdb/10929:
10483 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10484 scopes which contain using directives even if they contain no
10485 declarations.
10486 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10487 la_lookup_symbol_nonlocal.
10488 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10489 cp_lookup_symbol_namespace.
10490 (cp_lookup_symbol_namespace): Perform an import lookup at every
10491 block level.
10492 (cp_lookup_symbol_imports): New function.
10493 (cp_lookup_symbol_in_namespace): New function.
10494
421d5d99
TT
104952010-01-25 Tom Tromey <tromey@redhat.com>
10496
10497 PR gdb/11049:
10498 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10499 result.
10500
6bcc772d
RO
105012010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10502
10503 * configure.ac: Only use host_os part when disabling TUI on osf.
10504 Use test to check variables, prefix strings with x.
10505 * configure: Regenerate.
10506
10507 * solib-osf.c (osf_current_sos): Initialize tail.
10508
1c1238a5
TG
105092010-01-25 gingold <gingold@adacore.com>
10510
c8d5aac9
L
10511 * windows-nat.c (windows_continue): Use %x to print thread id.
10512 (get_windows_debug_event): Ditto.
1c1238a5 10513
0b92b5bb
TT
105142010-01-22 Tom Tromey <tromey@redhat.com>
10515
10516 PR symtab/11199:
10517 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10518 type and arguments. Use smash_to_methodptr_type.
10519 (read_structure_type): Call quirk_gcc_member_function_pointer
10520 later.
10521 * gdbtypes.h (smash_to_methodptr_type): Declare.
10522 * gdbtypes.c (smash_to_methodptr_type): New function.
10523 (lookup_methodptr_type): Use it.
10524
0d5392b8
TT
105252010-01-21 Tom Tromey <tromey@redhat.com>
10526
10527 PR symtab/11198:
10528 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10529 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10530 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10531 (glibc_skip_solib_resolver): Use
10532 lookup_minimal_symbol_and_objfile.
10533
e6d088ec
KT
105342010-01-21 Kai Tietz <kai.tietz@onevision.com>
10535
10536 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10537 WIN32 targets.
10538
b966cb8a
TT
105392010-01-20 Tom Tromey <tromey@redhat.com>
10540
10541 PR backtrace/10770:
10542 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10543 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10544 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10545 dwarf_stack_values, not CORE_ADDRs.
10546 (execute_stack_op): Change DW_OP_div and comparison operators to
10547 use signed operands.
10548
3f81c18a
VP
105492010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10550
10551 Per-inferior args and tty and environment.
10552
10553 * infcmd.c (inferior_args): Rename to ...
10554 (inferior_args_scratch): ... this.
10555 (inferior_io_terminal): Rename to ...
10556 (inferior_io_terminal_scratch): ... this.
10557 (inferior_argc, inferior_argv): Remove.
10558 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10559 inside current_inferior().
10560 (set_inferior_tty_command, show_inferior_tty_command): New.
10561 (get_inferior_args, set_inferior_args): Store inside
10562 current_inferior().
10563 (notice_args_set): Likewise and rename to...
10564 (set_args_command): ... this.
10565 (set_inferior_args_vector): Likewise.
10566 (notice_args_read): Rename to...
10567 (show_args_command): ...new.
10568 (tty_command): Remove.
10569 (run_command_1): Don't free old args, as they are freed by
10570 set_inferior_arg now.
10571 (run_no_args_command): Likewise.
10572 (inferior_environ): Remove.
10573 (run_command_1): Use environment of the current inferior.
10574 (environment_info, set_environment_command)
10575 (unset_environment_command, path_info, path_command): Likewise.
10576 (_initialize_infcmd): Adjust for function and variable renames.
10577 Do not init inferior_environ.
10578 * inferior.h (set_inferior_arg): Adjust prototype.
10579 (struct inferior): New fields args, argc, argv, terminal, environment.
10580 (inferior_environ): Remove declaration.
10581 * inferior.c (free_inferior): Free new fields.
10582 (add_inferior_silent): Initialize 'environment' field.
10583 * main.c (captured_main): Set arguments only after the initial
10584 inferior has been created. Set set_inferior_io_terminal,
10585 not tty_command.
10586 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10587 inferior.
10588 (_initialize_mi_cmd_env): Adjust for disappearance of global
10589 inferior_environ.
10590 * solib.c (solib_find): Use environment of the current inferior.
10591
d8b65138
JK
105922010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10593
10594 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10595 HAVE_PYTHON.
10596 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10597
692465f1
JB
105982010-01-20 Joel Brobecker <brobecker@adacore.com>
10599
10600 Get rid of ada-lang.c:function_name_from_pc.
10601 * ada-lang.c: Add "stack.h" #include.
10602 (function_name_from_pc): Delete.
10603 (is_known_support_routine): Replace call to function_name_from_pc
10604 by call to find_frame_funname.
10605 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10606
95519e0e
TT
106072010-01-19 Tom Tromey <tromey@redhat.com>
10608
10609 PR c++/11026:
10610 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10611 objfile obstack.
10612
95c11dc7
TT
106132010-01-19 Tom Tromey <tromey@redhat.com>
10614
10615 * top.c (stop_sig, float_handler, do_nothing): Remove.
10616
a0f49112
JK
106172010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 * breakpoint.c (watchpoint_check): Check the call
10620 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10621 Extend the comment.
8d95cc3b 10622 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10623 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10624 watchpoint-cond-gone-stripped.c.
10625
ceeb3d5a
TT
106262010-01-19 Tom Tromey <tromey@redhat.com>
10627
10628 PR c++/8000:
10629 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10630 into parent scope, and enumerator into grandparent scope.
10631
2b71fc8e
JB
106322010-01-19 Joel Brobecker <brobecker@adacore.com>
10633
10634 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10635
03564ed9
JB
106362010-01-19 Joel Brobecker <brobecker@adacore.com>
10637
10638 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10639 i[34567]86-*-solaris2.1[0-9]*.
10640 * configure.tgt: Likewise.
10641
fb2e7cb4
JB
106422010-01-19 Joel Brobecker <brobecker@adacore.com>
10643
10644 * NEWS: Document the source command enhancement allowing it
10645 to load Python scripts. Document the "set/show script-extension"
10646 commands.
10647
1cb5e2a4
JB
106482010-01-19 Joel Brobecker <brobecker@adacore.com>
10649
10650 Add -Wunused-function to compile flags.
10651 * configure.ac: Add -Wunused-function to build_warnings.
10652 * configure: Regenerate.
10653
0ec6cd0c
JB
106542010-01-19 Joel Brobecker <brobecker@adacore.com>
10655
10656 "delete" ada-lex.c:input function, not used.
10657 * ada-lex.l: #define YY_NO_INPUT.
10658
b74845da
JB
106592010-01-19 Joel Brobecker <brobecker@adacore.com>
10660
10661 Delete free_named_symtabs and associated cleanup.
10662 * symfile.h (free_named_symtabs): Delete declaration.
10663 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10664 (cashier_psymtab): Comment function out.
10665 Delete declaration.
10666 (free_named_symtabs): Delete.
10667 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10668 * dbxread.c (end_psymtab): Likewise.
10669 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10670 * exec.c (exec_close_1): Ditto.
10671 * xcoffread.c (xcoff_end_psymtab): Likewise.
10672
65c06092
JB
106732010-01-19 Joel Brobecker <brobecker@adacore.com>
10674
10675 * stack.c (print_block_frame_labels): Comment function out.
10676
d5cd6034
JB
106772010-01-19 Joel Brobecker <brobecker@adacore.com>
10678
10679 Delete unused or undefined functions.
10680 * breakpoint.c (ep_parse_optional_filename): Delete.
10681 * dcache.c (dcache_write_line): Remove declaration.
10682 * infrun.c (build_infrun): Remove declaration.
10683 * tracepoint.c (tracepoint_save_command): Remove declaration.
10684 * linux-nat.c (init_lwp_list): Delete. No longer used.
10685 * event-loop.c (check_async_signal_handlers): Delete declaration.
10686 * infrun.c (init_execution_control_state): Delete.
10687 (proceed): Update comment to avoid mentioning
10688 init_execution_control_state.
10689 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10690 * ada-lang.c (ada_to_static_fixed_value): Delete.
10691 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10692 * cp-namespace.c (cp_copy_usings): Delete.
10693 * xml-syscall.c (xml_number_of_syscalls): Delete.
10694 * progspace.c (find_program_space_by_num): Delete.
10695 * inflow.c (handle_sigio): Delete declaration.
10696 * hppa-tdep.c (hppa_alignof): Delete.
10697 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10698 (mipsnbsd_core_osabi_sniffer): Delete.
10699
4e8f195d
TT
107002010-01-18 Tom Tromey <tromey@redhat.com>
10701
10702 PR c++/9680:
10703 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10704 (CONST_CAST): New tokens.
10705 (exp): Add new productions.
10706 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10707 reinterpret_cast.
10708 (is_cast_operator): New function.
10709 (yylex): Handle cast operators specially.
10710 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10711 UNOP_REINTERPRET_CAST>: New cases.
10712 * expprint.c (print_subexp_standard): Likewise.
10713 (op_name_standard): Likewise.
10714 (dump_subexp_body_standard): Likewise.
10715 * parse.c (operator_length_standard): Likewise.
10716 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10717 UNOP_REINTERPRET_CAST.
10718 * gdbtypes.c (class_types_same_p): New function.
10719 (is_ancestor): Use it.
10720 (is_public_ancestor): New function.
10721 (is_unique_ancestor_worker): Likewise.
10722 (is_unique_ancestor): Likewise.
10723 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10724 (is_unique_ancestor): Declare.
10725 * valops.c (value_reinterpret_cast): New function.
10726 (dynamic_cast_check_1): Likewise.
10727 (dynamic_cast_check_2): Likewise.
10728 (value_dynamic_cast): Likewise.
10729 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10730
d9c57d9f
JB
107312010-01-18 Joel Brobecker <brobecker@adacore.com>
10732
10733 Fix build failure when building without Python support.
10734 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10735 is not defined.
10736
f80d3ff2
JB
107372010-01-18 Joel Brobecker <brobecker@adacore.com>
10738
10739 Use XVS field type instead of doing a parallel lookup.
10740 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10741 if it is a reference type instead of doing a type lookup using
10742 the XVS field name.
10743
5bf03f13
JB
107442010-01-18 Joel Brobecker <brobecker@adacore.com>
10745
10746 Trust PAD types instead of using PAD___XVS.
10747 * ada-lang.c (trust_pad_over_xvs): New static variable.
10748 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10749 parallel XVS type, follow the XVS type instead of the PAD type.
10750 (unwrap_value): Make sure that there is no parallel XVE type
10751 before returning the value as is.
10752 (set_ada_list, show_ada_list): New static variables.
10753 (set_ada_command, show_ada_command): New functions.
10754 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10755 Add new "set/show ada trust-PAD-over-XVS" setting.
10756
973817a3
JB
107572010-01-18 Tom Tromey <tromey@redhat.com>
10758 Thiago Jung Bauermann <bauerman@br.ibm.com>
10759
10760 Allow "source" to load python scripts.
10761 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10762 * python/python.c (source_python_script): New function.
10763 * python/python.h (source_python_script): Add declaration.
10764 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10765 (script_ext_off, script_ext_soft, script_ext_strict)
10766 (script_ext_enums, script_ext_mode): New static constants.
10767 (show_script_ext_mode, find_and_open_script): New functions.
10768 (source_script): Enhance to handle Python scripts.
10769 (init_cli_cmds): Add set/show script-extension commands.
10770
98e03262
SS
107712010-01-16 Stan Shebs <stan@codesourcery.com>
10772
10773 * tracepoint.h (struct trace_status): Use unsigned long long
10774 instead of size_t.
10775 * tracepoint.c (trace_status_command): Fix printf directive.
10776 (trace_save_command): Check fwrite returns, fix printf directive.
10777 (trace_filename): New global.
10778 (tfile_open): Set it, check read returns.
10779 (tfile_close): Free trace_filename.
10780 (tfile_get_traceframe_address): Check read returns.
10781 (tfile_trace_find): Ditto.
10782 (tfile_fetch_registers): Ditto.
10783 (tfile_xfer_partial): Ditto.
10784 (tfile_get_trace_state_variable_value): Ditto.
10785
00bf0b85
SS
107862010-01-15 Stan Shebs <stan@codesourcery.com>
10787
10788 Add trace file support.
10789 * tracepoint.h (enum trace_stop_reason): New enum.
10790 (struct trace_status): New struct.
10791 (parse_trace_status): Declare.
10792 (struct uploaded_tp): Move here from remote.c,
10793 add fields for actions.
10794 (struct uploaded_tsv): New struct.
10795 * tracepoint.c (tfile_ops): New target vector.
10796 (trace_fd): New global.
10797 (tfile_open): New function.
10798 (tfile_close): New function.
10799 (tfile_files_info): New function.
10800 (tfile_get_trace_status): New function.
10801 (tfile_get_traceframe_address): New function.
10802 (tfile_trace_find): New function.
10803 (tfile_fetch_registers): New function.
10804 (tfile_xfer_partial): New function.
10805 (tfile_get_trace_state_variable_value): New function.
10806 (init_tfile_ops): New function.
10807 (_initialize_tracepoint): Call it, add tfile target.
10808 (trace_status): New global.
10809 (current_trace_status): New function.
10810 (trace_running_p): Remove, change all users to get from
10811 current_trace_status()->running.
10812 (get_trace_status): Remove.
10813 (trace_status_command): Call target_get_trace_status directly,
10814 report more detail including tracing stop reasons.
10815 (trace_find_command): Always allow tfind on a file.
10816 (trace_find_pc_command): Ditto.
10817 (trace_find_tracepoint_command): Ditto.
10818 (trace_find_line_command): Ditto.
10819 (trace_find_range_command): Ditto.
10820 (trace_find_outside_command): Ditto.
10821 (trace_frames_offset, cur_offset): Declare as off_t.
10822 (trace_regblock_size): Rename from reg_size, update users.
10823 (parse_trace_status): New function.
10824 (tfile_interp_line): New function.
10825 (disconnect_or_stop_tracing): Ensure current trace
10826 status before asking what to do.
10827 (stop_reason_names): New global.
10828 (trace_save_command): New command.
10829 (get_uploaded_tp): Move here from remote.c.
10830 (find_matching_tracepoint): Ditto.
10831 (merge_uploaded_tracepoints): New function.
10832 (parse_trace_status): Use stop_reason_names.
10833 (_initialize_tracepoint): Define tsave command.
10834 * target.h (target_ops): New fields to_save_trace_data,
10835 to_upload_tracepoints, to_upload_trace_state_variables,
10836 to_get_raw_trace_data, change to_get_trace_status
10837 to take a pointer to a status struct.
10838 (target_save_trace_data): New macro.
10839 (target_upload_tracepoints): New macro.
10840 (target_upload_trace_state_variables): New macro.
10841 (target_get_raw_trace_data): New macro.
10842 * target.c (update_current_target): Add new methods, change
10843 signature of to_get_trace_status.
10844 * remote.c (hex2bin): Make globally visible.
10845 (bin2hex): Ditto.
10846 (remote_download_trace_state_variable): Download name also.
10847 (remote_get_trace_status): Update parameter, use
10848 parse_trace_status.
10849 (remote_save_trace_data): New function.
10850 (remote_upload_tracepoints): New function.
10851 (remote_upload_trace_state_variables): New function.
10852 (remote_get_raw_trace_data): New function.
10853 (remote_start_remote): Use them.
10854 (_initialize_remote_ops): Add operations.
10855 * ax-gdb.c: Include breakpoint.h.
10856 * breakpoint.c (create_tracepoint_from_upload): Use
10857 break_command_really, return tracepoint, warn about unimplemented
10858 parts.
10859 * NEWS: Mention trace file addition.
10860
d904de5b
JK
108612010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10862
10863 Fix compilation warning on gcc-3.4.
10864 * exec.c (print_section_info): Move the `displacement' variable
10865 initialization to its declaration.
10866
64aa9731
JK
108672010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10868
10869 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10870 comparison.
10871
ca1f5def 108722010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10873
10874 "info tasks" broken by typedefs in ATCB type definitions.
10875 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10876 ada_check_typedef before retrieving the length of the type for
10877 regular fields.
10878
12ab9e09
JB
108792010-01-15 Joel Brobecker <brobecker@adacore.com>
10880
10881 Do not use name-based lookup for unconstrained packed arrays.
10882 * ada-lang.c (find_parallel_type_by_descriptive_type):
10883 Limit the fallback to name-based lookups to the case where
10884 the type is a constrained packed array.
10885
c389c3dc
JB
108862010-01-15 Joel Brobecker <brobecker@adacore.com>
10887
10888 Enhance gdb-gdb.py to handle main_type.type_specific.
10889 * gdb-gdb.py: Print the type-specific part of struct main_type.
10890
7991dee7
JK
108912010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10892
10893 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10894 * configure: Regenerate.
10895 * config.in: Regenerate.
10896 * utils.c: Include sys/resource.h.
10897 (dump_core, can_dump_core): New.
10898 (internal_vproblem): Update the comment. Check can_dump_core while
10899 setting dump_core_p. Replace two abort calls by dump_core calls.
10900
93c26624
JK
109012010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10902 Eli Zaretskii <eliz@gnu.org>
10903
10904 * NEWS: Document the PIE support.
10905
55235ad7
JK
109062010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10907
10908 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10909 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10910
41752192
JK
109112010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10912
10913 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10914 Replace exec_entry_point call by bfd_get_start_address.
10915
9f2982ff
JK
109162010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10917
10918 Support Valgrind attachments broken by the PIE support.
10919 * auxv.c: Include gdbcore.h.
10920 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10921 parameters ops, object and annex. Remove their assertions.
10922 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10923 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10924 (memory_xfer_auxv): ... here.
10925 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10926 memory_xfer_auxv.
10927 * procfs.c (procfs_xfer_partial): Likewise.
10928 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10929 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10930 (svr4_solib_create_inferior_hook): Conditionalize the
10931 svr4_relocate_main_executable call.
10932
61f0d762
JK
109332010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10934
10935 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10936 target_section. Find SECT in current_target_sections, gdb_assert it.
10937 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10938 New variable abfd.
10939 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10940 of separate debug info file.
10941
51bee8e9
JK
109422010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10943
10944 Support PIEs with no symfile_objfile.
10945 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10946 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10947
b8040f19
JK
109482010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10949
10950 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10951 code part to ...
10952 (svr4_static_exec_displacement): ... a new function.
10953 (svr4_exec_displacement): New function.
10954 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10955 new_offsets using alloca now. Remove variable old_chain and changed.
10956 Call objfile_relocate unconditionally now.
10957
eb90ce83
DE
109582010-01-14 Doug Evans <dje@google.com>
10959
10960 * gdbtypes.c (arch_flags_type): Fix comment.
10961 * gdbtypes.h (arch_composite_type): Fix comment.
10962
bdfed3bc
TG
109632009-01-14 Tristan Gingold <gingold@adacore.com>
10964
10965 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10966 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10967 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10968 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10969 macho_add_oso_symfile.
10970 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10971
1596ad23
JB
109722010-01-14 Joel Brobecker <brobecker@adacore.com>
10973
10974 Tru64: Dead threads are never deleted.
10975 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10976 (dec_thread_count_gdb_threads): Fix counter increment.
10977 (dec_thread_add_gdb_thread): Fix *listp increment.
10978 (resync_thread_list): Fix bug in deletion of dead threads that
10979 caused all threads to be deleted, instead of just the dead ones.
10980
be759fcf
PM
109812010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10982
10983 PR python/10705
10984
10985 * python/python-internal.h: Add lazy_string_object_type
10986 definition.
10987 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10988 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10989 * python/py-value.c (valpy_lazy_string): New function.
10990 (convert_value_from_python): Add lazy string conversion.
10991 * python/py-prettyprint.c (pretty_print_one_value): Check if
10992 return is also a lazy string.
10993 (print_string_repr): Add lazy string printing branch.
10994 (print_children): Likewise.
10995 * python/py-lazy-string.c: New file. Implement lazy strings.
10996 * python/python.c (_initialize_python): Call
10997 gdbpy_initialize_lazy_string.
10998 * varobj.c (value_get_print_value): Add lazy string printing
10999 branch. Account for encoding.
11000 * c-lang.c (c_printstr): Account for new encoding argument. If
11001 encoding is NULL, find encoding suited for type, otherwise use
11002 user encoding.
11003 * language.h (language_defn): Add encoding argument.
11004 (LA_PRINT_STRING): Likewise.
11005 * language.c (unk_lang_printstr): Update to reflect new encoding
11006 argument to language_defn.
11007 * ada-lang.h (ada_printstr): Likewise.
11008 * c-lang.h (c_printstr): Likewise.
11009 * p-lang.h (pascal_printstr);
11010 * f-lang.c (f_printstr): Likewise.
11011 * m2-lang.c (m2_printstr): Likewise.
11012 * objc-lang.c (objc_printstr): Likewise.
11013 * p-lang.c (pascal_printstr): Likewise.
11014 * scm-lang.c (scm_printstr): Likewise.
11015 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11016 encoding argument.
11017 * ada-valprint.c (ada_printstr): Likewise.
11018 * f-valprint.c (f_val_print): Likewise
11019 * m2-valprint.c (m2_val_print): Likewise.
11020 * p-valprint.c (pascal_val_print): Likewise.
11021 * expprint.c (print_subexp_standard): Likewise.
11022 * valprint.c (val_print_string): Likewise.
11023 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11024 (SUBDIR_PYTHON_SRCS): Likewise.
11025 (py-lazy-string.o): New rule.
11026
1fe72117 110272010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
11028
11029 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11030 uninitialized" warning from gcc on local `tree'.
11031
dc146f7c
VP
110322010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11033
11034 Implement core awareness.
11035
11036 * bcache.c (compare_ints): Remove
11037 (print_percentage): Use compare_positive_ints.
11038 * defs.h (compare_positive_ints): Declare.
11039 * linux-nat.h (struct lin_lwp): New field core.
11040 (linux_nat_core_of_thread_1): Declare.
11041 * linux-nat.c (add_lwp): Init the 'core' field.
11042 (linux_nat_wait_1): Record the core.
11043 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11044 (linux_nat_add_target): Register the above.
11045 * linux-thread-db.c (update_thread_core): New.
11046 (thread_db_find_new_threads): Update core information for
11047 every thread.
11048 * remote.c (struct private_thread_info): New.
11049 (free_private_thread_info, demand_private_info): New.
11050 (PACKET_qXfer_threads, use_osdata_threads): New.
11051 (struct thread_item, threads_parsing_context
11052 (start_thread, end_thread, thread_attributes)
11053 (thread_children, threads_children, threads_elements): New.
11054 (remote_threads_info): Try qXfer:threads before anything
11055 else.
11056 (remote_protocol_packets): Register qXfer:threads.
11057 (remote_open_1): Init use_osdata_threads.
11058 (struct stop_reply): New field 'core'.
11059 (remote_parse_stop_reply): Parse core number.
11060 (process_stop_reply): Record core number.
11061 (remote_xfer_partial): Handle qXfer:threads.
11062 (remote_core_of_thread): New.
11063 (init_remote_ops): Register remote_core_of_thread.
11064 (_initialize_remote): Register qXfer:read.
11065 * target.c (target_core_of_thread): New
11066 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11067 (struct target_ops): New field to_core_of_threads.
11068 (target_core_of_thread): Declare.
11069 * gdbthread.h (struct thread_info): New field private_dtor.
11070 * thread.c (print_thread_info): Report the core.
11071 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11072 * utils.c (compare_positive_ints): New.
11073 * features/threads.dtd: New.
11074 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11075 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11076 (do_nothing, free_vector_of_osdata_items)
11077 (splay_tree_int_comparator, free_splay_tree): New.
11078 (print_one_inferior_data): Implemented printing of selected
11079 inferiors. Collect and print cores.
11080 (output_cores): New.
11081 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11082 thread groups together with --available.
11083
d30c5336
JK
110842010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11085
11086 * configure: Regenerate (for _STRUCTURED_PROC).
11087
02893727
JB
110882010-01-12 Joel Brobecker <brobecker@adacore.com>
11089
11090 Delete dead function.
11091 * ada-lang.c (extract_string): Delete. No longer used.
11092
46ed2d6f
JB
110932010-01-12 Joel Brobecker <brobecker@adacore.com>
11094
11095 Fix -Wunused warning in dec-thread.c.
11096 * dec-thread.c (dec_thread_count_gdb_threads)
11097 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11098
606b8d1a
JB
110992010-01-12 Joel Brobecker <brobecker@adacore.com>
11100
11101 * ada-valprint.c (ada_print_floating): Remove trailing space.
11102
b4ba55a1
JB
111032010-01-12 Joel Brobecker <brobecker@adacore.com>
11104
11105 Add support for DW_AT_GNAT_descriptive_type.
11106 * gdbtypes.h (enum type_specific_kind): New enum.
11107 (struct main_type) [type_specific_field]: New component.
11108 [type_specific]: Add new component "gnat_stuff".
11109 (struct gnat_aux_type): New type.
11110 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11111 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11112 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11113 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11114 (TYPE_SPECIFIC_FIELD): New macros.
11115 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11116 type does not hold any cplus-specific data.
11117 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11118 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11119 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11120 cplus-specific data.
11121 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11122 Set new component TYPE_SPECIFIC_FIELD (type).
11123 (gnat_aux_default): New constant.
11124 (allocate_gnat_aux_type): New function.
11125 (init_type): Add initialization the type-specific stuff for
11126 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11127 (print_gnat_stuff): New function.
11128 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11129 specific data. Adjust code that prints the contents of the
11130 type-specific union using the TYPE_SPECIFIC_FIELD value.
11131 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11132 the type cplus stuff for Ada types.
11133 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11134 Error out if these routines are called with an Ada type.
11135 (read_structure_type, read_array_type, read_subrange_type):
11136 Add call to set_descriptive_type.
11137 (set_die_type): Initialize the gnat-specific data if necessary.
11138 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11139 New functions.
11140 * ada-lang.c (decode_constrained_packed_array_type): Use
11141 decode_constrained_packed_array_type instead of doing a standard
11142 lookup to locate a parallel type.
11143 (find_parallel_type_by_descriptive_type): New function.
11144 (ada_find_parallel_type_with_name): New function.
11145 (ada_find_parallel_type): Reimplement using
11146 ada_find_parallel_type_with_name.
11147 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11148 to check if type has a cplus stuff.
11149 * linespec.c (total_number_of_methods): Likewise.
11150 * mdebugread.c (new_type): Likewise.
11151
b0f02ee9
JK
111522010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 * NEWS: Document the 0b binary number prefix parsing.
11155
b260e109
JK
111562010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11157
11158 * objfiles.c (objfile_relocate1): Change the return type to int.
11159 Describe the new return value. Return non-zero if data changed.
11160 (objfile_relocate): New variable changed. Set it. Call
11161 breakpoint_re_set depending on CHANGED.
11162
b5cfddf5
JK
111632010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11164
11165 Implement binary numbers parsing.
11166 * c-exp.y (parse_number): New case 'b' and 'B'.
11167
e0ae4240
JK
111682010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11169 Tristan Gingold <gingold@adacore.com>
11170
11171 * solib.c (info_sharedlibrary_command): Replace
11172 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11173 objfile_has_symbols.
11174
6e0e5977
JB
111752010-01-10 Joel Brobecker <brobecker@adacore.com>
11176
11177 * NEWS: Document the improvements made to the mips-irix port.
11178
7348c5e1
JB
111792010-01-09 Joel Brobecker <brobecker@adacore.com>
11180
11181 Fix the documentation of valprint.c:value_print.
11182 * valprint.c (value_print): Update the function description to
11183 mention that the syntax of the output follows the current_language,
11184 not necessarily C.
11185
567995e1
JK
111862010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11187
11188 Fix displacement of separate debug info files.
11189 * objfiles.c (objfile_relocate): Rename to ...
11190 (objfile_relocate1): ... here and make it static. Extend the comment.
11191 (objfile_relocate): New function.
11192 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11193 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11194 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11195 allocated using alloca.
11196 * symfile.c (copy_section_addr_info): Remove.
11197 (build_section_addr_info_from_objfile): Make it global. New variables
11198 addr_bit and mask, use them.
11199 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11200 (copy_section_addr_info): Remove.
11201
6d8eadbd
JB
112022010-01-09 Joel Brobecker <brobecker@adacore.com>
11203
11204 Signal unwinder for mips-irix N32.
11205 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11206 tramp-frame.h.
11207 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11208 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
11209 (SIGCONTEXT_LO_OFF): New macros.
11210 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
11211 (mips_irix_n32_tramp_frame): New static constant.
11212 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11213
27087a3d
JB
112142010-01-09 Joel Brobecker <brobecker@adacore.com>
11215
11216 Breakpoint in shared library does not work on mips-irix.
11217 * procfs.c: #include "observer.h".
11218 (procfs_inferior_created): New function, moving here the code
11219 which unsets the syssgi syscall-exit notifications.
11220 (procfs_create_inferior): Remove the code which unsets the syssgi
11221 syscall-exit notifications. It is too early to do this here.
11222 (_initialize_procfs): Attach the procfs_inferior_created observer.
11223
f08877ba
JB
112242010-01-09 Joel Brobecker <brobecker@adacore.com>
11225
11226 Wrong return convention for arrays (mips-irix).
11227 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11228 128 bits or smaller are returned the same way as structs
11229 and unions of the the same size.
11230
e4b97d48
JB
112312010-01-09 Joel Brobecker <brobecker@adacore.com>
11232
11233 Cannot set the PC on mips-irix.
11234 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11235 register number, no the cooked one.
11236
11377e68
JB
112372010-01-09 Joel Brobecker <brobecker@adacore.com>
11238
11239 Error while loading core file on mips-irix.
11240 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11241 if debugging from a core file.
11242
b2391021
JB
112432010-01-09 Joel Brobecker <brobecker@adacore.com>
11244
11245 GDB hangs when attaching to process on mips-irix.
11246 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11247 attaching to a process.
11248
f2ec0ecf
JB
112492010-01-09 Joel Brobecker <brobecker@adacore.com>
11250
11251 Use the correct breakpoint instruction on mips-irix.
11252 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11253 containing the correct breakpoint instruction to use on mips-irix.
11254 Use it when the osabi is GDB_OSABI_IRIX.
11255
3c95f01c
JB
112562010-01-09 Joel Brobecker <brobecker@adacore.com>
11257
11258 -Wunused warning in procfs.c (mips-irix only).
11259 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11260 throughout instead of using praddset and prdelset respectively.
11261
4b7703ad
JB
112622010-01-09 Joel Brobecker <brobecker@adacore.com>
11263
11264 GDB crash while stepping into function.
11265 * infrun.c (handle_inferior_event): Refetch the current frame
11266 after handling what.main_action, in case that pointer became
11267 dangling.
11268
12c89474
JB
112692010-01-09 Joel Brobecker <brobecker@adacore.com>
11270
11271 Fix build failure of solaris-hosted cross debuggers.
11272 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11273
1a3fd262 112742010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
11275
11276 Fix build failure on sparc-solaris.
11277 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11278
75242ef4
JK
112792010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11280
11281 Move some symfile code into subroutines.
11282 * symfile.h (relative_addr_info_to_section_offsets)
11283 (addr_info_make_relative): New prototypes.
11284 * symfile.c (default_symfile_offsets): Move a part to ...
11285 (relative_addr_info_to_section_offsets): ... this new function.
11286 (default_symfile_offsets): Call it.
11287 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11288 this part to ...
11289 (addr_info_make_relative): ... this new function.
11290
268a4a75
JK
112912010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11292
11293 Add from_tty to solib_create_inferior_hook.
11294 * infcmd.c (post_create_inferior): Move solib_add after
11295 solib_create_inferior_hook. Pass from_tty to
11296 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11297 0 from_tty and comment why.
11298 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11299 * linux-nat.c (linux_child_follow_fork): Likewise.
11300 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11301 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11302 from_tty.
11303 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11304 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11305 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11306 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11307 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11308 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11309 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11310 Pass it to svr4_so_ops.solib_create_inferior_hook.
11311 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11312 from_tty.
11313 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11314 solib_add.
11315 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11316 enable_break.
11317 * solib-target.c (solib_target_solib_create_inferior_hook): New
11318 parameter from_tty.
11319 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11320 it to ops->solib_create_inferior_hook.
11321 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11322 Move solib_add after solib_create_inferior_hook, call it now with
11323 from_tty as 0. New comment there.
11324 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11325 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11326 Likewise.
11327
cf00dfa7
VP
113282010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11329
11330 Fix multiexec race.
11331 * infrun.c (handle_inferior_event): Use get_thread_regcache
11332 with events ptid, not get_current_regcache.
11333
f91e5ac3
JB
113342009-01-08 Joel Brobecker <brobecker@adacore.com>
11335
11336 GDB crash with empty executable name (MinGW).
11337 * source.c (openp): Add assert that parameter string is not NULL.
11338 if parameter string is an empty string, then return with a failure
11339 immediately.
11340
92b9ce5b
JB
113412009-01-08 Joel Brobecker <brobecker@adacore.com>
11342
11343 Get rid of support for VAX Floats.
11344 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11345 (ada_vax_float_print_function): Delete.
11346 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11347 (ada_vax_float_print_function): Delete.
11348 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11349 (ada_print_type): Remove support for VAX floats.
11350 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11351
268a4a75 113522010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
11353
11354 * stabsread.c (read_args): Handle zero arguments.
11355
f0f20949
JB
113562009-01-08 Joel Brobecker <brobecker@adacore.com>
11357
11358 Cannot find in-tree libiconv.a after reconfigure.
11359 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11360 that we can use, then cache the path to this archive.
11361 * configure: Regenerate.
11362
6b6218c5
SS
113632010-01-07 Stan Shebs <stan@codesourcery.com>
11364
35b1e5cc
SS
11365 Make tracepoint operations go through target vector.
11366 * target.h (enum trace_find_type): New enum.
11367 (struct target_ops): New fields to_trace_init,
11368 to_download_tracepoint, to_download_trace_state_variable,
11369 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11370 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11371 to_set_disconnected_tracing.
11372 (target_trace_init): New macro.
11373 (target_download_tracepoint): New macro.
11374 (target_download_trace_state_variable): New macro.
11375 (target_trace_start): New macro.
11376 (target_trace_set_readonly_regions): New macro.
11377 (target_get_trace_status): New macro.
11378 (target_trace_stop): New macro.
11379 (target_trace_find): New macro.
11380 (target_get_trace_state_variable_value): New macro.
11381 (target_set_disconnected_tracing): New macro.
11382 * target.c (update_current_target): Inherit and set defaults for
11383 tracepoint operations.
11384 * tracepoint.c (default_collect): Make globally visible.
11385 (target_is_remote): Remove, along with all calls.
11386 (tvariables_info): Call target_get_trace_state_variable_value.
11387 (remote_set_transparent_ranges): Remove.
11388 (trace_start_command): Call target_trace_init,
11389 target_download_tracepoint, etc.
11390 (download_tracepoint): Remove.
11391 (trace_stop_command): Simplify.
11392 (stop_tracing): Call target_trace_stop.
11393 (get_trace_status): Call target_get_trace_status.
11394 (trace_status_command): Add case for targets that cannot trace.
11395 (finish_tfind_command): Change to take numerical arguments, call
11396 target_trace_find.
11397 (trace_find_command): Update call to finish_tfind_command.
11398 (trace_find_pc_command): Ditto.
11399 (trace_find_tracepoint_command): Ditto.
11400 (trace_find_line_command): Ditto.
11401 (trace_find_range_command): Ditto.
11402 (trace_find_outside_command): Ditto.
11403 (set_disconnected_tracing_value): Call
11404 target_set_disconnected_tracing.
11405 * remote.c: Add protocol encoding bits from tracepoint.c.
11406 (trace_error): Move from tracepoint.c.
11407 (remote_get_noisy_reply): Ditto.
11408 (free_actions_list_cleanup_wrapper): Ditto.
11409 (free_actions_list): Ditto.
11410 (remote_trace_init): New function.
11411 (remote_download_tracepoint): New function.
11412 (remote_download_trace_state_variable): New function.
11413 (remote_trace_set_readonly_regions): New function.
11414 (remote_trace_start): New function.
11415 (remote_get_trace_status): New function.
11416 (remote_trace_stop): New function.
11417 (remote_trace_find): New function.
11418 (remote_download_trace_state_variable): New function.
11419 (remote_set_disconnected_tracing): New function.
11420 (init_remote_ops): Add tracepoint operations.
11421
6b6218c5
SS
11422 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11423
089b4803
TG
114242010-01-07 Tristan Gingold <gingold@adacore.com>
11425
11426 * symfile.c (build_section_addr_info_from_objfile): New function.
11427 (symbol_file_add_separate): Don't use offsets from objfile but
11428 built an addr info.
11429
d5551862
SS
114302010-01-06 Stan Shebs <stan@codesourcery.com>
11431
11432 Support disconnected tracing.
11433 * infcmd.c (detach_command): Ask whether to stop tracing.
11434 * cli/cli-cmds.c (quit_command): Ditto.
11435 * breakpoint.h (struct breakpoint): New field number_on_target.
11436 * breakpoint.c (create_tracepoint_from_upload): New function.
11437 (get_tracepoint_by_number_on_target): New function.
11438 * remote.c (struct remote): New field disconnected_tracing.
11439 (remote_disconnected_tracing_feature): New function.
11440 (remote_protocol_features): Add DisconnectedTracing.
11441 (struct uploaded_tp): New struct.
11442 (uploaded_tps): New global.
11443 (get_uploaded_tp): New function.
11444 (find_matching_tracepoint): New function.
11445 (remote_get_tracing_state): New function.
11446 (remote_start_remote): Call it.
11447 * tracepoint.c (disconnected_tracing): New global.
11448 (trace_start_command): Initialize number_on_target.
11449 (stop_tracing): New function, split out from...
11450 (trace_stop_command): Call stop_tracing.
11451 (get_trace_status): New function, split out from...
11452 (trace_status_command): Call get_trace_status, add info on
11453 disconnection behavior.
11454 (disconnect_or_stop_tracing): New function.
11455 (finish_tfind_command): Translate from number on target.
11456 (trace_find_tracepoint_command): Translate to number on target.
11457 (send_disconnected_tracing_value): New function.
11458 (set_disconnected_tracing): New function.
11459 (_initialize_tracepoint): Add disconnected-tracing variable.
11460 * NEWS: Mention disconnected tracing.
11461
15d123c9
TG
114622010-01-06 Tristan Gingold <gingold@adacore.com>
11463
11464 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11465 parameter to main_objfile. Iterate on all separate debug objfiles.
11466 * symfile.h (symbol_file_add_separate)
11467 (find_separate_debug_file_by_debuglink): Remove parameter names.
11468 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11469 (reread_symbols): Use free_objfile_separate_debug.
11470 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11471 Adjust comment.
11472 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11473 (free_objfile_separate_debug): New prototypes.
11474 * objfiles.c (objfile_separate_debug_iterate): New function.
11475 (add_separate_debug_objfile, free_objfile_separate_debug): New
11476 functions.
11477 (free_objfile): Use free_objfile_separate_debug. Adjust for
11478 multiple separate debug objfile.
11479 (objfile_has_symbols): Adjust comment. Iterate on all separate
11480 debug objfiles.
11481 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11482 debug objfile.
11483 (lookup_minimal_symbol_text): Ditto.
11484 (lookup_minimal_symbol_by_pc_name): Ditto.
11485 (lookup_minimal_symbol_solib_trampoline): Ditto.
11486 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11487 debug objfiles.
11488
7a697b8d
SS
114892010-01-05 Stan Shebs <stan@codesourcery.com>
11490
11491 Add fast tracepoints.
11492 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11493 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11494 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11495 * breakpoint.c (tracepoint_type): New function.
11496 (ALL_TRACEPOINTS): Use it.
11497 (should_be_inserted): Ditto.
11498 (bpstat_check_location): Ditto.
11499 (print_one_breakpoint_location): Ditto.
11500 (user_settable_breakpoint): Ditto.
11501 (set_breakpoint_location_function): Ditto.
11502 (disable_breakpoints_in_shlibs): Ditto.
11503 (delete_trace_command): Ditto.
11504 (print_it_typical): Add bp_fast_tracepoint case.
11505 (bpstat_what): Ditto.
11506 (print_one_breakpoint_location): Ditto.
11507 (allocate_bp_location): Ditto.
11508 (mention): Ditto.
11509 (breakpoint_re_set_one): Ditto.
11510 (disable_command): Ditto.
11511 (enable_command): Ditto.
11512 (check_fast_tracepoint_sals): New function.
11513 (break_command_really): Call it.
11514 (ftrace_command): New function.
11515 (_initialize_breakpoint): Add ftrace command.
11516 * gdbarch.sh (fast_tracepoint_valid_at): New.
11517 * gdbarch.h, gdbarch.c: Regenerate.
11518 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11519 (i386_gdbarch_init): Use it.
11520 * remote.c (struct remote_state): New field fast_tracepoints.
11521 (PACKET_FastTracepoints): New packet config type.
11522 (remote_fast_tracepoint_feature): New function.
11523 (remote_protocol_features): Add FastTracepoints.
11524 (remote_supports_fast_tracepoints): New function.
11525 (_initialize_remote): Add FastTracepoints.
11526 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11527 * NEWS: Mention fast tracepoints.
11528
737a160e
JB
115292010-01-06 Joel Brobecker <brobecker@adacore.com>
11530
11531 * gdb-gdb.py: New file.
11532
ce6cca6d
MS
115332010-01-05 Michael Snyder <msnyder@vmware.com>
11534
11535 * infrun.c (handle_inferior_event): Fix typo in comment.
11536
0d15807d
JK
115372010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11538
11539 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11540
7803799a
UW
115412010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11542
c8d5aac9 11543 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
11544 and s390x-linux64.
11545 (s390-linux32-expedite): Define.
11546 (s390-linux64-expedite): Define.
11547 (s390x-linux64-expedite): Define.
11548 * features/s390-acr.xml: New file.
11549 * features/s390-fpr.xml: New file.
11550 * features/s390-core32.xml: New file.
11551 * features/s390-core64.xml: New file.
11552 * features/s390x-core64.xml: New file.
11553 * features/s390-linux32.xml: New file.
11554 * features/s390-linux64.xml: New file.
11555 * features/s390x-linux64.xml: New file.
11556 * features/s390-linux32.c: New generated file.
11557 * features/s390-linux64.c: New generated file.
11558 * features/s390x-linux64.c: New generated file.
11559
11560 * regformats/s390-linux32.dat: New generated file.
11561 * regformats/s390-linux64.dat: New generated file.
11562 * regformats/s390x-linux64.dat: New generated file.
11563 * regformats/reg-s390.dat: Remove.
11564 * regformats/reg-s390x.dat: Remove.
11565
11566 * s390-nat.c: Include "auxv.h" and <elf.h>.
11567 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11568 (s390_target_wordsize): New function.
11569 (s390_auxv_parse): Likewise.
11570 (s390_get_hwcap): Likewise.
11571 (s390_read_description): Likewise.
11572 (_initialize_s390_nat): Install s390_auxv_parse and
11573 s390_read_description.
11574
11575 * s390-tdep.c: Include "features/s390-linux32.c",
11576 "features/s390-linux64.c", and "features/s390x-linux64.c".
11577 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11578 (s390_register_call_saved): New function.
11579 (s390_register_name): Remove.
11580 (s390_register_type): Remove.
11581 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11582 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11583 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11584 (s390_pseudo_register_name): New function.
11585 (s390_pseudo_register_type): New function.
11586 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11587 Handle full GPR pesudos and varying pseudo register numbers.
11588 (s390_pseudo_register_write): Likewise
11589 (s390x_pseudo_register_read): Remove.
11590 (s390x_pseudo_register_write): Likewise.
11591 (s390_register_group): Remove.
11592 (s390_pseudo_register_group): New function.
11593 (s390_regmap_gregset): Add GPR upper halves.
11594 (s390x_regmap_gregset): Likewise.
11595 (s390_regmap_fpregset): Likewise.
11596 (s390_regmap_upper): New global variable.
11597 (s390_upper_regset): New global variable.
11598 (s390_upper_regset_sections): New global variable.
11599 (s390_regset_from_core_section): Handle GPR upper halves.
11600 (s390_core_read_description): New function.
11601 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11602 register information. Handle varying pseudo register numbers.
11603 (s390_backchain_frame_unwind_cache): Likewise.
11604 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11605 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11606 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11607 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11608 Handle varying pseudo register numbers.
11609 (s390_unwind_pc): Handle varying pseudo register numbers.
11610 (s390_dwarf2_prev_register): New function.
11611 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11612 register information. Handle varying pseudo register numbers.
11613 Install s390_dwarf2_prev_register to unwind full GPRs.
11614 (s390_gdbarch_init): Handle target descriptions. Assign varying
11615 pseudo register numbers. Install s390_adjust_frame_regnum.
11616 (_initialize_s390_tdep): Initialize target descriptions.
11617
11618 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11619 (S390_NUM_REGS): Redefine to include upper half registers.
11620 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11621 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11622 (tdesc_s390_linux32): Add declaration.
11623 (tdesc_s390_linux64): Likewise.
11624 (tdesc_s390x_linux64): Likewise.
11625
1b1818e4
UW
116262010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11627
11628 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11629 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11630 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11631 (ppc_linux_vmx_regset_sections): Likewise.
11632 (ppc_linux_fp_regset_sections): Likewise.
11633
11634 * corelow.c (get_core_register_section): Constify arguments.
11635 (get_core_registers): Use gdbarch_core_regset_sections instead
11636 of hard-coded platform-specific register section names.
11637
dcbf108f
UW
116382010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11639
11640 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11641 a register, assume the least-significant part is used.
dcbf108f
UW
11642 (write_pieced_value): Likewise.
11643
704e9165
UW
116442010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11645
11646 * printcmd.c: Include "arch-utils.h".
11647 (do_one_display): Re-parse expression if current architecture changed.
11648
c54eabfa
JK
116492010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11650 Joel Brobecker <brobecker@adacore.com>
11651
11652 * gdbtypes.c (check_typedef): New comment on type length.
11653 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11654 comment on type length.
11655 (value_primitive_field): Keep the original TYPE value, new comment.
11656
50cb2941
JK
116572010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11658
11659 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11660 p_start. Change != comparisons to > and < comparisons.
11661
be66db07
JK
116622010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11663
11664 * cli/cli-script.c (process_next_line): Check P2 overrun.
11665
abd775ce
JB
116662009-01-01 Joel Brobecker <brobecker@adacore.com>
11667
11668 Update the copyright hearder to add year 2010 for most GDB files.
11669
6479260d
JB
116702009-01-01 Joel Brobecker <brobecker@adacore.com>
11671
11672 Fix build failure in inf-ptrace.c.
11673 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11674
4a70f654
JB
116752010-01-01 Joel Brobecker <brobecker@adacore.com>
11676
11677 * top.c (print_gdb_version): Update copyright year.
11678
595939de 116792010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11680
11681 Fix break *FUN'address thread NUM.
11682 * ada-lex.l (task): Expand rule to also match the thread keyword.
11683
70575d34
JB
116842010-01-01 Joel Brobecker <brobecker@adacore.com>
11685
11686 Fix break *FUN'address task NUM.
11687 * ada-lex.l (task): New rule.
11688 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11689 been built before using it.
11690
e1e4d4a4 11691For older changes see ChangeLog-2009.
c906108c
SS
11692\f
11693Local Variables:
11694mode: change-log
11695left-margin: 8
11696fill-column: 74
11697version-control: never
57da7796 11698coding: utf-8
c906108c 11699End:
This page took 1.826562 seconds and 4 git commands to generate.