]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* gas/cfi/cfi.exp: Skip cfi-common-6 on hppa64*-*.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2ce7ff1d
MF
12010-12-30 Mike Frysinger <vapier@gentoo.org>
2
3 * bfin-tdep.c (bfin_register_type): Move || to start of line.
4
4a64f543
MS
52010-12-29 Michael Snyder <msnyder@vmware.com>
6
7 * bcache.c: Comment clean-up.
8 * block.c: Ditto.
9 * blockframe.c: Ditto.
10 * breakpoint.c: Ditto.
11 * bsd-kvm.c: Ditto.
12 * buildsym.c: Ditto.
13
eb826dc6
MF
142010-12-29 Jie Zhang <jie.zhang@analog.com>
15
16 * configure.tgt (bfin-*-*): Set build_gdbserver to yes.
17 * NEWS: Mention new Blackfin support.
18 * regformats/reg-bfin.dat: New file.
19
91021223
MF
202010-12-29 Jie Zhang <jie.zhang@analog.com>
21 Mike Frysinger <vapier@gentoo.org>
22
23 * Makefile.in (ALLDEPFILES): Add bfin-linux-tdep.c and bfin-tdep.c.
24 (HFILES_NO_SRCDIR): Add bfin-tdep.h.
25 (ALL_TARGET_OBS): Add bfin-linux-tdep.o and bfin-tdep.o.
26 * NEWS: Mention new Blackfin port.
27 * bfin-tdep.c, bfin-tdep.h, bfin-linux-tdep.c,
28 syscalls/bfin-linux.xml: New files.
29 * configure.tgt (bfin-*-*): Handle bfin targets.
30
abc1f4cd
HZ
312010-12-29 Hui Zhu <teawater@gmail.com>
32
33 * ax-gdb.c (gen_expr): Change error message.
34
457344df
JB
352010-12-29 Joel Brobecker <brobecker@adacore.com>
36
37 * gdb.c: Revert the previous change, which was probably committed
38 by accident.
39
eed9788b
JB
402010-12-29 Joel Brobecker <brobecker@adacore.com>
41
42 * ada-lang.c: Fix typo in comment.
43
9e87a409
JB
442010-12-29 Joel Brobecker <brobecker@adacore.com>
45
46 * ada-valprint.c (ada_val_print_1): Print null array pointers as
47 `0x0' rather than `(null)'. Add assertion.
48
720d1a40
JB
492010-12-29 Joel Brobecker <brobecker@adacore.com>
50
51 * ada-lang.h (ada_coerce_to_simple_array): Add declaration.
52 * ada-lang.c (ada_typedef_target_type): New function.
53 (desc_base_type): Add handling of fat pointer typedefs.
54 (ada_coerce_to_simple_array): Make non-static.
55 (decode_packed_array_bitsize): Add handling of fat pointer typedefs.
56 Add assertion.
57 (ada_template_to_fixed_record_type_1, ada_to_fixed_type)
58 (ada_check_typedef): Add handling of fat pointer typedefs.
59 (ada_evaluate_subexp) [OP_FUNCALL]: Likewise.
60 * ada-typeprint.c (ada_print_type): Add handling of fat pointer
61 typedefs.
62 * ada-valprint.c (ada_val_print_1): Convert fat pointers that are not
63 array accesses to simple arrays rather than simple array pointers.
64 (ada_value_print): In the case of array descriptors, do not print
65 the value type description unless it is an array access.
66
113a6f1e
JB
672010-12-29 Joel Brobecker <brobecker@adacore.com>
68
69 * target.h (enum target_object): Expand the documentation of
70 TARGET_OBJECT_OSDATA a bit.
71
ebcd3b23
MS
722010-12-28 Michael Snyder <msnyder@vmware.com>
73
74 * command.h: Comment clean-up.
75 * cli/cli-cmds.c: Ditto.
76 * cli/cli-cmds.h: Ditto.
77 * cli/cli-decode.c: Ditto.
78 * cli/cli-decode.h: Ditto.
79 * cli/cli-dump.c: Ditto.
80 * cli/cli-interp.c: Ditto.
81 * cli/cli-logging.c: Ditto.
82 * cli/cli-script.c: Ditto.
83 * cli/cli-setshow.c: Ditto.
84 * cli/cli-setshow.h: Ditto.
85
371d5dec
MS
862010-12-28 Michael Snyder <msnyder@vmware.com>
87
88 * event-loop.c: Comment clean-up.
89 * event-loop.h: Ditto.
90 * event-top.c: Ditto.
91 * gdb.c: Ditto.
92 * gdb.h: Ditto.
93 * main.c: Ditto.
94 * top.c: Ditto.
95 * top.h: Ditto.
96
6ab12e0f
PA
972010-12-28 Pedro Alves <pedro@codesourcery.com>
98
99 * ax-gdb.c (gen_expr) <OP_REGISTER>: Error out if trying to
100 collect a user register.
101
175ff332
HZ
1022010-12-28 Hui Zhu <teawater@gmail.com>
103
104 * gdbarch.sh (ax_pseudo_register_collect,
105 ax_pseudo_register_push_stack): new callbacks.
106 (agent_expr): Forward declare.
107 * gdbarch.h, gdbarch.c: Regenerate.
108 * ax-gdb.c (gen_expr): Remove pseudo-register check code.
109 * ax-general.c (user-regs.h): New include.
110 (ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
111 (ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
112 * mips-tdep.c (ax.h): New include.
113 (mips_ax_pseudo_register_collect,
114 mips_ax_pseudo_register_push_stack): New functions.
115 (mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
116 mips_ax_pseudo_register_push_stack.
117
f32bf4a4
YQ
1182010-12-28 Yao Qi <yao@codesourcery.com>
119
120 * arm-tdep.c (arm_register_aliases): Remove sp, pc, and fp.
121
f73b1357
JB
1222010-12-28 Joel Brobecker <brobecker@adacore.com>
123
124 * inf-child.c (inf_child_acknowledge_created_inferior): Delete.
125 (inf_child_target): Do not set t->to_acknowledge_created_inferior.
126 * inf-ptrace.c (inf_ptrace_create_inferior): Remove call to
127 target_acknowledge_created_inferior.
128 * inf-ttrace.c (inf_ttrace_him): Likewise.
129 * target.h (struct target_ops): Delete to_acknowledge_created_inferior
130 field.
131 (target_acknowledge_created_inferior): Delete.
132 * target.c (update_current_target): Remove setting of
133 to_acknowledge_created_inferior field. Do default value for that
134 field either.
135 (debug_to_acknowledge_created_inferior): Delete.
136 (setup_target_debug): Remove setting of
137 current_target.to_acknowledge_created_inferior.
138
128070bb
PA
1392010-12-27 Pedro Alves <pedro@codesourcery.com>
140
141 gdb/
142 * breakpoint.c (breakpoint_restore_shadows): When looking for the
143 location with the lowest address that overlaps the memory range we
144 want to restore shadows for, account for multiple locations at the
145 same address.
146
35df4500
TJB
1472010-12-27 Jan Kratochvil <jan.kratochvil@redhat.com>
148
149 Code cleanup - renaming.
150 * breakpoint.c: Use bl for `*bp_location' variables, blp_tmp for
151 `**bp_location' helper variables, b_tmp for `*breakpoint' helper
152 variables.
153
6229fbea 1542010-12-27 Kevin Buettner <kevinb@redhat.com>
35df4500 155 Hui Zhu <teawater@gmail.com>
6229fbea
HZ
156
157 * mips-tedp.c (mips_register_name): Add comments.
158
621c6d5b
YQ
1592010-12-23 Yao Qi <yao@codesourcery.com>
160
161 * arm-tdep.c (thumb_analyze_prologue): Move some code ...
162 (EXTRACT_MOVW_MOVT_IMM_T): ... here. New macro.
163 (EXTRACT_MOVW_MOVT_IMM_A): New macro.
164 (arm_analyze_load_stack_chk_guard): New.
165 (arm_skip_stack_protector): New.
166 (arm_skip_prologue): Adjust post_prologue_pc by
167 arm_skip_stack_protector.
168
81ec3cce 169
0e8708c7
YQ
1702010-12-23 Yao Qi <yao@codesourcery.com>
171
172 * arm-tdep.c (arm_gdbarch_init): Remove invoke to
173 set_gdbarch_deprecated_fp_regnum.
174
8fa067af
MK
1752010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
176
177 * inferior.c (remove_inferior_command): Don't remove an active inferior.
178 * mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
179
a7658b96
TT
1802010-12-21 Tom Tromey <tromey@redhat.com>
181
182 * thread.c (print_thread_info): Make a ui-out table in CLI mode.
183
54483882
YQ
1842010-12-20 Yao Qi <yao@codesourcery.com>
185
186 * arm-tdep.c (arm_register_reggroup_p): New.
187 (arm_gdbarch_init): Set arm_register_reggroup_p for hook
188 register_reggroup_p.
189
8ab03ccb
YQ
1902010-12-20 Yao Qi <yao@codesourcery.com>
191
192 * features/arm-core.xml: Add attribute type to reg from r0 to r12.
193 * features/arm-with-iwmmxt.c: Regenerate.
194 * features/arm-with-neon.c: Regenerate.
195 * features/arm-with-vfpv2.c: Regenerate.
196 * features/arm-with-vfpv3.c: Regenerate.
197
57bf2d7e
MK
1982010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
199
200 * mi/mi-main.c (mi_cmd_remove_inferior): Don't delete current inferior.
201 (get_other_inferior): New.
202
b3422a0d
MK
2032010-12-17 Marc Khouzam <marc.khouzam@ericsson.com>
204
205 * python/py-progspace.c (py_free_pspace): Obtain arch another
206 way to avoid dereferencing a null pointer.
207
5f2302ab
MS
2082010-12-17 Michael Snyder <msnyder@vmware.com>
209
210 * utils.c (do_my_cleanups): Comment fix-up.
211
930bd0e0
KB
2122010-12-17 Kevin Buettner <kevinb@redhat.com>
213
214 * mips-tdep.c (make_mips16_addr): New function.
215 (mips_elf_make_msymbol_special): Don't set the low bit in the
216 symbol's address.
217 (mips_read_pc, mips_unwind_pc, mips_addr_bits_remove): Strip bit
218 indicating mips16 address, if present.
219 (mips_write_pc): Set bit indicating mips16 address when in a mips16
220 function.
221 (mips_eabi_push_dummy_call, mips_o64_push_dummy_call): Likewise,
222 but for each function pointer argument to inferior function call.
223
900c7f9d
TT
2242010-12-17 Tom Tromey <tromey@redhat.com>
225
226 * psympriv.h (struct partial_symtab) <readin>: Move field
227 earlier.
228
ee51a8c7
KB
2292010-12-16 Kevin Buettner <kevinb@redhat.com>
230
231 * mips-tdep.c (mips_convert_register_float_case_p)
232 (mips_convert_register_gpreg_case_p): New functions.
233 (mips_convert_register_p): Invoke new functions above.
234 (mips_register_to_value): Add case for fetching value shorter
235 than 64 bits from a 64-bit register.
236 (mips_value_to_register): Add case for storing value shorter
237 than 64 bits into a 64-bit register.
238
fa595c27
TT
2392010-12-16 Joel Borggrén-Franck <joel.borggren.franck@gmail.com>
240
241 * python/py-value.c (value_object_type) <tp_flags>: Add
242 Py_TPFLAGS_BASETYPE.
243
448a92bf
MF
2442010-12-16 Mike Frysinger <vapier@gentoo.org>
245
246 * NEWS: Mention new sim --map-info flag.
247
fc1a9d6e
DE
2482010-12-15 Doug Evans <dje@google.com>
249
250 * dwarf2read.c (_initialize_dwarf2_read): Fix help text of
251 "save gdb-index" command.
252
5b79abe7
TT
2532010-12-15 Tom Tromey <tromey@redhat.com>
254
255 * infrun.c (save_infcall_control_state): Handle the
256 exception-resume breakpoint.
257 (restore_infcall_control_state): Likewise.
258 (discard_infcall_control_state): Likewise.
259
8bdf35dc
KB
2602010-12-15 Kevin Buettner <kevinb@redhat.com>
261
262 * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit
263 cooked values that are being transferred to 64-bit raw registers.
264 (mips_pseudo_register_read): Revise to preserve symmetry with
265 mips_pseudo_register_write().
266
45ccdddc
TT
2672010-12-15 Greg Watson <g.watson@computer.org>
268
269 * f-exp.y (yylex): Check entire token against keywords.
270
a86caf66
DE
2712010-12-15 Doug Evans <dje@google.com>
272
273 Rename "maint set python auto-load" to "set auto-load-scripts".
274 * NEWS: Mention it.
275 * python/py-auto-load.c (auto_load_scripts): Renamed from
276 gdbpy_auto_load.
277 (load_auto_scripts_for_objfile): Update.
278 (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to
279 "set auto-load-scripts".
280
a8852dc5
KB
2812010-12-14 Kevin Buettner <kevinb@redhat.com>
282
283 * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather
284 than unsigned, values in registers.
285
b6c882c7
L
2862010-12-14 Ken Werner <ken.werner@de.ibm.com>
287
288 * valops.c (value_one): Use get_array_bounds to compute the number
289 of array elements instead of dividing the length of the array by the
290 length of the element types.
291 * valarith.c (value_complement, value_neg): Likewise.
292
043b6510
JB
2932010-12-14 Joel Brobecker <brobecker@adacore.com>
294
295 * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs
296 and __fp_scr respectively throughout.
297 * configure.ac: Compile with -Dsiginfo=__siginfo if building with
298 Python using GCC on IRIX.
299 * configure: Regenerate.
300
c6490bf2
KB
3012010-12-13 Kevin Buettner <kevinb@redhat.com>
302
303 * solib-svr4.c (enable_break): Don't attempt to place breakpoints,
304 when attaching, on the names in bkpt_names: _start, __start, and
305 main.
306
0914bcdb
SS
3072010-12-12 Stan Shebs <stan@codesourcery.com>
308
309 * value.c (value_of_internalvar): Add case for trace state
310 variables.
311
7b9f3c50
DE
3122010-12-12 Doug Evans <dje@google.com>
313
314 * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table.
315 (dwarf2_per_cu_quick_data): Move definition down to "quick functions"
316 section. Delete members lines full_names. Rename read_lines to
317 no_file_data.
318 (quick_file_names): New struct.
319 (hash_file_name_entry, eq_file_name_entry): New functions.
320 (delete_file_name_entry, create_quick_file_names_table): New functions.
321 (dwarf2_read_index): Initialize quick_file_names_table.
322 (dw2_get_file_names): Renamed from dw2_require_line_header.
323 Return pointer to quick_file_names entry. All callers updated.
324 (dw2_get_real_path): Renamed from dw2_require_full_path.
325 Replace per_cu arg with pointer to quick_file_names entry.
326 All callers updated.
327 (dw2_free_cached_file_names): New function.
328 (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize).
329 (dwarf2_initialize_objfile): Initialize quick_file_names_table in
330 the OBJF_READNOW case.
331 (dwarf2_free_objfile): Rewrite freeing of quick file names tables.
332
1583e7ea 3332010-12-12 Mark Kettenis <kettenis@gnu.org>
89fa5cc8
MK
334
335 * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
336 (mips64obsd_init_abi): Set long_double_bit and long_double_format.
337
7a58cce8
MK
3382010-12-12 Mark Kettenis <kettenis@gnu.org>
339
340 * sparc-tdep.c: Fix typo in comment.
341
ae2de4f8
DE
3422010-12-10 Doug Evans <dje@google.com>
343
344 * dwarf2read.c: Whitespace cleanup, plus comment additions.
345 No code changes.
346
66cb8159
TT
3472010-12-10 Tom Tromey <tromey@redhat.com>
348
349 * NEWS: Document exception-handling change.
350
30a7f059
MK
3512010-12-09 Marc Khouzam <marc.khouzam@ericsson.com>
352
353 * mi/mi-parse.c (mi_parse): Wrong error message.
354
ad727bb2
DE
3552010-12-09 Doug Evans <dje@google.com>
356
357 * symfile.h (quick_symbol_functions): Clarify usage of
358 map_symbol_filenames.
359
305aeedc
TT
3602010-12-09 Tom Tromey <tromey@redhat.com>
361
362 * mi/mi-parse.h (mi_parse): Update.
363 * mi/mi-parse.c (mi_parse_cleanup): New function.
364 (mi_parse): Add 'token' argument. Throw exception on error.
365 * mi/mi-main.c (mi_print_exception): New function.
366 (mi_execute_command): Use mi_print_exception. Catch exceptions
367 from mi_parse.
368
186c406b
TT
3692010-12-09 Tom Tromey <tromey@redhat.com>
370
371 PR c++/9593:
372 * thread.c (clear_thread_inferior_resources): Call
373 delete_longjmp_breakpoint.
374 * infrun.c (handle_inferior_event): Handle exception breakpoints.
375 (handle_inferior_event): Likewise.
376 (insert_exception_resume_breakpoint): New function.
377 (check_exception_resume): Likewise.
378 * inferior.h (delete_longjmp_breakpoint_cleanup): Declare.
379 * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static.
380 (step_1): Set thread's initiating frame.
381 (until_next_continuation): New function.
382 (until_next_command): Support exception breakpoints.
383 (finish_command_continuation): Delete longjmp breakpoint.
384 (finish_forward): Support exception breakpoints.
385 * gdbthread.h (struct thread_info) <initiating_frame>: New field.
386 * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume,
387 bp_exception_master>: New constants.
388 (struct bpstat_what) <is_longjmp>: New field.
389 (set_longjmp_breakpoint): Update.
390 * breakpoint.c (create_exception_master_breakpoint): New function.
391 (update_breakpoints_after_exec): Handle bp_exception_master. Call
392 create_exception_master_breakpoint.
393 (print_it_typical): Handle bp_exception_master, bp_exception.
394 (bpstat_stop_status): Handle bp_exception_master.
395 (bpstat_what): Handle bp_exception_master, bp_exception,
396 bp_exception_resume.
397 (bptype_string): Likewise.
398 (print_one_breakpoint_location): Likewise.
399 (allocate_bp_location): Likewise.
400 (set_longjmp_breakpoint): Handle exception breakpoints. Change
401 interface.
402 (delete_longjmp_breakpoint): Handle exception breakpoints.
403 (mention): Likewise.
404 (struct until_break_command_continuation_args) <thread_num>: New
405 field.
406 (until_break_command_continuation): Call
407 delete_longjmp_breakpoint.
408 (until_break_command): Support exception breakpoints.
409 (delete_command): Likewise.
410 (breakpoint_re_set_one): Likewise.
411 (breakpoint_re_set): Likewise.
412
1ef75ecc
DE
4132010-12-08 Doug Evans <dje@google.com>
414
4e4666e6
DE
415 * gdbtypes.h (TYPE_IS_OPAQUE): Reformat.
416
73e2eb35
DE
417 * gdbtypes.c (check_typedef): Tweak comment.
418
0a5429f6
DE
419 PR symtab/12302
420 * dwarf2read.c (struct psymtab_cu_index_map): New struct.
421 (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions.
422 (struct addrmap_index_data): New struct.
423 (add_address_entry): Remove arg `pst', new args `start', `end'.
424 (add_address_entry_worker, write_address_map): New functions.
425 (write_psymtabs_to_index): Address table generation moved to
426 write_address_map. Build a table mapping psymtab to CU index
427 to pass to it.
428
7e17e088
DE
429 * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file
430 name to perror.
431
d4637a04
DE
432 * symfile.h (quick_symbol_functions): Clarify usage of
433 expand_symtabs_with_filename.
434 * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over
435 comp units, ignore type units.
436
1ef75ecc
DE
437 * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP.
438
aae1c79a
DE
4392010-12-07 Doug Evans <dje@google.com>
440
74dd2ca6
DE
441 * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
442 gdb_realpath.
443
aae1c79a
DE
444 PR python/12227
445 * NEWS: Mention -data-directory.
446 * main.c (captured_main): Recognize -data-directory.
447
8e0e408a
MK
4482010-12-06 Marc Khouzam <marc.khouzam@ericsson.com>
449
450 * mi/mi-parse.c (mi_parse): Missing else.
451
97fc68fe
MM
4522010-12-04 Masaki Muranaka <monaka@monami-software.com>
453
454 * configure.tgt: Accept microblaze*-*-linux* for linux target
455 and microblaze*-*-* for as target.
456
d03a3acf
KS
4572010-12-02 Keith Seitz <keiths@redhat.com>
458
459 * linespec.c (find_method): Move name canonicalization outside
460 the loop.
461 Be paranoid and use a cleanup.
462
148c11bf
DE
4632010-12-01 Doug Evans <dje@google.com>
464
465 * dwarf2read.c (save_gdb_index_command): Add comment.
466
4aac0db7
UW
4672010-12-01 Ulrich Weigand <uweigand@de.ibm.com>
468
469 * valops.c (value_assign): Returned value is never lazy. If a
470 C++ class type is returned, fix incorrect enclosing type / embedded
471 offset. If internal variable is returned, allocate new internalvar
472 value using value_of_internalvar.
473
474 * NEWS: Document changes in behavior of "print x = 0" and similar
475 expressions.
476
4e04c971
DE
4772010-11-29 Doug Evans <dje@google.com>
478
479 * python/lib/gdb/printing.py (register_pretty_printer): Change
480 printer-name:subprinter-name to printer-name;subprinter-name.
481 * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps):
482 Ditto.
483 (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto.
484
8cf6f0b1
TT
4852010-11-29 Tom Tromey <tromey@redhat.com>
486
487 * opencl-lang.c (lval_func_check_synthetic_pointer): New
488 function.
489 * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>:
490 New fields.
491 (value_bits_synthetic_pointer): Declare.
492 * value.c (value_bits_synthetic_pointer): New function.
493 * valprint.c (valprint_check_validity): Handle synthetic
494 pointers.
495 * valops.c (value_ind): Use new 'indirect' lval_funcs method.
496 * valarith.c (value_ptradd): Use set_value_component_location.
497 * p-valprint.c (pascal_object_print_value_fields): Handle
498 synthetic pointers.
499 * jv-valprint.c (java_print_value_fields): Handle synthetic
500 pointers.
501 * dwarf2read.c (dwarf_stack_op_name): Add
502 DW_OP_GNU_implicit_pointer.
503 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
504 arguments. Handle location lists.
505 (fill_in_loclist_baton): New function.
506 (dwarf2_symbol_mark_computed): Use it.
507 * dwarf2loc.h (dwarf2_find_location_expression): Declare.
508 (dwarf2_fetch_die_location_block): Add get_frame_pc, baton
509 arguments.
510 * dwarf2loc.c (dwarf2_find_location_expression): Rename from
511 find_location_expression. No longer static. Update all callers.
512 (dwarf_expr_frame_pc): New function.
513 (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update
514 all callers.
515 (struct piece_closure) <per_cu>: New field.
516 (allocate_piece_closure): Add per_cu argument.
517 (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER.
518 (check_pieced_value_bits): Remove validity argument, add check_for
519 argument. Handle DWARF_VALUE_IMPLICIT_POINTER.
520 (check_pieced_value_validity, check_pieced_value_invalid):
521 Update.
522 (check_pieced_synthetic_pointer): New function.
523 (get_frame_address_in_block_wrapper): New function.
524 (indirect_pieced_value): New function.
525 (pieced_value_funcs): Update.
526 (invalid_synthetic_pointer): New function.
527 (dwarf2_evaluate_loc_desc_full): Rename from
528 dwarf2_evaluate_loc_desc. Add byte_offset argument.
529 (dwarf2_evaluate_loc_desc): Rewrite.
530 (dwarf2_loc_desc_needs_frame): Set new field on context.
531 (get_ax_pc): New function.
532 (disassemble_dwarf_expression): Handle
533 DW_OP_GNU_implicit_pointer.
534 * dwarf2expr.h (enum dwarf_value_location)
535 <DWARF_VALUE_IMPLICIT_POINTER>: New constant.
536 (struct dwarf_expr_context) <get_frame_pc>: New field.
537 (struct dwarf_expr_piece) <v.ptr>: New field.
538 * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER.
539 (execute_stack_op): Handle DW_OP_GNU_implicit_pointer.
540 * dwarf2-frame.c (no_get_frame_pc): New function.
541 (execute_stack_op): Set new field on context.
542 * cp-valprint.c (cp_print_value_fields): Handle synthetic
543 pointers.
544
94b6973e
PM
5452010-11-29 Phil Muldoon <pmuldoon@redhat.com>
546
547 PR python/12199
548
549 * python/py-breakpoint.c (bppy_delete_breakpoint): New function.
550
8358c15c
JK
5512010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
552
553 Fix step_resume_breakpoint unsaved during an infcall.
554 * gdbthread.h (struct thread_control_state): Move here field
555 step_resume_breakpoint ...
556 (struct thread_info): ... from here.
557 * infrun.c (save_infcall_control_state): Reset
558 control.step_resume_breakpoint to NULL.
559 (restore_infcall_control_state, discard_infcall_control_state): Delete
560 control.step_resume_breakpoint.
561 * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to
562 the moved field.
563
16c381f0
JK
5642010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com>
565
566 Rename and move inferior_thread_state and inferior_status.
567 * gdbthread.h (struct thread_control_state): New struct, move fields
568 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
569 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
570 stop_step and stop_bpstat here from struct thread_info.
571 (struct thread_suspend_state): New struct, move field stop_signal here
572 from struct thread_info.
573 (struct thread_info): Move the fields above from this struct.
574 * inferior.h: Move the inferior_thread_state and inferior_status
575 declarations comment to their definitions at infrun.c.
576 (struct inferior_control_state): New struct, move field stop_soon from
577 struct inferior here.
578 (struct inferior_suspend_state): New empty struct.
579 (struct inferior): New fields control and suspend. Move out field
580 stop_soon.
581 * infrun.c (struct inferior_thread_state): Rename to ...
582 (infcall_suspend_state): ... here. Replace field stop_signal by
583 fields thread_suspend and inferior_suspend.
584 (save_inferior_thread_state): Rename to ...
585 (save_infcall_suspend_state): ... here. New variable inf. Update the
586 code for new fields.
587 (restore_inferior_thread_state): Rename to ...
588 (restore_infcall_suspend_state): ... here. New variable inf. Update
589 the code for new fields.
590 (do_restore_inferior_thread_state_cleanup): Rename to ...
591 (do_restore_infcall_suspend_state_cleanup): ... here.
592 (make_cleanup_restore_inferior_thread_state): Rename to ...
593 (make_cleanup_restore_infcall_suspend_state): ... here.
594 (discard_inferior_thread_state): Rename to ...
595 (discard_infcall_suspend_state): ... here.
596 (get_inferior_thread_state_regcache): Rename to ...
597 (get_infcall_suspend_state_regcache): ... here.
598 (struct inferior_status): Rename to ...
599 (struct infcall_control_state): ... here. Replace fields
600 step_range_start, step_range_end, step_frame_id, step_stack_frame_id,
601 trap_expected, proceed_to_finish, in_infcall, step_over_calls,
602 stop_step, stop_bpstat and stop_soon by fields thread_control and
603 inferior_control.
604 (save_inferior_status): Rename to ...
605 (save_infcall_control_state): ... here. Update the code for new
606 fields.
607 (restore_inferior_status): Rename to ...
608 (restore_infcall_control_state): ... here. Update the code for new
609 fields.
610 (do_restore_inferior_status_cleanup): Rename to ...
611 (do_restore_infcall_control_state_cleanup): ... here.
612 (make_cleanup_restore_inferior_status): Rename to ...
613 (make_cleanup_restore_infcall_control_state): ... here.
614 (discard_inferior_status): Rename to ...
615 (discard_infcall_control_state): ... here.
616 * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h,
617 exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c,
618 inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c,
619 mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c,
620 solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the
621 references to the moved fields and renamed functions.
622
35515841
JK
6232010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
624
625 * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up
626 the comment.
627 (save_inferior_thread_state): Reset tp->stop_signal.
628
fef8420a
JK
6292010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com>
630
7ea14533
JK
631 * infcall.c (call_function_by_hand): Remove variable
632 caller_state_cleanup.
fef8420a 633
f5a8e22b
MK
6342010-11-25 Marc Khouzam <marc.khouzam@ericsson.com>
635
636 PR breakpoints/12217
637
638 * breakpoint.c (is_marker_spec): Check for NULL.
639
50389644
PA
6402010-11-25 Pedro Alves <pedro@codesourcery.com>
641
642 * breakpoint.h: No longer include python.h or python-internal.h.
643 (struct breakpoint_object): Forward declare.
644 * defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
645 * varobj.c (PyObject) [!HAVE_PYTHON]: Define.
646 * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
647 PyObject pointer.
648 (gdbpy_breakpoint_created): Remove casts around py_bp_object
649 accesses.
650
50a99728
JB
6512010-11-24 Joel Brobecker <brobecker@adacore.com>
652
653 * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int
654 only if HAVE_ELF is defined.
655
d82142e2
JK
6562010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
657
a418ecb5
JK
658 Code cleanup.
659 * infrun.c (struct inferior_status) <stepping_over_breakpoint>
660 (save_inferior_status) <stepping_over_breakpoint>
661 (restore_inferior_status) <stepping_over_breakpoint>: Rename to
662 trap_expected.
663 (struct inferior_status) <step_resume_break_address>: Remove.
664
6652010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
666
667 Code cleanup.
d82142e2
JK
668 * infrun.c (struct inferior_status, save_inferior_status)
669 (restore_inferior_status): Group and reorder the fields, comment their
670 groups.
671
2edb89d3
JK
6722010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
673
674 Code cleanup.
675 * dictionary.c
676 (struct dict_vector) <iter_match_first, iter_match_next>
677 (iter_match_first_hashed, iter_match_next_hashed)
678 (iter_match_first_linear, iter_match_next_linear)
679 (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed)
680 (iter_match_next_hashed, iter_match_first_linear)
681 (iter_match_next_linear): Use symbol_compare_ftype.
682 * dictionary.h: Include symfile.h.
683 (dict_iter_match_first, dict_iter_match_next): Use
684 symbol_compare_ftype.
685 * dwarf2read.c (dw2_map_matching_symbols): Likewise.
686 * psymtab.c (match_partial_symbol, match_partial_symbol, map_block)
687 (map_matching_symbols_psymtab): Likewise.
688 * symfile.h (symbol_compare_ftype): New typedef.
689 (struct quick_symbol_functions) <map_matching_symbols): Use
690 symbol_compare_ftype.
691
5ae98d25
TT
6922010-11-23 Tom Tromey <tromey@redhat.com>
693
39037522
TT
694 * configure: Rebuild.
695 * configure.ac (READLINE_TEXI_INCFLAG): New subst.
696
6972010-11-19 Tom Tromey <tromey@redhat.com>
698
5ae98d25
TT
699 * Makefile.in (SUBDIRS): Add doc.
700 * configure: Rebuild.
701 * configure.ac: Don't configure in doc. Create doc/Makefile.
702
ea976c60
PM
7032010-11-23 Phil Muldoon <pmuldoon@redhat.com>
704
705 PR python/12212
706
707 * python/py-inferior.c (find_thread_object): Check if PIDGET
708 returns 0.
709
710010-11-22 Joel Brobecker <brobecker@adacore.com>
d94e4f4f
JB
711
712 * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr.
713
96dbd2c1
JB
7142010-11-22 Joel Brobecker <brobecker@adacore.com>
715
716 * ada-lang.c (ada_to_fixed_type): Expand function documentation.
717 Return the original type if the main type portions match rather
718 than when the type themselves match.
719
27f2a97b
JB
7202010-11-22 Joel Brobecker <brobecker@adacore.com>
721
722 * ada-lang.c (ada_template_to_fixed_record_type_1):
723 For dynamic fields, check the field size against the maximum
724 object size.
725
1324a0d9
JB
7262010-11-22 Joel Brobecker <brobecker@adacore.com>
727
728 * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New
729 function.
730 (mips_irix_n32_stack_tramp_frame): New static global.
731 (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to
732 list of unwinder.
733
09e7f15b
JB
7342010-11-22 Jerome Guitton <guitton@adacore.com>
735
736 * ada-tasks.c (get_tcb_types_info): Use C lookups to get
737 ATCB symbols.
738
3a867c22
JB
7392010-11-22 Joel Brobecker <brobecker@adacore.com>
740
741 * ada-lang.c (ada_check_typedef): Call ada_check_typedef only
742 if type1 is a typedef.
743
df30368d
JB
7442010-11-22 Joel Brobecker <brobecker@adacore.com>
745
746 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add
747 "_finalizer" to the list.
748
4889bbbc
JB
7492010-11-22 Joel Brobecker <brobecker@adacore.com>
750
751 * symfile.c: Remove all "#if 0"/"#endif" blocks.
752
0d14a781
JB
7532010-11-22 Joel Brobecker <brobecker@adacore.com>
754
755 * symfile.c: Add missing second space after period in various comments.
756
feb864b7
JB
7572010-11-22 Joel Brobecker <brobecker@adacore.com>
758
759 * ada-typeprint.c (print_array_type): Fix formatting in comment.
760 (print_selected_record_field_types): Fix formatting in function
761 documentation.
762
04f9d4d0
JB
7632010-11-22 Joel Brobecker <brobecker@adacore.com>
764
765 * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo
766 in name of "show ravenscar" prefix command name.
767
b64edec4
JB
7682010-11-22 Joel Brobecker <brobecker@adacore.com>
769
770 * ravenscar-thread.c (show_ravenscar_task_switching_command):
771 Add missing '\n' in output.
772
7f39f34a
JB
7732010-11-22 Joel Brobecker <brobecker@adacore.com>
774
775 * ravenscar-thread.c (running_thread_name): Change value.
776 (read_thread_id): Remove advance declaration.
777 (get_running_thread_msymbol): New function.
778 (has_ravenscar_runtime): Use get_running_thread_msymbol to
779 compute msym_running_thread.
780 (get_running_thread_id): Renames read_thread_id. Slight modifications
781 to not take any argument anymore, using get_running_thread_msymbol
782 to determine which symbol to use instead.
783 (ravenscar_running_thread): Use get_running_thread_id instead of
784 read_thread_id.
785
f3890d59
JB
7862010-11-22 Joel Brobecker <brobecker@adacore.com>
787
788 * ravenscar-sparc-thread.c (supply_register_at_address):
789 Fix passing of buf in call to regcache_raw_supply.
790
594e8718
JK
7912010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
792
793 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
794
7ba86c9e
TT
7952010-11-22 Tom Tromey <tromey@redhat.com>
796
797 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
798
1bfda48e
KS
7992010-11-19 Keith Seitz <keiths@redhat.com>
800
801 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
802 Remove extraneous '/' after $(DESTDIR).
803 (PYTHON_INSTALL_DIR): Likewise.
804
3f1eff0a
JK
8052010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
806
807 Fix stale memory references.
808 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
809 xfree, new comment.
810
954d8cae
TT
8112010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
812 Tom Tromey <tromey@redhat.com>
813
814 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
815 (.PHONY): Remove for .y outputs.
816
d53d4ac5
TT
8172010-11-19 Will Drewry <wad@google.com>
818 Tavis Ormandy <taviso@google.com>
819 Jan Kratochvil <jan.kratochvil@redhat.com>
820
821 * dwarf2read.c (decode_locdesc): Enforce location description stack
822 boundaries.
823
77bc0675
PM
8242010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
825
826 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
827 instruction is found.
828
ba19bb4d
TT
8292010-11-17 Tom Tromey <tromey@redhat.com>
830
831 * value.c (value_entirely_optimized_out): Check the
832 'check_any_valid' field.
833
19f220c3
JK
8342010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
835
836 * ada-lang.c (modify_general_field): Remove.
837 (make_array_descriptor): Replace all modify_general_field calls by
838 modify_field.
839 * value.c (modify_field): Update comment. New variable bytesize.
840 Normalize BITPOS. Initialize BYTESIZE, use it.
841
87df528e
JK
8422010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
843
844 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
845 elements after xfree.
846
97924a97
TT
8472010-11-16 Tom Tromey <tromey@redhat.com>
848
849 * gdb-add-index.sh: Really remove.
850
9816fde3
JK
8512010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
852
853 Code cleanup.
854 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
855 (init_one_comp_unit): ... this one.
856 (prepare_one_comp_unit): New prototype.
857 (dw2_require_line_header, process_psymtab_comp_unit): Use
858 init_one_comp_unit.
859 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
860 (load_partial_comp_unit): Remove variable attr. Use
861 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
862 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
863 prepare_one_comp_unit.
864 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
865 Use prepare_one_comp_unit.
866 (alloc_one_comp_unit): Rename to ...
867 (init_one_comp_unit): ... here and remove there calloc, new parameter
868 cu.
869 (prepare_one_comp_unit): New function.
870
73c964d6
PM
8712010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
872
873 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
874 possible used of uninitialized variable.
875
74af9197
NF
8762010-11-12 Nathan Froyd <froydnj@codesourcery.com>
877
878 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
879 (rs6000_gdbarch_init): Call it.
880
e52d5016
NF
8812010-11-12 Nathan Froyd <froydnj@codesourcery.com>
882
883 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
884 instructions if debugging an E500 binary.
885
621c8364
TT
8862010-11-12 Tom Tromey <tromey@redhat.com>
887
888 * varobj.c (value_get_print_value): Rearrange. Pass stream to
889 apply_varobj_pretty_printer.
890 * c-lang.c: Include exceptions.h.
891 (c_get_string): Throw MEMORY_ERROR when appropriate.
892 * python/py-prettyprint.c (enum string_repr_result): New.
893 (print_stack_unless_memory_error): New function.
894 (print_string_repr): Change return type. Use
895 print_stack_unless_memory_error.
896 (print_children): Use print_stack_unless_memory_error.
897 (apply_val_pretty_printer): Update. Don't print children if
898 string representation threw an exception.
899 (apply_varobj_pretty_printer): Add 'stream' argument. Use
900 print_stack_unless_memory_error.
901 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
902 globals.
903 (_initialize_python): Initialize them.
904 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
905 gdbpy_convert_exception.
906 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
907 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
908 (gdbpy_convert_exception): Declare.
909 (apply_varobj_pretty_printer): Update.
910 * python/py-utils.c (gdbpy_convert_exception): New function.
911
f1b9e6e7
MK
9122010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
913
914 * mi/mi-main.c (mi_cmd_target_detach): Accept new
915 thread-group id format.
916
74884f7b
JK
9172010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
918
919 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
920
84f4c1fe
PM
9212010-11-11 Phil Muldoon <pmuldoon@redhat.com>
922
923 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
924 NULL.
925 (BPPY_SET_REQUIRE_VALID): Ditto.
926 (bpnum_is_valid): Delete function.
927 (bppy_get_visibility): New function.
928 (bppy_new): Parse for, and validate internal keyword. Pass
929 internal keyword to breakpoint or watchpoint functions.
930 (build_bp_list): New function.
931 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
932 iterate_over_breakpoints.
933 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
934 look-aside vector.
935 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
936 to internal breakpoint chain.
937
938 * breakpoint.c (set_breakpoint_number): New function.
939 (breakpoint_1): Check if breakpoint number is more than zero.
940 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
941 (create_breakpoint_sal): Take a new parameter called internal.
942 Call set_breakpoint_number with internal parameter. Do not
943 mention internal breakpoints. All callers updated.
944 (create_breakpoint): Ditto.
945 (create_breakpoints_sal): Ditto.
946 (watch_command_1): Ditto.
947 (watch_command_wrapper): Take a new parameter called internal.
948 All callers updated.
949 (rwatch_command_wrapper): Ditto.
950 (awatch_command_wrapper): Ditto.
951 (save_breakpoints): Update breakpoint save condition check.
952 (iterate_over_breakpoints): New function.
953 * breakpoint.h: Add conditional python includes. Add py_bp_object
954 and comment to struct breakpoint. Update all callers.
955 * defs.h: Add PyObject definition for GDB builds without Python.
956
4dfea560
DE
9572010-11-10 Doug Evans <dje@google.com>
958
f61a2da7
DE
959 * python/lib/gdb/command/pretty_printers.py
960 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
961
4dfea560
DE
962 * value.c (set_value_enclosing_type): Renamed from
963 value_change_enclosing_type. All callers updated.
964 * value.h (set_value_enclosing_type): Update.
965 * valops.c (value_full_object): Always return a copy if we need to
966 make changes to the input value.
967
a1442452
PA
9682010-11-09 Pedro Alves <pedro@codesourcery.com>
969
970 * breakpoint.c (watch_command_1): Get a pointer of the lazy
971 version of the expression's value, even if reading the value from
972 memory fails. When creating a -location watchpoint, get the
973 value's address from the lazy value pointer.
974
803b5f95
JK
9752010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
976
977 * infrun.c (restore_inferior_thread_state): Use
978 discard_inferior_thread_state to free the data.
979 (discard_inferior_thread_state): xfree also siginfo_data.
980
99e7ae30
DE
9812010-11-05 Doug Evans <dje@google.com>
982
983 Make gdb.parameter("directories") work.
984 New command "set directories".
985 * NEWS: Document them.
986 * source.c (set_directories_command): New function.
987 (show_directories_1): Renamed from show_directories.
988 All callers updated.
989 (show_directories_command): New function.
990 (_initialize_source): Install "directories" as a set/show
991 variable instead of just a show command.
992
f4b8a18d
KW
9932010-11-05 Ken Werner <ken.werner@de.ibm.com>
994
995 * NEWS: Mention OpenCL C language support.
996 * Makefile.in (SFILES): Add opencl-lang.c.
997 (COMMON_OBS): Add opencl-lang.o.
998 * opencl-lang.c: New File
999 * defs.h (enum language): Add language_opencl.
1000 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
1001 IBM XL C OpenCL compiler.
1002 * c-lang.h: Include "parser-defs.h".
1003 (evaluate_subexp_c): Declare.
1004 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
1005 (c_op_print_tab): Add declaration.
1006 * eval.c (binop_promote): Handle language_opencl.
1007 * c-exp.y: Lookup the primitive types instead of referring to the
1008 builtins.
1009
075ff26d
JK
10102010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1011
1012 Fix configure --enable-plugins --without-python.
1013 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
1014 * configure: Regenerate.
1015
14ad3217
JK
10162010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1017
1018 * solib.c (solib_read_symbols): Call exception_fprintf even without
1019 FROM_TTY. Print also so->so_name.
1020
a9d5ef47
SW
10212010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1022
1023 * gdbtypes.h (struct rank): Created subrank.
1024 * gdbtypes.c: Initialized subrank for all
1025 'BADNESS' constants.
1026 (distance_to_ancestor): New function.
1027 (is_ancestor): Use distance_to_ancestor.
1028 (is_public_ancestor): Ditto.
1029 (sum_ranks): Handle subrank.
1030 (compare_ranks): Ditto.
1031 (rank_one_type): Subrank base conversions.
1032
6403aeea
SW
10332010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
1034
1035 * gdbtypes.h: Create struct rank.
1036 Convert all 'BADNESS' macros to const struct rank declarations.
1037 (sum_ranks): New function.
1038 (compare_ranks): New function.
1039 * valops.c (find_oload_champ): Updated.
1040 (classify_oload_match): Use compare_ranks.
1041 Improved comments.
1042 (compare_parameters): Use compare_ranks.
1043 * gdbtypes.c: Initialize 'BADNESS' constants.
1044 (sum_ranks): New function.
1045 (compare_ranks): New function.
1046 (compare_badness): Use compare_ranks.
1047 (rank_function): Use global constants instead of literals.
1048 (rank_one_type): Ditto.
1049 Return struct rank.
1050 Use sum_ranks.
1051
23fa7f66
DE
10522010-11-04 Doug Evans <dje@google.com>
1053
1054 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
1055 (find_pretty_printer): Fix comments.
1056
608bcef2
HZ
10572010-11-04 Hui Zhu <teawater@gmail.com>
1058
1059 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
1060
9addb3b9
JB
10612010-11-03 Joel Brobecker <brobecker@adacore.com>
1062
1063 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
1064 and `len' declaration and computation inside block where they
1065 are being used.
1066
75be741b
JB
10672010-11-03 Joel Brobecker <brobecker@adacore.com>
1068
1069 * valprint.c (val_print_array_elements): Put back handling of
1070 empty arrays.
1071
dbc98a8b
KW
10722010-11-03 Ken Werner <ken.werner@de.ibm.com>
1073
1074 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
1075 DIE and set the length of the type.
1076 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
1077 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
1078 return 0 if the corresponding bounds of the type are undefined.
1079 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
1080 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
1081 (val_print_array_elements): Use get_array_bounds to compute the number
1082 of array elements instead of dividing the length of the array by the
1083 length of the element types.
1084 * valarith.c (vector_binop): Likewise.
1085 * valops.c (value_cast): Likewise.
1086 * c-valprint.c (c_val_print): Likewise.
1087 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1088
120bd360
KW
10892010-11-03 Ken Werner <ken.werner@de.ibm.com>
1090
1091 * valarith.c (value_pos, value_neg, value_complement): Handle
1092 vector types.
1093 * valops.c (value_one): Likewise.
1094
c37f7098
KW
10952010-11-03 Ken Werner <ken.werner@de.ibm.com>
1096
1097 * value.h (value_non_lval): Declare.
1098 * value.c (value_non_lval): New function.
1099 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
1100 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
1101 non-lvalue.
1102
7b51bc51
DE
11032010-11-02 Doug Evans <dje@google.com>
1104
1105 New python module gdb.printing, and new commands info pretty-printer,
1106 enable pretty-printer, disable pretty-printer.
1107 * NEWS: Mention them.
1108 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
1109 gdb/command/__init__.py, gdb/command/pretty_printers.py.
1110 * python/lib/gdb/__init__.py: Install pretty-printer commands.
1111 * python/lib/gdb/printing.py: New file.
1112 * python/lib/gdb/command/__init__.py: New file.
1113 * python/lib/gdb/command/pretty_printers.py: New file.
1114
50c97f38
TT
11152010-11-02 Tom Tromey <tromey@redhat.com>
1116
1117 * NEWS: Mention Guile removal.
1118 * defs.h (enum language) <language_scm>: Remove.
1119 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
1120 scm-valprint.c.
1121 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
1122 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
1123 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
1124 Remove.
1125
9dea9163
DE
11262010-11-02 Doug Evans <dje@google.com>
1127
1128 * top.c: #include "python/python.h".
1129 (gdb_init): Add a comment regarding initialize_all_files.
1130 Call finish_python_initialization at the end.
1131 * python/python.h (finish_python_initialization): Declare.
1132 * python/python.c (finish_python_initialization): New function.
1133 (_initialize_python): Move python-implemented initialization there
1134 and call it.
1135 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
1136
a289b8f6
JK
11372010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1138
1139 Revert:
1140 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1141 Pedro Alves <pedro@codesourcery.com>
1142 * gdbthread.h (currently_stepping): New declaration.
1143 * infrun.c (currently_stepping): Remove the forward declaration.
1144 (currently_stepping): Make it global.
1145 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1146 variables tp and step, initialized them. Pass STEP to to_resume.
1147 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1148 * remote.c (currently_stepping_callback): New.
1149 (remote_vcont_resume)
1150 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1151 New variable tp. Call currently_stepping_callback and step such
1152 thread.
1153
2209c807
HZ
11542010-11-01 Hui Zhu <teawater@gmail.com>
1155
1156 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
1157
0a2a54b8
HZ
11582010-10-28 Hui Zhu <teawater@gmail.com>
1159
1160 * tracepoint.c (trace_save): Change utp->actions to
1161 utp->step_actions.
1162
284a3db3
JB
11632010-10-26 Joel Brobecker <brobecker@adacore.com>
1164
1165 * (_FILE_OFFSET_BITS): Fix typo in comment.
1166
aed1781d
JB
11672010-10-26 Joel Brobecker <brobecker@adacore.com>
1168
1169 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
1170 (PyEval_InitThreads): Remove duplicate. Define as nothing.
1171 (PyEval_ReleaseLock): Define as nothing.
1172
1e3fad37
JB
11732010-10-26 Joel Brobecker <brobecker@adacore.com>
1174
1175 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
1176 by call to FILENAME_CMP.
1177
558b1900
JB
11782010-10-26 Joel Brobecker <brobecker@adacore.com>
1179
1180 * dictionary.c (dict_hash): Move assignment out of if condition.
1181
f474844c
JZ
11822010-10-22 Jie Zhang <jie@codesourcery.com>
1183
1184 * Makefile.in (install): Remove dependency of install-only and
1185 recursively invoke make for install-only.
1186 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
1187 (install): Pass FLAGS_TO_PASS when recursively make install-only.
1188
8991e9fa
HZ
11892010-10-20 Hui Zhu <teawater@gmail.com>
1190
1191 * tracepoint.c (tfile_get_traceframe_address): Call
1192 extract_signed_integer.
1193 (tfile_trace_find): Call extract_signed_integer and
1194 extract_unsigned_integer. Change data_size to unsigned int.
1195 (tfile_fetch_registers): Call extract_unsigned_integer.
1196 (tfile_xfer_partial): Ditto.
1197 (tfile_get_trace_state_variable_value): Call
1198 extract_signed_integer and extract_unsigned_integer.
1199
21bce120
VP
12002010-10-20 Vladimir Prus <vladimir@codesourcery.com>
1201
1202 * remote.c (remote_get_threadlist): If we got empty
1203 response, bail out immediately, and don't emit any
1204 warnings.
1205
ad8b5167
UW
12062010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1207
1208 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
1209 for "mov pc, REG" as well.
1210 (thumb_instruction_changes_pc): Likewise.
1211
79afc5ef
SW
12122010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1213
1214 PR C++/11500:
1215 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
1216 * eval.c (evaluate_subexp_standard): Check for overload of
1217 'operator->'.
1218 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
1219 (value_x_unop): Ditto.
1220 * valops.c: Include "exceptions.h".
1221 (find_overload_match): Throw NOT_FOUND_ERROR.
1222 (value_struct_elt): Ditto.
1223
cca56ac7
TT
12242010-10-19 Tom Tromey <tromey@redhat.com>
1225
1226 * python/py-cmd.c (cmdpy_function): Unreference exception state.
1227
026ffab7
SW
12282010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
1229
1230 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
1231 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
1232 for conversion.
1233 Make all other conversions illegal.
1234
8c540a24
DE
12352010-10-18 Doug Evans <dje@google.com>
1236
1237 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
1238 assumptions of when this case happens. Print "<unnamed typedef>".
1239
3a772aa4
TT
12402010-10-18 Tom Tromey <tromey@redhat.com>
1241
1242 * valprint.c (val_print_string): Pass 'encoding' to
1243 LA_PRINT_STRING.
1244
01f8c46d
JK
12452010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1246
1247 Fix the `stopped language detection' testcase for gcc-4.5.
1248 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
1249 * symfile.c (set_initial_language): Move variable filename to a more
1250 inner block. Prefer LANGUAGE_OF_MAIN.
1251 * symtab.c (language_of_main): New variable.
1252 (set_main_name): Always reset LANGUAGE_OF_MAIN.
1253 * symtab.h (language_of_main): New declaration.
1254
8aeb23f3
JK
12552010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1256 Pedro Alves <pedro@codesourcery.com>
1257
1258 * gdbthread.h (currently_stepping): New declaration.
1259 * infrun.c (currently_stepping): Remove the forward declaration.
1260 (currently_stepping): Make it global.
1261 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
1262 variables tp and step, initialized them. Pass STEP to to_resume.
1263 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
1264 * remote.c (currently_stepping_callback): New.
1265 (remote_vcont_resume)
1266 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
1267 New variable tp. Call currently_stepping_callback and step such
1268 thread.
1269
c1e56572
JK
12702010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1271
1272 * infrun.c (follow_exec): Replace symbol_file_add_main by
1273 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
1274 breakpoint_re_set.
1275 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
1276 clear_symtab_users.
1277 * objfiles.c (free_all_objfiles): Likewise.
1278 * remote-m32r-sdi.c (m32r_load): Likewise.
1279 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1280 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
1281 clear_symtab_users with ADD_FLAGS.
1282 (reread_symbols): Use parameter 0 for clear_symtab_users.
1283 (clear_symtab_users): New parameter add_flags. Do not call
1284 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
1285 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
1286 * symtab.h (clear_symtab_users): New parameter add_flags.
1287
3a182a69
JK
12882010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1289
1290 Fix GCC false warning.
1291 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
1292
3a9d7214
PM
12932010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
1294
1295 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
1296 display of type of method arguments.
1297
09ca9e2e
TT
12982010-10-15 Tom Tromey <tromey@redhat.com>
1299
1300 PR python/11948:
1301 * varobj.c (value_get_print_value): Use val_print_string to print
1302 lazy strings.
1303 * python/py-prettyprint.c (print_string_repr): Use
1304 val_print_string to print lazy strings. Fix cleanup logic.
1305 (print_children): Likewise.
1306 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
1307 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
1308 Change return type to 'void', add 'addr' argument.
1309 * value.h (val_print_string): Update.
1310 * valprint.c (val_print_string): Add 'encoding' argument.
1311 * printcmd.c (print_formatted): Update.
1312 * p-valprint.c (pascal_val_print): Update.
1313 * m2-valprint.c (print_unpacked_pointer): Update.
1314 (m2_print_array_contents): Likewise.
1315 * jv-valprint.c (java_value_print): Update.
1316 * f-valprint.c (f_val_print): Update.
1317 * c-valprint.c (c_val_print): Update.
1318 * auxv.c (fprint_target_auxv): Update.
1319
92163a10
JK
13202010-10-15 Doug Evans <dje@google.com>
1321 Jan Kratochvil <jan.kratochvil@redhat.com>
1322
1323 PR exp/12117
1324 * gdbtypes.c (check_typedef): Clean up function comment.
1325 Keep track of instance flags as we strip typedefs and create a new
1326 type to preserve them if necessary.
1327 * gdbtypes.h (type) <instance_flags>: Extend the comment.
1328
dae71413
PM
13292010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
1330
1331 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
1332
7062b0a0
SW
13332010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
1334
1335 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
1336 * gdbtypes.c (rank_one_type): Move type comparison code out of here
1337 to...
1338 (types_equal): ...here. And changed it as follows:
1339 Outside of typedefs type must be of the same TYPE_CODE.
1340 When compairing two pointers or references they are equal if their
1341 targets are equal.
1342 Correct pointer conversions.
1343
5c3da5ea
PM
13442010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
1345
1346 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
1347 having fields without names.
1348
577ce03a
TT
13492010-10-13 Tom Tromey <tromey@redhat.com>
1350
1351 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
1352
a737a51b
DE
13532010-10-13 Doug Evans <dje@google.com>
1354
0e3509db
DE
1355 New python module gdb.types.
1356 * NEWS: Document it.
1357 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
1358 * python/lib/gdb/types.py: New file.
1359
a737a51b
DE
1360 * c-typeprint.c: Whitespace cleanup.
1361 (cp_type_print_method_args): Remove unnecessary forward decl.
1362 (cp_type_print_derivation_info): Ditto.
1363 (c_type_print_varspec_prefix): Mark as static at definition.
1364 (c_type_print_modifier): Fix arg descriptions.
1365
8dc78533
JK
13662010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1367
1368 * python/py-breakpoint.c (bppy_set_condition): New comment.
1369 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
1370 failed PyUnicode_Decode.
1371 (cmdpy_completer): Skip element for failed
1372 python_string_to_host_string.
1373 (cmdpy_init): Return -1 on failed python_string_to_host_string.
1374 * python/py-frame.c (frapy_read_var): Extend the function comment.
1375 * python/py-function.c (fnpy_init): Return -1 on failed
1376 python_string_to_host_string.
1377 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
1378 the function comment.
1379 (infpy_search_memory): Extend the function comment. Remove the
1380 PyErr_SetString call on already set error state.
1381 * python/py-param.c (set_parameter_value): Extend the function
1382 comment. Return -1 on failed python_string_to_host_string, twice.
1383 (set_attr): Extend the function comment.
1384 (compute_enum_values): Extend the function comment. New variable
1385 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
1386 failed python_string_to_host_string.
1387 (get_doc_string): Call gdbpy_print_stack on failed
1388 python_string_to_host_string.
1389 (parmpy_init): Extend the function comment.
1390 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
1391 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
1392 failed python_string_to_host_string.
1393 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
1394 (valpy_binop, valpy_richcompare): Extend the function comment.
1395 * python/python.c
1396 (struct python_env) <error_type, error_value, error_traceback>: New
1397 fields.
1398 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
1399 (ensure_python_env): Call PyErr_Fetch.
1400 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
1401 failed convert_value_from_python.
1402 (value_get_print_value): Call gdbpy_print_stack on failed
1403 python_string_to_target_python_string.
1404
1bdb0c54
TT
14052010-10-12 Tom Tromey <tromey@redhat.com>
1406
1407 * python/py-prettyprint.c (search_pp_list): Fix error checking.
1408
0526b37a
SW
14092010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
1410
1411 * gdbtypes.c (do_is_ancestor): New function.
1412 (is_ancestor): Use do_is_ancestor.
1413 (is_public_ancestor): Use do_is_ancestor.
1414
c1b5be38
PM
14152010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1416
1417 * ser-go32.c (struct dos_ops): Add missing fdopen field.
1418
68770265
MGD
14192010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1420
1421 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
1422
64b00020
DE
14232010-10-11 Doug Evans <dje@google.com>
1424
1425 * c-typeprint.c (c_type_print_modifier): Add note that this prints
1426 the address space id too.
1427
43b8e241
JK
14282010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 Fix attaching to re-prelinked executables on ppc64.
1431 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
1432 initialize it, try to adjust FILESZ field by it.
1433
417b5110
DJ
14342010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
1435
1436 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
1437 messages if info_verbose.
1438
3bdf2bbd
KW
14392010-10-08 Ken Werner <ken.werner@de.ibm.com>
1440
1441 * valops.c (value_cast): Handle vector types.
1442 * valarith.c (value_binop): Widen scalar to vector if appropriate.
1443
ec3d575a
UW
14442010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1445
1446 * arm-tdep.c (thumb_expand_immediate): New function.
1447 (thumb_instruction_changes_pc): Likewise.
1448 (thumb2_instruction_changes_pc): Likewise.
1449 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
1450 prologue parsing. Improved support for optimized code.
1451 (thumb_scan_prologue): Do not reply on line-number information,
1452 use same heuristics as arm_scan_prologue insead.
1453 (skip_prologue_function): Accept functions
1454 "__tls_get_addr" and "__aeabi_read_tp".
1455
4024ca99
UW
14562010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
1457 Daniel Jacobowitz <dan@codesourcery.com>
1458
1459 * arm-tdep.c (thumb_in_function_epilogue_p)
1460 (arm_in_function_epilogue_p): New.
1461 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
1462 gdbarch_in_function_epilogue_p callback.
1463
855c153f
DE
14642010-10-07 Doug Evans <dje@google.com>
1465
00e14314
DE
1466 * cc-with-index.sh (output_file): Default to a.out.
1467
3876f04e
DE
1468 * dwarf2read.c (mapped_index): Rename member index_table to
1469 symbol_table and index_table_slots to symbol_table_slots.
1470 All uses updated.
1471 (create_symbol_hash_table): Renamed from create_index_table.
1472 All callers updated.
1473 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
1474 (write_hash_table): Rename local index_table to symbol_hash_table.
1475
855c153f
DE
1476 * addrmap.h (addrmap_foreach_fn): New typedef.
1477 (addrmap_foreach): Declare.
1478 * addrmap.c (struct addrmap_funcs): New member foreach.
1479 (addrmap_foreach): New function.
1480 (addrmap_fixed_foreach): New function.
1481 (addrmap_fixed_funcs): Update.
1482 (struct mutable_foreach_data): New struct.
1483 (addrmap_mutable_foreach_worker): New function.
1484 (addrmap_mutable_foreach): New function.
1485 (addrmap_mutable_funcs): Update.
1486
1d2a4540
PH
14872010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1488
1489 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
1490 more cases.
1491
40658b94
PH
14922010-10-07 Paul Hilfinger <hilfinger@adacore.com>
1493
1494 * ada-lang.c (full_match): Declare.
1495 (ada_match_name): Rename to match_name (we should avoid prefixing static
1496 symbols with "ada_").
1497 (match_name): New name for ada_match_name.
1498 (struct ada_psym_data): Remove and replace with...
1499 (struct match_data): User data for map_matching_symbols.
1500 (ada_add_psyms): Remove.
1501 (aux_add_nonlocal_symbols): New function, used as callback for
1502 map_matching_symbols.
1503 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
1504 symbols.
1505 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
1506 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
1507 Rework to use map_matching_symbols instead of map_ada_symtabs.
1508 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
1509 * psymtab.c: Include dependency on dictionary.h.
1510 (match_partial_symbol): New function.
1511 (ada_lookup_partial_symbol): Remove.
1512 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
1513 (map_matching_symbols_psymtab): New function.
1514 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
1515 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
1516
c4d840bd
PH
15172010-10-06 Paul Hilfinger <hilfinger@adacore.com>
1518
1519 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
1520 (wild_match): Change API to be consistent with that of strcmp_iw;
1521 return 0 for a match, and switch operand order.
1522 (full_match): New function.
1523 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
1524 matching to allow use of hashing.
1525 * dictionary.c (struct dict_vector): Generalize iter_name_first,
1526 iter_name_next ot iter_match_first, iter_match_next.
1527 (iter_name_first_hashed): Replace with iter_match_first_hashed.
1528 (iter_name_next_hashed): Replace with iter_match_next_hashed.
1529 (iter_name_first_linear): Replace with iter_match_first_linear.
1530 (iter_name_next_linear): Replace with iter_match_next_linear.
1531 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
1532 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
1533 (dict_iter_match_first): New function.
1534 (dict_iter_match_next): New function.
1535 (dict_hash): New function.
1536 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
1537 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 1538
543ecec7
DE
15392010-10-06 Doug Evans <dje@google.com>
1540
1541 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
1542
2f608a3a
KW
15432010-10-06 Ken Werner <ken.werner@de.ibm.com>
1544
1545 * dwarf2read.c (read_tag_const_type): Handle const arrays.
1546
aa2e2d8d
DE
15472010-10-06 Doug Evans <dje@google.com>
1548
9c9606fb
DE
1549 * Makefile.in (REQUIRED_SUBDIRS): New var.
1550 (subdir_do): Verify required subdir Makefiles exist.
1551
aa2e2d8d
DE
1552 Create subdir data-directory.
1553 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
1554 data-directory/Makefile.in.
1555 (SUBDIRS): Add data-directory.
1556 (all): Remove xml-syscall-copy dependency.
1557 (xml-syscall-copy): Moved to data-directory/Makefile.in as
1558 stamp-syscalls.
1559 (xml-syscall-install): Moved to data-directory/Makefile.in as
1560 install-syscalls.
1561 (install-only): Remove xml-syscall-install dependency.
1562 (all-data-directory): New rule.
1563 (data-directory/Makefile): New rule.
1564 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
1565 * configure: Regenerate.
1566 * data-directory/Makefile.in: New file.
1567 * python/lib/gdb/__init__.py: New file.
1568
aa27d0b3
JB
15692010-10-06 Joel Brobecker <brobecker@adacore.com>
1570
1571 Fix ARI warnings in advance_wild_match.
1572 * ada-lang.c (advance_wild_match): Delete local variable t2.
1573 Adjust code accordingly. Minor reformatting.
1574
2844d6b5
KW
15752010-10-06 Ken Werner <ken.werner@de.ibm.com>
1576
1577 * gdbtypes.h (struct main_type): Remove flag_nottext.
1578 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
1579 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
1580 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
1581 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
1582 of TYPE_FLAG_NOTTEXT.
1583 (init_type): Remove the initialization of the flag_nottext field.
1584 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
1585 TYPE_FLAG_NOTTEXT.
1586 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
1587
2fdf6df6
DE
15882010-10-04 Doug Evans <dje@google.com>
1589
ea65fe05
DE
1590 * cc-with-index.sh: New file.
1591
2fdf6df6
DE
1592 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
1593 function comment.
1594 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
1595 (create_cus_from_index, create_addrmap_from_index): Ditto.
1596 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
1597 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
1598 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
1599 (eq_strtab_entry, create_strtab, add_string): Ditto.
1600 (hash_strtab_entry): Ditto.
1601 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
1602 (create_index_table, create_mapped_symtab, find_slot): Ditto.
1603 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
1604 (write_hash_table, add_address_entry, write_psymbols): Ditto.
1605 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
1606 (write_psymtabs_to_index): Ditto.
2fdf6df6 1607
40bc484c
JB
16082010-10-04 Joel Brobecker <brobecker@adacore.com>
1609
1610 * ada-lang.c: #include "value.h".
1611 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
1612 arguments. Implement using value_allocate_space_in_inferior
1613 instead of allocating memory from the stack.
1614 (make_array_descriptor): Remove gdbarch and sp parameters. Update
1615 calls to ensure_lval.
1616 (ada_convert_actual): Remove gdbarch and sp parameters. Update
1617 calls to make_array_descriptor and ensure_lval.
1618 * ada-lang.h (ada_convert_actual): Update declaration.
1619 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
1620
f17618ea
DE
16212010-10-04 Doug Evans <dje@google.com>
1622
1623 * python/python.c (_initialize_python): Define new function
1624 GdbSetPythonDirectory in python. Use it to update sys.path and
1625 gdb.__path__.
1626
83e3a93c
PH
16272010-10-03 Paul Hilfinger <hilfinger@adacore.com>
1628
1629 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
1630 incorporating and generalizing print_record_field_types.
1631 (print_record_field_types): Change return value and update comment.
1632 Re-implement using print_selected_record_field_types.
1633 (print_choices): Print "=>" here.
1634 Handle case of unencoded variant branch.
1635 (print_variant_clauses): Reformat comment.
1636 Special-case unencoded variant branch.
1637
16382010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
1639
1640 * ada-lang.c (wild_match): Reimplement.
1641 Change API to eliminate unused length argument, reverse arguments and
1642 make 0 the 'true' return value.
1643 (advance_wild_match): New auxiliary function for wild_match to improve
1644 readability.
1645 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
1646 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
1647 API for wild_match.
1648 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
1649 wild_match.
1650 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
1651
11570e71
DE
16522010-10-01 Doug Evans <dje@google.com>
1653
1654 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
1655 for `save gdb-index' command.
1656
72b9f47f
TT
16572010-10-01 Tom Tromey <tromey@redhat.com>
1658
1659 * symfile.h (allocate_symtab): Update.
1660 * symfile.c (allocate_symtab): Make 'filename' const.
1661 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
1662 (add_psymbol_to_list): Likewise.
1663 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
1664 const.
1665 (add_psymbol_to_list): Update.
1666 * mdebugread.c (new_symtab): Make 'name' const.
1667 (psymtab_to_symtab_1): Make 'filename' const.
1668 * elfread.c (elfstab_offset_sections): Update.
1669 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
1670 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
1671 (psymtab_include_file_name): Update.
1672 * dbxread.c (find_stab_function_addr): Make 'filename' const.
1673 * buildsym.h (start_subfile): Update.
1674 * buildsym.c (start_subfile): Make arguments const.
1675
55e39473
MS
16762010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
1677
1678 * fork-child.c (breakup_args): Fix crash if shell forking is
1679 disabled at compile time.
1680
05e522ef
JB
16812010-10-01 Joel Brobecker <brobecker@adacore.com>
1682
1683 * ada-lang.c (desc_bounds): Add handling of the case where
1684 the P_BOUNDS field is a pointer to a stub.
1685 (desc_data_target_type): Same for P_ARRAY field.
1686 (ada_check_typedef): Strip the typedef layers from the type
1687 found by ada_find_any_type.
1688
49a45ecf
JB
16892010-10-01 Joel Brobecker <brobecker@adacore.com>
1690
1691 * sparc-tdep.c (sparc32_frame_align): New function.
1692 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
1693 * sparc64-tdep.c (sparc64_frame_align): New function.
1694 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
1695
a5916a62
L
16962010-09-30 H.J. Lu <hongjiu.lu@intel.com>
1697
1698 * defs.h (MAX_REGISTER_SIZE): Set to 64.
1699
00b5771c
TT
17002010-09-30 Tom Tromey <tromey@redhat.com>
1701
1702 * symfile.h (struct sym_fns) <next>: Remove.
1703 (add_symtab_fns): Update.
1704 * symfile.c (sym_fns_ptr): New typedef.
1705 (symtab_fns): Now a VEC.
1706 (add_symtab_fns): Update. Change argument type.
1707 (find_sym_fns): Update. Change return type.
1708 (get_symfile_segment_data): Update.
1709 * objfiles.h (struct objfile) <sf>: Now const.
1710 * somread.c (som_sym_fns): Now const. Update.
1711 * xcoffread.c (xcoff_sym_fns): Now const. Update.
1712 * mipsread.c (ecoff_sym_fns): Now const. Update.
1713 * machoread.c (macho_sym_fns): Now const. Update.
1714 * elfread.c (elf_sym_fns): Now const. Update.
1715 (elf_sym_fns_gdb_index): Likewise.
1716 * dbxread.c (aout_sym_fns): Now const. Update.
1717 * coffread.c (coff_sym_fns): Now const. Update.
1718
38f12cfc
TT
17192010-09-30 Tom Tromey <tromey@redhat.com>
1720
1721 * value.c (value_primitive_field): Take 'offset' into account for
1722 packed field.
1723
9ae8282d
TT
17242010-09-30 Tom Tromey <tromey@redhat.com>
1725
1726 * completer.c (count_struct_fields): Handle anonymous structs and
1727 unions.
1728 (add_struct_fields): Likewise.
1729
e9e07ba6
JK
17302010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 Fix printing parameters of inlined functions.
1733 * ada-lang.c (is_known_support_routine)
1734 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
1735 for find_frame_funname.
1736 * python/py-frame.c (frapy_name): Likewise.
1737 * stack.c (find_frame_funname): New parameter funcp. Update the
1738 function comment. Fill it in.
1739 (print_frame): New variable func. Initialize it by
1740 find_frame_funname. Print arguments only if FUNC is not NULL. Use
1741 FUNC as the parameter of print_args_stub.
1742 * stack.h (find_frame_funname): New parameter funcp. Remove the
1743 function declaration comment.
1744
cd2effb2
JK
17452010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1746
1747 PR corefiles/12071.
1748 * inferior.c (have_live_inferiors): New variables old_chain, inf and
1749 tp. Iterate INFERIOR_LIST and call target_has_execution.
1750
bceffbf3
JK
17512010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1752
1753 Fix GDB crash on inferior calls with self-referencing classes.
1754 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
1755 member fields.
1756
abc72ce4
DE
17572010-09-29 Doug Evans <dje@google.com>
1758
1759 Workaround for gcc/45682.
1760 * dwarf2read.c (partial_die_info): New fields fixup_called,
1761 linkage_name.
1762 (guess_partial_die_structure_name): Renamed from guess_structure_name.
1763 Move definition next to use. Use linkage_name to determine if class
1764 is in a namespace. All callers updated.
1765 (fixup_partial_die): Return early if already called.
1766 Set fixup_called when done.
1767 (guess_full_die_structure_name): New function.
1768 (determine_prefix): Call it for class/struct/union dies if c++ and
1769 .debug_types section is present and parent is DW_TAG_compile_unit.
1770
0ac7be25
JB
17712010-09-28 Joel Brobecker <brobecker@adacore.com>
1772
1773 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1774 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1775
6e1bb179
JB
17762010-09-28 Joel Brobecker <brobecker@adacore.com>
1777
1778 * NEWS: Announce Ravenscar Profile support.
1779
036b1ba8
JB
17802010-09-28 Joel Brobecker <brobecker@adacore.com>
1781 Jerome Guitton <guitton@adacore.com>
1782
1783 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1784 New files.
1785 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1786 ravenscar-sparc-thread.o to gdb_target_obs.
1787
474011fb
JB
17882010-09-28 Joel Brobecker <brobecker@adacore.com>
1789
1790 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1791 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1792
99e24b90
PM
17932010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1794
1795 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1796 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1797 skip_main_prologue method.
1798
987d643c
TT
17992010-09-27 Tom Tromey <tromey@redhat.com>
1800
1801 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1802 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1803 Only emit a given psymbol once.
1804 (struct signatured_type_index_data) <psyms_seen>: New field.
1805 (write_one_signatured_type): Update.
1806 (cleanup_htab): New function.
1807 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1808 version to 3.
1809 (save_gdb_index_command): Update index documentation.
1810
d3aff959
TT
18112010-09-27 Tom Tromey <tromey@redhat.com>
1812
1813 * bcache.c (expand_hash_table): Use hash_function, not hash.
1814
716b65bf
TT
18152010-09-27 Tom Tromey <tromey@redhat.com>
1816
1817 * gdb_wchar.h: Change minimum libiconv to 0x108.
1818
1736ad11
JK
18192010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1820
1821 Fix lost siginfo_t for inferior calls.
1822 * infrun.c
1823 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1824 (save_inferior_thread_state): New variables regcache, gdbarch and
1825 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1826 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1827 using REGCACHE.
1828 (restore_inferior_thread_state): New variables regcache and gdbarch.
1829 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1830 REGCACHE. Free also SIGINFO_DATA.
1831
4b5246aa
TT
18322010-09-24 Tom Tromey <tromey@redhat.com>
1833
1834 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1835 MAYBE_SWAPs.
1836 (dw2_map_symbol_names): Likewise.
1837
2a7d6a25
SW
18382010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1839
1840 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1841 discard_cleanups do_cleanups.
1842
b53a1623
PA
18432010-09-24 Pedro Alves <pedro@codesourcery.com>
1844
e6ee044d
PA
1845 PR gdb/11842
1846
b53a1623
PA
1847 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1848 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1849 si_code is < 0. Check for si_code == SI_TIMER before checking for
1850 si_code < 0.
1851
96a8853a
PA
18522010-09-24 Pedro Alves <pedro@codesourcery.com>
1853
1854 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1855
39383a48
JB
18562010-09-22 Joel Brobecker <brobecker@adacore.com>
1857
1858 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1859 debugging a core file.
1860
d31d2fc3
JK
18612010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1862
1863 Code cleanup.
1864 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1865 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1866 xfree.
1867 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1868 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1869 Remove.
1870 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1871 Remove the conditional.
1872 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1873
7f6130ff
JK
18742010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1875
1876 * main.c: Include objfiles.h.
1877 (captured_main): New variable objfile. Call
1878 load_auto_scripts_for_objfile for ALL_OBJFILES.
1879
c2b0a229
JK
18802010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1881
1882 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1883 DW_TAG_constant.
1884
72929c62
JB
18852010-09-22 Joel Brobecker <brobecker@adacore.com>
1886
1887 * dwarf2read.c (scan_partial_symbols): Add handling of
1888 DW_TAG_constant DIEs.
1889 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1890
496c0e1b
JB
18912010-09-22 Joel Brobecker <brobecker@adacore.com>
1892
1893 * configure.ac: Add support for --enable-gdbserver.
1894 * configure: Regenerate.
1895
ec322823
SW
18962010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1897
1898 PR C++/12028
1899 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1900 'old_cleanups' reassignment.
1901
1558ab4c
JK
19022010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1903
1904 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1905 characters.
1906
875b4ff5
PM
19072010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1908
1909 PR mi/11407
1910 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1911 read_var_value and common_val_print and print a warning.
1912
65dedcb2
JK
19132010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1914
1915 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1916 keep the list in alphabetical order. Use longer e-mail address.
1917
0e780a22
TT
19182010-09-15 Tom Tromey <tromey@redhat.com>
1919
1920 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1921
62234ccc
TT
19222010-09-15 Tom Tromey <tromey@redhat.com>
1923
1924 * charset.c (iconv_open): New define.
1925 (iconv): Likewise.
1926 (iconv_close): Likewise.
1927 (phony_iconv_open): Add "phony_" prefix.
1928 (phony_iconv_close): Likewise.
1929 (phony_iconv): Likewise.
1930 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1931 Change how INTERMEDIATE_ENCODING is defined.
1932
4950bc1c
DE
19332010-09-15 Doug Evans <dje@google.com>
1934
1935 * dwarf2read.c (struct die_info): Fix comment.
1936
349126ea
AM
19372010-09-15 Alan Modra <amodra@gmail.com>
1938
1939 PR 4606
1940 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1941 than setting SEC_NEVER_LOAD on sections that need not be copied.
1942
923c6a3d
TT
19432010-09-14 Tom Tromey <tromey@redhat.com>
1944
1945 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1946 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1947 Declare.
1948 * symfile.h (extend_psymbol_list): Remove.
1949 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1950 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1951 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1952
a9e6a4bb
JK
19532010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1956 Update the comment.
1957
7155d578
TT
19582010-09-14 Tom Tromey <tromey@redhat.com>
1959
1960 PR symtab/8399:
1961 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1962 for unrecognized frame base expression.
1963
515ed532
TT
19642010-09-14 Tom Tromey <tromey@redhat.com>
1965
1966 PR exp/11803:
1967 * value.c (value_static_field): Use value_of_variable.
1968
b467f580
PM
19692010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1970
1971 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1972 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1973
450ca57c
SW
19742010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1975
1976 PR symtab/11992:
1977 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1978 UNKNOWN_CPP_NAME.
1979
1aee7009
JB
19802010-09-13 Joel Brobecker <brobecker@adacore.com>
1981
1982 * NEWS: Add x86-lynxos to the list of platforms supported by
1983 gdbserver.
1984
5ec6ebf9
JB
19852010-09-13 Joel Brobecker <brobecker@adacore.com>
1986
1987 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1988
1863c96c
TT
19892010-09-13 Tom Tromey <tromey@redhat.com>
1990
1991 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1992
0c5acf93
L
19932010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1994
1995 * i386-tdep.c (i386_ymm_type): Set type name to
1996 builtin_type_vec256i.
1997
1c6272a6
MS
19982010-09-12 Michael Snyder <msnyder@vmware.com>
1999
2000 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
2001
e866c497
L
20022010-09-12 H.J. Lu <hongjiu.lu@intel.com>
2003
2004 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
2005
9191d390
L
20062010-09-11 H.J. Lu <hongjiu.lu@intel.com>
2007
2008 * amd64-tdep.c (amd64_register_name): Removed.
2009 (amd64_init_abi): Don't call set_gdbarch_register_name.
2010
2011 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
2012
2013 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
2014
8d4d924b
JK
20152010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 Paul Bolle <pebolle@tiscali.nl>
2017
2018 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
2019 * cli-logging.c (struct saved_output_files) <targerr>: New.
2020 (set_logging_redirect, pop_output_files, handle_redirections):
2021 Redirect also gdb_stdtargerr.
2022 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
2023 declarations.
2024 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
2025 also gdb_stdtargerr.
2026 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
2027 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
2028 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
2029 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
2030 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
2031 New functions.
2032
3329c4b5
PM
20332010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2034
2035 * hppa-tdep.c (unwind_command): Use host_address_to_string function
2036 to display a host address.
2037 * monitor.c (monitor_read_memory): Likewise.
2038 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
2039
5e8db398
PM
20402010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2041
2042 * coffread.c (struct coff_symbol): Change c_value type from `long' to
2043 `CORE_ADDRESS' as it might contain target addresses.
2044
37049e31
PM
20452010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
2046
2047 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
2048 before cast to pointer to avoid warning.
2049
351a3e56
KB
20502010-09-09 Kevin Buettner <kevinb@redhat.com>
2051
2052 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
2053 type to be signed.
349126ea 2054
6afafb54
UW
20552010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2056
2057 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
2058 anonymous class partial DIEs.
2059
60430eff
DJ
20602010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2061
2062 * dwarf2read.c (dwarf2_compute_name): Check that the first
2063 argument is a pointer.
2064
f1078f66
DJ
20652010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2066
2067 * dwarf2read.c (read_func_scope, read_structure_type)
2068 (read_common_block): Check for a NULL return from new_symbol.
2069
82430852
JK
20702010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2071
2072 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
2073
c767944b
DJ
20742010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2075
2076 * dwarf2read.c (read_structure_type): Move processing of
2077 fields and member functions from here...
2078 (process_structure_scope): ... to here.
2079
561d3825
DJ
20802010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2081
2082 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
2083 the domain type.
2084 (gnuv3_make_method_ptr): Likewise.
2085
9bd89d67
TT
20862010-09-08 Tom Tromey <tromey@redhat.com>
2087
2088 * breakpoint.c (create_breakpoint): Add missing _().
2089
1d040b0d
DE
20902010-09-08 Doug Evans <dje@google.com>
2091
2092 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
2093
774b6a14
TT
20942010-09-08 Tom Tromey <tromey@redhat.com>
2095
2096 Revert:
2097 2010-09-01 Tom Tromey <tromey@redhat.com>
2098 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
2099 symtab.h: Revert earlier change.
2100
fc956729
SW
21012010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
2102
2103 * psymtab.c (add_psymbol_to_bcache): Initialize
2104 obj_section.
2105 memset psymbol.ginfo.value to 0.
2106
48f9886d
PA
21072010-09-06 Pedro Alves <pedro@codesourcery.com>
2108
2109 * infrun.c (resume): Extend comment on ignoring single-step
2110 requests on vfork parents waiting for a vfork-done.
2111
423ec54c
JK
21122010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2113 Pedro Alves <pedro@codesourcery.com>
2114
2115 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
2116 is NULL.
2117 * fork-child.c (startup_inferior) <resume_signal>: Use enum
2118 target_signal type.
2119 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
2120 calling strsignal. Use enum target_signal type for saved_signo.
2121 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
2122 (linux_nat_wait_1): Use enum target_signal type for signo. Use
2123 target_signal_to_host before calling strsignal.
2124 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
2125 TARGET_SIGNAL_0.
2126
a6eb9bc8
JK
21272010-09-06 Pedro Alves <pedro@codesourcery.com>
2128 Jan Kratochvil <jan.kratochvil@redhat.com>
2129
2130 * common/signals.c (ANY): Remove.
2131 (SET): No longer use ANY.
2132
74609e71
YQ
21332010-09-06 Yao Qi <yao@codesourcery.com>
2134
2135 * infrunc(resume): When inferior is waiting_for_vfork_done,
2136 clear step and don't use displaced stepping.
2137
8464be76
DJ
21382010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
2139
2140 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
2141 value specially.
2142
33d62d64
JK
21432010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2144
2145 Code cleanup - split print_stop_reason.
2146 * infrun.c (enum inferior_stop_reason): Remove.
2147 (print_stop_reason): Remove by splitting into ...
2148 (print_exited_reason, print_signal_exited_reason)
2149 (print_no_history_reason, print_signal_received_reason)
2150 (print_end_stepping_range_reason): ... these new functions. Update
2151 the preceding comment.
2152 (handle_inferior_event): Change the calls to print_exited_reason,
2153 print_signal_exited_reason, print_no_history_reason,
2154 print_signal_received_reason, print_end_stepping_range_reason.
2155 (handle_step_into_function, handle_step_into_function_backward):
2156 Change the calls to print_end_stepping_range_reason.
2157
14dba4b4
JK
21582010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2159
2160 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
2161 * cli-out.c: Include vec.h.
2162 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
2163 variable stream, initialize it, use it.
2164 (cli_redirect): New function comment. Replace the stream and
2165 original_stream fields by the new streams field. Remove the
2166 original_stream != NULL conditional, assert error on NULL instead.
2167 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
2168 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
2169 original_stream fields by the new streams field.
2170 (cli_out_set_stream): Replace the stream field by the new streams
2171 field.
2172 * cli-out.h: Include vec.h.
2173 (ui_filep): New typedef, call DEF_VEC_P for it.
2174 (struct cli_ui_out_data): Replace the stream and original_stream
2175 fields by the new streams field.
2176 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
2177 NULL first. Extend the comment.
2178 (handle_redirections): Call ui_out_redirect with output.
2179 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
2180 calls outside of the TRY_CATCH block.
2181
b04bc5d4 21822010-09-03 Joel Brobecker <brobecker@adacore.com>
2183
2184 GDB 7.2 released.
2185
080db4e0
JB
21862010-09-02 Joel Brobecker <brobecker@adacore.com>
2187
2188 Back out the following change:
2189 | 2010-06-29 Hui Zhu <teawater@gmail.com>
2190 | * record.c (set_record_pic_cmdlist,
2191 | show_record_pic_cmdlist): New variables.
2192 | (set_record_pic_command,
2193 | show_record_pic_command): New functions.
2194 | (record_pic_function, record_pic_line, record_pic_enum,
2195 | set_record_pic_type, record_pic_hide_nofunction,
2196 | record_pic_hide_nosource, record_pic_hide_same): New variables.
2197 | (record_pic_fputs): New function.
2198 | (function_list, node_list, edge_list): New struct.
2199 | (function_list, node_list, edge_list): New variables.
2200 | (record_pic_cleanups, record_pic_node,
2201 | record_pic_edge, cmd_record_pic): New functions.
2202 | (_initialize_record): Add new commands for record pic.
2203
0a4f61e3
DJ
22042010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
2205
2206 * config.in, configure: Regenerated.
2207 * configure.ac: Check for waitpid.
2208 * ser-pipe.c (pipe_close): Wait for the program to exit.
2209
58b61394
JK
22102010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2211
ba720883 2212 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
2213 (set_logging_overwrite): New function.
2214 (logging_redirect): New comment.
2215 (logging_no_redirect_file, set_logging_redirect)
2216 (pop_output_files) <logging_no_redirect_file>: New.
2217 (handle_redirections) <!logging_redirect>: New variable
2218 no_redirect_file. Remove file autoclose for tee_file_new. No longer
2219 discard cleanup for the close of former OUTPUT. Set
2220 LOGGING_NO_REDIRECT_FILE.
2221 (handle_redirections) <logging_redirect>: gdb_assert
2222 LOGGING_NO_REDIRECT_FILE.
2223 (show_logging_command) <logging_redirect handling>: Adjust messages
2224 for SAVED_FILENAME not NULL.
2225 (_initialize_cli_logging): Install set_logging_overwrite and
2226 set_logging_redirect.
2227
706774f2
JK
22282010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2229
2230 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
2231
9a35ccf7
JK
22322010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
2235 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
2236 add $(GDB_WARN_CFLAGS_NO_FORMAT).
2237 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
2238
ba9b2ec3
YQ
22392010-09-02 Yao Qi <yao@codesourcery.com>
2240
2241 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
2242 number from a WIFSIGNALED status.
2243
faf68db7
TT
22442010-09-01 Tom Tromey <tromey@redhat.com>
2245
2246 * symtab.h (lookup_type_symbol): Declare.
2247 * symtab.c (lookup_symbol_in_language_full): Rename from
2248 lookup_symbol_in_language. Add 'for_type' argument.
2249 (lookup_symbol_in_language): New function.
2250 (lookup_type_symbol): Likewise.
2251 (lookup_symbol_aux): Add 'for_type' argument.
2252 (match_symbol_aux): New function.
2253 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
2254 (match_transparent_type): New function.
2255 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
2256 * symfile.h (struct quick_symbol_functions)
2257 <pre_expand_symtabs_matching>: Remove.
2258 <expand_one_symtab_matching>: New field.
2259 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
2260 (pre_expand_symtabs_matching_psymtabs): Remove.
2261 (psym_functions): Update.
2262 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
2263 * dwarf2read.c (dw2_lookup_symbol): Update comment.
2264 (dw2_pre_expand_symtabs_matching): Remove.
2265 (dw2_expand_one_symtab_matching): New function.
2266 (dwarf2_gdb_index_functions): Update.
2267
248c9dbc
JB
22682010-09-01 Joel Brobecker <brobecker@adacore.com>
2269
2270 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
2271
f75d858b
MK
22722010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
2273
2274 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
2275 as a feature reported by -list-target-features.
2276
0482b03b
JB
22772010-09-01 Joel Brobecker <brobecker@adacore.com>
2278
2279 * features/Makefile (WHICH): Add rs6000/powerpc-32.
2280 (powerpc-32.o, powerpc-32.c): New rules.
2281 (clean): Also remove powerpc-32.c.
2282 * regformats/rs6000/powerpc-32.dat: Generate.
2283
710e1a31
SW
22842010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2285
2286 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
2287 psymbol_bcache_init.
2288 * psymtab.h (psymbol_bcache_init): New function prototype.
2289 (psymbol_bcache_free): New function prototype.
2290 (psymbol_bcache_get_bcache): New function prototype.
2291 * psymtab.c (psymbol_bcache_init): New function.
2292 (psymbol_bcache_free): New function.
2293 (psymbol_bcache_full): New function.
2294 (psymbol_bcache_get_bcache): New function.
2295 (add_psymbol_to_bcache): use psymbol_bcache_full.
2296 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
2297 psymbol_bcache.
2298 * symmisc.c (print_symbol_bcache_statistics): Updated.
2299 (print_objfile_statistics): Updated.
2300 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
2301 psymbol_cache.
2302 (free_objfile): Use psymbol_bcache_free.
2303
64382290
TT
23042010-08-31 Tom Tromey <tromey@redhat.com>
2305
2306 PR c++/11961:
2307 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
2308 Don't set TYPE_NAME on the type.
2309
8bbed405
MS
23102010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2311
2312 * infrun.c (set_exec_direction_func): Error out if target does not
2313 support reverse execution.
2314
06253dd3
JK
23152010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2316
2317 Make linux_get_siginfo_type `type *' unique.
2318 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
2319 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
2320 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
2321 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
2322 (_initialize_linux_tdep): New.
2323
b8edc417
JK
23242010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 Code cleanup.
2327 * defs.h (find_memory_region_ftype): New typedef.
2328 (exec_set_find_memory_regions): Use it.
2329 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
2330 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
2331 * gcore.c (objfile_find_memory_regions): Likewise.
2332 * gnu-nat.c (gnu_find_memory_regions): Likewise.
2333 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
2334 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
2335 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
2336 find_memory_region_ftype.
2337 (insert_dbx_link_bpt_in_region): Likewise.
2338 (iterate_over_mappings): Likewise. Drop the comment part about the
2339 function prototype.
2340 (find_memory_regions_callback): Use find_memory_region_ftype.
2341 (proc_find_memory_regions): Likewise.
2342 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
2343 find_memory_region_ftype.
2344 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
2345 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
2346
cbd70537
SW
23472010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
2348
2349 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
2350 'static partial_symbol psymbol'.
2351 (psymbol_hash): New function.
2352 (psymbol_compare): New function.
2353 * bcache.c (hash_continue): New.
2354 (hash): Use hash_continue.
2355 * bcache.c: Add hash_function and compare_function
2356 pointers to bcache struct.
2357 (bcache_full): Use bcache->hash_function, and
2358 bcache->compare_function.
2359 (bcache_compare): New function.
2360 (bcache_xmalloc): Take hash_function and
2361 compare_function arguments and initialize the
2362 bcach's pointers.
2363 Updated comment.
2364 * objfiles.c (allocate_objfile): Updated.
2365 * symfile.c (reread_symbols): Updated.
2366 * python/py-type.c (typy_richcompare): Updated.
2367
03f17ccf
TT
23682010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
2369 Tom Tromey <tromey@redhat.com>
2370
2371 PR python/11792:
2372 * python/py-value.c (valpy_get_dynamic_type): New function.
2373 (value_object_getset): Add "dynamic_type".
2374 (valpy_get_type): Fail on error.
2375
25b41d01
YQ
23762010-08-30 Yao Qi <yao@codesourcery.com>
2377
2378 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
2379 (arm_linux_syscall_next_pc): New.
2380 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
2381 (arm_linux_init_abi): Initialize syscall_next_pc.
2382 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
2383 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
2384 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
2385 Declare arm_frame_is_thumb.
2386
5760d0ab
JK
23872010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2388
2389 Code cleanup.
2390 * breakpoint.c (bpstat_alloc): Remove unused prototype.
2391 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
2392 code.
2393 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
2394 calls of bpstat_alloc. Remove explicit bs chain termination.
2395
46a96992
JK
23962010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2397
2398 Code cleanup.
2399 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
2400 (my_waitpid): Likewise.
2401
36374493
DE
24022010-08-27 Doug Evans <dje@google.com>
2403
2404 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
2405 as appropriate.
2406
8b93c54c
TT
24072010-08-27 Tom Tromey <tromey@redhat.com>
2408
2409 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
2410 TYPE_FIELD_IGNORE_BITS.
2411
16be1145
DE
24122010-08-27 Doug Evans <dje@google.com>
2413
2414 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
2415 the order they're defined in. munmap .debug_types buffer.
2416
e254ef6a
DE
24172010-08-26 Doug Evans <dje@google.com>
2418
2419 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
2420 (dw2_forget_cached_source_info): Rename local cu to per_cu.
2421 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
2422 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
2423 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
2424 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
2425 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
2426 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
2427 (write_psymtabs_to_index): Ditto.
2428
ae53ffa4
PA
24292010-08-26 Pedro Alves <pedro@codesourcery.com>
2430
2431 * NEWS: Mention libthread_db debugging with core files.
2432
c6da4cef
DE
24332010-08-26 Doug Evans <dje@google.com>
2434
2435 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
2436 forward decl. Pass pst->dirname to dwarf_decode_lines.
2437 (psymtab_include_file_name): New function.
2438 (dwarf_decode_lines): Call it. Update comments.
2439
cd02d79d
PA
24402010-08-25 Pedro Alves <pedro@codesourcery.com>
2441
2442 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
2443 compilation unit being different from target die's.
2444
673bfd45
DE
24452010-08-24 Doug Evans <dje@google.com>
2446
2447 PR symtab/11942
2448 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
2449 debug_types_type_hash.
2450 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
2451 All uses updated.
2452 (lookup_die_type): Renamed from tag_type_to_tag. First look in
2453 appropriate type_hash table. All callers updated.
2454 (allocate_signatured_type_table): Renamed from
2455 allocate_signatured_type_hash_table. All callers updated.
2456 (create_signatured_type_table_from_index): Renamed from
2457 create_signatured_type_hash_from_index. All callers updated.
2458 (read_die_type): Add comment. Move actual reading to ...
2459 (read_die_type_1): ... here. New function.
2460 (follow_die_ref_or_sig): Tweak comment.
2461 (set_die_type): Rewrite to use appropriate choice of
2462 debug_info_type_hash or debug_types_type_hash.
2463 (get_die_type_at_offset): New function.
2464 (get_die_type): Call it.
2465
e8fd65ef
JK
24662010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2467
2468 * python/py-type.c (typy_richcompare): Initialize worklist.
2469
9779414d
DJ
24702010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
2471 Kazu Hirata <kazu@codesourcery.com>
2472 Jonathan Larmour <jifl@eCosCentric.com>
2473
2474 * arm-tdep.c: Include features/arm-with-m.c.
2475 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
2476 call this function.
2477 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
2478 Check is_m after force-mode.
2479 (arm_gdbarch_init): Check the binary before the target description.
2480 Add check for M profile attribute. If we have an M-profile device,
2481 but no target register description, use arm-with-m. Recognize the
2482 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
2483 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
2484 * arm-tdep.h (XPSR_T): Define.
2485 (struct gdbarch_tdep): Add is_m member.
2486 * features/arm-m-profile.xml, features/arm-with-m.c,
2487 features/arm-with-m.xml: New files.
2488
9dc481d3
DE
24892010-08-23 Doug Evans <dje@google.com>
2490
2491 * dwarf2read.c (read_structure_type): Add comment.
2492 (read_enumeration_type): Add comment.
2493 (process_enumeration_scope): Move definition of some locals
2494 closer to their use.
2495 (read_namespace_type): Add comment.
e71ec853 2496 (set_die_type): Fix typo in comment.
9dc481d3 2497
f9ffd4bb
TT
24982010-08-23 Tom Tromey <tromey@redhat.com>
2499
2500 PR python/11145:
2501 * python/py-value.c: Include expression.h.
2502 (valpy_do_cast): New function.
2503 (valpy_cast): Use it.
2504 (valpy_dynamic_cast): New function.
2505 (valpy_reinterpret_cast): Likewise.
2506 (value_object_methods): Add dynamic_cast, reinterpret_cast.
2507
96f73ba5
TT
25082010-08-23 Tom Tromey <tromey@redhat.com>
2509
2510 PR python/11391:
2511 * python/py-value.c (valpy_nonzero): Don't throw error for other
2512 Value types.
2513
d839c8a4
TT
25142010-08-23 Tom Tromey <tromey@redhat.com>
2515
2516 PR python/10676:
2517 * python/py-type.c: Include bcache.h, vec.h.
2518 (struct type_equality_entry): New.
2519 (compare_strings): New function.
2520 (check_types_equal): Likewise.
2521 (check_types_worklist): Likewise.
2522 (typy_richcompare): Likewise.
2523 (type_object_type): Set tp_richcompare field.
2524
05d0e1e7
TT
25252010-08-23 Tom Tromey <tromey@redhat.com>
2526
2527 PR python/10953:
2528 * python/py-type.c (typy_fields): Call check_typedef.
2529 (typy_template_argument): Add TRY_CATCH.
2530
702c2711
TT
25312010-08-23 Tom Tromey <tromey@redhat.com>
2532
2533 PR python/11915:
2534 * python/py-type.c (typy_array): New function.
2535 (type_object_methods): Add "array".
2536
4a532131
PA
25372010-08-20 Pedro Alves <pedro@codesourcery.com>
2538
2539 * python/python.c: Include "serial.h".
2540 (gdbpy_event_fds): Change type to `struct serial *' a array from
2541 int array.
2542 (gdbpy_run_events): Change parameters. Use serial_readchar in
2543 place of read.
2544 (gdbpy_post_event): Use serial_write in place of write.
2545 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
2546 serial_async in place of add_file_handler.
2547
58f07bae
PA
25482010-08-20 Pedro Alves <pedro@codesourcery.com>
2549
2550 * serial.h (gdb_pipe, serial_pipe): Declare.
2551 * serial.c (serial_interface_lookup): Take a const char pointer.
2552 (serial_fdopen): Rename to ...
2553 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
2554 Call the OPS' fdopen function if there is one.
2555 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
2556 (serial_pipe): New.
2557 (struct serial_ops) <fdopen>: New field.
2558
2559 * ser-mingw.c (free_pipe_state):
2560 (free_pipe_state): Close output on non-pex pipes.
2561 (pipe_windows_fdopen): New.
2562 (gdb_pipe): New.
2563 (_initialize_ser_windows): Register pipe_windows_fdopen.
2564 * ser-go32.c (gdb_pipe): New.
2565 * ser-pipe.c (pipe_close): Close file descriptor even if there's
2566 no state pointer.
2567 (pipe_ops): Delete.
2568 (gdb_pipe): New.
2569
3da10d80
KS
25702010-08-20 Keith Seitz <keiths@redhat.com>
2571
2572 PR symtab/11465:
889bf7c5 2573 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
2574 (struct dwarf2_cu): Add vector method_list.
2575 (scan_partial_symbols): Count methods for union, class, structure,
2576 and interface types.
2577 (add_to_method_list): New function.
2578 (free_delayed_list): New function.
2579 (compute_delayed_physnames): New function.
2580 (process_full_comp_unit): Make a cleanup for the CU's delayed
2581 physname list, compute the delayed physnames, and free the
2582 the list.
2583 (dwarf2_add_member_fn): For C++ and Java, delay the computation
2584 of the physname until after the CU is read.
2585
2586 * dwarf2read.c (read_structure_type): Check if the current
2587 DIE's type was already completed after dwarf2_full_name
2588 was called.
889bf7c5 2589
ca11e899
SS
25902010-08-19 Stan Shebs <stan@codesourcery.com>
2591
2592 * NEWS: Mention some additional changes.
2593
4d2dc20a
TT
25942010-08-19 Tom Tromey <tromey@redhat.com>
2595
2596 * Makefile.in (install-python): Add DESTDIR.
2597
d30f5e1f
DE
25982010-08-19 Doug Evans <dje@google.com>
2599
2600 PR exp/11926
2601 * parser-defs.h (parse_float, parse_c_float): Declare.
2602 * parse.c (parse_float, parse_c_float): New function.
2603 * c-exp.y (parse_number): Call parse_c_float.
2604 * objc-exp.y (parse_number): Ditto.
2605 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
2606 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
2607
2837d59e
JB
26082010-08-19 Joel Brobecker <brobecker@adacore.com>
2609
2610 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
2611 the arguments in the correct order.
2612 * symtab.c (maybe_add_partial_symtab_filename): Declare
2613 the arguments in the correct order.
2614
35633fef
JK
26152010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2616
2617 * varobj.c (varobj_create): Replace variable old_fi with old_id,
2618 initialize it by null_frame_id, wrap its usage by get_frame_id,
2619 frame_id_p and frame_find_by_id.
2620
94f7449c
TT
26212010-08-18 Tom Tromey <tromey@redhat.com>
2622
2623 PR python/11900:
2624 * configure: Rebuild.
2625 * configure.ac: Add install-python to CONFIG_INSTALL.
2626 * Makefile.in (install-python): New.
2627
f3574227
DE
26282010-08-18 Doug Evans <dje@google.com>
2629
2630 * gdb_assert.h (gdb_assert_not_reached): New macro.
2631 (gdb_assert_fail): Fix typo in comment.
2632 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
2633 gdb_assert (0).
2634 * darwin-nat.c (darwin_check_new_threads): Ditto.
2635 * dwarf2read.c (dwarf2_get_section_info): Ditto.
2636 (munmap_section_buffer): Ditto.
2637 * m32c-tdep.c (make_types): Ditto.
2638 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
2639 * macroexp.c (get_character_constant): Ditto.
2640 (get_string_literal): Ditto.
2641 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
2642 (mep_pseudo_cr_index, mep_register_type): Ditto.
2643 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
2644 (mep_get_insn, mep_analyze_prologue): Ditto.
2645 * objfiles.c (qsort_cmp): Ditto.
2646 * prologue-value.c (pv_is_identical): Ditto.
2647 * record.c (record_get_loc): Ditto.
2648 * value.c (value_static_field): Ditto.
2649 * xtensa-tdep.c (call0_track_op): Ditto.
2650
c92817ce
TT
26512010-08-18 Tom Tromey <tromey@redhat.com>
2652
2653 PR symtab/11919:
2654 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
2655 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
2656 name-copying lower. Document exception behavior.
2657 * completer.c (expression_completer): Catch exceptions from
2658 parse_field_expression.
2659
856d6f99
PA
26602010-08-18 Pedro Alves <pedro@codesourcery.com>
2661
2662 PR corefile/8210
2663
2664 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
2665 workaround on core files.
2666 (try_thread_db_load_1): Don't try enabling thread event reporting
2667 on core files.
2668 (thread_db_load): Allow thread_db on core files.
2669 (attach_thread): Don't check thread signals on core files, nor try
2670 really attaching to the thread, nor enabling thread event event
2671 reporting.
2672 (thread_db_detach): Don't try disabing thread event reporting or
2673 removing thread event breakpoints when debugging a core file.
2674 (find_new_threads_callback): Don't try enabling thread event
2675 reporting on core files.
2676 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
2677 debugging a core file.
2678 (thread_db_find_new_threads): Don't update thread
2679 cores (processors) when debugging a core (dump).
2680
261b8d08
PA
26812010-08-18 Pedro Alves <pedro@codesourcery.com>
2682
2683 PR corefile/8210
2684
2685 * corelow.c (add_to_thread_list): Don't use
2686 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
2687 (get_core_register_section): Don't use
2688 gdbarch_core_reg_section_encodes_pid.
2689
2690 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
2691 * gdbarch.h, gdbarch.c: Regenerate.
2692 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
2693 gdbarch_core_reg_section_encodes_pid.
2694 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
2695 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
2696 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
2697
f9b42018
YQ
26982010-08-18 Yao Qi <yao@codesourcery.com>
2699
2700 * MAINTAINERS : Add myself under Write After Approval.
2701
def98928
TT
27022010-08-17 Tom Tromey <tromey@redhat.com>
2703
2704 * NEWS: Mention template parameter support.
2705
0807b50c
PA
27062010-08-17 Pedro Alves <pedro@codesourcery.com>
2707
2708 PR breakpoints/11371
2709
2710 * breakpoint.c (decref_bp_location): Assert the reference count is
2711 sane.
2712
f431efe5
PA
27132010-08-17 Pedro Alves <pedro@codesourcery.com>
2714
2715 PR breakpoints/11371
2716
2717 * breakpoint.c (breakpoint_init_inferior): Decrement the
2718 location's reference count instead of deleting right away.
2719 (bpstat_free): Decrement the location's reference count. Make
2720 static.
2721 (bpstat_copy): Increment the location's reference count.
2722 (bpstat_find_breakpoint): Adjust.
2723 (bpstat_num): Adjust.
2724 (print_it_typical): Adjust. Use the breakpoint pointer in the
2725 bpstat instead of the location's owner.
2726 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
2727 Adjust to record the location's owner in the bpstat.
2728 (watchpoint_check): Use the breakpoint pointer in the bpstat
2729 instead of the location's owner.
2730 (bpstat_check_breakpoint_conditions): Don't handle
2731 bp_watchpoint_scope here. Use the breakpoint pointer in the
2732 bpstat instead of the location's owner.
2733 (bpstat_stop_status): Defer inferior function calls to after
2734 building the bpstat list. Handle bp_watchpoint_scope here. Use
2735 the breakpoint pointer in the bpstat instead of the location's
2736 owner.
2737 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
2738 the location's owner.
2739 (free_bp_location): Don't walk bpstats clearing locations.
2740 (incref_bp_location): New.
2741 (decref_bp_location): New.
2742 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
2743 instead of the location's owner.
2744 (update_global_location_list): Clear the location's owner, and
2745 decrement the location's reference count instead of deleting it
2746 right away.
2747 (breakpoint_retire_moribund): Decrement the location's reference
2748 count instead of deleting it right away.
2749 (bpstat_remove_bp_location): Delete.
2750 (bpstat_remove_breakpoint): New.
2751 (bpstat_remove_bp_location_callback): Delete.
2752 (bpstat_remove_breakpoint_callback): New.
2753 (delete_breakpoint): Iterate over all threads' stop_bpstat's
2754 clearing references to the breakpoint that is being deleted.
2755
2756 * breakpoint.h (struct bp_location) <refc>: New field.
2757 <owner>: Update comments.
2758 (bpstat_free): Delete declaration.
2759 (struct bpstats): Change the type of the breakpoint_at field to
2760 struct breakpoint point, from struct bp_location pointer. Add new
2761 field bp_location_at.
2762
14c0d4e1
TT
27632010-08-16 Tom Tromey <tromey@redhat.com>
2764
2765 * NEWS: Fix typo.
2766
b56df873
TT
27672010-08-16 Tom Tromey <tromey@redhat.com>
2768
2769 * NEWS: Mention watch -location.
2770
d63d0675
JK
27712010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2772
2773 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2774 EXP_STRING_REPARSE to EXP_STRING.
2775 (watch_command_1): Set also EXP_STRING_REPARSE.
2776 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2777 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2778 Update comment for exp_string.
2779
06a64a0b
TT
27802010-08-16 Tom Tromey <tromey@redhat.com>
2781
2782 * value.c (release_value): Clear 'next' pointer.
2783 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2784 (watch_command_wrapper): Update.
2785 (watch_maybe_just_location): New function.
2786 (watch_command): Update.
2787 (rwatch_command_wrapper): Update.
2788 (rwatch_command): Update.
2789 (awatch_command_wrapper): Update.
2790 (awatch_command): Update.
2791 (check_for_argument): New function.
2792 (_initialize_breakpoint): Update help text.
2793
f96b8fa0
UW
27942010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2795
2796 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2797 typedef'ed function types correctly.
2798
4eb54052
TT
27992010-08-13 Tom Tromey <tromey@redhat.com>
2800
2801 * python/python-internal.h (gdbpy_get_hook_function): Don't
2802 declare.
2803
44be957e
JK
28042010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2805
ba720883 2806 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2807 static.
2808
76d8b686
KW
28092010-08-13 Ken Werner <ken.werner@de.ibm.com>
2810
2811 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2812 the format strings to be compatible with Python 2.4.
2813
8dedea02
VP
28142010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2815
2816 Easier and more stubborn MI memory read commands.
2817
2818 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2819 and data-write-memory-bytes.
2820 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2821 (mi_cmd_data_write_memory_bytes): New.
2822 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2823 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2824 New.
2825 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2826 * target.c (target_read_until_error): Remove.
2827 (read_whatever_is_readable, free_memory_read_result_vector)
2828 (read_memory_robust): New.
2829 * target.h (target_read_until_error): Remove.
2830 (struct memory_read_result, free_memory_read_result_vector)
2831 (read_memory_robust): New.
2832
1d9ec526
HZ
28332010-08-13 Hui Zhu <teawater@gmail.com>
2834
2835 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2836 (read_comp_unit): Initialize back_to.
2837
98bfdba5
PA
28382010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2839 Pedro Alves <pedro@codesourcery.com>
2840
2841 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2842 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2843 (struct partial_die_info) <has_template_arguments>: New field.
2844 <num_attrs>: Change type to unsigned char.
2845 <building_fullname>: New field.
2846 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2847 allocate a CU if we don't have one already. Add a cleanup for the
2848 CU.
2849 (partial_die_full_name): Handle template arguments not in
2850 DW_AT_name.
2851 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2852 (load_full_comp_unit): Only allocate a CU if we don't have one
2853 already.
2854 (do_ui_file_peek_last): New.
2855 (dwarf2_compute_name): Handle template parameters not in
2856 DW_AT_name.
2857 (read_comp_unit): Read and free abbrevs if not read yet.
2858 (load_partial_dies): Handle template arguments not in DW_AT_name.
2859 (find_partial_die): If we have a CU, but no a partial dies yet,
2860 also read in the CU.
2861 (dwarf2_const_value_attr): New, abstracted out from
2862 dwarf2_const_value.
2863 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2864 dwarf2_const_value_attr.
2865 (determine_prefix): Detect and break loops created by RCVT's debug
2866 info.
2867 (maybe_queue_comp_unit): Bail out early if reading partial
2868 symbols.
2869 (follow_die_offset): Load full CU if we have no dies.
2870 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2871 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2872
ca5c20b6 28732010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2874 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2875
2876 * python/python.c (gdbpy_run_events): New function.
2877 (gdbpy_post_event): Likewise.
2878 (gdbpy_initialize_events): Likewise.
2879 (_initialize_python): Call gdbpy_initialize_events.
2880
7346b668
KW
28812010-08-11 Ken Werner <ken.werner@de.ibm.com>
2882
2883 * gdb/valarith.c (vector_binop): New function.
2884 (scalar_binop): Likewise.
2885 (value_binop): Call scalar_binop or vector_binop depending on the types.
2886 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2887 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2888 to pointers.
2889 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2890
62183e15
TT
28912010-08-11 Brad Roberts <braddr@puremagic.com>
2892
2893 * d-lang.c (extract_identifiers): Handle multiple digits.
2894
39d7b0e2
JK
28952010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2896
2897 Code cleanup.
2898 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2899 Rename to dummy_frame_unwind.
2900 (dummy_frame_unwind): Remove.
2901 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2902 * frame-unwind.c (frame_unwind_init): Use address of
2903 dummy_frame_unwind and inline_frame_unwind.
2904 * frame.c (create_sentinel_frame): Use address of
2905 sentinel_frame_unwind.
2906 * inline-frame.c (inline_frame_unwinder): Rename to
2907 inline_frame_unwind.
2908 (inline_frame_unwind): Remove.
2909 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2910 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2911 sentinel_frame_unwind.
2912 (sentinel_frame_unwind): Remove.
2913 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2914 struct.
2915
9f9a8002
JK
29162010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2917
2918 Code cleanup.
2919 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2920 and returned value. New comment from frame-unwind.h.
2921 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2922 Extend the comment.
2923 * frame.c (get_frame_id, frame_unwind_register_value)
2924 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2925 (get_frame_type, frame_unwind_arch): Do not use the return value of
2926 frame_unwind_find_by_frame.
2927
cb2e07a6 29282010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2929 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2930 Tom Tromey <tromey@redhat.com>
2931
2932 * python/python.c (gdbpy_solib_address): New function.
2933 (gdbpy_decode_line): Likewise.
2934
c29c521f
TT
29352010-08-10 Tom Tromey <tromey@redhat.com>
2936
2937 Revert gdb-add-index addition:
2938 * Makefile.in (install-only): Don't install gdb-add-index.
2939 * gdb-add-index.sh: Remove.
2940
0c012db1
KB
29412010-08-09 Kevin Buettner <kevinb@redhat.com>
2942
2943 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2944 `target_has_execution' check with `to_has_memory' check.
2945 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2946 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2947 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2948
db04efe6
KB
29492010-08-09 Kevin Buettner <kevinb@redhat.com>
2950
2951 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2952 (resume_siggnal, resume_step): Move these static globals...
2953 (struct sim_inferior_data): ...into this new struct.
2954 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2955 New static globals.
2956 (gdb_callback, callbacks_initialized): Move these globals to
2957 a point earlier in the file.
2958 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2959 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2960 (gdbsim_close_inferior, gdbsim_resume_inferior)
2961 (gdbsim_stop_inferior): New functions.
2962 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2963 New constants.
2964 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2965 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2966 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2967 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2968 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2969 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2970 new local variable `sim_data' in each of these functions. Use
2971 `sim_data' to reference former globals `program_loaded',
2972 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2973 `resume_step'.
2974 (gdbsim_open): Remove local variable `argv'. Put results of call
2975 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2976 make a cleanup for it. Free it though when a sim instance cannot
2977 be obtained.
2978 (gdbsim_close): Free sim_argv and null it out as appropriate.
2979 Close sim instances in all inferiors.
2980 (gdbsim_cntrl_c): Stop all inferiors.
2981 (gdbsim_wait):
2982 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2983
e37fd15a
SW
29842010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2985
2986 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2987 function after symbol construction is complete.
2988 Do the same for template symbol addition to template_symbols list.
2989
45c58896
SW
29902010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2991
2992 * symtab.c (symbol_get_demangled_name): Remove assertion and
2993 return NULL when language_specific.cplus_specific is not initialized.
2994 * stabsread.c (define_symbol): Set the name before calling
2995 cp_scan_for_anonymous_namespaces.
2996
33e5013e
SW
29972010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2998
2999 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
3000 SYMBOL_SET_LANGUAGE.
3001 (symbol_init_language_specific): Renamed to symbol_set_language.
3002 * symtab.c (symbol_init_language_specific): Removed redundant check
3003 for language_cplus.
3004 Renamed to symbol_set_language.
3005 * stabsread.c (define_symbol): Updated.
3006 (read_enum_type): Updated
3007 * psymtab.c (add_psymbol_to_bcache): Updated.
3008 * minsyms.c (install_minimal_symbols): Updated.
3009 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
3010 SYMBOL_LANGUAGE to set the language.
3011 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
3012 * mdebugread.c (new_symbol): Ditto.
3013 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
3014 * dwarf2read.c (new_symbol_full): Ditto.
3015 * jv-lang.c (add_class_symbol): Ditto.
3016
5da1313b
JK
30172010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3018
3019 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
3020 (make_cleanup_restore_page_info)
3021 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
3022 * gdbcmd.h (execute_command_to_string): New declaration.
3023 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
3024 (make_cleanup_restore_ui_file): Move to utils.c
3025 (execute_gdb_command) <to_string>: Move ...
3026 * top.c (execute_command_to_string): ... here. Call
3027 set_batch_flag_and_make_cleanup_restore_page_info.
3028 * utils.c (make_cleanup_restore_integer): New source file blank line.
3029 (make_cleanup_restore_uinteger): New.
3030 (struct restore_ui_file_closure, do_restore_ui_file)
3031 (make_cleanup_restore_ui_file): Move here from python/python.c.
3032 (init_page_info) <batch_flag>
3033 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
3034 (set_batch_flag_and_make_cleanup_restore_page_info): New.
3035
c820c52a
PA
30362010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
3037
3038 * thread.c (add_thread_silent): Use null_ptid instead of
3039 minus_one_ptid while getting rid of stale inferior_ptid.
3040
8da614df
CV
30412010-08-06 Corinna Vinschen <vinschen@redhat.com>
3042
3043 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
3044 Throughout, call read_encoded_value with ptr_size rather than addr_size.
3045 (decode_frame_entry_1): Remove redundant setting of
3046 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
3047 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
3048 on examined frame section. Add comment to explain why.
3049 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
3050 comment to explain usage.
3051 * gdbarch.c: Regenerate.
3052 * gdbarch.h: Regenerate.
3053
3054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
3055
e4195b40
JK
30562010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 Code cleanup.
3059 * varobj.c (varobj_create): Move variables fi, old_fi and block to
3060 a more inner block.
3061
a3217aa0
PA
30622010-08-05 Pedro Alves <pedro@codesourcery.com>
3063
3064 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
3065 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3066 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
3067 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
3068 linux-tdep.o to gdb_target_obs.
3069
e2b4a699 30702010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
3071
3072 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 3073 argument.
889bf7c5 3074
50e8a0d5
HZ
30752010-08-05 Hui Zhu <teawater@gmail.com>
3076
3077 * mips-linux-tdep.c(regset.h): New include.
3078 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
3079 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
3080 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
3081 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
3082 mips_linux_regset_from_core_section): New functions.
3083 (fetch_core_registers, regset_core_fns): Deleted.
3084 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
3085 Deleted regset_core_fns.
3086 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
3087 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
3088 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
3089 and fpregset64.
3090
70728992
PA
30912010-08-04 Pedro Alves <pedro@codesourcery.com>
3092
3093 * s390-tdep.c: Include linux-tdep.h.
3094 (s390_gdbarch_init): Call linux_init_abi.
3095
a5ee0f0c
PA
30962010-08-04 Pedro Alves <pedro@codesourcery.com>
3097
3098 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
3099 instead of printing "Thread" here.
3100 * linux-tdep.c: Include inferior.h.
3101 (linux_core_pid_to_str): New.
3102 (linux_init_abi): New.
3103 * linux-tdep.h (linux_init_abi): Declare.
3104 * alpha-linux-tdep.c: Include linux-tdep.h.
3105 (alpha_linux_init_abi): Call linux_init_abi.
3106 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
3107 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
3108 * frv-linux-tdep.c: Include linux-tdep.h
3109 (frv_linux_init_abi): Call linux_init_abi.
3110 * hppa-linux-tdep.c: Include linux-tdep.h
3111 (hppa_linux_init_abi): Call linux_init_abi.
3112 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
3113 * ia64-linux-tdep.c: Include linux-tdep.h.
3114 (ia64_linux_init_abi): Call linux_init_abi.
3115 * m32r-linux-tdep.c: Include linux-tdep.h.
3116 (m32r_linux_init_abi): Call linux_init_abi.
3117 * m68klinux-tdep.c: Include linux-tdep.h.
3118 (m68k_linux_init_abi): Call linux_init_abi.
3119 * microblaze-linux-tdep.c: Include linux-tdep.h.
3120 (microblaze_linux_init_abi): Call linux_init_abi.
3121 * mips-linux-tdep.c: Include linux-tdep.h.
3122 (mips_linux_init_abi): Call linux_init_abi.
3123 * mn10300-linux-tdep.c: Include linux-tdep.h.
3124 (am33_linux_init_osabi): Call linux_init_abi. Rename the
3125 'gdbinfo' parameter to 'info'.
3126 * ppc-linux-tdep.c: Include linux-tdep.h.
3127 (ppc_linux_init_abi): Call linux_init_abi.
3128 * sh-linux-tdep.c: Include linux-tdep.h.
3129 (sh_linux_init_abi): Call linux_init_abi.
3130 * sparc-linux-tdep.c: Include linux-tdep.h.
3131 (sparc32_linux_init_abi): Call linux_init_abi.
3132 * sparc64-linux-tdep.c: Include linux-tdep.h.
3133 (sparc64_linux_init_abi): Call linux_init_abi.
3134 * xtensa-linux-tdep.c: Include linux-tdep.h.
3135 (xtensa_linux_init_abi): Call linux_init_abi.
3136 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
3137 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
3138 callback.
3139
bc043ef3
DE
31402010-08-03 Doug Evans <dje@google.com>
3141
3142 * breakpoint.c (bpdisp_text): Constify bpdisps.
3143 * solib-svr4.c (solib_break_names): Constify.
3144 (bkpt_names, main_name_list): Constify.
3145 (match_main): Constify soname arg.
63cdd227
DE
3146 (bfd_lookup_symbol): Remove unnecessary forward decl.
3147 Constify symname arg.
bc043ef3
DE
3148 (enable_break): Constify bkpt_namep.
3149 * symtab.c (search_symbols): Constify types, types2, types3, types4.
3150 (symtab_symbol_info): Constify classnames.
3151
585d1eb8
PM
31522010-08-03 Phil Muldoon <pmuldoon@redhat.com>
3153
3154 * NEWS: Document Python value inferior function calls.
3155
2de00c64
DE
31562010-08-02 Doug Evans <dje@google.com>
3157
3158 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
3159
02d868e8
PP
31602010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3161
3162 * linux-thread-db.c (libthread_db_debug): New variable.
3163 (thread_db_find_new_threads_silently): Control verbosity with it.
3164 (try_thread_db_load_1, try_thread_db_load): Likewise.
3165 (find_new_threads_once): Likewise.
3166 (_initialize_thread_db): Set/show it.
3167
a19cae16
JK
31682010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3169
3170 * common/signals.c (signals): Move the content to signals.def.
3171 Include it. Remove the INDENT comments.
3172
c2bbed2a
TT
31732010-07-30 Tom Tromey <tromey@redhat.com>
3174
3175 * Makefile.in (install-only): Install gdb-add-index.
3176 * gdb-add-index.sh: New file.
3177
f32b2f09
CR
31782010-07-31 Renquan Cheng <crq@gcc.gnu.org>
3179
3180 * MAINTAINERS: Add myself for write after approval privileges.
3181
1276c759
JK
31822010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3183
3184 * symfile.c (addr_section_name): New function.
3185 (addrs_section_compar): Use it.
3186 (addr_info_make_relative): Use it. Move variable sect_name into a more
3187 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
3188
420697bb
TT
31892010-07-30 Tom Tromey <tromey@redhat.com>
3190
3191 * configure: Rebuild.
3192 * configure.ac: Add missing case for Python 2.7.
3193
d0d99561
DD
31942010-07-29 DJ Delorie <dj@redhat.com>
3195
3196 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
3197 conditions.
3198
0b29bdde
PA
31992010-07-29 Pedro Alves <pedro@codesourcery.com>
3200
3201 * PROBLEMS: Remove mention of all problems.
3202
110ed339
PA
32032010-07-28 Pedro Alves <pedro@codesourcery.com>
3204
3205 PR build/11848
3206 * configure.ac: Check for wresize.
3207 * configure, config.in: Regenerate.
3208 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
3209 with HAVE_WRESIZE.
3210
326fd672
TT
32112010-07-28 Tom Tromey <tromey@redhat.com>
3212
3213 PR python/11060:
3214 * python/py-type.c (typy_legacy_template_argument): New function,
3215 extracted from typy_template_argument.
3216 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
3217 value when needed.
3218
4ac8c4da
TT
32192010-07-28 Oleg Nesterov <oleg@redhat.com>
3220
3221 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
3222
053315c2
TT
32232010-07-27 Tom Tromey <tromey@redhat.com>
3224
3225 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
3226
3ce3b1ba
PA
32272010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
3228
3229 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
3230 handling DW_AT_object_pointer, and workaround GCC PR 43053.
3231
2bb4f988
TT
32322010-07-28 Tom Tromey <tromey@redhat.com>
3233
3234 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
3235
74232302
JB
32362010-07-28 Joel Brobecker <brobecker@adacore.com>
3237
3238 * remote.c (remote_download_tracepoint): Add missing gettext markup.
3239 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
3240
385d04dc
JB
32412010-07-28 Joel Brobecker <brobecker@adacore.com>
3242
3243 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
3244 down, just before the block that parse the breakpoint addr_string.
3245
34eaf542
TT
32462010-07-28 Tom Tromey <tromey@redhat.com>
3247
3248 PR c++/9946:
3249 * symfile.c (reread_symbols): Clear template_symbols.
3250 * symtab.h (struct symbol) <is_cplus_template_function>: New
3251 field.
3252 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
3253 (struct template_symbol): New.
3254 * symtab.c (lookup_symbol_aux_local): Use
3255 cp_lookup_symbol_imports_or_template.
3256 * objfiles.h (struct objfile) <template_symbols>: New field.
3257 * objfiles.c (relocate_one_symbol): New function.
3258 (objfile_relocate1): Use it. Relocate isolated symbols.
3259 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
3260 template_arguments>: New fields.
3261 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
3262 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
3263 (TYPE_TEMPLATE_ARGUMENT): Likewise.
3264 (lookup_typename): Update.
3265 * gdbtypes.c (lookup_typename): Constify "block" argument.
3266 * dwarf2read.c: Include vec.h.
3267 (symbolp): New typedef.
3268 (read_func_scope): Read template arguments. Allocate a
3269 template_symbol when needed.
3270 (read_structure_type): Read template arguments.
3271 (new_symbol_full): New function, from new_symbol. Handle
3272 DW_TAG_template_type_param and DW_TAG_template_value_param.
3273 (new_symbol): Rewrite as wrapper.
3274 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
3275 * cp-namespace.c: Include language.h.
3276 (search_symbol_list): New function.
3277 (cp_lookup_symbol_imports_or_template): Likewise.
3278
d27b3be4
PA
32792010-07-28 Balazs Kezes <rlblaster@gmail.com>
3280
3281 * tui/tui-win.c (make_visible_with_new_height): Resize and move
3282 the command window to the new size and position.
3283
0036e657
PA
32842010-07-28 Balazs Kezes <rlblaster@gmail.com>
3285
a782f43e 3286 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
3287 coordinates.
3288
36900355
PA
32892010-07-28 Balazs Kezes <rlblaster@gmail.com>
3290
a782f43e 3291 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 3292 after a detecting a resize.
a782f43e 3293 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
3294 call.
3295
db5e03ae
PA
32962010-07-28 Pedro Alves <pedro@codesourcery.com>
3297
3298 * configure.ac: Check for resize_term.
3299 * configure, config.in: Regenerate.
3300
b71fff68
JB
33012010-07-27 Joel Brobecker <brobecker@adacore.com>
3302
3303 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
3304
9b1c24c8
PA
33052010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
3306
3307 * dwarf2read.c (read_string): Rename to ...
3308 (read_direct_string): ... this.
3309 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
3310 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
3311
00390b84
JK
33122010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3313
3314 * linux-nat.c (linux_nat_lp_status_is_event): New function.
3315 (count_events_callback, select_event_lwp_callback)
3316 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
3317
26ab7092
JK
33182010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3319
3320 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
3321 (_initialize_ia64_linux_nat): Install it.
3322 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
3323 (linux_nat_set_status_is_event): New.
3324 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
3325 cancel_breakpoints_callback, linux_nat_filter_event)
3326 (linux_nat_wait_1): Use linux_nat_status_is_event.
3327 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
3328
283e6a52
TT
33292010-07-27 Tom Tromey <tromey@redhat.com>
3330
3331 * NEWS: Mention labels, .gdb_index.
3332
53a71c06
CR
33332010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
3334
3335 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 3336 "start,+length" form of arguments.
53a71c06
CR
3337 * NEWS: Add "Changed commands" (disassemble) section for "Changes
3338 since GDB 7.1"; and merge two separated paragraphs of disassemble
3339 description in "Changes in GDB 7.0".
3340
c63a1f86
JK
33412010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3342
3343 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
3344 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
3345 (fputs_maybe_filtered): Do not do filtering also on
3346 ! INPUT_FROM_TERMINAL_P.
3347
abebb8b0
JB
33482010-07-27 Joel Brobecker <brobecker@adacore.com>
3349
3350 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
3351 in warning message.
3352
5374244e
PM
33532010-07-27 Phil Muldoon <pmuldoon@redhat.com>
3354
3355 * python/py-value.c (valpy_call): New Function.
3356
ac0b195c
KW
33572010-07-27 Ken Werner <ken.werner@de.ibm.com>
3358
889bf7c5 3359 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
3360 types_list_elements variables.
3361
09d8bd00
TT
33622010-07-26 Tom Tromey <tromey@redhat.com>
3363
3364 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
3365 TLS with DW_OP_const4u or DW_OP_const8u.
3366
9fe70b4f
TJB
33672010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
3368
3369 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
3370 VSX registers contents.
3371
caac4577
JG
33722010-07-26 Jerome Guitton <guitton@adacore.com>
3373
3374 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
3375 its adress is null. Add comment to explain why.
3376 (new_symbol): Ditto.
3377
857d11d0
JK
33782010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3379
3380 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
3381 the host signal first.
3382
1fd400ff
TT
33832010-07-23 Tom Tromey <tromey@redhat.com>
3384
3385 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
3386 type_comp_units>: New fields.
3387 (dw2_get_cu): New function.
3388 (create_cus_from_index): Remove unused argument.
3389 (create_signatured_type_hash_from_index): New function.
3390 (create_addrmap_from_index): Update.
3391 (dwarf2_read_index): Handle version 2.
3392 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
3393 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
3394 (dw2_print_stats, dw2_expand_all_symtabs)
3395 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
3396 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
3397 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
3398 (allocate_signatured_type_hash_table): New function.
3399 (add_signatured_type_cu_to_list): Likewise.
3400 (create_debug_types_hash_table): Use them. Set type_comp_units.
3401 (read_signatured_type): Ensure section data is available.
3402 (add_address_entry): Don't record empty ranges.
3403 (struct signatured_type_index_data): New.
3404 (write_one_signatured_type): New function.
3405 (write_psymtabs_to_index): Write type CUs.
3406 (save_gdb_index_command): Update comment.
3407 (process_type_comp_unit): Move inititalization of
3408 from_debug_types...
3409 (create_debug_types_hash_table): ... here.
3410
3a674486
JK
34112010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3412
3413 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
3414 cleanup and generating of gdb script to it.
3415 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
3416 and terminal size. Convert $tmpfile to a series of -ex-es.
3417
54ec275a
KS
34182010-07-23 Keith Seitz <keiths@redhat.com>
3419
3420 * symtab.c (basic_lookup_transparent_type): Call pre-expand
3421 hook for STATIC_BLOCK types, too.
3422
8fd447e6
KS
34232010-07-23 Keith Seitz <keiths@redhat.com>
3424
3425 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
3426 and vector definition.
3427
25b72dde
JK
34282010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3429
3430 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
3431
96d19272
JK
34322010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3433
3434 * dwarf2read.c: Include completer.h.
3435 (save_gdb_index_command): Use matching usage command name.
3436 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
3437 Set filename_completer for it.
3438
ca1f3406
TT
34392010-07-22 Tom Tromey <tromey@redhat.com>
3440
3441 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
3442 type signature's per-CU data.
3443
ba25b921
PA
34442010-07-22 Pedro Alves <pedro@codesourcery.com>
3445
3446 * NEWS: Mention target reported shared libraries support by
3447 default.
3448
23bd0f7c
PA
34492010-07-21 Pedro Alves <pedro@codesourcery.com>
3450
3451 PR symtab/11827
3452
3453 Revert:
3454 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3455 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3456 and DW_TAG_volatile_type.
3457 (new_symbol): Likewise.
3458
883df6dd
SW
34592010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
3460
3461 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
3462 function symbols before overload resolution.
3463
269b11a2
PA
34642010-07-21 Pedro Alves <pedro@codesourcery.com>
3465
3466 * breakpoint.c (bptype_string): New, abstracted out from
3467 print_one_breakpoint_location.
3468 (print_one_breakpoint_location): Adjust.
3469 (breakpoint_1): Adjust the type column width dynamically.
3470
569b05a5
JK
34712010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3472
3473 * symfile.c (find_separate_debug_file_by_debuglink): Remove
3474 a gdb_assert call, new comment.
3475
ad34eb2f
JK
34762010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3477
3478 * linux-nat.c (linux_handle_extended_wait): Handle case when
3479 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
3480
33355866
JK
34812010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3482
3483 Code cleanup.
3484 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
3485 linux_nat_wait_1. Use always LP->STATUS afterwards.
3486
26590820
HZ
34872010-07-20 Hui Zhu <teawater@gmail.com>
3488
3489 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
3490 (inf_ptrace_attach): Ditto.
3491
c0edd9ed
JK
34922010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3493
3494 Make core files the process_stratum.
3495 * corefile.c (core_target): New variable.
3496 (core_file_command): Remove variable t, use core_target.
3497 * corelow.c (core_ops): Make it static.
3498 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
3499 * defs.h (make_cleanup_unpush_target): New prototype.
3500 * gdbarch.h: Regenerate.
3501 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
3502 * gdbcore.h (core_target): New declaration.
3503 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
3504 variables ops_already_pushed and back_to. Use push_target,
3505 make_cleanup_unpush_target and discard_cleanups calls.
3506 * record.c (record_open): Replace core_stratum by a core_bfd check.
3507 * target.c (target_is_pushed): New function.
3508 (find_core_target): Remove.
3509 * target.h (enum strata) <core_stratum>: Remove.
3510 (target_is_pushed): New declaration.
3511 (find_core_target): Remove declaration.
3512 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
3513 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
3514
f02253f1
HZ
35152010-07-19 Hui Zhu <teawater@gmail.com>
3516
3517 * breakpoint.c (single_step_breakpoints_inserted): New
3518 function.
3519 * breakpoint.h (single_step_breakpoints_inserted): Extern.
3520 * infrun.c (maybe_software_singlestep): Add check code.
3521 * record.c (record_resume): Add code for software single step.
3522 (record_wait): Ditto.
3523
78768c4a
JK
35242010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3525
3526 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
3527 a more inner block. Remove its unused declaration initializer.
3528
431e49aa
TJB
35292010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
3530
3531 * NEWS: Mention support for the new ptrace interface and hardware
3532 accelerated watchpoint conditions on powerpc-linux.
3533
bd91e7ae
OS
35342010-07-16 Ozkan Sezer <sezeroz@gmail.com>
3535
3536 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
3537 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
3538 and host_address_to_string() and %s for pointers.
3539 (debug_to_remove_breakpoint): Likewise.
3540 (debug_to_region_ok_for_hw_watchpoint): Likewise.
3541 (debug_to_can_accel_watchpoint_condition): Likewise.
3542 (debug_to_stopped_data_address): Likewise.
3543 (debug_to_watchpoint_addr_within_range): Likewise.
3544 (debug_to_insert_hw_breakpoint): Likewise.
3545 (debug_to_remove_hw_breakpoint): Likewise.
3546 (debug_to_insert_watchpoint): Likewise.
3547 (debug_to_remove_watchpoint): Likewise.
3548
29df156d
SW
35492010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3550
3551 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
3552 argument.
3553 (cplus_specific): New struct.
3554 * symtab.c (symbol_set_demangled_name): Updated.
3555 Use cplus_specific for cplus symbols.
3556 (symbol_get_demangled_name): Retrive the name from the cplus_specific
3557 struct for cplus symbols.
3558 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
3559 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
3560 * symtab.c (symbol_init_cplus_specific): New function.
3561
b250c185
SW
35622010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3563
3564 * symtab.h (symbol_set_demangled_name): New function.
3565 (symbol_get_demangled_name): New function.
3566 * symtab.c (symbol_set_demangled_name): New function.
3567 (symbol_get_demangled_name): New function.
3568 (symbol_init_language_specific): Use demangled_name setter and getter.
3569 (symbol_set_names): Ditto.
3570 (symbol_natural_name): Ditto.
3571 (symbol_demangled_name): Ditto.
3572 * dwarf2read.c (new_symbol): Ditto.
3573
afa16725
SW
35742010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
3575
3576 * symtab.h: Renamed cplus_specific to mangled_lang.
3577 * symtab.c (symbol_init_language_specific): Updated.
3578 (symbol_set_names): Updated.
3579 (symbol_natural_name): Updated.
3580 (symbol_demangled_name): Updated.
3581 * ada-lang.c (ada_decode_symbol): Updated.
3582 * dwarf2read.c (new_symbol): Updated.
3583
3cbaedff
KW
35842010-07-14 Ken Werner <ken.werner@de.ibm.com>
3585
3586 * valops.c (value_assign): Do not call to value_coerce_to_target.
3587 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
3588
c932f1be
KW
35892010-07-14 Ken Werner <ken.werner@de.ibm.com>
3590
3591 * MAINTAINERS: Add myself for write after approval privileges.
3592
91158a56
TT
35932010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
3594
3595 * c-valprint.c (c_val_print): Add embedded_offset to address in
3596 call to val_print_array_elements.
3597
b3b272e1
TT
35982010-07-13 Tom Tromey <tromey@redhat.com>
3599
3600 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
3601
bb3fa9d0
TT
36022010-07-13 Tom Tromey <tromey@redhat.com>
3603
3604 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
3605 objfile.
3606
dd786858
TT
36072010-07-13 Tom Tromey <tromey@redhat.com>
3608
3609 * symfile.c (set_initial_language): Update.
3610 (deduce_language_from_filename): Argument type now const.
3611 * symtab.h (find_main_filename): Update.
3612 (deduce_language_from_filename): Update.
3613 * symtab.c (find_main_filename): Make result const.
3614 * dwarf2read.c (dw2_find_symbol_file): Change return type.
3615 * psymtab.c (find_symbol_file_from_partial): Change return type.
3616 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3617 Make result const.
3618
9291a0cd
TT
36192010-07-13 Tom Tromey <tromey@redhat.com>
3620
3621 * breakpoint.c (save_cmdlist): No longer static.
3622 * gdbcmd.h (save_cmdlist): Declare.
3623 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
3624 OBJF_READNOW on objfile if readnow_symbol_files.
3625 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
3626 (elf_sym_fns_gdb_index): New global.
3627 * dwarf2read.c: Include exceptions.h.
3628 (offset_type): New.
3629 (struct mapped_index): New.
3630 (dwarf2_per_cu_data_ptr): New typedef.
3631 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
3632 New fields.
3633 (GDB_INDEX_SECTION): New define.
3634 (struct dwarf2_per_cu_quick_data): New.
3635 (struct dwarf2_per_cu_data) <objfile>: New field.
3636 <psymtab>: Removed.
3637 <v>: New field.
3638 (byte_swap): New function.
3639 (MAYBE_SWAP): New macro.
3640 (INDEX_SUFFIX): New macro.
3641 (dw2_do_instantiate_symtab): New function.
3642 (dw2_instantiate_symtab): Likewise.
3643 (create_cus_from_index): Likewise.
3644 (create_addrmap_from_index): Likewise.
3645 (mapped_index_string_hash): Likewise.
3646 (find_slot_in_mapped_hash): Likewise.
3647 (dwarf2_read_index): Likewise.
3648 (dw2_setup): Likewise.
3649 (dw2_require_line_header): Likewise.
3650 (dw2_require_full_path): Likewise.
3651 (dw2_find_last_source_symtab): Likewise.
3652 (dw2_forget_cached_source_info): Likewise.
3653 (dw2_lookup_symtab): Likewise.
3654 (dw2_lookup_symbol): Likewise.
3655 (dw2_do_expand_symtabs_matching): Likewise.
3656 (dw2_pre_expand_symtabs_matching): Likewise.
3657 (dw2_print_stats): Likewise.
3658 (dw2_dump): Likewise.
3659 (dw2_relocate): Likewise.
3660 (dw2_expand_symtabs_for_function): Likewise.
3661 (dw2_expand_all_symtabs): Likewise.
3662 (dw2_expand_symtabs_with_filename): Likewise.
3663 (dw2_find_symbol_file): Likewise.
3664 (dw2_map_ada_symtabs): Likewise.
3665 (dw2_expand_symtabs_matching): Likewise.
3666 (dw2_find_pc_sect_symtab): Likewise.
3667 (dw2_map_symbol_names): Likewise.
3668 (dw2_map_symbol_filenames): Likewise.
3669 (dw2_has_symbols): Likewise.
3670 (dwarf2_gdb_index_functions): New global.
3671 (dwarf2_initialize_objfile): New function.
3672 (process_psymtab_comp_unit): Update.
3673 (add_partial_subprogram): Likewise.
3674 (dwarf2_psymtab_to_symtab): Likewise.
3675 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
3676 (process_full_comp_unit): Update.
3677 (find_file_and_directory): New function.
3678 (read_file_scope): Use find_file_and_directory.
3679 (dwarf2_per_cu_objfile): Update.
3680 (dwarf2_per_cu_addr_size): Update.
3681 (dwarf2_per_cu_offset_size): Update.
3682 (dwarf2_free_objfile): Free the index, if needed.
3683 (dwarf2_per_objfile_free): Unmap the index, if needed.
3684 (struct strtab_entry): New.
3685 (hash_strtab_entry): New function.
3686 (eq_strtab_entry): Likewise.
3687 (create_strtab): Likewise.
3688 (add_string): Likewise.
3689 (struct symtab_index_entry): New.
3690 (struct mapped_symtab): New.
3691 (hash_symtab_entry): New function.
3692 (eq_symtab_entry): Likewise.
3693 (delete_symtab_entry): Likewise.
3694 (create_index_table): Likewise.
3695 (create_mapped_symtab): Likewise.
3696 (cleanup_mapped_symtab): Likewise.
3697 (find_slot): Likewise.
3698 (hash_expand): Likewise.
3699 (add_index_entry): Likewise.
3700 (add_indices_to_cpool): Likewise.
3701 (write_hash_table): Likewise.
3702 (add_address_entry): Likewise.
3703 (write_psymbols): Likewise.
3704 (write_obstack): Likewise.
3705 (unlink_if_set): Likewise.
3706 (write_psymtabs_to_index): Likewise.
3707 (save_gdb_index_command): Likewise.
3708 (_initialize_dwarf2_read): Install "save gdb-index"
3709 command.
3710 (create_all_comp_units): Initialize 'objfile' field of CU.
3711 (dwarf2_locate_sections): Check for .gdb_index.
3712 * psymtab.h (dwarf2_gdb_index_functions): Declare.
3713 * symfile.h (dwarf2_initialize_objfile): Declare.
3714
58b6ab13
TT
37152010-07-13 Tom Tromey <tromey@redhat.com>
3716
3717 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
3718 (basic_lookup_transparent_type): Likewise.
3719 * symfile.h (struct quick_symbol_functions)
3720 <pre_expand_symtabs_matching>: New field.
3721 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
3722 (psym_functions): Update.
3723
0f5238ed
TT
37242010-07-13 Tom Tromey <tromey@redhat.com>
3725
3726 PR breakpoints/8357:
3727 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
3728 * linespec.c (decode_line_1): Update comment. Call decode_label.
3729 (decode_label): New function.
3730 (symbol_found): Handle LOC_LABEL.
3731 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
3732 domain. Call add_symbol_to_list.
3733
9aa1f1e3
TT
37342010-07-13 Tom Tromey <tromey@redhat.com>
3735
3736 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
3737 * dwarf2loc.c (find_location_expression): Use
3738 dwarf2_per_cu_text_offset.
3739 (dwarf2_evaluate_loc_desc): Likewise.
3740 (dwarf2_loc_desc_needs_frame): Likewise.
3741 (compile_dwarf_to_ax): Likewise.
3742 (loclist_describe_location): Likewise.
3743 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
3744 (dwarf2_per_cu_objfile): Update comment.
3745
953ac07e
JK
37462010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3747
3748 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
3749 * p-lang.c (pascal_printstr): Likewise.
3750
f04e4012
TT
37512010-07-09 Tom Tromey <tromey@redhat.com>
3752
3753 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
3754 'hint' if it is NULL.
3755
f4dfd9c0
HZ
37562010-07-09 Hui Zhu <teawater@gmail.com>
3757
3758 * source.c (print_source_lines_base): Add check for noprint.
3759
7e6e39e5
JB
37602010-07-08 Joel Brobecker <brobecker@adacore.com>
3761
3762 * python/python-config.py: Resync with Python 2.7 version of this
3763 script.
3764
76b8507d
JB
37652010-07-08 Joel Brobecker <brobecker@adacore.com>
3766
3767 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
3768
797054e6
JB
37692010-07-07 Joel Brobecker <brobecker@adacore.com>
3770
3771 * NEWS: Create a new section for the next release branch.
3772 Rename the section of the current branch, now that it has
3773 been cut.
3774
c80befee 37752010-07-07 Joel Brobecker <brobecker@adacore.com>
3776
3777 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3778 * version.in: Bump version to 7.2.50.20100707-cvs.
3779
ac56253d
TT
37802010-07-07 Tom Tromey <tromey@redhat.com>
3781
3782 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3783 LOC_COMPUTED symbol.
3784 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3785 (dwarf2_loc_desc_needs_frame): Likewise.
3786 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3787 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3788 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3789 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3790 'offset' argument.
3791 (struct dwarf2_frame_cache) <text_offset>: New field.
3792 (dwarf2_frame_cache): Set new field.
3793 (dwarf2_frame_prev_register): Update.
3794 (dwarf2_frame_sniffer): Update.
3795 (dwarf2_frame_base_sniffer): Update.
3796 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3797
0cf6dd15
TJB
37982010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3799 Thiago Jung Bauermann <bauerman@br.ibm.com>
3800
3801 Support for hw accelerated condition watchpoints in booke powerpc.
3802
3803 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3804 and move to eval.c. Change callers.
3805 (insert_bp_location): Pass watchpoint condition in
3806 target_insert_watchpoint.
3807 (remove_breakpoint_1) Pass watchpoint condition in
3808 target_remove_watchpoint.
3809 (watchpoint_locations_match): Call
3810 target_can_accel_watchpoint_condition.
3811 * eval.c: Include wrapper.h.
3812 (fetch_subexp_value): Moved from breakpoint.c.
3813 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3814 Formatting fix.
3815 (can_use_watchpoint_cond_accel): New function.
3816 (calculate_dvc): Likewise.
3817 (num_memory_accesses): Likewise.
3818 (check_condition): Likewise.
3819 (ppc_linux_can_accel_watchpoint_condition): Likewise
3820 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3821 check_condition and calculate_dvc.
3822 (ppc_linux_remove_watchpoint): Likewise.
3823 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3824 ppc_linux_can_accel_watchpoint_condition
3825 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3826 condition.
3827 (debug_to_remove_watchpoint): Likewise.
3828 (debug_to_can_accel_watchpoint_condition): New function.
3829 (update_current_target): Set to_can_accel_watchpoint_condition.
3830 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3831 * target.h: Add opaque declaration for struct expression.
3832 (struct target_ops) <to_insert_watchpoint>,
3833 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3834 <to_can_accel_watchpoint_condition>: New member.
3835 condition. Update all callers and implementations.
3836 (target_can_accel_watchpoint_condition): New macro.
3837 * value.c (free_value_chain): New function.
3838 * value.h (fetch_subexp_value): New prototype.
3839 (free_value_chain): Likewise.
3840
2f2241f1
UW
38412010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3842
3843 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3844 from gdbarch_core_regset_sections also for .reg if present.
3845
3846 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3847 section size for .reg.
3848 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3849 (ppc_linux_vmx_regset_sections): Likewise.
3850 (ppc_linux_fp_regset_sections): Likewise.
3851 (ppc64_linux_vsx_regset_sections): New variable.
3852 (ppc64_linux_vmx_regset_sections): Likewise.
3853 (ppc64_linux_fp_regset_sections): Likewise.
3854 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3855 for current word size.
3856
1fd7cdc2
JB
38572010-07-06 Joel Brobecker <brobecker@adacore.com>
3858
3859 * server.c (myresume): Make static.
3860
11763c18
TT
38612010-07-06 Tom Tromey <tromey@redhat.com>
3862
3863 * configure, config.in: Rebuild.
3864 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3865 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3866
a6cc4789
AS
38672010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3868
3869 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3870 "clear".
3871
f9e9243a
UW
38722010-07-06 Ken Werner <ken.werner@de.ibm.com>
3873
3874 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3875 * gdbtypes.c (floatformats_ieee_half): New variable.
3876 * doublest.c (floatformat_from_length): Set format to
3877 gdbarch_half_format if length matches.
3878 * gdbarch.sh (half_bit): New architecture method.
3879 (half_format): Likewise.
3880 * gdbarch.h: Regenerate.
3881 * gdbarch.c: Likewise.
3882
4e5799b6
JK
38832010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3884 Joel Brobecker <brobecker@adacore.com>
3885
3886 Fix re-run of PIE executable, PR shlibs/11776.
3887 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3888 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3889
86e4bafc
JK
38902010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3891 Joel Brobecker <brobecker@adacore.com>
3892
3893 * auxv.c (memory_xfer_auxv): Update attach comment.
3894 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3895 svr4_relocate_main_executable.
3896 (svr4_solib_create_inferior_hook): Make the call to
3897 svr4_relocate_main_executable unconditional.
3898
3cd07d20
JK
38992010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3900 Joel Brobecker <brobecker@adacore.com>
3901
3902 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3903
0a1e94c7
JK
39042010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3905 Joel Brobecker <brobecker@adacore.com>
3906
3907 Fix attaching to PIEs prelinked on the disk after the process was
3908 started.
3909 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3910 Verify it against bfd_get_arch_size. Try to match arbitrary
3911 displacement for the phdrs comparison.
3912
5387647f
TT
39132010-07-02 Tom Tromey <tromey@redhat.com>
3914
3915 PR exp/11780:
3916 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3917 value as optimized-out.
3918
38b6c3b3
TJB
39192010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3920 Thiago Jung Bauermann <bauerman@br.ibm.com>
3921
3922 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3923 represent?" question in comment. Change comment to a proper sentence.
3924
a17ac5b0
TT
39252010-07-02 Ken Werner <ken.werner@de.ibm.com>
3926
3927 * c-valprint.c (c_val_print): Fix printing of character vectors.
3928
bddaafad
JK
39292010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3930
3931 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3932 create_breakpoint prototype.
3933
d41c0fc8
PA
39342010-07-01 Pedro Alves <pedro@codesourcery.com>
3935
3936 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3937 usefulness suggestion of multiple breakpoints at same location.
3938
dc10affe
PA
39392010-07-01 Pedro Alves <pedro@codesourcery.com>
3940
3941 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3942
cabe9ab6
PA
39432010-07-01 Pedro Alves <pedro@codesourcery.com>
3944
3945 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3946 (loclist_tracepoint_var_ref): Handle optimized out values.
3947
cce7e648
PA
39482010-07-01 Pedro Alves <pedro@codesourcery.com>
3949
3950 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3951 unnecessary space in string.
3952 * filesystem.c (_initialize_filesystem): Ditto.
3953 * frame.c (_initialize_frame): Ditto.
3954 * infcmd.c (step_once): Ditto.
3955 * infrun.c (_initialize_infrun): Ditto.
3956 * linux-nat.c (linux_child_follow_fork): Ditto.
3957 * maint.c (maintenance_deprecate): Ditto.
3958 * memattr.c (_initialize_mem): Ditto.
3959 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3960 * monitor.c (monitor_open): Ditto.
3961 * procfs.c (procfs_xfer_memory): Ditto.
3962 * reverse.c (bookmarks_info): Ditto.
3963 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3964 * stack.c (_initialize_stack): Ditto.
3965 * tracepoint.c (_initialize_tracepoint): Ditto.
3966 * xtensa-tdep.c (xtensa_supply_gregset,
3967 xtensa_regset_from_core_section): Ditto.
3968
b65c7efe
TT
39692010-07-01 Tom Tromey <tromey@redhat.com>
3970
3971 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3972 check_all_valid.
3973 * value.c (value_entirely_optimized_out): Invert result. Update
3974 for new function name.
3975
0fb4aa4b
PA
39762010-07-01 Pedro Alves <pedro@codesourcery.com>
3977
3978 Static tracepoints support.
3979
3980 * NEWS: Mention new support for static tracepoints.
3981 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3982 qXfer:statictrace:read.
3983 (New features in the GDB remote stub, GDBserver): Mention static
3984 tracepoints support using an UST based backend.
3985 (New commands): Mention "info static-tracepoint-markers" and
3986 "strace".
3987 * breakpoint.c (is_marker_spec): New.
3988 (is_tracepoint): Handle static tracepoints.
3989 (validate_commands_for_breakpoint): Static tracepoints can't do
3990 while-stepping.
3991 (static_tracepoints_here): New.
3992 (bpstat_what): Handle static tracepoints.
3993 (print_one_breakpoint_location, allocate_bp_location, mention):
3994 Ditto.
3995 (create_breakpoint_sal): Ditto.
3996 (decode_static_tracepoint_spec): New.
3997 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3998 `type_wanted'. Adjust. Handle static tracepoint marker
3999 locations.
4000 (break_command_1): Adjust.
4001 (update_static_tracepoint): New.
4002 (update_breakpoint_locations): Handle static tracepoints.
4003 (breakpoint_re_set_one): Handle static tracepoint marker
4004 locations.
4005 (disable_command, enable_command): Handle static tracepoints.
4006 (trace_command, ftrace_command): Adjust.
4007 (strace_command): New.
4008 (create_tracepoint_from_upload): Adjust.
4009 (save_breakpoints): Handle static tracepoints.
4010 (_initialize_breakpoint): Install the "strace" command.
4011 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
4012 (struct breakpoint): New fields static_trace_marker_id and
4013 static_trace_marker_id_idx.
4014 (breakpoints_here_p): Declare.
4015 (create_breakpoint): Adjust.
4016 (static_tracepoints_here): Declare.
4017 * remote.c (struct remote_state) <static_tracepoints>: New field.
4018 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
4019 (remote_static_tracepoint_marker_at): New.
4020 (remote_static_tracepoint_markers_by_strid): New.
4021 (remote_static_tracepoint_feature): New.
4022 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
4023 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
4024 (remote_supports_static_tracepoints): New.
4025 (remote_download_tracepoint): Download static tracepoints.
4026 (init_remote_ops): Install remote_static_tracepoint_marker_at and
4027 remote_static_tracepoint_markers_by_strid.
4028 (_initialize_remote): Install set|show remote static-tracepoints,
4029 and set|show remote read-sdata-object commands.
4030 * target.c (update_current_target): Inherit and default
4031 to_static_tracepoint_marker_at, and
4032 to_static_tracepoint_markers_by_strid.
4033 * target.h (static_tracepoint_marker): Forward declare.
4034 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 4035 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
4036 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
4037 (struct target_ops): New fields to_static_tracepoint_marker_at and
4038 to_static_tracepoint_markers_by_strid.
4039 (target_static_tracepoint_marker_at)
4040 (target_static_tracepoint_markers_by_strid): New.
4041 * tracepoint.c: Include source.h.
4042 (validate_actionline): Handle $_sdata.
4043 (struct collection_list): New field strace_data.
4044 (add_static_trace_data): New.
4045 (clear_collection_list): Clear strace_data.
4046 (stringify_collection_list): Account for a possible static trace
4047 data collection.
4048 (encode_actions_1): Encode an $_sdata collection.
4049 (parse_tracepoint_definition): Handle static tracepoints.
4050 (parse_static_tracepoint_marker_definition): New.
4051 (release_static_tracepoint_marker): New.
4052 (print_one_static_tracepoint_marker): New.
4053 (info_static_tracepoint_markers_command): New.
4054 (sdata_make_value): New.
4055 (_initialize_tracepoint): Create the $_sdata convenience variable.
4056 Add the "info static-tracepoint-markers" command.
4057 Mention $_sdata in the "collect" command's help output.
4058 * tracepoint.h (struct static_tracepoint_marker): New.
4059 (parse_static_tracepoint_marker_definition)
4060 (release_static_tracepoint_marker): Declare.
4061 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4062 * python/py-breakpoint.c (bppy_new): Adjust.
4063
aac63f0f
JB
40642010-06-30 Joel Brobecker <brobecker@adacore.com>
4065
4066 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
4067 including Python.h.
4068
e68994a7
DE
40692010-06-29 Doug Evans <dje@google.com>
4070
3863f96c
DE
4071 PR gdb/11702
4072 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
4073 DW_AT_external is present.
4074
254e6b9e
DE
4075 PR gdb/11702
4076 * NEWS: Add entry.
4077 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
4078 create a symbol for the field and record the value.
4079 (new_symbol): Handle DW_TAG_member.
4080 * gdbtypes.c (field_is_static): Remove FIXME.
4081 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
4082 only ignore LOC_CONST symbols that are enums.
4083
6e70227d
DE
4084 * dwarf2read.c: Remove trailing whitespace.
4085
e68994a7
DE
4086 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
4087 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
4088 (struct main_type, field loc): Delete dwarf_block.
4089 (FIELD_DWARF_BLOCK): Delete.
4090 (SET_FIELD_DWARF_BLOCK): Delete.
4091 (TYPE_FIELD_DWARF_BLOCK): Delete.
4092 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
4093 Update.
4094
a480d2f6
HZ
40952010-06-29 Hui Zhu <teawater@gmail.com>
4096
4097 * record.c (set_record_pic_cmdlist,
4098 show_record_pic_cmdlist): New variables.
4099 (set_record_pic_command,
4100 show_record_pic_command): New functions.
4101 (record_pic_function, record_pic_line, record_pic_enum,
4102 set_record_pic_type, record_pic_hide_nofunction,
4103 record_pic_hide_nosource, record_pic_hide_same): New variables.
4104 (record_pic_fputs): New function.
4105 (function_list, node_list, edge_list): New struct.
4106 (function_list, node_list, edge_list): New variables.
4107 (record_pic_cleanups, record_pic_node,
4108 record_pic_edge, cmd_record_pic): New functions.
4109 (_initialize_record): Add new commands for record pic.
4110
a0d7a4ff
JK
41112010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4112
4113 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
4114 ALLOCATE_CPLUS_STRUCT_TYPE.
4115
595939de 41162010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
4117 Tom Tromey <tromey@redhat.com>
4118 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
4119
4120 * value.c (pack_unsigned_long): New function.
4121 (value_from_ulongest): New function.
4122 * value.h (value_from_ulongest): Declare.
4123 * python/python.c (_initialize_python): Call
4124 gdbpy_initialize_thread and gdbpy_initialize_inferior.
4125 * python/python-internal.h: Define thread_object.
4126 (gdbpy_inferiors, gdbpy_selected_thread)
4127 (frame_info_to_frame_object, create_thread_object)
4128 (find_thread_object, find_inferior_object)
4129 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
4130 (gdbpy_is_value_object, get_addr_from_python): Declare.
4131 * python/py-value.c (builtin_type_upylong): Define.
4132 (convert_value_from_python): Add logic for ulongest.
4133 (gdbpy_is_value_object): New function.
4134 * python/py-utils.c (get_addr_from_python): New function.
4135 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
4136 (gdbpy_selected_frame): Use PyObject over frame_info.
4137 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
4138 py-infthread.
4139 (SUBDIR_PYTHON_SRCS): Likewise.
4140 (py-inferior.o): New Rule.
4141 (py-infthread.o): New Rule.
4142 * python/py-inferior.c: New File.
4143 * python/py-infthread.c: New File.
4144
98751a41
JK
41452010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4146
4147 * c-typeprint.c (c_type_print_base): For no fields check include also
4148 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
4149 * dwarf2read.c (struct typedef_field_list)
4150 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
4151 (dwarf2_add_typedef): New.
4152 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
4153 Copy also FI.TYPEDEF_FIELD_LIST.
4154 * gdbtypes.h (struct typedef_field)
4155 (struct cplus_struct_type) <typedef_field, typedef_field_count>
4156 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
4157 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
4158
41f62f39
JK
41592010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4160
4161 * cp-namespace.c (cp_lookup_nested_type): New variable
4162 concatenated_name. Turn the current return condition into a reverse
4163 one. Call also lookup_static_symbol_aux on the constructed qualified
4164 name.
4165 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
4166 other files into a called ...
4167 (lookup_static_symbol_aux): ... new function here.
4168 * symtab.h (lookup_static_symbol_aux): New prototype.
4169 * valops.c (value_maybe_namespace_elt): Call also
4170 lookup_static_symbol_aux if we failed otherwise.
4171
af53d231
JK
41722010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4173
4174 Fix PR c++/11703 and PR gdb/1448.
4175 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
4176 FIRST_ITER check.
4177
9655fd1a
JK
41782010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4179
4180 Fix modification of cplus_struct_default.
4181 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
4182 Call ALLOCATE_CPLUS_STRUCT_TYPE.
4183 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
4184
9279c692
JB
41852010-06-28 Joel Brobecker <brobecker@adacore.com>
4186
4187 * NEWS: Add entry announcing the python directory.
4188
d3f41bb1
TT
41892010-06-28 Tom Tromey <tromey@redhat.com>
4190
4191 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
4192
23e7acfb
DE
41932010-06-28 Doug Evans <dje@google.com>
4194
4195 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
4196 All callers updated.
4197
6036c742
JK
41982010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4199
4200 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
4201 obstack_begin after each obstack_free.
4202
9f18a3b3
DE
42032010-06-27 Doug Evans <dje@google.com>
4204
1596cb5d
DE
4205 * value.c (value_static_field): Use `switch' instead of `if'.
4206 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
4207
9f18a3b3
DE
4208 * valops.c (search_struct_field): Fix typo in error message.
4209
43dabe42
UW
42102010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
4211
4212 * dwarf2expr.c (execute_stack_op): Place preprocessor
4213 directives at the start of the source line.
4214
0f3bb72e
PH
42152010-06-25 Paul Hilfinger <hilfinger@adacore.com>
4216
6036c742
JK
4217 * defs.h (make_command_stats_cleanup): Declare.
4218 (set_display_time): Declare.
4219 (set_display_space): Declare.
4220 * event-top.c (command_handler): Use make_command_stats_cleanup.
4221 * main.c (display_time, display_space): Move definitions to utils.c.
4222 (captured_main): Use make_command_stats_cleanup to get start-up
4223 statistics.
4224 Use set_display_time and set_display_space for processing OPT_STATISTICS
4225 case.
4226 * maint.c (maintenance_time_display): Use set_display_time.
4227 (maintenance_space_display): Use set_display_space.
4228 * top.c (execute_command): Remove obsolete 'maint time' code.
4229 (command_loop): Use make_command_stats_cleanup.
4230 * utils.c (struct cmd_stats): Structure for storing initial time
4231 and space usage.
4232 (display_time, display_space): Move definitions here from utils.c.
4233 (set_display_time): New function.
4234 (set_display_space): New function.
4235 (make_command_stats_cleanup): New function.
4236 (report_command_stats): New auxiliary function for
4237 make_command_stats_cleanup.
0f3bb72e 4238
070c8028
UW
42392010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4240
4241 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
4242 hosts where CORE_ADDR is long long.
4243
bc9f0842
TT
42442010-06-25 Tom Tromey <tromey@redhat.com>
4245
4246 PR python/10808:
4247 * python/python.c (execute_gdb_command): Add keywords. Accept
4248 "to_string" argument.
4249 (struct restore_ui_file_closure): New.
4250 (restore_ui_file): New function.
4251 (make_cleanup_restore_ui_file): Likewise.
4252 (GdbMethods) <execute>: Update.
4253
c0cc4c83
UW
42542010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4255
4256 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
4257 during inferior call stack frame setup.
4258
f1d8ee66
UW
42592010-06-25 Ken Werner <ken.werner@de.ibm.com>
4260
4261 * solib-spu.c: Include "exception.h".
4262 (ocl_program_data_key): New variable.
4263 (append_ocl_sos): New function.
4264 (ocl_enable_break): Likewise.
4265 (spu_current_sos): Call append_ocl_sos.
4266 (spu_solib_loaded): Call ocl_enable_break.
4267 (_initialize_spu_solib): Register ocl_program_data_key.
4268
19c0c0f8
UW
42692010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4270
4271 * cp-support.c (reset_directive_searched): New function.
4272 (make_symbol_overload_list_using): Prevent recursive calls.
4273
0f6a939d
PM
42742010-06-25 Phil Muldoon <pmuldoon@redhat.com>
4275
4276 * printcmd.c (print_variable_and_value): Print error message on
4277 caught exception.
4278
f2c7657e
UW
42792010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
4280
4281 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
4282 of stack values.
4283 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
4284 "value" member.
4285 (dwarf_expr_push): Change input type to ULONGEST.
4286 (dwarf_expr_fetch): Change return type to ULONGEST.
4287 (dwarf_expr_fetch_address): Add prototype.
4288 (dwarf2_read_address): Remove prototype.
4289 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
4290 Truncate stack values to ctx->addr_size bytes.
4291 (dwarf_expr_fetch): Change return value to ULONGEST.
4292 (dwarf_expr_fetch_address): New function.
4293 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
4294 when appropriate. Update for struct dwarf_expr_piece changes.
4295 (dwarf2_read_address): Remove.
4296 (unsigned_address_type): Remove.
4297 (signed_address_type): Remove.
4298 (execute_stack_op): Use dwarf_expr_fetch_address instead of
4299 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
4300 values. Perform operations on ULONGEST instead of on GDB values,
4301 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
4302 values and DW_OP_deref results as unsigned integers.
4303 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
4304 changes.
4305 (write_pieced_value): Likewise.
4306 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
4307 dwarf_expr_fetch when appropriate.
4308 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
4309 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
4310 instead of dwarf_expr_fetch when appropriate.
4311
b1d61bc9
PM
43122010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
4313
4314 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
4315
b14285f6
JB
43162010-06-24 Joel Brobecker <brobecker@adacore.com>
4317
4318 * python/python.c (_initialize_python): Add new "constant"
4319 PYTHONDIR in gdb module. Insert this path at the head of
4320 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
4321 exec its __init__.py script if it exists in that directory.
4322
fd60dc69
KB
43232010-06-24 Kevin Buettner <kevinb@redhat.com>
4324
4325 * rx-tdep.c (RX_ACC_REGNUM): Define.
4326 (RX_NUM_REGS): Redefine to 26.
4327 (rx_register_name): Add register "acc". Change order of several
4328 registers. Change name of "vct" register to "fintv" to match RX
4329 documentation.
4330 (rx_register_type): Add case for RX_ACC_REGNUM.
4331
18430289
TT
43322010-06-24 Tom Tromey <tromey@redhat.com>
4333
4334 * psymtab.c (lookup_partial_symbol): Mark definition as static.
4335
40618926
JK
43362010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4337 Tom Tromey <tromey@redhat.com>
4338
4339 Fix GDB startup on readonly filesystem.
4340 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
4341
628fe4e4
JK
43422010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4343 Pedro Alves <pedro@codesourcery.com>
4344
4345 Fix PR 9436.
4346 * breakpoint.c (handle_jit_event): New function.
4347 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
4348 jit, err, table and bs_class. New variables shlib_event, jit_event,
4349 this_action and bptype. Change bs_class assignments to this_action
4350 assignments. new unhandled bptype internal error. Move here
4351 shlib_event and jit_event handling from handle_inferior_event.
4352 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
4353 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
4354 BPSTAT_WHAT_CHECK_JIT.
4355 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
4356 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
4357 (handle_inferior_event): Reinitialize frame and gdbarch after
4358 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
4359 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
4360 gdbarch when frame gets reinitialized.
4361
f1421989
HZ
43622010-06-24 Hui Zhu <teawater@gmail.com>
4363
4364 * printcmd.c (ui_printf): New function.
4365 (printf_command): Call ui_printf.
4366 (_initialize_printcmd): New command "eval".
4367
d03285ec
UW
43682010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
4369
4370 * infrun.c (handle_inferior_event): Handle presence of single-step
4371 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
4372 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
4373 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
4374 * breakpoint.c (detach_single_step_breakpoints): New function.
4375 (detach_breakpoints): Call it.
4376 (cancel_single_step_breakpoints): New function.
4377 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
4378
4379 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
4380 (spu_gdbarch_init): Install it.
4381
38f6b338
JK
43822010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4383
4384 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
4385 * configure: Regenerate.
4386
bb08c432
HZ
43872010-06-22 Hui Zhu <teawater@gmail.com>
4388
4389 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
4390 (i386_process_record): Ditto.
4391 * record.c (record_memory_query): New variable.
4392 (_initialize_record): New command "set record memory-query".
4393 * record.h (record_memory_query): New extern.
4394
b55078be
DE
43952010-06-21 Doug Evans <dje@google.com>
4396
4397 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
4398 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
4399 (i386_syscall_p): Change type of lengthp to int.
4400 (i386_displaced_step_fixup): Handle kernels that run one past a
4401 syscall insn.
4402 * i386-linux-tdep.c (i386_linux_init_abi): Use
4403 i386_displaced_step_copy_insn instead of
4404 simple_displaced_step_copy_insn.
4405
75079b2b
TT
44062010-06-21 Tom Tromey <tromey@redhat.com>
4407
4408 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
4409 (dwarf_type_encoding_name): Likewise.
4410
b00fdb78
TT
44112010-06-21 Tom Tromey <tromey@redhat.com>
4412
4413 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
4414 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
4415 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
4416 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
4417 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
4418 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
4419 * dwarf2read.c (tag_type_to_type): Create a new error type on
4420 failure.
4421 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
4422 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
4423
84951ab5
MS
44242010-06-21 Michael Snyder <msnyder@vmware.com>
4425
889bf7c5 4426 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
4427 not add_abbrev_prefix_cmd, for "enable breakpoints".
4428
d4a087c7
UW
44292010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
4430
4431 * dwarf2loc.c (find_location_expression): Add relocation offset
4432 to base-address-selection entry base addresses. Read addresses
4433 (and offsets) as signed/unsigned integers, depending on the
4434 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
4435 (loclist_describe_location): Likewise.
4436 (disassemble_dwarf_expression): Read DW_OP_addr operand as
4437 unsigned integer. Do not call dwarf2_read_address.
4438 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
4439
13def385
UW
44402010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4441
4442 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
4443 value instead of hard-coded SPU_LS_SIZE.
4444 (spu_software_single_step): Likewise.
4445 * spu-tdep.h (SPU_LS_SIZE): Remove.
4446
d2ed6730
UW
44472010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
4448
4449 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
4450 limit on local store memory accesses.
4451 * spu-linux-nat.c (spu_xfer_partial): Likewise.
4452 * spu-tdep.c (spu_lslr): Remove.
4453 (spu_pointer_to_address): Do not truncate addresses.
4454 (spu_integer_to_address): Likewise.
4455 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
4456 * spu-tdep.h: Add comments.
4457 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
4458 (SPU_OVERLAY_LMA): Define.
4459
6aed2dbc
SS
44602010-06-18 Stan Shebs <stan@codesourcery.com>
4461
a61408f8
SS
4462 * osdata.c (get_osdata): Warn separately if target does not report
4463 type list.
4464 (info_osdata_command): Allow empty type, report error if target
4465 does not return available types of OS data.
4466 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
4467 types if no annex supplied.
4468
6aed2dbc
SS
4469 * thread.c (thread_id_make_value): Make a value representing the
4470 current thread.
4471 (_initialize_thread): Create $_thread.
4472
ec61707d
JB
44732010-06-17 Joel Brobecker <brobecker@adacore.com>
4474
4475 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
4476 last local variable declaration. No real code change.
4477
60606b2c
TT
44782010-06-17 Tom Tromey <tromey@redhat.com>
4479
4480 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
4481 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
4482 temporary obstack.
4483
65d79d4b
SDJ
44842010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
4485 Jan Kratochvil <jan.kratochvil@redhat.com>
4486
4487 * breakpoint.c: Include parser-defs.h.
4488 (watchpoint_exp_is_const): New function.
4489 (watch_command_1): Call watchpoint_exp_is_const to check
4490 if the expression is constant.
4491
0407b3f1
AS
44922010-06-15 Andreas Schwab <schwab@linux-m68k.org>
4493
4494 * configure.ac: Check for RDYNAMIC also for cross builds.
4495 * configure: Regenerate.
4496
98d64339
PA
44972010-06-15 Pedro Alves <pedro@codesourcery.com>
4498
4499 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4500 (SFILES): Remove solib-null.c, add solib-target.c.
4501 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
4502 (ALLDEPFILES): Remove solib-target.c.
4503 * solib-target.c (_initialize_solib_target): Set
4504 current_target_so_ops to solib_target_so_ops if not already set.
4505 * solib-null.c: Delete.
4506
6a271cae
PA
45072010-06-14 Pedro Alves <pedro@codesourcery.com>
4508
4509 * NEWS: Mention GDBserver's JIT compilation of tracepoint
4510 bytecode.
4511
1e9beacb
UW
45122010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4513
4514 * cp-valprint.c (cp_print_static_field): Members of
4515 dont_print_stat_array_obstack are of type "struct type *".
4516 (_initialize_cp_valprint): Likewise.
4517
21a176fb
UW
45182010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
4519
4520 * frame.c (frame_register_unwind): Do not access contents
4521 of "optimized out" unwound register value.
4522
25b524e8
JK
45232010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4524
4525 * ada-lang.h (ada_print_type): Make varstring const.
4526 * ada-typeprint.c (print_func_type): Make name const.
4527 (ada_print_type): Make varstring const.
4528 * c-lang.h (c_print_type): Make varstring const.
4529 * c-typeprint.c (c_print_type): Likewise.
4530 * f-lang.h (f_print_type): Likewise.
4531 * f-typeprint.c (f_print_type): Likewise.
4532 * jv-lang.h (java_print_type): Likewise.
4533 * jv-typeprint.c (java_print_type): Likewise.
4534 * language.c (unk_lang_print_type): Likewise.
4535 * language.h (struct language_defn) <la_print_type>: Likewise.
4536 * m2-lang.h (m2_print_type): Likewise.
4537 * m2-typeprint.c (m2_print_type): Likewise.
4538 * p-lang.h (pascal_print_type): Likewise.
4539 * p-typeprint.c (pascal_print_type): Likewise.
4540
d914c394
SS
45412010-06-11 Stan Shebs <stan@codesourcery.com>
4542
4543 Add per-operation permission flags.
4544
4545 * target.h (struct target_ops): New method to_set_permissions.
4546 (target_set_permissions): New macro.
4547 (target_insert_breakpoint): Change macro to function.
4548 (target_remove_breakpoint): Ditto.
4549 (target_stop): Ditto.
4550 (may_write_registers): Declare.
4551 (may_write_memory): Declare.
4552 (may_insert_breakpoints): Declare.
4553 (may_insert_tracepoints): Declare.
4554 (may_insert_fast_tracepoints): Declare.
4555 (may_stop): Declare.
4556 * target.c (may_write_registers, may_write_registers_1): New globals.
4557 (may_write_memory, may_write_memory_1): New globals.
4558 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
4559 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
4560 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
4561 globals.
4562 (may_stop, may_stop_1): New global.
4563 (target_xfer_partial): Test for write permission.
4564 (target_store_registers): Ditto.
4565 (target_insert_breakpoint): New function.
4566 (target_remove_breakpoint): New function.
4567 (target_stop): New function.
4568 (_initialize_targets): Add new set/show variables.
4569 (set_write_memory_permission): New function.
4570 (update_target_permissions): New function.
4571 (set_target_permissions): New function.
4572 (update_current_target): Default to_set_permissions.
4573 (_initialize_targets): Use new globals and setter function.
4574 * tracepoint.c (start_tracing): Test for permission.
4575 * inferior.h (update_observer_mode): Declare.
4576 * infrun.c (non_stop_1): Define earlier.
4577 (observer_mode, observer_mode_1): New globals.
4578 (set_observer_mode, show_observer_mode): New functions.
4579 (update_observer_mode): New function.
4580 (_initialize_infrun): Define "set observer" command.
4581 * remote.c (PACKET_QAllow): New optional packet.
4582 (remote_protocol_features): Add QAllow.
4583 (remote_set_permissions): New function.
4584 (remote_start_remote): Call it.
4585 (init_remote_ops): Add it to target vector.
4586 (_initialize_remote): Add config command for QAllow.
4587
aec5aa8b
TT
45882010-06-11 Tom Tromey <tromey@redhat.com>
4589
4590 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
4591 DW_AT_vtable_elem_location even when GCC extension is seen.
4592
0e03807e
TT
45932010-06-11 Tom Tromey <tromey@redhat.com>
4594
4595 PR gdb/9977, PR exp/11636:
4596 * value.h (value_offset): Update.
4597 (struct lval_funcs) <check_validity>: New field.
4598 <copy_closure>: Make argument const.
4599 (value_computed_closure): Update.
4600 (value_contents_for_printing): Declare.
4601 (value_bits_valid): Likewise.
4602 (val_print): Likewise.
4603 (set_value_component_location): Update.
4604 (value_entirely_optimized_out): Declare.
4605 * value.c (value_offset): Argument now const.
4606 (require_not_optimized_out): New function.
4607 (value_contents_for_printing): New function.
4608 (value_contents_all): Call require_not_optimized_out.
4609 (value_contents): Likewise.
4610 (value_bits_valid): New function.
4611 (value_computed_closure): Argument now const.
4612 (set_value_component_location): Make 'whole' argument const.
4613 (value_entirely_optimized_out): New function.
4614 (value_bitsize): Argument now 'const'.
4615 (value_bitpos): Likewise.
4616 (value_type): Likewise.
4617 * valprint.h (val_print_array_elements): Update.
4618 * valprint.c (val_print): Add 'val' argument. Use
4619 valprint_check_validity.
4620 (valprint_check_validity): New function.
4621 (value_check_printable): Use value_entirely_optimized_out.
4622 (common_val_print): Update.
4623 (value_print): Likewise.
4624 (val_print_array_elements): Add 'val' argument.
4625 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
4626 value_bits_valid. Reinit frame cache for lval_computed.
4627 * sh64-tdep.c (sh64_do_register): Update.
4628 * scm-valprint.c (scm_val_print): Add 'val' argument.
4629 * scm-lang.h (scm_val_print): Update.
4630 * python/python.h (apply_val_pretty_printer): Update.
4631 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
4632 argument. Call set_value_component_location.
4633 * printcmd.c (print_scalar_formatted): Update.
4634 * p-valprint.c (pascal_val_print): Add 'val' argument.
4635 (pascal_object_print_value_fields): Likewise.
4636 (pascal_object_print_value): Likewise.
4637 (pascal_object_print_static_field): Update.
4638 * p-lang.h (pascal_val_print): Update.
4639 (pascal_object_print_value_fields): Update.
4640 * mt-tdep.c (mt_registers_info): Update.
4641 * mi/mi-main.c (get_register): Update.
4642 (mi_cmd_data_evaluate_expression): Use common_val_print.
4643 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
4644 (m2_print_unbounded_array): Likewise.
4645 (m2_val_print): Likewise.
4646 * m2-lang.h (m2_val_print): Update.
4647 * language.h (struct language_defn) <la_val_print>: Add 'val'
4648 argument.
4649 (LA_VAL_PRINT): Likewise.
4650 * language.c (unk_lang_val_print): Add 'val' argument.
4651 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
4652 (java_val_print): Likewise.
4653 * jv-lang.h (java_val_print): Add 'val' argument.
4654 * infcmd.c (default_print_registers_info): Update.
4655 * f-valprint.c (f77_print_array_1): Add 'val' argument.
4656 (f77_print_array): Likewise.
4657 (f_val_print): Likewise.
4658 * f-lang.h (f_val_print): Add 'val' argument.
4659 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
4660 value_bitpos.
4661 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
4662 set_value_optimized_out.
4663 (write_pieced_value): Use value_bitsize and value_bitpos.
4664 <default>: Don't exit loop.
4665 (check_pieced_value_validity): New function.
4666 (pieced_value_funcs): Reference check_pieced_value_validity,
4667 check_pieced_value_invalid.
4668 (copy_pieced_value_closure): Update.
4669 (check_pieced_value_bits): New function.
4670 (check_pieced_value_invalid): New function.
4671 * d-valprint.c (dynamic_array_type): Add 'val' argument.
4672 (d_val_print): Likewise.
4673 * d-lang.h (d_val_print): Update.
4674 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
4675 (cp_print_value_fields_rtti): Likewise.
4676 (cp_print_value): Likewise.
4677 (cp_print_static_field): Update.
4678 * c-valprint.c (c_val_print): Add 'val' argument.
4679 (c_value_print): Update.
4680 * c-lang.h (c_val_print): Update.
4681 (cp_print_value_fields): Likewise.
4682 (cp_print_value_fields_rtti): Likewise.
4683 * ada-valprint.c (struct ada_val_print_args): Remove.
4684 (val_print_packed_array_elements): Add 'val' argument.
4685 (ada_val_print): Likewise. Rewrite.
4686 (ada_val_print_stub): Remove.
4687 (ada_val_print_array): Add 'val' argument.
4688 (ada_val_print_1): Likewise.
4689 (print_variant_part): Likewise.
4690 (ada_value_print): Update.
4691 (print_record): Add 'val' argument.
4692 (print_field_values): Likewise.
4693 * ada-lang.h (ada_val_print): Update.
4694
3cf03773
TT
46952010-06-11 Tom Tromey <tromey@redhat.com>
4696
4697 * vec.h (VEC_cleanup): New macro.
4698 (DEF_VEC_ALLOC_FUNC_I): Update.
4699 (DEF_VEC_ALLOC_FUNC_P): Likewise.
4700 (DEF_VEC_ALLOC_FUNC_O): Likewise.
4701 * dwarf2loc.c (struct axs_var_loc): Remove.
4702 (unimplemented): New function.
4703 (translate_register): Likewise.
4704 (access_memory): Likewise.
4705 (compile_dwarf_to_ax): Likewise.
4706 (dwarf2_tracepoint_var_loc): Remove.
4707 (dwarf2_tracepoint_var_access): Likewise.
4708 (dwarf2_tracepoint_var_ref): Likewise.
4709 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
4710 (loclist_tracepoint_var_ref): Likewise.
4711 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
4712 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
4713 require_composition. No longer static.
4714 (execute_stack_op): Update.
4715 * ax-gdb.h (trace_kludge): Declare.
4716
2bdf28a0
JK
47172010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4718
4719 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
4720 (should_be_inserted): Return zero also on NULL OWNER.
4721 (breakpoint_program_space_exit): New OWNER comment.
4722 (insert_breakpoint_locations): Extend comment for OWNER.
4723 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
4724 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
4725 New OWNER comment.
4726 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
4727 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
4728 (bpstat_check_location): New assert on OWNER.
4729 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
4730 and B initializations to the code block. New assert on them.
4731 (print_one_breakpoint_location): New OWNER comment.
4732 (watchpoint_locations_match): Assert on OWNER.
4733 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
4734 initializations to the code block. New assert on OWNER.
4735 (set_breakpoint_location_function): New assert on OWNER.
4736 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
4737 (bp_location_compare, update_global_location_list)
4738 (update_global_location_list): New OWNER comment.
4739
5b9a19af
UW
47402010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4741
4742 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
4743
669211f5
UW
47442010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4745
4746 * config/nm-linux.h (struct target_ops): Remove forward declaration.
4747 (lin_thread_get_thread_signals): Remove prototype.
4748 (GET_THREAD_SIGNALS): Remove.
4749 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
4750 * linux-thread-db.c (check_thread_signals): Directly call
4751 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
4752
b7a8b4ef
UW
47532010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
4754
4755 * gregset.h (GDB_FPXREGSET_T): Remove.
4756 (gdb_fpxregset_t): Likewise.
4757 (supply_fpxregset): Remove prototype.
4758 (fill_fpxregset): Likewise.
4759 * i386-linux-nat.c (supply_fpxregset): Remove.
4760 (fill_fpxregset): Likewise.
4761 (fetch_fpxregs): Inline supply_fpxregset call.
4762 (store_fpxregs): Inline fill_fpxregset call.
4763
4764 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
4765 * config/i386/nm-linux.h: Remove file.
4766
82892036
MS
47672010-06-09 Michael Snyder <msnyder@vmware.com>
4768
4769 * target.c (update_current_target): Fix spelling error in comment.
4770 (target_mourn_inferior): Fix spelling error in error message.
4771
5ddb52fa
PH
47722010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4773
4774 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4775 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4776
0f2caa1b
MS
47772010-06-08 Michael Snyder <msnyder@vmware.com>
4778
4779 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4780
3bebe2f2
JK
47812010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4782
4783 * configure.ac <"${have_libpython}" != no>: New workaround of
4784 python#4434.
4785 * configure: Regenerate.
4786
eaaffdf4
HZ
47872010-06-08 Hui Zhu <teawater@gmail.com>
4788
4789 * record.c (record_wait): Move signal out of replay code.
4790
5c631832
JK
47912010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4792
4793 Fix PR 10640.
4794 * dwarf2-frame.c (no_dwarf_call): New function.
4795 (execute_stack_op): Set CTX->DWARF_CALL.
4796 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4797 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4798 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4799 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4800 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4801 (needs_frame_dwarf_call): New function.
4802 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4803 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4804 Update the comment. Move variables die, offset and error call to ...
4805 (follow_die_ref): ... a new function.
4806 (dwarf2_fetch_die_location_block): New function.
4807 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4808
17ea53c3
JK
48092010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4810
4811 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4812 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4813 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4814 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4815 this change.
4816 (struct needs_frame_baton): New field per_cu.
4817 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4818 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4819
245040d7
SW
48202010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4821
4822 * cp-support.c (make_symbol_overload_list_namespace): Only search
4823 static and global blocks.
4824 (make_symbol_overload_list_block): New function.
4825 (make_symbol_overload_list): Separate namespace search from block
4826 search.
4827 (make_symbol_overload_list_qualified): Use
4828 make_symbol_overload_list_block.
4829
4c3376c8
SW
48302010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4831
4832 * value.h: Created oload_search_type enum.
4833 (find_overload_match): Use oload_search_type enum.
4834 * valops.c (find_overload_match): Support combined member and
4835 non-member search.
4836 * eval.c (evaluate_subexp_standard): Calls to
4837 find_overload_match now use oload_search_type enum.
4838 (oload_method_static): Verify index is a proper value.
4839 * valarith.c (value_user_defined_cpp_op): Search for and handle
4840 both member and non-member operators.
4841 (value_user_defined_cpp_op): New function.
4842 (value_user_defined_op): New function.
4843 (value_x_unop): Use value_user_defined_op.
4844 (value_x_binop): Ditto.
4845 * cp-support.c (make_symbol_overload_list_using): Added block
4846 iteration.
4847 Add check for namespace aliases and imported declarations.
4848
ee55da67
JK
48492010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4850
4851 * breakpoint.h (owner): Extend the comment.
4852
1a2ab13a
JK
48532010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4854
4855 Clear stale specific bp_location from former whole breakpoint.
4856 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4857 code ...
4858 (free_bp_location): ... here. Rename there the called function to
4859 bpstat_remove_bp_location_callback.
4860 (bpstat_remove_breakpoint_callback): Rename to ...
4861 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4862 to struct bp_location. Change the called function to
4863 bpstat_remove_bp_location. Create new declaration for the function.
4864 (bpstat_remove_breakpoint): Rename to ...
4865 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4866 code for the new parameter type.
4867
16d6b4b7
NS
48682010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4869
4870 * README: Make version-agnostic.
4871
7e314c57
JK
48722010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4873
4874 Fix duplicate types for single DIE.
4875 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4876 set_die_type.
4877 (read_array_type): Remove type initialization. Recheck get_die_type
4878 after initial die_type. Move set_die_type before set_descriptive_type.
4879 (read_set_type): New variable domain_type. Recheck get_die_type after
4880 initial die_type. Move attr initialization later.
4881 (read_tag_pointer_type, read_tag_reference_type): New variable
4882 target_type. Recheck get_die_type after initial die_type.
4883 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4884 die_type and die_containing_type.
4885 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4886 Recheck get_die_type after initial die_type.
4887 (read_subrange_type): Recheck get_die_type after initial die_type.
4888 Move set_die_type before set_descriptive_type.
4889 (set_die_type): Extend the function comment. Call complaint if DIE has
4890 some type already set.
4891
2f296114
VP
48922010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4893
4894 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4895 for current naming of thread groups (iN, not N).
4896
554794dc
SDJ
48972010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4898
4899 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4900 * parse.c (operator_length): Likewise.
4901 (operator_length_standard): Likewise.
4902 * parser-defs.h (operator_length): Likewise.
4903 (operator_length_standard): Likewise.
4904 (struct exp_descriptor <operator_length>): Likewise.
4905
967cf477
DE
49062010-06-04 Doug Evans <dje@google.com>
4907
bddaacb9 4908 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4909 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4910 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4911 * python/python.c (gdbpy_enabled_cst): Define.
4912 (_initialize_python): Initialize gdbpy_enabled_cst.
4913 * NEWS: Add entry.
4914
2dec564e
JK
49152010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4916
4917 * breakpoint.c (update_global_location_list): Fix comment typo.
4918
44b5680a
HZ
49192010-06-04 Hui Zhu <teawater@gmail.com>
4920
4921 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4922
e7a30f46
DE
49232010-06-03 Doug Evans <dje@google.com>
4924
4925 * configure.ac: Don't fail if python is unusable when
4926 configured with --with-python=auto.
4927 * configure: Regenerate.
4928
84b4420f
SW
49292010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4930
889bf7c5 4931 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4932
df178451
PM
49332010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4934
4935 * valprint.h (get_array_bounds): Change low and high parameter types
4936 to LONGEST *.
0407b3f1 4937 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4938 compute bounds.
4939 (val_print_array_elements): Adapt to change above.
4940 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4941 * p-valprint.c (pascal_val_print): Likewise.
4942
fd5700c7
JK
49432010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4944
4945 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4946 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4947 .F08.
4948
f55ee35c
JK
49492010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4950
4951 Support DW_TAG_module as separate namespaces.
4952 * dwarf2read.c (typename_concat): New parameter physname.
4953 (read_module_type): New function and declaration.
4954 (scan_partial_symbols): Scan also DW_TAG_module children.
4955 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4956 to typename_concat backward compatible physname value 0.
4957 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4958 backward compatible physname value 0.
4959 (add_partial_module, read_module): Remove FIXME comment.
4960 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4961 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4962 DIEs under DW_TAG_module.
4963 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4964 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4965 && physname and return there instead of just setting NAME. Extend
4966 the main block for language_fortran. Pass physname parameter to the
4967 typename_concat call.
4968 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4969 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4970 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4971 missing from SYMBOL_SET_NAMES in the language_fortran case.
4972 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4973 variables.
4974 (read_type_die) <DW_TAG_module>: New.
4975 (MAX_SEP_LEN): Increase to 7.
4976 (typename_concat): New parameter physname. New variable lead. Support
4977 also language_fortran.
4978 * f-exp.y (yylex): Consider : also as a symbol name character class.
4979 * f-lang.c: Include cp-support.h.
4980 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4981 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4982 f_word_break_characters and f_make_symbol_completion_list.
4983 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4984 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4985 * symtab.c (symbol_init_language_specific): Support language_fortran.
4986 (symbol_find_demangled_name): New comment on language_fortran.
4987 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4988 for language_fortran.
4989 (lookup_symbol_aux_local): Check imports also for language_fortran.
4990 (default_make_symbol_completion_list): Rename to ...
4991 (default_make_symbol_completion_list_break_on): ... this name. New
4992 parameter break_on, use it.
4993 (default_make_symbol_completion_list): New stub.
4994 * symtab.h (default_make_symbol_completion_list_break_on): New
4995 prototype.
4996
cb91c06a
JB
49972010-06-02 Joel Brobecker <brobecker@adacore.com>
4998
4999 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
5000 to error.
5001
5c315b68
JK
50022010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5003
5004 * dwarf2read.c (typename_concat): Add const to the variable sep.
5005
9eae7c52
TT
50062010-06-02 Tom Tromey <tromey@redhat.com>
5007
5008 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
5009 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
5010 type is const. Add 'def' argument. Add missing operators, remove
5011 unhandled ones.
5012 (decode_locdesc): Update.
5013 (dwarf2_always_disassemble): New global.
5014 (show_dwarf2_always_disassemble): New function.
5015 (_initialize_dwarf2_read): Add always-disassemble.
5016 (dwarf2_per_cu_offset_size): New function.
5017 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
5018 (piece_end_p): New function.
5019 (locexpr_describe_location_piece): Replace 'size' argument with
5020 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
5021 some constants. Remove errors.
5022 (disassemble_dwarf_expression): New function.
5023 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
5024 Add 'offset_size' argument.
5025 (loclist_describe_location): Change output formatting.
5026 * dwarf2expr.h (dwarf_stack_op_name): Declare.
5027
7d3fe98e
SW
50282010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
5029
5030 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
5031 anonymous type case.
5032
e77813c8
PM
50332010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
5034
5035 * dwarf2read.c (read_subrange_type): Handle missing base type
5036 according to Dwarf-2 specifications.
5037
7cf3118a
SDJ
50382010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
5039
5040 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
5041 BINOP_EXCL.
5042 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
5043 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
5044 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
5045 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
5046 UNOP_CHMAX, UNOP_CHMIN.
5047 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
5048 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
5049 UNOP_CHMIN>: Remove opcodes.
5050
ae4d0c03
PM
50512010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
5052
5053 * dwarf2read.c (read_func_scope): Do not complain for
5054 external function if bounds are not found.
5055
fa593d66
PA
50562010-06-01 Pedro Alves <pedro@codesourcery.com>
5057
5058 * NEWS: Mention gdbserver fast tracepoints support.
5059
cd44747c
PM
50602010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
5061
5062 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
5063 New macros.
5064 (windows_set_console_info): New function.
5065 (windows_create_inferior): Call windows_set_console_info
5066 if NEW_CONSOLE is true.
5067 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
5068 (_initialize_loadable): Initialize GetConsoleFontSize and
5069 GetCurrentConsoleFont.
5070
f6528abd
JK
50712010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5072
5073 * Makefile.in (RDYNAMIC): New.
5074 (SFILES): Add proc-service.list.
5075 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
5076 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
5077 * config/arm/linux.mh: Likewise.
5078 * config/i386/linux.mh: Likewise.
5079 * config/i386/linux64.mh: Likewise.
5080 * config/ia64/linux.mh: Likewise.
5081 * config/m32r/linux.mh: Likewise.
5082 * config/m68k/linux.mh: Likewise.
5083 * config/mips/linux.mh: Likewise.
5084 * config/pa/linux.mh: Likewise.
5085 * config/powerpc/linux.mh: Likewise.
5086 * config/powerpc/ppc64-linux.mh: Likewise.
5087 * config/s390/s390.mh: Likewise.
5088 * config/sparc/linux.mh: Likewise.
5089 * config/sparc/linux64.mh: Likewise.
5090 * config/xtensa/linux.mh: Likewise.
5091 * configure.ac: New RDYNAMIC on native host and GCC.
5092 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
5093 * configure: Regenerate.
5094 * proc-service.list: New.
5095
ca2a87a0
JK
50962010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5097
5098 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
5099 CONTENT.
5100
1e225492
JK
51012010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5102
5103 * linux-nat.c (linux_nat_wait_1): Do not call
5104 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
5105 TARGET_WAITKIND_SIGNALLED.
5106
e802dbe0
JB
51072010-05-27 Joel Brobecker <brobecker@adacore.com>
5108
5109 * ada-lang.c (ada_inferior_data): New struct.
5110 (ada_inferior_data): New static global.
5111 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
5112 (ada_get_tsd_type): New functions.
5113 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
5114 to look the tsd type up.
5115 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
5116 event. Set ada_inferior_data.
5117
176a6961
PA
51182010-05-27 Pedro Alves <pedro@codesourcery.com>
5119
5120 * remote.c (unpack_varlen_hex): Remove forward declaration.
5121 (remote_console_output): Make static, and add forward declaration.
5122 * remote.h: Drop FIXME comment.
5123 (unpack_varlen_hex): Declare.
5124 (remote_console_output, remote_cisco_objfile_relocate)
5125 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
5126 Delete declarations.
5127 * tracepoint.c: Include "remote.h".
5128 (unpack_varlen_hex): Delete declaration.
5129
88bfdde4
TT
51302010-05-27 Tom Tromey <tromey@redhat.com>
5131
5132 * dwarf2loc.c (struct piece_closure) <refc>: New field.
5133 (allocate_piece_closure): Initialize refc.
5134 (copy_pieced_value_closure): Use refc.
5135 (free_pieced_value_closure): Likewise.
5136
8c6363cf
TT
51372010-05-27 Tom Tromey <tromey@redhat.com>
5138
5139 * arm-tdep.c (push_stack_item): 'contents' now const.
5140 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
5141 value_contents_writeable. Introduce new temporary.
5142
7ecb917e
TT
51432010-05-27 Tom Tromey <tromey@redhat.com>
5144
5145 * findcmd.c (parse_find_args): Use value_contents, not
5146 value_contents_raw.
5147
f42a0a33
TT
51482010-05-27 Tom Tromey <tromey@redhat.com>
5149
5150 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
5151 const. Use value_contents, not value_contents_writeable.
5152
12b795ad
JB
51532010-05-27 Joel Brobecker <brobecker@adacore.com>
5154
5155 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
5156 by call to value_contents.
5157
5a2e11c7
OS
51582010-05-27 Ozkan Sezer <sezeroz@gmail.com>
5159
5160 * MAINTAINERS: Add myself for write after approval privileges.
5161
ec685c5e
DE
51622010-05-26 Doug Evans <dje@google.com>
5163
0c4a4063
DE
5164 Allow python to find its files if moved from original location.
5165 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
5166 (GDB_AC_WITH_DIR): Call it.
5167 * configure.ac: Define WITH_PYTHON_PATH if we can find the
5168 python installation directory.
5169 * config.in: Regenerate.
5170 * configure: Regenerate.
5171 * defs.h (python_libdir): Declare.
5172 * main.c (python_libdir): Define.
5173 (captured_main): Initialize python_libdir.
5174 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
5175 call Py_SetProgramName to make sure python can find its libraries
5176 and modules.
5177
ec685c5e
DE
5178 * configure.ac: Try to use python's distutils to fetch compilation
5179 parameters.
5180 * configure: Regenerate.
5181 * python/python-config.py: New file.
5182
363a6e9f
OS
51832010-05-26 Ozkan Sezer <sezeroz@gmail.com>
5184
5185 * ser-tcp.c (net_open): Check error return from socket() call by its
5186 equality to -1 not by it being negative.
5187 (net_close): Likewise.
5188
dde08ee1
PA
51892010-05-26 Pedro Alves <pedro@codesourcery.com>
5190
5191 * NEWS: Mention the `qRelocInsn' feature.
5192 * gdbarch.sh (relocate_instruction): New.
5193 * amd64-tdep.c (rip_relative_offset): New.
5194 (append_insns): New.
5195 (amd64_relocate_instruction): New.
5196 (amd64_init_abi): Install it.
5197 * i386-tdep.c (append_insns): New.
5198 (i386_relocate_instruction): New.
5199 (i386_gdbarch_init): Install it.
5200 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
5201 * gdbarch.h, gdbarch.c: Regenerate.
5202
947bb88f
TT
52032010-05-26 Tom Tromey <tromey@redhat.com>
5204
5205 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
5206 (struct dwarf2_loclist_baton) <data>: Likewise.
5207 * dwarf2loc.c (find_location_expression): Constify return type.
5208 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
5209 (dwarf2_loc_desc_needs_frame): Likewise.
5210 (loclist_read_variable): Constify.
5211 (loclist_describe_location): Likewise.
5212 (loclist_tracepoint_var_ref): Likewise.
5213
0d45f56e
TT
52142010-05-25 Tom Tromey <tromey@redhat.com>
5215
5216 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
5217 (dwarf_expr_frame_base_1): Likewise.
5218 (read_pieced_value): Update.
5219 (needs_frame_frame_base): Constify.
5220 (dwarf2_tracepoint_var_loc): Likewise.
5221 (dwarf2_tracepoint_var_access): Likewise.
5222 (locexpr_describe_location_piece): Likewise.
5223 (locexpr_describe_location_1): Likewise.
5224 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
5225 Constify.
5226 (data): Now const.
5227 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
5228 (dwarf_expr_eval, read_uleb128, read_sleb128)
5229 (dwarf2_read_address): Update.
5230 * dwarf2expr.c (dwarf_expr_eval): Constify.
5231 (read_uleb128): Likewise.
5232 (read_sleb128): Likewise.
5233 (dwarf2_read_address): Likewise.
5234 (require_composition): Likewise.
5235 (execute_stack_op): Likewise.
5236 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
5237 "const gdb_byte *".
5238 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
5239 Now const.
5240 (no_get_frame_base): Constify.
5241 (execute_stack_op): Likewise.
5242 (execute_cfa_program): Likewise.
5243 (read_encoded_value): Likewise.
5244
07ca107c
DE
52452010-05-25 Doug Evans <dje@google.com>
5246
e34838f0
DE
5247 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
5248
01f69b38
DE
5249 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
5250 * event-loop.c: ... here.
5251 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
5252 `error' for clarity.
5253 (tui_getc): Pass correct value for `error' parameter to
5254 tui_readline_output.
5255
07ca107c
DE
5256 Add python gdb.GdbError and gdb.string_to_argv.
5257 * NEWS: Document them.
5258 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
5259 the exception is gdb.GdbError. Print a second traceback if there's
5260 an error computing the error message.
5261 (gdbpy_string_to_argv): New function.
5262 * python/py-utils.c (gdbpy_obj_to_string): New function.
5263 (gdbpy_exception_to_string): New function.
5264 * python/python-internal.h (gdbpy_string_to_argv): Declare.
5265 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
5266 (gdbpy_gdberror_exc): Declare.
5267 * python/python.c (gdbpy_gdberror_exc): New global.
5268 (_initialize_python): Initialize gdbpy_gdberror_exc and create
5269 gdb.GdbError.
5270 (GdbMethods): Add string_to_argv.
5271
5572ce1f
PM
52722010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5273
5274 * windows-nat.c (display_selector): Call GetLastError to give better
5275 failure explanation.
5276
acd5838a
PA
52772010-05-24 Pedro Alves <pedro@codesourcery.com>
5278
5279 * config.in: Regenerate.
5280
b26a4dcb
JK
52812010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5282
5283 Code cleanup.
5284 * target.c (push_target): Return only void. Remove the return value
5285 comment.
5286 * target.h (push_target): Return only void.
5287
f434ba03
PA
52882010-05-23 Pedro Alves <pedro@codesourcery.com>
5289
5290 Update gnulib from latest git.
5291 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5292
5293 * gnulib/memcmp.c: Removed.
5294 * gnulib/memchr.valgrind: New.
5295 * gnulib/stddef.in.h: New.
5296 * gnulib/Makefile.am: Updated.
5297 * gnulib/memchr.c: Updated.
5298 * gnulib/memmem.c: Updated.
5299 * gnulib/stdint.in.h: Updated.
5300 * gnulib/str-two-way.h: Updated.
5301 * gnulib/string.in.h: Updated.
5302 * gnulib/wchar.in.h: Updated.
5303
5304 * gnulib/extra/link-warning.h: Removed.
5305 * gnulib/extra/c++defs.h: New.
5306 * gnulib/extra/warn-on-use.h: New.
5307 * gnulib/extra/arg-nonnull.h: Updated.
5308
5309 * gnulib/m4/extensions.m4: Updated.
5310 * gnulib/m4/gnulib-cache.m4: Updated.
5311 * gnulib/m4/gnulib-common.m4: Updated.
5312 * gnulib/m4/gnulib-comp.m4: Updated.
5313 * gnulib/m4/gnulib-tool.m4: Updated.
5314 * gnulib/m4/include_next.m4: Updated.
5315 * gnulib/m4/longlong.m4: Updated.
5316 * gnulib/m4/memchr.m4: Updated.
5317 * gnulib/m4/memmem.m4: Updated.
5318 * gnulib/m4/stdint.m4: Updated.
5319 * gnulib/m4/string_h.m4: Updated.
5320 * gnulib/m4/memcmp.m4: Removed.
5321 * gnulib/m4/onceonly_2_57.m4: Removed.
5322 * gnulib/m4/00gnulib.m4: New.
5323 * gnulib/m4/mmap-anon.m4: New.
5324 * gnulib/m4/multiarch.m4: New.
5325 * gnulib/m4/onceonly.m4: New.
5326 * gnulib/m4/stddef_h.m4: New.
5327 * gnulib/m4/warn-on-use.m4: New.
5328 * gnulib/m4/wchar.m4: Removed.
5329 * gnulib/m4/wchar_h.m4: New.
5330 * gnulib/m4/wchar_t.m4: New.
5331 * gnulib/m4/wint_t.m4: New.
5332
5333 * aclocal.m4: Regenerate.
5334 * config.in: Likewise.
5335 * configure: Likewise.
5336 * gnulib/Makefile.in: Likewise.
5337
d3b1e874
TT
53382010-05-21 Tom Tromey <tromey@redhat.com>
5339
5340 * dwarf2loc.c (extract_bits_primitive): New function.
5341 (extract_bits): Likewise.
5342 (insert_bits): Likewise.
5343 (copy_bitwise): Likewise.
5344 (read_pieced_value): Do all operations in bits.
5345 (write_pieced_value): Likewise.
5346 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
5347 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
5348 Always use xrealloc to resize piece array.
5349 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
5350 <DW_OP_piece>: Update.
5351 <DW_OP_bit_piece>: New case.
5352
cb826367
TT
53532010-05-21 Tom Tromey <tromey@redhat.com>
5354
5355 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
5356 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
5357 * dwarf2expr.h (enum dwarf_value_location)
5358 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
5359 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
5360 (add_piece): Handle empty piece.
5361 (execute_stack_op) <DW_OP_piece>: Handle
5362 DWARF_VALUE_OPTIMIZED_OUT.
5363
74de6778
TT
53642010-05-21 Tom Tromey <tromey@redhat.com>
5365
5366 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
5367 evaluate_subexp, not evaluate_subexp_with_coercion.
5368
f346a30d
PM
53692010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5370
5371 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
5372 attribute.
5373
afd74c5f
TT
53742010-05-21 Tom Tromey <tromey@redhat.com>
5375
5376 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
5377 offset.
5378 (write_pieced_value): Likewise.
5379
90e7c2c5
PM
53802010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
5381
5382 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
5383 and DW_TAG_volatile_type.
5384 (new_symbol): Likewise.
5385
8148cf8d
PM
53862010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
5387
5388 * p-valprint.c (pascal_val_print): Call get_array_bounds
5389 to obtain the number of elements in an array.
5390
3a1d4620
DE
53912010-05-19 Doug Evans <dje@google.com>
5392
0bf0f8c4
DE
5393 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
5394
3a1d4620
DE
5395 * python.c (source_python_script): Add comment.
5396 (source_python_script_for_objfile): Remove unnecessary call to
5397 gdbpy_print_stack.
5398
dc21167c
JK
53992010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5400 Sergio Durigan Junior <sergiodj@redhat.com>
5401
5402 Code cleanup.
5403 * parse.c (exp_iterate): Use operator_length wrapper function.
5404
5b4ee69b
MS
54052010-05-18 Michael Snyder <msnyder@vmware.com>
5406
5407 * ada-lang.c: White space.
5408 * ada-typeprint.c: White space.
5409 * ada-valprint.c: White space.
5410 * addrmap.c: White space.
5411 * auxv.c: White space.
5412 * ax-gdb.c: White space.
5413
e17c9e56
HZ
54142010-05-18 Hui Zhu <teawater@gmail.com>
5415
5416 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
5417 for oldfp.
5418 (inferior_call_waitpid): Move make_cleanup out of check.
5419 Check the return of waitpid.
5420 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
5421
a109c7c1
MS
54222010-05-17 Michael Snyder <msnyder@vmware.com>
5423
1c5313c5
MS
5424 * tui/tui.c: White space.
5425 * tui/tui-data.c: White space.
5426 * tui/tui-disasm.c: White space.
5427 * tui/tui-file.c: White space.
5428 * tui/tui-interp.c: White space.
5429 * tui/tui-main.c: White space.
5430 * tui/tui-out.c: White space.
5431 * tui/tui-regs.c: White space.
5432 * tui/tui-source.c: White space.
5433 * tui/tui-stack.c: White space.
5434 * tui/tui-win.c: White space.
5435 * tui/tui-winsource.c: White space.
5436
f4a14ae6
MS
5437 * procfs.c: White space.
5438
d59b6f6c
MS
5439 * python/py-auto-load.c: White space.
5440 * python/py-block.c: White space.
5441 * python/py-breakpoint.c: White space.
5442 * python/py-cmd.c: White space.
5443 * python/py-function.c: White space.
5444 * python/py-lazy-string.c: White space.
5445 * python/py-objfile.c: White space.
5446 * python/py-param.c: White space.
5447 * python/py-prettyprint.c: White space.
5448 * python/py-progspace.c: White space.
5449 * python/py-symtab.c: White space.
5450 * python/python.c: White space.
5451 * python/py-type.c: White space.
5452 * python/py-utils.c: White space.
5453 * python/py-value.c: White space.
5454
102040f0
MS
5455 * mi/mi-cmd-break.c: White space.
5456 * mi/mi-cmd-env.c: White space.
5457 * mi/mi-cmds.c: White space.
5458 * mi/mi-cmd-stack.c: White space.
5459 * mi/mi-cmd-var.c: White space.
5460 * mi/mi-console.c: White space.
5461 * mi/mi-getopt.c: White space.
5462 * mi/mi-interp.c: White space.
5463 * mi/mi-main.c: White space.
5464 * mi/mi-out.c: White space.
5465 * mi/mi-parse.c: White space.
5466
cdb27c12
MS
5467 * cli/cli-cmds.c: White space.
5468 * cli/cli-decode.c: White space.
5469 * cli/cli-dump.c: White space.
5470 * cli/cli-interp.c: White space.
5471 * cli/cli-logging.c: White space.
5472 * cli/cli-script.c: White space.
5473 * cli/cli-setshow.c: White space.
5474
a109c7c1
MS
5475 * valarith.c: White space.
5476 * valops.c: White space.
5477 * valprint.c: White space.
5478 * value.c: White space.
5479 * varobj.c: White space.
5480 * xcoffread.c: White space.
5481 * xml-support.c: White space.
5482 * xml-tdesc.c: White space.
5483
3872d37d
AS
54842010-05-17 Andreas Schwab <schwab@redhat.com>
5485
5486 PR gdb/11092
5487 * c-lang.c (c_printstr): Compute real length of NUL terminated
5488 string at first.
5489
0cce5bd9
JB
54902010-05-17 Joel Brobecker <brobecker@adacore.com>
5491
5492 * parse.c (parse_exp_in_context): When block is not NULL, use
5493 its associated language to parse the expression instead of
5494 the current_language.
5495
5f19d646
JB
54962010-05-17 Joel Brobecker <brobecker@adacore.com>
5497
5498 * jv-lang.c (java_lookup_class): Remove commented out code.
5499 (type_from_class): Likewise.
5500 (java_op_print_tab): Remove commented-out elements.
5501
28c85d6c
JB
55022010-05-17 Joel Brobecker <brobecker@adacore.com>
5503
5504 * ada-lang.c (to_fixed_range_type): The the raw index type as
5505 argument instead of the raw type name. Remove orig_type parameter.
5506 Update calls throughout.
5507 (ada_fixup_array_indexes_type): New function.
5508 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
5509 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
5510 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
5511 Remove name parameter.
5512 (print_array_type): Add call to ada_fixup_array_indexes_type.
5513 Update calls to print_range_type.
5514 (ada_print_type): Update calls to print_range_type.
5515
d09039dd
PM
55162010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5517
5518 * dwarf2read.c (read_set_type): Set type length if
5519 DW_AT_byte_size attribute is present.
5520
7a081a30
PM
55212010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
5522
5523 * p-valprint.c (pascal_val_print): Handle set type if range limits
5524 are undefined but size is known.
5525
77382aee
PA
55262010-05-17 Pedro Alves <pedro@codesourcery.com>
5527
5528 * procfs.c: Reformat.
5529
433759f7
MS
55302010-05-16 Michael Snyder <msnyder@vmware.com>
5531
5d502164
MS
5532 * target.c: White space.
5533 * target-descriptions.c: White space.
5534 * target-memory.c: White space.
5535 * thread.c: White space.
5536 * top.c: White space.
5537 * tracepoint.c: White space.
5538 * trad-frame.c: White space.
5539 * tramp-frame.c: White space.
5540 * ui-file.c: White space.
5541 * ui-out.c: White space.
5542 * user-regs.c: White space.
5543 * utils.c: White space.
5544
433759f7
MS
5545 * scm-exp.c: White space.
5546 * scm-lang.c: White space.
5547 * scm-valprint.c: White space.
5548 * sentinel-frame.c: White space.
5549 * ser-base.c: White space.
5550 * ser-go32.c: White space.
5551 * serial.c: White space.
5552 * ser-mingw.c: White space.
5553 * ser-pipe.c: White space.
5554 * ser-tcp.c: White space.
5555 * ser-unix.c: White space.
5556 * solib.c: White space.
5557 * solib-darwin.c: White space.
5558 * solib-frv.c: White space.
5559 * solib-irix.c: White space.
5560 * solib-osf.c: White space.
5561 * solib-pa64.c: White space.
5562 * solib-som.c: White space.
5563 * solib-spu.c: White space.
5564 * solib-svr4.c: White space.
5565 * solib-target.c: White space.
5566 * source.c: White space.
5567 * stabsread.c: White space.
5568 * stack.c: White space.
5569 * std-regs.c: White space.
5570 * symfile.c: White space.
5571 * symmisc.c: White space.
5572 * symtab.c: White space.
5573
dd304d53
MS
55742010-05-16 Michael Snyder <msnyder@vmware.com>
5575
5576 * source.c (_initialize_source): Add "rev" as an abbreviation
5577 for the "reverse-search" command.
5578
a744cf53
MS
55792010-05-16 Michael Snyder <msnyder@vmware.com>
5580
123f5f96
MS
5581 * record.c: White space.
5582 * regcache.c: White space.
5583 * reggroups.c: White space.
5584 * remote-fileio.c: White space.
5585 * remote-m32r-sdi.c: White space.
5586 * remote-mips.c: White space.
5587 * remote-sim.c: White space.
a744cf53
MS
5588 * remote.c: White space.
5589 (process_g_packet): Remove orphan braces.
5590
b8d56208
MS
55912010-05-15 Michael Snyder <msnyder@vmware.com>
5592
ad3bbd48
MS
5593 * parse.c: White space.
5594 * p-lang.c: White space.
5595 * posix-hdep.c: White space.
5596 * printcmd.c: White space.
5597 * progspace.c: White space.
5598 * prologue-value.c: White space.
5599 * psymtab.c: White space.
5600 * p-typeprint.c: White space.
5601 * p-valprint.c: White space.
5602
5cc80db3
MS
5603 * objc-lang.c: White space.
5604 * objfiles.c: White space.
5605 * observer.c: White space.
5606 * osabi.c: White space.
5607 * osdata.c: White space.
5608
b8d56208
MS
5609 * m2-lang.c: White space.
5610 * m2-valprint.c: White space.
5611 * macrocmd.c: White space.
5612 * macroexp.c: White space.
5613 * macroscope.c: White space.
5614 * macrotab.c: White space.
5615 * main.c: White space.
5616 * maint.c: White space.
5617 * mdebugread.c: White space.
5618 * memattr.c: White space.
5619 * minsyms.c: White space.
5620 * monitor.c: White space.
5621
9a619af0
MS
56222010-05-14 Michael Snyder <msnyder@vmware.com>
5623
e0881a8e
MS
5624 * jv-lang.c: White space.
5625 * jv-typeprint.c: White space.
5626 * jv-valprint.c: White space.
5627 * language.c: White space.
5628 * libunwind-frame.c: White space.
5629 * linespec.c: White space.
5630 * linux-nat.c: White space.
5631 * linux-record.c: White space.
5632 * linux-thread-db.c: White space.
5633
abbb1732
MS
5634 * infcall.c: White space.
5635 * inf-child.c: White space.
5636 * infcmd.c: White space.
5637 * inferior.c: White space.
5638 * inf-loop.c: White space.
5639 * inflow.c: White space.
5640 * inline-frame.c: White space.
5641 * interps.c: White space.
5642
d8734c88
MS
5643 * gcore.c: White space.
5644 * gdb.c: White space.
5645 * gdbtypes.c: White space.
5646 * gnu-nat.c: White space.
5647 * gnu-v2-abi.c: White space.
5648 * gnu-v3-abi.c: White space.
5649
bb9bcb69
MS
5650 * findcmd.c: White space.
5651 * findvar.c: White space.
5652 * fork-child.c: White space.
5653 * frame-base.c: White space.
5654 * frame.c: White space.
5655 * frame-unwind.c: White space.
5656 * f-valprint.c: White space.
5657
d7f9d729
MS
5658 * elfread.c: White space.
5659 * environ.c: White space.
5660 * eval.c: White space.
5661 * event-loop.c: White space.
5662 * event-top.c: White space.
5663 * exceptions.c: White space.
5664 * exec.c: White space.
5665 * expprint.c: White space.
5666
9a619af0
MS
5667 * dbxread.c: White space.
5668 * dcache.c: White space.
5669 * disasm.c: White space.
5670 * doublest.c: White space.
5671 * dsrec.c: White space.
5672 * dummy-frame.c: White space.
5673 * dwarf2expr.c: White space.
5674 * dwarf2-frame.c: White space.
5675 * dwarf2loc.c: White space.
5676 * dwarf2read.c: White space.
5677
88d4aea7
PM
56782010-05-14 Phil Muldoon <pmuldoon@redhat.com>
5679
889bf7c5 5680 PR python/11482
88d4aea7
PM
5681
5682 * python/py-value.c (valpy_hash): New function.
5683 (value_object_type): Register valpy_hash.
5684
7a298875 56852010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 5686 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
5687
5688 * linux-fork.c (gdbthread.h): New include.
5689 (fork_info): Add parent_ptid.
5690 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
5691 functions.
5692 (delete_checkpoint_command): Call inferior_call_waitpid.
5693 (checkpoint_command): Set parent_ptid.
5694
c14feecc
MS
56952010-05-13 Michael Snyder <msnyder@vmware.com>
5696
6595d32b
MS
5697 * dictionary.c: Re-indent to GNU coding standard.
5698
c5504eaf
MS
5699 * charset.c: White space.
5700 * c-lang.c: White space.
5701 * cli-out.c: White space.
5702 * coffread.c: White space.
5703 * complaints.c: White space.
5704 * completer.c: White space.
5705 * corefile.c: White space.
5706 * corelow.c: White space.
5707 * cp-abi.c: White space.
5708 * cp-namespace.c: White space.
5709 * cp-support.c: White space.
5710 * cp-valprint.c: White space.
5711 * c-typeprint.c: White space.
5712 * c-valprint.c: White space.
cc59ec59
MS
5713 * blockframe.c: White space.
5714 * breakpoint.c: White space.
5715 * buildsym.c: White space.
5716 * blockframe.c: White space.
b6de9da4 5717 * bcache.c: White space.
05c547f6
MS
5718 * gdbarch.sh: White space, add blank lines.
5719 * arch-utils.c: Ditto.
5720 * gdbarch.c: Regenerate.
1c4d3f96 5721 * frame.c: White space, add blank lines.
f89b749f
MS
5722 * stack.c: White space, add blank lines.
5723 (initialize_stack): Remove long-dead code.
c14feecc 5724
a2d33775
JK
57252010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5726
5727 Code cleanup.
5728 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
5729 (locexpr_read_variable, loclist_read_variable): Update the callers.
5730
33ac96f0
JK
57312010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5732
5733 Code cleanup.
5734 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
5735 Remove check of NULL returned by tag_type_to_type.
5736 (die_containing_type): Remove variable type. Remove type_die variable
5737 initialization. Remove check of NULL returned by tag_type_to_type.
5738
f5a010c0
PM
57392010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5740
5741 PR exp/11530.
5742 * gdbtypes.c (lookup_struct_elt_type): Also lookup
5743 names of unnamed structures or unions.
5744
bf701c2c
PM
57452010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
5746
5747 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 5748 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
5749 find_procinfo_or_die call.
5750 (procfs_stopped_data_address): New function.
5751 (procfs_use_watchpoints): Register new watchpoint related function.
5752
d02691ef
TT
57532010-05-11 Tom Tromey <tromey@redhat.com>
5754
5755 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
5756
e0627e85
MS
57572010-05-10 Michael Snyder <msnyder@vmware.com>
5758
5759 * utils.c: White space cleanup.
5760
cc73bb8c
TT
57612010-05-10 Tom Tromey <tromey@redhat.com>
5762
5763 * eval.c (ptrmath_type_p): Add 'lang' argument.
5764 (evaluate_subexp_standard): Update.
5765 (evaluate_subexp_with_coercion): Update.
5766 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
5767
c02866a0
MS
57682010-05-10 Michael Snyder <msnyder@vmware.com>
5769
5770 * utils.c (do_fclose_cleanup) Restore local variable.
5771
06280d23
DE
57722010-05-09 Doug Evans <dje@google.com>
5773
5774 * record.c (init_record_core_ops): Rename record_core to record-core.
5775
fa07e785
JB
57762010-05-08 Joel Brobecker <brobecker@adacore.com>
5777
5778 Implement task switching on pa-hpux.
5779 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5780 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5781
4c680d1d
PM
57822010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5783
5784 * valops.c (find_overload_match): Add missing i18n markup.
5785
28e176a6
PM
57862010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5787
5788 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5789
48cb83fd
JK
57902010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5791
5792 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5793 list for the obconcat call.
5794 * mdebugread.c (parse_symbol): Likewise.
5795 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5796 Likewise.
5797 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5798 New variable ap. Remove variables len and val.
5799 * symfile.h (obconcat): Likewise for the prototype.
5800
f92adf3c
MS
58012010-05-07 Michael Snyder <msnyder@vmware.com>
5802
5803 * python/python.c (execute_gdb_command): Remove unused variables.
5804 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5805 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5806 Remove unused variable.
5807 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5808 (cmdpy_completer): Remove unused variable.
5809 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5810 * python/py-function.c (fnpy_call): Remove unused variable.
5811 * python/py-objfile.c (objfile_to_objfile_object):
5812 Remove unused variable.
5813 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5814 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5815 Remove unused variable.
5816 (gdbpy_default_visualizer): Remove unused variable.
5817 * python/py-progspace.c (pspace_to_pspace_object):
5818 Remove unused variable.
0407b3f1 5819 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5820 Remove unused variable.
0407b3f1 5821 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5822 Remove unused variable.
5823 * python/py-value.c (valpy_string): Remove unused variable.
5824 (convert_value_from_python): Remove unused variables.
5825
d160942f
MS
58262010-05-07 Michael Snyder <msnyder@vmware.com>
5827
5828 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5829 and use it to compute variable 't1'.
5830
587542ab
JB
58312010-05-07 Joel Brobecker <brobecker@adacore.com>
5832
5833 * ada-lang.c (assign_aggregate): Remove unused variable.
5834
7322dca9
SW
58352010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5836
5837 PR C++/7943:
5838 * valops.c (find_overload_match): Handle fsym == NULL case.
5839 Add int no_adl argument.
5840 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5841 when appropriate.
5842 Add int no_adl argument.
5843 (find_oload_champ_namespace): Add int no_adl argument.
5844 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5845 expression.
5846 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5847 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5848 Evaluate arguments and use them to perform ADL lookup.
5849 Pass no_adl argument to find_overload_match.
5850 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5851 * cp-support.h: Added prototype for
5852 make_symbol_overload_list_namespace.
5853 * cp-support.c (make_symbol_overload_list_namespace): New function.
5854 (make_symbol_overload_list_adl_namespace): New function.
5855 (make_symbol_overload_list_adl): New function.
5856 (make_symbol_overload_list_using): Moved code to add function to
5857 overload set to make_symbol_overload_list_namespace.
5858 * c-exp.y: create UNKNOWN_CPP_NAME token.
5859 Add parse rule for ADL functions.
5860 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5861
3f1f6884
JK
58622010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5865 sentinel.
5866
3caf13b4
JB
58672010-05-07 Joel Brobecker <brobecker@adacore.com>
5868
5869 Implement task switching on solaris targets.
5870 * sol-thread.c (thread_db_find_thread_from_tid)
5871 (sol_get_ada_task_ptid): New functions.
5872 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5873
94b0dee1
PA
58742010-05-07 Pedro Alves <pedro@codesourcery.com>
5875
5876 * remote.c (remote_query_supported_append): Use reconcat.
5877 (remote_query_supported): Install a cleanup. Use reconcat.
5878
1408c251
PA
58792010-05-07 Pedro Alves <pedro@codesourcery.com>
5880
5881 * gdbarch.sh (qsupported): Delete.
5882 * gdbarch.h, gdbarch.c: Regenerate.
5883 * remote.c (remote_query_supported): Remove use of
5884 gdbarch_qsupported.
5885
f8e50cfe
SDJ
58862010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5887
5888 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5889 function.
5890
8ea13695
MS
58912010-05-06 Michael Snyder <msnyder@vmware.com>
5892
c6913b7d
MS
5893 * xml-support.c (xinclude_start_include): Delete unused variable.
5894 (xml_process_xincludes): Delete unused variable.
5895 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5896 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5897 (tdesc_find_arch_register): Delete unused variable.
5898 (tdesc_use_registers): Delete unused variable.
5899 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5900 * inferior.c (print_inferior): Delete unused variable.
5901 * record.c (record_open_1): Delete unused variable.
5902 (record_restore): Delete unused variable.
5903 (cmd_record_save): Delete unused variable.
5904 * gcore.c (derive_heap_segment): Delete unused variable.
5905 (objfile_find_memory_regions): Use unused variable.
5906 * jit.c (jit_inferior_init): Delete unused variable.
5907 * progspace.c (clone_program_space): Delete unused variable.
5908 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5909
5910 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5911 Delete unused variable.
5912 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5913 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5914 (method_name_from_physname): Delete unused variable.
5915 (cp_func_name): Delete unused variable.
5916 (cp_validate_operator): Delete unused variable.
0407b3f1 5917 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5918 Delete unused variable.
0407b3f1 5919 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5920 Delete unused variable.
5921 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5922
1be757cf
MS
5923 * serial.c (serial_for_fd): Delete unused variable.
5924 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5925 * top.c (execute_command): Delete unused variable.
5926 (init_main): Delete unused variable.
5927 * utils.c (do_fclose_cleanup): Delete unused variable.
5928 (do_all_inferior_continuations): Delete unused variable.
5929 (initialize_utils): Delete unused variable.
5930 (internal_problem_mode): Delete unused global.
5931 * frame.c (get_prev_frame): Delete unused global.
5932 (get_frame_locals_address): Delete unused global.
5933 (get_frame_args_address): Delete unused global.
5934
9216103f
MS
5935 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5936 (pascal_type_print_varspec_prefix): Delete unused variable.
5937 * f-typeprint.c (f_type_print_base): Delete unused variable.
5938 (f_type_print_varspec_suffix): Delete unused variable.
5939 * m2-typeprint.c (m2_print_type): Delete unused variable.
5940 (m2_long_set): Delete unused variable.
5941 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5942 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5943 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5944 Delete unused variable.
5945 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5946 * m2-valprint.c (m2_val_print): Delete unused variable.
5947
34fa1d9d
MS
5948 * ui-out.c (ui_out_field_int): Delete unused variable.
5949 (ui_out_field_fmt_int): Delete unused variable.
5950 * varobj.c (varobj_list_children): Delete unused variable.
5951 (varobj_set_value): Delete unused variable.
5952 (install_new_value_visualizer): Delete unused variable.
5953 (varobj_set_visualizer): Delete unused variable.
5954 (varobj_update): Delete unused variable.
5955 (varobj_editable_p): Delete unused variable.
5956 (c_value_of_root): Delete unused variable.
5957 (cplus_describe_child): Delete unused variable.
5958
b5385fc0
MS
5959 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5960 (decode_constrained_packed_array_type): Delete unused variable.
5961 (add_defn_to_vec): Delete unused variable.
5962 (symbol_completion_match): Delete unused variable.
5963 (value_tag_from_contents_and_address): Delete unused variable.
5964 (ada_evaluate_subexp): Delete unused variable.
5965 * c-lang.c (classify_type): Delete unused variable.
5966 * f-lang.c (f_printstr): Delete unused variable.
5967 * objc-lang.c (objc_printstr): Delete unused variable.
5968 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5969 * jv-lang.c (type_from_class): ifdef unused variable.
5970 (java_class_name_from_physname): Delete unused variable.
5971 * m2-lang.c (m2_printstr): Delete unused variable.
5972
4fc06681
MS
5973 * objfiles.c (objfile_relocate): Delete unused variable.
5974 * maint.c (_initialize_maint_cmds): Delete unused variable.
5975 * demangle.c (_initialize_demangler): Delete unused variable.
5976 * corefile.c (reopen_exec_file): Delete unused variable.
5977 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5978 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5979
6b4398f7
MS
5980 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5981 * memattr.c (mem_delete): Delete unused variable.
5982 (invalidate_target_mem_regions): Delete unused variable.
5983 * mem-break.c (default_memory_insert_breakpoint):
5984 Delete unused variable.
5985 * target.c (target_get_osdata): Delete unused variable.
5986 * parse.c (length_of_subexp): Delete unused variable.
5987 (prefixify_subexp): Delete unused variable.
5988 (exp_iterate): Delete unused variable.
5989 * reverse.c (delete_bookmark_command): Delete unused variable.
5990
308d96ed
MS
5991 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5992 * macroexp.c (gather_arguments): Delete unused variable.
5993 (substitute_args): Delete unused variable.
5994 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5995 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5996 (_initialize_gdbarch): Delete unused variable.
5997 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5998 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5999 Delete unused variable.
6000 (_initialize_gdbarch_utils): Delete unused variable.
6001 * gdbtypes.c (make_cv_type): Delete unused variable.
6002 (make_type_with_address_space): Delete unused variable.
6003
167e4384
MS
6004 * linespec.c (decode_compound): Delete unused variable.
6005 * dictionary.c (iterator_next_hashed): Delete unused variable.
6006 * infcall.c (call_function_by_hand): Delete unused variable.
6007 * infcmd.c (step_1): Delete unused variable.
6008 (registers_info): Delete unused variable.
6009 (attach_command): Delete unused variable.
6010 * infrun.c (follow_exec): Delete unused variable.
6011 (handle_step_into_function_backwards): Delete unused variable.
6012 (_initialize_infrun): Delete unused variable.
6013 * stack.c (parse_frame_specification_1): Delete unused variable.
6014 (frame_info): Delete unused variable.
6015 (backtrace_command_1): Delete unused variable.
6016 (catch_info): Delete unused variable.
6017
8f78b329
MS
6018 * eval.c (evaluate_subexp_standard): Delete unused variable.
6019 * valops.c (value_cast_pointers): Delete unused variable.
6020 (value_dynamic_cast): Delete unused variable.
6021 (value_array): Delete unused variable.
6022 (find_overload_match): Delete unused variable.
6023 * valarith.c (value_subscript): Delete unused variable.
6024 (value_binop): Delete unused variable.
6025 * valprint.c (_initialize_valprint): Delete unused variable.
6026 * printcmd.c (print_command_1): Delete unused variable.
6027 (address_info): Delete unused variable.
6028 (printf_command): Delete unused variable.
6029
8ea13695
MS
6030 * auxv.c (target_auxv_search): Delete unused variable.
6031 * blockframe.c (get_frame_block): Delete unused variable.
6032 * regcache.c (regcache_cpy): Delete unused variable.
6033 (regcache_cpy_no_passthrough): Delete unused variable.
6034 * charset.c (wchar_iterate): Delete unused variable.
6035 (find_charset_names): Delete unused variable.
6036 (_initialize_charset): Delete unused variable.
0407b3f1 6037 * disasm.c (do_mixed_source_and_assembly):
8ea13695 6038 Delete unused variable.
0407b3f1 6039 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
6040 Delete unused variable.
6041 (set_substitute_path_command): Delete unused variable.
6042 * value.c (preserve_values): Delete unused variable.
6043 (value_from_double): Delete unused variable.
6044
afe38095
MS
60452010-05-05 Michael Snyder <msnyder@vmware.com>
6046
952a6d41
MS
6047 * psymtab.c (lookup_partial_symbol): Delete unused variable.
6048 (find_last_source_symtab_from_partial): Delete unused variable.
6049 * symfile.c (place_section): Delete unused variable.
6050 (default_symfile_offsets): Delete unused variable.
6051 (get_debug_link_info): Delete unused variable.
6052 (find_separate_debug_file_by_debuglink): Delete unused variable.
6053 (add_symbol_file_command): Delete unused variable.
6054 (symfile_find_segment_sections): Delete unused variable.
6055 * symmisc.c (free_symtab): Delete unused variable.
6056 (dump_symtab_1): Delete unused variable.
6057 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
6058 (find_pc_sect_symtab): Delete unused variable.
6059 (skip_prologue_using_lineinfo): Delete unused variable.
6060 (sources_info): Delete unused variable.
6061 (completion_list_add_name): Delete unused variable.
6062 (expand_line_sal): Delete unused variable.
6063
0407b3f1 6064 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
6065 Delete unused variables.
6066 (insert_catchpoint): Delete unused variable.
6067 (update_watchpoint): Delete unused variable.
6068 (insert_bp_location): Delete unused variable.
6069 (insert_breakpoint_locations): Delete unused variable.
6070 (remove_breakpoint_1): Delete unused variable.
6071 (software_breakpoint_inserted_here_p): Delete unused variable.
6072 (watchpoints_triggered): Delete unused variable.
6073 (bpstat_check_watchpoint): Delete unused variable.
6074 (bpstat_stop_status): Delete unused variable.
6075 (print_one_breakpoint_location): Delete unused variable.
6076 (allocate_bp_location): Delete unused variable.
6077 (create_breakpoint): Delete unused variable.
6078 (watch_command_1): Delete unused variable.
6079 (catch_exception_command_1): Delete unused variable.
6080 (catch_ada_exception_command): Delete unused variable.
6081 (delete_breakpoint): Delete unused variable.
6082 (breakpoint_re_set_one): Delete unused variable.
6083 (do_enable_breakpoint): Delete unused variable.
6084
eda5a4d7
PA
60852010-05-06 Pedro Alves <pedro@codesourcery.com>
6086
6087 * amd64-tdep.c: Include disasm.h.
6088 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
6089 (amd64_insn_length): Moved to disasm.c and renamed.
6090 (fixup_riprel): Adjust.
6091 * disasm.c (do_ui_file_delete): New.
6092 (gdb_insn_length): New.
6093 (gdb_buffered_insn_length_fprintf)
6094 (gdb_buffered_insn_length_init_dis)
6095 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
6096 renamed.
6097 * disasm.h (gdb_insn_length): Declare.
6098 (gdb_buffered_insn_length): Declare.
6099
02357a4a
PA
61002010-05-06 Pedro Alves <pedro@codesourcery.com>
6101
6102 * remote.c (clear_threads_parsing_context): New.
6103 (remote_threads_info): Delete unused null_cleanup. Install a
6104 cleanup to clear the threads_parsing_context in case parsing
6105 throws.
6106
8c5630cb
MS
61072010-05-05 Michael Snyder <msnyder@vmware.com>
6108
6109 * c-exp.y (parse_string_or_char): Delete unused variable.
6110 (c_lex): Delete unused variable.
6111 * cp-name-parser.y (cpname_lex): Delete unused variable.
6112 * ada-exp.y (find_primitive_type): Delete unused variable.
6113 (write_var_or_type): Delete unused variable.
6114 * jv-exp.y (java_parse): Delete unused variable.
6115 (push_expression_name): Delete unused variable.
6116 * p-exp.y (pascal_lex): Delete unused variable.
6117
46c162d4
PA
61182010-05-05 Pedro Alves <pedro@codesourcery.com>
6119
6120 * remote.c (remote_threads_info): Really revert previous previous
6121 change.
6122
0043e6a5
MS
61232010-05-05 Michael Snyder <msnyder@vmware.com>
6124
fa238c03
MS
6125 * elfread.c (elf_symtab_read): Delete unused variable.
6126 (find_separate_debug_file_by_buildid): Delete unused variables.
6127 (elf_symfile_read): Delete unused variable.
6128
6129 * coffread.c (coff_symfile_read): Delete unused variables.
6130
6131 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
6132 (read_pe_exported_syms): Delete unused variable.
6133
6134 * stabsread.c (define_symbol): Delete unused variable.
6135
6136 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
6137 (process_psymtab_comp_unit): Delete unused variable.
6138 (dwarf2_build_psymtabs_hard): Delete unused variable.
6139 (load_partial_comp_unit): Delete unused variable.
6140 (create_all_comp_units): Delete unused variable.
6141 (scan_partial_symbols): Delete unused variable.
6142 (add_partial_symbol): Delete unused variable.
6143 (add_partial_namespace): Delete unused variable.
6144 (add_partial_enumeration): Delete unused variable.
6145 (load_full_comp_unit): Delete unused variable.
6146 (process_full_comp_unit): Delete unused variable.
6147 (read_file_scope): Delete unused variable.
6148 (read_type_unit_scope): Delete unused variable.
6149 (process_structure_scope): Delete unused variable.
6150 (process_enumeration_scope): Delete unused variable.
6151 (read_tag_ptr_to_member_type): Delete unused variable.
6152 (read_typedef): Delete unused variable.
6153 (read_partial_die): Delete unused variable.
6154 (decode_locdesc): Delete unused variable.
6155 (zeroed_partial_die): Delete unused global variable.
6156
0407b3f1 6157 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 6158 Delete unused variable.
0407b3f1 6159 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
6160 Delete unused variable.
6161 (tui_check_register_values): Delete unused variable.
6162 (tui_register_format): Delete unused variable.
6163 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 6164 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
6165 Delete unused variables.
6166 (tui_vertical_data_scroll): Delete unused variables.
6167
75721c66
MS
61682010-05-05 Michael Snyder <msnyder@vmware.com>
6169
c31a71f4
MS
6170 * remote.c (remote_threads_info): Revert questionable part of
6171 the previous change.
6172
61732010-05-05 Michael Snyder <msnyder@vmware.com>
6174
6175 * mi/mi-out.c (mi_table_begin): Delete unused variable.
6176 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
6177 (mi_cmd_var_list_children): Delete unused variable.
6178 (varobj_update_one): Delete unused variable.
6179 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 6180 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
6181 Delete unused variable.
6182 (mi_cmd_stack_list_variables): Delete unused variable.
6183 (list_args_or_locals): Delete unused variable.
0407b3f1 6184 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
6185 Delete unused variables.
6186 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 6187 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
6188 Delete unused variable.
6189 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
6190 (mi_cmd_interpreter_exec): Delete unused variable.
6191 (mi_on_normal_stop): Delete unused variable.
6192 * mi/mi-main.c (run_one_inferior): Delete unused variable.
6193 (print_one_inferior): Delete unused variables.
6194 (mi_execute_command): Delete unused variable.
6195 (mi_cmd_execute): Delete unused variable.
6196 (timestamp): Delete unused variable.
6197
6198 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 6199 (restore_binary_file): Delete unused variable.
c31a71f4
MS
6200 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
6201 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
6202 (recurse_read_control_structure): Delete unused variable.
6203 (script_from_file): Delete unused variable.
c31a71f4 6204 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
6205 (disassemble_command): Delete unused variable.
6206
6207 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 6208 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
6209 Delete unused variables.
6210 (encode_actions_1): Delete unused variables.
6211 (start_tracing): Delete unused variable.
6212 (trace_status_mi): Delete unused variable.
6213 (tfind_1): Delete unused variable.
6214 (trace_find_pc_command): Delete unused variable.
6215 (trace_find_line_command): Delete unused variables.
6216 (trace_find_range_command): Delete unused variables.
6217 (trace_find_outside_command): Delete unused variables.
6218 (parse_tracepoint_definition): Delete unused variables.
6219 (tfile_fetch_registers): Delete unused variable.
6220
9128a503
MS
6221 * dcache.c (dcache_init): Delete unused variable.
6222 (dcache_info): Delete unused variable.
6223
aa369b55 6224 * remote.c (remote_threads_info): Delete unused variable.
9128a503 6225 (process_stop_reply) :Delete unused variable.
aa369b55
MS
6226 (remote_get_trace_status): Delete unused variables.
6227
9e9547e4
MS
6228 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
6229 (thread_from_lwp): Delete unused variable.
6230 (enable_thread_event_reporting): Delete unused variable.
6231 (check_for_thread_db): Delete unused variables.
6232 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 6233
9e9547e4
MS
6234 * linux-fork.c (info_checkpoints_command): Delete unused variables.
6235 (checkpoint_command): Delete unused variable.
6236 (linux_fork_context): Delete unused variables.
6237
fa238c03 6238 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
6239 (linux_tracefork_child): Delete unused variable.
6240 (linux_child_follow_fork): Delete unused variable.
6241 (linux_nat_detach): Delete unused variable.
6242 (linux_handle_extended_wait): Delete unused variable.
6243 (linux_nat_has_pending_sigint): Delete unused variable.
6244 (linux_nat_find_memory_regions): Delete unused variable.
6245 (linux_nat_make_corefile_notes): Delete unused variables.
6246 (linux_nat_info_proc_cmd): Delete unused variable.
6247 (linux_proc_pending_signals): Delete unused variable.
6248 (linux_nat_stop_lwp): Delete unused variables.
6249 (_initialize_linux_nat): Delete unused variable.
6250
fa238c03 6251 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 6252
0407b3f1 6253 * linux-record.c (record_linux_system_call):
e0f069a3
MS
6254 Delete unused variables.
6255
789d24f0
MS
6256 * corelow.c (core_xfer_partial): Delete unused variables.
6257
1cd337a5 6258 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 6259 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
6260 conditionally-used variable declarations.
6261
b00e3f56
MS
6262 * solib.c (solib_find): Delete unused variable.
6263 (free_so_symbols): Delete unused variable.
6264 (info_sharedlibrary_command): Delete unused variable.
6265 (reload_shared_libraries_1): Delete unused variable.
6266 (_initialize_solib): Delete unused variable.
6267
90f62196
MS
6268 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
6269 (i386_collect_xstateregset): Delete unused variable.
6270 * i387-tdep.c (i387_print_float_info): Delete unused variable.
6271
75721c66
MS
6272 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
6273 Delete unused variable 'type'.
6274
af33db37
JB
62752010-05-05 Joel Brobecker <brobecker@adacore.com>
6276
90f62196 6277 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
6278 ada-lang.c: Remove comment mentioning these macros.
6279 * m2-exp.y: Delete commented out code.
af33db37 6280
0497f5b0
JB
62812010-05-05 Joel Brobecker <brobecker@adacore.com>
6282
6283 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
6284 for array types.
6285 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
6286
6e39997a
PM
62872010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6288
6289 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 6290 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
6291 ATTRIBUTE_UNUSED.
6292 (cleanup_kernel_helper_return): Likewise.
6293 * arm-tdep.c (copy_unmodified): Likewise.
6294 (copy_preload): Likewise.
6295 (copy_copro_load_store): Likewise.
6296 (cleanup_branch): Likewise.
6297 (copy_b_bl_blx): Likewise.
6298 (copy_bx_blx_reg): Likewise.
6299 (copy_alu_imm): Likewise.
6300 (copy_alu_reg): Likewise.
6301 (copy_alu_shifted_reg): Likewise.
6302 (cleanup_load): Likewise.
6303 (cleanup_store): Likewise.
6304 (cleanup_block_load_pc): Likewise.
6305 (cleanup_svc): Likewise.
6306 (copy_undef): Likewise.
6307 (copy_unpred): Likewise.
6308 * remote.c (register_remote_support_xml): Likewise.
6309
1412f70b
HZ
63102010-05-05 Hui Zhu <teawater@gmail.com>
6311
6312 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
6313
c4f7c687
MK
63142010-05-04 Mark Kettenis <kettenis@gnu.org>
6315
6316 * remote.c (register_remote_support_xml)
6317 (remote_query_supported_append, remote_query_supported): Add cast
6318 to NULL used as sentinel.
6319 * tracepoint.c (tvariables_info_1): Likewise.
6320 * utils.c (add_internal_problem_command): Likewise.
6321
63b4f126
MGD
63222010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6323
6324 * dwarf2loc.c (read_pieced_value, write_pieced_value,
6325 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
6326 registers gracefully.
6327
2f1bdd26
MGD
63282010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6329
0407b3f1 6330 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
6331 specific parts.
6332
e1c34c5d
PM
63332010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
6334
6335 PR exp/11349.
6336 * printcmd.c (x_command): Only dereference once implicitly for
6337 TYPE_CODE_REF.
6338
ae462839
DE
63392010-05-03 Doug Evans <dje@google.com>
6340
6341 * event-loop.c (gdb_timer): Delete unused global.
6342 (create_timer): Update.
6343
1ac77ea1
JK
63442010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6345
6346 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
6347 CURRENT->DECLARATION case.
6348 * cp-support.h (struct using_direct): Provide extended comment.
6349
7c54a108
MK
63502010-05-03 Mark Kettenis <kettenis@gnu.org>
6351
6352 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
6353 HPPABSD_SIZEOF_GREGS.
6354 (HPPAOBSD_SIZEOF_FPREGS): New define.
6355 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
6356 (hppaobsd_supply_fpregset): New function.
6357 (hppaobsd_gregset): Renamed from hppabsd_gregset.
6358 (hppaobsd_fpregset): New variable.
6359 (hppaobsd_regset_from_core_section): Handle floating-point registers.
6360 (_initialize_hppabsd_tdep): Remove spurious blank line.
6361
278582cb
PM
63622010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6363
6364 PR pascal/11349.
6365 * p-valprint.c (pascal_value_print): Always dereference a value with
6366 type code TYPE_CODE_REF.
0407b3f1 6367
f0223081
PA
63682010-05-03 Pedro Alves <pedro@codesourcery.com>
6369
6370 * remote.c (remote_notice_signals): New.
6371 (remote_start_remote): In non-stop mode, update the remote end on
6372 which signals it can silently pass.
6373 (init_remote_ops): Install remote_notice_signals.
6374
c25c4a8b
JK
63752010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6376
6377 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
6378 * command.h (error_no_arg): ... here. Remove NORETURN, change
6379 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6380 * defs.h (NORETURN, ATTR_NORETURN): Remove.
6381 (perror_with_name, verror, error, error_stream, vfatal, fatal)
6382 (internal_verror, internal_error, nomem): Remove NORETURN, change
6383 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6384 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
6385 (throw_vfatal, throw_error): Remove NORETURN.
6386 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
6387 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
6388 (throw_error, deprecated_throw_reason): Remove NORETURN, change
6389 ATTR_NORETURN to ATTRIBUTE_NORETURN.
6390 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
6391 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
6392 NORETURN.
6393 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
6394 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
6395 ATTRIBUTE_NORETURN.
6396 * target.c (tcomplain): Likewise.
6397 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
6398 ATTRIBUTE_NORETURN.
6399 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
6400 (internal_error, perror_with_name, nomem): Remove NORETURN.
6401 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
6402 ATTRIBUTE_NORETURN.
6403
a0b31db1
JK
64042010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6405
6406 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6407 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
6408 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
6409 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6410 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
6411 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6412 * complaints.h (complaint, internal_complaint): Likewise.
6413 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
6414 (ATTR_FORMAT): Remove.
6415 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
6416 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
6417 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
6418 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
6419 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
6420 (internal_error, internal_vwarning, internal_warning, warning)
6421 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
6422 * disasm.c (fprintf_disasm): Likewise.
6423 * exceptions.c (throw_it): Likewise.
6424 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
6425 (throw_error): Likewise.
6426 * language.h (type_error, range_error): Likewise.
6427 * linespec.c (cplusplus_error): Likewise.
6428 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
6429 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
6430 * monitor.c (monitor_debug): Likewise.
6431 * parser-defs.h (parser_fprintf): Likewise.
6432 * serial.h (serial_printf): Likewise.
6433 * tui/tui-hooks.c (tui_query_hook): Likewise.
6434 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
6435 (uo_message): Likewise.
6436 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
6437 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
6438 Likewise.
6439 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
6440
02a45ac0
PA
64412010-05-02 Pedro Alves <pedro@codesourcery.com>
6442
6443 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
6444 (cli_table_header, cli_begin, cli_end, cli_field_int)
6445 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
6446 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
6447 Delete forward declarations.
6448 (cli_ui_out_impl): Move below the callbacks.
6449 (_initialize_cli_out): Delete.
6450
1915ef4f
PA
64512010-05-02 Pedro Alves <pedro@codesourcery.com>
6452
6453 * README: Use consistent `GDB' and `GDBserver' spellings.
6454
0dfb946f
JK
64552010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6456
6457 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
6458
4d533103
PA
64592010-05-01 Pedro Alves <pedro@codesourcery.com>
6460
6461 * infrun.c (prepare_for_detach): In non-stop, context switch to
6462 the thread that got the event before handling the event.
6463
705b5767
TT
64642010-04-30 Tom Tromey <tromey@redhat.com>
6465
6466 * symtab.c (symbol_set_names): Fix typo.
6467
3c0ee1a4
PM
64682010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6469
6470 * python/py-param.c (parm_constants): Avoid ARI warning
6471 by adding ARI comment.
6472 (parmpy_init): Likewise.
6473
ea1fae46
PM
64742010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6475
6476 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
6477 and created type for re-use.
6478
c24d0242
PM
64792010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
6480
6481 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
6482
a26d8d11
DE
64832010-04-29 Doug Evans <dje@google.com>
6484
6485 * ser-base.h (reschedule): Delete prototype.
6486 * ser-base.c (reschedule): Make static.
6487
f8624c62
MGD
64882010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6489
6490 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
6491 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 6492 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 6493 EABI.
0407b3f1 6494 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
6495 use.
6496
e66408ed
PA
64972010-04-29 Pedro Alves <pedro@codesourcery.com>
6498
6499 PR gdb/11557
6500
6501 * regcache.c (registers_changed): Rename to ...
6502 (registers_changed_ptid): ... this, and only delete register cache
6503 entries matching the ptid filter argument.
6504 (registers_changed): Reimplement on top of registers_changed_ptid.
6505 * regcache.h (registers_changed_ptid): Declare.
6506 * target.c (target_resume): Flush register caches.
6507
d7b32ed3 65082010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
6509 Tom Tromey <tromey@redhat.com>
6510 Thiago Jung Bauermann <bauerman@br.ibm.com>
6511
6512 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
6513 (SUBDIR_PYTHON_SRCS): Likewise.
6514 (py-parameter.o): New rule.
6515 * python/py-parameter.c: New file.
6516 * python/python-internal.h (gdbpy_initialize_parameter)
6517 (gdbpy_parameter, gdbpy_parameter_value)
6518 (gdbpy_parse_command_name): Declare.
6519 * python/py-cmd.c (parse_command_name): Rename to
6520 gdbpy_parse_command_name.
6521 (gdbpy_parse_command_name): Accept a starting list parameter and
6522 use over cmdlist.
6523 (cmdpy_init): Use gdbpy_parse_command_name.
6524 * python/python.c (parameter_to_python): Rename to
6525 gdbpy_parameter_to_python. Accept enum var_types and value.
6526 (gdbpy_parameter): Use gdbpy_parameter_value.
6527 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 6528
ce72ce41
MGD
65292010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6530
6531 * MAINTAINERS: Add myself for write after approval privileges.
6532
6aecb9c2
JB
65332010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
6534
6535 D language support.
6536 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
6537 (COMMON_OBS): Add d-lang.o d-valprint.o.
6538 (HFILES_NO_SRCDIR): Add d-lang.h.
6539 * NEWS: Mention D language support.
6540 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
6541 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
6542 * d-lang.c: New file.
6543 * d-lang.h: New file.
6544 * d-valprint.c: New file.
6545 * defs.h (enum language): Add language_d.
6546 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
6547 * language.c (binop_result_type, integral_type, character_type)
6548 (string_type, boolean_type, structured_type): Add language_d.
6549 * symfile.c (init_filename_language_table): Add language_d.
6550 * symtab.c: Include d-lang.h.
6551 (symbol_init_language_specific, symbol_find_demangled_name)
6552 (symbol_natural_name, lookup_symbol_in_language)
6553 (symbol_demangled_name, symbol_matches_domain): Add language_d.
6554
6f992fbf
JB
65552010-04-27 Joel Brobecker <brobecker@adacore.com>
6556
6557 * solib-svr4.c (solib_svr4_r_map): Expand function description.
6558
dde59185
JB
65592010-04-27 Joel Brobecker <brobecker@adacore.com>
6560
6561 * symfile.c (init_filename_language_table): Register .dg files
6562 with language_ada.
6563
d09ce91e
JB
65642010-04-27 Joel Brobecker <brobecker@adacore.com>
6565
6566 * gdbtypes.h (struct main_type): Expand comment about target_type
6567 field.
6568
67f1675e
JB
65692010-04-27 Pedro Alves <pedro@codesourcery.com>
6570 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
6571
6572 * symfile.c (reread_symbols): Also search for file in libraries.
6573 Update comment.
6574
dfd0fe27
JB
65752010-04-27 Joel Brobecker <brobecker@adacore.com>
6576
6577 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
6578 in terms of configuration.
6579
0133421a
JK
65802010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6581
6582 * objfiles.c: Include solist.h.
6583 (free_all_objfiles): New variable so. Check stale solist objfiles.
6584 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
6585 and no_shared_libraries.
6586
e78f4312
JB
65872010-04-27 Joel Brobecker <brobecker@adacore.com>
6588
6589 ARI warning fix.
6590 * python/py-auto-load.c (source_section_scripts): Remove trailing
6591 new-line in i18n string.
6592
9214d371
DE
65932010-04-26 Doug Evans <dje@google.com>
6594
6595 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
6596
3f172e24
TT
65972010-04-26 Tom Tromey <tromey@redhat.com>
6598
6599 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
6600 command list.
6601
e790e06e
PM
66022010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6603
6604 Removal of config/i386/nm-i386sol2.h native configuration file.
6605 * config/i386/nm-i386sol2.h: Remove file.
6606 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
6607 * config/i386/sol2-64.mh: Idem.
88562582
PM
6608 * config/djgpp/fnchange.lst: Remove reference to that file.
6609 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 6610
b7da9e9f
PM
66112010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
6612
6613 PR breakpoints/11531.
6614 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
6615 macro definition and related comment.
6616 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
6617 (resume): Remove code and comment related to this macro.
6618
72f6eb52
JK
66192010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6620
6621 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
6622 Fix whitespace.
6623
ab38a727
PA
66242010-04-24 Pedro Alves <pedro@codesourcery.com>
6625
6626 * defs.h: Adjust comment.
6627 * filesystem.h, filesystem.c: New files.
6628 * Makefile.in (SFILES): Add filesystem.c.
6629 (COMMON_OBS): Add filesystem.o.
6630 * solib.c (solib_find): Handle DOS-based filesystems. Handle
6631 different target and host path flavours.
6632 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6633 has_dos_based_file_system on the gdbarch.
6634 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
6635 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
6636 * i386-tdep.c (i386_go32_init_abi): Ditto.
6637 * gdbarch.sh (has_dos_based_file_system): New.
6638 * gdbarch.h, gdbarch.c: Regenerate.
6639 * NEWS: Mention improved support for remote targets with DOS-based
6640 filesystems. Mention new `set/show target-file-system-kind'
6641 commands.
6642
35c9c7ba
SS
66432010-04-23 Stan Shebs <stan@codesourcery.com>
6644
6645 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
6646 comments.
6647 (struct agent_reqs): Remove.
6648 (ax_reg_mask): Declare.
6649 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
6650 (free_agent_expr): Free reg_mask.
6651 (ax_print): Add scope and register mask info.
6652 (ax_reqs): Remove agent_reqs argument, use agent expression
6653 fields, and move part of register mask computation to...
6654 (ax_reg_mask): New function.
6655 * ax-gdb.c (gen_trace_static_fields): Call it.
6656 (gen_traced_pop): Ditto.
6657 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
6658 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
6659 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
6660 (gen_eval_for_expr): Ditto, and require an rvalue.
6661 (agent_command): Call ax_reqs.
6662 (agent_eval_command): Ditto.
6663 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
6664 (validate_action_line): Ditto.
6665 (collect_symbol): Ditto.
6666 (encode_actions_1): Ditto.
6667
492928e4
JK
66682010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6669 Paul Pluzhnikov <ppluzhnikov@google.com>
6670 Jan Kratochvil <jan.kratochvil@redhat.com>
6671
6672 Fix deadlock on looped list of loaded shared objects.
6673 * solib-svr4.c (LM_PREV): New function.
6674 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
6675 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
6676 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
6677 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
6678
66d09542
DE
66792010-04-23 Doug Evans <dje@google.com>
6680
88a1906b
DE
6681 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
6682 python.
6683 * configure: Regenerate.
6684 * main.c: #include "python/python.h".
6685 (captured_main): Defer loading auto-loaded scripts until after
6686 local_gdbinit has been sourced.
6687 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
6688 (load_auto_scripts_for_objfile): New function.
6689 (auto_load_new_objfile): Call it.
6690 * python/python.h (gdbpy_global_auto_load): Declare.
6691 (load_auto_scripts_for_objfile): Declare.
6692
66d09542
DE
6693 Add support for auto-loading scripts from .debug_gdb_scripts section.
6694 * NEWS: Add entry for .debug_gdb_scripts.
6695 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
6696 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
6697 (py-auto-load.o): New rule.
6698 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
6699 * cli/cli-cmds.h (find_and_open_script): Update prototype.
6700 * python/py-auto-load.c: New file.
6701 * python/python-internal.h: #include <stdio.h>.
6702 (set_python_list, show_python_list): Declare.
6703 (gdbpy_initialize_auto_load): Declare.
6704 (source_python_script_for_objfile): Declare.
6705 * python/python.c: Remove #include of observer.h.
6706 (gdbpy_auto_load): Moved to py-auto-load.c.
6707 (GDBPY_AUTO_FILENAME): Ditto.
6708 (gdbpy_new_objfile): Delete.
6709 (source_python_script_for_objfile): New function.
6710 (set_python_list, show_python_list): Make externally visible.
6711 (_initialize_python): Move "auto-load" command to py-auto-load.c
6712 and observer_attach_new_objfile to py-auto-load.c.
6713
3a48e6ff 67142010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 6715
3a48e6ff
JG
6716 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
6717 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
6718 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
6719 New constants.
6720 (alpha_heuristic_analyze_probing_loop): New function.
6721 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
6722 and handle cases when a stack probe loop is generated.
6723 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
6724 (alpha_mdebug_max_frame_size_exceeded): New function.
6725 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
6726 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
6727 Return 0 when the maximum debuggable frame size has been exceeded.
6728
e4166a49
JB
67292010-04-23 Joel Brobecker <brobecker@adacore.com>
6730
6731 Fix ARI warning.
6732 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
6733
8bd10a10
CM
67342010-04-20 Chris Moller <cmoller@redhat.com>
6735
6736 PR 10179
6737
6738 * symtab.c (rbreak_command): Added code to include a filename
6739 specification in the rbreak argument.
6740 * NEWS: Added a brief description of filename-qualified rbreak.
6741
c0201579
JK
67422010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6743
6744 Fix crashes on dangling display expressions.
6745 * ada-lang.c (ada_operator_check): New function.
6746 (ada_exp_descriptor): Fill-in the field operator_check.
6747 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
6748 * jv-lang.c (exp_descriptor_java): Likewise.
6749 * m2-lang.c (exp_descriptor_modula2): Likewise.
6750 * scm-lang.c (exp_descriptor_scm): Likewise.
6751 * parse.c (exp_descriptor_standard): Likewise.
6752 (operator_check_standard): New function.
6753 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
6754 * parser-defs.h (struct exp_descriptor): New field operator_check.
6755 (operator_check_standard, exp_uses_objfile): New declarations.
6756 * printcmd.c: Remove the inclusion of solib.h.
6757 (display_uses_solib_p): Remove the function.
6758 (clear_dangling_display_expressions): Call lookup_objfile_from_block
6759 and exp_uses_objfile instead of display_uses_solib_p.
6760 * solist.h (struct so_list) <objfile>: New comment.
6761 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
6762 * symtab.h (lookup_objfile_from_block): New declaration.
6763 (struct general_symbol_info) <obj_section>: Extend the comment.
6764
6ffbb7ab
TJB
67652010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6766 Thiago Jung Bauermann <bauerman@br.ibm.com>
6767
6768 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
6769 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
6770 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
6771 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6772 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6773 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6774 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6775 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6776 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6777 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6778 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6779 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6780 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6781 Define, in case <ptrace.h> doesn't provide it.
6782 (booke_debug_info): New variable.
6783 (max_slots_number): Ditto.
6784 (hw_break_tuple): New struct.
6785 (thread_points): Ditto.
6786 (ppc_threads): New variable.
6787 (PPC_DEBUG_CURRENT_VERSION): New define.
6788 (have_ptrace_new_debug_booke): New function.
6789 (ppc_linux_check_watch_resources): Renamed to ...
6790 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6791 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6792 (booke_cmp_hw_point): New function.
6793 (booke_find_thread_points_by_tid): Ditto.
6794 (booke_insert_point): Ditto.
6795 (booke_remove_point): Ditto.
6796 (ppc_linux_insert_hw_breakpoint): Ditto.
6797 (ppc_linux_remove_hw_breakpoint): Ditto.
6798 (get_trigger_type): Ditto.
6799 (ppc_linux_insert_watchpoint): Handle BookE processors.
6800 (ppc_linux_remove_watchpoint): Ditto.
6801 (ppc_linux_new_thread): Ditto.
6802 (ppc_linux_thread_exit): New function..
6803 (ppc_linux_stopped_data_address): Handle BookE processors.
6804 (ppc_linux_watchpoint_addr_within_range): Ditto.
6805 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6806 to_remove_hw_breakpoint fields of the target operations struct.
6807 Add observe for the thread_exit event.
6808
be0d2954
L
68092010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6810
6811 * i386-linux-nat.c (regmap): Removed.
6812 (fetch_register): Replace regmap with
6813 i386_linux_gregset_reg_offset.
6814 (store_register): Likewise.
6815 (supply_gregset): Likewise.
6816 (fill_gregset): Likewise.
6817
6818 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6819 global.
6820
6821 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6822
f56dcb88
CM
68232010-04-22 Chris Moller <cmoller@redhat.com>
6824
6825 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6826 method of popping recursion-detection stack with a method based on
6827 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6828 the static array obstack rather than the static member obstack.)
6829
6cd6a2ae
L
68302010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6831
6832 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6833 (_initialize_amd64_linux_nat): Replace
6834 amd64_linux_gregset64_reg_offset with
6835 amd64_linux_gregset_reg_offset.
6836
6837 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6838 global.
6839
6840 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6841
621791b8
PM
68422010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6843
6844 PR stabs/11479.
6845 * stabsread.c (set_length_in_type_chain): New function.
6846 (read_struct_type): Call set_length_in_type_chain function.
6847 (read_enum_type): Idem.
6848
105c2d85
SS
68492010-04-21 Stan Shebs <stan@codesourcery.com>
6850 Nathan Sidwell <nathan@codesourcery.com>
6851
6852 * tracepoint.c (trace_save): Open in binary mode.
6853
9a22f0d0
PM
68542010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6855
6856 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6857 fields.
0407b3f1 6858 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6859 builtin_char32 fields.
6860 * printcmd.c (decode_format): Set char size to '\0'
6861 for strings unless explicit size is given.
6862 (print_formatted): Correct calculation of NEXT_ADDRESS
6863 for 16 or 32 bit strings.
6864 (do_examine): Do not force byte size for strings.
6865 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6866 16 or 32 bit-wide strings.
9a22f0d0
PM
6867 (x_command): Set LAST_SIZE to 'b' for string type.
6868
f335d1b3
L
68692010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6870
6871 PR corefiles/11523
6872 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6873 XCR0 first.
6874
6875 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6876 there is no .reg-xstate section.
6877 (i386_linux_core_read_description): Check XCR0 first.
6878
a9789a6b
MF
68792010-04-21 Mike Frysinger <vapier@gentoo.org>
6880
6881 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6882 for len <= 8.
6883
0b66f317
CM
68842010-04-21 Chris Moller <cmoller@redhat.com>
6885
6886 PR 9167
6887 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6888 method of popping recursion-detection stack with a method based on
6889 obstack_object_size().
0b66f317 6890
6e354e5e
PM
68912010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6892
6893 PR pascal/11492.
6894 * p-valprint.c (pascal_val_print): Fix default printing of integer
6895 arrays.
6896
57174f31
PM
68972010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6898
6899 Fix compilation warning on gcc-4.1.2.
6900 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6901 local variable`pc' to zero.
6902
6fbc7cd8
JB
69032010-04-20 Joel Brobecker <brobecker@adacore.com>
6904
6905 Implement thread support with core files on alpha-tru64.
6906 * dec-thread.c (dec_thread_find_new_threads): New function,
6907 extracted from resync_thread_list.
6908 (resync_thread_list): Add OPS parameter. Replace extracted-out
6909 code by call to dec_thread_find_new_threads.
6910 (dec_thread_wait): Update call to resync_thread_list.
6911 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6912
438c98a1
JB
69132010-04-20 Joel Brobecker <brobecker@adacore.com>
6914
6915 * ada-lang.c (value_pointer): New function.
6916 (make_array_descriptor): Call value_pointer to convert addresses to
6917 pointers.
6918
2971b56b
JB
69192010-04-20 Joel Brobecker <brobecker@adacore.com>
6920
6921 * rs6000-aix-tdep.c: #include exceptions.h.
6922 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6923 while reading the memory at ADDR, then ADDR cannot be a function
6924 descriptor.
6925
be942545
JB
69262010-04-20 Joel Brobecker <brobecker@adacore.com>
6927
6928 * ada-typeprint.c (ada_print_typedef): New function.
6929 * ada-lang.h (ada_print_typedef): Add declaration.
6930 * ada-lang.c (ada_language_defn): set la_print_typdef field
6931 to ada_print_typedef.
6932
1ca8fce0
JB
69332010-04-20 Joel Brobecker <brobecker@adacore.com>
6934
6935 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6936
e9ef4f39
JB
69372010-04-20 Joel Brobecker <brobecker@adacore.com>
6938
6939 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6940 (iterate_over_mappings): Adjust function profile. Add declaration.
6941 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6942 Adjust accordingly.
6943
e294797a
JB
69442010-04-20 Joel Brobecker <brobecker@adacore.com>
6945
6946 * procfs.c (solib_mappings_callback): Move function up to avoid
6947 a compiler warning.
6948
a223f1e7
JB
69492010-04-20 Joel Brobecker <brobecker@adacore.com>
6950
6951 * procfs.c (find_signalled_thread, find_stop_signal): Move
6952 these functions down to define them only when used.
6953
0c3acc09
JB
69542010-04-20 Joel Brobecker <brobecker@adacore.com>
6955
6956 * valprint.c (common_val_print): Fix the value before extracting
6957 its contents.
6958 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6959 * ada-lang.h (ada_to_fixed_value): New function declaration.
6960 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6961 to avoid code duplication and fix a bug in the handling of
6962 fixed types contents.
6963
31ef98ae
TT
69642010-04-20 Tom Tromey <tromey@redhat.com>
6965
6966 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6967 (read_partial_die): Likewise.
6968 (dwarf_attr_name): Likewise.
6969
ec31cde5 69702010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6971
ec31cde5
CM
6972 PR 10867
6973
6974 * cp-valprint.c (global): Adding new static array recursion
6975 detection obstack.
6976 (cp_print_value_fields, cp_print_static_field): Added new static
6977 array recursion detection code.
6978
e0e0e543
MK
69792010-04-20 Mark Kettenis <kettenis@gnu.org>
6980
6981 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6982 general-purpose register set should be 68 instead of 144.
6983 (i386_linux_sse_regset_sections): Likewise.
6984 (i386_linux_avx_regset_sections): Likewise.
6985
08922a10
SS
69862010-04-20 Stan Shebs <stan@codesourcery.com>
6987 Nathan Sidwell <nathan@codesourcery.com>
6988
6989 * dwarf2loc.c (struct axs_var_loc): New struct.
6990 (dwarf2_tracepoint_var_loc): New function.
6991 (dwarf2_tracepoint_var_access): New function.
6992 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6993 with DW_OP_piece.
6994 (locexpr_describe_location_piece): New function.
6995 (locexpr_describe_location_1): New function.
6996 (locexpr_describe_location): Call it, update signature.
6997 (loclist_describe_location): Rewrite to loop over locations,
6998 update signature.
6999 * symtab.h (struct symbol_computed_ops): Add address to
7000 describe_location arguments, return void.
7001 * printcmd.c (address_info): Get context PC, pass to computed
7002 location description.
7003 * tracepoint.c (scope_info): Ditto.
7004 * ax-gdb.c (trace_kludge): Export.
7005
2dc7f7b3
TT
70062010-04-20 Tom Tromey <tromey@redhat.com>
7007
7008 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
7009 (struct dwarf2_cie) <segment_size>: New field.
7010 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
7011 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
7012 DW_FORM_exprloc.
7013 (read_attribute_value): Handle DW_FORM_flag_present,
7014 DW_FORM_sec_offset, DW_FORM_exprloc.
7015 (dump_die_shallow): Likewise.
7016 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
7017 (dwarf2_const_value): Handle DW_FORM_exprloc.
7018 (attr_form_is_block): Likewise.
7019 (struct line_header) <maximum_ops_per_instruction>: New field.
7020 (dwarf_decode_line_header): Set new field.
7021 (dwarf_decode_lines): Handle new field.
7022
ce4b0682
SDJ
70232010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7024
7025 * f-exp.y: Add new production to recognize the `logical*8' type.
7026 (LOGICAL_S8_KEYWORD): New token.
7027 * f-lang.c (enum f_primitive_types)
7028 <f_primitive_type_logical_s8>: New field.
7029 (f_language_arch_info): Handling `logical*8' type.
7030 (build_fortran_types): Building `logical*8' type.
7031 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
7032
ff9f22f1
DE
70332010-04-19 Doug Evans <dje@google.com>
7034
7035 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
7036 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
7037 (pipe_close): Ditto.
7038
437125bd
PM
70392010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7040
7041 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
7042
e8e6c82e
PM
70432010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7044
7045 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
7046 type to void function.
7047
4136fdd2
SS
70482010-04-19 Stan Shebs <stan@codesourcery.com>
7049 Vladimir Prus <vladimir@codesourcery.com>
7050
7051 * tracepoint.c (tfind_1): Add missing newline, report exit from
7052 tfind mode as such.
7053 * target.c (update_current_target): Make default
7054 to_trace_find return -1.
7055
0c4b2e63
MF
70562010-04-19 Mike Frysinger <vapier@gentoo.org>
7057
7058 * objc-lang.c (find_methods): Move symname check up.
7059
78076abc
PA
70602010-04-19 Pedro Alves <pedro@codesourcery.com>
7061
7062 * ada-lang.c (print_recreate_exception)
7063 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
7064 not "catch unhandled".
7065
6149aea9
PA
70662010-04-19 Pedro Alves <pedro@codesourcery.com>
7067
7068 PR breakpoints/8554.
7069
7070 Implement `save-breakpoints'.
7071
7072 * breakpoint.c (save_cmdlist): New.
7073 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
7074 to save_cmdlist.
7075 (print_recreate_catch_fork): New.
7076 (catch_fork_breakpoint_ops): Install it.
7077 (print_recreate_catch_vfork): New.
7078 (catch_vfork_breakpoint_ops): Install it.
7079 (print_recreate_catch_syscall): New.
7080 (catch_syscall_breakpoint_ops): Install it.
7081 (print_recreate_catch_exec): New.
7082 (catch_exec_breakpoint_ops): Install it.
7083 (print_recreate_exception_catchpoint): New.
7084 (gnu_v3_exception_catchpoint_ops): Install it.
7085 (save_breakpoints): New, based on tracepoint_save_command, but
7086 handle all breakpoint types.
7087 (save_breakpoints_command): New.
7088 (tracepoint_save_command): Rename to...
7089 (save_tracepoints_command): ... this, and reimplement using
7090 save_breakpoints.
7091 (save_command): New.
7092 (_initialize_breakpoints): Install the "save" command prefix.
7093 Install the "save breakpoints" command. Make "save-tracepoints" a
7094 deprecated alias for "save tracepoints".
7095 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
7096 * ada-lang.c (print_recreate_exception): New.
7097 (print_recreate_catch_exception): New.
7098 (catch_exception_breakpoint_ops): Install it.
7099 (print_recreate_catch_exception_unhandled): New.
7100 (catch_exception_unhandled_breakpoint_ops): Install it.
7101 (print_recreate_catch_assert): New.
7102 (catch_assert_breakpoint_ops): Install it.
7103
7104 * NEWS: Mention the new `save breakpoints' command. Mention the
7105 new `save tracepoints' alias and that `save-tracepoints' is now
7106 deprecated.
7107
0a8fce9a
PA
71082010-04-18 Pedro Alves <pedro@codesourcery.com>
7109
7110 PR tui/9217
7111
7112 * tui/tui-out.c: Include cli-out.h.
7113 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7114 (tui_begin, tui_end, tui_field_int, tui_field_skip)
7115 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
7116 (tui_message, tui_wrap_hint, tui_flush): Delete forward
7117 declarations.
7118 (struct ui_out_data): Rename to...
7119 (struct tui_ui_out_data): ... this. Remove `stream' and
7120 `suppress_output' fields, and inherit cli_ui_out_data.
7121 (tui_out_data): New typedef.
7122 (tui_ui_out_impl): Don't initialize fields staticaly.
7123 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
7124 (tui_begin, tui_end): Delete.
7125 (tui_field_int): Adjust to delegate most work to the base type.
7126 (tui_field_skip): Delete.
7127 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
7128 delegate most work to the base type.
7129 (tui_spaces): Delete.
7130 (tui_text): Adjust to delegate most work to the base type.
7131 (tui_message): Delete.
7132 (tui_wrap_hint): Delete.
7133 (tui_flush): Delete.
7134 (out_field_fmt): Delete.
7135 (field_separator): Delete.
7136 (tui_out_new): Adjust to initialize the base type.
7137 (_initialize_tui_out): Initialize tui_ui_out_impl.
7138 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
7139 cli_ui_out_data.
7140 (cli_out_data): Adjust.
7141 (cli_ui_out_impl): Make extern.
7142 (cli_table_header, cli_field_int, cli_field_skip): Use
7143 uo_field_string instead of cli_field_string.
7144 (cli_redirect): Adjust to use cli_out_data.
7145 (cli_out_data_ctor): New.
7146 (cli_out_new): Use it.
7147 * cli-out.h (struct ui_file): Remove forward declaration.
7148 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
7149 (cli_ui_out_impl): Declare.
7150 (cli_out_data_ctor): Declare.
7151 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
7152 (uo_field_string): No longer static.
7153 (ui_out_data): Change return type to void pointer.
7154 (ui_out_new): Change `data' parameter type to void pointer.
7155 * ui-out.h (struct ui_out_data): Don't forward declare.
7156 (ui_out_data): Change return type to void pointer.
7157 (ui_out_new): Change `data' parameter type to void pointer.
7158 (uo_field_string): Declare.
7159
172240dd
PA
71602010-04-17 Pedro Alves <pedro@codesourcery.com>
7161
7162 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
7163 instead of always false.
7164
ed41462c
L
71652010-04-17 H.J. Lu <hongjiu.lu@intel.com>
7166
7167 PR corefiles/11511
7168 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
7169 orig_rax.
7170
cc60f2e3
PA
71712010-04-17 Pedro Alves <pedro@codesourcery.com>
7172
7173 * breakpoint.c (watchpoints_triggered): Use
7174 is_hardware_watchpoint.
7175 (watchpoints_triggered): Ditto.
7176 (bpstat_check_location): Use is_watchpoint and
7177 is_hardware_watchpoint.
7178 (bpstat_check_watchpoint): Use is_watchpoint and
7179 is_hardware_watchpoint.
7180 (bpstat_stop_status): Fix comment.
7181 (user_settable_breakpoint): Use is_watchpoint.
7182 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
7183 (disable_watchpoints_before_interactive_call_start): Use
7184 is_watchpoint.
7185 (enable_watchpoints_after_interactive_call_stop): Use
7186 is_watchpoint.
7187 (clear_command): Use is_watchpoint.
7188 (do_enable_breakpoint): Use is_watchpoint.
7189
cb7db0f2
MF
71902010-04-16 Mike Frysinger <vapier@gentoo.org>
7191
7192 * solib-frv.c (enable_break1_done): Delete.
7193 (enable_break2): Do not check enable_break1_done. Move the
7194 enable_break2_done setting and call to
7195 remove_solib_event_breakpoints() to the end. Return without
7196 warning when the contents of _dl_debug_addr are 0.
7197 (enable_break): Do not set enable_break1_done.
7198 (frv_clear_solib): Likewise.
7199
d77b48cf
KB
72002010-04-16 Kevin Buettner <kevinb@redhat.com>
7201
7202 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
7203 instead of an error if no PLT entry is found. Return a
7204 potentially useful result.
7205 (m32c_m16c_pointer_to_address): Add code to search for function
7206 address when no .plt entry is found.
7207
f90824dc
SS
72082010-04-16 Stan Shebs <stan@codesourcery.com>
7209
7210 * tracepoint.c (trace_variable_command): Run a cleanup.
7211
9b79b476
PM
72122010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7213
7214 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
7215
711e434b
PM
72162010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
7217
7218 Support for Windows OS Thread Information Block.
7219 * NEWS: Document new feature.
7220 * remote.c (PACKET_qGetTIBAddr): New enum element.
7221 (remote_get_tib_address): New function.
7222 (init_remote_ops): Set to_get_tib_address field
7223 to remote_get_tib_address.
7224 (_initialize_remote): Add add_packet_config_cmd
7225 for PACKET_qGetTIBAddr.
7226 * target.c (update_current_target): Set default value for
7227 new to_get_tib_address field.
7228 * target.h (target_ops): New field to_get_tib_address.
7229 (target_get_tib_address): New macro.
7230 * windows-nat.c (thread_info): Add thread_local_base field.
7231 (windows_add_thread): Add tlb argument of type 'void *'.
7232 (fake_create_process): Adapt windows_add_thread call.
7233 (get_windows_debug_event): Idem.
7234 (windows_get_tib_address): New function.
7235 (init_windows_ops): Set to_get_tib_address field
7236 to remote_get_tib_address.
7237 (_initialize_windows_nat): Replace info_w32_cmdlist
7238 initialization by a call to init_w32_command_list.
7239 (info_w32_command, info_w32_cmdlist): Removed from here...
7240 to windows-tdep.c file.
7241 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 7242 (init_w32_command_list): New external function
711e434b
PM
7243 declaration.
7244 * windows-tdep.c: Add several headers.
7245 (info_w32_cmdlist): to here, made global.
7246 (thread_information_32): New struct.
7247 (thread_information_64): New struct.
7248 (TIB_NAME): New char array.
7249 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
7250 (maint_display_all_tib): New static variable.
7251 (windows_get_tlb_type): New function.
7252 (tlb_value_read, tlb_value_write): New functions.
7253 (tlb_value_funcs): New static struct.
7254 (tlb_make_value): New function.
7255 (display_one_tib): New function.
7256 (display_tib): New function.
7257 (show_maint_show_all_tib):New function.
7258 (info_w32_command): Moved from windows-nat.c.
7259 (init_w32_command_list): New function.
7260 (_initialize_windows_tdep): New function.
7261 New "maint set/show show-all-tib" command
7262 New "$_tlb" internal variable.
7263
cae3f17b
JB
72642010-04-16 Joel Brobecker <brobecker@adacore.com>
7265
7266 * tui/tui-regs.c (tui_display_register): Add comment about
7267 a couple of casts.
7268 * tui/tui-stack.c (tui_show_locator_content): Ditto.
7269
2ce6d6bf
SS
72702010-04-15 Stan Shebs <stan@codesourcery.com>
7271
7272 * frame.c: Include tracepoint.h.
7273 (get_current_frame): Allow a trace frame to be an alternate source
7274 of stack frame data.
7275 * tracepoint.c (tfind_1): Don't try to get current stack frame if
7276 it won't succeed.
7277
7e559477
PA
72782010-04-15 Pedro Alves <pedro@codesourcery.com>
7279
7280 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
7281 flags.
7282 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
7283
3f7b2faa
DE
72842010-04-15 Doug Evans <dje@google.com>
7285
fa33c3cd
DE
7286 * NEWS: Add entry for python program space support.
7287 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
7288 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
7289 (py-progspace.o): New rule.
7290 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
7291 function.
7292 (find_pretty_printer_from_progspace): New function.
7293 (find_pretty_printer_from_gdb): New function.
7294 (find_pretty_printer): Rewrite.
7295 * python/py-progspace.c: New file.
7296 * python/python-internal.h (program_space): Add forward decl.
7297 (pspace_to_pspace_object, pspy_get_printers): Declare.
7298 (gdbpy_initialize_pspace): Declare.
7299 * python/python.c: #include "progspace.h".
7300 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
7301 (_initialize_python): Call gdbpy_initialize_pspace.
7302 (GdbMethods): Add current_progspace, progspaces.
7303
3f7b2faa
DE
7304 Add -s option to source command.
7305 * NEWS: Document new option.
7306 * cli/cli-cmds.c (find_and_open_script): Add function comment.
7307 Delete from_tty and cleanupp args. Split filep arg into file and
7308 full_pathp. New arg search_path.
7309 (source_script_from_stream): New function.
7310 (source_script_with_search): New function.
7311 (source_script): Rewrite.
7312 (source_command): Parse "-s" option.
7313 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
7314 * python/python.c (source_python_script): Make file arg a const char *.
7315 Don't call fclose, leave for caller.
7316 * python/python.h (source_python_script): Update.
7317
a86988f2
PA
73182010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7319 Pedro Alves <pedro@codesourcery.com>
7320
7321 Avoid rereading shared libraries that haven't changed.
7322
7323 * solib.c (free_so_symbols): New function, from ...
7324 (free_so): ... here. Call it.
7325 (solib_read_symbols): Don't warn here if symbols have already been
7326 loaded.
7327 (solib_add): Warn here instead, if a pattern was specified.
7328 (reload_shared_libraries_1): New.
7329 (reload_shared_libraries): Rewrite to not fetch the library list.
7330
e6d9b9c2
DE
73312010-04-14 Doug Evans <dje@google.com>
7332
589390d6 7333 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
7334 concatenating string to search path.
7335
516ba659
PA
73362010-04-14 Pedro Alves <pedro@codesourcery.com>
7337
7338 * objfiles.h (gdb_bfd_close_or_warn): Declare.
7339 * objfiles.c (gdb_bfd_close_or_warn): New.
7340 * corelow.c: Include objfiles.h
7341 (core_close): Use gdb_bfd_close_or_warn.
7342 * elfread.c (build_id_verify): Ditto.
7343 * exec.c (exec_close, exec_close_1): Ditto.
7344
048d532d
PA
73452010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7346 Pedro Alves <pedro@codesourcery.com>
7347
7348 Group errors for many missing shared libraries.
7349
7350 * solist.h (struct so_list): Remove from_tty.
7351 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
7352 (solib_map_sections): Take so_list argument. Return 0 if we
7353 failed to open a BFD. Add target sections here.
7354 (symbol_add_stub): Delete.
7355 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
7356 not from_tty copied from the so_list. Don't warn a second time
7357 for a missing library.
7358 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
7359 add to the section table here. Print out a single warning for all
7360 missing libraries.
7361 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
7362 flags.
7363
044c0f87
PM
73642010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7365
7366 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
7367 error/warning messages. Capitalize and use complete sentences.
7368 (blpy_block_syms_iternext): Likewise.
7369 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
7370 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
7371 (frame_info_to_frame_object, frapy_read_var)
7372 (gdbpy_frame_stop_reason_string): Likewise.
7373 * python/py-lazy-string.c (stpy_convert_to_value)
7374 (gdbpy_create_lazy_string_object): Likewise.
7375 * python/py-objfile.c (objfpy_set_printers): Likewise.
7376 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
7377 * python/python.c (parameter_to_python): Likewise.
7378 * python/py-type.c (typy_range, typy_target): Likewise.
7379 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
7380 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
7381
7382
79f283fe
PM
73832010-04-14 Phil Muldoon <pmuldoon@redhat.com>
7384
7385 PR python/11381
7386
7387 * python/py-prettyprint.c (pretty_print_one_value): Test for
7388 Py_None.
7389 (print_string_repr): Test for Py_None. Set flags accordingly.
7390 Return value depending on return type.
7391 (print_children): Take a value indicating whether data was printed
7392 before this function was called. Alter output accordingly.
7393 (apply_val_pretty_printer): Capture return value from
7394 print_string_repr and pass to print_children.
7395
4ac5d44e
MK
73962010-04-13 Mark Kettenis <kettenis@gnu.org>
7397
e1caee70 7398 PR corefiles/11481
4ac5d44e
MK
7399 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
7400 register note sections.
7401 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
7402 New variables.
7403 (i386_linux_init_abi): Install list of supported register note
7404 sections that matches the target description.
7405
ad91cd99
PA
74062010-04-13 Pedro Alves <pedro@codesourcery.com>
7407
7408 * remote.c (remote_get_noisy_reply): Don't error out on empty
7409 replies.
7410 (remote_start_remote): Update and merge tracepoints and trace
7411 state variables as long as the target supports tracepoints.
7412 (remote_trace_init): Fix prototype.
7413 (remote_download_trace_state_variable): Validate reply.
7414 (remote_trace_set_readonly_regions): Fix prototype.
7415 (remote_trace_start): Fix prototype. Check for empty reply.
7416 (remote_get_trace_status): Small cleanup.
7417 (remote_trace_stop): Fix prototype. Check for empty reply.
7418 (remote_trace_find): Check for empty reply.
7419 (remote_save_trace_data): Validate reply.
7420 (remote_set_disconnected_tracing): Check for empty reply, and
7421 validate reply.
7422 (remote_set_circular_trace_buffer): Ditto.
7423
ae3bccd4
PM
74242010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
7425
7426 Suppress unused value warning during compilation.
7427 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
7428 calls to void.
7429 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7430
523136f2
SS
74312010-04-12 Stan Shebs <stan@codesourcery.com>
7432
7433 * tracepoint.c (tfile_xfer_partial): Check read result.
7434
0d18d720
MF
74352010-04-12 Mike Frysinger <vapier@gentoo.org>
7436
7437 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
7438 * remote-sim.c (gdbsim_files_info): Likewise.
7439
3b273a55
RE
74402010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7441
7442 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
7443 * arm-linux-nat.c (arm_linux_vfp_register_count): New
7444 variable.
7445 (fetch_vfp_registers): New function to fetch VFP registers.
7446 (store_vfp_registers): New function to store VFP registers.
7447 (arm_linux_fetch_inferior_registers): Add support for VFP
7448 registers.
7449 (arm_linux_store_inferior_registers): Likewise.
7450 (arm_linux_read_description): Likewise.
7451 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
7452 until we need it.
7453
778c7095
L
74542010-04-11 H.J. Lu <hongjiu.lu@intel.com>
7455
7456 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
7457 tdep.
7458 (amd64_collect_xstateregset): Likewise.
7459
2114d44c
SS
74602010-04-09 Stan Shebs <stan@codesourcery.com>
7461
87290684
SS
7462 * tracepoint.c (trace_status_mi): Report frames created.
7463
2114d44c
SS
7464 * tracepoint.c (trace_dump_command): Include default-collect
7465 expressions.
7466
86da934b
UW
74672010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
7468
7469 * symtab.c (find_function_start_sal): Never return SAL pointing
7470 before function start address, even if line info is missing.
7471
2d6e647a 74722010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
7473
7474 * NEWS: Mention tracepoints support.
7475
a97153c7
PA
74762010-04-09 Pedro Alves <pedro@codesourcery.com>
7477
7478 * tracepoint.c (trace_status_mi): Report disconnected tracing and
7479 circular trace buffer statuses.
7480
7a66d603
JK
74812010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7482
7483 * config/djgpp/fnchange.lst: Fix typo in translations for
7484 symbol-without-target_section.exp and symbol-without-target_section.c.
7485
2566ad2d
PA
74862010-04-09 Pedro Alves <pedro@codesourcery.com>
7487
7488 * breakpoint.c (condition_command): Pass condition expression to
7489 set_breakpoint_condition stripped from breakpoint number.
7490
adc36818
PM
74912010-04-09 Phil Muldoon <pmuldoon@redhat.com>
7492 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 7493 Tom Tromey <tromey@redhat.com>
adc36818
PM
7494
7495 * breakpoint.c (condition_command): Simplify. Move condition
7496 setting code to ...
7497 (set_breakpoint_condition): ... here. New function.
7498 * breakpoint.h (set_breakpoint_condition): Declare.
7499 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
7500 (SUBDIR_PYTHON_SRCS): Likewise.
7501 (py-breakpoint.o): New rule.
7502 * python/py-breakpoint.c: New file.
7503 * python/python-internal.h (gdbpy_breakpoints)
7504 (gdbpy_initialize_breakpoints): Declare.
7505 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
7506
219f2f23
PA
75072010-04-09 Pedro Alves <pedro@codesourcery.com>
7508
7509 * regformats/regdat.sh: Include server.h. Don't include
7510 regcache.h.
7511
33da3f1c
SS
75122010-04-08 Stan Shebs <stan@codesourcery.com>
7513 Pedro Alves <pedro@codesourcery.com>
7514
7515 * tracepoint.h (struct trace_status): New fields disconnected_tracing
7516 and circular_buffer.
7517 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
7518 * tracepoint.c (trace_status_command): Display target's status for
7519 disconnected tracing and circular buffer.
7520 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
7521 query for non-disconnected-tracing case, remove the stop_tracing
7522 call.
7523 (tfile_open): Clear disconnected and circular buffer status.
7524 (trace_save): Save disconnected and circular buffer status.
7525 (parse_trace_status): Parse disconnected and circular buffer status,
7526 also recognize disconnected as a stop reason.
7527 * remote.c (remote_set_disconnected_tracing): Only set
7528 QTDisconnected if the remote end supports disconnected tracing.
7529 Warn otherwise, if trying to enable disconnected tracing.
7530 * infcmd.c (detach_command): Update disconnect_tracing call.
7531 * cli/cli-cmds.c (quit_command): Ditto.
7532
4e4d8374
L
75332010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7534
7535 * i387-tdep.c (i387_collect_xsave): Replace abort with
7536 internal_error.
7537
ad443146
SS
75382010-04-08 Stan Shebs <stan@codesourcery.com>
7539
7540 * breakpoint.c (default_collect_info): New function.
7541 (breakpoints_info): Call it.
7542 (maintenance_info_breakpoints): Ditto.
7543 (tracepoints_info): Ditto.
7544
40936b0d
L
75452010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7546
7547 * i387-tdep.c (i387_collect_xsave): Re-indent.
7548
3a13a53b
L
75492010-04-08 H.J. Lu <hongjiu.lu@intel.com>
7550
7551 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
7552 if HAVE_PTRACE_GETFPXREGS is defined.
7553 (i386_linux_read_description): Set have_ptrace_getfpxregs and
7554 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
7555
7556 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
7557 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
7558 if .reg-xfp section doesn't exist.
7559 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
7560
7561 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
7562
7563 * i386-tdep.c: Include "features/i386/i386-mmx.c".
7564 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
7565 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
7566 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
7567 (i386_gdbarch_init): Update comments.
7568 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
7569
7570 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
7571
7572 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
7573
7574 * features/Makefile (i386/i386-mmx-expedite): New.
7575 (i386/i386-mmx-linux-expedite): Likewise.
7576 ($(outdir)/i386/i386-mmx.dat): Likewise.
7577 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
7578
7579 * features/i386/i386-mmx-linux.c: New.
7580 * features/i386/i386-mmx-linux.xml: Likewise.
7581 * features/i386/i386-mmx.c: Likewise.
7582 * features/i386/i386-mmx.xml: Likewise.
7583 * regformats/i386/i386-mmx-linux.dat: Likewise.
7584 * regformats/i386/i386-mmx.dat: Likewise.
7585
7586 * features/Makefile (WHICH): Add i386/i386-mmx and
7587 i386/i386-mmx-linux.
7588
08001717
DE
75892010-04-08 Doug Evans <dje@google.com>
7590
7591 * source.c (openp): Skip $cdir in PATH.
7592
fff5cc64
PM
75932010-04-08 Phil Muldoon <pmuldoon@redhat.com>
7594
7595 PR python/11417
fff5cc64 7596 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
7597 a NULL address.
7598 (gdbpy_create_lazy_string_object): Allow strings with a NULL
7599 address and a zero length.
fff5cc64 7600
f8c4f480
HZ
76012010-04-08 Hui Zhu <teawater@gmail.com>
7602
7603 * i386-tdep.c (i386_process_record): Add support for insn
7604 rdtsc.
7605
eb5cda86
DE
76062010-04-07 Doug Evans <dje@google.com>
7607
7608 * python/python.c (source_python_script): Use ensure_python_env
7609 to prepare environment for script.
7610
a055a187
L
76112010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7612
7613 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
7614 <sys/uio.h> and "i386-xstate.h".
7615 (PTRACE_GETREGSET): New.
7616 (PTRACE_SETREGSET): Likewise.
7617 (have_ptrace_getregset): Likewise.
7618 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
7619 registers.
7620 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
7621 registers.
7622 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
7623 (amd64_linux_store_inferior_registers): Likewise.
7624 (amd64_linux_read_description): Check and enable AVX target
7625 descriptions.
7626
7627 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
7628 and "features/i386/amd64-avx-linux.c".
7629 (amd64_linux_regset_sections): New.
7630 (amd64_linux_core_read_description): Check and enable AVX
7631 target description.
7632 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
7633 set_gdbarch_core_regset_sections.
7634 (_initialize_amd64_linux_tdep): Call
7635 initialize_tdesc_amd64_avx_linux.
7636
7637 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
7638 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
7639 (tdesc_amd64_avx_linux): New.
7640 (amd64_linux_update_xstateregset): Likewise.
7641
7642 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
7643 (amd64_ymm_names): New.
7644 (amd64_ymmh_names): Likewise.
7645 (amd64_register_name): Likewise.
7646 (amd64_supply_xstateregset): Likewise.
7647 (amd64_collect_xstateregset): Likewise.
7648 (amd64_supply_xsave): Likewise.
7649 (amd64_collect_xsave): Likewise.
7650 (AMD64_NUM_REGS): Removed.
7651 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
7652 %xmmN if AVX is available.
7653 (amd64_pseudo_register_name): Support pseudo YMM registers.
7654 (amd64_regset_from_core_section): Support .reg-xstate section.
7655 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
7656 and ymm0h_regnum. Call set_gdbarch_register_name.
7657 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
7658
7659 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
7660 AMD64_YMM15H_REGNUM.
7661 (AMD64_NUM_REGS): New.
7662 (amd64_supply_xsave): Likewise.
7663 (amd64_collect_xsave): Likewise.
7664 (amd64_register_name): Removed.
7665 (amd64_register_type): Likewise.
7666
31aeac78
L
76672010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7668
7669 * i387-tdep.c: Include "i386-xstate.h".
7670 (XSAVE_XSTATE_BV_ADDR): New.
7671 (xsave_avxh_offset): Likewise.
7672 (XSAVE_AVXH_ADDR): Likewise.
7673 (i387_supply_xsave): Likewise.
7674 (i387_collect_xsave): Likewise.
7675
7676 * i387-tdep.h (I387_NUM_YMM_REGS): New.
7677 (I387_YMM0H_REGNUM): Likewise.
7678 (I387_YMMENDH_REGNUM): Likewise.
7679 (i387_supply_xsave): Likewise.
7680 (i387_collect_xsave): Likewise.
7681
c131fcee
L
76822010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7683
7684 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
7685 <sys/uio.h> and "i386-xstate.h".
7686 (PTRACE_GETREGSET): New.
7687 (PTRACE_SETREGSET): Likewise.
7688 (fetch_xstateregs): Likewise.
7689 (store_xstateregs): Likewise.
7690 (GETXSTATEREGS_SUPPLIES): Likewise.
7691 (regmap): Include 8 upper YMM registers.
7692 (i386_linux_fetch_inferior_registers): Support XSAVE extended
7693 state.
7694 (i386_linux_store_inferior_registers): Likewise.
7695 (i386_linux_read_description): Check and enable AVX target
7696 descriptions.
7697
7698 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
7699 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
7700 (i386_linux_regset_sections): Add ".reg-xstate".
7701 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
7702 (i386_linux_core_read_xcr0): New.
7703 (i386_linux_core_read_description): Check and enable AVX target
7704 description.
7705 (i386_linux_init_abi): Set xsave_xcr0_offset.
7706 (_initialize_i386_linux_tdep): Call
7707 initialize_tdesc_i386_avx_linux.
7708
7709 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
7710 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
7711 (i386_linux_core_read_xcr0): New.
7712 (tdesc_i386_avx_linux): Likewise.
7713 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
7714
7715 * i386-tdep.c: Include "i386-xstate.h" and
7716 "features/i386/i386-avx.c".
7717 (i386_ymm_names): New.
7718 (i386_ymmh_names): Likewise.
7719 (i386_ymmh_regnum_p): Likewise.
7720 (i386_ymm_regnum_p): Likewise.
7721 (i386_xmm_regnum_p): Likewise.
7722 (i386_register_name): Likewise.
7723 (i386_ymm_type): Likewise.
7724 (i386_supply_xstateregset): Likewise.
7725 (i386_collect_xstateregset): Likewise.
7726 (i386_sse_regnum_p): Removed.
7727 (i386_pseudo_register_name): Support pseudo YMM registers.
7728 (i386_pseudo_register_type): Likewise.
7729 (i386_pseudo_register_read): Likewise.
7730 (i386_pseudo_register_write): Likewise.
7731 (i386_dbx_reg_to_regnum): Return %ymmN register number for
7732 %xmmN if AVX is available.
7733 (i386_regset_from_core_section): Support .reg-xstate section.
7734 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
7735 (i386_process_record): Replace i386_sse_regnum_p with
7736 i386_xmm_regnum_p.
7737 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
7738 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 7739 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
7740 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
7741 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
7742 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
7743 Set ymm0_regnum.
7744 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
7745
7746 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
7747 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
7748 i386_ymm_type.
7749 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
7750 (I386_AVX_NUM_REGS): New.
7751 (i386_xmm_regnum_p): Likewise.
7752 (i386_ymm_regnum_p): Likewise.
7753 (i386_ymmh_regnum_p): Likewise.
7754
7755 * common/i386-xstate.h: New.
7756
98adf0f3
L
77572010-04-07 H.J. Lu <hongjiu.lu@intel.com>
7758
7759 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
7760
7761 * features/Makefile (WHICH): Add i386/i386-avx,
7762 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
7763 (i386/i386-avx-expedite): New.
7764 (i386/i386-avx-linux-expedite): Likewise.
7765 (i386/x86-64-avx-expedite):Likewise.
7766 (i386/x86-64-avx-linux-expedite): Likewise.
7767 ($(outdir)/i386/i386-avx.dat): New dependency.
7768 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
7769 ($(outdir)/i386/x86-avx-64.dat): Likewise.
7770 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
7771
7772 * features/i386/32bit-avx.xml: New.
7773 * features/i386/64bit-avx.xml: Likewise.
7774 * features/i386/i386-avx-linux.c: Likewise.
7775 * features/i386/i386-avx-linux.xml: Likewise.
7776 * features/i386/i386-avx.c: Likewise.
7777 * features/i386/i386-avx.xml: Likewise.
7778 * features/i386/x86-64-avx-linux.c: Likewise.
7779 * features/i386/x86-64-avx-linux.xml: Likewise.
7780 * features/i386/x86-64-avx.c: Likewise.
7781 * features/i386/x86-64-avx.xml: Likewise.
7782 * regformats/i386/i386-avx-linux.dat: Likewise.
7783 * regformats/i386/i386-avx.dat: Likewise.
7784 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7785 * regformats/i386/x86-64-avx.dat: Likewise.
7786
05159abe
DE
77872010-04-07 Doug Evans <dje@google.com>
7788
7789 * top.c (source_file_name): Make const char *.
7790 * top.h (source_file_name): Update.
7791 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7792 const char *.
7793 (script_from_file): Change `file' arg to const char *.
7794 * cli/cli-script.h (script_from_file): Update.
7795
96e39866
DE
77962010-04-06 Doug Evans <dje@google.com>
7797
7798 * cli/cli-cmds.c (source_command): Run cleanups.
7799
3149d8c1
SS
78002010-04-06 Stan Shebs <stan@codesourcery.com>
7801
7802 * defs.h (char_ptr): Move typedef here from...
7803 * ada-lang.c (char_ptr): Remove.
7804 * charset.c (char_ptr): Remove.
7805 * tracepoint.h (struct uploaded_string): Remove.
7806 (struct uploaded_tp): Use vectors for string arrays.
7807 * tracepoint.c (trace_save): Use vectors of actions.
7808 (parse_tracepoint_definition): Ditto.
7809 (get_uploaded_tp): Clear vectors.
7810 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7811 (next_cmd): Change to an int.
7812 (read_next_cmd): Use vector of command strings.
7813
4cc23ede
DE
78142010-04-06 Doug Evans <dje@google.com>
7815
7816 * top.h (source_script, cd_command): Delete.
7817 * main.c: #include "cli/cli-cmds.h"
7818
bd333fb7
KB
78192010-04-06 Kevin Buettner <kevinb@redhat.com>
7820
7821 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7822 type in bytes, not bits.
7823
ec8a089a
PM
78242010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7825
7826 * stabsread.c (define_symbol): Add support for char
7827 and string constants.
7828
2244ba2e
PM
78292010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7830
7831 Remove remaining "%ll" uses.
7832 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7833 hex_string call.
7834 * rs6000-nat.c (rs6000_ptrace64): Idem.
7835 * solib-pa64.c (pa64_current_sos): Idem.
7836 * solib-spu.c (spu_current_sos): Idem.
7837 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7838 plongest call.
7839 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7840 phex (VAR, 8) call.
7841 * sh64-tdep.c (sh64_show_media_regs): Idem.
7842
fce3c1f0
SS
78432010-04-05 Stan Shebs <stan@codesourcery.com>
7844
7845 * tracepoint.c: Include gdbcore.h.
7846 (tfile_xfer_partial): Return partial results, also try reading
7847 from executable.
7848 (tfile_has_all_memory): New function.
7849 (init_tfile_ops): Use it.
7850
626ea16d
SDJ
78512010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7852
7853 PR gdb/10736:
7854 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7855 the changes in data-directory.
7856 (init_sysinfo): Reload the syscall XML file if the data-directory
7857 has changed.
7858
1f7ccab2
JK
78592010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7860
7861 Code cleanup.
7862 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7863
d77f58be
SS
78642010-04-04 Stan Shebs <stan@codesourcery.com>
7865 Nathan Sidwell <nathan@codesourcery.com>
7866
7867 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7868 breakpoints printed.
7869 (is_hardware_watchpoint): Make argument const.
7870 (is_watchpoint): Ditto.
7871 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7872 use it everywhere.
7873 (breakpoints_info): Pass NULL to breakpoint_1.
7874 (maintenance_info_breakpoints): Ditto.
7875 (watchpoints_info): New function.
7876 (tracepoints_info): Use breakpoint_1 filter.
7877 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7878 (_initialize_breakpoint): Make "info watchpoints" its own command.
7879 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7880 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7881
af54718e
SS
78822010-04-04 Stan Shebs <stan@codesourcery.com>
7883
7884 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7885
74d1f91e
JK
78862010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7887
7888 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7889 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7890
91d91ceb
JK
78912010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7892
7893 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7894 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7895
60531b24
JK
78962010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7897
7898 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7899 code form.
7900
a3c4230a
HZ
79012010-04-02 Hui Zhu <teawater@gmail.com>
7902
7903 * i386-tdep.c (OT_DQUAD): New enum.
7904 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7905 SSE3, SSSE3 and SSE4.
7906
b15758fe
HZ
79072010-04-02 Hui Zhu <teawater@gmail.com>
7908
7909 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7910 "*addr = 0".
7911
afd02f27
PA
79122010-04-02 Pedro Alves <pedro@codesourcery.com>
7913
7914 * tracepoint.c (trace_dump_actions): New, factored out from
7915 trace_dump_command, and adjusted to recurse into while-stepping's
7916 action list.
7917 (trace_dump_command): Use it.
7918
5cea2a26
PA
79192010-04-02 Pedro Alves <pedro@codesourcery.com>
7920
7921 * breakpoint.h (struct counted_command_line): Moved definition to
7922 breakpoint.c, and forward declare.
7923 (breakpoint_commands): Declare.
7924 * breakpoint.c (struct counted_command_line): Moved here.
7925 (breakpoint_commands): New.
7926 * tracepoint.c (encode_actions): Use breakpoint_commands.
7927 * remote.c (remote_download_tracepoint): Ditto.
7928
7c47795c
L
79292010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7930
7931 * remote.c (remote_parse_stop_reply): Use hex_string instead
7932 of phex_nz for error.
7933
fff87407
SS
79342010-04-01 Stan Shebs <stan@codesourcery.com>
7935 Nathan Sidwell <nathan@codesourcery.com>
7936
7937 * tracepoint.h (enum actionline_type): Remove.
7938 (validate_actionline): Change return to void.
7939 * tracepoint.c (report_agent_reqs_errors): New function.
7940 (validate_actionline): Call it, change return to void, report errors
7941 more consistently.
7942 (collect_symbol): Call report_agent_reqs_errors.
7943 (encode_actions_1): Ditto.
7944 (encode_actions): Don't expect a result from validate_actionline.
7945
615bcdef
SS
79462010-04-01 Stan Shebs <stan@codesourcery.com>
7947
7948 * tracepoint.c (trace_start_command): Confirm if trace is running.
7949 (trace_stop_command): Error if trace not running.
7950
fe01d668
L
79512010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7952
7953 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7954 (AMD64_NUM_LOWER_BYTE_REGS): New.
7955 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7956 (amd64_pseudo_register_write): Likewise.
7957 (amd64_init_abi): Set num_byte_regs to 20.
7958
86b17b60
PA
79592010-04-01 Pedro Alves <pedro@codesourcery.com>
7960
7961 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7962 (prev_breakpoint_count): New.
7963 (set_breakpoint_count): Adjust.
7964 (rbreak_start_breakpoint_count): New.
7965 (start_rbreak_breakpoints): Adjust.
7966 (end_rbreak_breakpoints): Adjust.
7967 (struct commands_info) <arg>: New field.
7968 (do_map_commands_command): Tweak output to include breakpoint spec
7969 range.
7970 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7971 ARG was empty on entry. Set INFO's arg.
7972 (create_breakpoint): Adjust.
7973
7974 * NEWS: Clarify `commands' changes.
7975
2c58c0a9
PA
79762010-04-01 Pedro Alves <pedro@codesourcery.com>
7977
7978 * tracepoint.c: Include stack.h.
7979 (struct add_local_symbols_data): New.
7980 (do_collect_symbol): New.
7981 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7982 iterate_over_block_local_vars.
7983 * stack.c (print_block_frame_locals): Rewrite as ...
7984 (iterate_over_block_locals): ... this. Take a callback function
7985 pointer and generic data pointer, and call that instead of
7986 print_variable_and_value.
7987 (struct print_variable_and_value_data): New.
7988 (do_print_variable_and_value): New.
7989 (iterate_over_block_local_vars): New, abstracted out from
7990 print_frame_local_vars.
7991 (print_frame_local_vars): Rewrite using
7992 iterate_over_block_local_vars.
7993 (iterate_over_block_arg_vars): New, abstracted out from
7994 print_frame_arg_vars.
7995 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7996 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7997 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7998
d476da0e
RE
79992010-03-31 Richard Earnshaw <rearnsha@arm.com>
8000
8001 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 8002 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
8003 PC register.
8004
8072405b
JK
80052010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8006
8007 Fix crash on reading wrong function declaration DWARF.
8008 * dwarf2read.c (read_subroutine_type): New variable void_type.
8009 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
8010 more close to their use.
8011
8bf6485c
SS
80122010-03-31 Stan Shebs <stan@codesourcery.com>
8013
8014 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 8015 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
8016 * tracepoint.c (save_trace_state_variables): New function.
8017 * tracepoint.h (save_trace_state_variables): Declare it.
8018
2ae2a0b7
PM
80192010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
8020
1a161f72 8021 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 8022
86ffb506
KS
80232010-03-30 Keith Seitz <keiths@redhat.com>
8024
8025 * c-typeprint.c (c_type_print_args): Don't print "void"
8026 for java, regardless of whether it is TYPE_PROTOTYPED.
8027 Use the passed-in language instead of current_language.
8028 (c_type_print_varspec_suffix): Use current_language instead
8029 of assuming language_c.
8030 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
8031 any return type specifier from the physname.
8032
956c2c8b
PA
80332010-03-30 Pedro Alves <pedro@codesourcery.com>
8034
8035 * tui/tui-interp.c (tui_is_toplevel): New.
8036 (tui_init): Set it.
8037 (tui_allowed_p): New.
8038 * tui/tui.c (tui_enable): Check if the TUI is allowed before
8039 enabling it.
8040 * tui/tui.h (tui_allowed_p): Declare.
8041
98e5a990
TT
80422010-03-30 Ozkan Sezer <sezeroz@gmail.com>
8043
8044 * serial.h: Include winsock2.h before windows.h.
8045
c8d5aac9
L
80462010-03-30 H.J. Lu <hongjiu.lu@intel.com>
8047
8048 * NEWS: Mention xmlRegisters= in qSupported packet.
8049
8050 * i386-tdep.c: Include "remote.h".
8051 (_initialize_i386_tdep): Call register_remote_support_xml.
8052
8053 * remote.c (remote_support_xml): New.
8054 (register_remote_support_xml): Likewise.
8055 (remote_query_supported_append): Likewise.
8056 (remote_query_supported): Support remote_support_xml.
8057
8058 * remote.h (register_remote_support_xml): New.
8059
76a2b958
SS
80602010-03-29 Stan Shebs <stan@codesourcery.com>
8061
42e08e69
SS
8062 * tracepoint.c (trace_find_line_command): Remove dead code.
8063
409873ef
SS
8064 * tracepoint.h (struct uploaded_string): New struct.
8065 (struct uploaded_tp): New fields for source strings.
8066 * breakpoint.c (this_utp, next_cmd): New globals.
8067 (read_uploaded_action): New function.
8068 (create_tracepoint_from_upload): Fill in more parts
8069 of a tracepoint.
8070 * tracepoint.c (encode_source_string): New function.
8071 (trace_save): Write out source strings, fix error checks.
8072 (parse_tracepoint_definition): Add source string parsing.
8073 * remote.c (PACKET_TracepointSource): New packet type.
8074 (remote_download_command_source): New function.
8075 (remote_download_tracepoint): Download source pieces also.
8076 (_initialize_remote): Add packet config command.
8077
a0405854
SS
8078 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
8079 expression handler.
8080
76a2b958
SS
8081 * tracepoint.c (start_tracing): Check tracepoints before sending
8082 commands to target, don't start if all tracepoints disabled.
8083
d350db38
PA
80842010-03-28 Pedro Alves <pedro@codesourcery.com>
8085
12f2d601 8086 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 8087
8b9b7ef8
SS
80882010-03-26 Stan Shebs <stan@codesourcery.com>
8089
8090 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
8091
9766ced4
SS
80922010-03-26 Tom Tromey <tromey@redhat.com>
8093
8094 * breakpoint.c (commands_command_1): Duplicate 'arg'.
8095
059acae7
UW
80962010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8097
8098 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
8099 (skip_prologue_sal): Remove local definition.
8100 (resolve_sal_pc): Remove now unnecessary code.
8101 * linespec.c (minsym_found): Call skip_prologue_sal.
8102 * symtab.c (find_function_start_pc): Remove.
8103 (find_function_start_sal): Extract prologue skipping into ...
8104 (skip_prologue_sal): ... this new function. Handle code both
8105 with and without debug info. Respect SAL's explicit_pc and
8106 explicit_line flags. Inline old find_function_start_pc.
8107 * symtab.h (find_function_start_pc): Remove.
8108 (skip_prologue_sal): Add prototype.
8109
4a811a97
UW
81102010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8111
8112 * dwarf2read.c (read_func_scope): Also scan specification DIEs
8113 for DW_TAG_imported_module children.
8114
907af001
UW
81152010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8116
8117 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
8118 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
8119 * completer.c (add_struct_fields): Fix inverted logic.
8120
dde2d684
UW
81212010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8122
8123 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
8124
a609a0c8
PA
81252010-03-26 Pedro Alves <pedro@codesourcery.com>
8126
8127 * tracepoint.c (current_trace_status): Don't make sure error_desc
8128 is non-NULL here.
8129 (parse_trace_status): Release a previous error_desc string, and
8130 set it to NULL by default. If stop reason is tracepoint_error,
8131 make sure error_desc is not left NULL.
8132
610197fd
PA
81332010-03-26 Pedro Alves <pedro@codesourcery.com>
8134
8135 * tracepoint.c (trace_save): Remove X from tracepoint error
8136 description.
8137
99b5e152
PA
81382010-03-26 Pedro Alves <pedro@codesourcery.com>
8139
8140 * tracepoint.c (parse_trace_status): Don't allow plain strings in
8141 the terror description. Don't expect an X prefix.
8142
6c28cbf2
SS
81432010-03-25 Stan Shebs <stan@codesourcery.com>
8144
8145 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
8146 (struct trace_status): New field error_desc.
8147 * tracepoint.c (stop_reason_names): Add terror.
8148 (current_trace_status): Ensure non-NULL error description.
8149 (trace_status_command): Add error report.
8150 (trace_status_mi): Ditto.
8151 (trace_save): Add special case for error description.
8152 (parse_trace_status): Add case for errors.
8153
418835cc
KS
81542010-03-25 Keith Seitz <keiths@redhat.com>
8155
8156 * dwarf2read.c (read_subroutine_type): If the compilation unit
8157 language is Java, mark any formal parameter named "this" as
8158 artificial (GCC/43521).
8159 (dwarf2_name): Add special handling for Java constructors.
8160
aa7d318d
TT
81612010-03-25 Tom Tromey <tromey@redhat.com>
8162
8163 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
8164 * infrun.c (handle_inferior_event): Change initialization of
8165 stop_stack_dummy.
8166 (handle_inferior_event): Change assignment to stop_stack_dummy.
8167 (normal_stop): Update use of stop_stack_dummy.
8168 (struct inferior_status) <stop_stack_dummy>: Change type.
8169 * inferior.h (stop_stack_dummy): Update.
8170 * infcmd.c (stop_stack_dummy): Change type.
8171 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
8172 function.
8173 (call_function_by_hand): Call set_std_terminate_breakpoint.
8174 Rewrite std::terminate handling.
8175 * breakpoint.h (enum bptype) <bp_std_terminate,
8176 bp_std_terminate_master>: New.
8177 (enum stop_stack_kind): New.
8178 (struct bpstat_what) <call_dummy>: Change type.
8179 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
8180 Declare.
8181 * breakpoint.c (create_std_terminate_master_breakpoint): New
8182 function.
8183 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
8184 Call create_std_terminate_master_breakpoint.
8185 (print_it_typical): Handle new breakpoint kinds.
8186 (bpstat_stop_status): Handle bp_std_terminate_master.
8187 (bpstat_what): Correctly set call_dummy field. Handle
8188 bp_std_terminate_master and bp_std_terminate.
8189 (print_one_breakpoint_location): Update.
8190 (allocate_bp_location): Update.
8191 (set_std_terminate_breakpoint): New function.
8192 (delete_std_terminate_breakpoint): Likewise.
8193 (create_thread_event_breakpoint): Update.
8194 (delete_command): Update.
8195 (breakpoint_re_set_one): Update.
8196 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
8197
82ccf5a5
JK
81982010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8199
8200 * symfile.c (build_section_addr_info_from_bfd): New.
8201 (build_section_addr_info_from_objfile): Base it on
8202 build_section_addr_info_from_bfd.
8203 (addrs_section_compar, addrs_section_sort): New.
8204 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
8205 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
8206 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
8207
737c4c52
MS
82082010-03-24 Michael Snyder <msnyder@localhost.localdomain>
8209
8d95cc3b 8210 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
8211 Remove unused local variable.
8212
95a42b64
TT
82132010-03-24 Tom Tromey <tromey@redhat.com>
8214
8215 PR breakpoints/9352:
8216 * NEWS: Mention changes to `commands' and `rbreak'.
8217 * symtab.c (do_end_rbreak_breakpoints): New function.
8218 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
8219 end_rbreak_breakpoints.
8220 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
8221 (set_breakpoint_count): Likewise. Clear last_was_multi.
8222 (multi_start, multi_end, last_was_multi): New globals.
8223 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
8224 functions.
8225 (struct commands_info): New
8226 (do_map_commands_command): New function.
8227 (commands_command_1): New function.
8228 (commands_command): Use it.
8229 (commands_from_control_command): Likewise.
8230 (do_delete_breakpoint): New function.
8231 (delete_command): Use it.
8232 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
8233 (do_map_disable_breakpoint): New function.
8234 (disable_command): Use it.
8235 (do_map_enable_breakpoint): New function.
8236 (enable_command): Use it.
8237 (enable_once_breakpoint): Add argument.
8238 (enable_once_command): Update.
8239 (enable_delete_breakpoint): Add argument.
8240 (enable_delete_command): Update.
8241 (break_command_really): Set last_was_multi when needed.
8242 (check_tracepoint_command): Fix formatting.
8243 (validate_commands_for_breakpoint): New function.
8244 (breakpoint_set_commands): Use it.
8245 (tracepoint_save_command): Update.
8246 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
8247 Declare.
8248
9add0f1b
TT
82492010-03-24 Tom Tromey <tromey@redhat.com>
8250
8251 * breakpoint.h (struct counted_command_line): New struct.
8252 (struct breakpoint) <commands>: Change type.
8253 (struct bpstats) <commands>: Change type.
8254 <commands_left>: New field.
8255 * breakpoint.c (alloc_counted_command_line): New function.
8256 (incref_counted_command_line): Likewise.
8257 (decref_counted_command_line): Likewise.
8258 (do_cleanup_counted_command_line): Likewise.
8259 (make_cleanup_decref_counted_command_line): Likewise.
8260 (breakpoint_set_commands): Use decref_counted_command_line and
8261 alloc_counted_command_line.
8262 (commands_command): Don't error if breakpoint commands are
8263 executing.
8264 (commands_from_control_command): Likewise.
8265 (bpstat_free): Update.
8266 (bpstat_copy): Likewise.
8267 (bpstat_clear_actions): Likewise.
8268 (bpstat_do_actions_1): Likewise.
8269 (bpstat_stop_status): Likewise.
8270 (print_one_breakpoint_location): Likewise.
8271 (delete_breakpoint): Likewise.
8272 (bpstat_alloc): Initialize new field.
8273 (tracepoint_save_command): Update.
8274 * tracepoint.c (encode_actions): Update.
8275 (trace_dump_command): Update.
8276
a6c727b2
DJ
82772010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8278
8279 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
8280 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
8281 (read_structure_type): For RealView, set TYPE_STUB on structures with
8282 no byte size and no children.
8283 (read_subroutine_type): Mark functions as prototyped by default.
8284 * symtab.c (producer_is_realview): New function.
8285 * symtab.h (expand_line_sal): Fix declaration formatting.
8286 (producer_is_realview): Declare.
8287
0d39a070
DJ
82882010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8289
8290 * arm-tdep.c (skip_prologue_function): New function.
8291 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
8292 (thumb_analyze_prologue): Document return value. Recognize more
8293 Thumb instructions, skippable calls, and some Thumb-2 instructions.
8294 Add debug output.
8295 (arm_skip_prologue): Remove call dummy check. Check the prologue
8296 for non-GNU compilers.
8297 (arm_instruction_changes_pc): New function.
8298 (arm_analyze_prologue): New function, broken out from
8299 arm_scan_prologue. Recognize more ARM instructions and skippable
8300 calls. Update comments. Handle NULL cache. Return the address
8301 of the first unrecognized instruction. Do not skip past other
8302 instructions which change control flow. Add debug output.
8303 (arm_scan_prologue): Use arm_analyze_prologue.
8304 (ARM_PC_32): Delete.
8305 (shifted_reg_val): Simplify ARM_PC_32 check.
8306
4baf5cf4
VP
83072010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8308
8309 * tracepoint.c (tvariables_info_1): Actually compute
8310 the number of rows in the result.
8311
4a5e7a5b
PA
83122010-03-24 Pedro Alves <pedro@codesourcery.com>
8313
8314 * remote.c (crc32): Constify `buf' parameter.
8315 (remote_verify_memory): New, abstracted out from...
8316 (compare_sections_command): ... this. Remove hardcoded target
8317 checks.
8318 (init_remote_ops): Install remote_verify_memory.
8319 * target.c (target_verify_memory): New.
8320 * target.h (struct target_ops) <to_verify_memory>: New field.
8321 (target_verify_memory): Declare.
8322
011aacb0
VP
83232010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8324
8325 Implement -trace-save.
8326
8327 * mi-cmds.h (mi_cmds_trace_save): Declare.
8328 * mi-cmds.c (mi_cmds): Register -trace-save.
8329 * mi/mi-main.c (mi_cmd_trace_save): New.
8330 * remote.c (remote_save_trace_data): Take const parameter.
8331 * target.h (struct target_ops::to_save_trace_data): Take
8332 const parameter.
8333 * target.c (update_current_target): Adjust to the above.
8334 * tracepoint.c (trave_save): New, extracted from
8335 (trace_save_command): ...this.
8336 (tfile_trace_find): Remove message that is unnecessary now
8337 that 'tfind' reports found frame.
8338 * tracepoint.h (trace_save): Declare.
8339
f197e0f1
VP
83402010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8341
8342 Implement -trace-find.
8343
8344 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
8345 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
8346 * mi/mi-main.c (mi_cmd_trace_find): New.
8347 * target.h (struct target_ops): Document to_trace_find.
8348 * tracepoint.h (tfind_1): Declare.
8349 * tracepoint.c (finish_tfind_command): Rename to...
8350 (tfind_1): ...this.
8351 * remote.c (remote_trace_find): Return -1 if target say
8352 there's no frame. Improve error diagnostics.
8353
40e1c229
VP
83542010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8355
8356 -trace-define-variable and -trace-list-variables.
8357
8358 * tracepoint.c (create_trace_state_variable): Make
8359 private copy of name, as opposed to assuming the
8360 pointer lives forever.
8361 (tvariables_info_1): New.
8362 (tvariables_info): Use the above.
8363 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
8364 Declare.
8365 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
8366 and -trace-list-variables.
8367 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
8368 (mi_cmd_trace_list_variables): New.
8369 * mi/mi-main.c (mi_cmd_trace_define_variable)
8370 (mi_cmd_trace_list_variables): New.
8371
9b4c786c
VP
83722010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8373
8374 Implement -break-passcount.
8375
8376 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
8377 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
8378 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
8379
f224b49d
VP
83802010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8381
8382 -trace-start/-trace-end/-trace-status.
8383
8384 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
8385 and -trace-stop.
8386 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
8387 (mi_cmd_trace_stop): Declare.
8388 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
8389 (mi_cmd_trace_stop): New.
8390 * tracepoint.c (start_tracing): New, extracted from...
8391 (trace_start_command): ...this.
8392 (trace_status_mi): New.
8393 * tracepoint.h (struct trace_status): Document
8394 stopping_tracepoint.
8395 (start_tracing, stop_tracing, trace_status_mi): Declare.
8396
6534d786
VP
83972010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8398
8399 Implement creating tracepoints with -break-insert.
8400
8401 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
8402 to mean that tracepoint should be created.
8403
51661e93
VP
84042010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8405
8406 * breakpoint.c (check_no_tracepoint_commands): Use
8407 current spelling of 'teval'.
8408
a7bdde9e
VP
84092010-03-24 Vladimir Prus <vladimir@codesourcery.com>
8410
8411 Unify actions and commands
8412
8413 * defs.h (read_command_lines, read_command_lines_1): New
8414 parameters validator and closure.
8415 * tracepoint.h (struct action_line): Remove.
8416 * breakpoint.h (struct breakpoint): Remove the 'actions'
8417 field.
8418 * defs.h (enum command_control_type): New value
8419 while_stepping_control.
8420 (struct command_line): Add comments.
8421 * breakpoint.c (breakoint_is_tracepoint): New.
8422 (breakpoint_set_commands): For tracepoints,
8423 verify the commands are permissible.
8424 (check_tracepoint_commands): New.
8425 (commands_command): Require that each new line is validated using
8426 check_tracepoint_command, if we set commands for a tracepoint.
8427 (create_tracepoint_from_upload): Likewise.
8428 (print_one_breakpoint_location): Remove the code to print
8429 actions specifically.
8430 (tracepoint_save_command): Relay to print_command_lines.
8431 * cli/cli-script.c (process_next_line): New parameters validator
8432 and closure. Handle 'while-stepping'. Call validator if not null.
8433 (read_command_lines, read_command_lines1): Likewise.
8434 (recurse_read_control_structure): New parameters validator and
8435 closure. Handle while_stepping_control.
8436 (print_command_lines): Handle while-stepping.
8437 (get_command_line, define_command, document_command): Adjust.
8438 * remote.c (remote_download_tracepoint): Adjust.
8439 * tracepoint.c (make_cleanup_free_actions, read_actions)
8440 (free_actions, do_free_actions_cleanup): Remove.
8441 (trace_actions_command): Use read_command_lines.
8442 (validate_actionline): Use error in one place.
8443 (encode_actions_1): New, extracted from...
8444 (encode_actions): ...this. Also use cleanups for exception
8445 safety.
8446 (trace_dump_command): Adjust.
8447 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
8448 it's tracepoint.
8449
64e3cf3d
MF
84502010-03-23 Mike Frysinger <vapier@gentoo.org>
8451
8452 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
8453
52e9fde8
SS
84542010-03-22 Stan Shebs <stan@codesourcery.com>
8455
8456 * value.c (value_static_field): Be lazy about the field's value.
8457
508ccb1f
TT
84582010-03-22 Reid Kleckner <reid@kleckner.net>
8459
8460 PR gdb/11094
8461 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
8462 bp_jit_event.
8463 (disable_breakpoints_in_shlibs): Likewise.
8464
acebe513
UW
84652010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8466
8467 * dwarf2read.c (partial_die_parent_scope): Work around buggy
8468 GCC 4.1 debug info generation (GCC PR c++/28460).
8469 (determine_prefix): Likewise.
8470
957b8b5a
DJ
84712010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
8472
8473 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
8474 get_current_arch.
8475 * tui/tui-layout.c (extract_display_start_addr): Likewise.
8476
3b11a015
SS
84772010-03-19 Stan Shebs <stan@codesourcery.com>
8478
8479 * ax-gdb.c (gen_fetch): Handle bool.
8480 (gen_usual_unary): Ditto.
8481 (gen_cast): Ditto.
8482 (gen_equal): New function.
8483 (gen_less): New function.
8484 (gen_expr_binop_rest): Call them, also return integer type from
8485 logical operations.
8486 (gen_expr): Ditto.
8487
20781792
TT
84882010-03-19 Tom Tromey <tromey@redhat.com>
8489
8490 * jv-lang.c (jv_dynamics_objfile_data_key)
8491 (jv_type_objfile_data_key): New globals.
8492 (class_symtab): Move earlier.
8493 (jv_per_objfile_free): New function.
8494 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
8495 parameter.
8496 Remove ancient #if 1.
8497 (add_class_symbol): Remove redundant declaration.
8498 (java_lookup_class): Use alloc_type, not alloc_type_arch.
8499 (java_link_class_type): Mark as static. Update.
8500 (jv_clear_object_type): New function.
8501 (set_java_object_type): Likewise.
8502 (get_java_object_type): Use set_java_object_type.
8503 (is_object_type): Likewise.
8504 (_initialize_java_language): Register new objfile keys.
8505 (get_java_class_symtab): Add 'gdbarch' parameter.
8506 (add_class_symtab_symbol): Update.
8507 (type_from_class): Update.
8508
cf3e25ca
SS
85092010-03-19 Stan Shebs <stan@codesourcery.com>
8510
8d95cc3b 8511 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 8512
f1ae44c9 85132010-03-18 Joel Brobecker <brobecker@adacore.com>
8514
8515 GDB 7.1 released.
8516
4daf5ac0
SS
85172010-03-18 Stan Shebs <stan@codesourcery.com>
8518 Pedro Alves <pedro@codesourcery.com>
8519
8520 * target.h (struct target_ops): New method
8521 to_set_circular_trace_buffer.
8522 (target_set_circular_trace_buffer): New macro.
8523 * target.c (update_current_target): Add
8524 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
8525 default behavior.
8526 * remote.c (remote_set_circular_trace_buffer): New function.
8527 (init_remote_ops): Add it to vector.
8528 * tracepoint.h (struct trace_status): New field traceframes_created,
8529 change buffer_size and buffer_free to int.
8530 * tracepoint.c (circular_trace_buffer): New global.
8531 (start_tracing): Send values of disconnected tracing and circular
8532 trace buffer settings.
8533 (set_circular_trace_buffer): New function.
8534 (parse_trace_state): Handle total space and frames created.
8535 (trace_status_command): Display total space and total frames
8536 created.
8537 (trace_save): Write out new status values.
8538 (parse_trace_status): Set traceframe_count, traceframes_created,
8539 buffer_free and buffer_size to -1 by default.
8540 (_initialize_tracepoint): New setshow for circular-trace-buffer.
8541 * NEWS: Mention the circular trace buffer option.
8542
40c549d6
TT
85432010-03-18 Tom Tromey <tromey@redhat.com>
8544
8545 * infcmd.c (finish_command_continuation): Wrap print_return_value
8546 in TRY_CATCH.
8547
e8d05480
JB
85482010-03-18 Joel Brobecker <brobecker@adacore.com>
8549
8550 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
8551 DIE has a name before creating the associated partial symbol.
8552 (read_func_scope): Emit a complaint if the subprogram does not
8553 have a name or when we can't extract the subprogram PC bounds.
8554
441b986a
UW
85552010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
8556
8557 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
8558 instead of selected frame architecture.
8559
4247603b
PA
85602010-03-18 Pedro Alves <pedro@codesourcery.com>
8561
8562 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
8563 a valid selected thread, and that it is not running.
8564 (advance_command): Ditto.
8565 (finish_command): Ditto.
8566
400c6af0
SS
85672010-03-17 Stan Shebs <stan@codesourcery.com>
8568
3a96536b
SS
8569 * ax-gdb.c (require_rvalue): Disallow non-scalars.
8570
573cda03
SS
8571 * infcall.c: Include tracepoint.h.
8572 (call_function_by_hand): Disallow calls in tfind mode.
8573 * infcmd.c: Include tracepoint.h.
8574 (ensure_not_tfind_mode): New function.
8575 (continue_1): Call it.
8576 (step_1) Ditto.
8577 (jump_command): Ditto.
8578 (signal_command): Ditto.
8579 (advance_command): Ditto.
8580 (until_command): Ditto.
8581 (finish_command): Ditto.
8582 * tracepoint.h (disconnect_or_stop_tracing): Declare.
8583
400c6af0
SS
8584 * ax-gdb.h (struct axs_value): New field optimized_out.
8585 (gen_trace_for_var): Add gdbarch argument.
8586 * ax-gdb.c (gen_trace_static_fields): New function.
8587 (gen_traced_pop): Call it, add gdbarch argument.
8588 (gen_trace_for_expr): Update call to it.
8589 (gen_trace_for_var): Ditto, and report optimized-out variables.
8590 (gen_struct_ref_recursive): Check for optimized-out value.
8591 (gen_struct_elt_for_reference): Ditto.
8592 (gen_static_field): Pass gdbarch instead of expression, assume
8593 optimization if field not found.
8594 (gen_var_ref): Set the optimized_out flag.
8595 (gen_expr): Error on optimized-out variable.
8596 * tracepoint.c (collect_symbol): Handle struct-valued vars as
8597 expressions, skip optimized-out variables with computed locations.
8598 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
8599 erroring out if location expression missing.
8600 (loclist_tracepoint_var_ref): Don't error out here.
8601
a3b2a86b
TT
86022010-03-17 Tom Tromey <tromey@redhat.com>
8603
8604 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
8605 DWARF data is available.
8606
38963c97
DJ
86072010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
8608
8609 * symfile.c (generic_load): Reset breakpoints after loading.
8610
ddabfc73
TT
86112010-03-17 Tom Tromey <tromey@redhat.com>
8612
8613 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
8614
d8c09fb5
JK
86152010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8616
8617 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
8618 create_breakpoint call, adjust the parameters.
8619
bbb0eef6
JK
86202010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8621 Chandru <chandru@in.ibm.com>
8622
8623 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
8624 * valarith.c (value_subscripted_rvalue): Suppress error if
8625 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
8626
46956e39
HZ
86272010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
8628
8629 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
8630
b8d088ac
JB
86312010-03-16 Joel Brobecker <brobecker@adacore.com>
8632
8633 * ada-tasks.c (task_command_1): Check that the task ptid is valid
8634 before doing the associated thread switch.
8635
322be962
DJ
86362010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
8637
8638 * MAINTAINERS: Update my email address.
8639
8cdf0e15
VP
86402010-03-16 Vladimir Prus <vladimir@codesourcery.com>
8641
8642 Simplify MI breakpoint setting.
8643
8644 * breakpoint.c (break_command_really): Make nonstatic and
8645 rename to...
8646 (create_breakpoint): ...this. Rename prior function by this name
8647 to...
8648 (create_breakpoint_sal): ...this.
8649 (create_breakpoints): Rename to...
8650 (create_breakpoints_sal): ...this.
8651 (set_breakpoint): Remove.
8652 * breakpoint.h: Adjust to above changes.
8653 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
8654
b6e7192f
SS
86552010-03-15 Stan Shebs <stan@codesourcery.com>
8656
8657 * ax-gdb.c: Include cp-support.h.
8658 (find_field): Remove.
8659 (gen_primitive_field): New function.
8660 (gen_struct_ref_recursive): New function.
8661 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
8662 of find_field.
8663 (gen_static_field): New function.
8664 (gen_struct_elt_for_reference): New.
8665 (gen_namespace_elt): New.
8666 (gen_maybe_namespace_elt): New.
8667 (gen_aggregate_elt_ref): New.
8668 (gen_expr): Add OP_SCOPE, display opcode name in error message.
8669
1054b214
TT
86702010-03-15 Tom Tromey <tromey@redhat.com>
8671
8672 * dwarf2read.c (die_needs_namespace): Also return 0 for
8673 DW_TAG_subprogram.
8674
13387711
SW
86752010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
8676
8677 PR c++/7936:
8678 * cp-support.h: Added char *declaration element to using_direct
8679 data struct.
8680 (cp_add_using): Added char *declaration argument.
8681 (cp_add_using_directive): Ditto.
8682 (cp_lookup_symbol_imports): made extern.
8683 * cp-namespace.c: Updated with the above changes.
8684 * dwarf2read.c (read_import_statement): Ditto.
8685 (read_namespace): Ditto.
8686 (read_import_statement): Support import declarations.
8687 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
8688 declarations.
8689 Added support for 'declaration_only' search.
8690 (cp_lookup_symbol_namespace): Attempt to search for the name as
8691 is before consideration of imports.
8692 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
8693 search at every block level search.
8694 Now takes language argument.
8695 (lookup_symbol_aux): Updated.
8696
6e31430b
TT
86972010-03-15 Tom Tromey <tromey@redhat.com>
8698
8699 * c-exp.y (name_not_typename): Add 'operator' clause.
8700
4dea3bb7 87012010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
8702
8703 * configure.ac: Exit if ${gdb_target_obs}" is not set.
8704 * configure: Regenerate.
8705
4d9743af
JK
87062010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8707
8708 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
8709 and ".sdynbss". Update the comment.
8710
f75150fe
JZ
87112010-03-15 Jie Zhang <jie@codesourcery.com>
8712
8713 * MAINTAINERS: Update my email address.
8714
3c13bc11
DJ
87152010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8716
8717 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
8718
43484f03
DJ
87192010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
8720
8721 * charset.c [USE_WIN32API]: Include <windows.h>.
8722 (_initialize_charset): Correct type of w32_host_default_charset.
8723
5f25d77d
PA
87242010-03-14 Pedro Alves <pedro@codesourcery.com>
8725
8726 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
8727
1c809c68
TT
87282010-03-12 Tom Tromey <tromey@redhat.com>
8729
8730 PR c++/9708:
8731 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
8732 in a lexical block does not need a namespace.
8733 (new_symbol) <DW_TAG_variable>: Put extern variables on
8734 list_in_scope in all cases.
8735
948103cf
SS
87362010-03-12 Stan Shebs <stan@codesourcery.com>
8737
8738 * ax-gdb.c (gen_expr): Add shift expressions.
8739 (gen_expr_binop_rest): Ditto.
8740
00ae8fef
SW
87412010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
8742
8743 * buildsym.c (finish_block): Reset using_directives pointer
8744 after block initialization.
8745
9cad29ac
L
87462010-03-12 H.J. Lu <hongjiu.lu@intel.com>
8747
8748 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
8749 * i386-tdep.c (i386_word_names): Likewise.
8750
2f4d8875
PA
87512010-03-12 Pedro Alves <pedro@codesourcery.com>
8752
8753 * target.c (memory_xfer_partial): Don't use the stack cache if
8754 inspecting trace frames.
8755 * tracepoint.c (finish_tfind_command): Invalidate the target
8756 dcache.
8757
ccf26247
JK
87582010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8759
8760 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
8761 for the PIC displacement, print also the displacement value.
8762 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
8763
477c84a7
KB
87642010-03-10 Kevin Buettner <kevinb@redhat.com>
8765
8766 * remote-mips.c (close_ports, mips_initialize_cleanups)
8767 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
8768 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
8769 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
8770 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
8771 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8772 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8773 comments describing each of these functions.
8774 (mips_enter_debug, mips_exit_debug, common_open)
8775 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8776 blank line after the comment describing the function.
8777
01c30d6e
JK
87782010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8779
8780 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8781 parameter displacementp. Update comment.
8782 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8783 element exists. Return if svr4_exec_displacement was not successful.
8784 Update comment.
8785
09919ac2
JK
87862010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8787 Daniel Jacobowitz <dan@codesourcery.com>
8788
8789 * solib-svr4.c (read_program_header): Support type == -1 to read
8790 all program headers.
8791 (read_program_headers_from_bfd): New function.
8792 (svr4_static_exec_displacement): Remove and move the comment ...
8793 (svr4_exec_displacement): ... here. Remove variable found. New
8794 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8795 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8796 targets using read_program_headers_from_bfd. Remove the call of
8797 svr4_static_exec_displacement.
8798
d146bf1e
TT
87992010-03-10 Tom Tromey <tromey@redhat.com>
8800
8801 * dwarf2read.c (struct pubnames_header): Remove.
8802 (_PUBNAMES_HEADER): Remove.
8803 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8804 (struct aranges_header): Remove.
8805 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8806 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8807 (PUBNAMES_SECTION): Remove.
8808 (ARANGES_SECTION): Remove.
8809 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8810 (dwarf2_build_psymtabs): Remove dead code.
8811 (dwarf2_build_psymtabs_easy): Remove.
8812
be391dca
TT
88132010-03-10 Tom Tromey <tromey@redhat.com>
8814
8815 * elfread.c (elf_symfile_read): Don't call
8816 dwarf2_build_frame_info.
8817 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8818 (struct dwarf2_per_objfile) <objfile>: New field.
8819 (dwarf2_has_info): Now idempotent. Set objfile field.
8820 (dwarf2_read_section): Check and set readin field. Call
8821 posix_madvise.
8822 (dwarf2_build_psymtabs): Don't read all sections.
8823 (read_type_comp_unit_head): Read types section.
8824 (create_debug_types_hash_table): Likewise.
8825 (init_cu_die_reader): Add asserts.
8826 (process_type_comp_unit): Add assert.
8827 (dwarf2_build_psymtabs_hard): Read info section.
8828 (load_partial_comp_unit): Add assert.
8829 (create_all_comp_units): Read info section.
8830 (load_full_comp_unit): Likewise.
8831 (dwarf2_ranges_read): Read ranges section.
8832 (dwarf2_record_block_ranges): Add assert.
8833 (dwarf2_read_abbrevs): Read abbrev section.
8834 (read_indirect_string): Read str section.
8835 (dwarf_decode_line_header): Read line section.
8836 (read_signatured_type_at_offset): Read types section.
8837 (dwarf_decode_macros): Read macinfo section.
8838 (dwarf2_symbol_mark_computed): Read loc section.
8839 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8840 dwarf2_build_frame_info.
8841 (dwarf2_build_frame_info): Unconditionally set
8842 dwarf2_frame_objfile_data on the objfile.
8843 * configure.ac: Check for posix_madvise.
8844 * config.in, configure: Rebuild.
8845
ccefe4c4
TT
88462010-03-10 Tom Tromey <tromey@redhat.com>
8847
e38df1d0
TT
8848 * xcoffread.c (xcoff_start_psymtab): Update.
8849 (xcoff_end_psymtab): Update.
8850 * psymtab.c (allocate_psymtab): Remove dead code.
8851 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8852 void*.
8853 * mdebugread.c (parse_partial_symbols): Update.
8854 (new_psymtab): Likewise.
8855 * dwarf2read.c (process_psymtab_comp_unit): Update.
8856 (psymtab_to_symtab_1): Update.
8857 * dbxread.c (start_psymtab): Update.
8858 (end_psymtab): Likewise.
8859
be391dca 88602010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8861
ccefe4c4
TT
8862 * xcoffread.c: Include psymtab.h.
8863 (xcoff_sym_fns): Update.
8864 * symtab.h (struct partial_symbol): Remove.
8865 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8866 (struct partial_symtab): Remove.
8867 (PSYMTAB_TO_SYMTAB): Remove.
8868 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8869 (find_pc_sect_psymtab): Remove.
8870 (find_pc_sect_symtab_via_partial): Declare.
8871 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8872 (find_main_psymtab): Remove.
8873 (find_main_filename): Declare.
8874 (fixup_psymbol_section): Remove.
8875 (fixup_section): Declare.
8876 * symtab.c: Include psymtab.h.
8877 (lookup_symtab): Use lookup_symtab method.
8878 (lookup_partial_symtab): Remove.
8879 (find_pc_sect_psymtab_closer): Remove.
8880 (find_pc_sect_psymtab): Remove.
8881 (find_pc_sect_symtab_via_partial): New function.
8882 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8883 (fixup_section): No longer static.
8884 (fixup_psymbol_section): Remove.
8885 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8886 (lookup_global_symbol_from_objfile): Likewise.
8887 (lookup_symbol_aux_psymtabs): Remove.
8888 (lookup_symbol_aux_quick): New function.
8889 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8890 (lookup_partial_symbol): Remove.
8891 (basic_lookup_transparent_type_quick): New function.
8892 (basic_lookup_transparent_type): Use it.
8893 (find_main_psymtab): Remove.
8894 (find_main_filename): New function.
8895 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8896 (find_line_symtab): Use expand_symtabs_with_filename method.
8897 (output_partial_symbol_filename): New function.
8898 (sources_info): Use map_partial_symbol_filenames.
8899 (struct search_symbols_data): New type.
8900 (search_symbols_file_matches): New function.
8901 (search_symbols_name_matches): Likewise.
8902 (search_symbols): Use expand_symtabs_matching method.
8903 (struct add_name_data): Rename from add_macro_name_data.
8904 (add_macro_name): Update.
8905 (add_partial_symbol_name): New function.
8906 (default_make_symbol_completion_list): Use
8907 map_partial_symbol_names.
8908 (struct add_partial_symbol_name): New type.
8909 (maybe_add_partial_symtab_filename): New function.
8910 (make_source_files_completion_list): Use
8911 map_partial_symbol_filenames.
8912 (expand_line_sal): Use expand_symtabs_with_filename method.
8913 * symmisc.c: Include psymtab.h.
8914 (print_objfile_statistics): Use print_stats method.
8915 (dump_objfile): Use dump method.
8916 (dump_psymtab, maintenance_print_psymbols)
8917 (maintenance_info_psymtabs, maintenance_check_symtabs)
8918 (extend_psymbol_list): Remove.
8919 * symfile.h (struct quick_symbol_functions): New struct.
8920 (struct sym_fns) <qf>: New field.
8921 (sort_pst_symbols): Remove.
8922 (increment_reading_symtab): Declare.
8923 * symfile.c: Include psymtab.h.
8924 (compare_psymbols, sort_pst_symbols): Remove.
8925 (psymtab_to_symtab): Remove.
8926 (increment_reading_symtab): New function.
8927 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8928 method.
8929 (set_initial_language): Use find_main_filename.
8930 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8931 (free_named_symtabs): Remove unused code.
8932 (start_psymtab_common, add_psymbol_to_bcache)
8933 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8934 Remove.
8935 * stack.c: Include psymtab.h, symfile.h.
8936 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8937 * source.h (psymtab_to_fullname): Don't declare.
8938 * source.c: Include psymtab.h.
8939 (select_source_symtab): Use find_last_source_symtab method.
8940 (forget_cached_source_info): Use forget_cached_source_info
8941 method.
8942 (find_and_open_source): No longer static.
8943 (psymtab_to_fullname): Remove.
8944 * somread.c: Include psymtab.h.
8945 (som_sym_fns): Update.
8946 * psympriv.h: New file.
8947 * psymtab.h: New file.
8948 * psymtab.c: New file.
8949 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8950 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8951 * objfiles.c: Include psymtab.h.
8952 (objfile_relocate1): Use relocate method.
8953 (objfile_has_partial_symbols): Use has_symbols method.
8954 * mipsread.c: Include psymtab.h.
8955 (ecoff_sym_fns): Update.
8956 * mi/mi-cmd-file.c: Include psymtab.h.
8957 (print_partial_file_name): New function.
8958 (mi_cmd_file_list_exec_source_files): Use
8959 map_partial_symbol_filenames.
8960 * mdebugread.c: Include psympriv.h.
8961 * machoread.c: Include psympriv.h.
8962 (macho_sym_fns): Update.
8963 * m2-exp.y (yylex): Use lookup_symtab.
8964 * elfread.c: Include psympriv.h.
8965 (elf_sym_fns): Update.
8966 * dwarf2read.c: Include psympriv.h.
8967 * dbxread.c: Include psympriv.h.
8968 (aout_sym_fns): Update.
8969 * cp-support.c: Include psymtab.h.
8970 (read_in_psymtabs): Remove.
8971 (make_symbol_overload_list_qualified): Use
8972 expand_symtabs_for_function method.
8973 * coffread.c: Include psympriv.h.
8974 (coff_sym_fns): Update.
8975 * blockframe.c: Include psymtab.h.
8976 (find_pc_partial_function): Use find_pc_sect_symtab method.
8977 * ada-lang.h (ada_update_initial_language): Update.
8978 * ada-lang.c: Include psymtab.h.
8979 (ada_update_initial_language): Remove 'main_pst' argument.
8980 (ada_lookup_partial_symbol): Remove.
8981 (struct ada_psym_data): New type.
8982 (ada_add_psyms): New function.
8983 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8984 (struct add_partial_datum): New type.
8985 (ada_add_partial_symbol_completions): New function.
8986 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8987 (ada_exception_support_info_sniffer): Update.
8988 * Makefile.in (SFILES): Add psymtab.c.
8989 (COMMON_OBS): Add psymtab.o.
8990 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8991
7d8500b7
PM
89922010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8993
8994 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8995
c0cc3a76
SW
89962010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8997
8998 PR C++/11236:
8999 * cp-namespace.c (cp_add_using): Deleted.
9000 (cp_add_using_directive): Use obstack allocations.
9001 Merged the function cp_add_using into this one.
9002 Added 'struct obstack *' argument.
9003 (cp_scan_for_anonymous_namespaces): Updated.
9004 * cp-support.h: Updated.
9005 * dwarf2read.c (read_import_statement): Updated.
9006 (read_namespace): Updated.
9007
452fa064
CF
90082010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
9009
9010 * windows-nat.c (cygwin_conv_path): Remove old macro.
9011
60e1c644
PA
90122010-03-10 Pedro Alves <pedro@codesourcery.com>
9013
9014 * breakpoint.c (condition_command): Handle watchpoint conditions.
9015 (is_hardware_watchpoint): Add comment.
9016 (is_watchpoint): New.
9017 (update_watchpoint): Don't reparse the watchpoint's condition
9018 unless necessary.
9019 (WP_IGNORE): New.
9020 (watchpoint_check): Use it.
9021 (bpstat_check_watchpoint): Handle it.
9022 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
9023 conditions in a frame where it makes sense.
9024 (watch_command_1): Store the innermost block of the condition
9025 expression.
9026 (delete_breakpoint): Delete the watchpoint condition expression.
9027 * breakpoint.h (struct bp_location) <cond>: Update comment.
9028 (struct breakpoint): New field `cond_exp_valid_block'.
9029
af6b7be1
JB
90302010-03-09 Joel Brobecker <brobecker@adacore.com>
9031
9032 Adjust handling of Ada DIEs after dwarf2_physname patch.
9033 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
9034
60c5c021
CF
90352010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
9036 Pierre Muller <muller@ics.u-strasbg.fr>
9037
9038 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
9039 from/to posix/win32.
9040 (windows_make_so): Use non-Cygwin 1.7 specific function.
9041 (windows_create_inferior): Make sure that cygallargs points to
9042 original args in non Cygwin 1.7. case.
9043
60a1502a
MS
90442010-03-09 Michael Snyder <msnyder@vmware.com>
9045
9046 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
9047 after target_read_memory to get host byte order.
9048 (i386_process_record): Ditto.
9049
94af9270
KS
90502010-03-09 Keith Seitz <keiths@redhat.com>
9051
9052 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
9053 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
9054 print out const or volatile qualifiers, too.
9055 (c_type_print_args): Add parameters show_artificial and language.
9056 Skip artificial parameters when requested.
9057 Use the appropriate language printer.
9058 (c_type_print_varspec): Tell c_type_print_args to skip artificial
9059 parameters and pass language_c.
9060 * dwarf2read.c (die_list): New file global.
9061 (struct partial_die_info): Update comments for name field.
9062 (pdi_needs_namespace): Renamed to ...
9063 (die_needs_namespace): ... this. Rewrite.
9064 (dwarf2_linkage_name): Remove.
9065 (add_partial_symbol): Do not predicate the call to
9066 partial_die_full_name based on pdi_needs_namespace.
9067 Remove call to cp_check_possible_namespace_symbols and associated
9068 outdated comments.
9069 (guess_structure_name): Do not inspect child subprogram DIEs.
9070 (dwarf2_fullname): Update comments.
9071 Use die_needs_namespace to assist in computing the name.
9072 (read_func_scope): Use dwarf2_name to get the DIE's name.
9073 Use dwarf2_physname to get the "linkage name" of the DIE.
9074 (dwarf2_add_member_field): Use dwarf2_physname instead of
9075 dwarf2_linkage_name.
9076 (read_structure_type): For structs and classes, set TYPE_NAME, too.
9077 (determine_class): Remove.
9078 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
9079 except Ada.
9080 (new_symbol): Unconditionally call dwarf2_name.
9081 Compute the "linkage name" using dwarf2_physname.
9082 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
9083 When determining to scan for anonymous C++ namespaces, ignore
9084 the linkage name.
9085 (dwarf2_physname): New function.
9086 (dwarf2_full_name): Move content to new function and call
9087 that.
9088 (dwarf2_compute_name): "New" function.
9089 (_initialize_dwarf2_read): Initialize die_list.
9090 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
9091 physname.
9092 (gnu_v3_print_method_ptr): Use the physname for virtual methods
9093 without a demangled name.
9094 Print out type information for non-virtual methods.
c8d5aac9 9095 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 9096 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
9097 If we found a file symtab, re-evaluate whether the remainder is_quoted.
9098 (decode_compound): Stop consuming at an open parenthesis.
9099 Keep template parameters.
9100 Keep any overload information.
9101 Keep keywords like "const".
9102 Remove paren_pointer.
9103 Move is_quoted check from set_flags to here.
9104 Remove #if 0 code from 2000. Ten years is long enough.
9105 (find_method): Before comparing symbol names, canonicalize the string
9106 from the user.
9107 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
9108 (find_method_overload_end): New function.
9109 (set_flags): Remove.
c8d5aac9
L
9110 (decode_compound): Assume that parentheses are matched.
9111 It's a lot easier.
94af9270
KS
9112 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
9113 to cplus_demangle.
9114 * linespec.c (decode_line_1): Keep important keywords like
9115 "const" and "volatile".
9116 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
9117 * typeprint.h (c_type_print_args): Add declaration.
9118 * ui-file.c (do_ui_file_obsavestring): New function.
9119 (ui_file_obsavestring): New function.
9120 * ui-file.h (ui_file_obsavestring): Add declaration.
9121 * valops.c (find_overload_match): Resolve the object to
9122 a non-pointer type.
9123 If the object is a data member, search the object for the member
9124 and return with staticp set.
9125 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
9126 Do not attempt to extract a function name from non-function types.
9127 If the extracted function name and the original name are the same,
9128 we don't have a C++ method.
9129
8d95cc3b
PA
9130 From Jan Kratochvil <jan.kratochvil@redhat.com>:
9131 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
9132
9133 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
9134 and arguments from symbol lookups.
9135 * ax-gdb.c (gen_expr): Likewise.
9136 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
9137 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
9138 lookup_possible_namespace_symbol): Likewise.
9139 * cp-support.c (read_in_psymtabs): Likewise.
9140 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
9141 * language.h (la_lookup_symbol_nonlocal): Likewise.
9142 * scm-valprint.c (scm_inferior_print): Likewise.
9143 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
9144 * solib-svr.c (elf_lookup_lib): Likewise.
9145 * solib.c (show_auto_solib_add): Likewise.
9146 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
9147 * symmisc.c (maintenance_check_symtabs): Likewise.
9148 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
9149 lookup_symbol_aux_local, lookup_symbol_aux_block,
9150 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
9151 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
9152 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
9153 basic_lookup_transparent_type, find_main_psymtab,
9154 lookup_block_symbol): Likewise.
9155 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
9156 lookup_symbol_global, lookup_symbol_aux_block,
9157 lookup_symbol_partial_symbol, lookup_block_symbol,
9158 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
9159
9cb74f47
PM
91602010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
9161
9162 * python/python-internal.h: Include symtab.h.
9163
af6b7be1
JB
91642010-03-09 Joel Brobecker <brobecker@adacore.com>
9165 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
9166
9167 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
9168 * p-valprint.c (pascal_val_print): Remove undeed block and fix
9169 indentation.
9170
bad56014
TT
91712010-03-08 Tom Tromey <tromey@redhat.com>
9172
9173 * breakpoint.c (breakpoint_1): Add "QUIT".
9174
08105857
PA
91752010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
9176 Pedro Alves <pedro@codesourcery.com>
9177
9178 * solib.c (solib_find): Replace extension if
9179 solib_symbols_extension is set in the target gdbarch.
9180 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
9181 solib_symbols_extension to "sym".
9182 * gdbarch.sh (solib_symbols_extension): New variable.
9183 (pstring): New function.
9184 * gdbarch.h, gdbarch.c: Regenerate.
9185
7c953934
TT
91862010-03-08 Tom Tromey <tromey@redhat.com>
9187
9188 PR cli/9591:
9189 * NEWS: Update.
9190 * utils.c: Include main.h.
9191 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
9192 (defaulted_query): Use default answer if `batch_flag'.
9193 * main.h (batch_flag): Declare.
9194 * main.c (batch_flag): New global.
9195 (captured_main): Remove 'batch'. Update.
9196
bbd2783e
KB
91972010-03-08 Kevin Buettner <kevinb@redhat.com>
9198
9199 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
9200 and Kevin Buettner:
9201
9202 * remote-mips.c (rockhopper_ops): New target_ops struct.
9203 (MON_ROCKHOPPER): New mips_monitor_type.
9204 (read_hex_value): New function.
9205 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 9206 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
9207 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
9208 (rockhopper_open): New function.
9209 (mips_wait): Read the PC, FP and SP fields as strings. Use
9210 read_hex_value to parse them and mips_set_register to commit them.
9211 (mips_set_register): New function.
9212 (mips_fetch_registers): Do not cast register value to "unsigned"
9213 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
9214 (mips_store_registers): Use a 'T' packet to set registers when
9215 using MON_ROCKHOPPER.
9216 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
9217 and expect the total to be printed before the entry address.
9218 (_initialize_remote_mips): Initialize and add rockhopper_ops.
9219
566f3d17
KB
92202010-03-08 Kevin Buettner <kevinb@redhat.com>
9221
9222 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
9223 Change return value to int. Store value fetched in location
9224 addressed by `val'. Use function's return value as success
9225 or failure indicator. Adjust all callers.
9226
9c8ee2ab 92272010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
9228
9229 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
9230
7155de5a
HZ
92312010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9232 Hui Zhu <teawater@gmail.com>
9233
9234 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
9235 tmp_to_stopped_data_address.
9236 (record_open): Reset tmp_to_stopped_by_watchpoint and
9237 tmp_to_stopped_data_address.
9238 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
9239 to_stopped_data_address.
9240
580879fc
HZ
92412010-03-08 Hui Zhu <teawater@gmail.com>
9242
9243 * i386-tdep.c (i386_process_record): Initialize regnum.
9244
b0fcb67f
JK
92452010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9246
9247 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
9248 Do not warn on ".gnu.liblist" and ".gnu.conflict".
9249
08597104
JB
92502010-03-08 Joel Brobecker <brobecker@adacore.com>
9251
9252 Memory error when reading wrong core file.
9253 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
9254 errors while reading the inferior memory, and return zero if
9255 an exception was raised.
9256
425b824a
MS
92572010-03-07 Michael Snyder <msnyder@vmware.com>
9258
ec6dbf37
MS
9259 * record.c (record_restore): Rename tmpu8 to rectype.
9260
648d0c8b
MS
9261 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
9262 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
9263
9264 (i386_record_push): Rename local tmpulongest to addr.
9265
9266 (i386_process_record): Rename local tmpulongest to addr.
9267
9268 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
9269 addr64.
955db0c0
MS
9270
9271 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 9272
10760264
JB
92732010-03-07 Joel Brobecker <brobecker@adacore.com>
9274
9275 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 9276 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 9277
b3c613f2
CF
92782010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
9279
9280 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
9281 block. Define helper macros to reduce ifdefs in code.
9282 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
9283 size. Call unadorned GetModuleFileNameEx rather than
9284 GetModuleFileNameEx*.
9285 (windows_make_so): Use __PMAX to denote maximum buffer size and
9286 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
9287 appropriate.
9288 (get_image_name): Use __PMAX to denote maximum buffer size.
9289 (handle_load_dll): Likewise.
9290 (windows_pid_to_exec_file): Likewise.
9291 (windows_create_inferior): Add many accommodations for older Cygwin and
9292 non-Cygwin.
9293 (bad_GetModuleFileNameExW): Control inclusion of this function based on
9294 __USEWIDE conditional.
9295 (bad_GetModuleFileNameExA): Likewise.
9296 (_initialize_loadable): Just use real function names without the dyn_
9297 part since they are defined earlier.
9298
f870a310
TT
92992010-03-05 Corinna Vinschen <vinschen@redhat.com>
9300 Tom Tromey <tromey@redhat.com>
9301
9302 * utils.c (host_char_to_target): Add 'gdbarch' argument.
9303 (parse_escape): Likewise.
9304 * python/py-utils.c (unicode_to_target_string): Update.
9305 (unicode_to_target_python_string): Update.
9306 (target_string_to_unicode): Update.
9307 * printcmd.c (printf_command): Update.
9308 * p-exp.y (yylex): Update.
9309 * objc-exp.y (yylex): Update.
9310 * mi/mi-parse.c: Include charset.h.
9311 (mi_parse_escape): New function.
9312 (mi_parse_argv): Use it.
9313 * jv-exp.y (yylex): Update.
9314 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
9315 function.
9316 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
9317 * gdbarch.sh (auto_charset, auto_wide_charset): New.
9318 * gdbarch.c: Rebuild.
9319 * gdbarch.h: Rebuild.
9320 * defs.h (parse_escape): Update.
9321 * cli/cli-setshow.c: Include arch-utils.h.
9322 (do_setshow_command): Update.
9323 * cli/cli-cmds.c (echo_command): Update.
9324 * charset.h (target_charset, target_wide_charset): Update.
9325 * charset.c: Include arch-utils.h.
9326 (target_charset_name): Default to "auto".
9327 (target_wide_charset_name): Likewise.
9328 (show_target_charset_name): Handle "auto".
9329 (show_target_wide_charset_name): Likewise.
9330 (be_le_arch): New global.
9331 (set_be_le_names): Add 'gdbarch' argument.
9332 (validate): Likewise. Don't call set_be_le_names.
9333 (set_charset_sfunc, set_host_charset_sfunc)
9334 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
9335 Update.
9336 (target_charset): Add 'gdbarch' argument.
9337 (target_wide_charset): Likewise. Remove 'byte_order' argument.
9338 (auto_target_charset_name): New global.
9339 (default_auto_charset, default_auto_wide_charset): New functions.
9340 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
9341 for target charsets. Copy result of nl_langinfo. Use GetACP if
9342 USE_WIN32API.
9343 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
9344 remove 'byte_order' argument. Update.
9345 (classify_type): Likewise.
9346 (c_emit_char): Update.
9347 (c_printchar): Update.
9348 (c_printstr): Update.
9349 (c_get_string): Update.
9350 (evaluate_subexp_c): Update.
9351 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
9352 Declare.
9353 * python/python.c (gdbpy_target_charset): New function.
9354 (gdbpy_target_wide_charset): Likewise.
9355 (GdbMethods): Update.
9356 * NEWS: Update.
9357
4e7386b0
UW
93582010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9359
9360 * symfile.c (build_section_addr_info_from_objfile): Do not mask
9361 off high address bits.
9362
aab48ede
UW
93632010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
9364
9365 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
9366 address as UnsignedLongLong, not LongLong.
9367
8eeafb51 93682010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 9369 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
9370
9371 * remote-mips.c (gdbthread.h): Include.
9372 (remote_mips_ptid): Declare.
9373 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
9374 (common_open): Set inferior_ptid, add it as an inferior, and
9375 as a thread too. Delete FIXME comment regarding start_remote().
9376 (mips_close): Invoke generic_mourn_inferior().
9377 (mips_kill): Make sure that target_mourn_inferior is invoked.
9378 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
9379 it's now invoked from mips_close().
9380 (mips_load): Don't null out inferior_ptid. Don't call
9381 clear_symtab_users().
9382 (mips_thread_alive, mips_pid_to_str): New functions.
9383 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
9384 to_thread_alive and to_pid_to_str operations.
9385
ae411497
TT
93862010-03-04 Tom Tromey <tromey@redhat.com>
9387
9388 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
9389 in DWARF 3 and later.
9390 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
9391
0e0b460e
KS
93922010-03-04 Keith Seitz <keiths@redhat.com>
9393
9394 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
9395 If the filename portion of the linespec was quoted, recheck the
9396 remainder for additional quoting.
9397 (locate_first_half): Skip over completer chars, too.
9398
1b93ff13
TT
93992010-03-04 Tom Tromey <tromey@redhat.com>
9400
9401 * printcmd.c (printf_command): Pass dummy argument to
9402 printf_filtered.
9403
fc36e839
DE
94042010-03-04 Doug Evans <dje@google.com>
9405
111f853c
DE
9406 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
9407 unwound_fp.
9408
fc36e839
DE
9409 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
9410
c7437ca6
PA
94112010-03-04 Pedro Alves <pedro@codesourcery.com>
9412
9413 * breakpoint.c (update_watchpoint): Create a sentinel location if
9414 the software watchpoint isn't watching any memory.
9415 (breakpoint_address_bits): Skip dummy software watchpoint locations.
9416
58dadb1b
PA
94172010-03-04 Pedro Alves <pedro@codesourcery.com>
9418
9419 * utils.c (fputs_maybe_filtered): Check if there's already a top
9420 level interpreter before dereferencing it. If there isn't one,
9421 don't paginate either.
9422
50e98be4
DJ
94232010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9424
9425 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
9426 the state right when single stepping.
9427 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
9428 Get the next PC along with the instruction state.
9429 (thumb_get_next_pc): Remove.
9430 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
9431
2e3ceee9
HZ
94322010-03-04 Hui Zhu <teawater@gmail.com>
9433
9434 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
9435
390a8aca
PA
94362010-03-03 Pedro Alves <pedro@codesourcery.com>
9437
9438 * utils.c (fputs_maybe_filtered): Always disable pagination if the
9439 top level interpreter is MI.
9440
9355b391
SS
94412010-03-03 Stan Shebs <stan@codesourcery.com>
9442
9443 * remote.c (remote_download_tracepoint): Iterate over locations.
9444 * tracepoint.c (validate_actionline): Ditto.
9445 (encode_actions): Add location argument.
9446 (trace_dump_command): Check all locations to see if stepping
9447 frame.
390a8aca 9448
8685c86f
L
94492010-03-03 H.J. Lu <hongjiu.lu@intel.com>
9450 Eli Zaretskii <eliz@gnu.org>
9451
9452 * NEWS: Add X86 general purpose registers section.
9453
e8f781e2
TT
94542010-03-03 Tom Tromey <tromey@redhat.com>
9455
9456 PR mi/11098:
9457 * varobj.c (install_new_value): Handle case where new print_value
9458 is NULL.
9459
a0e0ef55
TT
94602010-03-03 Dainis Jonitis <jonitis@gmail.com>
9461
9462 PR gdb/11345:
9463 * printcmd.c (printf_command): Print end of format string using
9464 printf_filtered.
9465
a58d7472
TT
94662010-03-02 Tom Tromey <tromey@redhat.com>
9467
9468 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
9469 * defs.h (read_command_lines_1): Add missing 'void'.
9470 * cli/cli-script.c (recurse_read_control_structure): Add missing
9471 'void'.
9472 (read_next_line): Likewise.
9473 (read_command_lines_1): Likewise.
9474
ce50d78b
UW
94752010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9476
9477 * spu-tdep.c (spu_analyze_prologue): Track instruction to
9478 store backchain as part of prologue.
9479
7e9af34a
DJ
94802010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
9481
9482 * progspace.c (update_address_spaces): Update inferior address spaces
9483 also.
9484
01637564
DE
94852010-03-02 Doug Evans <dje@google.com>
9486
9487 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
9488 lowpc,highpc args to addrmap_set_empty.
9489
1ba53b71
L
94902010-03-02 H.J. Lu <hongjiu.lu@intel.com>
9491
9492 * amd64-tdep.c (amd64_byte_names): New.
9493 (amd64_word_names): Likewise.
9494 (amd64_dword_names): Likewise.
9495 (amd64_pseudo_register_name): Likewise.
9496 (amd64_pseudo_register_read): Likewise.
9497 (amd64_pseudo_register_write): Likewise.
9498 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
9499 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
9500 set_gdbarch_pseudo_register_write and
9501 set_tdesc_pseudo_register_name. Don't call
9502 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
9503
9504 * i386-tdep.c (i386_num_mmx_regs): Removed.
9505 (i386_num_pseudo_regs): Likewise.
9506 (i386_byte_names): New.
9507 (i386_word_names): Likewise.
9508 (i386_byte_regnum_p): Likewise.
9509 (i386_word_regnum_p): Likewise.
9510 (i386_mmx_regnum_p): Updated.
9511 (i386_pseudo_register_name): Make it global. Handle byte and
9512 word pseudo-registers.
9513 (i386_pseudo_register_read): Likewise.
9514 (i386_pseudo_register_write): Likewise.
9515 (i386_pseudo_register_type): Handle byte, word and dword
9516 pseudo-registers
9517 (i386_register_reggroup_p): Don't include pseudo
9518 registers, except for MXX, in any register groups. Don't
9519 include pseudo byte, word, dword registers in general_reggroup.
9520 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
9521 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
9522 pseudo-registers after word pseudo-registers. Call
9523 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
9524
9525 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
9526 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
9527 eax_regnum.
9528 (i386_byte_regnum_p): New.
9529 (i386_word_regnum_p): Likewise.
9530 (i386_dword_regnum_p): Likewise.
9531 (i386_pseudo_register_name): Likewise.
9532 (i386_pseudo_register_read): Likewise.
9533 (i386_pseudo_register_write): Likewise.
9534
a6f5ef51
L
95352010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9536
9537 * target-descriptions.c (tdesc_type): Remove
9538 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9539 (tdesc_predefined_types): Likewise.
9540 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
9541 if flag name is empty.
9542 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
9543
9544 * features/i386/32bit-core.xml: Define i386_eflags.
9545 * features/i386/64bit-core.xml: Likewise.
9546
9547 * features/i386/32bit-sse.xml: Define i386_mxcsr.
9548 * features/i386/64bit-sse.xml: Likewise.
9549
9550 * features/i386/amd64-linux.c: Regenerated.
9551 * features/i386/amd64.c: Likewise.
9552 * features/i386/i386-linux.c: Likewise.
9553 * features/i386/i386.c: Likewise.
9554
f5dff777
DJ
95552010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
9556
9557 * gdbtypes.c (append_composite_type_field_raw): New.
9558 (append_composite_type_field_aligned): Use the new function.
9559 * gdbtypes.h (append_composite_type_field_raw): Declare.
9560 * target-descriptions.c (struct tdesc_type_field): Add start and end.
9561 (struct tdesc_type_flag): New type.
9562 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
9563 kind. Add size to u.u. Add u.f for flags.
9564 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
9565 (tdesc_free_type): Likewise.
9566 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
9567 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
9568 (tdesc_add_bitfield, tdesc_add_flag): New.
9569 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
9570 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
9571 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
9572 current_type. Add current_type_size and current_type_is_flags.
9573 (tdesc_start_union): Clear the new fields.
9574 (tdesc_start_struct, tdesc_start_flags): New.
9575 (tdesc_start_field): Handle struct fields, including bitfields.
9576 (field_attributes): Make type optional. Add start and end.
9577 (union_children): Rename to struct_union_children.
9578 (union_attributes): Rename to struct_union_attributes. Add optional
9579 size.
9580 (flags_attributes): New.
9581 (feature_children): Add struct and flags.
9582 * features/gdb-target.dtd: Add flags and struct to features.
9583 Make field type optional. Add field start and end.
9584
90884b2b
L
95852010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9586
9587 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
9588 (amd64_linux_read_description): Likewise.
9589 (_initialize_amd64_linux_nat): Set to_read_description to
9590 amd64_linux_read_description.
9591
9592 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
9593 (amd64_linux_register_name): Removed.
9594 (amd64_linux_register_type): Likewise.
9595 (amd64_linux_core_read_description): New.
9596 (amd64_linux_init_abi): Set target description to
9597 tdesc_amd64_linux if needed. Support orig_rax in target
9598 description. Don't call set_gdbarch_register_name nor
9599 set_gdbarch_register_type. Call
9600 set_gdbarch_core_read_description.
9601 (_initialize_amd64_linux_tdep): Call
9602 initialize_tdesc_amd64_linux.
9603
9604 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
9605
9606 * amd64-tdep.c: Include "features/i386/amd64.c".
9607 (amd64_register_names): Removed.
9608 (amd64_register_name): Likewise.
9609 (amd64_register_type): Likewise.
9610 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 9611 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
9612 set_gdbarch_register_name nor set_gdbarch_register_type.
9613 (_initialize_amd64_tdep): New.
9614
9615 * i386-linux-nat.c (i386_linux_read_description): New.
9616 (_initialize_i386_linux_nat): Set to_read_description to
9617 i386_linux_read_description.
9618
9619 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
9620 (i386_linux_register_name): Removed.
9621 (i386_linux_core_read_description): New.
9622 (i386_linux_read_description): Likewise.
9623 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
9624 Set target description to tdesc_i386_linux if needed. Support
9625 orig_eax. Set register_reggroup_p. Call
9626 set_gdbarch_core_read_description.
9627 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
9628
9629 * i386-linux-tdep.h (tdesc_i386_linux): New.
9630
9631 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
9632 with I387_NUM_REGS.
9633
9634 * i386-tdep.c: Include "features/i386/i386.c".
9635 (i386_register_names): Make it const.
9636 (i386_mmx_names): Likewise.
9637 (i386_num_register_names): Removed.
9638 (i386_register_name): Likewise.
9639 (i386_eflags_type): Likewise.
9640 (i386_mxcsr_type): Likewise.
9641 (i386_sse_type): Likewise.
9642 (i386_register_type): Likewise.
9643 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
9644 (i386_pseudo_register_name): New.
9645 (i386_pseudo_register_type): Likewise.
9646 (i386_mmx_type): Make it static.
9647 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
9648 I387_NUM_REGS. Set num_core_regs and register_names. Don't
9649 call set_gdbarch_register_name nor set_gdbarch_register_type.
9650 Set register_reggroup_p. Set target description to tdesc_i386
9651 if needed. Call set_tdesc_pseudo_register_type,
9652 set_tdesc_pseudo_register_name and tdesc_use_registers.
9653 (_initialize_i386_tdep): Call initialize_tdesc_i386.
9654 initialize_tdesc_x86_64.
9655
9656 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
9657 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
9658 register_names, tdesc and register_reggroup_p.
9659 (I386_NUM_FREGS): Removed.
9660 (i386_eflags_type): Likewise.
9661 (i386_mxcsr_type): Likewise.
9662 (i386_mmx_type): Likewise.
9663 (i386_sse_type): Likewise.
9664 (i386_register_name): Likewise.
9665 (i386_regnum): Add I386_MXCSR_REGNUM.
9666 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
9667
9668 * i387-tdep.h (I387_NUM_REGS): New.
9669
9670 * regformats/i386/i386-linux.dat: Generated.
9671 * regformats/i386/i386.dat: Likewise.
9672 * regformats/i386/amd64-linux.dat: Likewise.
9673 * regformats/i386/amd64.dat: Likewise.
9674
9675 * regformats/reg-i386-linux.dat: Removed.
9676 * regformats/reg-i386.dat: Likewise.
9677 * regformats/reg-x86-64-linux.dat: Likewise.
9678 * regformats/reg-x86-64.dat: Likewise.
9679
d0d0ab16
CV
96802010-03-01 Corinna Vinschen <vinschen@redhat.com>
9681
9682 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
9683 cygwin_conv_path API rather than the deprecated
9684 cygwin_conv_to_full_posix_path.
9685 * windows-nat.c:
9686 (GetModuleFileNameExA): Undefine for Cygwin.
9687 (GetModuleFileNameExW): Define for Cygwin.
9688 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
9689 Call GetModuleFileNameExW and convert path to POSIX using
9690 cygwin_conv_path.
9691 (windows_make_so): Always define p. Drop unused variable m.
9692 Don't use Win32 functions to check file existance, rather use
9693 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
9694 Use canonicalize_file_name to get full path.
9695 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
9696 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
9697 use correct target buffer size in call to WideCharToMultiByte.
9698 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
9699 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
9700 (windows_create_inferior): Convert all paths and arguments to wchar_t
9701 and use CreateProcessW on Cygwin.
9702 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
9703 (bad_GetModuleFileNameExA): Undefine for Cygwin.
9704 (bad_GetModuleFileNameExW): Define for Cygwin.
9705 (_initialize_loadable): Load GetModuleFileNameExW into
9706 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
9707
dc00d89f
PM
97082010-02-28 Phil Muldoon <pmuldoon@redhat.com>
9709
9710 PR python/11036
9711 * python/py-frame.c (frapy_read_var): Add block argument and logic
9712 to cope with user provided blocks.
9713
0e095b7e
JK
97142010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9715
9716 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
9717 New comment.
9718
2f9e05b4
CV
97192010-02-28 Corinna Vinschen <vinschen@redhat.com>
9720
9721 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
9722 (COMMON_OBS): ... to here since it's used unconditionally.
9723 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
9724 (SFILES): To here.
9725
eb195664
DD
97262010-02-26 David Daney <ddaney@caviumnetworks.com>
9727
9728 * mips-linux-tdep.c: Update struct sigframe comments.
9729 (SIGFRAME_CODE_OFFSET): Delete macro.
9730 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
9731 this_frame's sp.
9732 (mips_linux_n32n64_sigframe_init): Same.
9733
97b0f3e2
KB
97342010-02-26 Kevin Buettner <kevinb@redhat.com>
9735
9736 * remote-mips.c (mips_load): Don't use pseudo-register when
9737 invalidating regcache.
9738
4069ebbe
DJ
97392010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9740
9741 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
9742
05071a4d
PA
97432010-02-26 Pedro Alves <pedro@codesourcery.com>
9744
9745 * NEWS: Add "New targets" section, and mention ARM Symbian
9746 support.
9747
6063c216
UW
97482010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
9749
9750 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
9751 add ADDR_SIZE member.
9752 (allocate_piece_closure): Update.
9753 (copy_pieced_value_closure): Likewise.
9754 (dwarf2_evaluate_loc_desc): Likewise.
9755 (read_pieced_value): Use DWARF address size instead of
9756 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
9757
5107b149 97582010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 9759 Tom Tromey <tromey@redhat.com>
5107b149
PM
9760
9761 * python/py-type.c (typy_lookup_typename): Add in block argument.
9762 If provided restrict lookup to specified blocks.
9763 (gdbpy_lookup_type): Likewise.
9764 (typy_lookup_type): Likewise.
9765
78664fa3 97662010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 9767
78664fa3
PA
9768 Symbian config
9769
9770 gdb/
9771 * arm-symbian-tdep.c: New.
9772 * configure.tgt (arm*-*-symbianelf*): New target.
9773 (*-*-symbianelf*): New OS.
9774 * osabi.c (gdb_osabi_names): Add Symbian.
9775 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9776 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9777 (ALLDEPFILES): Add arm-symbian-tdep.c.
9778
eb73e134
DJ
97792010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9780
9781 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9782
46ef47e5
PA
97832010-02-24 Pedro Alves <pedro@codesourcery.com>
9784
9785 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9786
f3e9a817 97872010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9788 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9789 Thiago Jung Bauermann <bauerman@br.ibm.com>
9790
9791 * python/python.c (_initialize_python): Call
9792 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9793 gdbpy_initialize_blocks.
9794 * python/python-internal.h: Declare struct symbol, block and
9795 symtab_and_line. Declare block_object_type and
9796 symbol_object_type
9797 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9798 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9799 (symbol_to_symbol_object, block_to_block_object)
9800 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9801 (gdbpy_initialize_blocks ): Declare.
9802 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9803 (frapy_select): Add methods.
9804 (frapy_read_var): Add symbol branch.
9805 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9806 py-block.
9807 (SUBDIR_PYTHON_SRCS): Likewise.
9808 (py-symbol.o): New rule.
9809 (py-symtab.o): Likewise.
9810 (py-block.o): Likewise.
9811 * python/py-symbol.c: New file.
9812 * python/py-symtab.c: Likewise.
9813 * python/py-block.c: Likewise.
9814
24291992
PA
98152010-02-24 Pedro Alves <pedro@codesourcery.com>
9816
9817 PR gdb/11321
9818
9819 * inferior.h (prepare_for_detach): Declare.
9820 (struct inferior) <detaching>: New field.
9821 * infrun.c (prepare_for_detach): New.
9822 (handle_inferior_event) <random signal>: Don't stop if detaching.
9823 * target.c (target_detach): Call prepare_for_detach.
9824
fc1cf338
PA
98252010-02-24 Pedro Alves <pedro@codesourcery.com>
9826
9827 Per-process displaced stepping queue.
9828
9829 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9830 (displaced_step_gdbarch, displaced_step_closure,
9831 (displaced_step_original, displaced_step_copy): Move globals to
9832 this...
9833 (struct displaced_step_inferior_state): ... new structure.
9834 (displaced_step_inferior_states): New global.
9835 (get_displaced_stepping_state, add_displaced_stepping_state)
9836 (remove_displaced_stepping_state, infrun_inferior_exit): New
9837 functions.
9838 (displaced_step_clear): Add displaced_step_inferior_state
9839 parameter, and adjust to handle it.
9840 (displaced_step_clear_cleanup): Parameter is now a
9841 displaced_step_inferior_state. Adjust.
9842 (displaced_step_prepare): Adjust.
9843 (displaced_step_fixup, displaced_step_fixup)
9844 (infrun_thread_ptid_changed, resume): Adjust.
9845 (init_wait_for_inferior): Don't call displaced_step_clear.
9846 (infrun_thread_stop_requested): Rewrite.
9847 (_initialize_infrun): Install infrun_inferior_exit as
9848 inferior_exit observer.
9849
0723dbf5
PA
98502010-02-24 Pedro Alves <pedro@codesourcery.com>
9851
9852 * inferior.h (ptid_match): Declare.
9853 * infrun.c (ptid_match): New.
9854 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9855 (handle_notification): Add debug output.
9856 * linux-nat.c (ptid_match): Delete.
9857
09de9781
DM
98582010-02-24 David S. Miller <davem@davemloft.net>
9859
9860 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9861 * syscalls/sparc-linux.xml: New.
9862 * syscalls/sparc64-linux.xml: New.
9863 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9864 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9865 (sparc32_linux_get_syscall_number): New function.
9866 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9867 syscall number fetcher.
9868 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9869 (sparc64_linux_get_syscall_number): New function.
9870 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9871 syscall number fetcher.
9872
a79b8f6e
VP
98732010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9874
9875 Multiexec MI
9876
9877 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9878 * inferior.c (add_inferior_silent): Notify inferior_added
9879 observer.
9880 (delete_inferior_1): Notify inferior_removed observer.
9881 (exit_inferior_1): Pass inferior, not pid, to observer.
9882 (inferior_appeared): Likewise.
9883 (add_inferior_with_spaces): New.
9884 (add_inferior_command): Use the above.
9885 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9886 Declare.
9887
9888 * inflow.c (inflow_inferior_exit): Likewise.
9889 * jit.c (jit_inferior_exit_hook): Likewise.
9890
9891 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9892 remove-inferior.
9893 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9894 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9895 (report_initial_inferior): New.
9896 (mi_inferior_removed): Register the above. Make sure
9897 inferior_added observer is called on the first inferior.
9898 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9899 inferior number, not pid.
9900 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9901 affected.
9902 * mi/mi-main.c (current_context): New.
9903 (proceed_thread_callback): Use typed closure.
9904 Proceed everything if pid is 0. Most implementation split into
9905 (proceed_thread): ... this.
9906 (run_one_inferior): New.
9907 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9908 Adjust for multiexec behaviour.
9909 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9910 (mi_cmd_execute): Handle the 'thread-group' option here.
9911 Do some extra checks.
9912 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9913 options.
9914 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9915
115d30f9
VP
99162010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9917
9918 Make -exec-run a proper MI commands.
9919
9920 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9921 * mi/mi-cmds.c (mi_cmds): Adjust.
9922 * mi/mi-main.c (mi_cmd_exec_run): New.
9923
06cd862c
PA
99242010-02-24 Pedro Alves <pedro@codesourcery.com>
9925 Stan Shebs <stan@codesourcery.com>
9926
9927 * tracepoint.h (set_traceframe_number)
9928 (cleanup_restore_current_traceframe): Declare.
9929 * tracepoint.c (set_traceframe_number): New.
9930 (struct current_traceframe_cleanup): New.
9931 (do_restore_current_traceframe_cleanup)
9932 (restore_current_traceframe_cleanup_dtor)
9933 (make_cleanup_restore_current_traceframe): New.
9934 * infrun.c: Include tracepoint.h.
9935 (fetch_inferior_event): Switch out and in of tfind mode.
9936
ab92d69b
PA
99372010-02-24 Pedro Alves <pedro@codesourcery.com>
9938
9939 * breakpoint.c (breakpoint_init_inferior): Also delete
9940 bp_shlib_event breakpoints.
9941 * solib-frv.c (enable_break): Remove call to
9942 remove_solib_event_breakpoints.
9943 * solib-svr4.c (enable_break): Ditto.
9944 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9945 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9946 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9947 * solib-spu.c (spu_enable_break): Ditto.
9948
e707a91d
PA
99492010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9950
9951 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9952
cfce2ea2
PA
99532010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9954
9955 * varobj.c (varobj_update): Avoid non-constants in initializers.
9956
05566b3b
TT
99572010-02-23 Tom Tromey <tromey@redhat.com>
9958
9959 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9960 handle big-endian values.
9961 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9962
85d721b8
PA
99632010-02-22 Pedro Alves <pedro@codesourcery.com>
9964
9965 PR9605
9966
9967 gdb/
9968 * breakpoint.c (insert_bp_location): If inserting the read
9969 watchpoint failed, fallback to an access watchpoint.
9970 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9971 if the value changed, if not watching the same memory for writes.
9972 (watchpoint_locations_match): Add comment.
9973 (update_global_location_list): Copy the location's watchpoint type.
9974 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9975 handle read watchpoints here.
9976 (i386_insert_watchpoint): Read watchpoints aren't supported.
9977 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9978 packets.
9979 * target.h (target_insert_watchpoint): Update description.
9980
48ea67a7
TT
99812010-02-19 Tom Tromey <tromey@redhat.com>
9982
9983 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9984 * m2-typeprint.c (m2_print_type): Update.
9985 * gdbtypes.c (recursive_dump_type): Update.
9986 (copy_type_recursive): Update.
9987 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9988 (c_type_print_base): Update.
9989 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9990 Remove.
9991 (struct cplus_struct_type) <ntemplate_args>: Remove.
9992 <struct template_arg>: Remove.
9993 <is_dynamic>: Move earlier.
9994 (TYPE_TEMPLATE_ARGS): Remove.
9995 (TYPE_NTEMPLATE_ARGS): Remove.
9996 (TYPE_TEMPLATE_ARG): Remove.
9997
48e32051
TT
99982010-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 PR c++/8693, PR c++/9496:
10001 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
10002 * c-exp.y (lex_one_token): Rename from yylex. Don't call
10003 write_dollar_variable. Don't try to classify NAME tokens.
10004 (token_and_value): New type.
10005 (token_fifo, popping, name_obstack): New globals.
10006 (classify_name): New function.
10007 (classify_inner_name): Likewise.
10008 (yylex): Likewise.
10009 (VARIABLE): Now has type sval.
10010 (exp : VARIABLE): Call write_dollar_variable.
10011 (qualified_name): Use TYPENAME, not typebase. Add production for
10012 multiple "::" instances.
10013 (variable): Use name_not_typename.
10014 (qualified_type): Remove.
10015 (typebase): Update.
10016
672d9c23
JK
100172010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10018
10019 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
10020 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
10021 found by bfd_get_section_by_name.
10022 * symfile.h (struct section_addr_info) <sectindex>: New comment.
10023
bfbf3774
JB
100242010-02-19 Joel Brobecker <brobecker@adacore.com>
10025
10026 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
10027 7.0 section" into "Changes in 7.1".
10028
6756b09b 100292010-02-19 Joel Brobecker <brobecker@adacore.com>
10030
10031 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
10032 * version.in: Bump version to 7.1.50.20100219-cvs.
10033
202b96c1
PA
100342010-02-18 Harald Koenig <H.Koenig@science-computing.de>
10035
10036 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
10037 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
10038
de2e5182
TT
100392010-02-17 Tom Tromey <tromey@redhat.com>
10040
10041 * NEWS: Add Python API Improvements section.
10042
7280022e
DJ
100432010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
10044
10045 * NEWS: Correct typo.
10046
6f451e5e
TT
100472010-02-17 Tom Tromey <tromey@redhat.com>
10048
10049 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
10050
012836ea
JK
100512010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10052
10053 * symfile.c (build_section_addr_info_from_objfile): Include sections
10054 only if they are SEC_ALLOC or SEC_LOAD.
10055
d182d057
L
100562010-02-17 H.J. Lu <hongjiu.lu@intel.com>
10057
10058 PR shlibs/11293
10059 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
10060 of ULONGEST for address size.
10061
4eef138c
TT
100622010-02-17 Tom Tromey <tromey@redhat.com>
10063
10064 * NEWS: Add C++ improvements section.
10065
548a926a
UW
100662010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
10067
10068 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
10069 PyThreadState_Swap): Avoid "statement with no effect" warning.
10070
ad3a0e5b
JK
100712010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10072
10073 * solib-svr4.c (enable_break <target_auxv_search>): New variable
10074 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
10075
243e2c5d 100762010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 10077 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
10078
10079 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
10080 gdb_assert. Fix info->size for SIG prologue.
10081
275f2e57
DJ
100822010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10083
10084 * infcmd.c (show_inferior_tty_command): Check for NULL.
10085 Correct output message.
10086
791dfb64
DJ
100872010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10088
10089 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
10090 FUNCTION contains parentheses. Improve removal of a trailing
10091 single quote.
10092
14d1346b
DJ
100932010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10094
10095 * gcore.c (do_bfd_delete_cleanup): New function.
10096 (gcore_command): Use it. Discard the cleanup after success.
10097 (gcore_copy_callback): Delete dead code.
10098
e76ab67f
DJ
100992010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
10100
10101 * symfile.c (addr_info_make_relative): Always use
10102 find_lowest_section.
10103
71dee663
SW
101042010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
10105
10106 * NEWS: Added entry for namespace fixes.
10107
a9854bd5
TT
101082010-02-15 Tom Tromey <tromey@redhat.com>
10109
10110 * dwarf2read.c (guess_structure_name): Allocate name on the
10111 objfile obstack.
10112
fd9e29b5
TT
101132010-02-15 Tom Tromey <tromey@redhat.com>
10114
10115 * c-typeprint.c (c_type_print_base): Reverse order of test.
10116
4e1fc9c9
JK
101172010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10118
10119 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
10120 initialize it from ELF BFD. Extend the prelink condition by it.
10121
74164c56
JK
101222010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10123
10124 * defs.h (parse_pid_to_attach): New.
10125 * utils.c (parse_pid_to_attach): New.
10126 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
10127 * gnu-nat.c (gnu_attach): Likewise.
10128 * nto-procfs.c (procfs_attach): Likewise.
10129 * procfs.c (procfs_attach): Likewise.
10130 * windows-nat.c (windows_attach): Likewise.
10131 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
10132 * inf-ttrace.c (inf_ttrace_attach): Likewise.
10133 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
10134 check.
10135
bf6adea8
MM
101362010-02-14 Masaki Muranaka <monaka@monami-software.com>
10137
10138 * MAINTAINERS: Add myself for write after approval privileges.
10139
28f34a8f
JK
101402010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10141
10142 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
10143 block.
10144
701ed6dc
JK
101452010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10146
10147 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
10148 only if INFO_VERBOSE.
10149
e5829bee
MS
101502010-02-12 Tomas Holmberg <th@virtutech.com>
10151
10152 * mi/mi-main.c: Added the --reverse flag to the following MI
10153 commands: exec-continue, exec-finish, exec-next, exec-step,
10154 exec-next-instruction, exec-step-instruction. This is to
10155 support reverse execution over the MI interface to gdb.
10156
081dfbf7
PA
101572010-02-12 Pedro Alves <pedro@codesourcery.com>
10158
10159 * tracepoint.c (_initialize_tracepoint): Specify that the address
10160 range of `tfind outsize' is exclusive, and that the address range
10161 of `tfind range' is inclusive, in the commands' help strings.
10162
ecc13e53
JB
101632010-02-12 Joel Brobecker <brobecker@adacore.com>
10164
10165 Spurious "dll not found" error messages on x64-windows.
10166 * windows-nat.c: Add include of complaints.h.
10167 (handle_unload_dll): Change dll-not-found error into a complaint.
10168
15c3d785
PA
101692010-02-12 Pedro Alves <pedro@codesourcery.com>
10170
10171 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
10172 bp_tracepoint and bp_fast_tracepoint, not
10173 bp_loc_software_breakpoint.
10174 (update_global_location_list): Tracepoints are never duplicates of
10175 anything.
10176
fd9b8c24
PA
101772010-02-12 Pedro Alves <pedro@codesourcery.com>
10178
10179 * breakpoint.c (break_command_really): Change return type to int.
10180 Return false if no breakpoint was created, true otherwise.
10181 (trace_command): Don't set the tracepoint count if no tracepoint
10182 was created.
10183 (ftrace_command): Ditto.
10184 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
10185 created in the breakpoints table.
10186
5c0d192f
JK
101872010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10188 Ulrich Weigand <uweigand@de.ibm.com>
10189
10190 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
10191
5d5b640e
PA
101922010-02-11 Pedro Alves <pedro@codesourcery.com>
10193
10194 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
10195 the offset value isn't of integral type.
10196
e5a0a904
JK
101972010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10198
10199 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
10200 New.
10201
be636754
PA
102022010-02-11 Pedro Alves <pedro@codesourcery.com>
10203
10204 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
10205 non-subscriptable types.
10206 * valarith.c (binop_types_user_defined_p): New, abstracted out
10207 from ...
10208 (binop_user_defined_p): ... this.
10209 * value.h (binop_types_user_defined_p): Declare.
10210
10ef8d6a
PA
102112010-02-11 Pedro Alves <pedro@codesourcery.com>
10212
10213 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
10214 Merge uploaded TSVs before merging uploaded tracepoints.
10215
b1028c8e
PA
102162010-02-11 Pedro Alves <pedro@codesourcery.com>
10217
10218 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
10219
7a93fb82 102202010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 10221
7a93fb82
VP
10222 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
10223 whitespace character after a dot in comment.
10224 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
10225 Likewise.
10226 (list_args_or_locals): For the 'all' (that is
10227 -stack-list-variables) case, always output list of tuples.
10228 Output 'arg' field if variable is argument.
84d90c10 10229
92981e24
TT
102302010-02-10 Tom Tromey <tromey@redhat.com>
10231
10232 * parser-defs.h (parser_debug): Declare.
10233 * parse.c (_initialize_parse): Install "debug parser" set/show
10234 command.
10235 (parser_debug): New global.
10236 (show_parserdebug): New function.
10237 * c-exp.y (c_parse): Set yydebug.
10238
9fd3625f
L
102392010-02-10 H.J. Lu <hongjiu.lu@intel.com>
10240
10241 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
10242 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10243 (tdesc_predefined_types): Add i387_ext, i386_eflags and
10244 i386_mxcsr.
10245 (tdesc_find_type): New.
10246 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
10247 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
10248
10249 * target-descriptions.h (tdesc_find_type): New.
10250
2fe842e5
MS
102512010-02-10 Michael Snyder <msnyder@vmware.com>
10252
10253 * gdb-gdb.py: Comment fix.
10254
f18b4cab
TG
102552010-02-09 Tristan Gingold <gingold@adacore.com>
10256
10257 * machoread.c (macho_symfile_relocate): New function.
10258 (macho_sym_fns): Use macho_symfile_relocate instead of
10259 default_symfile_relocate.
10260 (macho_oso_data): New type.
10261 (current_oso): New variable.
10262 (macho_add_oso_symfile): Do not compute section_addr_info, but
10263 instead set vma of sections.
10264 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
10265 Set and clear current_oso.
10266
31dbc1c5
JB
102672010-02-09 Joel Brobecker <brobecker@adacore.com>
10268
10269 Wrong type description for tagged type parameter.
10270 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
10271 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
10272 reference to a tagged type.
10273
399f313b
TG
102742010-02-09 Tristan Gingold <gingold@adacore.com>
10275
10276 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
10277 brothers of the parent.
10278
714f19d5
TT
102792010-02-08 Tom Tromey <tromey@redhat.com>
10280
10281 PR c++/8017:
10282 * value.h: Update.
10283 * valops.c (search_struct_field): Make 'name' const.
10284 (search_struct_method): Likewise.
10285 (find_method_list): Make 'method' const.
10286 (value_struct_elt): Make 'name' and 'err' const.
10287 (value_find_oload_method_list): Make 'method' const.
10288 (find_overload_match): Make 'name' const.
10289 * eval.c (evaluate_subexp_standard): New locals function,
10290 function_name.
10291 <OP_FUNCALL>: Handle OP_SCOPE specially.
10292
de0a0249
UW
102932010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10294
10295 * infrun.c (handle_inferior_event): Do not look up regcache
10296 for exited processes.
10297
8d95cc3b 102982010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
10299
10300 PR gdb/10728
10301 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 10302 warn if found, and assume length = 1.
83b10087 10303
99903ae3
CM
103042010-02-08 Chris Moller <cmoller@redhat.com>
10305
10306 PR gdb/9067
10307 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 10308 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 10309
e3e9f5a2
PA
103102010-02-08 Pedro Alves <pedro@codesourcery.com>
10311
10312 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
10313 resumed LWPs as resumed.
10314 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
10315 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
10316 of throwing an internal error. If an LWP of a process we're not
10317 waiting for reports a signal, don't force collecting a SIGSTOP,
10318 and if it was breakpoint hit in non-stop mode, cancel it. Don't
10319 go through all LWPs cancelling breakpoints in non-stop mode.
10320 (resume_stopped_resumed_lwps): New.
10321 (linux_nat_wait): Use it.
10322
46763423
L
103232010-02-07 H.J. Lu <hongjiu.lu@intel.com>
10324
10325 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
10326 i386/amd64 and i386/amd64-linux.
10327 (i386/i386-expedite): New.
10328 (i386/i386-linux-expedite): Likewise.
10329 (i386/amd64-expedite):Likewise.
10330 (i386/amd64-linux-expedite): Likewise.
10331 ($(outdir)/i386/i386-linux.dat): Likewise.
10332 ($(outdir)/i386/amd64.dat): Likewise.
10333 ($(outdir)/i386/amd64-linux.dat): Likewise.
10334
10335 * features/i386/32bit-core.xml: New.
10336 * features/i386/32bit-linux.xml: Likewise.
10337 * features/i386/32bit-sse.xml: Likewise.
10338 * features/i386/64bit-core.xml: Likewise.
10339 * features/i386/64bit-linux.xml: Likewise.
10340 * features/i386/64bit-sse.xml: Likewise.
10341 * features/i386/i386-linux.xml: Likewise.
10342 * features/i386/i386.xml: Likewise.
10343 * features/i386/amd64-linux.xml: Likewise.
10344 * features/i386/amd64.xml: Likewise.
10345 * features/i386/i386-linux.c: Likewise.
10346 * features/i386/i386.c: Likewise.
10347 * features/i386/amd64-linux.c: Likewise.
10348 * features/i386/amd64.c: Likewise.
10349
82856980
SW
103502010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
10351
10352 PR c++/7935:
10353 * cp-support.h: Added char* alias element to using_direct data
10354 struct.
10355 (cp_add_using): Added char* alias argument.
10356 (cp_add_using_directive): Ditto.
10357 * cp-namespace.c: Updated with the above changes.
10358 (cp_lookup_symbol_imports): Check for aliases.
10359 * dwarf2read.c (read_import_statement): Figure out local alias
10360 for the import and pass it on to cp_add_using.
10361 (read_namespace): Pass alias argument to cp_add_using.
10362
d18b8b7a
HZ
103632010-02-05 Hui Zhu <teawater@gmail.com>
10364
10365 * defs.h (gdb_bfd_errmsg): New extern.
10366 * exec.c (exec_file_attach): Change bfd_errmsg to
10367 gdb_bfd_errmsg.
10368 * utils.c (AMBIGUOUS_MESS1): New macro.
10369 (AMBIGUOUS_MESS2): New macro.
10370 (gdb_bfd_errmsg): New function.
10371
48379de6
DE
103722010-02-04 Doug Evans <dje@google.com>
10373
10374 * solib-svr4.c (enable_break): Add comment.
10375
4ee73e90
AG
103762010-02-04 Anthony Green <green@moxielogic.com>
10377
10378 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
10379 gracefully.
10380
1a334831
TT
103812010-02-04 Tom Tromey <tromey@redhat.com>
10382
10383 * valops.c (search_struct_field): Account for
10384 value_embedded_offset. Fix check for virtual base past the end of
10385 the object. Use value_copy when making a slice of the value.
10386
1180b2c8
L
103872010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10388
10389 PR tui/9622
10390 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
10391 only if gdb_stdout is a tty.
10392
c3f08eb7
L
103932010-02-04 H.J. Lu <hongjiu.lu@intel.com>
10394
10395 * target-descriptions.c: Include "osabi.h".
10396 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
10397 OSABI.
10398
2d33f7b8
TG
103992010-02-04 Tristan Gingold <gingold@adacore.com>
10400
10401 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10402 (macho_symtab_read): Adjust calls to macho_add_oso.
10403 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
10404 (macho_symfile_read): Adjust call to macho_oso_symfile.
10405 (macho_new_init): Move this function after declarations.
10406 (macho_symfile_init): Ditto.
10407 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
10408 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
10409
11334b82
VP
104102010-02-04 Vladimir Prus <vladimir@codesourcery.com>
10411
10412 Include MI command in remotelog.
10413
10414 * mi/mi-main.c (mi_execute_command): Call target_log_command.
10415
ff97be06
L
104162010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10417
10418 * remote.c (remote_state): Remove gdbarch.
10419 (init_remote_state): Don't set gdbarch.
10420 (remote_query_supported): Pass target_gdbarch instead of
10421 rs->gdbarch to gdbarch_qsupported.
10422
75cebea9
L
104232010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10424
10425 * gdbarch.sh: Add qsupported.
10426
10427 * gdbarch.c: Regenerated.
10428 * gdbarch.h: Likewise.
10429
10430 * remote.c (remote_state): Add gdbarch.
10431 (init_remote_state): Set gdbarch.
10432 (remote_query_supported): Support gdbarch_qsupported.
10433
c1dec97b
DJ
104342010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
10435
10436 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
10437 __FreeBSD_kernel_version.
10438
ac8035ab
TG
104392010-02-03 Tristan Gingold <gingold@adacore.com>
10440
10441 * symfile.h (struct sym_fns): Add sym_relocate field.
10442 (default_symfile_relocate): New prototype.
10443 (symfile_relocate_debug_section): First argument is now an objfile.
10444 * symfile.c (default_symfile_relocate): Rename from
10445 symfile_relocate_debug_section, first argument is now an objfile.
10446 (symfile_relocate_debug_section): New function.
10447 * coffread.c (coff_sym_fns): Set sym_relocate field.
10448 * somread.c (som_sym_fns): Ditto.
10449 * mipsread.c (ecoff_sym_fns): Ditto.
10450 * machoread.c (macho_sym_fns): Ditto.
10451 * elfread.c (elf_sym_fns): Ditto.
10452 * dwarf2read.c (dwarf2_read_section): Ditto.
10453 * xcoffread.c (xcoff_sym_fns): Ditto.
10454 * dbxread.c (aout_sym_fns): Ditto.
10455 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
10456 (elfstab_build_psymtabs): Ditto.
10457
be52b756
L
104582010-02-03 H.J. Lu <hongjiu.lu@intel.com>
10459
10460 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
10461
9c3c02fd
TT
104622010-02-02 Tom Tromey <tromey@redhat.com>
10463
10464 * valops.c (value_cast_structs): Try downcasting using the RTTI
10465 type.
10466
f23f4c59
TT
104672010-02-02 Tom Tromey <tromey@redhat.com>
10468
10469 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
10470 (gnuv2_baseclass_offset): Now static.
10471 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
10472 * gnu-v2-abi.h: Remove.
10473
0cc2414c
TT
104742010-02-02 Tom Tromey <tromey@redhat.com>
10475
10476 * m2-typeprint.c (m2_record_fields): Don't use
10477 TYPE_DECLARED_TYPE.
10478 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
10479 (struct main_type) <flag_declared_class>: New field.
10480 (struct cplus_struct_type) <declared_type>: Remove.
10481 <ntemplate_args>: Move earlier.
10482 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
10483 (DECLARED_TYPE_TEMPLATE): Remove.
10484 (TYPE_DECLARED_TYPE): Remove.
10485 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
10486 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
10487 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
10488 TYPE_DECLARED_TYPE.
10489
edf3d5f3
TT
104902010-02-02 Tom Tromey <tromey@redhat.com>
10491
10492 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
10493 * valops.c (search_struct_field): Compute nbases after calling
10494 CHECK_TYPEDEF.
10495 (check_field): Call CHECK_TYPEDEF.
10496 * cp-valprint.c (cp_print_value): Pass correct address to
10497 baseclass_offset. Fix check for virtual base past the end of the
10498 object. Don't offset address passed to cp_print_value_fields or
10499 apply_val_pretty_printer.
10500 (cp_print_value_fields): Fix call to val_print.
10501 (cp_print_value_fields_rtti): New function.
10502 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
10503 * p-valprint.c (pascal_object_print_value_fields): Fix call to
10504 val_print.
10505 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
10506 offset to address.
10507 * language.h (struct language_defn) <la_val_print>: Document.
10508 * c-lang.h (cp_print_value_fields_rtti): Declare.
10509
e4b7f41c
JK
105102010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10511
10512 PR libc/11214:
10513 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10514 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
10515 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
10516
7618e12b
DJ
105172010-02-01 Michael Matz <matz@suse.de>
10518 Daniel Jacobowitz <dan@codesourcery.com>
10519
e4b7f41c 10520 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
10521 functions use a frame pointer.
10522
b381ea14
JK
105232010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10524
10525 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
10526 by a conditional setting DYN_ADDR. Use DYN_ADDR.
10527 * config/djgpp/fnchange.lst: Add translations for
10528 symbol-without-target_section.exp and symbol-without-target_section.c.
10529
0e05dfcb
DJ
105302010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10531
10532 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
10533 (remote_breakpoint_for_pc): Correct invalid_p check.
10534 * gdbarch.c: Regenerated.
10535
f9d67f43
DJ
105362010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10537
10538 * arm-tdep.c (arm_find_mapping_symbol): New function, from
10539 arm_pc_is_thumb.
10540 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
10541 (extend_buffer_earlier): New function.
10542 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
10543 (arm_adjust_breakpoint_address): New function.
10544 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
10545
177321bd
DJ
105462010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10547
10548 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
10549 (arm_linux_thumb2_le_breakpoint): New constants.
10550 (arm_linux_init_abi): Set thumb2_breakpoint and
10551 thumb2_breakpoint_size.
10552 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
10553 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
10554 Implement support for single stepping through IT blocks if
10555 a 32-bit Thumb breakpoint instruction is available.
10556 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
10557 is available, use it when needed.
10558 (arm_remote_breakpoint_from_pc): New function.
10559 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
10560 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
10561 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
10562
a1dcb23a
DJ
105632010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
10564
10565 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
10566 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
10567 * gdbarch.c, gdbarch.h: Regenerated.
10568 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
10569 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
10570 gdbarch_remote_breakpoint_from_pc.
10571
2b009048
DJ
105722010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10573
10574 * infrun.c (prepare_to_proceed): Handle other signals which might
10575 match a breakpoint.
10576 (handle_inferior_event): Move the check for unusual breakpoint
10577 signals earlier.
10578
e4e2711a
JB
105792010-01-29 Paul Hilfinger <hilfinger@adacore.com>
10580
10581 amd64 - function returning record with field straddling 2 registers.
10582 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
10583 a record of length <= 16 in which a field straddles the two
10584 eightbytes.
10585
cba6fab5
JB
105862010-01-29 Joel Brobecker <brobecker@adacore.com>
10587
10588 Implement return values on amd64-windows.
10589 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
10590 (amd64_windows_return_value): New function.
10591 (amd64_windows_init_abi): Call set_gdbarch_return_value with
10592 amd64_windows_return_value.
10593
3af6ddfe
JB
105942010-01-29 Joel Brobecker <brobecker@adacore.com>
10595
10596 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 10597 parameter registers.
3af6ddfe
JB
10598 * i386-tdep.h (struct gdbarch_tdep): Add new field
10599 integer_param_regs_saved_in_caller_frame.
10600 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10601 tdep->integer_param_regs_saved_in_caller_frame to 1.
10602 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
10603 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
10604
80d19a06
JB
106052010-01-29 Joel Brobecker <brobecker@adacore.com>
10606
10607 amd64-windows: memory args passed by pointer during function calls.
10608 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
10609 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
10610 where tdep->memory_args_by_pointer is non-zero.
10611 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
10612 tdep->memory_args_by_pointer to 1.
10613
ba581dc1
JB
106142010-01-29 Joel Brobecker <brobecker@adacore.com>
10615
4966b6c2 10616 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
10617 * i386-tdep.h (enum amd64_reg_class): New, moved here from
10618 amd64-tdep.c.
10619 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
10620 call_dummy_integer_regs, and classify.
10621 * amd64-tdep.h (amd64_classify): Add declaration.
10622 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
10623 (amd64_reg_class): Delete, moved to i386-tdep.h.
10624 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
10625 Replace call to amd64_classify by call to tdep->classify.
10626 (amd64_push_arguments): Get the list of registers to use for
10627 passing integer parameters from the gdbarch tdep structure,
10628 rather than using a hardcoded one. Replace calls to amd64_classify
10629 by calls to tdep->classify.
10630 (amd64_push_dummy_call): Get the register number used for
10631 the "hidden" argument from tdep->call_dummy_integer_regs.
10632 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
10633 and tdep->call_dummy_integer_regs. Set tdep->classify.
10634 * amd64-windows-tdep.c: Add include of gdbtypes.h.
10635 (amd64_windows_dummy_call_integer_regs): New static global.
10636 (amd64_windows_classify): New function.
10637 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
10638 tdep->call_dummy_integer_regs and tdep->classify.
10639
d37346f0
DJ
106402010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10641
10642 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
10643 for the new regcache. All callers updated.
10644 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
10645 (get_thread_arch_regcache): Do not set aspace here.
10646 * regcache.h (regcache_xmalloc): Update declaration.
10647
10648 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
10649 regcache_xmalloc updated.
10650
7434dadd
JB
106512010-01-28 Joel Brobecker <brobecker@adacore.com>
10652
10653 Another -Wunused-function error in procfs.c (sparc-solaris)
10654 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
10655 Only define if SYS_syssgi is defined.
10656 (remove_dbx_link_breakpoint): Delete declaration. Move up.
10657 (dbx_link_addr, insert_dbx_link_bpt_in_file)
10658 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
10659 is itself defined.
10660
16d905e2
CF
106612010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
10662
10663 * windows-nat.c (windows_initialization_done): New variable.
10664 (get_windows_debug_event): Issue error when process dies before
10665 completely initializing.
10666 (do_initial_windows_stuff): Set flag to indicate when we are done with
10667 the initial steps of attaching to the child.
10668
cd55e50f
JK
106692010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10670
10671 * symtab.h (struct symbol <symtab>): New comment on NULL values.
10672
99cc78aa
DE
106732010-01-27 Doug Evans <dje@google.com>
10674
4c7dcb84
DE
10675 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
10676
99cc78aa
DE
10677 * breakpoint.c (bpstat_stop_status): Delete useless code.
10678
52334bf5
JK
106792010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10680
10681 * printcmd.c (display_uses_solib_p): Remove variable section. Access
10682 objfile via SYMBOL_SYMTAB.
10683
708ead4e
TT
106842010-01-26 Tom Tromey <tromey@redhat.com>
10685
10686 PR exp/7643:
10687 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
10688 coerce_array on result.
10689
b14e635e
SW
106902010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10691
10692 * cp-namespace.c (cp_lookup_symbol_namespace): Added
10693 search_parent argument.
10694 (cp_add_using): Initialize 'searched' field.
10695 (reset_directive_searched): New function.
10696 * cp-support.h: Add 'searched' field to using_direct struct.
10697 (cp_lookup_symbol_imports): Ditto.
10698 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
10699 Perform recursive search.
10700 Implement non parent search.
10701 * valops.c (value_maybe_namespace_elt): Updated.
10702
8540c487
SW
107032010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
10704
10705 PR gdb/10929:
10706 * dwarf2read.c (read_lexical_block_scope): Create blocks for
10707 scopes which contain using directives even if they contain no
10708 declarations.
10709 * symtab.c (lookup_symbol_aux): Pass lowest level block to
10710 la_lookup_symbol_nonlocal.
10711 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
10712 cp_lookup_symbol_namespace.
10713 (cp_lookup_symbol_namespace): Perform an import lookup at every
10714 block level.
10715 (cp_lookup_symbol_imports): New function.
10716 (cp_lookup_symbol_in_namespace): New function.
10717
421d5d99
TT
107182010-01-25 Tom Tromey <tromey@redhat.com>
10719
10720 PR gdb/11049:
10721 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
10722 result.
10723
6bcc772d
RO
107242010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10725
10726 * configure.ac: Only use host_os part when disabling TUI on osf.
10727 Use test to check variables, prefix strings with x.
10728 * configure: Regenerate.
10729
10730 * solib-osf.c (osf_current_sos): Initialize tail.
10731
1c1238a5
TG
107322010-01-25 gingold <gingold@adacore.com>
10733
c8d5aac9
L
10734 * windows-nat.c (windows_continue): Use %x to print thread id.
10735 (get_windows_debug_event): Ditto.
1c1238a5 10736
0b92b5bb
TT
107372010-01-22 Tom Tromey <tromey@redhat.com>
10738
10739 PR symtab/11199:
10740 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
10741 type and arguments. Use smash_to_methodptr_type.
10742 (read_structure_type): Call quirk_gcc_member_function_pointer
10743 later.
10744 * gdbtypes.h (smash_to_methodptr_type): Declare.
10745 * gdbtypes.c (smash_to_methodptr_type): New function.
10746 (lookup_methodptr_type): Use it.
10747
0d5392b8
TT
107482010-01-21 Tom Tromey <tromey@redhat.com>
10749
10750 PR symtab/11198:
10751 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
10752 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
10753 * glibc-tdep.c (find_minsym_and_objfile): Remove.
10754 (glibc_skip_solib_resolver): Use
10755 lookup_minimal_symbol_and_objfile.
10756
e6d088ec
KT
107572010-01-21 Kai Tietz <kai.tietz@onevision.com>
10758
10759 * inflow.c (check_syscall): Guard by #if clause for GO32 and
10760 WIN32 targets.
10761
b966cb8a
TT
107622010-01-20 Tom Tromey <tromey@redhat.com>
10763
10764 PR backtrace/10770:
10765 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
10766 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
10767 * dwarf2expr.c (new_dwarf_expr_context): Allocate
10768 dwarf_stack_values, not CORE_ADDRs.
10769 (execute_stack_op): Change DW_OP_div and comparison operators to
10770 use signed operands.
10771
3f81c18a
VP
107722010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10773
10774 Per-inferior args and tty and environment.
10775
10776 * infcmd.c (inferior_args): Rename to ...
10777 (inferior_args_scratch): ... this.
10778 (inferior_io_terminal): Rename to ...
10779 (inferior_io_terminal_scratch): ... this.
10780 (inferior_argc, inferior_argv): Remove.
10781 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10782 inside current_inferior().
10783 (set_inferior_tty_command, show_inferior_tty_command): New.
10784 (get_inferior_args, set_inferior_args): Store inside
10785 current_inferior().
10786 (notice_args_set): Likewise and rename to...
10787 (set_args_command): ... this.
10788 (set_inferior_args_vector): Likewise.
10789 (notice_args_read): Rename to...
10790 (show_args_command): ...new.
10791 (tty_command): Remove.
10792 (run_command_1): Don't free old args, as they are freed by
10793 set_inferior_arg now.
10794 (run_no_args_command): Likewise.
10795 (inferior_environ): Remove.
10796 (run_command_1): Use environment of the current inferior.
10797 (environment_info, set_environment_command)
10798 (unset_environment_command, path_info, path_command): Likewise.
10799 (_initialize_infcmd): Adjust for function and variable renames.
10800 Do not init inferior_environ.
10801 * inferior.h (set_inferior_arg): Adjust prototype.
10802 (struct inferior): New fields args, argc, argv, terminal, environment.
10803 (inferior_environ): Remove declaration.
10804 * inferior.c (free_inferior): Free new fields.
10805 (add_inferior_silent): Initialize 'environment' field.
10806 * main.c (captured_main): Set arguments only after the initial
10807 inferior has been created. Set set_inferior_io_terminal,
10808 not tty_command.
10809 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10810 inferior.
10811 (_initialize_mi_cmd_env): Adjust for disappearance of global
10812 inferior_environ.
10813 * solib.c (solib_find): Use environment of the current inferior.
10814
d8b65138
JK
108152010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10816
10817 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10818 HAVE_PYTHON.
10819 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10820
692465f1
JB
108212010-01-20 Joel Brobecker <brobecker@adacore.com>
10822
10823 Get rid of ada-lang.c:function_name_from_pc.
10824 * ada-lang.c: Add "stack.h" #include.
10825 (function_name_from_pc): Delete.
10826 (is_known_support_routine): Replace call to function_name_from_pc
10827 by call to find_frame_funname.
10828 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10829
95519e0e
TT
108302010-01-19 Tom Tromey <tromey@redhat.com>
10831
10832 PR c++/11026:
10833 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10834 objfile obstack.
10835
95c11dc7
TT
108362010-01-19 Tom Tromey <tromey@redhat.com>
10837
10838 * top.c (stop_sig, float_handler, do_nothing): Remove.
10839
a0f49112
JK
108402010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10841
10842 * breakpoint.c (watchpoint_check): Check the call
10843 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10844 Extend the comment.
8d95cc3b 10845 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10846 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10847 watchpoint-cond-gone-stripped.c.
10848
ceeb3d5a
TT
108492010-01-19 Tom Tromey <tromey@redhat.com>
10850
10851 PR c++/8000:
10852 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10853 into parent scope, and enumerator into grandparent scope.
10854
2b71fc8e
JB
108552010-01-19 Joel Brobecker <brobecker@adacore.com>
10856
10857 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10858
03564ed9
JB
108592010-01-19 Joel Brobecker <brobecker@adacore.com>
10860
10861 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10862 i[34567]86-*-solaris2.1[0-9]*.
10863 * configure.tgt: Likewise.
10864
fb2e7cb4
JB
108652010-01-19 Joel Brobecker <brobecker@adacore.com>
10866
10867 * NEWS: Document the source command enhancement allowing it
10868 to load Python scripts. Document the "set/show script-extension"
10869 commands.
10870
1cb5e2a4
JB
108712010-01-19 Joel Brobecker <brobecker@adacore.com>
10872
10873 Add -Wunused-function to compile flags.
10874 * configure.ac: Add -Wunused-function to build_warnings.
10875 * configure: Regenerate.
10876
0ec6cd0c
JB
108772010-01-19 Joel Brobecker <brobecker@adacore.com>
10878
10879 "delete" ada-lex.c:input function, not used.
10880 * ada-lex.l: #define YY_NO_INPUT.
10881
b74845da
JB
108822010-01-19 Joel Brobecker <brobecker@adacore.com>
10883
10884 Delete free_named_symtabs and associated cleanup.
10885 * symfile.h (free_named_symtabs): Delete declaration.
10886 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10887 (cashier_psymtab): Comment function out.
10888 Delete declaration.
10889 (free_named_symtabs): Delete.
10890 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10891 * dbxread.c (end_psymtab): Likewise.
10892 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10893 * exec.c (exec_close_1): Ditto.
10894 * xcoffread.c (xcoff_end_psymtab): Likewise.
10895
65c06092
JB
108962010-01-19 Joel Brobecker <brobecker@adacore.com>
10897
10898 * stack.c (print_block_frame_labels): Comment function out.
10899
d5cd6034
JB
109002010-01-19 Joel Brobecker <brobecker@adacore.com>
10901
10902 Delete unused or undefined functions.
10903 * breakpoint.c (ep_parse_optional_filename): Delete.
10904 * dcache.c (dcache_write_line): Remove declaration.
10905 * infrun.c (build_infrun): Remove declaration.
10906 * tracepoint.c (tracepoint_save_command): Remove declaration.
10907 * linux-nat.c (init_lwp_list): Delete. No longer used.
10908 * event-loop.c (check_async_signal_handlers): Delete declaration.
10909 * infrun.c (init_execution_control_state): Delete.
10910 (proceed): Update comment to avoid mentioning
10911 init_execution_control_state.
10912 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10913 * ada-lang.c (ada_to_static_fixed_value): Delete.
10914 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10915 * cp-namespace.c (cp_copy_usings): Delete.
10916 * xml-syscall.c (xml_number_of_syscalls): Delete.
10917 * progspace.c (find_program_space_by_num): Delete.
10918 * inflow.c (handle_sigio): Delete declaration.
10919 * hppa-tdep.c (hppa_alignof): Delete.
10920 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10921 (mipsnbsd_core_osabi_sniffer): Delete.
10922
4e8f195d
TT
109232010-01-18 Tom Tromey <tromey@redhat.com>
10924
10925 PR c++/9680:
10926 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10927 (CONST_CAST): New tokens.
10928 (exp): Add new productions.
10929 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10930 reinterpret_cast.
10931 (is_cast_operator): New function.
10932 (yylex): Handle cast operators specially.
10933 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10934 UNOP_REINTERPRET_CAST>: New cases.
10935 * expprint.c (print_subexp_standard): Likewise.
10936 (op_name_standard): Likewise.
10937 (dump_subexp_body_standard): Likewise.
10938 * parse.c (operator_length_standard): Likewise.
10939 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10940 UNOP_REINTERPRET_CAST.
10941 * gdbtypes.c (class_types_same_p): New function.
10942 (is_ancestor): Use it.
10943 (is_public_ancestor): New function.
10944 (is_unique_ancestor_worker): Likewise.
10945 (is_unique_ancestor): Likewise.
10946 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10947 (is_unique_ancestor): Declare.
10948 * valops.c (value_reinterpret_cast): New function.
10949 (dynamic_cast_check_1): Likewise.
10950 (dynamic_cast_check_2): Likewise.
10951 (value_dynamic_cast): Likewise.
10952 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10953
d9c57d9f
JB
109542010-01-18 Joel Brobecker <brobecker@adacore.com>
10955
10956 Fix build failure when building without Python support.
10957 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10958 is not defined.
10959
f80d3ff2
JB
109602010-01-18 Joel Brobecker <brobecker@adacore.com>
10961
10962 Use XVS field type instead of doing a parallel lookup.
10963 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10964 if it is a reference type instead of doing a type lookup using
10965 the XVS field name.
10966
5bf03f13
JB
109672010-01-18 Joel Brobecker <brobecker@adacore.com>
10968
10969 Trust PAD types instead of using PAD___XVS.
10970 * ada-lang.c (trust_pad_over_xvs): New static variable.
10971 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10972 parallel XVS type, follow the XVS type instead of the PAD type.
10973 (unwrap_value): Make sure that there is no parallel XVE type
10974 before returning the value as is.
10975 (set_ada_list, show_ada_list): New static variables.
10976 (set_ada_command, show_ada_command): New functions.
10977 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10978 Add new "set/show ada trust-PAD-over-XVS" setting.
10979
973817a3
JB
109802010-01-18 Tom Tromey <tromey@redhat.com>
10981 Thiago Jung Bauermann <bauerman@br.ibm.com>
10982
10983 Allow "source" to load python scripts.
10984 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10985 * python/python.c (source_python_script): New function.
10986 * python/python.h (source_python_script): Add declaration.
10987 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10988 (script_ext_off, script_ext_soft, script_ext_strict)
10989 (script_ext_enums, script_ext_mode): New static constants.
10990 (show_script_ext_mode, find_and_open_script): New functions.
10991 (source_script): Enhance to handle Python scripts.
10992 (init_cli_cmds): Add set/show script-extension commands.
10993
98e03262
SS
109942010-01-16 Stan Shebs <stan@codesourcery.com>
10995
10996 * tracepoint.h (struct trace_status): Use unsigned long long
10997 instead of size_t.
10998 * tracepoint.c (trace_status_command): Fix printf directive.
10999 (trace_save_command): Check fwrite returns, fix printf directive.
11000 (trace_filename): New global.
11001 (tfile_open): Set it, check read returns.
11002 (tfile_close): Free trace_filename.
11003 (tfile_get_traceframe_address): Check read returns.
11004 (tfile_trace_find): Ditto.
11005 (tfile_fetch_registers): Ditto.
11006 (tfile_xfer_partial): Ditto.
11007 (tfile_get_trace_state_variable_value): Ditto.
11008
00bf0b85
SS
110092010-01-15 Stan Shebs <stan@codesourcery.com>
11010
11011 Add trace file support.
11012 * tracepoint.h (enum trace_stop_reason): New enum.
11013 (struct trace_status): New struct.
11014 (parse_trace_status): Declare.
11015 (struct uploaded_tp): Move here from remote.c,
11016 add fields for actions.
11017 (struct uploaded_tsv): New struct.
11018 * tracepoint.c (tfile_ops): New target vector.
11019 (trace_fd): New global.
11020 (tfile_open): New function.
11021 (tfile_close): New function.
11022 (tfile_files_info): New function.
11023 (tfile_get_trace_status): New function.
11024 (tfile_get_traceframe_address): New function.
11025 (tfile_trace_find): New function.
11026 (tfile_fetch_registers): New function.
11027 (tfile_xfer_partial): New function.
11028 (tfile_get_trace_state_variable_value): New function.
11029 (init_tfile_ops): New function.
11030 (_initialize_tracepoint): Call it, add tfile target.
11031 (trace_status): New global.
11032 (current_trace_status): New function.
11033 (trace_running_p): Remove, change all users to get from
11034 current_trace_status()->running.
11035 (get_trace_status): Remove.
11036 (trace_status_command): Call target_get_trace_status directly,
11037 report more detail including tracing stop reasons.
11038 (trace_find_command): Always allow tfind on a file.
11039 (trace_find_pc_command): Ditto.
11040 (trace_find_tracepoint_command): Ditto.
11041 (trace_find_line_command): Ditto.
11042 (trace_find_range_command): Ditto.
11043 (trace_find_outside_command): Ditto.
11044 (trace_frames_offset, cur_offset): Declare as off_t.
11045 (trace_regblock_size): Rename from reg_size, update users.
11046 (parse_trace_status): New function.
11047 (tfile_interp_line): New function.
11048 (disconnect_or_stop_tracing): Ensure current trace
11049 status before asking what to do.
11050 (stop_reason_names): New global.
11051 (trace_save_command): New command.
11052 (get_uploaded_tp): Move here from remote.c.
11053 (find_matching_tracepoint): Ditto.
11054 (merge_uploaded_tracepoints): New function.
11055 (parse_trace_status): Use stop_reason_names.
11056 (_initialize_tracepoint): Define tsave command.
11057 * target.h (target_ops): New fields to_save_trace_data,
11058 to_upload_tracepoints, to_upload_trace_state_variables,
11059 to_get_raw_trace_data, change to_get_trace_status
11060 to take a pointer to a status struct.
11061 (target_save_trace_data): New macro.
11062 (target_upload_tracepoints): New macro.
11063 (target_upload_trace_state_variables): New macro.
11064 (target_get_raw_trace_data): New macro.
11065 * target.c (update_current_target): Add new methods, change
11066 signature of to_get_trace_status.
11067 * remote.c (hex2bin): Make globally visible.
11068 (bin2hex): Ditto.
11069 (remote_download_trace_state_variable): Download name also.
11070 (remote_get_trace_status): Update parameter, use
11071 parse_trace_status.
11072 (remote_save_trace_data): New function.
11073 (remote_upload_tracepoints): New function.
11074 (remote_upload_trace_state_variables): New function.
11075 (remote_get_raw_trace_data): New function.
11076 (remote_start_remote): Use them.
11077 (_initialize_remote_ops): Add operations.
11078 * ax-gdb.c: Include breakpoint.h.
11079 * breakpoint.c (create_tracepoint_from_upload): Use
11080 break_command_really, return tracepoint, warn about unimplemented
11081 parts.
11082 * NEWS: Mention trace file addition.
11083
d904de5b
JK
110842010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11085
11086 Fix compilation warning on gcc-3.4.
11087 * exec.c (print_section_info): Move the `displacement' variable
11088 initialization to its declaration.
11089
64aa9731
JK
110902010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11091
11092 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
11093 comparison.
11094
ca1f5def 110952010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
11096
11097 "info tasks" broken by typedefs in ATCB type definitions.
11098 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
11099 ada_check_typedef before retrieving the length of the type for
11100 regular fields.
11101
12ab9e09
JB
111022010-01-15 Joel Brobecker <brobecker@adacore.com>
11103
11104 Do not use name-based lookup for unconstrained packed arrays.
11105 * ada-lang.c (find_parallel_type_by_descriptive_type):
11106 Limit the fallback to name-based lookups to the case where
11107 the type is a constrained packed array.
11108
c389c3dc
JB
111092010-01-15 Joel Brobecker <brobecker@adacore.com>
11110
11111 Enhance gdb-gdb.py to handle main_type.type_specific.
11112 * gdb-gdb.py: Print the type-specific part of struct main_type.
11113
7991dee7
JK
111142010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11115
11116 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
11117 * configure: Regenerate.
11118 * config.in: Regenerate.
11119 * utils.c: Include sys/resource.h.
11120 (dump_core, can_dump_core): New.
11121 (internal_vproblem): Update the comment. Check can_dump_core while
11122 setting dump_core_p. Replace two abort calls by dump_core calls.
11123
93c26624
JK
111242010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11125 Eli Zaretskii <eliz@gnu.org>
11126
11127 * NEWS: Document the PIE support.
11128
55235ad7
JK
111292010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11130
11131 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
11132 (check_is_pie_binary, _initialize_linux_tdep): Remove.
11133
41752192
JK
111342010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11135
11136 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
11137 Replace exec_entry_point call by bfd_get_start_address.
11138
9f2982ff
JK
111392010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11140
11141 Support Valgrind attachments broken by the PIE support.
11142 * auxv.c: Include gdbcore.h.
11143 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
11144 parameters ops, object and annex. Remove their assertions.
11145 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
11146 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
11147 (memory_xfer_auxv): ... here.
11148 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
11149 memory_xfer_auxv.
11150 * procfs.c (procfs_xfer_partial): Likewise.
11151 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
11152 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
11153 (svr4_solib_create_inferior_hook): Conditionalize the
11154 svr4_relocate_main_executable call.
11155
61f0d762
JK
111562010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11157
11158 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
11159 target_section. Find SECT in current_target_sections, gdb_assert it.
11160 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
11161 New variable abfd.
11162 * symtab.c (lookup_objfile_from_block): Return the binary file instead
11163 of separate debug info file.
11164
51bee8e9
JK
111652010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11166
11167 Support PIEs with no symfile_objfile.
11168 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
11169 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
11170
b8040f19
JK
111712010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11172
11173 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
11174 code part to ...
11175 (svr4_static_exec_displacement): ... a new function.
11176 (svr4_exec_displacement): New function.
11177 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
11178 new_offsets using alloca now. Remove variable old_chain and changed.
11179 Call objfile_relocate unconditionally now.
11180
eb90ce83
DE
111812010-01-14 Doug Evans <dje@google.com>
11182
11183 * gdbtypes.c (arch_flags_type): Fix comment.
11184 * gdbtypes.h (arch_composite_type): Fix comment.
11185
bdfed3bc
TG
111862009-01-14 Tristan Gingold <gingold@adacore.com>
11187
11188 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
11189 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
11190 to symbol_file_add_from_bfd. Add OSO as separate objfile.
11191 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
11192 macho_add_oso_symfile.
11193 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
11194
1596ad23
JB
111952010-01-14 Joel Brobecker <brobecker@adacore.com>
11196
11197 Tru64: Dead threads are never deleted.
11198 * dec-thread.c (dec_thread_ptid_is_alive): New function.
11199 (dec_thread_count_gdb_threads): Fix counter increment.
11200 (dec_thread_add_gdb_thread): Fix *listp increment.
11201 (resync_thread_list): Fix bug in deletion of dead threads that
11202 caused all threads to be deleted, instead of just the dead ones.
11203
be759fcf
PM
112042010-01-13 Phil Muldoon <pmuldoon@redhat.com>
11205
11206 PR python/10705
11207
11208 * python/python-internal.h: Add lazy_string_object_type
11209 definition.
11210 (create_lazy_string_object, gdbpy_initialize_lazy_string)
11211 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
11212 * python/py-value.c (valpy_lazy_string): New function.
11213 (convert_value_from_python): Add lazy string conversion.
11214 * python/py-prettyprint.c (pretty_print_one_value): Check if
11215 return is also a lazy string.
11216 (print_string_repr): Add lazy string printing branch.
11217 (print_children): Likewise.
11218 * python/py-lazy-string.c: New file. Implement lazy strings.
11219 * python/python.c (_initialize_python): Call
11220 gdbpy_initialize_lazy_string.
11221 * varobj.c (value_get_print_value): Add lazy string printing
11222 branch. Account for encoding.
11223 * c-lang.c (c_printstr): Account for new encoding argument. If
11224 encoding is NULL, find encoding suited for type, otherwise use
11225 user encoding.
11226 * language.h (language_defn): Add encoding argument.
11227 (LA_PRINT_STRING): Likewise.
11228 * language.c (unk_lang_printstr): Update to reflect new encoding
11229 argument to language_defn.
11230 * ada-lang.h (ada_printstr): Likewise.
11231 * c-lang.h (c_printstr): Likewise.
11232 * p-lang.h (pascal_printstr);
11233 * f-lang.c (f_printstr): Likewise.
11234 * m2-lang.c (m2_printstr): Likewise.
11235 * objc-lang.c (objc_printstr): Likewise.
11236 * p-lang.c (pascal_printstr): Likewise.
11237 * scm-lang.c (scm_printstr): Likewise.
11238 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
11239 encoding argument.
11240 * ada-valprint.c (ada_printstr): Likewise.
11241 * f-valprint.c (f_val_print): Likewise
11242 * m2-valprint.c (m2_val_print): Likewise.
11243 * p-valprint.c (pascal_val_print): Likewise.
11244 * expprint.c (print_subexp_standard): Likewise.
11245 * valprint.c (val_print_string): Likewise.
11246 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
11247 (SUBDIR_PYTHON_SRCS): Likewise.
11248 (py-lazy-string.o): New rule.
11249
1fe72117 112502010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
11251
11252 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
11253 uninitialized" warning from gcc on local `tree'.
11254
dc146f7c
VP
112552010-01-13 Vladimir Prus <vladimir@codesourcery.com>
11256
11257 Implement core awareness.
11258
11259 * bcache.c (compare_ints): Remove
11260 (print_percentage): Use compare_positive_ints.
11261 * defs.h (compare_positive_ints): Declare.
11262 * linux-nat.h (struct lin_lwp): New field core.
11263 (linux_nat_core_of_thread_1): Declare.
11264 * linux-nat.c (add_lwp): Init the 'core' field.
11265 (linux_nat_wait_1): Record the core.
11266 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
11267 (linux_nat_add_target): Register the above.
11268 * linux-thread-db.c (update_thread_core): New.
11269 (thread_db_find_new_threads): Update core information for
11270 every thread.
11271 * remote.c (struct private_thread_info): New.
11272 (free_private_thread_info, demand_private_info): New.
11273 (PACKET_qXfer_threads, use_osdata_threads): New.
11274 (struct thread_item, threads_parsing_context
11275 (start_thread, end_thread, thread_attributes)
11276 (thread_children, threads_children, threads_elements): New.
11277 (remote_threads_info): Try qXfer:threads before anything
11278 else.
11279 (remote_protocol_packets): Register qXfer:threads.
11280 (remote_open_1): Init use_osdata_threads.
11281 (struct stop_reply): New field 'core'.
11282 (remote_parse_stop_reply): Parse core number.
11283 (process_stop_reply): Record core number.
11284 (remote_xfer_partial): Handle qXfer:threads.
11285 (remote_core_of_thread): New.
11286 (init_remote_ops): Register remote_core_of_thread.
11287 (_initialize_remote): Register qXfer:read.
11288 * target.c (target_core_of_thread): New
11289 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
11290 (struct target_ops): New field to_core_of_threads.
11291 (target_core_of_thread): Declare.
11292 * gdbthread.h (struct thread_info): New field private_dtor.
11293 * thread.c (print_thread_info): Report the core.
11294 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
11295 * utils.c (compare_positive_ints): New.
11296 * features/threads.dtd: New.
11297 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
11298 * mi/mi-main.c (struct collect_cores_data, collect_cores)
11299 (do_nothing, free_vector_of_osdata_items)
11300 (splay_tree_int_comparator, free_splay_tree): New.
11301 (print_one_inferior_data): Implemented printing of selected
11302 inferiors. Collect and print cores.
11303 (output_cores): New.
11304 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
11305 thread groups together with --available.
11306
d30c5336
JK
113072010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11308
11309 * configure: Regenerate (for _STRUCTURED_PROC).
11310
02893727
JB
113112010-01-12 Joel Brobecker <brobecker@adacore.com>
11312
11313 Delete dead function.
11314 * ada-lang.c (extract_string): Delete. No longer used.
11315
46ed2d6f
JB
113162010-01-12 Joel Brobecker <brobecker@adacore.com>
11317
11318 Fix -Wunused warning in dec-thread.c.
11319 * dec-thread.c (dec_thread_count_gdb_threads)
11320 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
11321
606b8d1a
JB
113222010-01-12 Joel Brobecker <brobecker@adacore.com>
11323
11324 * ada-valprint.c (ada_print_floating): Remove trailing space.
11325
b4ba55a1
JB
113262010-01-12 Joel Brobecker <brobecker@adacore.com>
11327
11328 Add support for DW_AT_GNAT_descriptive_type.
11329 * gdbtypes.h (enum type_specific_kind): New enum.
11330 (struct main_type) [type_specific_field]: New component.
11331 [type_specific]: Add new component "gnat_stuff".
11332 (struct gnat_aux_type): New type.
11333 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
11334 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
11335 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
11336 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
11337 (TYPE_SPECIFIC_FIELD): New macros.
11338 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
11339 type does not hold any cplus-specific data.
11340 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
11341 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
11342 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
11343 cplus-specific data.
11344 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
11345 Set new component TYPE_SPECIFIC_FIELD (type).
11346 (gnat_aux_default): New constant.
11347 (allocate_gnat_aux_type): New function.
11348 (init_type): Add initialization the type-specific stuff for
11349 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
11350 (print_gnat_stuff): New function.
11351 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
11352 specific data. Adjust code that prints the contents of the
11353 type-specific union using the TYPE_SPECIFIC_FIELD value.
11354 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
11355 the type cplus stuff for Ada types.
11356 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
11357 Error out if these routines are called with an Ada type.
11358 (read_structure_type, read_array_type, read_subrange_type):
11359 Add call to set_descriptive_type.
11360 (set_die_type): Initialize the gnat-specific data if necessary.
11361 (need_gnat_info, die_descriptive_type, set_descriptive_type):
11362 New functions.
11363 * ada-lang.c (decode_constrained_packed_array_type): Use
11364 decode_constrained_packed_array_type instead of doing a standard
11365 lookup to locate a parallel type.
11366 (find_parallel_type_by_descriptive_type): New function.
11367 (ada_find_parallel_type_with_name): New function.
11368 (ada_find_parallel_type): Reimplement using
11369 ada_find_parallel_type_with_name.
11370 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
11371 to check if type has a cplus stuff.
11372 * linespec.c (total_number_of_methods): Likewise.
11373 * mdebugread.c (new_type): Likewise.
11374
b0f02ee9
JK
113752010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11376
11377 * NEWS: Document the 0b binary number prefix parsing.
11378
b260e109
JK
113792010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11380
11381 * objfiles.c (objfile_relocate1): Change the return type to int.
11382 Describe the new return value. Return non-zero if data changed.
11383 (objfile_relocate): New variable changed. Set it. Call
11384 breakpoint_re_set depending on CHANGED.
11385
b5cfddf5
JK
113862010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11387
11388 Implement binary numbers parsing.
11389 * c-exp.y (parse_number): New case 'b' and 'B'.
11390
e0ae4240
JK
113912010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11392 Tristan Gingold <gingold@adacore.com>
11393
11394 * solib.c (info_sharedlibrary_command): Replace
11395 objfile_has_partial_symbols and objfile_has_full_symbols calls by
11396 objfile_has_symbols.
11397
6e0e5977
JB
113982010-01-10 Joel Brobecker <brobecker@adacore.com>
11399
11400 * NEWS: Document the improvements made to the mips-irix port.
11401
7348c5e1
JB
114022010-01-09 Joel Brobecker <brobecker@adacore.com>
11403
11404 Fix the documentation of valprint.c:value_print.
11405 * valprint.c (value_print): Update the function description to
11406 mention that the syntax of the output follows the current_language,
11407 not necessarily C.
11408
567995e1
JK
114092010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11410
11411 Fix displacement of separate debug info files.
11412 * objfiles.c (objfile_relocate): Rename to ...
11413 (objfile_relocate1): ... here and make it static. Extend the comment.
11414 (objfile_relocate): New function.
11415 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
11416 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
11417 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
11418 allocated using alloca.
11419 * symfile.c (copy_section_addr_info): Remove.
11420 (build_section_addr_info_from_objfile): Make it global. New variables
11421 addr_bit and mask, use them.
11422 * symfile.h (build_section_addr_info_from_objfile): New prototype.
11423 (copy_section_addr_info): Remove.
11424
6d8eadbd
JB
114252010-01-09 Joel Brobecker <brobecker@adacore.com>
11426
11427 Signal unwinder for mips-irix N32.
11428 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
11429 tramp-frame.h.
11430 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
11431 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
11432 (SIGCONTEXT_LO_OFF): New macros.
11433 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
11434 (mips_irix_n32_tramp_frame): New static constant.
11435 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
11436
27087a3d
JB
114372010-01-09 Joel Brobecker <brobecker@adacore.com>
11438
11439 Breakpoint in shared library does not work on mips-irix.
11440 * procfs.c: #include "observer.h".
11441 (procfs_inferior_created): New function, moving here the code
11442 which unsets the syssgi syscall-exit notifications.
11443 (procfs_create_inferior): Remove the code which unsets the syssgi
11444 syscall-exit notifications. It is too early to do this here.
11445 (_initialize_procfs): Attach the procfs_inferior_created observer.
11446
f08877ba
JB
114472010-01-09 Joel Brobecker <brobecker@adacore.com>
11448
11449 Wrong return convention for arrays (mips-irix).
11450 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
11451 128 bits or smaller are returned the same way as structs
11452 and unions of the the same size.
11453
e4b97d48
JB
114542010-01-09 Joel Brobecker <brobecker@adacore.com>
11455
11456 Cannot set the PC on mips-irix.
11457 * irix5-nat.c (fill_gregset): Check regno against the raw PC
11458 register number, no the cooked one.
11459
11377e68
JB
114602010-01-09 Joel Brobecker <brobecker@adacore.com>
11461
11462 Error while loading core file on mips-irix.
11463 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
11464 if debugging from a core file.
11465
b2391021
JB
114662010-01-09 Joel Brobecker <brobecker@adacore.com>
11467
11468 GDB hangs when attaching to process on mips-irix.
11469 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
11470 attaching to a process.
11471
f2ec0ecf
JB
114722010-01-09 Joel Brobecker <brobecker@adacore.com>
11473
11474 Use the correct breakpoint instruction on mips-irix.
11475 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
11476 containing the correct breakpoint instruction to use on mips-irix.
11477 Use it when the osabi is GDB_OSABI_IRIX.
11478
3c95f01c
JB
114792010-01-09 Joel Brobecker <brobecker@adacore.com>
11480
11481 -Wunused warning in procfs.c (mips-irix only).
11482 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
11483 throughout instead of using praddset and prdelset respectively.
11484
4b7703ad
JB
114852010-01-09 Joel Brobecker <brobecker@adacore.com>
11486
11487 GDB crash while stepping into function.
11488 * infrun.c (handle_inferior_event): Refetch the current frame
11489 after handling what.main_action, in case that pointer became
11490 dangling.
11491
12c89474
JB
114922010-01-09 Joel Brobecker <brobecker@adacore.com>
11493
11494 Fix build failure of solaris-hosted cross debuggers.
11495 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
11496
1a3fd262 114972010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
11498
11499 Fix build failure on sparc-solaris.
11500 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
11501
75242ef4
JK
115022010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11503
11504 Move some symfile code into subroutines.
11505 * symfile.h (relative_addr_info_to_section_offsets)
11506 (addr_info_make_relative): New prototypes.
11507 * symfile.c (default_symfile_offsets): Move a part to ...
11508 (relative_addr_info_to_section_offsets): ... this new function.
11509 (default_symfile_offsets): Call it.
11510 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
11511 this part to ...
11512 (addr_info_make_relative): ... this new function.
11513
268a4a75
JK
115142010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
11515
11516 Add from_tty to solib_create_inferior_hook.
11517 * infcmd.c (post_create_inferior): Move solib_add after
11518 solib_create_inferior_hook. Pass from_tty to
11519 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
11520 0 from_tty and comment why.
11521 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
11522 * linux-nat.c (linux_child_follow_fork): Likewise.
11523 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
11524 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
11525 from_tty.
11526 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
11527 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
11528 * solib-null.c (null_solib_create_inferior_hook): Likewise.
11529 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
11530 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
11531 * solib-som.c (som_solib_create_inferior_hook): Likewise.
11532 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
11533 Pass it to svr4_so_ops.solib_create_inferior_hook.
11534 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
11535 from_tty.
11536 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
11537 solib_add.
11538 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
11539 enable_break.
11540 * solib-target.c (solib_target_solib_create_inferior_hook): New
11541 parameter from_tty.
11542 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
11543 it to ops->solib_create_inferior_hook.
11544 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
11545 Move solib_add after solib_create_inferior_hook, call it now with
11546 from_tty as 0. New comment there.
11547 * solib.h (solib_create_inferior_hook): New parameter from_tty.
11548 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
11549 Likewise.
11550
cf00dfa7
VP
115512010-01-08 Vladimir Prus <vladimir@codesourcery.com>
11552
11553 Fix multiexec race.
11554 * infrun.c (handle_inferior_event): Use get_thread_regcache
11555 with events ptid, not get_current_regcache.
11556
f91e5ac3
JB
115572009-01-08 Joel Brobecker <brobecker@adacore.com>
11558
11559 GDB crash with empty executable name (MinGW).
11560 * source.c (openp): Add assert that parameter string is not NULL.
11561 if parameter string is an empty string, then return with a failure
11562 immediately.
11563
92b9ce5b
JB
115642009-01-08 Joel Brobecker <brobecker@adacore.com>
11565
11566 Get rid of support for VAX Floats.
11567 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11568 (ada_vax_float_print_function): Delete.
11569 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
11570 (ada_vax_float_print_function): Delete.
11571 * ada-typeprint.c (print_vax_floating_point_type): Delete.
11572 (ada_print_type): Remove support for VAX floats.
11573 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
11574
268a4a75 115752010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
11576
11577 * stabsread.c (read_args): Handle zero arguments.
11578
f0f20949
JB
115792009-01-08 Joel Brobecker <brobecker@adacore.com>
11580
11581 Cannot find in-tree libiconv.a after reconfigure.
11582 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
11583 that we can use, then cache the path to this archive.
11584 * configure: Regenerate.
11585
6b6218c5
SS
115862010-01-07 Stan Shebs <stan@codesourcery.com>
11587
35b1e5cc
SS
11588 Make tracepoint operations go through target vector.
11589 * target.h (enum trace_find_type): New enum.
11590 (struct target_ops): New fields to_trace_init,
11591 to_download_tracepoint, to_download_trace_state_variable,
11592 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
11593 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
11594 to_set_disconnected_tracing.
11595 (target_trace_init): New macro.
11596 (target_download_tracepoint): New macro.
11597 (target_download_trace_state_variable): New macro.
11598 (target_trace_start): New macro.
11599 (target_trace_set_readonly_regions): New macro.
11600 (target_get_trace_status): New macro.
11601 (target_trace_stop): New macro.
11602 (target_trace_find): New macro.
11603 (target_get_trace_state_variable_value): New macro.
11604 (target_set_disconnected_tracing): New macro.
11605 * target.c (update_current_target): Inherit and set defaults for
11606 tracepoint operations.
11607 * tracepoint.c (default_collect): Make globally visible.
11608 (target_is_remote): Remove, along with all calls.
11609 (tvariables_info): Call target_get_trace_state_variable_value.
11610 (remote_set_transparent_ranges): Remove.
11611 (trace_start_command): Call target_trace_init,
11612 target_download_tracepoint, etc.
11613 (download_tracepoint): Remove.
11614 (trace_stop_command): Simplify.
11615 (stop_tracing): Call target_trace_stop.
11616 (get_trace_status): Call target_get_trace_status.
11617 (trace_status_command): Add case for targets that cannot trace.
11618 (finish_tfind_command): Change to take numerical arguments, call
11619 target_trace_find.
11620 (trace_find_command): Update call to finish_tfind_command.
11621 (trace_find_pc_command): Ditto.
11622 (trace_find_tracepoint_command): Ditto.
11623 (trace_find_line_command): Ditto.
11624 (trace_find_range_command): Ditto.
11625 (trace_find_outside_command): Ditto.
11626 (set_disconnected_tracing_value): Call
11627 target_set_disconnected_tracing.
11628 * remote.c: Add protocol encoding bits from tracepoint.c.
11629 (trace_error): Move from tracepoint.c.
11630 (remote_get_noisy_reply): Ditto.
11631 (free_actions_list_cleanup_wrapper): Ditto.
11632 (free_actions_list): Ditto.
11633 (remote_trace_init): New function.
11634 (remote_download_tracepoint): New function.
11635 (remote_download_trace_state_variable): New function.
11636 (remote_trace_set_readonly_regions): New function.
11637 (remote_trace_start): New function.
11638 (remote_get_trace_status): New function.
11639 (remote_trace_stop): New function.
11640 (remote_trace_find): New function.
11641 (remote_download_trace_state_variable): New function.
11642 (remote_set_disconnected_tracing): New function.
11643 (init_remote_ops): Add tracepoint operations.
11644
6b6218c5
SS
11645 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
11646
089b4803
TG
116472010-01-07 Tristan Gingold <gingold@adacore.com>
11648
11649 * symfile.c (build_section_addr_info_from_objfile): New function.
11650 (symbol_file_add_separate): Don't use offsets from objfile but
11651 built an addr info.
11652
d5551862
SS
116532010-01-06 Stan Shebs <stan@codesourcery.com>
11654
11655 Support disconnected tracing.
11656 * infcmd.c (detach_command): Ask whether to stop tracing.
11657 * cli/cli-cmds.c (quit_command): Ditto.
11658 * breakpoint.h (struct breakpoint): New field number_on_target.
11659 * breakpoint.c (create_tracepoint_from_upload): New function.
11660 (get_tracepoint_by_number_on_target): New function.
11661 * remote.c (struct remote): New field disconnected_tracing.
11662 (remote_disconnected_tracing_feature): New function.
11663 (remote_protocol_features): Add DisconnectedTracing.
11664 (struct uploaded_tp): New struct.
11665 (uploaded_tps): New global.
11666 (get_uploaded_tp): New function.
11667 (find_matching_tracepoint): New function.
11668 (remote_get_tracing_state): New function.
11669 (remote_start_remote): Call it.
11670 * tracepoint.c (disconnected_tracing): New global.
11671 (trace_start_command): Initialize number_on_target.
11672 (stop_tracing): New function, split out from...
11673 (trace_stop_command): Call stop_tracing.
11674 (get_trace_status): New function, split out from...
11675 (trace_status_command): Call get_trace_status, add info on
11676 disconnection behavior.
11677 (disconnect_or_stop_tracing): New function.
11678 (finish_tfind_command): Translate from number on target.
11679 (trace_find_tracepoint_command): Translate to number on target.
11680 (send_disconnected_tracing_value): New function.
11681 (set_disconnected_tracing): New function.
11682 (_initialize_tracepoint): Add disconnected-tracing variable.
11683 * NEWS: Mention disconnected tracing.
11684
15d123c9
TG
116852010-01-06 Tristan Gingold <gingold@adacore.com>
11686
11687 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
11688 parameter to main_objfile. Iterate on all separate debug objfiles.
11689 * symfile.h (symbol_file_add_separate)
11690 (find_separate_debug_file_by_debuglink): Remove parameter names.
11691 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
11692 (reread_symbols): Use free_objfile_separate_debug.
11693 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
11694 Adjust comment.
11695 (objfile_separate_debug_iterate, add_separate_debug_objfile)
11696 (free_objfile_separate_debug): New prototypes.
11697 * objfiles.c (objfile_separate_debug_iterate): New function.
11698 (add_separate_debug_objfile, free_objfile_separate_debug): New
11699 functions.
11700 (free_objfile): Use free_objfile_separate_debug. Adjust for
11701 multiple separate debug objfile.
11702 (objfile_has_symbols): Adjust comment. Iterate on all separate
11703 debug objfiles.
11704 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
11705 debug objfile.
11706 (lookup_minimal_symbol_text): Ditto.
11707 (lookup_minimal_symbol_by_pc_name): Ditto.
11708 (lookup_minimal_symbol_solib_trampoline): Ditto.
11709 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
11710 debug objfiles.
11711
7a697b8d
SS
117122010-01-05 Stan Shebs <stan@codesourcery.com>
11713
11714 Add fast tracepoints.
11715 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
11716 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
11717 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
11718 * breakpoint.c (tracepoint_type): New function.
11719 (ALL_TRACEPOINTS): Use it.
11720 (should_be_inserted): Ditto.
11721 (bpstat_check_location): Ditto.
11722 (print_one_breakpoint_location): Ditto.
11723 (user_settable_breakpoint): Ditto.
11724 (set_breakpoint_location_function): Ditto.
11725 (disable_breakpoints_in_shlibs): Ditto.
11726 (delete_trace_command): Ditto.
11727 (print_it_typical): Add bp_fast_tracepoint case.
11728 (bpstat_what): Ditto.
11729 (print_one_breakpoint_location): Ditto.
11730 (allocate_bp_location): Ditto.
11731 (mention): Ditto.
11732 (breakpoint_re_set_one): Ditto.
11733 (disable_command): Ditto.
11734 (enable_command): Ditto.
11735 (check_fast_tracepoint_sals): New function.
11736 (break_command_really): Call it.
11737 (ftrace_command): New function.
11738 (_initialize_breakpoint): Add ftrace command.
11739 * gdbarch.sh (fast_tracepoint_valid_at): New.
11740 * gdbarch.h, gdbarch.c: Regenerate.
11741 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
11742 (i386_gdbarch_init): Use it.
11743 * remote.c (struct remote_state): New field fast_tracepoints.
11744 (PACKET_FastTracepoints): New packet config type.
11745 (remote_fast_tracepoint_feature): New function.
11746 (remote_protocol_features): Add FastTracepoints.
11747 (remote_supports_fast_tracepoints): New function.
11748 (_initialize_remote): Add FastTracepoints.
11749 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
11750 * NEWS: Mention fast tracepoints.
11751
737a160e
JB
117522010-01-06 Joel Brobecker <brobecker@adacore.com>
11753
11754 * gdb-gdb.py: New file.
11755
ce6cca6d
MS
117562010-01-05 Michael Snyder <msnyder@vmware.com>
11757
11758 * infrun.c (handle_inferior_event): Fix typo in comment.
11759
0d15807d
JK
117602010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11761
11762 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
11763
7803799a
UW
117642010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11765
c8d5aac9 11766 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
11767 and s390x-linux64.
11768 (s390-linux32-expedite): Define.
11769 (s390-linux64-expedite): Define.
11770 (s390x-linux64-expedite): Define.
11771 * features/s390-acr.xml: New file.
11772 * features/s390-fpr.xml: New file.
11773 * features/s390-core32.xml: New file.
11774 * features/s390-core64.xml: New file.
11775 * features/s390x-core64.xml: New file.
11776 * features/s390-linux32.xml: New file.
11777 * features/s390-linux64.xml: New file.
11778 * features/s390x-linux64.xml: New file.
11779 * features/s390-linux32.c: New generated file.
11780 * features/s390-linux64.c: New generated file.
11781 * features/s390x-linux64.c: New generated file.
11782
11783 * regformats/s390-linux32.dat: New generated file.
11784 * regformats/s390-linux64.dat: New generated file.
11785 * regformats/s390x-linux64.dat: New generated file.
11786 * regformats/reg-s390.dat: Remove.
11787 * regformats/reg-s390x.dat: Remove.
11788
11789 * s390-nat.c: Include "auxv.h" and <elf.h>.
11790 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11791 (s390_target_wordsize): New function.
11792 (s390_auxv_parse): Likewise.
11793 (s390_get_hwcap): Likewise.
11794 (s390_read_description): Likewise.
11795 (_initialize_s390_nat): Install s390_auxv_parse and
11796 s390_read_description.
11797
11798 * s390-tdep.c: Include "features/s390-linux32.c",
11799 "features/s390-linux64.c", and "features/s390x-linux64.c".
11800 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11801 (s390_register_call_saved): New function.
11802 (s390_register_name): Remove.
11803 (s390_register_type): Remove.
11804 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11805 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11806 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11807 (s390_pseudo_register_name): New function.
11808 (s390_pseudo_register_type): New function.
11809 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11810 Handle full GPR pesudos and varying pseudo register numbers.
11811 (s390_pseudo_register_write): Likewise
11812 (s390x_pseudo_register_read): Remove.
11813 (s390x_pseudo_register_write): Likewise.
11814 (s390_register_group): Remove.
11815 (s390_pseudo_register_group): New function.
11816 (s390_regmap_gregset): Add GPR upper halves.
11817 (s390x_regmap_gregset): Likewise.
11818 (s390_regmap_fpregset): Likewise.
11819 (s390_regmap_upper): New global variable.
11820 (s390_upper_regset): New global variable.
11821 (s390_upper_regset_sections): New global variable.
11822 (s390_regset_from_core_section): Handle GPR upper halves.
11823 (s390_core_read_description): New function.
11824 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11825 register information. Handle varying pseudo register numbers.
11826 (s390_backchain_frame_unwind_cache): Likewise.
11827 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11828 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11829 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11830 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11831 Handle varying pseudo register numbers.
11832 (s390_unwind_pc): Handle varying pseudo register numbers.
11833 (s390_dwarf2_prev_register): New function.
11834 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11835 register information. Handle varying pseudo register numbers.
11836 Install s390_dwarf2_prev_register to unwind full GPRs.
11837 (s390_gdbarch_init): Handle target descriptions. Assign varying
11838 pseudo register numbers. Install s390_adjust_frame_regnum.
11839 (_initialize_s390_tdep): Initialize target descriptions.
11840
11841 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11842 (S390_NUM_REGS): Redefine to include upper half registers.
11843 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11844 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11845 (tdesc_s390_linux32): Add declaration.
11846 (tdesc_s390_linux64): Likewise.
11847 (tdesc_s390x_linux64): Likewise.
11848
1b1818e4
UW
118492010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11850
11851 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11852 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11853 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11854 (ppc_linux_vmx_regset_sections): Likewise.
11855 (ppc_linux_fp_regset_sections): Likewise.
11856
11857 * corelow.c (get_core_register_section): Constify arguments.
11858 (get_core_registers): Use gdbarch_core_regset_sections instead
11859 of hard-coded platform-specific register section names.
11860
dcbf108f
UW
118612010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11862
11863 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11864 a register, assume the least-significant part is used.
dcbf108f
UW
11865 (write_pieced_value): Likewise.
11866
704e9165
UW
118672010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11868
11869 * printcmd.c: Include "arch-utils.h".
11870 (do_one_display): Re-parse expression if current architecture changed.
11871
c54eabfa
JK
118722010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11873 Joel Brobecker <brobecker@adacore.com>
11874
11875 * gdbtypes.c (check_typedef): New comment on type length.
11876 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11877 comment on type length.
11878 (value_primitive_field): Keep the original TYPE value, new comment.
11879
50cb2941
JK
118802010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11881
11882 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11883 p_start. Change != comparisons to > and < comparisons.
11884
be66db07
JK
118852010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11886
11887 * cli/cli-script.c (process_next_line): Check P2 overrun.
11888
abd775ce
JB
118892009-01-01 Joel Brobecker <brobecker@adacore.com>
11890
11891 Update the copyright hearder to add year 2010 for most GDB files.
11892
6479260d
JB
118932009-01-01 Joel Brobecker <brobecker@adacore.com>
11894
11895 Fix build failure in inf-ptrace.c.
11896 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11897
4a70f654
JB
118982010-01-01 Joel Brobecker <brobecker@adacore.com>
11899
11900 * top.c (print_gdb_version): Update copyright year.
11901
595939de 119022010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11903
11904 Fix break *FUN'address thread NUM.
11905 * ada-lex.l (task): Expand rule to also match the thread keyword.
11906
70575d34
JB
119072010-01-01 Joel Brobecker <brobecker@adacore.com>
11908
11909 Fix break *FUN'address task NUM.
11910 * ada-lex.l (task): New rule.
11911 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11912 been built before using it.
11913
e1e4d4a4 11914For older changes see ChangeLog-2009.
c906108c
SS
11915\f
11916Local Variables:
11917mode: change-log
11918left-margin: 8
11919fill-column: 74
11920version-control: never
57da7796 11921coding: utf-8
c906108c 11922End: