gdb: bfin: new port
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
91021223
MF
12010-12-29 Jie Zhang <jie.zhang@analog.com>
2 Mike Frysinger <vapier@gentoo.org>
3
4 * Makefile.in (ALLDEPFILES): Add bfin-linux-tdep.c and bfin-tdep.c.
5 (HFILES_NO_SRCDIR): Add bfin-tdep.h.
6 (ALL_TARGET_OBS): Add bfin-linux-tdep.o and bfin-tdep.o.
7 * NEWS: Mention new Blackfin port.
8 * bfin-tdep.c, bfin-tdep.h, bfin-linux-tdep.c,
9 syscalls/bfin-linux.xml: New files.
10 * configure.tgt (bfin-*-*): Handle bfin targets.
11
abc1f4cd
HZ
122010-12-29 Hui Zhu <teawater@gmail.com>
13
14 * ax-gdb.c (gen_expr): Change error message.
15
457344df
JB
162010-12-29 Joel Brobecker <brobecker@adacore.com>
17
18 * gdb.c: Revert the previous change, which was probably committed
19 by accident.
20
eed9788b
JB
212010-12-29 Joel Brobecker <brobecker@adacore.com>
22
23 * ada-lang.c: Fix typo in comment.
24
9e87a409
JB
252010-12-29 Joel Brobecker <brobecker@adacore.com>
26
27 * ada-valprint.c (ada_val_print_1): Print null array pointers as
28 `0x0' rather than `(null)'. Add assertion.
29
720d1a40
JB
302010-12-29 Joel Brobecker <brobecker@adacore.com>
31
32 * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
33 * ada-lang.c (ada_typedef_target_type): New function.
34 (desc_base_type): Add handling of fat pointer typedefs.
35 (ada_coerce_to_simple_array): Make non-static.
36 (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
37 Add assertion.
38 (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
39 (ada_check_typedef): Add handling of fat pointer typedefs.
40 (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
41 * ada-typeprint.c (ada_print_type): Add handling of fat pointer
42 typedefs.
43 * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
44 array accesses to simple arrays rather than simple array pointers.
45 (ada_value_print): In the case of array descriptors, do not print
46 the value type description unless it is an array access.
47
113a6f1e
JB
482010-12-29 Joel Brobecker <brobecker@adacore.com>
49
50 * target.h (enum target_object): Expand the documentation of
51 TARGET_OBJECT_OSDATA a bit.
52
ebcd3b23
MS
532010-12-28 Michael Snyder <msnyder@vmware.com>
54
55 * command.h: Comment clean-up.
56 * cli/cli-cmds.c: Ditto.
57 * cli/cli-cmds.h: Ditto.
58 * cli/cli-decode.c: Ditto.
59 * cli/cli-decode.h: Ditto.
60 * cli/cli-dump.c: Ditto.
61 * cli/cli-interp.c: Ditto.
62 * cli/cli-logging.c: Ditto.
63 * cli/cli-script.c: Ditto.
64 * cli/cli-setshow.c: Ditto.
65 * cli/cli-setshow.h: Ditto.
66
371d5dec
MS
672010-12-28 Michael Snyder <msnyder@vmware.com>
68
69 * event-loop.c: Comment clean-up.
70 * event-loop.h: Ditto.
71 * event-top.c: Ditto.
72 * gdb.c: Ditto.
73 * gdb.h: Ditto.
74 * main.c: Ditto.
75 * top.c: Ditto.
76 * top.h: Ditto.
77
6ab12e0f
PA
782010-12-28 Pedro Alves <pedro@codesourcery.com>
79
80 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
81 collect a user register.
82
175ff332
HZ
832010-12-28 Hui Zhu <teawater@gmail.com>
84
85 * gdbarch.sh (ax_pseudo_register_collect,
86 ax_pseudo_register_push_stack): new callbacks.
87 (agent_expr): Forward declare.
88 * gdbarch.h, gdbarch.c: Regenerate.
89 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
90 * ax-general.c (user-regs.h): New include.
91 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
92 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
93 * mips-tdep.c (ax.h): New include.
94 (mips_ax_pseudo_register_collect,
95 mips_ax_pseudo_register_push_stack): New functions.
96 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
97 mips_ax_pseudo_register_push_stack.
98
f32bf4a4
YQ
992010-12-28 Yao Qi <yao@codesourcery.com>
100
101 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
102
f73b1357
JB
1032010-12-28 Joel Brobecker <brobecker@adacore.com>
104
105 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
106 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
107 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
108 target_acknowledge_created_inferior.
109 * inf-ttrace.c (inf_ttrace_him): Likewise.
110 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
111 field.
112 (target_acknowledge_created_inferior): Delete.
113 * target.c (update_current_target): Remove setting of
114 to_acknowledge_created_inferior field. Do default value for that
115 field either.
116 (debug_to_acknowledge_created_inferior): Delete.
117 (setup_target_debug): Remove setting of
118 current_target.to_acknowledge_created_inferior.
119
128070bb
PA
1202010-12-27 Pedro Alves <pedro@codesourcery.com>
121
122 gdb/
123 * breakpoint.c (breakpoint_restore_shadows): When looking for the
124 location with the lowest address that overlaps the memory range we
125 want to restore shadows for, account for multiple locations at the
126 same address.
127
35df4500
TJB
1282010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
129
130 Code cleanup - renaming.
131 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
132 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
133 variables.
134
6229fbea 1352010-12-27 Kevin Buettner <kevinb@redhat.com>
35df4500 136 Hui Zhu <teawater@gmail.com>
6229fbea
HZ
137
138 * mips-tedp.c (mips_register_name): Add comments.
139
621c6d5b
YQ
1402010-12-23 Yao Qi <yao@codesourcery.com>
141
142 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
143 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
144 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
145 (arm_analyze_load_stack_chk_guard): New.
146 (arm_skip_stack_protector): New.
147 (arm_skip_prologue): Adjust post_prologue_pc by
148 arm_skip_stack_protector.
149
81ec3cce 150
0e8708c7
YQ
1512010-12-23 Yao Qi <yao@codesourcery.com>
152
153 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
154 set_gdbarch_deprecated_fp_regnum.
155
8fa067af
MK
1562010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
157
158 * inferior.c (remove_inferior_command): Don't remove an active inferior.
159 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
160
a7658b96
TT
1612010-12-21 Tom Tromey <tromey@redhat.com>
162
163 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
164
54483882
YQ
1652010-12-20 Yao Qi <yao@codesourcery.com>
166
167 * arm-tdep.c (arm_register_reggroup_p): New.
168 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
169 register_reggroup_p.
170
8ab03ccb
YQ
1712010-12-20 Yao Qi <yao@codesourcery.com>
172
173 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
174 * features/arm-with-iwmmxt.c: Regenerate.
175 * features/arm-with-neon.c: Regenerate.
176 * features/arm-with-vfpv2.c: Regenerate.
177 * features/arm-with-vfpv3.c: Regenerate.
178
57bf2d7e
MK
1792010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
180
181 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
182 (get_other_inferior): New.
183
b3422a0d
MK
1842010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
185
186 * python/py-progspace.c (py_free_pspace): Obtain arch another
187 way to avoid dereferencing a null pointer.
188
5f2302ab
MS
1892010-12-17 Michael Snyder <msnyder@vmware.com>
190
191 * utils.c (do_my_cleanups): Comment fix-up.
192
930bd0e0
KB
1932010-12-17 Kevin Buettner <kevinb@redhat.com>
194
195 * mips-tdep.c (make_mips16_addr): New function.
196 (mips_elf_make_msymbol_special): Don't set the low bit in the
197 symbol's address.
198 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
199 indicating mips16 address, if present.
200 (mips_write_pc): Set bit indicating mips16 address when in a mips16
201 function.
202 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
203 but for each function pointer argument to inferior function call.
204
900c7f9d
TT
2052010-12-17 Tom Tromey <tromey@redhat.com>
206
207 * psympriv.h (struct partial_symtab) <readin>: Move field
208 earlier.
209
ee51a8c7
KB
2102010-12-16 Kevin Buettner <kevinb@redhat.com>
211
212 * mips-tdep.c (mips_convert_register_float_case_p)
213 (mips_convert_register_gpreg_case_p): New functions.
214 (mips_convert_register_p): Invoke new functions above.
215 (mips_register_to_value): Add case for fetching value shorter
216 than 64 bits from a 64-bit register.
217 (mips_value_to_register): Add case for storing value shorter
218 than 64 bits into a 64-bit register.
219
fa595c27
TT
2202010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
221
222 * python/py-value.c (value_object_type) <tp_flags>: Add
223 Py_TPFLAGS_BASETYPE.
224
448a92bf
MF
2252010-12-16 Mike Frysinger <vapier@gentoo.org>
226
227 * NEWS: Mention new sim --map-info flag.
228
fc1a9d6e
DE
2292010-12-15 Doug Evans <dje@google.com>
230
231 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
232 "save gdb-index" command.
233
5b79abe7
TT
2342010-12-15 Tom Tromey <tromey@redhat.com>
235
236 * infrun.c (save_infcall_control_state): Handle the
237 exception-resume breakpoint.
238 (restore_infcall_control_state): Likewise.
239 (discard_infcall_control_state): Likewise.
240
8bdf35dc
KB
2412010-12-15 Kevin Buettner <kevinb@redhat.com>
242
243 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
244 cooked values that are being transferred to 64-bit raw registers.
245 (mips_pseudo_register_read): Revise to preserve symmetry with
246 mips_pseudo_register_write().
247
45ccdddc
TT
2482010-12-15 Greg Watson <g.watson@computer.org>
249
250 * f-exp.y (yylex): Check entire token against keywords.
251
a86caf66
DE
2522010-12-15 Doug Evans <dje@google.com>
253
254 Rename "maint set python auto-load" to "set auto-load-scripts".
255 * NEWS: Mention it.
256 * python/py-auto-load.c (auto_load_scripts): Renamed from
257 gdbpy_auto_load.
258 (load_auto_scripts_for_objfile): Update.
259 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
260 "set auto-load-scripts".
261
a8852dc5
KB
2622010-12-14 Kevin Buettner <kevinb@redhat.com>
263
264 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
265 than unsigned, values in registers.
266
b6c882c7
L
2672010-12-14 Ken Werner <ken.werner@de.ibm.com>
268
269 * valops.c (value_one): Use get_array_bounds to compute the number
270 of array elements instead of dividing the length of the array by the
271 length of the element types.
272 * valarith.c (value_complement, value_neg): Likewise.
273
043b6510
JB
2742010-12-14 Joel Brobecker <brobecker@adacore.com>
275
276 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
277 and __fp_scr respectively throughout.
278 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
279 Python using GCC on IRIX.
280 * configure: Regenerate.
281
c6490bf2
KB
2822010-12-13 Kevin Buettner <kevinb@redhat.com>
283
284 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
285 when attaching, on the names in bkpt_names: _start, __start, and
286 main.
287
0914bcdb
SS
2882010-12-12 Stan Shebs <stan@codesourcery.com>
289
290 * value.c (value_of_internalvar): Add case for trace state
291 variables.
292
7b9f3c50
DE
2932010-12-12 Doug Evans <dje@google.com>
294
295 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
296 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
297 section. Delete members lines full_names. Rename read_lines to
298 no_file_data.
299 (quick_file_names): New struct.
300 (hash_file_name_entry, eq_file_name_entry): New functions.
301 (delete_file_name_entry, create_quick_file_names_table): New functions.
302 (dwarf2_read_index): Initialize quick_file_names_table.
303 (dw2_get_file_names): Renamed from dw2_require_line_header.
304 Return pointer to quick_file_names entry. All callers updated.
305 (dw2_get_real_path): Renamed from dw2_require_full_path.
306 Replace per_cu arg with pointer to quick_file_names entry.
307 All callers updated.
308 (dw2_free_cached_file_names): New function.
309 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
310 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
311 the OBJF_READNOW case.
312 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
313
1583e7ea 3142010-12-12 Mark Kettenis <kettenis@gnu.org>
89fa5cc8
MK
315
316 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
317 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
318
7a58cce8
MK
3192010-12-12 Mark Kettenis <kettenis@gnu.org>
320
321 * sparc-tdep.c: Fix typo in comment.
322
ae2de4f8
DE
3232010-12-10 Doug Evans <dje@google.com>
324
325 * dwarf2read.c: Whitespace cleanup, plus comment additions.
326 No code changes.
327
66cb8159
TT
3282010-12-10 Tom Tromey <tromey@redhat.com>
329
330 * NEWS: Document exception-handling change.
331
30a7f059
MK
3322010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
333
334 * mi/mi-parse.c (mi_parse): Wrong error message.
335
ad727bb2
DE
3362010-12-09 Doug Evans <dje@google.com>
337
338 * symfile.h (quick_symbol_functions): Clarify usage of
339 map_symbol_filenames.
340
305aeedc
TT
3412010-12-09 Tom Tromey <tromey@redhat.com>
342
343 * mi/mi-parse.h (mi_parse): Update.
344 * mi/mi-parse.c (mi_parse_cleanup): New function.
345 (mi_parse): Add 'token' argument. Throw exception on error.
346 * mi/mi-main.c (mi_print_exception): New function.
347 (mi_execute_command): Use mi_print_exception. Catch exceptions
348 from mi_parse.
349
186c406b
TT
3502010-12-09 Tom Tromey <tromey@redhat.com>
351
352 PR c++/9593:
353 * thread.c (clear_thread_inferior_resources): Call
354 delete_longjmp_breakpoint.
355 * infrun.c (handle_inferior_event): Handle exception breakpoints.
356 (handle_inferior_event): Likewise.
357 (insert_exception_resume_breakpoint): New function.
358 (check_exception_resume): Likewise.
359 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
360 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
361 (step_1): Set thread's initiating frame.
362 (until_next_continuation): New function.
363 (until_next_command): Support exception breakpoints.
364 (finish_command_continuation): Delete longjmp breakpoint.
365 (finish_forward): Support exception breakpoints.
366 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
367 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
368 bp_exception_master>: New constants.
369 (struct bpstat_what) <is_longjmp>: New field.
370 (set_longjmp_breakpoint): Update.
371 * breakpoint.c (create_exception_master_breakpoint): New function.
372 (update_breakpoints_after_exec): Handle bp_exception_master. Call
373 create_exception_master_breakpoint.
374 (print_it_typical): Handle bp_exception_master, bp_exception.
375 (bpstat_stop_status): Handle bp_exception_master.
376 (bpstat_what): Handle bp_exception_master, bp_exception,
377 bp_exception_resume.
378 (bptype_string): Likewise.
379 (print_one_breakpoint_location): Likewise.
380 (allocate_bp_location): Likewise.
381 (set_longjmp_breakpoint): Handle exception breakpoints. Change
382 interface.
383 (delete_longjmp_breakpoint): Handle exception breakpoints.
384 (mention): Likewise.
385 (struct until_break_command_continuation_args) <thread_num>: New
386 field.
387 (until_break_command_continuation): Call
388 delete_longjmp_breakpoint.
389 (until_break_command): Support exception breakpoints.
390 (delete_command): Likewise.
391 (breakpoint_re_set_one): Likewise.
392 (breakpoint_re_set): Likewise.
393
1ef75ecc
DE
3942010-12-08 Doug Evans <dje@google.com>
395
4e4666e6
DE
396 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
397
73e2eb35
DE
398 * gdbtypes.c (check_typedef): Tweak comment.
399
0a5429f6
DE
400 PR symtab/12302
401 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
402 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
403 (struct addrmap_index_data): New struct.
404 (add_address_entry): Remove arg `pst', new args `start', `end'.
405 (add_address_entry_worker, write_address_map): New functions.
406 (write_psymtabs_to_index): Address table generation moved to
407 write_address_map. Build a table mapping psymtab to CU index
408 to pass to it.
409
7e17e088
DE
410 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
411 name to perror.
412
d4637a04
DE
413 * symfile.h (quick_symbol_functions): Clarify usage of
414 expand_symtabs_with_filename.
415 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
416 comp units, ignore type units.
417
1ef75ecc
DE
418 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
419
aae1c79a
DE
4202010-12-07 Doug Evans <dje@google.com>
421
74dd2ca6
DE
422 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
423 gdb_realpath.
424
aae1c79a
DE
425 PR python/12227
426 * NEWS: Mention -data-directory.
427 * main.c (captured_main): Recognize -data-directory.
428
8e0e408a
MK
4292010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
430
431 * mi/mi-parse.c (mi_parse): Missing else.
432
97fc68fe
MM
4332010-12-04 Masaki Muranaka <monaka@monami-software.com>
434
435 * configure.tgt: Accept microblaze*-*-linux* for linux target
436 and microblaze*-*-* for as target.
437
d03a3acf
KS
4382010-12-02 Keith Seitz <keiths@redhat.com>
439
440 * linespec.c (find_method): Move name canonicalization outside
441 the loop.
442 Be paranoid and use a cleanup.
443
148c11bf
DE
4442010-12-01 Doug Evans <dje@google.com>
445
446 * dwarf2read.c (save_gdb_index_command): Add comment.
447
4aac0db7
UW
4482010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
449
450 * valops.c (value_assign): Returned value is never lazy. If a
451 C++ class type is returned, fix incorrect enclosing type / embedded
452 offset. If internal variable is returned, allocate new internalvar
453 value using value_of_internalvar.
454
455 * NEWS: Document changes in behavior of "print x = 0" and similar
456 expressions.
457
4e04c971
DE
4582010-11-29 Doug Evans <dje@google.com>
459
460 * python/lib/gdb/printing.py (register_pretty_printer): Change
461 printer-name:subprinter-name to printer-name;subprinter-name.
462 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
463 Ditto.
464 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
465
8cf6f0b1
TT
4662010-11-29 Tom Tromey <tromey@redhat.com>
467
468 * opencl-lang.c (lval_func_check_synthetic_pointer): New
469 function.
470 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
471 New fields.
472 (value_bits_synthetic_pointer): Declare.
473 * value.c (value_bits_synthetic_pointer): New function.
474 * valprint.c (valprint_check_validity): Handle synthetic
475 pointers.
476 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
477 * valarith.c (value_ptradd): Use set_value_component_location.
478 * p-valprint.c (pascal_object_print_value_fields): Handle
479 synthetic pointers.
480 * jv-valprint.c (java_print_value_fields): Handle synthetic
481 pointers.
482 * dwarf2read.c (dwarf_stack_op_name): Add
483 DW_OP_GNU_implicit_pointer.
484 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
485 arguments. Handle location lists.
486 (fill_in_loclist_baton): New function.
487 (dwarf2_symbol_mark_computed): Use it.
488 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
489 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
490 arguments.
491 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
492 find_location_expression. No longer static. Update all callers.
493 (dwarf_expr_frame_pc): New function.
494 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
495 all callers.
496 (struct piece_closure) <per_cu>: New field.
497 (allocate_piece_closure): Add per_cu argument.
498 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
499 (check_pieced_value_bits): Remove validity argument, add check_for
500 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
501 (check_pieced_value_validity, check_pieced_value_invalid):
502 Update.
503 (check_pieced_synthetic_pointer): New function.
504 (get_frame_address_in_block_wrapper): New function.
505 (indirect_pieced_value): New function.
506 (pieced_value_funcs): Update.
507 (invalid_synthetic_pointer): New function.
508 (dwarf2_evaluate_loc_desc_full): Rename from
509 dwarf2_evaluate_loc_desc. Add byte_offset argument.
510 (dwarf2_evaluate_loc_desc): Rewrite.
511 (dwarf2_loc_desc_needs_frame): Set new field on context.
512 (get_ax_pc): New function.
513 (disassemble_dwarf_expression): Handle
514 DW_OP_GNU_implicit_pointer.
515 * dwarf2expr.h (enum dwarf_value_location)
516 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
517 (struct dwarf_expr_context) <get_frame_pc>: New field.
518 (struct dwarf_expr_piece) <v.ptr>: New field.
519 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
520 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
521 * dwarf2-frame.c (no_get_frame_pc): New function.
522 (execute_stack_op): Set new field on context.
523 * cp-valprint.c (cp_print_value_fields): Handle synthetic
524 pointers.
525
94b6973e
PM
5262010-11-29 Phil Muldoon <pmuldoon@redhat.com>
527
528 PR python/12199
529
530 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
531
8358c15c
JK
5322010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
533
534 Fix step_resume_breakpoint unsaved during an infcall.
535 * gdbthread.h (struct thread_control_state): Move here field
536 step_resume_breakpoint ...
537 (struct thread_info): ... from here.
538 * infrun.c (save_infcall_control_state): Reset
539 control.step_resume_breakpoint to NULL.
540 (restore_infcall_control_state, discard_infcall_control_state): Delete
541 control.step_resume_breakpoint.
542 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
543 the moved field.
544
16c381f0
JK
5452010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
546
547 Rename and move inferior_thread_state and inferior_status.
548 * gdbthread.h (struct thread_control_state): New struct, move fields
549 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
550 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
551 stop_step and stop_bpstat here from struct thread_info.
552 (struct thread_suspend_state): New struct, move field stop_signal here
553 from struct thread_info.
554 (struct thread_info): Move the fields above from this struct.
555 * inferior.h: Move the inferior_thread_state and inferior_status
556 declarations comment to their definitions at infrun.c.
557 (struct inferior_control_state): New struct, move field stop_soon from
558 struct inferior here.
559 (struct inferior_suspend_state): New empty struct.
560 (struct inferior): New fields control and suspend. Move out field
561 stop_soon.
562 * infrun.c (struct inferior_thread_state): Rename to ...
563 (infcall_suspend_state): ... here. Replace field stop_signal by
564 fields thread_suspend and inferior_suspend.
565 (save_inferior_thread_state): Rename to ...
566 (save_infcall_suspend_state): ... here. New variable inf. Update the
567 code for new fields.
568 (restore_inferior_thread_state): Rename to ...
569 (restore_infcall_suspend_state): ... here. New variable inf. Update
570 the code for new fields.
571 (do_restore_inferior_thread_state_cleanup): Rename to ...
572 (do_restore_infcall_suspend_state_cleanup): ... here.
573 (make_cleanup_restore_inferior_thread_state): Rename to ...
574 (make_cleanup_restore_infcall_suspend_state): ... here.
575 (discard_inferior_thread_state): Rename to ...
576 (discard_infcall_suspend_state): ... here.
577 (get_inferior_thread_state_regcache): Rename to ...
578 (get_infcall_suspend_state_regcache): ... here.
579 (struct inferior_status): Rename to ...
580 (struct infcall_control_state): ... here. Replace fields
581 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
582 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
583 stop_step, stop_bpstat and stop_soon by fields thread_control and
584 inferior_control.
585 (save_inferior_status): Rename to ...
586 (save_infcall_control_state): ... here. Update the code for new
587 fields.
588 (restore_inferior_status): Rename to ...
589 (restore_infcall_control_state): ... here. Update the code for new
590 fields.
591 (do_restore_inferior_status_cleanup): Rename to ...
592 (do_restore_infcall_control_state_cleanup): ... here.
593 (make_cleanup_restore_inferior_status): Rename to ...
594 (make_cleanup_restore_infcall_control_state): ... here.
595 (discard_inferior_status): Rename to ...
596 (discard_infcall_control_state): ... here.
597 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
598 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
599 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
600 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
601 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
602 references to the moved fields and renamed functions.
603
35515841
JK
6042010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
605
606 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
607 the comment.
608 (save_inferior_thread_state): Reset tp->stop_signal.
609
fef8420a
JK
6102010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
611
7ea14533
JK
612 * infcall.c (call_function_by_hand): Remove variable
613 caller_state_cleanup.
fef8420a 614
f5a8e22b
MK
6152010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
616
617 PR breakpoints/12217
618
619 * breakpoint.c (is_marker_spec): Check for NULL.
620
50389644
PA
6212010-11-25 Pedro Alves <pedro@codesourcery.com>
622
623 * breakpoint.h: No longer include python.h or python-internal.h.
624 (struct breakpoint_object): Forward declare.
625 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
626 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
627 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
628 PyObject pointer.
629 (gdbpy_breakpoint_created): Remove casts around py_bp_object
630 accesses.
631
50a99728
JB
6322010-11-24 Joel Brobecker <brobecker@adacore.com>
633
634 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
635 only if HAVE_ELF is defined.
636
d82142e2
JK
6372010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
638
a418ecb5
JK
639 Code cleanup.
640 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
641 (save_inferior_status) <stepping_over_breakpoint>
642 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
643 trap_expected.
644 (struct inferior_status) <step_resume_break_address>: Remove.
645
6462010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
647
648 Code cleanup.
d82142e2
JK
649 * infrun.c (struct inferior_status, save_inferior_status)
650 (restore_inferior_status): Group and reorder the fields, comment their
651 groups.
652
2edb89d3
JK
6532010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
654
655 Code cleanup.
656 * dictionary.c
657 (struct dict_vector) <iter_match_first, iter_match_next>
658 (iter_match_first_hashed, iter_match_next_hashed)
659 (iter_match_first_linear, iter_match_next_linear)
660 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
661 (iter_match_next_hashed, iter_match_first_linear)
662 (iter_match_next_linear): Use symbol_compare_ftype.
663 * dictionary.h: Include symfile.h.
664 (dict_iter_match_first, dict_iter_match_next): Use
665 symbol_compare_ftype.
666 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
667 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
668 (map_matching_symbols_psymtab): Likewise.
669 * symfile.h (symbol_compare_ftype): New typedef.
670 (struct quick_symbol_functions) <map_matching_symbols): Use
671 symbol_compare_ftype.
672
5ae98d25
TT
6732010-11-23 Tom Tromey <tromey@redhat.com>
674
39037522
TT
675 * configure: Rebuild.
676 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
677
6782010-11-19 Tom Tromey <tromey@redhat.com>
679
5ae98d25
TT
680 * Makefile.in (SUBDIRS): Add doc.
681 * configure: Rebuild.
682 * configure.ac: Don't configure in doc. Create doc/Makefile.
683
ea976c60
PM
6842010-11-23 Phil Muldoon <pmuldoon@redhat.com>
685
686 PR python/12212
687
688 * python/py-inferior.c (find_thread_object): Check if PIDGET
689 returns 0.
690
691010-11-22 Joel Brobecker <brobecker@adacore.com>
d94e4f4f
JB
692
693 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
694
96dbd2c1
JB
6952010-11-22 Joel Brobecker <brobecker@adacore.com>
696
697 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
698 Return the original type if the main type portions match rather
699 than when the type themselves match.
700
27f2a97b
JB
7012010-11-22 Joel Brobecker <brobecker@adacore.com>
702
703 * ada-lang.c (ada_template_to_fixed_record_type_1):
704 For dynamic fields, check the field size against the maximum
705 object size.
706
1324a0d9
JB
7072010-11-22 Joel Brobecker <brobecker@adacore.com>
708
709 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
710 function.
711 (mips_irix_n32_stack_tramp_frame): New static global.
712 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
713 list of unwinder.
714
09e7f15b
JB
7152010-11-22 Jerome Guitton <guitton@adacore.com>
716
717 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
718 ATCB symbols.
719
3a867c22
JB
7202010-11-22 Joel Brobecker <brobecker@adacore.com>
721
722 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
723 if type1 is a typedef.
724
df30368d
JB
7252010-11-22 Joel Brobecker <brobecker@adacore.com>
726
727 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
728 "_finalizer" to the list.
729
4889bbbc
JB
7302010-11-22 Joel Brobecker <brobecker@adacore.com>
731
732 * symfile.c: Remove all "#if 0"/"#endif" blocks.
733
0d14a781
JB
7342010-11-22 Joel Brobecker <brobecker@adacore.com>
735
736 * symfile.c: Add missing second space after period in various comments.
737
feb864b7
JB
7382010-11-22 Joel Brobecker <brobecker@adacore.com>
739
740 * ada-typeprint.c (print_array_type): Fix formatting in comment.
741 (print_selected_record_field_types): Fix formatting in function
742 documentation.
743
04f9d4d0
JB
7442010-11-22 Joel Brobecker <brobecker@adacore.com>
745
746 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
747 in name of "show ravenscar" prefix command name.
748
b64edec4
JB
7492010-11-22 Joel Brobecker <brobecker@adacore.com>
750
751 * ravenscar-thread.c (show_ravenscar_task_switching_command):
752 Add missing '\n' in output.
753
7f39f34a
JB
7542010-11-22 Joel Brobecker <brobecker@adacore.com>
755
756 * ravenscar-thread.c (running_thread_name): Change value.
757 (read_thread_id): Remove advance declaration.
758 (get_running_thread_msymbol): New function.
759 (has_ravenscar_runtime): Use get_running_thread_msymbol to
760 compute msym_running_thread.
761 (get_running_thread_id): Renames read_thread_id. Slight modifications
762 to not take any argument anymore, using get_running_thread_msymbol
763 to determine which symbol to use instead.
764 (ravenscar_running_thread): Use get_running_thread_id instead of
765 read_thread_id.
766
f3890d59
JB
7672010-11-22 Joel Brobecker <brobecker@adacore.com>
768
769 * ravenscar-sparc-thread.c (supply_register_at_address):
770 Fix passing of buf in call to regcache_raw_supply.
771
594e8718
JK
7722010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
773
774 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
775
7ba86c9e
TT
7762010-11-22 Tom Tromey <tromey@redhat.com>
777
778 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
779
1bfda48e
KS
7802010-11-19 Keith Seitz <keiths@redhat.com>
781
782 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
783 Remove extraneous '/' after $(DESTDIR).
784 (PYTHON_INSTALL_DIR): Likewise.
785
3f1eff0a
JK
7862010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
787
788 Fix stale memory references.
789 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
790 xfree, new comment.
791
954d8cae
TT
7922010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
793 Tom Tromey <tromey@redhat.com>
794
795 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
796 (.PHONY): Remove for .y outputs.
797
d53d4ac5
TT
7982010-11-19 Will Drewry <wad@google.com>
799 Tavis Ormandy <taviso@google.com>
800 Jan Kratochvil <jan.kratochvil@redhat.com>
801
802 * dwarf2read.c (decode_locdesc): Enforce location description stack
803 boundaries.
804
77bc0675
PM
8052010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
806
807 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
808 instruction is found.
809
ba19bb4d
TT
8102010-11-17 Tom Tromey <tromey@redhat.com>
811
812 * value.c (value_entirely_optimized_out): Check the
813 'check_any_valid' field.
814
19f220c3
JK
8152010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
816
817 * ada-lang.c (modify_general_field): Remove.
818 (make_array_descriptor): Replace all modify_general_field calls by
819 modify_field.
820 * value.c (modify_field): Update comment. New variable bytesize.
821 Normalize BITPOS. Initialize BYTESIZE, use it.
822
87df528e
JK
8232010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
824
825 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
826 elements after xfree.
827
97924a97
TT
8282010-11-16 Tom Tromey <tromey@redhat.com>
829
830 * gdb-add-index.sh: Really remove.
831
9816fde3
JK
8322010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
833
834 Code cleanup.
835 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
836 (init_one_comp_unit): ... this one.
837 (prepare_one_comp_unit): New prototype.
838 (dw2_require_line_header, process_psymtab_comp_unit): Use
839 init_one_comp_unit.
840 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
841 (load_partial_comp_unit): Remove variable attr. Use
842 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
843 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
844 prepare_one_comp_unit.
845 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
846 Use prepare_one_comp_unit.
847 (alloc_one_comp_unit): Rename to ...
848 (init_one_comp_unit): ... here and remove there calloc, new parameter
849 cu.
850 (prepare_one_comp_unit): New function.
851
73c964d6
PM
8522010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
853
854 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
855 possible used of uninitialized variable.
856
74af9197
NF
8572010-11-12 Nathan Froyd <froydnj@codesourcery.com>
858
859 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
860 (rs6000_gdbarch_init): Call it.
861
e52d5016
NF
8622010-11-12 Nathan Froyd <froydnj@codesourcery.com>
863
864 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
865 instructions if debugging an E500 binary.
866
621c8364
TT
8672010-11-12 Tom Tromey <tromey@redhat.com>
868
869 * varobj.c (value_get_print_value): Rearrange. Pass stream to
870 apply_varobj_pretty_printer.
871 * c-lang.c: Include exceptions.h.
872 (c_get_string): Throw MEMORY_ERROR when appropriate.
873 * python/py-prettyprint.c (enum string_repr_result): New.
874 (print_stack_unless_memory_error): New function.
875 (print_string_repr): Change return type. Use
876 print_stack_unless_memory_error.
877 (print_children): Use print_stack_unless_memory_error.
878 (apply_val_pretty_printer): Update. Don't print children if
879 string representation threw an exception.
880 (apply_varobj_pretty_printer): Add 'stream' argument. Use
881 print_stack_unless_memory_error.
882 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
883 globals.
884 (_initialize_python): Initialize them.
885 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
886 gdbpy_convert_exception.
887 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
888 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
889 (gdbpy_convert_exception): Declare.
890 (apply_varobj_pretty_printer): Update.
891 * python/py-utils.c (gdbpy_convert_exception): New function.
892
f1b9e6e7
MK
8932010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
894
895 * mi/mi-main.c (mi_cmd_target_detach): Accept new
896 thread-group id format.
897
74884f7b
JK
8982010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
901
84f4c1fe
PM
9022010-11-11 Phil Muldoon <pmuldoon@redhat.com>
903
904 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
905 NULL.
906 (BPPY_SET_REQUIRE_VALID): Ditto.
907 (bpnum_is_valid): Delete function.
908 (bppy_get_visibility): New function.
909 (bppy_new): Parse for, and validate internal keyword. Pass
910 internal keyword to breakpoint or watchpoint functions.
911 (build_bp_list): New function.
912 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
913 iterate_over_breakpoints.
914 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
915 look-aside vector.
916 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
917 to internal breakpoint chain.
918
919 * breakpoint.c (set_breakpoint_number): New function.
920 (breakpoint_1): Check if breakpoint number is more than zero.
921 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
922 (create_breakpoint_sal): Take a new parameter called internal.
923 Call set_breakpoint_number with internal parameter. Do not
924 mention internal breakpoints. All callers updated.
925 (create_breakpoint): Ditto.
926 (create_breakpoints_sal): Ditto.
927 (watch_command_1): Ditto.
928 (watch_command_wrapper): Take a new parameter called internal.
929 All callers updated.
930 (rwatch_command_wrapper): Ditto.
931 (awatch_command_wrapper): Ditto.
932 (save_breakpoints): Update breakpoint save condition check.
933 (iterate_over_breakpoints): New function.
934 * breakpoint.h: Add conditional python includes. Add py_bp_object
935 and comment to struct breakpoint. Update all callers.
936 * defs.h: Add PyObject definition for GDB builds without Python.
937
4dfea560
DE
9382010-11-10 Doug Evans <dje@google.com>
939
f61a2da7
DE
940 * python/lib/gdb/command/pretty_printers.py
941 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
942
4dfea560
DE
943 * value.c (set_value_enclosing_type): Renamed from
944 value_change_enclosing_type. All callers updated.
945 * value.h (set_value_enclosing_type): Update.
946 * valops.c (value_full_object): Always return a copy if we need to
947 make changes to the input value.
948
a1442452
PA
9492010-11-09 Pedro Alves <pedro@codesourcery.com>
950
951 * breakpoint.c (watch_command_1): Get a pointer of the lazy
952 version of the expression's value, even if reading the value from
953 memory fails. When creating a -location watchpoint, get the
954 value's address from the lazy value pointer.
955
803b5f95
JK
9562010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
957
958 * infrun.c (restore_inferior_thread_state): Use
959 discard_inferior_thread_state to free the data.
960 (discard_inferior_thread_state): xfree also siginfo_data.
961
99e7ae30
DE
9622010-11-05 Doug Evans <dje@google.com>
963
964 Make gdb.parameter("directories") work.
965 New command "set directories".
966 * NEWS: Document them.
967 * source.c (set_directories_command): New function.
968 (show_directories_1): Renamed from show_directories.
969 All callers updated.
970 (show_directories_command): New function.
971 (_initialize_source): Install "directories" as a set/show
972 variable instead of just a show command.
973
f4b8a18d
KW
9742010-11-05 Ken Werner <ken.werner@de.ibm.com>
975
976 * NEWS: Mention OpenCL C language support.
977 * Makefile.in (SFILES): Add opencl-lang.c.
978 (COMMON_OBS): Add opencl-lang.o.
979 * opencl-lang.c: New File
980 * defs.h (enum language): Add language_opencl.
981 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
982 IBM XL C OpenCL compiler.
983 * c-lang.h: Include "parser-defs.h".
984 (evaluate_subexp_c): Declare.
985 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
986 (c_op_print_tab): Add declaration.
987 * eval.c (binop_promote): Handle language_opencl.
988 * c-exp.y: Lookup the primitive types instead of referring to the
989 builtins.
990
075ff26d
JK
9912010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
992
993 Fix configure --enable-plugins --without-python.
994 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
995 * configure: Regenerate.
996
14ad3217
JK
9972010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
998
999 * solib.c (solib_read_symbols): Call exception_fprintf even without
1000 FROM_TTY. Print also so->so_name.
1001
a9d5ef47
SW
10022010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1003
1004 * gdbtypes.h (struct rank): Created subrank.
1005 * gdbtypes.c: Initialized subrank for all
1006 'BADNESS' constants.
1007 (distance_to_ancestor): New function.
1008 (is_ancestor): Use distance_to_ancestor.
1009 (is_public_ancestor): Ditto.
1010 (sum_ranks): Handle subrank.
1011 (compare_ranks): Ditto.
1012 (rank_one_type): Subrank base conversions.
1013
6403aeea
SW
10142010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1015
1016 * gdbtypes.h: Create struct rank.
1017 Convert all 'BADNESS' macros to const struct rank declarations.
1018 (sum_ranks): New function.
1019 (compare_ranks): New function.
1020 * valops.c (find_oload_champ): Updated.
1021 (classify_oload_match): Use compare_ranks.
1022 Improved comments.
1023 (compare_parameters): Use compare_ranks.
1024 * gdbtypes.c: Initialize 'BADNESS' constants.
1025 (sum_ranks): New function.
1026 (compare_ranks): New function.
1027 (compare_badness): Use compare_ranks.
1028 (rank_function): Use global constants instead of literals.
1029 (rank_one_type): Ditto.
1030 Return struct rank.
1031 Use sum_ranks.
1032
23fa7f66
DE
10332010-11-04 Doug Evans <dje@google.com>
1034
1035 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
1036 (find_pretty_printer): Fix comments.
1037
608bcef2
HZ
10382010-11-04 Hui Zhu <teawater@gmail.com>
1039
1040 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
1041
9addb3b9
JB
10422010-11-03 Joel Brobecker <brobecker@adacore.com>
1043
1044 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
1045 and `len' declaration and computation inside block where they
1046 are being used.
1047
75be741b
JB
10482010-11-03 Joel Brobecker <brobecker@adacore.com>
1049
1050 * valprint.c (val_print_array_elements): Put back handling of
1051 empty arrays.
1052
dbc98a8b
KW
10532010-11-03 Ken Werner <ken.werner@de.ibm.com>
1054
1055 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1056 DIE and set the length of the type.
1057 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1058 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1059 return 0 if the corresponding bounds of the type are undefined.
1060 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1061 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1062 (val_print_array_elements): Use get_array_bounds to compute the number
1063 of array elements instead of dividing the length of the array by the
1064 length of the element types.
1065 * valarith.c (vector_binop): Likewise.
1066 * valops.c (value_cast): Likewise.
1067 * c-valprint.c (c_val_print): Likewise.
1068 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1069
120bd360
KW
10702010-11-03 Ken Werner <ken.werner@de.ibm.com>
1071
1072 * valarith.c (value_pos, value_neg, value_complement): Handle
1073 vector types.
1074 * valops.c (value_one): Likewise.
1075
c37f7098
KW
10762010-11-03 Ken Werner <ken.werner@de.ibm.com>
1077
1078 * value.h (value_non_lval): Declare.
1079 * value.c (value_non_lval): New function.
1080 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1081 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1082 non-lvalue.
1083
7b51bc51
DE
10842010-11-02 Doug Evans <dje@google.com>
1085
1086 New python module gdb.printing, and new commands info pretty-printer,
1087 enable pretty-printer, disable pretty-printer.
1088 * NEWS: Mention them.
1089 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1090 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1091 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1092 * python/lib/gdb/printing.py: New file.
1093 * python/lib/gdb/command/__init__.py: New file.
1094 * python/lib/gdb/command/pretty_printers.py: New file.
1095
50c97f38
TT
10962010-11-02 Tom Tromey <tromey@redhat.com>
1097
1098 * NEWS: Mention Guile removal.
1099 * defs.h (enum language) <language_scm>: Remove.
1100 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1101 scm-valprint.c.
1102 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1103 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1104 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1105 Remove.
1106
9dea9163
DE
11072010-11-02 Doug Evans <dje@google.com>
1108
1109 * top.c: #include "python/python.h".
1110 (gdb_init): Add a comment regarding initialize_all_files.
1111 Call finish_python_initialization at the end.
1112 * python/python.h (finish_python_initialization): Declare.
1113 * python/python.c (finish_python_initialization): New function.
1114 (_initialize_python): Move python-implemented initialization there
1115 and call it.
1116 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1117
a289b8f6
JK
11182010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1119
1120 Revert:
1121 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 Pedro Alves <pedro@codesourcery.com>
1123 * gdbthread.h (currently_stepping): New declaration.
1124 * infrun.c (currently_stepping): Remove the forward declaration.
1125 (currently_stepping): Make it global.
1126 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1127 variables tp and step, initialized them. Pass STEP to to_resume.
1128 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1129 * remote.c (currently_stepping_callback): New.
1130 (remote_vcont_resume)
1131 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1132 New variable tp. Call currently_stepping_callback and step such
1133 thread.
1134
2209c807
HZ
11352010-11-01 Hui Zhu <teawater@gmail.com>
1136
1137 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1138
0a2a54b8
HZ
11392010-10-28 Hui Zhu <teawater@gmail.com>
1140
1141 * tracepoint.c (trace_save): Change utp->actions to
1142 utp->step_actions.
1143
284a3db3
JB
11442010-10-26 Joel Brobecker <brobecker@adacore.com>
1145
1146 * (_FILE_OFFSET_BITS): Fix typo in comment.
1147
aed1781d
JB
11482010-10-26 Joel Brobecker <brobecker@adacore.com>
1149
1150 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1151 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1152 (PyEval_ReleaseLock): Define as nothing.
1153
1e3fad37
JB
11542010-10-26 Joel Brobecker <brobecker@adacore.com>
1155
1156 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1157 by call to FILENAME_CMP.
1158
558b1900
JB
11592010-10-26 Joel Brobecker <brobecker@adacore.com>
1160
1161 * dictionary.c (dict_hash): Move assignment out of if condition.
1162
f474844c
JZ
11632010-10-22 Jie Zhang <jie@codesourcery.com>
1164
1165 * Makefile.in (install): Remove dependency of install-only and
1166 recursively invoke make for install-only.
1167 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1168 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1169
8991e9fa
HZ
11702010-10-20 Hui Zhu <teawater@gmail.com>
1171
1172 * tracepoint.c (tfile_get_traceframe_address): Call
1173 extract_signed_integer.
1174 (tfile_trace_find): Call extract_signed_integer and
1175 extract_unsigned_integer. Change data_size to unsigned int.
1176 (tfile_fetch_registers): Call extract_unsigned_integer.
1177 (tfile_xfer_partial): Ditto.
1178 (tfile_get_trace_state_variable_value): Call
1179 extract_signed_integer and extract_unsigned_integer.
1180
21bce120
VP
11812010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1182
1183 * remote.c (remote_get_threadlist): If we got empty
1184 response, bail out immediately, and don't emit any
1185 warnings.
1186
ad8b5167
UW
11872010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1188
1189 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1190 for "mov pc, REG" as well.
1191 (thumb_instruction_changes_pc): Likewise.
1192
79afc5ef
SW
11932010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1194
1195 PR C++/11500:
1196 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1197 * eval.c (evaluate_subexp_standard): Check for overload of
1198 'operator->'.
1199 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1200 (value_x_unop): Ditto.
1201 * valops.c: Include "exceptions.h".
1202 (find_overload_match): Throw NOT_FOUND_ERROR.
1203 (value_struct_elt): Ditto.
1204
cca56ac7
TT
12052010-10-19 Tom Tromey <tromey@redhat.com>
1206
1207 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1208
026ffab7
SW
12092010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1210
1211 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1212 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1213 for conversion.
1214 Make all other conversions illegal.
1215
8c540a24
DE
12162010-10-18 Doug Evans <dje@google.com>
1217
1218 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1219 assumptions of when this case happens. Print "<unnamed typedef>".
1220
3a772aa4
TT
12212010-10-18 Tom Tromey <tromey@redhat.com>
1222
1223 * valprint.c (val_print_string): Pass 'encoding' to
1224 LA_PRINT_STRING.
1225
01f8c46d
JK
12262010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1227
1228 Fix the `stopped language detection' testcase for gcc-4.5.
1229 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1230 * symfile.c (set_initial_language): Move variable filename to a more
1231 inner block. Prefer LANGUAGE_OF_MAIN.
1232 * symtab.c (language_of_main): New variable.
1233 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1234 * symtab.h (language_of_main): New declaration.
1235
8aeb23f3
JK
12362010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1237 Pedro Alves <pedro@codesourcery.com>
1238
1239 * gdbthread.h (currently_stepping): New declaration.
1240 * infrun.c (currently_stepping): Remove the forward declaration.
1241 (currently_stepping): Make it global.
1242 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1243 variables tp and step, initialized them. Pass STEP to to_resume.
1244 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1245 * remote.c (currently_stepping_callback): New.
1246 (remote_vcont_resume)
1247 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1248 New variable tp. Call currently_stepping_callback and step such
1249 thread.
1250
c1e56572
JK
12512010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1252
1253 * infrun.c (follow_exec): Replace symbol_file_add_main by
1254 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1255 breakpoint_re_set.
1256 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1257 clear_symtab_users.
1258 * objfiles.c (free_all_objfiles): Likewise.
1259 * remote-m32r-sdi.c (m32r_load): Likewise.
1260 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1261 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1262 clear_symtab_users with ADD_FLAGS.
1263 (reread_symbols): Use parameter 0 for clear_symtab_users.
1264 (clear_symtab_users): New parameter add_flags. Do not call
1265 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1266 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1267 * symtab.h (clear_symtab_users): New parameter add_flags.
1268
3a182a69
JK
12692010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1270
1271 Fix GCC false warning.
1272 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1273
3a9d7214
PM
12742010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1275
1276 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1277 display of type of method arguments.
1278
09ca9e2e
TT
12792010-10-15 Tom Tromey <tromey@redhat.com>
1280
1281 PR python/11948:
1282 * varobj.c (value_get_print_value): Use val_print_string to print
1283 lazy strings.
1284 * python/py-prettyprint.c (print_string_repr): Use
1285 val_print_string to print lazy strings. Fix cleanup logic.
1286 (print_children): Likewise.
1287 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1288 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1289 Change return type to 'void', add 'addr' argument.
1290 * value.h (val_print_string): Update.
1291 * valprint.c (val_print_string): Add 'encoding' argument.
1292 * printcmd.c (print_formatted): Update.
1293 * p-valprint.c (pascal_val_print): Update.
1294 * m2-valprint.c (print_unpacked_pointer): Update.
1295 (m2_print_array_contents): Likewise.
1296 * jv-valprint.c (java_value_print): Update.
1297 * f-valprint.c (f_val_print): Update.
1298 * c-valprint.c (c_val_print): Update.
1299 * auxv.c (fprint_target_auxv): Update.
1300
92163a10
JK
13012010-10-15 Doug Evans <dje@google.com>
1302 Jan Kratochvil <jan.kratochvil@redhat.com>
1303
1304 PR exp/12117
1305 * gdbtypes.c (check_typedef): Clean up function comment.
1306 Keep track of instance flags as we strip typedefs and create a new
1307 type to preserve them if necessary.
1308 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1309
dae71413
PM
13102010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1311
1312 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1313
7062b0a0
SW
13142010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1315
1316 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1317 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1318 to...
1319 (types_equal): ...here. And changed it as follows:
1320 Outside of typedefs type must be of the same TYPE_CODE.
1321 When compairing two pointers or references they are equal if their
1322 targets are equal.
1323 Correct pointer conversions.
1324
5c3da5ea
PM
13252010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1326
1327 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1328 having fields without names.
1329
577ce03a
TT
13302010-10-13 Tom Tromey <tromey@redhat.com>
1331
1332 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1333
a737a51b
DE
13342010-10-13 Doug Evans <dje@google.com>
1335
0e3509db
DE
1336 New python module gdb.types.
1337 * NEWS: Document it.
1338 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1339 * python/lib/gdb/types.py: New file.
1340
a737a51b
DE
1341 * c-typeprint.c: Whitespace cleanup.
1342 (cp_type_print_method_args): Remove unnecessary forward decl.
1343 (cp_type_print_derivation_info): Ditto.
1344 (c_type_print_varspec_prefix): Mark as static at definition.
1345 (c_type_print_modifier): Fix arg descriptions.
1346
8dc78533
JK
13472010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1348
1349 * python/py-breakpoint.c (bppy_set_condition): New comment.
1350 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1351 failed PyUnicode_Decode.
1352 (cmdpy_completer): Skip element for failed
1353 python_string_to_host_string.
1354 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1355 * python/py-frame.c (frapy_read_var): Extend the function comment.
1356 * python/py-function.c (fnpy_init): Return -1 on failed
1357 python_string_to_host_string.
1358 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1359 the function comment.
1360 (infpy_search_memory): Extend the function comment. Remove the
1361 PyErr_SetString call on already set error state.
1362 * python/py-param.c (set_parameter_value): Extend the function
1363 comment. Return -1 on failed python_string_to_host_string, twice.
1364 (set_attr): Extend the function comment.
1365 (compute_enum_values): Extend the function comment. New variable
1366 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1367 failed python_string_to_host_string.
1368 (get_doc_string): Call gdbpy_print_stack on failed
1369 python_string_to_host_string.
1370 (parmpy_init): Extend the function comment.
1371 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1372 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1373 failed python_string_to_host_string.
1374 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1375 (valpy_binop, valpy_richcompare): Extend the function comment.
1376 * python/python.c
1377 (struct python_env) <error_type, error_value, error_traceback>: New
1378 fields.
1379 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1380 (ensure_python_env): Call PyErr_Fetch.
1381 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1382 failed convert_value_from_python.
1383 (value_get_print_value): Call gdbpy_print_stack on failed
1384 python_string_to_target_python_string.
1385
1bdb0c54
TT
13862010-10-12 Tom Tromey <tromey@redhat.com>
1387
1388 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1389
0526b37a
SW
13902010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1391
1392 * gdbtypes.c (do_is_ancestor): New function.
1393 (is_ancestor): Use do_is_ancestor.
1394 (is_public_ancestor): Use do_is_ancestor.
1395
c1b5be38
PM
13962010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1397
1398 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1399
68770265
MGD
14002010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1401
1402 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1403
64b00020
DE
14042010-10-11 Doug Evans <dje@google.com>
1405
1406 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1407 the address space id too.
1408
43b8e241
JK
14092010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1410
1411 Fix attaching to re-prelinked executables on ppc64.
1412 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1413 initialize it, try to adjust FILESZ field by it.
1414
417b5110
DJ
14152010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1416
1417 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1418 messages if info_verbose.
1419
3bdf2bbd
KW
14202010-10-08 Ken Werner <ken.werner@de.ibm.com>
1421
1422 * valops.c (value_cast): Handle vector types.
1423 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1424
ec3d575a
UW
14252010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1426
1427 * arm-tdep.c (thumb_expand_immediate): New function.
1428 (thumb_instruction_changes_pc): Likewise.
1429 (thumb2_instruction_changes_pc): Likewise.
1430 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1431 prologue parsing. Improved support for optimized code.
1432 (thumb_scan_prologue): Do not reply on line-number information,
1433 use same heuristics as arm_scan_prologue insead.
1434 (skip_prologue_function): Accept functions
1435 "__tls_get_addr" and "__aeabi_read_tp".
1436
4024ca99
UW
14372010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1438 Daniel Jacobowitz <dan@codesourcery.com>
1439
1440 * arm-tdep.c (thumb_in_function_epilogue_p)
1441 (arm_in_function_epilogue_p): New.
1442 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1443 gdbarch_in_function_epilogue_p callback.
1444
855c153f
DE
14452010-10-07 Doug Evans <dje@google.com>
1446
00e14314
DE
1447 * cc-with-index.sh (output_file): Default to a.out.
1448
3876f04e
DE
1449 * dwarf2read.c (mapped_index): Rename member index_table to
1450 symbol_table and index_table_slots to symbol_table_slots.
1451 All uses updated.
1452 (create_symbol_hash_table): Renamed from create_index_table.
1453 All callers updated.
1454 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1455 (write_hash_table): Rename local index_table to symbol_hash_table.
1456
855c153f
DE
1457 * addrmap.h (addrmap_foreach_fn): New typedef.
1458 (addrmap_foreach): Declare.
1459 * addrmap.c (struct addrmap_funcs): New member foreach.
1460 (addrmap_foreach): New function.
1461 (addrmap_fixed_foreach): New function.
1462 (addrmap_fixed_funcs): Update.
1463 (struct mutable_foreach_data): New struct.
1464 (addrmap_mutable_foreach_worker): New function.
1465 (addrmap_mutable_foreach): New function.
1466 (addrmap_mutable_funcs): Update.
1467
1d2a4540
PH
14682010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1469
1470 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1471 more cases.
1472
40658b94
PH
14732010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1474
1475 * ada-lang.c (full_match): Declare.
1476 (ada_match_name): Rename to match_name (we should avoid prefixing static
1477 symbols with "ada_").
1478 (match_name): New name for ada_match_name.
1479 (struct ada_psym_data): Remove and replace with...
1480 (struct match_data): User data for map_matching_symbols.
1481 (ada_add_psyms): Remove.
1482 (aux_add_nonlocal_symbols): New function, used as callback for
1483 map_matching_symbols.
1484 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1485 symbols.
1486 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1487 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1488 Rework to use map_matching_symbols instead of map_ada_symtabs.
1489 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1490 * psymtab.c: Include dependency on dictionary.h.
1491 (match_partial_symbol): New function.
1492 (ada_lookup_partial_symbol): Remove.
1493 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1494 (map_matching_symbols_psymtab): New function.
1495 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1496 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1497
c4d840bd
PH
14982010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1499
1500 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
1501 (wild_match): Change API to be consistent with that of strcmp_iw;
1502 return 0 for a match, and switch operand order.
1503 (full_match): New function.
1504 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1505 matching to allow use of hashing.
1506 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1507 iter_name_next ot iter_match_first, iter_match_next.
1508 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1509 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1510 (iter_name_first_linear): Replace with iter_match_first_linear.
1511 (iter_name_next_linear): Replace with iter_match_next_linear.
1512 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1513 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1514 (dict_iter_match_first): New function.
1515 (dict_iter_match_next): New function.
1516 (dict_hash): New function.
1517 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1518 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 1519
543ecec7
DE
15202010-10-06 Doug Evans <dje@google.com>
1521
1522 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1523
2f608a3a
KW
15242010-10-06 Ken Werner <ken.werner@de.ibm.com>
1525
1526 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1527
aa2e2d8d
DE
15282010-10-06 Doug Evans <dje@google.com>
1529
9c9606fb
DE
1530 * Makefile.in (REQUIRED_SUBDIRS): New var.
1531 (subdir_do): Verify required subdir Makefiles exist.
1532
aa2e2d8d
DE
1533 Create subdir data-directory.
1534 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1535 data-directory/Makefile.in.
1536 (SUBDIRS): Add data-directory.
1537 (all): Remove xml-syscall-copy dependency.
1538 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1539 stamp-syscalls.
1540 (xml-syscall-install): Moved to data-directory/Makefile.in as
1541 install-syscalls.
1542 (install-only): Remove xml-syscall-install dependency.
1543 (all-data-directory): New rule.
1544 (data-directory/Makefile): New rule.
1545 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1546 * configure: Regenerate.
1547 * data-directory/Makefile.in: New file.
1548 * python/lib/gdb/__init__.py: New file.
1549
aa27d0b3
JB
15502010-10-06 Joel Brobecker <brobecker@adacore.com>
1551
1552 Fix ARI warnings in advance_wild_match.
1553 * ada-lang.c (advance_wild_match): Delete local variable t2.
1554 Adjust code accordingly. Minor reformatting.
1555
2844d6b5
KW
15562010-10-06 Ken Werner <ken.werner@de.ibm.com>
1557
1558 * gdbtypes.h (struct main_type): Remove flag_nottext.
1559 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1560 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1561 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1562 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1563 of TYPE_FLAG_NOTTEXT.
1564 (init_type): Remove the initialization of the flag_nottext field.
1565 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1566 TYPE_FLAG_NOTTEXT.
1567 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1568
2fdf6df6
DE
15692010-10-04 Doug Evans <dje@google.com>
1570
ea65fe05
DE
1571 * cc-with-index.sh: New file.
1572
2fdf6df6
DE
1573 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1574 function comment.
1575 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1576 (create_cus_from_index, create_addrmap_from_index): Ditto.
1577 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1578 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1579 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
1580 (eq_strtab_entry, create_strtab, add_string): Ditto.
1581 (hash_strtab_entry): Ditto.
1582 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1583 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1584 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1585 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1586 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1587 (write_psymtabs_to_index): Ditto.
2fdf6df6 1588
40bc484c
JB
15892010-10-04 Joel Brobecker <brobecker@adacore.com>
1590
1591 * ada-lang.c: #include "value.h".
1592 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1593 arguments. Implement using value_allocate_space_in_inferior
1594 instead of allocating memory from the stack.
1595 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1596 calls to ensure_lval.
1597 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1598 calls to make_array_descriptor and ensure_lval.
1599 * ada-lang.h (ada_convert_actual): Update declaration.
1600 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1601
f17618ea
DE
16022010-10-04 Doug Evans <dje@google.com>
1603
1604 * python/python.c (_initialize_python): Define new function
1605 GdbSetPythonDirectory in python. Use it to update sys.path and
1606 gdb.__path__.
1607
83e3a93c
PH
16082010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1609
1610 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1611 incorporating and generalizing print_record_field_types.
1612 (print_record_field_types): Change return value and update comment.
1613 Re-implement using print_selected_record_field_types.
1614 (print_choices): Print "=>" here.
1615 Handle case of unencoded variant branch.
1616 (print_variant_clauses): Reformat comment.
1617 Special-case unencoded variant branch.
1618
16192010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
1620
1621 * ada-lang.c (wild_match): Reimplement.
1622 Change API to eliminate unused length argument, reverse arguments and
1623 make 0 the 'true' return value.
1624 (advance_wild_match): New auxiliary function for wild_match to improve
1625 readability.
1626 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1627 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1628 API for wild_match.
1629 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1630 wild_match.
1631 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1632
11570e71
DE
16332010-10-01 Doug Evans <dje@google.com>
1634
1635 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1636 for `save gdb-index' command.
1637
72b9f47f
TT
16382010-10-01 Tom Tromey <tromey@redhat.com>
1639
1640 * symfile.h (allocate_symtab): Update.
1641 * symfile.c (allocate_symtab): Make 'filename' const.
1642 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1643 (add_psymbol_to_list): Likewise.
1644 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1645 const.
1646 (add_psymbol_to_list): Update.
1647 * mdebugread.c (new_symtab): Make 'name' const.
1648 (psymtab_to_symtab_1): Make 'filename' const.
1649 * elfread.c (elfstab_offset_sections): Update.
1650 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1651 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1652 (psymtab_include_file_name): Update.
1653 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1654 * buildsym.h (start_subfile): Update.
1655 * buildsym.c (start_subfile): Make arguments const.
1656
55e39473
MS
16572010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1658
1659 * fork-child.c (breakup_args): Fix crash if shell forking is
1660 disabled at compile time.
1661
05e522ef
JB
16622010-10-01 Joel Brobecker <brobecker@adacore.com>
1663
1664 * ada-lang.c (desc_bounds): Add handling of the case where
1665 the P_BOUNDS field is a pointer to a stub.
1666 (desc_data_target_type): Same for P_ARRAY field.
1667 (ada_check_typedef): Strip the typedef layers from the type
1668 found by ada_find_any_type.
1669
49a45ecf
JB
16702010-10-01 Joel Brobecker <brobecker@adacore.com>
1671
1672 * sparc-tdep.c (sparc32_frame_align): New function.
1673 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1674 * sparc64-tdep.c (sparc64_frame_align): New function.
1675 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1676
a5916a62
L
16772010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1678
1679 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1680
00b5771c
TT
16812010-09-30 Tom Tromey <tromey@redhat.com>
1682
1683 * symfile.h (struct sym_fns) <next>: Remove.
1684 (add_symtab_fns): Update.
1685 * symfile.c (sym_fns_ptr): New typedef.
1686 (symtab_fns): Now a VEC.
1687 (add_symtab_fns): Update. Change argument type.
1688 (find_sym_fns): Update. Change return type.
1689 (get_symfile_segment_data): Update.
1690 * objfiles.h (struct objfile) <sf>: Now const.
1691 * somread.c (som_sym_fns): Now const. Update.
1692 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1693 * mipsread.c (ecoff_sym_fns): Now const. Update.
1694 * machoread.c (macho_sym_fns): Now const. Update.
1695 * elfread.c (elf_sym_fns): Now const. Update.
1696 (elf_sym_fns_gdb_index): Likewise.
1697 * dbxread.c (aout_sym_fns): Now const. Update.
1698 * coffread.c (coff_sym_fns): Now const. Update.
1699
38f12cfc
TT
17002010-09-30 Tom Tromey <tromey@redhat.com>
1701
1702 * value.c (value_primitive_field): Take 'offset' into account for
1703 packed field.
1704
9ae8282d
TT
17052010-09-30 Tom Tromey <tromey@redhat.com>
1706
1707 * completer.c (count_struct_fields): Handle anonymous structs and
1708 unions.
1709 (add_struct_fields): Likewise.
1710
e9e07ba6
JK
17112010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1712
1713 Fix printing parameters of inlined functions.
1714 * ada-lang.c (is_known_support_routine)
1715 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1716 for find_frame_funname.
1717 * python/py-frame.c (frapy_name): Likewise.
1718 * stack.c (find_frame_funname): New parameter funcp. Update the
1719 function comment. Fill it in.
1720 (print_frame): New variable func. Initialize it by
1721 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1722 FUNC as the parameter of print_args_stub.
1723 * stack.h (find_frame_funname): New parameter funcp. Remove the
1724 function declaration comment.
1725
cd2effb2
JK
17262010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1727
1728 PR corefiles/12071.
1729 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1730 tp. Iterate INFERIOR_LIST and call target_has_execution.
1731
bceffbf3
JK
17322010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1733
1734 Fix GDB crash on inferior calls with self-referencing classes.
1735 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1736 member fields.
1737
abc72ce4
DE
17382010-09-29 Doug Evans <dje@google.com>
1739
1740 Workaround for gcc/45682.
1741 * dwarf2read.c (partial_die_info): New fields fixup_called,
1742 linkage_name.
1743 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1744 Move definition next to use. Use linkage_name to determine if class
1745 is in a namespace. All callers updated.
1746 (fixup_partial_die): Return early if already called.
1747 Set fixup_called when done.
1748 (guess_full_die_structure_name): New function.
1749 (determine_prefix): Call it for class/struct/union dies if c++ and
1750 .debug_types section is present and parent is DW_TAG_compile_unit.
1751
0ac7be25
JB
17522010-09-28 Joel Brobecker <brobecker@adacore.com>
1753
1754 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1755 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1756
6e1bb179
JB
17572010-09-28 Joel Brobecker <brobecker@adacore.com>
1758
1759 * NEWS: Announce Ravenscar Profile support.
1760
036b1ba8
JB
17612010-09-28 Joel Brobecker <brobecker@adacore.com>
1762 Jerome Guitton <guitton@adacore.com>
1763
1764 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1765 New files.
1766 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1767 ravenscar-sparc-thread.o to gdb_target_obs.
1768
474011fb
JB
17692010-09-28 Joel Brobecker <brobecker@adacore.com>
1770
1771 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1772 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1773
99e24b90
PM
17742010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1775
1776 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1777 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1778 skip_main_prologue method.
1779
987d643c
TT
17802010-09-27 Tom Tromey <tromey@redhat.com>
1781
1782 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1783 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1784 Only emit a given psymbol once.
1785 (struct signatured_type_index_data) <psyms_seen>: New field.
1786 (write_one_signatured_type): Update.
1787 (cleanup_htab): New function.
1788 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1789 version to 3.
1790 (save_gdb_index_command): Update index documentation.
1791
d3aff959
TT
17922010-09-27 Tom Tromey <tromey@redhat.com>
1793
1794 * bcache.c (expand_hash_table): Use hash_function, not hash.
1795
716b65bf
TT
17962010-09-27 Tom Tromey <tromey@redhat.com>
1797
1798 * gdb_wchar.h: Change minimum libiconv to 0x108.
1799
1736ad11
JK
18002010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1801
1802 Fix lost siginfo_t for inferior calls.
1803 * infrun.c
1804 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1805 (save_inferior_thread_state): New variables regcache, gdbarch and
1806 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1807 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1808 using REGCACHE.
1809 (restore_inferior_thread_state): New variables regcache and gdbarch.
1810 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1811 REGCACHE. Free also SIGINFO_DATA.
1812
4b5246aa
TT
18132010-09-24 Tom Tromey <tromey@redhat.com>
1814
1815 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1816 MAYBE_SWAPs.
1817 (dw2_map_symbol_names): Likewise.
1818
2a7d6a25
SW
18192010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1820
1821 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1822 discard_cleanups do_cleanups.
1823
b53a1623
PA
18242010-09-24 Pedro Alves <pedro@codesourcery.com>
1825
e6ee044d
PA
1826 PR gdb/11842
1827
b53a1623
PA
1828 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1829 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1830 si_code is < 0. Check for si_code == SI_TIMER before checking for
1831 si_code < 0.
1832
96a8853a
PA
18332010-09-24 Pedro Alves <pedro@codesourcery.com>
1834
1835 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1836
39383a48
JB
18372010-09-22 Joel Brobecker <brobecker@adacore.com>
1838
1839 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1840 debugging a core file.
1841
d31d2fc3
JK
18422010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1843
1844 Code cleanup.
1845 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1846 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1847 xfree.
1848 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1849 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1850 Remove.
1851 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1852 Remove the conditional.
1853 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1854
7f6130ff
JK
18552010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1856
1857 * main.c: Include objfiles.h.
1858 (captured_main): New variable objfile. Call
1859 load_auto_scripts_for_objfile for ALL_OBJFILES.
1860
c2b0a229
JK
18612010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1862
1863 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1864 DW_TAG_constant.
1865
72929c62
JB
18662010-09-22 Joel Brobecker <brobecker@adacore.com>
1867
1868 * dwarf2read.c (scan_partial_symbols): Add handling of
1869 DW_TAG_constant DIEs.
1870 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1871
496c0e1b
JB
18722010-09-22 Joel Brobecker <brobecker@adacore.com>
1873
1874 * configure.ac: Add support for --enable-gdbserver.
1875 * configure: Regenerate.
1876
ec322823
SW
18772010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1878
1879 PR C++/12028
1880 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1881 'old_cleanups' reassignment.
1882
1558ab4c
JK
18832010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1884
1885 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1886 characters.
1887
875b4ff5
PM
18882010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1889
1890 PR mi/11407
1891 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1892 read_var_value and common_val_print and print a warning.
1893
65dedcb2
JK
18942010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1895
1896 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1897 keep the list in alphabetical order. Use longer e-mail address.
1898
0e780a22
TT
18992010-09-15 Tom Tromey <tromey@redhat.com>
1900
1901 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1902
62234ccc
TT
19032010-09-15 Tom Tromey <tromey@redhat.com>
1904
1905 * charset.c (iconv_open): New define.
1906 (iconv): Likewise.
1907 (iconv_close): Likewise.
1908 (phony_iconv_open): Add "phony_" prefix.
1909 (phony_iconv_close): Likewise.
1910 (phony_iconv): Likewise.
1911 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1912 Change how INTERMEDIATE_ENCODING is defined.
1913
4950bc1c
DE
19142010-09-15 Doug Evans <dje@google.com>
1915
1916 * dwarf2read.c (struct die_info): Fix comment.
1917
349126ea
AM
19182010-09-15 Alan Modra <amodra@gmail.com>
1919
1920 PR 4606
1921 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1922 than setting SEC_NEVER_LOAD on sections that need not be copied.
1923
923c6a3d
TT
19242010-09-14 Tom Tromey <tromey@redhat.com>
1925
1926 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1927 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1928 Declare.
1929 * symfile.h (extend_psymbol_list): Remove.
1930 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1931 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1932 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1933
a9e6a4bb
JK
19342010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1935
1936 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1937 Update the comment.
1938
7155d578
TT
19392010-09-14 Tom Tromey <tromey@redhat.com>
1940
1941 PR symtab/8399:
1942 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1943 for unrecognized frame base expression.
1944
515ed532
TT
19452010-09-14 Tom Tromey <tromey@redhat.com>
1946
1947 PR exp/11803:
1948 * value.c (value_static_field): Use value_of_variable.
1949
b467f580
PM
19502010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1951
1952 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1953 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1954
450ca57c
SW
19552010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1956
1957 PR symtab/11992:
1958 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1959 UNKNOWN_CPP_NAME.
1960
1aee7009
JB
19612010-09-13 Joel Brobecker <brobecker@adacore.com>
1962
1963 * NEWS: Add x86-lynxos to the list of platforms supported by
1964 gdbserver.
1965
5ec6ebf9
JB
19662010-09-13 Joel Brobecker <brobecker@adacore.com>
1967
1968 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1969
1863c96c
TT
19702010-09-13 Tom Tromey <tromey@redhat.com>
1971
1972 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1973
0c5acf93
L
19742010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1975
1976 * i386-tdep.c (i386_ymm_type): Set type name to
1977 builtin_type_vec256i.
1978
1c6272a6
MS
19792010-09-12 Michael Snyder <msnyder@vmware.com>
1980
1981 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1982
e866c497
L
19832010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1984
1985 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1986
9191d390
L
19872010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1988
1989 * amd64-tdep.c (amd64_register_name): Removed.
1990 (amd64_init_abi): Don't call set_gdbarch_register_name.
1991
1992 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1993
1994 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1995
8d4d924b
JK
19962010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1997 Paul Bolle <pebolle@tiscali.nl>
1998
1999 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
2000 * cli-logging.c (struct saved_output_files) <targerr>: New.
2001 (set_logging_redirect, pop_output_files, handle_redirections):
2002 Redirect also gdb_stdtargerr.
2003 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
2004 declarations.
2005 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
2006 also gdb_stdtargerr.
2007 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
2008 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
2009 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
2010 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
2011 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
2012 New functions.
2013
3329c4b5
PM
20142010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2015
2016 * hppa-tdep.c (unwind_command): Use host_address_to_string function
2017 to display a host address.
2018 * monitor.c (monitor_read_memory): Likewise.
2019 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
2020
5e8db398
PM
20212010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2022
2023 * coffread.c (struct coff_symbol): Change c_value type from `long' to
2024 `CORE_ADDRESS' as it might contain target addresses.
2025
37049e31
PM
20262010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2027
2028 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
2029 before cast to pointer to avoid warning.
2030
351a3e56
KB
20312010-09-09 Kevin Buettner <kevinb@redhat.com>
2032
2033 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
2034 type to be signed.
349126ea 2035
6afafb54
UW
20362010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2037
2038 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
2039 anonymous class partial DIEs.
2040
60430eff
DJ
20412010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2042
2043 * dwarf2read.c (dwarf2_compute_name): Check that the first
2044 argument is a pointer.
2045
f1078f66
DJ
20462010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2047
2048 * dwarf2read.c (read_func_scope, read_structure_type)
2049 (read_common_block): Check for a NULL return from new_symbol.
2050
82430852
JK
20512010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2052
2053 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2054
c767944b
DJ
20552010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2056
2057 * dwarf2read.c (read_structure_type): Move processing of
2058 fields and member functions from here...
2059 (process_structure_scope): ... to here.
2060
561d3825
DJ
20612010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2062
2063 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2064 the domain type.
2065 (gnuv3_make_method_ptr): Likewise.
2066
9bd89d67
TT
20672010-09-08 Tom Tromey <tromey@redhat.com>
2068
2069 * breakpoint.c (create_breakpoint): Add missing _().
2070
1d040b0d
DE
20712010-09-08 Doug Evans <dje@google.com>
2072
2073 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2074
774b6a14
TT
20752010-09-08 Tom Tromey <tromey@redhat.com>
2076
2077 Revert:
2078 2010-09-01 Tom Tromey <tromey@redhat.com>
2079 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2080 symtab.h: Revert earlier change.
2081
fc956729
SW
20822010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2083
2084 * psymtab.c (add_psymbol_to_bcache): Initialize
2085 obj_section.
2086 memset psymbol.ginfo.value to 0.
2087
48f9886d
PA
20882010-09-06 Pedro Alves <pedro@codesourcery.com>
2089
2090 * infrun.c (resume): Extend comment on ignoring single-step
2091 requests on vfork parents waiting for a vfork-done.
2092
423ec54c
JK
20932010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 Pedro Alves <pedro@codesourcery.com>
2095
2096 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2097 is NULL.
2098 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2099 target_signal type.
2100 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2101 calling strsignal. Use enum target_signal type for saved_signo.
2102 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2103 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2104 target_signal_to_host before calling strsignal.
2105 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2106 TARGET_SIGNAL_0.
2107
a6eb9bc8
JK
21082010-09-06 Pedro Alves <pedro@codesourcery.com>
2109 Jan Kratochvil <jan.kratochvil@redhat.com>
2110
2111 * common/signals.c (ANY): Remove.
2112 (SET): No longer use ANY.
2113
74609e71
YQ
21142010-09-06 Yao Qi <yao@codesourcery.com>
2115
2116 * infrunc(resume): When inferior is waiting_for_vfork_done,
2117 clear step and don't use displaced stepping.
2118
8464be76
DJ
21192010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2120
2121 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2122 value specially.
2123
33d62d64
JK
21242010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2125
2126 Code cleanup - split print_stop_reason.
2127 * infrun.c (enum inferior_stop_reason): Remove.
2128 (print_stop_reason): Remove by splitting into ...
2129 (print_exited_reason, print_signal_exited_reason)
2130 (print_no_history_reason, print_signal_received_reason)
2131 (print_end_stepping_range_reason): ... these new functions. Update
2132 the preceding comment.
2133 (handle_inferior_event): Change the calls to print_exited_reason,
2134 print_signal_exited_reason, print_no_history_reason,
2135 print_signal_received_reason, print_end_stepping_range_reason.
2136 (handle_step_into_function, handle_step_into_function_backward):
2137 Change the calls to print_end_stepping_range_reason.
2138
14dba4b4
JK
21392010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2140
2141 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2142 * cli-out.c: Include vec.h.
2143 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2144 variable stream, initialize it, use it.
2145 (cli_redirect): New function comment. Replace the stream and
2146 original_stream fields by the new streams field. Remove the
2147 original_stream != NULL conditional, assert error on NULL instead.
2148 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2149 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2150 original_stream fields by the new streams field.
2151 (cli_out_set_stream): Replace the stream field by the new streams
2152 field.
2153 * cli-out.h: Include vec.h.
2154 (ui_filep): New typedef, call DEF_VEC_P for it.
2155 (struct cli_ui_out_data): Replace the stream and original_stream
2156 fields by the new streams field.
2157 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2158 NULL first. Extend the comment.
2159 (handle_redirections): Call ui_out_redirect with output.
2160 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2161 calls outside of the TRY_CATCH block.
2162
b04bc5d4 21632010-09-03 Joel Brobecker <brobecker@adacore.com>
2164
2165 GDB 7.2 released.
2166
080db4e0
JB
21672010-09-02 Joel Brobecker <brobecker@adacore.com>
2168
2169 Back out the following change:
2170 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2171 | * record.c (set_record_pic_cmdlist,
2172 | show_record_pic_cmdlist): New variables.
2173 | (set_record_pic_command,
2174 | show_record_pic_command): New functions.
2175 | (record_pic_function, record_pic_line, record_pic_enum,
2176 | set_record_pic_type, record_pic_hide_nofunction,
2177 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2178 | (record_pic_fputs): New function.
2179 | (function_list, node_list, edge_list): New struct.
2180 | (function_list, node_list, edge_list): New variables.
2181 | (record_pic_cleanups, record_pic_node,
2182 | record_pic_edge, cmd_record_pic): New functions.
2183 | (_initialize_record): Add new commands for record pic.
2184
0a4f61e3
DJ
21852010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2186
2187 * config.in, configure: Regenerated.
2188 * configure.ac: Check for waitpid.
2189 * ser-pipe.c (pipe_close): Wait for the program to exit.
2190
58b61394
JK
21912010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2192
ba720883 2193 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
2194 (set_logging_overwrite): New function.
2195 (logging_redirect): New comment.
2196 (logging_no_redirect_file, set_logging_redirect)
2197 (pop_output_files) <logging_no_redirect_file>: New.
2198 (handle_redirections) <!logging_redirect>: New variable
2199 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2200 discard cleanup for the close of former OUTPUT. Set
2201 LOGGING_NO_REDIRECT_FILE.
2202 (handle_redirections) <logging_redirect>: gdb_assert
2203 LOGGING_NO_REDIRECT_FILE.
2204 (show_logging_command) <logging_redirect handling>: Adjust messages
2205 for SAVED_FILENAME not NULL.
2206 (_initialize_cli_logging): Install set_logging_overwrite and
2207 set_logging_redirect.
2208
706774f2
JK
22092010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2210
2211 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2212
9a35ccf7
JK
22132010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2214
2215 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2216 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2217 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2218 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2219
ba9b2ec3
YQ
22202010-09-02 Yao Qi <yao@codesourcery.com>
2221
2222 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2223 number from a WIFSIGNALED status.
2224
faf68db7
TT
22252010-09-01 Tom Tromey <tromey@redhat.com>
2226
2227 * symtab.h (lookup_type_symbol): Declare.
2228 * symtab.c (lookup_symbol_in_language_full): Rename from
2229 lookup_symbol_in_language. Add 'for_type' argument.
2230 (lookup_symbol_in_language): New function.
2231 (lookup_type_symbol): Likewise.
2232 (lookup_symbol_aux): Add 'for_type' argument.
2233 (match_symbol_aux): New function.
2234 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2235 (match_transparent_type): New function.
2236 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2237 * symfile.h (struct quick_symbol_functions)
2238 <pre_expand_symtabs_matching>: Remove.
2239 <expand_one_symtab_matching>: New field.
2240 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2241 (pre_expand_symtabs_matching_psymtabs): Remove.
2242 (psym_functions): Update.
2243 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2244 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2245 (dw2_pre_expand_symtabs_matching): Remove.
2246 (dw2_expand_one_symtab_matching): New function.
2247 (dwarf2_gdb_index_functions): Update.
2248
248c9dbc
JB
22492010-09-01 Joel Brobecker <brobecker@adacore.com>
2250
2251 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2252
f75d858b
MK
22532010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2254
2255 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2256 as a feature reported by -list-target-features.
2257
0482b03b
JB
22582010-09-01 Joel Brobecker <brobecker@adacore.com>
2259
2260 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2261 (powerpc-32.o, powerpc-32.c): New rules.
2262 (clean): Also remove powerpc-32.c.
2263 * regformats/rs6000/powerpc-32.dat: Generate.
2264
710e1a31
SW
22652010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2266
2267 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2268 psymbol_bcache_init.
2269 * psymtab.h (psymbol_bcache_init): New function prototype.
2270 (psymbol_bcache_free): New function prototype.
2271 (psymbol_bcache_get_bcache): New function prototype.
2272 * psymtab.c (psymbol_bcache_init): New function.
2273 (psymbol_bcache_free): New function.
2274 (psymbol_bcache_full): New function.
2275 (psymbol_bcache_get_bcache): New function.
2276 (add_psymbol_to_bcache): use psymbol_bcache_full.
2277 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2278 psymbol_bcache.
2279 * symmisc.c (print_symbol_bcache_statistics): Updated.
2280 (print_objfile_statistics): Updated.
2281 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2282 psymbol_cache.
2283 (free_objfile): Use psymbol_bcache_free.
2284
64382290
TT
22852010-08-31 Tom Tromey <tromey@redhat.com>
2286
2287 PR c++/11961:
2288 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2289 Don't set TYPE_NAME on the type.
2290
8bbed405
MS
22912010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2292
2293 * infrun.c (set_exec_direction_func): Error out if target does not
2294 support reverse execution.
2295
06253dd3
JK
22962010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2297
2298 Make linux_get_siginfo_type `type *' unique.
2299 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2300 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2301 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2302 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2303 (_initialize_linux_tdep): New.
2304
b8edc417
JK
23052010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2306
2307 Code cleanup.
2308 * defs.h (find_memory_region_ftype): New typedef.
2309 (exec_set_find_memory_regions): Use it.
2310 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2311 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2312 * gcore.c (objfile_find_memory_regions): Likewise.
2313 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2314 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2315 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2316 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2317 find_memory_region_ftype.
2318 (insert_dbx_link_bpt_in_region): Likewise.
2319 (iterate_over_mappings): Likewise. Drop the comment part about the
2320 function prototype.
2321 (find_memory_regions_callback): Use find_memory_region_ftype.
2322 (proc_find_memory_regions): Likewise.
2323 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2324 find_memory_region_ftype.
2325 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2326 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2327
cbd70537
SW
23282010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2329
2330 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2331 'static partial_symbol psymbol'.
2332 (psymbol_hash): New function.
2333 (psymbol_compare): New function.
2334 * bcache.c (hash_continue): New.
2335 (hash): Use hash_continue.
2336 * bcache.c: Add hash_function and compare_function
2337 pointers to bcache struct.
2338 (bcache_full): Use bcache->hash_function, and
2339 bcache->compare_function.
2340 (bcache_compare): New function.
2341 (bcache_xmalloc): Take hash_function and
2342 compare_function arguments and initialize the
2343 bcach's pointers.
2344 Updated comment.
2345 * objfiles.c (allocate_objfile): Updated.
2346 * symfile.c (reread_symbols): Updated.
2347 * python/py-type.c (typy_richcompare): Updated.
2348
03f17ccf
TT
23492010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2350 Tom Tromey <tromey@redhat.com>
2351
2352 PR python/11792:
2353 * python/py-value.c (valpy_get_dynamic_type): New function.
2354 (value_object_getset): Add "dynamic_type".
2355 (valpy_get_type): Fail on error.
2356
25b41d01
YQ
23572010-08-30 Yao Qi <yao@codesourcery.com>
2358
2359 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2360 (arm_linux_syscall_next_pc): New.
2361 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2362 (arm_linux_init_abi): Initialize syscall_next_pc.
2363 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2364 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2365 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2366 Declare arm_frame_is_thumb.
2367
5760d0ab
JK
23682010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2369
2370 Code cleanup.
2371 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2372 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2373 code.
2374 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2375 calls of bpstat_alloc. Remove explicit bs chain termination.
2376
46a96992
JK
23772010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2378
2379 Code cleanup.
2380 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2381 (my_waitpid): Likewise.
2382
36374493
DE
23832010-08-27 Doug Evans <dje@google.com>
2384
2385 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2386 as appropriate.
2387
8b93c54c
TT
23882010-08-27 Tom Tromey <tromey@redhat.com>
2389
2390 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2391 TYPE_FIELD_IGNORE_BITS.
2392
16be1145
DE
23932010-08-27 Doug Evans <dje@google.com>
2394
2395 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2396 the order they're defined in. munmap .debug_types buffer.
2397
e254ef6a
DE
23982010-08-26 Doug Evans <dje@google.com>
2399
2400 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2401 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2402 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2403 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2404 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2405 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2406 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2407 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2408 (write_psymtabs_to_index): Ditto.
2409
ae53ffa4
PA
24102010-08-26 Pedro Alves <pedro@codesourcery.com>
2411
2412 * NEWS: Mention libthread_db debugging with core files.
2413
c6da4cef
DE
24142010-08-26 Doug Evans <dje@google.com>
2415
2416 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2417 forward decl. Pass pst->dirname to dwarf_decode_lines.
2418 (psymtab_include_file_name): New function.
2419 (dwarf_decode_lines): Call it. Update comments.
2420
cd02d79d
PA
24212010-08-25 Pedro Alves <pedro@codesourcery.com>
2422
2423 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2424 compilation unit being different from target die's.
2425
673bfd45
DE
24262010-08-24 Doug Evans <dje@google.com>
2427
2428 PR symtab/11942
2429 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2430 debug_types_type_hash.
2431 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2432 All uses updated.
2433 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2434 appropriate type_hash table. All callers updated.
2435 (allocate_signatured_type_table): Renamed from
2436 allocate_signatured_type_hash_table. All callers updated.
2437 (create_signatured_type_table_from_index): Renamed from
2438 create_signatured_type_hash_from_index. All callers updated.
2439 (read_die_type): Add comment. Move actual reading to ...
2440 (read_die_type_1): ... here. New function.
2441 (follow_die_ref_or_sig): Tweak comment.
2442 (set_die_type): Rewrite to use appropriate choice of
2443 debug_info_type_hash or debug_types_type_hash.
2444 (get_die_type_at_offset): New function.
2445 (get_die_type): Call it.
2446
e8fd65ef
JK
24472010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2448
2449 * python/py-type.c (typy_richcompare): Initialize worklist.
2450
9779414d
DJ
24512010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2452 Kazu Hirata <kazu@codesourcery.com>
2453 Jonathan Larmour <jifl@eCosCentric.com>
2454
2455 * arm-tdep.c: Include features/arm-with-m.c.
2456 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2457 call this function.
2458 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2459 Check is_m after force-mode.
2460 (arm_gdbarch_init): Check the binary before the target description.
2461 Add check for M profile attribute. If we have an M-profile device,
2462 but no target register description, use arm-with-m. Recognize the
2463 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2464 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2465 * arm-tdep.h (XPSR_T): Define.
2466 (struct gdbarch_tdep): Add is_m member.
2467 * features/arm-m-profile.xml, features/arm-with-m.c,
2468 features/arm-with-m.xml: New files.
2469
9dc481d3
DE
24702010-08-23 Doug Evans <dje@google.com>
2471
2472 * dwarf2read.c (read_structure_type): Add comment.
2473 (read_enumeration_type): Add comment.
2474 (process_enumeration_scope): Move definition of some locals
2475 closer to their use.
2476 (read_namespace_type): Add comment.
e71ec853 2477 (set_die_type): Fix typo in comment.
9dc481d3 2478
f9ffd4bb
TT
24792010-08-23 Tom Tromey <tromey@redhat.com>
2480
2481 PR python/11145:
2482 * python/py-value.c: Include expression.h.
2483 (valpy_do_cast): New function.
2484 (valpy_cast): Use it.
2485 (valpy_dynamic_cast): New function.
2486 (valpy_reinterpret_cast): Likewise.
2487 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2488
96f73ba5
TT
24892010-08-23 Tom Tromey <tromey@redhat.com>
2490
2491 PR python/11391:
2492 * python/py-value.c (valpy_nonzero): Don't throw error for other
2493 Value types.
2494
d839c8a4
TT
24952010-08-23 Tom Tromey <tromey@redhat.com>
2496
2497 PR python/10676:
2498 * python/py-type.c: Include bcache.h, vec.h.
2499 (struct type_equality_entry): New.
2500 (compare_strings): New function.
2501 (check_types_equal): Likewise.
2502 (check_types_worklist): Likewise.
2503 (typy_richcompare): Likewise.
2504 (type_object_type): Set tp_richcompare field.
2505
05d0e1e7
TT
25062010-08-23 Tom Tromey <tromey@redhat.com>
2507
2508 PR python/10953:
2509 * python/py-type.c (typy_fields): Call check_typedef.
2510 (typy_template_argument): Add TRY_CATCH.
2511
702c2711
TT
25122010-08-23 Tom Tromey <tromey@redhat.com>
2513
2514 PR python/11915:
2515 * python/py-type.c (typy_array): New function.
2516 (type_object_methods): Add "array".
2517
4a532131
PA
25182010-08-20 Pedro Alves <pedro@codesourcery.com>
2519
2520 * python/python.c: Include "serial.h".
2521 (gdbpy_event_fds): Change type to `struct serial *' a array from
2522 int array.
2523 (gdbpy_run_events): Change parameters. Use serial_readchar in
2524 place of read.
2525 (gdbpy_post_event): Use serial_write in place of write.
2526 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2527 serial_async in place of add_file_handler.
2528
58f07bae
PA
25292010-08-20 Pedro Alves <pedro@codesourcery.com>
2530
2531 * serial.h (gdb_pipe, serial_pipe): Declare.
2532 * serial.c (serial_interface_lookup): Take a const char pointer.
2533 (serial_fdopen): Rename to ...
2534 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2535 Call the OPS' fdopen function if there is one.
2536 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2537 (serial_pipe): New.
2538 (struct serial_ops) <fdopen>: New field.
2539
2540 * ser-mingw.c (free_pipe_state):
2541 (free_pipe_state): Close output on non-pex pipes.
2542 (pipe_windows_fdopen): New.
2543 (gdb_pipe): New.
2544 (_initialize_ser_windows): Register pipe_windows_fdopen.
2545 * ser-go32.c (gdb_pipe): New.
2546 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2547 no state pointer.
2548 (pipe_ops): Delete.
2549 (gdb_pipe): New.
2550
3da10d80
KS
25512010-08-20 Keith Seitz <keiths@redhat.com>
2552
2553 PR symtab/11465:
889bf7c5 2554 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
2555 (struct dwarf2_cu): Add vector method_list.
2556 (scan_partial_symbols): Count methods for union, class, structure,
2557 and interface types.
2558 (add_to_method_list): New function.
2559 (free_delayed_list): New function.
2560 (compute_delayed_physnames): New function.
2561 (process_full_comp_unit): Make a cleanup for the CU's delayed
2562 physname list, compute the delayed physnames, and free the
2563 the list.
2564 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2565 of the physname until after the CU is read.
2566
2567 * dwarf2read.c (read_structure_type): Check if the current
2568 DIE's type was already completed after dwarf2_full_name
2569 was called.
889bf7c5 2570
ca11e899
SS
25712010-08-19 Stan Shebs <stan@codesourcery.com>
2572
2573 * NEWS: Mention some additional changes.
2574
4d2dc20a
TT
25752010-08-19 Tom Tromey <tromey@redhat.com>
2576
2577 * Makefile.in (install-python): Add DESTDIR.
2578
d30f5e1f
DE
25792010-08-19 Doug Evans <dje@google.com>
2580
2581 PR exp/11926
2582 * parser-defs.h (parse_float, parse_c_float): Declare.
2583 * parse.c (parse_float, parse_c_float): New function.
2584 * c-exp.y (parse_number): Call parse_c_float.
2585 * objc-exp.y (parse_number): Ditto.
2586 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2587 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2588
2837d59e
JB
25892010-08-19 Joel Brobecker <brobecker@adacore.com>
2590
2591 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2592 the arguments in the correct order.
2593 * symtab.c (maybe_add_partial_symtab_filename): Declare
2594 the arguments in the correct order.
2595
35633fef
JK
25962010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2597
2598 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2599 initialize it by null_frame_id, wrap its usage by get_frame_id,
2600 frame_id_p and frame_find_by_id.
2601
94f7449c
TT
26022010-08-18 Tom Tromey <tromey@redhat.com>
2603
2604 PR python/11900:
2605 * configure: Rebuild.
2606 * configure.ac: Add install-python to CONFIG_INSTALL.
2607 * Makefile.in (install-python): New.
2608
f3574227
DE
26092010-08-18 Doug Evans <dje@google.com>
2610
2611 * gdb_assert.h (gdb_assert_not_reached): New macro.
2612 (gdb_assert_fail): Fix typo in comment.
2613 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2614 gdb_assert (0).
2615 * darwin-nat.c (darwin_check_new_threads): Ditto.
2616 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2617 (munmap_section_buffer): Ditto.
2618 * m32c-tdep.c (make_types): Ditto.
2619 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2620 * macroexp.c (get_character_constant): Ditto.
2621 (get_string_literal): Ditto.
2622 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2623 (mep_pseudo_cr_index, mep_register_type): Ditto.
2624 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2625 (mep_get_insn, mep_analyze_prologue): Ditto.
2626 * objfiles.c (qsort_cmp): Ditto.
2627 * prologue-value.c (pv_is_identical): Ditto.
2628 * record.c (record_get_loc): Ditto.
2629 * value.c (value_static_field): Ditto.
2630 * xtensa-tdep.c (call0_track_op): Ditto.
2631
c92817ce
TT
26322010-08-18 Tom Tromey <tromey@redhat.com>
2633
2634 PR symtab/11919:
2635 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2636 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2637 name-copying lower. Document exception behavior.
2638 * completer.c (expression_completer): Catch exceptions from
2639 parse_field_expression.
2640
856d6f99
PA
26412010-08-18 Pedro Alves <pedro@codesourcery.com>
2642
2643 PR corefile/8210
2644
2645 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2646 workaround on core files.
2647 (try_thread_db_load_1): Don't try enabling thread event reporting
2648 on core files.
2649 (thread_db_load): Allow thread_db on core files.
2650 (attach_thread): Don't check thread signals on core files, nor try
2651 really attaching to the thread, nor enabling thread event event
2652 reporting.
2653 (thread_db_detach): Don't try disabing thread event reporting or
2654 removing thread event breakpoints when debugging a core file.
2655 (find_new_threads_callback): Don't try enabling thread event
2656 reporting on core files.
2657 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2658 debugging a core file.
2659 (thread_db_find_new_threads): Don't update thread
2660 cores (processors) when debugging a core (dump).
2661
261b8d08
PA
26622010-08-18 Pedro Alves <pedro@codesourcery.com>
2663
2664 PR corefile/8210
2665
2666 * corelow.c (add_to_thread_list): Don't use
2667 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2668 (get_core_register_section): Don't use
2669 gdbarch_core_reg_section_encodes_pid.
2670
2671 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2672 * gdbarch.h, gdbarch.c: Regenerate.
2673 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2674 gdbarch_core_reg_section_encodes_pid.
2675 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2676 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2677 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2678
f9b42018
YQ
26792010-08-18 Yao Qi <yao@codesourcery.com>
2680
2681 * MAINTAINERS : Add myself under Write After Approval.
2682
def98928
TT
26832010-08-17 Tom Tromey <tromey@redhat.com>
2684
2685 * NEWS: Mention template parameter support.
2686
0807b50c
PA
26872010-08-17 Pedro Alves <pedro@codesourcery.com>
2688
2689 PR breakpoints/11371
2690
2691 * breakpoint.c (decref_bp_location): Assert the reference count is
2692 sane.
2693
f431efe5
PA
26942010-08-17 Pedro Alves <pedro@codesourcery.com>
2695
2696 PR breakpoints/11371
2697
2698 * breakpoint.c (breakpoint_init_inferior): Decrement the
2699 location's reference count instead of deleting right away.
2700 (bpstat_free): Decrement the location's reference count. Make
2701 static.
2702 (bpstat_copy): Increment the location's reference count.
2703 (bpstat_find_breakpoint): Adjust.
2704 (bpstat_num): Adjust.
2705 (print_it_typical): Adjust. Use the breakpoint pointer in the
2706 bpstat instead of the location's owner.
2707 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2708 Adjust to record the location's owner in the bpstat.
2709 (watchpoint_check): Use the breakpoint pointer in the bpstat
2710 instead of the location's owner.
2711 (bpstat_check_breakpoint_conditions): Don't handle
2712 bp_watchpoint_scope here. Use the breakpoint pointer in the
2713 bpstat instead of the location's owner.
2714 (bpstat_stop_status): Defer inferior function calls to after
2715 building the bpstat list. Handle bp_watchpoint_scope here. Use
2716 the breakpoint pointer in the bpstat instead of the location's
2717 owner.
2718 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2719 the location's owner.
2720 (free_bp_location): Don't walk bpstats clearing locations.
2721 (incref_bp_location): New.
2722 (decref_bp_location): New.
2723 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2724 instead of the location's owner.
2725 (update_global_location_list): Clear the location's owner, and
2726 decrement the location's reference count instead of deleting it
2727 right away.
2728 (breakpoint_retire_moribund): Decrement the location's reference
2729 count instead of deleting it right away.
2730 (bpstat_remove_bp_location): Delete.
2731 (bpstat_remove_breakpoint): New.
2732 (bpstat_remove_bp_location_callback): Delete.
2733 (bpstat_remove_breakpoint_callback): New.
2734 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2735 clearing references to the breakpoint that is being deleted.
2736
2737 * breakpoint.h (struct bp_location) <refc>: New field.
2738 <owner>: Update comments.
2739 (bpstat_free): Delete declaration.
2740 (struct bpstats): Change the type of the breakpoint_at field to
2741 struct breakpoint point, from struct bp_location pointer. Add new
2742 field bp_location_at.
2743
14c0d4e1
TT
27442010-08-16 Tom Tromey <tromey@redhat.com>
2745
2746 * NEWS: Fix typo.
2747
b56df873
TT
27482010-08-16 Tom Tromey <tromey@redhat.com>
2749
2750 * NEWS: Mention watch -location.
2751
d63d0675
JK
27522010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2755 EXP_STRING_REPARSE to EXP_STRING.
2756 (watch_command_1): Set also EXP_STRING_REPARSE.
2757 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2758 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2759 Update comment for exp_string.
2760
06a64a0b
TT
27612010-08-16 Tom Tromey <tromey@redhat.com>
2762
2763 * value.c (release_value): Clear 'next' pointer.
2764 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2765 (watch_command_wrapper): Update.
2766 (watch_maybe_just_location): New function.
2767 (watch_command): Update.
2768 (rwatch_command_wrapper): Update.
2769 (rwatch_command): Update.
2770 (awatch_command_wrapper): Update.
2771 (awatch_command): Update.
2772 (check_for_argument): New function.
2773 (_initialize_breakpoint): Update help text.
2774
f96b8fa0
UW
27752010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2776
2777 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2778 typedef'ed function types correctly.
2779
4eb54052
TT
27802010-08-13 Tom Tromey <tromey@redhat.com>
2781
2782 * python/python-internal.h (gdbpy_get_hook_function): Don't
2783 declare.
2784
44be957e
JK
27852010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2786
ba720883 2787 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2788 static.
2789
76d8b686
KW
27902010-08-13 Ken Werner <ken.werner@de.ibm.com>
2791
2792 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2793 the format strings to be compatible with Python 2.4.
2794
8dedea02
VP
27952010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2796
2797 Easier and more stubborn MI memory read commands.
2798
2799 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2800 and data-write-memory-bytes.
2801 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2802 (mi_cmd_data_write_memory_bytes): New.
2803 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2804 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2805 New.
2806 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2807 * target.c (target_read_until_error): Remove.
2808 (read_whatever_is_readable, free_memory_read_result_vector)
2809 (read_memory_robust): New.
2810 * target.h (target_read_until_error): Remove.
2811 (struct memory_read_result, free_memory_read_result_vector)
2812 (read_memory_robust): New.
2813
1d9ec526
HZ
28142010-08-13 Hui Zhu <teawater@gmail.com>
2815
2816 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2817 (read_comp_unit): Initialize back_to.
2818
98bfdba5
PA
28192010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2820 Pedro Alves <pedro@codesourcery.com>
2821
2822 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2823 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2824 (struct partial_die_info) <has_template_arguments>: New field.
2825 <num_attrs>: Change type to unsigned char.
2826 <building_fullname>: New field.
2827 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2828 allocate a CU if we don't have one already. Add a cleanup for the
2829 CU.
2830 (partial_die_full_name): Handle template arguments not in
2831 DW_AT_name.
2832 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2833 (load_full_comp_unit): Only allocate a CU if we don't have one
2834 already.
2835 (do_ui_file_peek_last): New.
2836 (dwarf2_compute_name): Handle template parameters not in
2837 DW_AT_name.
2838 (read_comp_unit): Read and free abbrevs if not read yet.
2839 (load_partial_dies): Handle template arguments not in DW_AT_name.
2840 (find_partial_die): If we have a CU, but no a partial dies yet,
2841 also read in the CU.
2842 (dwarf2_const_value_attr): New, abstracted out from
2843 dwarf2_const_value.
2844 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2845 dwarf2_const_value_attr.
2846 (determine_prefix): Detect and break loops created by RCVT's debug
2847 info.
2848 (maybe_queue_comp_unit): Bail out early if reading partial
2849 symbols.
2850 (follow_die_offset): Load full CU if we have no dies.
2851 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2852 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2853
ca5c20b6 28542010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2855 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2856
2857 * python/python.c (gdbpy_run_events): New function.
2858 (gdbpy_post_event): Likewise.
2859 (gdbpy_initialize_events): Likewise.
2860 (_initialize_python): Call gdbpy_initialize_events.
2861
7346b668
KW
28622010-08-11 Ken Werner <ken.werner@de.ibm.com>
2863
2864 * gdb/valarith.c (vector_binop): New function.
2865 (scalar_binop): Likewise.
2866 (value_binop): Call scalar_binop or vector_binop depending on the types.
2867 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2868 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2869 to pointers.
2870 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2871
62183e15
TT
28722010-08-11 Brad Roberts <braddr@puremagic.com>
2873
2874 * d-lang.c (extract_identifiers): Handle multiple digits.
2875
39d7b0e2
JK
28762010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2877
2878 Code cleanup.
2879 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2880 Rename to dummy_frame_unwind.
2881 (dummy_frame_unwind): Remove.
2882 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2883 * frame-unwind.c (frame_unwind_init): Use address of
2884 dummy_frame_unwind and inline_frame_unwind.
2885 * frame.c (create_sentinel_frame): Use address of
2886 sentinel_frame_unwind.
2887 * inline-frame.c (inline_frame_unwinder): Rename to
2888 inline_frame_unwind.
2889 (inline_frame_unwind): Remove.
2890 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2891 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2892 sentinel_frame_unwind.
2893 (sentinel_frame_unwind): Remove.
2894 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2895 struct.
2896
9f9a8002
JK
28972010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 Code cleanup.
2900 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2901 and returned value. New comment from frame-unwind.h.
2902 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2903 Extend the comment.
2904 * frame.c (get_frame_id, frame_unwind_register_value)
2905 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2906 (get_frame_type, frame_unwind_arch): Do not use the return value of
2907 frame_unwind_find_by_frame.
2908
cb2e07a6 29092010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2910 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2911 Tom Tromey <tromey@redhat.com>
2912
2913 * python/python.c (gdbpy_solib_address): New function.
2914 (gdbpy_decode_line): Likewise.
2915
c29c521f
TT
29162010-08-10 Tom Tromey <tromey@redhat.com>
2917
2918 Revert gdb-add-index addition:
2919 * Makefile.in (install-only): Don't install gdb-add-index.
2920 * gdb-add-index.sh: Remove.
2921
0c012db1
KB
29222010-08-09 Kevin Buettner <kevinb@redhat.com>
2923
2924 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2925 `target_has_execution' check with `to_has_memory' check.
2926 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2927 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2928 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2929
db04efe6
KB
29302010-08-09 Kevin Buettner <kevinb@redhat.com>
2931
2932 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2933 (resume_siggnal, resume_step): Move these static globals...
2934 (struct sim_inferior_data): ...into this new struct.
2935 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2936 New static globals.
2937 (gdb_callback, callbacks_initialized): Move these globals to
2938 a point earlier in the file.
2939 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2940 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2941 (gdbsim_close_inferior, gdbsim_resume_inferior)
2942 (gdbsim_stop_inferior): New functions.
2943 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2944 New constants.
2945 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2946 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2947 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2948 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2949 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2950 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2951 new local variable `sim_data' in each of these functions. Use
2952 `sim_data' to reference former globals `program_loaded',
2953 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2954 `resume_step'.
2955 (gdbsim_open): Remove local variable `argv'. Put results of call
2956 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2957 make a cleanup for it. Free it though when a sim instance cannot
2958 be obtained.
2959 (gdbsim_close): Free sim_argv and null it out as appropriate.
2960 Close sim instances in all inferiors.
2961 (gdbsim_cntrl_c): Stop all inferiors.
2962 (gdbsim_wait):
2963 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2964
e37fd15a
SW
29652010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2966
2967 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2968 function after symbol construction is complete.
2969 Do the same for template symbol addition to template_symbols list.
2970
45c58896
SW
29712010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2972
2973 * symtab.c (symbol_get_demangled_name): Remove assertion and
2974 return NULL when language_specific.cplus_specific is not initialized.
2975 * stabsread.c (define_symbol): Set the name before calling
2976 cp_scan_for_anonymous_namespaces.
2977
33e5013e
SW
29782010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2979
2980 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2981 SYMBOL_SET_LANGUAGE.
2982 (symbol_init_language_specific): Renamed to symbol_set_language.
2983 * symtab.c (symbol_init_language_specific): Removed redundant check
2984 for language_cplus.
2985 Renamed to symbol_set_language.
2986 * stabsread.c (define_symbol): Updated.
2987 (read_enum_type): Updated
2988 * psymtab.c (add_psymbol_to_bcache): Updated.
2989 * minsyms.c (install_minimal_symbols): Updated.
2990 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2991 SYMBOL_LANGUAGE to set the language.
2992 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2993 * mdebugread.c (new_symbol): Ditto.
2994 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2995 * dwarf2read.c (new_symbol_full): Ditto.
2996 * jv-lang.c (add_class_symbol): Ditto.
2997
5da1313b
JK
29982010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2999
3000 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
3001 (make_cleanup_restore_page_info)
3002 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
3003 * gdbcmd.h (execute_command_to_string): New declaration.
3004 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
3005 (make_cleanup_restore_ui_file): Move to utils.c
3006 (execute_gdb_command) <to_string>: Move ...
3007 * top.c (execute_command_to_string): ... here. Call
3008 set_batch_flag_and_make_cleanup_restore_page_info.
3009 * utils.c (make_cleanup_restore_integer): New source file blank line.
3010 (make_cleanup_restore_uinteger): New.
3011 (struct restore_ui_file_closure, do_restore_ui_file)
3012 (make_cleanup_restore_ui_file): Move here from python/python.c.
3013 (init_page_info) <batch_flag>
3014 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
3015 (set_batch_flag_and_make_cleanup_restore_page_info): New.
3016
c820c52a
PA
30172010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
3018
3019 * thread.c (add_thread_silent): Use null_ptid instead of
3020 minus_one_ptid while getting rid of stale inferior_ptid.
3021
8da614df
CV
30222010-08-06 Corinna Vinschen <vinschen@redhat.com>
3023
3024 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
3025 Throughout, call read_encoded_value with ptr_size rather than addr_size.
3026 (decode_frame_entry_1): Remove redundant setting of
3027 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
3028 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
3029 on examined frame section. Add comment to explain why.
3030 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
3031 comment to explain usage.
3032 * gdbarch.c: Regenerate.
3033 * gdbarch.h: Regenerate.
3034
3035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
3036
e4195b40
JK
30372010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3038
3039 Code cleanup.
3040 * varobj.c (varobj_create): Move variables fi, old_fi and block to
3041 a more inner block.
3042
a3217aa0
PA
30432010-08-05 Pedro Alves <pedro@codesourcery.com>
3044
3045 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
3046 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3047 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3048 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3049 linux-tdep.o to gdb_target_obs.
3050
e2b4a699 30512010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
3052
3053 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 3054 argument.
889bf7c5 3055
50e8a0d5
HZ
30562010-08-05 Hui Zhu <teawater@gmail.com>
3057
3058 * mips-linux-tdep.c(regset.h): New include.
3059 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3060 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3061 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3062 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3063 mips_linux_regset_from_core_section): New functions.
3064 (fetch_core_registers, regset_core_fns): Deleted.
3065 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3066 Deleted regset_core_fns.
3067 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3068 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3069 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3070 and fpregset64.
3071
70728992
PA
30722010-08-04 Pedro Alves <pedro@codesourcery.com>
3073
3074 * s390-tdep.c: Include linux-tdep.h.
3075 (s390_gdbarch_init): Call linux_init_abi.
3076
a5ee0f0c
PA
30772010-08-04 Pedro Alves <pedro@codesourcery.com>
3078
3079 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3080 instead of printing "Thread" here.
3081 * linux-tdep.c: Include inferior.h.
3082 (linux_core_pid_to_str): New.
3083 (linux_init_abi): New.
3084 * linux-tdep.h (linux_init_abi): Declare.
3085 * alpha-linux-tdep.c: Include linux-tdep.h.
3086 (alpha_linux_init_abi): Call linux_init_abi.
3087 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3088 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3089 * frv-linux-tdep.c: Include linux-tdep.h
3090 (frv_linux_init_abi): Call linux_init_abi.
3091 * hppa-linux-tdep.c: Include linux-tdep.h
3092 (hppa_linux_init_abi): Call linux_init_abi.
3093 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3094 * ia64-linux-tdep.c: Include linux-tdep.h.
3095 (ia64_linux_init_abi): Call linux_init_abi.
3096 * m32r-linux-tdep.c: Include linux-tdep.h.
3097 (m32r_linux_init_abi): Call linux_init_abi.
3098 * m68klinux-tdep.c: Include linux-tdep.h.
3099 (m68k_linux_init_abi): Call linux_init_abi.
3100 * microblaze-linux-tdep.c: Include linux-tdep.h.
3101 (microblaze_linux_init_abi): Call linux_init_abi.
3102 * mips-linux-tdep.c: Include linux-tdep.h.
3103 (mips_linux_init_abi): Call linux_init_abi.
3104 * mn10300-linux-tdep.c: Include linux-tdep.h.
3105 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3106 'gdbinfo' parameter to 'info'.
3107 * ppc-linux-tdep.c: Include linux-tdep.h.
3108 (ppc_linux_init_abi): Call linux_init_abi.
3109 * sh-linux-tdep.c: Include linux-tdep.h.
3110 (sh_linux_init_abi): Call linux_init_abi.
3111 * sparc-linux-tdep.c: Include linux-tdep.h.
3112 (sparc32_linux_init_abi): Call linux_init_abi.
3113 * sparc64-linux-tdep.c: Include linux-tdep.h.
3114 (sparc64_linux_init_abi): Call linux_init_abi.
3115 * xtensa-linux-tdep.c: Include linux-tdep.h.
3116 (xtensa_linux_init_abi): Call linux_init_abi.
3117 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3118 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3119 callback.
3120
bc043ef3
DE
31212010-08-03 Doug Evans <dje@google.com>
3122
3123 * breakpoint.c (bpdisp_text): Constify bpdisps.
3124 * solib-svr4.c (solib_break_names): Constify.
3125 (bkpt_names, main_name_list): Constify.
3126 (match_main): Constify soname arg.
63cdd227
DE
3127 (bfd_lookup_symbol): Remove unnecessary forward decl.
3128 Constify symname arg.
bc043ef3
DE
3129 (enable_break): Constify bkpt_namep.
3130 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3131 (symtab_symbol_info): Constify classnames.
3132
585d1eb8
PM
31332010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3134
3135 * NEWS: Document Python value inferior function calls.
3136
2de00c64
DE
31372010-08-02 Doug Evans <dje@google.com>
3138
3139 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3140
02d868e8
PP
31412010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3142
3143 * linux-thread-db.c (libthread_db_debug): New variable.
3144 (thread_db_find_new_threads_silently): Control verbosity with it.
3145 (try_thread_db_load_1, try_thread_db_load): Likewise.
3146 (find_new_threads_once): Likewise.
3147 (_initialize_thread_db): Set/show it.
3148
a19cae16
JK
31492010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3150
3151 * common/signals.c (signals): Move the content to signals.def.
3152 Include it. Remove the INDENT comments.
3153
c2bbed2a
TT
31542010-07-30 Tom Tromey <tromey@redhat.com>
3155
3156 * Makefile.in (install-only): Install gdb-add-index.
3157 * gdb-add-index.sh: New file.
3158
f32b2f09
CR
31592010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3160
3161 * MAINTAINERS: Add myself for write after approval privileges.
3162
1276c759
JK
31632010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3164
3165 * symfile.c (addr_section_name): New function.
3166 (addrs_section_compar): Use it.
3167 (addr_info_make_relative): Use it. Move variable sect_name into a more
3168 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3169
420697bb
TT
31702010-07-30 Tom Tromey <tromey@redhat.com>
3171
3172 * configure: Rebuild.
3173 * configure.ac: Add missing case for Python 2.7.
3174
d0d99561
DD
31752010-07-29 DJ Delorie <dj@redhat.com>
3176
3177 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3178 conditions.
3179
0b29bdde
PA
31802010-07-29 Pedro Alves <pedro@codesourcery.com>
3181
3182 * PROBLEMS: Remove mention of all problems.
3183
110ed339
PA
31842010-07-28 Pedro Alves <pedro@codesourcery.com>
3185
3186 PR build/11848
3187 * configure.ac: Check for wresize.
3188 * configure, config.in: Regenerate.
3189 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3190 with HAVE_WRESIZE.
3191
326fd672
TT
31922010-07-28 Tom Tromey <tromey@redhat.com>
3193
3194 PR python/11060:
3195 * python/py-type.c (typy_legacy_template_argument): New function,
3196 extracted from typy_template_argument.
3197 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3198 value when needed.
3199
4ac8c4da
TT
32002010-07-28 Oleg Nesterov <oleg@redhat.com>
3201
3202 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3203
053315c2
TT
32042010-07-27 Tom Tromey <tromey@redhat.com>
3205
3206 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3207
3ce3b1ba
PA
32082010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3209
3210 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3211 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3212
2bb4f988
TT
32132010-07-28 Tom Tromey <tromey@redhat.com>
3214
3215 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3216
74232302
JB
32172010-07-28 Joel Brobecker <brobecker@adacore.com>
3218
3219 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3220 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3221
385d04dc
JB
32222010-07-28 Joel Brobecker <brobecker@adacore.com>
3223
3224 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3225 down, just before the block that parse the breakpoint addr_string.
3226
34eaf542
TT
32272010-07-28 Tom Tromey <tromey@redhat.com>
3228
3229 PR c++/9946:
3230 * symfile.c (reread_symbols): Clear template_symbols.
3231 * symtab.h (struct symbol) <is_cplus_template_function>: New
3232 field.
3233 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3234 (struct template_symbol): New.
3235 * symtab.c (lookup_symbol_aux_local): Use
3236 cp_lookup_symbol_imports_or_template.
3237 * objfiles.h (struct objfile) <template_symbols>: New field.
3238 * objfiles.c (relocate_one_symbol): New function.
3239 (objfile_relocate1): Use it. Relocate isolated symbols.
3240 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3241 template_arguments>: New fields.
3242 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3243 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3244 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3245 (lookup_typename): Update.
3246 * gdbtypes.c (lookup_typename): Constify "block" argument.
3247 * dwarf2read.c: Include vec.h.
3248 (symbolp): New typedef.
3249 (read_func_scope): Read template arguments. Allocate a
3250 template_symbol when needed.
3251 (read_structure_type): Read template arguments.
3252 (new_symbol_full): New function, from new_symbol. Handle
3253 DW_TAG_template_type_param and DW_TAG_template_value_param.
3254 (new_symbol): Rewrite as wrapper.
3255 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3256 * cp-namespace.c: Include language.h.
3257 (search_symbol_list): New function.
3258 (cp_lookup_symbol_imports_or_template): Likewise.
3259
d27b3be4
PA
32602010-07-28 Balazs Kezes <rlblaster@gmail.com>
3261
3262 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3263 the command window to the new size and position.
3264
0036e657
PA
32652010-07-28 Balazs Kezes <rlblaster@gmail.com>
3266
a782f43e 3267 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
3268 coordinates.
3269
36900355
PA
32702010-07-28 Balazs Kezes <rlblaster@gmail.com>
3271
a782f43e 3272 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 3273 after a detecting a resize.
a782f43e 3274 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
3275 call.
3276
db5e03ae
PA
32772010-07-28 Pedro Alves <pedro@codesourcery.com>
3278
3279 * configure.ac: Check for resize_term.
3280 * configure, config.in: Regenerate.
3281
b71fff68
JB
32822010-07-27 Joel Brobecker <brobecker@adacore.com>
3283
3284 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3285
9b1c24c8
PA
32862010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3287
3288 * dwarf2read.c (read_string): Rename to ...
3289 (read_direct_string): ... this.
3290 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3291 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3292
00390b84
JK
32932010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3294
3295 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3296 (count_events_callback, select_event_lwp_callback)
3297 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3298
26ab7092
JK
32992010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3300
3301 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3302 (_initialize_ia64_linux_nat): Install it.
3303 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3304 (linux_nat_set_status_is_event): New.
3305 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3306 cancel_breakpoints_callback, linux_nat_filter_event)
3307 (linux_nat_wait_1): Use linux_nat_status_is_event.
3308 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3309
283e6a52
TT
33102010-07-27 Tom Tromey <tromey@redhat.com>
3311
3312 * NEWS: Mention labels, .gdb_index.
3313
53a71c06
CR
33142010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3315
3316 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 3317 "start,+length" form of arguments.
53a71c06
CR
3318 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3319 since GDB 7.1"; and merge two separated paragraphs of disassemble
3320 description in "Changes in GDB 7.0".
3321
c63a1f86
JK
33222010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3323
3324 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3325 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3326 (fputs_maybe_filtered): Do not do filtering also on
3327 ! INPUT_FROM_TERMINAL_P.
3328
abebb8b0
JB
33292010-07-27 Joel Brobecker <brobecker@adacore.com>
3330
3331 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3332 in warning message.
3333
5374244e
PM
33342010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3335
3336 * python/py-value.c (valpy_call): New Function.
3337
ac0b195c
KW
33382010-07-27 Ken Werner <ken.werner@de.ibm.com>
3339
889bf7c5 3340 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
3341 types_list_elements variables.
3342
09d8bd00
TT
33432010-07-26 Tom Tromey <tromey@redhat.com>
3344
3345 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3346 TLS with DW_OP_const4u or DW_OP_const8u.
3347
9fe70b4f
TJB
33482010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3349
3350 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3351 VSX registers contents.
3352
caac4577
JG
33532010-07-26 Jerome Guitton <guitton@adacore.com>
3354
3355 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3356 its adress is null. Add comment to explain why.
3357 (new_symbol): Ditto.
3358
857d11d0
JK
33592010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3360
3361 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3362 the host signal first.
3363
1fd400ff
TT
33642010-07-23 Tom Tromey <tromey@redhat.com>
3365
3366 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3367 type_comp_units>: New fields.
3368 (dw2_get_cu): New function.
3369 (create_cus_from_index): Remove unused argument.
3370 (create_signatured_type_hash_from_index): New function.
3371 (create_addrmap_from_index): Update.
3372 (dwarf2_read_index): Handle version 2.
3373 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3374 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3375 (dw2_print_stats, dw2_expand_all_symtabs)
3376 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3377 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3378 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3379 (allocate_signatured_type_hash_table): New function.
3380 (add_signatured_type_cu_to_list): Likewise.
3381 (create_debug_types_hash_table): Use them. Set type_comp_units.
3382 (read_signatured_type): Ensure section data is available.
3383 (add_address_entry): Don't record empty ranges.
3384 (struct signatured_type_index_data): New.
3385 (write_one_signatured_type): New function.
3386 (write_psymtabs_to_index): Write type CUs.
3387 (save_gdb_index_command): Update comment.
3388 (process_type_comp_unit): Move inititalization of
3389 from_debug_types...
3390 (create_debug_types_hash_table): ... here.
3391
3a674486
JK
33922010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3393
3394 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3395 cleanup and generating of gdb script to it.
3396 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3397 and terminal size. Convert $tmpfile to a series of -ex-es.
3398
54ec275a
KS
33992010-07-23 Keith Seitz <keiths@redhat.com>
3400
3401 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3402 hook for STATIC_BLOCK types, too.
3403
8fd447e6
KS
34042010-07-23 Keith Seitz <keiths@redhat.com>
3405
3406 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3407 and vector definition.
3408
25b72dde
JK
34092010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3410
3411 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3412
96d19272
JK
34132010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3414
3415 * dwarf2read.c: Include completer.h.
3416 (save_gdb_index_command): Use matching usage command name.
3417 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3418 Set filename_completer for it.
3419
ca1f3406
TT
34202010-07-22 Tom Tromey <tromey@redhat.com>
3421
3422 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3423 type signature's per-CU data.
3424
ba25b921
PA
34252010-07-22 Pedro Alves <pedro@codesourcery.com>
3426
3427 * NEWS: Mention target reported shared libraries support by
3428 default.
3429
23bd0f7c
PA
34302010-07-21 Pedro Alves <pedro@codesourcery.com>
3431
3432 PR symtab/11827
3433
3434 Revert:
3435 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3436 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3437 and DW_TAG_volatile_type.
3438 (new_symbol): Likewise.
3439
883df6dd
SW
34402010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3441
3442 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3443 function symbols before overload resolution.
3444
269b11a2
PA
34452010-07-21 Pedro Alves <pedro@codesourcery.com>
3446
3447 * breakpoint.c (bptype_string): New, abstracted out from
3448 print_one_breakpoint_location.
3449 (print_one_breakpoint_location): Adjust.
3450 (breakpoint_1): Adjust the type column width dynamically.
3451
569b05a5
JK
34522010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3453
3454 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3455 a gdb_assert call, new comment.
3456
ad34eb2f
JK
34572010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3458
3459 * linux-nat.c (linux_handle_extended_wait): Handle case when
3460 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3461
33355866
JK
34622010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3463
3464 Code cleanup.
3465 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3466 linux_nat_wait_1. Use always LP->STATUS afterwards.
3467
26590820
HZ
34682010-07-20 Hui Zhu <teawater@gmail.com>
3469
3470 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3471 (inf_ptrace_attach): Ditto.
3472
c0edd9ed
JK
34732010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3474
3475 Make core files the process_stratum.
3476 * corefile.c (core_target): New variable.
3477 (core_file_command): Remove variable t, use core_target.
3478 * corelow.c (core_ops): Make it static.
3479 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3480 * defs.h (make_cleanup_unpush_target): New prototype.
3481 * gdbarch.h: Regenerate.
3482 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3483 * gdbcore.h (core_target): New declaration.
3484 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3485 variables ops_already_pushed and back_to. Use push_target,
3486 make_cleanup_unpush_target and discard_cleanups calls.
3487 * record.c (record_open): Replace core_stratum by a core_bfd check.
3488 * target.c (target_is_pushed): New function.
3489 (find_core_target): Remove.
3490 * target.h (enum strata) <core_stratum>: Remove.
3491 (target_is_pushed): New declaration.
3492 (find_core_target): Remove declaration.
3493 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3494 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3495
f02253f1
HZ
34962010-07-19 Hui Zhu <teawater@gmail.com>
3497
3498 * breakpoint.c (single_step_breakpoints_inserted): New
3499 function.
3500 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3501 * infrun.c (maybe_software_singlestep): Add check code.
3502 * record.c (record_resume): Add code for software single step.
3503 (record_wait): Ditto.
3504
78768c4a
JK
35052010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3506
3507 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3508 a more inner block. Remove its unused declaration initializer.
3509
431e49aa
TJB
35102010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3511
3512 * NEWS: Mention support for the new ptrace interface and hardware
3513 accelerated watchpoint conditions on powerpc-linux.
3514
bd91e7ae
OS
35152010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3516
3517 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3518 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3519 and host_address_to_string() and %s for pointers.
3520 (debug_to_remove_breakpoint): Likewise.
3521 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3522 (debug_to_can_accel_watchpoint_condition): Likewise.
3523 (debug_to_stopped_data_address): Likewise.
3524 (debug_to_watchpoint_addr_within_range): Likewise.
3525 (debug_to_insert_hw_breakpoint): Likewise.
3526 (debug_to_remove_hw_breakpoint): Likewise.
3527 (debug_to_insert_watchpoint): Likewise.
3528 (debug_to_remove_watchpoint): Likewise.
3529
29df156d
SW
35302010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3531
3532 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3533 argument.
3534 (cplus_specific): New struct.
3535 * symtab.c (symbol_set_demangled_name): Updated.
3536 Use cplus_specific for cplus symbols.
3537 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3538 struct for cplus symbols.
3539 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3540 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3541 * symtab.c (symbol_init_cplus_specific): New function.
3542
b250c185
SW
35432010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3544
3545 * symtab.h (symbol_set_demangled_name): New function.
3546 (symbol_get_demangled_name): New function.
3547 * symtab.c (symbol_set_demangled_name): New function.
3548 (symbol_get_demangled_name): New function.
3549 (symbol_init_language_specific): Use demangled_name setter and getter.
3550 (symbol_set_names): Ditto.
3551 (symbol_natural_name): Ditto.
3552 (symbol_demangled_name): Ditto.
3553 * dwarf2read.c (new_symbol): Ditto.
3554
afa16725
SW
35552010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3556
3557 * symtab.h: Renamed cplus_specific to mangled_lang.
3558 * symtab.c (symbol_init_language_specific): Updated.
3559 (symbol_set_names): Updated.
3560 (symbol_natural_name): Updated.
3561 (symbol_demangled_name): Updated.
3562 * ada-lang.c (ada_decode_symbol): Updated.
3563 * dwarf2read.c (new_symbol): Updated.
3564
3cbaedff
KW
35652010-07-14 Ken Werner <ken.werner@de.ibm.com>
3566
3567 * valops.c (value_assign): Do not call to value_coerce_to_target.
3568 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3569
c932f1be
KW
35702010-07-14 Ken Werner <ken.werner@de.ibm.com>
3571
3572 * MAINTAINERS: Add myself for write after approval privileges.
3573
91158a56
TT
35742010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3575
3576 * c-valprint.c (c_val_print): Add embedded_offset to address in
3577 call to val_print_array_elements.
3578
b3b272e1
TT
35792010-07-13 Tom Tromey <tromey@redhat.com>
3580
3581 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3582
bb3fa9d0
TT
35832010-07-13 Tom Tromey <tromey@redhat.com>
3584
3585 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3586 objfile.
3587
dd786858
TT
35882010-07-13 Tom Tromey <tromey@redhat.com>
3589
3590 * symfile.c (set_initial_language): Update.
3591 (deduce_language_from_filename): Argument type now const.
3592 * symtab.h (find_main_filename): Update.
3593 (deduce_language_from_filename): Update.
3594 * symtab.c (find_main_filename): Make result const.
3595 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3596 * psymtab.c (find_symbol_file_from_partial): Change return type.
3597 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3598 Make result const.
3599
9291a0cd
TT
36002010-07-13 Tom Tromey <tromey@redhat.com>
3601
3602 * breakpoint.c (save_cmdlist): No longer static.
3603 * gdbcmd.h (save_cmdlist): Declare.
3604 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3605 OBJF_READNOW on objfile if readnow_symbol_files.
3606 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3607 (elf_sym_fns_gdb_index): New global.
3608 * dwarf2read.c: Include exceptions.h.
3609 (offset_type): New.
3610 (struct mapped_index): New.
3611 (dwarf2_per_cu_data_ptr): New typedef.
3612 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3613 New fields.
3614 (GDB_INDEX_SECTION): New define.
3615 (struct dwarf2_per_cu_quick_data): New.
3616 (struct dwarf2_per_cu_data) <objfile>: New field.
3617 <psymtab>: Removed.
3618 <v>: New field.
3619 (byte_swap): New function.
3620 (MAYBE_SWAP): New macro.
3621 (INDEX_SUFFIX): New macro.
3622 (dw2_do_instantiate_symtab): New function.
3623 (dw2_instantiate_symtab): Likewise.
3624 (create_cus_from_index): Likewise.
3625 (create_addrmap_from_index): Likewise.
3626 (mapped_index_string_hash): Likewise.
3627 (find_slot_in_mapped_hash): Likewise.
3628 (dwarf2_read_index): Likewise.
3629 (dw2_setup): Likewise.
3630 (dw2_require_line_header): Likewise.
3631 (dw2_require_full_path): Likewise.
3632 (dw2_find_last_source_symtab): Likewise.
3633 (dw2_forget_cached_source_info): Likewise.
3634 (dw2_lookup_symtab): Likewise.
3635 (dw2_lookup_symbol): Likewise.
3636 (dw2_do_expand_symtabs_matching): Likewise.
3637 (dw2_pre_expand_symtabs_matching): Likewise.
3638 (dw2_print_stats): Likewise.
3639 (dw2_dump): Likewise.
3640 (dw2_relocate): Likewise.
3641 (dw2_expand_symtabs_for_function): Likewise.
3642 (dw2_expand_all_symtabs): Likewise.
3643 (dw2_expand_symtabs_with_filename): Likewise.
3644 (dw2_find_symbol_file): Likewise.
3645 (dw2_map_ada_symtabs): Likewise.
3646 (dw2_expand_symtabs_matching): Likewise.
3647 (dw2_find_pc_sect_symtab): Likewise.
3648 (dw2_map_symbol_names): Likewise.
3649 (dw2_map_symbol_filenames): Likewise.
3650 (dw2_has_symbols): Likewise.
3651 (dwarf2_gdb_index_functions): New global.
3652 (dwarf2_initialize_objfile): New function.
3653 (process_psymtab_comp_unit): Update.
3654 (add_partial_subprogram): Likewise.
3655 (dwarf2_psymtab_to_symtab): Likewise.
3656 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3657 (process_full_comp_unit): Update.
3658 (find_file_and_directory): New function.
3659 (read_file_scope): Use find_file_and_directory.
3660 (dwarf2_per_cu_objfile): Update.
3661 (dwarf2_per_cu_addr_size): Update.
3662 (dwarf2_per_cu_offset_size): Update.
3663 (dwarf2_free_objfile): Free the index, if needed.
3664 (dwarf2_per_objfile_free): Unmap the index, if needed.
3665 (struct strtab_entry): New.
3666 (hash_strtab_entry): New function.
3667 (eq_strtab_entry): Likewise.
3668 (create_strtab): Likewise.
3669 (add_string): Likewise.
3670 (struct symtab_index_entry): New.
3671 (struct mapped_symtab): New.
3672 (hash_symtab_entry): New function.
3673 (eq_symtab_entry): Likewise.
3674 (delete_symtab_entry): Likewise.
3675 (create_index_table): Likewise.
3676 (create_mapped_symtab): Likewise.
3677 (cleanup_mapped_symtab): Likewise.
3678 (find_slot): Likewise.
3679 (hash_expand): Likewise.
3680 (add_index_entry): Likewise.
3681 (add_indices_to_cpool): Likewise.
3682 (write_hash_table): Likewise.
3683 (add_address_entry): Likewise.
3684 (write_psymbols): Likewise.
3685 (write_obstack): Likewise.
3686 (unlink_if_set): Likewise.
3687 (write_psymtabs_to_index): Likewise.
3688 (save_gdb_index_command): Likewise.
3689 (_initialize_dwarf2_read): Install "save gdb-index"
3690 command.
3691 (create_all_comp_units): Initialize 'objfile' field of CU.
3692 (dwarf2_locate_sections): Check for .gdb_index.
3693 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3694 * symfile.h (dwarf2_initialize_objfile): Declare.
3695
58b6ab13
TT
36962010-07-13 Tom Tromey <tromey@redhat.com>
3697
3698 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3699 (basic_lookup_transparent_type): Likewise.
3700 * symfile.h (struct quick_symbol_functions)
3701 <pre_expand_symtabs_matching>: New field.
3702 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3703 (psym_functions): Update.
3704
0f5238ed
TT
37052010-07-13 Tom Tromey <tromey@redhat.com>
3706
3707 PR breakpoints/8357:
3708 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3709 * linespec.c (decode_line_1): Update comment. Call decode_label.
3710 (decode_label): New function.
3711 (symbol_found): Handle LOC_LABEL.
3712 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3713 domain. Call add_symbol_to_list.
3714
9aa1f1e3
TT
37152010-07-13 Tom Tromey <tromey@redhat.com>
3716
3717 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3718 * dwarf2loc.c (find_location_expression): Use
3719 dwarf2_per_cu_text_offset.
3720 (dwarf2_evaluate_loc_desc): Likewise.
3721 (dwarf2_loc_desc_needs_frame): Likewise.
3722 (compile_dwarf_to_ax): Likewise.
3723 (loclist_describe_location): Likewise.
3724 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3725 (dwarf2_per_cu_objfile): Update comment.
3726
953ac07e
JK
37272010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3728
3729 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3730 * p-lang.c (pascal_printstr): Likewise.
3731
f04e4012
TT
37322010-07-09 Tom Tromey <tromey@redhat.com>
3733
3734 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3735 'hint' if it is NULL.
3736
f4dfd9c0
HZ
37372010-07-09 Hui Zhu <teawater@gmail.com>
3738
3739 * source.c (print_source_lines_base): Add check for noprint.
3740
7e6e39e5
JB
37412010-07-08 Joel Brobecker <brobecker@adacore.com>
3742
3743 * python/python-config.py: Resync with Python 2.7 version of this
3744 script.
3745
76b8507d
JB
37462010-07-08 Joel Brobecker <brobecker@adacore.com>
3747
3748 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3749
797054e6
JB
37502010-07-07 Joel Brobecker <brobecker@adacore.com>
3751
3752 * NEWS: Create a new section for the next release branch.
3753 Rename the section of the current branch, now that it has
3754 been cut.
3755
c80befee 37562010-07-07 Joel Brobecker <brobecker@adacore.com>
3757
3758 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3759 * version.in: Bump version to 7.2.50.20100707-cvs.
3760
ac56253d
TT
37612010-07-07 Tom Tromey <tromey@redhat.com>
3762
3763 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3764 LOC_COMPUTED symbol.
3765 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3766 (dwarf2_loc_desc_needs_frame): Likewise.
3767 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3768 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3769 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3770 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3771 'offset' argument.
3772 (struct dwarf2_frame_cache) <text_offset>: New field.
3773 (dwarf2_frame_cache): Set new field.
3774 (dwarf2_frame_prev_register): Update.
3775 (dwarf2_frame_sniffer): Update.
3776 (dwarf2_frame_base_sniffer): Update.
3777 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3778
0cf6dd15
TJB
37792010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3780 Thiago Jung Bauermann <bauerman@br.ibm.com>
3781
3782 Support for hw accelerated condition watchpoints in booke powerpc.
3783
3784 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3785 and move to eval.c. Change callers.
3786 (insert_bp_location): Pass watchpoint condition in
3787 target_insert_watchpoint.
3788 (remove_breakpoint_1) Pass watchpoint condition in
3789 target_remove_watchpoint.
3790 (watchpoint_locations_match): Call
3791 target_can_accel_watchpoint_condition.
3792 * eval.c: Include wrapper.h.
3793 (fetch_subexp_value): Moved from breakpoint.c.
3794 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3795 Formatting fix.
3796 (can_use_watchpoint_cond_accel): New function.
3797 (calculate_dvc): Likewise.
3798 (num_memory_accesses): Likewise.
3799 (check_condition): Likewise.
3800 (ppc_linux_can_accel_watchpoint_condition): Likewise
3801 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3802 check_condition and calculate_dvc.
3803 (ppc_linux_remove_watchpoint): Likewise.
3804 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3805 ppc_linux_can_accel_watchpoint_condition
3806 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3807 condition.
3808 (debug_to_remove_watchpoint): Likewise.
3809 (debug_to_can_accel_watchpoint_condition): New function.
3810 (update_current_target): Set to_can_accel_watchpoint_condition.
3811 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3812 * target.h: Add opaque declaration for struct expression.
3813 (struct target_ops) <to_insert_watchpoint>,
3814 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3815 <to_can_accel_watchpoint_condition>: New member.
3816 condition. Update all callers and implementations.
3817 (target_can_accel_watchpoint_condition): New macro.
3818 * value.c (free_value_chain): New function.
3819 * value.h (fetch_subexp_value): New prototype.
3820 (free_value_chain): Likewise.
3821
2f2241f1
UW
38222010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3823
3824 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3825 from gdbarch_core_regset_sections also for .reg if present.
3826
3827 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3828 section size for .reg.
3829 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3830 (ppc_linux_vmx_regset_sections): Likewise.
3831 (ppc_linux_fp_regset_sections): Likewise.
3832 (ppc64_linux_vsx_regset_sections): New variable.
3833 (ppc64_linux_vmx_regset_sections): Likewise.
3834 (ppc64_linux_fp_regset_sections): Likewise.
3835 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3836 for current word size.
3837
1fd7cdc2
JB
38382010-07-06 Joel Brobecker <brobecker@adacore.com>
3839
3840 * server.c (myresume): Make static.
3841
11763c18
TT
38422010-07-06 Tom Tromey <tromey@redhat.com>
3843
3844 * configure, config.in: Rebuild.
3845 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3846 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3847
a6cc4789
AS
38482010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3849
3850 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3851 "clear".
3852
f9e9243a
UW
38532010-07-06 Ken Werner <ken.werner@de.ibm.com>
3854
3855 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3856 * gdbtypes.c (floatformats_ieee_half): New variable.
3857 * doublest.c (floatformat_from_length): Set format to
3858 gdbarch_half_format if length matches.
3859 * gdbarch.sh (half_bit): New architecture method.
3860 (half_format): Likewise.
3861 * gdbarch.h: Regenerate.
3862 * gdbarch.c: Likewise.
3863
4e5799b6
JK
38642010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3865 Joel Brobecker <brobecker@adacore.com>
3866
3867 Fix re-run of PIE executable, PR shlibs/11776.
3868 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3869 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3870
86e4bafc
JK
38712010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3872 Joel Brobecker <brobecker@adacore.com>
3873
3874 * auxv.c (memory_xfer_auxv): Update attach comment.
3875 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3876 svr4_relocate_main_executable.
3877 (svr4_solib_create_inferior_hook): Make the call to
3878 svr4_relocate_main_executable unconditional.
3879
3cd07d20
JK
38802010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3881 Joel Brobecker <brobecker@adacore.com>
3882
3883 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3884
0a1e94c7
JK
38852010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3886 Joel Brobecker <brobecker@adacore.com>
3887
3888 Fix attaching to PIEs prelinked on the disk after the process was
3889 started.
3890 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3891 Verify it against bfd_get_arch_size. Try to match arbitrary
3892 displacement for the phdrs comparison.
3893
5387647f
TT
38942010-07-02 Tom Tromey <tromey@redhat.com>
3895
3896 PR exp/11780:
3897 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3898 value as optimized-out.
3899
38b6c3b3
TJB
39002010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3901 Thiago Jung Bauermann <bauerman@br.ibm.com>
3902
3903 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3904 represent?" question in comment. Change comment to a proper sentence.
3905
a17ac5b0
TT
39062010-07-02 Ken Werner <ken.werner@de.ibm.com>
3907
3908 * c-valprint.c (c_val_print): Fix printing of character vectors.
3909
bddaafad
JK
39102010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3911
3912 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3913 create_breakpoint prototype.
3914
d41c0fc8
PA
39152010-07-01 Pedro Alves <pedro@codesourcery.com>
3916
3917 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3918 usefulness suggestion of multiple breakpoints at same location.
3919
dc10affe
PA
39202010-07-01 Pedro Alves <pedro@codesourcery.com>
3921
3922 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3923
cabe9ab6
PA
39242010-07-01 Pedro Alves <pedro@codesourcery.com>
3925
3926 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3927 (loclist_tracepoint_var_ref): Handle optimized out values.
3928
cce7e648
PA
39292010-07-01 Pedro Alves <pedro@codesourcery.com>
3930
3931 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3932 unnecessary space in string.
3933 * filesystem.c (_initialize_filesystem): Ditto.
3934 * frame.c (_initialize_frame): Ditto.
3935 * infcmd.c (step_once): Ditto.
3936 * infrun.c (_initialize_infrun): Ditto.
3937 * linux-nat.c (linux_child_follow_fork): Ditto.
3938 * maint.c (maintenance_deprecate): Ditto.
3939 * memattr.c (_initialize_mem): Ditto.
3940 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3941 * monitor.c (monitor_open): Ditto.
3942 * procfs.c (procfs_xfer_memory): Ditto.
3943 * reverse.c (bookmarks_info): Ditto.
3944 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3945 * stack.c (_initialize_stack): Ditto.
3946 * tracepoint.c (_initialize_tracepoint): Ditto.
3947 * xtensa-tdep.c (xtensa_supply_gregset,
3948 xtensa_regset_from_core_section): Ditto.
3949
b65c7efe
TT
39502010-07-01 Tom Tromey <tromey@redhat.com>
3951
3952 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3953 check_all_valid.
3954 * value.c (value_entirely_optimized_out): Invert result. Update
3955 for new function name.
3956
0fb4aa4b
PA
39572010-07-01 Pedro Alves <pedro@codesourcery.com>
3958
3959 Static tracepoints support.
3960
3961 * NEWS: Mention new support for static tracepoints.
3962 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3963 qXfer:statictrace:read.
3964 (New features in the GDB remote stub, GDBserver): Mention static
3965 tracepoints support using an UST based backend.
3966 (New commands): Mention "info static-tracepoint-markers" and
3967 "strace".
3968 * breakpoint.c (is_marker_spec): New.
3969 (is_tracepoint): Handle static tracepoints.
3970 (validate_commands_for_breakpoint): Static tracepoints can't do
3971 while-stepping.
3972 (static_tracepoints_here): New.
3973 (bpstat_what): Handle static tracepoints.
3974 (print_one_breakpoint_location, allocate_bp_location, mention):
3975 Ditto.
3976 (create_breakpoint_sal): Ditto.
3977 (decode_static_tracepoint_spec): New.
3978 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3979 `type_wanted'. Adjust. Handle static tracepoint marker
3980 locations.
3981 (break_command_1): Adjust.
3982 (update_static_tracepoint): New.
3983 (update_breakpoint_locations): Handle static tracepoints.
3984 (breakpoint_re_set_one): Handle static tracepoint marker
3985 locations.
3986 (disable_command, enable_command): Handle static tracepoints.
3987 (trace_command, ftrace_command): Adjust.
3988 (strace_command): New.
3989 (create_tracepoint_from_upload): Adjust.
3990 (save_breakpoints): Handle static tracepoints.
3991 (_initialize_breakpoint): Install the "strace" command.
3992 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3993 (struct breakpoint): New fields static_trace_marker_id and
3994 static_trace_marker_id_idx.
3995 (breakpoints_here_p): Declare.
3996 (create_breakpoint): Adjust.
3997 (static_tracepoints_here): Declare.
3998 * remote.c (struct remote_state) <static_tracepoints>: New field.
3999 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
4000 (remote_static_tracepoint_marker_at): New.
4001 (remote_static_tracepoint_markers_by_strid): New.
4002 (remote_static_tracepoint_feature): New.
4003 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
4004 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
4005 (remote_supports_static_tracepoints): New.
4006 (remote_download_tracepoint): Download static tracepoints.
4007 (init_remote_ops): Install remote_static_tracepoint_marker_at and
4008 remote_static_tracepoint_markers_by_strid.
4009 (_initialize_remote): Install set|show remote static-tracepoints,
4010 and set|show remote read-sdata-object commands.
4011 * target.c (update_current_target): Inherit and default
4012 to_static_tracepoint_marker_at, and
4013 to_static_tracepoint_markers_by_strid.
4014 * target.h (static_tracepoint_marker): Forward declare.
4015 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 4016 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
4017 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
4018 (struct target_ops): New fields to_static_tracepoint_marker_at and
4019 to_static_tracepoint_markers_by_strid.
4020 (target_static_tracepoint_marker_at)
4021 (target_static_tracepoint_markers_by_strid): New.
4022 * tracepoint.c: Include source.h.
4023 (validate_actionline): Handle $_sdata.
4024 (struct collection_list): New field strace_data.
4025 (add_static_trace_data): New.
4026 (clear_collection_list): Clear strace_data.
4027 (stringify_collection_list): Account for a possible static trace
4028 data collection.
4029 (encode_actions_1): Encode an $_sdata collection.
4030 (parse_tracepoint_definition): Handle static tracepoints.
4031 (parse_static_tracepoint_marker_definition): New.
4032 (release_static_tracepoint_marker): New.
4033 (print_one_static_tracepoint_marker): New.
4034 (info_static_tracepoint_markers_command): New.
4035 (sdata_make_value): New.
4036 (_initialize_tracepoint): Create the $_sdata convenience variable.
4037 Add the "info static-tracepoint-markers" command.
4038 Mention $_sdata in the "collect" command's help output.
4039 * tracepoint.h (struct static_tracepoint_marker): New.
4040 (parse_static_tracepoint_marker_definition)
4041 (release_static_tracepoint_marker): Declare.
4042 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4043 * python/py-breakpoint.c (bppy_new): Adjust.
4044
aac63f0f
JB
40452010-06-30 Joel Brobecker <brobecker@adacore.com>
4046
4047 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4048 including Python.h.
4049
e68994a7
DE
40502010-06-29 Doug Evans <dje@google.com>
4051
3863f96c
DE
4052 PR gdb/11702
4053 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4054 DW_AT_external is present.
4055
254e6b9e
DE
4056 PR gdb/11702
4057 * NEWS: Add entry.
4058 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4059 create a symbol for the field and record the value.
4060 (new_symbol): Handle DW_TAG_member.
4061 * gdbtypes.c (field_is_static): Remove FIXME.
4062 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4063 only ignore LOC_CONST symbols that are enums.
4064
6e70227d
DE
4065 * dwarf2read.c: Remove trailing whitespace.
4066
e68994a7
DE
4067 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4068 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4069 (struct main_type, field loc): Delete dwarf_block.
4070 (FIELD_DWARF_BLOCK): Delete.
4071 (SET_FIELD_DWARF_BLOCK): Delete.
4072 (TYPE_FIELD_DWARF_BLOCK): Delete.
4073 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4074 Update.
4075
a480d2f6
HZ
40762010-06-29 Hui Zhu <teawater@gmail.com>
4077
4078 * record.c (set_record_pic_cmdlist,
4079 show_record_pic_cmdlist): New variables.
4080 (set_record_pic_command,
4081 show_record_pic_command): New functions.
4082 (record_pic_function, record_pic_line, record_pic_enum,
4083 set_record_pic_type, record_pic_hide_nofunction,
4084 record_pic_hide_nosource, record_pic_hide_same): New variables.
4085 (record_pic_fputs): New function.
4086 (function_list, node_list, edge_list): New struct.
4087 (function_list, node_list, edge_list): New variables.
4088 (record_pic_cleanups, record_pic_node,
4089 record_pic_edge, cmd_record_pic): New functions.
4090 (_initialize_record): Add new commands for record pic.
4091
a0d7a4ff
JK
40922010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4093
4094 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4095 ALLOCATE_CPLUS_STRUCT_TYPE.
4096
595939de 40972010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
4098 Tom Tromey <tromey@redhat.com>
4099 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
4100
4101 * value.c (pack_unsigned_long): New function.
4102 (value_from_ulongest): New function.
4103 * value.h (value_from_ulongest): Declare.
4104 * python/python.c (_initialize_python): Call
4105 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4106 * python/python-internal.h: Define thread_object.
4107 (gdbpy_inferiors, gdbpy_selected_thread)
4108 (frame_info_to_frame_object, create_thread_object)
4109 (find_thread_object, find_inferior_object)
4110 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4111 (gdbpy_is_value_object, get_addr_from_python): Declare.
4112 * python/py-value.c (builtin_type_upylong): Define.
4113 (convert_value_from_python): Add logic for ulongest.
4114 (gdbpy_is_value_object): New function.
4115 * python/py-utils.c (get_addr_from_python): New function.
4116 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4117 (gdbpy_selected_frame): Use PyObject over frame_info.
4118 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4119 py-infthread.
4120 (SUBDIR_PYTHON_SRCS): Likewise.
4121 (py-inferior.o): New Rule.
4122 (py-infthread.o): New Rule.
4123 * python/py-inferior.c: New File.
4124 * python/py-infthread.c: New File.
4125
98751a41
JK
41262010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4127
4128 * c-typeprint.c (c_type_print_base): For no fields check include also
4129 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4130 * dwarf2read.c (struct typedef_field_list)
4131 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4132 (dwarf2_add_typedef): New.
4133 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4134 Copy also FI.TYPEDEF_FIELD_LIST.
4135 * gdbtypes.h (struct typedef_field)
4136 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4137 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4138 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4139
41f62f39
JK
41402010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4141
4142 * cp-namespace.c (cp_lookup_nested_type): New variable
4143 concatenated_name. Turn the current return condition into a reverse
4144 one. Call also lookup_static_symbol_aux on the constructed qualified
4145 name.
4146 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4147 other files into a called ...
4148 (lookup_static_symbol_aux): ... new function here.
4149 * symtab.h (lookup_static_symbol_aux): New prototype.
4150 * valops.c (value_maybe_namespace_elt): Call also
4151 lookup_static_symbol_aux if we failed otherwise.
4152
af53d231
JK
41532010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 Fix PR c++/11703 and PR gdb/1448.
4156 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4157 FIRST_ITER check.
4158
9655fd1a
JK
41592010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4160
4161 Fix modification of cplus_struct_default.
4162 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4163 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4164 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4165
9279c692
JB
41662010-06-28 Joel Brobecker <brobecker@adacore.com>
4167
4168 * NEWS: Add entry announcing the python directory.
4169
d3f41bb1
TT
41702010-06-28 Tom Tromey <tromey@redhat.com>
4171
4172 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4173
23e7acfb
DE
41742010-06-28 Doug Evans <dje@google.com>
4175
4176 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4177 All callers updated.
4178
6036c742
JK
41792010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4180
4181 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4182 obstack_begin after each obstack_free.
4183
9f18a3b3
DE
41842010-06-27 Doug Evans <dje@google.com>
4185
1596cb5d
DE
4186 * value.c (value_static_field): Use `switch' instead of `if'.
4187 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4188
9f18a3b3
DE
4189 * valops.c (search_struct_field): Fix typo in error message.
4190
43dabe42
UW
41912010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4192
4193 * dwarf2expr.c (execute_stack_op): Place preprocessor
4194 directives at the start of the source line.
4195
0f3bb72e
PH
41962010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4197
6036c742
JK
4198 * defs.h (make_command_stats_cleanup): Declare.
4199 (set_display_time): Declare.
4200 (set_display_space): Declare.
4201 * event-top.c (command_handler): Use make_command_stats_cleanup.
4202 * main.c (display_time, display_space): Move definitions to utils.c.
4203 (captured_main): Use make_command_stats_cleanup to get start-up
4204 statistics.
4205 Use set_display_time and set_display_space for processing OPT_STATISTICS
4206 case.
4207 * maint.c (maintenance_time_display): Use set_display_time.
4208 (maintenance_space_display): Use set_display_space.
4209 * top.c (execute_command): Remove obsolete 'maint time' code.
4210 (command_loop): Use make_command_stats_cleanup.
4211 * utils.c (struct cmd_stats): Structure for storing initial time
4212 and space usage.
4213 (display_time, display_space): Move definitions here from utils.c.
4214 (set_display_time): New function.
4215 (set_display_space): New function.
4216 (make_command_stats_cleanup): New function.
4217 (report_command_stats): New auxiliary function for
4218 make_command_stats_cleanup.
0f3bb72e 4219
070c8028
UW
42202010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4221
4222 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4223 hosts where CORE_ADDR is long long.
4224
bc9f0842
TT
42252010-06-25 Tom Tromey <tromey@redhat.com>
4226
4227 PR python/10808:
4228 * python/python.c (execute_gdb_command): Add keywords. Accept
4229 "to_string" argument.
4230 (struct restore_ui_file_closure): New.
4231 (restore_ui_file): New function.
4232 (make_cleanup_restore_ui_file): Likewise.
4233 (GdbMethods) <execute>: Update.
4234
c0cc4c83
UW
42352010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4236
4237 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4238 during inferior call stack frame setup.
4239
f1d8ee66
UW
42402010-06-25 Ken Werner <ken.werner@de.ibm.com>
4241
4242 * solib-spu.c: Include "exception.h".
4243 (ocl_program_data_key): New variable.
4244 (append_ocl_sos): New function.
4245 (ocl_enable_break): Likewise.
4246 (spu_current_sos): Call append_ocl_sos.
4247 (spu_solib_loaded): Call ocl_enable_break.
4248 (_initialize_spu_solib): Register ocl_program_data_key.
4249
19c0c0f8
UW
42502010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4251
4252 * cp-support.c (reset_directive_searched): New function.
4253 (make_symbol_overload_list_using): Prevent recursive calls.
4254
0f6a939d
PM
42552010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4256
4257 * printcmd.c (print_variable_and_value): Print error message on
4258 caught exception.
4259
f2c7657e
UW
42602010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4261
4262 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4263 of stack values.
4264 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4265 "value" member.
4266 (dwarf_expr_push): Change input type to ULONGEST.
4267 (dwarf_expr_fetch): Change return type to ULONGEST.
4268 (dwarf_expr_fetch_address): Add prototype.
4269 (dwarf2_read_address): Remove prototype.
4270 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4271 Truncate stack values to ctx->addr_size bytes.
4272 (dwarf_expr_fetch): Change return value to ULONGEST.
4273 (dwarf_expr_fetch_address): New function.
4274 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4275 when appropriate. Update for struct dwarf_expr_piece changes.
4276 (dwarf2_read_address): Remove.
4277 (unsigned_address_type): Remove.
4278 (signed_address_type): Remove.
4279 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4280 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4281 values. Perform operations on ULONGEST instead of on GDB values,
4282 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4283 values and DW_OP_deref results as unsigned integers.
4284 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4285 changes.
4286 (write_pieced_value): Likewise.
4287 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4288 dwarf_expr_fetch when appropriate.
4289 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4290 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4291 instead of dwarf_expr_fetch when appropriate.
4292
b1d61bc9
PM
42932010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4294
4295 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4296
b14285f6
JB
42972010-06-24 Joel Brobecker <brobecker@adacore.com>
4298
4299 * python/python.c (_initialize_python): Add new "constant"
4300 PYTHONDIR in gdb module. Insert this path at the head of
4301 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4302 exec its __init__.py script if it exists in that directory.
4303
fd60dc69
KB
43042010-06-24 Kevin Buettner <kevinb@redhat.com>
4305
4306 * rx-tdep.c (RX_ACC_REGNUM): Define.
4307 (RX_NUM_REGS): Redefine to 26.
4308 (rx_register_name): Add register "acc". Change order of several
4309 registers. Change name of "vct" register to "fintv" to match RX
4310 documentation.
4311 (rx_register_type): Add case for RX_ACC_REGNUM.
4312
18430289
TT
43132010-06-24 Tom Tromey <tromey@redhat.com>
4314
4315 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4316
40618926
JK
43172010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4318 Tom Tromey <tromey@redhat.com>
4319
4320 Fix GDB startup on readonly filesystem.
4321 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4322
628fe4e4
JK
43232010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4324 Pedro Alves <pedro@codesourcery.com>
4325
4326 Fix PR 9436.
4327 * breakpoint.c (handle_jit_event): New function.
4328 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4329 jit, err, table and bs_class. New variables shlib_event, jit_event,
4330 this_action and bptype. Change bs_class assignments to this_action
4331 assignments. new unhandled bptype internal error. Move here
4332 shlib_event and jit_event handling from handle_inferior_event.
4333 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4334 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4335 BPSTAT_WHAT_CHECK_JIT.
4336 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4337 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4338 (handle_inferior_event): Reinitialize frame and gdbarch after
4339 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4340 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4341 gdbarch when frame gets reinitialized.
4342
f1421989
HZ
43432010-06-24 Hui Zhu <teawater@gmail.com>
4344
4345 * printcmd.c (ui_printf): New function.
4346 (printf_command): Call ui_printf.
4347 (_initialize_printcmd): New command "eval".
4348
d03285ec
UW
43492010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4350
4351 * infrun.c (handle_inferior_event): Handle presence of single-step
4352 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4353 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4354 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4355 * breakpoint.c (detach_single_step_breakpoints): New function.
4356 (detach_breakpoints): Call it.
4357 (cancel_single_step_breakpoints): New function.
4358 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4359
4360 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4361 (spu_gdbarch_init): Install it.
4362
38f6b338
JK
43632010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4364
4365 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4366 * configure: Regenerate.
4367
bb08c432
HZ
43682010-06-22 Hui Zhu <teawater@gmail.com>
4369
4370 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4371 (i386_process_record): Ditto.
4372 * record.c (record_memory_query): New variable.
4373 (_initialize_record): New command "set record memory-query".
4374 * record.h (record_memory_query): New extern.
4375
b55078be
DE
43762010-06-21 Doug Evans <dje@google.com>
4377
4378 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4379 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4380 (i386_syscall_p): Change type of lengthp to int.
4381 (i386_displaced_step_fixup): Handle kernels that run one past a
4382 syscall insn.
4383 * i386-linux-tdep.c (i386_linux_init_abi): Use
4384 i386_displaced_step_copy_insn instead of
4385 simple_displaced_step_copy_insn.
4386
75079b2b
TT
43872010-06-21 Tom Tromey <tromey@redhat.com>
4388
4389 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4390 (dwarf_type_encoding_name): Likewise.
4391
b00fdb78
TT
43922010-06-21 Tom Tromey <tromey@redhat.com>
4393
4394 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4395 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4396 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4397 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4398 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4399 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4400 * dwarf2read.c (tag_type_to_type): Create a new error type on
4401 failure.
4402 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4403 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4404
84951ab5
MS
44052010-06-21 Michael Snyder <msnyder@vmware.com>
4406
889bf7c5 4407 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
4408 not add_abbrev_prefix_cmd, for "enable breakpoints".
4409
d4a087c7
UW
44102010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4411
4412 * dwarf2loc.c (find_location_expression): Add relocation offset
4413 to base-address-selection entry base addresses. Read addresses
4414 (and offsets) as signed/unsigned integers, depending on the
4415 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4416 (loclist_describe_location): Likewise.
4417 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4418 unsigned integer. Do not call dwarf2_read_address.
4419 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4420
13def385
UW
44212010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4422
4423 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4424 value instead of hard-coded SPU_LS_SIZE.
4425 (spu_software_single_step): Likewise.
4426 * spu-tdep.h (SPU_LS_SIZE): Remove.
4427
d2ed6730
UW
44282010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4429
4430 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4431 limit on local store memory accesses.
4432 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4433 * spu-tdep.c (spu_lslr): Remove.
4434 (spu_pointer_to_address): Do not truncate addresses.
4435 (spu_integer_to_address): Likewise.
4436 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4437 * spu-tdep.h: Add comments.
4438 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4439 (SPU_OVERLAY_LMA): Define.
4440
6aed2dbc
SS
44412010-06-18 Stan Shebs <stan@codesourcery.com>
4442
a61408f8
SS
4443 * osdata.c (get_osdata): Warn separately if target does not report
4444 type list.
4445 (info_osdata_command): Allow empty type, report error if target
4446 does not return available types of OS data.
4447 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4448 types if no annex supplied.
4449
6aed2dbc
SS
4450 * thread.c (thread_id_make_value): Make a value representing the
4451 current thread.
4452 (_initialize_thread): Create $_thread.
4453
ec61707d
JB
44542010-06-17 Joel Brobecker <brobecker@adacore.com>
4455
4456 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4457 last local variable declaration. No real code change.
4458
60606b2c
TT
44592010-06-17 Tom Tromey <tromey@redhat.com>
4460
4461 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4462 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4463 temporary obstack.
4464
65d79d4b
SDJ
44652010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4466 Jan Kratochvil <jan.kratochvil@redhat.com>
4467
4468 * breakpoint.c: Include parser-defs.h.
4469 (watchpoint_exp_is_const): New function.
4470 (watch_command_1): Call watchpoint_exp_is_const to check
4471 if the expression is constant.
4472
0407b3f1
AS
44732010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4474
4475 * configure.ac: Check for RDYNAMIC also for cross builds.
4476 * configure: Regenerate.
4477
98d64339
PA
44782010-06-15 Pedro Alves <pedro@codesourcery.com>
4479
4480 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4481 (SFILES): Remove solib-null.c, add solib-target.c.
4482 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4483 (ALLDEPFILES): Remove solib-target.c.
4484 * solib-target.c (_initialize_solib_target): Set
4485 current_target_so_ops to solib_target_so_ops if not already set.
4486 * solib-null.c: Delete.
4487
6a271cae
PA
44882010-06-14 Pedro Alves <pedro@codesourcery.com>
4489
4490 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4491 bytecode.
4492
1e9beacb
UW
44932010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4494
4495 * cp-valprint.c (cp_print_static_field): Members of
4496 dont_print_stat_array_obstack are of type "struct type *".
4497 (_initialize_cp_valprint): Likewise.
4498
21a176fb
UW
44992010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4500
4501 * frame.c (frame_register_unwind): Do not access contents
4502 of "optimized out" unwound register value.
4503
25b524e8
JK
45042010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4505
4506 * ada-lang.h (ada_print_type): Make varstring const.
4507 * ada-typeprint.c (print_func_type): Make name const.
4508 (ada_print_type): Make varstring const.
4509 * c-lang.h (c_print_type): Make varstring const.
4510 * c-typeprint.c (c_print_type): Likewise.
4511 * f-lang.h (f_print_type): Likewise.
4512 * f-typeprint.c (f_print_type): Likewise.
4513 * jv-lang.h (java_print_type): Likewise.
4514 * jv-typeprint.c (java_print_type): Likewise.
4515 * language.c (unk_lang_print_type): Likewise.
4516 * language.h (struct language_defn) <la_print_type>: Likewise.
4517 * m2-lang.h (m2_print_type): Likewise.
4518 * m2-typeprint.c (m2_print_type): Likewise.
4519 * p-lang.h (pascal_print_type): Likewise.
4520 * p-typeprint.c (pascal_print_type): Likewise.
4521
d914c394
SS
45222010-06-11 Stan Shebs <stan@codesourcery.com>
4523
4524 Add per-operation permission flags.
4525
4526 * target.h (struct target_ops): New method to_set_permissions.
4527 (target_set_permissions): New macro.
4528 (target_insert_breakpoint): Change macro to function.
4529 (target_remove_breakpoint): Ditto.
4530 (target_stop): Ditto.
4531 (may_write_registers): Declare.
4532 (may_write_memory): Declare.
4533 (may_insert_breakpoints): Declare.
4534 (may_insert_tracepoints): Declare.
4535 (may_insert_fast_tracepoints): Declare.
4536 (may_stop): Declare.
4537 * target.c (may_write_registers, may_write_registers_1): New globals.
4538 (may_write_memory, may_write_memory_1): New globals.
4539 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4540 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4541 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4542 globals.
4543 (may_stop, may_stop_1): New global.
4544 (target_xfer_partial): Test for write permission.
4545 (target_store_registers): Ditto.
4546 (target_insert_breakpoint): New function.
4547 (target_remove_breakpoint): New function.
4548 (target_stop): New function.
4549 (_initialize_targets): Add new set/show variables.
4550 (set_write_memory_permission): New function.
4551 (update_target_permissions): New function.
4552 (set_target_permissions): New function.
4553 (update_current_target): Default to_set_permissions.
4554 (_initialize_targets): Use new globals and setter function.
4555 * tracepoint.c (start_tracing): Test for permission.
4556 * inferior.h (update_observer_mode): Declare.
4557 * infrun.c (non_stop_1): Define earlier.
4558 (observer_mode, observer_mode_1): New globals.
4559 (set_observer_mode, show_observer_mode): New functions.
4560 (update_observer_mode): New function.
4561 (_initialize_infrun): Define "set observer" command.
4562 * remote.c (PACKET_QAllow): New optional packet.
4563 (remote_protocol_features): Add QAllow.
4564 (remote_set_permissions): New function.
4565 (remote_start_remote): Call it.
4566 (init_remote_ops): Add it to target vector.
4567 (_initialize_remote): Add config command for QAllow.
4568
aec5aa8b
TT
45692010-06-11 Tom Tromey <tromey@redhat.com>
4570
4571 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4572 DW_AT_vtable_elem_location even when GCC extension is seen.
4573
0e03807e
TT
45742010-06-11 Tom Tromey <tromey@redhat.com>
4575
4576 PR gdb/9977, PR exp/11636:
4577 * value.h (value_offset): Update.
4578 (struct lval_funcs) <check_validity>: New field.
4579 <copy_closure>: Make argument const.
4580 (value_computed_closure): Update.
4581 (value_contents_for_printing): Declare.
4582 (value_bits_valid): Likewise.
4583 (val_print): Likewise.
4584 (set_value_component_location): Update.
4585 (value_entirely_optimized_out): Declare.
4586 * value.c (value_offset): Argument now const.
4587 (require_not_optimized_out): New function.
4588 (value_contents_for_printing): New function.
4589 (value_contents_all): Call require_not_optimized_out.
4590 (value_contents): Likewise.
4591 (value_bits_valid): New function.
4592 (value_computed_closure): Argument now const.
4593 (set_value_component_location): Make 'whole' argument const.
4594 (value_entirely_optimized_out): New function.
4595 (value_bitsize): Argument now 'const'.
4596 (value_bitpos): Likewise.
4597 (value_type): Likewise.
4598 * valprint.h (val_print_array_elements): Update.
4599 * valprint.c (val_print): Add 'val' argument. Use
4600 valprint_check_validity.
4601 (valprint_check_validity): New function.
4602 (value_check_printable): Use value_entirely_optimized_out.
4603 (common_val_print): Update.
4604 (value_print): Likewise.
4605 (val_print_array_elements): Add 'val' argument.
4606 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4607 value_bits_valid. Reinit frame cache for lval_computed.
4608 * sh64-tdep.c (sh64_do_register): Update.
4609 * scm-valprint.c (scm_val_print): Add 'val' argument.
4610 * scm-lang.h (scm_val_print): Update.
4611 * python/python.h (apply_val_pretty_printer): Update.
4612 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4613 argument. Call set_value_component_location.
4614 * printcmd.c (print_scalar_formatted): Update.
4615 * p-valprint.c (pascal_val_print): Add 'val' argument.
4616 (pascal_object_print_value_fields): Likewise.
4617 (pascal_object_print_value): Likewise.
4618 (pascal_object_print_static_field): Update.
4619 * p-lang.h (pascal_val_print): Update.
4620 (pascal_object_print_value_fields): Update.
4621 * mt-tdep.c (mt_registers_info): Update.
4622 * mi/mi-main.c (get_register): Update.
4623 (mi_cmd_data_evaluate_expression): Use common_val_print.
4624 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4625 (m2_print_unbounded_array): Likewise.
4626 (m2_val_print): Likewise.
4627 * m2-lang.h (m2_val_print): Update.
4628 * language.h (struct language_defn) <la_val_print>: Add 'val'
4629 argument.
4630 (LA_VAL_PRINT): Likewise.
4631 * language.c (unk_lang_val_print): Add 'val' argument.
4632 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4633 (java_val_print): Likewise.
4634 * jv-lang.h (java_val_print): Add 'val' argument.
4635 * infcmd.c (default_print_registers_info): Update.
4636 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4637 (f77_print_array): Likewise.
4638 (f_val_print): Likewise.
4639 * f-lang.h (f_val_print): Add 'val' argument.
4640 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4641 value_bitpos.
4642 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4643 set_value_optimized_out.
4644 (write_pieced_value): Use value_bitsize and value_bitpos.
4645 <default>: Don't exit loop.
4646 (check_pieced_value_validity): New function.
4647 (pieced_value_funcs): Reference check_pieced_value_validity,
4648 check_pieced_value_invalid.
4649 (copy_pieced_value_closure): Update.
4650 (check_pieced_value_bits): New function.
4651 (check_pieced_value_invalid): New function.
4652 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4653 (d_val_print): Likewise.
4654 * d-lang.h (d_val_print): Update.
4655 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4656 (cp_print_value_fields_rtti): Likewise.
4657 (cp_print_value): Likewise.
4658 (cp_print_static_field): Update.
4659 * c-valprint.c (c_val_print): Add 'val' argument.
4660 (c_value_print): Update.
4661 * c-lang.h (c_val_print): Update.
4662 (cp_print_value_fields): Likewise.
4663 (cp_print_value_fields_rtti): Likewise.
4664 * ada-valprint.c (struct ada_val_print_args): Remove.
4665 (val_print_packed_array_elements): Add 'val' argument.
4666 (ada_val_print): Likewise. Rewrite.
4667 (ada_val_print_stub): Remove.
4668 (ada_val_print_array): Add 'val' argument.
4669 (ada_val_print_1): Likewise.
4670 (print_variant_part): Likewise.
4671 (ada_value_print): Update.
4672 (print_record): Add 'val' argument.
4673 (print_field_values): Likewise.
4674 * ada-lang.h (ada_val_print): Update.
4675
3cf03773
TT
46762010-06-11 Tom Tromey <tromey@redhat.com>
4677
4678 * vec.h (VEC_cleanup): New macro.
4679 (DEF_VEC_ALLOC_FUNC_I): Update.
4680 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4681 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4682 * dwarf2loc.c (struct axs_var_loc): Remove.
4683 (unimplemented): New function.
4684 (translate_register): Likewise.
4685 (access_memory): Likewise.
4686 (compile_dwarf_to_ax): Likewise.
4687 (dwarf2_tracepoint_var_loc): Remove.
4688 (dwarf2_tracepoint_var_access): Likewise.
4689 (dwarf2_tracepoint_var_ref): Likewise.
4690 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4691 (loclist_tracepoint_var_ref): Likewise.
4692 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4693 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4694 require_composition. No longer static.
4695 (execute_stack_op): Update.
4696 * ax-gdb.h (trace_kludge): Declare.
4697
2bdf28a0
JK
46982010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4699
4700 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4701 (should_be_inserted): Return zero also on NULL OWNER.
4702 (breakpoint_program_space_exit): New OWNER comment.
4703 (insert_breakpoint_locations): Extend comment for OWNER.
4704 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4705 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4706 New OWNER comment.
4707 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4708 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4709 (bpstat_check_location): New assert on OWNER.
4710 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4711 and B initializations to the code block. New assert on them.
4712 (print_one_breakpoint_location): New OWNER comment.
4713 (watchpoint_locations_match): Assert on OWNER.
4714 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4715 initializations to the code block. New assert on OWNER.
4716 (set_breakpoint_location_function): New assert on OWNER.
4717 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4718 (bp_location_compare, update_global_location_list)
4719 (update_global_location_list): New OWNER comment.
4720
5b9a19af
UW
47212010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4722
4723 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4724
669211f5
UW
47252010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4726
4727 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4728 (lin_thread_get_thread_signals): Remove prototype.
4729 (GET_THREAD_SIGNALS): Remove.
4730 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4731 * linux-thread-db.c (check_thread_signals): Directly call
4732 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4733
b7a8b4ef
UW
47342010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4735
4736 * gregset.h (GDB_FPXREGSET_T): Remove.
4737 (gdb_fpxregset_t): Likewise.
4738 (supply_fpxregset): Remove prototype.
4739 (fill_fpxregset): Likewise.
4740 * i386-linux-nat.c (supply_fpxregset): Remove.
4741 (fill_fpxregset): Likewise.
4742 (fetch_fpxregs): Inline supply_fpxregset call.
4743 (store_fpxregs): Inline fill_fpxregset call.
4744
4745 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4746 * config/i386/nm-linux.h: Remove file.
4747
82892036
MS
47482010-06-09 Michael Snyder <msnyder@vmware.com>
4749
4750 * target.c (update_current_target): Fix spelling error in comment.
4751 (target_mourn_inferior): Fix spelling error in error message.
4752
5ddb52fa
PH
47532010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4754
4755 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4756 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4757
0f2caa1b
MS
47582010-06-08 Michael Snyder <msnyder@vmware.com>
4759
4760 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4761
3bebe2f2
JK
47622010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4763
4764 * configure.ac <"${have_libpython}" != no>: New workaround of
4765 python#4434.
4766 * configure: Regenerate.
4767
eaaffdf4
HZ
47682010-06-08 Hui Zhu <teawater@gmail.com>
4769
4770 * record.c (record_wait): Move signal out of replay code.
4771
5c631832
JK
47722010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4773
4774 Fix PR 10640.
4775 * dwarf2-frame.c (no_dwarf_call): New function.
4776 (execute_stack_op): Set CTX->DWARF_CALL.
4777 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4778 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4779 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4780 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4781 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4782 (needs_frame_dwarf_call): New function.
4783 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4784 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4785 Update the comment. Move variables die, offset and error call to ...
4786 (follow_die_ref): ... a new function.
4787 (dwarf2_fetch_die_location_block): New function.
4788 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4789
17ea53c3
JK
47902010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4791
4792 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4793 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4794 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4795 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4796 this change.
4797 (struct needs_frame_baton): New field per_cu.
4798 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4799 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4800
245040d7
SW
48012010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4802
4803 * cp-support.c (make_symbol_overload_list_namespace): Only search
4804 static and global blocks.
4805 (make_symbol_overload_list_block): New function.
4806 (make_symbol_overload_list): Separate namespace search from block
4807 search.
4808 (make_symbol_overload_list_qualified): Use
4809 make_symbol_overload_list_block.
4810
4c3376c8
SW
48112010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4812
4813 * value.h: Created oload_search_type enum.
4814 (find_overload_match): Use oload_search_type enum.
4815 * valops.c (find_overload_match): Support combined member and
4816 non-member search.
4817 * eval.c (evaluate_subexp_standard): Calls to
4818 find_overload_match now use oload_search_type enum.
4819 (oload_method_static): Verify index is a proper value.
4820 * valarith.c (value_user_defined_cpp_op): Search for and handle
4821 both member and non-member operators.
4822 (value_user_defined_cpp_op): New function.
4823 (value_user_defined_op): New function.
4824 (value_x_unop): Use value_user_defined_op.
4825 (value_x_binop): Ditto.
4826 * cp-support.c (make_symbol_overload_list_using): Added block
4827 iteration.
4828 Add check for namespace aliases and imported declarations.
4829
ee55da67
JK
48302010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4831
4832 * breakpoint.h (owner): Extend the comment.
4833
1a2ab13a
JK
48342010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4835
4836 Clear stale specific bp_location from former whole breakpoint.
4837 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4838 code ...
4839 (free_bp_location): ... here. Rename there the called function to
4840 bpstat_remove_bp_location_callback.
4841 (bpstat_remove_breakpoint_callback): Rename to ...
4842 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4843 to struct bp_location. Change the called function to
4844 bpstat_remove_bp_location. Create new declaration for the function.
4845 (bpstat_remove_breakpoint): Rename to ...
4846 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4847 code for the new parameter type.
4848
16d6b4b7
NS
48492010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4850
4851 * README: Make version-agnostic.
4852
7e314c57
JK
48532010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4854
4855 Fix duplicate types for single DIE.
4856 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4857 set_die_type.
4858 (read_array_type): Remove type initialization. Recheck get_die_type
4859 after initial die_type. Move set_die_type before set_descriptive_type.
4860 (read_set_type): New variable domain_type. Recheck get_die_type after
4861 initial die_type. Move attr initialization later.
4862 (read_tag_pointer_type, read_tag_reference_type): New variable
4863 target_type. Recheck get_die_type after initial die_type.
4864 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4865 die_type and die_containing_type.
4866 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4867 Recheck get_die_type after initial die_type.
4868 (read_subrange_type): Recheck get_die_type after initial die_type.
4869 Move set_die_type before set_descriptive_type.
4870 (set_die_type): Extend the function comment. Call complaint if DIE has
4871 some type already set.
4872
2f296114
VP
48732010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4874
4875 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4876 for current naming of thread groups (iN, not N).
4877
554794dc
SDJ
48782010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4879
4880 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4881 * parse.c (operator_length): Likewise.
4882 (operator_length_standard): Likewise.
4883 * parser-defs.h (operator_length): Likewise.
4884 (operator_length_standard): Likewise.
4885 (struct exp_descriptor <operator_length>): Likewise.
4886
967cf477
DE
48872010-06-04 Doug Evans <dje@google.com>
4888
bddaacb9 4889 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4890 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4891 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4892 * python/python.c (gdbpy_enabled_cst): Define.
4893 (_initialize_python): Initialize gdbpy_enabled_cst.
4894 * NEWS: Add entry.
4895
2dec564e
JK
48962010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 * breakpoint.c (update_global_location_list): Fix comment typo.
4899
44b5680a
HZ
49002010-06-04 Hui Zhu <teawater@gmail.com>
4901
4902 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4903
e7a30f46
DE
49042010-06-03 Doug Evans <dje@google.com>
4905
4906 * configure.ac: Don't fail if python is unusable when
4907 configured with --with-python=auto.
4908 * configure: Regenerate.
4909
84b4420f
SW
49102010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4911
889bf7c5 4912 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4913
df178451
PM
49142010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4915
4916 * valprint.h (get_array_bounds): Change low and high parameter types
4917 to LONGEST *.
0407b3f1 4918 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4919 compute bounds.
4920 (val_print_array_elements): Adapt to change above.
4921 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4922 * p-valprint.c (pascal_val_print): Likewise.
4923
fd5700c7
JK
49242010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4925
4926 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4927 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4928 .F08.
4929
f55ee35c
JK
49302010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4931
4932 Support DW_TAG_module as separate namespaces.
4933 * dwarf2read.c (typename_concat): New parameter physname.
4934 (read_module_type): New function and declaration.
4935 (scan_partial_symbols): Scan also DW_TAG_module children.
4936 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4937 to typename_concat backward compatible physname value 0.
4938 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4939 backward compatible physname value 0.
4940 (add_partial_module, read_module): Remove FIXME comment.
4941 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4942 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4943 DIEs under DW_TAG_module.
4944 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4945 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4946 && physname and return there instead of just setting NAME. Extend
4947 the main block for language_fortran. Pass physname parameter to the
4948 typename_concat call.
4949 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4950 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4951 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4952 missing from SYMBOL_SET_NAMES in the language_fortran case.
4953 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4954 variables.
4955 (read_type_die) <DW_TAG_module>: New.
4956 (MAX_SEP_LEN): Increase to 7.
4957 (typename_concat): New parameter physname. New variable lead. Support
4958 also language_fortran.
4959 * f-exp.y (yylex): Consider : also as a symbol name character class.
4960 * f-lang.c: Include cp-support.h.
4961 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4962 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4963 f_word_break_characters and f_make_symbol_completion_list.
4964 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4965 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4966 * symtab.c (symbol_init_language_specific): Support language_fortran.
4967 (symbol_find_demangled_name): New comment on language_fortran.
4968 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4969 for language_fortran.
4970 (lookup_symbol_aux_local): Check imports also for language_fortran.
4971 (default_make_symbol_completion_list): Rename to ...
4972 (default_make_symbol_completion_list_break_on): ... this name. New
4973 parameter break_on, use it.
4974 (default_make_symbol_completion_list): New stub.
4975 * symtab.h (default_make_symbol_completion_list_break_on): New
4976 prototype.
4977
cb91c06a
JB
49782010-06-02 Joel Brobecker <brobecker@adacore.com>
4979
4980 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4981 to error.
4982
5c315b68
JK
49832010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4984
4985 * dwarf2read.c (typename_concat): Add const to the variable sep.
4986
9eae7c52
TT
49872010-06-02 Tom Tromey <tromey@redhat.com>
4988
4989 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4990 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4991 type is const. Add 'def' argument. Add missing operators, remove
4992 unhandled ones.
4993 (decode_locdesc): Update.
4994 (dwarf2_always_disassemble): New global.
4995 (show_dwarf2_always_disassemble): New function.
4996 (_initialize_dwarf2_read): Add always-disassemble.
4997 (dwarf2_per_cu_offset_size): New function.
4998 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4999 (piece_end_p): New function.
5000 (locexpr_describe_location_piece): Replace 'size' argument with
5001 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
5002 some constants. Remove errors.
5003 (disassemble_dwarf_expression): New function.
5004 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
5005 Add 'offset_size' argument.
5006 (loclist_describe_location): Change output formatting.
5007 * dwarf2expr.h (dwarf_stack_op_name): Declare.
5008
7d3fe98e
SW
50092010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
5010
5011 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
5012 anonymous type case.
5013
e77813c8
PM
50142010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
5015
5016 * dwarf2read.c (read_subrange_type): Handle missing base type
5017 according to Dwarf-2 specifications.
5018
7cf3118a
SDJ
50192010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
5020
5021 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
5022 BINOP_EXCL.
5023 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
5024 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
5025 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
5026 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
5027 UNOP_CHMAX, UNOP_CHMIN.
5028 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
5029 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
5030 UNOP_CHMIN>: Remove opcodes.
5031
ae4d0c03
PM
50322010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
5033
5034 * dwarf2read.c (read_func_scope): Do not complain for
5035 external function if bounds are not found.
5036
fa593d66
PA
50372010-06-01 Pedro Alves <pedro@codesourcery.com>
5038
5039 * NEWS: Mention gdbserver fast tracepoints support.
5040
cd44747c
PM
50412010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
5042
5043 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
5044 New macros.
5045 (windows_set_console_info): New function.
5046 (windows_create_inferior): Call windows_set_console_info
5047 if NEW_CONSOLE is true.
5048 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5049 (_initialize_loadable): Initialize GetConsoleFontSize and
5050 GetCurrentConsoleFont.
5051
f6528abd
JK
50522010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5053
5054 * Makefile.in (RDYNAMIC): New.
5055 (SFILES): Add proc-service.list.
5056 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5057 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5058 * config/arm/linux.mh: Likewise.
5059 * config/i386/linux.mh: Likewise.
5060 * config/i386/linux64.mh: Likewise.
5061 * config/ia64/linux.mh: Likewise.
5062 * config/m32r/linux.mh: Likewise.
5063 * config/m68k/linux.mh: Likewise.
5064 * config/mips/linux.mh: Likewise.
5065 * config/pa/linux.mh: Likewise.
5066 * config/powerpc/linux.mh: Likewise.
5067 * config/powerpc/ppc64-linux.mh: Likewise.
5068 * config/s390/s390.mh: Likewise.
5069 * config/sparc/linux.mh: Likewise.
5070 * config/sparc/linux64.mh: Likewise.
5071 * config/xtensa/linux.mh: Likewise.
5072 * configure.ac: New RDYNAMIC on native host and GCC.
5073 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5074 * configure: Regenerate.
5075 * proc-service.list: New.
5076
ca2a87a0
JK
50772010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5078
5079 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5080 CONTENT.
5081
1e225492
JK
50822010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5083
5084 * linux-nat.c (linux_nat_wait_1): Do not call
5085 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5086 TARGET_WAITKIND_SIGNALLED.
5087
e802dbe0
JB
50882010-05-27 Joel Brobecker <brobecker@adacore.com>
5089
5090 * ada-lang.c (ada_inferior_data): New struct.
5091 (ada_inferior_data): New static global.
5092 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5093 (ada_get_tsd_type): New functions.
5094 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5095 to look the tsd type up.
5096 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5097 event. Set ada_inferior_data.
5098
176a6961
PA
50992010-05-27 Pedro Alves <pedro@codesourcery.com>
5100
5101 * remote.c (unpack_varlen_hex): Remove forward declaration.
5102 (remote_console_output): Make static, and add forward declaration.
5103 * remote.h: Drop FIXME comment.
5104 (unpack_varlen_hex): Declare.
5105 (remote_console_output, remote_cisco_objfile_relocate)
5106 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5107 Delete declarations.
5108 * tracepoint.c: Include "remote.h".
5109 (unpack_varlen_hex): Delete declaration.
5110
88bfdde4
TT
51112010-05-27 Tom Tromey <tromey@redhat.com>
5112
5113 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5114 (allocate_piece_closure): Initialize refc.
5115 (copy_pieced_value_closure): Use refc.
5116 (free_pieced_value_closure): Likewise.
5117
8c6363cf
TT
51182010-05-27 Tom Tromey <tromey@redhat.com>
5119
5120 * arm-tdep.c (push_stack_item): 'contents' now const.
5121 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5122 value_contents_writeable. Introduce new temporary.
5123
7ecb917e
TT
51242010-05-27 Tom Tromey <tromey@redhat.com>
5125
5126 * findcmd.c (parse_find_args): Use value_contents, not
5127 value_contents_raw.
5128
f42a0a33
TT
51292010-05-27 Tom Tromey <tromey@redhat.com>
5130
5131 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5132 const. Use value_contents, not value_contents_writeable.
5133
12b795ad
JB
51342010-05-27 Joel Brobecker <brobecker@adacore.com>
5135
5136 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5137 by call to value_contents.
5138
5a2e11c7
OS
51392010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5140
5141 * MAINTAINERS: Add myself for write after approval privileges.
5142
ec685c5e
DE
51432010-05-26 Doug Evans <dje@google.com>
5144
0c4a4063
DE
5145 Allow python to find its files if moved from original location.
5146 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5147 (GDB_AC_WITH_DIR): Call it.
5148 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5149 python installation directory.
5150 * config.in: Regenerate.
5151 * configure: Regenerate.
5152 * defs.h (python_libdir): Declare.
5153 * main.c (python_libdir): Define.
5154 (captured_main): Initialize python_libdir.
5155 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5156 call Py_SetProgramName to make sure python can find its libraries
5157 and modules.
5158
ec685c5e
DE
5159 * configure.ac: Try to use python's distutils to fetch compilation
5160 parameters.
5161 * configure: Regenerate.
5162 * python/python-config.py: New file.
5163
363a6e9f
OS
51642010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5165
5166 * ser-tcp.c (net_open): Check error return from socket() call by its
5167 equality to -1 not by it being negative.
5168 (net_close): Likewise.
5169
dde08ee1
PA
51702010-05-26 Pedro Alves <pedro@codesourcery.com>
5171
5172 * NEWS: Mention the `qRelocInsn' feature.
5173 * gdbarch.sh (relocate_instruction): New.
5174 * amd64-tdep.c (rip_relative_offset): New.
5175 (append_insns): New.
5176 (amd64_relocate_instruction): New.
5177 (amd64_init_abi): Install it.
5178 * i386-tdep.c (append_insns): New.
5179 (i386_relocate_instruction): New.
5180 (i386_gdbarch_init): Install it.
5181 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5182 * gdbarch.h, gdbarch.c: Regenerate.
5183
947bb88f
TT
51842010-05-26 Tom Tromey <tromey@redhat.com>
5185
5186 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5187 (struct dwarf2_loclist_baton) <data>: Likewise.
5188 * dwarf2loc.c (find_location_expression): Constify return type.
5189 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5190 (dwarf2_loc_desc_needs_frame): Likewise.
5191 (loclist_read_variable): Constify.
5192 (loclist_describe_location): Likewise.
5193 (loclist_tracepoint_var_ref): Likewise.
5194
0d45f56e
TT
51952010-05-25 Tom Tromey <tromey@redhat.com>
5196
5197 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5198 (dwarf_expr_frame_base_1): Likewise.
5199 (read_pieced_value): Update.
5200 (needs_frame_frame_base): Constify.
5201 (dwarf2_tracepoint_var_loc): Likewise.
5202 (dwarf2_tracepoint_var_access): Likewise.
5203 (locexpr_describe_location_piece): Likewise.
5204 (locexpr_describe_location_1): Likewise.
5205 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5206 Constify.
5207 (data): Now const.
5208 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5209 (dwarf_expr_eval, read_uleb128, read_sleb128)
5210 (dwarf2_read_address): Update.
5211 * dwarf2expr.c (dwarf_expr_eval): Constify.
5212 (read_uleb128): Likewise.
5213 (read_sleb128): Likewise.
5214 (dwarf2_read_address): Likewise.
5215 (require_composition): Likewise.
5216 (execute_stack_op): Likewise.
5217 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5218 "const gdb_byte *".
5219 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5220 Now const.
5221 (no_get_frame_base): Constify.
5222 (execute_stack_op): Likewise.
5223 (execute_cfa_program): Likewise.
5224 (read_encoded_value): Likewise.
5225
07ca107c
DE
52262010-05-25 Doug Evans <dje@google.com>
5227
e34838f0
DE
5228 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5229
01f69b38
DE
5230 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5231 * event-loop.c: ... here.
5232 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5233 `error' for clarity.
5234 (tui_getc): Pass correct value for `error' parameter to
5235 tui_readline_output.
5236
07ca107c
DE
5237 Add python gdb.GdbError and gdb.string_to_argv.
5238 * NEWS: Document them.
5239 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5240 the exception is gdb.GdbError. Print a second traceback if there's
5241 an error computing the error message.
5242 (gdbpy_string_to_argv): New function.
5243 * python/py-utils.c (gdbpy_obj_to_string): New function.
5244 (gdbpy_exception_to_string): New function.
5245 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5246 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5247 (gdbpy_gdberror_exc): Declare.
5248 * python/python.c (gdbpy_gdberror_exc): New global.
5249 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5250 gdb.GdbError.
5251 (GdbMethods): Add string_to_argv.
5252
5572ce1f
PM
52532010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5254
5255 * windows-nat.c (display_selector): Call GetLastError to give better
5256 failure explanation.
5257
acd5838a
PA
52582010-05-24 Pedro Alves <pedro@codesourcery.com>
5259
5260 * config.in: Regenerate.
5261
b26a4dcb
JK
52622010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5263
5264 Code cleanup.
5265 * target.c (push_target): Return only void. Remove the return value
5266 comment.
5267 * target.h (push_target): Return only void.
5268
f434ba03
PA
52692010-05-23 Pedro Alves <pedro@codesourcery.com>
5270
5271 Update gnulib from latest git.
5272 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5273
5274 * gnulib/memcmp.c: Removed.
5275 * gnulib/memchr.valgrind: New.
5276 * gnulib/stddef.in.h: New.
5277 * gnulib/Makefile.am: Updated.
5278 * gnulib/memchr.c: Updated.
5279 * gnulib/memmem.c: Updated.
5280 * gnulib/stdint.in.h: Updated.
5281 * gnulib/str-two-way.h: Updated.
5282 * gnulib/string.in.h: Updated.
5283 * gnulib/wchar.in.h: Updated.
5284
5285 * gnulib/extra/link-warning.h: Removed.
5286 * gnulib/extra/c++defs.h: New.
5287 * gnulib/extra/warn-on-use.h: New.
5288 * gnulib/extra/arg-nonnull.h: Updated.
5289
5290 * gnulib/m4/extensions.m4: Updated.
5291 * gnulib/m4/gnulib-cache.m4: Updated.
5292 * gnulib/m4/gnulib-common.m4: Updated.
5293 * gnulib/m4/gnulib-comp.m4: Updated.
5294 * gnulib/m4/gnulib-tool.m4: Updated.
5295 * gnulib/m4/include_next.m4: Updated.
5296 * gnulib/m4/longlong.m4: Updated.
5297 * gnulib/m4/memchr.m4: Updated.
5298 * gnulib/m4/memmem.m4: Updated.
5299 * gnulib/m4/stdint.m4: Updated.
5300 * gnulib/m4/string_h.m4: Updated.
5301 * gnulib/m4/memcmp.m4: Removed.
5302 * gnulib/m4/onceonly_2_57.m4: Removed.
5303 * gnulib/m4/00gnulib.m4: New.
5304 * gnulib/m4/mmap-anon.m4: New.
5305 * gnulib/m4/multiarch.m4: New.
5306 * gnulib/m4/onceonly.m4: New.
5307 * gnulib/m4/stddef_h.m4: New.
5308 * gnulib/m4/warn-on-use.m4: New.
5309 * gnulib/m4/wchar.m4: Removed.
5310 * gnulib/m4/wchar_h.m4: New.
5311 * gnulib/m4/wchar_t.m4: New.
5312 * gnulib/m4/wint_t.m4: New.
5313
5314 * aclocal.m4: Regenerate.
5315 * config.in: Likewise.
5316 * configure: Likewise.
5317 * gnulib/Makefile.in: Likewise.
5318
d3b1e874
TT
53192010-05-21 Tom Tromey <tromey@redhat.com>
5320
5321 * dwarf2loc.c (extract_bits_primitive): New function.
5322 (extract_bits): Likewise.
5323 (insert_bits): Likewise.
5324 (copy_bitwise): Likewise.
5325 (read_pieced_value): Do all operations in bits.
5326 (write_pieced_value): Likewise.
5327 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5328 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5329 Always use xrealloc to resize piece array.
5330 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5331 <DW_OP_piece>: Update.
5332 <DW_OP_bit_piece>: New case.
5333
cb826367
TT
53342010-05-21 Tom Tromey <tromey@redhat.com>
5335
5336 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5337 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5338 * dwarf2expr.h (enum dwarf_value_location)
5339 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5340 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5341 (add_piece): Handle empty piece.
5342 (execute_stack_op) <DW_OP_piece>: Handle
5343 DWARF_VALUE_OPTIMIZED_OUT.
5344
74de6778
TT
53452010-05-21 Tom Tromey <tromey@redhat.com>
5346
5347 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5348 evaluate_subexp, not evaluate_subexp_with_coercion.
5349
f346a30d
PM
53502010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5351
5352 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5353 attribute.
5354
afd74c5f
TT
53552010-05-21 Tom Tromey <tromey@redhat.com>
5356
5357 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5358 offset.
5359 (write_pieced_value): Likewise.
5360
90e7c2c5
PM
53612010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5362
5363 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5364 and DW_TAG_volatile_type.
5365 (new_symbol): Likewise.
5366
8148cf8d
PM
53672010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5368
5369 * p-valprint.c (pascal_val_print): Call get_array_bounds
5370 to obtain the number of elements in an array.
5371
3a1d4620
DE
53722010-05-19 Doug Evans <dje@google.com>
5373
0bf0f8c4
DE
5374 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5375
3a1d4620
DE
5376 * python.c (source_python_script): Add comment.
5377 (source_python_script_for_objfile): Remove unnecessary call to
5378 gdbpy_print_stack.
5379
dc21167c
JK
53802010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5381 Sergio Durigan Junior <sergiodj@redhat.com>
5382
5383 Code cleanup.
5384 * parse.c (exp_iterate): Use operator_length wrapper function.
5385
5b4ee69b
MS
53862010-05-18 Michael Snyder <msnyder@vmware.com>
5387
5388 * ada-lang.c: White space.
5389 * ada-typeprint.c: White space.
5390 * ada-valprint.c: White space.
5391 * addrmap.c: White space.
5392 * auxv.c: White space.
5393 * ax-gdb.c: White space.
5394
e17c9e56
HZ
53952010-05-18 Hui Zhu <teawater@gmail.com>
5396
5397 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5398 for oldfp.
5399 (inferior_call_waitpid): Move make_cleanup out of check.
5400 Check the return of waitpid.
5401 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5402
a109c7c1
MS
54032010-05-17 Michael Snyder <msnyder@vmware.com>
5404
1c5313c5
MS
5405 * tui/tui.c: White space.
5406 * tui/tui-data.c: White space.
5407 * tui/tui-disasm.c: White space.
5408 * tui/tui-file.c: White space.
5409 * tui/tui-interp.c: White space.
5410 * tui/tui-main.c: White space.
5411 * tui/tui-out.c: White space.
5412 * tui/tui-regs.c: White space.
5413 * tui/tui-source.c: White space.
5414 * tui/tui-stack.c: White space.
5415 * tui/tui-win.c: White space.
5416 * tui/tui-winsource.c: White space.
5417
f4a14ae6
MS
5418 * procfs.c: White space.
5419
d59b6f6c
MS
5420 * python/py-auto-load.c: White space.
5421 * python/py-block.c: White space.
5422 * python/py-breakpoint.c: White space.
5423 * python/py-cmd.c: White space.
5424 * python/py-function.c: White space.
5425 * python/py-lazy-string.c: White space.
5426 * python/py-objfile.c: White space.
5427 * python/py-param.c: White space.
5428 * python/py-prettyprint.c: White space.
5429 * python/py-progspace.c: White space.
5430 * python/py-symtab.c: White space.
5431 * python/python.c: White space.
5432 * python/py-type.c: White space.
5433 * python/py-utils.c: White space.
5434 * python/py-value.c: White space.
5435
102040f0
MS
5436 * mi/mi-cmd-break.c: White space.
5437 * mi/mi-cmd-env.c: White space.
5438 * mi/mi-cmds.c: White space.
5439 * mi/mi-cmd-stack.c: White space.
5440 * mi/mi-cmd-var.c: White space.
5441 * mi/mi-console.c: White space.
5442 * mi/mi-getopt.c: White space.
5443 * mi/mi-interp.c: White space.
5444 * mi/mi-main.c: White space.
5445 * mi/mi-out.c: White space.
5446 * mi/mi-parse.c: White space.
5447
cdb27c12
MS
5448 * cli/cli-cmds.c: White space.
5449 * cli/cli-decode.c: White space.
5450 * cli/cli-dump.c: White space.
5451 * cli/cli-interp.c: White space.
5452 * cli/cli-logging.c: White space.
5453 * cli/cli-script.c: White space.
5454 * cli/cli-setshow.c: White space.
5455
a109c7c1
MS
5456 * valarith.c: White space.
5457 * valops.c: White space.
5458 * valprint.c: White space.
5459 * value.c: White space.
5460 * varobj.c: White space.
5461 * xcoffread.c: White space.
5462 * xml-support.c: White space.
5463 * xml-tdesc.c: White space.
5464
3872d37d
AS
54652010-05-17 Andreas Schwab <schwab@redhat.com>
5466
5467 PR gdb/11092
5468 * c-lang.c (c_printstr): Compute real length of NUL terminated
5469 string at first.
5470
0cce5bd9
JB
54712010-05-17 Joel Brobecker <brobecker@adacore.com>
5472
5473 * parse.c (parse_exp_in_context): When block is not NULL, use
5474 its associated language to parse the expression instead of
5475 the current_language.
5476
5f19d646
JB
54772010-05-17 Joel Brobecker <brobecker@adacore.com>
5478
5479 * jv-lang.c (java_lookup_class): Remove commented out code.
5480 (type_from_class): Likewise.
5481 (java_op_print_tab): Remove commented-out elements.
5482
28c85d6c
JB
54832010-05-17 Joel Brobecker <brobecker@adacore.com>
5484
5485 * ada-lang.c (to_fixed_range_type): The the raw index type as
5486 argument instead of the raw type name. Remove orig_type parameter.
5487 Update calls throughout.
5488 (ada_fixup_array_indexes_type): New function.
5489 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5490 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5491 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5492 Remove name parameter.
5493 (print_array_type): Add call to ada_fixup_array_indexes_type.
5494 Update calls to print_range_type.
5495 (ada_print_type): Update calls to print_range_type.
5496
d09039dd
PM
54972010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5498
5499 * dwarf2read.c (read_set_type): Set type length if
5500 DW_AT_byte_size attribute is present.
5501
7a081a30
PM
55022010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5503
5504 * p-valprint.c (pascal_val_print): Handle set type if range limits
5505 are undefined but size is known.
5506
77382aee
PA
55072010-05-17 Pedro Alves <pedro@codesourcery.com>
5508
5509 * procfs.c: Reformat.
5510
433759f7
MS
55112010-05-16 Michael Snyder <msnyder@vmware.com>
5512
5d502164
MS
5513 * target.c: White space.
5514 * target-descriptions.c: White space.
5515 * target-memory.c: White space.
5516 * thread.c: White space.
5517 * top.c: White space.
5518 * tracepoint.c: White space.
5519 * trad-frame.c: White space.
5520 * tramp-frame.c: White space.
5521 * ui-file.c: White space.
5522 * ui-out.c: White space.
5523 * user-regs.c: White space.
5524 * utils.c: White space.
5525
433759f7
MS
5526 * scm-exp.c: White space.
5527 * scm-lang.c: White space.
5528 * scm-valprint.c: White space.
5529 * sentinel-frame.c: White space.
5530 * ser-base.c: White space.
5531 * ser-go32.c: White space.
5532 * serial.c: White space.
5533 * ser-mingw.c: White space.
5534 * ser-pipe.c: White space.
5535 * ser-tcp.c: White space.
5536 * ser-unix.c: White space.
5537 * solib.c: White space.
5538 * solib-darwin.c: White space.
5539 * solib-frv.c: White space.
5540 * solib-irix.c: White space.
5541 * solib-osf.c: White space.
5542 * solib-pa64.c: White space.
5543 * solib-som.c: White space.
5544 * solib-spu.c: White space.
5545 * solib-svr4.c: White space.
5546 * solib-target.c: White space.
5547 * source.c: White space.
5548 * stabsread.c: White space.
5549 * stack.c: White space.
5550 * std-regs.c: White space.
5551 * symfile.c: White space.
5552 * symmisc.c: White space.
5553 * symtab.c: White space.
5554
dd304d53
MS
55552010-05-16 Michael Snyder <msnyder@vmware.com>
5556
5557 * source.c (_initialize_source): Add "rev" as an abbreviation
5558 for the "reverse-search" command.
5559
a744cf53
MS
55602010-05-16 Michael Snyder <msnyder@vmware.com>
5561
123f5f96
MS
5562 * record.c: White space.
5563 * regcache.c: White space.
5564 * reggroups.c: White space.
5565 * remote-fileio.c: White space.
5566 * remote-m32r-sdi.c: White space.
5567 * remote-mips.c: White space.
5568 * remote-sim.c: White space.
a744cf53
MS
5569 * remote.c: White space.
5570 (process_g_packet): Remove orphan braces.
5571
b8d56208
MS
55722010-05-15 Michael Snyder <msnyder@vmware.com>
5573
ad3bbd48
MS
5574 * parse.c: White space.
5575 * p-lang.c: White space.
5576 * posix-hdep.c: White space.
5577 * printcmd.c: White space.
5578 * progspace.c: White space.
5579 * prologue-value.c: White space.
5580 * psymtab.c: White space.
5581 * p-typeprint.c: White space.
5582 * p-valprint.c: White space.
5583
5cc80db3
MS
5584 * objc-lang.c: White space.
5585 * objfiles.c: White space.
5586 * observer.c: White space.
5587 * osabi.c: White space.
5588 * osdata.c: White space.
5589
b8d56208
MS
5590 * m2-lang.c: White space.
5591 * m2-valprint.c: White space.
5592 * macrocmd.c: White space.
5593 * macroexp.c: White space.
5594 * macroscope.c: White space.
5595 * macrotab.c: White space.
5596 * main.c: White space.
5597 * maint.c: White space.
5598 * mdebugread.c: White space.
5599 * memattr.c: White space.
5600 * minsyms.c: White space.
5601 * monitor.c: White space.
5602
9a619af0
MS
56032010-05-14 Michael Snyder <msnyder@vmware.com>
5604
e0881a8e
MS
5605 * jv-lang.c: White space.
5606 * jv-typeprint.c: White space.
5607 * jv-valprint.c: White space.
5608 * language.c: White space.
5609 * libunwind-frame.c: White space.
5610 * linespec.c: White space.
5611 * linux-nat.c: White space.
5612 * linux-record.c: White space.
5613 * linux-thread-db.c: White space.
5614
abbb1732
MS
5615 * infcall.c: White space.
5616 * inf-child.c: White space.
5617 * infcmd.c: White space.
5618 * inferior.c: White space.
5619 * inf-loop.c: White space.
5620 * inflow.c: White space.
5621 * inline-frame.c: White space.
5622 * interps.c: White space.
5623
d8734c88
MS
5624 * gcore.c: White space.
5625 * gdb.c: White space.
5626 * gdbtypes.c: White space.
5627 * gnu-nat.c: White space.
5628 * gnu-v2-abi.c: White space.
5629 * gnu-v3-abi.c: White space.
5630
bb9bcb69
MS
5631 * findcmd.c: White space.
5632 * findvar.c: White space.
5633 * fork-child.c: White space.
5634 * frame-base.c: White space.
5635 * frame.c: White space.
5636 * frame-unwind.c: White space.
5637 * f-valprint.c: White space.
5638
d7f9d729
MS
5639 * elfread.c: White space.
5640 * environ.c: White space.
5641 * eval.c: White space.
5642 * event-loop.c: White space.
5643 * event-top.c: White space.
5644 * exceptions.c: White space.
5645 * exec.c: White space.
5646 * expprint.c: White space.
5647
9a619af0
MS
5648 * dbxread.c: White space.
5649 * dcache.c: White space.
5650 * disasm.c: White space.
5651 * doublest.c: White space.
5652 * dsrec.c: White space.
5653 * dummy-frame.c: White space.
5654 * dwarf2expr.c: White space.
5655 * dwarf2-frame.c: White space.
5656 * dwarf2loc.c: White space.
5657 * dwarf2read.c: White space.
5658
88d4aea7
PM
56592010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5660
889bf7c5 5661 PR python/11482
88d4aea7
PM
5662
5663 * python/py-value.c (valpy_hash): New function.
5664 (value_object_type): Register valpy_hash.
5665
7a298875 56662010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 5667 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
5668
5669 * linux-fork.c (gdbthread.h): New include.
5670 (fork_info): Add parent_ptid.
5671 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5672 functions.
5673 (delete_checkpoint_command): Call inferior_call_waitpid.
5674 (checkpoint_command): Set parent_ptid.
5675
c14feecc
MS
56762010-05-13 Michael Snyder <msnyder@vmware.com>
5677
6595d32b
MS
5678 * dictionary.c: Re-indent to GNU coding standard.
5679
c5504eaf
MS
5680 * charset.c: White space.
5681 * c-lang.c: White space.
5682 * cli-out.c: White space.
5683 * coffread.c: White space.
5684 * complaints.c: White space.
5685 * completer.c: White space.
5686 * corefile.c: White space.
5687 * corelow.c: White space.
5688 * cp-abi.c: White space.
5689 * cp-namespace.c: White space.
5690 * cp-support.c: White space.
5691 * cp-valprint.c: White space.
5692 * c-typeprint.c: White space.
5693 * c-valprint.c: White space.
cc59ec59
MS
5694 * blockframe.c: White space.
5695 * breakpoint.c: White space.
5696 * buildsym.c: White space.
5697 * blockframe.c: White space.
b6de9da4 5698 * bcache.c: White space.
05c547f6
MS
5699 * gdbarch.sh: White space, add blank lines.
5700 * arch-utils.c: Ditto.
5701 * gdbarch.c: Regenerate.
1c4d3f96 5702 * frame.c: White space, add blank lines.
f89b749f
MS
5703 * stack.c: White space, add blank lines.
5704 (initialize_stack): Remove long-dead code.
c14feecc 5705
a2d33775
JK
57062010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5707
5708 Code cleanup.
5709 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5710 (locexpr_read_variable, loclist_read_variable): Update the callers.
5711
33ac96f0
JK
57122010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5713
5714 Code cleanup.
5715 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5716 Remove check of NULL returned by tag_type_to_type.
5717 (die_containing_type): Remove variable type. Remove type_die variable
5718 initialization. Remove check of NULL returned by tag_type_to_type.
5719
f5a010c0
PM
57202010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5721
5722 PR exp/11530.
5723 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5724 names of unnamed structures or unions.
5725
bf701c2c
PM
57262010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5727
5728 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 5729 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
5730 find_procinfo_or_die call.
5731 (procfs_stopped_data_address): New function.
5732 (procfs_use_watchpoints): Register new watchpoint related function.
5733
d02691ef
TT
57342010-05-11 Tom Tromey <tromey@redhat.com>
5735
5736 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5737
e0627e85
MS
57382010-05-10 Michael Snyder <msnyder@vmware.com>
5739
5740 * utils.c: White space cleanup.
5741
cc73bb8c
TT
57422010-05-10 Tom Tromey <tromey@redhat.com>
5743
5744 * eval.c (ptrmath_type_p): Add 'lang' argument.
5745 (evaluate_subexp_standard): Update.
5746 (evaluate_subexp_with_coercion): Update.
5747 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5748
c02866a0
MS
57492010-05-10 Michael Snyder <msnyder@vmware.com>
5750
5751 * utils.c (do_fclose_cleanup) Restore local variable.
5752
06280d23
DE
57532010-05-09 Doug Evans <dje@google.com>
5754
5755 * record.c (init_record_core_ops): Rename record_core to record-core.
5756
fa07e785
JB
57572010-05-08 Joel Brobecker <brobecker@adacore.com>
5758
5759 Implement task switching on pa-hpux.
5760 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5761 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5762
4c680d1d
PM
57632010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5764
5765 * valops.c (find_overload_match): Add missing i18n markup.
5766
28e176a6
PM
57672010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5768
5769 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5770
48cb83fd
JK
57712010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5772
5773 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5774 list for the obconcat call.
5775 * mdebugread.c (parse_symbol): Likewise.
5776 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5777 Likewise.
5778 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5779 New variable ap. Remove variables len and val.
5780 * symfile.h (obconcat): Likewise for the prototype.
5781
f92adf3c
MS
57822010-05-07 Michael Snyder <msnyder@vmware.com>
5783
5784 * python/python.c (execute_gdb_command): Remove unused variables.
5785 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5786 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5787 Remove unused variable.
5788 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5789 (cmdpy_completer): Remove unused variable.
5790 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5791 * python/py-function.c (fnpy_call): Remove unused variable.
5792 * python/py-objfile.c (objfile_to_objfile_object):
5793 Remove unused variable.
5794 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5795 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5796 Remove unused variable.
5797 (gdbpy_default_visualizer): Remove unused variable.
5798 * python/py-progspace.c (pspace_to_pspace_object):
5799 Remove unused variable.
0407b3f1 5800 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5801 Remove unused variable.
0407b3f1 5802 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5803 Remove unused variable.
5804 * python/py-value.c (valpy_string): Remove unused variable.
5805 (convert_value_from_python): Remove unused variables.
5806
d160942f
MS
58072010-05-07 Michael Snyder <msnyder@vmware.com>
5808
5809 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5810 and use it to compute variable 't1'.
5811
587542ab
JB
58122010-05-07 Joel Brobecker <brobecker@adacore.com>
5813
5814 * ada-lang.c (assign_aggregate): Remove unused variable.
5815
7322dca9
SW
58162010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5817
5818 PR C++/7943:
5819 * valops.c (find_overload_match): Handle fsym == NULL case.
5820 Add int no_adl argument.
5821 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5822 when appropriate.
5823 Add int no_adl argument.
5824 (find_oload_champ_namespace): Add int no_adl argument.
5825 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5826 expression.
5827 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5828 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5829 Evaluate arguments and use them to perform ADL lookup.
5830 Pass no_adl argument to find_overload_match.
5831 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5832 * cp-support.h: Added prototype for
5833 make_symbol_overload_list_namespace.
5834 * cp-support.c (make_symbol_overload_list_namespace): New function.
5835 (make_symbol_overload_list_adl_namespace): New function.
5836 (make_symbol_overload_list_adl): New function.
5837 (make_symbol_overload_list_using): Moved code to add function to
5838 overload set to make_symbol_overload_list_namespace.
5839 * c-exp.y: create UNKNOWN_CPP_NAME token.
5840 Add parse rule for ADL functions.
5841 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5842
3f1f6884
JK
58432010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5844
5845 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5846 sentinel.
5847
3caf13b4
JB
58482010-05-07 Joel Brobecker <brobecker@adacore.com>
5849
5850 Implement task switching on solaris targets.
5851 * sol-thread.c (thread_db_find_thread_from_tid)
5852 (sol_get_ada_task_ptid): New functions.
5853 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5854
94b0dee1
PA
58552010-05-07 Pedro Alves <pedro@codesourcery.com>
5856
5857 * remote.c (remote_query_supported_append): Use reconcat.
5858 (remote_query_supported): Install a cleanup. Use reconcat.
5859
1408c251
PA
58602010-05-07 Pedro Alves <pedro@codesourcery.com>
5861
5862 * gdbarch.sh (qsupported): Delete.
5863 * gdbarch.h, gdbarch.c: Regenerate.
5864 * remote.c (remote_query_supported): Remove use of
5865 gdbarch_qsupported.
5866
f8e50cfe
SDJ
58672010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5868
5869 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5870 function.
5871
8ea13695
MS
58722010-05-06 Michael Snyder <msnyder@vmware.com>
5873
c6913b7d
MS
5874 * xml-support.c (xinclude_start_include): Delete unused variable.
5875 (xml_process_xincludes): Delete unused variable.
5876 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5877 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5878 (tdesc_find_arch_register): Delete unused variable.
5879 (tdesc_use_registers): Delete unused variable.
5880 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5881 * inferior.c (print_inferior): Delete unused variable.
5882 * record.c (record_open_1): Delete unused variable.
5883 (record_restore): Delete unused variable.
5884 (cmd_record_save): Delete unused variable.
5885 * gcore.c (derive_heap_segment): Delete unused variable.
5886 (objfile_find_memory_regions): Use unused variable.
5887 * jit.c (jit_inferior_init): Delete unused variable.
5888 * progspace.c (clone_program_space): Delete unused variable.
5889 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5890
5891 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5892 Delete unused variable.
5893 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5894 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5895 (method_name_from_physname): Delete unused variable.
5896 (cp_func_name): Delete unused variable.
5897 (cp_validate_operator): Delete unused variable.
0407b3f1 5898 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5899 Delete unused variable.
0407b3f1 5900 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5901 Delete unused variable.
5902 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5903
1be757cf
MS
5904 * serial.c (serial_for_fd): Delete unused variable.
5905 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5906 * top.c (execute_command): Delete unused variable.
5907 (init_main): Delete unused variable.
5908 * utils.c (do_fclose_cleanup): Delete unused variable.
5909 (do_all_inferior_continuations): Delete unused variable.
5910 (initialize_utils): Delete unused variable.
5911 (internal_problem_mode): Delete unused global.
5912 * frame.c (get_prev_frame): Delete unused global.
5913 (get_frame_locals_address): Delete unused global.
5914 (get_frame_args_address): Delete unused global.
5915
9216103f
MS
5916 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5917 (pascal_type_print_varspec_prefix): Delete unused variable.
5918 * f-typeprint.c (f_type_print_base): Delete unused variable.
5919 (f_type_print_varspec_suffix): Delete unused variable.
5920 * m2-typeprint.c (m2_print_type): Delete unused variable.
5921 (m2_long_set): Delete unused variable.
5922 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5923 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5924 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5925 Delete unused variable.
5926 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5927 * m2-valprint.c (m2_val_print): Delete unused variable.
5928
34fa1d9d
MS
5929 * ui-out.c (ui_out_field_int): Delete unused variable.
5930 (ui_out_field_fmt_int): Delete unused variable.
5931 * varobj.c (varobj_list_children): Delete unused variable.
5932 (varobj_set_value): Delete unused variable.
5933 (install_new_value_visualizer): Delete unused variable.
5934 (varobj_set_visualizer): Delete unused variable.
5935 (varobj_update): Delete unused variable.
5936 (varobj_editable_p): Delete unused variable.
5937 (c_value_of_root): Delete unused variable.
5938 (cplus_describe_child): Delete unused variable.
5939
b5385fc0
MS
5940 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5941 (decode_constrained_packed_array_type): Delete unused variable.
5942 (add_defn_to_vec): Delete unused variable.
5943 (symbol_completion_match): Delete unused variable.
5944 (value_tag_from_contents_and_address): Delete unused variable.
5945 (ada_evaluate_subexp): Delete unused variable.
5946 * c-lang.c (classify_type): Delete unused variable.
5947 * f-lang.c (f_printstr): Delete unused variable.
5948 * objc-lang.c (objc_printstr): Delete unused variable.
5949 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5950 * jv-lang.c (type_from_class): ifdef unused variable.
5951 (java_class_name_from_physname): Delete unused variable.
5952 * m2-lang.c (m2_printstr): Delete unused variable.
5953
4fc06681
MS
5954 * objfiles.c (objfile_relocate): Delete unused variable.
5955 * maint.c (_initialize_maint_cmds): Delete unused variable.
5956 * demangle.c (_initialize_demangler): Delete unused variable.
5957 * corefile.c (reopen_exec_file): Delete unused variable.
5958 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5959 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5960
6b4398f7
MS
5961 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5962 * memattr.c (mem_delete): Delete unused variable.
5963 (invalidate_target_mem_regions): Delete unused variable.
5964 * mem-break.c (default_memory_insert_breakpoint):
5965 Delete unused variable.
5966 * target.c (target_get_osdata): Delete unused variable.
5967 * parse.c (length_of_subexp): Delete unused variable.
5968 (prefixify_subexp): Delete unused variable.
5969 (exp_iterate): Delete unused variable.
5970 * reverse.c (delete_bookmark_command): Delete unused variable.
5971
308d96ed
MS
5972 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5973 * macroexp.c (gather_arguments): Delete unused variable.
5974 (substitute_args): Delete unused variable.
5975 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5976 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5977 (_initialize_gdbarch): Delete unused variable.
5978 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5979 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5980 Delete unused variable.
5981 (_initialize_gdbarch_utils): Delete unused variable.
5982 * gdbtypes.c (make_cv_type): Delete unused variable.
5983 (make_type_with_address_space): Delete unused variable.
5984
167e4384
MS
5985 * linespec.c (decode_compound): Delete unused variable.
5986 * dictionary.c (iterator_next_hashed): Delete unused variable.
5987 * infcall.c (call_function_by_hand): Delete unused variable.
5988 * infcmd.c (step_1): Delete unused variable.
5989 (registers_info): Delete unused variable.
5990 (attach_command): Delete unused variable.
5991 * infrun.c (follow_exec): Delete unused variable.
5992 (handle_step_into_function_backwards): Delete unused variable.
5993 (_initialize_infrun): Delete unused variable.
5994 * stack.c (parse_frame_specification_1): Delete unused variable.
5995 (frame_info): Delete unused variable.
5996 (backtrace_command_1): Delete unused variable.
5997 (catch_info): Delete unused variable.
5998
8f78b329
MS
5999 * eval.c (evaluate_subexp_standard): Delete unused variable.
6000 * valops.c (value_cast_pointers): Delete unused variable.
6001 (value_dynamic_cast): Delete unused variable.
6002 (value_array): Delete unused variable.
6003 (find_overload_match): Delete unused variable.
6004 * valarith.c (value_subscript): Delete unused variable.
6005 (value_binop): Delete unused variable.
6006 * valprint.c (_initialize_valprint): Delete unused variable.
6007 * printcmd.c (print_command_1): Delete unused variable.
6008 (address_info): Delete unused variable.
6009 (printf_command): Delete unused variable.
6010
8ea13695
MS
6011 * auxv.c (target_auxv_search): Delete unused variable.
6012 * blockframe.c (get_frame_block): Delete unused variable.
6013 * regcache.c (regcache_cpy): Delete unused variable.
6014 (regcache_cpy_no_passthrough): Delete unused variable.
6015 * charset.c (wchar_iterate): Delete unused variable.
6016 (find_charset_names): Delete unused variable.
6017 (_initialize_charset): Delete unused variable.
0407b3f1 6018 * disasm.c (do_mixed_source_and_assembly):
8ea13695 6019 Delete unused variable.
0407b3f1 6020 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
6021 Delete unused variable.
6022 (set_substitute_path_command): Delete unused variable.
6023 * value.c (preserve_values): Delete unused variable.
6024 (value_from_double): Delete unused variable.
6025
afe38095
MS
60262010-05-05 Michael Snyder <msnyder@vmware.com>
6027
952a6d41
MS
6028 * psymtab.c (lookup_partial_symbol): Delete unused variable.
6029 (find_last_source_symtab_from_partial): Delete unused variable.
6030 * symfile.c (place_section): Delete unused variable.
6031 (default_symfile_offsets): Delete unused variable.
6032 (get_debug_link_info): Delete unused variable.
6033 (find_separate_debug_file_by_debuglink): Delete unused variable.
6034 (add_symbol_file_command): Delete unused variable.
6035 (symfile_find_segment_sections): Delete unused variable.
6036 * symmisc.c (free_symtab): Delete unused variable.
6037 (dump_symtab_1): Delete unused variable.
6038 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
6039 (find_pc_sect_symtab): Delete unused variable.
6040 (skip_prologue_using_lineinfo): Delete unused variable.
6041 (sources_info): Delete unused variable.
6042 (completion_list_add_name): Delete unused variable.
6043 (expand_line_sal): Delete unused variable.
6044
0407b3f1 6045 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
6046 Delete unused variables.
6047 (insert_catchpoint): Delete unused variable.
6048 (update_watchpoint): Delete unused variable.
6049 (insert_bp_location): Delete unused variable.
6050 (insert_breakpoint_locations): Delete unused variable.
6051 (remove_breakpoint_1): Delete unused variable.
6052 (software_breakpoint_inserted_here_p): Delete unused variable.
6053 (watchpoints_triggered): Delete unused variable.
6054 (bpstat_check_watchpoint): Delete unused variable.
6055 (bpstat_stop_status): Delete unused variable.
6056 (print_one_breakpoint_location): Delete unused variable.
6057 (allocate_bp_location): Delete unused variable.
6058 (create_breakpoint): Delete unused variable.
6059 (watch_command_1): Delete unused variable.
6060 (catch_exception_command_1): Delete unused variable.
6061 (catch_ada_exception_command): Delete unused variable.
6062 (delete_breakpoint): Delete unused variable.
6063 (breakpoint_re_set_one): Delete unused variable.
6064 (do_enable_breakpoint): Delete unused variable.
6065
eda5a4d7
PA
60662010-05-06 Pedro Alves <pedro@codesourcery.com>
6067
6068 * amd64-tdep.c: Include disasm.h.
6069 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6070 (amd64_insn_length): Moved to disasm.c and renamed.
6071 (fixup_riprel): Adjust.
6072 * disasm.c (do_ui_file_delete): New.
6073 (gdb_insn_length): New.
6074 (gdb_buffered_insn_length_fprintf)
6075 (gdb_buffered_insn_length_init_dis)
6076 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6077 renamed.
6078 * disasm.h (gdb_insn_length): Declare.
6079 (gdb_buffered_insn_length): Declare.
6080
02357a4a
PA
60812010-05-06 Pedro Alves <pedro@codesourcery.com>
6082
6083 * remote.c (clear_threads_parsing_context): New.
6084 (remote_threads_info): Delete unused null_cleanup. Install a
6085 cleanup to clear the threads_parsing_context in case parsing
6086 throws.
6087
8c5630cb
MS
60882010-05-05 Michael Snyder <msnyder@vmware.com>
6089
6090 * c-exp.y (parse_string_or_char): Delete unused variable.
6091 (c_lex): Delete unused variable.
6092 * cp-name-parser.y (cpname_lex): Delete unused variable.
6093 * ada-exp.y (find_primitive_type): Delete unused variable.
6094 (write_var_or_type): Delete unused variable.
6095 * jv-exp.y (java_parse): Delete unused variable.
6096 (push_expression_name): Delete unused variable.
6097 * p-exp.y (pascal_lex): Delete unused variable.
6098
46c162d4
PA
60992010-05-05 Pedro Alves <pedro@codesourcery.com>
6100
6101 * remote.c (remote_threads_info): Really revert previous previous
6102 change.
6103
0043e6a5
MS
61042010-05-05 Michael Snyder <msnyder@vmware.com>
6105
fa238c03
MS
6106 * elfread.c (elf_symtab_read): Delete unused variable.
6107 (find_separate_debug_file_by_buildid): Delete unused variables.
6108 (elf_symfile_read): Delete unused variable.
6109
6110 * coffread.c (coff_symfile_read): Delete unused variables.
6111
6112 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6113 (read_pe_exported_syms): Delete unused variable.
6114
6115 * stabsread.c (define_symbol): Delete unused variable.
6116
6117 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6118 (process_psymtab_comp_unit): Delete unused variable.
6119 (dwarf2_build_psymtabs_hard): Delete unused variable.
6120 (load_partial_comp_unit): Delete unused variable.
6121 (create_all_comp_units): Delete unused variable.
6122 (scan_partial_symbols): Delete unused variable.
6123 (add_partial_symbol): Delete unused variable.
6124 (add_partial_namespace): Delete unused variable.
6125 (add_partial_enumeration): Delete unused variable.
6126 (load_full_comp_unit): Delete unused variable.
6127 (process_full_comp_unit): Delete unused variable.
6128 (read_file_scope): Delete unused variable.
6129 (read_type_unit_scope): Delete unused variable.
6130 (process_structure_scope): Delete unused variable.
6131 (process_enumeration_scope): Delete unused variable.
6132 (read_tag_ptr_to_member_type): Delete unused variable.
6133 (read_typedef): Delete unused variable.
6134 (read_partial_die): Delete unused variable.
6135 (decode_locdesc): Delete unused variable.
6136 (zeroed_partial_die): Delete unused global variable.
6137
0407b3f1 6138 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 6139 Delete unused variable.
0407b3f1 6140 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
6141 Delete unused variable.
6142 (tui_check_register_values): Delete unused variable.
6143 (tui_register_format): Delete unused variable.
6144 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 6145 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
6146 Delete unused variables.
6147 (tui_vertical_data_scroll): Delete unused variables.
6148
75721c66
MS
61492010-05-05 Michael Snyder <msnyder@vmware.com>
6150
c31a71f4
MS
6151 * remote.c (remote_threads_info): Revert questionable part of
6152 the previous change.
6153
61542010-05-05 Michael Snyder <msnyder@vmware.com>
6155
6156 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6157 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6158 (mi_cmd_var_list_children): Delete unused variable.
6159 (varobj_update_one): Delete unused variable.
6160 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 6161 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
6162 Delete unused variable.
6163 (mi_cmd_stack_list_variables): Delete unused variable.
6164 (list_args_or_locals): Delete unused variable.
0407b3f1 6165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
6166 Delete unused variables.
6167 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 6168 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
6169 Delete unused variable.
6170 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6171 (mi_cmd_interpreter_exec): Delete unused variable.
6172 (mi_on_normal_stop): Delete unused variable.
6173 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6174 (print_one_inferior): Delete unused variables.
6175 (mi_execute_command): Delete unused variable.
6176 (mi_cmd_execute): Delete unused variable.
6177 (timestamp): Delete unused variable.
6178
6179 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 6180 (restore_binary_file): Delete unused variable.
c31a71f4
MS
6181 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6182 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
6183 (recurse_read_control_structure): Delete unused variable.
6184 (script_from_file): Delete unused variable.
c31a71f4 6185 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
6186 (disassemble_command): Delete unused variable.
6187
6188 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 6189 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
6190 Delete unused variables.
6191 (encode_actions_1): Delete unused variables.
6192 (start_tracing): Delete unused variable.
6193 (trace_status_mi): Delete unused variable.
6194 (tfind_1): Delete unused variable.
6195 (trace_find_pc_command): Delete unused variable.
6196 (trace_find_line_command): Delete unused variables.
6197 (trace_find_range_command): Delete unused variables.
6198 (trace_find_outside_command): Delete unused variables.
6199 (parse_tracepoint_definition): Delete unused variables.
6200 (tfile_fetch_registers): Delete unused variable.
6201
9128a503
MS
6202 * dcache.c (dcache_init): Delete unused variable.
6203 (dcache_info): Delete unused variable.
6204
aa369b55 6205 * remote.c (remote_threads_info): Delete unused variable.
9128a503 6206 (process_stop_reply) :Delete unused variable.
aa369b55
MS
6207 (remote_get_trace_status): Delete unused variables.
6208
9e9547e4
MS
6209 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6210 (thread_from_lwp): Delete unused variable.
6211 (enable_thread_event_reporting): Delete unused variable.
6212 (check_for_thread_db): Delete unused variables.
6213 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 6214
9e9547e4
MS
6215 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6216 (checkpoint_command): Delete unused variable.
6217 (linux_fork_context): Delete unused variables.
6218
fa238c03 6219 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
6220 (linux_tracefork_child): Delete unused variable.
6221 (linux_child_follow_fork): Delete unused variable.
6222 (linux_nat_detach): Delete unused variable.
6223 (linux_handle_extended_wait): Delete unused variable.
6224 (linux_nat_has_pending_sigint): Delete unused variable.
6225 (linux_nat_find_memory_regions): Delete unused variable.
6226 (linux_nat_make_corefile_notes): Delete unused variables.
6227 (linux_nat_info_proc_cmd): Delete unused variable.
6228 (linux_proc_pending_signals): Delete unused variable.
6229 (linux_nat_stop_lwp): Delete unused variables.
6230 (_initialize_linux_nat): Delete unused variable.
6231
fa238c03 6232 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 6233
0407b3f1 6234 * linux-record.c (record_linux_system_call):
e0f069a3
MS
6235 Delete unused variables.
6236
789d24f0
MS
6237 * corelow.c (core_xfer_partial): Delete unused variables.
6238
1cd337a5 6239 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 6240 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
6241 conditionally-used variable declarations.
6242
b00e3f56
MS
6243 * solib.c (solib_find): Delete unused variable.
6244 (free_so_symbols): Delete unused variable.
6245 (info_sharedlibrary_command): Delete unused variable.
6246 (reload_shared_libraries_1): Delete unused variable.
6247 (_initialize_solib): Delete unused variable.
6248
90f62196
MS
6249 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6250 (i386_collect_xstateregset): Delete unused variable.
6251 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6252
75721c66
MS
6253 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6254 Delete unused variable 'type'.
6255
af33db37
JB
62562010-05-05 Joel Brobecker <brobecker@adacore.com>
6257
90f62196 6258 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
6259 ada-lang.c: Remove comment mentioning these macros.
6260 * m2-exp.y: Delete commented out code.
af33db37 6261
0497f5b0
JB
62622010-05-05 Joel Brobecker <brobecker@adacore.com>
6263
6264 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6265 for array types.
6266 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6267
6e39997a
PM
62682010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6269
6270 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 6271 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
6272 ATTRIBUTE_UNUSED.
6273 (cleanup_kernel_helper_return): Likewise.
6274 * arm-tdep.c (copy_unmodified): Likewise.
6275 (copy_preload): Likewise.
6276 (copy_copro_load_store): Likewise.
6277 (cleanup_branch): Likewise.
6278 (copy_b_bl_blx): Likewise.
6279 (copy_bx_blx_reg): Likewise.
6280 (copy_alu_imm): Likewise.
6281 (copy_alu_reg): Likewise.
6282 (copy_alu_shifted_reg): Likewise.
6283 (cleanup_load): Likewise.
6284 (cleanup_store): Likewise.
6285 (cleanup_block_load_pc): Likewise.
6286 (cleanup_svc): Likewise.
6287 (copy_undef): Likewise.
6288 (copy_unpred): Likewise.
6289 * remote.c (register_remote_support_xml): Likewise.
6290
1412f70b
HZ
62912010-05-05 Hui Zhu <teawater@gmail.com>
6292
6293 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6294
c4f7c687
MK
62952010-05-04 Mark Kettenis <kettenis@gnu.org>
6296
6297 * remote.c (register_remote_support_xml)
6298 (remote_query_supported_append, remote_query_supported): Add cast
6299 to NULL used as sentinel.
6300 * tracepoint.c (tvariables_info_1): Likewise.
6301 * utils.c (add_internal_problem_command): Likewise.
6302
63b4f126
MGD
63032010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6304
6305 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6306 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6307 registers gracefully.
6308
2f1bdd26
MGD
63092010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6310
0407b3f1 6311 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
6312 specific parts.
6313
e1c34c5d
PM
63142010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6315
6316 PR exp/11349.
6317 * printcmd.c (x_command): Only dereference once implicitly for
6318 TYPE_CODE_REF.
6319
ae462839
DE
63202010-05-03 Doug Evans <dje@google.com>
6321
6322 * event-loop.c (gdb_timer): Delete unused global.
6323 (create_timer): Update.
6324
1ac77ea1
JK
63252010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6326
6327 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6328 CURRENT->DECLARATION case.
6329 * cp-support.h (struct using_direct): Provide extended comment.
6330
7c54a108
MK
63312010-05-03 Mark Kettenis <kettenis@gnu.org>
6332
6333 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6334 HPPABSD_SIZEOF_GREGS.
6335 (HPPAOBSD_SIZEOF_FPREGS): New define.
6336 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6337 (hppaobsd_supply_fpregset): New function.
6338 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6339 (hppaobsd_fpregset): New variable.
6340 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6341 (_initialize_hppabsd_tdep): Remove spurious blank line.
6342
278582cb
PM
63432010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6344
6345 PR pascal/11349.
6346 * p-valprint.c (pascal_value_print): Always dereference a value with
6347 type code TYPE_CODE_REF.
0407b3f1 6348
f0223081
PA
63492010-05-03 Pedro Alves <pedro@codesourcery.com>
6350
6351 * remote.c (remote_notice_signals): New.
6352 (remote_start_remote): In non-stop mode, update the remote end on
6353 which signals it can silently pass.
6354 (init_remote_ops): Install remote_notice_signals.
6355
c25c4a8b
JK
63562010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6357
6358 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6359 * command.h (error_no_arg): ... here. Remove NORETURN, change
6360 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6361 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6362 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6363 (internal_verror, internal_error, nomem): Remove NORETURN, change
6364 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6365 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6366 (throw_vfatal, throw_error): Remove NORETURN.
6367 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6368 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6369 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6370 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6371 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6372 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6373 NORETURN.
6374 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6375 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6376 ATTRIBUTE_NORETURN.
6377 * target.c (tcomplain): Likewise.
6378 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6379 ATTRIBUTE_NORETURN.
6380 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6381 (internal_error, perror_with_name, nomem): Remove NORETURN.
6382 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6383 ATTRIBUTE_NORETURN.
6384
a0b31db1
JK
63852010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6386
6387 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6388 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6389 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6390 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6391 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6392 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6393 * complaints.h (complaint, internal_complaint): Likewise.
6394 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6395 (ATTR_FORMAT): Remove.
6396 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6397 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6398 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6399 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6400 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6401 (internal_error, internal_vwarning, internal_warning, warning)
6402 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6403 * disasm.c (fprintf_disasm): Likewise.
6404 * exceptions.c (throw_it): Likewise.
6405 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6406 (throw_error): Likewise.
6407 * language.h (type_error, range_error): Likewise.
6408 * linespec.c (cplusplus_error): Likewise.
6409 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6410 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6411 * monitor.c (monitor_debug): Likewise.
6412 * parser-defs.h (parser_fprintf): Likewise.
6413 * serial.h (serial_printf): Likewise.
6414 * tui/tui-hooks.c (tui_query_hook): Likewise.
6415 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6416 (uo_message): Likewise.
6417 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6418 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6419 Likewise.
6420 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6421
02a45ac0
PA
64222010-05-02 Pedro Alves <pedro@codesourcery.com>
6423
6424 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6425 (cli_table_header, cli_begin, cli_end, cli_field_int)
6426 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6427 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6428 Delete forward declarations.
6429 (cli_ui_out_impl): Move below the callbacks.
6430 (_initialize_cli_out): Delete.
6431
1915ef4f
PA
64322010-05-02 Pedro Alves <pedro@codesourcery.com>
6433
6434 * README: Use consistent `GDB' and `GDBserver' spellings.
6435
0dfb946f
JK
64362010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6437
6438 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6439
4d533103
PA
64402010-05-01 Pedro Alves <pedro@codesourcery.com>
6441
6442 * infrun.c (prepare_for_detach): In non-stop, context switch to
6443 the thread that got the event before handling the event.
6444
705b5767
TT
64452010-04-30 Tom Tromey <tromey@redhat.com>
6446
6447 * symtab.c (symbol_set_names): Fix typo.
6448
3c0ee1a4
PM
64492010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6450
6451 * python/py-param.c (parm_constants): Avoid ARI warning
6452 by adding ARI comment.
6453 (parmpy_init): Likewise.
6454
ea1fae46
PM
64552010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6456
6457 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6458 and created type for re-use.
6459
c24d0242
PM
64602010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6461
6462 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6463
a26d8d11
DE
64642010-04-29 Doug Evans <dje@google.com>
6465
6466 * ser-base.h (reschedule): Delete prototype.
6467 * ser-base.c (reschedule): Make static.
6468
f8624c62
MGD
64692010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6470
6471 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6472 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 6473 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 6474 EABI.
0407b3f1 6475 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
6476 use.
6477
e66408ed
PA
64782010-04-29 Pedro Alves <pedro@codesourcery.com>
6479
6480 PR gdb/11557
6481
6482 * regcache.c (registers_changed): Rename to ...
6483 (registers_changed_ptid): ... this, and only delete register cache
6484 entries matching the ptid filter argument.
6485 (registers_changed): Reimplement on top of registers_changed_ptid.
6486 * regcache.h (registers_changed_ptid): Declare.
6487 * target.c (target_resume): Flush register caches.
6488
d7b32ed3 64892010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
6490 Tom Tromey <tromey@redhat.com>
6491 Thiago Jung Bauermann <bauerman@br.ibm.com>
6492
6493 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6494 (SUBDIR_PYTHON_SRCS): Likewise.
6495 (py-parameter.o): New rule.
6496 * python/py-parameter.c: New file.
6497 * python/python-internal.h (gdbpy_initialize_parameter)
6498 (gdbpy_parameter, gdbpy_parameter_value)
6499 (gdbpy_parse_command_name): Declare.
6500 * python/py-cmd.c (parse_command_name): Rename to
6501 gdbpy_parse_command_name.
6502 (gdbpy_parse_command_name): Accept a starting list parameter and
6503 use over cmdlist.
6504 (cmdpy_init): Use gdbpy_parse_command_name.
6505 * python/python.c (parameter_to_python): Rename to
6506 gdbpy_parameter_to_python. Accept enum var_types and value.
6507 (gdbpy_parameter): Use gdbpy_parameter_value.
6508 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 6509
ce72ce41
MGD
65102010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6511
6512 * MAINTAINERS: Add myself for write after approval privileges.
6513
6aecb9c2
JB
65142010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6515
6516 D language support.
6517 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6518 (COMMON_OBS): Add d-lang.o d-valprint.o.
6519 (HFILES_NO_SRCDIR): Add d-lang.h.
6520 * NEWS: Mention D language support.
6521 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6522 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6523 * d-lang.c: New file.
6524 * d-lang.h: New file.
6525 * d-valprint.c: New file.
6526 * defs.h (enum language): Add language_d.
6527 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6528 * language.c (binop_result_type, integral_type, character_type)
6529 (string_type, boolean_type, structured_type): Add language_d.
6530 * symfile.c (init_filename_language_table): Add language_d.
6531 * symtab.c: Include d-lang.h.
6532 (symbol_init_language_specific, symbol_find_demangled_name)
6533 (symbol_natural_name, lookup_symbol_in_language)
6534 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6535
6f992fbf
JB
65362010-04-27 Joel Brobecker <brobecker@adacore.com>
6537
6538 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6539
dde59185
JB
65402010-04-27 Joel Brobecker <brobecker@adacore.com>
6541
6542 * symfile.c (init_filename_language_table): Register .dg files
6543 with language_ada.
6544
d09ce91e
JB
65452010-04-27 Joel Brobecker <brobecker@adacore.com>
6546
6547 * gdbtypes.h (struct main_type): Expand comment about target_type
6548 field.
6549
67f1675e
JB
65502010-04-27 Pedro Alves <pedro@codesourcery.com>
6551 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
6552
6553 * symfile.c (reread_symbols): Also search for file in libraries.
6554 Update comment.
6555
dfd0fe27
JB
65562010-04-27 Joel Brobecker <brobecker@adacore.com>
6557
6558 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6559 in terms of configuration.
6560
0133421a
JK
65612010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6562
6563 * objfiles.c: Include solist.h.
6564 (free_all_objfiles): New variable so. Check stale solist objfiles.
6565 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6566 and no_shared_libraries.
6567
e78f4312
JB
65682010-04-27 Joel Brobecker <brobecker@adacore.com>
6569
6570 ARI warning fix.
6571 * python/py-auto-load.c (source_section_scripts): Remove trailing
6572 new-line in i18n string.
6573
9214d371
DE
65742010-04-26 Doug Evans <dje@google.com>
6575
6576 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6577
3f172e24
TT
65782010-04-26 Tom Tromey <tromey@redhat.com>
6579
6580 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6581 command list.
6582
e790e06e
PM
65832010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6584
6585 Removal of config/i386/nm-i386sol2.h native configuration file.
6586 * config/i386/nm-i386sol2.h: Remove file.
6587 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6588 * config/i386/sol2-64.mh: Idem.
88562582
PM
6589 * config/djgpp/fnchange.lst: Remove reference to that file.
6590 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 6591
b7da9e9f
PM
65922010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6593
6594 PR breakpoints/11531.
6595 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6596 macro definition and related comment.
6597 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6598 (resume): Remove code and comment related to this macro.
6599
72f6eb52
JK
66002010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6601
6602 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6603 Fix whitespace.
6604
ab38a727
PA
66052010-04-24 Pedro Alves <pedro@codesourcery.com>
6606
6607 * defs.h: Adjust comment.
6608 * filesystem.h, filesystem.c: New files.
6609 * Makefile.in (SFILES): Add filesystem.c.
6610 (COMMON_OBS): Add filesystem.o.
6611 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6612 different target and host path flavours.
6613 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6614 has_dos_based_file_system on the gdbarch.
6615 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6616 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6617 * i386-tdep.c (i386_go32_init_abi): Ditto.
6618 * gdbarch.sh (has_dos_based_file_system): New.
6619 * gdbarch.h, gdbarch.c: Regenerate.
6620 * NEWS: Mention improved support for remote targets with DOS-based
6621 filesystems. Mention new `set/show target-file-system-kind'
6622 commands.
6623
35c9c7ba
SS
66242010-04-23 Stan Shebs <stan@codesourcery.com>
6625
6626 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6627 comments.
6628 (struct agent_reqs): Remove.
6629 (ax_reg_mask): Declare.
6630 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6631 (free_agent_expr): Free reg_mask.
6632 (ax_print): Add scope and register mask info.
6633 (ax_reqs): Remove agent_reqs argument, use agent expression
6634 fields, and move part of register mask computation to...
6635 (ax_reg_mask): New function.
6636 * ax-gdb.c (gen_trace_static_fields): Call it.
6637 (gen_traced_pop): Ditto.
6638 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6639 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6640 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6641 (gen_eval_for_expr): Ditto, and require an rvalue.
6642 (agent_command): Call ax_reqs.
6643 (agent_eval_command): Ditto.
6644 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6645 (validate_action_line): Ditto.
6646 (collect_symbol): Ditto.
6647 (encode_actions_1): Ditto.
6648
492928e4
JK
66492010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6650 Paul Pluzhnikov <ppluzhnikov@google.com>
6651 Jan Kratochvil <jan.kratochvil@redhat.com>
6652
6653 Fix deadlock on looped list of loaded shared objects.
6654 * solib-svr4.c (LM_PREV): New function.
6655 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6656 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6657 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6658 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6659
66d09542
DE
66602010-04-23 Doug Evans <dje@google.com>
6661
88a1906b
DE
6662 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6663 python.
6664 * configure: Regenerate.
6665 * main.c: #include "python/python.h".
6666 (captured_main): Defer loading auto-loaded scripts until after
6667 local_gdbinit has been sourced.
6668 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6669 (load_auto_scripts_for_objfile): New function.
6670 (auto_load_new_objfile): Call it.
6671 * python/python.h (gdbpy_global_auto_load): Declare.
6672 (load_auto_scripts_for_objfile): Declare.
6673
66d09542
DE
6674 Add support for auto-loading scripts from .debug_gdb_scripts section.
6675 * NEWS: Add entry for .debug_gdb_scripts.
6676 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6677 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6678 (py-auto-load.o): New rule.
6679 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6680 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6681 * python/py-auto-load.c: New file.
6682 * python/python-internal.h: #include <stdio.h>.
6683 (set_python_list, show_python_list): Declare.
6684 (gdbpy_initialize_auto_load): Declare.
6685 (source_python_script_for_objfile): Declare.
6686 * python/python.c: Remove #include of observer.h.
6687 (gdbpy_auto_load): Moved to py-auto-load.c.
6688 (GDBPY_AUTO_FILENAME): Ditto.
6689 (gdbpy_new_objfile): Delete.
6690 (source_python_script_for_objfile): New function.
6691 (set_python_list, show_python_list): Make externally visible.
6692 (_initialize_python): Move "auto-load" command to py-auto-load.c
6693 and observer_attach_new_objfile to py-auto-load.c.
6694
3a48e6ff 66952010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 6696
3a48e6ff
JG
6697 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6698 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6699 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6700 New constants.
6701 (alpha_heuristic_analyze_probing_loop): New function.
6702 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6703 and handle cases when a stack probe loop is generated.
6704 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6705 (alpha_mdebug_max_frame_size_exceeded): New function.
6706 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6707 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6708 Return 0 when the maximum debuggable frame size has been exceeded.
6709
e4166a49
JB
67102010-04-23 Joel Brobecker <brobecker@adacore.com>
6711
6712 Fix ARI warning.
6713 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6714
8bd10a10
CM
67152010-04-20 Chris Moller <cmoller@redhat.com>
6716
6717 PR 10179
6718
6719 * symtab.c (rbreak_command): Added code to include a filename
6720 specification in the rbreak argument.
6721 * NEWS: Added a brief description of filename-qualified rbreak.
6722
c0201579
JK
67232010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6724
6725 Fix crashes on dangling display expressions.
6726 * ada-lang.c (ada_operator_check): New function.
6727 (ada_exp_descriptor): Fill-in the field operator_check.
6728 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6729 * jv-lang.c (exp_descriptor_java): Likewise.
6730 * m2-lang.c (exp_descriptor_modula2): Likewise.
6731 * scm-lang.c (exp_descriptor_scm): Likewise.
6732 * parse.c (exp_descriptor_standard): Likewise.
6733 (operator_check_standard): New function.
6734 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6735 * parser-defs.h (struct exp_descriptor): New field operator_check.
6736 (operator_check_standard, exp_uses_objfile): New declarations.
6737 * printcmd.c: Remove the inclusion of solib.h.
6738 (display_uses_solib_p): Remove the function.
6739 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6740 and exp_uses_objfile instead of display_uses_solib_p.
6741 * solist.h (struct so_list) <objfile>: New comment.
6742 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6743 * symtab.h (lookup_objfile_from_block): New declaration.
6744 (struct general_symbol_info) <obj_section>: Extend the comment.
6745
6ffbb7ab
TJB
67462010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6747 Thiago Jung Bauermann <bauerman@br.ibm.com>
6748
6749 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6750 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6751 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6752 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6753 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6754 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6755 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6756 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6757 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6758 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6759 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6760 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6761 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6762 Define, in case <ptrace.h> doesn't provide it.
6763 (booke_debug_info): New variable.
6764 (max_slots_number): Ditto.
6765 (hw_break_tuple): New struct.
6766 (thread_points): Ditto.
6767 (ppc_threads): New variable.
6768 (PPC_DEBUG_CURRENT_VERSION): New define.
6769 (have_ptrace_new_debug_booke): New function.
6770 (ppc_linux_check_watch_resources): Renamed to ...
6771 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6772 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6773 (booke_cmp_hw_point): New function.
6774 (booke_find_thread_points_by_tid): Ditto.
6775 (booke_insert_point): Ditto.
6776 (booke_remove_point): Ditto.
6777 (ppc_linux_insert_hw_breakpoint): Ditto.
6778 (ppc_linux_remove_hw_breakpoint): Ditto.
6779 (get_trigger_type): Ditto.
6780 (ppc_linux_insert_watchpoint): Handle BookE processors.
6781 (ppc_linux_remove_watchpoint): Ditto.
6782 (ppc_linux_new_thread): Ditto.
6783 (ppc_linux_thread_exit): New function..
6784 (ppc_linux_stopped_data_address): Handle BookE processors.
6785 (ppc_linux_watchpoint_addr_within_range): Ditto.
6786 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6787 to_remove_hw_breakpoint fields of the target operations struct.
6788 Add observe for the thread_exit event.
6789
be0d2954
L
67902010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6791
6792 * i386-linux-nat.c (regmap): Removed.
6793 (fetch_register): Replace regmap with
6794 i386_linux_gregset_reg_offset.
6795 (store_register): Likewise.
6796 (supply_gregset): Likewise.
6797 (fill_gregset): Likewise.
6798
6799 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6800 global.
6801
6802 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6803
f56dcb88
CM
68042010-04-22 Chris Moller <cmoller@redhat.com>
6805
6806 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6807 method of popping recursion-detection stack with a method based on
6808 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6809 the static array obstack rather than the static member obstack.)
6810
6cd6a2ae
L
68112010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6812
6813 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6814 (_initialize_amd64_linux_nat): Replace
6815 amd64_linux_gregset64_reg_offset with
6816 amd64_linux_gregset_reg_offset.
6817
6818 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6819 global.
6820
6821 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6822
621791b8
PM
68232010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6824
6825 PR stabs/11479.
6826 * stabsread.c (set_length_in_type_chain): New function.
6827 (read_struct_type): Call set_length_in_type_chain function.
6828 (read_enum_type): Idem.
6829
105c2d85
SS
68302010-04-21 Stan Shebs <stan@codesourcery.com>
6831 Nathan Sidwell <nathan@codesourcery.com>
6832
6833 * tracepoint.c (trace_save): Open in binary mode.
6834
9a22f0d0
PM
68352010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6836
6837 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6838 fields.
0407b3f1 6839 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6840 builtin_char32 fields.
6841 * printcmd.c (decode_format): Set char size to '\0'
6842 for strings unless explicit size is given.
6843 (print_formatted): Correct calculation of NEXT_ADDRESS
6844 for 16 or 32 bit strings.
6845 (do_examine): Do not force byte size for strings.
6846 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6847 16 or 32 bit-wide strings.
9a22f0d0
PM
6848 (x_command): Set LAST_SIZE to 'b' for string type.
6849
f335d1b3
L
68502010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6851
6852 PR corefiles/11523
6853 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6854 XCR0 first.
6855
6856 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6857 there is no .reg-xstate section.
6858 (i386_linux_core_read_description): Check XCR0 first.
6859
a9789a6b
MF
68602010-04-21 Mike Frysinger <vapier@gentoo.org>
6861
6862 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6863 for len <= 8.
6864
0b66f317
CM
68652010-04-21 Chris Moller <cmoller@redhat.com>
6866
6867 PR 9167
6868 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6869 method of popping recursion-detection stack with a method based on
6870 obstack_object_size().
0b66f317 6871
6e354e5e
PM
68722010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6873
6874 PR pascal/11492.
6875 * p-valprint.c (pascal_val_print): Fix default printing of integer
6876 arrays.
6877
57174f31
PM
68782010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6879
6880 Fix compilation warning on gcc-4.1.2.
6881 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6882 local variable`pc' to zero.
6883
6fbc7cd8
JB
68842010-04-20 Joel Brobecker <brobecker@adacore.com>
6885
6886 Implement thread support with core files on alpha-tru64.
6887 * dec-thread.c (dec_thread_find_new_threads): New function,
6888 extracted from resync_thread_list.
6889 (resync_thread_list): Add OPS parameter. Replace extracted-out
6890 code by call to dec_thread_find_new_threads.
6891 (dec_thread_wait): Update call to resync_thread_list.
6892 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6893
438c98a1
JB
68942010-04-20 Joel Brobecker <brobecker@adacore.com>
6895
6896 * ada-lang.c (value_pointer): New function.
6897 (make_array_descriptor): Call value_pointer to convert addresses to
6898 pointers.
6899
2971b56b
JB
69002010-04-20 Joel Brobecker <brobecker@adacore.com>
6901
6902 * rs6000-aix-tdep.c: #include exceptions.h.
6903 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6904 while reading the memory at ADDR, then ADDR cannot be a function
6905 descriptor.
6906
be942545
JB
69072010-04-20 Joel Brobecker <brobecker@adacore.com>
6908
6909 * ada-typeprint.c (ada_print_typedef): New function.
6910 * ada-lang.h (ada_print_typedef): Add declaration.
6911 * ada-lang.c (ada_language_defn): set la_print_typdef field
6912 to ada_print_typedef.
6913
1ca8fce0
JB
69142010-04-20 Joel Brobecker <brobecker@adacore.com>
6915
6916 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6917
e9ef4f39
JB
69182010-04-20 Joel Brobecker <brobecker@adacore.com>
6919
6920 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6921 (iterate_over_mappings): Adjust function profile. Add declaration.
6922 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6923 Adjust accordingly.
6924
e294797a
JB
69252010-04-20 Joel Brobecker <brobecker@adacore.com>
6926
6927 * procfs.c (solib_mappings_callback): Move function up to avoid
6928 a compiler warning.
6929
a223f1e7
JB
69302010-04-20 Joel Brobecker <brobecker@adacore.com>
6931
6932 * procfs.c (find_signalled_thread, find_stop_signal): Move
6933 these functions down to define them only when used.
6934
0c3acc09
JB
69352010-04-20 Joel Brobecker <brobecker@adacore.com>
6936
6937 * valprint.c (common_val_print): Fix the value before extracting
6938 its contents.
6939 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6940 * ada-lang.h (ada_to_fixed_value): New function declaration.
6941 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6942 to avoid code duplication and fix a bug in the handling of
6943 fixed types contents.
6944
31ef98ae
TT
69452010-04-20 Tom Tromey <tromey@redhat.com>
6946
6947 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6948 (read_partial_die): Likewise.
6949 (dwarf_attr_name): Likewise.
6950
ec31cde5 69512010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6952
ec31cde5
CM
6953 PR 10867
6954
6955 * cp-valprint.c (global): Adding new static array recursion
6956 detection obstack.
6957 (cp_print_value_fields, cp_print_static_field): Added new static
6958 array recursion detection code.
6959
e0e0e543
MK
69602010-04-20 Mark Kettenis <kettenis@gnu.org>
6961
6962 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6963 general-purpose register set should be 68 instead of 144.
6964 (i386_linux_sse_regset_sections): Likewise.
6965 (i386_linux_avx_regset_sections): Likewise.
6966
08922a10
SS
69672010-04-20 Stan Shebs <stan@codesourcery.com>
6968 Nathan Sidwell <nathan@codesourcery.com>
6969
6970 * dwarf2loc.c (struct axs_var_loc): New struct.
6971 (dwarf2_tracepoint_var_loc): New function.
6972 (dwarf2_tracepoint_var_access): New function.
6973 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6974 with DW_OP_piece.
6975 (locexpr_describe_location_piece): New function.
6976 (locexpr_describe_location_1): New function.
6977 (locexpr_describe_location): Call it, update signature.
6978 (loclist_describe_location): Rewrite to loop over locations,
6979 update signature.
6980 * symtab.h (struct symbol_computed_ops): Add address to
6981 describe_location arguments, return void.
6982 * printcmd.c (address_info): Get context PC, pass to computed
6983 location description.
6984 * tracepoint.c (scope_info): Ditto.
6985 * ax-gdb.c (trace_kludge): Export.
6986
2dc7f7b3
TT
69872010-04-20 Tom Tromey <tromey@redhat.com>
6988
6989 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6990 (struct dwarf2_cie) <segment_size>: New field.
6991 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6992 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6993 DW_FORM_exprloc.
6994 (read_attribute_value): Handle DW_FORM_flag_present,
6995 DW_FORM_sec_offset, DW_FORM_exprloc.
6996 (dump_die_shallow): Likewise.
6997 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6998 (dwarf2_const_value): Handle DW_FORM_exprloc.
6999 (attr_form_is_block): Likewise.
7000 (struct line_header) <maximum_ops_per_instruction>: New field.
7001 (dwarf_decode_line_header): Set new field.
7002 (dwarf_decode_lines): Handle new field.
7003
ce4b0682
SDJ
70042010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7005
7006 * f-exp.y: Add new production to recognize the `logical*8' type.
7007 (LOGICAL_S8_KEYWORD): New token.
7008 * f-lang.c (enum f_primitive_types)
7009 <f_primitive_type_logical_s8>: New field.
7010 (f_language_arch_info): Handling `logical*8' type.
7011 (build_fortran_types): Building `logical*8' type.
7012 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
7013
ff9f22f1
DE
70142010-04-19 Doug Evans <dje@google.com>
7015
7016 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
7017 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
7018 (pipe_close): Ditto.
7019
437125bd
PM
70202010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7021
7022 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
7023
e8e6c82e
PM
70242010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7025
7026 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
7027 type to void function.
7028
4136fdd2
SS
70292010-04-19 Stan Shebs <stan@codesourcery.com>
7030 Vladimir Prus <vladimir@codesourcery.com>
7031
7032 * tracepoint.c (tfind_1): Add missing newline, report exit from
7033 tfind mode as such.
7034 * target.c (update_current_target): Make default
7035 to_trace_find return -1.
7036
0c4b2e63
MF
70372010-04-19 Mike Frysinger <vapier@gentoo.org>
7038
7039 * objc-lang.c (find_methods): Move symname check up.
7040
78076abc
PA
70412010-04-19 Pedro Alves <pedro@codesourcery.com>
7042
7043 * ada-lang.c (print_recreate_exception)
7044 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
7045 not "catch unhandled".
7046
6149aea9
PA
70472010-04-19 Pedro Alves <pedro@codesourcery.com>
7048
7049 PR breakpoints/8554.
7050
7051 Implement `save-breakpoints'.
7052
7053 * breakpoint.c (save_cmdlist): New.
7054 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7055 to save_cmdlist.
7056 (print_recreate_catch_fork): New.
7057 (catch_fork_breakpoint_ops): Install it.
7058 (print_recreate_catch_vfork): New.
7059 (catch_vfork_breakpoint_ops): Install it.
7060 (print_recreate_catch_syscall): New.
7061 (catch_syscall_breakpoint_ops): Install it.
7062 (print_recreate_catch_exec): New.
7063 (catch_exec_breakpoint_ops): Install it.
7064 (print_recreate_exception_catchpoint): New.
7065 (gnu_v3_exception_catchpoint_ops): Install it.
7066 (save_breakpoints): New, based on tracepoint_save_command, but
7067 handle all breakpoint types.
7068 (save_breakpoints_command): New.
7069 (tracepoint_save_command): Rename to...
7070 (save_tracepoints_command): ... this, and reimplement using
7071 save_breakpoints.
7072 (save_command): New.
7073 (_initialize_breakpoints): Install the "save" command prefix.
7074 Install the "save breakpoints" command. Make "save-tracepoints" a
7075 deprecated alias for "save tracepoints".
7076 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7077 * ada-lang.c (print_recreate_exception): New.
7078 (print_recreate_catch_exception): New.
7079 (catch_exception_breakpoint_ops): Install it.
7080 (print_recreate_catch_exception_unhandled): New.
7081 (catch_exception_unhandled_breakpoint_ops): Install it.
7082 (print_recreate_catch_assert): New.
7083 (catch_assert_breakpoint_ops): Install it.
7084
7085 * NEWS: Mention the new `save breakpoints' command. Mention the
7086 new `save tracepoints' alias and that `save-tracepoints' is now
7087 deprecated.
7088
0a8fce9a
PA
70892010-04-18 Pedro Alves <pedro@codesourcery.com>
7090
7091 PR tui/9217
7092
7093 * tui/tui-out.c: Include cli-out.h.
7094 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7095 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7096 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7097 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7098 declarations.
7099 (struct ui_out_data): Rename to...
7100 (struct tui_ui_out_data): ... this. Remove `stream' and
7101 `suppress_output' fields, and inherit cli_ui_out_data.
7102 (tui_out_data): New typedef.
7103 (tui_ui_out_impl): Don't initialize fields staticaly.
7104 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7105 (tui_begin, tui_end): Delete.
7106 (tui_field_int): Adjust to delegate most work to the base type.
7107 (tui_field_skip): Delete.
7108 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7109 delegate most work to the base type.
7110 (tui_spaces): Delete.
7111 (tui_text): Adjust to delegate most work to the base type.
7112 (tui_message): Delete.
7113 (tui_wrap_hint): Delete.
7114 (tui_flush): Delete.
7115 (out_field_fmt): Delete.
7116 (field_separator): Delete.
7117 (tui_out_new): Adjust to initialize the base type.
7118 (_initialize_tui_out): Initialize tui_ui_out_impl.
7119 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7120 cli_ui_out_data.
7121 (cli_out_data): Adjust.
7122 (cli_ui_out_impl): Make extern.
7123 (cli_table_header, cli_field_int, cli_field_skip): Use
7124 uo_field_string instead of cli_field_string.
7125 (cli_redirect): Adjust to use cli_out_data.
7126 (cli_out_data_ctor): New.
7127 (cli_out_new): Use it.
7128 * cli-out.h (struct ui_file): Remove forward declaration.
7129 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7130 (cli_ui_out_impl): Declare.
7131 (cli_out_data_ctor): Declare.
7132 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7133 (uo_field_string): No longer static.
7134 (ui_out_data): Change return type to void pointer.
7135 (ui_out_new): Change `data' parameter type to void pointer.
7136 * ui-out.h (struct ui_out_data): Don't forward declare.
7137 (ui_out_data): Change return type to void pointer.
7138 (ui_out_new): Change `data' parameter type to void pointer.
7139 (uo_field_string): Declare.
7140
172240dd
PA
71412010-04-17 Pedro Alves <pedro@codesourcery.com>
7142
7143 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7144 instead of always false.
7145
ed41462c
L
71462010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7147
7148 PR corefiles/11511
7149 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7150 orig_rax.
7151
cc60f2e3
PA
71522010-04-17 Pedro Alves <pedro@codesourcery.com>
7153
7154 * breakpoint.c (watchpoints_triggered): Use
7155 is_hardware_watchpoint.
7156 (watchpoints_triggered): Ditto.
7157 (bpstat_check_location): Use is_watchpoint and
7158 is_hardware_watchpoint.
7159 (bpstat_check_watchpoint): Use is_watchpoint and
7160 is_hardware_watchpoint.
7161 (bpstat_stop_status): Fix comment.
7162 (user_settable_breakpoint): Use is_watchpoint.
7163 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7164 (disable_watchpoints_before_interactive_call_start): Use
7165 is_watchpoint.
7166 (enable_watchpoints_after_interactive_call_stop): Use
7167 is_watchpoint.
7168 (clear_command): Use is_watchpoint.
7169 (do_enable_breakpoint): Use is_watchpoint.
7170
cb7db0f2
MF
71712010-04-16 Mike Frysinger <vapier@gentoo.org>
7172
7173 * solib-frv.c (enable_break1_done): Delete.
7174 (enable_break2): Do not check enable_break1_done. Move the
7175 enable_break2_done setting and call to
7176 remove_solib_event_breakpoints() to the end. Return without
7177 warning when the contents of _dl_debug_addr are 0.
7178 (enable_break): Do not set enable_break1_done.
7179 (frv_clear_solib): Likewise.
7180
d77b48cf
KB
71812010-04-16 Kevin Buettner <kevinb@redhat.com>
7182
7183 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7184 instead of an error if no PLT entry is found. Return a
7185 potentially useful result.
7186 (m32c_m16c_pointer_to_address): Add code to search for function
7187 address when no .plt entry is found.
7188
f90824dc
SS
71892010-04-16 Stan Shebs <stan@codesourcery.com>
7190
7191 * tracepoint.c (trace_variable_command): Run a cleanup.
7192
9b79b476
PM
71932010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7194
7195 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7196
711e434b
PM
71972010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7198
7199 Support for Windows OS Thread Information Block.
7200 * NEWS: Document new feature.
7201 * remote.c (PACKET_qGetTIBAddr): New enum element.
7202 (remote_get_tib_address): New function.
7203 (init_remote_ops): Set to_get_tib_address field
7204 to remote_get_tib_address.
7205 (_initialize_remote): Add add_packet_config_cmd
7206 for PACKET_qGetTIBAddr.
7207 * target.c (update_current_target): Set default value for
7208 new to_get_tib_address field.
7209 * target.h (target_ops): New field to_get_tib_address.
7210 (target_get_tib_address): New macro.
7211 * windows-nat.c (thread_info): Add thread_local_base field.
7212 (windows_add_thread): Add tlb argument of type 'void *'.
7213 (fake_create_process): Adapt windows_add_thread call.
7214 (get_windows_debug_event): Idem.
7215 (windows_get_tib_address): New function.
7216 (init_windows_ops): Set to_get_tib_address field
7217 to remote_get_tib_address.
7218 (_initialize_windows_nat): Replace info_w32_cmdlist
7219 initialization by a call to init_w32_command_list.
7220 (info_w32_command, info_w32_cmdlist): Removed from here...
7221 to windows-tdep.c file.
7222 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 7223 (init_w32_command_list): New external function
711e434b
PM
7224 declaration.
7225 * windows-tdep.c: Add several headers.
7226 (info_w32_cmdlist): to here, made global.
7227 (thread_information_32): New struct.
7228 (thread_information_64): New struct.
7229 (TIB_NAME): New char array.
7230 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7231 (maint_display_all_tib): New static variable.
7232 (windows_get_tlb_type): New function.
7233 (tlb_value_read, tlb_value_write): New functions.
7234 (tlb_value_funcs): New static struct.
7235 (tlb_make_value): New function.
7236 (display_one_tib): New function.
7237 (display_tib): New function.
7238 (show_maint_show_all_tib):New function.
7239 (info_w32_command): Moved from windows-nat.c.
7240 (init_w32_command_list): New function.
7241 (_initialize_windows_tdep): New function.
7242 New "maint set/show show-all-tib" command
7243 New "$_tlb" internal variable.
7244
cae3f17b
JB
72452010-04-16 Joel Brobecker <brobecker@adacore.com>
7246
7247 * tui/tui-regs.c (tui_display_register): Add comment about
7248 a couple of casts.
7249 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7250
2ce6d6bf
SS
72512010-04-15 Stan Shebs <stan@codesourcery.com>
7252
7253 * frame.c: Include tracepoint.h.
7254 (get_current_frame): Allow a trace frame to be an alternate source
7255 of stack frame data.
7256 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7257 it won't succeed.
7258
7e559477
PA
72592010-04-15 Pedro Alves <pedro@codesourcery.com>
7260
7261 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7262 flags.
7263 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7264
3f7b2faa
DE
72652010-04-15 Doug Evans <dje@google.com>
7266
fa33c3cd
DE
7267 * NEWS: Add entry for python program space support.
7268 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7269 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7270 (py-progspace.o): New rule.
7271 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7272 function.
7273 (find_pretty_printer_from_progspace): New function.
7274 (find_pretty_printer_from_gdb): New function.
7275 (find_pretty_printer): Rewrite.
7276 * python/py-progspace.c: New file.
7277 * python/python-internal.h (program_space): Add forward decl.
7278 (pspace_to_pspace_object, pspy_get_printers): Declare.
7279 (gdbpy_initialize_pspace): Declare.
7280 * python/python.c: #include "progspace.h".
7281 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7282 (_initialize_python): Call gdbpy_initialize_pspace.
7283 (GdbMethods): Add current_progspace, progspaces.
7284
3f7b2faa
DE
7285 Add -s option to source command.
7286 * NEWS: Document new option.
7287 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7288 Delete from_tty and cleanupp args. Split filep arg into file and
7289 full_pathp. New arg search_path.
7290 (source_script_from_stream): New function.
7291 (source_script_with_search): New function.
7292 (source_script): Rewrite.
7293 (source_command): Parse "-s" option.
7294 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7295 * python/python.c (source_python_script): Make file arg a const char *.
7296 Don't call fclose, leave for caller.
7297 * python/python.h (source_python_script): Update.
7298
a86988f2
PA
72992010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7300 Pedro Alves <pedro@codesourcery.com>
7301
7302 Avoid rereading shared libraries that haven't changed.
7303
7304 * solib.c (free_so_symbols): New function, from ...
7305 (free_so): ... here. Call it.
7306 (solib_read_symbols): Don't warn here if symbols have already been
7307 loaded.
7308 (solib_add): Warn here instead, if a pattern was specified.
7309 (reload_shared_libraries_1): New.
7310 (reload_shared_libraries): Rewrite to not fetch the library list.
7311
e6d9b9c2
DE
73122010-04-14 Doug Evans <dje@google.com>
7313
589390d6 7314 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
7315 concatenating string to search path.
7316
516ba659
PA
73172010-04-14 Pedro Alves <pedro@codesourcery.com>
7318
7319 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7320 * objfiles.c (gdb_bfd_close_or_warn): New.
7321 * corelow.c: Include objfiles.h
7322 (core_close): Use gdb_bfd_close_or_warn.
7323 * elfread.c (build_id_verify): Ditto.
7324 * exec.c (exec_close, exec_close_1): Ditto.
7325
048d532d
PA
73262010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7327 Pedro Alves <pedro@codesourcery.com>
7328
7329 Group errors for many missing shared libraries.
7330
7331 * solist.h (struct so_list): Remove from_tty.
7332 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7333 (solib_map_sections): Take so_list argument. Return 0 if we
7334 failed to open a BFD. Add target sections here.
7335 (symbol_add_stub): Delete.
7336 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7337 not from_tty copied from the so_list. Don't warn a second time
7338 for a missing library.
7339 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7340 add to the section table here. Print out a single warning for all
7341 missing libraries.
7342 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7343 flags.
7344
044c0f87
PM
73452010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7346
7347 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7348 error/warning messages. Capitalize and use complete sentences.
7349 (blpy_block_syms_iternext): Likewise.
7350 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7351 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7352 (frame_info_to_frame_object, frapy_read_var)
7353 (gdbpy_frame_stop_reason_string): Likewise.
7354 * python/py-lazy-string.c (stpy_convert_to_value)
7355 (gdbpy_create_lazy_string_object): Likewise.
7356 * python/py-objfile.c (objfpy_set_printers): Likewise.
7357 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7358 * python/python.c (parameter_to_python): Likewise.
7359 * python/py-type.c (typy_range, typy_target): Likewise.
7360 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7361 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7362
7363
79f283fe
PM
73642010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7365
7366 PR python/11381
7367
7368 * python/py-prettyprint.c (pretty_print_one_value): Test for
7369 Py_None.
7370 (print_string_repr): Test for Py_None. Set flags accordingly.
7371 Return value depending on return type.
7372 (print_children): Take a value indicating whether data was printed
7373 before this function was called. Alter output accordingly.
7374 (apply_val_pretty_printer): Capture return value from
7375 print_string_repr and pass to print_children.
7376
4ac5d44e
MK
73772010-04-13 Mark Kettenis <kettenis@gnu.org>
7378
e1caee70 7379 PR corefiles/11481
4ac5d44e
MK
7380 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7381 register note sections.
7382 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7383 New variables.
7384 (i386_linux_init_abi): Install list of supported register note
7385 sections that matches the target description.
7386
ad91cd99
PA
73872010-04-13 Pedro Alves <pedro@codesourcery.com>
7388
7389 * remote.c (remote_get_noisy_reply): Don't error out on empty
7390 replies.
7391 (remote_start_remote): Update and merge tracepoints and trace
7392 state variables as long as the target supports tracepoints.
7393 (remote_trace_init): Fix prototype.
7394 (remote_download_trace_state_variable): Validate reply.
7395 (remote_trace_set_readonly_regions): Fix prototype.
7396 (remote_trace_start): Fix prototype. Check for empty reply.
7397 (remote_get_trace_status): Small cleanup.
7398 (remote_trace_stop): Fix prototype. Check for empty reply.
7399 (remote_trace_find): Check for empty reply.
7400 (remote_save_trace_data): Validate reply.
7401 (remote_set_disconnected_tracing): Check for empty reply, and
7402 validate reply.
7403 (remote_set_circular_trace_buffer): Ditto.
7404
ae3bccd4
PM
74052010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7406
7407 Suppress unused value warning during compilation.
7408 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7409 calls to void.
7410 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7411
523136f2
SS
74122010-04-12 Stan Shebs <stan@codesourcery.com>
7413
7414 * tracepoint.c (tfile_xfer_partial): Check read result.
7415
0d18d720
MF
74162010-04-12 Mike Frysinger <vapier@gentoo.org>
7417
7418 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7419 * remote-sim.c (gdbsim_files_info): Likewise.
7420
3b273a55
RE
74212010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7422
7423 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7424 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7425 variable.
7426 (fetch_vfp_registers): New function to fetch VFP registers.
7427 (store_vfp_registers): New function to store VFP registers.
7428 (arm_linux_fetch_inferior_registers): Add support for VFP
7429 registers.
7430 (arm_linux_store_inferior_registers): Likewise.
7431 (arm_linux_read_description): Likewise.
7432 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7433 until we need it.
7434
778c7095
L
74352010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7436
7437 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7438 tdep.
7439 (amd64_collect_xstateregset): Likewise.
7440
2114d44c
SS
74412010-04-09 Stan Shebs <stan@codesourcery.com>
7442
87290684
SS
7443 * tracepoint.c (trace_status_mi): Report frames created.
7444
2114d44c
SS
7445 * tracepoint.c (trace_dump_command): Include default-collect
7446 expressions.
7447
86da934b
UW
74482010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7449
7450 * symtab.c (find_function_start_sal): Never return SAL pointing
7451 before function start address, even if line info is missing.
7452
2d6e647a 74532010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
7454
7455 * NEWS: Mention tracepoints support.
7456
a97153c7
PA
74572010-04-09 Pedro Alves <pedro@codesourcery.com>
7458
7459 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7460 circular trace buffer statuses.
7461
7a66d603
JK
74622010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7463
7464 * config/djgpp/fnchange.lst: Fix typo in translations for
7465 symbol-without-target_section.exp and symbol-without-target_section.c.
7466
2566ad2d
PA
74672010-04-09 Pedro Alves <pedro@codesourcery.com>
7468
7469 * breakpoint.c (condition_command): Pass condition expression to
7470 set_breakpoint_condition stripped from breakpoint number.
7471
adc36818
PM
74722010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7473 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 7474 Tom Tromey <tromey@redhat.com>
adc36818
PM
7475
7476 * breakpoint.c (condition_command): Simplify. Move condition
7477 setting code to ...
7478 (set_breakpoint_condition): ... here. New function.
7479 * breakpoint.h (set_breakpoint_condition): Declare.
7480 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7481 (SUBDIR_PYTHON_SRCS): Likewise.
7482 (py-breakpoint.o): New rule.
7483 * python/py-breakpoint.c: New file.
7484 * python/python-internal.h (gdbpy_breakpoints)
7485 (gdbpy_initialize_breakpoints): Declare.
7486 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7487
219f2f23
PA
74882010-04-09 Pedro Alves <pedro@codesourcery.com>
7489
7490 * regformats/regdat.sh: Include server.h. Don't include
7491 regcache.h.
7492
33da3f1c
SS
74932010-04-08 Stan Shebs <stan@codesourcery.com>
7494 Pedro Alves <pedro@codesourcery.com>
7495
7496 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7497 and circular_buffer.
7498 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7499 * tracepoint.c (trace_status_command): Display target's status for
7500 disconnected tracing and circular buffer.
7501 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7502 query for non-disconnected-tracing case, remove the stop_tracing
7503 call.
7504 (tfile_open): Clear disconnected and circular buffer status.
7505 (trace_save): Save disconnected and circular buffer status.
7506 (parse_trace_status): Parse disconnected and circular buffer status,
7507 also recognize disconnected as a stop reason.
7508 * remote.c (remote_set_disconnected_tracing): Only set
7509 QTDisconnected if the remote end supports disconnected tracing.
7510 Warn otherwise, if trying to enable disconnected tracing.
7511 * infcmd.c (detach_command): Update disconnect_tracing call.
7512 * cli/cli-cmds.c (quit_command): Ditto.
7513
4e4d8374
L
75142010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7515
7516 * i387-tdep.c (i387_collect_xsave): Replace abort with
7517 internal_error.
7518
ad443146
SS
75192010-04-08 Stan Shebs <stan@codesourcery.com>
7520
7521 * breakpoint.c (default_collect_info): New function.
7522 (breakpoints_info): Call it.
7523 (maintenance_info_breakpoints): Ditto.
7524 (tracepoints_info): Ditto.
7525
40936b0d
L
75262010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7527
7528 * i387-tdep.c (i387_collect_xsave): Re-indent.
7529
3a13a53b
L
75302010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7531
7532 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7533 if HAVE_PTRACE_GETFPXREGS is defined.
7534 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7535 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7536
7537 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7538 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7539 if .reg-xfp section doesn't exist.
7540 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7541
7542 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7543
7544 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7545 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7546 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7547 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7548 (i386_gdbarch_init): Update comments.
7549 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7550
7551 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7552
7553 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7554
7555 * features/Makefile (i386/i386-mmx-expedite): New.
7556 (i386/i386-mmx-linux-expedite): Likewise.
7557 ($(outdir)/i386/i386-mmx.dat): Likewise.
7558 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7559
7560 * features/i386/i386-mmx-linux.c: New.
7561 * features/i386/i386-mmx-linux.xml: Likewise.
7562 * features/i386/i386-mmx.c: Likewise.
7563 * features/i386/i386-mmx.xml: Likewise.
7564 * regformats/i386/i386-mmx-linux.dat: Likewise.
7565 * regformats/i386/i386-mmx.dat: Likewise.
7566
7567 * features/Makefile (WHICH): Add i386/i386-mmx and
7568 i386/i386-mmx-linux.
7569
08001717
DE
75702010-04-08 Doug Evans <dje@google.com>
7571
7572 * source.c (openp): Skip $cdir in PATH.
7573
fff5cc64
PM
75742010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7575
7576 PR python/11417
fff5cc64 7577 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
7578 a NULL address.
7579 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7580 address and a zero length.
fff5cc64 7581
f8c4f480
HZ
75822010-04-08 Hui Zhu <teawater@gmail.com>
7583
7584 * i386-tdep.c (i386_process_record): Add support for insn
7585 rdtsc.
7586
eb5cda86
DE
75872010-04-07 Doug Evans <dje@google.com>
7588
7589 * python/python.c (source_python_script): Use ensure_python_env
7590 to prepare environment for script.
7591
a055a187
L
75922010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7593
7594 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7595 <sys/uio.h> and "i386-xstate.h".
7596 (PTRACE_GETREGSET): New.
7597 (PTRACE_SETREGSET): Likewise.
7598 (have_ptrace_getregset): Likewise.
7599 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7600 registers.
7601 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7602 registers.
7603 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7604 (amd64_linux_store_inferior_registers): Likewise.
7605 (amd64_linux_read_description): Check and enable AVX target
7606 descriptions.
7607
7608 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7609 and "features/i386/amd64-avx-linux.c".
7610 (amd64_linux_regset_sections): New.
7611 (amd64_linux_core_read_description): Check and enable AVX
7612 target description.
7613 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7614 set_gdbarch_core_regset_sections.
7615 (_initialize_amd64_linux_tdep): Call
7616 initialize_tdesc_amd64_avx_linux.
7617
7618 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7619 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7620 (tdesc_amd64_avx_linux): New.
7621 (amd64_linux_update_xstateregset): Likewise.
7622
7623 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7624 (amd64_ymm_names): New.
7625 (amd64_ymmh_names): Likewise.
7626 (amd64_register_name): Likewise.
7627 (amd64_supply_xstateregset): Likewise.
7628 (amd64_collect_xstateregset): Likewise.
7629 (amd64_supply_xsave): Likewise.
7630 (amd64_collect_xsave): Likewise.
7631 (AMD64_NUM_REGS): Removed.
7632 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7633 %xmmN if AVX is available.
7634 (amd64_pseudo_register_name): Support pseudo YMM registers.
7635 (amd64_regset_from_core_section): Support .reg-xstate section.
7636 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7637 and ymm0h_regnum. Call set_gdbarch_register_name.
7638 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7639
7640 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7641 AMD64_YMM15H_REGNUM.
7642 (AMD64_NUM_REGS): New.
7643 (amd64_supply_xsave): Likewise.
7644 (amd64_collect_xsave): Likewise.
7645 (amd64_register_name): Removed.
7646 (amd64_register_type): Likewise.
7647
31aeac78
L
76482010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7649
7650 * i387-tdep.c: Include "i386-xstate.h".
7651 (XSAVE_XSTATE_BV_ADDR): New.
7652 (xsave_avxh_offset): Likewise.
7653 (XSAVE_AVXH_ADDR): Likewise.
7654 (i387_supply_xsave): Likewise.
7655 (i387_collect_xsave): Likewise.
7656
7657 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7658 (I387_YMM0H_REGNUM): Likewise.
7659 (I387_YMMENDH_REGNUM): Likewise.
7660 (i387_supply_xsave): Likewise.
7661 (i387_collect_xsave): Likewise.
7662
c131fcee
L
76632010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7664
7665 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7666 <sys/uio.h> and "i386-xstate.h".
7667 (PTRACE_GETREGSET): New.
7668 (PTRACE_SETREGSET): Likewise.
7669 (fetch_xstateregs): Likewise.
7670 (store_xstateregs): Likewise.
7671 (GETXSTATEREGS_SUPPLIES): Likewise.
7672 (regmap): Include 8 upper YMM registers.
7673 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7674 state.
7675 (i386_linux_store_inferior_registers): Likewise.
7676 (i386_linux_read_description): Check and enable AVX target
7677 descriptions.
7678
7679 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7680 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7681 (i386_linux_regset_sections): Add ".reg-xstate".
7682 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7683 (i386_linux_core_read_xcr0): New.
7684 (i386_linux_core_read_description): Check and enable AVX target
7685 description.
7686 (i386_linux_init_abi): Set xsave_xcr0_offset.
7687 (_initialize_i386_linux_tdep): Call
7688 initialize_tdesc_i386_avx_linux.
7689
7690 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7691 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7692 (i386_linux_core_read_xcr0): New.
7693 (tdesc_i386_avx_linux): Likewise.
7694 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7695
7696 * i386-tdep.c: Include "i386-xstate.h" and
7697 "features/i386/i386-avx.c".
7698 (i386_ymm_names): New.
7699 (i386_ymmh_names): Likewise.
7700 (i386_ymmh_regnum_p): Likewise.
7701 (i386_ymm_regnum_p): Likewise.
7702 (i386_xmm_regnum_p): Likewise.
7703 (i386_register_name): Likewise.
7704 (i386_ymm_type): Likewise.
7705 (i386_supply_xstateregset): Likewise.
7706 (i386_collect_xstateregset): Likewise.
7707 (i386_sse_regnum_p): Removed.
7708 (i386_pseudo_register_name): Support pseudo YMM registers.
7709 (i386_pseudo_register_type): Likewise.
7710 (i386_pseudo_register_read): Likewise.
7711 (i386_pseudo_register_write): Likewise.
7712 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7713 %xmmN if AVX is available.
7714 (i386_regset_from_core_section): Support .reg-xstate section.
7715 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7716 (i386_process_record): Replace i386_sse_regnum_p with
7717 i386_xmm_regnum_p.
7718 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7719 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 7720 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
7721 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7722 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7723 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7724 Set ymm0_regnum.
7725 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7726
7727 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7728 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7729 i386_ymm_type.
7730 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7731 (I386_AVX_NUM_REGS): New.
7732 (i386_xmm_regnum_p): Likewise.
7733 (i386_ymm_regnum_p): Likewise.
7734 (i386_ymmh_regnum_p): Likewise.
7735
7736 * common/i386-xstate.h: New.
7737
98adf0f3
L
77382010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7739
7740 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7741
7742 * features/Makefile (WHICH): Add i386/i386-avx,
7743 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7744 (i386/i386-avx-expedite): New.
7745 (i386/i386-avx-linux-expedite): Likewise.
7746 (i386/x86-64-avx-expedite):Likewise.
7747 (i386/x86-64-avx-linux-expedite): Likewise.
7748 ($(outdir)/i386/i386-avx.dat): New dependency.
7749 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7750 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7751 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7752
7753 * features/i386/32bit-avx.xml: New.
7754 * features/i386/64bit-avx.xml: Likewise.
7755 * features/i386/i386-avx-linux.c: Likewise.
7756 * features/i386/i386-avx-linux.xml: Likewise.
7757 * features/i386/i386-avx.c: Likewise.
7758 * features/i386/i386-avx.xml: Likewise.
7759 * features/i386/x86-64-avx-linux.c: Likewise.
7760 * features/i386/x86-64-avx-linux.xml: Likewise.
7761 * features/i386/x86-64-avx.c: Likewise.
7762 * features/i386/x86-64-avx.xml: Likewise.
7763 * regformats/i386/i386-avx-linux.dat: Likewise.
7764 * regformats/i386/i386-avx.dat: Likewise.
7765 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7766 * regformats/i386/x86-64-avx.dat: Likewise.
7767
05159abe
DE
77682010-04-07 Doug Evans <dje@google.com>
7769
7770 * top.c (source_file_name): Make const char *.
7771 * top.h (source_file_name): Update.
7772 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7773 const char *.
7774 (script_from_file): Change `file' arg to const char *.
7775 * cli/cli-script.h (script_from_file): Update.
7776
96e39866
DE
77772010-04-06 Doug Evans <dje@google.com>
7778
7779 * cli/cli-cmds.c (source_command): Run cleanups.
7780
3149d8c1
SS
77812010-04-06 Stan Shebs <stan@codesourcery.com>
7782
7783 * defs.h (char_ptr): Move typedef here from...
7784 * ada-lang.c (char_ptr): Remove.
7785 * charset.c (char_ptr): Remove.
7786 * tracepoint.h (struct uploaded_string): Remove.
7787 (struct uploaded_tp): Use vectors for string arrays.
7788 * tracepoint.c (trace_save): Use vectors of actions.
7789 (parse_tracepoint_definition): Ditto.
7790 (get_uploaded_tp): Clear vectors.
7791 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7792 (next_cmd): Change to an int.
7793 (read_next_cmd): Use vector of command strings.
7794
4cc23ede
DE
77952010-04-06 Doug Evans <dje@google.com>
7796
7797 * top.h (source_script, cd_command): Delete.
7798 * main.c: #include "cli/cli-cmds.h"
7799
bd333fb7
KB
78002010-04-06 Kevin Buettner <kevinb@redhat.com>
7801
7802 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7803 type in bytes, not bits.
7804
ec8a089a
PM
78052010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7806
7807 * stabsread.c (define_symbol): Add support for char
7808 and string constants.
7809
2244ba2e
PM
78102010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7811
7812 Remove remaining "%ll" uses.
7813 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7814 hex_string call.
7815 * rs6000-nat.c (rs6000_ptrace64): Idem.
7816 * solib-pa64.c (pa64_current_sos): Idem.
7817 * solib-spu.c (spu_current_sos): Idem.
7818 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7819 plongest call.
7820 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7821 phex (VAR, 8) call.
7822 * sh64-tdep.c (sh64_show_media_regs): Idem.
7823
fce3c1f0
SS
78242010-04-05 Stan Shebs <stan@codesourcery.com>
7825
7826 * tracepoint.c: Include gdbcore.h.
7827 (tfile_xfer_partial): Return partial results, also try reading
7828 from executable.
7829 (tfile_has_all_memory): New function.
7830 (init_tfile_ops): Use it.
7831
626ea16d
SDJ
78322010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7833
7834 PR gdb/10736:
7835 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7836 the changes in data-directory.
7837 (init_sysinfo): Reload the syscall XML file if the data-directory
7838 has changed.
7839
1f7ccab2
JK
78402010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7841
7842 Code cleanup.
7843 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7844
d77f58be
SS
78452010-04-04 Stan Shebs <stan@codesourcery.com>
7846 Nathan Sidwell <nathan@codesourcery.com>
7847
7848 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7849 breakpoints printed.
7850 (is_hardware_watchpoint): Make argument const.
7851 (is_watchpoint): Ditto.
7852 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7853 use it everywhere.
7854 (breakpoints_info): Pass NULL to breakpoint_1.
7855 (maintenance_info_breakpoints): Ditto.
7856 (watchpoints_info): New function.
7857 (tracepoints_info): Use breakpoint_1 filter.
7858 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7859 (_initialize_breakpoint): Make "info watchpoints" its own command.
7860 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7861 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7862
af54718e
SS
78632010-04-04 Stan Shebs <stan@codesourcery.com>
7864
7865 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7866
74d1f91e
JK
78672010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7868
7869 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7870 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7871
91d91ceb
JK
78722010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7873
7874 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7875 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7876
60531b24
JK
78772010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7878
7879 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7880 code form.
7881
a3c4230a
HZ
78822010-04-02 Hui Zhu <teawater@gmail.com>
7883
7884 * i386-tdep.c (OT_DQUAD): New enum.
7885 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7886 SSE3, SSSE3 and SSE4.
7887
b15758fe
HZ
78882010-04-02 Hui Zhu <teawater@gmail.com>
7889
7890 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7891 "*addr = 0".
7892
afd02f27
PA
78932010-04-02 Pedro Alves <pedro@codesourcery.com>
7894
7895 * tracepoint.c (trace_dump_actions): New, factored out from
7896 trace_dump_command, and adjusted to recurse into while-stepping's
7897 action list.
7898 (trace_dump_command): Use it.
7899
5cea2a26
PA
79002010-04-02 Pedro Alves <pedro@codesourcery.com>
7901
7902 * breakpoint.h (struct counted_command_line): Moved definition to
7903 breakpoint.c, and forward declare.
7904 (breakpoint_commands): Declare.
7905 * breakpoint.c (struct counted_command_line): Moved here.
7906 (breakpoint_commands): New.
7907 * tracepoint.c (encode_actions): Use breakpoint_commands.
7908 * remote.c (remote_download_tracepoint): Ditto.
7909
7c47795c
L
79102010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7911
7912 * remote.c (remote_parse_stop_reply): Use hex_string instead
7913 of phex_nz for error.
7914
fff87407
SS
79152010-04-01 Stan Shebs <stan@codesourcery.com>
7916 Nathan Sidwell <nathan@codesourcery.com>
7917
7918 * tracepoint.h (enum actionline_type): Remove.
7919 (validate_actionline): Change return to void.
7920 * tracepoint.c (report_agent_reqs_errors): New function.
7921 (validate_actionline): Call it, change return to void, report errors
7922 more consistently.
7923 (collect_symbol): Call report_agent_reqs_errors.
7924 (encode_actions_1): Ditto.
7925 (encode_actions): Don't expect a result from validate_actionline.
7926
615bcdef
SS
79272010-04-01 Stan Shebs <stan@codesourcery.com>
7928
7929 * tracepoint.c (trace_start_command): Confirm if trace is running.
7930 (trace_stop_command): Error if trace not running.
7931
fe01d668
L
79322010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7933
7934 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7935 (AMD64_NUM_LOWER_BYTE_REGS): New.
7936 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7937 (amd64_pseudo_register_write): Likewise.
7938 (amd64_init_abi): Set num_byte_regs to 20.
7939
86b17b60
PA
79402010-04-01 Pedro Alves <pedro@codesourcery.com>
7941
7942 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7943 (prev_breakpoint_count): New.
7944 (set_breakpoint_count): Adjust.
7945 (rbreak_start_breakpoint_count): New.
7946 (start_rbreak_breakpoints): Adjust.
7947 (end_rbreak_breakpoints): Adjust.
7948 (struct commands_info) <arg>: New field.
7949 (do_map_commands_command): Tweak output to include breakpoint spec
7950 range.
7951 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7952 ARG was empty on entry. Set INFO's arg.
7953 (create_breakpoint): Adjust.
7954
7955 * NEWS: Clarify `commands' changes.
7956
2c58c0a9
PA
79572010-04-01 Pedro Alves <pedro@codesourcery.com>
7958
7959 * tracepoint.c: Include stack.h.
7960 (struct add_local_symbols_data): New.
7961 (do_collect_symbol): New.
7962 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7963 iterate_over_block_local_vars.
7964 * stack.c (print_block_frame_locals): Rewrite as ...
7965 (iterate_over_block_locals): ... this. Take a callback function
7966 pointer and generic data pointer, and call that instead of
7967 print_variable_and_value.
7968 (struct print_variable_and_value_data): New.
7969 (do_print_variable_and_value): New.
7970 (iterate_over_block_local_vars): New, abstracted out from
7971 print_frame_local_vars.
7972 (print_frame_local_vars): Rewrite using
7973 iterate_over_block_local_vars.
7974 (iterate_over_block_arg_vars): New, abstracted out from
7975 print_frame_arg_vars.
7976 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7977 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7978 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7979
d476da0e
RE
79802010-03-31 Richard Earnshaw <rearnsha@arm.com>
7981
7982 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7983 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7984 PC register.
7985
8072405b
JK
79862010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7987
7988 Fix crash on reading wrong function declaration DWARF.
7989 * dwarf2read.c (read_subroutine_type): New variable void_type.
7990 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7991 more close to their use.
7992
8bf6485c
SS
79932010-03-31 Stan Shebs <stan@codesourcery.com>
7994
7995 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7996 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7997 * tracepoint.c (save_trace_state_variables): New function.
7998 * tracepoint.h (save_trace_state_variables): Declare it.
7999
2ae2a0b7
PM
80002010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
8001
1a161f72 8002 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 8003
86ffb506
KS
80042010-03-30 Keith Seitz <keiths@redhat.com>
8005
8006 * c-typeprint.c (c_type_print_args): Don't print "void"
8007 for java, regardless of whether it is TYPE_PROTOTYPED.
8008 Use the passed-in language instead of current_language.
8009 (c_type_print_varspec_suffix): Use current_language instead
8010 of assuming language_c.
8011 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
8012 any return type specifier from the physname.
8013
956c2c8b
PA
80142010-03-30 Pedro Alves <pedro@codesourcery.com>
8015
8016 * tui/tui-interp.c (tui_is_toplevel): New.
8017 (tui_init): Set it.
8018 (tui_allowed_p): New.
8019 * tui/tui.c (tui_enable): Check if the TUI is allowed before
8020 enabling it.
8021 * tui/tui.h (tui_allowed_p): Declare.
8022
98e5a990
TT
80232010-03-30 Ozkan Sezer <sezeroz@gmail.com>
8024
8025 * serial.h: Include winsock2.h before windows.h.
8026
c8d5aac9
L
80272010-03-30 H.J. Lu <hongjiu.lu@intel.com>
8028
8029 * NEWS: Mention xmlRegisters= in qSupported packet.
8030
8031 * i386-tdep.c: Include "remote.h".
8032 (_initialize_i386_tdep): Call register_remote_support_xml.
8033
8034 * remote.c (remote_support_xml): New.
8035 (register_remote_support_xml): Likewise.
8036 (remote_query_supported_append): Likewise.
8037 (remote_query_supported): Support remote_support_xml.
8038
8039 * remote.h (register_remote_support_xml): New.
8040
76a2b958
SS
80412010-03-29 Stan Shebs <stan@codesourcery.com>
8042
42e08e69
SS
8043 * tracepoint.c (trace_find_line_command): Remove dead code.
8044
409873ef
SS
8045 * tracepoint.h (struct uploaded_string): New struct.
8046 (struct uploaded_tp): New fields for source strings.
8047 * breakpoint.c (this_utp, next_cmd): New globals.
8048 (read_uploaded_action): New function.
8049 (create_tracepoint_from_upload): Fill in more parts
8050 of a tracepoint.
8051 * tracepoint.c (encode_source_string): New function.
8052 (trace_save): Write out source strings, fix error checks.
8053 (parse_tracepoint_definition): Add source string parsing.
8054 * remote.c (PACKET_TracepointSource): New packet type.
8055 (remote_download_command_source): New function.
8056 (remote_download_tracepoint): Download source pieces also.
8057 (_initialize_remote): Add packet config command.
8058
a0405854
SS
8059 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8060 expression handler.
8061
76a2b958
SS
8062 * tracepoint.c (start_tracing): Check tracepoints before sending
8063 commands to target, don't start if all tracepoints disabled.
8064
d350db38
PA
80652010-03-28 Pedro Alves <pedro@codesourcery.com>
8066
12f2d601 8067 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 8068
8b9b7ef8
SS
80692010-03-26 Stan Shebs <stan@codesourcery.com>
8070
8071 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8072
9766ced4
SS
80732010-03-26 Tom Tromey <tromey@redhat.com>
8074
8075 * breakpoint.c (commands_command_1): Duplicate 'arg'.
8076
059acae7
UW
80772010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8078
8079 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8080 (skip_prologue_sal): Remove local definition.
8081 (resolve_sal_pc): Remove now unnecessary code.
8082 * linespec.c (minsym_found): Call skip_prologue_sal.
8083 * symtab.c (find_function_start_pc): Remove.
8084 (find_function_start_sal): Extract prologue skipping into ...
8085 (skip_prologue_sal): ... this new function. Handle code both
8086 with and without debug info. Respect SAL's explicit_pc and
8087 explicit_line flags. Inline old find_function_start_pc.
8088 * symtab.h (find_function_start_pc): Remove.
8089 (skip_prologue_sal): Add prototype.
8090
4a811a97
UW
80912010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8092
8093 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8094 for DW_TAG_imported_module children.
8095
907af001
UW
80962010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8097
8098 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8099 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8100 * completer.c (add_struct_fields): Fix inverted logic.
8101
dde2d684
UW
81022010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8103
8104 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8105
a609a0c8
PA
81062010-03-26 Pedro Alves <pedro@codesourcery.com>
8107
8108 * tracepoint.c (current_trace_status): Don't make sure error_desc
8109 is non-NULL here.
8110 (parse_trace_status): Release a previous error_desc string, and
8111 set it to NULL by default. If stop reason is tracepoint_error,
8112 make sure error_desc is not left NULL.
8113
610197fd
PA
81142010-03-26 Pedro Alves <pedro@codesourcery.com>
8115
8116 * tracepoint.c (trace_save): Remove X from tracepoint error
8117 description.
8118
99b5e152
PA
81192010-03-26 Pedro Alves <pedro@codesourcery.com>
8120
8121 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8122 the terror description. Don't expect an X prefix.
8123
6c28cbf2
SS
81242010-03-25 Stan Shebs <stan@codesourcery.com>
8125
8126 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8127 (struct trace_status): New field error_desc.
8128 * tracepoint.c (stop_reason_names): Add terror.
8129 (current_trace_status): Ensure non-NULL error description.
8130 (trace_status_command): Add error report.
8131 (trace_status_mi): Ditto.
8132 (trace_save): Add special case for error description.
8133 (parse_trace_status): Add case for errors.
8134
418835cc
KS
81352010-03-25 Keith Seitz <keiths@redhat.com>
8136
8137 * dwarf2read.c (read_subroutine_type): If the compilation unit
8138 language is Java, mark any formal parameter named "this" as
8139 artificial (GCC/43521).
8140 (dwarf2_name): Add special handling for Java constructors.
8141
aa7d318d
TT
81422010-03-25 Tom Tromey <tromey@redhat.com>
8143
8144 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8145 * infrun.c (handle_inferior_event): Change initialization of
8146 stop_stack_dummy.
8147 (handle_inferior_event): Change assignment to stop_stack_dummy.
8148 (normal_stop): Update use of stop_stack_dummy.
8149 (struct inferior_status) <stop_stack_dummy>: Change type.
8150 * inferior.h (stop_stack_dummy): Update.
8151 * infcmd.c (stop_stack_dummy): Change type.
8152 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8153 function.
8154 (call_function_by_hand): Call set_std_terminate_breakpoint.
8155 Rewrite std::terminate handling.
8156 * breakpoint.h (enum bptype) <bp_std_terminate,
8157 bp_std_terminate_master>: New.
8158 (enum stop_stack_kind): New.
8159 (struct bpstat_what) <call_dummy>: Change type.
8160 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8161 Declare.
8162 * breakpoint.c (create_std_terminate_master_breakpoint): New
8163 function.
8164 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8165 Call create_std_terminate_master_breakpoint.
8166 (print_it_typical): Handle new breakpoint kinds.
8167 (bpstat_stop_status): Handle bp_std_terminate_master.
8168 (bpstat_what): Correctly set call_dummy field. Handle
8169 bp_std_terminate_master and bp_std_terminate.
8170 (print_one_breakpoint_location): Update.
8171 (allocate_bp_location): Update.
8172 (set_std_terminate_breakpoint): New function.
8173 (delete_std_terminate_breakpoint): Likewise.
8174 (create_thread_event_breakpoint): Update.
8175 (delete_command): Update.
8176 (breakpoint_re_set_one): Update.
8177 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8178
82ccf5a5
JK
81792010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8180
8181 * symfile.c (build_section_addr_info_from_bfd): New.
8182 (build_section_addr_info_from_objfile): Base it on
8183 build_section_addr_info_from_bfd.
8184 (addrs_section_compar, addrs_section_sort): New.
8185 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8186 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8187 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8188
737c4c52
MS
81892010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8190
8d95cc3b 8191 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
8192 Remove unused local variable.
8193
95a42b64
TT
81942010-03-24 Tom Tromey <tromey@redhat.com>
8195
8196 PR breakpoints/9352:
8197 * NEWS: Mention changes to `commands' and `rbreak'.
8198 * symtab.c (do_end_rbreak_breakpoints): New function.
8199 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8200 end_rbreak_breakpoints.
8201 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8202 (set_breakpoint_count): Likewise. Clear last_was_multi.
8203 (multi_start, multi_end, last_was_multi): New globals.
8204 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8205 functions.
8206 (struct commands_info): New
8207 (do_map_commands_command): New function.
8208 (commands_command_1): New function.
8209 (commands_command): Use it.
8210 (commands_from_control_command): Likewise.
8211 (do_delete_breakpoint): New function.
8212 (delete_command): Use it.
8213 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8214 (do_map_disable_breakpoint): New function.
8215 (disable_command): Use it.
8216 (do_map_enable_breakpoint): New function.
8217 (enable_command): Use it.
8218 (enable_once_breakpoint): Add argument.
8219 (enable_once_command): Update.
8220 (enable_delete_breakpoint): Add argument.
8221 (enable_delete_command): Update.
8222 (break_command_really): Set last_was_multi when needed.
8223 (check_tracepoint_command): Fix formatting.
8224 (validate_commands_for_breakpoint): New function.
8225 (breakpoint_set_commands): Use it.
8226 (tracepoint_save_command): Update.
8227 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8228 Declare.
8229
9add0f1b
TT
82302010-03-24 Tom Tromey <tromey@redhat.com>
8231
8232 * breakpoint.h (struct counted_command_line): New struct.
8233 (struct breakpoint) <commands>: Change type.
8234 (struct bpstats) <commands>: Change type.
8235 <commands_left>: New field.
8236 * breakpoint.c (alloc_counted_command_line): New function.
8237 (incref_counted_command_line): Likewise.
8238 (decref_counted_command_line): Likewise.
8239 (do_cleanup_counted_command_line): Likewise.
8240 (make_cleanup_decref_counted_command_line): Likewise.
8241 (breakpoint_set_commands): Use decref_counted_command_line and
8242 alloc_counted_command_line.
8243 (commands_command): Don't error if breakpoint commands are
8244 executing.
8245 (commands_from_control_command): Likewise.
8246 (bpstat_free): Update.
8247 (bpstat_copy): Likewise.
8248 (bpstat_clear_actions): Likewise.
8249 (bpstat_do_actions_1): Likewise.
8250 (bpstat_stop_status): Likewise.
8251 (print_one_breakpoint_location): Likewise.
8252 (delete_breakpoint): Likewise.
8253 (bpstat_alloc): Initialize new field.
8254 (tracepoint_save_command): Update.
8255 * tracepoint.c (encode_actions): Update.
8256 (trace_dump_command): Update.
8257
a6c727b2
DJ
82582010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8259
8260 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8261 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8262 (read_structure_type): For RealView, set TYPE_STUB on structures with
8263 no byte size and no children.
8264 (read_subroutine_type): Mark functions as prototyped by default.
8265 * symtab.c (producer_is_realview): New function.
8266 * symtab.h (expand_line_sal): Fix declaration formatting.
8267 (producer_is_realview): Declare.
8268
0d39a070
DJ
82692010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8270
8271 * arm-tdep.c (skip_prologue_function): New function.
8272 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8273 (thumb_analyze_prologue): Document return value. Recognize more
8274 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8275 Add debug output.
8276 (arm_skip_prologue): Remove call dummy check. Check the prologue
8277 for non-GNU compilers.
8278 (arm_instruction_changes_pc): New function.
8279 (arm_analyze_prologue): New function, broken out from
8280 arm_scan_prologue. Recognize more ARM instructions and skippable
8281 calls. Update comments. Handle NULL cache. Return the address
8282 of the first unrecognized instruction. Do not skip past other
8283 instructions which change control flow. Add debug output.
8284 (arm_scan_prologue): Use arm_analyze_prologue.
8285 (ARM_PC_32): Delete.
8286 (shifted_reg_val): Simplify ARM_PC_32 check.
8287
4baf5cf4
VP
82882010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8289
8290 * tracepoint.c (tvariables_info_1): Actually compute
8291 the number of rows in the result.
8292
4a5e7a5b
PA
82932010-03-24 Pedro Alves <pedro@codesourcery.com>
8294
8295 * remote.c (crc32): Constify `buf' parameter.
8296 (remote_verify_memory): New, abstracted out from...
8297 (compare_sections_command): ... this. Remove hardcoded target
8298 checks.
8299 (init_remote_ops): Install remote_verify_memory.
8300 * target.c (target_verify_memory): New.
8301 * target.h (struct target_ops) <to_verify_memory>: New field.
8302 (target_verify_memory): Declare.
8303
011aacb0
VP
83042010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8305
8306 Implement -trace-save.
8307
8308 * mi-cmds.h (mi_cmds_trace_save): Declare.
8309 * mi-cmds.c (mi_cmds): Register -trace-save.
8310 * mi/mi-main.c (mi_cmd_trace_save): New.
8311 * remote.c (remote_save_trace_data): Take const parameter.
8312 * target.h (struct target_ops::to_save_trace_data): Take
8313 const parameter.
8314 * target.c (update_current_target): Adjust to the above.
8315 * tracepoint.c (trave_save): New, extracted from
8316 (trace_save_command): ...this.
8317 (tfile_trace_find): Remove message that is unnecessary now
8318 that 'tfind' reports found frame.
8319 * tracepoint.h (trace_save): Declare.
8320
f197e0f1
VP
83212010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8322
8323 Implement -trace-find.
8324
8325 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8326 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8327 * mi/mi-main.c (mi_cmd_trace_find): New.
8328 * target.h (struct target_ops): Document to_trace_find.
8329 * tracepoint.h (tfind_1): Declare.
8330 * tracepoint.c (finish_tfind_command): Rename to...
8331 (tfind_1): ...this.
8332 * remote.c (remote_trace_find): Return -1 if target say
8333 there's no frame. Improve error diagnostics.
8334
40e1c229
VP
83352010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8336
8337 -trace-define-variable and -trace-list-variables.
8338
8339 * tracepoint.c (create_trace_state_variable): Make
8340 private copy of name, as opposed to assuming the
8341 pointer lives forever.
8342 (tvariables_info_1): New.
8343 (tvariables_info): Use the above.
8344 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8345 Declare.
8346 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8347 and -trace-list-variables.
8348 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8349 (mi_cmd_trace_list_variables): New.
8350 * mi/mi-main.c (mi_cmd_trace_define_variable)
8351 (mi_cmd_trace_list_variables): New.
8352
9b4c786c
VP
83532010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8354
8355 Implement -break-passcount.
8356
8357 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8358 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8359 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8360
f224b49d
VP
83612010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8362
8363 -trace-start/-trace-end/-trace-status.
8364
8365 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8366 and -trace-stop.
8367 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8368 (mi_cmd_trace_stop): Declare.
8369 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8370 (mi_cmd_trace_stop): New.
8371 * tracepoint.c (start_tracing): New, extracted from...
8372 (trace_start_command): ...this.
8373 (trace_status_mi): New.
8374 * tracepoint.h (struct trace_status): Document
8375 stopping_tracepoint.
8376 (start_tracing, stop_tracing, trace_status_mi): Declare.
8377
6534d786
VP
83782010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8379
8380 Implement creating tracepoints with -break-insert.
8381
8382 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8383 to mean that tracepoint should be created.
8384
51661e93
VP
83852010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8386
8387 * breakpoint.c (check_no_tracepoint_commands): Use
8388 current spelling of 'teval'.
8389
a7bdde9e
VP
83902010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8391
8392 Unify actions and commands
8393
8394 * defs.h (read_command_lines, read_command_lines_1): New
8395 parameters validator and closure.
8396 * tracepoint.h (struct action_line): Remove.
8397 * breakpoint.h (struct breakpoint): Remove the 'actions'
8398 field.
8399 * defs.h (enum command_control_type): New value
8400 while_stepping_control.
8401 (struct command_line): Add comments.
8402 * breakpoint.c (breakoint_is_tracepoint): New.
8403 (breakpoint_set_commands): For tracepoints,
8404 verify the commands are permissible.
8405 (check_tracepoint_commands): New.
8406 (commands_command): Require that each new line is validated using
8407 check_tracepoint_command, if we set commands for a tracepoint.
8408 (create_tracepoint_from_upload): Likewise.
8409 (print_one_breakpoint_location): Remove the code to print
8410 actions specifically.
8411 (tracepoint_save_command): Relay to print_command_lines.
8412 * cli/cli-script.c (process_next_line): New parameters validator
8413 and closure. Handle 'while-stepping'. Call validator if not null.
8414 (read_command_lines, read_command_lines1): Likewise.
8415 (recurse_read_control_structure): New parameters validator and
8416 closure. Handle while_stepping_control.
8417 (print_command_lines): Handle while-stepping.
8418 (get_command_line, define_command, document_command): Adjust.
8419 * remote.c (remote_download_tracepoint): Adjust.
8420 * tracepoint.c (make_cleanup_free_actions, read_actions)
8421 (free_actions, do_free_actions_cleanup): Remove.
8422 (trace_actions_command): Use read_command_lines.
8423 (validate_actionline): Use error in one place.
8424 (encode_actions_1): New, extracted from...
8425 (encode_actions): ...this. Also use cleanups for exception
8426 safety.
8427 (trace_dump_command): Adjust.
8428 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8429 it's tracepoint.
8430
64e3cf3d
MF
84312010-03-23 Mike Frysinger <vapier@gentoo.org>
8432
8433 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8434
52e9fde8
SS
84352010-03-22 Stan Shebs <stan@codesourcery.com>
8436
8437 * value.c (value_static_field): Be lazy about the field's value.
8438
508ccb1f
TT
84392010-03-22 Reid Kleckner <reid@kleckner.net>
8440
8441 PR gdb/11094
8442 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8443 bp_jit_event.
8444 (disable_breakpoints_in_shlibs): Likewise.
8445
acebe513
UW
84462010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8447
8448 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8449 GCC 4.1 debug info generation (GCC PR c++/28460).
8450 (determine_prefix): Likewise.
8451
957b8b5a
DJ
84522010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8453
8454 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8455 get_current_arch.
8456 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8457
3b11a015
SS
84582010-03-19 Stan Shebs <stan@codesourcery.com>
8459
8460 * ax-gdb.c (gen_fetch): Handle bool.
8461 (gen_usual_unary): Ditto.
8462 (gen_cast): Ditto.
8463 (gen_equal): New function.
8464 (gen_less): New function.
8465 (gen_expr_binop_rest): Call them, also return integer type from
8466 logical operations.
8467 (gen_expr): Ditto.
8468
20781792
TT
84692010-03-19 Tom Tromey <tromey@redhat.com>
8470
8471 * jv-lang.c (jv_dynamics_objfile_data_key)
8472 (jv_type_objfile_data_key): New globals.
8473 (class_symtab): Move earlier.
8474 (jv_per_objfile_free): New function.
8475 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8476 parameter.
8477 Remove ancient #if 1.
8478 (add_class_symbol): Remove redundant declaration.
8479 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8480 (java_link_class_type): Mark as static. Update.
8481 (jv_clear_object_type): New function.
8482 (set_java_object_type): Likewise.
8483 (get_java_object_type): Use set_java_object_type.
8484 (is_object_type): Likewise.
8485 (_initialize_java_language): Register new objfile keys.
8486 (get_java_class_symtab): Add 'gdbarch' parameter.
8487 (add_class_symtab_symbol): Update.
8488 (type_from_class): Update.
8489
cf3e25ca
SS
84902010-03-19 Stan Shebs <stan@codesourcery.com>
8491
8d95cc3b 8492 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 8493
f1ae44c9 84942010-03-18 Joel Brobecker <brobecker@adacore.com>
8495
8496 GDB 7.1 released.
8497
4daf5ac0
SS
84982010-03-18 Stan Shebs <stan@codesourcery.com>
8499 Pedro Alves <pedro@codesourcery.com>
8500
8501 * target.h (struct target_ops): New method
8502 to_set_circular_trace_buffer.
8503 (target_set_circular_trace_buffer): New macro.
8504 * target.c (update_current_target): Add
8505 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8506 default behavior.
8507 * remote.c (remote_set_circular_trace_buffer): New function.
8508 (init_remote_ops): Add it to vector.
8509 * tracepoint.h (struct trace_status): New field traceframes_created,
8510 change buffer_size and buffer_free to int.
8511 * tracepoint.c (circular_trace_buffer): New global.
8512 (start_tracing): Send values of disconnected tracing and circular
8513 trace buffer settings.
8514 (set_circular_trace_buffer): New function.
8515 (parse_trace_state): Handle total space and frames created.
8516 (trace_status_command): Display total space and total frames
8517 created.
8518 (trace_save): Write out new status values.
8519 (parse_trace_status): Set traceframe_count, traceframes_created,
8520 buffer_free and buffer_size to -1 by default.
8521 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8522 * NEWS: Mention the circular trace buffer option.
8523
40c549d6
TT
85242010-03-18 Tom Tromey <tromey@redhat.com>
8525
8526 * infcmd.c (finish_command_continuation): Wrap print_return_value
8527 in TRY_CATCH.
8528
e8d05480
JB
85292010-03-18 Joel Brobecker <brobecker@adacore.com>
8530
8531 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8532 DIE has a name before creating the associated partial symbol.
8533 (read_func_scope): Emit a complaint if the subprogram does not
8534 have a name or when we can't extract the subprogram PC bounds.
8535
441b986a
UW
85362010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8537
8538 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8539 instead of selected frame architecture.
8540
4247603b
PA
85412010-03-18 Pedro Alves <pedro@codesourcery.com>
8542
8543 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8544 a valid selected thread, and that it is not running.
8545 (advance_command): Ditto.
8546 (finish_command): Ditto.
8547
400c6af0
SS
85482010-03-17 Stan Shebs <stan@codesourcery.com>
8549
3a96536b
SS
8550 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8551
573cda03
SS
8552 * infcall.c: Include tracepoint.h.
8553 (call_function_by_hand): Disallow calls in tfind mode.
8554 * infcmd.c: Include tracepoint.h.
8555 (ensure_not_tfind_mode): New function.
8556 (continue_1): Call it.
8557 (step_1) Ditto.
8558 (jump_command): Ditto.
8559 (signal_command): Ditto.
8560 (advance_command): Ditto.
8561 (until_command): Ditto.
8562 (finish_command): Ditto.
8563 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8564
400c6af0
SS
8565 * ax-gdb.h (struct axs_value): New field optimized_out.
8566 (gen_trace_for_var): Add gdbarch argument.
8567 * ax-gdb.c (gen_trace_static_fields): New function.
8568 (gen_traced_pop): Call it, add gdbarch argument.
8569 (gen_trace_for_expr): Update call to it.
8570 (gen_trace_for_var): Ditto, and report optimized-out variables.
8571 (gen_struct_ref_recursive): Check for optimized-out value.
8572 (gen_struct_elt_for_reference): Ditto.
8573 (gen_static_field): Pass gdbarch instead of expression, assume
8574 optimization if field not found.
8575 (gen_var_ref): Set the optimized_out flag.
8576 (gen_expr): Error on optimized-out variable.
8577 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8578 expressions, skip optimized-out variables with computed locations.
8579 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8580 erroring out if location expression missing.
8581 (loclist_tracepoint_var_ref): Don't error out here.
8582
a3b2a86b
TT
85832010-03-17 Tom Tromey <tromey@redhat.com>
8584
8585 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8586 DWARF data is available.
8587
38963c97
DJ
85882010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8589
8590 * symfile.c (generic_load): Reset breakpoints after loading.
8591
ddabfc73
TT
85922010-03-17 Tom Tromey <tromey@redhat.com>
8593
8594 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8595
d8c09fb5
JK
85962010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8597
8598 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8599 create_breakpoint call, adjust the parameters.
8600
bbb0eef6
JK
86012010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8602 Chandru <chandru@in.ibm.com>
8603
8604 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8605 * valarith.c (value_subscripted_rvalue): Suppress error if
8606 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8607
46956e39
HZ
86082010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8609
8610 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8611
b8d088ac
JB
86122010-03-16 Joel Brobecker <brobecker@adacore.com>
8613
8614 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8615 before doing the associated thread switch.
8616
322be962
DJ
86172010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8618
8619 * MAINTAINERS: Update my email address.
8620
8cdf0e15
VP
86212010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8622
8623 Simplify MI breakpoint setting.
8624
8625 * breakpoint.c (break_command_really): Make nonstatic and
8626 rename to...
8627 (create_breakpoint): ...this. Rename prior function by this name
8628 to...
8629 (create_breakpoint_sal): ...this.
8630 (create_breakpoints): Rename to...
8631 (create_breakpoints_sal): ...this.
8632 (set_breakpoint): Remove.
8633 * breakpoint.h: Adjust to above changes.
8634 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8635
b6e7192f
SS
86362010-03-15 Stan Shebs <stan@codesourcery.com>
8637
8638 * ax-gdb.c: Include cp-support.h.
8639 (find_field): Remove.
8640 (gen_primitive_field): New function.
8641 (gen_struct_ref_recursive): New function.
8642 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8643 of find_field.
8644 (gen_static_field): New function.
8645 (gen_struct_elt_for_reference): New.
8646 (gen_namespace_elt): New.
8647 (gen_maybe_namespace_elt): New.
8648 (gen_aggregate_elt_ref): New.
8649 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8650
1054b214
TT
86512010-03-15 Tom Tromey <tromey@redhat.com>
8652
8653 * dwarf2read.c (die_needs_namespace): Also return 0 for
8654 DW_TAG_subprogram.
8655
13387711
SW
86562010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8657
8658 PR c++/7936:
8659 * cp-support.h: Added char *declaration element to using_direct
8660 data struct.
8661 (cp_add_using): Added char *declaration argument.
8662 (cp_add_using_directive): Ditto.
8663 (cp_lookup_symbol_imports): made extern.
8664 * cp-namespace.c: Updated with the above changes.
8665 * dwarf2read.c (read_import_statement): Ditto.
8666 (read_namespace): Ditto.
8667 (read_import_statement): Support import declarations.
8668 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8669 declarations.
8670 Added support for 'declaration_only' search.
8671 (cp_lookup_symbol_namespace): Attempt to search for the name as
8672 is before consideration of imports.
8673 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8674 search at every block level search.
8675 Now takes language argument.
8676 (lookup_symbol_aux): Updated.
8677
6e31430b
TT
86782010-03-15 Tom Tromey <tromey@redhat.com>
8679
8680 * c-exp.y (name_not_typename): Add 'operator' clause.
8681
4dea3bb7 86822010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
8683
8684 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8685 * configure: Regenerate.
8686
4d9743af
JK
86872010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8688
8689 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8690 and ".sdynbss". Update the comment.
8691
f75150fe
JZ
86922010-03-15 Jie Zhang <jie@codesourcery.com>
8693
8694 * MAINTAINERS: Update my email address.
8695
3c13bc11
DJ
86962010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8697
8698 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8699
43484f03
DJ
87002010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8701
8702 * charset.c [USE_WIN32API]: Include <windows.h>.
8703 (_initialize_charset): Correct type of w32_host_default_charset.
8704
5f25d77d
PA
87052010-03-14 Pedro Alves <pedro@codesourcery.com>
8706
8707 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8708
1c809c68
TT
87092010-03-12 Tom Tromey <tromey@redhat.com>
8710
8711 PR c++/9708:
8712 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8713 in a lexical block does not need a namespace.
8714 (new_symbol) <DW_TAG_variable>: Put extern variables on
8715 list_in_scope in all cases.
8716
948103cf
SS
87172010-03-12 Stan Shebs <stan@codesourcery.com>
8718
8719 * ax-gdb.c (gen_expr): Add shift expressions.
8720 (gen_expr_binop_rest): Ditto.
8721
00ae8fef
SW
87222010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8723
8724 * buildsym.c (finish_block): Reset using_directives pointer
8725 after block initialization.
8726
9cad29ac
L
87272010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8728
8729 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8730 * i386-tdep.c (i386_word_names): Likewise.
8731
2f4d8875
PA
87322010-03-12 Pedro Alves <pedro@codesourcery.com>
8733
8734 * target.c (memory_xfer_partial): Don't use the stack cache if
8735 inspecting trace frames.
8736 * tracepoint.c (finish_tfind_command): Invalidate the target
8737 dcache.
8738
ccf26247
JK
87392010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8740
8741 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8742 for the PIC displacement, print also the displacement value.
8743 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8744
477c84a7
KB
87452010-03-10 Kevin Buettner <kevinb@redhat.com>
8746
8747 * remote-mips.c (close_ports, mips_initialize_cleanups)
8748 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8749 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8750 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8751 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8752 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8753 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8754 comments describing each of these functions.
8755 (mips_enter_debug, mips_exit_debug, common_open)
8756 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8757 blank line after the comment describing the function.
8758
01c30d6e
JK
87592010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8760
8761 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8762 parameter displacementp. Update comment.
8763 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8764 element exists. Return if svr4_exec_displacement was not successful.
8765 Update comment.
8766
09919ac2
JK
87672010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8768 Daniel Jacobowitz <dan@codesourcery.com>
8769
8770 * solib-svr4.c (read_program_header): Support type == -1 to read
8771 all program headers.
8772 (read_program_headers_from_bfd): New function.
8773 (svr4_static_exec_displacement): Remove and move the comment ...
8774 (svr4_exec_displacement): ... here. Remove variable found. New
8775 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8776 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8777 targets using read_program_headers_from_bfd. Remove the call of
8778 svr4_static_exec_displacement.
8779
d146bf1e
TT
87802010-03-10 Tom Tromey <tromey@redhat.com>
8781
8782 * dwarf2read.c (struct pubnames_header): Remove.
8783 (_PUBNAMES_HEADER): Remove.
8784 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8785 (struct aranges_header): Remove.
8786 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8787 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8788 (PUBNAMES_SECTION): Remove.
8789 (ARANGES_SECTION): Remove.
8790 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8791 (dwarf2_build_psymtabs): Remove dead code.
8792 (dwarf2_build_psymtabs_easy): Remove.
8793
be391dca
TT
87942010-03-10 Tom Tromey <tromey@redhat.com>
8795
8796 * elfread.c (elf_symfile_read): Don't call
8797 dwarf2_build_frame_info.
8798 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8799 (struct dwarf2_per_objfile) <objfile>: New field.
8800 (dwarf2_has_info): Now idempotent. Set objfile field.
8801 (dwarf2_read_section): Check and set readin field. Call
8802 posix_madvise.
8803 (dwarf2_build_psymtabs): Don't read all sections.
8804 (read_type_comp_unit_head): Read types section.
8805 (create_debug_types_hash_table): Likewise.
8806 (init_cu_die_reader): Add asserts.
8807 (process_type_comp_unit): Add assert.
8808 (dwarf2_build_psymtabs_hard): Read info section.
8809 (load_partial_comp_unit): Add assert.
8810 (create_all_comp_units): Read info section.
8811 (load_full_comp_unit): Likewise.
8812 (dwarf2_ranges_read): Read ranges section.
8813 (dwarf2_record_block_ranges): Add assert.
8814 (dwarf2_read_abbrevs): Read abbrev section.
8815 (read_indirect_string): Read str section.
8816 (dwarf_decode_line_header): Read line section.
8817 (read_signatured_type_at_offset): Read types section.
8818 (dwarf_decode_macros): Read macinfo section.
8819 (dwarf2_symbol_mark_computed): Read loc section.
8820 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8821 dwarf2_build_frame_info.
8822 (dwarf2_build_frame_info): Unconditionally set
8823 dwarf2_frame_objfile_data on the objfile.
8824 * configure.ac: Check for posix_madvise.
8825 * config.in, configure: Rebuild.
8826
ccefe4c4
TT
88272010-03-10 Tom Tromey <tromey@redhat.com>
8828
e38df1d0
TT
8829 * xcoffread.c (xcoff_start_psymtab): Update.
8830 (xcoff_end_psymtab): Update.
8831 * psymtab.c (allocate_psymtab): Remove dead code.
8832 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8833 void*.
8834 * mdebugread.c (parse_partial_symbols): Update.
8835 (new_psymtab): Likewise.
8836 * dwarf2read.c (process_psymtab_comp_unit): Update.
8837 (psymtab_to_symtab_1): Update.
8838 * dbxread.c (start_psymtab): Update.
8839 (end_psymtab): Likewise.
8840
be391dca 88412010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8842
ccefe4c4
TT
8843 * xcoffread.c: Include psymtab.h.
8844 (xcoff_sym_fns): Update.
8845 * symtab.h (struct partial_symbol): Remove.
8846 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8847 (struct partial_symtab): Remove.
8848 (PSYMTAB_TO_SYMTAB): Remove.
8849 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8850 (find_pc_sect_psymtab): Remove.
8851 (find_pc_sect_symtab_via_partial): Declare.
8852 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8853 (find_main_psymtab): Remove.
8854 (find_main_filename): Declare.
8855 (fixup_psymbol_section): Remove.
8856 (fixup_section): Declare.
8857 * symtab.c: Include psymtab.h.
8858 (lookup_symtab): Use lookup_symtab method.
8859 (lookup_partial_symtab): Remove.
8860 (find_pc_sect_psymtab_closer): Remove.
8861 (find_pc_sect_psymtab): Remove.
8862 (find_pc_sect_symtab_via_partial): New function.
8863 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8864 (fixup_section): No longer static.
8865 (fixup_psymbol_section): Remove.
8866 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8867 (lookup_global_symbol_from_objfile): Likewise.
8868 (lookup_symbol_aux_psymtabs): Remove.
8869 (lookup_symbol_aux_quick): New function.
8870 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8871 (lookup_partial_symbol): Remove.
8872 (basic_lookup_transparent_type_quick): New function.
8873 (basic_lookup_transparent_type): Use it.
8874 (find_main_psymtab): Remove.
8875 (find_main_filename): New function.
8876 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8877 (find_line_symtab): Use expand_symtabs_with_filename method.
8878 (output_partial_symbol_filename): New function.
8879 (sources_info): Use map_partial_symbol_filenames.
8880 (struct search_symbols_data): New type.
8881 (search_symbols_file_matches): New function.
8882 (search_symbols_name_matches): Likewise.
8883 (search_symbols): Use expand_symtabs_matching method.
8884 (struct add_name_data): Rename from add_macro_name_data.
8885 (add_macro_name): Update.
8886 (add_partial_symbol_name): New function.
8887 (default_make_symbol_completion_list): Use
8888 map_partial_symbol_names.
8889 (struct add_partial_symbol_name): New type.
8890 (maybe_add_partial_symtab_filename): New function.
8891 (make_source_files_completion_list): Use
8892 map_partial_symbol_filenames.
8893 (expand_line_sal): Use expand_symtabs_with_filename method.
8894 * symmisc.c: Include psymtab.h.
8895 (print_objfile_statistics): Use print_stats method.
8896 (dump_objfile): Use dump method.
8897 (dump_psymtab, maintenance_print_psymbols)
8898 (maintenance_info_psymtabs, maintenance_check_symtabs)
8899 (extend_psymbol_list): Remove.
8900 * symfile.h (struct quick_symbol_functions): New struct.
8901 (struct sym_fns) <qf>: New field.
8902 (sort_pst_symbols): Remove.
8903 (increment_reading_symtab): Declare.
8904 * symfile.c: Include psymtab.h.
8905 (compare_psymbols, sort_pst_symbols): Remove.
8906 (psymtab_to_symtab): Remove.
8907 (increment_reading_symtab): New function.
8908 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8909 method.
8910 (set_initial_language): Use find_main_filename.
8911 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8912 (free_named_symtabs): Remove unused code.
8913 (start_psymtab_common, add_psymbol_to_bcache)
8914 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8915 Remove.
8916 * stack.c: Include psymtab.h, symfile.h.
8917 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8918 * source.h (psymtab_to_fullname): Don't declare.
8919 * source.c: Include psymtab.h.
8920 (select_source_symtab): Use find_last_source_symtab method.
8921 (forget_cached_source_info): Use forget_cached_source_info
8922 method.
8923 (find_and_open_source): No longer static.
8924 (psymtab_to_fullname): Remove.
8925 * somread.c: Include psymtab.h.
8926 (som_sym_fns): Update.
8927 * psympriv.h: New file.
8928 * psymtab.h: New file.
8929 * psymtab.c: New file.
8930 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8931 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8932 * objfiles.c: Include psymtab.h.
8933 (objfile_relocate1): Use relocate method.
8934 (objfile_has_partial_symbols): Use has_symbols method.
8935 * mipsread.c: Include psymtab.h.
8936 (ecoff_sym_fns): Update.
8937 * mi/mi-cmd-file.c: Include psymtab.h.
8938 (print_partial_file_name): New function.
8939 (mi_cmd_file_list_exec_source_files): Use
8940 map_partial_symbol_filenames.
8941 * mdebugread.c: Include psympriv.h.
8942 * machoread.c: Include psympriv.h.
8943 (macho_sym_fns): Update.
8944 * m2-exp.y (yylex): Use lookup_symtab.
8945 * elfread.c: Include psympriv.h.
8946 (elf_sym_fns): Update.
8947 * dwarf2read.c: Include psympriv.h.
8948 * dbxread.c: Include psympriv.h.
8949 (aout_sym_fns): Update.
8950 * cp-support.c: Include psymtab.h.
8951 (read_in_psymtabs): Remove.
8952 (make_symbol_overload_list_qualified): Use
8953 expand_symtabs_for_function method.
8954 * coffread.c: Include psympriv.h.
8955 (coff_sym_fns): Update.
8956 * blockframe.c: Include psymtab.h.
8957 (find_pc_partial_function): Use find_pc_sect_symtab method.
8958 * ada-lang.h (ada_update_initial_language): Update.
8959 * ada-lang.c: Include psymtab.h.
8960 (ada_update_initial_language): Remove 'main_pst' argument.
8961 (ada_lookup_partial_symbol): Remove.
8962 (struct ada_psym_data): New type.
8963 (ada_add_psyms): New function.
8964 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8965 (struct add_partial_datum): New type.
8966 (ada_add_partial_symbol_completions): New function.
8967 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8968 (ada_exception_support_info_sniffer): Update.
8969 * Makefile.in (SFILES): Add psymtab.c.
8970 (COMMON_OBS): Add psymtab.o.
8971 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8972
7d8500b7
PM
89732010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8974
8975 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8976
c0cc3a76
SW
89772010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8978
8979 PR C++/11236:
8980 * cp-namespace.c (cp_add_using): Deleted.
8981 (cp_add_using_directive): Use obstack allocations.
8982 Merged the function cp_add_using into this one.
8983 Added 'struct obstack *' argument.
8984 (cp_scan_for_anonymous_namespaces): Updated.
8985 * cp-support.h: Updated.
8986 * dwarf2read.c (read_import_statement): Updated.
8987 (read_namespace): Updated.
8988
452fa064
CF
89892010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8990
8991 * windows-nat.c (cygwin_conv_path): Remove old macro.
8992
60e1c644
PA
89932010-03-10 Pedro Alves <pedro@codesourcery.com>
8994
8995 * breakpoint.c (condition_command): Handle watchpoint conditions.
8996 (is_hardware_watchpoint): Add comment.
8997 (is_watchpoint): New.
8998 (update_watchpoint): Don't reparse the watchpoint's condition
8999 unless necessary.
9000 (WP_IGNORE): New.
9001 (watchpoint_check): Use it.
9002 (bpstat_check_watchpoint): Handle it.
9003 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
9004 conditions in a frame where it makes sense.
9005 (watch_command_1): Store the innermost block of the condition
9006 expression.
9007 (delete_breakpoint): Delete the watchpoint condition expression.
9008 * breakpoint.h (struct bp_location) <cond>: Update comment.
9009 (struct breakpoint): New field `cond_exp_valid_block'.
9010
af6b7be1
JB
90112010-03-09 Joel Brobecker <brobecker@adacore.com>
9012
9013 Adjust handling of Ada DIEs after dwarf2_physname patch.
9014 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
9015
60c5c021
CF
90162010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
9017 Pierre Muller <muller@ics.u-strasbg.fr>
9018
9019 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
9020 from/to posix/win32.
9021 (windows_make_so): Use non-Cygwin 1.7 specific function.
9022 (windows_create_inferior): Make sure that cygallargs points to
9023 original args in non Cygwin 1.7. case.
9024
60a1502a
MS
90252010-03-09 Michael Snyder <msnyder@vmware.com>
9026
9027 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
9028 after target_read_memory to get host byte order.
9029 (i386_process_record): Ditto.
9030
94af9270
KS
90312010-03-09 Keith Seitz <keiths@redhat.com>
9032
9033 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
9034 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
9035 print out const or volatile qualifiers, too.
9036 (c_type_print_args): Add parameters show_artificial and language.
9037 Skip artificial parameters when requested.
9038 Use the appropriate language printer.
9039 (c_type_print_varspec): Tell c_type_print_args to skip artificial
9040 parameters and pass language_c.
9041 * dwarf2read.c (die_list): New file global.
9042 (struct partial_die_info): Update comments for name field.
9043 (pdi_needs_namespace): Renamed to ...
9044 (die_needs_namespace): ... this. Rewrite.
9045 (dwarf2_linkage_name): Remove.
9046 (add_partial_symbol): Do not predicate the call to
9047 partial_die_full_name based on pdi_needs_namespace.
9048 Remove call to cp_check_possible_namespace_symbols and associated
9049 outdated comments.
9050 (guess_structure_name): Do not inspect child subprogram DIEs.
9051 (dwarf2_fullname): Update comments.
9052 Use die_needs_namespace to assist in computing the name.
9053 (read_func_scope): Use dwarf2_name to get the DIE's name.
9054 Use dwarf2_physname to get the "linkage name" of the DIE.
9055 (dwarf2_add_member_field): Use dwarf2_physname instead of
9056 dwarf2_linkage_name.
9057 (read_structure_type): For structs and classes, set TYPE_NAME, too.
9058 (determine_class): Remove.
9059 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9060 except Ada.
9061 (new_symbol): Unconditionally call dwarf2_name.
9062 Compute the "linkage name" using dwarf2_physname.
9063 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9064 When determining to scan for anonymous C++ namespaces, ignore
9065 the linkage name.
9066 (dwarf2_physname): New function.
9067 (dwarf2_full_name): Move content to new function and call
9068 that.
9069 (dwarf2_compute_name): "New" function.
9070 (_initialize_dwarf2_read): Initialize die_list.
9071 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9072 physname.
9073 (gnu_v3_print_method_ptr): Use the physname for virtual methods
9074 without a demangled name.
9075 Print out type information for non-virtual methods.
c8d5aac9 9076 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 9077 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
9078 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9079 (decode_compound): Stop consuming at an open parenthesis.
9080 Keep template parameters.
9081 Keep any overload information.
9082 Keep keywords like "const".
9083 Remove paren_pointer.
9084 Move is_quoted check from set_flags to here.
9085 Remove #if 0 code from 2000. Ten years is long enough.
9086 (find_method): Before comparing symbol names, canonicalize the string
9087 from the user.
9088 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
9089 (find_method_overload_end): New function.
9090 (set_flags): Remove.
c8d5aac9
L
9091 (decode_compound): Assume that parentheses are matched.
9092 It's a lot easier.
94af9270
KS
9093 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9094 to cplus_demangle.
9095 * linespec.c (decode_line_1): Keep important keywords like
9096 "const" and "volatile".
9097 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9098 * typeprint.h (c_type_print_args): Add declaration.
9099 * ui-file.c (do_ui_file_obsavestring): New function.
9100 (ui_file_obsavestring): New function.
9101 * ui-file.h (ui_file_obsavestring): Add declaration.
9102 * valops.c (find_overload_match): Resolve the object to
9103 a non-pointer type.
9104 If the object is a data member, search the object for the member
9105 and return with staticp set.
9106 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9107 Do not attempt to extract a function name from non-function types.
9108 If the extracted function name and the original name are the same,
9109 we don't have a C++ method.
9110
8d95cc3b
PA
9111 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9112 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
9113
9114 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9115 and arguments from symbol lookups.
9116 * ax-gdb.c (gen_expr): Likewise.
9117 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9118 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9119 lookup_possible_namespace_symbol): Likewise.
9120 * cp-support.c (read_in_psymtabs): Likewise.
9121 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9122 * language.h (la_lookup_symbol_nonlocal): Likewise.
9123 * scm-valprint.c (scm_inferior_print): Likewise.
9124 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9125 * solib-svr.c (elf_lookup_lib): Likewise.
9126 * solib.c (show_auto_solib_add): Likewise.
9127 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9128 * symmisc.c (maintenance_check_symtabs): Likewise.
9129 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9130 lookup_symbol_aux_local, lookup_symbol_aux_block,
9131 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9132 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9133 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9134 basic_lookup_transparent_type, find_main_psymtab,
9135 lookup_block_symbol): Likewise.
9136 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9137 lookup_symbol_global, lookup_symbol_aux_block,
9138 lookup_symbol_partial_symbol, lookup_block_symbol,
9139 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9140
9cb74f47
PM
91412010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9142
9143 * python/python-internal.h: Include symtab.h.
9144
af6b7be1
JB
91452010-03-09 Joel Brobecker <brobecker@adacore.com>
9146 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
9147
9148 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9149 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9150 indentation.
9151
bad56014
TT
91522010-03-08 Tom Tromey <tromey@redhat.com>
9153
9154 * breakpoint.c (breakpoint_1): Add "QUIT".
9155
08105857
PA
91562010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9157 Pedro Alves <pedro@codesourcery.com>
9158
9159 * solib.c (solib_find): Replace extension if
9160 solib_symbols_extension is set in the target gdbarch.
9161 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9162 solib_symbols_extension to "sym".
9163 * gdbarch.sh (solib_symbols_extension): New variable.
9164 (pstring): New function.
9165 * gdbarch.h, gdbarch.c: Regenerate.
9166
7c953934
TT
91672010-03-08 Tom Tromey <tromey@redhat.com>
9168
9169 PR cli/9591:
9170 * NEWS: Update.
9171 * utils.c: Include main.h.
9172 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9173 (defaulted_query): Use default answer if `batch_flag'.
9174 * main.h (batch_flag): Declare.
9175 * main.c (batch_flag): New global.
9176 (captured_main): Remove 'batch'. Update.
9177
bbd2783e
KB
91782010-03-08 Kevin Buettner <kevinb@redhat.com>
9179
9180 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9181 and Kevin Buettner:
9182
9183 * remote-mips.c (rockhopper_ops): New target_ops struct.
9184 (MON_ROCKHOPPER): New mips_monitor_type.
9185 (read_hex_value): New function.
9186 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 9187 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
9188 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9189 (rockhopper_open): New function.
9190 (mips_wait): Read the PC, FP and SP fields as strings. Use
9191 read_hex_value to parse them and mips_set_register to commit them.
9192 (mips_set_register): New function.
9193 (mips_fetch_registers): Do not cast register value to "unsigned"
9194 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9195 (mips_store_registers): Use a 'T' packet to set registers when
9196 using MON_ROCKHOPPER.
9197 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9198 and expect the total to be printed before the entry address.
9199 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9200
566f3d17
KB
92012010-03-08 Kevin Buettner <kevinb@redhat.com>
9202
9203 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9204 Change return value to int. Store value fetched in location
9205 addressed by `val'. Use function's return value as success
9206 or failure indicator. Adjust all callers.
9207
9c8ee2ab 92082010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
9209
9210 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9211
7155de5a
HZ
92122010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9213 Hui Zhu <teawater@gmail.com>
9214
9215 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9216 tmp_to_stopped_data_address.
9217 (record_open): Reset tmp_to_stopped_by_watchpoint and
9218 tmp_to_stopped_data_address.
9219 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9220 to_stopped_data_address.
9221
580879fc
HZ
92222010-03-08 Hui Zhu <teawater@gmail.com>
9223
9224 * i386-tdep.c (i386_process_record): Initialize regnum.
9225
b0fcb67f
JK
92262010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9227
9228 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9229 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9230
08597104
JB
92312010-03-08 Joel Brobecker <brobecker@adacore.com>
9232
9233 Memory error when reading wrong core file.
9234 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9235 errors while reading the inferior memory, and return zero if
9236 an exception was raised.
9237
425b824a
MS
92382010-03-07 Michael Snyder <msnyder@vmware.com>
9239
ec6dbf37
MS
9240 * record.c (record_restore): Rename tmpu8 to rectype.
9241
648d0c8b
MS
9242 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9243 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9244
9245 (i386_record_push): Rename local tmpulongest to addr.
9246
9247 (i386_process_record): Rename local tmpulongest to addr.
9248
9249 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9250 addr64.
955db0c0
MS
9251
9252 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 9253
10760264
JB
92542010-03-07 Joel Brobecker <brobecker@adacore.com>
9255
9256 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 9257 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 9258
b3c613f2
CF
92592010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9260
9261 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9262 block. Define helper macros to reduce ifdefs in code.
9263 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9264 size. Call unadorned GetModuleFileNameEx rather than
9265 GetModuleFileNameEx*.
9266 (windows_make_so): Use __PMAX to denote maximum buffer size and
9267 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9268 appropriate.
9269 (get_image_name): Use __PMAX to denote maximum buffer size.
9270 (handle_load_dll): Likewise.
9271 (windows_pid_to_exec_file): Likewise.
9272 (windows_create_inferior): Add many accommodations for older Cygwin and
9273 non-Cygwin.
9274 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9275 __USEWIDE conditional.
9276 (bad_GetModuleFileNameExA): Likewise.
9277 (_initialize_loadable): Just use real function names without the dyn_
9278 part since they are defined earlier.
9279
f870a310
TT
92802010-03-05 Corinna Vinschen <vinschen@redhat.com>
9281 Tom Tromey <tromey@redhat.com>
9282
9283 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9284 (parse_escape): Likewise.
9285 * python/py-utils.c (unicode_to_target_string): Update.
9286 (unicode_to_target_python_string): Update.
9287 (target_string_to_unicode): Update.
9288 * printcmd.c (printf_command): Update.
9289 * p-exp.y (yylex): Update.
9290 * objc-exp.y (yylex): Update.
9291 * mi/mi-parse.c: Include charset.h.
9292 (mi_parse_escape): New function.
9293 (mi_parse_argv): Use it.
9294 * jv-exp.y (yylex): Update.
9295 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9296 function.
9297 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9298 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9299 * gdbarch.c: Rebuild.
9300 * gdbarch.h: Rebuild.
9301 * defs.h (parse_escape): Update.
9302 * cli/cli-setshow.c: Include arch-utils.h.
9303 (do_setshow_command): Update.
9304 * cli/cli-cmds.c (echo_command): Update.
9305 * charset.h (target_charset, target_wide_charset): Update.
9306 * charset.c: Include arch-utils.h.
9307 (target_charset_name): Default to "auto".
9308 (target_wide_charset_name): Likewise.
9309 (show_target_charset_name): Handle "auto".
9310 (show_target_wide_charset_name): Likewise.
9311 (be_le_arch): New global.
9312 (set_be_le_names): Add 'gdbarch' argument.
9313 (validate): Likewise. Don't call set_be_le_names.
9314 (set_charset_sfunc, set_host_charset_sfunc)
9315 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9316 Update.
9317 (target_charset): Add 'gdbarch' argument.
9318 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9319 (auto_target_charset_name): New global.
9320 (default_auto_charset, default_auto_wide_charset): New functions.
9321 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9322 for target charsets. Copy result of nl_langinfo. Use GetACP if
9323 USE_WIN32API.
9324 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9325 remove 'byte_order' argument. Update.
9326 (classify_type): Likewise.
9327 (c_emit_char): Update.
9328 (c_printchar): Update.
9329 (c_printstr): Update.
9330 (c_get_string): Update.
9331 (evaluate_subexp_c): Update.
9332 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9333 Declare.
9334 * python/python.c (gdbpy_target_charset): New function.
9335 (gdbpy_target_wide_charset): Likewise.
9336 (GdbMethods): Update.
9337 * NEWS: Update.
9338
4e7386b0
UW
93392010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9340
9341 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9342 off high address bits.
9343
aab48ede
UW
93442010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9345
9346 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9347 address as UnsignedLongLong, not LongLong.
9348
8eeafb51 93492010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 9350 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
9351
9352 * remote-mips.c (gdbthread.h): Include.
9353 (remote_mips_ptid): Declare.
9354 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9355 (common_open): Set inferior_ptid, add it as an inferior, and
9356 as a thread too. Delete FIXME comment regarding start_remote().
9357 (mips_close): Invoke generic_mourn_inferior().
9358 (mips_kill): Make sure that target_mourn_inferior is invoked.
9359 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9360 it's now invoked from mips_close().
9361 (mips_load): Don't null out inferior_ptid. Don't call
9362 clear_symtab_users().
9363 (mips_thread_alive, mips_pid_to_str): New functions.
9364 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9365 to_thread_alive and to_pid_to_str operations.
9366
ae411497
TT
93672010-03-04 Tom Tromey <tromey@redhat.com>
9368
9369 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9370 in DWARF 3 and later.
9371 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9372
0e0b460e
KS
93732010-03-04 Keith Seitz <keiths@redhat.com>
9374
9375 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9376 If the filename portion of the linespec was quoted, recheck the
9377 remainder for additional quoting.
9378 (locate_first_half): Skip over completer chars, too.
9379
1b93ff13
TT
93802010-03-04 Tom Tromey <tromey@redhat.com>
9381
9382 * printcmd.c (printf_command): Pass dummy argument to
9383 printf_filtered.
9384
fc36e839
DE
93852010-03-04 Doug Evans <dje@google.com>
9386
111f853c
DE
9387 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9388 unwound_fp.
9389
fc36e839
DE
9390 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9391
c7437ca6
PA
93922010-03-04 Pedro Alves <pedro@codesourcery.com>
9393
9394 * breakpoint.c (update_watchpoint): Create a sentinel location if
9395 the software watchpoint isn't watching any memory.
9396 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9397
58dadb1b
PA
93982010-03-04 Pedro Alves <pedro@codesourcery.com>
9399
9400 * utils.c (fputs_maybe_filtered): Check if there's already a top
9401 level interpreter before dereferencing it. If there isn't one,
9402 don't paginate either.
9403
50e98be4
DJ
94042010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9405
9406 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9407 the state right when single stepping.
9408 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9409 Get the next PC along with the instruction state.
9410 (thumb_get_next_pc): Remove.
9411 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9412
2e3ceee9
HZ
94132010-03-04 Hui Zhu <teawater@gmail.com>
9414
9415 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9416
390a8aca
PA
94172010-03-03 Pedro Alves <pedro@codesourcery.com>
9418
9419 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9420 top level interpreter is MI.
9421
9355b391
SS
94222010-03-03 Stan Shebs <stan@codesourcery.com>
9423
9424 * remote.c (remote_download_tracepoint): Iterate over locations.
9425 * tracepoint.c (validate_actionline): Ditto.
9426 (encode_actions): Add location argument.
9427 (trace_dump_command): Check all locations to see if stepping
9428 frame.
390a8aca 9429
8685c86f
L
94302010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9431 Eli Zaretskii <eliz@gnu.org>
9432
9433 * NEWS: Add X86 general purpose registers section.
9434
e8f781e2
TT
94352010-03-03 Tom Tromey <tromey@redhat.com>
9436
9437 PR mi/11098:
9438 * varobj.c (install_new_value): Handle case where new print_value
9439 is NULL.
9440
a0e0ef55
TT
94412010-03-03 Dainis Jonitis <jonitis@gmail.com>
9442
9443 PR gdb/11345:
9444 * printcmd.c (printf_command): Print end of format string using
9445 printf_filtered.
9446
a58d7472
TT
94472010-03-02 Tom Tromey <tromey@redhat.com>
9448
9449 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9450 * defs.h (read_command_lines_1): Add missing 'void'.
9451 * cli/cli-script.c (recurse_read_control_structure): Add missing
9452 'void'.
9453 (read_next_line): Likewise.
9454 (read_command_lines_1): Likewise.
9455
ce50d78b
UW
94562010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9457
9458 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9459 store backchain as part of prologue.
9460
7e9af34a
DJ
94612010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9462
9463 * progspace.c (update_address_spaces): Update inferior address spaces
9464 also.
9465
01637564
DE
94662010-03-02 Doug Evans <dje@google.com>
9467
9468 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9469 lowpc,highpc args to addrmap_set_empty.
9470
1ba53b71
L
94712010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9472
9473 * amd64-tdep.c (amd64_byte_names): New.
9474 (amd64_word_names): Likewise.
9475 (amd64_dword_names): Likewise.
9476 (amd64_pseudo_register_name): Likewise.
9477 (amd64_pseudo_register_read): Likewise.
9478 (amd64_pseudo_register_write): Likewise.
9479 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9480 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9481 set_gdbarch_pseudo_register_write and
9482 set_tdesc_pseudo_register_name. Don't call
9483 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9484
9485 * i386-tdep.c (i386_num_mmx_regs): Removed.
9486 (i386_num_pseudo_regs): Likewise.
9487 (i386_byte_names): New.
9488 (i386_word_names): Likewise.
9489 (i386_byte_regnum_p): Likewise.
9490 (i386_word_regnum_p): Likewise.
9491 (i386_mmx_regnum_p): Updated.
9492 (i386_pseudo_register_name): Make it global. Handle byte and
9493 word pseudo-registers.
9494 (i386_pseudo_register_read): Likewise.
9495 (i386_pseudo_register_write): Likewise.
9496 (i386_pseudo_register_type): Handle byte, word and dword
9497 pseudo-registers
9498 (i386_register_reggroup_p): Don't include pseudo
9499 registers, except for MXX, in any register groups. Don't
9500 include pseudo byte, word, dword registers in general_reggroup.
9501 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9502 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9503 pseudo-registers after word pseudo-registers. Call
9504 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9505
9506 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9507 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9508 eax_regnum.
9509 (i386_byte_regnum_p): New.
9510 (i386_word_regnum_p): Likewise.
9511 (i386_dword_regnum_p): Likewise.
9512 (i386_pseudo_register_name): Likewise.
9513 (i386_pseudo_register_read): Likewise.
9514 (i386_pseudo_register_write): Likewise.
9515
a6f5ef51
L
95162010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9517
9518 * target-descriptions.c (tdesc_type): Remove
9519 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9520 (tdesc_predefined_types): Likewise.
9521 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9522 if flag name is empty.
9523 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9524
9525 * features/i386/32bit-core.xml: Define i386_eflags.
9526 * features/i386/64bit-core.xml: Likewise.
9527
9528 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9529 * features/i386/64bit-sse.xml: Likewise.
9530
9531 * features/i386/amd64-linux.c: Regenerated.
9532 * features/i386/amd64.c: Likewise.
9533 * features/i386/i386-linux.c: Likewise.
9534 * features/i386/i386.c: Likewise.
9535
f5dff777
DJ
95362010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9537
9538 * gdbtypes.c (append_composite_type_field_raw): New.
9539 (append_composite_type_field_aligned): Use the new function.
9540 * gdbtypes.h (append_composite_type_field_raw): Declare.
9541 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9542 (struct tdesc_type_flag): New type.
9543 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9544 kind. Add size to u.u. Add u.f for flags.
9545 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9546 (tdesc_free_type): Likewise.
9547 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9548 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9549 (tdesc_add_bitfield, tdesc_add_flag): New.
9550 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9551 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9552 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9553 current_type. Add current_type_size and current_type_is_flags.
9554 (tdesc_start_union): Clear the new fields.
9555 (tdesc_start_struct, tdesc_start_flags): New.
9556 (tdesc_start_field): Handle struct fields, including bitfields.
9557 (field_attributes): Make type optional. Add start and end.
9558 (union_children): Rename to struct_union_children.
9559 (union_attributes): Rename to struct_union_attributes. Add optional
9560 size.
9561 (flags_attributes): New.
9562 (feature_children): Add struct and flags.
9563 * features/gdb-target.dtd: Add flags and struct to features.
9564 Make field type optional. Add field start and end.
9565
90884b2b
L
95662010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9567
9568 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9569 (amd64_linux_read_description): Likewise.
9570 (_initialize_amd64_linux_nat): Set to_read_description to
9571 amd64_linux_read_description.
9572
9573 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9574 (amd64_linux_register_name): Removed.
9575 (amd64_linux_register_type): Likewise.
9576 (amd64_linux_core_read_description): New.
9577 (amd64_linux_init_abi): Set target description to
9578 tdesc_amd64_linux if needed. Support orig_rax in target
9579 description. Don't call set_gdbarch_register_name nor
9580 set_gdbarch_register_type. Call
9581 set_gdbarch_core_read_description.
9582 (_initialize_amd64_linux_tdep): Call
9583 initialize_tdesc_amd64_linux.
9584
9585 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9586
9587 * amd64-tdep.c: Include "features/i386/amd64.c".
9588 (amd64_register_names): Removed.
9589 (amd64_register_name): Likewise.
9590 (amd64_register_type): Likewise.
9591 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 9592 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
9593 set_gdbarch_register_name nor set_gdbarch_register_type.
9594 (_initialize_amd64_tdep): New.
9595
9596 * i386-linux-nat.c (i386_linux_read_description): New.
9597 (_initialize_i386_linux_nat): Set to_read_description to
9598 i386_linux_read_description.
9599
9600 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9601 (i386_linux_register_name): Removed.
9602 (i386_linux_core_read_description): New.
9603 (i386_linux_read_description): Likewise.
9604 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9605 Set target description to tdesc_i386_linux if needed. Support
9606 orig_eax. Set register_reggroup_p. Call
9607 set_gdbarch_core_read_description.
9608 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9609
9610 * i386-linux-tdep.h (tdesc_i386_linux): New.
9611
9612 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9613 with I387_NUM_REGS.
9614
9615 * i386-tdep.c: Include "features/i386/i386.c".
9616 (i386_register_names): Make it const.
9617 (i386_mmx_names): Likewise.
9618 (i386_num_register_names): Removed.
9619 (i386_register_name): Likewise.
9620 (i386_eflags_type): Likewise.
9621 (i386_mxcsr_type): Likewise.
9622 (i386_sse_type): Likewise.
9623 (i386_register_type): Likewise.
9624 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9625 (i386_pseudo_register_name): New.
9626 (i386_pseudo_register_type): Likewise.
9627 (i386_mmx_type): Make it static.
9628 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9629 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9630 call set_gdbarch_register_name nor set_gdbarch_register_type.
9631 Set register_reggroup_p. Set target description to tdesc_i386
9632 if needed. Call set_tdesc_pseudo_register_type,
9633 set_tdesc_pseudo_register_name and tdesc_use_registers.
9634 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9635 initialize_tdesc_x86_64.
9636
9637 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9638 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9639 register_names, tdesc and register_reggroup_p.
9640 (I386_NUM_FREGS): Removed.
9641 (i386_eflags_type): Likewise.
9642 (i386_mxcsr_type): Likewise.
9643 (i386_mmx_type): Likewise.
9644 (i386_sse_type): Likewise.
9645 (i386_register_name): Likewise.
9646 (i386_regnum): Add I386_MXCSR_REGNUM.
9647 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9648
9649 * i387-tdep.h (I387_NUM_REGS): New.
9650
9651 * regformats/i386/i386-linux.dat: Generated.
9652 * regformats/i386/i386.dat: Likewise.
9653 * regformats/i386/amd64-linux.dat: Likewise.
9654 * regformats/i386/amd64.dat: Likewise.
9655
9656 * regformats/reg-i386-linux.dat: Removed.
9657 * regformats/reg-i386.dat: Likewise.
9658 * regformats/reg-x86-64-linux.dat: Likewise.
9659 * regformats/reg-x86-64.dat: Likewise.
9660
d0d0ab16
CV
96612010-03-01 Corinna Vinschen <vinschen@redhat.com>
9662
9663 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9664 cygwin_conv_path API rather than the deprecated
9665 cygwin_conv_to_full_posix_path.
9666 * windows-nat.c:
9667 (GetModuleFileNameExA): Undefine for Cygwin.
9668 (GetModuleFileNameExW): Define for Cygwin.
9669 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9670 Call GetModuleFileNameExW and convert path to POSIX using
9671 cygwin_conv_path.
9672 (windows_make_so): Always define p. Drop unused variable m.
9673 Don't use Win32 functions to check file existance, rather use
9674 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9675 Use canonicalize_file_name to get full path.
9676 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9677 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9678 use correct target buffer size in call to WideCharToMultiByte.
9679 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9680 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9681 (windows_create_inferior): Convert all paths and arguments to wchar_t
9682 and use CreateProcessW on Cygwin.
9683 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9684 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9685 (bad_GetModuleFileNameExW): Define for Cygwin.
9686 (_initialize_loadable): Load GetModuleFileNameExW into
9687 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9688
dc00d89f
PM
96892010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9690
9691 PR python/11036
9692 * python/py-frame.c (frapy_read_var): Add block argument and logic
9693 to cope with user provided blocks.
9694
0e095b7e
JK
96952010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9698 New comment.
9699
2f9e05b4
CV
97002010-02-28 Corinna Vinschen <vinschen@redhat.com>
9701
9702 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9703 (COMMON_OBS): ... to here since it's used unconditionally.
9704 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9705 (SFILES): To here.
9706
eb195664
DD
97072010-02-26 David Daney <ddaney@caviumnetworks.com>
9708
9709 * mips-linux-tdep.c: Update struct sigframe comments.
9710 (SIGFRAME_CODE_OFFSET): Delete macro.
9711 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9712 this_frame's sp.
9713 (mips_linux_n32n64_sigframe_init): Same.
9714
97b0f3e2
KB
97152010-02-26 Kevin Buettner <kevinb@redhat.com>
9716
9717 * remote-mips.c (mips_load): Don't use pseudo-register when
9718 invalidating regcache.
9719
4069ebbe
DJ
97202010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9721
9722 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9723
05071a4d
PA
97242010-02-26 Pedro Alves <pedro@codesourcery.com>
9725
9726 * NEWS: Add "New targets" section, and mention ARM Symbian
9727 support.
9728
6063c216
UW
97292010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9730
9731 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9732 add ADDR_SIZE member.
9733 (allocate_piece_closure): Update.
9734 (copy_pieced_value_closure): Likewise.
9735 (dwarf2_evaluate_loc_desc): Likewise.
9736 (read_pieced_value): Use DWARF address size instead of
9737 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9738
5107b149 97392010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 9740 Tom Tromey <tromey@redhat.com>
5107b149
PM
9741
9742 * python/py-type.c (typy_lookup_typename): Add in block argument.
9743 If provided restrict lookup to specified blocks.
9744 (gdbpy_lookup_type): Likewise.
9745 (typy_lookup_type): Likewise.
9746
78664fa3 97472010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 9748
78664fa3
PA
9749 Symbian config
9750
9751 gdb/
9752 * arm-symbian-tdep.c: New.
9753 * configure.tgt (arm*-*-symbianelf*): New target.
9754 (*-*-symbianelf*): New OS.
9755 * osabi.c (gdb_osabi_names): Add Symbian.
9756 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9757 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9758 (ALLDEPFILES): Add arm-symbian-tdep.c.
9759
eb73e134
DJ
97602010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9761
9762 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9763
46ef47e5
PA
97642010-02-24 Pedro Alves <pedro@codesourcery.com>
9765
9766 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9767
f3e9a817 97682010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9769 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9770 Thiago Jung Bauermann <bauerman@br.ibm.com>
9771
9772 * python/python.c (_initialize_python): Call
9773 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9774 gdbpy_initialize_blocks.
9775 * python/python-internal.h: Declare struct symbol, block and
9776 symtab_and_line. Declare block_object_type and
9777 symbol_object_type
9778 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9779 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9780 (symbol_to_symbol_object, block_to_block_object)
9781 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9782 (gdbpy_initialize_blocks ): Declare.
9783 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9784 (frapy_select): Add methods.
9785 (frapy_read_var): Add symbol branch.
9786 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9787 py-block.
9788 (SUBDIR_PYTHON_SRCS): Likewise.
9789 (py-symbol.o): New rule.
9790 (py-symtab.o): Likewise.
9791 (py-block.o): Likewise.
9792 * python/py-symbol.c: New file.
9793 * python/py-symtab.c: Likewise.
9794 * python/py-block.c: Likewise.
9795
24291992
PA
97962010-02-24 Pedro Alves <pedro@codesourcery.com>
9797
9798 PR gdb/11321
9799
9800 * inferior.h (prepare_for_detach): Declare.
9801 (struct inferior) <detaching>: New field.
9802 * infrun.c (prepare_for_detach): New.
9803 (handle_inferior_event) <random signal>: Don't stop if detaching.
9804 * target.c (target_detach): Call prepare_for_detach.
9805
fc1cf338
PA
98062010-02-24 Pedro Alves <pedro@codesourcery.com>
9807
9808 Per-process displaced stepping queue.
9809
9810 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9811 (displaced_step_gdbarch, displaced_step_closure,
9812 (displaced_step_original, displaced_step_copy): Move globals to
9813 this...
9814 (struct displaced_step_inferior_state): ... new structure.
9815 (displaced_step_inferior_states): New global.
9816 (get_displaced_stepping_state, add_displaced_stepping_state)
9817 (remove_displaced_stepping_state, infrun_inferior_exit): New
9818 functions.
9819 (displaced_step_clear): Add displaced_step_inferior_state
9820 parameter, and adjust to handle it.
9821 (displaced_step_clear_cleanup): Parameter is now a
9822 displaced_step_inferior_state. Adjust.
9823 (displaced_step_prepare): Adjust.
9824 (displaced_step_fixup, displaced_step_fixup)
9825 (infrun_thread_ptid_changed, resume): Adjust.
9826 (init_wait_for_inferior): Don't call displaced_step_clear.
9827 (infrun_thread_stop_requested): Rewrite.
9828 (_initialize_infrun): Install infrun_inferior_exit as
9829 inferior_exit observer.
9830
0723dbf5
PA
98312010-02-24 Pedro Alves <pedro@codesourcery.com>
9832
9833 * inferior.h (ptid_match): Declare.
9834 * infrun.c (ptid_match): New.
9835 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9836 (handle_notification): Add debug output.
9837 * linux-nat.c (ptid_match): Delete.
9838
09de9781
DM
98392010-02-24 David S. Miller <davem@davemloft.net>
9840
9841 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9842 * syscalls/sparc-linux.xml: New.
9843 * syscalls/sparc64-linux.xml: New.
9844 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9845 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9846 (sparc32_linux_get_syscall_number): New function.
9847 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9848 syscall number fetcher.
9849 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9850 (sparc64_linux_get_syscall_number): New function.
9851 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9852 syscall number fetcher.
9853
a79b8f6e
VP
98542010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9855
9856 Multiexec MI
9857
9858 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9859 * inferior.c (add_inferior_silent): Notify inferior_added
9860 observer.
9861 (delete_inferior_1): Notify inferior_removed observer.
9862 (exit_inferior_1): Pass inferior, not pid, to observer.
9863 (inferior_appeared): Likewise.
9864 (add_inferior_with_spaces): New.
9865 (add_inferior_command): Use the above.
9866 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9867 Declare.
9868
9869 * inflow.c (inflow_inferior_exit): Likewise.
9870 * jit.c (jit_inferior_exit_hook): Likewise.
9871
9872 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9873 remove-inferior.
9874 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9875 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9876 (report_initial_inferior): New.
9877 (mi_inferior_removed): Register the above. Make sure
9878 inferior_added observer is called on the first inferior.
9879 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9880 inferior number, not pid.
9881 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9882 affected.
9883 * mi/mi-main.c (current_context): New.
9884 (proceed_thread_callback): Use typed closure.
9885 Proceed everything if pid is 0. Most implementation split into
9886 (proceed_thread): ... this.
9887 (run_one_inferior): New.
9888 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9889 Adjust for multiexec behaviour.
9890 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9891 (mi_cmd_execute): Handle the 'thread-group' option here.
9892 Do some extra checks.
9893 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9894 options.
9895 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9896
115d30f9
VP
98972010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9898
9899 Make -exec-run a proper MI commands.
9900
9901 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9902 * mi/mi-cmds.c (mi_cmds): Adjust.
9903 * mi/mi-main.c (mi_cmd_exec_run): New.
9904
06cd862c
PA
99052010-02-24 Pedro Alves <pedro@codesourcery.com>
9906 Stan Shebs <stan@codesourcery.com>
9907
9908 * tracepoint.h (set_traceframe_number)
9909 (cleanup_restore_current_traceframe): Declare.
9910 * tracepoint.c (set_traceframe_number): New.
9911 (struct current_traceframe_cleanup): New.
9912 (do_restore_current_traceframe_cleanup)
9913 (restore_current_traceframe_cleanup_dtor)
9914 (make_cleanup_restore_current_traceframe): New.
9915 * infrun.c: Include tracepoint.h.
9916 (fetch_inferior_event): Switch out and in of tfind mode.
9917
ab92d69b
PA
99182010-02-24 Pedro Alves <pedro@codesourcery.com>
9919
9920 * breakpoint.c (breakpoint_init_inferior): Also delete
9921 bp_shlib_event breakpoints.
9922 * solib-frv.c (enable_break): Remove call to
9923 remove_solib_event_breakpoints.
9924 * solib-svr4.c (enable_break): Ditto.
9925 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9926 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9927 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9928 * solib-spu.c (spu_enable_break): Ditto.
9929
e707a91d
PA
99302010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9931
9932 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9933
cfce2ea2
PA
99342010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9935
9936 * varobj.c (varobj_update): Avoid non-constants in initializers.
9937
05566b3b
TT
99382010-02-23 Tom Tromey <tromey@redhat.com>
9939
9940 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9941 handle big-endian values.
9942 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9943
85d721b8
PA
99442010-02-22 Pedro Alves <pedro@codesourcery.com>
9945
9946 PR9605
9947
9948 gdb/
9949 * breakpoint.c (insert_bp_location): If inserting the read
9950 watchpoint failed, fallback to an access watchpoint.
9951 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9952 if the value changed, if not watching the same memory for writes.
9953 (watchpoint_locations_match): Add comment.
9954 (update_global_location_list): Copy the location's watchpoint type.
9955 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9956 handle read watchpoints here.
9957 (i386_insert_watchpoint): Read watchpoints aren't supported.
9958 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9959 packets.
9960 * target.h (target_insert_watchpoint): Update description.
9961
48ea67a7
TT
99622010-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9965 * m2-typeprint.c (m2_print_type): Update.
9966 * gdbtypes.c (recursive_dump_type): Update.
9967 (copy_type_recursive): Update.
9968 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9969 (c_type_print_base): Update.
9970 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9971 Remove.
9972 (struct cplus_struct_type) <ntemplate_args>: Remove.
9973 <struct template_arg>: Remove.
9974 <is_dynamic>: Move earlier.
9975 (TYPE_TEMPLATE_ARGS): Remove.
9976 (TYPE_NTEMPLATE_ARGS): Remove.
9977 (TYPE_TEMPLATE_ARG): Remove.
9978
48e32051
TT
99792010-02-19 Tom Tromey <tromey@redhat.com>
9980
9981 PR c++/8693, PR c++/9496:
9982 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9983 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9984 write_dollar_variable. Don't try to classify NAME tokens.
9985 (token_and_value): New type.
9986 (token_fifo, popping, name_obstack): New globals.
9987 (classify_name): New function.
9988 (classify_inner_name): Likewise.
9989 (yylex): Likewise.
9990 (VARIABLE): Now has type sval.
9991 (exp : VARIABLE): Call write_dollar_variable.
9992 (qualified_name): Use TYPENAME, not typebase. Add production for
9993 multiple "::" instances.
9994 (variable): Use name_not_typename.
9995 (qualified_type): Remove.
9996 (typebase): Update.
9997
672d9c23
JK
99982010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9999
10000 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
10001 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
10002 found by bfd_get_section_by_name.
10003 * symfile.h (struct section_addr_info) <sectindex>: New comment.
10004
bfbf3774
JB
100052010-02-19 Joel Brobecker <brobecker@adacore.com>
10006
10007 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
10008 7.0 section" into "Changes in 7.1".
10009
6756b09b 100102010-02-19 Joel Brobecker <brobecker@adacore.com>
10011
10012 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
10013 * version.in: Bump version to 7.1.50.20100219-cvs.
10014
202b96c1
PA
100152010-02-18 Harald Koenig <H.Koenig@science-computing.de>
10016
10017 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
10018 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
10019
de2e5182
TT
100202010-02-17 Tom Tromey <tromey@redhat.com>
10021
10022 * NEWS: Add Python API Improvements section.
10023
7280022e
DJ
100242010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
10025
10026 * NEWS: Correct typo.
10027
6f451e5e
TT
100282010-02-17 Tom Tromey <tromey@redhat.com>
10029
10030 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
10031
012836ea
JK
100322010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10033
10034 * symfile.c (build_section_addr_info_from_objfile): Include sections
10035 only if they are SEC_ALLOC or SEC_LOAD.
10036
d182d057
L
100372010-02-17 H.J. Lu <hongjiu.lu@intel.com>
10038
10039 PR shlibs/11293
10040 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
10041 of ULONGEST for address size.
10042
4eef138c
TT
100432010-02-17 Tom Tromey <tromey@redhat.com>
10044
10045 * NEWS: Add C++ improvements section.
10046
548a926a
UW
100472010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
10048
10049 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10050 PyThreadState_Swap): Avoid "statement with no effect" warning.
10051
ad3a0e5b
JK
100522010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10053
10054 * solib-svr4.c (enable_break <target_auxv_search>): New variable
10055 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
10056
243e2c5d 100572010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 10058 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
10059
10060 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10061 gdb_assert. Fix info->size for SIG prologue.
10062
275f2e57
DJ
100632010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10064
10065 * infcmd.c (show_inferior_tty_command): Check for NULL.
10066 Correct output message.
10067
791dfb64
DJ
100682010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10069
10070 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10071 FUNCTION contains parentheses. Improve removal of a trailing
10072 single quote.
10073
14d1346b
DJ
100742010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10075
10076 * gcore.c (do_bfd_delete_cleanup): New function.
10077 (gcore_command): Use it. Discard the cleanup after success.
10078 (gcore_copy_callback): Delete dead code.
10079
e76ab67f
DJ
100802010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10081
10082 * symfile.c (addr_info_make_relative): Always use
10083 find_lowest_section.
10084
71dee663
SW
100852010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10086
10087 * NEWS: Added entry for namespace fixes.
10088
a9854bd5
TT
100892010-02-15 Tom Tromey <tromey@redhat.com>
10090
10091 * dwarf2read.c (guess_structure_name): Allocate name on the
10092 objfile obstack.
10093
fd9e29b5
TT
100942010-02-15 Tom Tromey <tromey@redhat.com>
10095
10096 * c-typeprint.c (c_type_print_base): Reverse order of test.
10097
4e1fc9c9
JK
100982010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10099
10100 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10101 initialize it from ELF BFD. Extend the prelink condition by it.
10102
74164c56
JK
101032010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10104
10105 * defs.h (parse_pid_to_attach): New.
10106 * utils.c (parse_pid_to_attach): New.
10107 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10108 * gnu-nat.c (gnu_attach): Likewise.
10109 * nto-procfs.c (procfs_attach): Likewise.
10110 * procfs.c (procfs_attach): Likewise.
10111 * windows-nat.c (windows_attach): Likewise.
10112 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10113 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10114 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10115 check.
10116
bf6adea8
MM
101172010-02-14 Masaki Muranaka <monaka@monami-software.com>
10118
10119 * MAINTAINERS: Add myself for write after approval privileges.
10120
28f34a8f
JK
101212010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10122
10123 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10124 block.
10125
701ed6dc
JK
101262010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10127
10128 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10129 only if INFO_VERBOSE.
10130
e5829bee
MS
101312010-02-12 Tomas Holmberg <th@virtutech.com>
10132
10133 * mi/mi-main.c: Added the --reverse flag to the following MI
10134 commands: exec-continue, exec-finish, exec-next, exec-step,
10135 exec-next-instruction, exec-step-instruction. This is to
10136 support reverse execution over the MI interface to gdb.
10137
081dfbf7
PA
101382010-02-12 Pedro Alves <pedro@codesourcery.com>
10139
10140 * tracepoint.c (_initialize_tracepoint): Specify that the address
10141 range of `tfind outsize' is exclusive, and that the address range
10142 of `tfind range' is inclusive, in the commands' help strings.
10143
ecc13e53
JB
101442010-02-12 Joel Brobecker <brobecker@adacore.com>
10145
10146 Spurious "dll not found" error messages on x64-windows.
10147 * windows-nat.c: Add include of complaints.h.
10148 (handle_unload_dll): Change dll-not-found error into a complaint.
10149
15c3d785
PA
101502010-02-12 Pedro Alves <pedro@codesourcery.com>
10151
10152 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10153 bp_tracepoint and bp_fast_tracepoint, not
10154 bp_loc_software_breakpoint.
10155 (update_global_location_list): Tracepoints are never duplicates of
10156 anything.
10157
fd9b8c24
PA
101582010-02-12 Pedro Alves <pedro@codesourcery.com>
10159
10160 * breakpoint.c (break_command_really): Change return type to int.
10161 Return false if no breakpoint was created, true otherwise.
10162 (trace_command): Don't set the tracepoint count if no tracepoint
10163 was created.
10164 (ftrace_command): Ditto.
10165 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10166 created in the breakpoints table.
10167
5c0d192f
JK
101682010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10169 Ulrich Weigand <uweigand@de.ibm.com>
10170
10171 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10172
5d5b640e
PA
101732010-02-11 Pedro Alves <pedro@codesourcery.com>
10174
10175 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10176 the offset value isn't of integral type.
10177
e5a0a904
JK
101782010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10179
10180 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10181 New.
10182
be636754
PA
101832010-02-11 Pedro Alves <pedro@codesourcery.com>
10184
10185 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10186 non-subscriptable types.
10187 * valarith.c (binop_types_user_defined_p): New, abstracted out
10188 from ...
10189 (binop_user_defined_p): ... this.
10190 * value.h (binop_types_user_defined_p): Declare.
10191
10ef8d6a
PA
101922010-02-11 Pedro Alves <pedro@codesourcery.com>
10193
10194 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10195 Merge uploaded TSVs before merging uploaded tracepoints.
10196
b1028c8e
PA
101972010-02-11 Pedro Alves <pedro@codesourcery.com>
10198
10199 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10200
7a93fb82 102012010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 10202
7a93fb82
VP
10203 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10204 whitespace character after a dot in comment.
10205 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10206 Likewise.
10207 (list_args_or_locals): For the 'all' (that is
10208 -stack-list-variables) case, always output list of tuples.
10209 Output 'arg' field if variable is argument.
84d90c10 10210
92981e24
TT
102112010-02-10 Tom Tromey <tromey@redhat.com>
10212
10213 * parser-defs.h (parser_debug): Declare.
10214 * parse.c (_initialize_parse): Install "debug parser" set/show
10215 command.
10216 (parser_debug): New global.
10217 (show_parserdebug): New function.
10218 * c-exp.y (c_parse): Set yydebug.
10219
9fd3625f
L
102202010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10221
10222 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10223 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10224 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10225 i386_mxcsr.
10226 (tdesc_find_type): New.
10227 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10228 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10229
10230 * target-descriptions.h (tdesc_find_type): New.
10231
2fe842e5
MS
102322010-02-10 Michael Snyder <msnyder@vmware.com>
10233
10234 * gdb-gdb.py: Comment fix.
10235
f18b4cab
TG
102362010-02-09 Tristan Gingold <gingold@adacore.com>
10237
10238 * machoread.c (macho_symfile_relocate): New function.
10239 (macho_sym_fns): Use macho_symfile_relocate instead of
10240 default_symfile_relocate.
10241 (macho_oso_data): New type.
10242 (current_oso): New variable.
10243 (macho_add_oso_symfile): Do not compute section_addr_info, but
10244 instead set vma of sections.
10245 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10246 Set and clear current_oso.
10247
31dbc1c5
JB
102482010-02-09 Joel Brobecker <brobecker@adacore.com>
10249
10250 Wrong type description for tagged type parameter.
10251 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10252 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10253 reference to a tagged type.
10254
399f313b
TG
102552010-02-09 Tristan Gingold <gingold@adacore.com>
10256
10257 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10258 brothers of the parent.
10259
714f19d5
TT
102602010-02-08 Tom Tromey <tromey@redhat.com>
10261
10262 PR c++/8017:
10263 * value.h: Update.
10264 * valops.c (search_struct_field): Make 'name' const.
10265 (search_struct_method): Likewise.
10266 (find_method_list): Make 'method' const.
10267 (value_struct_elt): Make 'name' and 'err' const.
10268 (value_find_oload_method_list): Make 'method' const.
10269 (find_overload_match): Make 'name' const.
10270 * eval.c (evaluate_subexp_standard): New locals function,
10271 function_name.
10272 <OP_FUNCALL>: Handle OP_SCOPE specially.
10273
de0a0249
UW
102742010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10275
10276 * infrun.c (handle_inferior_event): Do not look up regcache
10277 for exited processes.
10278
8d95cc3b 102792010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
10280
10281 PR gdb/10728
10282 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 10283 warn if found, and assume length = 1.
83b10087 10284
99903ae3
CM
102852010-02-08 Chris Moller <cmoller@redhat.com>
10286
10287 PR gdb/9067
10288 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 10289 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 10290
e3e9f5a2
PA
102912010-02-08 Pedro Alves <pedro@codesourcery.com>
10292
10293 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10294 resumed LWPs as resumed.
10295 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10296 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10297 of throwing an internal error. If an LWP of a process we're not
10298 waiting for reports a signal, don't force collecting a SIGSTOP,
10299 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10300 go through all LWPs cancelling breakpoints in non-stop mode.
10301 (resume_stopped_resumed_lwps): New.
10302 (linux_nat_wait): Use it.
10303
46763423
L
103042010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10305
10306 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10307 i386/amd64 and i386/amd64-linux.
10308 (i386/i386-expedite): New.
10309 (i386/i386-linux-expedite): Likewise.
10310 (i386/amd64-expedite):Likewise.
10311 (i386/amd64-linux-expedite): Likewise.
10312 ($(outdir)/i386/i386-linux.dat): Likewise.
10313 ($(outdir)/i386/amd64.dat): Likewise.
10314 ($(outdir)/i386/amd64-linux.dat): Likewise.
10315
10316 * features/i386/32bit-core.xml: New.
10317 * features/i386/32bit-linux.xml: Likewise.
10318 * features/i386/32bit-sse.xml: Likewise.
10319 * features/i386/64bit-core.xml: Likewise.
10320 * features/i386/64bit-linux.xml: Likewise.
10321 * features/i386/64bit-sse.xml: Likewise.
10322 * features/i386/i386-linux.xml: Likewise.
10323 * features/i386/i386.xml: Likewise.
10324 * features/i386/amd64-linux.xml: Likewise.
10325 * features/i386/amd64.xml: Likewise.
10326 * features/i386/i386-linux.c: Likewise.
10327 * features/i386/i386.c: Likewise.
10328 * features/i386/amd64-linux.c: Likewise.
10329 * features/i386/amd64.c: Likewise.
10330
82856980
SW
103312010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10332
10333 PR c++/7935:
10334 * cp-support.h: Added char* alias element to using_direct data
10335 struct.
10336 (cp_add_using): Added char* alias argument.
10337 (cp_add_using_directive): Ditto.
10338 * cp-namespace.c: Updated with the above changes.
10339 (cp_lookup_symbol_imports): Check for aliases.
10340 * dwarf2read.c (read_import_statement): Figure out local alias
10341 for the import and pass it on to cp_add_using.
10342 (read_namespace): Pass alias argument to cp_add_using.
10343
d18b8b7a
HZ
103442010-02-05 Hui Zhu <teawater@gmail.com>
10345
10346 * defs.h (gdb_bfd_errmsg): New extern.
10347 * exec.c (exec_file_attach): Change bfd_errmsg to
10348 gdb_bfd_errmsg.
10349 * utils.c (AMBIGUOUS_MESS1): New macro.
10350 (AMBIGUOUS_MESS2): New macro.
10351 (gdb_bfd_errmsg): New function.
10352
48379de6
DE
103532010-02-04 Doug Evans <dje@google.com>
10354
10355 * solib-svr4.c (enable_break): Add comment.
10356
4ee73e90
AG
103572010-02-04 Anthony Green <green@moxielogic.com>
10358
10359 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10360 gracefully.
10361
1a334831
TT
103622010-02-04 Tom Tromey <tromey@redhat.com>
10363
10364 * valops.c (search_struct_field): Account for
10365 value_embedded_offset. Fix check for virtual base past the end of
10366 the object. Use value_copy when making a slice of the value.
10367
1180b2c8
L
103682010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10369
10370 PR tui/9622
10371 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10372 only if gdb_stdout is a tty.
10373
c3f08eb7
L
103742010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10375
10376 * target-descriptions.c: Include "osabi.h".
10377 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10378 OSABI.
10379
2d33f7b8
TG
103802010-02-04 Tristan Gingold <gingold@adacore.com>
10381
10382 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10383 (macho_symtab_read): Adjust calls to macho_add_oso.
10384 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10385 (macho_symfile_read): Adjust call to macho_oso_symfile.
10386 (macho_new_init): Move this function after declarations.
10387 (macho_symfile_init): Ditto.
10388 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10389 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10390
11334b82
VP
103912010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10392
10393 Include MI command in remotelog.
10394
10395 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10396
ff97be06
L
103972010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10398
10399 * remote.c (remote_state): Remove gdbarch.
10400 (init_remote_state): Don't set gdbarch.
10401 (remote_query_supported): Pass target_gdbarch instead of
10402 rs->gdbarch to gdbarch_qsupported.
10403
75cebea9
L
104042010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10405
10406 * gdbarch.sh: Add qsupported.
10407
10408 * gdbarch.c: Regenerated.
10409 * gdbarch.h: Likewise.
10410
10411 * remote.c (remote_state): Add gdbarch.
10412 (init_remote_state): Set gdbarch.
10413 (remote_query_supported): Support gdbarch_qsupported.
10414
c1dec97b
DJ
104152010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10416
10417 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10418 __FreeBSD_kernel_version.
10419
ac8035ab
TG
104202010-02-03 Tristan Gingold <gingold@adacore.com>
10421
10422 * symfile.h (struct sym_fns): Add sym_relocate field.
10423 (default_symfile_relocate): New prototype.
10424 (symfile_relocate_debug_section): First argument is now an objfile.
10425 * symfile.c (default_symfile_relocate): Rename from
10426 symfile_relocate_debug_section, first argument is now an objfile.
10427 (symfile_relocate_debug_section): New function.
10428 * coffread.c (coff_sym_fns): Set sym_relocate field.
10429 * somread.c (som_sym_fns): Ditto.
10430 * mipsread.c (ecoff_sym_fns): Ditto.
10431 * machoread.c (macho_sym_fns): Ditto.
10432 * elfread.c (elf_sym_fns): Ditto.
10433 * dwarf2read.c (dwarf2_read_section): Ditto.
10434 * xcoffread.c (xcoff_sym_fns): Ditto.
10435 * dbxread.c (aout_sym_fns): Ditto.
10436 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10437 (elfstab_build_psymtabs): Ditto.
10438
be52b756
L
104392010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10440
10441 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10442
9c3c02fd
TT
104432010-02-02 Tom Tromey <tromey@redhat.com>
10444
10445 * valops.c (value_cast_structs): Try downcasting using the RTTI
10446 type.
10447
f23f4c59
TT
104482010-02-02 Tom Tromey <tromey@redhat.com>
10449
10450 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10451 (gnuv2_baseclass_offset): Now static.
10452 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10453 * gnu-v2-abi.h: Remove.
10454
0cc2414c
TT
104552010-02-02 Tom Tromey <tromey@redhat.com>
10456
10457 * m2-typeprint.c (m2_record_fields): Don't use
10458 TYPE_DECLARED_TYPE.
10459 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10460 (struct main_type) <flag_declared_class>: New field.
10461 (struct cplus_struct_type) <declared_type>: Remove.
10462 <ntemplate_args>: Move earlier.
10463 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10464 (DECLARED_TYPE_TEMPLATE): Remove.
10465 (TYPE_DECLARED_TYPE): Remove.
10466 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10467 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10468 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10469 TYPE_DECLARED_TYPE.
10470
edf3d5f3
TT
104712010-02-02 Tom Tromey <tromey@redhat.com>
10472
10473 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10474 * valops.c (search_struct_field): Compute nbases after calling
10475 CHECK_TYPEDEF.
10476 (check_field): Call CHECK_TYPEDEF.
10477 * cp-valprint.c (cp_print_value): Pass correct address to
10478 baseclass_offset. Fix check for virtual base past the end of the
10479 object. Don't offset address passed to cp_print_value_fields or
10480 apply_val_pretty_printer.
10481 (cp_print_value_fields): Fix call to val_print.
10482 (cp_print_value_fields_rtti): New function.
10483 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10484 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10485 val_print.
10486 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10487 offset to address.
10488 * language.h (struct language_defn) <la_val_print>: Document.
10489 * c-lang.h (cp_print_value_fields_rtti): Declare.
10490
e4b7f41c
JK
104912010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10492
10493 PR libc/11214:
10494 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10495 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10496 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10497
7618e12b
DJ
104982010-02-01 Michael Matz <matz@suse.de>
10499 Daniel Jacobowitz <dan@codesourcery.com>
10500
e4b7f41c 10501 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
10502 functions use a frame pointer.
10503
b381ea14
JK
105042010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10505
10506 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10507 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10508 * config/djgpp/fnchange.lst: Add translations for
10509 symbol-without-target_section.exp and symbol-without-target_section.c.
10510
0e05dfcb
DJ
105112010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10512
10513 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10514 (remote_breakpoint_for_pc): Correct invalid_p check.
10515 * gdbarch.c: Regenerated.
10516
f9d67f43
DJ
105172010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10518
10519 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10520 arm_pc_is_thumb.
10521 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10522 (extend_buffer_earlier): New function.
10523 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10524 (arm_adjust_breakpoint_address): New function.
10525 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10526
177321bd
DJ
105272010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10528
10529 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10530 (arm_linux_thumb2_le_breakpoint): New constants.
10531 (arm_linux_init_abi): Set thumb2_breakpoint and
10532 thumb2_breakpoint_size.
10533 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10534 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10535 Implement support for single stepping through IT blocks if
10536 a 32-bit Thumb breakpoint instruction is available.
10537 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10538 is available, use it when needed.
10539 (arm_remote_breakpoint_from_pc): New function.
10540 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10541 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10542 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10543
a1dcb23a
DJ
105442010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10545
10546 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10547 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10548 * gdbarch.c, gdbarch.h: Regenerated.
10549 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10550 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10551 gdbarch_remote_breakpoint_from_pc.
10552
2b009048
DJ
105532010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10554
10555 * infrun.c (prepare_to_proceed): Handle other signals which might
10556 match a breakpoint.
10557 (handle_inferior_event): Move the check for unusual breakpoint
10558 signals earlier.
10559
e4e2711a
JB
105602010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10561
10562 amd64 - function returning record with field straddling 2 registers.
10563 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10564 a record of length <= 16 in which a field straddles the two
10565 eightbytes.
10566
cba6fab5
JB
105672010-01-29 Joel Brobecker <brobecker@adacore.com>
10568
10569 Implement return values on amd64-windows.
10570 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10571 (amd64_windows_return_value): New function.
10572 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10573 amd64_windows_return_value.
10574
3af6ddfe
JB
105752010-01-29 Joel Brobecker <brobecker@adacore.com>
10576
10577 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 10578 parameter registers.
3af6ddfe
JB
10579 * i386-tdep.h (struct gdbarch_tdep): Add new field
10580 integer_param_regs_saved_in_caller_frame.
10581 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10582 tdep->integer_param_regs_saved_in_caller_frame to 1.
10583 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10584 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10585
80d19a06
JB
105862010-01-29 Joel Brobecker <brobecker@adacore.com>
10587
10588 amd64-windows: memory args passed by pointer during function calls.
10589 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10590 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10591 where tdep->memory_args_by_pointer is non-zero.
10592 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10593 tdep->memory_args_by_pointer to 1.
10594
ba581dc1
JB
105952010-01-29 Joel Brobecker <brobecker@adacore.com>
10596
4966b6c2 10597 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
10598 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10599 amd64-tdep.c.
10600 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10601 call_dummy_integer_regs, and classify.
10602 * amd64-tdep.h (amd64_classify): Add declaration.
10603 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10604 (amd64_reg_class): Delete, moved to i386-tdep.h.
10605 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10606 Replace call to amd64_classify by call to tdep->classify.
10607 (amd64_push_arguments): Get the list of registers to use for
10608 passing integer parameters from the gdbarch tdep structure,
10609 rather than using a hardcoded one. Replace calls to amd64_classify
10610 by calls to tdep->classify.
10611 (amd64_push_dummy_call): Get the register number used for
10612 the "hidden" argument from tdep->call_dummy_integer_regs.
10613 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10614 and tdep->call_dummy_integer_regs. Set tdep->classify.
10615 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10616 (amd64_windows_dummy_call_integer_regs): New static global.
10617 (amd64_windows_classify): New function.
10618 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10619 tdep->call_dummy_integer_regs and tdep->classify.
10620
d37346f0
DJ
106212010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10622
10623 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10624 for the new regcache. All callers updated.
10625 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10626 (get_thread_arch_regcache): Do not set aspace here.
10627 * regcache.h (regcache_xmalloc): Update declaration.
10628
10629 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10630 regcache_xmalloc updated.
10631
7434dadd
JB
106322010-01-28 Joel Brobecker <brobecker@adacore.com>
10633
10634 Another -Wunused-function error in procfs.c (sparc-solaris)
10635 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10636 Only define if SYS_syssgi is defined.
10637 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10638 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10639 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10640 is itself defined.
10641
16d905e2
CF
106422010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10643
10644 * windows-nat.c (windows_initialization_done): New variable.
10645 (get_windows_debug_event): Issue error when process dies before
10646 completely initializing.
10647 (do_initial_windows_stuff): Set flag to indicate when we are done with
10648 the initial steps of attaching to the child.
10649
cd55e50f
JK
106502010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10651
10652 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10653
99cc78aa
DE
106542010-01-27 Doug Evans <dje@google.com>
10655
4c7dcb84
DE
10656 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10657
99cc78aa
DE
10658 * breakpoint.c (bpstat_stop_status): Delete useless code.
10659
52334bf5
JK
106602010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10661
10662 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10663 objfile via SYMBOL_SYMTAB.
10664
708ead4e
TT
106652010-01-26 Tom Tromey <tromey@redhat.com>
10666
10667 PR exp/7643:
10668 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10669 coerce_array on result.
10670
b14e635e
SW
106712010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10672
10673 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10674 search_parent argument.
10675 (cp_add_using): Initialize 'searched' field.
10676 (reset_directive_searched): New function.
10677 * cp-support.h: Add 'searched' field to using_direct struct.
10678 (cp_lookup_symbol_imports): Ditto.
10679 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10680 Perform recursive search.
10681 Implement non parent search.
10682 * valops.c (value_maybe_namespace_elt): Updated.
10683
8540c487
SW
106842010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10685
10686 PR gdb/10929:
10687 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10688 scopes which contain using directives even if they contain no
10689 declarations.
10690 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10691 la_lookup_symbol_nonlocal.
10692 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10693 cp_lookup_symbol_namespace.
10694 (cp_lookup_symbol_namespace): Perform an import lookup at every
10695 block level.
10696 (cp_lookup_symbol_imports): New function.
10697 (cp_lookup_symbol_in_namespace): New function.
10698
421d5d99
TT
106992010-01-25 Tom Tromey <tromey@redhat.com>
10700
10701 PR gdb/11049:
10702 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10703 result.
10704
6bcc772d
RO
107052010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10706
10707 * configure.ac: Only use host_os part when disabling TUI on osf.
10708 Use test to check variables, prefix strings with x.
10709 * configure: Regenerate.
10710
10711 * solib-osf.c (osf_current_sos): Initialize tail.
10712
1c1238a5
TG
107132010-01-25 gingold <gingold@adacore.com>
10714
c8d5aac9
L
10715 * windows-nat.c (windows_continue): Use %x to print thread id.
10716 (get_windows_debug_event): Ditto.
1c1238a5 10717
0b92b5bb
TT
107182010-01-22 Tom Tromey <tromey@redhat.com>
10719
10720 PR symtab/11199:
10721 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10722 type and arguments. Use smash_to_methodptr_type.
10723 (read_structure_type): Call quirk_gcc_member_function_pointer
10724 later.
10725 * gdbtypes.h (smash_to_methodptr_type): Declare.
10726 * gdbtypes.c (smash_to_methodptr_type): New function.
10727 (lookup_methodptr_type): Use it.
10728
0d5392b8
TT
107292010-01-21 Tom Tromey <tromey@redhat.com>
10730
10731 PR symtab/11198:
10732 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10733 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10734 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10735 (glibc_skip_solib_resolver): Use
10736 lookup_minimal_symbol_and_objfile.
10737
e6d088ec
KT
107382010-01-21 Kai Tietz <kai.tietz@onevision.com>
10739
10740 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10741 WIN32 targets.
10742
b966cb8a
TT
107432010-01-20 Tom Tromey <tromey@redhat.com>
10744
10745 PR backtrace/10770:
10746 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10747 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10748 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10749 dwarf_stack_values, not CORE_ADDRs.
10750 (execute_stack_op): Change DW_OP_div and comparison operators to
10751 use signed operands.
10752
3f81c18a
VP
107532010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10754
10755 Per-inferior args and tty and environment.
10756
10757 * infcmd.c (inferior_args): Rename to ...
10758 (inferior_args_scratch): ... this.
10759 (inferior_io_terminal): Rename to ...
10760 (inferior_io_terminal_scratch): ... this.
10761 (inferior_argc, inferior_argv): Remove.
10762 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10763 inside current_inferior().
10764 (set_inferior_tty_command, show_inferior_tty_command): New.
10765 (get_inferior_args, set_inferior_args): Store inside
10766 current_inferior().
10767 (notice_args_set): Likewise and rename to...
10768 (set_args_command): ... this.
10769 (set_inferior_args_vector): Likewise.
10770 (notice_args_read): Rename to...
10771 (show_args_command): ...new.
10772 (tty_command): Remove.
10773 (run_command_1): Don't free old args, as they are freed by
10774 set_inferior_arg now.
10775 (run_no_args_command): Likewise.
10776 (inferior_environ): Remove.
10777 (run_command_1): Use environment of the current inferior.
10778 (environment_info, set_environment_command)
10779 (unset_environment_command, path_info, path_command): Likewise.
10780 (_initialize_infcmd): Adjust for function and variable renames.
10781 Do not init inferior_environ.
10782 * inferior.h (set_inferior_arg): Adjust prototype.
10783 (struct inferior): New fields args, argc, argv, terminal, environment.
10784 (inferior_environ): Remove declaration.
10785 * inferior.c (free_inferior): Free new fields.
10786 (add_inferior_silent): Initialize 'environment' field.
10787 * main.c (captured_main): Set arguments only after the initial
10788 inferior has been created. Set set_inferior_io_terminal,
10789 not tty_command.
10790 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10791 inferior.
10792 (_initialize_mi_cmd_env): Adjust for disappearance of global
10793 inferior_environ.
10794 * solib.c (solib_find): Use environment of the current inferior.
10795
d8b65138
JK
107962010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10797
10798 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10799 HAVE_PYTHON.
10800 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10801
692465f1
JB
108022010-01-20 Joel Brobecker <brobecker@adacore.com>
10803
10804 Get rid of ada-lang.c:function_name_from_pc.
10805 * ada-lang.c: Add "stack.h" #include.
10806 (function_name_from_pc): Delete.
10807 (is_known_support_routine): Replace call to function_name_from_pc
10808 by call to find_frame_funname.
10809 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10810
95519e0e
TT
108112010-01-19 Tom Tromey <tromey@redhat.com>
10812
10813 PR c++/11026:
10814 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10815 objfile obstack.
10816
95c11dc7
TT
108172010-01-19 Tom Tromey <tromey@redhat.com>
10818
10819 * top.c (stop_sig, float_handler, do_nothing): Remove.
10820
a0f49112
JK
108212010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10822
10823 * breakpoint.c (watchpoint_check): Check the call
10824 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10825 Extend the comment.
8d95cc3b 10826 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10827 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10828 watchpoint-cond-gone-stripped.c.
10829
ceeb3d5a
TT
108302010-01-19 Tom Tromey <tromey@redhat.com>
10831
10832 PR c++/8000:
10833 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10834 into parent scope, and enumerator into grandparent scope.
10835
2b71fc8e
JB
108362010-01-19 Joel Brobecker <brobecker@adacore.com>
10837
10838 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10839
03564ed9
JB
108402010-01-19 Joel Brobecker <brobecker@adacore.com>
10841
10842 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10843 i[34567]86-*-solaris2.1[0-9]*.
10844 * configure.tgt: Likewise.
10845
fb2e7cb4
JB
108462010-01-19 Joel Brobecker <brobecker@adacore.com>
10847
10848 * NEWS: Document the source command enhancement allowing it
10849 to load Python scripts. Document the "set/show script-extension"
10850 commands.
10851
1cb5e2a4
JB
108522010-01-19 Joel Brobecker <brobecker@adacore.com>
10853
10854 Add -Wunused-function to compile flags.
10855 * configure.ac: Add -Wunused-function to build_warnings.
10856 * configure: Regenerate.
10857
0ec6cd0c
JB
108582010-01-19 Joel Brobecker <brobecker@adacore.com>
10859
10860 "delete" ada-lex.c:input function, not used.
10861 * ada-lex.l: #define YY_NO_INPUT.
10862
b74845da
JB
108632010-01-19 Joel Brobecker <brobecker@adacore.com>
10864
10865 Delete free_named_symtabs and associated cleanup.
10866 * symfile.h (free_named_symtabs): Delete declaration.
10867 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10868 (cashier_psymtab): Comment function out.
10869 Delete declaration.
10870 (free_named_symtabs): Delete.
10871 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10872 * dbxread.c (end_psymtab): Likewise.
10873 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10874 * exec.c (exec_close_1): Ditto.
10875 * xcoffread.c (xcoff_end_psymtab): Likewise.
10876
65c06092
JB
108772010-01-19 Joel Brobecker <brobecker@adacore.com>
10878
10879 * stack.c (print_block_frame_labels): Comment function out.
10880
d5cd6034
JB
108812010-01-19 Joel Brobecker <brobecker@adacore.com>
10882
10883 Delete unused or undefined functions.
10884 * breakpoint.c (ep_parse_optional_filename): Delete.
10885 * dcache.c (dcache_write_line): Remove declaration.
10886 * infrun.c (build_infrun): Remove declaration.
10887 * tracepoint.c (tracepoint_save_command): Remove declaration.
10888 * linux-nat.c (init_lwp_list): Delete. No longer used.
10889 * event-loop.c (check_async_signal_handlers): Delete declaration.
10890 * infrun.c (init_execution_control_state): Delete.
10891 (proceed): Update comment to avoid mentioning
10892 init_execution_control_state.
10893 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10894 * ada-lang.c (ada_to_static_fixed_value): Delete.
10895 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10896 * cp-namespace.c (cp_copy_usings): Delete.
10897 * xml-syscall.c (xml_number_of_syscalls): Delete.
10898 * progspace.c (find_program_space_by_num): Delete.
10899 * inflow.c (handle_sigio): Delete declaration.
10900 * hppa-tdep.c (hppa_alignof): Delete.
10901 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10902 (mipsnbsd_core_osabi_sniffer): Delete.
10903
4e8f195d
TT
109042010-01-18 Tom Tromey <tromey@redhat.com>
10905
10906 PR c++/9680:
10907 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10908 (CONST_CAST): New tokens.
10909 (exp): Add new productions.
10910 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10911 reinterpret_cast.
10912 (is_cast_operator): New function.
10913 (yylex): Handle cast operators specially.
10914 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10915 UNOP_REINTERPRET_CAST>: New cases.
10916 * expprint.c (print_subexp_standard): Likewise.
10917 (op_name_standard): Likewise.
10918 (dump_subexp_body_standard): Likewise.
10919 * parse.c (operator_length_standard): Likewise.
10920 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10921 UNOP_REINTERPRET_CAST.
10922 * gdbtypes.c (class_types_same_p): New function.
10923 (is_ancestor): Use it.
10924 (is_public_ancestor): New function.
10925 (is_unique_ancestor_worker): Likewise.
10926 (is_unique_ancestor): Likewise.
10927 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10928 (is_unique_ancestor): Declare.
10929 * valops.c (value_reinterpret_cast): New function.
10930 (dynamic_cast_check_1): Likewise.
10931 (dynamic_cast_check_2): Likewise.
10932 (value_dynamic_cast): Likewise.
10933 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10934
d9c57d9f
JB
109352010-01-18 Joel Brobecker <brobecker@adacore.com>
10936
10937 Fix build failure when building without Python support.
10938 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10939 is not defined.
10940
f80d3ff2
JB
109412010-01-18 Joel Brobecker <brobecker@adacore.com>
10942
10943 Use XVS field type instead of doing a parallel lookup.
10944 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10945 if it is a reference type instead of doing a type lookup using
10946 the XVS field name.
10947
5bf03f13
JB
109482010-01-18 Joel Brobecker <brobecker@adacore.com>
10949
10950 Trust PAD types instead of using PAD___XVS.
10951 * ada-lang.c (trust_pad_over_xvs): New static variable.
10952 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10953 parallel XVS type, follow the XVS type instead of the PAD type.
10954 (unwrap_value): Make sure that there is no parallel XVE type
10955 before returning the value as is.
10956 (set_ada_list, show_ada_list): New static variables.
10957 (set_ada_command, show_ada_command): New functions.
10958 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10959 Add new "set/show ada trust-PAD-over-XVS" setting.
10960
973817a3
JB
109612010-01-18 Tom Tromey <tromey@redhat.com>
10962 Thiago Jung Bauermann <bauerman@br.ibm.com>
10963
10964 Allow "source" to load python scripts.
10965 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10966 * python/python.c (source_python_script): New function.
10967 * python/python.h (source_python_script): Add declaration.
10968 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10969 (script_ext_off, script_ext_soft, script_ext_strict)
10970 (script_ext_enums, script_ext_mode): New static constants.
10971 (show_script_ext_mode, find_and_open_script): New functions.
10972 (source_script): Enhance to handle Python scripts.
10973 (init_cli_cmds): Add set/show script-extension commands.
10974
98e03262
SS
109752010-01-16 Stan Shebs <stan@codesourcery.com>
10976
10977 * tracepoint.h (struct trace_status): Use unsigned long long
10978 instead of size_t.
10979 * tracepoint.c (trace_status_command): Fix printf directive.
10980 (trace_save_command): Check fwrite returns, fix printf directive.
10981 (trace_filename): New global.
10982 (tfile_open): Set it, check read returns.
10983 (tfile_close): Free trace_filename.
10984 (tfile_get_traceframe_address): Check read returns.
10985 (tfile_trace_find): Ditto.
10986 (tfile_fetch_registers): Ditto.
10987 (tfile_xfer_partial): Ditto.
10988 (tfile_get_trace_state_variable_value): Ditto.
10989
00bf0b85
SS
109902010-01-15 Stan Shebs <stan@codesourcery.com>
10991
10992 Add trace file support.
10993 * tracepoint.h (enum trace_stop_reason): New enum.
10994 (struct trace_status): New struct.
10995 (parse_trace_status): Declare.
10996 (struct uploaded_tp): Move here from remote.c,
10997 add fields for actions.
10998 (struct uploaded_tsv): New struct.
10999 * tracepoint.c (tfile_ops): New target vector.
11000 (trace_fd): New global.
11001 (tfile_open): New function.
11002 (tfile_close): New function.
11003 (tfile_files_info): New function.
11004 (tfile_get_trace_status): New function.
11005 (tfile_get_traceframe_address): New function.
11006 (tfile_trace_find): New function.
11007 (tfile_fetch_registers): New function.
11008 (tfile_xfer_partial): New function.
11009 (tfile_get_trace_state_variable_value): New function.
11010 (init_tfile_ops): New function.
11011 (_initialize_tracepoint): Call it, add tfile target.
11012 (trace_status): New global.
11013 (current_trace_status): New function.
11014 (trace_running_p): Remove, change all users to get from
11015 current_trace_status()->running.
11016 (get_trace_status): Remove.
11017 (trace_status_command): Call target_get_trace_status directly,
11018 report more detail including tracing stop reasons.
11019 (trace_find_command): Always allow tfind on a file.
11020 (trace_find_pc_command): Ditto.
11021 (trace_find_tracepoint_command): Ditto.
11022 (trace_find_line_command): Ditto.
11023 (trace_find_range_command): Ditto.
11024 (trace_find_outside_command): Ditto.
11025 (trace_frames_offset, cur_offset): Declare as off_t.
11026 (trace_regblock_size): Rename from reg_size, update users.
11027 (parse_trace_status): New function.
11028 (tfile_interp_line): New function.
11029 (disconnect_or_stop_tracing): Ensure current trace
11030 status before asking what to do.
11031 (stop_reason_names): New global.
11032 (trace_save_command): New command.
11033 (get_uploaded_tp): Move here from remote.c.
11034 (find_matching_tracepoint): Ditto.
11035 (merge_uploaded_tracepoints): New function.
11036 (parse_trace_status): Use stop_reason_names.
11037 (_initialize_tracepoint): Define tsave command.
11038 * target.h (target_ops): New fields to_save_trace_data,
11039 to_upload_tracepoints, to_upload_trace_state_variables,
11040 to_get_raw_trace_data, change to_get_trace_status
11041 to take a pointer to a status struct.
11042 (target_save_trace_data): New macro.
11043 (target_upload_tracepoints): New macro.
11044 (target_upload_trace_state_variables): New macro.
11045 (target_get_raw_trace_data): New macro.
11046 * target.c (update_current_target): Add new methods, change
11047 signature of to_get_trace_status.
11048 * remote.c (hex2bin): Make globally visible.
11049 (bin2hex): Ditto.
11050 (remote_download_trace_state_variable): Download name also.
11051 (remote_get_trace_status): Update parameter, use
11052 parse_trace_status.
11053 (remote_save_trace_data): New function.
11054 (remote_upload_tracepoints): New function.
11055 (remote_upload_trace_state_variables): New function.
11056 (remote_get_raw_trace_data): New function.
11057 (remote_start_remote): Use them.
11058 (_initialize_remote_ops): Add operations.
11059 * ax-gdb.c: Include breakpoint.h.
11060 * breakpoint.c (create_tracepoint_from_upload): Use
11061 break_command_really, return tracepoint, warn about unimplemented
11062 parts.
11063 * NEWS: Mention trace file addition.
11064
d904de5b
JK
110652010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11066
11067 Fix compilation warning on gcc-3.4.
11068 * exec.c (print_section_info): Move the `displacement' variable
11069 initialization to its declaration.
11070
64aa9731
JK
110712010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11072
11073 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11074 comparison.
11075
ca1f5def 110762010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
11077
11078 "info tasks" broken by typedefs in ATCB type definitions.
11079 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11080 ada_check_typedef before retrieving the length of the type for
11081 regular fields.
11082
12ab9e09
JB
110832010-01-15 Joel Brobecker <brobecker@adacore.com>
11084
11085 Do not use name-based lookup for unconstrained packed arrays.
11086 * ada-lang.c (find_parallel_type_by_descriptive_type):
11087 Limit the fallback to name-based lookups to the case where
11088 the type is a constrained packed array.
11089
c389c3dc
JB
110902010-01-15 Joel Brobecker <brobecker@adacore.com>
11091
11092 Enhance gdb-gdb.py to handle main_type.type_specific.
11093 * gdb-gdb.py: Print the type-specific part of struct main_type.
11094
7991dee7
JK
110952010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11096
11097 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11098 * configure: Regenerate.
11099 * config.in: Regenerate.
11100 * utils.c: Include sys/resource.h.
11101 (dump_core, can_dump_core): New.
11102 (internal_vproblem): Update the comment. Check can_dump_core while
11103 setting dump_core_p. Replace two abort calls by dump_core calls.
11104
93c26624
JK
111052010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11106 Eli Zaretskii <eliz@gnu.org>
11107
11108 * NEWS: Document the PIE support.
11109
55235ad7
JK
111102010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11113 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11114
41752192
JK
111152010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11116
11117 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11118 Replace exec_entry_point call by bfd_get_start_address.
11119
9f2982ff
JK
111202010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11121
11122 Support Valgrind attachments broken by the PIE support.
11123 * auxv.c: Include gdbcore.h.
11124 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11125 parameters ops, object and annex. Remove their assertions.
11126 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11127 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11128 (memory_xfer_auxv): ... here.
11129 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11130 memory_xfer_auxv.
11131 * procfs.c (procfs_xfer_partial): Likewise.
11132 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11133 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11134 (svr4_solib_create_inferior_hook): Conditionalize the
11135 svr4_relocate_main_executable call.
11136
61f0d762
JK
111372010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11138
11139 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11140 target_section. Find SECT in current_target_sections, gdb_assert it.
11141 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11142 New variable abfd.
11143 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11144 of separate debug info file.
11145
51bee8e9
JK
111462010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11147
11148 Support PIEs with no symfile_objfile.
11149 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11150 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11151
b8040f19
JK
111522010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11153
11154 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11155 code part to ...
11156 (svr4_static_exec_displacement): ... a new function.
11157 (svr4_exec_displacement): New function.
11158 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11159 new_offsets using alloca now. Remove variable old_chain and changed.
11160 Call objfile_relocate unconditionally now.
11161
eb90ce83
DE
111622010-01-14 Doug Evans <dje@google.com>
11163
11164 * gdbtypes.c (arch_flags_type): Fix comment.
11165 * gdbtypes.h (arch_composite_type): Fix comment.
11166
bdfed3bc
TG
111672009-01-14 Tristan Gingold <gingold@adacore.com>
11168
11169 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11170 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11171 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11172 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11173 macho_add_oso_symfile.
11174 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11175
1596ad23
JB
111762010-01-14 Joel Brobecker <brobecker@adacore.com>
11177
11178 Tru64: Dead threads are never deleted.
11179 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11180 (dec_thread_count_gdb_threads): Fix counter increment.
11181 (dec_thread_add_gdb_thread): Fix *listp increment.
11182 (resync_thread_list): Fix bug in deletion of dead threads that
11183 caused all threads to be deleted, instead of just the dead ones.
11184
be759fcf
PM
111852010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11186
11187 PR python/10705
11188
11189 * python/python-internal.h: Add lazy_string_object_type
11190 definition.
11191 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11192 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11193 * python/py-value.c (valpy_lazy_string): New function.
11194 (convert_value_from_python): Add lazy string conversion.
11195 * python/py-prettyprint.c (pretty_print_one_value): Check if
11196 return is also a lazy string.
11197 (print_string_repr): Add lazy string printing branch.
11198 (print_children): Likewise.
11199 * python/py-lazy-string.c: New file. Implement lazy strings.
11200 * python/python.c (_initialize_python): Call
11201 gdbpy_initialize_lazy_string.
11202 * varobj.c (value_get_print_value): Add lazy string printing
11203 branch. Account for encoding.
11204 * c-lang.c (c_printstr): Account for new encoding argument. If
11205 encoding is NULL, find encoding suited for type, otherwise use
11206 user encoding.
11207 * language.h (language_defn): Add encoding argument.
11208 (LA_PRINT_STRING): Likewise.
11209 * language.c (unk_lang_printstr): Update to reflect new encoding
11210 argument to language_defn.
11211 * ada-lang.h (ada_printstr): Likewise.
11212 * c-lang.h (c_printstr): Likewise.
11213 * p-lang.h (pascal_printstr);
11214 * f-lang.c (f_printstr): Likewise.
11215 * m2-lang.c (m2_printstr): Likewise.
11216 * objc-lang.c (objc_printstr): Likewise.
11217 * p-lang.c (pascal_printstr): Likewise.
11218 * scm-lang.c (scm_printstr): Likewise.
11219 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11220 encoding argument.
11221 * ada-valprint.c (ada_printstr): Likewise.
11222 * f-valprint.c (f_val_print): Likewise
11223 * m2-valprint.c (m2_val_print): Likewise.
11224 * p-valprint.c (pascal_val_print): Likewise.
11225 * expprint.c (print_subexp_standard): Likewise.
11226 * valprint.c (val_print_string): Likewise.
11227 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11228 (SUBDIR_PYTHON_SRCS): Likewise.
11229 (py-lazy-string.o): New rule.
11230
1fe72117 112312010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
11232
11233 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11234 uninitialized" warning from gcc on local `tree'.
11235
dc146f7c
VP
112362010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11237
11238 Implement core awareness.
11239
11240 * bcache.c (compare_ints): Remove
11241 (print_percentage): Use compare_positive_ints.
11242 * defs.h (compare_positive_ints): Declare.
11243 * linux-nat.h (struct lin_lwp): New field core.
11244 (linux_nat_core_of_thread_1): Declare.
11245 * linux-nat.c (add_lwp): Init the 'core' field.
11246 (linux_nat_wait_1): Record the core.
11247 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11248 (linux_nat_add_target): Register the above.
11249 * linux-thread-db.c (update_thread_core): New.
11250 (thread_db_find_new_threads): Update core information for
11251 every thread.
11252 * remote.c (struct private_thread_info): New.
11253 (free_private_thread_info, demand_private_info): New.
11254 (PACKET_qXfer_threads, use_osdata_threads): New.
11255 (struct thread_item, threads_parsing_context
11256 (start_thread, end_thread, thread_attributes)
11257 (thread_children, threads_children, threads_elements): New.
11258 (remote_threads_info): Try qXfer:threads before anything
11259 else.
11260 (remote_protocol_packets): Register qXfer:threads.
11261 (remote_open_1): Init use_osdata_threads.
11262 (struct stop_reply): New field 'core'.
11263 (remote_parse_stop_reply): Parse core number.
11264 (process_stop_reply): Record core number.
11265 (remote_xfer_partial): Handle qXfer:threads.
11266 (remote_core_of_thread): New.
11267 (init_remote_ops): Register remote_core_of_thread.
11268 (_initialize_remote): Register qXfer:read.
11269 * target.c (target_core_of_thread): New
11270 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11271 (struct target_ops): New field to_core_of_threads.
11272 (target_core_of_thread): Declare.
11273 * gdbthread.h (struct thread_info): New field private_dtor.
11274 * thread.c (print_thread_info): Report the core.
11275 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11276 * utils.c (compare_positive_ints): New.
11277 * features/threads.dtd: New.
11278 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11279 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11280 (do_nothing, free_vector_of_osdata_items)
11281 (splay_tree_int_comparator, free_splay_tree): New.
11282 (print_one_inferior_data): Implemented printing of selected
11283 inferiors. Collect and print cores.
11284 (output_cores): New.
11285 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11286 thread groups together with --available.
11287
d30c5336
JK
112882010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11289
11290 * configure: Regenerate (for _STRUCTURED_PROC).
11291
02893727
JB
112922010-01-12 Joel Brobecker <brobecker@adacore.com>
11293
11294 Delete dead function.
11295 * ada-lang.c (extract_string): Delete. No longer used.
11296
46ed2d6f
JB
112972010-01-12 Joel Brobecker <brobecker@adacore.com>
11298
11299 Fix -Wunused warning in dec-thread.c.
11300 * dec-thread.c (dec_thread_count_gdb_threads)
11301 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11302
606b8d1a
JB
113032010-01-12 Joel Brobecker <brobecker@adacore.com>
11304
11305 * ada-valprint.c (ada_print_floating): Remove trailing space.
11306
b4ba55a1
JB
113072010-01-12 Joel Brobecker <brobecker@adacore.com>
11308
11309 Add support for DW_AT_GNAT_descriptive_type.
11310 * gdbtypes.h (enum type_specific_kind): New enum.
11311 (struct main_type) [type_specific_field]: New component.
11312 [type_specific]: Add new component "gnat_stuff".
11313 (struct gnat_aux_type): New type.
11314 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11315 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11316 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11317 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11318 (TYPE_SPECIFIC_FIELD): New macros.
11319 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11320 type does not hold any cplus-specific data.
11321 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11322 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11323 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11324 cplus-specific data.
11325 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11326 Set new component TYPE_SPECIFIC_FIELD (type).
11327 (gnat_aux_default): New constant.
11328 (allocate_gnat_aux_type): New function.
11329 (init_type): Add initialization the type-specific stuff for
11330 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11331 (print_gnat_stuff): New function.
11332 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11333 specific data. Adjust code that prints the contents of the
11334 type-specific union using the TYPE_SPECIFIC_FIELD value.
11335 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11336 the type cplus stuff for Ada types.
11337 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11338 Error out if these routines are called with an Ada type.
11339 (read_structure_type, read_array_type, read_subrange_type):
11340 Add call to set_descriptive_type.
11341 (set_die_type): Initialize the gnat-specific data if necessary.
11342 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11343 New functions.
11344 * ada-lang.c (decode_constrained_packed_array_type): Use
11345 decode_constrained_packed_array_type instead of doing a standard
11346 lookup to locate a parallel type.
11347 (find_parallel_type_by_descriptive_type): New function.
11348 (ada_find_parallel_type_with_name): New function.
11349 (ada_find_parallel_type): Reimplement using
11350 ada_find_parallel_type_with_name.
11351 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11352 to check if type has a cplus stuff.
11353 * linespec.c (total_number_of_methods): Likewise.
11354 * mdebugread.c (new_type): Likewise.
11355
b0f02ee9
JK
113562010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11357
11358 * NEWS: Document the 0b binary number prefix parsing.
11359
b260e109
JK
113602010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11361
11362 * objfiles.c (objfile_relocate1): Change the return type to int.
11363 Describe the new return value. Return non-zero if data changed.
11364 (objfile_relocate): New variable changed. Set it. Call
11365 breakpoint_re_set depending on CHANGED.
11366
b5cfddf5
JK
113672010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11368
11369 Implement binary numbers parsing.
11370 * c-exp.y (parse_number): New case 'b' and 'B'.
11371
e0ae4240
JK
113722010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11373 Tristan Gingold <gingold@adacore.com>
11374
11375 * solib.c (info_sharedlibrary_command): Replace
11376 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11377 objfile_has_symbols.
11378
6e0e5977
JB
113792010-01-10 Joel Brobecker <brobecker@adacore.com>
11380
11381 * NEWS: Document the improvements made to the mips-irix port.
11382
7348c5e1
JB
113832010-01-09 Joel Brobecker <brobecker@adacore.com>
11384
11385 Fix the documentation of valprint.c:value_print.
11386 * valprint.c (value_print): Update the function description to
11387 mention that the syntax of the output follows the current_language,
11388 not necessarily C.
11389
567995e1
JK
113902010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11391
11392 Fix displacement of separate debug info files.
11393 * objfiles.c (objfile_relocate): Rename to ...
11394 (objfile_relocate1): ... here and make it static. Extend the comment.
11395 (objfile_relocate): New function.
11396 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11397 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11398 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11399 allocated using alloca.
11400 * symfile.c (copy_section_addr_info): Remove.
11401 (build_section_addr_info_from_objfile): Make it global. New variables
11402 addr_bit and mask, use them.
11403 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11404 (copy_section_addr_info): Remove.
11405
6d8eadbd
JB
114062010-01-09 Joel Brobecker <brobecker@adacore.com>
11407
11408 Signal unwinder for mips-irix N32.
11409 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11410 tramp-frame.h.
11411 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11412 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
11413 (SIGCONTEXT_LO_OFF): New macros.
11414 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
11415 (mips_irix_n32_tramp_frame): New static constant.
11416 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11417
27087a3d
JB
114182010-01-09 Joel Brobecker <brobecker@adacore.com>
11419
11420 Breakpoint in shared library does not work on mips-irix.
11421 * procfs.c: #include "observer.h".
11422 (procfs_inferior_created): New function, moving here the code
11423 which unsets the syssgi syscall-exit notifications.
11424 (procfs_create_inferior): Remove the code which unsets the syssgi
11425 syscall-exit notifications. It is too early to do this here.
11426 (_initialize_procfs): Attach the procfs_inferior_created observer.
11427
f08877ba
JB
114282010-01-09 Joel Brobecker <brobecker@adacore.com>
11429
11430 Wrong return convention for arrays (mips-irix).
11431 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11432 128 bits or smaller are returned the same way as structs
11433 and unions of the the same size.
11434
e4b97d48
JB
114352010-01-09 Joel Brobecker <brobecker@adacore.com>
11436
11437 Cannot set the PC on mips-irix.
11438 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11439 register number, no the cooked one.
11440
11377e68
JB
114412010-01-09 Joel Brobecker <brobecker@adacore.com>
11442
11443 Error while loading core file on mips-irix.
11444 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11445 if debugging from a core file.
11446
b2391021
JB
114472010-01-09 Joel Brobecker <brobecker@adacore.com>
11448
11449 GDB hangs when attaching to process on mips-irix.
11450 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11451 attaching to a process.
11452
f2ec0ecf
JB
114532010-01-09 Joel Brobecker <brobecker@adacore.com>
11454
11455 Use the correct breakpoint instruction on mips-irix.
11456 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11457 containing the correct breakpoint instruction to use on mips-irix.
11458 Use it when the osabi is GDB_OSABI_IRIX.
11459
3c95f01c
JB
114602010-01-09 Joel Brobecker <brobecker@adacore.com>
11461
11462 -Wunused warning in procfs.c (mips-irix only).
11463 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11464 throughout instead of using praddset and prdelset respectively.
11465
4b7703ad
JB
114662010-01-09 Joel Brobecker <brobecker@adacore.com>
11467
11468 GDB crash while stepping into function.
11469 * infrun.c (handle_inferior_event): Refetch the current frame
11470 after handling what.main_action, in case that pointer became
11471 dangling.
11472
12c89474
JB
114732010-01-09 Joel Brobecker <brobecker@adacore.com>
11474
11475 Fix build failure of solaris-hosted cross debuggers.
11476 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11477
1a3fd262 114782010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
11479
11480 Fix build failure on sparc-solaris.
11481 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11482
75242ef4
JK
114832010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11484
11485 Move some symfile code into subroutines.
11486 * symfile.h (relative_addr_info_to_section_offsets)
11487 (addr_info_make_relative): New prototypes.
11488 * symfile.c (default_symfile_offsets): Move a part to ...
11489 (relative_addr_info_to_section_offsets): ... this new function.
11490 (default_symfile_offsets): Call it.
11491 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11492 this part to ...
11493 (addr_info_make_relative): ... this new function.
11494
268a4a75
JK
114952010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11496
11497 Add from_tty to solib_create_inferior_hook.
11498 * infcmd.c (post_create_inferior): Move solib_add after
11499 solib_create_inferior_hook. Pass from_tty to
11500 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11501 0 from_tty and comment why.
11502 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11503 * linux-nat.c (linux_child_follow_fork): Likewise.
11504 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11505 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11506 from_tty.
11507 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11508 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11509 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11510 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11511 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11512 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11513 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11514 Pass it to svr4_so_ops.solib_create_inferior_hook.
11515 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11516 from_tty.
11517 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11518 solib_add.
11519 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11520 enable_break.
11521 * solib-target.c (solib_target_solib_create_inferior_hook): New
11522 parameter from_tty.
11523 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11524 it to ops->solib_create_inferior_hook.
11525 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11526 Move solib_add after solib_create_inferior_hook, call it now with
11527 from_tty as 0. New comment there.
11528 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11529 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11530 Likewise.
11531
cf00dfa7
VP
115322010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11533
11534 Fix multiexec race.
11535 * infrun.c (handle_inferior_event): Use get_thread_regcache
11536 with events ptid, not get_current_regcache.
11537
f91e5ac3
JB
115382009-01-08 Joel Brobecker <brobecker@adacore.com>
11539
11540 GDB crash with empty executable name (MinGW).
11541 * source.c (openp): Add assert that parameter string is not NULL.
11542 if parameter string is an empty string, then return with a failure
11543 immediately.
11544
92b9ce5b
JB
115452009-01-08 Joel Brobecker <brobecker@adacore.com>
11546
11547 Get rid of support for VAX Floats.
11548 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11549 (ada_vax_float_print_function): Delete.
11550 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11551 (ada_vax_float_print_function): Delete.
11552 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11553 (ada_print_type): Remove support for VAX floats.
11554 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11555
268a4a75 115562010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
11557
11558 * stabsread.c (read_args): Handle zero arguments.
11559
f0f20949
JB
115602009-01-08 Joel Brobecker <brobecker@adacore.com>
11561
11562 Cannot find in-tree libiconv.a after reconfigure.
11563 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11564 that we can use, then cache the path to this archive.
11565 * configure: Regenerate.
11566
6b6218c5
SS
115672010-01-07 Stan Shebs <stan@codesourcery.com>
11568
35b1e5cc
SS
11569 Make tracepoint operations go through target vector.
11570 * target.h (enum trace_find_type): New enum.
11571 (struct target_ops): New fields to_trace_init,
11572 to_download_tracepoint, to_download_trace_state_variable,
11573 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11574 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11575 to_set_disconnected_tracing.
11576 (target_trace_init): New macro.
11577 (target_download_tracepoint): New macro.
11578 (target_download_trace_state_variable): New macro.
11579 (target_trace_start): New macro.
11580 (target_trace_set_readonly_regions): New macro.
11581 (target_get_trace_status): New macro.
11582 (target_trace_stop): New macro.
11583 (target_trace_find): New macro.
11584 (target_get_trace_state_variable_value): New macro.
11585 (target_set_disconnected_tracing): New macro.
11586 * target.c (update_current_target): Inherit and set defaults for
11587 tracepoint operations.
11588 * tracepoint.c (default_collect): Make globally visible.
11589 (target_is_remote): Remove, along with all calls.
11590 (tvariables_info): Call target_get_trace_state_variable_value.
11591 (remote_set_transparent_ranges): Remove.
11592 (trace_start_command): Call target_trace_init,
11593 target_download_tracepoint, etc.
11594 (download_tracepoint): Remove.
11595 (trace_stop_command): Simplify.
11596 (stop_tracing): Call target_trace_stop.
11597 (get_trace_status): Call target_get_trace_status.
11598 (trace_status_command): Add case for targets that cannot trace.
11599 (finish_tfind_command): Change to take numerical arguments, call
11600 target_trace_find.
11601 (trace_find_command): Update call to finish_tfind_command.
11602 (trace_find_pc_command): Ditto.
11603 (trace_find_tracepoint_command): Ditto.
11604 (trace_find_line_command): Ditto.
11605 (trace_find_range_command): Ditto.
11606 (trace_find_outside_command): Ditto.
11607 (set_disconnected_tracing_value): Call
11608 target_set_disconnected_tracing.
11609 * remote.c: Add protocol encoding bits from tracepoint.c.
11610 (trace_error): Move from tracepoint.c.
11611 (remote_get_noisy_reply): Ditto.
11612 (free_actions_list_cleanup_wrapper): Ditto.
11613 (free_actions_list): Ditto.
11614 (remote_trace_init): New function.
11615 (remote_download_tracepoint): New function.
11616 (remote_download_trace_state_variable): New function.
11617 (remote_trace_set_readonly_regions): New function.
11618 (remote_trace_start): New function.
11619 (remote_get_trace_status): New function.
11620 (remote_trace_stop): New function.
11621 (remote_trace_find): New function.
11622 (remote_download_trace_state_variable): New function.
11623 (remote_set_disconnected_tracing): New function.
11624 (init_remote_ops): Add tracepoint operations.
11625
6b6218c5
SS
11626 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11627
089b4803
TG
116282010-01-07 Tristan Gingold <gingold@adacore.com>
11629
11630 * symfile.c (build_section_addr_info_from_objfile): New function.
11631 (symbol_file_add_separate): Don't use offsets from objfile but
11632 built an addr info.
11633
d5551862
SS
116342010-01-06 Stan Shebs <stan@codesourcery.com>
11635
11636 Support disconnected tracing.
11637 * infcmd.c (detach_command): Ask whether to stop tracing.
11638 * cli/cli-cmds.c (quit_command): Ditto.
11639 * breakpoint.h (struct breakpoint): New field number_on_target.
11640 * breakpoint.c (create_tracepoint_from_upload): New function.
11641 (get_tracepoint_by_number_on_target): New function.
11642 * remote.c (struct remote): New field disconnected_tracing.
11643 (remote_disconnected_tracing_feature): New function.
11644 (remote_protocol_features): Add DisconnectedTracing.
11645 (struct uploaded_tp): New struct.
11646 (uploaded_tps): New global.
11647 (get_uploaded_tp): New function.
11648 (find_matching_tracepoint): New function.
11649 (remote_get_tracing_state): New function.
11650 (remote_start_remote): Call it.
11651 * tracepoint.c (disconnected_tracing): New global.
11652 (trace_start_command): Initialize number_on_target.
11653 (stop_tracing): New function, split out from...
11654 (trace_stop_command): Call stop_tracing.
11655 (get_trace_status): New function, split out from...
11656 (trace_status_command): Call get_trace_status, add info on
11657 disconnection behavior.
11658 (disconnect_or_stop_tracing): New function.
11659 (finish_tfind_command): Translate from number on target.
11660 (trace_find_tracepoint_command): Translate to number on target.
11661 (send_disconnected_tracing_value): New function.
11662 (set_disconnected_tracing): New function.
11663 (_initialize_tracepoint): Add disconnected-tracing variable.
11664 * NEWS: Mention disconnected tracing.
11665
15d123c9
TG
116662010-01-06 Tristan Gingold <gingold@adacore.com>
11667
11668 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11669 parameter to main_objfile. Iterate on all separate debug objfiles.
11670 * symfile.h (symbol_file_add_separate)
11671 (find_separate_debug_file_by_debuglink): Remove parameter names.
11672 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11673 (reread_symbols): Use free_objfile_separate_debug.
11674 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11675 Adjust comment.
11676 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11677 (free_objfile_separate_debug): New prototypes.
11678 * objfiles.c (objfile_separate_debug_iterate): New function.
11679 (add_separate_debug_objfile, free_objfile_separate_debug): New
11680 functions.
11681 (free_objfile): Use free_objfile_separate_debug. Adjust for
11682 multiple separate debug objfile.
11683 (objfile_has_symbols): Adjust comment. Iterate on all separate
11684 debug objfiles.
11685 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11686 debug objfile.
11687 (lookup_minimal_symbol_text): Ditto.
11688 (lookup_minimal_symbol_by_pc_name): Ditto.
11689 (lookup_minimal_symbol_solib_trampoline): Ditto.
11690 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11691 debug objfiles.
11692
7a697b8d
SS
116932010-01-05 Stan Shebs <stan@codesourcery.com>
11694
11695 Add fast tracepoints.
11696 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11697 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11698 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11699 * breakpoint.c (tracepoint_type): New function.
11700 (ALL_TRACEPOINTS): Use it.
11701 (should_be_inserted): Ditto.
11702 (bpstat_check_location): Ditto.
11703 (print_one_breakpoint_location): Ditto.
11704 (user_settable_breakpoint): Ditto.
11705 (set_breakpoint_location_function): Ditto.
11706 (disable_breakpoints_in_shlibs): Ditto.
11707 (delete_trace_command): Ditto.
11708 (print_it_typical): Add bp_fast_tracepoint case.
11709 (bpstat_what): Ditto.
11710 (print_one_breakpoint_location): Ditto.
11711 (allocate_bp_location): Ditto.
11712 (mention): Ditto.
11713 (breakpoint_re_set_one): Ditto.
11714 (disable_command): Ditto.
11715 (enable_command): Ditto.
11716 (check_fast_tracepoint_sals): New function.
11717 (break_command_really): Call it.
11718 (ftrace_command): New function.
11719 (_initialize_breakpoint): Add ftrace command.
11720 * gdbarch.sh (fast_tracepoint_valid_at): New.
11721 * gdbarch.h, gdbarch.c: Regenerate.
11722 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11723 (i386_gdbarch_init): Use it.
11724 * remote.c (struct remote_state): New field fast_tracepoints.
11725 (PACKET_FastTracepoints): New packet config type.
11726 (remote_fast_tracepoint_feature): New function.
11727 (remote_protocol_features): Add FastTracepoints.
11728 (remote_supports_fast_tracepoints): New function.
11729 (_initialize_remote): Add FastTracepoints.
11730 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11731 * NEWS: Mention fast tracepoints.
11732
737a160e
JB
117332010-01-06 Joel Brobecker <brobecker@adacore.com>
11734
11735 * gdb-gdb.py: New file.
11736
ce6cca6d
MS
117372010-01-05 Michael Snyder <msnyder@vmware.com>
11738
11739 * infrun.c (handle_inferior_event): Fix typo in comment.
11740
0d15807d
JK
117412010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11742
11743 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11744
7803799a
UW
117452010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11746
c8d5aac9 11747 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
11748 and s390x-linux64.
11749 (s390-linux32-expedite): Define.
11750 (s390-linux64-expedite): Define.
11751 (s390x-linux64-expedite): Define.
11752 * features/s390-acr.xml: New file.
11753 * features/s390-fpr.xml: New file.
11754 * features/s390-core32.xml: New file.
11755 * features/s390-core64.xml: New file.
11756 * features/s390x-core64.xml: New file.
11757 * features/s390-linux32.xml: New file.
11758 * features/s390-linux64.xml: New file.
11759 * features/s390x-linux64.xml: New file.
11760 * features/s390-linux32.c: New generated file.
11761 * features/s390-linux64.c: New generated file.
11762 * features/s390x-linux64.c: New generated file.
11763
11764 * regformats/s390-linux32.dat: New generated file.
11765 * regformats/s390-linux64.dat: New generated file.
11766 * regformats/s390x-linux64.dat: New generated file.
11767 * regformats/reg-s390.dat: Remove.
11768 * regformats/reg-s390x.dat: Remove.
11769
11770 * s390-nat.c: Include "auxv.h" and <elf.h>.
11771 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11772 (s390_target_wordsize): New function.
11773 (s390_auxv_parse): Likewise.
11774 (s390_get_hwcap): Likewise.
11775 (s390_read_description): Likewise.
11776 (_initialize_s390_nat): Install s390_auxv_parse and
11777 s390_read_description.
11778
11779 * s390-tdep.c: Include "features/s390-linux32.c",
11780 "features/s390-linux64.c", and "features/s390x-linux64.c".
11781 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11782 (s390_register_call_saved): New function.
11783 (s390_register_name): Remove.
11784 (s390_register_type): Remove.
11785 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11786 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11787 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11788 (s390_pseudo_register_name): New function.
11789 (s390_pseudo_register_type): New function.
11790 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11791 Handle full GPR pesudos and varying pseudo register numbers.
11792 (s390_pseudo_register_write): Likewise
11793 (s390x_pseudo_register_read): Remove.
11794 (s390x_pseudo_register_write): Likewise.
11795 (s390_register_group): Remove.
11796 (s390_pseudo_register_group): New function.
11797 (s390_regmap_gregset): Add GPR upper halves.
11798 (s390x_regmap_gregset): Likewise.
11799 (s390_regmap_fpregset): Likewise.
11800 (s390_regmap_upper): New global variable.
11801 (s390_upper_regset): New global variable.
11802 (s390_upper_regset_sections): New global variable.
11803 (s390_regset_from_core_section): Handle GPR upper halves.
11804 (s390_core_read_description): New function.
11805 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11806 register information. Handle varying pseudo register numbers.
11807 (s390_backchain_frame_unwind_cache): Likewise.
11808 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11809 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11810 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11811 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11812 Handle varying pseudo register numbers.
11813 (s390_unwind_pc): Handle varying pseudo register numbers.
11814 (s390_dwarf2_prev_register): New function.
11815 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11816 register information. Handle varying pseudo register numbers.
11817 Install s390_dwarf2_prev_register to unwind full GPRs.
11818 (s390_gdbarch_init): Handle target descriptions. Assign varying
11819 pseudo register numbers. Install s390_adjust_frame_regnum.
11820 (_initialize_s390_tdep): Initialize target descriptions.
11821
11822 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11823 (S390_NUM_REGS): Redefine to include upper half registers.
11824 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11825 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11826 (tdesc_s390_linux32): Add declaration.
11827 (tdesc_s390_linux64): Likewise.
11828 (tdesc_s390x_linux64): Likewise.
11829
1b1818e4
UW
118302010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11831
11832 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11833 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11834 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11835 (ppc_linux_vmx_regset_sections): Likewise.
11836 (ppc_linux_fp_regset_sections): Likewise.
11837
11838 * corelow.c (get_core_register_section): Constify arguments.
11839 (get_core_registers): Use gdbarch_core_regset_sections instead
11840 of hard-coded platform-specific register section names.
11841
dcbf108f
UW
118422010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11843
11844 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11845 a register, assume the least-significant part is used.
dcbf108f
UW
11846 (write_pieced_value): Likewise.
11847
704e9165
UW
118482010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11849
11850 * printcmd.c: Include "arch-utils.h".
11851 (do_one_display): Re-parse expression if current architecture changed.
11852
c54eabfa
JK
118532010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11854 Joel Brobecker <brobecker@adacore.com>
11855
11856 * gdbtypes.c (check_typedef): New comment on type length.
11857 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11858 comment on type length.
11859 (value_primitive_field): Keep the original TYPE value, new comment.
11860
50cb2941
JK
118612010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11862
11863 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11864 p_start. Change != comparisons to > and < comparisons.
11865
be66db07
JK
118662010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11867
11868 * cli/cli-script.c (process_next_line): Check P2 overrun.
11869
abd775ce
JB
118702009-01-01 Joel Brobecker <brobecker@adacore.com>
11871
11872 Update the copyright hearder to add year 2010 for most GDB files.
11873
6479260d
JB
118742009-01-01 Joel Brobecker <brobecker@adacore.com>
11875
11876 Fix build failure in inf-ptrace.c.
11877 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11878
4a70f654
JB
118792010-01-01 Joel Brobecker <brobecker@adacore.com>
11880
11881 * top.c (print_gdb_version): Update copyright year.
11882
595939de 118832010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11884
11885 Fix break *FUN'address thread NUM.
11886 * ada-lex.l (task): Expand rule to also match the thread keyword.
11887
70575d34
JB
118882010-01-01 Joel Brobecker <brobecker@adacore.com>
11889
11890 Fix break *FUN'address task NUM.
11891 * ada-lex.l (task): New rule.
11892 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11893 been built before using it.
11894
e1e4d4a4 11895For older changes see ChangeLog-2009.
c906108c
SS
11896\f
11897Local Variables:
11898mode: change-log
11899left-margin: 8
11900fill-column: 74
11901version-control: never
57da7796 11902coding: utf-8
c906108c 11903End:
This page took 1.729024 seconds and 4 git commands to generate.