Code cleanup - renaming.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
35df4500
TJB
12010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Code cleanup - renaming.
4 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
5 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
6 variables.
7
6229fbea 82010-12-27 Kevin Buettner <kevinb@redhat.com>
35df4500 9 Hui Zhu <teawater@gmail.com>
6229fbea
HZ
10
11 * mips-tedp.c (mips_register_name): Add comments.
12
621c6d5b
YQ
132010-12-23 Yao Qi <yao@codesourcery.com>
14
15 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
16 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
17 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
18 (arm_analyze_load_stack_chk_guard): New.
19 (arm_skip_stack_protector): New.
20 (arm_skip_prologue): Adjust post_prologue_pc by
21 arm_skip_stack_protector.
22
81ec3cce
JB
232010-12-23 Joel Brobecker <brobecker@adacore.com>
24
25 * mi/mi-main.c (mi_cmd_remove_inferior): Use _() marker for error
26 message. Change spelling of "can not" into "cannot".
27
0e8708c7
YQ
282010-12-23 Yao Qi <yao@codesourcery.com>
29
30 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
31 set_gdbarch_deprecated_fp_regnum.
32
8fa067af
MK
332010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
34
35 * inferior.c (remove_inferior_command): Don't remove an active inferior.
36 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
37
a7658b96
TT
382010-12-21 Tom Tromey <tromey@redhat.com>
39
40 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
41
54483882
YQ
422010-12-20 Yao Qi <yao@codesourcery.com>
43
44 * arm-tdep.c (arm_register_reggroup_p): New.
45 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
46 register_reggroup_p.
47
8ab03ccb
YQ
482010-12-20 Yao Qi <yao@codesourcery.com>
49
50 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
51 * features/arm-with-iwmmxt.c: Regenerate.
52 * features/arm-with-neon.c: Regenerate.
53 * features/arm-with-vfpv2.c: Regenerate.
54 * features/arm-with-vfpv3.c: Regenerate.
55
57bf2d7e
MK
562010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
57
58 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
59 (get_other_inferior): New.
60
b3422a0d
MK
612010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
62
63 * python/py-progspace.c (py_free_pspace): Obtain arch another
64 way to avoid dereferencing a null pointer.
65
5f2302ab
MS
662010-12-17 Michael Snyder <msnyder@vmware.com>
67
68 * utils.c (do_my_cleanups): Comment fix-up.
69
930bd0e0
KB
702010-12-17 Kevin Buettner <kevinb@redhat.com>
71
72 * mips-tdep.c (make_mips16_addr): New function.
73 (mips_elf_make_msymbol_special): Don't set the low bit in the
74 symbol's address.
75 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
76 indicating mips16 address, if present.
77 (mips_write_pc): Set bit indicating mips16 address when in a mips16
78 function.
79 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
80 but for each function pointer argument to inferior function call.
81
900c7f9d
TT
822010-12-17 Tom Tromey <tromey@redhat.com>
83
84 * psympriv.h (struct partial_symtab) <readin>: Move field
85 earlier.
86
ee51a8c7
KB
872010-12-16 Kevin Buettner <kevinb@redhat.com>
88
89 * mips-tdep.c (mips_convert_register_float_case_p)
90 (mips_convert_register_gpreg_case_p): New functions.
91 (mips_convert_register_p): Invoke new functions above.
92 (mips_register_to_value): Add case for fetching value shorter
93 than 64 bits from a 64-bit register.
94 (mips_value_to_register): Add case for storing value shorter
95 than 64 bits into a 64-bit register.
96
fa595c27
TT
972010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
98
99 * python/py-value.c (value_object_type) <tp_flags>: Add
100 Py_TPFLAGS_BASETYPE.
101
448a92bf
MF
1022010-12-16 Mike Frysinger <vapier@gentoo.org>
103
104 * NEWS: Mention new sim --map-info flag.
105
fc1a9d6e
DE
1062010-12-15 Doug Evans <dje@google.com>
107
108 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
109 "save gdb-index" command.
110
5b79abe7
TT
1112010-12-15 Tom Tromey <tromey@redhat.com>
112
113 * infrun.c (save_infcall_control_state): Handle the
114 exception-resume breakpoint.
115 (restore_infcall_control_state): Likewise.
116 (discard_infcall_control_state): Likewise.
117
8bdf35dc
KB
1182010-12-15 Kevin Buettner <kevinb@redhat.com>
119
120 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
121 cooked values that are being transferred to 64-bit raw registers.
122 (mips_pseudo_register_read): Revise to preserve symmetry with
123 mips_pseudo_register_write().
124
45ccdddc
TT
1252010-12-15 Greg Watson <g.watson@computer.org>
126
127 * f-exp.y (yylex): Check entire token against keywords.
128
a86caf66
DE
1292010-12-15 Doug Evans <dje@google.com>
130
131 Rename "maint set python auto-load" to "set auto-load-scripts".
132 * NEWS: Mention it.
133 * python/py-auto-load.c (auto_load_scripts): Renamed from
134 gdbpy_auto_load.
135 (load_auto_scripts_for_objfile): Update.
136 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
137 "set auto-load-scripts".
138
a8852dc5
KB
1392010-12-14 Kevin Buettner <kevinb@redhat.com>
140
141 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
142 than unsigned, values in registers.
143
b6c882c7
L
1442010-12-14 Ken Werner <ken.werner@de.ibm.com>
145
146 * valops.c (value_one): Use get_array_bounds to compute the number
147 of array elements instead of dividing the length of the array by the
148 length of the element types.
149 * valarith.c (value_complement, value_neg): Likewise.
150
043b6510
JB
1512010-12-14 Joel Brobecker <brobecker@adacore.com>
152
153 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
154 and __fp_scr respectively throughout.
155 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
156 Python using GCC on IRIX.
157 * configure: Regenerate.
158
c6490bf2
KB
1592010-12-13 Kevin Buettner <kevinb@redhat.com>
160
161 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
162 when attaching, on the names in bkpt_names: _start, __start, and
163 main.
164
0914bcdb
SS
1652010-12-12 Stan Shebs <stan@codesourcery.com>
166
167 * value.c (value_of_internalvar): Add case for trace state
168 variables.
169
7b9f3c50
DE
1702010-12-12 Doug Evans <dje@google.com>
171
172 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
173 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
174 section. Delete members lines full_names. Rename read_lines to
175 no_file_data.
176 (quick_file_names): New struct.
177 (hash_file_name_entry, eq_file_name_entry): New functions.
178 (delete_file_name_entry, create_quick_file_names_table): New functions.
179 (dwarf2_read_index): Initialize quick_file_names_table.
180 (dw2_get_file_names): Renamed from dw2_require_line_header.
181 Return pointer to quick_file_names entry. All callers updated.
182 (dw2_get_real_path): Renamed from dw2_require_full_path.
183 Replace per_cu arg with pointer to quick_file_names entry.
184 All callers updated.
185 (dw2_free_cached_file_names): New function.
186 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
187 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
188 the OBJF_READNOW case.
189 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
190
1583e7ea 1912010-12-12 Mark Kettenis <kettenis@gnu.org>
89fa5cc8
MK
192
193 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
194 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
195
7a58cce8
MK
1962010-12-12 Mark Kettenis <kettenis@gnu.org>
197
198 * sparc-tdep.c: Fix typo in comment.
199
ae2de4f8
DE
2002010-12-10 Doug Evans <dje@google.com>
201
202 * dwarf2read.c: Whitespace cleanup, plus comment additions.
203 No code changes.
204
66cb8159
TT
2052010-12-10 Tom Tromey <tromey@redhat.com>
206
207 * NEWS: Document exception-handling change.
208
30a7f059
MK
2092010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
210
211 * mi/mi-parse.c (mi_parse): Wrong error message.
212
ad727bb2
DE
2132010-12-09 Doug Evans <dje@google.com>
214
215 * symfile.h (quick_symbol_functions): Clarify usage of
216 map_symbol_filenames.
217
305aeedc
TT
2182010-12-09 Tom Tromey <tromey@redhat.com>
219
220 * mi/mi-parse.h (mi_parse): Update.
221 * mi/mi-parse.c (mi_parse_cleanup): New function.
222 (mi_parse): Add 'token' argument. Throw exception on error.
223 * mi/mi-main.c (mi_print_exception): New function.
224 (mi_execute_command): Use mi_print_exception. Catch exceptions
225 from mi_parse.
226
186c406b
TT
2272010-12-09 Tom Tromey <tromey@redhat.com>
228
229 PR c++/9593:
230 * thread.c (clear_thread_inferior_resources): Call
231 delete_longjmp_breakpoint.
232 * infrun.c (handle_inferior_event): Handle exception breakpoints.
233 (handle_inferior_event): Likewise.
234 (insert_exception_resume_breakpoint): New function.
235 (check_exception_resume): Likewise.
236 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
237 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
238 (step_1): Set thread's initiating frame.
239 (until_next_continuation): New function.
240 (until_next_command): Support exception breakpoints.
241 (finish_command_continuation): Delete longjmp breakpoint.
242 (finish_forward): Support exception breakpoints.
243 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
244 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
245 bp_exception_master>: New constants.
246 (struct bpstat_what) <is_longjmp>: New field.
247 (set_longjmp_breakpoint): Update.
248 * breakpoint.c (create_exception_master_breakpoint): New function.
249 (update_breakpoints_after_exec): Handle bp_exception_master. Call
250 create_exception_master_breakpoint.
251 (print_it_typical): Handle bp_exception_master, bp_exception.
252 (bpstat_stop_status): Handle bp_exception_master.
253 (bpstat_what): Handle bp_exception_master, bp_exception,
254 bp_exception_resume.
255 (bptype_string): Likewise.
256 (print_one_breakpoint_location): Likewise.
257 (allocate_bp_location): Likewise.
258 (set_longjmp_breakpoint): Handle exception breakpoints. Change
259 interface.
260 (delete_longjmp_breakpoint): Handle exception breakpoints.
261 (mention): Likewise.
262 (struct until_break_command_continuation_args) <thread_num>: New
263 field.
264 (until_break_command_continuation): Call
265 delete_longjmp_breakpoint.
266 (until_break_command): Support exception breakpoints.
267 (delete_command): Likewise.
268 (breakpoint_re_set_one): Likewise.
269 (breakpoint_re_set): Likewise.
270
1ef75ecc
DE
2712010-12-08 Doug Evans <dje@google.com>
272
4e4666e6
DE
273 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
274
73e2eb35
DE
275 * gdbtypes.c (check_typedef): Tweak comment.
276
0a5429f6
DE
277 PR symtab/12302
278 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
279 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
280 (struct addrmap_index_data): New struct.
281 (add_address_entry): Remove arg `pst', new args `start', `end'.
282 (add_address_entry_worker, write_address_map): New functions.
283 (write_psymtabs_to_index): Address table generation moved to
284 write_address_map. Build a table mapping psymtab to CU index
285 to pass to it.
286
7e17e088
DE
287 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
288 name to perror.
289
d4637a04
DE
290 * symfile.h (quick_symbol_functions): Clarify usage of
291 expand_symtabs_with_filename.
292 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
293 comp units, ignore type units.
294
1ef75ecc
DE
295 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
296
aae1c79a
DE
2972010-12-07 Doug Evans <dje@google.com>
298
74dd2ca6
DE
299 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
300 gdb_realpath.
301
aae1c79a
DE
302 PR python/12227
303 * NEWS: Mention -data-directory.
304 * main.c (captured_main): Recognize -data-directory.
305
8e0e408a
MK
3062010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
307
308 * mi/mi-parse.c (mi_parse): Missing else.
309
97fc68fe
MM
3102010-12-04 Masaki Muranaka <monaka@monami-software.com>
311
312 * configure.tgt: Accept microblaze*-*-linux* for linux target
313 and microblaze*-*-* for as target.
314
d03a3acf
KS
3152010-12-02 Keith Seitz <keiths@redhat.com>
316
317 * linespec.c (find_method): Move name canonicalization outside
318 the loop.
319 Be paranoid and use a cleanup.
320
148c11bf
DE
3212010-12-01 Doug Evans <dje@google.com>
322
323 * dwarf2read.c (save_gdb_index_command): Add comment.
324
4aac0db7
UW
3252010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
326
327 * valops.c (value_assign): Returned value is never lazy. If a
328 C++ class type is returned, fix incorrect enclosing type / embedded
329 offset. If internal variable is returned, allocate new internalvar
330 value using value_of_internalvar.
331
332 * NEWS: Document changes in behavior of "print x = 0" and similar
333 expressions.
334
4e04c971
DE
3352010-11-29 Doug Evans <dje@google.com>
336
337 * python/lib/gdb/printing.py (register_pretty_printer): Change
338 printer-name:subprinter-name to printer-name;subprinter-name.
339 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
340 Ditto.
341 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
342
8cf6f0b1
TT
3432010-11-29 Tom Tromey <tromey@redhat.com>
344
345 * opencl-lang.c (lval_func_check_synthetic_pointer): New
346 function.
347 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
348 New fields.
349 (value_bits_synthetic_pointer): Declare.
350 * value.c (value_bits_synthetic_pointer): New function.
351 * valprint.c (valprint_check_validity): Handle synthetic
352 pointers.
353 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
354 * valarith.c (value_ptradd): Use set_value_component_location.
355 * p-valprint.c (pascal_object_print_value_fields): Handle
356 synthetic pointers.
357 * jv-valprint.c (java_print_value_fields): Handle synthetic
358 pointers.
359 * dwarf2read.c (dwarf_stack_op_name): Add
360 DW_OP_GNU_implicit_pointer.
361 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
362 arguments. Handle location lists.
363 (fill_in_loclist_baton): New function.
364 (dwarf2_symbol_mark_computed): Use it.
365 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
366 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
367 arguments.
368 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
369 find_location_expression. No longer static. Update all callers.
370 (dwarf_expr_frame_pc): New function.
371 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
372 all callers.
373 (struct piece_closure) <per_cu>: New field.
374 (allocate_piece_closure): Add per_cu argument.
375 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
376 (check_pieced_value_bits): Remove validity argument, add check_for
377 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
378 (check_pieced_value_validity, check_pieced_value_invalid):
379 Update.
380 (check_pieced_synthetic_pointer): New function.
381 (get_frame_address_in_block_wrapper): New function.
382 (indirect_pieced_value): New function.
383 (pieced_value_funcs): Update.
384 (invalid_synthetic_pointer): New function.
385 (dwarf2_evaluate_loc_desc_full): Rename from
386 dwarf2_evaluate_loc_desc. Add byte_offset argument.
387 (dwarf2_evaluate_loc_desc): Rewrite.
388 (dwarf2_loc_desc_needs_frame): Set new field on context.
389 (get_ax_pc): New function.
390 (disassemble_dwarf_expression): Handle
391 DW_OP_GNU_implicit_pointer.
392 * dwarf2expr.h (enum dwarf_value_location)
393 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
394 (struct dwarf_expr_context) <get_frame_pc>: New field.
395 (struct dwarf_expr_piece) <v.ptr>: New field.
396 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
397 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
398 * dwarf2-frame.c (no_get_frame_pc): New function.
399 (execute_stack_op): Set new field on context.
400 * cp-valprint.c (cp_print_value_fields): Handle synthetic
401 pointers.
402
94b6973e
PM
4032010-11-29 Phil Muldoon <pmuldoon@redhat.com>
404
405 PR python/12199
406
407 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
408
8358c15c
JK
4092010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
410
411 Fix step_resume_breakpoint unsaved during an infcall.
412 * gdbthread.h (struct thread_control_state): Move here field
413 step_resume_breakpoint ...
414 (struct thread_info): ... from here.
415 * infrun.c (save_infcall_control_state): Reset
416 control.step_resume_breakpoint to NULL.
417 (restore_infcall_control_state, discard_infcall_control_state): Delete
418 control.step_resume_breakpoint.
419 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
420 the moved field.
421
16c381f0
JK
4222010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 Rename and move inferior_thread_state and inferior_status.
425 * gdbthread.h (struct thread_control_state): New struct, move fields
426 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
427 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
428 stop_step and stop_bpstat here from struct thread_info.
429 (struct thread_suspend_state): New struct, move field stop_signal here
430 from struct thread_info.
431 (struct thread_info): Move the fields above from this struct.
432 * inferior.h: Move the inferior_thread_state and inferior_status
433 declarations comment to their definitions at infrun.c.
434 (struct inferior_control_state): New struct, move field stop_soon from
435 struct inferior here.
436 (struct inferior_suspend_state): New empty struct.
437 (struct inferior): New fields control and suspend. Move out field
438 stop_soon.
439 * infrun.c (struct inferior_thread_state): Rename to ...
440 (infcall_suspend_state): ... here. Replace field stop_signal by
441 fields thread_suspend and inferior_suspend.
442 (save_inferior_thread_state): Rename to ...
443 (save_infcall_suspend_state): ... here. New variable inf. Update the
444 code for new fields.
445 (restore_inferior_thread_state): Rename to ...
446 (restore_infcall_suspend_state): ... here. New variable inf. Update
447 the code for new fields.
448 (do_restore_inferior_thread_state_cleanup): Rename to ...
449 (do_restore_infcall_suspend_state_cleanup): ... here.
450 (make_cleanup_restore_inferior_thread_state): Rename to ...
451 (make_cleanup_restore_infcall_suspend_state): ... here.
452 (discard_inferior_thread_state): Rename to ...
453 (discard_infcall_suspend_state): ... here.
454 (get_inferior_thread_state_regcache): Rename to ...
455 (get_infcall_suspend_state_regcache): ... here.
456 (struct inferior_status): Rename to ...
457 (struct infcall_control_state): ... here. Replace fields
458 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
459 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
460 stop_step, stop_bpstat and stop_soon by fields thread_control and
461 inferior_control.
462 (save_inferior_status): Rename to ...
463 (save_infcall_control_state): ... here. Update the code for new
464 fields.
465 (restore_inferior_status): Rename to ...
466 (restore_infcall_control_state): ... here. Update the code for new
467 fields.
468 (do_restore_inferior_status_cleanup): Rename to ...
469 (do_restore_infcall_control_state_cleanup): ... here.
470 (make_cleanup_restore_inferior_status): Rename to ...
471 (make_cleanup_restore_infcall_control_state): ... here.
472 (discard_inferior_status): Rename to ...
473 (discard_infcall_control_state): ... here.
474 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
475 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
476 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
477 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
478 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
479 references to the moved fields and renamed functions.
480
35515841
JK
4812010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
484 the comment.
485 (save_inferior_thread_state): Reset tp->stop_signal.
486
fef8420a
JK
4872010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
488
7ea14533
JK
489 * infcall.c (call_function_by_hand): Remove variable
490 caller_state_cleanup.
fef8420a 491
f5a8e22b
MK
4922010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
493
494 PR breakpoints/12217
495
496 * breakpoint.c (is_marker_spec): Check for NULL.
497
50389644
PA
4982010-11-25 Pedro Alves <pedro@codesourcery.com>
499
500 * breakpoint.h: No longer include python.h or python-internal.h.
501 (struct breakpoint_object): Forward declare.
502 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
503 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
504 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
505 PyObject pointer.
506 (gdbpy_breakpoint_created): Remove casts around py_bp_object
507 accesses.
508
50a99728
JB
5092010-11-24 Joel Brobecker <brobecker@adacore.com>
510
511 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
512 only if HAVE_ELF is defined.
513
d82142e2
JK
5142010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
515
a418ecb5
JK
516 Code cleanup.
517 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
518 (save_inferior_status) <stepping_over_breakpoint>
519 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
520 trap_expected.
521 (struct inferior_status) <step_resume_break_address>: Remove.
522
5232010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
524
525 Code cleanup.
d82142e2
JK
526 * infrun.c (struct inferior_status, save_inferior_status)
527 (restore_inferior_status): Group and reorder the fields, comment their
528 groups.
529
2edb89d3
JK
5302010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
531
532 Code cleanup.
533 * dictionary.c
534 (struct dict_vector) <iter_match_first, iter_match_next>
535 (iter_match_first_hashed, iter_match_next_hashed)
536 (iter_match_first_linear, iter_match_next_linear)
537 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
538 (iter_match_next_hashed, iter_match_first_linear)
539 (iter_match_next_linear): Use symbol_compare_ftype.
540 * dictionary.h: Include symfile.h.
541 (dict_iter_match_first, dict_iter_match_next): Use
542 symbol_compare_ftype.
543 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
544 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
545 (map_matching_symbols_psymtab): Likewise.
546 * symfile.h (symbol_compare_ftype): New typedef.
547 (struct quick_symbol_functions) <map_matching_symbols): Use
548 symbol_compare_ftype.
549
5ae98d25
TT
5502010-11-23 Tom Tromey <tromey@redhat.com>
551
39037522
TT
552 * configure: Rebuild.
553 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
554
5552010-11-19 Tom Tromey <tromey@redhat.com>
556
5ae98d25
TT
557 * Makefile.in (SUBDIRS): Add doc.
558 * configure: Rebuild.
559 * configure.ac: Don't configure in doc. Create doc/Makefile.
560
ea976c60
PM
5612010-11-23 Phil Muldoon <pmuldoon@redhat.com>
562
563 PR python/12212
564
565 * python/py-inferior.c (find_thread_object): Check if PIDGET
566 returns 0.
567
568010-11-22 Joel Brobecker <brobecker@adacore.com>
d94e4f4f
JB
569
570 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
571
96dbd2c1
JB
5722010-11-22 Joel Brobecker <brobecker@adacore.com>
573
574 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
575 Return the original type if the main type portions match rather
576 than when the type themselves match.
577
27f2a97b
JB
5782010-11-22 Joel Brobecker <brobecker@adacore.com>
579
580 * ada-lang.c (ada_template_to_fixed_record_type_1):
581 For dynamic fields, check the field size against the maximum
582 object size.
583
1324a0d9
JB
5842010-11-22 Joel Brobecker <brobecker@adacore.com>
585
586 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
587 function.
588 (mips_irix_n32_stack_tramp_frame): New static global.
589 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
590 list of unwinder.
591
09e7f15b
JB
5922010-11-22 Jerome Guitton <guitton@adacore.com>
593
594 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
595 ATCB symbols.
596
3a867c22
JB
5972010-11-22 Joel Brobecker <brobecker@adacore.com>
598
599 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
600 if type1 is a typedef.
601
df30368d
JB
6022010-11-22 Joel Brobecker <brobecker@adacore.com>
603
604 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
605 "_finalizer" to the list.
606
4889bbbc
JB
6072010-11-22 Joel Brobecker <brobecker@adacore.com>
608
609 * symfile.c: Remove all "#if 0"/"#endif" blocks.
610
0d14a781
JB
6112010-11-22 Joel Brobecker <brobecker@adacore.com>
612
613 * symfile.c: Add missing second space after period in various comments.
614
feb864b7
JB
6152010-11-22 Joel Brobecker <brobecker@adacore.com>
616
617 * ada-typeprint.c (print_array_type): Fix formatting in comment.
618 (print_selected_record_field_types): Fix formatting in function
619 documentation.
620
04f9d4d0
JB
6212010-11-22 Joel Brobecker <brobecker@adacore.com>
622
623 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
624 in name of "show ravenscar" prefix command name.
625
b64edec4
JB
6262010-11-22 Joel Brobecker <brobecker@adacore.com>
627
628 * ravenscar-thread.c (show_ravenscar_task_switching_command):
629 Add missing '\n' in output.
630
7f39f34a
JB
6312010-11-22 Joel Brobecker <brobecker@adacore.com>
632
633 * ravenscar-thread.c (running_thread_name): Change value.
634 (read_thread_id): Remove advance declaration.
635 (get_running_thread_msymbol): New function.
636 (has_ravenscar_runtime): Use get_running_thread_msymbol to
637 compute msym_running_thread.
638 (get_running_thread_id): Renames read_thread_id. Slight modifications
639 to not take any argument anymore, using get_running_thread_msymbol
640 to determine which symbol to use instead.
641 (ravenscar_running_thread): Use get_running_thread_id instead of
642 read_thread_id.
643
f3890d59
JB
6442010-11-22 Joel Brobecker <brobecker@adacore.com>
645
646 * ravenscar-sparc-thread.c (supply_register_at_address):
647 Fix passing of buf in call to regcache_raw_supply.
648
594e8718
JK
6492010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
650
651 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
652
7ba86c9e
TT
6532010-11-22 Tom Tromey <tromey@redhat.com>
654
655 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
656
1bfda48e
KS
6572010-11-19 Keith Seitz <keiths@redhat.com>
658
659 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
660 Remove extraneous '/' after $(DESTDIR).
661 (PYTHON_INSTALL_DIR): Likewise.
662
3f1eff0a
JK
6632010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 Fix stale memory references.
666 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
667 xfree, new comment.
668
954d8cae
TT
6692010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
670 Tom Tromey <tromey@redhat.com>
671
672 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
673 (.PHONY): Remove for .y outputs.
674
d53d4ac5
TT
6752010-11-19 Will Drewry <wad@google.com>
676 Tavis Ormandy <taviso@google.com>
677 Jan Kratochvil <jan.kratochvil@redhat.com>
678
679 * dwarf2read.c (decode_locdesc): Enforce location description stack
680 boundaries.
681
77bc0675
PM
6822010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
683
684 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
685 instruction is found.
686
ba19bb4d
TT
6872010-11-17 Tom Tromey <tromey@redhat.com>
688
689 * value.c (value_entirely_optimized_out): Check the
690 'check_any_valid' field.
691
19f220c3
JK
6922010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 * ada-lang.c (modify_general_field): Remove.
695 (make_array_descriptor): Replace all modify_general_field calls by
696 modify_field.
697 * value.c (modify_field): Update comment. New variable bytesize.
698 Normalize BITPOS. Initialize BYTESIZE, use it.
699
87df528e
JK
7002010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
701
702 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
703 elements after xfree.
704
97924a97
TT
7052010-11-16 Tom Tromey <tromey@redhat.com>
706
707 * gdb-add-index.sh: Really remove.
708
9816fde3
JK
7092010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
710
711 Code cleanup.
712 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
713 (init_one_comp_unit): ... this one.
714 (prepare_one_comp_unit): New prototype.
715 (dw2_require_line_header, process_psymtab_comp_unit): Use
716 init_one_comp_unit.
717 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
718 (load_partial_comp_unit): Remove variable attr. Use
719 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
720 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
721 prepare_one_comp_unit.
722 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
723 Use prepare_one_comp_unit.
724 (alloc_one_comp_unit): Rename to ...
725 (init_one_comp_unit): ... here and remove there calloc, new parameter
726 cu.
727 (prepare_one_comp_unit): New function.
728
73c964d6
PM
7292010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
730
731 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
732 possible used of uninitialized variable.
733
74af9197
NF
7342010-11-12 Nathan Froyd <froydnj@codesourcery.com>
735
736 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
737 (rs6000_gdbarch_init): Call it.
738
e52d5016
NF
7392010-11-12 Nathan Froyd <froydnj@codesourcery.com>
740
741 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
742 instructions if debugging an E500 binary.
743
621c8364
TT
7442010-11-12 Tom Tromey <tromey@redhat.com>
745
746 * varobj.c (value_get_print_value): Rearrange. Pass stream to
747 apply_varobj_pretty_printer.
748 * c-lang.c: Include exceptions.h.
749 (c_get_string): Throw MEMORY_ERROR when appropriate.
750 * python/py-prettyprint.c (enum string_repr_result): New.
751 (print_stack_unless_memory_error): New function.
752 (print_string_repr): Change return type. Use
753 print_stack_unless_memory_error.
754 (print_children): Use print_stack_unless_memory_error.
755 (apply_val_pretty_printer): Update. Don't print children if
756 string representation threw an exception.
757 (apply_varobj_pretty_printer): Add 'stream' argument. Use
758 print_stack_unless_memory_error.
759 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
760 globals.
761 (_initialize_python): Initialize them.
762 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
763 gdbpy_convert_exception.
764 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
765 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
766 (gdbpy_convert_exception): Declare.
767 (apply_varobj_pretty_printer): Update.
768 * python/py-utils.c (gdbpy_convert_exception): New function.
769
f1b9e6e7
MK
7702010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
771
772 * mi/mi-main.c (mi_cmd_target_detach): Accept new
773 thread-group id format.
774
74884f7b
JK
7752010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
776
777 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
778
84f4c1fe
PM
7792010-11-11 Phil Muldoon <pmuldoon@redhat.com>
780
781 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
782 NULL.
783 (BPPY_SET_REQUIRE_VALID): Ditto.
784 (bpnum_is_valid): Delete function.
785 (bppy_get_visibility): New function.
786 (bppy_new): Parse for, and validate internal keyword. Pass
787 internal keyword to breakpoint or watchpoint functions.
788 (build_bp_list): New function.
789 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
790 iterate_over_breakpoints.
791 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
792 look-aside vector.
793 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
794 to internal breakpoint chain.
795
796 * breakpoint.c (set_breakpoint_number): New function.
797 (breakpoint_1): Check if breakpoint number is more than zero.
798 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
799 (create_breakpoint_sal): Take a new parameter called internal.
800 Call set_breakpoint_number with internal parameter. Do not
801 mention internal breakpoints. All callers updated.
802 (create_breakpoint): Ditto.
803 (create_breakpoints_sal): Ditto.
804 (watch_command_1): Ditto.
805 (watch_command_wrapper): Take a new parameter called internal.
806 All callers updated.
807 (rwatch_command_wrapper): Ditto.
808 (awatch_command_wrapper): Ditto.
809 (save_breakpoints): Update breakpoint save condition check.
810 (iterate_over_breakpoints): New function.
811 * breakpoint.h: Add conditional python includes. Add py_bp_object
812 and comment to struct breakpoint. Update all callers.
813 * defs.h: Add PyObject definition for GDB builds without Python.
814
4dfea560
DE
8152010-11-10 Doug Evans <dje@google.com>
816
f61a2da7
DE
817 * python/lib/gdb/command/pretty_printers.py
818 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
819
4dfea560
DE
820 * value.c (set_value_enclosing_type): Renamed from
821 value_change_enclosing_type. All callers updated.
822 * value.h (set_value_enclosing_type): Update.
823 * valops.c (value_full_object): Always return a copy if we need to
824 make changes to the input value.
825
a1442452
PA
8262010-11-09 Pedro Alves <pedro@codesourcery.com>
827
828 * breakpoint.c (watch_command_1): Get a pointer of the lazy
829 version of the expression's value, even if reading the value from
830 memory fails. When creating a -location watchpoint, get the
831 value's address from the lazy value pointer.
832
803b5f95
JK
8332010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
834
835 * infrun.c (restore_inferior_thread_state): Use
836 discard_inferior_thread_state to free the data.
837 (discard_inferior_thread_state): xfree also siginfo_data.
838
99e7ae30
DE
8392010-11-05 Doug Evans <dje@google.com>
840
841 Make gdb.parameter("directories") work.
842 New command "set directories".
843 * NEWS: Document them.
844 * source.c (set_directories_command): New function.
845 (show_directories_1): Renamed from show_directories.
846 All callers updated.
847 (show_directories_command): New function.
848 (_initialize_source): Install "directories" as a set/show
849 variable instead of just a show command.
850
f4b8a18d
KW
8512010-11-05 Ken Werner <ken.werner@de.ibm.com>
852
853 * NEWS: Mention OpenCL C language support.
854 * Makefile.in (SFILES): Add opencl-lang.c.
855 (COMMON_OBS): Add opencl-lang.o.
856 * opencl-lang.c: New File
857 * defs.h (enum language): Add language_opencl.
858 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
859 IBM XL C OpenCL compiler.
860 * c-lang.h: Include "parser-defs.h".
861 (evaluate_subexp_c): Declare.
862 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
863 (c_op_print_tab): Add declaration.
864 * eval.c (binop_promote): Handle language_opencl.
865 * c-exp.y: Lookup the primitive types instead of referring to the
866 builtins.
867
075ff26d
JK
8682010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
869
870 Fix configure --enable-plugins --without-python.
871 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
872 * configure: Regenerate.
873
14ad3217
JK
8742010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
875
876 * solib.c (solib_read_symbols): Call exception_fprintf even without
877 FROM_TTY. Print also so->so_name.
878
a9d5ef47
SW
8792010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
880
881 * gdbtypes.h (struct rank): Created subrank.
882 * gdbtypes.c: Initialized subrank for all
883 'BADNESS' constants.
884 (distance_to_ancestor): New function.
885 (is_ancestor): Use distance_to_ancestor.
886 (is_public_ancestor): Ditto.
887 (sum_ranks): Handle subrank.
888 (compare_ranks): Ditto.
889 (rank_one_type): Subrank base conversions.
890
6403aeea
SW
8912010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
892
893 * gdbtypes.h: Create struct rank.
894 Convert all 'BADNESS' macros to const struct rank declarations.
895 (sum_ranks): New function.
896 (compare_ranks): New function.
897 * valops.c (find_oload_champ): Updated.
898 (classify_oload_match): Use compare_ranks.
899 Improved comments.
900 (compare_parameters): Use compare_ranks.
901 * gdbtypes.c: Initialize 'BADNESS' constants.
902 (sum_ranks): New function.
903 (compare_ranks): New function.
904 (compare_badness): Use compare_ranks.
905 (rank_function): Use global constants instead of literals.
906 (rank_one_type): Ditto.
907 Return struct rank.
908 Use sum_ranks.
909
23fa7f66
DE
9102010-11-04 Doug Evans <dje@google.com>
911
912 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
913 (find_pretty_printer): Fix comments.
914
608bcef2
HZ
9152010-11-04 Hui Zhu <teawater@gmail.com>
916
917 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
918
9addb3b9
JB
9192010-11-03 Joel Brobecker <brobecker@adacore.com>
920
921 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
922 and `len' declaration and computation inside block where they
923 are being used.
924
75be741b
JB
9252010-11-03 Joel Brobecker <brobecker@adacore.com>
926
927 * valprint.c (val_print_array_elements): Put back handling of
928 empty arrays.
929
dbc98a8b
KW
9302010-11-03 Ken Werner <ken.werner@de.ibm.com>
931
932 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
933 DIE and set the length of the type.
934 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
935 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
936 return 0 if the corresponding bounds of the type are undefined.
937 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
938 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
939 (val_print_array_elements): Use get_array_bounds to compute the number
940 of array elements instead of dividing the length of the array by the
941 length of the element types.
942 * valarith.c (vector_binop): Likewise.
943 * valops.c (value_cast): Likewise.
944 * c-valprint.c (c_val_print): Likewise.
945 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
946
120bd360
KW
9472010-11-03 Ken Werner <ken.werner@de.ibm.com>
948
949 * valarith.c (value_pos, value_neg, value_complement): Handle
950 vector types.
951 * valops.c (value_one): Likewise.
952
c37f7098
KW
9532010-11-03 Ken Werner <ken.werner@de.ibm.com>
954
955 * value.h (value_non_lval): Declare.
956 * value.c (value_non_lval): New function.
957 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
958 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
959 non-lvalue.
960
7b51bc51
DE
9612010-11-02 Doug Evans <dje@google.com>
962
963 New python module gdb.printing, and new commands info pretty-printer,
964 enable pretty-printer, disable pretty-printer.
965 * NEWS: Mention them.
966 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
967 gdb/command/__init__.py, gdb/command/pretty_printers.py.
968 * python/lib/gdb/__init__.py: Install pretty-printer commands.
969 * python/lib/gdb/printing.py: New file.
970 * python/lib/gdb/command/__init__.py: New file.
971 * python/lib/gdb/command/pretty_printers.py: New file.
972
50c97f38
TT
9732010-11-02 Tom Tromey <tromey@redhat.com>
974
975 * NEWS: Mention Guile removal.
976 * defs.h (enum language) <language_scm>: Remove.
977 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
978 scm-valprint.c.
979 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
980 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
981 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
982 Remove.
983
9dea9163
DE
9842010-11-02 Doug Evans <dje@google.com>
985
986 * top.c: #include "python/python.h".
987 (gdb_init): Add a comment regarding initialize_all_files.
988 Call finish_python_initialization at the end.
989 * python/python.h (finish_python_initialization): Declare.
990 * python/python.c (finish_python_initialization): New function.
991 (_initialize_python): Move python-implemented initialization there
992 and call it.
993 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
994
a289b8f6
JK
9952010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
996
997 Revert:
998 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
999 Pedro Alves <pedro@codesourcery.com>
1000 * gdbthread.h (currently_stepping): New declaration.
1001 * infrun.c (currently_stepping): Remove the forward declaration.
1002 (currently_stepping): Make it global.
1003 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1004 variables tp and step, initialized them. Pass STEP to to_resume.
1005 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1006 * remote.c (currently_stepping_callback): New.
1007 (remote_vcont_resume)
1008 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1009 New variable tp. Call currently_stepping_callback and step such
1010 thread.
1011
2209c807
HZ
10122010-11-01 Hui Zhu <teawater@gmail.com>
1013
1014 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1015
0a2a54b8
HZ
10162010-10-28 Hui Zhu <teawater@gmail.com>
1017
1018 * tracepoint.c (trace_save): Change utp->actions to
1019 utp->step_actions.
1020
284a3db3
JB
10212010-10-26 Joel Brobecker <brobecker@adacore.com>
1022
1023 * (_FILE_OFFSET_BITS): Fix typo in comment.
1024
aed1781d
JB
10252010-10-26 Joel Brobecker <brobecker@adacore.com>
1026
1027 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1028 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1029 (PyEval_ReleaseLock): Define as nothing.
1030
1e3fad37
JB
10312010-10-26 Joel Brobecker <brobecker@adacore.com>
1032
1033 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1034 by call to FILENAME_CMP.
1035
558b1900
JB
10362010-10-26 Joel Brobecker <brobecker@adacore.com>
1037
1038 * dictionary.c (dict_hash): Move assignment out of if condition.
1039
f474844c
JZ
10402010-10-22 Jie Zhang <jie@codesourcery.com>
1041
1042 * Makefile.in (install): Remove dependency of install-only and
1043 recursively invoke make for install-only.
1044 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1045 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1046
8991e9fa
HZ
10472010-10-20 Hui Zhu <teawater@gmail.com>
1048
1049 * tracepoint.c (tfile_get_traceframe_address): Call
1050 extract_signed_integer.
1051 (tfile_trace_find): Call extract_signed_integer and
1052 extract_unsigned_integer. Change data_size to unsigned int.
1053 (tfile_fetch_registers): Call extract_unsigned_integer.
1054 (tfile_xfer_partial): Ditto.
1055 (tfile_get_trace_state_variable_value): Call
1056 extract_signed_integer and extract_unsigned_integer.
1057
21bce120
VP
10582010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1059
1060 * remote.c (remote_get_threadlist): If we got empty
1061 response, bail out immediately, and don't emit any
1062 warnings.
1063
ad8b5167
UW
10642010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1065
1066 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1067 for "mov pc, REG" as well.
1068 (thumb_instruction_changes_pc): Likewise.
1069
79afc5ef
SW
10702010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1071
1072 PR C++/11500:
1073 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1074 * eval.c (evaluate_subexp_standard): Check for overload of
1075 'operator->'.
1076 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1077 (value_x_unop): Ditto.
1078 * valops.c: Include "exceptions.h".
1079 (find_overload_match): Throw NOT_FOUND_ERROR.
1080 (value_struct_elt): Ditto.
1081
cca56ac7
TT
10822010-10-19 Tom Tromey <tromey@redhat.com>
1083
1084 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1085
026ffab7
SW
10862010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1087
1088 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1089 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1090 for conversion.
1091 Make all other conversions illegal.
1092
8c540a24
DE
10932010-10-18 Doug Evans <dje@google.com>
1094
1095 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1096 assumptions of when this case happens. Print "<unnamed typedef>".
1097
3a772aa4
TT
10982010-10-18 Tom Tromey <tromey@redhat.com>
1099
1100 * valprint.c (val_print_string): Pass 'encoding' to
1101 LA_PRINT_STRING.
1102
01f8c46d
JK
11032010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1104
1105 Fix the `stopped language detection' testcase for gcc-4.5.
1106 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1107 * symfile.c (set_initial_language): Move variable filename to a more
1108 inner block. Prefer LANGUAGE_OF_MAIN.
1109 * symtab.c (language_of_main): New variable.
1110 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1111 * symtab.h (language_of_main): New declaration.
1112
8aeb23f3
JK
11132010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1114 Pedro Alves <pedro@codesourcery.com>
1115
1116 * gdbthread.h (currently_stepping): New declaration.
1117 * infrun.c (currently_stepping): Remove the forward declaration.
1118 (currently_stepping): Make it global.
1119 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1120 variables tp and step, initialized them. Pass STEP to to_resume.
1121 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1122 * remote.c (currently_stepping_callback): New.
1123 (remote_vcont_resume)
1124 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1125 New variable tp. Call currently_stepping_callback and step such
1126 thread.
1127
c1e56572
JK
11282010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1129
1130 * infrun.c (follow_exec): Replace symbol_file_add_main by
1131 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1132 breakpoint_re_set.
1133 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1134 clear_symtab_users.
1135 * objfiles.c (free_all_objfiles): Likewise.
1136 * remote-m32r-sdi.c (m32r_load): Likewise.
1137 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1138 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1139 clear_symtab_users with ADD_FLAGS.
1140 (reread_symbols): Use parameter 0 for clear_symtab_users.
1141 (clear_symtab_users): New parameter add_flags. Do not call
1142 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1143 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1144 * symtab.h (clear_symtab_users): New parameter add_flags.
1145
3a182a69
JK
11462010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1147
1148 Fix GCC false warning.
1149 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1150
3a9d7214
PM
11512010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1152
1153 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1154 display of type of method arguments.
1155
09ca9e2e
TT
11562010-10-15 Tom Tromey <tromey@redhat.com>
1157
1158 PR python/11948:
1159 * varobj.c (value_get_print_value): Use val_print_string to print
1160 lazy strings.
1161 * python/py-prettyprint.c (print_string_repr): Use
1162 val_print_string to print lazy strings. Fix cleanup logic.
1163 (print_children): Likewise.
1164 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1165 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1166 Change return type to 'void', add 'addr' argument.
1167 * value.h (val_print_string): Update.
1168 * valprint.c (val_print_string): Add 'encoding' argument.
1169 * printcmd.c (print_formatted): Update.
1170 * p-valprint.c (pascal_val_print): Update.
1171 * m2-valprint.c (print_unpacked_pointer): Update.
1172 (m2_print_array_contents): Likewise.
1173 * jv-valprint.c (java_value_print): Update.
1174 * f-valprint.c (f_val_print): Update.
1175 * c-valprint.c (c_val_print): Update.
1176 * auxv.c (fprint_target_auxv): Update.
1177
92163a10
JK
11782010-10-15 Doug Evans <dje@google.com>
1179 Jan Kratochvil <jan.kratochvil@redhat.com>
1180
1181 PR exp/12117
1182 * gdbtypes.c (check_typedef): Clean up function comment.
1183 Keep track of instance flags as we strip typedefs and create a new
1184 type to preserve them if necessary.
1185 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1186
dae71413
PM
11872010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1188
1189 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1190
7062b0a0
SW
11912010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1192
1193 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1194 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1195 to...
1196 (types_equal): ...here. And changed it as follows:
1197 Outside of typedefs type must be of the same TYPE_CODE.
1198 When compairing two pointers or references they are equal if their
1199 targets are equal.
1200 Correct pointer conversions.
1201
5c3da5ea
PM
12022010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1203
1204 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1205 having fields without names.
1206
577ce03a
TT
12072010-10-13 Tom Tromey <tromey@redhat.com>
1208
1209 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1210
a737a51b
DE
12112010-10-13 Doug Evans <dje@google.com>
1212
0e3509db
DE
1213 New python module gdb.types.
1214 * NEWS: Document it.
1215 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1216 * python/lib/gdb/types.py: New file.
1217
a737a51b
DE
1218 * c-typeprint.c: Whitespace cleanup.
1219 (cp_type_print_method_args): Remove unnecessary forward decl.
1220 (cp_type_print_derivation_info): Ditto.
1221 (c_type_print_varspec_prefix): Mark as static at definition.
1222 (c_type_print_modifier): Fix arg descriptions.
1223
8dc78533
JK
12242010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1225
1226 * python/py-breakpoint.c (bppy_set_condition): New comment.
1227 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1228 failed PyUnicode_Decode.
1229 (cmdpy_completer): Skip element for failed
1230 python_string_to_host_string.
1231 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1232 * python/py-frame.c (frapy_read_var): Extend the function comment.
1233 * python/py-function.c (fnpy_init): Return -1 on failed
1234 python_string_to_host_string.
1235 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1236 the function comment.
1237 (infpy_search_memory): Extend the function comment. Remove the
1238 PyErr_SetString call on already set error state.
1239 * python/py-param.c (set_parameter_value): Extend the function
1240 comment. Return -1 on failed python_string_to_host_string, twice.
1241 (set_attr): Extend the function comment.
1242 (compute_enum_values): Extend the function comment. New variable
1243 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1244 failed python_string_to_host_string.
1245 (get_doc_string): Call gdbpy_print_stack on failed
1246 python_string_to_host_string.
1247 (parmpy_init): Extend the function comment.
1248 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1249 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1250 failed python_string_to_host_string.
1251 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1252 (valpy_binop, valpy_richcompare): Extend the function comment.
1253 * python/python.c
1254 (struct python_env) <error_type, error_value, error_traceback>: New
1255 fields.
1256 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1257 (ensure_python_env): Call PyErr_Fetch.
1258 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1259 failed convert_value_from_python.
1260 (value_get_print_value): Call gdbpy_print_stack on failed
1261 python_string_to_target_python_string.
1262
1bdb0c54
TT
12632010-10-12 Tom Tromey <tromey@redhat.com>
1264
1265 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1266
0526b37a
SW
12672010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1268
1269 * gdbtypes.c (do_is_ancestor): New function.
1270 (is_ancestor): Use do_is_ancestor.
1271 (is_public_ancestor): Use do_is_ancestor.
1272
c1b5be38
PM
12732010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1274
1275 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1276
68770265
MGD
12772010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1278
1279 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1280
64b00020
DE
12812010-10-11 Doug Evans <dje@google.com>
1282
1283 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1284 the address space id too.
1285
43b8e241
JK
12862010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1287
1288 Fix attaching to re-prelinked executables on ppc64.
1289 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1290 initialize it, try to adjust FILESZ field by it.
1291
417b5110
DJ
12922010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1293
1294 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1295 messages if info_verbose.
1296
3bdf2bbd
KW
12972010-10-08 Ken Werner <ken.werner@de.ibm.com>
1298
1299 * valops.c (value_cast): Handle vector types.
1300 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1301
ec3d575a
UW
13022010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1303
1304 * arm-tdep.c (thumb_expand_immediate): New function.
1305 (thumb_instruction_changes_pc): Likewise.
1306 (thumb2_instruction_changes_pc): Likewise.
1307 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1308 prologue parsing. Improved support for optimized code.
1309 (thumb_scan_prologue): Do not reply on line-number information,
1310 use same heuristics as arm_scan_prologue insead.
1311 (skip_prologue_function): Accept functions
1312 "__tls_get_addr" and "__aeabi_read_tp".
1313
4024ca99
UW
13142010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1315 Daniel Jacobowitz <dan@codesourcery.com>
1316
1317 * arm-tdep.c (thumb_in_function_epilogue_p)
1318 (arm_in_function_epilogue_p): New.
1319 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1320 gdbarch_in_function_epilogue_p callback.
1321
855c153f
DE
13222010-10-07 Doug Evans <dje@google.com>
1323
00e14314
DE
1324 * cc-with-index.sh (output_file): Default to a.out.
1325
3876f04e
DE
1326 * dwarf2read.c (mapped_index): Rename member index_table to
1327 symbol_table and index_table_slots to symbol_table_slots.
1328 All uses updated.
1329 (create_symbol_hash_table): Renamed from create_index_table.
1330 All callers updated.
1331 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1332 (write_hash_table): Rename local index_table to symbol_hash_table.
1333
855c153f
DE
1334 * addrmap.h (addrmap_foreach_fn): New typedef.
1335 (addrmap_foreach): Declare.
1336 * addrmap.c (struct addrmap_funcs): New member foreach.
1337 (addrmap_foreach): New function.
1338 (addrmap_fixed_foreach): New function.
1339 (addrmap_fixed_funcs): Update.
1340 (struct mutable_foreach_data): New struct.
1341 (addrmap_mutable_foreach_worker): New function.
1342 (addrmap_mutable_foreach): New function.
1343 (addrmap_mutable_funcs): Update.
1344
1d2a4540
PH
13452010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1346
1347 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1348 more cases.
1349
40658b94
PH
13502010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1351
1352 * ada-lang.c (full_match): Declare.
1353 (ada_match_name): Rename to match_name (we should avoid prefixing static
1354 symbols with "ada_").
1355 (match_name): New name for ada_match_name.
1356 (struct ada_psym_data): Remove and replace with...
1357 (struct match_data): User data for map_matching_symbols.
1358 (ada_add_psyms): Remove.
1359 (aux_add_nonlocal_symbols): New function, used as callback for
1360 map_matching_symbols.
1361 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1362 symbols.
1363 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1364 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1365 Rework to use map_matching_symbols instead of map_ada_symtabs.
1366 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1367 * psymtab.c: Include dependency on dictionary.h.
1368 (match_partial_symbol): New function.
1369 (ada_lookup_partial_symbol): Remove.
1370 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1371 (map_matching_symbols_psymtab): New function.
1372 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1373 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1374
c4d840bd
PH
13752010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1376
1377 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
1378 (wild_match): Change API to be consistent with that of strcmp_iw;
1379 return 0 for a match, and switch operand order.
1380 (full_match): New function.
1381 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1382 matching to allow use of hashing.
1383 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1384 iter_name_next ot iter_match_first, iter_match_next.
1385 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1386 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1387 (iter_name_first_linear): Replace with iter_match_first_linear.
1388 (iter_name_next_linear): Replace with iter_match_next_linear.
1389 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1390 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1391 (dict_iter_match_first): New function.
1392 (dict_iter_match_next): New function.
1393 (dict_hash): New function.
1394 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1395 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 1396
543ecec7
DE
13972010-10-06 Doug Evans <dje@google.com>
1398
1399 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1400
2f608a3a
KW
14012010-10-06 Ken Werner <ken.werner@de.ibm.com>
1402
1403 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1404
aa2e2d8d
DE
14052010-10-06 Doug Evans <dje@google.com>
1406
9c9606fb
DE
1407 * Makefile.in (REQUIRED_SUBDIRS): New var.
1408 (subdir_do): Verify required subdir Makefiles exist.
1409
aa2e2d8d
DE
1410 Create subdir data-directory.
1411 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1412 data-directory/Makefile.in.
1413 (SUBDIRS): Add data-directory.
1414 (all): Remove xml-syscall-copy dependency.
1415 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1416 stamp-syscalls.
1417 (xml-syscall-install): Moved to data-directory/Makefile.in as
1418 install-syscalls.
1419 (install-only): Remove xml-syscall-install dependency.
1420 (all-data-directory): New rule.
1421 (data-directory/Makefile): New rule.
1422 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1423 * configure: Regenerate.
1424 * data-directory/Makefile.in: New file.
1425 * python/lib/gdb/__init__.py: New file.
1426
aa27d0b3
JB
14272010-10-06 Joel Brobecker <brobecker@adacore.com>
1428
1429 Fix ARI warnings in advance_wild_match.
1430 * ada-lang.c (advance_wild_match): Delete local variable t2.
1431 Adjust code accordingly. Minor reformatting.
1432
2844d6b5
KW
14332010-10-06 Ken Werner <ken.werner@de.ibm.com>
1434
1435 * gdbtypes.h (struct main_type): Remove flag_nottext.
1436 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1437 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1438 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1439 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1440 of TYPE_FLAG_NOTTEXT.
1441 (init_type): Remove the initialization of the flag_nottext field.
1442 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1443 TYPE_FLAG_NOTTEXT.
1444 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1445
2fdf6df6
DE
14462010-10-04 Doug Evans <dje@google.com>
1447
ea65fe05
DE
1448 * cc-with-index.sh: New file.
1449
2fdf6df6
DE
1450 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1451 function comment.
1452 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1453 (create_cus_from_index, create_addrmap_from_index): Ditto.
1454 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1455 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1456 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
1457 (eq_strtab_entry, create_strtab, add_string): Ditto.
1458 (hash_strtab_entry): Ditto.
1459 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1460 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1461 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1462 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1463 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1464 (write_psymtabs_to_index): Ditto.
2fdf6df6 1465
40bc484c
JB
14662010-10-04 Joel Brobecker <brobecker@adacore.com>
1467
1468 * ada-lang.c: #include "value.h".
1469 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1470 arguments. Implement using value_allocate_space_in_inferior
1471 instead of allocating memory from the stack.
1472 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1473 calls to ensure_lval.
1474 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1475 calls to make_array_descriptor and ensure_lval.
1476 * ada-lang.h (ada_convert_actual): Update declaration.
1477 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1478
f17618ea
DE
14792010-10-04 Doug Evans <dje@google.com>
1480
1481 * python/python.c (_initialize_python): Define new function
1482 GdbSetPythonDirectory in python. Use it to update sys.path and
1483 gdb.__path__.
1484
83e3a93c
PH
14852010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1486
1487 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1488 incorporating and generalizing print_record_field_types.
1489 (print_record_field_types): Change return value and update comment.
1490 Re-implement using print_selected_record_field_types.
1491 (print_choices): Print "=>" here.
1492 Handle case of unencoded variant branch.
1493 (print_variant_clauses): Reformat comment.
1494 Special-case unencoded variant branch.
1495
14962010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
1497
1498 * ada-lang.c (wild_match): Reimplement.
1499 Change API to eliminate unused length argument, reverse arguments and
1500 make 0 the 'true' return value.
1501 (advance_wild_match): New auxiliary function for wild_match to improve
1502 readability.
1503 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1504 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1505 API for wild_match.
1506 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1507 wild_match.
1508 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1509
11570e71
DE
15102010-10-01 Doug Evans <dje@google.com>
1511
1512 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1513 for `save gdb-index' command.
1514
72b9f47f
TT
15152010-10-01 Tom Tromey <tromey@redhat.com>
1516
1517 * symfile.h (allocate_symtab): Update.
1518 * symfile.c (allocate_symtab): Make 'filename' const.
1519 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1520 (add_psymbol_to_list): Likewise.
1521 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1522 const.
1523 (add_psymbol_to_list): Update.
1524 * mdebugread.c (new_symtab): Make 'name' const.
1525 (psymtab_to_symtab_1): Make 'filename' const.
1526 * elfread.c (elfstab_offset_sections): Update.
1527 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1528 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1529 (psymtab_include_file_name): Update.
1530 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1531 * buildsym.h (start_subfile): Update.
1532 * buildsym.c (start_subfile): Make arguments const.
1533
55e39473
MS
15342010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1535
1536 * fork-child.c (breakup_args): Fix crash if shell forking is
1537 disabled at compile time.
1538
05e522ef
JB
15392010-10-01 Joel Brobecker <brobecker@adacore.com>
1540
1541 * ada-lang.c (desc_bounds): Add handling of the case where
1542 the P_BOUNDS field is a pointer to a stub.
1543 (desc_data_target_type): Same for P_ARRAY field.
1544 (ada_check_typedef): Strip the typedef layers from the type
1545 found by ada_find_any_type.
1546
49a45ecf
JB
15472010-10-01 Joel Brobecker <brobecker@adacore.com>
1548
1549 * sparc-tdep.c (sparc32_frame_align): New function.
1550 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1551 * sparc64-tdep.c (sparc64_frame_align): New function.
1552 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1553
a5916a62
L
15542010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1555
1556 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1557
00b5771c
TT
15582010-09-30 Tom Tromey <tromey@redhat.com>
1559
1560 * symfile.h (struct sym_fns) <next>: Remove.
1561 (add_symtab_fns): Update.
1562 * symfile.c (sym_fns_ptr): New typedef.
1563 (symtab_fns): Now a VEC.
1564 (add_symtab_fns): Update. Change argument type.
1565 (find_sym_fns): Update. Change return type.
1566 (get_symfile_segment_data): Update.
1567 * objfiles.h (struct objfile) <sf>: Now const.
1568 * somread.c (som_sym_fns): Now const. Update.
1569 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1570 * mipsread.c (ecoff_sym_fns): Now const. Update.
1571 * machoread.c (macho_sym_fns): Now const. Update.
1572 * elfread.c (elf_sym_fns): Now const. Update.
1573 (elf_sym_fns_gdb_index): Likewise.
1574 * dbxread.c (aout_sym_fns): Now const. Update.
1575 * coffread.c (coff_sym_fns): Now const. Update.
1576
38f12cfc
TT
15772010-09-30 Tom Tromey <tromey@redhat.com>
1578
1579 * value.c (value_primitive_field): Take 'offset' into account for
1580 packed field.
1581
9ae8282d
TT
15822010-09-30 Tom Tromey <tromey@redhat.com>
1583
1584 * completer.c (count_struct_fields): Handle anonymous structs and
1585 unions.
1586 (add_struct_fields): Likewise.
1587
e9e07ba6
JK
15882010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1589
1590 Fix printing parameters of inlined functions.
1591 * ada-lang.c (is_known_support_routine)
1592 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1593 for find_frame_funname.
1594 * python/py-frame.c (frapy_name): Likewise.
1595 * stack.c (find_frame_funname): New parameter funcp. Update the
1596 function comment. Fill it in.
1597 (print_frame): New variable func. Initialize it by
1598 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1599 FUNC as the parameter of print_args_stub.
1600 * stack.h (find_frame_funname): New parameter funcp. Remove the
1601 function declaration comment.
1602
cd2effb2
JK
16032010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1604
1605 PR corefiles/12071.
1606 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1607 tp. Iterate INFERIOR_LIST and call target_has_execution.
1608
bceffbf3
JK
16092010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1610
1611 Fix GDB crash on inferior calls with self-referencing classes.
1612 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1613 member fields.
1614
abc72ce4
DE
16152010-09-29 Doug Evans <dje@google.com>
1616
1617 Workaround for gcc/45682.
1618 * dwarf2read.c (partial_die_info): New fields fixup_called,
1619 linkage_name.
1620 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1621 Move definition next to use. Use linkage_name to determine if class
1622 is in a namespace. All callers updated.
1623 (fixup_partial_die): Return early if already called.
1624 Set fixup_called when done.
1625 (guess_full_die_structure_name): New function.
1626 (determine_prefix): Call it for class/struct/union dies if c++ and
1627 .debug_types section is present and parent is DW_TAG_compile_unit.
1628
0ac7be25
JB
16292010-09-28 Joel Brobecker <brobecker@adacore.com>
1630
1631 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1632 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1633
6e1bb179
JB
16342010-09-28 Joel Brobecker <brobecker@adacore.com>
1635
1636 * NEWS: Announce Ravenscar Profile support.
1637
036b1ba8
JB
16382010-09-28 Joel Brobecker <brobecker@adacore.com>
1639 Jerome Guitton <guitton@adacore.com>
1640
1641 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1642 New files.
1643 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1644 ravenscar-sparc-thread.o to gdb_target_obs.
1645
474011fb
JB
16462010-09-28 Joel Brobecker <brobecker@adacore.com>
1647
1648 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1649 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1650
99e24b90
PM
16512010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1652
1653 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1654 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1655 skip_main_prologue method.
1656
987d643c
TT
16572010-09-27 Tom Tromey <tromey@redhat.com>
1658
1659 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1660 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1661 Only emit a given psymbol once.
1662 (struct signatured_type_index_data) <psyms_seen>: New field.
1663 (write_one_signatured_type): Update.
1664 (cleanup_htab): New function.
1665 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1666 version to 3.
1667 (save_gdb_index_command): Update index documentation.
1668
d3aff959
TT
16692010-09-27 Tom Tromey <tromey@redhat.com>
1670
1671 * bcache.c (expand_hash_table): Use hash_function, not hash.
1672
716b65bf
TT
16732010-09-27 Tom Tromey <tromey@redhat.com>
1674
1675 * gdb_wchar.h: Change minimum libiconv to 0x108.
1676
1736ad11
JK
16772010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1678
1679 Fix lost siginfo_t for inferior calls.
1680 * infrun.c
1681 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1682 (save_inferior_thread_state): New variables regcache, gdbarch and
1683 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1684 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1685 using REGCACHE.
1686 (restore_inferior_thread_state): New variables regcache and gdbarch.
1687 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1688 REGCACHE. Free also SIGINFO_DATA.
1689
4b5246aa
TT
16902010-09-24 Tom Tromey <tromey@redhat.com>
1691
1692 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1693 MAYBE_SWAPs.
1694 (dw2_map_symbol_names): Likewise.
1695
2a7d6a25
SW
16962010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1697
1698 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1699 discard_cleanups do_cleanups.
1700
b53a1623
PA
17012010-09-24 Pedro Alves <pedro@codesourcery.com>
1702
e6ee044d
PA
1703 PR gdb/11842
1704
b53a1623
PA
1705 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1706 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1707 si_code is < 0. Check for si_code == SI_TIMER before checking for
1708 si_code < 0.
1709
96a8853a
PA
17102010-09-24 Pedro Alves <pedro@codesourcery.com>
1711
1712 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1713
39383a48
JB
17142010-09-22 Joel Brobecker <brobecker@adacore.com>
1715
1716 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1717 debugging a core file.
1718
d31d2fc3
JK
17192010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1720
1721 Code cleanup.
1722 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1723 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1724 xfree.
1725 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1726 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1727 Remove.
1728 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1729 Remove the conditional.
1730 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1731
7f6130ff
JK
17322010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1733
1734 * main.c: Include objfiles.h.
1735 (captured_main): New variable objfile. Call
1736 load_auto_scripts_for_objfile for ALL_OBJFILES.
1737
c2b0a229
JK
17382010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1739
1740 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1741 DW_TAG_constant.
1742
72929c62
JB
17432010-09-22 Joel Brobecker <brobecker@adacore.com>
1744
1745 * dwarf2read.c (scan_partial_symbols): Add handling of
1746 DW_TAG_constant DIEs.
1747 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1748
496c0e1b
JB
17492010-09-22 Joel Brobecker <brobecker@adacore.com>
1750
1751 * configure.ac: Add support for --enable-gdbserver.
1752 * configure: Regenerate.
1753
ec322823
SW
17542010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1755
1756 PR C++/12028
1757 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1758 'old_cleanups' reassignment.
1759
1558ab4c
JK
17602010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1761
1762 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1763 characters.
1764
875b4ff5
PM
17652010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1766
1767 PR mi/11407
1768 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1769 read_var_value and common_val_print and print a warning.
1770
65dedcb2
JK
17712010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1772
1773 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1774 keep the list in alphabetical order. Use longer e-mail address.
1775
0e780a22
TT
17762010-09-15 Tom Tromey <tromey@redhat.com>
1777
1778 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1779
62234ccc
TT
17802010-09-15 Tom Tromey <tromey@redhat.com>
1781
1782 * charset.c (iconv_open): New define.
1783 (iconv): Likewise.
1784 (iconv_close): Likewise.
1785 (phony_iconv_open): Add "phony_" prefix.
1786 (phony_iconv_close): Likewise.
1787 (phony_iconv): Likewise.
1788 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1789 Change how INTERMEDIATE_ENCODING is defined.
1790
4950bc1c
DE
17912010-09-15 Doug Evans <dje@google.com>
1792
1793 * dwarf2read.c (struct die_info): Fix comment.
1794
349126ea
AM
17952010-09-15 Alan Modra <amodra@gmail.com>
1796
1797 PR 4606
1798 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1799 than setting SEC_NEVER_LOAD on sections that need not be copied.
1800
923c6a3d
TT
18012010-09-14 Tom Tromey <tromey@redhat.com>
1802
1803 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1804 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1805 Declare.
1806 * symfile.h (extend_psymbol_list): Remove.
1807 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1808 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1809 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1810
a9e6a4bb
JK
18112010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1812
1813 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1814 Update the comment.
1815
7155d578
TT
18162010-09-14 Tom Tromey <tromey@redhat.com>
1817
1818 PR symtab/8399:
1819 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1820 for unrecognized frame base expression.
1821
515ed532
TT
18222010-09-14 Tom Tromey <tromey@redhat.com>
1823
1824 PR exp/11803:
1825 * value.c (value_static_field): Use value_of_variable.
1826
b467f580
PM
18272010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1828
1829 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1830 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1831
450ca57c
SW
18322010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1833
1834 PR symtab/11992:
1835 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1836 UNKNOWN_CPP_NAME.
1837
1aee7009
JB
18382010-09-13 Joel Brobecker <brobecker@adacore.com>
1839
1840 * NEWS: Add x86-lynxos to the list of platforms supported by
1841 gdbserver.
1842
5ec6ebf9
JB
18432010-09-13 Joel Brobecker <brobecker@adacore.com>
1844
1845 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1846
1863c96c
TT
18472010-09-13 Tom Tromey <tromey@redhat.com>
1848
1849 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1850
0c5acf93
L
18512010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1852
1853 * i386-tdep.c (i386_ymm_type): Set type name to
1854 builtin_type_vec256i.
1855
1c6272a6
MS
18562010-09-12 Michael Snyder <msnyder@vmware.com>
1857
1858 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1859
e866c497
L
18602010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1861
1862 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1863
9191d390
L
18642010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1865
1866 * amd64-tdep.c (amd64_register_name): Removed.
1867 (amd64_init_abi): Don't call set_gdbarch_register_name.
1868
1869 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1870
1871 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1872
8d4d924b
JK
18732010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1874 Paul Bolle <pebolle@tiscali.nl>
1875
1876 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1877 * cli-logging.c (struct saved_output_files) <targerr>: New.
1878 (set_logging_redirect, pop_output_files, handle_redirections):
1879 Redirect also gdb_stdtargerr.
1880 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1881 declarations.
1882 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1883 also gdb_stdtargerr.
1884 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1885 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1886 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1887 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1888 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1889 New functions.
1890
3329c4b5
PM
18912010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1892
1893 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1894 to display a host address.
1895 * monitor.c (monitor_read_memory): Likewise.
1896 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1897
5e8db398
PM
18982010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1899
1900 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1901 `CORE_ADDRESS' as it might contain target addresses.
1902
37049e31
PM
19032010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1904
1905 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1906 before cast to pointer to avoid warning.
1907
351a3e56
KB
19082010-09-09 Kevin Buettner <kevinb@redhat.com>
1909
1910 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1911 type to be signed.
349126ea 1912
6afafb54
UW
19132010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1914
1915 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1916 anonymous class partial DIEs.
1917
60430eff
DJ
19182010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1919
1920 * dwarf2read.c (dwarf2_compute_name): Check that the first
1921 argument is a pointer.
1922
f1078f66
DJ
19232010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1924
1925 * dwarf2read.c (read_func_scope, read_structure_type)
1926 (read_common_block): Check for a NULL return from new_symbol.
1927
82430852
JK
19282010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1929
1930 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1931
c767944b
DJ
19322010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1933
1934 * dwarf2read.c (read_structure_type): Move processing of
1935 fields and member functions from here...
1936 (process_structure_scope): ... to here.
1937
561d3825
DJ
19382010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1939
1940 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1941 the domain type.
1942 (gnuv3_make_method_ptr): Likewise.
1943
9bd89d67
TT
19442010-09-08 Tom Tromey <tromey@redhat.com>
1945
1946 * breakpoint.c (create_breakpoint): Add missing _().
1947
1d040b0d
DE
19482010-09-08 Doug Evans <dje@google.com>
1949
1950 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1951
774b6a14
TT
19522010-09-08 Tom Tromey <tromey@redhat.com>
1953
1954 Revert:
1955 2010-09-01 Tom Tromey <tromey@redhat.com>
1956 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1957 symtab.h: Revert earlier change.
1958
fc956729
SW
19592010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1960
1961 * psymtab.c (add_psymbol_to_bcache): Initialize
1962 obj_section.
1963 memset psymbol.ginfo.value to 0.
1964
48f9886d
PA
19652010-09-06 Pedro Alves <pedro@codesourcery.com>
1966
1967 * infrun.c (resume): Extend comment on ignoring single-step
1968 requests on vfork parents waiting for a vfork-done.
1969
423ec54c
JK
19702010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1971 Pedro Alves <pedro@codesourcery.com>
1972
1973 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1974 is NULL.
1975 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1976 target_signal type.
1977 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1978 calling strsignal. Use enum target_signal type for saved_signo.
1979 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1980 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1981 target_signal_to_host before calling strsignal.
1982 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1983 TARGET_SIGNAL_0.
1984
a6eb9bc8
JK
19852010-09-06 Pedro Alves <pedro@codesourcery.com>
1986 Jan Kratochvil <jan.kratochvil@redhat.com>
1987
1988 * common/signals.c (ANY): Remove.
1989 (SET): No longer use ANY.
1990
74609e71
YQ
19912010-09-06 Yao Qi <yao@codesourcery.com>
1992
1993 * infrunc(resume): When inferior is waiting_for_vfork_done,
1994 clear step and don't use displaced stepping.
1995
8464be76
DJ
19962010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1997
1998 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1999 value specially.
2000
33d62d64
JK
20012010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2002
2003 Code cleanup - split print_stop_reason.
2004 * infrun.c (enum inferior_stop_reason): Remove.
2005 (print_stop_reason): Remove by splitting into ...
2006 (print_exited_reason, print_signal_exited_reason)
2007 (print_no_history_reason, print_signal_received_reason)
2008 (print_end_stepping_range_reason): ... these new functions. Update
2009 the preceding comment.
2010 (handle_inferior_event): Change the calls to print_exited_reason,
2011 print_signal_exited_reason, print_no_history_reason,
2012 print_signal_received_reason, print_end_stepping_range_reason.
2013 (handle_step_into_function, handle_step_into_function_backward):
2014 Change the calls to print_end_stepping_range_reason.
2015
14dba4b4
JK
20162010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2017
2018 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2019 * cli-out.c: Include vec.h.
2020 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2021 variable stream, initialize it, use it.
2022 (cli_redirect): New function comment. Replace the stream and
2023 original_stream fields by the new streams field. Remove the
2024 original_stream != NULL conditional, assert error on NULL instead.
2025 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2026 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2027 original_stream fields by the new streams field.
2028 (cli_out_set_stream): Replace the stream field by the new streams
2029 field.
2030 * cli-out.h: Include vec.h.
2031 (ui_filep): New typedef, call DEF_VEC_P for it.
2032 (struct cli_ui_out_data): Replace the stream and original_stream
2033 fields by the new streams field.
2034 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2035 NULL first. Extend the comment.
2036 (handle_redirections): Call ui_out_redirect with output.
2037 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2038 calls outside of the TRY_CATCH block.
2039
b04bc5d4 20402010-09-03 Joel Brobecker <brobecker@adacore.com>
2041
2042 GDB 7.2 released.
2043
080db4e0
JB
20442010-09-02 Joel Brobecker <brobecker@adacore.com>
2045
2046 Back out the following change:
2047 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2048 | * record.c (set_record_pic_cmdlist,
2049 | show_record_pic_cmdlist): New variables.
2050 | (set_record_pic_command,
2051 | show_record_pic_command): New functions.
2052 | (record_pic_function, record_pic_line, record_pic_enum,
2053 | set_record_pic_type, record_pic_hide_nofunction,
2054 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2055 | (record_pic_fputs): New function.
2056 | (function_list, node_list, edge_list): New struct.
2057 | (function_list, node_list, edge_list): New variables.
2058 | (record_pic_cleanups, record_pic_node,
2059 | record_pic_edge, cmd_record_pic): New functions.
2060 | (_initialize_record): Add new commands for record pic.
2061
0a4f61e3
DJ
20622010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2063
2064 * config.in, configure: Regenerated.
2065 * configure.ac: Check for waitpid.
2066 * ser-pipe.c (pipe_close): Wait for the program to exit.
2067
58b61394
JK
20682010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2069
ba720883 2070 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
2071 (set_logging_overwrite): New function.
2072 (logging_redirect): New comment.
2073 (logging_no_redirect_file, set_logging_redirect)
2074 (pop_output_files) <logging_no_redirect_file>: New.
2075 (handle_redirections) <!logging_redirect>: New variable
2076 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2077 discard cleanup for the close of former OUTPUT. Set
2078 LOGGING_NO_REDIRECT_FILE.
2079 (handle_redirections) <logging_redirect>: gdb_assert
2080 LOGGING_NO_REDIRECT_FILE.
2081 (show_logging_command) <logging_redirect handling>: Adjust messages
2082 for SAVED_FILENAME not NULL.
2083 (_initialize_cli_logging): Install set_logging_overwrite and
2084 set_logging_redirect.
2085
706774f2
JK
20862010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2087
2088 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2089
9a35ccf7
JK
20902010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2091
2092 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2093 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2094 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2095 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2096
ba9b2ec3
YQ
20972010-09-02 Yao Qi <yao@codesourcery.com>
2098
2099 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2100 number from a WIFSIGNALED status.
2101
faf68db7
TT
21022010-09-01 Tom Tromey <tromey@redhat.com>
2103
2104 * symtab.h (lookup_type_symbol): Declare.
2105 * symtab.c (lookup_symbol_in_language_full): Rename from
2106 lookup_symbol_in_language. Add 'for_type' argument.
2107 (lookup_symbol_in_language): New function.
2108 (lookup_type_symbol): Likewise.
2109 (lookup_symbol_aux): Add 'for_type' argument.
2110 (match_symbol_aux): New function.
2111 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2112 (match_transparent_type): New function.
2113 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2114 * symfile.h (struct quick_symbol_functions)
2115 <pre_expand_symtabs_matching>: Remove.
2116 <expand_one_symtab_matching>: New field.
2117 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2118 (pre_expand_symtabs_matching_psymtabs): Remove.
2119 (psym_functions): Update.
2120 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2121 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2122 (dw2_pre_expand_symtabs_matching): Remove.
2123 (dw2_expand_one_symtab_matching): New function.
2124 (dwarf2_gdb_index_functions): Update.
2125
248c9dbc
JB
21262010-09-01 Joel Brobecker <brobecker@adacore.com>
2127
2128 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2129
f75d858b
MK
21302010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2131
2132 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2133 as a feature reported by -list-target-features.
2134
0482b03b
JB
21352010-09-01 Joel Brobecker <brobecker@adacore.com>
2136
2137 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2138 (powerpc-32.o, powerpc-32.c): New rules.
2139 (clean): Also remove powerpc-32.c.
2140 * regformats/rs6000/powerpc-32.dat: Generate.
2141
710e1a31
SW
21422010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2143
2144 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2145 psymbol_bcache_init.
2146 * psymtab.h (psymbol_bcache_init): New function prototype.
2147 (psymbol_bcache_free): New function prototype.
2148 (psymbol_bcache_get_bcache): New function prototype.
2149 * psymtab.c (psymbol_bcache_init): New function.
2150 (psymbol_bcache_free): New function.
2151 (psymbol_bcache_full): New function.
2152 (psymbol_bcache_get_bcache): New function.
2153 (add_psymbol_to_bcache): use psymbol_bcache_full.
2154 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2155 psymbol_bcache.
2156 * symmisc.c (print_symbol_bcache_statistics): Updated.
2157 (print_objfile_statistics): Updated.
2158 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2159 psymbol_cache.
2160 (free_objfile): Use psymbol_bcache_free.
2161
64382290
TT
21622010-08-31 Tom Tromey <tromey@redhat.com>
2163
2164 PR c++/11961:
2165 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2166 Don't set TYPE_NAME on the type.
2167
8bbed405
MS
21682010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2169
2170 * infrun.c (set_exec_direction_func): Error out if target does not
2171 support reverse execution.
2172
06253dd3
JK
21732010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2174
2175 Make linux_get_siginfo_type `type *' unique.
2176 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2177 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2178 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2179 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2180 (_initialize_linux_tdep): New.
2181
b8edc417
JK
21822010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2183
2184 Code cleanup.
2185 * defs.h (find_memory_region_ftype): New typedef.
2186 (exec_set_find_memory_regions): Use it.
2187 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2188 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2189 * gcore.c (objfile_find_memory_regions): Likewise.
2190 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2191 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2192 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2193 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2194 find_memory_region_ftype.
2195 (insert_dbx_link_bpt_in_region): Likewise.
2196 (iterate_over_mappings): Likewise. Drop the comment part about the
2197 function prototype.
2198 (find_memory_regions_callback): Use find_memory_region_ftype.
2199 (proc_find_memory_regions): Likewise.
2200 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2201 find_memory_region_ftype.
2202 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2203 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2204
cbd70537
SW
22052010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2206
2207 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2208 'static partial_symbol psymbol'.
2209 (psymbol_hash): New function.
2210 (psymbol_compare): New function.
2211 * bcache.c (hash_continue): New.
2212 (hash): Use hash_continue.
2213 * bcache.c: Add hash_function and compare_function
2214 pointers to bcache struct.
2215 (bcache_full): Use bcache->hash_function, and
2216 bcache->compare_function.
2217 (bcache_compare): New function.
2218 (bcache_xmalloc): Take hash_function and
2219 compare_function arguments and initialize the
2220 bcach's pointers.
2221 Updated comment.
2222 * objfiles.c (allocate_objfile): Updated.
2223 * symfile.c (reread_symbols): Updated.
2224 * python/py-type.c (typy_richcompare): Updated.
2225
03f17ccf
TT
22262010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2227 Tom Tromey <tromey@redhat.com>
2228
2229 PR python/11792:
2230 * python/py-value.c (valpy_get_dynamic_type): New function.
2231 (value_object_getset): Add "dynamic_type".
2232 (valpy_get_type): Fail on error.
2233
25b41d01
YQ
22342010-08-30 Yao Qi <yao@codesourcery.com>
2235
2236 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2237 (arm_linux_syscall_next_pc): New.
2238 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2239 (arm_linux_init_abi): Initialize syscall_next_pc.
2240 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2241 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2242 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2243 Declare arm_frame_is_thumb.
2244
5760d0ab
JK
22452010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2246
2247 Code cleanup.
2248 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2249 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2250 code.
2251 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2252 calls of bpstat_alloc. Remove explicit bs chain termination.
2253
46a96992
JK
22542010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2255
2256 Code cleanup.
2257 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2258 (my_waitpid): Likewise.
2259
36374493
DE
22602010-08-27 Doug Evans <dje@google.com>
2261
2262 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2263 as appropriate.
2264
8b93c54c
TT
22652010-08-27 Tom Tromey <tromey@redhat.com>
2266
2267 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2268 TYPE_FIELD_IGNORE_BITS.
2269
16be1145
DE
22702010-08-27 Doug Evans <dje@google.com>
2271
2272 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2273 the order they're defined in. munmap .debug_types buffer.
2274
e254ef6a
DE
22752010-08-26 Doug Evans <dje@google.com>
2276
2277 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2278 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2279 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2280 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2281 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2282 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2283 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2284 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2285 (write_psymtabs_to_index): Ditto.
2286
ae53ffa4
PA
22872010-08-26 Pedro Alves <pedro@codesourcery.com>
2288
2289 * NEWS: Mention libthread_db debugging with core files.
2290
c6da4cef
DE
22912010-08-26 Doug Evans <dje@google.com>
2292
2293 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2294 forward decl. Pass pst->dirname to dwarf_decode_lines.
2295 (psymtab_include_file_name): New function.
2296 (dwarf_decode_lines): Call it. Update comments.
2297
cd02d79d
PA
22982010-08-25 Pedro Alves <pedro@codesourcery.com>
2299
2300 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2301 compilation unit being different from target die's.
2302
673bfd45
DE
23032010-08-24 Doug Evans <dje@google.com>
2304
2305 PR symtab/11942
2306 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2307 debug_types_type_hash.
2308 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2309 All uses updated.
2310 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2311 appropriate type_hash table. All callers updated.
2312 (allocate_signatured_type_table): Renamed from
2313 allocate_signatured_type_hash_table. All callers updated.
2314 (create_signatured_type_table_from_index): Renamed from
2315 create_signatured_type_hash_from_index. All callers updated.
2316 (read_die_type): Add comment. Move actual reading to ...
2317 (read_die_type_1): ... here. New function.
2318 (follow_die_ref_or_sig): Tweak comment.
2319 (set_die_type): Rewrite to use appropriate choice of
2320 debug_info_type_hash or debug_types_type_hash.
2321 (get_die_type_at_offset): New function.
2322 (get_die_type): Call it.
2323
e8fd65ef
JK
23242010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 * python/py-type.c (typy_richcompare): Initialize worklist.
2327
9779414d
DJ
23282010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2329 Kazu Hirata <kazu@codesourcery.com>
2330 Jonathan Larmour <jifl@eCosCentric.com>
2331
2332 * arm-tdep.c: Include features/arm-with-m.c.
2333 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2334 call this function.
2335 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2336 Check is_m after force-mode.
2337 (arm_gdbarch_init): Check the binary before the target description.
2338 Add check for M profile attribute. If we have an M-profile device,
2339 but no target register description, use arm-with-m. Recognize the
2340 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2341 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2342 * arm-tdep.h (XPSR_T): Define.
2343 (struct gdbarch_tdep): Add is_m member.
2344 * features/arm-m-profile.xml, features/arm-with-m.c,
2345 features/arm-with-m.xml: New files.
2346
9dc481d3
DE
23472010-08-23 Doug Evans <dje@google.com>
2348
2349 * dwarf2read.c (read_structure_type): Add comment.
2350 (read_enumeration_type): Add comment.
2351 (process_enumeration_scope): Move definition of some locals
2352 closer to their use.
2353 (read_namespace_type): Add comment.
e71ec853 2354 (set_die_type): Fix typo in comment.
9dc481d3 2355
f9ffd4bb
TT
23562010-08-23 Tom Tromey <tromey@redhat.com>
2357
2358 PR python/11145:
2359 * python/py-value.c: Include expression.h.
2360 (valpy_do_cast): New function.
2361 (valpy_cast): Use it.
2362 (valpy_dynamic_cast): New function.
2363 (valpy_reinterpret_cast): Likewise.
2364 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2365
96f73ba5
TT
23662010-08-23 Tom Tromey <tromey@redhat.com>
2367
2368 PR python/11391:
2369 * python/py-value.c (valpy_nonzero): Don't throw error for other
2370 Value types.
2371
d839c8a4
TT
23722010-08-23 Tom Tromey <tromey@redhat.com>
2373
2374 PR python/10676:
2375 * python/py-type.c: Include bcache.h, vec.h.
2376 (struct type_equality_entry): New.
2377 (compare_strings): New function.
2378 (check_types_equal): Likewise.
2379 (check_types_worklist): Likewise.
2380 (typy_richcompare): Likewise.
2381 (type_object_type): Set tp_richcompare field.
2382
05d0e1e7
TT
23832010-08-23 Tom Tromey <tromey@redhat.com>
2384
2385 PR python/10953:
2386 * python/py-type.c (typy_fields): Call check_typedef.
2387 (typy_template_argument): Add TRY_CATCH.
2388
702c2711
TT
23892010-08-23 Tom Tromey <tromey@redhat.com>
2390
2391 PR python/11915:
2392 * python/py-type.c (typy_array): New function.
2393 (type_object_methods): Add "array".
2394
4a532131
PA
23952010-08-20 Pedro Alves <pedro@codesourcery.com>
2396
2397 * python/python.c: Include "serial.h".
2398 (gdbpy_event_fds): Change type to `struct serial *' a array from
2399 int array.
2400 (gdbpy_run_events): Change parameters. Use serial_readchar in
2401 place of read.
2402 (gdbpy_post_event): Use serial_write in place of write.
2403 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2404 serial_async in place of add_file_handler.
2405
58f07bae
PA
24062010-08-20 Pedro Alves <pedro@codesourcery.com>
2407
2408 * serial.h (gdb_pipe, serial_pipe): Declare.
2409 * serial.c (serial_interface_lookup): Take a const char pointer.
2410 (serial_fdopen): Rename to ...
2411 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2412 Call the OPS' fdopen function if there is one.
2413 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2414 (serial_pipe): New.
2415 (struct serial_ops) <fdopen>: New field.
2416
2417 * ser-mingw.c (free_pipe_state):
2418 (free_pipe_state): Close output on non-pex pipes.
2419 (pipe_windows_fdopen): New.
2420 (gdb_pipe): New.
2421 (_initialize_ser_windows): Register pipe_windows_fdopen.
2422 * ser-go32.c (gdb_pipe): New.
2423 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2424 no state pointer.
2425 (pipe_ops): Delete.
2426 (gdb_pipe): New.
2427
3da10d80
KS
24282010-08-20 Keith Seitz <keiths@redhat.com>
2429
2430 PR symtab/11465:
889bf7c5 2431 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
2432 (struct dwarf2_cu): Add vector method_list.
2433 (scan_partial_symbols): Count methods for union, class, structure,
2434 and interface types.
2435 (add_to_method_list): New function.
2436 (free_delayed_list): New function.
2437 (compute_delayed_physnames): New function.
2438 (process_full_comp_unit): Make a cleanup for the CU's delayed
2439 physname list, compute the delayed physnames, and free the
2440 the list.
2441 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2442 of the physname until after the CU is read.
2443
2444 * dwarf2read.c (read_structure_type): Check if the current
2445 DIE's type was already completed after dwarf2_full_name
2446 was called.
889bf7c5 2447
ca11e899
SS
24482010-08-19 Stan Shebs <stan@codesourcery.com>
2449
2450 * NEWS: Mention some additional changes.
2451
4d2dc20a
TT
24522010-08-19 Tom Tromey <tromey@redhat.com>
2453
2454 * Makefile.in (install-python): Add DESTDIR.
2455
d30f5e1f
DE
24562010-08-19 Doug Evans <dje@google.com>
2457
2458 PR exp/11926
2459 * parser-defs.h (parse_float, parse_c_float): Declare.
2460 * parse.c (parse_float, parse_c_float): New function.
2461 * c-exp.y (parse_number): Call parse_c_float.
2462 * objc-exp.y (parse_number): Ditto.
2463 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2464 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2465
2837d59e
JB
24662010-08-19 Joel Brobecker <brobecker@adacore.com>
2467
2468 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2469 the arguments in the correct order.
2470 * symtab.c (maybe_add_partial_symtab_filename): Declare
2471 the arguments in the correct order.
2472
35633fef
JK
24732010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2474
2475 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2476 initialize it by null_frame_id, wrap its usage by get_frame_id,
2477 frame_id_p and frame_find_by_id.
2478
94f7449c
TT
24792010-08-18 Tom Tromey <tromey@redhat.com>
2480
2481 PR python/11900:
2482 * configure: Rebuild.
2483 * configure.ac: Add install-python to CONFIG_INSTALL.
2484 * Makefile.in (install-python): New.
2485
f3574227
DE
24862010-08-18 Doug Evans <dje@google.com>
2487
2488 * gdb_assert.h (gdb_assert_not_reached): New macro.
2489 (gdb_assert_fail): Fix typo in comment.
2490 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2491 gdb_assert (0).
2492 * darwin-nat.c (darwin_check_new_threads): Ditto.
2493 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2494 (munmap_section_buffer): Ditto.
2495 * m32c-tdep.c (make_types): Ditto.
2496 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2497 * macroexp.c (get_character_constant): Ditto.
2498 (get_string_literal): Ditto.
2499 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2500 (mep_pseudo_cr_index, mep_register_type): Ditto.
2501 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2502 (mep_get_insn, mep_analyze_prologue): Ditto.
2503 * objfiles.c (qsort_cmp): Ditto.
2504 * prologue-value.c (pv_is_identical): Ditto.
2505 * record.c (record_get_loc): Ditto.
2506 * value.c (value_static_field): Ditto.
2507 * xtensa-tdep.c (call0_track_op): Ditto.
2508
c92817ce
TT
25092010-08-18 Tom Tromey <tromey@redhat.com>
2510
2511 PR symtab/11919:
2512 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2513 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2514 name-copying lower. Document exception behavior.
2515 * completer.c (expression_completer): Catch exceptions from
2516 parse_field_expression.
2517
856d6f99
PA
25182010-08-18 Pedro Alves <pedro@codesourcery.com>
2519
2520 PR corefile/8210
2521
2522 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2523 workaround on core files.
2524 (try_thread_db_load_1): Don't try enabling thread event reporting
2525 on core files.
2526 (thread_db_load): Allow thread_db on core files.
2527 (attach_thread): Don't check thread signals on core files, nor try
2528 really attaching to the thread, nor enabling thread event event
2529 reporting.
2530 (thread_db_detach): Don't try disabing thread event reporting or
2531 removing thread event breakpoints when debugging a core file.
2532 (find_new_threads_callback): Don't try enabling thread event
2533 reporting on core files.
2534 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2535 debugging a core file.
2536 (thread_db_find_new_threads): Don't update thread
2537 cores (processors) when debugging a core (dump).
2538
261b8d08
PA
25392010-08-18 Pedro Alves <pedro@codesourcery.com>
2540
2541 PR corefile/8210
2542
2543 * corelow.c (add_to_thread_list): Don't use
2544 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2545 (get_core_register_section): Don't use
2546 gdbarch_core_reg_section_encodes_pid.
2547
2548 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2549 * gdbarch.h, gdbarch.c: Regenerate.
2550 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2551 gdbarch_core_reg_section_encodes_pid.
2552 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2553 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2554 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2555
f9b42018
YQ
25562010-08-18 Yao Qi <yao@codesourcery.com>
2557
2558 * MAINTAINERS : Add myself under Write After Approval.
2559
def98928
TT
25602010-08-17 Tom Tromey <tromey@redhat.com>
2561
2562 * NEWS: Mention template parameter support.
2563
0807b50c
PA
25642010-08-17 Pedro Alves <pedro@codesourcery.com>
2565
2566 PR breakpoints/11371
2567
2568 * breakpoint.c (decref_bp_location): Assert the reference count is
2569 sane.
2570
f431efe5
PA
25712010-08-17 Pedro Alves <pedro@codesourcery.com>
2572
2573 PR breakpoints/11371
2574
2575 * breakpoint.c (breakpoint_init_inferior): Decrement the
2576 location's reference count instead of deleting right away.
2577 (bpstat_free): Decrement the location's reference count. Make
2578 static.
2579 (bpstat_copy): Increment the location's reference count.
2580 (bpstat_find_breakpoint): Adjust.
2581 (bpstat_num): Adjust.
2582 (print_it_typical): Adjust. Use the breakpoint pointer in the
2583 bpstat instead of the location's owner.
2584 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2585 Adjust to record the location's owner in the bpstat.
2586 (watchpoint_check): Use the breakpoint pointer in the bpstat
2587 instead of the location's owner.
2588 (bpstat_check_breakpoint_conditions): Don't handle
2589 bp_watchpoint_scope here. Use the breakpoint pointer in the
2590 bpstat instead of the location's owner.
2591 (bpstat_stop_status): Defer inferior function calls to after
2592 building the bpstat list. Handle bp_watchpoint_scope here. Use
2593 the breakpoint pointer in the bpstat instead of the location's
2594 owner.
2595 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2596 the location's owner.
2597 (free_bp_location): Don't walk bpstats clearing locations.
2598 (incref_bp_location): New.
2599 (decref_bp_location): New.
2600 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2601 instead of the location's owner.
2602 (update_global_location_list): Clear the location's owner, and
2603 decrement the location's reference count instead of deleting it
2604 right away.
2605 (breakpoint_retire_moribund): Decrement the location's reference
2606 count instead of deleting it right away.
2607 (bpstat_remove_bp_location): Delete.
2608 (bpstat_remove_breakpoint): New.
2609 (bpstat_remove_bp_location_callback): Delete.
2610 (bpstat_remove_breakpoint_callback): New.
2611 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2612 clearing references to the breakpoint that is being deleted.
2613
2614 * breakpoint.h (struct bp_location) <refc>: New field.
2615 <owner>: Update comments.
2616 (bpstat_free): Delete declaration.
2617 (struct bpstats): Change the type of the breakpoint_at field to
2618 struct breakpoint point, from struct bp_location pointer. Add new
2619 field bp_location_at.
2620
14c0d4e1
TT
26212010-08-16 Tom Tromey <tromey@redhat.com>
2622
2623 * NEWS: Fix typo.
2624
b56df873
TT
26252010-08-16 Tom Tromey <tromey@redhat.com>
2626
2627 * NEWS: Mention watch -location.
2628
d63d0675
JK
26292010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2630
2631 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2632 EXP_STRING_REPARSE to EXP_STRING.
2633 (watch_command_1): Set also EXP_STRING_REPARSE.
2634 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2635 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2636 Update comment for exp_string.
2637
06a64a0b
TT
26382010-08-16 Tom Tromey <tromey@redhat.com>
2639
2640 * value.c (release_value): Clear 'next' pointer.
2641 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2642 (watch_command_wrapper): Update.
2643 (watch_maybe_just_location): New function.
2644 (watch_command): Update.
2645 (rwatch_command_wrapper): Update.
2646 (rwatch_command): Update.
2647 (awatch_command_wrapper): Update.
2648 (awatch_command): Update.
2649 (check_for_argument): New function.
2650 (_initialize_breakpoint): Update help text.
2651
f96b8fa0
UW
26522010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2653
2654 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2655 typedef'ed function types correctly.
2656
4eb54052
TT
26572010-08-13 Tom Tromey <tromey@redhat.com>
2658
2659 * python/python-internal.h (gdbpy_get_hook_function): Don't
2660 declare.
2661
44be957e
JK
26622010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2663
ba720883 2664 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2665 static.
2666
76d8b686
KW
26672010-08-13 Ken Werner <ken.werner@de.ibm.com>
2668
2669 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2670 the format strings to be compatible with Python 2.4.
2671
8dedea02
VP
26722010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2673
2674 Easier and more stubborn MI memory read commands.
2675
2676 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2677 and data-write-memory-bytes.
2678 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2679 (mi_cmd_data_write_memory_bytes): New.
2680 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2681 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2682 New.
2683 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2684 * target.c (target_read_until_error): Remove.
2685 (read_whatever_is_readable, free_memory_read_result_vector)
2686 (read_memory_robust): New.
2687 * target.h (target_read_until_error): Remove.
2688 (struct memory_read_result, free_memory_read_result_vector)
2689 (read_memory_robust): New.
2690
1d9ec526
HZ
26912010-08-13 Hui Zhu <teawater@gmail.com>
2692
2693 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2694 (read_comp_unit): Initialize back_to.
2695
98bfdba5
PA
26962010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2697 Pedro Alves <pedro@codesourcery.com>
2698
2699 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2700 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2701 (struct partial_die_info) <has_template_arguments>: New field.
2702 <num_attrs>: Change type to unsigned char.
2703 <building_fullname>: New field.
2704 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2705 allocate a CU if we don't have one already. Add a cleanup for the
2706 CU.
2707 (partial_die_full_name): Handle template arguments not in
2708 DW_AT_name.
2709 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2710 (load_full_comp_unit): Only allocate a CU if we don't have one
2711 already.
2712 (do_ui_file_peek_last): New.
2713 (dwarf2_compute_name): Handle template parameters not in
2714 DW_AT_name.
2715 (read_comp_unit): Read and free abbrevs if not read yet.
2716 (load_partial_dies): Handle template arguments not in DW_AT_name.
2717 (find_partial_die): If we have a CU, but no a partial dies yet,
2718 also read in the CU.
2719 (dwarf2_const_value_attr): New, abstracted out from
2720 dwarf2_const_value.
2721 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2722 dwarf2_const_value_attr.
2723 (determine_prefix): Detect and break loops created by RCVT's debug
2724 info.
2725 (maybe_queue_comp_unit): Bail out early if reading partial
2726 symbols.
2727 (follow_die_offset): Load full CU if we have no dies.
2728 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2729 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2730
ca5c20b6 27312010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2732 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2733
2734 * python/python.c (gdbpy_run_events): New function.
2735 (gdbpy_post_event): Likewise.
2736 (gdbpy_initialize_events): Likewise.
2737 (_initialize_python): Call gdbpy_initialize_events.
2738
7346b668
KW
27392010-08-11 Ken Werner <ken.werner@de.ibm.com>
2740
2741 * gdb/valarith.c (vector_binop): New function.
2742 (scalar_binop): Likewise.
2743 (value_binop): Call scalar_binop or vector_binop depending on the types.
2744 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2745 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2746 to pointers.
2747 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2748
62183e15
TT
27492010-08-11 Brad Roberts <braddr@puremagic.com>
2750
2751 * d-lang.c (extract_identifiers): Handle multiple digits.
2752
39d7b0e2
JK
27532010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2754
2755 Code cleanup.
2756 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2757 Rename to dummy_frame_unwind.
2758 (dummy_frame_unwind): Remove.
2759 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2760 * frame-unwind.c (frame_unwind_init): Use address of
2761 dummy_frame_unwind and inline_frame_unwind.
2762 * frame.c (create_sentinel_frame): Use address of
2763 sentinel_frame_unwind.
2764 * inline-frame.c (inline_frame_unwinder): Rename to
2765 inline_frame_unwind.
2766 (inline_frame_unwind): Remove.
2767 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2768 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2769 sentinel_frame_unwind.
2770 (sentinel_frame_unwind): Remove.
2771 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2772 struct.
2773
9f9a8002
JK
27742010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2775
2776 Code cleanup.
2777 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2778 and returned value. New comment from frame-unwind.h.
2779 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2780 Extend the comment.
2781 * frame.c (get_frame_id, frame_unwind_register_value)
2782 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2783 (get_frame_type, frame_unwind_arch): Do not use the return value of
2784 frame_unwind_find_by_frame.
2785
cb2e07a6 27862010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2787 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2788 Tom Tromey <tromey@redhat.com>
2789
2790 * python/python.c (gdbpy_solib_address): New function.
2791 (gdbpy_decode_line): Likewise.
2792
c29c521f
TT
27932010-08-10 Tom Tromey <tromey@redhat.com>
2794
2795 Revert gdb-add-index addition:
2796 * Makefile.in (install-only): Don't install gdb-add-index.
2797 * gdb-add-index.sh: Remove.
2798
0c012db1
KB
27992010-08-09 Kevin Buettner <kevinb@redhat.com>
2800
2801 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2802 `target_has_execution' check with `to_has_memory' check.
2803 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2804 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2805 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2806
db04efe6
KB
28072010-08-09 Kevin Buettner <kevinb@redhat.com>
2808
2809 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2810 (resume_siggnal, resume_step): Move these static globals...
2811 (struct sim_inferior_data): ...into this new struct.
2812 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2813 New static globals.
2814 (gdb_callback, callbacks_initialized): Move these globals to
2815 a point earlier in the file.
2816 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2817 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2818 (gdbsim_close_inferior, gdbsim_resume_inferior)
2819 (gdbsim_stop_inferior): New functions.
2820 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2821 New constants.
2822 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2823 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2824 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2825 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2826 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2827 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2828 new local variable `sim_data' in each of these functions. Use
2829 `sim_data' to reference former globals `program_loaded',
2830 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2831 `resume_step'.
2832 (gdbsim_open): Remove local variable `argv'. Put results of call
2833 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2834 make a cleanup for it. Free it though when a sim instance cannot
2835 be obtained.
2836 (gdbsim_close): Free sim_argv and null it out as appropriate.
2837 Close sim instances in all inferiors.
2838 (gdbsim_cntrl_c): Stop all inferiors.
2839 (gdbsim_wait):
2840 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2841
e37fd15a
SW
28422010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2843
2844 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2845 function after symbol construction is complete.
2846 Do the same for template symbol addition to template_symbols list.
2847
45c58896
SW
28482010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2849
2850 * symtab.c (symbol_get_demangled_name): Remove assertion and
2851 return NULL when language_specific.cplus_specific is not initialized.
2852 * stabsread.c (define_symbol): Set the name before calling
2853 cp_scan_for_anonymous_namespaces.
2854
33e5013e
SW
28552010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2856
2857 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2858 SYMBOL_SET_LANGUAGE.
2859 (symbol_init_language_specific): Renamed to symbol_set_language.
2860 * symtab.c (symbol_init_language_specific): Removed redundant check
2861 for language_cplus.
2862 Renamed to symbol_set_language.
2863 * stabsread.c (define_symbol): Updated.
2864 (read_enum_type): Updated
2865 * psymtab.c (add_psymbol_to_bcache): Updated.
2866 * minsyms.c (install_minimal_symbols): Updated.
2867 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2868 SYMBOL_LANGUAGE to set the language.
2869 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2870 * mdebugread.c (new_symbol): Ditto.
2871 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2872 * dwarf2read.c (new_symbol_full): Ditto.
2873 * jv-lang.c (add_class_symbol): Ditto.
2874
5da1313b
JK
28752010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2876
2877 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2878 (make_cleanup_restore_page_info)
2879 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2880 * gdbcmd.h (execute_command_to_string): New declaration.
2881 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2882 (make_cleanup_restore_ui_file): Move to utils.c
2883 (execute_gdb_command) <to_string>: Move ...
2884 * top.c (execute_command_to_string): ... here. Call
2885 set_batch_flag_and_make_cleanup_restore_page_info.
2886 * utils.c (make_cleanup_restore_integer): New source file blank line.
2887 (make_cleanup_restore_uinteger): New.
2888 (struct restore_ui_file_closure, do_restore_ui_file)
2889 (make_cleanup_restore_ui_file): Move here from python/python.c.
2890 (init_page_info) <batch_flag>
2891 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2892 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2893
c820c52a
PA
28942010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2895
2896 * thread.c (add_thread_silent): Use null_ptid instead of
2897 minus_one_ptid while getting rid of stale inferior_ptid.
2898
8da614df
CV
28992010-08-06 Corinna Vinschen <vinschen@redhat.com>
2900
2901 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2902 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2903 (decode_frame_entry_1): Remove redundant setting of
2904 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2905 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2906 on examined frame section. Add comment to explain why.
2907 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2908 comment to explain usage.
2909 * gdbarch.c: Regenerate.
2910 * gdbarch.h: Regenerate.
2911
2912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2913
e4195b40
JK
29142010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2915
2916 Code cleanup.
2917 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2918 a more inner block.
2919
a3217aa0
PA
29202010-08-05 Pedro Alves <pedro@codesourcery.com>
2921
2922 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2923 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2924 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2925 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2926 linux-tdep.o to gdb_target_obs.
2927
e2b4a699 29282010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2929
2930 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2931 argument.
889bf7c5 2932
50e8a0d5
HZ
29332010-08-05 Hui Zhu <teawater@gmail.com>
2934
2935 * mips-linux-tdep.c(regset.h): New include.
2936 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2937 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2938 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2939 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2940 mips_linux_regset_from_core_section): New functions.
2941 (fetch_core_registers, regset_core_fns): Deleted.
2942 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2943 Deleted regset_core_fns.
2944 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2945 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2946 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2947 and fpregset64.
2948
70728992
PA
29492010-08-04 Pedro Alves <pedro@codesourcery.com>
2950
2951 * s390-tdep.c: Include linux-tdep.h.
2952 (s390_gdbarch_init): Call linux_init_abi.
2953
a5ee0f0c
PA
29542010-08-04 Pedro Alves <pedro@codesourcery.com>
2955
2956 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2957 instead of printing "Thread" here.
2958 * linux-tdep.c: Include inferior.h.
2959 (linux_core_pid_to_str): New.
2960 (linux_init_abi): New.
2961 * linux-tdep.h (linux_init_abi): Declare.
2962 * alpha-linux-tdep.c: Include linux-tdep.h.
2963 (alpha_linux_init_abi): Call linux_init_abi.
2964 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2965 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2966 * frv-linux-tdep.c: Include linux-tdep.h
2967 (frv_linux_init_abi): Call linux_init_abi.
2968 * hppa-linux-tdep.c: Include linux-tdep.h
2969 (hppa_linux_init_abi): Call linux_init_abi.
2970 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2971 * ia64-linux-tdep.c: Include linux-tdep.h.
2972 (ia64_linux_init_abi): Call linux_init_abi.
2973 * m32r-linux-tdep.c: Include linux-tdep.h.
2974 (m32r_linux_init_abi): Call linux_init_abi.
2975 * m68klinux-tdep.c: Include linux-tdep.h.
2976 (m68k_linux_init_abi): Call linux_init_abi.
2977 * microblaze-linux-tdep.c: Include linux-tdep.h.
2978 (microblaze_linux_init_abi): Call linux_init_abi.
2979 * mips-linux-tdep.c: Include linux-tdep.h.
2980 (mips_linux_init_abi): Call linux_init_abi.
2981 * mn10300-linux-tdep.c: Include linux-tdep.h.
2982 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2983 'gdbinfo' parameter to 'info'.
2984 * ppc-linux-tdep.c: Include linux-tdep.h.
2985 (ppc_linux_init_abi): Call linux_init_abi.
2986 * sh-linux-tdep.c: Include linux-tdep.h.
2987 (sh_linux_init_abi): Call linux_init_abi.
2988 * sparc-linux-tdep.c: Include linux-tdep.h.
2989 (sparc32_linux_init_abi): Call linux_init_abi.
2990 * sparc64-linux-tdep.c: Include linux-tdep.h.
2991 (sparc64_linux_init_abi): Call linux_init_abi.
2992 * xtensa-linux-tdep.c: Include linux-tdep.h.
2993 (xtensa_linux_init_abi): Call linux_init_abi.
2994 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2995 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2996 callback.
2997
bc043ef3
DE
29982010-08-03 Doug Evans <dje@google.com>
2999
3000 * breakpoint.c (bpdisp_text): Constify bpdisps.
3001 * solib-svr4.c (solib_break_names): Constify.
3002 (bkpt_names, main_name_list): Constify.
3003 (match_main): Constify soname arg.
63cdd227
DE
3004 (bfd_lookup_symbol): Remove unnecessary forward decl.
3005 Constify symname arg.
bc043ef3
DE
3006 (enable_break): Constify bkpt_namep.
3007 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3008 (symtab_symbol_info): Constify classnames.
3009
585d1eb8
PM
30102010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3011
3012 * NEWS: Document Python value inferior function calls.
3013
2de00c64
DE
30142010-08-02 Doug Evans <dje@google.com>
3015
3016 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3017
02d868e8
PP
30182010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3019
3020 * linux-thread-db.c (libthread_db_debug): New variable.
3021 (thread_db_find_new_threads_silently): Control verbosity with it.
3022 (try_thread_db_load_1, try_thread_db_load): Likewise.
3023 (find_new_threads_once): Likewise.
3024 (_initialize_thread_db): Set/show it.
3025
a19cae16
JK
30262010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 * common/signals.c (signals): Move the content to signals.def.
3029 Include it. Remove the INDENT comments.
3030
c2bbed2a
TT
30312010-07-30 Tom Tromey <tromey@redhat.com>
3032
3033 * Makefile.in (install-only): Install gdb-add-index.
3034 * gdb-add-index.sh: New file.
3035
f32b2f09
CR
30362010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3037
3038 * MAINTAINERS: Add myself for write after approval privileges.
3039
1276c759
JK
30402010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3041
3042 * symfile.c (addr_section_name): New function.
3043 (addrs_section_compar): Use it.
3044 (addr_info_make_relative): Use it. Move variable sect_name into a more
3045 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3046
420697bb
TT
30472010-07-30 Tom Tromey <tromey@redhat.com>
3048
3049 * configure: Rebuild.
3050 * configure.ac: Add missing case for Python 2.7.
3051
d0d99561
DD
30522010-07-29 DJ Delorie <dj@redhat.com>
3053
3054 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3055 conditions.
3056
0b29bdde
PA
30572010-07-29 Pedro Alves <pedro@codesourcery.com>
3058
3059 * PROBLEMS: Remove mention of all problems.
3060
110ed339
PA
30612010-07-28 Pedro Alves <pedro@codesourcery.com>
3062
3063 PR build/11848
3064 * configure.ac: Check for wresize.
3065 * configure, config.in: Regenerate.
3066 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3067 with HAVE_WRESIZE.
3068
326fd672
TT
30692010-07-28 Tom Tromey <tromey@redhat.com>
3070
3071 PR python/11060:
3072 * python/py-type.c (typy_legacy_template_argument): New function,
3073 extracted from typy_template_argument.
3074 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3075 value when needed.
3076
4ac8c4da
TT
30772010-07-28 Oleg Nesterov <oleg@redhat.com>
3078
3079 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3080
053315c2
TT
30812010-07-27 Tom Tromey <tromey@redhat.com>
3082
3083 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3084
3ce3b1ba
PA
30852010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3086
3087 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3088 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3089
2bb4f988
TT
30902010-07-28 Tom Tromey <tromey@redhat.com>
3091
3092 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3093
74232302
JB
30942010-07-28 Joel Brobecker <brobecker@adacore.com>
3095
3096 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3097 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3098
385d04dc
JB
30992010-07-28 Joel Brobecker <brobecker@adacore.com>
3100
3101 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3102 down, just before the block that parse the breakpoint addr_string.
3103
34eaf542
TT
31042010-07-28 Tom Tromey <tromey@redhat.com>
3105
3106 PR c++/9946:
3107 * symfile.c (reread_symbols): Clear template_symbols.
3108 * symtab.h (struct symbol) <is_cplus_template_function>: New
3109 field.
3110 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3111 (struct template_symbol): New.
3112 * symtab.c (lookup_symbol_aux_local): Use
3113 cp_lookup_symbol_imports_or_template.
3114 * objfiles.h (struct objfile) <template_symbols>: New field.
3115 * objfiles.c (relocate_one_symbol): New function.
3116 (objfile_relocate1): Use it. Relocate isolated symbols.
3117 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3118 template_arguments>: New fields.
3119 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3120 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3121 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3122 (lookup_typename): Update.
3123 * gdbtypes.c (lookup_typename): Constify "block" argument.
3124 * dwarf2read.c: Include vec.h.
3125 (symbolp): New typedef.
3126 (read_func_scope): Read template arguments. Allocate a
3127 template_symbol when needed.
3128 (read_structure_type): Read template arguments.
3129 (new_symbol_full): New function, from new_symbol. Handle
3130 DW_TAG_template_type_param and DW_TAG_template_value_param.
3131 (new_symbol): Rewrite as wrapper.
3132 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3133 * cp-namespace.c: Include language.h.
3134 (search_symbol_list): New function.
3135 (cp_lookup_symbol_imports_or_template): Likewise.
3136
d27b3be4
PA
31372010-07-28 Balazs Kezes <rlblaster@gmail.com>
3138
3139 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3140 the command window to the new size and position.
3141
0036e657
PA
31422010-07-28 Balazs Kezes <rlblaster@gmail.com>
3143
a782f43e 3144 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
3145 coordinates.
3146
36900355
PA
31472010-07-28 Balazs Kezes <rlblaster@gmail.com>
3148
a782f43e 3149 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 3150 after a detecting a resize.
a782f43e 3151 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
3152 call.
3153
db5e03ae
PA
31542010-07-28 Pedro Alves <pedro@codesourcery.com>
3155
3156 * configure.ac: Check for resize_term.
3157 * configure, config.in: Regenerate.
3158
b71fff68
JB
31592010-07-27 Joel Brobecker <brobecker@adacore.com>
3160
3161 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3162
9b1c24c8
PA
31632010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3164
3165 * dwarf2read.c (read_string): Rename to ...
3166 (read_direct_string): ... this.
3167 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3168 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3169
00390b84
JK
31702010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3171
3172 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3173 (count_events_callback, select_event_lwp_callback)
3174 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3175
26ab7092
JK
31762010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3177
3178 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3179 (_initialize_ia64_linux_nat): Install it.
3180 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3181 (linux_nat_set_status_is_event): New.
3182 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3183 cancel_breakpoints_callback, linux_nat_filter_event)
3184 (linux_nat_wait_1): Use linux_nat_status_is_event.
3185 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3186
283e6a52
TT
31872010-07-27 Tom Tromey <tromey@redhat.com>
3188
3189 * NEWS: Mention labels, .gdb_index.
3190
53a71c06
CR
31912010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3192
3193 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 3194 "start,+length" form of arguments.
53a71c06
CR
3195 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3196 since GDB 7.1"; and merge two separated paragraphs of disassemble
3197 description in "Changes in GDB 7.0".
3198
c63a1f86
JK
31992010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3200
3201 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3202 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3203 (fputs_maybe_filtered): Do not do filtering also on
3204 ! INPUT_FROM_TERMINAL_P.
3205
abebb8b0
JB
32062010-07-27 Joel Brobecker <brobecker@adacore.com>
3207
3208 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3209 in warning message.
3210
5374244e
PM
32112010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3212
3213 * python/py-value.c (valpy_call): New Function.
3214
ac0b195c
KW
32152010-07-27 Ken Werner <ken.werner@de.ibm.com>
3216
889bf7c5 3217 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
3218 types_list_elements variables.
3219
09d8bd00
TT
32202010-07-26 Tom Tromey <tromey@redhat.com>
3221
3222 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3223 TLS with DW_OP_const4u or DW_OP_const8u.
3224
9fe70b4f
TJB
32252010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3226
3227 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3228 VSX registers contents.
3229
caac4577
JG
32302010-07-26 Jerome Guitton <guitton@adacore.com>
3231
3232 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3233 its adress is null. Add comment to explain why.
3234 (new_symbol): Ditto.
3235
857d11d0
JK
32362010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3237
3238 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3239 the host signal first.
3240
1fd400ff
TT
32412010-07-23 Tom Tromey <tromey@redhat.com>
3242
3243 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3244 type_comp_units>: New fields.
3245 (dw2_get_cu): New function.
3246 (create_cus_from_index): Remove unused argument.
3247 (create_signatured_type_hash_from_index): New function.
3248 (create_addrmap_from_index): Update.
3249 (dwarf2_read_index): Handle version 2.
3250 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3251 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3252 (dw2_print_stats, dw2_expand_all_symtabs)
3253 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3254 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3255 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3256 (allocate_signatured_type_hash_table): New function.
3257 (add_signatured_type_cu_to_list): Likewise.
3258 (create_debug_types_hash_table): Use them. Set type_comp_units.
3259 (read_signatured_type): Ensure section data is available.
3260 (add_address_entry): Don't record empty ranges.
3261 (struct signatured_type_index_data): New.
3262 (write_one_signatured_type): New function.
3263 (write_psymtabs_to_index): Write type CUs.
3264 (save_gdb_index_command): Update comment.
3265 (process_type_comp_unit): Move inititalization of
3266 from_debug_types...
3267 (create_debug_types_hash_table): ... here.
3268
3a674486
JK
32692010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3270
3271 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3272 cleanup and generating of gdb script to it.
3273 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3274 and terminal size. Convert $tmpfile to a series of -ex-es.
3275
54ec275a
KS
32762010-07-23 Keith Seitz <keiths@redhat.com>
3277
3278 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3279 hook for STATIC_BLOCK types, too.
3280
8fd447e6
KS
32812010-07-23 Keith Seitz <keiths@redhat.com>
3282
3283 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3284 and vector definition.
3285
25b72dde
JK
32862010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3287
3288 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3289
96d19272
JK
32902010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3291
3292 * dwarf2read.c: Include completer.h.
3293 (save_gdb_index_command): Use matching usage command name.
3294 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3295 Set filename_completer for it.
3296
ca1f3406
TT
32972010-07-22 Tom Tromey <tromey@redhat.com>
3298
3299 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3300 type signature's per-CU data.
3301
ba25b921
PA
33022010-07-22 Pedro Alves <pedro@codesourcery.com>
3303
3304 * NEWS: Mention target reported shared libraries support by
3305 default.
3306
23bd0f7c
PA
33072010-07-21 Pedro Alves <pedro@codesourcery.com>
3308
3309 PR symtab/11827
3310
3311 Revert:
3312 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3313 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3314 and DW_TAG_volatile_type.
3315 (new_symbol): Likewise.
3316
883df6dd
SW
33172010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3318
3319 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3320 function symbols before overload resolution.
3321
269b11a2
PA
33222010-07-21 Pedro Alves <pedro@codesourcery.com>
3323
3324 * breakpoint.c (bptype_string): New, abstracted out from
3325 print_one_breakpoint_location.
3326 (print_one_breakpoint_location): Adjust.
3327 (breakpoint_1): Adjust the type column width dynamically.
3328
569b05a5
JK
33292010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3332 a gdb_assert call, new comment.
3333
ad34eb2f
JK
33342010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3335
3336 * linux-nat.c (linux_handle_extended_wait): Handle case when
3337 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3338
33355866
JK
33392010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3340
3341 Code cleanup.
3342 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3343 linux_nat_wait_1. Use always LP->STATUS afterwards.
3344
26590820
HZ
33452010-07-20 Hui Zhu <teawater@gmail.com>
3346
3347 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3348 (inf_ptrace_attach): Ditto.
3349
c0edd9ed
JK
33502010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3351
3352 Make core files the process_stratum.
3353 * corefile.c (core_target): New variable.
3354 (core_file_command): Remove variable t, use core_target.
3355 * corelow.c (core_ops): Make it static.
3356 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3357 * defs.h (make_cleanup_unpush_target): New prototype.
3358 * gdbarch.h: Regenerate.
3359 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3360 * gdbcore.h (core_target): New declaration.
3361 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3362 variables ops_already_pushed and back_to. Use push_target,
3363 make_cleanup_unpush_target and discard_cleanups calls.
3364 * record.c (record_open): Replace core_stratum by a core_bfd check.
3365 * target.c (target_is_pushed): New function.
3366 (find_core_target): Remove.
3367 * target.h (enum strata) <core_stratum>: Remove.
3368 (target_is_pushed): New declaration.
3369 (find_core_target): Remove declaration.
3370 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3371 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3372
f02253f1
HZ
33732010-07-19 Hui Zhu <teawater@gmail.com>
3374
3375 * breakpoint.c (single_step_breakpoints_inserted): New
3376 function.
3377 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3378 * infrun.c (maybe_software_singlestep): Add check code.
3379 * record.c (record_resume): Add code for software single step.
3380 (record_wait): Ditto.
3381
78768c4a
JK
33822010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3383
3384 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3385 a more inner block. Remove its unused declaration initializer.
3386
431e49aa
TJB
33872010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3388
3389 * NEWS: Mention support for the new ptrace interface and hardware
3390 accelerated watchpoint conditions on powerpc-linux.
3391
bd91e7ae
OS
33922010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3393
3394 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3395 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3396 and host_address_to_string() and %s for pointers.
3397 (debug_to_remove_breakpoint): Likewise.
3398 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3399 (debug_to_can_accel_watchpoint_condition): Likewise.
3400 (debug_to_stopped_data_address): Likewise.
3401 (debug_to_watchpoint_addr_within_range): Likewise.
3402 (debug_to_insert_hw_breakpoint): Likewise.
3403 (debug_to_remove_hw_breakpoint): Likewise.
3404 (debug_to_insert_watchpoint): Likewise.
3405 (debug_to_remove_watchpoint): Likewise.
3406
29df156d
SW
34072010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3408
3409 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3410 argument.
3411 (cplus_specific): New struct.
3412 * symtab.c (symbol_set_demangled_name): Updated.
3413 Use cplus_specific for cplus symbols.
3414 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3415 struct for cplus symbols.
3416 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3417 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3418 * symtab.c (symbol_init_cplus_specific): New function.
3419
b250c185
SW
34202010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3421
3422 * symtab.h (symbol_set_demangled_name): New function.
3423 (symbol_get_demangled_name): New function.
3424 * symtab.c (symbol_set_demangled_name): New function.
3425 (symbol_get_demangled_name): New function.
3426 (symbol_init_language_specific): Use demangled_name setter and getter.
3427 (symbol_set_names): Ditto.
3428 (symbol_natural_name): Ditto.
3429 (symbol_demangled_name): Ditto.
3430 * dwarf2read.c (new_symbol): Ditto.
3431
afa16725
SW
34322010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3433
3434 * symtab.h: Renamed cplus_specific to mangled_lang.
3435 * symtab.c (symbol_init_language_specific): Updated.
3436 (symbol_set_names): Updated.
3437 (symbol_natural_name): Updated.
3438 (symbol_demangled_name): Updated.
3439 * ada-lang.c (ada_decode_symbol): Updated.
3440 * dwarf2read.c (new_symbol): Updated.
3441
3cbaedff
KW
34422010-07-14 Ken Werner <ken.werner@de.ibm.com>
3443
3444 * valops.c (value_assign): Do not call to value_coerce_to_target.
3445 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3446
c932f1be
KW
34472010-07-14 Ken Werner <ken.werner@de.ibm.com>
3448
3449 * MAINTAINERS: Add myself for write after approval privileges.
3450
91158a56
TT
34512010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3452
3453 * c-valprint.c (c_val_print): Add embedded_offset to address in
3454 call to val_print_array_elements.
3455
b3b272e1
TT
34562010-07-13 Tom Tromey <tromey@redhat.com>
3457
3458 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3459
bb3fa9d0
TT
34602010-07-13 Tom Tromey <tromey@redhat.com>
3461
3462 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3463 objfile.
3464
dd786858
TT
34652010-07-13 Tom Tromey <tromey@redhat.com>
3466
3467 * symfile.c (set_initial_language): Update.
3468 (deduce_language_from_filename): Argument type now const.
3469 * symtab.h (find_main_filename): Update.
3470 (deduce_language_from_filename): Update.
3471 * symtab.c (find_main_filename): Make result const.
3472 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3473 * psymtab.c (find_symbol_file_from_partial): Change return type.
3474 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3475 Make result const.
3476
9291a0cd
TT
34772010-07-13 Tom Tromey <tromey@redhat.com>
3478
3479 * breakpoint.c (save_cmdlist): No longer static.
3480 * gdbcmd.h (save_cmdlist): Declare.
3481 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3482 OBJF_READNOW on objfile if readnow_symbol_files.
3483 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3484 (elf_sym_fns_gdb_index): New global.
3485 * dwarf2read.c: Include exceptions.h.
3486 (offset_type): New.
3487 (struct mapped_index): New.
3488 (dwarf2_per_cu_data_ptr): New typedef.
3489 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3490 New fields.
3491 (GDB_INDEX_SECTION): New define.
3492 (struct dwarf2_per_cu_quick_data): New.
3493 (struct dwarf2_per_cu_data) <objfile>: New field.
3494 <psymtab>: Removed.
3495 <v>: New field.
3496 (byte_swap): New function.
3497 (MAYBE_SWAP): New macro.
3498 (INDEX_SUFFIX): New macro.
3499 (dw2_do_instantiate_symtab): New function.
3500 (dw2_instantiate_symtab): Likewise.
3501 (create_cus_from_index): Likewise.
3502 (create_addrmap_from_index): Likewise.
3503 (mapped_index_string_hash): Likewise.
3504 (find_slot_in_mapped_hash): Likewise.
3505 (dwarf2_read_index): Likewise.
3506 (dw2_setup): Likewise.
3507 (dw2_require_line_header): Likewise.
3508 (dw2_require_full_path): Likewise.
3509 (dw2_find_last_source_symtab): Likewise.
3510 (dw2_forget_cached_source_info): Likewise.
3511 (dw2_lookup_symtab): Likewise.
3512 (dw2_lookup_symbol): Likewise.
3513 (dw2_do_expand_symtabs_matching): Likewise.
3514 (dw2_pre_expand_symtabs_matching): Likewise.
3515 (dw2_print_stats): Likewise.
3516 (dw2_dump): Likewise.
3517 (dw2_relocate): Likewise.
3518 (dw2_expand_symtabs_for_function): Likewise.
3519 (dw2_expand_all_symtabs): Likewise.
3520 (dw2_expand_symtabs_with_filename): Likewise.
3521 (dw2_find_symbol_file): Likewise.
3522 (dw2_map_ada_symtabs): Likewise.
3523 (dw2_expand_symtabs_matching): Likewise.
3524 (dw2_find_pc_sect_symtab): Likewise.
3525 (dw2_map_symbol_names): Likewise.
3526 (dw2_map_symbol_filenames): Likewise.
3527 (dw2_has_symbols): Likewise.
3528 (dwarf2_gdb_index_functions): New global.
3529 (dwarf2_initialize_objfile): New function.
3530 (process_psymtab_comp_unit): Update.
3531 (add_partial_subprogram): Likewise.
3532 (dwarf2_psymtab_to_symtab): Likewise.
3533 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3534 (process_full_comp_unit): Update.
3535 (find_file_and_directory): New function.
3536 (read_file_scope): Use find_file_and_directory.
3537 (dwarf2_per_cu_objfile): Update.
3538 (dwarf2_per_cu_addr_size): Update.
3539 (dwarf2_per_cu_offset_size): Update.
3540 (dwarf2_free_objfile): Free the index, if needed.
3541 (dwarf2_per_objfile_free): Unmap the index, if needed.
3542 (struct strtab_entry): New.
3543 (hash_strtab_entry): New function.
3544 (eq_strtab_entry): Likewise.
3545 (create_strtab): Likewise.
3546 (add_string): Likewise.
3547 (struct symtab_index_entry): New.
3548 (struct mapped_symtab): New.
3549 (hash_symtab_entry): New function.
3550 (eq_symtab_entry): Likewise.
3551 (delete_symtab_entry): Likewise.
3552 (create_index_table): Likewise.
3553 (create_mapped_symtab): Likewise.
3554 (cleanup_mapped_symtab): Likewise.
3555 (find_slot): Likewise.
3556 (hash_expand): Likewise.
3557 (add_index_entry): Likewise.
3558 (add_indices_to_cpool): Likewise.
3559 (write_hash_table): Likewise.
3560 (add_address_entry): Likewise.
3561 (write_psymbols): Likewise.
3562 (write_obstack): Likewise.
3563 (unlink_if_set): Likewise.
3564 (write_psymtabs_to_index): Likewise.
3565 (save_gdb_index_command): Likewise.
3566 (_initialize_dwarf2_read): Install "save gdb-index"
3567 command.
3568 (create_all_comp_units): Initialize 'objfile' field of CU.
3569 (dwarf2_locate_sections): Check for .gdb_index.
3570 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3571 * symfile.h (dwarf2_initialize_objfile): Declare.
3572
58b6ab13
TT
35732010-07-13 Tom Tromey <tromey@redhat.com>
3574
3575 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3576 (basic_lookup_transparent_type): Likewise.
3577 * symfile.h (struct quick_symbol_functions)
3578 <pre_expand_symtabs_matching>: New field.
3579 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3580 (psym_functions): Update.
3581
0f5238ed
TT
35822010-07-13 Tom Tromey <tromey@redhat.com>
3583
3584 PR breakpoints/8357:
3585 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3586 * linespec.c (decode_line_1): Update comment. Call decode_label.
3587 (decode_label): New function.
3588 (symbol_found): Handle LOC_LABEL.
3589 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3590 domain. Call add_symbol_to_list.
3591
9aa1f1e3
TT
35922010-07-13 Tom Tromey <tromey@redhat.com>
3593
3594 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3595 * dwarf2loc.c (find_location_expression): Use
3596 dwarf2_per_cu_text_offset.
3597 (dwarf2_evaluate_loc_desc): Likewise.
3598 (dwarf2_loc_desc_needs_frame): Likewise.
3599 (compile_dwarf_to_ax): Likewise.
3600 (loclist_describe_location): Likewise.
3601 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3602 (dwarf2_per_cu_objfile): Update comment.
3603
953ac07e
JK
36042010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3605
3606 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3607 * p-lang.c (pascal_printstr): Likewise.
3608
f04e4012
TT
36092010-07-09 Tom Tromey <tromey@redhat.com>
3610
3611 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3612 'hint' if it is NULL.
3613
f4dfd9c0
HZ
36142010-07-09 Hui Zhu <teawater@gmail.com>
3615
3616 * source.c (print_source_lines_base): Add check for noprint.
3617
7e6e39e5
JB
36182010-07-08 Joel Brobecker <brobecker@adacore.com>
3619
3620 * python/python-config.py: Resync with Python 2.7 version of this
3621 script.
3622
76b8507d
JB
36232010-07-08 Joel Brobecker <brobecker@adacore.com>
3624
3625 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3626
797054e6
JB
36272010-07-07 Joel Brobecker <brobecker@adacore.com>
3628
3629 * NEWS: Create a new section for the next release branch.
3630 Rename the section of the current branch, now that it has
3631 been cut.
3632
c80befee 36332010-07-07 Joel Brobecker <brobecker@adacore.com>
3634
3635 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3636 * version.in: Bump version to 7.2.50.20100707-cvs.
3637
ac56253d
TT
36382010-07-07 Tom Tromey <tromey@redhat.com>
3639
3640 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3641 LOC_COMPUTED symbol.
3642 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3643 (dwarf2_loc_desc_needs_frame): Likewise.
3644 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3645 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3646 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3647 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3648 'offset' argument.
3649 (struct dwarf2_frame_cache) <text_offset>: New field.
3650 (dwarf2_frame_cache): Set new field.
3651 (dwarf2_frame_prev_register): Update.
3652 (dwarf2_frame_sniffer): Update.
3653 (dwarf2_frame_base_sniffer): Update.
3654 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3655
0cf6dd15
TJB
36562010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3657 Thiago Jung Bauermann <bauerman@br.ibm.com>
3658
3659 Support for hw accelerated condition watchpoints in booke powerpc.
3660
3661 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3662 and move to eval.c. Change callers.
3663 (insert_bp_location): Pass watchpoint condition in
3664 target_insert_watchpoint.
3665 (remove_breakpoint_1) Pass watchpoint condition in
3666 target_remove_watchpoint.
3667 (watchpoint_locations_match): Call
3668 target_can_accel_watchpoint_condition.
3669 * eval.c: Include wrapper.h.
3670 (fetch_subexp_value): Moved from breakpoint.c.
3671 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3672 Formatting fix.
3673 (can_use_watchpoint_cond_accel): New function.
3674 (calculate_dvc): Likewise.
3675 (num_memory_accesses): Likewise.
3676 (check_condition): Likewise.
3677 (ppc_linux_can_accel_watchpoint_condition): Likewise
3678 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3679 check_condition and calculate_dvc.
3680 (ppc_linux_remove_watchpoint): Likewise.
3681 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3682 ppc_linux_can_accel_watchpoint_condition
3683 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3684 condition.
3685 (debug_to_remove_watchpoint): Likewise.
3686 (debug_to_can_accel_watchpoint_condition): New function.
3687 (update_current_target): Set to_can_accel_watchpoint_condition.
3688 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3689 * target.h: Add opaque declaration for struct expression.
3690 (struct target_ops) <to_insert_watchpoint>,
3691 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3692 <to_can_accel_watchpoint_condition>: New member.
3693 condition. Update all callers and implementations.
3694 (target_can_accel_watchpoint_condition): New macro.
3695 * value.c (free_value_chain): New function.
3696 * value.h (fetch_subexp_value): New prototype.
3697 (free_value_chain): Likewise.
3698
2f2241f1
UW
36992010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3700
3701 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3702 from gdbarch_core_regset_sections also for .reg if present.
3703
3704 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3705 section size for .reg.
3706 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3707 (ppc_linux_vmx_regset_sections): Likewise.
3708 (ppc_linux_fp_regset_sections): Likewise.
3709 (ppc64_linux_vsx_regset_sections): New variable.
3710 (ppc64_linux_vmx_regset_sections): Likewise.
3711 (ppc64_linux_fp_regset_sections): Likewise.
3712 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3713 for current word size.
3714
1fd7cdc2
JB
37152010-07-06 Joel Brobecker <brobecker@adacore.com>
3716
3717 * server.c (myresume): Make static.
3718
11763c18
TT
37192010-07-06 Tom Tromey <tromey@redhat.com>
3720
3721 * configure, config.in: Rebuild.
3722 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3723 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3724
a6cc4789
AS
37252010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3726
3727 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3728 "clear".
3729
f9e9243a
UW
37302010-07-06 Ken Werner <ken.werner@de.ibm.com>
3731
3732 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3733 * gdbtypes.c (floatformats_ieee_half): New variable.
3734 * doublest.c (floatformat_from_length): Set format to
3735 gdbarch_half_format if length matches.
3736 * gdbarch.sh (half_bit): New architecture method.
3737 (half_format): Likewise.
3738 * gdbarch.h: Regenerate.
3739 * gdbarch.c: Likewise.
3740
4e5799b6
JK
37412010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 Joel Brobecker <brobecker@adacore.com>
3743
3744 Fix re-run of PIE executable, PR shlibs/11776.
3745 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3746 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3747
86e4bafc
JK
37482010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3749 Joel Brobecker <brobecker@adacore.com>
3750
3751 * auxv.c (memory_xfer_auxv): Update attach comment.
3752 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3753 svr4_relocate_main_executable.
3754 (svr4_solib_create_inferior_hook): Make the call to
3755 svr4_relocate_main_executable unconditional.
3756
3cd07d20
JK
37572010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3758 Joel Brobecker <brobecker@adacore.com>
3759
3760 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3761
0a1e94c7
JK
37622010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3763 Joel Brobecker <brobecker@adacore.com>
3764
3765 Fix attaching to PIEs prelinked on the disk after the process was
3766 started.
3767 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3768 Verify it against bfd_get_arch_size. Try to match arbitrary
3769 displacement for the phdrs comparison.
3770
5387647f
TT
37712010-07-02 Tom Tromey <tromey@redhat.com>
3772
3773 PR exp/11780:
3774 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3775 value as optimized-out.
3776
38b6c3b3
TJB
37772010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3778 Thiago Jung Bauermann <bauerman@br.ibm.com>
3779
3780 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3781 represent?" question in comment. Change comment to a proper sentence.
3782
a17ac5b0
TT
37832010-07-02 Ken Werner <ken.werner@de.ibm.com>
3784
3785 * c-valprint.c (c_val_print): Fix printing of character vectors.
3786
bddaafad
JK
37872010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3788
3789 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3790 create_breakpoint prototype.
3791
d41c0fc8
PA
37922010-07-01 Pedro Alves <pedro@codesourcery.com>
3793
3794 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3795 usefulness suggestion of multiple breakpoints at same location.
3796
dc10affe
PA
37972010-07-01 Pedro Alves <pedro@codesourcery.com>
3798
3799 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3800
cabe9ab6
PA
38012010-07-01 Pedro Alves <pedro@codesourcery.com>
3802
3803 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3804 (loclist_tracepoint_var_ref): Handle optimized out values.
3805
cce7e648
PA
38062010-07-01 Pedro Alves <pedro@codesourcery.com>
3807
3808 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3809 unnecessary space in string.
3810 * filesystem.c (_initialize_filesystem): Ditto.
3811 * frame.c (_initialize_frame): Ditto.
3812 * infcmd.c (step_once): Ditto.
3813 * infrun.c (_initialize_infrun): Ditto.
3814 * linux-nat.c (linux_child_follow_fork): Ditto.
3815 * maint.c (maintenance_deprecate): Ditto.
3816 * memattr.c (_initialize_mem): Ditto.
3817 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3818 * monitor.c (monitor_open): Ditto.
3819 * procfs.c (procfs_xfer_memory): Ditto.
3820 * reverse.c (bookmarks_info): Ditto.
3821 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3822 * stack.c (_initialize_stack): Ditto.
3823 * tracepoint.c (_initialize_tracepoint): Ditto.
3824 * xtensa-tdep.c (xtensa_supply_gregset,
3825 xtensa_regset_from_core_section): Ditto.
3826
b65c7efe
TT
38272010-07-01 Tom Tromey <tromey@redhat.com>
3828
3829 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3830 check_all_valid.
3831 * value.c (value_entirely_optimized_out): Invert result. Update
3832 for new function name.
3833
0fb4aa4b
PA
38342010-07-01 Pedro Alves <pedro@codesourcery.com>
3835
3836 Static tracepoints support.
3837
3838 * NEWS: Mention new support for static tracepoints.
3839 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3840 qXfer:statictrace:read.
3841 (New features in the GDB remote stub, GDBserver): Mention static
3842 tracepoints support using an UST based backend.
3843 (New commands): Mention "info static-tracepoint-markers" and
3844 "strace".
3845 * breakpoint.c (is_marker_spec): New.
3846 (is_tracepoint): Handle static tracepoints.
3847 (validate_commands_for_breakpoint): Static tracepoints can't do
3848 while-stepping.
3849 (static_tracepoints_here): New.
3850 (bpstat_what): Handle static tracepoints.
3851 (print_one_breakpoint_location, allocate_bp_location, mention):
3852 Ditto.
3853 (create_breakpoint_sal): Ditto.
3854 (decode_static_tracepoint_spec): New.
3855 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3856 `type_wanted'. Adjust. Handle static tracepoint marker
3857 locations.
3858 (break_command_1): Adjust.
3859 (update_static_tracepoint): New.
3860 (update_breakpoint_locations): Handle static tracepoints.
3861 (breakpoint_re_set_one): Handle static tracepoint marker
3862 locations.
3863 (disable_command, enable_command): Handle static tracepoints.
3864 (trace_command, ftrace_command): Adjust.
3865 (strace_command): New.
3866 (create_tracepoint_from_upload): Adjust.
3867 (save_breakpoints): Handle static tracepoints.
3868 (_initialize_breakpoint): Install the "strace" command.
3869 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3870 (struct breakpoint): New fields static_trace_marker_id and
3871 static_trace_marker_id_idx.
3872 (breakpoints_here_p): Declare.
3873 (create_breakpoint): Adjust.
3874 (static_tracepoints_here): Declare.
3875 * remote.c (struct remote_state) <static_tracepoints>: New field.
3876 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3877 (remote_static_tracepoint_marker_at): New.
3878 (remote_static_tracepoint_markers_by_strid): New.
3879 (remote_static_tracepoint_feature): New.
3880 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3881 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3882 (remote_supports_static_tracepoints): New.
3883 (remote_download_tracepoint): Download static tracepoints.
3884 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3885 remote_static_tracepoint_markers_by_strid.
3886 (_initialize_remote): Install set|show remote static-tracepoints,
3887 and set|show remote read-sdata-object commands.
3888 * target.c (update_current_target): Inherit and default
3889 to_static_tracepoint_marker_at, and
3890 to_static_tracepoint_markers_by_strid.
3891 * target.h (static_tracepoint_marker): Forward declare.
3892 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3893 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3894 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3895 (struct target_ops): New fields to_static_tracepoint_marker_at and
3896 to_static_tracepoint_markers_by_strid.
3897 (target_static_tracepoint_marker_at)
3898 (target_static_tracepoint_markers_by_strid): New.
3899 * tracepoint.c: Include source.h.
3900 (validate_actionline): Handle $_sdata.
3901 (struct collection_list): New field strace_data.
3902 (add_static_trace_data): New.
3903 (clear_collection_list): Clear strace_data.
3904 (stringify_collection_list): Account for a possible static trace
3905 data collection.
3906 (encode_actions_1): Encode an $_sdata collection.
3907 (parse_tracepoint_definition): Handle static tracepoints.
3908 (parse_static_tracepoint_marker_definition): New.
3909 (release_static_tracepoint_marker): New.
3910 (print_one_static_tracepoint_marker): New.
3911 (info_static_tracepoint_markers_command): New.
3912 (sdata_make_value): New.
3913 (_initialize_tracepoint): Create the $_sdata convenience variable.
3914 Add the "info static-tracepoint-markers" command.
3915 Mention $_sdata in the "collect" command's help output.
3916 * tracepoint.h (struct static_tracepoint_marker): New.
3917 (parse_static_tracepoint_marker_definition)
3918 (release_static_tracepoint_marker): Declare.
3919 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3920 * python/py-breakpoint.c (bppy_new): Adjust.
3921
aac63f0f
JB
39222010-06-30 Joel Brobecker <brobecker@adacore.com>
3923
3924 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3925 including Python.h.
3926
e68994a7
DE
39272010-06-29 Doug Evans <dje@google.com>
3928
3863f96c
DE
3929 PR gdb/11702
3930 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3931 DW_AT_external is present.
3932
254e6b9e
DE
3933 PR gdb/11702
3934 * NEWS: Add entry.
3935 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3936 create a symbol for the field and record the value.
3937 (new_symbol): Handle DW_TAG_member.
3938 * gdbtypes.c (field_is_static): Remove FIXME.
3939 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3940 only ignore LOC_CONST symbols that are enums.
3941
6e70227d
DE
3942 * dwarf2read.c: Remove trailing whitespace.
3943
e68994a7
DE
3944 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3945 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3946 (struct main_type, field loc): Delete dwarf_block.
3947 (FIELD_DWARF_BLOCK): Delete.
3948 (SET_FIELD_DWARF_BLOCK): Delete.
3949 (TYPE_FIELD_DWARF_BLOCK): Delete.
3950 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3951 Update.
3952
a480d2f6
HZ
39532010-06-29 Hui Zhu <teawater@gmail.com>
3954
3955 * record.c (set_record_pic_cmdlist,
3956 show_record_pic_cmdlist): New variables.
3957 (set_record_pic_command,
3958 show_record_pic_command): New functions.
3959 (record_pic_function, record_pic_line, record_pic_enum,
3960 set_record_pic_type, record_pic_hide_nofunction,
3961 record_pic_hide_nosource, record_pic_hide_same): New variables.
3962 (record_pic_fputs): New function.
3963 (function_list, node_list, edge_list): New struct.
3964 (function_list, node_list, edge_list): New variables.
3965 (record_pic_cleanups, record_pic_node,
3966 record_pic_edge, cmd_record_pic): New functions.
3967 (_initialize_record): Add new commands for record pic.
3968
a0d7a4ff
JK
39692010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3970
3971 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3972 ALLOCATE_CPLUS_STRUCT_TYPE.
3973
595939de 39742010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3975 Tom Tromey <tromey@redhat.com>
3976 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3977
3978 * value.c (pack_unsigned_long): New function.
3979 (value_from_ulongest): New function.
3980 * value.h (value_from_ulongest): Declare.
3981 * python/python.c (_initialize_python): Call
3982 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3983 * python/python-internal.h: Define thread_object.
3984 (gdbpy_inferiors, gdbpy_selected_thread)
3985 (frame_info_to_frame_object, create_thread_object)
3986 (find_thread_object, find_inferior_object)
3987 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3988 (gdbpy_is_value_object, get_addr_from_python): Declare.
3989 * python/py-value.c (builtin_type_upylong): Define.
3990 (convert_value_from_python): Add logic for ulongest.
3991 (gdbpy_is_value_object): New function.
3992 * python/py-utils.c (get_addr_from_python): New function.
3993 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3994 (gdbpy_selected_frame): Use PyObject over frame_info.
3995 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3996 py-infthread.
3997 (SUBDIR_PYTHON_SRCS): Likewise.
3998 (py-inferior.o): New Rule.
3999 (py-infthread.o): New Rule.
4000 * python/py-inferior.c: New File.
4001 * python/py-infthread.c: New File.
4002
98751a41
JK
40032010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4004
4005 * c-typeprint.c (c_type_print_base): For no fields check include also
4006 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4007 * dwarf2read.c (struct typedef_field_list)
4008 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4009 (dwarf2_add_typedef): New.
4010 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4011 Copy also FI.TYPEDEF_FIELD_LIST.
4012 * gdbtypes.h (struct typedef_field)
4013 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4014 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4015 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4016
41f62f39
JK
40172010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4018
4019 * cp-namespace.c (cp_lookup_nested_type): New variable
4020 concatenated_name. Turn the current return condition into a reverse
4021 one. Call also lookup_static_symbol_aux on the constructed qualified
4022 name.
4023 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4024 other files into a called ...
4025 (lookup_static_symbol_aux): ... new function here.
4026 * symtab.h (lookup_static_symbol_aux): New prototype.
4027 * valops.c (value_maybe_namespace_elt): Call also
4028 lookup_static_symbol_aux if we failed otherwise.
4029
af53d231
JK
40302010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4031
4032 Fix PR c++/11703 and PR gdb/1448.
4033 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4034 FIRST_ITER check.
4035
9655fd1a
JK
40362010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4037
4038 Fix modification of cplus_struct_default.
4039 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4040 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4041 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4042
9279c692
JB
40432010-06-28 Joel Brobecker <brobecker@adacore.com>
4044
4045 * NEWS: Add entry announcing the python directory.
4046
d3f41bb1
TT
40472010-06-28 Tom Tromey <tromey@redhat.com>
4048
4049 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4050
23e7acfb
DE
40512010-06-28 Doug Evans <dje@google.com>
4052
4053 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4054 All callers updated.
4055
6036c742
JK
40562010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4057
4058 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4059 obstack_begin after each obstack_free.
4060
9f18a3b3
DE
40612010-06-27 Doug Evans <dje@google.com>
4062
1596cb5d
DE
4063 * value.c (value_static_field): Use `switch' instead of `if'.
4064 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4065
9f18a3b3
DE
4066 * valops.c (search_struct_field): Fix typo in error message.
4067
43dabe42
UW
40682010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4069
4070 * dwarf2expr.c (execute_stack_op): Place preprocessor
4071 directives at the start of the source line.
4072
0f3bb72e
PH
40732010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4074
6036c742
JK
4075 * defs.h (make_command_stats_cleanup): Declare.
4076 (set_display_time): Declare.
4077 (set_display_space): Declare.
4078 * event-top.c (command_handler): Use make_command_stats_cleanup.
4079 * main.c (display_time, display_space): Move definitions to utils.c.
4080 (captured_main): Use make_command_stats_cleanup to get start-up
4081 statistics.
4082 Use set_display_time and set_display_space for processing OPT_STATISTICS
4083 case.
4084 * maint.c (maintenance_time_display): Use set_display_time.
4085 (maintenance_space_display): Use set_display_space.
4086 * top.c (execute_command): Remove obsolete 'maint time' code.
4087 (command_loop): Use make_command_stats_cleanup.
4088 * utils.c (struct cmd_stats): Structure for storing initial time
4089 and space usage.
4090 (display_time, display_space): Move definitions here from utils.c.
4091 (set_display_time): New function.
4092 (set_display_space): New function.
4093 (make_command_stats_cleanup): New function.
4094 (report_command_stats): New auxiliary function for
4095 make_command_stats_cleanup.
0f3bb72e 4096
070c8028
UW
40972010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4098
4099 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4100 hosts where CORE_ADDR is long long.
4101
bc9f0842
TT
41022010-06-25 Tom Tromey <tromey@redhat.com>
4103
4104 PR python/10808:
4105 * python/python.c (execute_gdb_command): Add keywords. Accept
4106 "to_string" argument.
4107 (struct restore_ui_file_closure): New.
4108 (restore_ui_file): New function.
4109 (make_cleanup_restore_ui_file): Likewise.
4110 (GdbMethods) <execute>: Update.
4111
c0cc4c83
UW
41122010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4113
4114 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4115 during inferior call stack frame setup.
4116
f1d8ee66
UW
41172010-06-25 Ken Werner <ken.werner@de.ibm.com>
4118
4119 * solib-spu.c: Include "exception.h".
4120 (ocl_program_data_key): New variable.
4121 (append_ocl_sos): New function.
4122 (ocl_enable_break): Likewise.
4123 (spu_current_sos): Call append_ocl_sos.
4124 (spu_solib_loaded): Call ocl_enable_break.
4125 (_initialize_spu_solib): Register ocl_program_data_key.
4126
19c0c0f8
UW
41272010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4128
4129 * cp-support.c (reset_directive_searched): New function.
4130 (make_symbol_overload_list_using): Prevent recursive calls.
4131
0f6a939d
PM
41322010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4133
4134 * printcmd.c (print_variable_and_value): Print error message on
4135 caught exception.
4136
f2c7657e
UW
41372010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4138
4139 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4140 of stack values.
4141 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4142 "value" member.
4143 (dwarf_expr_push): Change input type to ULONGEST.
4144 (dwarf_expr_fetch): Change return type to ULONGEST.
4145 (dwarf_expr_fetch_address): Add prototype.
4146 (dwarf2_read_address): Remove prototype.
4147 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4148 Truncate stack values to ctx->addr_size bytes.
4149 (dwarf_expr_fetch): Change return value to ULONGEST.
4150 (dwarf_expr_fetch_address): New function.
4151 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4152 when appropriate. Update for struct dwarf_expr_piece changes.
4153 (dwarf2_read_address): Remove.
4154 (unsigned_address_type): Remove.
4155 (signed_address_type): Remove.
4156 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4157 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4158 values. Perform operations on ULONGEST instead of on GDB values,
4159 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4160 values and DW_OP_deref results as unsigned integers.
4161 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4162 changes.
4163 (write_pieced_value): Likewise.
4164 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4165 dwarf_expr_fetch when appropriate.
4166 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4167 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4168 instead of dwarf_expr_fetch when appropriate.
4169
b1d61bc9
PM
41702010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4171
4172 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4173
b14285f6
JB
41742010-06-24 Joel Brobecker <brobecker@adacore.com>
4175
4176 * python/python.c (_initialize_python): Add new "constant"
4177 PYTHONDIR in gdb module. Insert this path at the head of
4178 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4179 exec its __init__.py script if it exists in that directory.
4180
fd60dc69
KB
41812010-06-24 Kevin Buettner <kevinb@redhat.com>
4182
4183 * rx-tdep.c (RX_ACC_REGNUM): Define.
4184 (RX_NUM_REGS): Redefine to 26.
4185 (rx_register_name): Add register "acc". Change order of several
4186 registers. Change name of "vct" register to "fintv" to match RX
4187 documentation.
4188 (rx_register_type): Add case for RX_ACC_REGNUM.
4189
18430289
TT
41902010-06-24 Tom Tromey <tromey@redhat.com>
4191
4192 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4193
40618926
JK
41942010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4195 Tom Tromey <tromey@redhat.com>
4196
4197 Fix GDB startup on readonly filesystem.
4198 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4199
628fe4e4
JK
42002010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4201 Pedro Alves <pedro@codesourcery.com>
4202
4203 Fix PR 9436.
4204 * breakpoint.c (handle_jit_event): New function.
4205 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4206 jit, err, table and bs_class. New variables shlib_event, jit_event,
4207 this_action and bptype. Change bs_class assignments to this_action
4208 assignments. new unhandled bptype internal error. Move here
4209 shlib_event and jit_event handling from handle_inferior_event.
4210 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4211 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4212 BPSTAT_WHAT_CHECK_JIT.
4213 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4214 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4215 (handle_inferior_event): Reinitialize frame and gdbarch after
4216 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4217 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4218 gdbarch when frame gets reinitialized.
4219
f1421989
HZ
42202010-06-24 Hui Zhu <teawater@gmail.com>
4221
4222 * printcmd.c (ui_printf): New function.
4223 (printf_command): Call ui_printf.
4224 (_initialize_printcmd): New command "eval".
4225
d03285ec
UW
42262010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4227
4228 * infrun.c (handle_inferior_event): Handle presence of single-step
4229 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4230 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4231 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4232 * breakpoint.c (detach_single_step_breakpoints): New function.
4233 (detach_breakpoints): Call it.
4234 (cancel_single_step_breakpoints): New function.
4235 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4236
4237 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4238 (spu_gdbarch_init): Install it.
4239
38f6b338
JK
42402010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4241
4242 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4243 * configure: Regenerate.
4244
bb08c432
HZ
42452010-06-22 Hui Zhu <teawater@gmail.com>
4246
4247 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4248 (i386_process_record): Ditto.
4249 * record.c (record_memory_query): New variable.
4250 (_initialize_record): New command "set record memory-query".
4251 * record.h (record_memory_query): New extern.
4252
b55078be
DE
42532010-06-21 Doug Evans <dje@google.com>
4254
4255 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4256 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4257 (i386_syscall_p): Change type of lengthp to int.
4258 (i386_displaced_step_fixup): Handle kernels that run one past a
4259 syscall insn.
4260 * i386-linux-tdep.c (i386_linux_init_abi): Use
4261 i386_displaced_step_copy_insn instead of
4262 simple_displaced_step_copy_insn.
4263
75079b2b
TT
42642010-06-21 Tom Tromey <tromey@redhat.com>
4265
4266 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4267 (dwarf_type_encoding_name): Likewise.
4268
b00fdb78
TT
42692010-06-21 Tom Tromey <tromey@redhat.com>
4270
4271 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4272 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4273 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4274 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4275 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4276 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4277 * dwarf2read.c (tag_type_to_type): Create a new error type on
4278 failure.
4279 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4280 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4281
84951ab5
MS
42822010-06-21 Michael Snyder <msnyder@vmware.com>
4283
889bf7c5 4284 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
4285 not add_abbrev_prefix_cmd, for "enable breakpoints".
4286
d4a087c7
UW
42872010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4288
4289 * dwarf2loc.c (find_location_expression): Add relocation offset
4290 to base-address-selection entry base addresses. Read addresses
4291 (and offsets) as signed/unsigned integers, depending on the
4292 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4293 (loclist_describe_location): Likewise.
4294 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4295 unsigned integer. Do not call dwarf2_read_address.
4296 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4297
13def385
UW
42982010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4299
4300 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4301 value instead of hard-coded SPU_LS_SIZE.
4302 (spu_software_single_step): Likewise.
4303 * spu-tdep.h (SPU_LS_SIZE): Remove.
4304
d2ed6730
UW
43052010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4306
4307 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4308 limit on local store memory accesses.
4309 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4310 * spu-tdep.c (spu_lslr): Remove.
4311 (spu_pointer_to_address): Do not truncate addresses.
4312 (spu_integer_to_address): Likewise.
4313 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4314 * spu-tdep.h: Add comments.
4315 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4316 (SPU_OVERLAY_LMA): Define.
4317
6aed2dbc
SS
43182010-06-18 Stan Shebs <stan@codesourcery.com>
4319
a61408f8
SS
4320 * osdata.c (get_osdata): Warn separately if target does not report
4321 type list.
4322 (info_osdata_command): Allow empty type, report error if target
4323 does not return available types of OS data.
4324 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4325 types if no annex supplied.
4326
6aed2dbc
SS
4327 * thread.c (thread_id_make_value): Make a value representing the
4328 current thread.
4329 (_initialize_thread): Create $_thread.
4330
ec61707d
JB
43312010-06-17 Joel Brobecker <brobecker@adacore.com>
4332
4333 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4334 last local variable declaration. No real code change.
4335
60606b2c
TT
43362010-06-17 Tom Tromey <tromey@redhat.com>
4337
4338 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4339 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4340 temporary obstack.
4341
65d79d4b
SDJ
43422010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4343 Jan Kratochvil <jan.kratochvil@redhat.com>
4344
4345 * breakpoint.c: Include parser-defs.h.
4346 (watchpoint_exp_is_const): New function.
4347 (watch_command_1): Call watchpoint_exp_is_const to check
4348 if the expression is constant.
4349
0407b3f1
AS
43502010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4351
4352 * configure.ac: Check for RDYNAMIC also for cross builds.
4353 * configure: Regenerate.
4354
98d64339
PA
43552010-06-15 Pedro Alves <pedro@codesourcery.com>
4356
4357 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4358 (SFILES): Remove solib-null.c, add solib-target.c.
4359 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4360 (ALLDEPFILES): Remove solib-target.c.
4361 * solib-target.c (_initialize_solib_target): Set
4362 current_target_so_ops to solib_target_so_ops if not already set.
4363 * solib-null.c: Delete.
4364
6a271cae
PA
43652010-06-14 Pedro Alves <pedro@codesourcery.com>
4366
4367 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4368 bytecode.
4369
1e9beacb
UW
43702010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4371
4372 * cp-valprint.c (cp_print_static_field): Members of
4373 dont_print_stat_array_obstack are of type "struct type *".
4374 (_initialize_cp_valprint): Likewise.
4375
21a176fb
UW
43762010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4377
4378 * frame.c (frame_register_unwind): Do not access contents
4379 of "optimized out" unwound register value.
4380
25b524e8
JK
43812010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4382
4383 * ada-lang.h (ada_print_type): Make varstring const.
4384 * ada-typeprint.c (print_func_type): Make name const.
4385 (ada_print_type): Make varstring const.
4386 * c-lang.h (c_print_type): Make varstring const.
4387 * c-typeprint.c (c_print_type): Likewise.
4388 * f-lang.h (f_print_type): Likewise.
4389 * f-typeprint.c (f_print_type): Likewise.
4390 * jv-lang.h (java_print_type): Likewise.
4391 * jv-typeprint.c (java_print_type): Likewise.
4392 * language.c (unk_lang_print_type): Likewise.
4393 * language.h (struct language_defn) <la_print_type>: Likewise.
4394 * m2-lang.h (m2_print_type): Likewise.
4395 * m2-typeprint.c (m2_print_type): Likewise.
4396 * p-lang.h (pascal_print_type): Likewise.
4397 * p-typeprint.c (pascal_print_type): Likewise.
4398
d914c394
SS
43992010-06-11 Stan Shebs <stan@codesourcery.com>
4400
4401 Add per-operation permission flags.
4402
4403 * target.h (struct target_ops): New method to_set_permissions.
4404 (target_set_permissions): New macro.
4405 (target_insert_breakpoint): Change macro to function.
4406 (target_remove_breakpoint): Ditto.
4407 (target_stop): Ditto.
4408 (may_write_registers): Declare.
4409 (may_write_memory): Declare.
4410 (may_insert_breakpoints): Declare.
4411 (may_insert_tracepoints): Declare.
4412 (may_insert_fast_tracepoints): Declare.
4413 (may_stop): Declare.
4414 * target.c (may_write_registers, may_write_registers_1): New globals.
4415 (may_write_memory, may_write_memory_1): New globals.
4416 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4417 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4418 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4419 globals.
4420 (may_stop, may_stop_1): New global.
4421 (target_xfer_partial): Test for write permission.
4422 (target_store_registers): Ditto.
4423 (target_insert_breakpoint): New function.
4424 (target_remove_breakpoint): New function.
4425 (target_stop): New function.
4426 (_initialize_targets): Add new set/show variables.
4427 (set_write_memory_permission): New function.
4428 (update_target_permissions): New function.
4429 (set_target_permissions): New function.
4430 (update_current_target): Default to_set_permissions.
4431 (_initialize_targets): Use new globals and setter function.
4432 * tracepoint.c (start_tracing): Test for permission.
4433 * inferior.h (update_observer_mode): Declare.
4434 * infrun.c (non_stop_1): Define earlier.
4435 (observer_mode, observer_mode_1): New globals.
4436 (set_observer_mode, show_observer_mode): New functions.
4437 (update_observer_mode): New function.
4438 (_initialize_infrun): Define "set observer" command.
4439 * remote.c (PACKET_QAllow): New optional packet.
4440 (remote_protocol_features): Add QAllow.
4441 (remote_set_permissions): New function.
4442 (remote_start_remote): Call it.
4443 (init_remote_ops): Add it to target vector.
4444 (_initialize_remote): Add config command for QAllow.
4445
aec5aa8b
TT
44462010-06-11 Tom Tromey <tromey@redhat.com>
4447
4448 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4449 DW_AT_vtable_elem_location even when GCC extension is seen.
4450
0e03807e
TT
44512010-06-11 Tom Tromey <tromey@redhat.com>
4452
4453 PR gdb/9977, PR exp/11636:
4454 * value.h (value_offset): Update.
4455 (struct lval_funcs) <check_validity>: New field.
4456 <copy_closure>: Make argument const.
4457 (value_computed_closure): Update.
4458 (value_contents_for_printing): Declare.
4459 (value_bits_valid): Likewise.
4460 (val_print): Likewise.
4461 (set_value_component_location): Update.
4462 (value_entirely_optimized_out): Declare.
4463 * value.c (value_offset): Argument now const.
4464 (require_not_optimized_out): New function.
4465 (value_contents_for_printing): New function.
4466 (value_contents_all): Call require_not_optimized_out.
4467 (value_contents): Likewise.
4468 (value_bits_valid): New function.
4469 (value_computed_closure): Argument now const.
4470 (set_value_component_location): Make 'whole' argument const.
4471 (value_entirely_optimized_out): New function.
4472 (value_bitsize): Argument now 'const'.
4473 (value_bitpos): Likewise.
4474 (value_type): Likewise.
4475 * valprint.h (val_print_array_elements): Update.
4476 * valprint.c (val_print): Add 'val' argument. Use
4477 valprint_check_validity.
4478 (valprint_check_validity): New function.
4479 (value_check_printable): Use value_entirely_optimized_out.
4480 (common_val_print): Update.
4481 (value_print): Likewise.
4482 (val_print_array_elements): Add 'val' argument.
4483 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4484 value_bits_valid. Reinit frame cache for lval_computed.
4485 * sh64-tdep.c (sh64_do_register): Update.
4486 * scm-valprint.c (scm_val_print): Add 'val' argument.
4487 * scm-lang.h (scm_val_print): Update.
4488 * python/python.h (apply_val_pretty_printer): Update.
4489 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4490 argument. Call set_value_component_location.
4491 * printcmd.c (print_scalar_formatted): Update.
4492 * p-valprint.c (pascal_val_print): Add 'val' argument.
4493 (pascal_object_print_value_fields): Likewise.
4494 (pascal_object_print_value): Likewise.
4495 (pascal_object_print_static_field): Update.
4496 * p-lang.h (pascal_val_print): Update.
4497 (pascal_object_print_value_fields): Update.
4498 * mt-tdep.c (mt_registers_info): Update.
4499 * mi/mi-main.c (get_register): Update.
4500 (mi_cmd_data_evaluate_expression): Use common_val_print.
4501 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4502 (m2_print_unbounded_array): Likewise.
4503 (m2_val_print): Likewise.
4504 * m2-lang.h (m2_val_print): Update.
4505 * language.h (struct language_defn) <la_val_print>: Add 'val'
4506 argument.
4507 (LA_VAL_PRINT): Likewise.
4508 * language.c (unk_lang_val_print): Add 'val' argument.
4509 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4510 (java_val_print): Likewise.
4511 * jv-lang.h (java_val_print): Add 'val' argument.
4512 * infcmd.c (default_print_registers_info): Update.
4513 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4514 (f77_print_array): Likewise.
4515 (f_val_print): Likewise.
4516 * f-lang.h (f_val_print): Add 'val' argument.
4517 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4518 value_bitpos.
4519 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4520 set_value_optimized_out.
4521 (write_pieced_value): Use value_bitsize and value_bitpos.
4522 <default>: Don't exit loop.
4523 (check_pieced_value_validity): New function.
4524 (pieced_value_funcs): Reference check_pieced_value_validity,
4525 check_pieced_value_invalid.
4526 (copy_pieced_value_closure): Update.
4527 (check_pieced_value_bits): New function.
4528 (check_pieced_value_invalid): New function.
4529 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4530 (d_val_print): Likewise.
4531 * d-lang.h (d_val_print): Update.
4532 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4533 (cp_print_value_fields_rtti): Likewise.
4534 (cp_print_value): Likewise.
4535 (cp_print_static_field): Update.
4536 * c-valprint.c (c_val_print): Add 'val' argument.
4537 (c_value_print): Update.
4538 * c-lang.h (c_val_print): Update.
4539 (cp_print_value_fields): Likewise.
4540 (cp_print_value_fields_rtti): Likewise.
4541 * ada-valprint.c (struct ada_val_print_args): Remove.
4542 (val_print_packed_array_elements): Add 'val' argument.
4543 (ada_val_print): Likewise. Rewrite.
4544 (ada_val_print_stub): Remove.
4545 (ada_val_print_array): Add 'val' argument.
4546 (ada_val_print_1): Likewise.
4547 (print_variant_part): Likewise.
4548 (ada_value_print): Update.
4549 (print_record): Add 'val' argument.
4550 (print_field_values): Likewise.
4551 * ada-lang.h (ada_val_print): Update.
4552
3cf03773
TT
45532010-06-11 Tom Tromey <tromey@redhat.com>
4554
4555 * vec.h (VEC_cleanup): New macro.
4556 (DEF_VEC_ALLOC_FUNC_I): Update.
4557 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4558 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4559 * dwarf2loc.c (struct axs_var_loc): Remove.
4560 (unimplemented): New function.
4561 (translate_register): Likewise.
4562 (access_memory): Likewise.
4563 (compile_dwarf_to_ax): Likewise.
4564 (dwarf2_tracepoint_var_loc): Remove.
4565 (dwarf2_tracepoint_var_access): Likewise.
4566 (dwarf2_tracepoint_var_ref): Likewise.
4567 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4568 (loclist_tracepoint_var_ref): Likewise.
4569 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4570 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4571 require_composition. No longer static.
4572 (execute_stack_op): Update.
4573 * ax-gdb.h (trace_kludge): Declare.
4574
2bdf28a0
JK
45752010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4576
4577 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4578 (should_be_inserted): Return zero also on NULL OWNER.
4579 (breakpoint_program_space_exit): New OWNER comment.
4580 (insert_breakpoint_locations): Extend comment for OWNER.
4581 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4582 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4583 New OWNER comment.
4584 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4585 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4586 (bpstat_check_location): New assert on OWNER.
4587 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4588 and B initializations to the code block. New assert on them.
4589 (print_one_breakpoint_location): New OWNER comment.
4590 (watchpoint_locations_match): Assert on OWNER.
4591 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4592 initializations to the code block. New assert on OWNER.
4593 (set_breakpoint_location_function): New assert on OWNER.
4594 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4595 (bp_location_compare, update_global_location_list)
4596 (update_global_location_list): New OWNER comment.
4597
5b9a19af
UW
45982010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4599
4600 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4601
669211f5
UW
46022010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4603
4604 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4605 (lin_thread_get_thread_signals): Remove prototype.
4606 (GET_THREAD_SIGNALS): Remove.
4607 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4608 * linux-thread-db.c (check_thread_signals): Directly call
4609 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4610
b7a8b4ef
UW
46112010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4612
4613 * gregset.h (GDB_FPXREGSET_T): Remove.
4614 (gdb_fpxregset_t): Likewise.
4615 (supply_fpxregset): Remove prototype.
4616 (fill_fpxregset): Likewise.
4617 * i386-linux-nat.c (supply_fpxregset): Remove.
4618 (fill_fpxregset): Likewise.
4619 (fetch_fpxregs): Inline supply_fpxregset call.
4620 (store_fpxregs): Inline fill_fpxregset call.
4621
4622 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4623 * config/i386/nm-linux.h: Remove file.
4624
82892036
MS
46252010-06-09 Michael Snyder <msnyder@vmware.com>
4626
4627 * target.c (update_current_target): Fix spelling error in comment.
4628 (target_mourn_inferior): Fix spelling error in error message.
4629
5ddb52fa
PH
46302010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4631
4632 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4633 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4634
0f2caa1b
MS
46352010-06-08 Michael Snyder <msnyder@vmware.com>
4636
4637 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4638
3bebe2f2
JK
46392010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4640
4641 * configure.ac <"${have_libpython}" != no>: New workaround of
4642 python#4434.
4643 * configure: Regenerate.
4644
eaaffdf4
HZ
46452010-06-08 Hui Zhu <teawater@gmail.com>
4646
4647 * record.c (record_wait): Move signal out of replay code.
4648
5c631832
JK
46492010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4650
4651 Fix PR 10640.
4652 * dwarf2-frame.c (no_dwarf_call): New function.
4653 (execute_stack_op): Set CTX->DWARF_CALL.
4654 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4655 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4656 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4657 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4658 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4659 (needs_frame_dwarf_call): New function.
4660 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4661 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4662 Update the comment. Move variables die, offset and error call to ...
4663 (follow_die_ref): ... a new function.
4664 (dwarf2_fetch_die_location_block): New function.
4665 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4666
17ea53c3
JK
46672010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4668
4669 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4670 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4671 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4672 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4673 this change.
4674 (struct needs_frame_baton): New field per_cu.
4675 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4676 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4677
245040d7
SW
46782010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4679
4680 * cp-support.c (make_symbol_overload_list_namespace): Only search
4681 static and global blocks.
4682 (make_symbol_overload_list_block): New function.
4683 (make_symbol_overload_list): Separate namespace search from block
4684 search.
4685 (make_symbol_overload_list_qualified): Use
4686 make_symbol_overload_list_block.
4687
4c3376c8
SW
46882010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4689
4690 * value.h: Created oload_search_type enum.
4691 (find_overload_match): Use oload_search_type enum.
4692 * valops.c (find_overload_match): Support combined member and
4693 non-member search.
4694 * eval.c (evaluate_subexp_standard): Calls to
4695 find_overload_match now use oload_search_type enum.
4696 (oload_method_static): Verify index is a proper value.
4697 * valarith.c (value_user_defined_cpp_op): Search for and handle
4698 both member and non-member operators.
4699 (value_user_defined_cpp_op): New function.
4700 (value_user_defined_op): New function.
4701 (value_x_unop): Use value_user_defined_op.
4702 (value_x_binop): Ditto.
4703 * cp-support.c (make_symbol_overload_list_using): Added block
4704 iteration.
4705 Add check for namespace aliases and imported declarations.
4706
ee55da67
JK
47072010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4708
4709 * breakpoint.h (owner): Extend the comment.
4710
1a2ab13a
JK
47112010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4712
4713 Clear stale specific bp_location from former whole breakpoint.
4714 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4715 code ...
4716 (free_bp_location): ... here. Rename there the called function to
4717 bpstat_remove_bp_location_callback.
4718 (bpstat_remove_breakpoint_callback): Rename to ...
4719 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4720 to struct bp_location. Change the called function to
4721 bpstat_remove_bp_location. Create new declaration for the function.
4722 (bpstat_remove_breakpoint): Rename to ...
4723 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4724 code for the new parameter type.
4725
16d6b4b7
NS
47262010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4727
4728 * README: Make version-agnostic.
4729
7e314c57
JK
47302010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4731
4732 Fix duplicate types for single DIE.
4733 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4734 set_die_type.
4735 (read_array_type): Remove type initialization. Recheck get_die_type
4736 after initial die_type. Move set_die_type before set_descriptive_type.
4737 (read_set_type): New variable domain_type. Recheck get_die_type after
4738 initial die_type. Move attr initialization later.
4739 (read_tag_pointer_type, read_tag_reference_type): New variable
4740 target_type. Recheck get_die_type after initial die_type.
4741 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4742 die_type and die_containing_type.
4743 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4744 Recheck get_die_type after initial die_type.
4745 (read_subrange_type): Recheck get_die_type after initial die_type.
4746 Move set_die_type before set_descriptive_type.
4747 (set_die_type): Extend the function comment. Call complaint if DIE has
4748 some type already set.
4749
2f296114
VP
47502010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4751
4752 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4753 for current naming of thread groups (iN, not N).
4754
554794dc
SDJ
47552010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4756
4757 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4758 * parse.c (operator_length): Likewise.
4759 (operator_length_standard): Likewise.
4760 * parser-defs.h (operator_length): Likewise.
4761 (operator_length_standard): Likewise.
4762 (struct exp_descriptor <operator_length>): Likewise.
4763
967cf477
DE
47642010-06-04 Doug Evans <dje@google.com>
4765
bddaacb9 4766 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4767 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4768 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4769 * python/python.c (gdbpy_enabled_cst): Define.
4770 (_initialize_python): Initialize gdbpy_enabled_cst.
4771 * NEWS: Add entry.
4772
2dec564e
JK
47732010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4774
4775 * breakpoint.c (update_global_location_list): Fix comment typo.
4776
44b5680a
HZ
47772010-06-04 Hui Zhu <teawater@gmail.com>
4778
4779 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4780
e7a30f46
DE
47812010-06-03 Doug Evans <dje@google.com>
4782
4783 * configure.ac: Don't fail if python is unusable when
4784 configured with --with-python=auto.
4785 * configure: Regenerate.
4786
84b4420f
SW
47872010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4788
889bf7c5 4789 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4790
df178451
PM
47912010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4792
4793 * valprint.h (get_array_bounds): Change low and high parameter types
4794 to LONGEST *.
0407b3f1 4795 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4796 compute bounds.
4797 (val_print_array_elements): Adapt to change above.
4798 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4799 * p-valprint.c (pascal_val_print): Likewise.
4800
fd5700c7
JK
48012010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4802
4803 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4804 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4805 .F08.
4806
f55ee35c
JK
48072010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4808
4809 Support DW_TAG_module as separate namespaces.
4810 * dwarf2read.c (typename_concat): New parameter physname.
4811 (read_module_type): New function and declaration.
4812 (scan_partial_symbols): Scan also DW_TAG_module children.
4813 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4814 to typename_concat backward compatible physname value 0.
4815 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4816 backward compatible physname value 0.
4817 (add_partial_module, read_module): Remove FIXME comment.
4818 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4819 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4820 DIEs under DW_TAG_module.
4821 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4822 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4823 && physname and return there instead of just setting NAME. Extend
4824 the main block for language_fortran. Pass physname parameter to the
4825 typename_concat call.
4826 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4827 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4828 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4829 missing from SYMBOL_SET_NAMES in the language_fortran case.
4830 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4831 variables.
4832 (read_type_die) <DW_TAG_module>: New.
4833 (MAX_SEP_LEN): Increase to 7.
4834 (typename_concat): New parameter physname. New variable lead. Support
4835 also language_fortran.
4836 * f-exp.y (yylex): Consider : also as a symbol name character class.
4837 * f-lang.c: Include cp-support.h.
4838 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4839 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4840 f_word_break_characters and f_make_symbol_completion_list.
4841 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4842 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4843 * symtab.c (symbol_init_language_specific): Support language_fortran.
4844 (symbol_find_demangled_name): New comment on language_fortran.
4845 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4846 for language_fortran.
4847 (lookup_symbol_aux_local): Check imports also for language_fortran.
4848 (default_make_symbol_completion_list): Rename to ...
4849 (default_make_symbol_completion_list_break_on): ... this name. New
4850 parameter break_on, use it.
4851 (default_make_symbol_completion_list): New stub.
4852 * symtab.h (default_make_symbol_completion_list_break_on): New
4853 prototype.
4854
cb91c06a
JB
48552010-06-02 Joel Brobecker <brobecker@adacore.com>
4856
4857 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4858 to error.
4859
5c315b68
JK
48602010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4861
4862 * dwarf2read.c (typename_concat): Add const to the variable sep.
4863
9eae7c52
TT
48642010-06-02 Tom Tromey <tromey@redhat.com>
4865
4866 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4867 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4868 type is const. Add 'def' argument. Add missing operators, remove
4869 unhandled ones.
4870 (decode_locdesc): Update.
4871 (dwarf2_always_disassemble): New global.
4872 (show_dwarf2_always_disassemble): New function.
4873 (_initialize_dwarf2_read): Add always-disassemble.
4874 (dwarf2_per_cu_offset_size): New function.
4875 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4876 (piece_end_p): New function.
4877 (locexpr_describe_location_piece): Replace 'size' argument with
4878 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4879 some constants. Remove errors.
4880 (disassemble_dwarf_expression): New function.
4881 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4882 Add 'offset_size' argument.
4883 (loclist_describe_location): Change output formatting.
4884 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4885
7d3fe98e
SW
48862010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4887
4888 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4889 anonymous type case.
4890
e77813c8
PM
48912010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4892
4893 * dwarf2read.c (read_subrange_type): Handle missing base type
4894 according to Dwarf-2 specifications.
4895
7cf3118a
SDJ
48962010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4897
4898 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4899 BINOP_EXCL.
4900 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4901 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4902 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4903 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4904 UNOP_CHMAX, UNOP_CHMIN.
4905 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4906 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4907 UNOP_CHMIN>: Remove opcodes.
4908
ae4d0c03
PM
49092010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4910
4911 * dwarf2read.c (read_func_scope): Do not complain for
4912 external function if bounds are not found.
4913
fa593d66
PA
49142010-06-01 Pedro Alves <pedro@codesourcery.com>
4915
4916 * NEWS: Mention gdbserver fast tracepoints support.
4917
cd44747c
PM
49182010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4919
4920 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4921 New macros.
4922 (windows_set_console_info): New function.
4923 (windows_create_inferior): Call windows_set_console_info
4924 if NEW_CONSOLE is true.
4925 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4926 (_initialize_loadable): Initialize GetConsoleFontSize and
4927 GetCurrentConsoleFont.
4928
f6528abd
JK
49292010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4930
4931 * Makefile.in (RDYNAMIC): New.
4932 (SFILES): Add proc-service.list.
4933 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4934 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4935 * config/arm/linux.mh: Likewise.
4936 * config/i386/linux.mh: Likewise.
4937 * config/i386/linux64.mh: Likewise.
4938 * config/ia64/linux.mh: Likewise.
4939 * config/m32r/linux.mh: Likewise.
4940 * config/m68k/linux.mh: Likewise.
4941 * config/mips/linux.mh: Likewise.
4942 * config/pa/linux.mh: Likewise.
4943 * config/powerpc/linux.mh: Likewise.
4944 * config/powerpc/ppc64-linux.mh: Likewise.
4945 * config/s390/s390.mh: Likewise.
4946 * config/sparc/linux.mh: Likewise.
4947 * config/sparc/linux64.mh: Likewise.
4948 * config/xtensa/linux.mh: Likewise.
4949 * configure.ac: New RDYNAMIC on native host and GCC.
4950 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4951 * configure: Regenerate.
4952 * proc-service.list: New.
4953
ca2a87a0
JK
49542010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4955
4956 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4957 CONTENT.
4958
1e225492
JK
49592010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4960
4961 * linux-nat.c (linux_nat_wait_1): Do not call
4962 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4963 TARGET_WAITKIND_SIGNALLED.
4964
e802dbe0
JB
49652010-05-27 Joel Brobecker <brobecker@adacore.com>
4966
4967 * ada-lang.c (ada_inferior_data): New struct.
4968 (ada_inferior_data): New static global.
4969 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4970 (ada_get_tsd_type): New functions.
4971 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4972 to look the tsd type up.
4973 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4974 event. Set ada_inferior_data.
4975
176a6961
PA
49762010-05-27 Pedro Alves <pedro@codesourcery.com>
4977
4978 * remote.c (unpack_varlen_hex): Remove forward declaration.
4979 (remote_console_output): Make static, and add forward declaration.
4980 * remote.h: Drop FIXME comment.
4981 (unpack_varlen_hex): Declare.
4982 (remote_console_output, remote_cisco_objfile_relocate)
4983 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4984 Delete declarations.
4985 * tracepoint.c: Include "remote.h".
4986 (unpack_varlen_hex): Delete declaration.
4987
88bfdde4
TT
49882010-05-27 Tom Tromey <tromey@redhat.com>
4989
4990 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4991 (allocate_piece_closure): Initialize refc.
4992 (copy_pieced_value_closure): Use refc.
4993 (free_pieced_value_closure): Likewise.
4994
8c6363cf
TT
49952010-05-27 Tom Tromey <tromey@redhat.com>
4996
4997 * arm-tdep.c (push_stack_item): 'contents' now const.
4998 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4999 value_contents_writeable. Introduce new temporary.
5000
7ecb917e
TT
50012010-05-27 Tom Tromey <tromey@redhat.com>
5002
5003 * findcmd.c (parse_find_args): Use value_contents, not
5004 value_contents_raw.
5005
f42a0a33
TT
50062010-05-27 Tom Tromey <tromey@redhat.com>
5007
5008 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5009 const. Use value_contents, not value_contents_writeable.
5010
12b795ad
JB
50112010-05-27 Joel Brobecker <brobecker@adacore.com>
5012
5013 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5014 by call to value_contents.
5015
5a2e11c7
OS
50162010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5017
5018 * MAINTAINERS: Add myself for write after approval privileges.
5019
ec685c5e
DE
50202010-05-26 Doug Evans <dje@google.com>
5021
0c4a4063
DE
5022 Allow python to find its files if moved from original location.
5023 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5024 (GDB_AC_WITH_DIR): Call it.
5025 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5026 python installation directory.
5027 * config.in: Regenerate.
5028 * configure: Regenerate.
5029 * defs.h (python_libdir): Declare.
5030 * main.c (python_libdir): Define.
5031 (captured_main): Initialize python_libdir.
5032 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5033 call Py_SetProgramName to make sure python can find its libraries
5034 and modules.
5035
ec685c5e
DE
5036 * configure.ac: Try to use python's distutils to fetch compilation
5037 parameters.
5038 * configure: Regenerate.
5039 * python/python-config.py: New file.
5040
363a6e9f
OS
50412010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5042
5043 * ser-tcp.c (net_open): Check error return from socket() call by its
5044 equality to -1 not by it being negative.
5045 (net_close): Likewise.
5046
dde08ee1
PA
50472010-05-26 Pedro Alves <pedro@codesourcery.com>
5048
5049 * NEWS: Mention the `qRelocInsn' feature.
5050 * gdbarch.sh (relocate_instruction): New.
5051 * amd64-tdep.c (rip_relative_offset): New.
5052 (append_insns): New.
5053 (amd64_relocate_instruction): New.
5054 (amd64_init_abi): Install it.
5055 * i386-tdep.c (append_insns): New.
5056 (i386_relocate_instruction): New.
5057 (i386_gdbarch_init): Install it.
5058 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5059 * gdbarch.h, gdbarch.c: Regenerate.
5060
947bb88f
TT
50612010-05-26 Tom Tromey <tromey@redhat.com>
5062
5063 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5064 (struct dwarf2_loclist_baton) <data>: Likewise.
5065 * dwarf2loc.c (find_location_expression): Constify return type.
5066 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5067 (dwarf2_loc_desc_needs_frame): Likewise.
5068 (loclist_read_variable): Constify.
5069 (loclist_describe_location): Likewise.
5070 (loclist_tracepoint_var_ref): Likewise.
5071
0d45f56e
TT
50722010-05-25 Tom Tromey <tromey@redhat.com>
5073
5074 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5075 (dwarf_expr_frame_base_1): Likewise.
5076 (read_pieced_value): Update.
5077 (needs_frame_frame_base): Constify.
5078 (dwarf2_tracepoint_var_loc): Likewise.
5079 (dwarf2_tracepoint_var_access): Likewise.
5080 (locexpr_describe_location_piece): Likewise.
5081 (locexpr_describe_location_1): Likewise.
5082 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5083 Constify.
5084 (data): Now const.
5085 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5086 (dwarf_expr_eval, read_uleb128, read_sleb128)
5087 (dwarf2_read_address): Update.
5088 * dwarf2expr.c (dwarf_expr_eval): Constify.
5089 (read_uleb128): Likewise.
5090 (read_sleb128): Likewise.
5091 (dwarf2_read_address): Likewise.
5092 (require_composition): Likewise.
5093 (execute_stack_op): Likewise.
5094 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5095 "const gdb_byte *".
5096 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5097 Now const.
5098 (no_get_frame_base): Constify.
5099 (execute_stack_op): Likewise.
5100 (execute_cfa_program): Likewise.
5101 (read_encoded_value): Likewise.
5102
07ca107c
DE
51032010-05-25 Doug Evans <dje@google.com>
5104
e34838f0
DE
5105 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5106
01f69b38
DE
5107 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5108 * event-loop.c: ... here.
5109 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5110 `error' for clarity.
5111 (tui_getc): Pass correct value for `error' parameter to
5112 tui_readline_output.
5113
07ca107c
DE
5114 Add python gdb.GdbError and gdb.string_to_argv.
5115 * NEWS: Document them.
5116 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5117 the exception is gdb.GdbError. Print a second traceback if there's
5118 an error computing the error message.
5119 (gdbpy_string_to_argv): New function.
5120 * python/py-utils.c (gdbpy_obj_to_string): New function.
5121 (gdbpy_exception_to_string): New function.
5122 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5123 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5124 (gdbpy_gdberror_exc): Declare.
5125 * python/python.c (gdbpy_gdberror_exc): New global.
5126 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5127 gdb.GdbError.
5128 (GdbMethods): Add string_to_argv.
5129
5572ce1f
PM
51302010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5131
5132 * windows-nat.c (display_selector): Call GetLastError to give better
5133 failure explanation.
5134
acd5838a
PA
51352010-05-24 Pedro Alves <pedro@codesourcery.com>
5136
5137 * config.in: Regenerate.
5138
b26a4dcb
JK
51392010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5140
5141 Code cleanup.
5142 * target.c (push_target): Return only void. Remove the return value
5143 comment.
5144 * target.h (push_target): Return only void.
5145
f434ba03
PA
51462010-05-23 Pedro Alves <pedro@codesourcery.com>
5147
5148 Update gnulib from latest git.
5149 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5150
5151 * gnulib/memcmp.c: Removed.
5152 * gnulib/memchr.valgrind: New.
5153 * gnulib/stddef.in.h: New.
5154 * gnulib/Makefile.am: Updated.
5155 * gnulib/memchr.c: Updated.
5156 * gnulib/memmem.c: Updated.
5157 * gnulib/stdint.in.h: Updated.
5158 * gnulib/str-two-way.h: Updated.
5159 * gnulib/string.in.h: Updated.
5160 * gnulib/wchar.in.h: Updated.
5161
5162 * gnulib/extra/link-warning.h: Removed.
5163 * gnulib/extra/c++defs.h: New.
5164 * gnulib/extra/warn-on-use.h: New.
5165 * gnulib/extra/arg-nonnull.h: Updated.
5166
5167 * gnulib/m4/extensions.m4: Updated.
5168 * gnulib/m4/gnulib-cache.m4: Updated.
5169 * gnulib/m4/gnulib-common.m4: Updated.
5170 * gnulib/m4/gnulib-comp.m4: Updated.
5171 * gnulib/m4/gnulib-tool.m4: Updated.
5172 * gnulib/m4/include_next.m4: Updated.
5173 * gnulib/m4/longlong.m4: Updated.
5174 * gnulib/m4/memchr.m4: Updated.
5175 * gnulib/m4/memmem.m4: Updated.
5176 * gnulib/m4/stdint.m4: Updated.
5177 * gnulib/m4/string_h.m4: Updated.
5178 * gnulib/m4/memcmp.m4: Removed.
5179 * gnulib/m4/onceonly_2_57.m4: Removed.
5180 * gnulib/m4/00gnulib.m4: New.
5181 * gnulib/m4/mmap-anon.m4: New.
5182 * gnulib/m4/multiarch.m4: New.
5183 * gnulib/m4/onceonly.m4: New.
5184 * gnulib/m4/stddef_h.m4: New.
5185 * gnulib/m4/warn-on-use.m4: New.
5186 * gnulib/m4/wchar.m4: Removed.
5187 * gnulib/m4/wchar_h.m4: New.
5188 * gnulib/m4/wchar_t.m4: New.
5189 * gnulib/m4/wint_t.m4: New.
5190
5191 * aclocal.m4: Regenerate.
5192 * config.in: Likewise.
5193 * configure: Likewise.
5194 * gnulib/Makefile.in: Likewise.
5195
d3b1e874
TT
51962010-05-21 Tom Tromey <tromey@redhat.com>
5197
5198 * dwarf2loc.c (extract_bits_primitive): New function.
5199 (extract_bits): Likewise.
5200 (insert_bits): Likewise.
5201 (copy_bitwise): Likewise.
5202 (read_pieced_value): Do all operations in bits.
5203 (write_pieced_value): Likewise.
5204 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5205 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5206 Always use xrealloc to resize piece array.
5207 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5208 <DW_OP_piece>: Update.
5209 <DW_OP_bit_piece>: New case.
5210
cb826367
TT
52112010-05-21 Tom Tromey <tromey@redhat.com>
5212
5213 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5214 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5215 * dwarf2expr.h (enum dwarf_value_location)
5216 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5217 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5218 (add_piece): Handle empty piece.
5219 (execute_stack_op) <DW_OP_piece>: Handle
5220 DWARF_VALUE_OPTIMIZED_OUT.
5221
74de6778
TT
52222010-05-21 Tom Tromey <tromey@redhat.com>
5223
5224 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5225 evaluate_subexp, not evaluate_subexp_with_coercion.
5226
f346a30d
PM
52272010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5228
5229 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5230 attribute.
5231
afd74c5f
TT
52322010-05-21 Tom Tromey <tromey@redhat.com>
5233
5234 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5235 offset.
5236 (write_pieced_value): Likewise.
5237
90e7c2c5
PM
52382010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5239
5240 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5241 and DW_TAG_volatile_type.
5242 (new_symbol): Likewise.
5243
8148cf8d
PM
52442010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5245
5246 * p-valprint.c (pascal_val_print): Call get_array_bounds
5247 to obtain the number of elements in an array.
5248
3a1d4620
DE
52492010-05-19 Doug Evans <dje@google.com>
5250
0bf0f8c4
DE
5251 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5252
3a1d4620
DE
5253 * python.c (source_python_script): Add comment.
5254 (source_python_script_for_objfile): Remove unnecessary call to
5255 gdbpy_print_stack.
5256
dc21167c
JK
52572010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5258 Sergio Durigan Junior <sergiodj@redhat.com>
5259
5260 Code cleanup.
5261 * parse.c (exp_iterate): Use operator_length wrapper function.
5262
5b4ee69b
MS
52632010-05-18 Michael Snyder <msnyder@vmware.com>
5264
5265 * ada-lang.c: White space.
5266 * ada-typeprint.c: White space.
5267 * ada-valprint.c: White space.
5268 * addrmap.c: White space.
5269 * auxv.c: White space.
5270 * ax-gdb.c: White space.
5271
e17c9e56
HZ
52722010-05-18 Hui Zhu <teawater@gmail.com>
5273
5274 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5275 for oldfp.
5276 (inferior_call_waitpid): Move make_cleanup out of check.
5277 Check the return of waitpid.
5278 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5279
a109c7c1
MS
52802010-05-17 Michael Snyder <msnyder@vmware.com>
5281
1c5313c5
MS
5282 * tui/tui.c: White space.
5283 * tui/tui-data.c: White space.
5284 * tui/tui-disasm.c: White space.
5285 * tui/tui-file.c: White space.
5286 * tui/tui-interp.c: White space.
5287 * tui/tui-main.c: White space.
5288 * tui/tui-out.c: White space.
5289 * tui/tui-regs.c: White space.
5290 * tui/tui-source.c: White space.
5291 * tui/tui-stack.c: White space.
5292 * tui/tui-win.c: White space.
5293 * tui/tui-winsource.c: White space.
5294
f4a14ae6
MS
5295 * procfs.c: White space.
5296
d59b6f6c
MS
5297 * python/py-auto-load.c: White space.
5298 * python/py-block.c: White space.
5299 * python/py-breakpoint.c: White space.
5300 * python/py-cmd.c: White space.
5301 * python/py-function.c: White space.
5302 * python/py-lazy-string.c: White space.
5303 * python/py-objfile.c: White space.
5304 * python/py-param.c: White space.
5305 * python/py-prettyprint.c: White space.
5306 * python/py-progspace.c: White space.
5307 * python/py-symtab.c: White space.
5308 * python/python.c: White space.
5309 * python/py-type.c: White space.
5310 * python/py-utils.c: White space.
5311 * python/py-value.c: White space.
5312
102040f0
MS
5313 * mi/mi-cmd-break.c: White space.
5314 * mi/mi-cmd-env.c: White space.
5315 * mi/mi-cmds.c: White space.
5316 * mi/mi-cmd-stack.c: White space.
5317 * mi/mi-cmd-var.c: White space.
5318 * mi/mi-console.c: White space.
5319 * mi/mi-getopt.c: White space.
5320 * mi/mi-interp.c: White space.
5321 * mi/mi-main.c: White space.
5322 * mi/mi-out.c: White space.
5323 * mi/mi-parse.c: White space.
5324
cdb27c12
MS
5325 * cli/cli-cmds.c: White space.
5326 * cli/cli-decode.c: White space.
5327 * cli/cli-dump.c: White space.
5328 * cli/cli-interp.c: White space.
5329 * cli/cli-logging.c: White space.
5330 * cli/cli-script.c: White space.
5331 * cli/cli-setshow.c: White space.
5332
a109c7c1
MS
5333 * valarith.c: White space.
5334 * valops.c: White space.
5335 * valprint.c: White space.
5336 * value.c: White space.
5337 * varobj.c: White space.
5338 * xcoffread.c: White space.
5339 * xml-support.c: White space.
5340 * xml-tdesc.c: White space.
5341
3872d37d
AS
53422010-05-17 Andreas Schwab <schwab@redhat.com>
5343
5344 PR gdb/11092
5345 * c-lang.c (c_printstr): Compute real length of NUL terminated
5346 string at first.
5347
0cce5bd9
JB
53482010-05-17 Joel Brobecker <brobecker@adacore.com>
5349
5350 * parse.c (parse_exp_in_context): When block is not NULL, use
5351 its associated language to parse the expression instead of
5352 the current_language.
5353
5f19d646
JB
53542010-05-17 Joel Brobecker <brobecker@adacore.com>
5355
5356 * jv-lang.c (java_lookup_class): Remove commented out code.
5357 (type_from_class): Likewise.
5358 (java_op_print_tab): Remove commented-out elements.
5359
28c85d6c
JB
53602010-05-17 Joel Brobecker <brobecker@adacore.com>
5361
5362 * ada-lang.c (to_fixed_range_type): The the raw index type as
5363 argument instead of the raw type name. Remove orig_type parameter.
5364 Update calls throughout.
5365 (ada_fixup_array_indexes_type): New function.
5366 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5367 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5368 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5369 Remove name parameter.
5370 (print_array_type): Add call to ada_fixup_array_indexes_type.
5371 Update calls to print_range_type.
5372 (ada_print_type): Update calls to print_range_type.
5373
d09039dd
PM
53742010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5375
5376 * dwarf2read.c (read_set_type): Set type length if
5377 DW_AT_byte_size attribute is present.
5378
7a081a30
PM
53792010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5380
5381 * p-valprint.c (pascal_val_print): Handle set type if range limits
5382 are undefined but size is known.
5383
77382aee
PA
53842010-05-17 Pedro Alves <pedro@codesourcery.com>
5385
5386 * procfs.c: Reformat.
5387
433759f7
MS
53882010-05-16 Michael Snyder <msnyder@vmware.com>
5389
5d502164
MS
5390 * target.c: White space.
5391 * target-descriptions.c: White space.
5392 * target-memory.c: White space.
5393 * thread.c: White space.
5394 * top.c: White space.
5395 * tracepoint.c: White space.
5396 * trad-frame.c: White space.
5397 * tramp-frame.c: White space.
5398 * ui-file.c: White space.
5399 * ui-out.c: White space.
5400 * user-regs.c: White space.
5401 * utils.c: White space.
5402
433759f7
MS
5403 * scm-exp.c: White space.
5404 * scm-lang.c: White space.
5405 * scm-valprint.c: White space.
5406 * sentinel-frame.c: White space.
5407 * ser-base.c: White space.
5408 * ser-go32.c: White space.
5409 * serial.c: White space.
5410 * ser-mingw.c: White space.
5411 * ser-pipe.c: White space.
5412 * ser-tcp.c: White space.
5413 * ser-unix.c: White space.
5414 * solib.c: White space.
5415 * solib-darwin.c: White space.
5416 * solib-frv.c: White space.
5417 * solib-irix.c: White space.
5418 * solib-osf.c: White space.
5419 * solib-pa64.c: White space.
5420 * solib-som.c: White space.
5421 * solib-spu.c: White space.
5422 * solib-svr4.c: White space.
5423 * solib-target.c: White space.
5424 * source.c: White space.
5425 * stabsread.c: White space.
5426 * stack.c: White space.
5427 * std-regs.c: White space.
5428 * symfile.c: White space.
5429 * symmisc.c: White space.
5430 * symtab.c: White space.
5431
dd304d53
MS
54322010-05-16 Michael Snyder <msnyder@vmware.com>
5433
5434 * source.c (_initialize_source): Add "rev" as an abbreviation
5435 for the "reverse-search" command.
5436
a744cf53
MS
54372010-05-16 Michael Snyder <msnyder@vmware.com>
5438
123f5f96
MS
5439 * record.c: White space.
5440 * regcache.c: White space.
5441 * reggroups.c: White space.
5442 * remote-fileio.c: White space.
5443 * remote-m32r-sdi.c: White space.
5444 * remote-mips.c: White space.
5445 * remote-sim.c: White space.
a744cf53
MS
5446 * remote.c: White space.
5447 (process_g_packet): Remove orphan braces.
5448
b8d56208
MS
54492010-05-15 Michael Snyder <msnyder@vmware.com>
5450
ad3bbd48
MS
5451 * parse.c: White space.
5452 * p-lang.c: White space.
5453 * posix-hdep.c: White space.
5454 * printcmd.c: White space.
5455 * progspace.c: White space.
5456 * prologue-value.c: White space.
5457 * psymtab.c: White space.
5458 * p-typeprint.c: White space.
5459 * p-valprint.c: White space.
5460
5cc80db3
MS
5461 * objc-lang.c: White space.
5462 * objfiles.c: White space.
5463 * observer.c: White space.
5464 * osabi.c: White space.
5465 * osdata.c: White space.
5466
b8d56208
MS
5467 * m2-lang.c: White space.
5468 * m2-valprint.c: White space.
5469 * macrocmd.c: White space.
5470 * macroexp.c: White space.
5471 * macroscope.c: White space.
5472 * macrotab.c: White space.
5473 * main.c: White space.
5474 * maint.c: White space.
5475 * mdebugread.c: White space.
5476 * memattr.c: White space.
5477 * minsyms.c: White space.
5478 * monitor.c: White space.
5479
9a619af0
MS
54802010-05-14 Michael Snyder <msnyder@vmware.com>
5481
e0881a8e
MS
5482 * jv-lang.c: White space.
5483 * jv-typeprint.c: White space.
5484 * jv-valprint.c: White space.
5485 * language.c: White space.
5486 * libunwind-frame.c: White space.
5487 * linespec.c: White space.
5488 * linux-nat.c: White space.
5489 * linux-record.c: White space.
5490 * linux-thread-db.c: White space.
5491
abbb1732
MS
5492 * infcall.c: White space.
5493 * inf-child.c: White space.
5494 * infcmd.c: White space.
5495 * inferior.c: White space.
5496 * inf-loop.c: White space.
5497 * inflow.c: White space.
5498 * inline-frame.c: White space.
5499 * interps.c: White space.
5500
d8734c88
MS
5501 * gcore.c: White space.
5502 * gdb.c: White space.
5503 * gdbtypes.c: White space.
5504 * gnu-nat.c: White space.
5505 * gnu-v2-abi.c: White space.
5506 * gnu-v3-abi.c: White space.
5507
bb9bcb69
MS
5508 * findcmd.c: White space.
5509 * findvar.c: White space.
5510 * fork-child.c: White space.
5511 * frame-base.c: White space.
5512 * frame.c: White space.
5513 * frame-unwind.c: White space.
5514 * f-valprint.c: White space.
5515
d7f9d729
MS
5516 * elfread.c: White space.
5517 * environ.c: White space.
5518 * eval.c: White space.
5519 * event-loop.c: White space.
5520 * event-top.c: White space.
5521 * exceptions.c: White space.
5522 * exec.c: White space.
5523 * expprint.c: White space.
5524
9a619af0
MS
5525 * dbxread.c: White space.
5526 * dcache.c: White space.
5527 * disasm.c: White space.
5528 * doublest.c: White space.
5529 * dsrec.c: White space.
5530 * dummy-frame.c: White space.
5531 * dwarf2expr.c: White space.
5532 * dwarf2-frame.c: White space.
5533 * dwarf2loc.c: White space.
5534 * dwarf2read.c: White space.
5535
88d4aea7
PM
55362010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5537
889bf7c5 5538 PR python/11482
88d4aea7
PM
5539
5540 * python/py-value.c (valpy_hash): New function.
5541 (value_object_type): Register valpy_hash.
5542
7a298875 55432010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 5544 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
5545
5546 * linux-fork.c (gdbthread.h): New include.
5547 (fork_info): Add parent_ptid.
5548 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5549 functions.
5550 (delete_checkpoint_command): Call inferior_call_waitpid.
5551 (checkpoint_command): Set parent_ptid.
5552
c14feecc
MS
55532010-05-13 Michael Snyder <msnyder@vmware.com>
5554
6595d32b
MS
5555 * dictionary.c: Re-indent to GNU coding standard.
5556
c5504eaf
MS
5557 * charset.c: White space.
5558 * c-lang.c: White space.
5559 * cli-out.c: White space.
5560 * coffread.c: White space.
5561 * complaints.c: White space.
5562 * completer.c: White space.
5563 * corefile.c: White space.
5564 * corelow.c: White space.
5565 * cp-abi.c: White space.
5566 * cp-namespace.c: White space.
5567 * cp-support.c: White space.
5568 * cp-valprint.c: White space.
5569 * c-typeprint.c: White space.
5570 * c-valprint.c: White space.
cc59ec59
MS
5571 * blockframe.c: White space.
5572 * breakpoint.c: White space.
5573 * buildsym.c: White space.
5574 * blockframe.c: White space.
b6de9da4 5575 * bcache.c: White space.
05c547f6
MS
5576 * gdbarch.sh: White space, add blank lines.
5577 * arch-utils.c: Ditto.
5578 * gdbarch.c: Regenerate.
1c4d3f96 5579 * frame.c: White space, add blank lines.
f89b749f
MS
5580 * stack.c: White space, add blank lines.
5581 (initialize_stack): Remove long-dead code.
c14feecc 5582
a2d33775
JK
55832010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5584
5585 Code cleanup.
5586 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5587 (locexpr_read_variable, loclist_read_variable): Update the callers.
5588
33ac96f0
JK
55892010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5590
5591 Code cleanup.
5592 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5593 Remove check of NULL returned by tag_type_to_type.
5594 (die_containing_type): Remove variable type. Remove type_die variable
5595 initialization. Remove check of NULL returned by tag_type_to_type.
5596
f5a010c0
PM
55972010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5598
5599 PR exp/11530.
5600 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5601 names of unnamed structures or unions.
5602
bf701c2c
PM
56032010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5604
5605 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 5606 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
5607 find_procinfo_or_die call.
5608 (procfs_stopped_data_address): New function.
5609 (procfs_use_watchpoints): Register new watchpoint related function.
5610
d02691ef
TT
56112010-05-11 Tom Tromey <tromey@redhat.com>
5612
5613 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5614
e0627e85
MS
56152010-05-10 Michael Snyder <msnyder@vmware.com>
5616
5617 * utils.c: White space cleanup.
5618
cc73bb8c
TT
56192010-05-10 Tom Tromey <tromey@redhat.com>
5620
5621 * eval.c (ptrmath_type_p): Add 'lang' argument.
5622 (evaluate_subexp_standard): Update.
5623 (evaluate_subexp_with_coercion): Update.
5624 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5625
c02866a0
MS
56262010-05-10 Michael Snyder <msnyder@vmware.com>
5627
5628 * utils.c (do_fclose_cleanup) Restore local variable.
5629
06280d23
DE
56302010-05-09 Doug Evans <dje@google.com>
5631
5632 * record.c (init_record_core_ops): Rename record_core to record-core.
5633
fa07e785
JB
56342010-05-08 Joel Brobecker <brobecker@adacore.com>
5635
5636 Implement task switching on pa-hpux.
5637 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5638 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5639
4c680d1d
PM
56402010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5641
5642 * valops.c (find_overload_match): Add missing i18n markup.
5643
28e176a6
PM
56442010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5645
5646 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5647
48cb83fd
JK
56482010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5649
5650 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5651 list for the obconcat call.
5652 * mdebugread.c (parse_symbol): Likewise.
5653 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5654 Likewise.
5655 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5656 New variable ap. Remove variables len and val.
5657 * symfile.h (obconcat): Likewise for the prototype.
5658
f92adf3c
MS
56592010-05-07 Michael Snyder <msnyder@vmware.com>
5660
5661 * python/python.c (execute_gdb_command): Remove unused variables.
5662 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5663 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5664 Remove unused variable.
5665 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5666 (cmdpy_completer): Remove unused variable.
5667 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5668 * python/py-function.c (fnpy_call): Remove unused variable.
5669 * python/py-objfile.c (objfile_to_objfile_object):
5670 Remove unused variable.
5671 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5672 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5673 Remove unused variable.
5674 (gdbpy_default_visualizer): Remove unused variable.
5675 * python/py-progspace.c (pspace_to_pspace_object):
5676 Remove unused variable.
0407b3f1 5677 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5678 Remove unused variable.
0407b3f1 5679 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5680 Remove unused variable.
5681 * python/py-value.c (valpy_string): Remove unused variable.
5682 (convert_value_from_python): Remove unused variables.
5683
d160942f
MS
56842010-05-07 Michael Snyder <msnyder@vmware.com>
5685
5686 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5687 and use it to compute variable 't1'.
5688
587542ab
JB
56892010-05-07 Joel Brobecker <brobecker@adacore.com>
5690
5691 * ada-lang.c (assign_aggregate): Remove unused variable.
5692
7322dca9
SW
56932010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5694
5695 PR C++/7943:
5696 * valops.c (find_overload_match): Handle fsym == NULL case.
5697 Add int no_adl argument.
5698 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5699 when appropriate.
5700 Add int no_adl argument.
5701 (find_oload_champ_namespace): Add int no_adl argument.
5702 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5703 expression.
5704 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5705 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5706 Evaluate arguments and use them to perform ADL lookup.
5707 Pass no_adl argument to find_overload_match.
5708 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5709 * cp-support.h: Added prototype for
5710 make_symbol_overload_list_namespace.
5711 * cp-support.c (make_symbol_overload_list_namespace): New function.
5712 (make_symbol_overload_list_adl_namespace): New function.
5713 (make_symbol_overload_list_adl): New function.
5714 (make_symbol_overload_list_using): Moved code to add function to
5715 overload set to make_symbol_overload_list_namespace.
5716 * c-exp.y: create UNKNOWN_CPP_NAME token.
5717 Add parse rule for ADL functions.
5718 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5719
3f1f6884
JK
57202010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5721
5722 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5723 sentinel.
5724
3caf13b4
JB
57252010-05-07 Joel Brobecker <brobecker@adacore.com>
5726
5727 Implement task switching on solaris targets.
5728 * sol-thread.c (thread_db_find_thread_from_tid)
5729 (sol_get_ada_task_ptid): New functions.
5730 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5731
94b0dee1
PA
57322010-05-07 Pedro Alves <pedro@codesourcery.com>
5733
5734 * remote.c (remote_query_supported_append): Use reconcat.
5735 (remote_query_supported): Install a cleanup. Use reconcat.
5736
1408c251
PA
57372010-05-07 Pedro Alves <pedro@codesourcery.com>
5738
5739 * gdbarch.sh (qsupported): Delete.
5740 * gdbarch.h, gdbarch.c: Regenerate.
5741 * remote.c (remote_query_supported): Remove use of
5742 gdbarch_qsupported.
5743
f8e50cfe
SDJ
57442010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5745
5746 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5747 function.
5748
8ea13695
MS
57492010-05-06 Michael Snyder <msnyder@vmware.com>
5750
c6913b7d
MS
5751 * xml-support.c (xinclude_start_include): Delete unused variable.
5752 (xml_process_xincludes): Delete unused variable.
5753 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5754 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5755 (tdesc_find_arch_register): Delete unused variable.
5756 (tdesc_use_registers): Delete unused variable.
5757 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5758 * inferior.c (print_inferior): Delete unused variable.
5759 * record.c (record_open_1): Delete unused variable.
5760 (record_restore): Delete unused variable.
5761 (cmd_record_save): Delete unused variable.
5762 * gcore.c (derive_heap_segment): Delete unused variable.
5763 (objfile_find_memory_regions): Use unused variable.
5764 * jit.c (jit_inferior_init): Delete unused variable.
5765 * progspace.c (clone_program_space): Delete unused variable.
5766 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5767
5768 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5769 Delete unused variable.
5770 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5771 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5772 (method_name_from_physname): Delete unused variable.
5773 (cp_func_name): Delete unused variable.
5774 (cp_validate_operator): Delete unused variable.
0407b3f1 5775 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5776 Delete unused variable.
0407b3f1 5777 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5778 Delete unused variable.
5779 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5780
1be757cf
MS
5781 * serial.c (serial_for_fd): Delete unused variable.
5782 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5783 * top.c (execute_command): Delete unused variable.
5784 (init_main): Delete unused variable.
5785 * utils.c (do_fclose_cleanup): Delete unused variable.
5786 (do_all_inferior_continuations): Delete unused variable.
5787 (initialize_utils): Delete unused variable.
5788 (internal_problem_mode): Delete unused global.
5789 * frame.c (get_prev_frame): Delete unused global.
5790 (get_frame_locals_address): Delete unused global.
5791 (get_frame_args_address): Delete unused global.
5792
9216103f
MS
5793 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5794 (pascal_type_print_varspec_prefix): Delete unused variable.
5795 * f-typeprint.c (f_type_print_base): Delete unused variable.
5796 (f_type_print_varspec_suffix): Delete unused variable.
5797 * m2-typeprint.c (m2_print_type): Delete unused variable.
5798 (m2_long_set): Delete unused variable.
5799 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5800 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5801 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5802 Delete unused variable.
5803 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5804 * m2-valprint.c (m2_val_print): Delete unused variable.
5805
34fa1d9d
MS
5806 * ui-out.c (ui_out_field_int): Delete unused variable.
5807 (ui_out_field_fmt_int): Delete unused variable.
5808 * varobj.c (varobj_list_children): Delete unused variable.
5809 (varobj_set_value): Delete unused variable.
5810 (install_new_value_visualizer): Delete unused variable.
5811 (varobj_set_visualizer): Delete unused variable.
5812 (varobj_update): Delete unused variable.
5813 (varobj_editable_p): Delete unused variable.
5814 (c_value_of_root): Delete unused variable.
5815 (cplus_describe_child): Delete unused variable.
5816
b5385fc0
MS
5817 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5818 (decode_constrained_packed_array_type): Delete unused variable.
5819 (add_defn_to_vec): Delete unused variable.
5820 (symbol_completion_match): Delete unused variable.
5821 (value_tag_from_contents_and_address): Delete unused variable.
5822 (ada_evaluate_subexp): Delete unused variable.
5823 * c-lang.c (classify_type): Delete unused variable.
5824 * f-lang.c (f_printstr): Delete unused variable.
5825 * objc-lang.c (objc_printstr): Delete unused variable.
5826 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5827 * jv-lang.c (type_from_class): ifdef unused variable.
5828 (java_class_name_from_physname): Delete unused variable.
5829 * m2-lang.c (m2_printstr): Delete unused variable.
5830
4fc06681
MS
5831 * objfiles.c (objfile_relocate): Delete unused variable.
5832 * maint.c (_initialize_maint_cmds): Delete unused variable.
5833 * demangle.c (_initialize_demangler): Delete unused variable.
5834 * corefile.c (reopen_exec_file): Delete unused variable.
5835 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5836 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5837
6b4398f7
MS
5838 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5839 * memattr.c (mem_delete): Delete unused variable.
5840 (invalidate_target_mem_regions): Delete unused variable.
5841 * mem-break.c (default_memory_insert_breakpoint):
5842 Delete unused variable.
5843 * target.c (target_get_osdata): Delete unused variable.
5844 * parse.c (length_of_subexp): Delete unused variable.
5845 (prefixify_subexp): Delete unused variable.
5846 (exp_iterate): Delete unused variable.
5847 * reverse.c (delete_bookmark_command): Delete unused variable.
5848
308d96ed
MS
5849 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5850 * macroexp.c (gather_arguments): Delete unused variable.
5851 (substitute_args): Delete unused variable.
5852 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5853 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5854 (_initialize_gdbarch): Delete unused variable.
5855 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5856 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5857 Delete unused variable.
5858 (_initialize_gdbarch_utils): Delete unused variable.
5859 * gdbtypes.c (make_cv_type): Delete unused variable.
5860 (make_type_with_address_space): Delete unused variable.
5861
167e4384
MS
5862 * linespec.c (decode_compound): Delete unused variable.
5863 * dictionary.c (iterator_next_hashed): Delete unused variable.
5864 * infcall.c (call_function_by_hand): Delete unused variable.
5865 * infcmd.c (step_1): Delete unused variable.
5866 (registers_info): Delete unused variable.
5867 (attach_command): Delete unused variable.
5868 * infrun.c (follow_exec): Delete unused variable.
5869 (handle_step_into_function_backwards): Delete unused variable.
5870 (_initialize_infrun): Delete unused variable.
5871 * stack.c (parse_frame_specification_1): Delete unused variable.
5872 (frame_info): Delete unused variable.
5873 (backtrace_command_1): Delete unused variable.
5874 (catch_info): Delete unused variable.
5875
8f78b329
MS
5876 * eval.c (evaluate_subexp_standard): Delete unused variable.
5877 * valops.c (value_cast_pointers): Delete unused variable.
5878 (value_dynamic_cast): Delete unused variable.
5879 (value_array): Delete unused variable.
5880 (find_overload_match): Delete unused variable.
5881 * valarith.c (value_subscript): Delete unused variable.
5882 (value_binop): Delete unused variable.
5883 * valprint.c (_initialize_valprint): Delete unused variable.
5884 * printcmd.c (print_command_1): Delete unused variable.
5885 (address_info): Delete unused variable.
5886 (printf_command): Delete unused variable.
5887
8ea13695
MS
5888 * auxv.c (target_auxv_search): Delete unused variable.
5889 * blockframe.c (get_frame_block): Delete unused variable.
5890 * regcache.c (regcache_cpy): Delete unused variable.
5891 (regcache_cpy_no_passthrough): Delete unused variable.
5892 * charset.c (wchar_iterate): Delete unused variable.
5893 (find_charset_names): Delete unused variable.
5894 (_initialize_charset): Delete unused variable.
0407b3f1 5895 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5896 Delete unused variable.
0407b3f1 5897 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5898 Delete unused variable.
5899 (set_substitute_path_command): Delete unused variable.
5900 * value.c (preserve_values): Delete unused variable.
5901 (value_from_double): Delete unused variable.
5902
afe38095
MS
59032010-05-05 Michael Snyder <msnyder@vmware.com>
5904
952a6d41
MS
5905 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5906 (find_last_source_symtab_from_partial): Delete unused variable.
5907 * symfile.c (place_section): Delete unused variable.
5908 (default_symfile_offsets): Delete unused variable.
5909 (get_debug_link_info): Delete unused variable.
5910 (find_separate_debug_file_by_debuglink): Delete unused variable.
5911 (add_symbol_file_command): Delete unused variable.
5912 (symfile_find_segment_sections): Delete unused variable.
5913 * symmisc.c (free_symtab): Delete unused variable.
5914 (dump_symtab_1): Delete unused variable.
5915 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5916 (find_pc_sect_symtab): Delete unused variable.
5917 (skip_prologue_using_lineinfo): Delete unused variable.
5918 (sources_info): Delete unused variable.
5919 (completion_list_add_name): Delete unused variable.
5920 (expand_line_sal): Delete unused variable.
5921
0407b3f1 5922 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5923 Delete unused variables.
5924 (insert_catchpoint): Delete unused variable.
5925 (update_watchpoint): Delete unused variable.
5926 (insert_bp_location): Delete unused variable.
5927 (insert_breakpoint_locations): Delete unused variable.
5928 (remove_breakpoint_1): Delete unused variable.
5929 (software_breakpoint_inserted_here_p): Delete unused variable.
5930 (watchpoints_triggered): Delete unused variable.
5931 (bpstat_check_watchpoint): Delete unused variable.
5932 (bpstat_stop_status): Delete unused variable.
5933 (print_one_breakpoint_location): Delete unused variable.
5934 (allocate_bp_location): Delete unused variable.
5935 (create_breakpoint): Delete unused variable.
5936 (watch_command_1): Delete unused variable.
5937 (catch_exception_command_1): Delete unused variable.
5938 (catch_ada_exception_command): Delete unused variable.
5939 (delete_breakpoint): Delete unused variable.
5940 (breakpoint_re_set_one): Delete unused variable.
5941 (do_enable_breakpoint): Delete unused variable.
5942
eda5a4d7
PA
59432010-05-06 Pedro Alves <pedro@codesourcery.com>
5944
5945 * amd64-tdep.c: Include disasm.h.
5946 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5947 (amd64_insn_length): Moved to disasm.c and renamed.
5948 (fixup_riprel): Adjust.
5949 * disasm.c (do_ui_file_delete): New.
5950 (gdb_insn_length): New.
5951 (gdb_buffered_insn_length_fprintf)
5952 (gdb_buffered_insn_length_init_dis)
5953 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5954 renamed.
5955 * disasm.h (gdb_insn_length): Declare.
5956 (gdb_buffered_insn_length): Declare.
5957
02357a4a
PA
59582010-05-06 Pedro Alves <pedro@codesourcery.com>
5959
5960 * remote.c (clear_threads_parsing_context): New.
5961 (remote_threads_info): Delete unused null_cleanup. Install a
5962 cleanup to clear the threads_parsing_context in case parsing
5963 throws.
5964
8c5630cb
MS
59652010-05-05 Michael Snyder <msnyder@vmware.com>
5966
5967 * c-exp.y (parse_string_or_char): Delete unused variable.
5968 (c_lex): Delete unused variable.
5969 * cp-name-parser.y (cpname_lex): Delete unused variable.
5970 * ada-exp.y (find_primitive_type): Delete unused variable.
5971 (write_var_or_type): Delete unused variable.
5972 * jv-exp.y (java_parse): Delete unused variable.
5973 (push_expression_name): Delete unused variable.
5974 * p-exp.y (pascal_lex): Delete unused variable.
5975
46c162d4
PA
59762010-05-05 Pedro Alves <pedro@codesourcery.com>
5977
5978 * remote.c (remote_threads_info): Really revert previous previous
5979 change.
5980
0043e6a5
MS
59812010-05-05 Michael Snyder <msnyder@vmware.com>
5982
fa238c03
MS
5983 * elfread.c (elf_symtab_read): Delete unused variable.
5984 (find_separate_debug_file_by_buildid): Delete unused variables.
5985 (elf_symfile_read): Delete unused variable.
5986
5987 * coffread.c (coff_symfile_read): Delete unused variables.
5988
5989 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5990 (read_pe_exported_syms): Delete unused variable.
5991
5992 * stabsread.c (define_symbol): Delete unused variable.
5993
5994 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5995 (process_psymtab_comp_unit): Delete unused variable.
5996 (dwarf2_build_psymtabs_hard): Delete unused variable.
5997 (load_partial_comp_unit): Delete unused variable.
5998 (create_all_comp_units): Delete unused variable.
5999 (scan_partial_symbols): Delete unused variable.
6000 (add_partial_symbol): Delete unused variable.
6001 (add_partial_namespace): Delete unused variable.
6002 (add_partial_enumeration): Delete unused variable.
6003 (load_full_comp_unit): Delete unused variable.
6004 (process_full_comp_unit): Delete unused variable.
6005 (read_file_scope): Delete unused variable.
6006 (read_type_unit_scope): Delete unused variable.
6007 (process_structure_scope): Delete unused variable.
6008 (process_enumeration_scope): Delete unused variable.
6009 (read_tag_ptr_to_member_type): Delete unused variable.
6010 (read_typedef): Delete unused variable.
6011 (read_partial_die): Delete unused variable.
6012 (decode_locdesc): Delete unused variable.
6013 (zeroed_partial_die): Delete unused global variable.
6014
0407b3f1 6015 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 6016 Delete unused variable.
0407b3f1 6017 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
6018 Delete unused variable.
6019 (tui_check_register_values): Delete unused variable.
6020 (tui_register_format): Delete unused variable.
6021 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 6022 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
6023 Delete unused variables.
6024 (tui_vertical_data_scroll): Delete unused variables.
6025
75721c66
MS
60262010-05-05 Michael Snyder <msnyder@vmware.com>
6027
c31a71f4
MS
6028 * remote.c (remote_threads_info): Revert questionable part of
6029 the previous change.
6030
60312010-05-05 Michael Snyder <msnyder@vmware.com>
6032
6033 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6034 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6035 (mi_cmd_var_list_children): Delete unused variable.
6036 (varobj_update_one): Delete unused variable.
6037 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 6038 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
6039 Delete unused variable.
6040 (mi_cmd_stack_list_variables): Delete unused variable.
6041 (list_args_or_locals): Delete unused variable.
0407b3f1 6042 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
6043 Delete unused variables.
6044 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 6045 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
6046 Delete unused variable.
6047 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6048 (mi_cmd_interpreter_exec): Delete unused variable.
6049 (mi_on_normal_stop): Delete unused variable.
6050 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6051 (print_one_inferior): Delete unused variables.
6052 (mi_execute_command): Delete unused variable.
6053 (mi_cmd_execute): Delete unused variable.
6054 (timestamp): Delete unused variable.
6055
6056 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 6057 (restore_binary_file): Delete unused variable.
c31a71f4
MS
6058 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6059 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
6060 (recurse_read_control_structure): Delete unused variable.
6061 (script_from_file): Delete unused variable.
c31a71f4 6062 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
6063 (disassemble_command): Delete unused variable.
6064
6065 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 6066 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
6067 Delete unused variables.
6068 (encode_actions_1): Delete unused variables.
6069 (start_tracing): Delete unused variable.
6070 (trace_status_mi): Delete unused variable.
6071 (tfind_1): Delete unused variable.
6072 (trace_find_pc_command): Delete unused variable.
6073 (trace_find_line_command): Delete unused variables.
6074 (trace_find_range_command): Delete unused variables.
6075 (trace_find_outside_command): Delete unused variables.
6076 (parse_tracepoint_definition): Delete unused variables.
6077 (tfile_fetch_registers): Delete unused variable.
6078
9128a503
MS
6079 * dcache.c (dcache_init): Delete unused variable.
6080 (dcache_info): Delete unused variable.
6081
aa369b55 6082 * remote.c (remote_threads_info): Delete unused variable.
9128a503 6083 (process_stop_reply) :Delete unused variable.
aa369b55
MS
6084 (remote_get_trace_status): Delete unused variables.
6085
9e9547e4
MS
6086 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6087 (thread_from_lwp): Delete unused variable.
6088 (enable_thread_event_reporting): Delete unused variable.
6089 (check_for_thread_db): Delete unused variables.
6090 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 6091
9e9547e4
MS
6092 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6093 (checkpoint_command): Delete unused variable.
6094 (linux_fork_context): Delete unused variables.
6095
fa238c03 6096 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
6097 (linux_tracefork_child): Delete unused variable.
6098 (linux_child_follow_fork): Delete unused variable.
6099 (linux_nat_detach): Delete unused variable.
6100 (linux_handle_extended_wait): Delete unused variable.
6101 (linux_nat_has_pending_sigint): Delete unused variable.
6102 (linux_nat_find_memory_regions): Delete unused variable.
6103 (linux_nat_make_corefile_notes): Delete unused variables.
6104 (linux_nat_info_proc_cmd): Delete unused variable.
6105 (linux_proc_pending_signals): Delete unused variable.
6106 (linux_nat_stop_lwp): Delete unused variables.
6107 (_initialize_linux_nat): Delete unused variable.
6108
fa238c03 6109 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 6110
0407b3f1 6111 * linux-record.c (record_linux_system_call):
e0f069a3
MS
6112 Delete unused variables.
6113
789d24f0
MS
6114 * corelow.c (core_xfer_partial): Delete unused variables.
6115
1cd337a5 6116 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 6117 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
6118 conditionally-used variable declarations.
6119
b00e3f56
MS
6120 * solib.c (solib_find): Delete unused variable.
6121 (free_so_symbols): Delete unused variable.
6122 (info_sharedlibrary_command): Delete unused variable.
6123 (reload_shared_libraries_1): Delete unused variable.
6124 (_initialize_solib): Delete unused variable.
6125
90f62196
MS
6126 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6127 (i386_collect_xstateregset): Delete unused variable.
6128 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6129
75721c66
MS
6130 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6131 Delete unused variable 'type'.
6132
af33db37
JB
61332010-05-05 Joel Brobecker <brobecker@adacore.com>
6134
90f62196 6135 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
6136 ada-lang.c: Remove comment mentioning these macros.
6137 * m2-exp.y: Delete commented out code.
af33db37 6138
0497f5b0
JB
61392010-05-05 Joel Brobecker <brobecker@adacore.com>
6140
6141 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6142 for array types.
6143 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6144
6e39997a
PM
61452010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6146
6147 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 6148 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
6149 ATTRIBUTE_UNUSED.
6150 (cleanup_kernel_helper_return): Likewise.
6151 * arm-tdep.c (copy_unmodified): Likewise.
6152 (copy_preload): Likewise.
6153 (copy_copro_load_store): Likewise.
6154 (cleanup_branch): Likewise.
6155 (copy_b_bl_blx): Likewise.
6156 (copy_bx_blx_reg): Likewise.
6157 (copy_alu_imm): Likewise.
6158 (copy_alu_reg): Likewise.
6159 (copy_alu_shifted_reg): Likewise.
6160 (cleanup_load): Likewise.
6161 (cleanup_store): Likewise.
6162 (cleanup_block_load_pc): Likewise.
6163 (cleanup_svc): Likewise.
6164 (copy_undef): Likewise.
6165 (copy_unpred): Likewise.
6166 * remote.c (register_remote_support_xml): Likewise.
6167
1412f70b
HZ
61682010-05-05 Hui Zhu <teawater@gmail.com>
6169
6170 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6171
c4f7c687
MK
61722010-05-04 Mark Kettenis <kettenis@gnu.org>
6173
6174 * remote.c (register_remote_support_xml)
6175 (remote_query_supported_append, remote_query_supported): Add cast
6176 to NULL used as sentinel.
6177 * tracepoint.c (tvariables_info_1): Likewise.
6178 * utils.c (add_internal_problem_command): Likewise.
6179
63b4f126
MGD
61802010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6181
6182 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6183 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6184 registers gracefully.
6185
2f1bdd26
MGD
61862010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6187
0407b3f1 6188 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
6189 specific parts.
6190
e1c34c5d
PM
61912010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6192
6193 PR exp/11349.
6194 * printcmd.c (x_command): Only dereference once implicitly for
6195 TYPE_CODE_REF.
6196
ae462839
DE
61972010-05-03 Doug Evans <dje@google.com>
6198
6199 * event-loop.c (gdb_timer): Delete unused global.
6200 (create_timer): Update.
6201
1ac77ea1
JK
62022010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6203
6204 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6205 CURRENT->DECLARATION case.
6206 * cp-support.h (struct using_direct): Provide extended comment.
6207
7c54a108
MK
62082010-05-03 Mark Kettenis <kettenis@gnu.org>
6209
6210 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6211 HPPABSD_SIZEOF_GREGS.
6212 (HPPAOBSD_SIZEOF_FPREGS): New define.
6213 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6214 (hppaobsd_supply_fpregset): New function.
6215 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6216 (hppaobsd_fpregset): New variable.
6217 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6218 (_initialize_hppabsd_tdep): Remove spurious blank line.
6219
278582cb
PM
62202010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6221
6222 PR pascal/11349.
6223 * p-valprint.c (pascal_value_print): Always dereference a value with
6224 type code TYPE_CODE_REF.
0407b3f1 6225
f0223081
PA
62262010-05-03 Pedro Alves <pedro@codesourcery.com>
6227
6228 * remote.c (remote_notice_signals): New.
6229 (remote_start_remote): In non-stop mode, update the remote end on
6230 which signals it can silently pass.
6231 (init_remote_ops): Install remote_notice_signals.
6232
c25c4a8b
JK
62332010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6234
6235 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6236 * command.h (error_no_arg): ... here. Remove NORETURN, change
6237 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6238 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6239 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6240 (internal_verror, internal_error, nomem): Remove NORETURN, change
6241 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6242 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6243 (throw_vfatal, throw_error): Remove NORETURN.
6244 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6245 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6246 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6247 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6248 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6249 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6250 NORETURN.
6251 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6252 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6253 ATTRIBUTE_NORETURN.
6254 * target.c (tcomplain): Likewise.
6255 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6256 ATTRIBUTE_NORETURN.
6257 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6258 (internal_error, perror_with_name, nomem): Remove NORETURN.
6259 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6260 ATTRIBUTE_NORETURN.
6261
a0b31db1
JK
62622010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6263
6264 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6265 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6266 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6267 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6268 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6269 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6270 * complaints.h (complaint, internal_complaint): Likewise.
6271 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6272 (ATTR_FORMAT): Remove.
6273 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6274 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6275 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6276 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6277 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6278 (internal_error, internal_vwarning, internal_warning, warning)
6279 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6280 * disasm.c (fprintf_disasm): Likewise.
6281 * exceptions.c (throw_it): Likewise.
6282 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6283 (throw_error): Likewise.
6284 * language.h (type_error, range_error): Likewise.
6285 * linespec.c (cplusplus_error): Likewise.
6286 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6287 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6288 * monitor.c (monitor_debug): Likewise.
6289 * parser-defs.h (parser_fprintf): Likewise.
6290 * serial.h (serial_printf): Likewise.
6291 * tui/tui-hooks.c (tui_query_hook): Likewise.
6292 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6293 (uo_message): Likewise.
6294 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6295 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6296 Likewise.
6297 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6298
02a45ac0
PA
62992010-05-02 Pedro Alves <pedro@codesourcery.com>
6300
6301 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6302 (cli_table_header, cli_begin, cli_end, cli_field_int)
6303 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6304 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6305 Delete forward declarations.
6306 (cli_ui_out_impl): Move below the callbacks.
6307 (_initialize_cli_out): Delete.
6308
1915ef4f
PA
63092010-05-02 Pedro Alves <pedro@codesourcery.com>
6310
6311 * README: Use consistent `GDB' and `GDBserver' spellings.
6312
0dfb946f
JK
63132010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6314
6315 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6316
4d533103
PA
63172010-05-01 Pedro Alves <pedro@codesourcery.com>
6318
6319 * infrun.c (prepare_for_detach): In non-stop, context switch to
6320 the thread that got the event before handling the event.
6321
705b5767
TT
63222010-04-30 Tom Tromey <tromey@redhat.com>
6323
6324 * symtab.c (symbol_set_names): Fix typo.
6325
3c0ee1a4
PM
63262010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6327
6328 * python/py-param.c (parm_constants): Avoid ARI warning
6329 by adding ARI comment.
6330 (parmpy_init): Likewise.
6331
ea1fae46
PM
63322010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6333
6334 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6335 and created type for re-use.
6336
c24d0242
PM
63372010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6338
6339 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6340
a26d8d11
DE
63412010-04-29 Doug Evans <dje@google.com>
6342
6343 * ser-base.h (reschedule): Delete prototype.
6344 * ser-base.c (reschedule): Make static.
6345
f8624c62
MGD
63462010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6347
6348 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6349 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 6350 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 6351 EABI.
0407b3f1 6352 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
6353 use.
6354
e66408ed
PA
63552010-04-29 Pedro Alves <pedro@codesourcery.com>
6356
6357 PR gdb/11557
6358
6359 * regcache.c (registers_changed): Rename to ...
6360 (registers_changed_ptid): ... this, and only delete register cache
6361 entries matching the ptid filter argument.
6362 (registers_changed): Reimplement on top of registers_changed_ptid.
6363 * regcache.h (registers_changed_ptid): Declare.
6364 * target.c (target_resume): Flush register caches.
6365
d7b32ed3 63662010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
6367 Tom Tromey <tromey@redhat.com>
6368 Thiago Jung Bauermann <bauerman@br.ibm.com>
6369
6370 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6371 (SUBDIR_PYTHON_SRCS): Likewise.
6372 (py-parameter.o): New rule.
6373 * python/py-parameter.c: New file.
6374 * python/python-internal.h (gdbpy_initialize_parameter)
6375 (gdbpy_parameter, gdbpy_parameter_value)
6376 (gdbpy_parse_command_name): Declare.
6377 * python/py-cmd.c (parse_command_name): Rename to
6378 gdbpy_parse_command_name.
6379 (gdbpy_parse_command_name): Accept a starting list parameter and
6380 use over cmdlist.
6381 (cmdpy_init): Use gdbpy_parse_command_name.
6382 * python/python.c (parameter_to_python): Rename to
6383 gdbpy_parameter_to_python. Accept enum var_types and value.
6384 (gdbpy_parameter): Use gdbpy_parameter_value.
6385 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 6386
ce72ce41
MGD
63872010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6388
6389 * MAINTAINERS: Add myself for write after approval privileges.
6390
6aecb9c2
JB
63912010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6392
6393 D language support.
6394 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6395 (COMMON_OBS): Add d-lang.o d-valprint.o.
6396 (HFILES_NO_SRCDIR): Add d-lang.h.
6397 * NEWS: Mention D language support.
6398 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6399 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6400 * d-lang.c: New file.
6401 * d-lang.h: New file.
6402 * d-valprint.c: New file.
6403 * defs.h (enum language): Add language_d.
6404 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6405 * language.c (binop_result_type, integral_type, character_type)
6406 (string_type, boolean_type, structured_type): Add language_d.
6407 * symfile.c (init_filename_language_table): Add language_d.
6408 * symtab.c: Include d-lang.h.
6409 (symbol_init_language_specific, symbol_find_demangled_name)
6410 (symbol_natural_name, lookup_symbol_in_language)
6411 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6412
6f992fbf
JB
64132010-04-27 Joel Brobecker <brobecker@adacore.com>
6414
6415 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6416
dde59185
JB
64172010-04-27 Joel Brobecker <brobecker@adacore.com>
6418
6419 * symfile.c (init_filename_language_table): Register .dg files
6420 with language_ada.
6421
d09ce91e
JB
64222010-04-27 Joel Brobecker <brobecker@adacore.com>
6423
6424 * gdbtypes.h (struct main_type): Expand comment about target_type
6425 field.
6426
67f1675e
JB
64272010-04-27 Pedro Alves <pedro@codesourcery.com>
6428 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
6429
6430 * symfile.c (reread_symbols): Also search for file in libraries.
6431 Update comment.
6432
dfd0fe27
JB
64332010-04-27 Joel Brobecker <brobecker@adacore.com>
6434
6435 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6436 in terms of configuration.
6437
0133421a
JK
64382010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6439
6440 * objfiles.c: Include solist.h.
6441 (free_all_objfiles): New variable so. Check stale solist objfiles.
6442 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6443 and no_shared_libraries.
6444
e78f4312
JB
64452010-04-27 Joel Brobecker <brobecker@adacore.com>
6446
6447 ARI warning fix.
6448 * python/py-auto-load.c (source_section_scripts): Remove trailing
6449 new-line in i18n string.
6450
9214d371
DE
64512010-04-26 Doug Evans <dje@google.com>
6452
6453 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6454
3f172e24
TT
64552010-04-26 Tom Tromey <tromey@redhat.com>
6456
6457 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6458 command list.
6459
e790e06e
PM
64602010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6461
6462 Removal of config/i386/nm-i386sol2.h native configuration file.
6463 * config/i386/nm-i386sol2.h: Remove file.
6464 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6465 * config/i386/sol2-64.mh: Idem.
88562582
PM
6466 * config/djgpp/fnchange.lst: Remove reference to that file.
6467 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 6468
b7da9e9f
PM
64692010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6470
6471 PR breakpoints/11531.
6472 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6473 macro definition and related comment.
6474 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6475 (resume): Remove code and comment related to this macro.
6476
72f6eb52
JK
64772010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6478
6479 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6480 Fix whitespace.
6481
ab38a727
PA
64822010-04-24 Pedro Alves <pedro@codesourcery.com>
6483
6484 * defs.h: Adjust comment.
6485 * filesystem.h, filesystem.c: New files.
6486 * Makefile.in (SFILES): Add filesystem.c.
6487 (COMMON_OBS): Add filesystem.o.
6488 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6489 different target and host path flavours.
6490 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6491 has_dos_based_file_system on the gdbarch.
6492 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6493 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6494 * i386-tdep.c (i386_go32_init_abi): Ditto.
6495 * gdbarch.sh (has_dos_based_file_system): New.
6496 * gdbarch.h, gdbarch.c: Regenerate.
6497 * NEWS: Mention improved support for remote targets with DOS-based
6498 filesystems. Mention new `set/show target-file-system-kind'
6499 commands.
6500
35c9c7ba
SS
65012010-04-23 Stan Shebs <stan@codesourcery.com>
6502
6503 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6504 comments.
6505 (struct agent_reqs): Remove.
6506 (ax_reg_mask): Declare.
6507 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6508 (free_agent_expr): Free reg_mask.
6509 (ax_print): Add scope and register mask info.
6510 (ax_reqs): Remove agent_reqs argument, use agent expression
6511 fields, and move part of register mask computation to...
6512 (ax_reg_mask): New function.
6513 * ax-gdb.c (gen_trace_static_fields): Call it.
6514 (gen_traced_pop): Ditto.
6515 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6516 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6517 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6518 (gen_eval_for_expr): Ditto, and require an rvalue.
6519 (agent_command): Call ax_reqs.
6520 (agent_eval_command): Ditto.
6521 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6522 (validate_action_line): Ditto.
6523 (collect_symbol): Ditto.
6524 (encode_actions_1): Ditto.
6525
492928e4
JK
65262010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6527 Paul Pluzhnikov <ppluzhnikov@google.com>
6528 Jan Kratochvil <jan.kratochvil@redhat.com>
6529
6530 Fix deadlock on looped list of loaded shared objects.
6531 * solib-svr4.c (LM_PREV): New function.
6532 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6533 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6534 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6535 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6536
66d09542
DE
65372010-04-23 Doug Evans <dje@google.com>
6538
88a1906b
DE
6539 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6540 python.
6541 * configure: Regenerate.
6542 * main.c: #include "python/python.h".
6543 (captured_main): Defer loading auto-loaded scripts until after
6544 local_gdbinit has been sourced.
6545 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6546 (load_auto_scripts_for_objfile): New function.
6547 (auto_load_new_objfile): Call it.
6548 * python/python.h (gdbpy_global_auto_load): Declare.
6549 (load_auto_scripts_for_objfile): Declare.
6550
66d09542
DE
6551 Add support for auto-loading scripts from .debug_gdb_scripts section.
6552 * NEWS: Add entry for .debug_gdb_scripts.
6553 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6554 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6555 (py-auto-load.o): New rule.
6556 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6557 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6558 * python/py-auto-load.c: New file.
6559 * python/python-internal.h: #include <stdio.h>.
6560 (set_python_list, show_python_list): Declare.
6561 (gdbpy_initialize_auto_load): Declare.
6562 (source_python_script_for_objfile): Declare.
6563 * python/python.c: Remove #include of observer.h.
6564 (gdbpy_auto_load): Moved to py-auto-load.c.
6565 (GDBPY_AUTO_FILENAME): Ditto.
6566 (gdbpy_new_objfile): Delete.
6567 (source_python_script_for_objfile): New function.
6568 (set_python_list, show_python_list): Make externally visible.
6569 (_initialize_python): Move "auto-load" command to py-auto-load.c
6570 and observer_attach_new_objfile to py-auto-load.c.
6571
3a48e6ff 65722010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 6573
3a48e6ff
JG
6574 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6575 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6576 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6577 New constants.
6578 (alpha_heuristic_analyze_probing_loop): New function.
6579 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6580 and handle cases when a stack probe loop is generated.
6581 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6582 (alpha_mdebug_max_frame_size_exceeded): New function.
6583 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6584 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6585 Return 0 when the maximum debuggable frame size has been exceeded.
6586
e4166a49
JB
65872010-04-23 Joel Brobecker <brobecker@adacore.com>
6588
6589 Fix ARI warning.
6590 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6591
8bd10a10
CM
65922010-04-20 Chris Moller <cmoller@redhat.com>
6593
6594 PR 10179
6595
6596 * symtab.c (rbreak_command): Added code to include a filename
6597 specification in the rbreak argument.
6598 * NEWS: Added a brief description of filename-qualified rbreak.
6599
c0201579
JK
66002010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6601
6602 Fix crashes on dangling display expressions.
6603 * ada-lang.c (ada_operator_check): New function.
6604 (ada_exp_descriptor): Fill-in the field operator_check.
6605 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6606 * jv-lang.c (exp_descriptor_java): Likewise.
6607 * m2-lang.c (exp_descriptor_modula2): Likewise.
6608 * scm-lang.c (exp_descriptor_scm): Likewise.
6609 * parse.c (exp_descriptor_standard): Likewise.
6610 (operator_check_standard): New function.
6611 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6612 * parser-defs.h (struct exp_descriptor): New field operator_check.
6613 (operator_check_standard, exp_uses_objfile): New declarations.
6614 * printcmd.c: Remove the inclusion of solib.h.
6615 (display_uses_solib_p): Remove the function.
6616 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6617 and exp_uses_objfile instead of display_uses_solib_p.
6618 * solist.h (struct so_list) <objfile>: New comment.
6619 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6620 * symtab.h (lookup_objfile_from_block): New declaration.
6621 (struct general_symbol_info) <obj_section>: Extend the comment.
6622
6ffbb7ab
TJB
66232010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6624 Thiago Jung Bauermann <bauerman@br.ibm.com>
6625
6626 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6627 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6628 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6629 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6630 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6631 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6632 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6633 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6634 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6635 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6636 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6637 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6638 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6639 Define, in case <ptrace.h> doesn't provide it.
6640 (booke_debug_info): New variable.
6641 (max_slots_number): Ditto.
6642 (hw_break_tuple): New struct.
6643 (thread_points): Ditto.
6644 (ppc_threads): New variable.
6645 (PPC_DEBUG_CURRENT_VERSION): New define.
6646 (have_ptrace_new_debug_booke): New function.
6647 (ppc_linux_check_watch_resources): Renamed to ...
6648 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6649 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6650 (booke_cmp_hw_point): New function.
6651 (booke_find_thread_points_by_tid): Ditto.
6652 (booke_insert_point): Ditto.
6653 (booke_remove_point): Ditto.
6654 (ppc_linux_insert_hw_breakpoint): Ditto.
6655 (ppc_linux_remove_hw_breakpoint): Ditto.
6656 (get_trigger_type): Ditto.
6657 (ppc_linux_insert_watchpoint): Handle BookE processors.
6658 (ppc_linux_remove_watchpoint): Ditto.
6659 (ppc_linux_new_thread): Ditto.
6660 (ppc_linux_thread_exit): New function..
6661 (ppc_linux_stopped_data_address): Handle BookE processors.
6662 (ppc_linux_watchpoint_addr_within_range): Ditto.
6663 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6664 to_remove_hw_breakpoint fields of the target operations struct.
6665 Add observe for the thread_exit event.
6666
be0d2954
L
66672010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6668
6669 * i386-linux-nat.c (regmap): Removed.
6670 (fetch_register): Replace regmap with
6671 i386_linux_gregset_reg_offset.
6672 (store_register): Likewise.
6673 (supply_gregset): Likewise.
6674 (fill_gregset): Likewise.
6675
6676 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6677 global.
6678
6679 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6680
f56dcb88
CM
66812010-04-22 Chris Moller <cmoller@redhat.com>
6682
6683 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6684 method of popping recursion-detection stack with a method based on
6685 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6686 the static array obstack rather than the static member obstack.)
6687
6cd6a2ae
L
66882010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6689
6690 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6691 (_initialize_amd64_linux_nat): Replace
6692 amd64_linux_gregset64_reg_offset with
6693 amd64_linux_gregset_reg_offset.
6694
6695 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6696 global.
6697
6698 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6699
621791b8
PM
67002010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6701
6702 PR stabs/11479.
6703 * stabsread.c (set_length_in_type_chain): New function.
6704 (read_struct_type): Call set_length_in_type_chain function.
6705 (read_enum_type): Idem.
6706
105c2d85
SS
67072010-04-21 Stan Shebs <stan@codesourcery.com>
6708 Nathan Sidwell <nathan@codesourcery.com>
6709
6710 * tracepoint.c (trace_save): Open in binary mode.
6711
9a22f0d0
PM
67122010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6713
6714 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6715 fields.
0407b3f1 6716 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6717 builtin_char32 fields.
6718 * printcmd.c (decode_format): Set char size to '\0'
6719 for strings unless explicit size is given.
6720 (print_formatted): Correct calculation of NEXT_ADDRESS
6721 for 16 or 32 bit strings.
6722 (do_examine): Do not force byte size for strings.
6723 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6724 16 or 32 bit-wide strings.
9a22f0d0
PM
6725 (x_command): Set LAST_SIZE to 'b' for string type.
6726
f335d1b3
L
67272010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6728
6729 PR corefiles/11523
6730 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6731 XCR0 first.
6732
6733 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6734 there is no .reg-xstate section.
6735 (i386_linux_core_read_description): Check XCR0 first.
6736
a9789a6b
MF
67372010-04-21 Mike Frysinger <vapier@gentoo.org>
6738
6739 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6740 for len <= 8.
6741
0b66f317
CM
67422010-04-21 Chris Moller <cmoller@redhat.com>
6743
6744 PR 9167
6745 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6746 method of popping recursion-detection stack with a method based on
6747 obstack_object_size().
0b66f317 6748
6e354e5e
PM
67492010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6750
6751 PR pascal/11492.
6752 * p-valprint.c (pascal_val_print): Fix default printing of integer
6753 arrays.
6754
57174f31
PM
67552010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6756
6757 Fix compilation warning on gcc-4.1.2.
6758 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6759 local variable`pc' to zero.
6760
6fbc7cd8
JB
67612010-04-20 Joel Brobecker <brobecker@adacore.com>
6762
6763 Implement thread support with core files on alpha-tru64.
6764 * dec-thread.c (dec_thread_find_new_threads): New function,
6765 extracted from resync_thread_list.
6766 (resync_thread_list): Add OPS parameter. Replace extracted-out
6767 code by call to dec_thread_find_new_threads.
6768 (dec_thread_wait): Update call to resync_thread_list.
6769 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6770
438c98a1
JB
67712010-04-20 Joel Brobecker <brobecker@adacore.com>
6772
6773 * ada-lang.c (value_pointer): New function.
6774 (make_array_descriptor): Call value_pointer to convert addresses to
6775 pointers.
6776
2971b56b
JB
67772010-04-20 Joel Brobecker <brobecker@adacore.com>
6778
6779 * rs6000-aix-tdep.c: #include exceptions.h.
6780 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6781 while reading the memory at ADDR, then ADDR cannot be a function
6782 descriptor.
6783
be942545
JB
67842010-04-20 Joel Brobecker <brobecker@adacore.com>
6785
6786 * ada-typeprint.c (ada_print_typedef): New function.
6787 * ada-lang.h (ada_print_typedef): Add declaration.
6788 * ada-lang.c (ada_language_defn): set la_print_typdef field
6789 to ada_print_typedef.
6790
1ca8fce0
JB
67912010-04-20 Joel Brobecker <brobecker@adacore.com>
6792
6793 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6794
e9ef4f39
JB
67952010-04-20 Joel Brobecker <brobecker@adacore.com>
6796
6797 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6798 (iterate_over_mappings): Adjust function profile. Add declaration.
6799 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6800 Adjust accordingly.
6801
e294797a
JB
68022010-04-20 Joel Brobecker <brobecker@adacore.com>
6803
6804 * procfs.c (solib_mappings_callback): Move function up to avoid
6805 a compiler warning.
6806
a223f1e7
JB
68072010-04-20 Joel Brobecker <brobecker@adacore.com>
6808
6809 * procfs.c (find_signalled_thread, find_stop_signal): Move
6810 these functions down to define them only when used.
6811
0c3acc09
JB
68122010-04-20 Joel Brobecker <brobecker@adacore.com>
6813
6814 * valprint.c (common_val_print): Fix the value before extracting
6815 its contents.
6816 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6817 * ada-lang.h (ada_to_fixed_value): New function declaration.
6818 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6819 to avoid code duplication and fix a bug in the handling of
6820 fixed types contents.
6821
31ef98ae
TT
68222010-04-20 Tom Tromey <tromey@redhat.com>
6823
6824 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6825 (read_partial_die): Likewise.
6826 (dwarf_attr_name): Likewise.
6827
ec31cde5 68282010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6829
ec31cde5
CM
6830 PR 10867
6831
6832 * cp-valprint.c (global): Adding new static array recursion
6833 detection obstack.
6834 (cp_print_value_fields, cp_print_static_field): Added new static
6835 array recursion detection code.
6836
e0e0e543
MK
68372010-04-20 Mark Kettenis <kettenis@gnu.org>
6838
6839 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6840 general-purpose register set should be 68 instead of 144.
6841 (i386_linux_sse_regset_sections): Likewise.
6842 (i386_linux_avx_regset_sections): Likewise.
6843
08922a10
SS
68442010-04-20 Stan Shebs <stan@codesourcery.com>
6845 Nathan Sidwell <nathan@codesourcery.com>
6846
6847 * dwarf2loc.c (struct axs_var_loc): New struct.
6848 (dwarf2_tracepoint_var_loc): New function.
6849 (dwarf2_tracepoint_var_access): New function.
6850 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6851 with DW_OP_piece.
6852 (locexpr_describe_location_piece): New function.
6853 (locexpr_describe_location_1): New function.
6854 (locexpr_describe_location): Call it, update signature.
6855 (loclist_describe_location): Rewrite to loop over locations,
6856 update signature.
6857 * symtab.h (struct symbol_computed_ops): Add address to
6858 describe_location arguments, return void.
6859 * printcmd.c (address_info): Get context PC, pass to computed
6860 location description.
6861 * tracepoint.c (scope_info): Ditto.
6862 * ax-gdb.c (trace_kludge): Export.
6863
2dc7f7b3
TT
68642010-04-20 Tom Tromey <tromey@redhat.com>
6865
6866 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6867 (struct dwarf2_cie) <segment_size>: New field.
6868 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6869 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6870 DW_FORM_exprloc.
6871 (read_attribute_value): Handle DW_FORM_flag_present,
6872 DW_FORM_sec_offset, DW_FORM_exprloc.
6873 (dump_die_shallow): Likewise.
6874 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6875 (dwarf2_const_value): Handle DW_FORM_exprloc.
6876 (attr_form_is_block): Likewise.
6877 (struct line_header) <maximum_ops_per_instruction>: New field.
6878 (dwarf_decode_line_header): Set new field.
6879 (dwarf_decode_lines): Handle new field.
6880
ce4b0682
SDJ
68812010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6882
6883 * f-exp.y: Add new production to recognize the `logical*8' type.
6884 (LOGICAL_S8_KEYWORD): New token.
6885 * f-lang.c (enum f_primitive_types)
6886 <f_primitive_type_logical_s8>: New field.
6887 (f_language_arch_info): Handling `logical*8' type.
6888 (build_fortran_types): Building `logical*8' type.
6889 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6890
ff9f22f1
DE
68912010-04-19 Doug Evans <dje@google.com>
6892
6893 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6894 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6895 (pipe_close): Ditto.
6896
437125bd
PM
68972010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6898
6899 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6900
e8e6c82e
PM
69012010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6902
6903 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6904 type to void function.
6905
4136fdd2
SS
69062010-04-19 Stan Shebs <stan@codesourcery.com>
6907 Vladimir Prus <vladimir@codesourcery.com>
6908
6909 * tracepoint.c (tfind_1): Add missing newline, report exit from
6910 tfind mode as such.
6911 * target.c (update_current_target): Make default
6912 to_trace_find return -1.
6913
0c4b2e63
MF
69142010-04-19 Mike Frysinger <vapier@gentoo.org>
6915
6916 * objc-lang.c (find_methods): Move symname check up.
6917
78076abc
PA
69182010-04-19 Pedro Alves <pedro@codesourcery.com>
6919
6920 * ada-lang.c (print_recreate_exception)
6921 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6922 not "catch unhandled".
6923
6149aea9
PA
69242010-04-19 Pedro Alves <pedro@codesourcery.com>
6925
6926 PR breakpoints/8554.
6927
6928 Implement `save-breakpoints'.
6929
6930 * breakpoint.c (save_cmdlist): New.
6931 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6932 to save_cmdlist.
6933 (print_recreate_catch_fork): New.
6934 (catch_fork_breakpoint_ops): Install it.
6935 (print_recreate_catch_vfork): New.
6936 (catch_vfork_breakpoint_ops): Install it.
6937 (print_recreate_catch_syscall): New.
6938 (catch_syscall_breakpoint_ops): Install it.
6939 (print_recreate_catch_exec): New.
6940 (catch_exec_breakpoint_ops): Install it.
6941 (print_recreate_exception_catchpoint): New.
6942 (gnu_v3_exception_catchpoint_ops): Install it.
6943 (save_breakpoints): New, based on tracepoint_save_command, but
6944 handle all breakpoint types.
6945 (save_breakpoints_command): New.
6946 (tracepoint_save_command): Rename to...
6947 (save_tracepoints_command): ... this, and reimplement using
6948 save_breakpoints.
6949 (save_command): New.
6950 (_initialize_breakpoints): Install the "save" command prefix.
6951 Install the "save breakpoints" command. Make "save-tracepoints" a
6952 deprecated alias for "save tracepoints".
6953 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6954 * ada-lang.c (print_recreate_exception): New.
6955 (print_recreate_catch_exception): New.
6956 (catch_exception_breakpoint_ops): Install it.
6957 (print_recreate_catch_exception_unhandled): New.
6958 (catch_exception_unhandled_breakpoint_ops): Install it.
6959 (print_recreate_catch_assert): New.
6960 (catch_assert_breakpoint_ops): Install it.
6961
6962 * NEWS: Mention the new `save breakpoints' command. Mention the
6963 new `save tracepoints' alias and that `save-tracepoints' is now
6964 deprecated.
6965
0a8fce9a
PA
69662010-04-18 Pedro Alves <pedro@codesourcery.com>
6967
6968 PR tui/9217
6969
6970 * tui/tui-out.c: Include cli-out.h.
6971 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6972 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6973 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6974 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6975 declarations.
6976 (struct ui_out_data): Rename to...
6977 (struct tui_ui_out_data): ... this. Remove `stream' and
6978 `suppress_output' fields, and inherit cli_ui_out_data.
6979 (tui_out_data): New typedef.
6980 (tui_ui_out_impl): Don't initialize fields staticaly.
6981 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6982 (tui_begin, tui_end): Delete.
6983 (tui_field_int): Adjust to delegate most work to the base type.
6984 (tui_field_skip): Delete.
6985 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6986 delegate most work to the base type.
6987 (tui_spaces): Delete.
6988 (tui_text): Adjust to delegate most work to the base type.
6989 (tui_message): Delete.
6990 (tui_wrap_hint): Delete.
6991 (tui_flush): Delete.
6992 (out_field_fmt): Delete.
6993 (field_separator): Delete.
6994 (tui_out_new): Adjust to initialize the base type.
6995 (_initialize_tui_out): Initialize tui_ui_out_impl.
6996 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6997 cli_ui_out_data.
6998 (cli_out_data): Adjust.
6999 (cli_ui_out_impl): Make extern.
7000 (cli_table_header, cli_field_int, cli_field_skip): Use
7001 uo_field_string instead of cli_field_string.
7002 (cli_redirect): Adjust to use cli_out_data.
7003 (cli_out_data_ctor): New.
7004 (cli_out_new): Use it.
7005 * cli-out.h (struct ui_file): Remove forward declaration.
7006 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7007 (cli_ui_out_impl): Declare.
7008 (cli_out_data_ctor): Declare.
7009 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7010 (uo_field_string): No longer static.
7011 (ui_out_data): Change return type to void pointer.
7012 (ui_out_new): Change `data' parameter type to void pointer.
7013 * ui-out.h (struct ui_out_data): Don't forward declare.
7014 (ui_out_data): Change return type to void pointer.
7015 (ui_out_new): Change `data' parameter type to void pointer.
7016 (uo_field_string): Declare.
7017
172240dd
PA
70182010-04-17 Pedro Alves <pedro@codesourcery.com>
7019
7020 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7021 instead of always false.
7022
ed41462c
L
70232010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7024
7025 PR corefiles/11511
7026 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7027 orig_rax.
7028
cc60f2e3
PA
70292010-04-17 Pedro Alves <pedro@codesourcery.com>
7030
7031 * breakpoint.c (watchpoints_triggered): Use
7032 is_hardware_watchpoint.
7033 (watchpoints_triggered): Ditto.
7034 (bpstat_check_location): Use is_watchpoint and
7035 is_hardware_watchpoint.
7036 (bpstat_check_watchpoint): Use is_watchpoint and
7037 is_hardware_watchpoint.
7038 (bpstat_stop_status): Fix comment.
7039 (user_settable_breakpoint): Use is_watchpoint.
7040 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7041 (disable_watchpoints_before_interactive_call_start): Use
7042 is_watchpoint.
7043 (enable_watchpoints_after_interactive_call_stop): Use
7044 is_watchpoint.
7045 (clear_command): Use is_watchpoint.
7046 (do_enable_breakpoint): Use is_watchpoint.
7047
cb7db0f2
MF
70482010-04-16 Mike Frysinger <vapier@gentoo.org>
7049
7050 * solib-frv.c (enable_break1_done): Delete.
7051 (enable_break2): Do not check enable_break1_done. Move the
7052 enable_break2_done setting and call to
7053 remove_solib_event_breakpoints() to the end. Return without
7054 warning when the contents of _dl_debug_addr are 0.
7055 (enable_break): Do not set enable_break1_done.
7056 (frv_clear_solib): Likewise.
7057
d77b48cf
KB
70582010-04-16 Kevin Buettner <kevinb@redhat.com>
7059
7060 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7061 instead of an error if no PLT entry is found. Return a
7062 potentially useful result.
7063 (m32c_m16c_pointer_to_address): Add code to search for function
7064 address when no .plt entry is found.
7065
f90824dc
SS
70662010-04-16 Stan Shebs <stan@codesourcery.com>
7067
7068 * tracepoint.c (trace_variable_command): Run a cleanup.
7069
9b79b476
PM
70702010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7071
7072 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7073
711e434b
PM
70742010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7075
7076 Support for Windows OS Thread Information Block.
7077 * NEWS: Document new feature.
7078 * remote.c (PACKET_qGetTIBAddr): New enum element.
7079 (remote_get_tib_address): New function.
7080 (init_remote_ops): Set to_get_tib_address field
7081 to remote_get_tib_address.
7082 (_initialize_remote): Add add_packet_config_cmd
7083 for PACKET_qGetTIBAddr.
7084 * target.c (update_current_target): Set default value for
7085 new to_get_tib_address field.
7086 * target.h (target_ops): New field to_get_tib_address.
7087 (target_get_tib_address): New macro.
7088 * windows-nat.c (thread_info): Add thread_local_base field.
7089 (windows_add_thread): Add tlb argument of type 'void *'.
7090 (fake_create_process): Adapt windows_add_thread call.
7091 (get_windows_debug_event): Idem.
7092 (windows_get_tib_address): New function.
7093 (init_windows_ops): Set to_get_tib_address field
7094 to remote_get_tib_address.
7095 (_initialize_windows_nat): Replace info_w32_cmdlist
7096 initialization by a call to init_w32_command_list.
7097 (info_w32_command, info_w32_cmdlist): Removed from here...
7098 to windows-tdep.c file.
7099 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 7100 (init_w32_command_list): New external function
711e434b
PM
7101 declaration.
7102 * windows-tdep.c: Add several headers.
7103 (info_w32_cmdlist): to here, made global.
7104 (thread_information_32): New struct.
7105 (thread_information_64): New struct.
7106 (TIB_NAME): New char array.
7107 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7108 (maint_display_all_tib): New static variable.
7109 (windows_get_tlb_type): New function.
7110 (tlb_value_read, tlb_value_write): New functions.
7111 (tlb_value_funcs): New static struct.
7112 (tlb_make_value): New function.
7113 (display_one_tib): New function.
7114 (display_tib): New function.
7115 (show_maint_show_all_tib):New function.
7116 (info_w32_command): Moved from windows-nat.c.
7117 (init_w32_command_list): New function.
7118 (_initialize_windows_tdep): New function.
7119 New "maint set/show show-all-tib" command
7120 New "$_tlb" internal variable.
7121
cae3f17b
JB
71222010-04-16 Joel Brobecker <brobecker@adacore.com>
7123
7124 * tui/tui-regs.c (tui_display_register): Add comment about
7125 a couple of casts.
7126 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7127
2ce6d6bf
SS
71282010-04-15 Stan Shebs <stan@codesourcery.com>
7129
7130 * frame.c: Include tracepoint.h.
7131 (get_current_frame): Allow a trace frame to be an alternate source
7132 of stack frame data.
7133 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7134 it won't succeed.
7135
7e559477
PA
71362010-04-15 Pedro Alves <pedro@codesourcery.com>
7137
7138 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7139 flags.
7140 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7141
3f7b2faa
DE
71422010-04-15 Doug Evans <dje@google.com>
7143
fa33c3cd
DE
7144 * NEWS: Add entry for python program space support.
7145 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7146 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7147 (py-progspace.o): New rule.
7148 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7149 function.
7150 (find_pretty_printer_from_progspace): New function.
7151 (find_pretty_printer_from_gdb): New function.
7152 (find_pretty_printer): Rewrite.
7153 * python/py-progspace.c: New file.
7154 * python/python-internal.h (program_space): Add forward decl.
7155 (pspace_to_pspace_object, pspy_get_printers): Declare.
7156 (gdbpy_initialize_pspace): Declare.
7157 * python/python.c: #include "progspace.h".
7158 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7159 (_initialize_python): Call gdbpy_initialize_pspace.
7160 (GdbMethods): Add current_progspace, progspaces.
7161
3f7b2faa
DE
7162 Add -s option to source command.
7163 * NEWS: Document new option.
7164 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7165 Delete from_tty and cleanupp args. Split filep arg into file and
7166 full_pathp. New arg search_path.
7167 (source_script_from_stream): New function.
7168 (source_script_with_search): New function.
7169 (source_script): Rewrite.
7170 (source_command): Parse "-s" option.
7171 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7172 * python/python.c (source_python_script): Make file arg a const char *.
7173 Don't call fclose, leave for caller.
7174 * python/python.h (source_python_script): Update.
7175
a86988f2
PA
71762010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7177 Pedro Alves <pedro@codesourcery.com>
7178
7179 Avoid rereading shared libraries that haven't changed.
7180
7181 * solib.c (free_so_symbols): New function, from ...
7182 (free_so): ... here. Call it.
7183 (solib_read_symbols): Don't warn here if symbols have already been
7184 loaded.
7185 (solib_add): Warn here instead, if a pattern was specified.
7186 (reload_shared_libraries_1): New.
7187 (reload_shared_libraries): Rewrite to not fetch the library list.
7188
e6d9b9c2
DE
71892010-04-14 Doug Evans <dje@google.com>
7190
589390d6 7191 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
7192 concatenating string to search path.
7193
516ba659
PA
71942010-04-14 Pedro Alves <pedro@codesourcery.com>
7195
7196 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7197 * objfiles.c (gdb_bfd_close_or_warn): New.
7198 * corelow.c: Include objfiles.h
7199 (core_close): Use gdb_bfd_close_or_warn.
7200 * elfread.c (build_id_verify): Ditto.
7201 * exec.c (exec_close, exec_close_1): Ditto.
7202
048d532d
PA
72032010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7204 Pedro Alves <pedro@codesourcery.com>
7205
7206 Group errors for many missing shared libraries.
7207
7208 * solist.h (struct so_list): Remove from_tty.
7209 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7210 (solib_map_sections): Take so_list argument. Return 0 if we
7211 failed to open a BFD. Add target sections here.
7212 (symbol_add_stub): Delete.
7213 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7214 not from_tty copied from the so_list. Don't warn a second time
7215 for a missing library.
7216 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7217 add to the section table here. Print out a single warning for all
7218 missing libraries.
7219 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7220 flags.
7221
044c0f87
PM
72222010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7223
7224 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7225 error/warning messages. Capitalize and use complete sentences.
7226 (blpy_block_syms_iternext): Likewise.
7227 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7228 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7229 (frame_info_to_frame_object, frapy_read_var)
7230 (gdbpy_frame_stop_reason_string): Likewise.
7231 * python/py-lazy-string.c (stpy_convert_to_value)
7232 (gdbpy_create_lazy_string_object): Likewise.
7233 * python/py-objfile.c (objfpy_set_printers): Likewise.
7234 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7235 * python/python.c (parameter_to_python): Likewise.
7236 * python/py-type.c (typy_range, typy_target): Likewise.
7237 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7238 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7239
7240
79f283fe
PM
72412010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7242
7243 PR python/11381
7244
7245 * python/py-prettyprint.c (pretty_print_one_value): Test for
7246 Py_None.
7247 (print_string_repr): Test for Py_None. Set flags accordingly.
7248 Return value depending on return type.
7249 (print_children): Take a value indicating whether data was printed
7250 before this function was called. Alter output accordingly.
7251 (apply_val_pretty_printer): Capture return value from
7252 print_string_repr and pass to print_children.
7253
4ac5d44e
MK
72542010-04-13 Mark Kettenis <kettenis@gnu.org>
7255
e1caee70 7256 PR corefiles/11481
4ac5d44e
MK
7257 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7258 register note sections.
7259 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7260 New variables.
7261 (i386_linux_init_abi): Install list of supported register note
7262 sections that matches the target description.
7263
ad91cd99
PA
72642010-04-13 Pedro Alves <pedro@codesourcery.com>
7265
7266 * remote.c (remote_get_noisy_reply): Don't error out on empty
7267 replies.
7268 (remote_start_remote): Update and merge tracepoints and trace
7269 state variables as long as the target supports tracepoints.
7270 (remote_trace_init): Fix prototype.
7271 (remote_download_trace_state_variable): Validate reply.
7272 (remote_trace_set_readonly_regions): Fix prototype.
7273 (remote_trace_start): Fix prototype. Check for empty reply.
7274 (remote_get_trace_status): Small cleanup.
7275 (remote_trace_stop): Fix prototype. Check for empty reply.
7276 (remote_trace_find): Check for empty reply.
7277 (remote_save_trace_data): Validate reply.
7278 (remote_set_disconnected_tracing): Check for empty reply, and
7279 validate reply.
7280 (remote_set_circular_trace_buffer): Ditto.
7281
ae3bccd4
PM
72822010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7283
7284 Suppress unused value warning during compilation.
7285 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7286 calls to void.
7287 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7288
523136f2
SS
72892010-04-12 Stan Shebs <stan@codesourcery.com>
7290
7291 * tracepoint.c (tfile_xfer_partial): Check read result.
7292
0d18d720
MF
72932010-04-12 Mike Frysinger <vapier@gentoo.org>
7294
7295 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7296 * remote-sim.c (gdbsim_files_info): Likewise.
7297
3b273a55
RE
72982010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7299
7300 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7301 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7302 variable.
7303 (fetch_vfp_registers): New function to fetch VFP registers.
7304 (store_vfp_registers): New function to store VFP registers.
7305 (arm_linux_fetch_inferior_registers): Add support for VFP
7306 registers.
7307 (arm_linux_store_inferior_registers): Likewise.
7308 (arm_linux_read_description): Likewise.
7309 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7310 until we need it.
7311
778c7095
L
73122010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7313
7314 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7315 tdep.
7316 (amd64_collect_xstateregset): Likewise.
7317
2114d44c
SS
73182010-04-09 Stan Shebs <stan@codesourcery.com>
7319
87290684
SS
7320 * tracepoint.c (trace_status_mi): Report frames created.
7321
2114d44c
SS
7322 * tracepoint.c (trace_dump_command): Include default-collect
7323 expressions.
7324
86da934b
UW
73252010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7326
7327 * symtab.c (find_function_start_sal): Never return SAL pointing
7328 before function start address, even if line info is missing.
7329
2d6e647a 73302010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
7331
7332 * NEWS: Mention tracepoints support.
7333
a97153c7
PA
73342010-04-09 Pedro Alves <pedro@codesourcery.com>
7335
7336 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7337 circular trace buffer statuses.
7338
7a66d603
JK
73392010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7340
7341 * config/djgpp/fnchange.lst: Fix typo in translations for
7342 symbol-without-target_section.exp and symbol-without-target_section.c.
7343
2566ad2d
PA
73442010-04-09 Pedro Alves <pedro@codesourcery.com>
7345
7346 * breakpoint.c (condition_command): Pass condition expression to
7347 set_breakpoint_condition stripped from breakpoint number.
7348
adc36818
PM
73492010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7350 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 7351 Tom Tromey <tromey@redhat.com>
adc36818
PM
7352
7353 * breakpoint.c (condition_command): Simplify. Move condition
7354 setting code to ...
7355 (set_breakpoint_condition): ... here. New function.
7356 * breakpoint.h (set_breakpoint_condition): Declare.
7357 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7358 (SUBDIR_PYTHON_SRCS): Likewise.
7359 (py-breakpoint.o): New rule.
7360 * python/py-breakpoint.c: New file.
7361 * python/python-internal.h (gdbpy_breakpoints)
7362 (gdbpy_initialize_breakpoints): Declare.
7363 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7364
219f2f23
PA
73652010-04-09 Pedro Alves <pedro@codesourcery.com>
7366
7367 * regformats/regdat.sh: Include server.h. Don't include
7368 regcache.h.
7369
33da3f1c
SS
73702010-04-08 Stan Shebs <stan@codesourcery.com>
7371 Pedro Alves <pedro@codesourcery.com>
7372
7373 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7374 and circular_buffer.
7375 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7376 * tracepoint.c (trace_status_command): Display target's status for
7377 disconnected tracing and circular buffer.
7378 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7379 query for non-disconnected-tracing case, remove the stop_tracing
7380 call.
7381 (tfile_open): Clear disconnected and circular buffer status.
7382 (trace_save): Save disconnected and circular buffer status.
7383 (parse_trace_status): Parse disconnected and circular buffer status,
7384 also recognize disconnected as a stop reason.
7385 * remote.c (remote_set_disconnected_tracing): Only set
7386 QTDisconnected if the remote end supports disconnected tracing.
7387 Warn otherwise, if trying to enable disconnected tracing.
7388 * infcmd.c (detach_command): Update disconnect_tracing call.
7389 * cli/cli-cmds.c (quit_command): Ditto.
7390
4e4d8374
L
73912010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7392
7393 * i387-tdep.c (i387_collect_xsave): Replace abort with
7394 internal_error.
7395
ad443146
SS
73962010-04-08 Stan Shebs <stan@codesourcery.com>
7397
7398 * breakpoint.c (default_collect_info): New function.
7399 (breakpoints_info): Call it.
7400 (maintenance_info_breakpoints): Ditto.
7401 (tracepoints_info): Ditto.
7402
40936b0d
L
74032010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7404
7405 * i387-tdep.c (i387_collect_xsave): Re-indent.
7406
3a13a53b
L
74072010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7408
7409 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7410 if HAVE_PTRACE_GETFPXREGS is defined.
7411 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7412 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7413
7414 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7415 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7416 if .reg-xfp section doesn't exist.
7417 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7418
7419 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7420
7421 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7422 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7423 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7424 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7425 (i386_gdbarch_init): Update comments.
7426 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7427
7428 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7429
7430 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7431
7432 * features/Makefile (i386/i386-mmx-expedite): New.
7433 (i386/i386-mmx-linux-expedite): Likewise.
7434 ($(outdir)/i386/i386-mmx.dat): Likewise.
7435 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7436
7437 * features/i386/i386-mmx-linux.c: New.
7438 * features/i386/i386-mmx-linux.xml: Likewise.
7439 * features/i386/i386-mmx.c: Likewise.
7440 * features/i386/i386-mmx.xml: Likewise.
7441 * regformats/i386/i386-mmx-linux.dat: Likewise.
7442 * regformats/i386/i386-mmx.dat: Likewise.
7443
7444 * features/Makefile (WHICH): Add i386/i386-mmx and
7445 i386/i386-mmx-linux.
7446
08001717
DE
74472010-04-08 Doug Evans <dje@google.com>
7448
7449 * source.c (openp): Skip $cdir in PATH.
7450
fff5cc64
PM
74512010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7452
7453 PR python/11417
fff5cc64 7454 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
7455 a NULL address.
7456 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7457 address and a zero length.
fff5cc64 7458
f8c4f480
HZ
74592010-04-08 Hui Zhu <teawater@gmail.com>
7460
7461 * i386-tdep.c (i386_process_record): Add support for insn
7462 rdtsc.
7463
eb5cda86
DE
74642010-04-07 Doug Evans <dje@google.com>
7465
7466 * python/python.c (source_python_script): Use ensure_python_env
7467 to prepare environment for script.
7468
a055a187
L
74692010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7470
7471 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7472 <sys/uio.h> and "i386-xstate.h".
7473 (PTRACE_GETREGSET): New.
7474 (PTRACE_SETREGSET): Likewise.
7475 (have_ptrace_getregset): Likewise.
7476 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7477 registers.
7478 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7479 registers.
7480 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7481 (amd64_linux_store_inferior_registers): Likewise.
7482 (amd64_linux_read_description): Check and enable AVX target
7483 descriptions.
7484
7485 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7486 and "features/i386/amd64-avx-linux.c".
7487 (amd64_linux_regset_sections): New.
7488 (amd64_linux_core_read_description): Check and enable AVX
7489 target description.
7490 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7491 set_gdbarch_core_regset_sections.
7492 (_initialize_amd64_linux_tdep): Call
7493 initialize_tdesc_amd64_avx_linux.
7494
7495 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7496 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7497 (tdesc_amd64_avx_linux): New.
7498 (amd64_linux_update_xstateregset): Likewise.
7499
7500 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7501 (amd64_ymm_names): New.
7502 (amd64_ymmh_names): Likewise.
7503 (amd64_register_name): Likewise.
7504 (amd64_supply_xstateregset): Likewise.
7505 (amd64_collect_xstateregset): Likewise.
7506 (amd64_supply_xsave): Likewise.
7507 (amd64_collect_xsave): Likewise.
7508 (AMD64_NUM_REGS): Removed.
7509 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7510 %xmmN if AVX is available.
7511 (amd64_pseudo_register_name): Support pseudo YMM registers.
7512 (amd64_regset_from_core_section): Support .reg-xstate section.
7513 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7514 and ymm0h_regnum. Call set_gdbarch_register_name.
7515 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7516
7517 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7518 AMD64_YMM15H_REGNUM.
7519 (AMD64_NUM_REGS): New.
7520 (amd64_supply_xsave): Likewise.
7521 (amd64_collect_xsave): Likewise.
7522 (amd64_register_name): Removed.
7523 (amd64_register_type): Likewise.
7524
31aeac78
L
75252010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7526
7527 * i387-tdep.c: Include "i386-xstate.h".
7528 (XSAVE_XSTATE_BV_ADDR): New.
7529 (xsave_avxh_offset): Likewise.
7530 (XSAVE_AVXH_ADDR): Likewise.
7531 (i387_supply_xsave): Likewise.
7532 (i387_collect_xsave): Likewise.
7533
7534 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7535 (I387_YMM0H_REGNUM): Likewise.
7536 (I387_YMMENDH_REGNUM): Likewise.
7537 (i387_supply_xsave): Likewise.
7538 (i387_collect_xsave): Likewise.
7539
c131fcee
L
75402010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7541
7542 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7543 <sys/uio.h> and "i386-xstate.h".
7544 (PTRACE_GETREGSET): New.
7545 (PTRACE_SETREGSET): Likewise.
7546 (fetch_xstateregs): Likewise.
7547 (store_xstateregs): Likewise.
7548 (GETXSTATEREGS_SUPPLIES): Likewise.
7549 (regmap): Include 8 upper YMM registers.
7550 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7551 state.
7552 (i386_linux_store_inferior_registers): Likewise.
7553 (i386_linux_read_description): Check and enable AVX target
7554 descriptions.
7555
7556 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7557 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7558 (i386_linux_regset_sections): Add ".reg-xstate".
7559 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7560 (i386_linux_core_read_xcr0): New.
7561 (i386_linux_core_read_description): Check and enable AVX target
7562 description.
7563 (i386_linux_init_abi): Set xsave_xcr0_offset.
7564 (_initialize_i386_linux_tdep): Call
7565 initialize_tdesc_i386_avx_linux.
7566
7567 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7568 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7569 (i386_linux_core_read_xcr0): New.
7570 (tdesc_i386_avx_linux): Likewise.
7571 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7572
7573 * i386-tdep.c: Include "i386-xstate.h" and
7574 "features/i386/i386-avx.c".
7575 (i386_ymm_names): New.
7576 (i386_ymmh_names): Likewise.
7577 (i386_ymmh_regnum_p): Likewise.
7578 (i386_ymm_regnum_p): Likewise.
7579 (i386_xmm_regnum_p): Likewise.
7580 (i386_register_name): Likewise.
7581 (i386_ymm_type): Likewise.
7582 (i386_supply_xstateregset): Likewise.
7583 (i386_collect_xstateregset): Likewise.
7584 (i386_sse_regnum_p): Removed.
7585 (i386_pseudo_register_name): Support pseudo YMM registers.
7586 (i386_pseudo_register_type): Likewise.
7587 (i386_pseudo_register_read): Likewise.
7588 (i386_pseudo_register_write): Likewise.
7589 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7590 %xmmN if AVX is available.
7591 (i386_regset_from_core_section): Support .reg-xstate section.
7592 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7593 (i386_process_record): Replace i386_sse_regnum_p with
7594 i386_xmm_regnum_p.
7595 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7596 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 7597 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
7598 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7599 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7600 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7601 Set ymm0_regnum.
7602 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7603
7604 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7605 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7606 i386_ymm_type.
7607 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7608 (I386_AVX_NUM_REGS): New.
7609 (i386_xmm_regnum_p): Likewise.
7610 (i386_ymm_regnum_p): Likewise.
7611 (i386_ymmh_regnum_p): Likewise.
7612
7613 * common/i386-xstate.h: New.
7614
98adf0f3
L
76152010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7616
7617 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7618
7619 * features/Makefile (WHICH): Add i386/i386-avx,
7620 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7621 (i386/i386-avx-expedite): New.
7622 (i386/i386-avx-linux-expedite): Likewise.
7623 (i386/x86-64-avx-expedite):Likewise.
7624 (i386/x86-64-avx-linux-expedite): Likewise.
7625 ($(outdir)/i386/i386-avx.dat): New dependency.
7626 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7627 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7628 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7629
7630 * features/i386/32bit-avx.xml: New.
7631 * features/i386/64bit-avx.xml: Likewise.
7632 * features/i386/i386-avx-linux.c: Likewise.
7633 * features/i386/i386-avx-linux.xml: Likewise.
7634 * features/i386/i386-avx.c: Likewise.
7635 * features/i386/i386-avx.xml: Likewise.
7636 * features/i386/x86-64-avx-linux.c: Likewise.
7637 * features/i386/x86-64-avx-linux.xml: Likewise.
7638 * features/i386/x86-64-avx.c: Likewise.
7639 * features/i386/x86-64-avx.xml: Likewise.
7640 * regformats/i386/i386-avx-linux.dat: Likewise.
7641 * regformats/i386/i386-avx.dat: Likewise.
7642 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7643 * regformats/i386/x86-64-avx.dat: Likewise.
7644
05159abe
DE
76452010-04-07 Doug Evans <dje@google.com>
7646
7647 * top.c (source_file_name): Make const char *.
7648 * top.h (source_file_name): Update.
7649 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7650 const char *.
7651 (script_from_file): Change `file' arg to const char *.
7652 * cli/cli-script.h (script_from_file): Update.
7653
96e39866
DE
76542010-04-06 Doug Evans <dje@google.com>
7655
7656 * cli/cli-cmds.c (source_command): Run cleanups.
7657
3149d8c1
SS
76582010-04-06 Stan Shebs <stan@codesourcery.com>
7659
7660 * defs.h (char_ptr): Move typedef here from...
7661 * ada-lang.c (char_ptr): Remove.
7662 * charset.c (char_ptr): Remove.
7663 * tracepoint.h (struct uploaded_string): Remove.
7664 (struct uploaded_tp): Use vectors for string arrays.
7665 * tracepoint.c (trace_save): Use vectors of actions.
7666 (parse_tracepoint_definition): Ditto.
7667 (get_uploaded_tp): Clear vectors.
7668 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7669 (next_cmd): Change to an int.
7670 (read_next_cmd): Use vector of command strings.
7671
4cc23ede
DE
76722010-04-06 Doug Evans <dje@google.com>
7673
7674 * top.h (source_script, cd_command): Delete.
7675 * main.c: #include "cli/cli-cmds.h"
7676
bd333fb7
KB
76772010-04-06 Kevin Buettner <kevinb@redhat.com>
7678
7679 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7680 type in bytes, not bits.
7681
ec8a089a
PM
76822010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7683
7684 * stabsread.c (define_symbol): Add support for char
7685 and string constants.
7686
2244ba2e
PM
76872010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7688
7689 Remove remaining "%ll" uses.
7690 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7691 hex_string call.
7692 * rs6000-nat.c (rs6000_ptrace64): Idem.
7693 * solib-pa64.c (pa64_current_sos): Idem.
7694 * solib-spu.c (spu_current_sos): Idem.
7695 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7696 plongest call.
7697 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7698 phex (VAR, 8) call.
7699 * sh64-tdep.c (sh64_show_media_regs): Idem.
7700
fce3c1f0
SS
77012010-04-05 Stan Shebs <stan@codesourcery.com>
7702
7703 * tracepoint.c: Include gdbcore.h.
7704 (tfile_xfer_partial): Return partial results, also try reading
7705 from executable.
7706 (tfile_has_all_memory): New function.
7707 (init_tfile_ops): Use it.
7708
626ea16d
SDJ
77092010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7710
7711 PR gdb/10736:
7712 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7713 the changes in data-directory.
7714 (init_sysinfo): Reload the syscall XML file if the data-directory
7715 has changed.
7716
1f7ccab2
JK
77172010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7718
7719 Code cleanup.
7720 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7721
d77f58be
SS
77222010-04-04 Stan Shebs <stan@codesourcery.com>
7723 Nathan Sidwell <nathan@codesourcery.com>
7724
7725 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7726 breakpoints printed.
7727 (is_hardware_watchpoint): Make argument const.
7728 (is_watchpoint): Ditto.
7729 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7730 use it everywhere.
7731 (breakpoints_info): Pass NULL to breakpoint_1.
7732 (maintenance_info_breakpoints): Ditto.
7733 (watchpoints_info): New function.
7734 (tracepoints_info): Use breakpoint_1 filter.
7735 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7736 (_initialize_breakpoint): Make "info watchpoints" its own command.
7737 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7738 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7739
af54718e
SS
77402010-04-04 Stan Shebs <stan@codesourcery.com>
7741
7742 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7743
74d1f91e
JK
77442010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7745
7746 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7747 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7748
91d91ceb
JK
77492010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7750
7751 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7752 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7753
60531b24
JK
77542010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7755
7756 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7757 code form.
7758
a3c4230a
HZ
77592010-04-02 Hui Zhu <teawater@gmail.com>
7760
7761 * i386-tdep.c (OT_DQUAD): New enum.
7762 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7763 SSE3, SSSE3 and SSE4.
7764
b15758fe
HZ
77652010-04-02 Hui Zhu <teawater@gmail.com>
7766
7767 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7768 "*addr = 0".
7769
afd02f27
PA
77702010-04-02 Pedro Alves <pedro@codesourcery.com>
7771
7772 * tracepoint.c (trace_dump_actions): New, factored out from
7773 trace_dump_command, and adjusted to recurse into while-stepping's
7774 action list.
7775 (trace_dump_command): Use it.
7776
5cea2a26
PA
77772010-04-02 Pedro Alves <pedro@codesourcery.com>
7778
7779 * breakpoint.h (struct counted_command_line): Moved definition to
7780 breakpoint.c, and forward declare.
7781 (breakpoint_commands): Declare.
7782 * breakpoint.c (struct counted_command_line): Moved here.
7783 (breakpoint_commands): New.
7784 * tracepoint.c (encode_actions): Use breakpoint_commands.
7785 * remote.c (remote_download_tracepoint): Ditto.
7786
7c47795c
L
77872010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7788
7789 * remote.c (remote_parse_stop_reply): Use hex_string instead
7790 of phex_nz for error.
7791
fff87407
SS
77922010-04-01 Stan Shebs <stan@codesourcery.com>
7793 Nathan Sidwell <nathan@codesourcery.com>
7794
7795 * tracepoint.h (enum actionline_type): Remove.
7796 (validate_actionline): Change return to void.
7797 * tracepoint.c (report_agent_reqs_errors): New function.
7798 (validate_actionline): Call it, change return to void, report errors
7799 more consistently.
7800 (collect_symbol): Call report_agent_reqs_errors.
7801 (encode_actions_1): Ditto.
7802 (encode_actions): Don't expect a result from validate_actionline.
7803
615bcdef
SS
78042010-04-01 Stan Shebs <stan@codesourcery.com>
7805
7806 * tracepoint.c (trace_start_command): Confirm if trace is running.
7807 (trace_stop_command): Error if trace not running.
7808
fe01d668
L
78092010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7810
7811 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7812 (AMD64_NUM_LOWER_BYTE_REGS): New.
7813 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7814 (amd64_pseudo_register_write): Likewise.
7815 (amd64_init_abi): Set num_byte_regs to 20.
7816
86b17b60
PA
78172010-04-01 Pedro Alves <pedro@codesourcery.com>
7818
7819 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7820 (prev_breakpoint_count): New.
7821 (set_breakpoint_count): Adjust.
7822 (rbreak_start_breakpoint_count): New.
7823 (start_rbreak_breakpoints): Adjust.
7824 (end_rbreak_breakpoints): Adjust.
7825 (struct commands_info) <arg>: New field.
7826 (do_map_commands_command): Tweak output to include breakpoint spec
7827 range.
7828 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7829 ARG was empty on entry. Set INFO's arg.
7830 (create_breakpoint): Adjust.
7831
7832 * NEWS: Clarify `commands' changes.
7833
2c58c0a9
PA
78342010-04-01 Pedro Alves <pedro@codesourcery.com>
7835
7836 * tracepoint.c: Include stack.h.
7837 (struct add_local_symbols_data): New.
7838 (do_collect_symbol): New.
7839 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7840 iterate_over_block_local_vars.
7841 * stack.c (print_block_frame_locals): Rewrite as ...
7842 (iterate_over_block_locals): ... this. Take a callback function
7843 pointer and generic data pointer, and call that instead of
7844 print_variable_and_value.
7845 (struct print_variable_and_value_data): New.
7846 (do_print_variable_and_value): New.
7847 (iterate_over_block_local_vars): New, abstracted out from
7848 print_frame_local_vars.
7849 (print_frame_local_vars): Rewrite using
7850 iterate_over_block_local_vars.
7851 (iterate_over_block_arg_vars): New, abstracted out from
7852 print_frame_arg_vars.
7853 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7854 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7855 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7856
d476da0e
RE
78572010-03-31 Richard Earnshaw <rearnsha@arm.com>
7858
7859 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7860 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7861 PC register.
7862
8072405b
JK
78632010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7864
7865 Fix crash on reading wrong function declaration DWARF.
7866 * dwarf2read.c (read_subroutine_type): New variable void_type.
7867 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7868 more close to their use.
7869
8bf6485c
SS
78702010-03-31 Stan Shebs <stan@codesourcery.com>
7871
7872 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7873 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7874 * tracepoint.c (save_trace_state_variables): New function.
7875 * tracepoint.h (save_trace_state_variables): Declare it.
7876
2ae2a0b7
PM
78772010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7878
1a161f72 7879 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7880
86ffb506
KS
78812010-03-30 Keith Seitz <keiths@redhat.com>
7882
7883 * c-typeprint.c (c_type_print_args): Don't print "void"
7884 for java, regardless of whether it is TYPE_PROTOTYPED.
7885 Use the passed-in language instead of current_language.
7886 (c_type_print_varspec_suffix): Use current_language instead
7887 of assuming language_c.
7888 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7889 any return type specifier from the physname.
7890
956c2c8b
PA
78912010-03-30 Pedro Alves <pedro@codesourcery.com>
7892
7893 * tui/tui-interp.c (tui_is_toplevel): New.
7894 (tui_init): Set it.
7895 (tui_allowed_p): New.
7896 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7897 enabling it.
7898 * tui/tui.h (tui_allowed_p): Declare.
7899
98e5a990
TT
79002010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7901
7902 * serial.h: Include winsock2.h before windows.h.
7903
c8d5aac9
L
79042010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7905
7906 * NEWS: Mention xmlRegisters= in qSupported packet.
7907
7908 * i386-tdep.c: Include "remote.h".
7909 (_initialize_i386_tdep): Call register_remote_support_xml.
7910
7911 * remote.c (remote_support_xml): New.
7912 (register_remote_support_xml): Likewise.
7913 (remote_query_supported_append): Likewise.
7914 (remote_query_supported): Support remote_support_xml.
7915
7916 * remote.h (register_remote_support_xml): New.
7917
76a2b958
SS
79182010-03-29 Stan Shebs <stan@codesourcery.com>
7919
42e08e69
SS
7920 * tracepoint.c (trace_find_line_command): Remove dead code.
7921
409873ef
SS
7922 * tracepoint.h (struct uploaded_string): New struct.
7923 (struct uploaded_tp): New fields for source strings.
7924 * breakpoint.c (this_utp, next_cmd): New globals.
7925 (read_uploaded_action): New function.
7926 (create_tracepoint_from_upload): Fill in more parts
7927 of a tracepoint.
7928 * tracepoint.c (encode_source_string): New function.
7929 (trace_save): Write out source strings, fix error checks.
7930 (parse_tracepoint_definition): Add source string parsing.
7931 * remote.c (PACKET_TracepointSource): New packet type.
7932 (remote_download_command_source): New function.
7933 (remote_download_tracepoint): Download source pieces also.
7934 (_initialize_remote): Add packet config command.
7935
a0405854
SS
7936 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7937 expression handler.
7938
76a2b958
SS
7939 * tracepoint.c (start_tracing): Check tracepoints before sending
7940 commands to target, don't start if all tracepoints disabled.
7941
d350db38
PA
79422010-03-28 Pedro Alves <pedro@codesourcery.com>
7943
12f2d601 7944 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7945
8b9b7ef8
SS
79462010-03-26 Stan Shebs <stan@codesourcery.com>
7947
7948 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7949
9766ced4
SS
79502010-03-26 Tom Tromey <tromey@redhat.com>
7951
7952 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7953
059acae7
UW
79542010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7955
7956 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7957 (skip_prologue_sal): Remove local definition.
7958 (resolve_sal_pc): Remove now unnecessary code.
7959 * linespec.c (minsym_found): Call skip_prologue_sal.
7960 * symtab.c (find_function_start_pc): Remove.
7961 (find_function_start_sal): Extract prologue skipping into ...
7962 (skip_prologue_sal): ... this new function. Handle code both
7963 with and without debug info. Respect SAL's explicit_pc and
7964 explicit_line flags. Inline old find_function_start_pc.
7965 * symtab.h (find_function_start_pc): Remove.
7966 (skip_prologue_sal): Add prototype.
7967
4a811a97
UW
79682010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7969
7970 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7971 for DW_TAG_imported_module children.
7972
907af001
UW
79732010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7974
7975 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7976 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7977 * completer.c (add_struct_fields): Fix inverted logic.
7978
dde2d684
UW
79792010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7980
7981 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7982
a609a0c8
PA
79832010-03-26 Pedro Alves <pedro@codesourcery.com>
7984
7985 * tracepoint.c (current_trace_status): Don't make sure error_desc
7986 is non-NULL here.
7987 (parse_trace_status): Release a previous error_desc string, and
7988 set it to NULL by default. If stop reason is tracepoint_error,
7989 make sure error_desc is not left NULL.
7990
610197fd
PA
79912010-03-26 Pedro Alves <pedro@codesourcery.com>
7992
7993 * tracepoint.c (trace_save): Remove X from tracepoint error
7994 description.
7995
99b5e152
PA
79962010-03-26 Pedro Alves <pedro@codesourcery.com>
7997
7998 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7999 the terror description. Don't expect an X prefix.
8000
6c28cbf2
SS
80012010-03-25 Stan Shebs <stan@codesourcery.com>
8002
8003 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8004 (struct trace_status): New field error_desc.
8005 * tracepoint.c (stop_reason_names): Add terror.
8006 (current_trace_status): Ensure non-NULL error description.
8007 (trace_status_command): Add error report.
8008 (trace_status_mi): Ditto.
8009 (trace_save): Add special case for error description.
8010 (parse_trace_status): Add case for errors.
8011
418835cc
KS
80122010-03-25 Keith Seitz <keiths@redhat.com>
8013
8014 * dwarf2read.c (read_subroutine_type): If the compilation unit
8015 language is Java, mark any formal parameter named "this" as
8016 artificial (GCC/43521).
8017 (dwarf2_name): Add special handling for Java constructors.
8018
aa7d318d
TT
80192010-03-25 Tom Tromey <tromey@redhat.com>
8020
8021 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8022 * infrun.c (handle_inferior_event): Change initialization of
8023 stop_stack_dummy.
8024 (handle_inferior_event): Change assignment to stop_stack_dummy.
8025 (normal_stop): Update use of stop_stack_dummy.
8026 (struct inferior_status) <stop_stack_dummy>: Change type.
8027 * inferior.h (stop_stack_dummy): Update.
8028 * infcmd.c (stop_stack_dummy): Change type.
8029 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8030 function.
8031 (call_function_by_hand): Call set_std_terminate_breakpoint.
8032 Rewrite std::terminate handling.
8033 * breakpoint.h (enum bptype) <bp_std_terminate,
8034 bp_std_terminate_master>: New.
8035 (enum stop_stack_kind): New.
8036 (struct bpstat_what) <call_dummy>: Change type.
8037 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8038 Declare.
8039 * breakpoint.c (create_std_terminate_master_breakpoint): New
8040 function.
8041 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8042 Call create_std_terminate_master_breakpoint.
8043 (print_it_typical): Handle new breakpoint kinds.
8044 (bpstat_stop_status): Handle bp_std_terminate_master.
8045 (bpstat_what): Correctly set call_dummy field. Handle
8046 bp_std_terminate_master and bp_std_terminate.
8047 (print_one_breakpoint_location): Update.
8048 (allocate_bp_location): Update.
8049 (set_std_terminate_breakpoint): New function.
8050 (delete_std_terminate_breakpoint): Likewise.
8051 (create_thread_event_breakpoint): Update.
8052 (delete_command): Update.
8053 (breakpoint_re_set_one): Update.
8054 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8055
82ccf5a5
JK
80562010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8057
8058 * symfile.c (build_section_addr_info_from_bfd): New.
8059 (build_section_addr_info_from_objfile): Base it on
8060 build_section_addr_info_from_bfd.
8061 (addrs_section_compar, addrs_section_sort): New.
8062 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8063 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8064 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8065
737c4c52
MS
80662010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8067
8d95cc3b 8068 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
8069 Remove unused local variable.
8070
95a42b64
TT
80712010-03-24 Tom Tromey <tromey@redhat.com>
8072
8073 PR breakpoints/9352:
8074 * NEWS: Mention changes to `commands' and `rbreak'.
8075 * symtab.c (do_end_rbreak_breakpoints): New function.
8076 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8077 end_rbreak_breakpoints.
8078 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8079 (set_breakpoint_count): Likewise. Clear last_was_multi.
8080 (multi_start, multi_end, last_was_multi): New globals.
8081 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8082 functions.
8083 (struct commands_info): New
8084 (do_map_commands_command): New function.
8085 (commands_command_1): New function.
8086 (commands_command): Use it.
8087 (commands_from_control_command): Likewise.
8088 (do_delete_breakpoint): New function.
8089 (delete_command): Use it.
8090 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8091 (do_map_disable_breakpoint): New function.
8092 (disable_command): Use it.
8093 (do_map_enable_breakpoint): New function.
8094 (enable_command): Use it.
8095 (enable_once_breakpoint): Add argument.
8096 (enable_once_command): Update.
8097 (enable_delete_breakpoint): Add argument.
8098 (enable_delete_command): Update.
8099 (break_command_really): Set last_was_multi when needed.
8100 (check_tracepoint_command): Fix formatting.
8101 (validate_commands_for_breakpoint): New function.
8102 (breakpoint_set_commands): Use it.
8103 (tracepoint_save_command): Update.
8104 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8105 Declare.
8106
9add0f1b
TT
81072010-03-24 Tom Tromey <tromey@redhat.com>
8108
8109 * breakpoint.h (struct counted_command_line): New struct.
8110 (struct breakpoint) <commands>: Change type.
8111 (struct bpstats) <commands>: Change type.
8112 <commands_left>: New field.
8113 * breakpoint.c (alloc_counted_command_line): New function.
8114 (incref_counted_command_line): Likewise.
8115 (decref_counted_command_line): Likewise.
8116 (do_cleanup_counted_command_line): Likewise.
8117 (make_cleanup_decref_counted_command_line): Likewise.
8118 (breakpoint_set_commands): Use decref_counted_command_line and
8119 alloc_counted_command_line.
8120 (commands_command): Don't error if breakpoint commands are
8121 executing.
8122 (commands_from_control_command): Likewise.
8123 (bpstat_free): Update.
8124 (bpstat_copy): Likewise.
8125 (bpstat_clear_actions): Likewise.
8126 (bpstat_do_actions_1): Likewise.
8127 (bpstat_stop_status): Likewise.
8128 (print_one_breakpoint_location): Likewise.
8129 (delete_breakpoint): Likewise.
8130 (bpstat_alloc): Initialize new field.
8131 (tracepoint_save_command): Update.
8132 * tracepoint.c (encode_actions): Update.
8133 (trace_dump_command): Update.
8134
a6c727b2
DJ
81352010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8136
8137 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8138 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8139 (read_structure_type): For RealView, set TYPE_STUB on structures with
8140 no byte size and no children.
8141 (read_subroutine_type): Mark functions as prototyped by default.
8142 * symtab.c (producer_is_realview): New function.
8143 * symtab.h (expand_line_sal): Fix declaration formatting.
8144 (producer_is_realview): Declare.
8145
0d39a070
DJ
81462010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8147
8148 * arm-tdep.c (skip_prologue_function): New function.
8149 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8150 (thumb_analyze_prologue): Document return value. Recognize more
8151 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8152 Add debug output.
8153 (arm_skip_prologue): Remove call dummy check. Check the prologue
8154 for non-GNU compilers.
8155 (arm_instruction_changes_pc): New function.
8156 (arm_analyze_prologue): New function, broken out from
8157 arm_scan_prologue. Recognize more ARM instructions and skippable
8158 calls. Update comments. Handle NULL cache. Return the address
8159 of the first unrecognized instruction. Do not skip past other
8160 instructions which change control flow. Add debug output.
8161 (arm_scan_prologue): Use arm_analyze_prologue.
8162 (ARM_PC_32): Delete.
8163 (shifted_reg_val): Simplify ARM_PC_32 check.
8164
4baf5cf4
VP
81652010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8166
8167 * tracepoint.c (tvariables_info_1): Actually compute
8168 the number of rows in the result.
8169
4a5e7a5b
PA
81702010-03-24 Pedro Alves <pedro@codesourcery.com>
8171
8172 * remote.c (crc32): Constify `buf' parameter.
8173 (remote_verify_memory): New, abstracted out from...
8174 (compare_sections_command): ... this. Remove hardcoded target
8175 checks.
8176 (init_remote_ops): Install remote_verify_memory.
8177 * target.c (target_verify_memory): New.
8178 * target.h (struct target_ops) <to_verify_memory>: New field.
8179 (target_verify_memory): Declare.
8180
011aacb0
VP
81812010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8182
8183 Implement -trace-save.
8184
8185 * mi-cmds.h (mi_cmds_trace_save): Declare.
8186 * mi-cmds.c (mi_cmds): Register -trace-save.
8187 * mi/mi-main.c (mi_cmd_trace_save): New.
8188 * remote.c (remote_save_trace_data): Take const parameter.
8189 * target.h (struct target_ops::to_save_trace_data): Take
8190 const parameter.
8191 * target.c (update_current_target): Adjust to the above.
8192 * tracepoint.c (trave_save): New, extracted from
8193 (trace_save_command): ...this.
8194 (tfile_trace_find): Remove message that is unnecessary now
8195 that 'tfind' reports found frame.
8196 * tracepoint.h (trace_save): Declare.
8197
f197e0f1
VP
81982010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8199
8200 Implement -trace-find.
8201
8202 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8203 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8204 * mi/mi-main.c (mi_cmd_trace_find): New.
8205 * target.h (struct target_ops): Document to_trace_find.
8206 * tracepoint.h (tfind_1): Declare.
8207 * tracepoint.c (finish_tfind_command): Rename to...
8208 (tfind_1): ...this.
8209 * remote.c (remote_trace_find): Return -1 if target say
8210 there's no frame. Improve error diagnostics.
8211
40e1c229
VP
82122010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8213
8214 -trace-define-variable and -trace-list-variables.
8215
8216 * tracepoint.c (create_trace_state_variable): Make
8217 private copy of name, as opposed to assuming the
8218 pointer lives forever.
8219 (tvariables_info_1): New.
8220 (tvariables_info): Use the above.
8221 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8222 Declare.
8223 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8224 and -trace-list-variables.
8225 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8226 (mi_cmd_trace_list_variables): New.
8227 * mi/mi-main.c (mi_cmd_trace_define_variable)
8228 (mi_cmd_trace_list_variables): New.
8229
9b4c786c
VP
82302010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8231
8232 Implement -break-passcount.
8233
8234 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8235 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8236 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8237
f224b49d
VP
82382010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8239
8240 -trace-start/-trace-end/-trace-status.
8241
8242 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8243 and -trace-stop.
8244 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8245 (mi_cmd_trace_stop): Declare.
8246 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8247 (mi_cmd_trace_stop): New.
8248 * tracepoint.c (start_tracing): New, extracted from...
8249 (trace_start_command): ...this.
8250 (trace_status_mi): New.
8251 * tracepoint.h (struct trace_status): Document
8252 stopping_tracepoint.
8253 (start_tracing, stop_tracing, trace_status_mi): Declare.
8254
6534d786
VP
82552010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8256
8257 Implement creating tracepoints with -break-insert.
8258
8259 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8260 to mean that tracepoint should be created.
8261
51661e93
VP
82622010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8263
8264 * breakpoint.c (check_no_tracepoint_commands): Use
8265 current spelling of 'teval'.
8266
a7bdde9e
VP
82672010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8268
8269 Unify actions and commands
8270
8271 * defs.h (read_command_lines, read_command_lines_1): New
8272 parameters validator and closure.
8273 * tracepoint.h (struct action_line): Remove.
8274 * breakpoint.h (struct breakpoint): Remove the 'actions'
8275 field.
8276 * defs.h (enum command_control_type): New value
8277 while_stepping_control.
8278 (struct command_line): Add comments.
8279 * breakpoint.c (breakoint_is_tracepoint): New.
8280 (breakpoint_set_commands): For tracepoints,
8281 verify the commands are permissible.
8282 (check_tracepoint_commands): New.
8283 (commands_command): Require that each new line is validated using
8284 check_tracepoint_command, if we set commands for a tracepoint.
8285 (create_tracepoint_from_upload): Likewise.
8286 (print_one_breakpoint_location): Remove the code to print
8287 actions specifically.
8288 (tracepoint_save_command): Relay to print_command_lines.
8289 * cli/cli-script.c (process_next_line): New parameters validator
8290 and closure. Handle 'while-stepping'. Call validator if not null.
8291 (read_command_lines, read_command_lines1): Likewise.
8292 (recurse_read_control_structure): New parameters validator and
8293 closure. Handle while_stepping_control.
8294 (print_command_lines): Handle while-stepping.
8295 (get_command_line, define_command, document_command): Adjust.
8296 * remote.c (remote_download_tracepoint): Adjust.
8297 * tracepoint.c (make_cleanup_free_actions, read_actions)
8298 (free_actions, do_free_actions_cleanup): Remove.
8299 (trace_actions_command): Use read_command_lines.
8300 (validate_actionline): Use error in one place.
8301 (encode_actions_1): New, extracted from...
8302 (encode_actions): ...this. Also use cleanups for exception
8303 safety.
8304 (trace_dump_command): Adjust.
8305 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8306 it's tracepoint.
8307
64e3cf3d
MF
83082010-03-23 Mike Frysinger <vapier@gentoo.org>
8309
8310 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8311
52e9fde8
SS
83122010-03-22 Stan Shebs <stan@codesourcery.com>
8313
8314 * value.c (value_static_field): Be lazy about the field's value.
8315
508ccb1f
TT
83162010-03-22 Reid Kleckner <reid@kleckner.net>
8317
8318 PR gdb/11094
8319 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8320 bp_jit_event.
8321 (disable_breakpoints_in_shlibs): Likewise.
8322
acebe513
UW
83232010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8324
8325 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8326 GCC 4.1 debug info generation (GCC PR c++/28460).
8327 (determine_prefix): Likewise.
8328
957b8b5a
DJ
83292010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8330
8331 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8332 get_current_arch.
8333 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8334
3b11a015
SS
83352010-03-19 Stan Shebs <stan@codesourcery.com>
8336
8337 * ax-gdb.c (gen_fetch): Handle bool.
8338 (gen_usual_unary): Ditto.
8339 (gen_cast): Ditto.
8340 (gen_equal): New function.
8341 (gen_less): New function.
8342 (gen_expr_binop_rest): Call them, also return integer type from
8343 logical operations.
8344 (gen_expr): Ditto.
8345
20781792
TT
83462010-03-19 Tom Tromey <tromey@redhat.com>
8347
8348 * jv-lang.c (jv_dynamics_objfile_data_key)
8349 (jv_type_objfile_data_key): New globals.
8350 (class_symtab): Move earlier.
8351 (jv_per_objfile_free): New function.
8352 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8353 parameter.
8354 Remove ancient #if 1.
8355 (add_class_symbol): Remove redundant declaration.
8356 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8357 (java_link_class_type): Mark as static. Update.
8358 (jv_clear_object_type): New function.
8359 (set_java_object_type): Likewise.
8360 (get_java_object_type): Use set_java_object_type.
8361 (is_object_type): Likewise.
8362 (_initialize_java_language): Register new objfile keys.
8363 (get_java_class_symtab): Add 'gdbarch' parameter.
8364 (add_class_symtab_symbol): Update.
8365 (type_from_class): Update.
8366
cf3e25ca
SS
83672010-03-19 Stan Shebs <stan@codesourcery.com>
8368
8d95cc3b 8369 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 8370
f1ae44c9 83712010-03-18 Joel Brobecker <brobecker@adacore.com>
8372
8373 GDB 7.1 released.
8374
4daf5ac0
SS
83752010-03-18 Stan Shebs <stan@codesourcery.com>
8376 Pedro Alves <pedro@codesourcery.com>
8377
8378 * target.h (struct target_ops): New method
8379 to_set_circular_trace_buffer.
8380 (target_set_circular_trace_buffer): New macro.
8381 * target.c (update_current_target): Add
8382 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8383 default behavior.
8384 * remote.c (remote_set_circular_trace_buffer): New function.
8385 (init_remote_ops): Add it to vector.
8386 * tracepoint.h (struct trace_status): New field traceframes_created,
8387 change buffer_size and buffer_free to int.
8388 * tracepoint.c (circular_trace_buffer): New global.
8389 (start_tracing): Send values of disconnected tracing and circular
8390 trace buffer settings.
8391 (set_circular_trace_buffer): New function.
8392 (parse_trace_state): Handle total space and frames created.
8393 (trace_status_command): Display total space and total frames
8394 created.
8395 (trace_save): Write out new status values.
8396 (parse_trace_status): Set traceframe_count, traceframes_created,
8397 buffer_free and buffer_size to -1 by default.
8398 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8399 * NEWS: Mention the circular trace buffer option.
8400
40c549d6
TT
84012010-03-18 Tom Tromey <tromey@redhat.com>
8402
8403 * infcmd.c (finish_command_continuation): Wrap print_return_value
8404 in TRY_CATCH.
8405
e8d05480
JB
84062010-03-18 Joel Brobecker <brobecker@adacore.com>
8407
8408 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8409 DIE has a name before creating the associated partial symbol.
8410 (read_func_scope): Emit a complaint if the subprogram does not
8411 have a name or when we can't extract the subprogram PC bounds.
8412
441b986a
UW
84132010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8414
8415 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8416 instead of selected frame architecture.
8417
4247603b
PA
84182010-03-18 Pedro Alves <pedro@codesourcery.com>
8419
8420 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8421 a valid selected thread, and that it is not running.
8422 (advance_command): Ditto.
8423 (finish_command): Ditto.
8424
400c6af0
SS
84252010-03-17 Stan Shebs <stan@codesourcery.com>
8426
3a96536b
SS
8427 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8428
573cda03
SS
8429 * infcall.c: Include tracepoint.h.
8430 (call_function_by_hand): Disallow calls in tfind mode.
8431 * infcmd.c: Include tracepoint.h.
8432 (ensure_not_tfind_mode): New function.
8433 (continue_1): Call it.
8434 (step_1) Ditto.
8435 (jump_command): Ditto.
8436 (signal_command): Ditto.
8437 (advance_command): Ditto.
8438 (until_command): Ditto.
8439 (finish_command): Ditto.
8440 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8441
400c6af0
SS
8442 * ax-gdb.h (struct axs_value): New field optimized_out.
8443 (gen_trace_for_var): Add gdbarch argument.
8444 * ax-gdb.c (gen_trace_static_fields): New function.
8445 (gen_traced_pop): Call it, add gdbarch argument.
8446 (gen_trace_for_expr): Update call to it.
8447 (gen_trace_for_var): Ditto, and report optimized-out variables.
8448 (gen_struct_ref_recursive): Check for optimized-out value.
8449 (gen_struct_elt_for_reference): Ditto.
8450 (gen_static_field): Pass gdbarch instead of expression, assume
8451 optimization if field not found.
8452 (gen_var_ref): Set the optimized_out flag.
8453 (gen_expr): Error on optimized-out variable.
8454 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8455 expressions, skip optimized-out variables with computed locations.
8456 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8457 erroring out if location expression missing.
8458 (loclist_tracepoint_var_ref): Don't error out here.
8459
a3b2a86b
TT
84602010-03-17 Tom Tromey <tromey@redhat.com>
8461
8462 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8463 DWARF data is available.
8464
38963c97
DJ
84652010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8466
8467 * symfile.c (generic_load): Reset breakpoints after loading.
8468
ddabfc73
TT
84692010-03-17 Tom Tromey <tromey@redhat.com>
8470
8471 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8472
d8c09fb5
JK
84732010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8474
8475 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8476 create_breakpoint call, adjust the parameters.
8477
bbb0eef6
JK
84782010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8479 Chandru <chandru@in.ibm.com>
8480
8481 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8482 * valarith.c (value_subscripted_rvalue): Suppress error if
8483 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8484
46956e39
HZ
84852010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8486
8487 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8488
b8d088ac
JB
84892010-03-16 Joel Brobecker <brobecker@adacore.com>
8490
8491 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8492 before doing the associated thread switch.
8493
322be962
DJ
84942010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8495
8496 * MAINTAINERS: Update my email address.
8497
8cdf0e15
VP
84982010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8499
8500 Simplify MI breakpoint setting.
8501
8502 * breakpoint.c (break_command_really): Make nonstatic and
8503 rename to...
8504 (create_breakpoint): ...this. Rename prior function by this name
8505 to...
8506 (create_breakpoint_sal): ...this.
8507 (create_breakpoints): Rename to...
8508 (create_breakpoints_sal): ...this.
8509 (set_breakpoint): Remove.
8510 * breakpoint.h: Adjust to above changes.
8511 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8512
b6e7192f
SS
85132010-03-15 Stan Shebs <stan@codesourcery.com>
8514
8515 * ax-gdb.c: Include cp-support.h.
8516 (find_field): Remove.
8517 (gen_primitive_field): New function.
8518 (gen_struct_ref_recursive): New function.
8519 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8520 of find_field.
8521 (gen_static_field): New function.
8522 (gen_struct_elt_for_reference): New.
8523 (gen_namespace_elt): New.
8524 (gen_maybe_namespace_elt): New.
8525 (gen_aggregate_elt_ref): New.
8526 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8527
1054b214
TT
85282010-03-15 Tom Tromey <tromey@redhat.com>
8529
8530 * dwarf2read.c (die_needs_namespace): Also return 0 for
8531 DW_TAG_subprogram.
8532
13387711
SW
85332010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8534
8535 PR c++/7936:
8536 * cp-support.h: Added char *declaration element to using_direct
8537 data struct.
8538 (cp_add_using): Added char *declaration argument.
8539 (cp_add_using_directive): Ditto.
8540 (cp_lookup_symbol_imports): made extern.
8541 * cp-namespace.c: Updated with the above changes.
8542 * dwarf2read.c (read_import_statement): Ditto.
8543 (read_namespace): Ditto.
8544 (read_import_statement): Support import declarations.
8545 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8546 declarations.
8547 Added support for 'declaration_only' search.
8548 (cp_lookup_symbol_namespace): Attempt to search for the name as
8549 is before consideration of imports.
8550 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8551 search at every block level search.
8552 Now takes language argument.
8553 (lookup_symbol_aux): Updated.
8554
6e31430b
TT
85552010-03-15 Tom Tromey <tromey@redhat.com>
8556
8557 * c-exp.y (name_not_typename): Add 'operator' clause.
8558
4dea3bb7 85592010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
8560
8561 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8562 * configure: Regenerate.
8563
4d9743af
JK
85642010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8565
8566 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8567 and ".sdynbss". Update the comment.
8568
f75150fe
JZ
85692010-03-15 Jie Zhang <jie@codesourcery.com>
8570
8571 * MAINTAINERS: Update my email address.
8572
3c13bc11
DJ
85732010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8574
8575 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8576
43484f03
DJ
85772010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8578
8579 * charset.c [USE_WIN32API]: Include <windows.h>.
8580 (_initialize_charset): Correct type of w32_host_default_charset.
8581
5f25d77d
PA
85822010-03-14 Pedro Alves <pedro@codesourcery.com>
8583
8584 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8585
1c809c68
TT
85862010-03-12 Tom Tromey <tromey@redhat.com>
8587
8588 PR c++/9708:
8589 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8590 in a lexical block does not need a namespace.
8591 (new_symbol) <DW_TAG_variable>: Put extern variables on
8592 list_in_scope in all cases.
8593
948103cf
SS
85942010-03-12 Stan Shebs <stan@codesourcery.com>
8595
8596 * ax-gdb.c (gen_expr): Add shift expressions.
8597 (gen_expr_binop_rest): Ditto.
8598
00ae8fef
SW
85992010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8600
8601 * buildsym.c (finish_block): Reset using_directives pointer
8602 after block initialization.
8603
9cad29ac
L
86042010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8605
8606 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8607 * i386-tdep.c (i386_word_names): Likewise.
8608
2f4d8875
PA
86092010-03-12 Pedro Alves <pedro@codesourcery.com>
8610
8611 * target.c (memory_xfer_partial): Don't use the stack cache if
8612 inspecting trace frames.
8613 * tracepoint.c (finish_tfind_command): Invalidate the target
8614 dcache.
8615
ccf26247
JK
86162010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8617
8618 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8619 for the PIC displacement, print also the displacement value.
8620 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8621
477c84a7
KB
86222010-03-10 Kevin Buettner <kevinb@redhat.com>
8623
8624 * remote-mips.c (close_ports, mips_initialize_cleanups)
8625 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8626 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8627 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8628 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8629 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8630 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8631 comments describing each of these functions.
8632 (mips_enter_debug, mips_exit_debug, common_open)
8633 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8634 blank line after the comment describing the function.
8635
01c30d6e
JK
86362010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8637
8638 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8639 parameter displacementp. Update comment.
8640 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8641 element exists. Return if svr4_exec_displacement was not successful.
8642 Update comment.
8643
09919ac2
JK
86442010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8645 Daniel Jacobowitz <dan@codesourcery.com>
8646
8647 * solib-svr4.c (read_program_header): Support type == -1 to read
8648 all program headers.
8649 (read_program_headers_from_bfd): New function.
8650 (svr4_static_exec_displacement): Remove and move the comment ...
8651 (svr4_exec_displacement): ... here. Remove variable found. New
8652 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8653 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8654 targets using read_program_headers_from_bfd. Remove the call of
8655 svr4_static_exec_displacement.
8656
d146bf1e
TT
86572010-03-10 Tom Tromey <tromey@redhat.com>
8658
8659 * dwarf2read.c (struct pubnames_header): Remove.
8660 (_PUBNAMES_HEADER): Remove.
8661 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8662 (struct aranges_header): Remove.
8663 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8664 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8665 (PUBNAMES_SECTION): Remove.
8666 (ARANGES_SECTION): Remove.
8667 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8668 (dwarf2_build_psymtabs): Remove dead code.
8669 (dwarf2_build_psymtabs_easy): Remove.
8670
be391dca
TT
86712010-03-10 Tom Tromey <tromey@redhat.com>
8672
8673 * elfread.c (elf_symfile_read): Don't call
8674 dwarf2_build_frame_info.
8675 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8676 (struct dwarf2_per_objfile) <objfile>: New field.
8677 (dwarf2_has_info): Now idempotent. Set objfile field.
8678 (dwarf2_read_section): Check and set readin field. Call
8679 posix_madvise.
8680 (dwarf2_build_psymtabs): Don't read all sections.
8681 (read_type_comp_unit_head): Read types section.
8682 (create_debug_types_hash_table): Likewise.
8683 (init_cu_die_reader): Add asserts.
8684 (process_type_comp_unit): Add assert.
8685 (dwarf2_build_psymtabs_hard): Read info section.
8686 (load_partial_comp_unit): Add assert.
8687 (create_all_comp_units): Read info section.
8688 (load_full_comp_unit): Likewise.
8689 (dwarf2_ranges_read): Read ranges section.
8690 (dwarf2_record_block_ranges): Add assert.
8691 (dwarf2_read_abbrevs): Read abbrev section.
8692 (read_indirect_string): Read str section.
8693 (dwarf_decode_line_header): Read line section.
8694 (read_signatured_type_at_offset): Read types section.
8695 (dwarf_decode_macros): Read macinfo section.
8696 (dwarf2_symbol_mark_computed): Read loc section.
8697 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8698 dwarf2_build_frame_info.
8699 (dwarf2_build_frame_info): Unconditionally set
8700 dwarf2_frame_objfile_data on the objfile.
8701 * configure.ac: Check for posix_madvise.
8702 * config.in, configure: Rebuild.
8703
ccefe4c4
TT
87042010-03-10 Tom Tromey <tromey@redhat.com>
8705
e38df1d0
TT
8706 * xcoffread.c (xcoff_start_psymtab): Update.
8707 (xcoff_end_psymtab): Update.
8708 * psymtab.c (allocate_psymtab): Remove dead code.
8709 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8710 void*.
8711 * mdebugread.c (parse_partial_symbols): Update.
8712 (new_psymtab): Likewise.
8713 * dwarf2read.c (process_psymtab_comp_unit): Update.
8714 (psymtab_to_symtab_1): Update.
8715 * dbxread.c (start_psymtab): Update.
8716 (end_psymtab): Likewise.
8717
be391dca 87182010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8719
ccefe4c4
TT
8720 * xcoffread.c: Include psymtab.h.
8721 (xcoff_sym_fns): Update.
8722 * symtab.h (struct partial_symbol): Remove.
8723 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8724 (struct partial_symtab): Remove.
8725 (PSYMTAB_TO_SYMTAB): Remove.
8726 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8727 (find_pc_sect_psymtab): Remove.
8728 (find_pc_sect_symtab_via_partial): Declare.
8729 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8730 (find_main_psymtab): Remove.
8731 (find_main_filename): Declare.
8732 (fixup_psymbol_section): Remove.
8733 (fixup_section): Declare.
8734 * symtab.c: Include psymtab.h.
8735 (lookup_symtab): Use lookup_symtab method.
8736 (lookup_partial_symtab): Remove.
8737 (find_pc_sect_psymtab_closer): Remove.
8738 (find_pc_sect_psymtab): Remove.
8739 (find_pc_sect_symtab_via_partial): New function.
8740 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8741 (fixup_section): No longer static.
8742 (fixup_psymbol_section): Remove.
8743 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8744 (lookup_global_symbol_from_objfile): Likewise.
8745 (lookup_symbol_aux_psymtabs): Remove.
8746 (lookup_symbol_aux_quick): New function.
8747 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8748 (lookup_partial_symbol): Remove.
8749 (basic_lookup_transparent_type_quick): New function.
8750 (basic_lookup_transparent_type): Use it.
8751 (find_main_psymtab): Remove.
8752 (find_main_filename): New function.
8753 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8754 (find_line_symtab): Use expand_symtabs_with_filename method.
8755 (output_partial_symbol_filename): New function.
8756 (sources_info): Use map_partial_symbol_filenames.
8757 (struct search_symbols_data): New type.
8758 (search_symbols_file_matches): New function.
8759 (search_symbols_name_matches): Likewise.
8760 (search_symbols): Use expand_symtabs_matching method.
8761 (struct add_name_data): Rename from add_macro_name_data.
8762 (add_macro_name): Update.
8763 (add_partial_symbol_name): New function.
8764 (default_make_symbol_completion_list): Use
8765 map_partial_symbol_names.
8766 (struct add_partial_symbol_name): New type.
8767 (maybe_add_partial_symtab_filename): New function.
8768 (make_source_files_completion_list): Use
8769 map_partial_symbol_filenames.
8770 (expand_line_sal): Use expand_symtabs_with_filename method.
8771 * symmisc.c: Include psymtab.h.
8772 (print_objfile_statistics): Use print_stats method.
8773 (dump_objfile): Use dump method.
8774 (dump_psymtab, maintenance_print_psymbols)
8775 (maintenance_info_psymtabs, maintenance_check_symtabs)
8776 (extend_psymbol_list): Remove.
8777 * symfile.h (struct quick_symbol_functions): New struct.
8778 (struct sym_fns) <qf>: New field.
8779 (sort_pst_symbols): Remove.
8780 (increment_reading_symtab): Declare.
8781 * symfile.c: Include psymtab.h.
8782 (compare_psymbols, sort_pst_symbols): Remove.
8783 (psymtab_to_symtab): Remove.
8784 (increment_reading_symtab): New function.
8785 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8786 method.
8787 (set_initial_language): Use find_main_filename.
8788 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8789 (free_named_symtabs): Remove unused code.
8790 (start_psymtab_common, add_psymbol_to_bcache)
8791 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8792 Remove.
8793 * stack.c: Include psymtab.h, symfile.h.
8794 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8795 * source.h (psymtab_to_fullname): Don't declare.
8796 * source.c: Include psymtab.h.
8797 (select_source_symtab): Use find_last_source_symtab method.
8798 (forget_cached_source_info): Use forget_cached_source_info
8799 method.
8800 (find_and_open_source): No longer static.
8801 (psymtab_to_fullname): Remove.
8802 * somread.c: Include psymtab.h.
8803 (som_sym_fns): Update.
8804 * psympriv.h: New file.
8805 * psymtab.h: New file.
8806 * psymtab.c: New file.
8807 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8808 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8809 * objfiles.c: Include psymtab.h.
8810 (objfile_relocate1): Use relocate method.
8811 (objfile_has_partial_symbols): Use has_symbols method.
8812 * mipsread.c: Include psymtab.h.
8813 (ecoff_sym_fns): Update.
8814 * mi/mi-cmd-file.c: Include psymtab.h.
8815 (print_partial_file_name): New function.
8816 (mi_cmd_file_list_exec_source_files): Use
8817 map_partial_symbol_filenames.
8818 * mdebugread.c: Include psympriv.h.
8819 * machoread.c: Include psympriv.h.
8820 (macho_sym_fns): Update.
8821 * m2-exp.y (yylex): Use lookup_symtab.
8822 * elfread.c: Include psympriv.h.
8823 (elf_sym_fns): Update.
8824 * dwarf2read.c: Include psympriv.h.
8825 * dbxread.c: Include psympriv.h.
8826 (aout_sym_fns): Update.
8827 * cp-support.c: Include psymtab.h.
8828 (read_in_psymtabs): Remove.
8829 (make_symbol_overload_list_qualified): Use
8830 expand_symtabs_for_function method.
8831 * coffread.c: Include psympriv.h.
8832 (coff_sym_fns): Update.
8833 * blockframe.c: Include psymtab.h.
8834 (find_pc_partial_function): Use find_pc_sect_symtab method.
8835 * ada-lang.h (ada_update_initial_language): Update.
8836 * ada-lang.c: Include psymtab.h.
8837 (ada_update_initial_language): Remove 'main_pst' argument.
8838 (ada_lookup_partial_symbol): Remove.
8839 (struct ada_psym_data): New type.
8840 (ada_add_psyms): New function.
8841 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8842 (struct add_partial_datum): New type.
8843 (ada_add_partial_symbol_completions): New function.
8844 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8845 (ada_exception_support_info_sniffer): Update.
8846 * Makefile.in (SFILES): Add psymtab.c.
8847 (COMMON_OBS): Add psymtab.o.
8848 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8849
7d8500b7
PM
88502010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8851
8852 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8853
c0cc3a76
SW
88542010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8855
8856 PR C++/11236:
8857 * cp-namespace.c (cp_add_using): Deleted.
8858 (cp_add_using_directive): Use obstack allocations.
8859 Merged the function cp_add_using into this one.
8860 Added 'struct obstack *' argument.
8861 (cp_scan_for_anonymous_namespaces): Updated.
8862 * cp-support.h: Updated.
8863 * dwarf2read.c (read_import_statement): Updated.
8864 (read_namespace): Updated.
8865
452fa064
CF
88662010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8867
8868 * windows-nat.c (cygwin_conv_path): Remove old macro.
8869
60e1c644
PA
88702010-03-10 Pedro Alves <pedro@codesourcery.com>
8871
8872 * breakpoint.c (condition_command): Handle watchpoint conditions.
8873 (is_hardware_watchpoint): Add comment.
8874 (is_watchpoint): New.
8875 (update_watchpoint): Don't reparse the watchpoint's condition
8876 unless necessary.
8877 (WP_IGNORE): New.
8878 (watchpoint_check): Use it.
8879 (bpstat_check_watchpoint): Handle it.
8880 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8881 conditions in a frame where it makes sense.
8882 (watch_command_1): Store the innermost block of the condition
8883 expression.
8884 (delete_breakpoint): Delete the watchpoint condition expression.
8885 * breakpoint.h (struct bp_location) <cond>: Update comment.
8886 (struct breakpoint): New field `cond_exp_valid_block'.
8887
af6b7be1
JB
88882010-03-09 Joel Brobecker <brobecker@adacore.com>
8889
8890 Adjust handling of Ada DIEs after dwarf2_physname patch.
8891 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8892
60c5c021
CF
88932010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8894 Pierre Muller <muller@ics.u-strasbg.fr>
8895
8896 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8897 from/to posix/win32.
8898 (windows_make_so): Use non-Cygwin 1.7 specific function.
8899 (windows_create_inferior): Make sure that cygallargs points to
8900 original args in non Cygwin 1.7. case.
8901
60a1502a
MS
89022010-03-09 Michael Snyder <msnyder@vmware.com>
8903
8904 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8905 after target_read_memory to get host byte order.
8906 (i386_process_record): Ditto.
8907
94af9270
KS
89082010-03-09 Keith Seitz <keiths@redhat.com>
8909
8910 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8911 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8912 print out const or volatile qualifiers, too.
8913 (c_type_print_args): Add parameters show_artificial and language.
8914 Skip artificial parameters when requested.
8915 Use the appropriate language printer.
8916 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8917 parameters and pass language_c.
8918 * dwarf2read.c (die_list): New file global.
8919 (struct partial_die_info): Update comments for name field.
8920 (pdi_needs_namespace): Renamed to ...
8921 (die_needs_namespace): ... this. Rewrite.
8922 (dwarf2_linkage_name): Remove.
8923 (add_partial_symbol): Do not predicate the call to
8924 partial_die_full_name based on pdi_needs_namespace.
8925 Remove call to cp_check_possible_namespace_symbols and associated
8926 outdated comments.
8927 (guess_structure_name): Do not inspect child subprogram DIEs.
8928 (dwarf2_fullname): Update comments.
8929 Use die_needs_namespace to assist in computing the name.
8930 (read_func_scope): Use dwarf2_name to get the DIE's name.
8931 Use dwarf2_physname to get the "linkage name" of the DIE.
8932 (dwarf2_add_member_field): Use dwarf2_physname instead of
8933 dwarf2_linkage_name.
8934 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8935 (determine_class): Remove.
8936 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8937 except Ada.
8938 (new_symbol): Unconditionally call dwarf2_name.
8939 Compute the "linkage name" using dwarf2_physname.
8940 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8941 When determining to scan for anonymous C++ namespaces, ignore
8942 the linkage name.
8943 (dwarf2_physname): New function.
8944 (dwarf2_full_name): Move content to new function and call
8945 that.
8946 (dwarf2_compute_name): "New" function.
8947 (_initialize_dwarf2_read): Initialize die_list.
8948 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8949 physname.
8950 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8951 without a demangled name.
8952 Print out type information for non-virtual methods.
c8d5aac9 8953 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8954 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8955 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8956 (decode_compound): Stop consuming at an open parenthesis.
8957 Keep template parameters.
8958 Keep any overload information.
8959 Keep keywords like "const".
8960 Remove paren_pointer.
8961 Move is_quoted check from set_flags to here.
8962 Remove #if 0 code from 2000. Ten years is long enough.
8963 (find_method): Before comparing symbol names, canonicalize the string
8964 from the user.
8965 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8966 (find_method_overload_end): New function.
8967 (set_flags): Remove.
c8d5aac9
L
8968 (decode_compound): Assume that parentheses are matched.
8969 It's a lot easier.
94af9270
KS
8970 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8971 to cplus_demangle.
8972 * linespec.c (decode_line_1): Keep important keywords like
8973 "const" and "volatile".
8974 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8975 * typeprint.h (c_type_print_args): Add declaration.
8976 * ui-file.c (do_ui_file_obsavestring): New function.
8977 (ui_file_obsavestring): New function.
8978 * ui-file.h (ui_file_obsavestring): Add declaration.
8979 * valops.c (find_overload_match): Resolve the object to
8980 a non-pointer type.
8981 If the object is a data member, search the object for the member
8982 and return with staticp set.
8983 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8984 Do not attempt to extract a function name from non-function types.
8985 If the extracted function name and the original name are the same,
8986 we don't have a C++ method.
8987
8d95cc3b
PA
8988 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8989 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8990
8991 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8992 and arguments from symbol lookups.
8993 * ax-gdb.c (gen_expr): Likewise.
8994 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8995 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8996 lookup_possible_namespace_symbol): Likewise.
8997 * cp-support.c (read_in_psymtabs): Likewise.
8998 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8999 * language.h (la_lookup_symbol_nonlocal): Likewise.
9000 * scm-valprint.c (scm_inferior_print): Likewise.
9001 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9002 * solib-svr.c (elf_lookup_lib): Likewise.
9003 * solib.c (show_auto_solib_add): Likewise.
9004 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9005 * symmisc.c (maintenance_check_symtabs): Likewise.
9006 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9007 lookup_symbol_aux_local, lookup_symbol_aux_block,
9008 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9009 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9010 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9011 basic_lookup_transparent_type, find_main_psymtab,
9012 lookup_block_symbol): Likewise.
9013 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9014 lookup_symbol_global, lookup_symbol_aux_block,
9015 lookup_symbol_partial_symbol, lookup_block_symbol,
9016 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9017
9cb74f47
PM
90182010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9019
9020 * python/python-internal.h: Include symtab.h.
9021
af6b7be1
JB
90222010-03-09 Joel Brobecker <brobecker@adacore.com>
9023 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
9024
9025 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9026 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9027 indentation.
9028
bad56014
TT
90292010-03-08 Tom Tromey <tromey@redhat.com>
9030
9031 * breakpoint.c (breakpoint_1): Add "QUIT".
9032
08105857
PA
90332010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9034 Pedro Alves <pedro@codesourcery.com>
9035
9036 * solib.c (solib_find): Replace extension if
9037 solib_symbols_extension is set in the target gdbarch.
9038 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9039 solib_symbols_extension to "sym".
9040 * gdbarch.sh (solib_symbols_extension): New variable.
9041 (pstring): New function.
9042 * gdbarch.h, gdbarch.c: Regenerate.
9043
7c953934
TT
90442010-03-08 Tom Tromey <tromey@redhat.com>
9045
9046 PR cli/9591:
9047 * NEWS: Update.
9048 * utils.c: Include main.h.
9049 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9050 (defaulted_query): Use default answer if `batch_flag'.
9051 * main.h (batch_flag): Declare.
9052 * main.c (batch_flag): New global.
9053 (captured_main): Remove 'batch'. Update.
9054
bbd2783e
KB
90552010-03-08 Kevin Buettner <kevinb@redhat.com>
9056
9057 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9058 and Kevin Buettner:
9059
9060 * remote-mips.c (rockhopper_ops): New target_ops struct.
9061 (MON_ROCKHOPPER): New mips_monitor_type.
9062 (read_hex_value): New function.
9063 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 9064 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
9065 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9066 (rockhopper_open): New function.
9067 (mips_wait): Read the PC, FP and SP fields as strings. Use
9068 read_hex_value to parse them and mips_set_register to commit them.
9069 (mips_set_register): New function.
9070 (mips_fetch_registers): Do not cast register value to "unsigned"
9071 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9072 (mips_store_registers): Use a 'T' packet to set registers when
9073 using MON_ROCKHOPPER.
9074 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9075 and expect the total to be printed before the entry address.
9076 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9077
566f3d17
KB
90782010-03-08 Kevin Buettner <kevinb@redhat.com>
9079
9080 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9081 Change return value to int. Store value fetched in location
9082 addressed by `val'. Use function's return value as success
9083 or failure indicator. Adjust all callers.
9084
9c8ee2ab 90852010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
9086
9087 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9088
7155de5a
HZ
90892010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9090 Hui Zhu <teawater@gmail.com>
9091
9092 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9093 tmp_to_stopped_data_address.
9094 (record_open): Reset tmp_to_stopped_by_watchpoint and
9095 tmp_to_stopped_data_address.
9096 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9097 to_stopped_data_address.
9098
580879fc
HZ
90992010-03-08 Hui Zhu <teawater@gmail.com>
9100
9101 * i386-tdep.c (i386_process_record): Initialize regnum.
9102
b0fcb67f
JK
91032010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9104
9105 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9106 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9107
08597104
JB
91082010-03-08 Joel Brobecker <brobecker@adacore.com>
9109
9110 Memory error when reading wrong core file.
9111 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9112 errors while reading the inferior memory, and return zero if
9113 an exception was raised.
9114
425b824a
MS
91152010-03-07 Michael Snyder <msnyder@vmware.com>
9116
ec6dbf37
MS
9117 * record.c (record_restore): Rename tmpu8 to rectype.
9118
648d0c8b
MS
9119 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9120 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9121
9122 (i386_record_push): Rename local tmpulongest to addr.
9123
9124 (i386_process_record): Rename local tmpulongest to addr.
9125
9126 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9127 addr64.
955db0c0
MS
9128
9129 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 9130
10760264
JB
91312010-03-07 Joel Brobecker <brobecker@adacore.com>
9132
9133 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 9134 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 9135
b3c613f2
CF
91362010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9137
9138 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9139 block. Define helper macros to reduce ifdefs in code.
9140 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9141 size. Call unadorned GetModuleFileNameEx rather than
9142 GetModuleFileNameEx*.
9143 (windows_make_so): Use __PMAX to denote maximum buffer size and
9144 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9145 appropriate.
9146 (get_image_name): Use __PMAX to denote maximum buffer size.
9147 (handle_load_dll): Likewise.
9148 (windows_pid_to_exec_file): Likewise.
9149 (windows_create_inferior): Add many accommodations for older Cygwin and
9150 non-Cygwin.
9151 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9152 __USEWIDE conditional.
9153 (bad_GetModuleFileNameExA): Likewise.
9154 (_initialize_loadable): Just use real function names without the dyn_
9155 part since they are defined earlier.
9156
f870a310
TT
91572010-03-05 Corinna Vinschen <vinschen@redhat.com>
9158 Tom Tromey <tromey@redhat.com>
9159
9160 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9161 (parse_escape): Likewise.
9162 * python/py-utils.c (unicode_to_target_string): Update.
9163 (unicode_to_target_python_string): Update.
9164 (target_string_to_unicode): Update.
9165 * printcmd.c (printf_command): Update.
9166 * p-exp.y (yylex): Update.
9167 * objc-exp.y (yylex): Update.
9168 * mi/mi-parse.c: Include charset.h.
9169 (mi_parse_escape): New function.
9170 (mi_parse_argv): Use it.
9171 * jv-exp.y (yylex): Update.
9172 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9173 function.
9174 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9175 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9176 * gdbarch.c: Rebuild.
9177 * gdbarch.h: Rebuild.
9178 * defs.h (parse_escape): Update.
9179 * cli/cli-setshow.c: Include arch-utils.h.
9180 (do_setshow_command): Update.
9181 * cli/cli-cmds.c (echo_command): Update.
9182 * charset.h (target_charset, target_wide_charset): Update.
9183 * charset.c: Include arch-utils.h.
9184 (target_charset_name): Default to "auto".
9185 (target_wide_charset_name): Likewise.
9186 (show_target_charset_name): Handle "auto".
9187 (show_target_wide_charset_name): Likewise.
9188 (be_le_arch): New global.
9189 (set_be_le_names): Add 'gdbarch' argument.
9190 (validate): Likewise. Don't call set_be_le_names.
9191 (set_charset_sfunc, set_host_charset_sfunc)
9192 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9193 Update.
9194 (target_charset): Add 'gdbarch' argument.
9195 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9196 (auto_target_charset_name): New global.
9197 (default_auto_charset, default_auto_wide_charset): New functions.
9198 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9199 for target charsets. Copy result of nl_langinfo. Use GetACP if
9200 USE_WIN32API.
9201 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9202 remove 'byte_order' argument. Update.
9203 (classify_type): Likewise.
9204 (c_emit_char): Update.
9205 (c_printchar): Update.
9206 (c_printstr): Update.
9207 (c_get_string): Update.
9208 (evaluate_subexp_c): Update.
9209 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9210 Declare.
9211 * python/python.c (gdbpy_target_charset): New function.
9212 (gdbpy_target_wide_charset): Likewise.
9213 (GdbMethods): Update.
9214 * NEWS: Update.
9215
4e7386b0
UW
92162010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9217
9218 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9219 off high address bits.
9220
aab48ede
UW
92212010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9222
9223 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9224 address as UnsignedLongLong, not LongLong.
9225
8eeafb51 92262010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 9227 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
9228
9229 * remote-mips.c (gdbthread.h): Include.
9230 (remote_mips_ptid): Declare.
9231 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9232 (common_open): Set inferior_ptid, add it as an inferior, and
9233 as a thread too. Delete FIXME comment regarding start_remote().
9234 (mips_close): Invoke generic_mourn_inferior().
9235 (mips_kill): Make sure that target_mourn_inferior is invoked.
9236 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9237 it's now invoked from mips_close().
9238 (mips_load): Don't null out inferior_ptid. Don't call
9239 clear_symtab_users().
9240 (mips_thread_alive, mips_pid_to_str): New functions.
9241 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9242 to_thread_alive and to_pid_to_str operations.
9243
ae411497
TT
92442010-03-04 Tom Tromey <tromey@redhat.com>
9245
9246 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9247 in DWARF 3 and later.
9248 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9249
0e0b460e
KS
92502010-03-04 Keith Seitz <keiths@redhat.com>
9251
9252 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9253 If the filename portion of the linespec was quoted, recheck the
9254 remainder for additional quoting.
9255 (locate_first_half): Skip over completer chars, too.
9256
1b93ff13
TT
92572010-03-04 Tom Tromey <tromey@redhat.com>
9258
9259 * printcmd.c (printf_command): Pass dummy argument to
9260 printf_filtered.
9261
fc36e839
DE
92622010-03-04 Doug Evans <dje@google.com>
9263
111f853c
DE
9264 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9265 unwound_fp.
9266
fc36e839
DE
9267 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9268
c7437ca6
PA
92692010-03-04 Pedro Alves <pedro@codesourcery.com>
9270
9271 * breakpoint.c (update_watchpoint): Create a sentinel location if
9272 the software watchpoint isn't watching any memory.
9273 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9274
58dadb1b
PA
92752010-03-04 Pedro Alves <pedro@codesourcery.com>
9276
9277 * utils.c (fputs_maybe_filtered): Check if there's already a top
9278 level interpreter before dereferencing it. If there isn't one,
9279 don't paginate either.
9280
50e98be4
DJ
92812010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9282
9283 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9284 the state right when single stepping.
9285 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9286 Get the next PC along with the instruction state.
9287 (thumb_get_next_pc): Remove.
9288 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9289
2e3ceee9
HZ
92902010-03-04 Hui Zhu <teawater@gmail.com>
9291
9292 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9293
390a8aca
PA
92942010-03-03 Pedro Alves <pedro@codesourcery.com>
9295
9296 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9297 top level interpreter is MI.
9298
9355b391
SS
92992010-03-03 Stan Shebs <stan@codesourcery.com>
9300
9301 * remote.c (remote_download_tracepoint): Iterate over locations.
9302 * tracepoint.c (validate_actionline): Ditto.
9303 (encode_actions): Add location argument.
9304 (trace_dump_command): Check all locations to see if stepping
9305 frame.
390a8aca 9306
8685c86f
L
93072010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9308 Eli Zaretskii <eliz@gnu.org>
9309
9310 * NEWS: Add X86 general purpose registers section.
9311
e8f781e2
TT
93122010-03-03 Tom Tromey <tromey@redhat.com>
9313
9314 PR mi/11098:
9315 * varobj.c (install_new_value): Handle case where new print_value
9316 is NULL.
9317
a0e0ef55
TT
93182010-03-03 Dainis Jonitis <jonitis@gmail.com>
9319
9320 PR gdb/11345:
9321 * printcmd.c (printf_command): Print end of format string using
9322 printf_filtered.
9323
a58d7472
TT
93242010-03-02 Tom Tromey <tromey@redhat.com>
9325
9326 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9327 * defs.h (read_command_lines_1): Add missing 'void'.
9328 * cli/cli-script.c (recurse_read_control_structure): Add missing
9329 'void'.
9330 (read_next_line): Likewise.
9331 (read_command_lines_1): Likewise.
9332
ce50d78b
UW
93332010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9334
9335 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9336 store backchain as part of prologue.
9337
7e9af34a
DJ
93382010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9339
9340 * progspace.c (update_address_spaces): Update inferior address spaces
9341 also.
9342
01637564
DE
93432010-03-02 Doug Evans <dje@google.com>
9344
9345 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9346 lowpc,highpc args to addrmap_set_empty.
9347
1ba53b71
L
93482010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9349
9350 * amd64-tdep.c (amd64_byte_names): New.
9351 (amd64_word_names): Likewise.
9352 (amd64_dword_names): Likewise.
9353 (amd64_pseudo_register_name): Likewise.
9354 (amd64_pseudo_register_read): Likewise.
9355 (amd64_pseudo_register_write): Likewise.
9356 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9357 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9358 set_gdbarch_pseudo_register_write and
9359 set_tdesc_pseudo_register_name. Don't call
9360 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9361
9362 * i386-tdep.c (i386_num_mmx_regs): Removed.
9363 (i386_num_pseudo_regs): Likewise.
9364 (i386_byte_names): New.
9365 (i386_word_names): Likewise.
9366 (i386_byte_regnum_p): Likewise.
9367 (i386_word_regnum_p): Likewise.
9368 (i386_mmx_regnum_p): Updated.
9369 (i386_pseudo_register_name): Make it global. Handle byte and
9370 word pseudo-registers.
9371 (i386_pseudo_register_read): Likewise.
9372 (i386_pseudo_register_write): Likewise.
9373 (i386_pseudo_register_type): Handle byte, word and dword
9374 pseudo-registers
9375 (i386_register_reggroup_p): Don't include pseudo
9376 registers, except for MXX, in any register groups. Don't
9377 include pseudo byte, word, dword registers in general_reggroup.
9378 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9379 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9380 pseudo-registers after word pseudo-registers. Call
9381 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9382
9383 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9384 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9385 eax_regnum.
9386 (i386_byte_regnum_p): New.
9387 (i386_word_regnum_p): Likewise.
9388 (i386_dword_regnum_p): Likewise.
9389 (i386_pseudo_register_name): Likewise.
9390 (i386_pseudo_register_read): Likewise.
9391 (i386_pseudo_register_write): Likewise.
9392
a6f5ef51
L
93932010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9394
9395 * target-descriptions.c (tdesc_type): Remove
9396 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9397 (tdesc_predefined_types): Likewise.
9398 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9399 if flag name is empty.
9400 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9401
9402 * features/i386/32bit-core.xml: Define i386_eflags.
9403 * features/i386/64bit-core.xml: Likewise.
9404
9405 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9406 * features/i386/64bit-sse.xml: Likewise.
9407
9408 * features/i386/amd64-linux.c: Regenerated.
9409 * features/i386/amd64.c: Likewise.
9410 * features/i386/i386-linux.c: Likewise.
9411 * features/i386/i386.c: Likewise.
9412
f5dff777
DJ
94132010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9414
9415 * gdbtypes.c (append_composite_type_field_raw): New.
9416 (append_composite_type_field_aligned): Use the new function.
9417 * gdbtypes.h (append_composite_type_field_raw): Declare.
9418 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9419 (struct tdesc_type_flag): New type.
9420 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9421 kind. Add size to u.u. Add u.f for flags.
9422 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9423 (tdesc_free_type): Likewise.
9424 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9425 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9426 (tdesc_add_bitfield, tdesc_add_flag): New.
9427 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9428 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9429 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9430 current_type. Add current_type_size and current_type_is_flags.
9431 (tdesc_start_union): Clear the new fields.
9432 (tdesc_start_struct, tdesc_start_flags): New.
9433 (tdesc_start_field): Handle struct fields, including bitfields.
9434 (field_attributes): Make type optional. Add start and end.
9435 (union_children): Rename to struct_union_children.
9436 (union_attributes): Rename to struct_union_attributes. Add optional
9437 size.
9438 (flags_attributes): New.
9439 (feature_children): Add struct and flags.
9440 * features/gdb-target.dtd: Add flags and struct to features.
9441 Make field type optional. Add field start and end.
9442
90884b2b
L
94432010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9444
9445 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9446 (amd64_linux_read_description): Likewise.
9447 (_initialize_amd64_linux_nat): Set to_read_description to
9448 amd64_linux_read_description.
9449
9450 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9451 (amd64_linux_register_name): Removed.
9452 (amd64_linux_register_type): Likewise.
9453 (amd64_linux_core_read_description): New.
9454 (amd64_linux_init_abi): Set target description to
9455 tdesc_amd64_linux if needed. Support orig_rax in target
9456 description. Don't call set_gdbarch_register_name nor
9457 set_gdbarch_register_type. Call
9458 set_gdbarch_core_read_description.
9459 (_initialize_amd64_linux_tdep): Call
9460 initialize_tdesc_amd64_linux.
9461
9462 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9463
9464 * amd64-tdep.c: Include "features/i386/amd64.c".
9465 (amd64_register_names): Removed.
9466 (amd64_register_name): Likewise.
9467 (amd64_register_type): Likewise.
9468 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 9469 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
9470 set_gdbarch_register_name nor set_gdbarch_register_type.
9471 (_initialize_amd64_tdep): New.
9472
9473 * i386-linux-nat.c (i386_linux_read_description): New.
9474 (_initialize_i386_linux_nat): Set to_read_description to
9475 i386_linux_read_description.
9476
9477 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9478 (i386_linux_register_name): Removed.
9479 (i386_linux_core_read_description): New.
9480 (i386_linux_read_description): Likewise.
9481 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9482 Set target description to tdesc_i386_linux if needed. Support
9483 orig_eax. Set register_reggroup_p. Call
9484 set_gdbarch_core_read_description.
9485 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9486
9487 * i386-linux-tdep.h (tdesc_i386_linux): New.
9488
9489 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9490 with I387_NUM_REGS.
9491
9492 * i386-tdep.c: Include "features/i386/i386.c".
9493 (i386_register_names): Make it const.
9494 (i386_mmx_names): Likewise.
9495 (i386_num_register_names): Removed.
9496 (i386_register_name): Likewise.
9497 (i386_eflags_type): Likewise.
9498 (i386_mxcsr_type): Likewise.
9499 (i386_sse_type): Likewise.
9500 (i386_register_type): Likewise.
9501 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9502 (i386_pseudo_register_name): New.
9503 (i386_pseudo_register_type): Likewise.
9504 (i386_mmx_type): Make it static.
9505 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9506 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9507 call set_gdbarch_register_name nor set_gdbarch_register_type.
9508 Set register_reggroup_p. Set target description to tdesc_i386
9509 if needed. Call set_tdesc_pseudo_register_type,
9510 set_tdesc_pseudo_register_name and tdesc_use_registers.
9511 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9512 initialize_tdesc_x86_64.
9513
9514 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9515 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9516 register_names, tdesc and register_reggroup_p.
9517 (I386_NUM_FREGS): Removed.
9518 (i386_eflags_type): Likewise.
9519 (i386_mxcsr_type): Likewise.
9520 (i386_mmx_type): Likewise.
9521 (i386_sse_type): Likewise.
9522 (i386_register_name): Likewise.
9523 (i386_regnum): Add I386_MXCSR_REGNUM.
9524 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9525
9526 * i387-tdep.h (I387_NUM_REGS): New.
9527
9528 * regformats/i386/i386-linux.dat: Generated.
9529 * regformats/i386/i386.dat: Likewise.
9530 * regformats/i386/amd64-linux.dat: Likewise.
9531 * regformats/i386/amd64.dat: Likewise.
9532
9533 * regformats/reg-i386-linux.dat: Removed.
9534 * regformats/reg-i386.dat: Likewise.
9535 * regformats/reg-x86-64-linux.dat: Likewise.
9536 * regformats/reg-x86-64.dat: Likewise.
9537
d0d0ab16
CV
95382010-03-01 Corinna Vinschen <vinschen@redhat.com>
9539
9540 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9541 cygwin_conv_path API rather than the deprecated
9542 cygwin_conv_to_full_posix_path.
9543 * windows-nat.c:
9544 (GetModuleFileNameExA): Undefine for Cygwin.
9545 (GetModuleFileNameExW): Define for Cygwin.
9546 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9547 Call GetModuleFileNameExW and convert path to POSIX using
9548 cygwin_conv_path.
9549 (windows_make_so): Always define p. Drop unused variable m.
9550 Don't use Win32 functions to check file existance, rather use
9551 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9552 Use canonicalize_file_name to get full path.
9553 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9554 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9555 use correct target buffer size in call to WideCharToMultiByte.
9556 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9557 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9558 (windows_create_inferior): Convert all paths and arguments to wchar_t
9559 and use CreateProcessW on Cygwin.
9560 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9561 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9562 (bad_GetModuleFileNameExW): Define for Cygwin.
9563 (_initialize_loadable): Load GetModuleFileNameExW into
9564 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9565
dc00d89f
PM
95662010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9567
9568 PR python/11036
9569 * python/py-frame.c (frapy_read_var): Add block argument and logic
9570 to cope with user provided blocks.
9571
0e095b7e
JK
95722010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9573
9574 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9575 New comment.
9576
2f9e05b4
CV
95772010-02-28 Corinna Vinschen <vinschen@redhat.com>
9578
9579 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9580 (COMMON_OBS): ... to here since it's used unconditionally.
9581 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9582 (SFILES): To here.
9583
eb195664
DD
95842010-02-26 David Daney <ddaney@caviumnetworks.com>
9585
9586 * mips-linux-tdep.c: Update struct sigframe comments.
9587 (SIGFRAME_CODE_OFFSET): Delete macro.
9588 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9589 this_frame's sp.
9590 (mips_linux_n32n64_sigframe_init): Same.
9591
97b0f3e2
KB
95922010-02-26 Kevin Buettner <kevinb@redhat.com>
9593
9594 * remote-mips.c (mips_load): Don't use pseudo-register when
9595 invalidating regcache.
9596
4069ebbe
DJ
95972010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9598
9599 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9600
05071a4d
PA
96012010-02-26 Pedro Alves <pedro@codesourcery.com>
9602
9603 * NEWS: Add "New targets" section, and mention ARM Symbian
9604 support.
9605
6063c216
UW
96062010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9607
9608 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9609 add ADDR_SIZE member.
9610 (allocate_piece_closure): Update.
9611 (copy_pieced_value_closure): Likewise.
9612 (dwarf2_evaluate_loc_desc): Likewise.
9613 (read_pieced_value): Use DWARF address size instead of
9614 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9615
5107b149 96162010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 9617 Tom Tromey <tromey@redhat.com>
5107b149
PM
9618
9619 * python/py-type.c (typy_lookup_typename): Add in block argument.
9620 If provided restrict lookup to specified blocks.
9621 (gdbpy_lookup_type): Likewise.
9622 (typy_lookup_type): Likewise.
9623
78664fa3 96242010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 9625
78664fa3
PA
9626 Symbian config
9627
9628 gdb/
9629 * arm-symbian-tdep.c: New.
9630 * configure.tgt (arm*-*-symbianelf*): New target.
9631 (*-*-symbianelf*): New OS.
9632 * osabi.c (gdb_osabi_names): Add Symbian.
9633 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9634 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9635 (ALLDEPFILES): Add arm-symbian-tdep.c.
9636
eb73e134
DJ
96372010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9638
9639 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9640
46ef47e5
PA
96412010-02-24 Pedro Alves <pedro@codesourcery.com>
9642
9643 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9644
f3e9a817 96452010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9646 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9647 Thiago Jung Bauermann <bauerman@br.ibm.com>
9648
9649 * python/python.c (_initialize_python): Call
9650 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9651 gdbpy_initialize_blocks.
9652 * python/python-internal.h: Declare struct symbol, block and
9653 symtab_and_line. Declare block_object_type and
9654 symbol_object_type
9655 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9656 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9657 (symbol_to_symbol_object, block_to_block_object)
9658 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9659 (gdbpy_initialize_blocks ): Declare.
9660 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9661 (frapy_select): Add methods.
9662 (frapy_read_var): Add symbol branch.
9663 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9664 py-block.
9665 (SUBDIR_PYTHON_SRCS): Likewise.
9666 (py-symbol.o): New rule.
9667 (py-symtab.o): Likewise.
9668 (py-block.o): Likewise.
9669 * python/py-symbol.c: New file.
9670 * python/py-symtab.c: Likewise.
9671 * python/py-block.c: Likewise.
9672
24291992
PA
96732010-02-24 Pedro Alves <pedro@codesourcery.com>
9674
9675 PR gdb/11321
9676
9677 * inferior.h (prepare_for_detach): Declare.
9678 (struct inferior) <detaching>: New field.
9679 * infrun.c (prepare_for_detach): New.
9680 (handle_inferior_event) <random signal>: Don't stop if detaching.
9681 * target.c (target_detach): Call prepare_for_detach.
9682
fc1cf338
PA
96832010-02-24 Pedro Alves <pedro@codesourcery.com>
9684
9685 Per-process displaced stepping queue.
9686
9687 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9688 (displaced_step_gdbarch, displaced_step_closure,
9689 (displaced_step_original, displaced_step_copy): Move globals to
9690 this...
9691 (struct displaced_step_inferior_state): ... new structure.
9692 (displaced_step_inferior_states): New global.
9693 (get_displaced_stepping_state, add_displaced_stepping_state)
9694 (remove_displaced_stepping_state, infrun_inferior_exit): New
9695 functions.
9696 (displaced_step_clear): Add displaced_step_inferior_state
9697 parameter, and adjust to handle it.
9698 (displaced_step_clear_cleanup): Parameter is now a
9699 displaced_step_inferior_state. Adjust.
9700 (displaced_step_prepare): Adjust.
9701 (displaced_step_fixup, displaced_step_fixup)
9702 (infrun_thread_ptid_changed, resume): Adjust.
9703 (init_wait_for_inferior): Don't call displaced_step_clear.
9704 (infrun_thread_stop_requested): Rewrite.
9705 (_initialize_infrun): Install infrun_inferior_exit as
9706 inferior_exit observer.
9707
0723dbf5
PA
97082010-02-24 Pedro Alves <pedro@codesourcery.com>
9709
9710 * inferior.h (ptid_match): Declare.
9711 * infrun.c (ptid_match): New.
9712 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9713 (handle_notification): Add debug output.
9714 * linux-nat.c (ptid_match): Delete.
9715
09de9781
DM
97162010-02-24 David S. Miller <davem@davemloft.net>
9717
9718 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9719 * syscalls/sparc-linux.xml: New.
9720 * syscalls/sparc64-linux.xml: New.
9721 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9722 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9723 (sparc32_linux_get_syscall_number): New function.
9724 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9725 syscall number fetcher.
9726 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9727 (sparc64_linux_get_syscall_number): New function.
9728 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9729 syscall number fetcher.
9730
a79b8f6e
VP
97312010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9732
9733 Multiexec MI
9734
9735 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9736 * inferior.c (add_inferior_silent): Notify inferior_added
9737 observer.
9738 (delete_inferior_1): Notify inferior_removed observer.
9739 (exit_inferior_1): Pass inferior, not pid, to observer.
9740 (inferior_appeared): Likewise.
9741 (add_inferior_with_spaces): New.
9742 (add_inferior_command): Use the above.
9743 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9744 Declare.
9745
9746 * inflow.c (inflow_inferior_exit): Likewise.
9747 * jit.c (jit_inferior_exit_hook): Likewise.
9748
9749 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9750 remove-inferior.
9751 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9752 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9753 (report_initial_inferior): New.
9754 (mi_inferior_removed): Register the above. Make sure
9755 inferior_added observer is called on the first inferior.
9756 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9757 inferior number, not pid.
9758 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9759 affected.
9760 * mi/mi-main.c (current_context): New.
9761 (proceed_thread_callback): Use typed closure.
9762 Proceed everything if pid is 0. Most implementation split into
9763 (proceed_thread): ... this.
9764 (run_one_inferior): New.
9765 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9766 Adjust for multiexec behaviour.
9767 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9768 (mi_cmd_execute): Handle the 'thread-group' option here.
9769 Do some extra checks.
9770 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9771 options.
9772 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9773
115d30f9
VP
97742010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9775
9776 Make -exec-run a proper MI commands.
9777
9778 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9779 * mi/mi-cmds.c (mi_cmds): Adjust.
9780 * mi/mi-main.c (mi_cmd_exec_run): New.
9781
06cd862c
PA
97822010-02-24 Pedro Alves <pedro@codesourcery.com>
9783 Stan Shebs <stan@codesourcery.com>
9784
9785 * tracepoint.h (set_traceframe_number)
9786 (cleanup_restore_current_traceframe): Declare.
9787 * tracepoint.c (set_traceframe_number): New.
9788 (struct current_traceframe_cleanup): New.
9789 (do_restore_current_traceframe_cleanup)
9790 (restore_current_traceframe_cleanup_dtor)
9791 (make_cleanup_restore_current_traceframe): New.
9792 * infrun.c: Include tracepoint.h.
9793 (fetch_inferior_event): Switch out and in of tfind mode.
9794
ab92d69b
PA
97952010-02-24 Pedro Alves <pedro@codesourcery.com>
9796
9797 * breakpoint.c (breakpoint_init_inferior): Also delete
9798 bp_shlib_event breakpoints.
9799 * solib-frv.c (enable_break): Remove call to
9800 remove_solib_event_breakpoints.
9801 * solib-svr4.c (enable_break): Ditto.
9802 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9803 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9804 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9805 * solib-spu.c (spu_enable_break): Ditto.
9806
e707a91d
PA
98072010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9808
9809 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9810
cfce2ea2
PA
98112010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9812
9813 * varobj.c (varobj_update): Avoid non-constants in initializers.
9814
05566b3b
TT
98152010-02-23 Tom Tromey <tromey@redhat.com>
9816
9817 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9818 handle big-endian values.
9819 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9820
85d721b8
PA
98212010-02-22 Pedro Alves <pedro@codesourcery.com>
9822
9823 PR9605
9824
9825 gdb/
9826 * breakpoint.c (insert_bp_location): If inserting the read
9827 watchpoint failed, fallback to an access watchpoint.
9828 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9829 if the value changed, if not watching the same memory for writes.
9830 (watchpoint_locations_match): Add comment.
9831 (update_global_location_list): Copy the location's watchpoint type.
9832 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9833 handle read watchpoints here.
9834 (i386_insert_watchpoint): Read watchpoints aren't supported.
9835 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9836 packets.
9837 * target.h (target_insert_watchpoint): Update description.
9838
48ea67a7
TT
98392010-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9842 * m2-typeprint.c (m2_print_type): Update.
9843 * gdbtypes.c (recursive_dump_type): Update.
9844 (copy_type_recursive): Update.
9845 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9846 (c_type_print_base): Update.
9847 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9848 Remove.
9849 (struct cplus_struct_type) <ntemplate_args>: Remove.
9850 <struct template_arg>: Remove.
9851 <is_dynamic>: Move earlier.
9852 (TYPE_TEMPLATE_ARGS): Remove.
9853 (TYPE_NTEMPLATE_ARGS): Remove.
9854 (TYPE_TEMPLATE_ARG): Remove.
9855
48e32051
TT
98562010-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 PR c++/8693, PR c++/9496:
9859 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9860 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9861 write_dollar_variable. Don't try to classify NAME tokens.
9862 (token_and_value): New type.
9863 (token_fifo, popping, name_obstack): New globals.
9864 (classify_name): New function.
9865 (classify_inner_name): Likewise.
9866 (yylex): Likewise.
9867 (VARIABLE): Now has type sval.
9868 (exp : VARIABLE): Call write_dollar_variable.
9869 (qualified_name): Use TYPENAME, not typebase. Add production for
9870 multiple "::" instances.
9871 (variable): Use name_not_typename.
9872 (qualified_type): Remove.
9873 (typebase): Update.
9874
672d9c23
JK
98752010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9876
9877 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9878 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9879 found by bfd_get_section_by_name.
9880 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9881
bfbf3774
JB
98822010-02-19 Joel Brobecker <brobecker@adacore.com>
9883
9884 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9885 7.0 section" into "Changes in 7.1".
9886
6756b09b 98872010-02-19 Joel Brobecker <brobecker@adacore.com>
9888
9889 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9890 * version.in: Bump version to 7.1.50.20100219-cvs.
9891
202b96c1
PA
98922010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9893
9894 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9895 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9896
de2e5182
TT
98972010-02-17 Tom Tromey <tromey@redhat.com>
9898
9899 * NEWS: Add Python API Improvements section.
9900
7280022e
DJ
99012010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9902
9903 * NEWS: Correct typo.
9904
6f451e5e
TT
99052010-02-17 Tom Tromey <tromey@redhat.com>
9906
9907 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9908
012836ea
JK
99092010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9910
9911 * symfile.c (build_section_addr_info_from_objfile): Include sections
9912 only if they are SEC_ALLOC or SEC_LOAD.
9913
d182d057
L
99142010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9915
9916 PR shlibs/11293
9917 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9918 of ULONGEST for address size.
9919
4eef138c
TT
99202010-02-17 Tom Tromey <tromey@redhat.com>
9921
9922 * NEWS: Add C++ improvements section.
9923
548a926a
UW
99242010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9925
9926 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9927 PyThreadState_Swap): Avoid "statement with no effect" warning.
9928
ad3a0e5b
JK
99292010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9930
9931 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9932 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9933
243e2c5d 99342010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9935 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9936
9937 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9938 gdb_assert. Fix info->size for SIG prologue.
9939
275f2e57
DJ
99402010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9941
9942 * infcmd.c (show_inferior_tty_command): Check for NULL.
9943 Correct output message.
9944
791dfb64
DJ
99452010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9946
9947 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9948 FUNCTION contains parentheses. Improve removal of a trailing
9949 single quote.
9950
14d1346b
DJ
99512010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9952
9953 * gcore.c (do_bfd_delete_cleanup): New function.
9954 (gcore_command): Use it. Discard the cleanup after success.
9955 (gcore_copy_callback): Delete dead code.
9956
e76ab67f
DJ
99572010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9958
9959 * symfile.c (addr_info_make_relative): Always use
9960 find_lowest_section.
9961
71dee663
SW
99622010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9963
9964 * NEWS: Added entry for namespace fixes.
9965
a9854bd5
TT
99662010-02-15 Tom Tromey <tromey@redhat.com>
9967
9968 * dwarf2read.c (guess_structure_name): Allocate name on the
9969 objfile obstack.
9970
fd9e29b5
TT
99712010-02-15 Tom Tromey <tromey@redhat.com>
9972
9973 * c-typeprint.c (c_type_print_base): Reverse order of test.
9974
4e1fc9c9
JK
99752010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9978 initialize it from ELF BFD. Extend the prelink condition by it.
9979
74164c56
JK
99802010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9981
9982 * defs.h (parse_pid_to_attach): New.
9983 * utils.c (parse_pid_to_attach): New.
9984 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9985 * gnu-nat.c (gnu_attach): Likewise.
9986 * nto-procfs.c (procfs_attach): Likewise.
9987 * procfs.c (procfs_attach): Likewise.
9988 * windows-nat.c (windows_attach): Likewise.
9989 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9990 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9991 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9992 check.
9993
bf6adea8
MM
99942010-02-14 Masaki Muranaka <monaka@monami-software.com>
9995
9996 * MAINTAINERS: Add myself for write after approval privileges.
9997
28f34a8f
JK
99982010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9999
10000 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10001 block.
10002
701ed6dc
JK
100032010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10004
10005 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10006 only if INFO_VERBOSE.
10007
e5829bee
MS
100082010-02-12 Tomas Holmberg <th@virtutech.com>
10009
10010 * mi/mi-main.c: Added the --reverse flag to the following MI
10011 commands: exec-continue, exec-finish, exec-next, exec-step,
10012 exec-next-instruction, exec-step-instruction. This is to
10013 support reverse execution over the MI interface to gdb.
10014
081dfbf7
PA
100152010-02-12 Pedro Alves <pedro@codesourcery.com>
10016
10017 * tracepoint.c (_initialize_tracepoint): Specify that the address
10018 range of `tfind outsize' is exclusive, and that the address range
10019 of `tfind range' is inclusive, in the commands' help strings.
10020
ecc13e53
JB
100212010-02-12 Joel Brobecker <brobecker@adacore.com>
10022
10023 Spurious "dll not found" error messages on x64-windows.
10024 * windows-nat.c: Add include of complaints.h.
10025 (handle_unload_dll): Change dll-not-found error into a complaint.
10026
15c3d785
PA
100272010-02-12 Pedro Alves <pedro@codesourcery.com>
10028
10029 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10030 bp_tracepoint and bp_fast_tracepoint, not
10031 bp_loc_software_breakpoint.
10032 (update_global_location_list): Tracepoints are never duplicates of
10033 anything.
10034
fd9b8c24
PA
100352010-02-12 Pedro Alves <pedro@codesourcery.com>
10036
10037 * breakpoint.c (break_command_really): Change return type to int.
10038 Return false if no breakpoint was created, true otherwise.
10039 (trace_command): Don't set the tracepoint count if no tracepoint
10040 was created.
10041 (ftrace_command): Ditto.
10042 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10043 created in the breakpoints table.
10044
5c0d192f
JK
100452010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10046 Ulrich Weigand <uweigand@de.ibm.com>
10047
10048 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10049
5d5b640e
PA
100502010-02-11 Pedro Alves <pedro@codesourcery.com>
10051
10052 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10053 the offset value isn't of integral type.
10054
e5a0a904
JK
100552010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10056
10057 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10058 New.
10059
be636754
PA
100602010-02-11 Pedro Alves <pedro@codesourcery.com>
10061
10062 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10063 non-subscriptable types.
10064 * valarith.c (binop_types_user_defined_p): New, abstracted out
10065 from ...
10066 (binop_user_defined_p): ... this.
10067 * value.h (binop_types_user_defined_p): Declare.
10068
10ef8d6a
PA
100692010-02-11 Pedro Alves <pedro@codesourcery.com>
10070
10071 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10072 Merge uploaded TSVs before merging uploaded tracepoints.
10073
b1028c8e
PA
100742010-02-11 Pedro Alves <pedro@codesourcery.com>
10075
10076 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10077
7a93fb82 100782010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 10079
7a93fb82
VP
10080 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10081 whitespace character after a dot in comment.
10082 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10083 Likewise.
10084 (list_args_or_locals): For the 'all' (that is
10085 -stack-list-variables) case, always output list of tuples.
10086 Output 'arg' field if variable is argument.
84d90c10 10087
92981e24
TT
100882010-02-10 Tom Tromey <tromey@redhat.com>
10089
10090 * parser-defs.h (parser_debug): Declare.
10091 * parse.c (_initialize_parse): Install "debug parser" set/show
10092 command.
10093 (parser_debug): New global.
10094 (show_parserdebug): New function.
10095 * c-exp.y (c_parse): Set yydebug.
10096
9fd3625f
L
100972010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10098
10099 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10100 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10101 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10102 i386_mxcsr.
10103 (tdesc_find_type): New.
10104 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10105 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10106
10107 * target-descriptions.h (tdesc_find_type): New.
10108
2fe842e5
MS
101092010-02-10 Michael Snyder <msnyder@vmware.com>
10110
10111 * gdb-gdb.py: Comment fix.
10112
f18b4cab
TG
101132010-02-09 Tristan Gingold <gingold@adacore.com>
10114
10115 * machoread.c (macho_symfile_relocate): New function.
10116 (macho_sym_fns): Use macho_symfile_relocate instead of
10117 default_symfile_relocate.
10118 (macho_oso_data): New type.
10119 (current_oso): New variable.
10120 (macho_add_oso_symfile): Do not compute section_addr_info, but
10121 instead set vma of sections.
10122 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10123 Set and clear current_oso.
10124
31dbc1c5
JB
101252010-02-09 Joel Brobecker <brobecker@adacore.com>
10126
10127 Wrong type description for tagged type parameter.
10128 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10129 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10130 reference to a tagged type.
10131
399f313b
TG
101322010-02-09 Tristan Gingold <gingold@adacore.com>
10133
10134 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10135 brothers of the parent.
10136
714f19d5
TT
101372010-02-08 Tom Tromey <tromey@redhat.com>
10138
10139 PR c++/8017:
10140 * value.h: Update.
10141 * valops.c (search_struct_field): Make 'name' const.
10142 (search_struct_method): Likewise.
10143 (find_method_list): Make 'method' const.
10144 (value_struct_elt): Make 'name' and 'err' const.
10145 (value_find_oload_method_list): Make 'method' const.
10146 (find_overload_match): Make 'name' const.
10147 * eval.c (evaluate_subexp_standard): New locals function,
10148 function_name.
10149 <OP_FUNCALL>: Handle OP_SCOPE specially.
10150
de0a0249
UW
101512010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10152
10153 * infrun.c (handle_inferior_event): Do not look up regcache
10154 for exited processes.
10155
8d95cc3b 101562010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
10157
10158 PR gdb/10728
10159 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 10160 warn if found, and assume length = 1.
83b10087 10161
99903ae3
CM
101622010-02-08 Chris Moller <cmoller@redhat.com>
10163
10164 PR gdb/9067
10165 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 10166 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 10167
e3e9f5a2
PA
101682010-02-08 Pedro Alves <pedro@codesourcery.com>
10169
10170 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10171 resumed LWPs as resumed.
10172 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10173 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10174 of throwing an internal error. If an LWP of a process we're not
10175 waiting for reports a signal, don't force collecting a SIGSTOP,
10176 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10177 go through all LWPs cancelling breakpoints in non-stop mode.
10178 (resume_stopped_resumed_lwps): New.
10179 (linux_nat_wait): Use it.
10180
46763423
L
101812010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10182
10183 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10184 i386/amd64 and i386/amd64-linux.
10185 (i386/i386-expedite): New.
10186 (i386/i386-linux-expedite): Likewise.
10187 (i386/amd64-expedite):Likewise.
10188 (i386/amd64-linux-expedite): Likewise.
10189 ($(outdir)/i386/i386-linux.dat): Likewise.
10190 ($(outdir)/i386/amd64.dat): Likewise.
10191 ($(outdir)/i386/amd64-linux.dat): Likewise.
10192
10193 * features/i386/32bit-core.xml: New.
10194 * features/i386/32bit-linux.xml: Likewise.
10195 * features/i386/32bit-sse.xml: Likewise.
10196 * features/i386/64bit-core.xml: Likewise.
10197 * features/i386/64bit-linux.xml: Likewise.
10198 * features/i386/64bit-sse.xml: Likewise.
10199 * features/i386/i386-linux.xml: Likewise.
10200 * features/i386/i386.xml: Likewise.
10201 * features/i386/amd64-linux.xml: Likewise.
10202 * features/i386/amd64.xml: Likewise.
10203 * features/i386/i386-linux.c: Likewise.
10204 * features/i386/i386.c: Likewise.
10205 * features/i386/amd64-linux.c: Likewise.
10206 * features/i386/amd64.c: Likewise.
10207
82856980
SW
102082010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10209
10210 PR c++/7935:
10211 * cp-support.h: Added char* alias element to using_direct data
10212 struct.
10213 (cp_add_using): Added char* alias argument.
10214 (cp_add_using_directive): Ditto.
10215 * cp-namespace.c: Updated with the above changes.
10216 (cp_lookup_symbol_imports): Check for aliases.
10217 * dwarf2read.c (read_import_statement): Figure out local alias
10218 for the import and pass it on to cp_add_using.
10219 (read_namespace): Pass alias argument to cp_add_using.
10220
d18b8b7a
HZ
102212010-02-05 Hui Zhu <teawater@gmail.com>
10222
10223 * defs.h (gdb_bfd_errmsg): New extern.
10224 * exec.c (exec_file_attach): Change bfd_errmsg to
10225 gdb_bfd_errmsg.
10226 * utils.c (AMBIGUOUS_MESS1): New macro.
10227 (AMBIGUOUS_MESS2): New macro.
10228 (gdb_bfd_errmsg): New function.
10229
48379de6
DE
102302010-02-04 Doug Evans <dje@google.com>
10231
10232 * solib-svr4.c (enable_break): Add comment.
10233
4ee73e90
AG
102342010-02-04 Anthony Green <green@moxielogic.com>
10235
10236 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10237 gracefully.
10238
1a334831
TT
102392010-02-04 Tom Tromey <tromey@redhat.com>
10240
10241 * valops.c (search_struct_field): Account for
10242 value_embedded_offset. Fix check for virtual base past the end of
10243 the object. Use value_copy when making a slice of the value.
10244
1180b2c8
L
102452010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10246
10247 PR tui/9622
10248 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10249 only if gdb_stdout is a tty.
10250
c3f08eb7
L
102512010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10252
10253 * target-descriptions.c: Include "osabi.h".
10254 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10255 OSABI.
10256
2d33f7b8
TG
102572010-02-04 Tristan Gingold <gingold@adacore.com>
10258
10259 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10260 (macho_symtab_read): Adjust calls to macho_add_oso.
10261 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10262 (macho_symfile_read): Adjust call to macho_oso_symfile.
10263 (macho_new_init): Move this function after declarations.
10264 (macho_symfile_init): Ditto.
10265 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10266 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10267
11334b82
VP
102682010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10269
10270 Include MI command in remotelog.
10271
10272 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10273
ff97be06
L
102742010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10275
10276 * remote.c (remote_state): Remove gdbarch.
10277 (init_remote_state): Don't set gdbarch.
10278 (remote_query_supported): Pass target_gdbarch instead of
10279 rs->gdbarch to gdbarch_qsupported.
10280
75cebea9
L
102812010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10282
10283 * gdbarch.sh: Add qsupported.
10284
10285 * gdbarch.c: Regenerated.
10286 * gdbarch.h: Likewise.
10287
10288 * remote.c (remote_state): Add gdbarch.
10289 (init_remote_state): Set gdbarch.
10290 (remote_query_supported): Support gdbarch_qsupported.
10291
c1dec97b
DJ
102922010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10293
10294 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10295 __FreeBSD_kernel_version.
10296
ac8035ab
TG
102972010-02-03 Tristan Gingold <gingold@adacore.com>
10298
10299 * symfile.h (struct sym_fns): Add sym_relocate field.
10300 (default_symfile_relocate): New prototype.
10301 (symfile_relocate_debug_section): First argument is now an objfile.
10302 * symfile.c (default_symfile_relocate): Rename from
10303 symfile_relocate_debug_section, first argument is now an objfile.
10304 (symfile_relocate_debug_section): New function.
10305 * coffread.c (coff_sym_fns): Set sym_relocate field.
10306 * somread.c (som_sym_fns): Ditto.
10307 * mipsread.c (ecoff_sym_fns): Ditto.
10308 * machoread.c (macho_sym_fns): Ditto.
10309 * elfread.c (elf_sym_fns): Ditto.
10310 * dwarf2read.c (dwarf2_read_section): Ditto.
10311 * xcoffread.c (xcoff_sym_fns): Ditto.
10312 * dbxread.c (aout_sym_fns): Ditto.
10313 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10314 (elfstab_build_psymtabs): Ditto.
10315
be52b756
L
103162010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10317
10318 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10319
9c3c02fd
TT
103202010-02-02 Tom Tromey <tromey@redhat.com>
10321
10322 * valops.c (value_cast_structs): Try downcasting using the RTTI
10323 type.
10324
f23f4c59
TT
103252010-02-02 Tom Tromey <tromey@redhat.com>
10326
10327 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10328 (gnuv2_baseclass_offset): Now static.
10329 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10330 * gnu-v2-abi.h: Remove.
10331
0cc2414c
TT
103322010-02-02 Tom Tromey <tromey@redhat.com>
10333
10334 * m2-typeprint.c (m2_record_fields): Don't use
10335 TYPE_DECLARED_TYPE.
10336 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10337 (struct main_type) <flag_declared_class>: New field.
10338 (struct cplus_struct_type) <declared_type>: Remove.
10339 <ntemplate_args>: Move earlier.
10340 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10341 (DECLARED_TYPE_TEMPLATE): Remove.
10342 (TYPE_DECLARED_TYPE): Remove.
10343 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10344 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10345 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10346 TYPE_DECLARED_TYPE.
10347
edf3d5f3
TT
103482010-02-02 Tom Tromey <tromey@redhat.com>
10349
10350 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10351 * valops.c (search_struct_field): Compute nbases after calling
10352 CHECK_TYPEDEF.
10353 (check_field): Call CHECK_TYPEDEF.
10354 * cp-valprint.c (cp_print_value): Pass correct address to
10355 baseclass_offset. Fix check for virtual base past the end of the
10356 object. Don't offset address passed to cp_print_value_fields or
10357 apply_val_pretty_printer.
10358 (cp_print_value_fields): Fix call to val_print.
10359 (cp_print_value_fields_rtti): New function.
10360 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10361 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10362 val_print.
10363 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10364 offset to address.
10365 * language.h (struct language_defn) <la_val_print>: Document.
10366 * c-lang.h (cp_print_value_fields_rtti): Declare.
10367
e4b7f41c
JK
103682010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10369
10370 PR libc/11214:
10371 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10372 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10373 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10374
7618e12b
DJ
103752010-02-01 Michael Matz <matz@suse.de>
10376 Daniel Jacobowitz <dan@codesourcery.com>
10377
e4b7f41c 10378 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
10379 functions use a frame pointer.
10380
b381ea14
JK
103812010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10382
10383 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10384 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10385 * config/djgpp/fnchange.lst: Add translations for
10386 symbol-without-target_section.exp and symbol-without-target_section.c.
10387
0e05dfcb
DJ
103882010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10389
10390 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10391 (remote_breakpoint_for_pc): Correct invalid_p check.
10392 * gdbarch.c: Regenerated.
10393
f9d67f43
DJ
103942010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10395
10396 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10397 arm_pc_is_thumb.
10398 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10399 (extend_buffer_earlier): New function.
10400 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10401 (arm_adjust_breakpoint_address): New function.
10402 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10403
177321bd
DJ
104042010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10405
10406 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10407 (arm_linux_thumb2_le_breakpoint): New constants.
10408 (arm_linux_init_abi): Set thumb2_breakpoint and
10409 thumb2_breakpoint_size.
10410 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10411 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10412 Implement support for single stepping through IT blocks if
10413 a 32-bit Thumb breakpoint instruction is available.
10414 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10415 is available, use it when needed.
10416 (arm_remote_breakpoint_from_pc): New function.
10417 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10418 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10419 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10420
a1dcb23a
DJ
104212010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10422
10423 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10424 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10425 * gdbarch.c, gdbarch.h: Regenerated.
10426 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10427 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10428 gdbarch_remote_breakpoint_from_pc.
10429
2b009048
DJ
104302010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10431
10432 * infrun.c (prepare_to_proceed): Handle other signals which might
10433 match a breakpoint.
10434 (handle_inferior_event): Move the check for unusual breakpoint
10435 signals earlier.
10436
e4e2711a
JB
104372010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10438
10439 amd64 - function returning record with field straddling 2 registers.
10440 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10441 a record of length <= 16 in which a field straddles the two
10442 eightbytes.
10443
cba6fab5
JB
104442010-01-29 Joel Brobecker <brobecker@adacore.com>
10445
10446 Implement return values on amd64-windows.
10447 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10448 (amd64_windows_return_value): New function.
10449 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10450 amd64_windows_return_value.
10451
3af6ddfe
JB
104522010-01-29 Joel Brobecker <brobecker@adacore.com>
10453
10454 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 10455 parameter registers.
3af6ddfe
JB
10456 * i386-tdep.h (struct gdbarch_tdep): Add new field
10457 integer_param_regs_saved_in_caller_frame.
10458 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10459 tdep->integer_param_regs_saved_in_caller_frame to 1.
10460 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10461 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10462
80d19a06
JB
104632010-01-29 Joel Brobecker <brobecker@adacore.com>
10464
10465 amd64-windows: memory args passed by pointer during function calls.
10466 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10467 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10468 where tdep->memory_args_by_pointer is non-zero.
10469 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10470 tdep->memory_args_by_pointer to 1.
10471
ba581dc1
JB
104722010-01-29 Joel Brobecker <brobecker@adacore.com>
10473
4966b6c2 10474 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
10475 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10476 amd64-tdep.c.
10477 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10478 call_dummy_integer_regs, and classify.
10479 * amd64-tdep.h (amd64_classify): Add declaration.
10480 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10481 (amd64_reg_class): Delete, moved to i386-tdep.h.
10482 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10483 Replace call to amd64_classify by call to tdep->classify.
10484 (amd64_push_arguments): Get the list of registers to use for
10485 passing integer parameters from the gdbarch tdep structure,
10486 rather than using a hardcoded one. Replace calls to amd64_classify
10487 by calls to tdep->classify.
10488 (amd64_push_dummy_call): Get the register number used for
10489 the "hidden" argument from tdep->call_dummy_integer_regs.
10490 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10491 and tdep->call_dummy_integer_regs. Set tdep->classify.
10492 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10493 (amd64_windows_dummy_call_integer_regs): New static global.
10494 (amd64_windows_classify): New function.
10495 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10496 tdep->call_dummy_integer_regs and tdep->classify.
10497
d37346f0
DJ
104982010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10499
10500 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10501 for the new regcache. All callers updated.
10502 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10503 (get_thread_arch_regcache): Do not set aspace here.
10504 * regcache.h (regcache_xmalloc): Update declaration.
10505
10506 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10507 regcache_xmalloc updated.
10508
7434dadd
JB
105092010-01-28 Joel Brobecker <brobecker@adacore.com>
10510
10511 Another -Wunused-function error in procfs.c (sparc-solaris)
10512 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10513 Only define if SYS_syssgi is defined.
10514 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10515 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10516 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10517 is itself defined.
10518
16d905e2
CF
105192010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10520
10521 * windows-nat.c (windows_initialization_done): New variable.
10522 (get_windows_debug_event): Issue error when process dies before
10523 completely initializing.
10524 (do_initial_windows_stuff): Set flag to indicate when we are done with
10525 the initial steps of attaching to the child.
10526
cd55e50f
JK
105272010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10528
10529 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10530
99cc78aa
DE
105312010-01-27 Doug Evans <dje@google.com>
10532
4c7dcb84
DE
10533 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10534
99cc78aa
DE
10535 * breakpoint.c (bpstat_stop_status): Delete useless code.
10536
52334bf5
JK
105372010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10538
10539 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10540 objfile via SYMBOL_SYMTAB.
10541
708ead4e
TT
105422010-01-26 Tom Tromey <tromey@redhat.com>
10543
10544 PR exp/7643:
10545 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10546 coerce_array on result.
10547
b14e635e
SW
105482010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10549
10550 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10551 search_parent argument.
10552 (cp_add_using): Initialize 'searched' field.
10553 (reset_directive_searched): New function.
10554 * cp-support.h: Add 'searched' field to using_direct struct.
10555 (cp_lookup_symbol_imports): Ditto.
10556 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10557 Perform recursive search.
10558 Implement non parent search.
10559 * valops.c (value_maybe_namespace_elt): Updated.
10560
8540c487
SW
105612010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10562
10563 PR gdb/10929:
10564 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10565 scopes which contain using directives even if they contain no
10566 declarations.
10567 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10568 la_lookup_symbol_nonlocal.
10569 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10570 cp_lookup_symbol_namespace.
10571 (cp_lookup_symbol_namespace): Perform an import lookup at every
10572 block level.
10573 (cp_lookup_symbol_imports): New function.
10574 (cp_lookup_symbol_in_namespace): New function.
10575
421d5d99
TT
105762010-01-25 Tom Tromey <tromey@redhat.com>
10577
10578 PR gdb/11049:
10579 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10580 result.
10581
6bcc772d
RO
105822010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10583
10584 * configure.ac: Only use host_os part when disabling TUI on osf.
10585 Use test to check variables, prefix strings with x.
10586 * configure: Regenerate.
10587
10588 * solib-osf.c (osf_current_sos): Initialize tail.
10589
1c1238a5
TG
105902010-01-25 gingold <gingold@adacore.com>
10591
c8d5aac9
L
10592 * windows-nat.c (windows_continue): Use %x to print thread id.
10593 (get_windows_debug_event): Ditto.
1c1238a5 10594
0b92b5bb
TT
105952010-01-22 Tom Tromey <tromey@redhat.com>
10596
10597 PR symtab/11199:
10598 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10599 type and arguments. Use smash_to_methodptr_type.
10600 (read_structure_type): Call quirk_gcc_member_function_pointer
10601 later.
10602 * gdbtypes.h (smash_to_methodptr_type): Declare.
10603 * gdbtypes.c (smash_to_methodptr_type): New function.
10604 (lookup_methodptr_type): Use it.
10605
0d5392b8
TT
106062010-01-21 Tom Tromey <tromey@redhat.com>
10607
10608 PR symtab/11198:
10609 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10610 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10611 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10612 (glibc_skip_solib_resolver): Use
10613 lookup_minimal_symbol_and_objfile.
10614
e6d088ec
KT
106152010-01-21 Kai Tietz <kai.tietz@onevision.com>
10616
10617 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10618 WIN32 targets.
10619
b966cb8a
TT
106202010-01-20 Tom Tromey <tromey@redhat.com>
10621
10622 PR backtrace/10770:
10623 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10624 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10625 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10626 dwarf_stack_values, not CORE_ADDRs.
10627 (execute_stack_op): Change DW_OP_div and comparison operators to
10628 use signed operands.
10629
3f81c18a
VP
106302010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10631
10632 Per-inferior args and tty and environment.
10633
10634 * infcmd.c (inferior_args): Rename to ...
10635 (inferior_args_scratch): ... this.
10636 (inferior_io_terminal): Rename to ...
10637 (inferior_io_terminal_scratch): ... this.
10638 (inferior_argc, inferior_argv): Remove.
10639 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10640 inside current_inferior().
10641 (set_inferior_tty_command, show_inferior_tty_command): New.
10642 (get_inferior_args, set_inferior_args): Store inside
10643 current_inferior().
10644 (notice_args_set): Likewise and rename to...
10645 (set_args_command): ... this.
10646 (set_inferior_args_vector): Likewise.
10647 (notice_args_read): Rename to...
10648 (show_args_command): ...new.
10649 (tty_command): Remove.
10650 (run_command_1): Don't free old args, as they are freed by
10651 set_inferior_arg now.
10652 (run_no_args_command): Likewise.
10653 (inferior_environ): Remove.
10654 (run_command_1): Use environment of the current inferior.
10655 (environment_info, set_environment_command)
10656 (unset_environment_command, path_info, path_command): Likewise.
10657 (_initialize_infcmd): Adjust for function and variable renames.
10658 Do not init inferior_environ.
10659 * inferior.h (set_inferior_arg): Adjust prototype.
10660 (struct inferior): New fields args, argc, argv, terminal, environment.
10661 (inferior_environ): Remove declaration.
10662 * inferior.c (free_inferior): Free new fields.
10663 (add_inferior_silent): Initialize 'environment' field.
10664 * main.c (captured_main): Set arguments only after the initial
10665 inferior has been created. Set set_inferior_io_terminal,
10666 not tty_command.
10667 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10668 inferior.
10669 (_initialize_mi_cmd_env): Adjust for disappearance of global
10670 inferior_environ.
10671 * solib.c (solib_find): Use environment of the current inferior.
10672
d8b65138
JK
106732010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10674
10675 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10676 HAVE_PYTHON.
10677 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10678
692465f1
JB
106792010-01-20 Joel Brobecker <brobecker@adacore.com>
10680
10681 Get rid of ada-lang.c:function_name_from_pc.
10682 * ada-lang.c: Add "stack.h" #include.
10683 (function_name_from_pc): Delete.
10684 (is_known_support_routine): Replace call to function_name_from_pc
10685 by call to find_frame_funname.
10686 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10687
95519e0e
TT
106882010-01-19 Tom Tromey <tromey@redhat.com>
10689
10690 PR c++/11026:
10691 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10692 objfile obstack.
10693
95c11dc7
TT
106942010-01-19 Tom Tromey <tromey@redhat.com>
10695
10696 * top.c (stop_sig, float_handler, do_nothing): Remove.
10697
a0f49112
JK
106982010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10699
10700 * breakpoint.c (watchpoint_check): Check the call
10701 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10702 Extend the comment.
8d95cc3b 10703 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10704 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10705 watchpoint-cond-gone-stripped.c.
10706
ceeb3d5a
TT
107072010-01-19 Tom Tromey <tromey@redhat.com>
10708
10709 PR c++/8000:
10710 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10711 into parent scope, and enumerator into grandparent scope.
10712
2b71fc8e
JB
107132010-01-19 Joel Brobecker <brobecker@adacore.com>
10714
10715 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10716
03564ed9
JB
107172010-01-19 Joel Brobecker <brobecker@adacore.com>
10718
10719 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10720 i[34567]86-*-solaris2.1[0-9]*.
10721 * configure.tgt: Likewise.
10722
fb2e7cb4
JB
107232010-01-19 Joel Brobecker <brobecker@adacore.com>
10724
10725 * NEWS: Document the source command enhancement allowing it
10726 to load Python scripts. Document the "set/show script-extension"
10727 commands.
10728
1cb5e2a4
JB
107292010-01-19 Joel Brobecker <brobecker@adacore.com>
10730
10731 Add -Wunused-function to compile flags.
10732 * configure.ac: Add -Wunused-function to build_warnings.
10733 * configure: Regenerate.
10734
0ec6cd0c
JB
107352010-01-19 Joel Brobecker <brobecker@adacore.com>
10736
10737 "delete" ada-lex.c:input function, not used.
10738 * ada-lex.l: #define YY_NO_INPUT.
10739
b74845da
JB
107402010-01-19 Joel Brobecker <brobecker@adacore.com>
10741
10742 Delete free_named_symtabs and associated cleanup.
10743 * symfile.h (free_named_symtabs): Delete declaration.
10744 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10745 (cashier_psymtab): Comment function out.
10746 Delete declaration.
10747 (free_named_symtabs): Delete.
10748 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10749 * dbxread.c (end_psymtab): Likewise.
10750 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10751 * exec.c (exec_close_1): Ditto.
10752 * xcoffread.c (xcoff_end_psymtab): Likewise.
10753
65c06092
JB
107542010-01-19 Joel Brobecker <brobecker@adacore.com>
10755
10756 * stack.c (print_block_frame_labels): Comment function out.
10757
d5cd6034
JB
107582010-01-19 Joel Brobecker <brobecker@adacore.com>
10759
10760 Delete unused or undefined functions.
10761 * breakpoint.c (ep_parse_optional_filename): Delete.
10762 * dcache.c (dcache_write_line): Remove declaration.
10763 * infrun.c (build_infrun): Remove declaration.
10764 * tracepoint.c (tracepoint_save_command): Remove declaration.
10765 * linux-nat.c (init_lwp_list): Delete. No longer used.
10766 * event-loop.c (check_async_signal_handlers): Delete declaration.
10767 * infrun.c (init_execution_control_state): Delete.
10768 (proceed): Update comment to avoid mentioning
10769 init_execution_control_state.
10770 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10771 * ada-lang.c (ada_to_static_fixed_value): Delete.
10772 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10773 * cp-namespace.c (cp_copy_usings): Delete.
10774 * xml-syscall.c (xml_number_of_syscalls): Delete.
10775 * progspace.c (find_program_space_by_num): Delete.
10776 * inflow.c (handle_sigio): Delete declaration.
10777 * hppa-tdep.c (hppa_alignof): Delete.
10778 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10779 (mipsnbsd_core_osabi_sniffer): Delete.
10780
4e8f195d
TT
107812010-01-18 Tom Tromey <tromey@redhat.com>
10782
10783 PR c++/9680:
10784 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10785 (CONST_CAST): New tokens.
10786 (exp): Add new productions.
10787 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10788 reinterpret_cast.
10789 (is_cast_operator): New function.
10790 (yylex): Handle cast operators specially.
10791 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10792 UNOP_REINTERPRET_CAST>: New cases.
10793 * expprint.c (print_subexp_standard): Likewise.
10794 (op_name_standard): Likewise.
10795 (dump_subexp_body_standard): Likewise.
10796 * parse.c (operator_length_standard): Likewise.
10797 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10798 UNOP_REINTERPRET_CAST.
10799 * gdbtypes.c (class_types_same_p): New function.
10800 (is_ancestor): Use it.
10801 (is_public_ancestor): New function.
10802 (is_unique_ancestor_worker): Likewise.
10803 (is_unique_ancestor): Likewise.
10804 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10805 (is_unique_ancestor): Declare.
10806 * valops.c (value_reinterpret_cast): New function.
10807 (dynamic_cast_check_1): Likewise.
10808 (dynamic_cast_check_2): Likewise.
10809 (value_dynamic_cast): Likewise.
10810 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10811
d9c57d9f
JB
108122010-01-18 Joel Brobecker <brobecker@adacore.com>
10813
10814 Fix build failure when building without Python support.
10815 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10816 is not defined.
10817
f80d3ff2
JB
108182010-01-18 Joel Brobecker <brobecker@adacore.com>
10819
10820 Use XVS field type instead of doing a parallel lookup.
10821 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10822 if it is a reference type instead of doing a type lookup using
10823 the XVS field name.
10824
5bf03f13
JB
108252010-01-18 Joel Brobecker <brobecker@adacore.com>
10826
10827 Trust PAD types instead of using PAD___XVS.
10828 * ada-lang.c (trust_pad_over_xvs): New static variable.
10829 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10830 parallel XVS type, follow the XVS type instead of the PAD type.
10831 (unwrap_value): Make sure that there is no parallel XVE type
10832 before returning the value as is.
10833 (set_ada_list, show_ada_list): New static variables.
10834 (set_ada_command, show_ada_command): New functions.
10835 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10836 Add new "set/show ada trust-PAD-over-XVS" setting.
10837
973817a3
JB
108382010-01-18 Tom Tromey <tromey@redhat.com>
10839 Thiago Jung Bauermann <bauerman@br.ibm.com>
10840
10841 Allow "source" to load python scripts.
10842 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10843 * python/python.c (source_python_script): New function.
10844 * python/python.h (source_python_script): Add declaration.
10845 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10846 (script_ext_off, script_ext_soft, script_ext_strict)
10847 (script_ext_enums, script_ext_mode): New static constants.
10848 (show_script_ext_mode, find_and_open_script): New functions.
10849 (source_script): Enhance to handle Python scripts.
10850 (init_cli_cmds): Add set/show script-extension commands.
10851
98e03262
SS
108522010-01-16 Stan Shebs <stan@codesourcery.com>
10853
10854 * tracepoint.h (struct trace_status): Use unsigned long long
10855 instead of size_t.
10856 * tracepoint.c (trace_status_command): Fix printf directive.
10857 (trace_save_command): Check fwrite returns, fix printf directive.
10858 (trace_filename): New global.
10859 (tfile_open): Set it, check read returns.
10860 (tfile_close): Free trace_filename.
10861 (tfile_get_traceframe_address): Check read returns.
10862 (tfile_trace_find): Ditto.
10863 (tfile_fetch_registers): Ditto.
10864 (tfile_xfer_partial): Ditto.
10865 (tfile_get_trace_state_variable_value): Ditto.
10866
00bf0b85
SS
108672010-01-15 Stan Shebs <stan@codesourcery.com>
10868
10869 Add trace file support.
10870 * tracepoint.h (enum trace_stop_reason): New enum.
10871 (struct trace_status): New struct.
10872 (parse_trace_status): Declare.
10873 (struct uploaded_tp): Move here from remote.c,
10874 add fields for actions.
10875 (struct uploaded_tsv): New struct.
10876 * tracepoint.c (tfile_ops): New target vector.
10877 (trace_fd): New global.
10878 (tfile_open): New function.
10879 (tfile_close): New function.
10880 (tfile_files_info): New function.
10881 (tfile_get_trace_status): New function.
10882 (tfile_get_traceframe_address): New function.
10883 (tfile_trace_find): New function.
10884 (tfile_fetch_registers): New function.
10885 (tfile_xfer_partial): New function.
10886 (tfile_get_trace_state_variable_value): New function.
10887 (init_tfile_ops): New function.
10888 (_initialize_tracepoint): Call it, add tfile target.
10889 (trace_status): New global.
10890 (current_trace_status): New function.
10891 (trace_running_p): Remove, change all users to get from
10892 current_trace_status()->running.
10893 (get_trace_status): Remove.
10894 (trace_status_command): Call target_get_trace_status directly,
10895 report more detail including tracing stop reasons.
10896 (trace_find_command): Always allow tfind on a file.
10897 (trace_find_pc_command): Ditto.
10898 (trace_find_tracepoint_command): Ditto.
10899 (trace_find_line_command): Ditto.
10900 (trace_find_range_command): Ditto.
10901 (trace_find_outside_command): Ditto.
10902 (trace_frames_offset, cur_offset): Declare as off_t.
10903 (trace_regblock_size): Rename from reg_size, update users.
10904 (parse_trace_status): New function.
10905 (tfile_interp_line): New function.
10906 (disconnect_or_stop_tracing): Ensure current trace
10907 status before asking what to do.
10908 (stop_reason_names): New global.
10909 (trace_save_command): New command.
10910 (get_uploaded_tp): Move here from remote.c.
10911 (find_matching_tracepoint): Ditto.
10912 (merge_uploaded_tracepoints): New function.
10913 (parse_trace_status): Use stop_reason_names.
10914 (_initialize_tracepoint): Define tsave command.
10915 * target.h (target_ops): New fields to_save_trace_data,
10916 to_upload_tracepoints, to_upload_trace_state_variables,
10917 to_get_raw_trace_data, change to_get_trace_status
10918 to take a pointer to a status struct.
10919 (target_save_trace_data): New macro.
10920 (target_upload_tracepoints): New macro.
10921 (target_upload_trace_state_variables): New macro.
10922 (target_get_raw_trace_data): New macro.
10923 * target.c (update_current_target): Add new methods, change
10924 signature of to_get_trace_status.
10925 * remote.c (hex2bin): Make globally visible.
10926 (bin2hex): Ditto.
10927 (remote_download_trace_state_variable): Download name also.
10928 (remote_get_trace_status): Update parameter, use
10929 parse_trace_status.
10930 (remote_save_trace_data): New function.
10931 (remote_upload_tracepoints): New function.
10932 (remote_upload_trace_state_variables): New function.
10933 (remote_get_raw_trace_data): New function.
10934 (remote_start_remote): Use them.
10935 (_initialize_remote_ops): Add operations.
10936 * ax-gdb.c: Include breakpoint.h.
10937 * breakpoint.c (create_tracepoint_from_upload): Use
10938 break_command_really, return tracepoint, warn about unimplemented
10939 parts.
10940 * NEWS: Mention trace file addition.
10941
d904de5b
JK
109422010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10943
10944 Fix compilation warning on gcc-3.4.
10945 * exec.c (print_section_info): Move the `displacement' variable
10946 initialization to its declaration.
10947
64aa9731
JK
109482010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10949
10950 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10951 comparison.
10952
ca1f5def 109532010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10954
10955 "info tasks" broken by typedefs in ATCB type definitions.
10956 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10957 ada_check_typedef before retrieving the length of the type for
10958 regular fields.
10959
12ab9e09
JB
109602010-01-15 Joel Brobecker <brobecker@adacore.com>
10961
10962 Do not use name-based lookup for unconstrained packed arrays.
10963 * ada-lang.c (find_parallel_type_by_descriptive_type):
10964 Limit the fallback to name-based lookups to the case where
10965 the type is a constrained packed array.
10966
c389c3dc
JB
109672010-01-15 Joel Brobecker <brobecker@adacore.com>
10968
10969 Enhance gdb-gdb.py to handle main_type.type_specific.
10970 * gdb-gdb.py: Print the type-specific part of struct main_type.
10971
7991dee7
JK
109722010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10973
10974 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10975 * configure: Regenerate.
10976 * config.in: Regenerate.
10977 * utils.c: Include sys/resource.h.
10978 (dump_core, can_dump_core): New.
10979 (internal_vproblem): Update the comment. Check can_dump_core while
10980 setting dump_core_p. Replace two abort calls by dump_core calls.
10981
93c26624
JK
109822010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10983 Eli Zaretskii <eliz@gnu.org>
10984
10985 * NEWS: Document the PIE support.
10986
55235ad7
JK
109872010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10988
10989 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10990 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10991
41752192
JK
109922010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10993
10994 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10995 Replace exec_entry_point call by bfd_get_start_address.
10996
9f2982ff
JK
109972010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10998
10999 Support Valgrind attachments broken by the PIE support.
11000 * auxv.c: Include gdbcore.h.
11001 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11002 parameters ops, object and annex. Remove their assertions.
11003 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11004 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11005 (memory_xfer_auxv): ... here.
11006 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11007 memory_xfer_auxv.
11008 * procfs.c (procfs_xfer_partial): Likewise.
11009 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11010 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11011 (svr4_solib_create_inferior_hook): Conditionalize the
11012 svr4_relocate_main_executable call.
11013
61f0d762
JK
110142010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11015
11016 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11017 target_section. Find SECT in current_target_sections, gdb_assert it.
11018 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11019 New variable abfd.
11020 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11021 of separate debug info file.
11022
51bee8e9
JK
110232010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11024
11025 Support PIEs with no symfile_objfile.
11026 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11027 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11028
b8040f19
JK
110292010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11030
11031 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11032 code part to ...
11033 (svr4_static_exec_displacement): ... a new function.
11034 (svr4_exec_displacement): New function.
11035 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11036 new_offsets using alloca now. Remove variable old_chain and changed.
11037 Call objfile_relocate unconditionally now.
11038
eb90ce83
DE
110392010-01-14 Doug Evans <dje@google.com>
11040
11041 * gdbtypes.c (arch_flags_type): Fix comment.
11042 * gdbtypes.h (arch_composite_type): Fix comment.
11043
bdfed3bc
TG
110442009-01-14 Tristan Gingold <gingold@adacore.com>
11045
11046 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11047 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11048 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11049 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11050 macho_add_oso_symfile.
11051 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11052
1596ad23
JB
110532010-01-14 Joel Brobecker <brobecker@adacore.com>
11054
11055 Tru64: Dead threads are never deleted.
11056 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11057 (dec_thread_count_gdb_threads): Fix counter increment.
11058 (dec_thread_add_gdb_thread): Fix *listp increment.
11059 (resync_thread_list): Fix bug in deletion of dead threads that
11060 caused all threads to be deleted, instead of just the dead ones.
11061
be759fcf
PM
110622010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11063
11064 PR python/10705
11065
11066 * python/python-internal.h: Add lazy_string_object_type
11067 definition.
11068 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11069 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11070 * python/py-value.c (valpy_lazy_string): New function.
11071 (convert_value_from_python): Add lazy string conversion.
11072 * python/py-prettyprint.c (pretty_print_one_value): Check if
11073 return is also a lazy string.
11074 (print_string_repr): Add lazy string printing branch.
11075 (print_children): Likewise.
11076 * python/py-lazy-string.c: New file. Implement lazy strings.
11077 * python/python.c (_initialize_python): Call
11078 gdbpy_initialize_lazy_string.
11079 * varobj.c (value_get_print_value): Add lazy string printing
11080 branch. Account for encoding.
11081 * c-lang.c (c_printstr): Account for new encoding argument. If
11082 encoding is NULL, find encoding suited for type, otherwise use
11083 user encoding.
11084 * language.h (language_defn): Add encoding argument.
11085 (LA_PRINT_STRING): Likewise.
11086 * language.c (unk_lang_printstr): Update to reflect new encoding
11087 argument to language_defn.
11088 * ada-lang.h (ada_printstr): Likewise.
11089 * c-lang.h (c_printstr): Likewise.
11090 * p-lang.h (pascal_printstr);
11091 * f-lang.c (f_printstr): Likewise.
11092 * m2-lang.c (m2_printstr): Likewise.
11093 * objc-lang.c (objc_printstr): Likewise.
11094 * p-lang.c (pascal_printstr): Likewise.
11095 * scm-lang.c (scm_printstr): Likewise.
11096 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11097 encoding argument.
11098 * ada-valprint.c (ada_printstr): Likewise.
11099 * f-valprint.c (f_val_print): Likewise
11100 * m2-valprint.c (m2_val_print): Likewise.
11101 * p-valprint.c (pascal_val_print): Likewise.
11102 * expprint.c (print_subexp_standard): Likewise.
11103 * valprint.c (val_print_string): Likewise.
11104 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11105 (SUBDIR_PYTHON_SRCS): Likewise.
11106 (py-lazy-string.o): New rule.
11107
1fe72117 111082010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
11109
11110 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11111 uninitialized" warning from gcc on local `tree'.
11112
dc146f7c
VP
111132010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11114
11115 Implement core awareness.
11116
11117 * bcache.c (compare_ints): Remove
11118 (print_percentage): Use compare_positive_ints.
11119 * defs.h (compare_positive_ints): Declare.
11120 * linux-nat.h (struct lin_lwp): New field core.
11121 (linux_nat_core_of_thread_1): Declare.
11122 * linux-nat.c (add_lwp): Init the 'core' field.
11123 (linux_nat_wait_1): Record the core.
11124 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11125 (linux_nat_add_target): Register the above.
11126 * linux-thread-db.c (update_thread_core): New.
11127 (thread_db_find_new_threads): Update core information for
11128 every thread.
11129 * remote.c (struct private_thread_info): New.
11130 (free_private_thread_info, demand_private_info): New.
11131 (PACKET_qXfer_threads, use_osdata_threads): New.
11132 (struct thread_item, threads_parsing_context
11133 (start_thread, end_thread, thread_attributes)
11134 (thread_children, threads_children, threads_elements): New.
11135 (remote_threads_info): Try qXfer:threads before anything
11136 else.
11137 (remote_protocol_packets): Register qXfer:threads.
11138 (remote_open_1): Init use_osdata_threads.
11139 (struct stop_reply): New field 'core'.
11140 (remote_parse_stop_reply): Parse core number.
11141 (process_stop_reply): Record core number.
11142 (remote_xfer_partial): Handle qXfer:threads.
11143 (remote_core_of_thread): New.
11144 (init_remote_ops): Register remote_core_of_thread.
11145 (_initialize_remote): Register qXfer:read.
11146 * target.c (target_core_of_thread): New
11147 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11148 (struct target_ops): New field to_core_of_threads.
11149 (target_core_of_thread): Declare.
11150 * gdbthread.h (struct thread_info): New field private_dtor.
11151 * thread.c (print_thread_info): Report the core.
11152 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11153 * utils.c (compare_positive_ints): New.
11154 * features/threads.dtd: New.
11155 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11156 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11157 (do_nothing, free_vector_of_osdata_items)
11158 (splay_tree_int_comparator, free_splay_tree): New.
11159 (print_one_inferior_data): Implemented printing of selected
11160 inferiors. Collect and print cores.
11161 (output_cores): New.
11162 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11163 thread groups together with --available.
11164
d30c5336
JK
111652010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11166
11167 * configure: Regenerate (for _STRUCTURED_PROC).
11168
02893727
JB
111692010-01-12 Joel Brobecker <brobecker@adacore.com>
11170
11171 Delete dead function.
11172 * ada-lang.c (extract_string): Delete. No longer used.
11173
46ed2d6f
JB
111742010-01-12 Joel Brobecker <brobecker@adacore.com>
11175
11176 Fix -Wunused warning in dec-thread.c.
11177 * dec-thread.c (dec_thread_count_gdb_threads)
11178 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11179
606b8d1a
JB
111802010-01-12 Joel Brobecker <brobecker@adacore.com>
11181
11182 * ada-valprint.c (ada_print_floating): Remove trailing space.
11183
b4ba55a1
JB
111842010-01-12 Joel Brobecker <brobecker@adacore.com>
11185
11186 Add support for DW_AT_GNAT_descriptive_type.
11187 * gdbtypes.h (enum type_specific_kind): New enum.
11188 (struct main_type) [type_specific_field]: New component.
11189 [type_specific]: Add new component "gnat_stuff".
11190 (struct gnat_aux_type): New type.
11191 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11192 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11193 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11194 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11195 (TYPE_SPECIFIC_FIELD): New macros.
11196 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11197 type does not hold any cplus-specific data.
11198 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11199 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11200 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11201 cplus-specific data.
11202 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11203 Set new component TYPE_SPECIFIC_FIELD (type).
11204 (gnat_aux_default): New constant.
11205 (allocate_gnat_aux_type): New function.
11206 (init_type): Add initialization the type-specific stuff for
11207 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11208 (print_gnat_stuff): New function.
11209 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11210 specific data. Adjust code that prints the contents of the
11211 type-specific union using the TYPE_SPECIFIC_FIELD value.
11212 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11213 the type cplus stuff for Ada types.
11214 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11215 Error out if these routines are called with an Ada type.
11216 (read_structure_type, read_array_type, read_subrange_type):
11217 Add call to set_descriptive_type.
11218 (set_die_type): Initialize the gnat-specific data if necessary.
11219 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11220 New functions.
11221 * ada-lang.c (decode_constrained_packed_array_type): Use
11222 decode_constrained_packed_array_type instead of doing a standard
11223 lookup to locate a parallel type.
11224 (find_parallel_type_by_descriptive_type): New function.
11225 (ada_find_parallel_type_with_name): New function.
11226 (ada_find_parallel_type): Reimplement using
11227 ada_find_parallel_type_with_name.
11228 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11229 to check if type has a cplus stuff.
11230 * linespec.c (total_number_of_methods): Likewise.
11231 * mdebugread.c (new_type): Likewise.
11232
b0f02ee9
JK
112332010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11234
11235 * NEWS: Document the 0b binary number prefix parsing.
11236
b260e109
JK
112372010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11238
11239 * objfiles.c (objfile_relocate1): Change the return type to int.
11240 Describe the new return value. Return non-zero if data changed.
11241 (objfile_relocate): New variable changed. Set it. Call
11242 breakpoint_re_set depending on CHANGED.
11243
b5cfddf5
JK
112442010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11245
11246 Implement binary numbers parsing.
11247 * c-exp.y (parse_number): New case 'b' and 'B'.
11248
e0ae4240
JK
112492010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11250 Tristan Gingold <gingold@adacore.com>
11251
11252 * solib.c (info_sharedlibrary_command): Replace
11253 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11254 objfile_has_symbols.
11255
6e0e5977
JB
112562010-01-10 Joel Brobecker <brobecker@adacore.com>
11257
11258 * NEWS: Document the improvements made to the mips-irix port.
11259
7348c5e1
JB
112602010-01-09 Joel Brobecker <brobecker@adacore.com>
11261
11262 Fix the documentation of valprint.c:value_print.
11263 * valprint.c (value_print): Update the function description to
11264 mention that the syntax of the output follows the current_language,
11265 not necessarily C.
11266
567995e1
JK
112672010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11268
11269 Fix displacement of separate debug info files.
11270 * objfiles.c (objfile_relocate): Rename to ...
11271 (objfile_relocate1): ... here and make it static. Extend the comment.
11272 (objfile_relocate): New function.
11273 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11274 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11275 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11276 allocated using alloca.
11277 * symfile.c (copy_section_addr_info): Remove.
11278 (build_section_addr_info_from_objfile): Make it global. New variables
11279 addr_bit and mask, use them.
11280 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11281 (copy_section_addr_info): Remove.
11282
6d8eadbd
JB
112832010-01-09 Joel Brobecker <brobecker@adacore.com>
11284
11285 Signal unwinder for mips-irix N32.
11286 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11287 tramp-frame.h.
11288 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11289 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
11290 (SIGCONTEXT_LO_OFF): New macros.
11291 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
11292 (mips_irix_n32_tramp_frame): New static constant.
11293 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11294
27087a3d
JB
112952010-01-09 Joel Brobecker <brobecker@adacore.com>
11296
11297 Breakpoint in shared library does not work on mips-irix.
11298 * procfs.c: #include "observer.h".
11299 (procfs_inferior_created): New function, moving here the code
11300 which unsets the syssgi syscall-exit notifications.
11301 (procfs_create_inferior): Remove the code which unsets the syssgi
11302 syscall-exit notifications. It is too early to do this here.
11303 (_initialize_procfs): Attach the procfs_inferior_created observer.
11304
f08877ba
JB
113052010-01-09 Joel Brobecker <brobecker@adacore.com>
11306
11307 Wrong return convention for arrays (mips-irix).
11308 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11309 128 bits or smaller are returned the same way as structs
11310 and unions of the the same size.
11311
e4b97d48
JB
113122010-01-09 Joel Brobecker <brobecker@adacore.com>
11313
11314 Cannot set the PC on mips-irix.
11315 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11316 register number, no the cooked one.
11317
11377e68
JB
113182010-01-09 Joel Brobecker <brobecker@adacore.com>
11319
11320 Error while loading core file on mips-irix.
11321 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11322 if debugging from a core file.
11323
b2391021
JB
113242010-01-09 Joel Brobecker <brobecker@adacore.com>
11325
11326 GDB hangs when attaching to process on mips-irix.
11327 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11328 attaching to a process.
11329
f2ec0ecf
JB
113302010-01-09 Joel Brobecker <brobecker@adacore.com>
11331
11332 Use the correct breakpoint instruction on mips-irix.
11333 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11334 containing the correct breakpoint instruction to use on mips-irix.
11335 Use it when the osabi is GDB_OSABI_IRIX.
11336
3c95f01c
JB
113372010-01-09 Joel Brobecker <brobecker@adacore.com>
11338
11339 -Wunused warning in procfs.c (mips-irix only).
11340 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11341 throughout instead of using praddset and prdelset respectively.
11342
4b7703ad
JB
113432010-01-09 Joel Brobecker <brobecker@adacore.com>
11344
11345 GDB crash while stepping into function.
11346 * infrun.c (handle_inferior_event): Refetch the current frame
11347 after handling what.main_action, in case that pointer became
11348 dangling.
11349
12c89474
JB
113502010-01-09 Joel Brobecker <brobecker@adacore.com>
11351
11352 Fix build failure of solaris-hosted cross debuggers.
11353 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11354
1a3fd262 113552010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
11356
11357 Fix build failure on sparc-solaris.
11358 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11359
75242ef4
JK
113602010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11361
11362 Move some symfile code into subroutines.
11363 * symfile.h (relative_addr_info_to_section_offsets)
11364 (addr_info_make_relative): New prototypes.
11365 * symfile.c (default_symfile_offsets): Move a part to ...
11366 (relative_addr_info_to_section_offsets): ... this new function.
11367 (default_symfile_offsets): Call it.
11368 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11369 this part to ...
11370 (addr_info_make_relative): ... this new function.
11371
268a4a75
JK
113722010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11373
11374 Add from_tty to solib_create_inferior_hook.
11375 * infcmd.c (post_create_inferior): Move solib_add after
11376 solib_create_inferior_hook. Pass from_tty to
11377 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11378 0 from_tty and comment why.
11379 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11380 * linux-nat.c (linux_child_follow_fork): Likewise.
11381 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11382 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11383 from_tty.
11384 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11385 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11386 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11387 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11388 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11389 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11390 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11391 Pass it to svr4_so_ops.solib_create_inferior_hook.
11392 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11393 from_tty.
11394 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11395 solib_add.
11396 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11397 enable_break.
11398 * solib-target.c (solib_target_solib_create_inferior_hook): New
11399 parameter from_tty.
11400 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11401 it to ops->solib_create_inferior_hook.
11402 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11403 Move solib_add after solib_create_inferior_hook, call it now with
11404 from_tty as 0. New comment there.
11405 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11406 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11407 Likewise.
11408
cf00dfa7
VP
114092010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11410
11411 Fix multiexec race.
11412 * infrun.c (handle_inferior_event): Use get_thread_regcache
11413 with events ptid, not get_current_regcache.
11414
f91e5ac3
JB
114152009-01-08 Joel Brobecker <brobecker@adacore.com>
11416
11417 GDB crash with empty executable name (MinGW).
11418 * source.c (openp): Add assert that parameter string is not NULL.
11419 if parameter string is an empty string, then return with a failure
11420 immediately.
11421
92b9ce5b
JB
114222009-01-08 Joel Brobecker <brobecker@adacore.com>
11423
11424 Get rid of support for VAX Floats.
11425 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11426 (ada_vax_float_print_function): Delete.
11427 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11428 (ada_vax_float_print_function): Delete.
11429 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11430 (ada_print_type): Remove support for VAX floats.
11431 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11432
268a4a75 114332010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
11434
11435 * stabsread.c (read_args): Handle zero arguments.
11436
f0f20949
JB
114372009-01-08 Joel Brobecker <brobecker@adacore.com>
11438
11439 Cannot find in-tree libiconv.a after reconfigure.
11440 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11441 that we can use, then cache the path to this archive.
11442 * configure: Regenerate.
11443
6b6218c5
SS
114442010-01-07 Stan Shebs <stan@codesourcery.com>
11445
35b1e5cc
SS
11446 Make tracepoint operations go through target vector.
11447 * target.h (enum trace_find_type): New enum.
11448 (struct target_ops): New fields to_trace_init,
11449 to_download_tracepoint, to_download_trace_state_variable,
11450 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11451 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11452 to_set_disconnected_tracing.
11453 (target_trace_init): New macro.
11454 (target_download_tracepoint): New macro.
11455 (target_download_trace_state_variable): New macro.
11456 (target_trace_start): New macro.
11457 (target_trace_set_readonly_regions): New macro.
11458 (target_get_trace_status): New macro.
11459 (target_trace_stop): New macro.
11460 (target_trace_find): New macro.
11461 (target_get_trace_state_variable_value): New macro.
11462 (target_set_disconnected_tracing): New macro.
11463 * target.c (update_current_target): Inherit and set defaults for
11464 tracepoint operations.
11465 * tracepoint.c (default_collect): Make globally visible.
11466 (target_is_remote): Remove, along with all calls.
11467 (tvariables_info): Call target_get_trace_state_variable_value.
11468 (remote_set_transparent_ranges): Remove.
11469 (trace_start_command): Call target_trace_init,
11470 target_download_tracepoint, etc.
11471 (download_tracepoint): Remove.
11472 (trace_stop_command): Simplify.
11473 (stop_tracing): Call target_trace_stop.
11474 (get_trace_status): Call target_get_trace_status.
11475 (trace_status_command): Add case for targets that cannot trace.
11476 (finish_tfind_command): Change to take numerical arguments, call
11477 target_trace_find.
11478 (trace_find_command): Update call to finish_tfind_command.
11479 (trace_find_pc_command): Ditto.
11480 (trace_find_tracepoint_command): Ditto.
11481 (trace_find_line_command): Ditto.
11482 (trace_find_range_command): Ditto.
11483 (trace_find_outside_command): Ditto.
11484 (set_disconnected_tracing_value): Call
11485 target_set_disconnected_tracing.
11486 * remote.c: Add protocol encoding bits from tracepoint.c.
11487 (trace_error): Move from tracepoint.c.
11488 (remote_get_noisy_reply): Ditto.
11489 (free_actions_list_cleanup_wrapper): Ditto.
11490 (free_actions_list): Ditto.
11491 (remote_trace_init): New function.
11492 (remote_download_tracepoint): New function.
11493 (remote_download_trace_state_variable): New function.
11494 (remote_trace_set_readonly_regions): New function.
11495 (remote_trace_start): New function.
11496 (remote_get_trace_status): New function.
11497 (remote_trace_stop): New function.
11498 (remote_trace_find): New function.
11499 (remote_download_trace_state_variable): New function.
11500 (remote_set_disconnected_tracing): New function.
11501 (init_remote_ops): Add tracepoint operations.
11502
6b6218c5
SS
11503 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11504
089b4803
TG
115052010-01-07 Tristan Gingold <gingold@adacore.com>
11506
11507 * symfile.c (build_section_addr_info_from_objfile): New function.
11508 (symbol_file_add_separate): Don't use offsets from objfile but
11509 built an addr info.
11510
d5551862
SS
115112010-01-06 Stan Shebs <stan@codesourcery.com>
11512
11513 Support disconnected tracing.
11514 * infcmd.c (detach_command): Ask whether to stop tracing.
11515 * cli/cli-cmds.c (quit_command): Ditto.
11516 * breakpoint.h (struct breakpoint): New field number_on_target.
11517 * breakpoint.c (create_tracepoint_from_upload): New function.
11518 (get_tracepoint_by_number_on_target): New function.
11519 * remote.c (struct remote): New field disconnected_tracing.
11520 (remote_disconnected_tracing_feature): New function.
11521 (remote_protocol_features): Add DisconnectedTracing.
11522 (struct uploaded_tp): New struct.
11523 (uploaded_tps): New global.
11524 (get_uploaded_tp): New function.
11525 (find_matching_tracepoint): New function.
11526 (remote_get_tracing_state): New function.
11527 (remote_start_remote): Call it.
11528 * tracepoint.c (disconnected_tracing): New global.
11529 (trace_start_command): Initialize number_on_target.
11530 (stop_tracing): New function, split out from...
11531 (trace_stop_command): Call stop_tracing.
11532 (get_trace_status): New function, split out from...
11533 (trace_status_command): Call get_trace_status, add info on
11534 disconnection behavior.
11535 (disconnect_or_stop_tracing): New function.
11536 (finish_tfind_command): Translate from number on target.
11537 (trace_find_tracepoint_command): Translate to number on target.
11538 (send_disconnected_tracing_value): New function.
11539 (set_disconnected_tracing): New function.
11540 (_initialize_tracepoint): Add disconnected-tracing variable.
11541 * NEWS: Mention disconnected tracing.
11542
15d123c9
TG
115432010-01-06 Tristan Gingold <gingold@adacore.com>
11544
11545 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11546 parameter to main_objfile. Iterate on all separate debug objfiles.
11547 * symfile.h (symbol_file_add_separate)
11548 (find_separate_debug_file_by_debuglink): Remove parameter names.
11549 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11550 (reread_symbols): Use free_objfile_separate_debug.
11551 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11552 Adjust comment.
11553 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11554 (free_objfile_separate_debug): New prototypes.
11555 * objfiles.c (objfile_separate_debug_iterate): New function.
11556 (add_separate_debug_objfile, free_objfile_separate_debug): New
11557 functions.
11558 (free_objfile): Use free_objfile_separate_debug. Adjust for
11559 multiple separate debug objfile.
11560 (objfile_has_symbols): Adjust comment. Iterate on all separate
11561 debug objfiles.
11562 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11563 debug objfile.
11564 (lookup_minimal_symbol_text): Ditto.
11565 (lookup_minimal_symbol_by_pc_name): Ditto.
11566 (lookup_minimal_symbol_solib_trampoline): Ditto.
11567 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11568 debug objfiles.
11569
7a697b8d
SS
115702010-01-05 Stan Shebs <stan@codesourcery.com>
11571
11572 Add fast tracepoints.
11573 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11574 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11575 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11576 * breakpoint.c (tracepoint_type): New function.
11577 (ALL_TRACEPOINTS): Use it.
11578 (should_be_inserted): Ditto.
11579 (bpstat_check_location): Ditto.
11580 (print_one_breakpoint_location): Ditto.
11581 (user_settable_breakpoint): Ditto.
11582 (set_breakpoint_location_function): Ditto.
11583 (disable_breakpoints_in_shlibs): Ditto.
11584 (delete_trace_command): Ditto.
11585 (print_it_typical): Add bp_fast_tracepoint case.
11586 (bpstat_what): Ditto.
11587 (print_one_breakpoint_location): Ditto.
11588 (allocate_bp_location): Ditto.
11589 (mention): Ditto.
11590 (breakpoint_re_set_one): Ditto.
11591 (disable_command): Ditto.
11592 (enable_command): Ditto.
11593 (check_fast_tracepoint_sals): New function.
11594 (break_command_really): Call it.
11595 (ftrace_command): New function.
11596 (_initialize_breakpoint): Add ftrace command.
11597 * gdbarch.sh (fast_tracepoint_valid_at): New.
11598 * gdbarch.h, gdbarch.c: Regenerate.
11599 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11600 (i386_gdbarch_init): Use it.
11601 * remote.c (struct remote_state): New field fast_tracepoints.
11602 (PACKET_FastTracepoints): New packet config type.
11603 (remote_fast_tracepoint_feature): New function.
11604 (remote_protocol_features): Add FastTracepoints.
11605 (remote_supports_fast_tracepoints): New function.
11606 (_initialize_remote): Add FastTracepoints.
11607 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11608 * NEWS: Mention fast tracepoints.
11609
737a160e
JB
116102010-01-06 Joel Brobecker <brobecker@adacore.com>
11611
11612 * gdb-gdb.py: New file.
11613
ce6cca6d
MS
116142010-01-05 Michael Snyder <msnyder@vmware.com>
11615
11616 * infrun.c (handle_inferior_event): Fix typo in comment.
11617
0d15807d
JK
116182010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11619
11620 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11621
7803799a
UW
116222010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11623
c8d5aac9 11624 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
11625 and s390x-linux64.
11626 (s390-linux32-expedite): Define.
11627 (s390-linux64-expedite): Define.
11628 (s390x-linux64-expedite): Define.
11629 * features/s390-acr.xml: New file.
11630 * features/s390-fpr.xml: New file.
11631 * features/s390-core32.xml: New file.
11632 * features/s390-core64.xml: New file.
11633 * features/s390x-core64.xml: New file.
11634 * features/s390-linux32.xml: New file.
11635 * features/s390-linux64.xml: New file.
11636 * features/s390x-linux64.xml: New file.
11637 * features/s390-linux32.c: New generated file.
11638 * features/s390-linux64.c: New generated file.
11639 * features/s390x-linux64.c: New generated file.
11640
11641 * regformats/s390-linux32.dat: New generated file.
11642 * regformats/s390-linux64.dat: New generated file.
11643 * regformats/s390x-linux64.dat: New generated file.
11644 * regformats/reg-s390.dat: Remove.
11645 * regformats/reg-s390x.dat: Remove.
11646
11647 * s390-nat.c: Include "auxv.h" and <elf.h>.
11648 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11649 (s390_target_wordsize): New function.
11650 (s390_auxv_parse): Likewise.
11651 (s390_get_hwcap): Likewise.
11652 (s390_read_description): Likewise.
11653 (_initialize_s390_nat): Install s390_auxv_parse and
11654 s390_read_description.
11655
11656 * s390-tdep.c: Include "features/s390-linux32.c",
11657 "features/s390-linux64.c", and "features/s390x-linux64.c".
11658 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11659 (s390_register_call_saved): New function.
11660 (s390_register_name): Remove.
11661 (s390_register_type): Remove.
11662 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11663 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11664 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11665 (s390_pseudo_register_name): New function.
11666 (s390_pseudo_register_type): New function.
11667 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11668 Handle full GPR pesudos and varying pseudo register numbers.
11669 (s390_pseudo_register_write): Likewise
11670 (s390x_pseudo_register_read): Remove.
11671 (s390x_pseudo_register_write): Likewise.
11672 (s390_register_group): Remove.
11673 (s390_pseudo_register_group): New function.
11674 (s390_regmap_gregset): Add GPR upper halves.
11675 (s390x_regmap_gregset): Likewise.
11676 (s390_regmap_fpregset): Likewise.
11677 (s390_regmap_upper): New global variable.
11678 (s390_upper_regset): New global variable.
11679 (s390_upper_regset_sections): New global variable.
11680 (s390_regset_from_core_section): Handle GPR upper halves.
11681 (s390_core_read_description): New function.
11682 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11683 register information. Handle varying pseudo register numbers.
11684 (s390_backchain_frame_unwind_cache): Likewise.
11685 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11686 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11687 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11688 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11689 Handle varying pseudo register numbers.
11690 (s390_unwind_pc): Handle varying pseudo register numbers.
11691 (s390_dwarf2_prev_register): New function.
11692 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11693 register information. Handle varying pseudo register numbers.
11694 Install s390_dwarf2_prev_register to unwind full GPRs.
11695 (s390_gdbarch_init): Handle target descriptions. Assign varying
11696 pseudo register numbers. Install s390_adjust_frame_regnum.
11697 (_initialize_s390_tdep): Initialize target descriptions.
11698
11699 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11700 (S390_NUM_REGS): Redefine to include upper half registers.
11701 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11702 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11703 (tdesc_s390_linux32): Add declaration.
11704 (tdesc_s390_linux64): Likewise.
11705 (tdesc_s390x_linux64): Likewise.
11706
1b1818e4
UW
117072010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11708
11709 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11710 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11711 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11712 (ppc_linux_vmx_regset_sections): Likewise.
11713 (ppc_linux_fp_regset_sections): Likewise.
11714
11715 * corelow.c (get_core_register_section): Constify arguments.
11716 (get_core_registers): Use gdbarch_core_regset_sections instead
11717 of hard-coded platform-specific register section names.
11718
dcbf108f
UW
117192010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11720
11721 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11722 a register, assume the least-significant part is used.
dcbf108f
UW
11723 (write_pieced_value): Likewise.
11724
704e9165
UW
117252010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11726
11727 * printcmd.c: Include "arch-utils.h".
11728 (do_one_display): Re-parse expression if current architecture changed.
11729
c54eabfa
JK
117302010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11731 Joel Brobecker <brobecker@adacore.com>
11732
11733 * gdbtypes.c (check_typedef): New comment on type length.
11734 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11735 comment on type length.
11736 (value_primitive_field): Keep the original TYPE value, new comment.
11737
50cb2941
JK
117382010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11739
11740 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11741 p_start. Change != comparisons to > and < comparisons.
11742
be66db07
JK
117432010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11744
11745 * cli/cli-script.c (process_next_line): Check P2 overrun.
11746
abd775ce
JB
117472009-01-01 Joel Brobecker <brobecker@adacore.com>
11748
11749 Update the copyright hearder to add year 2010 for most GDB files.
11750
6479260d
JB
117512009-01-01 Joel Brobecker <brobecker@adacore.com>
11752
11753 Fix build failure in inf-ptrace.c.
11754 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11755
4a70f654
JB
117562010-01-01 Joel Brobecker <brobecker@adacore.com>
11757
11758 * top.c (print_gdb_version): Update copyright year.
11759
595939de 117602010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11761
11762 Fix break *FUN'address thread NUM.
11763 * ada-lex.l (task): Expand rule to also match the thread keyword.
11764
70575d34
JB
117652010-01-01 Joel Brobecker <brobecker@adacore.com>
11766
11767 Fix break *FUN'address task NUM.
11768 * ada-lex.l (task): New rule.
11769 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11770 been built before using it.
11771
e1e4d4a4 11772For older changes see ChangeLog-2009.
c906108c
SS
11773\f
11774Local Variables:
11775mode: change-log
11776left-margin: 8
11777fill-column: 74
11778version-control: never
57da7796 11779coding: utf-8
c906108c 11780End:
This page took 1.718409 seconds and 4 git commands to generate.