Eliminate 'is_ancestor' redundant code.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0526b37a
SW
12010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
2
3 * gdbtypes.c (do_is_ancestor): New function.
4 (is_ancestor): Use do_is_ancestor.
5 (is_public_ancestor): Use do_is_ancestor.
6
c1b5be38
PM
72010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
8
9 * ser-go32.c (struct dos_ops): Add missing fdopen field.
10
68770265
MGD
112010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
12
13 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
14
64b00020
DE
152010-10-11 Doug Evans <dje@google.com>
16
17 * c-typeprint.c (c_type_print_modifier): Add note that this prints
18 the address space id too.
19
43b8e241
JK
202010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
21
22 Fix attaching to re-prelinked executables on ppc64.
23 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
24 initialize it, try to adjust FILESZ field by it.
25
417b5110
DJ
262010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
27
28 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
29 messages if info_verbose.
30
3bdf2bbd
KW
312010-10-08 Ken Werner <ken.werner@de.ibm.com>
32
33 * valops.c (value_cast): Handle vector types.
34 * valarith.c (value_binop): Widen scalar to vector if appropriate.
35
ec3d575a
UW
362010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
37
38 * arm-tdep.c (thumb_expand_immediate): New function.
39 (thumb_instruction_changes_pc): Likewise.
40 (thumb2_instruction_changes_pc): Likewise.
41 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
42 prologue parsing. Improved support for optimized code.
43 (thumb_scan_prologue): Do not reply on line-number information,
44 use same heuristics as arm_scan_prologue insead.
45 (skip_prologue_function): Accept functions
46 "__tls_get_addr" and "__aeabi_read_tp".
47
4024ca99
UW
482010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
49 Daniel Jacobowitz <dan@codesourcery.com>
50
51 * arm-tdep.c (thumb_in_function_epilogue_p)
52 (arm_in_function_epilogue_p): New.
53 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
54 gdbarch_in_function_epilogue_p callback.
55
855c153f
DE
562010-10-07 Doug Evans <dje@google.com>
57
00e14314
DE
58 * cc-with-index.sh (output_file): Default to a.out.
59
3876f04e
DE
60 * dwarf2read.c (mapped_index): Rename member index_table to
61 symbol_table and index_table_slots to symbol_table_slots.
62 All uses updated.
63 (create_symbol_hash_table): Renamed from create_index_table.
64 All callers updated.
65 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
66 (write_hash_table): Rename local index_table to symbol_hash_table.
67
855c153f
DE
68 * addrmap.h (addrmap_foreach_fn): New typedef.
69 (addrmap_foreach): Declare.
70 * addrmap.c (struct addrmap_funcs): New member foreach.
71 (addrmap_foreach): New function.
72 (addrmap_fixed_foreach): New function.
73 (addrmap_fixed_funcs): Update.
74 (struct mutable_foreach_data): New struct.
75 (addrmap_mutable_foreach_worker): New function.
76 (addrmap_mutable_foreach): New function.
77 (addrmap_mutable_funcs): Update.
78
1d2a4540
PH
792010-10-07 Paul Hilfinger <hilfinger@adacore.com>
80
81 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
82 more cases.
83
40658b94
PH
842010-10-07 Paul Hilfinger <hilfinger@adacore.com>
85
86 * ada-lang.c (full_match): Declare.
87 (ada_match_name): Rename to match_name (we should avoid prefixing static
88 symbols with "ada_").
89 (match_name): New name for ada_match_name.
90 (struct ada_psym_data): Remove and replace with...
91 (struct match_data): User data for map_matching_symbols.
92 (ada_add_psyms): Remove.
93 (aux_add_nonlocal_symbols): New function, used as callback for
94 map_matching_symbols.
95 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
96 symbols.
97 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
98 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
99 Rework to use map_matching_symbols instead of map_ada_symtabs.
100 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
101 * psymtab.c: Include dependency on dictionary.h.
102 (match_partial_symbol): New function.
103 (ada_lookup_partial_symbol): Remove.
104 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
105 (map_matching_symbols_psymtab): New function.
106 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
107 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
108
c4d840bd
PH
1092010-10-06 Paul Hilfinger <hilfinger@adacore.com>
110
111 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
112 (wild_match): Change API to be consistent with that of strcmp_iw;
113 return 0 for a match, and switch operand order.
114 (full_match): New function.
115 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
116 matching to allow use of hashing.
117 * dictionary.c (struct dict_vector): Generalize iter_name_first,
118 iter_name_next ot iter_match_first, iter_match_next.
119 (iter_name_first_hashed): Replace with iter_match_first_hashed.
120 (iter_name_next_hashed): Replace with iter_match_next_hashed.
121 (iter_name_first_linear): Replace with iter_match_first_linear.
122 (iter_name_next_linear): Replace with iter_match_next_linear.
123 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
124 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
125 (dict_iter_match_first): New function.
126 (dict_iter_match_next): New function.
127 (dict_hash): New function.
128 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
129 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 130
543ecec7
DE
1312010-10-06 Doug Evans <dje@google.com>
132
133 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
134
2f608a3a
KW
1352010-10-06 Ken Werner <ken.werner@de.ibm.com>
136
137 * dwarf2read.c (read_tag_const_type): Handle const arrays.
138
aa2e2d8d
DE
1392010-10-06 Doug Evans <dje@google.com>
140
9c9606fb
DE
141 * Makefile.in (REQUIRED_SUBDIRS): New var.
142 (subdir_do): Verify required subdir Makefiles exist.
143
aa2e2d8d
DE
144 Create subdir data-directory.
145 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
146 data-directory/Makefile.in.
147 (SUBDIRS): Add data-directory.
148 (all): Remove xml-syscall-copy dependency.
149 (xml-syscall-copy): Moved to data-directory/Makefile.in as
150 stamp-syscalls.
151 (xml-syscall-install): Moved to data-directory/Makefile.in as
152 install-syscalls.
153 (install-only): Remove xml-syscall-install dependency.
154 (all-data-directory): New rule.
155 (data-directory/Makefile): New rule.
156 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
157 * configure: Regenerate.
158 * data-directory/Makefile.in: New file.
159 * python/lib/gdb/__init__.py: New file.
160
aa27d0b3
JB
1612010-10-06 Joel Brobecker <brobecker@adacore.com>
162
163 Fix ARI warnings in advance_wild_match.
164 * ada-lang.c (advance_wild_match): Delete local variable t2.
165 Adjust code accordingly. Minor reformatting.
166
2844d6b5
KW
1672010-10-06 Ken Werner <ken.werner@de.ibm.com>
168
169 * gdbtypes.h (struct main_type): Remove flag_nottext.
170 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
171 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
172 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
173 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
174 of TYPE_FLAG_NOTTEXT.
175 (init_type): Remove the initialization of the flag_nottext field.
176 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
177 TYPE_FLAG_NOTTEXT.
178 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
179
2fdf6df6
DE
1802010-10-04 Doug Evans <dje@google.com>
181
ea65fe05
DE
182 * cc-with-index.sh: New file.
183
2fdf6df6
DE
184 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
185 function comment.
186 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
187 (create_cus_from_index, create_addrmap_from_index): Ditto.
188 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
189 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
190 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
191 (eq_strtab_entry, create_strtab, add_string): Ditto.
192 (hash_strtab_entry): Ditto.
193 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
194 (create_index_table, create_mapped_symtab, find_slot): Ditto.
195 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
196 (write_hash_table, add_address_entry, write_psymbols): Ditto.
197 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
198 (write_psymtabs_to_index): Ditto.
2fdf6df6 199
40bc484c
JB
2002010-10-04 Joel Brobecker <brobecker@adacore.com>
201
202 * ada-lang.c: #include "value.h".
203 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
204 arguments. Implement using value_allocate_space_in_inferior
205 instead of allocating memory from the stack.
206 (make_array_descriptor): Remove gdbarch and sp parameters. Update
207 calls to ensure_lval.
208 (ada_convert_actual): Remove gdbarch and sp parameters. Update
209 calls to make_array_descriptor and ensure_lval.
210 * ada-lang.h (ada_convert_actual): Update declaration.
211 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
212
f17618ea
DE
2132010-10-04 Doug Evans <dje@google.com>
214
215 * python/python.c (_initialize_python): Define new function
216 GdbSetPythonDirectory in python. Use it to update sys.path and
217 gdb.__path__.
218
83e3a93c
PH
2192010-10-03 Paul Hilfinger <hilfinger@adacore.com>
220
221 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
222 incorporating and generalizing print_record_field_types.
223 (print_record_field_types): Change return value and update comment.
224 Re-implement using print_selected_record_field_types.
225 (print_choices): Print "=>" here.
226 Handle case of unencoded variant branch.
227 (print_variant_clauses): Reformat comment.
228 Special-case unencoded variant branch.
229
2302010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
231
232 * ada-lang.c (wild_match): Reimplement.
233 Change API to eliminate unused length argument, reverse arguments and
234 make 0 the 'true' return value.
235 (advance_wild_match): New auxiliary function for wild_match to improve
236 readability.
237 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
238 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
239 API for wild_match.
240 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
241 wild_match.
242 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
243
11570e71
DE
2442010-10-01 Doug Evans <dje@google.com>
245
246 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
247 for `save gdb-index' command.
248
72b9f47f
TT
2492010-10-01 Tom Tromey <tromey@redhat.com>
250
251 * symfile.h (allocate_symtab): Update.
252 * symfile.c (allocate_symtab): Make 'filename' const.
253 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
254 (add_psymbol_to_list): Likewise.
255 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
256 const.
257 (add_psymbol_to_list): Update.
258 * mdebugread.c (new_symtab): Make 'name' const.
259 (psymtab_to_symtab_1): Make 'filename' const.
260 * elfread.c (elfstab_offset_sections): Update.
261 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
262 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
263 (psymtab_include_file_name): Update.
264 * dbxread.c (find_stab_function_addr): Make 'filename' const.
265 * buildsym.h (start_subfile): Update.
266 * buildsym.c (start_subfile): Make arguments const.
267
55e39473
MS
2682010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
269
270 * fork-child.c (breakup_args): Fix crash if shell forking is
271 disabled at compile time.
272
05e522ef
JB
2732010-10-01 Joel Brobecker <brobecker@adacore.com>
274
275 * ada-lang.c (desc_bounds): Add handling of the case where
276 the P_BOUNDS field is a pointer to a stub.
277 (desc_data_target_type): Same for P_ARRAY field.
278 (ada_check_typedef): Strip the typedef layers from the type
279 found by ada_find_any_type.
280
49a45ecf
JB
2812010-10-01 Joel Brobecker <brobecker@adacore.com>
282
283 * sparc-tdep.c (sparc32_frame_align): New function.
284 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
285 * sparc64-tdep.c (sparc64_frame_align): New function.
286 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
287
a5916a62
L
2882010-09-30 H.J. Lu <hongjiu.lu@intel.com>
289
290 * defs.h (MAX_REGISTER_SIZE): Set to 64.
291
00b5771c
TT
2922010-09-30 Tom Tromey <tromey@redhat.com>
293
294 * symfile.h (struct sym_fns) <next>: Remove.
295 (add_symtab_fns): Update.
296 * symfile.c (sym_fns_ptr): New typedef.
297 (symtab_fns): Now a VEC.
298 (add_symtab_fns): Update. Change argument type.
299 (find_sym_fns): Update. Change return type.
300 (get_symfile_segment_data): Update.
301 * objfiles.h (struct objfile) <sf>: Now const.
302 * somread.c (som_sym_fns): Now const. Update.
303 * xcoffread.c (xcoff_sym_fns): Now const. Update.
304 * mipsread.c (ecoff_sym_fns): Now const. Update.
305 * machoread.c (macho_sym_fns): Now const. Update.
306 * elfread.c (elf_sym_fns): Now const. Update.
307 (elf_sym_fns_gdb_index): Likewise.
308 * dbxread.c (aout_sym_fns): Now const. Update.
309 * coffread.c (coff_sym_fns): Now const. Update.
310
38f12cfc
TT
3112010-09-30 Tom Tromey <tromey@redhat.com>
312
313 * value.c (value_primitive_field): Take 'offset' into account for
314 packed field.
315
9ae8282d
TT
3162010-09-30 Tom Tromey <tromey@redhat.com>
317
318 * completer.c (count_struct_fields): Handle anonymous structs and
319 unions.
320 (add_struct_fields): Likewise.
321
e9e07ba6
JK
3222010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
323
324 Fix printing parameters of inlined functions.
325 * ada-lang.c (is_known_support_routine)
326 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
327 for find_frame_funname.
328 * python/py-frame.c (frapy_name): Likewise.
329 * stack.c (find_frame_funname): New parameter funcp. Update the
330 function comment. Fill it in.
331 (print_frame): New variable func. Initialize it by
332 find_frame_funname. Print arguments only if FUNC is not NULL. Use
333 FUNC as the parameter of print_args_stub.
334 * stack.h (find_frame_funname): New parameter funcp. Remove the
335 function declaration comment.
336
cd2effb2
JK
3372010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
338
339 PR corefiles/12071.
340 * inferior.c (have_live_inferiors): New variables old_chain, inf and
341 tp. Iterate INFERIOR_LIST and call target_has_execution.
342
bceffbf3
JK
3432010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
344
345 Fix GDB crash on inferior calls with self-referencing classes.
346 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
347 member fields.
348
abc72ce4
DE
3492010-09-29 Doug Evans <dje@google.com>
350
351 Workaround for gcc/45682.
352 * dwarf2read.c (partial_die_info): New fields fixup_called,
353 linkage_name.
354 (guess_partial_die_structure_name): Renamed from guess_structure_name.
355 Move definition next to use. Use linkage_name to determine if class
356 is in a namespace. All callers updated.
357 (fixup_partial_die): Return early if already called.
358 Set fixup_called when done.
359 (guess_full_die_structure_name): New function.
360 (determine_prefix): Call it for class/struct/union dies if c++ and
361 .debug_types section is present and parent is DW_TAG_compile_unit.
362
0ac7be25
JB
3632010-09-28 Joel Brobecker <brobecker@adacore.com>
364
365 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
366 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
367
6e1bb179
JB
3682010-09-28 Joel Brobecker <brobecker@adacore.com>
369
370 * NEWS: Announce Ravenscar Profile support.
371
036b1ba8
JB
3722010-09-28 Joel Brobecker <brobecker@adacore.com>
373 Jerome Guitton <guitton@adacore.com>
374
375 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
376 New files.
377 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
378 ravenscar-sparc-thread.o to gdb_target_obs.
379
474011fb
JB
3802010-09-28 Joel Brobecker <brobecker@adacore.com>
381
382 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
383 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
384
99e24b90
PM
3852010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
386
387 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
388 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
389 skip_main_prologue method.
390
987d643c
TT
3912010-09-27 Tom Tromey <tromey@redhat.com>
392
393 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
394 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
395 Only emit a given psymbol once.
396 (struct signatured_type_index_data) <psyms_seen>: New field.
397 (write_one_signatured_type): Update.
398 (cleanup_htab): New function.
399 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
400 version to 3.
401 (save_gdb_index_command): Update index documentation.
402
d3aff959
TT
4032010-09-27 Tom Tromey <tromey@redhat.com>
404
405 * bcache.c (expand_hash_table): Use hash_function, not hash.
406
716b65bf
TT
4072010-09-27 Tom Tromey <tromey@redhat.com>
408
409 * gdb_wchar.h: Change minimum libiconv to 0x108.
410
1736ad11
JK
4112010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
412
413 Fix lost siginfo_t for inferior calls.
414 * infrun.c
415 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
416 (save_inferior_thread_state): New variables regcache, gdbarch and
417 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
418 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
419 using REGCACHE.
420 (restore_inferior_thread_state): New variables regcache and gdbarch.
421 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
422 REGCACHE. Free also SIGINFO_DATA.
423
4b5246aa
TT
4242010-09-24 Tom Tromey <tromey@redhat.com>
425
426 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
427 MAYBE_SWAPs.
428 (dw2_map_symbol_names): Likewise.
429
2a7d6a25
SW
4302010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
431
432 * valops.c (find_oload_champ_namespace_loop): replace incorrect
433 discard_cleanups do_cleanups.
434
b53a1623
PA
4352010-09-24 Pedro Alves <pedro@codesourcery.com>
436
e6ee044d
PA
437 PR gdb/11842
438
b53a1623
PA
439 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
440 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
441 si_code is < 0. Check for si_code == SI_TIMER before checking for
442 si_code < 0.
443
96a8853a
PA
4442010-09-24 Pedro Alves <pedro@codesourcery.com>
445
446 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
447
39383a48
JB
4482010-09-22 Joel Brobecker <brobecker@adacore.com>
449
450 * ada-tasks.c (read_atcb): Do not compute the task ptid when
451 debugging a core file.
452
d31d2fc3
JK
4532010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 Code cleanup.
456 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
457 (free_objfile) <objfile->name != NULL>: Remove the conditional around
458 xfree.
459 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
460 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
461 Remove.
462 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
463 Remove the conditional.
464 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
465
7f6130ff
JK
4662010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
467
468 * main.c: Include objfiles.h.
469 (captured_main): New variable objfile. Call
470 load_auto_scripts_for_objfile for ALL_OBJFILES.
471
c2b0a229
JK
4722010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
473
474 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
475 DW_TAG_constant.
476
72929c62
JB
4772010-09-22 Joel Brobecker <brobecker@adacore.com>
478
479 * dwarf2read.c (scan_partial_symbols): Add handling of
480 DW_TAG_constant DIEs.
481 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
482
496c0e1b
JB
4832010-09-22 Joel Brobecker <brobecker@adacore.com>
484
485 * configure.ac: Add support for --enable-gdbserver.
486 * configure: Regenerate.
487
ec322823
SW
4882010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
489
490 PR C++/12028
491 * valops.c (find_oload_champ_namespace_loop): removed incorrect
492 'old_cleanups' reassignment.
493
1558ab4c
JK
4942010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
495
496 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
497 characters.
498
875b4ff5
PM
4992010-09-16 Phil Muldoon <pmuldoon@redhat.com>
500
501 PR mi/11407
502 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
503 read_var_value and common_val_print and print a warning.
504
65dedcb2
JK
5052010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
506
507 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
508 keep the list in alphabetical order. Use longer e-mail address.
509
0e780a22
TT
5102010-09-15 Tom Tromey <tromey@redhat.com>
511
512 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
513
62234ccc
TT
5142010-09-15 Tom Tromey <tromey@redhat.com>
515
516 * charset.c (iconv_open): New define.
517 (iconv): Likewise.
518 (iconv_close): Likewise.
519 (phony_iconv_open): Add "phony_" prefix.
520 (phony_iconv_close): Likewise.
521 (phony_iconv): Likewise.
522 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
523 Change how INTERMEDIATE_ENCODING is defined.
524
4950bc1c
DE
5252010-09-15 Doug Evans <dje@google.com>
526
527 * dwarf2read.c (struct die_info): Fix comment.
528
349126ea
AM
5292010-09-15 Alan Modra <amodra@gmail.com>
530
531 PR 4606
532 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
533 than setting SEC_NEVER_LOAD on sections that need not be copied.
534
923c6a3d
TT
5352010-09-14 Tom Tromey <tromey@redhat.com>
536
537 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
538 (start_psymtab_common, allocate_psymtab, discard_psymtab):
539 Declare.
540 * symfile.h (extend_psymbol_list): Remove.
541 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
542 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
543 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
544
a9e6a4bb
JK
5452010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
546
547 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
548 Update the comment.
549
7155d578
TT
5502010-09-14 Tom Tromey <tromey@redhat.com>
551
552 PR symtab/8399:
553 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
554 for unrecognized frame base expression.
555
515ed532
TT
5562010-09-14 Tom Tromey <tromey@redhat.com>
557
558 PR exp/11803:
559 * value.c (value_static_field): Use value_of_variable.
560
b467f580
PM
5612010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
562
563 * m32r-rom.c: Replace winsock.h with winsock2.h header.
564 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
565
450ca57c
SW
5662010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
567
568 PR symtab/11992:
569 * c-exp.y (classify_name): Check is_a_member_of_this before returning
570 UNKNOWN_CPP_NAME.
571
1aee7009
JB
5722010-09-13 Joel Brobecker <brobecker@adacore.com>
573
574 * NEWS: Add x86-lynxos to the list of platforms supported by
575 gdbserver.
576
5ec6ebf9
JB
5772010-09-13 Joel Brobecker <brobecker@adacore.com>
578
579 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
580
1863c96c
TT
5812010-09-13 Tom Tromey <tromey@redhat.com>
582
583 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
584
0c5acf93
L
5852010-09-13 H.J. Lu <hongjiu.lu@intel.com>
586
587 * i386-tdep.c (i386_ymm_type): Set type name to
588 builtin_type_vec256i.
589
1c6272a6
MS
5902010-09-12 Michael Snyder <msnyder@vmware.com>
591
592 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
593
e866c497
L
5942010-09-12 H.J. Lu <hongjiu.lu@intel.com>
595
596 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
597
9191d390
L
5982010-09-11 H.J. Lu <hongjiu.lu@intel.com>
599
600 * amd64-tdep.c (amd64_register_name): Removed.
601 (amd64_init_abi): Don't call set_gdbarch_register_name.
602
603 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
604
605 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
606
8d4d924b
JK
6072010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
608 Paul Bolle <pebolle@tiscali.nl>
609
610 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
611 * cli-logging.c (struct saved_output_files) <targerr>: New.
612 (set_logging_redirect, pop_output_files, handle_redirections):
613 Redirect also gdb_stdtargerr.
614 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
615 declarations.
616 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
617 also gdb_stdtargerr.
618 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
619 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
620 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
621 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
622 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
623 New functions.
624
3329c4b5
PM
6252010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
626
627 * hppa-tdep.c (unwind_command): Use host_address_to_string function
628 to display a host address.
629 * monitor.c (monitor_read_memory): Likewise.
630 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
631
5e8db398
PM
6322010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
633
634 * coffread.c (struct coff_symbol): Change c_value type from `long' to
635 `CORE_ADDRESS' as it might contain target addresses.
636
37049e31
PM
6372010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
638
639 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
640 before cast to pointer to avoid warning.
641
351a3e56
KB
6422010-09-09 Kevin Buettner <kevinb@redhat.com>
643
644 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
645 type to be signed.
349126ea 646
6afafb54
UW
6472010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
648
649 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
650 anonymous class partial DIEs.
651
60430eff
DJ
6522010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
653
654 * dwarf2read.c (dwarf2_compute_name): Check that the first
655 argument is a pointer.
656
f1078f66
DJ
6572010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
658
659 * dwarf2read.c (read_func_scope, read_structure_type)
660 (read_common_block): Check for a NULL return from new_symbol.
661
82430852
JK
6622010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
663
664 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
665
c767944b
DJ
6662010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
667
668 * dwarf2read.c (read_structure_type): Move processing of
669 fields and member functions from here...
670 (process_structure_scope): ... to here.
671
561d3825
DJ
6722010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
673
674 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
675 the domain type.
676 (gnuv3_make_method_ptr): Likewise.
677
9bd89d67
TT
6782010-09-08 Tom Tromey <tromey@redhat.com>
679
680 * breakpoint.c (create_breakpoint): Add missing _().
681
1d040b0d
DE
6822010-09-08 Doug Evans <dje@google.com>
683
684 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
685
774b6a14
TT
6862010-09-08 Tom Tromey <tromey@redhat.com>
687
688 Revert:
689 2010-09-01 Tom Tromey <tromey@redhat.com>
690 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
691 symtab.h: Revert earlier change.
692
fc956729
SW
6932010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
694
695 * psymtab.c (add_psymbol_to_bcache): Initialize
696 obj_section.
697 memset psymbol.ginfo.value to 0.
698
48f9886d
PA
6992010-09-06 Pedro Alves <pedro@codesourcery.com>
700
701 * infrun.c (resume): Extend comment on ignoring single-step
702 requests on vfork parents waiting for a vfork-done.
703
423ec54c
JK
7042010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
705 Pedro Alves <pedro@codesourcery.com>
706
707 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
708 is NULL.
709 * fork-child.c (startup_inferior) <resume_signal>: Use enum
710 target_signal type.
711 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
712 calling strsignal. Use enum target_signal type for saved_signo.
713 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
714 (linux_nat_wait_1): Use enum target_signal type for signo. Use
715 target_signal_to_host before calling strsignal.
716 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
717 TARGET_SIGNAL_0.
718
a6eb9bc8
JK
7192010-09-06 Pedro Alves <pedro@codesourcery.com>
720 Jan Kratochvil <jan.kratochvil@redhat.com>
721
722 * common/signals.c (ANY): Remove.
723 (SET): No longer use ANY.
724
74609e71
YQ
7252010-09-06 Yao Qi <yao@codesourcery.com>
726
727 * infrunc(resume): When inferior is waiting_for_vfork_done,
728 clear step and don't use displaced stepping.
729
8464be76
DJ
7302010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
731
732 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
733 value specially.
734
33d62d64
JK
7352010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
736
737 Code cleanup - split print_stop_reason.
738 * infrun.c (enum inferior_stop_reason): Remove.
739 (print_stop_reason): Remove by splitting into ...
740 (print_exited_reason, print_signal_exited_reason)
741 (print_no_history_reason, print_signal_received_reason)
742 (print_end_stepping_range_reason): ... these new functions. Update
743 the preceding comment.
744 (handle_inferior_event): Change the calls to print_exited_reason,
745 print_signal_exited_reason, print_no_history_reason,
746 print_signal_received_reason, print_end_stepping_range_reason.
747 (handle_step_into_function, handle_step_into_function_backward):
748 Change the calls to print_end_stepping_range_reason.
749
14dba4b4
JK
7502010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
751
752 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
753 * cli-out.c: Include vec.h.
754 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
755 variable stream, initialize it, use it.
756 (cli_redirect): New function comment. Replace the stream and
757 original_stream fields by the new streams field. Remove the
758 original_stream != NULL conditional, assert error on NULL instead.
759 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
760 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
761 original_stream fields by the new streams field.
762 (cli_out_set_stream): Replace the stream field by the new streams
763 field.
764 * cli-out.h: Include vec.h.
765 (ui_filep): New typedef, call DEF_VEC_P for it.
766 (struct cli_ui_out_data): Replace the stream and original_stream
767 fields by the new streams field.
768 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
769 NULL first. Extend the comment.
770 (handle_redirections): Call ui_out_redirect with output.
771 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
772 calls outside of the TRY_CATCH block.
773
b04bc5d4 7742010-09-03 Joel Brobecker <brobecker@adacore.com>
775
776 GDB 7.2 released.
777
080db4e0
JB
7782010-09-02 Joel Brobecker <brobecker@adacore.com>
779
780 Back out the following change:
781 | 2010-06-29 Hui Zhu <teawater@gmail.com>
782 | * record.c (set_record_pic_cmdlist,
783 | show_record_pic_cmdlist): New variables.
784 | (set_record_pic_command,
785 | show_record_pic_command): New functions.
786 | (record_pic_function, record_pic_line, record_pic_enum,
787 | set_record_pic_type, record_pic_hide_nofunction,
788 | record_pic_hide_nosource, record_pic_hide_same): New variables.
789 | (record_pic_fputs): New function.
790 | (function_list, node_list, edge_list): New struct.
791 | (function_list, node_list, edge_list): New variables.
792 | (record_pic_cleanups, record_pic_node,
793 | record_pic_edge, cmd_record_pic): New functions.
794 | (_initialize_record): Add new commands for record pic.
795
0a4f61e3
DJ
7962010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
797
798 * config.in, configure: Regenerated.
799 * configure.ac: Check for waitpid.
800 * ser-pipe.c (pipe_close): Wait for the program to exit.
801
58b61394
JK
8022010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
803
ba720883 804 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
805 (set_logging_overwrite): New function.
806 (logging_redirect): New comment.
807 (logging_no_redirect_file, set_logging_redirect)
808 (pop_output_files) <logging_no_redirect_file>: New.
809 (handle_redirections) <!logging_redirect>: New variable
810 no_redirect_file. Remove file autoclose for tee_file_new. No longer
811 discard cleanup for the close of former OUTPUT. Set
812 LOGGING_NO_REDIRECT_FILE.
813 (handle_redirections) <logging_redirect>: gdb_assert
814 LOGGING_NO_REDIRECT_FILE.
815 (show_logging_command) <logging_redirect handling>: Adjust messages
816 for SAVED_FILENAME not NULL.
817 (_initialize_cli_logging): Install set_logging_overwrite and
818 set_logging_redirect.
819
706774f2
JK
8202010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
821
822 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
823
9a35ccf7
JK
8242010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
827 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
828 add $(GDB_WARN_CFLAGS_NO_FORMAT).
829 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
830
ba9b2ec3
YQ
8312010-09-02 Yao Qi <yao@codesourcery.com>
832
833 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
834 number from a WIFSIGNALED status.
835
faf68db7
TT
8362010-09-01 Tom Tromey <tromey@redhat.com>
837
838 * symtab.h (lookup_type_symbol): Declare.
839 * symtab.c (lookup_symbol_in_language_full): Rename from
840 lookup_symbol_in_language. Add 'for_type' argument.
841 (lookup_symbol_in_language): New function.
842 (lookup_type_symbol): Likewise.
843 (lookup_symbol_aux): Add 'for_type' argument.
844 (match_symbol_aux): New function.
845 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
846 (match_transparent_type): New function.
847 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
848 * symfile.h (struct quick_symbol_functions)
849 <pre_expand_symtabs_matching>: Remove.
850 <expand_one_symtab_matching>: New field.
851 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
852 (pre_expand_symtabs_matching_psymtabs): Remove.
853 (psym_functions): Update.
854 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
855 * dwarf2read.c (dw2_lookup_symbol): Update comment.
856 (dw2_pre_expand_symtabs_matching): Remove.
857 (dw2_expand_one_symtab_matching): New function.
858 (dwarf2_gdb_index_functions): Update.
859
248c9dbc
JB
8602010-09-01 Joel Brobecker <brobecker@adacore.com>
861
862 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
863
f75d858b
MK
8642010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
865
866 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
867 as a feature reported by -list-target-features.
868
0482b03b
JB
8692010-09-01 Joel Brobecker <brobecker@adacore.com>
870
871 * features/Makefile (WHICH): Add rs6000/powerpc-32.
872 (powerpc-32.o, powerpc-32.c): New rules.
873 (clean): Also remove powerpc-32.c.
874 * regformats/rs6000/powerpc-32.dat: Generate.
875
710e1a31
SW
8762010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
877
878 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
879 psymbol_bcache_init.
880 * psymtab.h (psymbol_bcache_init): New function prototype.
881 (psymbol_bcache_free): New function prototype.
882 (psymbol_bcache_get_bcache): New function prototype.
883 * psymtab.c (psymbol_bcache_init): New function.
884 (psymbol_bcache_free): New function.
885 (psymbol_bcache_full): New function.
886 (psymbol_bcache_get_bcache): New function.
887 (add_psymbol_to_bcache): use psymbol_bcache_full.
888 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
889 psymbol_bcache.
890 * symmisc.c (print_symbol_bcache_statistics): Updated.
891 (print_objfile_statistics): Updated.
892 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
893 psymbol_cache.
894 (free_objfile): Use psymbol_bcache_free.
895
64382290
TT
8962010-08-31 Tom Tromey <tromey@redhat.com>
897
898 PR c++/11961:
899 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
900 Don't set TYPE_NAME on the type.
901
8bbed405
MS
9022010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
903
904 * infrun.c (set_exec_direction_func): Error out if target does not
905 support reverse execution.
906
06253dd3
JK
9072010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
908
909 Make linux_get_siginfo_type `type *' unique.
910 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
911 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
912 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
913 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
914 (_initialize_linux_tdep): New.
915
b8edc417
JK
9162010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
917
918 Code cleanup.
919 * defs.h (find_memory_region_ftype): New typedef.
920 (exec_set_find_memory_regions): Use it.
921 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
922 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
923 * gcore.c (objfile_find_memory_regions): Likewise.
924 * gnu-nat.c (gnu_find_memory_regions): Likewise.
925 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
926 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
927 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
928 find_memory_region_ftype.
929 (insert_dbx_link_bpt_in_region): Likewise.
930 (iterate_over_mappings): Likewise. Drop the comment part about the
931 function prototype.
932 (find_memory_regions_callback): Use find_memory_region_ftype.
933 (proc_find_memory_regions): Likewise.
934 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
935 find_memory_region_ftype.
936 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
937 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
938
cbd70537
SW
9392010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
940
941 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
942 'static partial_symbol psymbol'.
943 (psymbol_hash): New function.
944 (psymbol_compare): New function.
945 * bcache.c (hash_continue): New.
946 (hash): Use hash_continue.
947 * bcache.c: Add hash_function and compare_function
948 pointers to bcache struct.
949 (bcache_full): Use bcache->hash_function, and
950 bcache->compare_function.
951 (bcache_compare): New function.
952 (bcache_xmalloc): Take hash_function and
953 compare_function arguments and initialize the
954 bcach's pointers.
955 Updated comment.
956 * objfiles.c (allocate_objfile): Updated.
957 * symfile.c (reread_symbols): Updated.
958 * python/py-type.c (typy_richcompare): Updated.
959
03f17ccf
TT
9602010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
961 Tom Tromey <tromey@redhat.com>
962
963 PR python/11792:
964 * python/py-value.c (valpy_get_dynamic_type): New function.
965 (value_object_getset): Add "dynamic_type".
966 (valpy_get_type): Fail on error.
967
25b41d01
YQ
9682010-08-30 Yao Qi <yao@codesourcery.com>
969
970 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
971 (arm_linux_syscall_next_pc): New.
972 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
973 (arm_linux_init_abi): Initialize syscall_next_pc.
974 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
975 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
976 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
977 Declare arm_frame_is_thumb.
978
5760d0ab
JK
9792010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 Code cleanup.
982 * breakpoint.c (bpstat_alloc): Remove unused prototype.
983 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
984 code.
985 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
986 calls of bpstat_alloc. Remove explicit bs chain termination.
987
46a96992
JK
9882010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
989
990 Code cleanup.
991 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
992 (my_waitpid): Likewise.
993
36374493
DE
9942010-08-27 Doug Evans <dje@google.com>
995
996 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
997 as appropriate.
998
8b93c54c
TT
9992010-08-27 Tom Tromey <tromey@redhat.com>
1000
1001 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1002 TYPE_FIELD_IGNORE_BITS.
1003
16be1145
DE
10042010-08-27 Doug Evans <dje@google.com>
1005
1006 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1007 the order they're defined in. munmap .debug_types buffer.
1008
e254ef6a
DE
10092010-08-26 Doug Evans <dje@google.com>
1010
1011 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1012 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1013 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1014 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1015 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1016 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1017 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1018 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1019 (write_psymtabs_to_index): Ditto.
1020
ae53ffa4
PA
10212010-08-26 Pedro Alves <pedro@codesourcery.com>
1022
1023 * NEWS: Mention libthread_db debugging with core files.
1024
c6da4cef
DE
10252010-08-26 Doug Evans <dje@google.com>
1026
1027 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1028 forward decl. Pass pst->dirname to dwarf_decode_lines.
1029 (psymtab_include_file_name): New function.
1030 (dwarf_decode_lines): Call it. Update comments.
1031
cd02d79d
PA
10322010-08-25 Pedro Alves <pedro@codesourcery.com>
1033
1034 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1035 compilation unit being different from target die's.
1036
673bfd45
DE
10372010-08-24 Doug Evans <dje@google.com>
1038
1039 PR symtab/11942
1040 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1041 debug_types_type_hash.
1042 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1043 All uses updated.
1044 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1045 appropriate type_hash table. All callers updated.
1046 (allocate_signatured_type_table): Renamed from
1047 allocate_signatured_type_hash_table. All callers updated.
1048 (create_signatured_type_table_from_index): Renamed from
1049 create_signatured_type_hash_from_index. All callers updated.
1050 (read_die_type): Add comment. Move actual reading to ...
1051 (read_die_type_1): ... here. New function.
1052 (follow_die_ref_or_sig): Tweak comment.
1053 (set_die_type): Rewrite to use appropriate choice of
1054 debug_info_type_hash or debug_types_type_hash.
1055 (get_die_type_at_offset): New function.
1056 (get_die_type): Call it.
1057
e8fd65ef
JK
10582010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1059
1060 * python/py-type.c (typy_richcompare): Initialize worklist.
1061
9779414d
DJ
10622010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1063 Kazu Hirata <kazu@codesourcery.com>
1064 Jonathan Larmour <jifl@eCosCentric.com>
1065
1066 * arm-tdep.c: Include features/arm-with-m.c.
1067 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1068 call this function.
1069 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1070 Check is_m after force-mode.
1071 (arm_gdbarch_init): Check the binary before the target description.
1072 Add check for M profile attribute. If we have an M-profile device,
1073 but no target register description, use arm-with-m. Recognize the
1074 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1075 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1076 * arm-tdep.h (XPSR_T): Define.
1077 (struct gdbarch_tdep): Add is_m member.
1078 * features/arm-m-profile.xml, features/arm-with-m.c,
1079 features/arm-with-m.xml: New files.
1080
9dc481d3
DE
10812010-08-23 Doug Evans <dje@google.com>
1082
1083 * dwarf2read.c (read_structure_type): Add comment.
1084 (read_enumeration_type): Add comment.
1085 (process_enumeration_scope): Move definition of some locals
1086 closer to their use.
1087 (read_namespace_type): Add comment.
e71ec853 1088 (set_die_type): Fix typo in comment.
9dc481d3 1089
f9ffd4bb
TT
10902010-08-23 Tom Tromey <tromey@redhat.com>
1091
1092 PR python/11145:
1093 * python/py-value.c: Include expression.h.
1094 (valpy_do_cast): New function.
1095 (valpy_cast): Use it.
1096 (valpy_dynamic_cast): New function.
1097 (valpy_reinterpret_cast): Likewise.
1098 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1099
96f73ba5
TT
11002010-08-23 Tom Tromey <tromey@redhat.com>
1101
1102 PR python/11391:
1103 * python/py-value.c (valpy_nonzero): Don't throw error for other
1104 Value types.
1105
d839c8a4
TT
11062010-08-23 Tom Tromey <tromey@redhat.com>
1107
1108 PR python/10676:
1109 * python/py-type.c: Include bcache.h, vec.h.
1110 (struct type_equality_entry): New.
1111 (compare_strings): New function.
1112 (check_types_equal): Likewise.
1113 (check_types_worklist): Likewise.
1114 (typy_richcompare): Likewise.
1115 (type_object_type): Set tp_richcompare field.
1116
05d0e1e7
TT
11172010-08-23 Tom Tromey <tromey@redhat.com>
1118
1119 PR python/10953:
1120 * python/py-type.c (typy_fields): Call check_typedef.
1121 (typy_template_argument): Add TRY_CATCH.
1122
702c2711
TT
11232010-08-23 Tom Tromey <tromey@redhat.com>
1124
1125 PR python/11915:
1126 * python/py-type.c (typy_array): New function.
1127 (type_object_methods): Add "array".
1128
4a532131
PA
11292010-08-20 Pedro Alves <pedro@codesourcery.com>
1130
1131 * python/python.c: Include "serial.h".
1132 (gdbpy_event_fds): Change type to `struct serial *' a array from
1133 int array.
1134 (gdbpy_run_events): Change parameters. Use serial_readchar in
1135 place of read.
1136 (gdbpy_post_event): Use serial_write in place of write.
1137 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1138 serial_async in place of add_file_handler.
1139
58f07bae
PA
11402010-08-20 Pedro Alves <pedro@codesourcery.com>
1141
1142 * serial.h (gdb_pipe, serial_pipe): Declare.
1143 * serial.c (serial_interface_lookup): Take a const char pointer.
1144 (serial_fdopen): Rename to ...
1145 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1146 Call the OPS' fdopen function if there is one.
1147 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1148 (serial_pipe): New.
1149 (struct serial_ops) <fdopen>: New field.
1150
1151 * ser-mingw.c (free_pipe_state):
1152 (free_pipe_state): Close output on non-pex pipes.
1153 (pipe_windows_fdopen): New.
1154 (gdb_pipe): New.
1155 (_initialize_ser_windows): Register pipe_windows_fdopen.
1156 * ser-go32.c (gdb_pipe): New.
1157 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1158 no state pointer.
1159 (pipe_ops): Delete.
1160 (gdb_pipe): New.
1161
3da10d80
KS
11622010-08-20 Keith Seitz <keiths@redhat.com>
1163
1164 PR symtab/11465:
889bf7c5 1165 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
1166 (struct dwarf2_cu): Add vector method_list.
1167 (scan_partial_symbols): Count methods for union, class, structure,
1168 and interface types.
1169 (add_to_method_list): New function.
1170 (free_delayed_list): New function.
1171 (compute_delayed_physnames): New function.
1172 (process_full_comp_unit): Make a cleanup for the CU's delayed
1173 physname list, compute the delayed physnames, and free the
1174 the list.
1175 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1176 of the physname until after the CU is read.
1177
1178 * dwarf2read.c (read_structure_type): Check if the current
1179 DIE's type was already completed after dwarf2_full_name
1180 was called.
889bf7c5 1181
ca11e899
SS
11822010-08-19 Stan Shebs <stan@codesourcery.com>
1183
1184 * NEWS: Mention some additional changes.
1185
4d2dc20a
TT
11862010-08-19 Tom Tromey <tromey@redhat.com>
1187
1188 * Makefile.in (install-python): Add DESTDIR.
1189
d30f5e1f
DE
11902010-08-19 Doug Evans <dje@google.com>
1191
1192 PR exp/11926
1193 * parser-defs.h (parse_float, parse_c_float): Declare.
1194 * parse.c (parse_float, parse_c_float): New function.
1195 * c-exp.y (parse_number): Call parse_c_float.
1196 * objc-exp.y (parse_number): Ditto.
1197 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1198 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1199
2837d59e
JB
12002010-08-19 Joel Brobecker <brobecker@adacore.com>
1201
1202 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1203 the arguments in the correct order.
1204 * symtab.c (maybe_add_partial_symtab_filename): Declare
1205 the arguments in the correct order.
1206
35633fef
JK
12072010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1208
1209 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1210 initialize it by null_frame_id, wrap its usage by get_frame_id,
1211 frame_id_p and frame_find_by_id.
1212
94f7449c
TT
12132010-08-18 Tom Tromey <tromey@redhat.com>
1214
1215 PR python/11900:
1216 * configure: Rebuild.
1217 * configure.ac: Add install-python to CONFIG_INSTALL.
1218 * Makefile.in (install-python): New.
1219
f3574227
DE
12202010-08-18 Doug Evans <dje@google.com>
1221
1222 * gdb_assert.h (gdb_assert_not_reached): New macro.
1223 (gdb_assert_fail): Fix typo in comment.
1224 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1225 gdb_assert (0).
1226 * darwin-nat.c (darwin_check_new_threads): Ditto.
1227 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1228 (munmap_section_buffer): Ditto.
1229 * m32c-tdep.c (make_types): Ditto.
1230 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1231 * macroexp.c (get_character_constant): Ditto.
1232 (get_string_literal): Ditto.
1233 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1234 (mep_pseudo_cr_index, mep_register_type): Ditto.
1235 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1236 (mep_get_insn, mep_analyze_prologue): Ditto.
1237 * objfiles.c (qsort_cmp): Ditto.
1238 * prologue-value.c (pv_is_identical): Ditto.
1239 * record.c (record_get_loc): Ditto.
1240 * value.c (value_static_field): Ditto.
1241 * xtensa-tdep.c (call0_track_op): Ditto.
1242
c92817ce
TT
12432010-08-18 Tom Tromey <tromey@redhat.com>
1244
1245 PR symtab/11919:
1246 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1247 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1248 name-copying lower. Document exception behavior.
1249 * completer.c (expression_completer): Catch exceptions from
1250 parse_field_expression.
1251
856d6f99
PA
12522010-08-18 Pedro Alves <pedro@codesourcery.com>
1253
1254 PR corefile/8210
1255
1256 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1257 workaround on core files.
1258 (try_thread_db_load_1): Don't try enabling thread event reporting
1259 on core files.
1260 (thread_db_load): Allow thread_db on core files.
1261 (attach_thread): Don't check thread signals on core files, nor try
1262 really attaching to the thread, nor enabling thread event event
1263 reporting.
1264 (thread_db_detach): Don't try disabing thread event reporting or
1265 removing thread event breakpoints when debugging a core file.
1266 (find_new_threads_callback): Don't try enabling thread event
1267 reporting on core files.
1268 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1269 debugging a core file.
1270 (thread_db_find_new_threads): Don't update thread
1271 cores (processors) when debugging a core (dump).
1272
261b8d08
PA
12732010-08-18 Pedro Alves <pedro@codesourcery.com>
1274
1275 PR corefile/8210
1276
1277 * corelow.c (add_to_thread_list): Don't use
1278 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1279 (get_core_register_section): Don't use
1280 gdbarch_core_reg_section_encodes_pid.
1281
1282 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1283 * gdbarch.h, gdbarch.c: Regenerate.
1284 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1285 gdbarch_core_reg_section_encodes_pid.
1286 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1287 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1288 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1289
f9b42018
YQ
12902010-08-18 Yao Qi <yao@codesourcery.com>
1291
1292 * MAINTAINERS : Add myself under Write After Approval.
1293
def98928
TT
12942010-08-17 Tom Tromey <tromey@redhat.com>
1295
1296 * NEWS: Mention template parameter support.
1297
0807b50c
PA
12982010-08-17 Pedro Alves <pedro@codesourcery.com>
1299
1300 PR breakpoints/11371
1301
1302 * breakpoint.c (decref_bp_location): Assert the reference count is
1303 sane.
1304
f431efe5
PA
13052010-08-17 Pedro Alves <pedro@codesourcery.com>
1306
1307 PR breakpoints/11371
1308
1309 * breakpoint.c (breakpoint_init_inferior): Decrement the
1310 location's reference count instead of deleting right away.
1311 (bpstat_free): Decrement the location's reference count. Make
1312 static.
1313 (bpstat_copy): Increment the location's reference count.
1314 (bpstat_find_breakpoint): Adjust.
1315 (bpstat_num): Adjust.
1316 (print_it_typical): Adjust. Use the breakpoint pointer in the
1317 bpstat instead of the location's owner.
1318 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1319 Adjust to record the location's owner in the bpstat.
1320 (watchpoint_check): Use the breakpoint pointer in the bpstat
1321 instead of the location's owner.
1322 (bpstat_check_breakpoint_conditions): Don't handle
1323 bp_watchpoint_scope here. Use the breakpoint pointer in the
1324 bpstat instead of the location's owner.
1325 (bpstat_stop_status): Defer inferior function calls to after
1326 building the bpstat list. Handle bp_watchpoint_scope here. Use
1327 the breakpoint pointer in the bpstat instead of the location's
1328 owner.
1329 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1330 the location's owner.
1331 (free_bp_location): Don't walk bpstats clearing locations.
1332 (incref_bp_location): New.
1333 (decref_bp_location): New.
1334 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1335 instead of the location's owner.
1336 (update_global_location_list): Clear the location's owner, and
1337 decrement the location's reference count instead of deleting it
1338 right away.
1339 (breakpoint_retire_moribund): Decrement the location's reference
1340 count instead of deleting it right away.
1341 (bpstat_remove_bp_location): Delete.
1342 (bpstat_remove_breakpoint): New.
1343 (bpstat_remove_bp_location_callback): Delete.
1344 (bpstat_remove_breakpoint_callback): New.
1345 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1346 clearing references to the breakpoint that is being deleted.
1347
1348 * breakpoint.h (struct bp_location) <refc>: New field.
1349 <owner>: Update comments.
1350 (bpstat_free): Delete declaration.
1351 (struct bpstats): Change the type of the breakpoint_at field to
1352 struct breakpoint point, from struct bp_location pointer. Add new
1353 field bp_location_at.
1354
14c0d4e1
TT
13552010-08-16 Tom Tromey <tromey@redhat.com>
1356
1357 * NEWS: Fix typo.
1358
b56df873
TT
13592010-08-16 Tom Tromey <tromey@redhat.com>
1360
1361 * NEWS: Mention watch -location.
1362
d63d0675
JK
13632010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1364
1365 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1366 EXP_STRING_REPARSE to EXP_STRING.
1367 (watch_command_1): Set also EXP_STRING_REPARSE.
1368 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1369 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1370 Update comment for exp_string.
1371
06a64a0b
TT
13722010-08-16 Tom Tromey <tromey@redhat.com>
1373
1374 * value.c (release_value): Clear 'next' pointer.
1375 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1376 (watch_command_wrapper): Update.
1377 (watch_maybe_just_location): New function.
1378 (watch_command): Update.
1379 (rwatch_command_wrapper): Update.
1380 (rwatch_command): Update.
1381 (awatch_command_wrapper): Update.
1382 (awatch_command): Update.
1383 (check_for_argument): New function.
1384 (_initialize_breakpoint): Update help text.
1385
f96b8fa0
UW
13862010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1387
1388 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1389 typedef'ed function types correctly.
1390
4eb54052
TT
13912010-08-13 Tom Tromey <tromey@redhat.com>
1392
1393 * python/python-internal.h (gdbpy_get_hook_function): Don't
1394 declare.
1395
44be957e
JK
13962010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1397
ba720883 1398 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
1399 static.
1400
76d8b686
KW
14012010-08-13 Ken Werner <ken.werner@de.ibm.com>
1402
1403 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1404 the format strings to be compatible with Python 2.4.
1405
8dedea02
VP
14062010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1407
1408 Easier and more stubborn MI memory read commands.
1409
1410 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1411 and data-write-memory-bytes.
1412 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1413 (mi_cmd_data_write_memory_bytes): New.
1414 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1415 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1416 New.
1417 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1418 * target.c (target_read_until_error): Remove.
1419 (read_whatever_is_readable, free_memory_read_result_vector)
1420 (read_memory_robust): New.
1421 * target.h (target_read_until_error): Remove.
1422 (struct memory_read_result, free_memory_read_result_vector)
1423 (read_memory_robust): New.
1424
1d9ec526
HZ
14252010-08-13 Hui Zhu <teawater@gmail.com>
1426
1427 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1428 (read_comp_unit): Initialize back_to.
1429
98bfdba5
PA
14302010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1431 Pedro Alves <pedro@codesourcery.com>
1432
1433 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1434 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1435 (struct partial_die_info) <has_template_arguments>: New field.
1436 <num_attrs>: Change type to unsigned char.
1437 <building_fullname>: New field.
1438 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1439 allocate a CU if we don't have one already. Add a cleanup for the
1440 CU.
1441 (partial_die_full_name): Handle template arguments not in
1442 DW_AT_name.
1443 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1444 (load_full_comp_unit): Only allocate a CU if we don't have one
1445 already.
1446 (do_ui_file_peek_last): New.
1447 (dwarf2_compute_name): Handle template parameters not in
1448 DW_AT_name.
1449 (read_comp_unit): Read and free abbrevs if not read yet.
1450 (load_partial_dies): Handle template arguments not in DW_AT_name.
1451 (find_partial_die): If we have a CU, but no a partial dies yet,
1452 also read in the CU.
1453 (dwarf2_const_value_attr): New, abstracted out from
1454 dwarf2_const_value.
1455 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1456 dwarf2_const_value_attr.
1457 (determine_prefix): Detect and break loops created by RCVT's debug
1458 info.
1459 (maybe_queue_comp_unit): Bail out early if reading partial
1460 symbols.
1461 (follow_die_offset): Load full CU if we have no dies.
1462 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1463 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1464
ca5c20b6 14652010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 1466 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
1467
1468 * python/python.c (gdbpy_run_events): New function.
1469 (gdbpy_post_event): Likewise.
1470 (gdbpy_initialize_events): Likewise.
1471 (_initialize_python): Call gdbpy_initialize_events.
1472
7346b668
KW
14732010-08-11 Ken Werner <ken.werner@de.ibm.com>
1474
1475 * gdb/valarith.c (vector_binop): New function.
1476 (scalar_binop): Likewise.
1477 (value_binop): Call scalar_binop or vector_binop depending on the types.
1478 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1479 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1480 to pointers.
1481 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1482
62183e15
TT
14832010-08-11 Brad Roberts <braddr@puremagic.com>
1484
1485 * d-lang.c (extract_identifiers): Handle multiple digits.
1486
39d7b0e2
JK
14872010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 Code cleanup.
1490 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1491 Rename to dummy_frame_unwind.
1492 (dummy_frame_unwind): Remove.
1493 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1494 * frame-unwind.c (frame_unwind_init): Use address of
1495 dummy_frame_unwind and inline_frame_unwind.
1496 * frame.c (create_sentinel_frame): Use address of
1497 sentinel_frame_unwind.
1498 * inline-frame.c (inline_frame_unwinder): Rename to
1499 inline_frame_unwind.
1500 (inline_frame_unwind): Remove.
1501 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1502 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1503 sentinel_frame_unwind.
1504 (sentinel_frame_unwind): Remove.
1505 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1506 struct.
1507
9f9a8002
JK
15082010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1509
1510 Code cleanup.
1511 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1512 and returned value. New comment from frame-unwind.h.
1513 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1514 Extend the comment.
1515 * frame.c (get_frame_id, frame_unwind_register_value)
1516 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1517 (get_frame_type, frame_unwind_arch): Do not use the return value of
1518 frame_unwind_find_by_frame.
1519
cb2e07a6 15202010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 1521 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
1522 Tom Tromey <tromey@redhat.com>
1523
1524 * python/python.c (gdbpy_solib_address): New function.
1525 (gdbpy_decode_line): Likewise.
1526
c29c521f
TT
15272010-08-10 Tom Tromey <tromey@redhat.com>
1528
1529 Revert gdb-add-index addition:
1530 * Makefile.in (install-only): Don't install gdb-add-index.
1531 * gdb-add-index.sh: Remove.
1532
0c012db1
KB
15332010-08-09 Kevin Buettner <kevinb@redhat.com>
1534
1535 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1536 `target_has_execution' check with `to_has_memory' check.
1537 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1538 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1539 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1540
db04efe6
KB
15412010-08-09 Kevin Buettner <kevinb@redhat.com>
1542
1543 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1544 (resume_siggnal, resume_step): Move these static globals...
1545 (struct sim_inferior_data): ...into this new struct.
1546 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1547 New static globals.
1548 (gdb_callback, callbacks_initialized): Move these globals to
1549 a point earlier in the file.
1550 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1551 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1552 (gdbsim_close_inferior, gdbsim_resume_inferior)
1553 (gdbsim_stop_inferior): New functions.
1554 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1555 New constants.
1556 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1557 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1558 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1559 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1560 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1561 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1562 new local variable `sim_data' in each of these functions. Use
1563 `sim_data' to reference former globals `program_loaded',
1564 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1565 `resume_step'.
1566 (gdbsim_open): Remove local variable `argv'. Put results of call
1567 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1568 make a cleanup for it. Free it though when a sim instance cannot
1569 be obtained.
1570 (gdbsim_close): Free sim_argv and null it out as appropriate.
1571 Close sim instances in all inferiors.
1572 (gdbsim_cntrl_c): Stop all inferiors.
1573 (gdbsim_wait):
1574 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1575
e37fd15a
SW
15762010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1577
1578 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1579 function after symbol construction is complete.
1580 Do the same for template symbol addition to template_symbols list.
1581
45c58896
SW
15822010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1583
1584 * symtab.c (symbol_get_demangled_name): Remove assertion and
1585 return NULL when language_specific.cplus_specific is not initialized.
1586 * stabsread.c (define_symbol): Set the name before calling
1587 cp_scan_for_anonymous_namespaces.
1588
33e5013e
SW
15892010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1590
1591 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1592 SYMBOL_SET_LANGUAGE.
1593 (symbol_init_language_specific): Renamed to symbol_set_language.
1594 * symtab.c (symbol_init_language_specific): Removed redundant check
1595 for language_cplus.
1596 Renamed to symbol_set_language.
1597 * stabsread.c (define_symbol): Updated.
1598 (read_enum_type): Updated
1599 * psymtab.c (add_psymbol_to_bcache): Updated.
1600 * minsyms.c (install_minimal_symbols): Updated.
1601 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1602 SYMBOL_LANGUAGE to set the language.
1603 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1604 * mdebugread.c (new_symbol): Ditto.
1605 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1606 * dwarf2read.c (new_symbol_full): Ditto.
1607 * jv-lang.c (add_class_symbol): Ditto.
1608
5da1313b
JK
16092010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1610
1611 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1612 (make_cleanup_restore_page_info)
1613 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1614 * gdbcmd.h (execute_command_to_string): New declaration.
1615 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1616 (make_cleanup_restore_ui_file): Move to utils.c
1617 (execute_gdb_command) <to_string>: Move ...
1618 * top.c (execute_command_to_string): ... here. Call
1619 set_batch_flag_and_make_cleanup_restore_page_info.
1620 * utils.c (make_cleanup_restore_integer): New source file blank line.
1621 (make_cleanup_restore_uinteger): New.
1622 (struct restore_ui_file_closure, do_restore_ui_file)
1623 (make_cleanup_restore_ui_file): Move here from python/python.c.
1624 (init_page_info) <batch_flag>
1625 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1626 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1627
c820c52a
PA
16282010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1629
1630 * thread.c (add_thread_silent): Use null_ptid instead of
1631 minus_one_ptid while getting rid of stale inferior_ptid.
1632
8da614df
CV
16332010-08-06 Corinna Vinschen <vinschen@redhat.com>
1634
1635 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1636 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1637 (decode_frame_entry_1): Remove redundant setting of
1638 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1639 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1640 on examined frame section. Add comment to explain why.
1641 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1642 comment to explain usage.
1643 * gdbarch.c: Regenerate.
1644 * gdbarch.h: Regenerate.
1645
1646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1647
e4195b40
JK
16482010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1649
1650 Code cleanup.
1651 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1652 a more inner block.
1653
a3217aa0
PA
16542010-08-05 Pedro Alves <pedro@codesourcery.com>
1655
1656 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1657 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1658 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1659 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1660 linux-tdep.o to gdb_target_obs.
1661
e2b4a699 16622010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
1663
1664 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 1665 argument.
889bf7c5 1666
50e8a0d5
HZ
16672010-08-05 Hui Zhu <teawater@gmail.com>
1668
1669 * mips-linux-tdep.c(regset.h): New include.
1670 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1671 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1672 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1673 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1674 mips_linux_regset_from_core_section): New functions.
1675 (fetch_core_registers, regset_core_fns): Deleted.
1676 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1677 Deleted regset_core_fns.
1678 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1679 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1680 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1681 and fpregset64.
1682
70728992
PA
16832010-08-04 Pedro Alves <pedro@codesourcery.com>
1684
1685 * s390-tdep.c: Include linux-tdep.h.
1686 (s390_gdbarch_init): Call linux_init_abi.
1687
a5ee0f0c
PA
16882010-08-04 Pedro Alves <pedro@codesourcery.com>
1689
1690 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1691 instead of printing "Thread" here.
1692 * linux-tdep.c: Include inferior.h.
1693 (linux_core_pid_to_str): New.
1694 (linux_init_abi): New.
1695 * linux-tdep.h (linux_init_abi): Declare.
1696 * alpha-linux-tdep.c: Include linux-tdep.h.
1697 (alpha_linux_init_abi): Call linux_init_abi.
1698 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1699 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1700 * frv-linux-tdep.c: Include linux-tdep.h
1701 (frv_linux_init_abi): Call linux_init_abi.
1702 * hppa-linux-tdep.c: Include linux-tdep.h
1703 (hppa_linux_init_abi): Call linux_init_abi.
1704 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1705 * ia64-linux-tdep.c: Include linux-tdep.h.
1706 (ia64_linux_init_abi): Call linux_init_abi.
1707 * m32r-linux-tdep.c: Include linux-tdep.h.
1708 (m32r_linux_init_abi): Call linux_init_abi.
1709 * m68klinux-tdep.c: Include linux-tdep.h.
1710 (m68k_linux_init_abi): Call linux_init_abi.
1711 * microblaze-linux-tdep.c: Include linux-tdep.h.
1712 (microblaze_linux_init_abi): Call linux_init_abi.
1713 * mips-linux-tdep.c: Include linux-tdep.h.
1714 (mips_linux_init_abi): Call linux_init_abi.
1715 * mn10300-linux-tdep.c: Include linux-tdep.h.
1716 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1717 'gdbinfo' parameter to 'info'.
1718 * ppc-linux-tdep.c: Include linux-tdep.h.
1719 (ppc_linux_init_abi): Call linux_init_abi.
1720 * sh-linux-tdep.c: Include linux-tdep.h.
1721 (sh_linux_init_abi): Call linux_init_abi.
1722 * sparc-linux-tdep.c: Include linux-tdep.h.
1723 (sparc32_linux_init_abi): Call linux_init_abi.
1724 * sparc64-linux-tdep.c: Include linux-tdep.h.
1725 (sparc64_linux_init_abi): Call linux_init_abi.
1726 * xtensa-linux-tdep.c: Include linux-tdep.h.
1727 (xtensa_linux_init_abi): Call linux_init_abi.
1728 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1729 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1730 callback.
1731
bc043ef3
DE
17322010-08-03 Doug Evans <dje@google.com>
1733
1734 * breakpoint.c (bpdisp_text): Constify bpdisps.
1735 * solib-svr4.c (solib_break_names): Constify.
1736 (bkpt_names, main_name_list): Constify.
1737 (match_main): Constify soname arg.
63cdd227
DE
1738 (bfd_lookup_symbol): Remove unnecessary forward decl.
1739 Constify symname arg.
bc043ef3
DE
1740 (enable_break): Constify bkpt_namep.
1741 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1742 (symtab_symbol_info): Constify classnames.
1743
585d1eb8
PM
17442010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1745
1746 * NEWS: Document Python value inferior function calls.
1747
2de00c64
DE
17482010-08-02 Doug Evans <dje@google.com>
1749
1750 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1751
02d868e8
PP
17522010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1753
1754 * linux-thread-db.c (libthread_db_debug): New variable.
1755 (thread_db_find_new_threads_silently): Control verbosity with it.
1756 (try_thread_db_load_1, try_thread_db_load): Likewise.
1757 (find_new_threads_once): Likewise.
1758 (_initialize_thread_db): Set/show it.
1759
a19cae16
JK
17602010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1761
1762 * common/signals.c (signals): Move the content to signals.def.
1763 Include it. Remove the INDENT comments.
1764
c2bbed2a
TT
17652010-07-30 Tom Tromey <tromey@redhat.com>
1766
1767 * Makefile.in (install-only): Install gdb-add-index.
1768 * gdb-add-index.sh: New file.
1769
f32b2f09
CR
17702010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1771
1772 * MAINTAINERS: Add myself for write after approval privileges.
1773
1276c759
JK
17742010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1775
1776 * symfile.c (addr_section_name): New function.
1777 (addrs_section_compar): Use it.
1778 (addr_info_make_relative): Use it. Move variable sect_name into a more
1779 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1780
420697bb
TT
17812010-07-30 Tom Tromey <tromey@redhat.com>
1782
1783 * configure: Rebuild.
1784 * configure.ac: Add missing case for Python 2.7.
1785
d0d99561
DD
17862010-07-29 DJ Delorie <dj@redhat.com>
1787
1788 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1789 conditions.
1790
0b29bdde
PA
17912010-07-29 Pedro Alves <pedro@codesourcery.com>
1792
1793 * PROBLEMS: Remove mention of all problems.
1794
110ed339
PA
17952010-07-28 Pedro Alves <pedro@codesourcery.com>
1796
1797 PR build/11848
1798 * configure.ac: Check for wresize.
1799 * configure, config.in: Regenerate.
1800 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1801 with HAVE_WRESIZE.
1802
326fd672
TT
18032010-07-28 Tom Tromey <tromey@redhat.com>
1804
1805 PR python/11060:
1806 * python/py-type.c (typy_legacy_template_argument): New function,
1807 extracted from typy_template_argument.
1808 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1809 value when needed.
1810
4ac8c4da
TT
18112010-07-28 Oleg Nesterov <oleg@redhat.com>
1812
1813 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1814
053315c2
TT
18152010-07-27 Tom Tromey <tromey@redhat.com>
1816
1817 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1818
3ce3b1ba
PA
18192010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1820
1821 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1822 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1823
2bb4f988
TT
18242010-07-28 Tom Tromey <tromey@redhat.com>
1825
1826 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1827
74232302
JB
18282010-07-28 Joel Brobecker <brobecker@adacore.com>
1829
1830 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1831 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1832
385d04dc
JB
18332010-07-28 Joel Brobecker <brobecker@adacore.com>
1834
1835 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1836 down, just before the block that parse the breakpoint addr_string.
1837
34eaf542
TT
18382010-07-28 Tom Tromey <tromey@redhat.com>
1839
1840 PR c++/9946:
1841 * symfile.c (reread_symbols): Clear template_symbols.
1842 * symtab.h (struct symbol) <is_cplus_template_function>: New
1843 field.
1844 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1845 (struct template_symbol): New.
1846 * symtab.c (lookup_symbol_aux_local): Use
1847 cp_lookup_symbol_imports_or_template.
1848 * objfiles.h (struct objfile) <template_symbols>: New field.
1849 * objfiles.c (relocate_one_symbol): New function.
1850 (objfile_relocate1): Use it. Relocate isolated symbols.
1851 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1852 template_arguments>: New fields.
1853 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1854 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1855 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1856 (lookup_typename): Update.
1857 * gdbtypes.c (lookup_typename): Constify "block" argument.
1858 * dwarf2read.c: Include vec.h.
1859 (symbolp): New typedef.
1860 (read_func_scope): Read template arguments. Allocate a
1861 template_symbol when needed.
1862 (read_structure_type): Read template arguments.
1863 (new_symbol_full): New function, from new_symbol. Handle
1864 DW_TAG_template_type_param and DW_TAG_template_value_param.
1865 (new_symbol): Rewrite as wrapper.
1866 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1867 * cp-namespace.c: Include language.h.
1868 (search_symbol_list): New function.
1869 (cp_lookup_symbol_imports_or_template): Likewise.
1870
d27b3be4
PA
18712010-07-28 Balazs Kezes <rlblaster@gmail.com>
1872
1873 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1874 the command window to the new size and position.
1875
0036e657
PA
18762010-07-28 Balazs Kezes <rlblaster@gmail.com>
1877
a782f43e 1878 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
1879 coordinates.
1880
36900355
PA
18812010-07-28 Balazs Kezes <rlblaster@gmail.com>
1882
a782f43e 1883 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 1884 after a detecting a resize.
a782f43e 1885 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
1886 call.
1887
db5e03ae
PA
18882010-07-28 Pedro Alves <pedro@codesourcery.com>
1889
1890 * configure.ac: Check for resize_term.
1891 * configure, config.in: Regenerate.
1892
b71fff68
JB
18932010-07-27 Joel Brobecker <brobecker@adacore.com>
1894
1895 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1896
9b1c24c8
PA
18972010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1898
1899 * dwarf2read.c (read_string): Rename to ...
1900 (read_direct_string): ... this.
1901 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1902 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1903
00390b84
JK
19042010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1905
1906 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1907 (count_events_callback, select_event_lwp_callback)
1908 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1909
26ab7092
JK
19102010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1911
1912 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1913 (_initialize_ia64_linux_nat): Install it.
1914 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1915 (linux_nat_set_status_is_event): New.
1916 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1917 cancel_breakpoints_callback, linux_nat_filter_event)
1918 (linux_nat_wait_1): Use linux_nat_status_is_event.
1919 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1920
283e6a52
TT
19212010-07-27 Tom Tromey <tromey@redhat.com>
1922
1923 * NEWS: Mention labels, .gdb_index.
1924
53a71c06
CR
19252010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1926
1927 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 1928 "start,+length" form of arguments.
53a71c06
CR
1929 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1930 since GDB 7.1"; and merge two separated paragraphs of disassemble
1931 description in "Changes in GDB 7.0".
1932
c63a1f86
JK
19332010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1934
1935 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1936 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1937 (fputs_maybe_filtered): Do not do filtering also on
1938 ! INPUT_FROM_TERMINAL_P.
1939
abebb8b0
JB
19402010-07-27 Joel Brobecker <brobecker@adacore.com>
1941
1942 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1943 in warning message.
1944
5374244e
PM
19452010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1946
1947 * python/py-value.c (valpy_call): New Function.
1948
ac0b195c
KW
19492010-07-27 Ken Werner <ken.werner@de.ibm.com>
1950
889bf7c5 1951 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
1952 types_list_elements variables.
1953
09d8bd00
TT
19542010-07-26 Tom Tromey <tromey@redhat.com>
1955
1956 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1957 TLS with DW_OP_const4u or DW_OP_const8u.
1958
9fe70b4f
TJB
19592010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1960
1961 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1962 VSX registers contents.
1963
caac4577
JG
19642010-07-26 Jerome Guitton <guitton@adacore.com>
1965
1966 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1967 its adress is null. Add comment to explain why.
1968 (new_symbol): Ditto.
1969
857d11d0
JK
19702010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1973 the host signal first.
1974
1fd400ff
TT
19752010-07-23 Tom Tromey <tromey@redhat.com>
1976
1977 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1978 type_comp_units>: New fields.
1979 (dw2_get_cu): New function.
1980 (create_cus_from_index): Remove unused argument.
1981 (create_signatured_type_hash_from_index): New function.
1982 (create_addrmap_from_index): Update.
1983 (dwarf2_read_index): Handle version 2.
1984 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1985 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1986 (dw2_print_stats, dw2_expand_all_symtabs)
1987 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1988 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1989 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1990 (allocate_signatured_type_hash_table): New function.
1991 (add_signatured_type_cu_to_list): Likewise.
1992 (create_debug_types_hash_table): Use them. Set type_comp_units.
1993 (read_signatured_type): Ensure section data is available.
1994 (add_address_entry): Don't record empty ranges.
1995 (struct signatured_type_index_data): New.
1996 (write_one_signatured_type): New function.
1997 (write_psymtabs_to_index): Write type CUs.
1998 (save_gdb_index_command): Update comment.
1999 (process_type_comp_unit): Move inititalization of
2000 from_debug_types...
2001 (create_debug_types_hash_table): ... here.
2002
3a674486
JK
20032010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2004
2005 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2006 cleanup and generating of gdb script to it.
2007 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2008 and terminal size. Convert $tmpfile to a series of -ex-es.
2009
54ec275a
KS
20102010-07-23 Keith Seitz <keiths@redhat.com>
2011
2012 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2013 hook for STATIC_BLOCK types, too.
2014
8fd447e6
KS
20152010-07-23 Keith Seitz <keiths@redhat.com>
2016
2017 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2018 and vector definition.
2019
25b72dde
JK
20202010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2021
2022 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2023
96d19272
JK
20242010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2025
2026 * dwarf2read.c: Include completer.h.
2027 (save_gdb_index_command): Use matching usage command name.
2028 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2029 Set filename_completer for it.
2030
ca1f3406
TT
20312010-07-22 Tom Tromey <tromey@redhat.com>
2032
2033 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2034 type signature's per-CU data.
2035
ba25b921
PA
20362010-07-22 Pedro Alves <pedro@codesourcery.com>
2037
2038 * NEWS: Mention target reported shared libraries support by
2039 default.
2040
23bd0f7c
PA
20412010-07-21 Pedro Alves <pedro@codesourcery.com>
2042
2043 PR symtab/11827
2044
2045 Revert:
2046 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2047 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2048 and DW_TAG_volatile_type.
2049 (new_symbol): Likewise.
2050
883df6dd
SW
20512010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2052
2053 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2054 function symbols before overload resolution.
2055
269b11a2
PA
20562010-07-21 Pedro Alves <pedro@codesourcery.com>
2057
2058 * breakpoint.c (bptype_string): New, abstracted out from
2059 print_one_breakpoint_location.
2060 (print_one_breakpoint_location): Adjust.
2061 (breakpoint_1): Adjust the type column width dynamically.
2062
569b05a5
JK
20632010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2064
2065 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2066 a gdb_assert call, new comment.
2067
ad34eb2f
JK
20682010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2069
2070 * linux-nat.c (linux_handle_extended_wait): Handle case when
2071 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2072
33355866
JK
20732010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2074
2075 Code cleanup.
2076 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2077 linux_nat_wait_1. Use always LP->STATUS afterwards.
2078
26590820
HZ
20792010-07-20 Hui Zhu <teawater@gmail.com>
2080
2081 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2082 (inf_ptrace_attach): Ditto.
2083
c0edd9ed
JK
20842010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2085
2086 Make core files the process_stratum.
2087 * corefile.c (core_target): New variable.
2088 (core_file_command): Remove variable t, use core_target.
2089 * corelow.c (core_ops): Make it static.
2090 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2091 * defs.h (make_cleanup_unpush_target): New prototype.
2092 * gdbarch.h: Regenerate.
2093 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2094 * gdbcore.h (core_target): New declaration.
2095 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2096 variables ops_already_pushed and back_to. Use push_target,
2097 make_cleanup_unpush_target and discard_cleanups calls.
2098 * record.c (record_open): Replace core_stratum by a core_bfd check.
2099 * target.c (target_is_pushed): New function.
2100 (find_core_target): Remove.
2101 * target.h (enum strata) <core_stratum>: Remove.
2102 (target_is_pushed): New declaration.
2103 (find_core_target): Remove declaration.
2104 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2105 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2106
f02253f1
HZ
21072010-07-19 Hui Zhu <teawater@gmail.com>
2108
2109 * breakpoint.c (single_step_breakpoints_inserted): New
2110 function.
2111 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2112 * infrun.c (maybe_software_singlestep): Add check code.
2113 * record.c (record_resume): Add code for software single step.
2114 (record_wait): Ditto.
2115
78768c4a
JK
21162010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2117
2118 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2119 a more inner block. Remove its unused declaration initializer.
2120
431e49aa
TJB
21212010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2122
2123 * NEWS: Mention support for the new ptrace interface and hardware
2124 accelerated watchpoint conditions on powerpc-linux.
2125
bd91e7ae
OS
21262010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2127
2128 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2129 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2130 and host_address_to_string() and %s for pointers.
2131 (debug_to_remove_breakpoint): Likewise.
2132 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2133 (debug_to_can_accel_watchpoint_condition): Likewise.
2134 (debug_to_stopped_data_address): Likewise.
2135 (debug_to_watchpoint_addr_within_range): Likewise.
2136 (debug_to_insert_hw_breakpoint): Likewise.
2137 (debug_to_remove_hw_breakpoint): Likewise.
2138 (debug_to_insert_watchpoint): Likewise.
2139 (debug_to_remove_watchpoint): Likewise.
2140
29df156d
SW
21412010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2142
2143 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2144 argument.
2145 (cplus_specific): New struct.
2146 * symtab.c (symbol_set_demangled_name): Updated.
2147 Use cplus_specific for cplus symbols.
2148 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2149 struct for cplus symbols.
2150 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2151 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2152 * symtab.c (symbol_init_cplus_specific): New function.
2153
b250c185
SW
21542010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2155
2156 * symtab.h (symbol_set_demangled_name): New function.
2157 (symbol_get_demangled_name): New function.
2158 * symtab.c (symbol_set_demangled_name): New function.
2159 (symbol_get_demangled_name): New function.
2160 (symbol_init_language_specific): Use demangled_name setter and getter.
2161 (symbol_set_names): Ditto.
2162 (symbol_natural_name): Ditto.
2163 (symbol_demangled_name): Ditto.
2164 * dwarf2read.c (new_symbol): Ditto.
2165
afa16725
SW
21662010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2167
2168 * symtab.h: Renamed cplus_specific to mangled_lang.
2169 * symtab.c (symbol_init_language_specific): Updated.
2170 (symbol_set_names): Updated.
2171 (symbol_natural_name): Updated.
2172 (symbol_demangled_name): Updated.
2173 * ada-lang.c (ada_decode_symbol): Updated.
2174 * dwarf2read.c (new_symbol): Updated.
2175
3cbaedff
KW
21762010-07-14 Ken Werner <ken.werner@de.ibm.com>
2177
2178 * valops.c (value_assign): Do not call to value_coerce_to_target.
2179 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2180
c932f1be
KW
21812010-07-14 Ken Werner <ken.werner@de.ibm.com>
2182
2183 * MAINTAINERS: Add myself for write after approval privileges.
2184
91158a56
TT
21852010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2186
2187 * c-valprint.c (c_val_print): Add embedded_offset to address in
2188 call to val_print_array_elements.
2189
b3b272e1
TT
21902010-07-13 Tom Tromey <tromey@redhat.com>
2191
2192 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2193
bb3fa9d0
TT
21942010-07-13 Tom Tromey <tromey@redhat.com>
2195
2196 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2197 objfile.
2198
dd786858
TT
21992010-07-13 Tom Tromey <tromey@redhat.com>
2200
2201 * symfile.c (set_initial_language): Update.
2202 (deduce_language_from_filename): Argument type now const.
2203 * symtab.h (find_main_filename): Update.
2204 (deduce_language_from_filename): Update.
2205 * symtab.c (find_main_filename): Make result const.
2206 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2207 * psymtab.c (find_symbol_file_from_partial): Change return type.
2208 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2209 Make result const.
2210
9291a0cd
TT
22112010-07-13 Tom Tromey <tromey@redhat.com>
2212
2213 * breakpoint.c (save_cmdlist): No longer static.
2214 * gdbcmd.h (save_cmdlist): Declare.
2215 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2216 OBJF_READNOW on objfile if readnow_symbol_files.
2217 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2218 (elf_sym_fns_gdb_index): New global.
2219 * dwarf2read.c: Include exceptions.h.
2220 (offset_type): New.
2221 (struct mapped_index): New.
2222 (dwarf2_per_cu_data_ptr): New typedef.
2223 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2224 New fields.
2225 (GDB_INDEX_SECTION): New define.
2226 (struct dwarf2_per_cu_quick_data): New.
2227 (struct dwarf2_per_cu_data) <objfile>: New field.
2228 <psymtab>: Removed.
2229 <v>: New field.
2230 (byte_swap): New function.
2231 (MAYBE_SWAP): New macro.
2232 (INDEX_SUFFIX): New macro.
2233 (dw2_do_instantiate_symtab): New function.
2234 (dw2_instantiate_symtab): Likewise.
2235 (create_cus_from_index): Likewise.
2236 (create_addrmap_from_index): Likewise.
2237 (mapped_index_string_hash): Likewise.
2238 (find_slot_in_mapped_hash): Likewise.
2239 (dwarf2_read_index): Likewise.
2240 (dw2_setup): Likewise.
2241 (dw2_require_line_header): Likewise.
2242 (dw2_require_full_path): Likewise.
2243 (dw2_find_last_source_symtab): Likewise.
2244 (dw2_forget_cached_source_info): Likewise.
2245 (dw2_lookup_symtab): Likewise.
2246 (dw2_lookup_symbol): Likewise.
2247 (dw2_do_expand_symtabs_matching): Likewise.
2248 (dw2_pre_expand_symtabs_matching): Likewise.
2249 (dw2_print_stats): Likewise.
2250 (dw2_dump): Likewise.
2251 (dw2_relocate): Likewise.
2252 (dw2_expand_symtabs_for_function): Likewise.
2253 (dw2_expand_all_symtabs): Likewise.
2254 (dw2_expand_symtabs_with_filename): Likewise.
2255 (dw2_find_symbol_file): Likewise.
2256 (dw2_map_ada_symtabs): Likewise.
2257 (dw2_expand_symtabs_matching): Likewise.
2258 (dw2_find_pc_sect_symtab): Likewise.
2259 (dw2_map_symbol_names): Likewise.
2260 (dw2_map_symbol_filenames): Likewise.
2261 (dw2_has_symbols): Likewise.
2262 (dwarf2_gdb_index_functions): New global.
2263 (dwarf2_initialize_objfile): New function.
2264 (process_psymtab_comp_unit): Update.
2265 (add_partial_subprogram): Likewise.
2266 (dwarf2_psymtab_to_symtab): Likewise.
2267 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2268 (process_full_comp_unit): Update.
2269 (find_file_and_directory): New function.
2270 (read_file_scope): Use find_file_and_directory.
2271 (dwarf2_per_cu_objfile): Update.
2272 (dwarf2_per_cu_addr_size): Update.
2273 (dwarf2_per_cu_offset_size): Update.
2274 (dwarf2_free_objfile): Free the index, if needed.
2275 (dwarf2_per_objfile_free): Unmap the index, if needed.
2276 (struct strtab_entry): New.
2277 (hash_strtab_entry): New function.
2278 (eq_strtab_entry): Likewise.
2279 (create_strtab): Likewise.
2280 (add_string): Likewise.
2281 (struct symtab_index_entry): New.
2282 (struct mapped_symtab): New.
2283 (hash_symtab_entry): New function.
2284 (eq_symtab_entry): Likewise.
2285 (delete_symtab_entry): Likewise.
2286 (create_index_table): Likewise.
2287 (create_mapped_symtab): Likewise.
2288 (cleanup_mapped_symtab): Likewise.
2289 (find_slot): Likewise.
2290 (hash_expand): Likewise.
2291 (add_index_entry): Likewise.
2292 (add_indices_to_cpool): Likewise.
2293 (write_hash_table): Likewise.
2294 (add_address_entry): Likewise.
2295 (write_psymbols): Likewise.
2296 (write_obstack): Likewise.
2297 (unlink_if_set): Likewise.
2298 (write_psymtabs_to_index): Likewise.
2299 (save_gdb_index_command): Likewise.
2300 (_initialize_dwarf2_read): Install "save gdb-index"
2301 command.
2302 (create_all_comp_units): Initialize 'objfile' field of CU.
2303 (dwarf2_locate_sections): Check for .gdb_index.
2304 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2305 * symfile.h (dwarf2_initialize_objfile): Declare.
2306
58b6ab13
TT
23072010-07-13 Tom Tromey <tromey@redhat.com>
2308
2309 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2310 (basic_lookup_transparent_type): Likewise.
2311 * symfile.h (struct quick_symbol_functions)
2312 <pre_expand_symtabs_matching>: New field.
2313 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2314 (psym_functions): Update.
2315
0f5238ed
TT
23162010-07-13 Tom Tromey <tromey@redhat.com>
2317
2318 PR breakpoints/8357:
2319 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2320 * linespec.c (decode_line_1): Update comment. Call decode_label.
2321 (decode_label): New function.
2322 (symbol_found): Handle LOC_LABEL.
2323 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2324 domain. Call add_symbol_to_list.
2325
9aa1f1e3
TT
23262010-07-13 Tom Tromey <tromey@redhat.com>
2327
2328 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2329 * dwarf2loc.c (find_location_expression): Use
2330 dwarf2_per_cu_text_offset.
2331 (dwarf2_evaluate_loc_desc): Likewise.
2332 (dwarf2_loc_desc_needs_frame): Likewise.
2333 (compile_dwarf_to_ax): Likewise.
2334 (loclist_describe_location): Likewise.
2335 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2336 (dwarf2_per_cu_objfile): Update comment.
2337
953ac07e
JK
23382010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2341 * p-lang.c (pascal_printstr): Likewise.
2342
f04e4012
TT
23432010-07-09 Tom Tromey <tromey@redhat.com>
2344
2345 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2346 'hint' if it is NULL.
2347
f4dfd9c0
HZ
23482010-07-09 Hui Zhu <teawater@gmail.com>
2349
2350 * source.c (print_source_lines_base): Add check for noprint.
2351
7e6e39e5
JB
23522010-07-08 Joel Brobecker <brobecker@adacore.com>
2353
2354 * python/python-config.py: Resync with Python 2.7 version of this
2355 script.
2356
76b8507d
JB
23572010-07-08 Joel Brobecker <brobecker@adacore.com>
2358
2359 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2360
797054e6
JB
23612010-07-07 Joel Brobecker <brobecker@adacore.com>
2362
2363 * NEWS: Create a new section for the next release branch.
2364 Rename the section of the current branch, now that it has
2365 been cut.
2366
c80befee 23672010-07-07 Joel Brobecker <brobecker@adacore.com>
2368
2369 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2370 * version.in: Bump version to 7.2.50.20100707-cvs.
2371
ac56253d
TT
23722010-07-07 Tom Tromey <tromey@redhat.com>
2373
2374 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2375 LOC_COMPUTED symbol.
2376 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2377 (dwarf2_loc_desc_needs_frame): Likewise.
2378 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2379 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2380 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2381 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2382 'offset' argument.
2383 (struct dwarf2_frame_cache) <text_offset>: New field.
2384 (dwarf2_frame_cache): Set new field.
2385 (dwarf2_frame_prev_register): Update.
2386 (dwarf2_frame_sniffer): Update.
2387 (dwarf2_frame_base_sniffer): Update.
2388 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2389
0cf6dd15
TJB
23902010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2391 Thiago Jung Bauermann <bauerman@br.ibm.com>
2392
2393 Support for hw accelerated condition watchpoints in booke powerpc.
2394
2395 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2396 and move to eval.c. Change callers.
2397 (insert_bp_location): Pass watchpoint condition in
2398 target_insert_watchpoint.
2399 (remove_breakpoint_1) Pass watchpoint condition in
2400 target_remove_watchpoint.
2401 (watchpoint_locations_match): Call
2402 target_can_accel_watchpoint_condition.
2403 * eval.c: Include wrapper.h.
2404 (fetch_subexp_value): Moved from breakpoint.c.
2405 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2406 Formatting fix.
2407 (can_use_watchpoint_cond_accel): New function.
2408 (calculate_dvc): Likewise.
2409 (num_memory_accesses): Likewise.
2410 (check_condition): Likewise.
2411 (ppc_linux_can_accel_watchpoint_condition): Likewise
2412 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2413 check_condition and calculate_dvc.
2414 (ppc_linux_remove_watchpoint): Likewise.
2415 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2416 ppc_linux_can_accel_watchpoint_condition
2417 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2418 condition.
2419 (debug_to_remove_watchpoint): Likewise.
2420 (debug_to_can_accel_watchpoint_condition): New function.
2421 (update_current_target): Set to_can_accel_watchpoint_condition.
2422 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2423 * target.h: Add opaque declaration for struct expression.
2424 (struct target_ops) <to_insert_watchpoint>,
2425 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2426 <to_can_accel_watchpoint_condition>: New member.
2427 condition. Update all callers and implementations.
2428 (target_can_accel_watchpoint_condition): New macro.
2429 * value.c (free_value_chain): New function.
2430 * value.h (fetch_subexp_value): New prototype.
2431 (free_value_chain): Likewise.
2432
2f2241f1
UW
24332010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2434
2435 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2436 from gdbarch_core_regset_sections also for .reg if present.
2437
2438 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2439 section size for .reg.
2440 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2441 (ppc_linux_vmx_regset_sections): Likewise.
2442 (ppc_linux_fp_regset_sections): Likewise.
2443 (ppc64_linux_vsx_regset_sections): New variable.
2444 (ppc64_linux_vmx_regset_sections): Likewise.
2445 (ppc64_linux_fp_regset_sections): Likewise.
2446 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2447 for current word size.
2448
1fd7cdc2
JB
24492010-07-06 Joel Brobecker <brobecker@adacore.com>
2450
2451 * server.c (myresume): Make static.
2452
11763c18
TT
24532010-07-06 Tom Tromey <tromey@redhat.com>
2454
2455 * configure, config.in: Rebuild.
2456 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2457 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2458
a6cc4789
AS
24592010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2460
2461 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2462 "clear".
2463
f9e9243a
UW
24642010-07-06 Ken Werner <ken.werner@de.ibm.com>
2465
2466 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2467 * gdbtypes.c (floatformats_ieee_half): New variable.
2468 * doublest.c (floatformat_from_length): Set format to
2469 gdbarch_half_format if length matches.
2470 * gdbarch.sh (half_bit): New architecture method.
2471 (half_format): Likewise.
2472 * gdbarch.h: Regenerate.
2473 * gdbarch.c: Likewise.
2474
4e5799b6
JK
24752010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2476 Joel Brobecker <brobecker@adacore.com>
2477
2478 Fix re-run of PIE executable, PR shlibs/11776.
2479 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2480 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2481
86e4bafc
JK
24822010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 Joel Brobecker <brobecker@adacore.com>
2484
2485 * auxv.c (memory_xfer_auxv): Update attach comment.
2486 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2487 svr4_relocate_main_executable.
2488 (svr4_solib_create_inferior_hook): Make the call to
2489 svr4_relocate_main_executable unconditional.
2490
3cd07d20
JK
24912010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2492 Joel Brobecker <brobecker@adacore.com>
2493
2494 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2495
0a1e94c7
JK
24962010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2497 Joel Brobecker <brobecker@adacore.com>
2498
2499 Fix attaching to PIEs prelinked on the disk after the process was
2500 started.
2501 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2502 Verify it against bfd_get_arch_size. Try to match arbitrary
2503 displacement for the phdrs comparison.
2504
5387647f
TT
25052010-07-02 Tom Tromey <tromey@redhat.com>
2506
2507 PR exp/11780:
2508 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2509 value as optimized-out.
2510
38b6c3b3
TJB
25112010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2512 Thiago Jung Bauermann <bauerman@br.ibm.com>
2513
2514 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2515 represent?" question in comment. Change comment to a proper sentence.
2516
a17ac5b0
TT
25172010-07-02 Ken Werner <ken.werner@de.ibm.com>
2518
2519 * c-valprint.c (c_val_print): Fix printing of character vectors.
2520
bddaafad
JK
25212010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2522
2523 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2524 create_breakpoint prototype.
2525
d41c0fc8
PA
25262010-07-01 Pedro Alves <pedro@codesourcery.com>
2527
2528 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2529 usefulness suggestion of multiple breakpoints at same location.
2530
dc10affe
PA
25312010-07-01 Pedro Alves <pedro@codesourcery.com>
2532
2533 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2534
cabe9ab6
PA
25352010-07-01 Pedro Alves <pedro@codesourcery.com>
2536
2537 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2538 (loclist_tracepoint_var_ref): Handle optimized out values.
2539
cce7e648
PA
25402010-07-01 Pedro Alves <pedro@codesourcery.com>
2541
2542 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2543 unnecessary space in string.
2544 * filesystem.c (_initialize_filesystem): Ditto.
2545 * frame.c (_initialize_frame): Ditto.
2546 * infcmd.c (step_once): Ditto.
2547 * infrun.c (_initialize_infrun): Ditto.
2548 * linux-nat.c (linux_child_follow_fork): Ditto.
2549 * maint.c (maintenance_deprecate): Ditto.
2550 * memattr.c (_initialize_mem): Ditto.
2551 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2552 * monitor.c (monitor_open): Ditto.
2553 * procfs.c (procfs_xfer_memory): Ditto.
2554 * reverse.c (bookmarks_info): Ditto.
2555 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2556 * stack.c (_initialize_stack): Ditto.
2557 * tracepoint.c (_initialize_tracepoint): Ditto.
2558 * xtensa-tdep.c (xtensa_supply_gregset,
2559 xtensa_regset_from_core_section): Ditto.
2560
b65c7efe
TT
25612010-07-01 Tom Tromey <tromey@redhat.com>
2562
2563 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2564 check_all_valid.
2565 * value.c (value_entirely_optimized_out): Invert result. Update
2566 for new function name.
2567
0fb4aa4b
PA
25682010-07-01 Pedro Alves <pedro@codesourcery.com>
2569
2570 Static tracepoints support.
2571
2572 * NEWS: Mention new support for static tracepoints.
2573 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2574 qXfer:statictrace:read.
2575 (New features in the GDB remote stub, GDBserver): Mention static
2576 tracepoints support using an UST based backend.
2577 (New commands): Mention "info static-tracepoint-markers" and
2578 "strace".
2579 * breakpoint.c (is_marker_spec): New.
2580 (is_tracepoint): Handle static tracepoints.
2581 (validate_commands_for_breakpoint): Static tracepoints can't do
2582 while-stepping.
2583 (static_tracepoints_here): New.
2584 (bpstat_what): Handle static tracepoints.
2585 (print_one_breakpoint_location, allocate_bp_location, mention):
2586 Ditto.
2587 (create_breakpoint_sal): Ditto.
2588 (decode_static_tracepoint_spec): New.
2589 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2590 `type_wanted'. Adjust. Handle static tracepoint marker
2591 locations.
2592 (break_command_1): Adjust.
2593 (update_static_tracepoint): New.
2594 (update_breakpoint_locations): Handle static tracepoints.
2595 (breakpoint_re_set_one): Handle static tracepoint marker
2596 locations.
2597 (disable_command, enable_command): Handle static tracepoints.
2598 (trace_command, ftrace_command): Adjust.
2599 (strace_command): New.
2600 (create_tracepoint_from_upload): Adjust.
2601 (save_breakpoints): Handle static tracepoints.
2602 (_initialize_breakpoint): Install the "strace" command.
2603 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2604 (struct breakpoint): New fields static_trace_marker_id and
2605 static_trace_marker_id_idx.
2606 (breakpoints_here_p): Declare.
2607 (create_breakpoint): Adjust.
2608 (static_tracepoints_here): Declare.
2609 * remote.c (struct remote_state) <static_tracepoints>: New field.
2610 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2611 (remote_static_tracepoint_marker_at): New.
2612 (remote_static_tracepoint_markers_by_strid): New.
2613 (remote_static_tracepoint_feature): New.
2614 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2615 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2616 (remote_supports_static_tracepoints): New.
2617 (remote_download_tracepoint): Download static tracepoints.
2618 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2619 remote_static_tracepoint_markers_by_strid.
2620 (_initialize_remote): Install set|show remote static-tracepoints,
2621 and set|show remote read-sdata-object commands.
2622 * target.c (update_current_target): Inherit and default
2623 to_static_tracepoint_marker_at, and
2624 to_static_tracepoint_markers_by_strid.
2625 * target.h (static_tracepoint_marker): Forward declare.
2626 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 2627 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
2628 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2629 (struct target_ops): New fields to_static_tracepoint_marker_at and
2630 to_static_tracepoint_markers_by_strid.
2631 (target_static_tracepoint_marker_at)
2632 (target_static_tracepoint_markers_by_strid): New.
2633 * tracepoint.c: Include source.h.
2634 (validate_actionline): Handle $_sdata.
2635 (struct collection_list): New field strace_data.
2636 (add_static_trace_data): New.
2637 (clear_collection_list): Clear strace_data.
2638 (stringify_collection_list): Account for a possible static trace
2639 data collection.
2640 (encode_actions_1): Encode an $_sdata collection.
2641 (parse_tracepoint_definition): Handle static tracepoints.
2642 (parse_static_tracepoint_marker_definition): New.
2643 (release_static_tracepoint_marker): New.
2644 (print_one_static_tracepoint_marker): New.
2645 (info_static_tracepoint_markers_command): New.
2646 (sdata_make_value): New.
2647 (_initialize_tracepoint): Create the $_sdata convenience variable.
2648 Add the "info static-tracepoint-markers" command.
2649 Mention $_sdata in the "collect" command's help output.
2650 * tracepoint.h (struct static_tracepoint_marker): New.
2651 (parse_static_tracepoint_marker_definition)
2652 (release_static_tracepoint_marker): Declare.
2653 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2654 * python/py-breakpoint.c (bppy_new): Adjust.
2655
aac63f0f
JB
26562010-06-30 Joel Brobecker <brobecker@adacore.com>
2657
2658 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2659 including Python.h.
2660
e68994a7
DE
26612010-06-29 Doug Evans <dje@google.com>
2662
3863f96c
DE
2663 PR gdb/11702
2664 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2665 DW_AT_external is present.
2666
254e6b9e
DE
2667 PR gdb/11702
2668 * NEWS: Add entry.
2669 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2670 create a symbol for the field and record the value.
2671 (new_symbol): Handle DW_TAG_member.
2672 * gdbtypes.c (field_is_static): Remove FIXME.
2673 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2674 only ignore LOC_CONST symbols that are enums.
2675
6e70227d
DE
2676 * dwarf2read.c: Remove trailing whitespace.
2677
e68994a7
DE
2678 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2679 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2680 (struct main_type, field loc): Delete dwarf_block.
2681 (FIELD_DWARF_BLOCK): Delete.
2682 (SET_FIELD_DWARF_BLOCK): Delete.
2683 (TYPE_FIELD_DWARF_BLOCK): Delete.
2684 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2685 Update.
2686
a480d2f6
HZ
26872010-06-29 Hui Zhu <teawater@gmail.com>
2688
2689 * record.c (set_record_pic_cmdlist,
2690 show_record_pic_cmdlist): New variables.
2691 (set_record_pic_command,
2692 show_record_pic_command): New functions.
2693 (record_pic_function, record_pic_line, record_pic_enum,
2694 set_record_pic_type, record_pic_hide_nofunction,
2695 record_pic_hide_nosource, record_pic_hide_same): New variables.
2696 (record_pic_fputs): New function.
2697 (function_list, node_list, edge_list): New struct.
2698 (function_list, node_list, edge_list): New variables.
2699 (record_pic_cleanups, record_pic_node,
2700 record_pic_edge, cmd_record_pic): New functions.
2701 (_initialize_record): Add new commands for record pic.
2702
a0d7a4ff
JK
27032010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2704
2705 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2706 ALLOCATE_CPLUS_STRUCT_TYPE.
2707
595939de 27082010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
2709 Tom Tromey <tromey@redhat.com>
2710 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
2711
2712 * value.c (pack_unsigned_long): New function.
2713 (value_from_ulongest): New function.
2714 * value.h (value_from_ulongest): Declare.
2715 * python/python.c (_initialize_python): Call
2716 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2717 * python/python-internal.h: Define thread_object.
2718 (gdbpy_inferiors, gdbpy_selected_thread)
2719 (frame_info_to_frame_object, create_thread_object)
2720 (find_thread_object, find_inferior_object)
2721 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2722 (gdbpy_is_value_object, get_addr_from_python): Declare.
2723 * python/py-value.c (builtin_type_upylong): Define.
2724 (convert_value_from_python): Add logic for ulongest.
2725 (gdbpy_is_value_object): New function.
2726 * python/py-utils.c (get_addr_from_python): New function.
2727 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2728 (gdbpy_selected_frame): Use PyObject over frame_info.
2729 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2730 py-infthread.
2731 (SUBDIR_PYTHON_SRCS): Likewise.
2732 (py-inferior.o): New Rule.
2733 (py-infthread.o): New Rule.
2734 * python/py-inferior.c: New File.
2735 * python/py-infthread.c: New File.
2736
98751a41
JK
27372010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2738
2739 * c-typeprint.c (c_type_print_base): For no fields check include also
2740 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2741 * dwarf2read.c (struct typedef_field_list)
2742 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2743 (dwarf2_add_typedef): New.
2744 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2745 Copy also FI.TYPEDEF_FIELD_LIST.
2746 * gdbtypes.h (struct typedef_field)
2747 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2748 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2749 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2750
41f62f39
JK
27512010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2752
2753 * cp-namespace.c (cp_lookup_nested_type): New variable
2754 concatenated_name. Turn the current return condition into a reverse
2755 one. Call also lookup_static_symbol_aux on the constructed qualified
2756 name.
2757 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2758 other files into a called ...
2759 (lookup_static_symbol_aux): ... new function here.
2760 * symtab.h (lookup_static_symbol_aux): New prototype.
2761 * valops.c (value_maybe_namespace_elt): Call also
2762 lookup_static_symbol_aux if we failed otherwise.
2763
af53d231
JK
27642010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2765
2766 Fix PR c++/11703 and PR gdb/1448.
2767 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2768 FIRST_ITER check.
2769
9655fd1a
JK
27702010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2771
2772 Fix modification of cplus_struct_default.
2773 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2774 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2775 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2776
9279c692
JB
27772010-06-28 Joel Brobecker <brobecker@adacore.com>
2778
2779 * NEWS: Add entry announcing the python directory.
2780
d3f41bb1
TT
27812010-06-28 Tom Tromey <tromey@redhat.com>
2782
2783 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2784
23e7acfb
DE
27852010-06-28 Doug Evans <dje@google.com>
2786
2787 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2788 All callers updated.
2789
6036c742
JK
27902010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2791
2792 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2793 obstack_begin after each obstack_free.
2794
9f18a3b3
DE
27952010-06-27 Doug Evans <dje@google.com>
2796
1596cb5d
DE
2797 * value.c (value_static_field): Use `switch' instead of `if'.
2798 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2799
9f18a3b3
DE
2800 * valops.c (search_struct_field): Fix typo in error message.
2801
43dabe42
UW
28022010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2803
2804 * dwarf2expr.c (execute_stack_op): Place preprocessor
2805 directives at the start of the source line.
2806
0f3bb72e
PH
28072010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2808
6036c742
JK
2809 * defs.h (make_command_stats_cleanup): Declare.
2810 (set_display_time): Declare.
2811 (set_display_space): Declare.
2812 * event-top.c (command_handler): Use make_command_stats_cleanup.
2813 * main.c (display_time, display_space): Move definitions to utils.c.
2814 (captured_main): Use make_command_stats_cleanup to get start-up
2815 statistics.
2816 Use set_display_time and set_display_space for processing OPT_STATISTICS
2817 case.
2818 * maint.c (maintenance_time_display): Use set_display_time.
2819 (maintenance_space_display): Use set_display_space.
2820 * top.c (execute_command): Remove obsolete 'maint time' code.
2821 (command_loop): Use make_command_stats_cleanup.
2822 * utils.c (struct cmd_stats): Structure for storing initial time
2823 and space usage.
2824 (display_time, display_space): Move definitions here from utils.c.
2825 (set_display_time): New function.
2826 (set_display_space): New function.
2827 (make_command_stats_cleanup): New function.
2828 (report_command_stats): New auxiliary function for
2829 make_command_stats_cleanup.
0f3bb72e 2830
070c8028
UW
28312010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2832
2833 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2834 hosts where CORE_ADDR is long long.
2835
bc9f0842
TT
28362010-06-25 Tom Tromey <tromey@redhat.com>
2837
2838 PR python/10808:
2839 * python/python.c (execute_gdb_command): Add keywords. Accept
2840 "to_string" argument.
2841 (struct restore_ui_file_closure): New.
2842 (restore_ui_file): New function.
2843 (make_cleanup_restore_ui_file): Likewise.
2844 (GdbMethods) <execute>: Update.
2845
c0cc4c83
UW
28462010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2847
2848 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2849 during inferior call stack frame setup.
2850
f1d8ee66
UW
28512010-06-25 Ken Werner <ken.werner@de.ibm.com>
2852
2853 * solib-spu.c: Include "exception.h".
2854 (ocl_program_data_key): New variable.
2855 (append_ocl_sos): New function.
2856 (ocl_enable_break): Likewise.
2857 (spu_current_sos): Call append_ocl_sos.
2858 (spu_solib_loaded): Call ocl_enable_break.
2859 (_initialize_spu_solib): Register ocl_program_data_key.
2860
19c0c0f8
UW
28612010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2862
2863 * cp-support.c (reset_directive_searched): New function.
2864 (make_symbol_overload_list_using): Prevent recursive calls.
2865
0f6a939d
PM
28662010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2867
2868 * printcmd.c (print_variable_and_value): Print error message on
2869 caught exception.
2870
f2c7657e
UW
28712010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2872
2873 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2874 of stack values.
2875 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2876 "value" member.
2877 (dwarf_expr_push): Change input type to ULONGEST.
2878 (dwarf_expr_fetch): Change return type to ULONGEST.
2879 (dwarf_expr_fetch_address): Add prototype.
2880 (dwarf2_read_address): Remove prototype.
2881 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2882 Truncate stack values to ctx->addr_size bytes.
2883 (dwarf_expr_fetch): Change return value to ULONGEST.
2884 (dwarf_expr_fetch_address): New function.
2885 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2886 when appropriate. Update for struct dwarf_expr_piece changes.
2887 (dwarf2_read_address): Remove.
2888 (unsigned_address_type): Remove.
2889 (signed_address_type): Remove.
2890 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2891 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2892 values. Perform operations on ULONGEST instead of on GDB values,
2893 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2894 values and DW_OP_deref results as unsigned integers.
2895 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2896 changes.
2897 (write_pieced_value): Likewise.
2898 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2899 dwarf_expr_fetch when appropriate.
2900 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2901 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2902 instead of dwarf_expr_fetch when appropriate.
2903
b1d61bc9
PM
29042010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2905
2906 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2907
b14285f6
JB
29082010-06-24 Joel Brobecker <brobecker@adacore.com>
2909
2910 * python/python.c (_initialize_python): Add new "constant"
2911 PYTHONDIR in gdb module. Insert this path at the head of
2912 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2913 exec its __init__.py script if it exists in that directory.
2914
fd60dc69
KB
29152010-06-24 Kevin Buettner <kevinb@redhat.com>
2916
2917 * rx-tdep.c (RX_ACC_REGNUM): Define.
2918 (RX_NUM_REGS): Redefine to 26.
2919 (rx_register_name): Add register "acc". Change order of several
2920 registers. Change name of "vct" register to "fintv" to match RX
2921 documentation.
2922 (rx_register_type): Add case for RX_ACC_REGNUM.
2923
18430289
TT
29242010-06-24 Tom Tromey <tromey@redhat.com>
2925
2926 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2927
40618926
JK
29282010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2929 Tom Tromey <tromey@redhat.com>
2930
2931 Fix GDB startup on readonly filesystem.
2932 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2933
628fe4e4
JK
29342010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2935 Pedro Alves <pedro@codesourcery.com>
2936
2937 Fix PR 9436.
2938 * breakpoint.c (handle_jit_event): New function.
2939 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2940 jit, err, table and bs_class. New variables shlib_event, jit_event,
2941 this_action and bptype. Change bs_class assignments to this_action
2942 assignments. new unhandled bptype internal error. Move here
2943 shlib_event and jit_event handling from handle_inferior_event.
2944 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2945 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2946 BPSTAT_WHAT_CHECK_JIT.
2947 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2948 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2949 (handle_inferior_event): Reinitialize frame and gdbarch after
2950 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2951 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2952 gdbarch when frame gets reinitialized.
2953
f1421989
HZ
29542010-06-24 Hui Zhu <teawater@gmail.com>
2955
2956 * printcmd.c (ui_printf): New function.
2957 (printf_command): Call ui_printf.
2958 (_initialize_printcmd): New command "eval".
2959
d03285ec
UW
29602010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2961
2962 * infrun.c (handle_inferior_event): Handle presence of single-step
2963 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2964 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2965 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2966 * breakpoint.c (detach_single_step_breakpoints): New function.
2967 (detach_breakpoints): Call it.
2968 (cancel_single_step_breakpoints): New function.
2969 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2970
2971 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2972 (spu_gdbarch_init): Install it.
2973
38f6b338
JK
29742010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2975
2976 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2977 * configure: Regenerate.
2978
bb08c432
HZ
29792010-06-22 Hui Zhu <teawater@gmail.com>
2980
2981 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2982 (i386_process_record): Ditto.
2983 * record.c (record_memory_query): New variable.
2984 (_initialize_record): New command "set record memory-query".
2985 * record.h (record_memory_query): New extern.
2986
b55078be
DE
29872010-06-21 Doug Evans <dje@google.com>
2988
2989 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2990 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2991 (i386_syscall_p): Change type of lengthp to int.
2992 (i386_displaced_step_fixup): Handle kernels that run one past a
2993 syscall insn.
2994 * i386-linux-tdep.c (i386_linux_init_abi): Use
2995 i386_displaced_step_copy_insn instead of
2996 simple_displaced_step_copy_insn.
2997
75079b2b
TT
29982010-06-21 Tom Tromey <tromey@redhat.com>
2999
3000 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3001 (dwarf_type_encoding_name): Likewise.
3002
b00fdb78
TT
30032010-06-21 Tom Tromey <tromey@redhat.com>
3004
3005 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3006 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3007 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3008 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3009 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3010 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3011 * dwarf2read.c (tag_type_to_type): Create a new error type on
3012 failure.
3013 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3014 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3015
84951ab5
MS
30162010-06-21 Michael Snyder <msnyder@vmware.com>
3017
889bf7c5 3018 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
3019 not add_abbrev_prefix_cmd, for "enable breakpoints".
3020
d4a087c7
UW
30212010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3022
3023 * dwarf2loc.c (find_location_expression): Add relocation offset
3024 to base-address-selection entry base addresses. Read addresses
3025 (and offsets) as signed/unsigned integers, depending on the
3026 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3027 (loclist_describe_location): Likewise.
3028 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3029 unsigned integer. Do not call dwarf2_read_address.
3030 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3031
13def385
UW
30322010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3033
3034 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3035 value instead of hard-coded SPU_LS_SIZE.
3036 (spu_software_single_step): Likewise.
3037 * spu-tdep.h (SPU_LS_SIZE): Remove.
3038
d2ed6730
UW
30392010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3040
3041 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3042 limit on local store memory accesses.
3043 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3044 * spu-tdep.c (spu_lslr): Remove.
3045 (spu_pointer_to_address): Do not truncate addresses.
3046 (spu_integer_to_address): Likewise.
3047 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3048 * spu-tdep.h: Add comments.
3049 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3050 (SPU_OVERLAY_LMA): Define.
3051
6aed2dbc
SS
30522010-06-18 Stan Shebs <stan@codesourcery.com>
3053
a61408f8
SS
3054 * osdata.c (get_osdata): Warn separately if target does not report
3055 type list.
3056 (info_osdata_command): Allow empty type, report error if target
3057 does not return available types of OS data.
3058 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3059 types if no annex supplied.
3060
6aed2dbc
SS
3061 * thread.c (thread_id_make_value): Make a value representing the
3062 current thread.
3063 (_initialize_thread): Create $_thread.
3064
ec61707d
JB
30652010-06-17 Joel Brobecker <brobecker@adacore.com>
3066
3067 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3068 last local variable declaration. No real code change.
3069
60606b2c
TT
30702010-06-17 Tom Tromey <tromey@redhat.com>
3071
3072 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3073 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3074 temporary obstack.
3075
65d79d4b
SDJ
30762010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3077 Jan Kratochvil <jan.kratochvil@redhat.com>
3078
3079 * breakpoint.c: Include parser-defs.h.
3080 (watchpoint_exp_is_const): New function.
3081 (watch_command_1): Call watchpoint_exp_is_const to check
3082 if the expression is constant.
3083
0407b3f1
AS
30842010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3085
3086 * configure.ac: Check for RDYNAMIC also for cross builds.
3087 * configure: Regenerate.
3088
98d64339
PA
30892010-06-15 Pedro Alves <pedro@codesourcery.com>
3090
3091 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3092 (SFILES): Remove solib-null.c, add solib-target.c.
3093 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3094 (ALLDEPFILES): Remove solib-target.c.
3095 * solib-target.c (_initialize_solib_target): Set
3096 current_target_so_ops to solib_target_so_ops if not already set.
3097 * solib-null.c: Delete.
3098
6a271cae
PA
30992010-06-14 Pedro Alves <pedro@codesourcery.com>
3100
3101 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3102 bytecode.
3103
1e9beacb
UW
31042010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3105
3106 * cp-valprint.c (cp_print_static_field): Members of
3107 dont_print_stat_array_obstack are of type "struct type *".
3108 (_initialize_cp_valprint): Likewise.
3109
21a176fb
UW
31102010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3111
3112 * frame.c (frame_register_unwind): Do not access contents
3113 of "optimized out" unwound register value.
3114
25b524e8
JK
31152010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 * ada-lang.h (ada_print_type): Make varstring const.
3118 * ada-typeprint.c (print_func_type): Make name const.
3119 (ada_print_type): Make varstring const.
3120 * c-lang.h (c_print_type): Make varstring const.
3121 * c-typeprint.c (c_print_type): Likewise.
3122 * f-lang.h (f_print_type): Likewise.
3123 * f-typeprint.c (f_print_type): Likewise.
3124 * jv-lang.h (java_print_type): Likewise.
3125 * jv-typeprint.c (java_print_type): Likewise.
3126 * language.c (unk_lang_print_type): Likewise.
3127 * language.h (struct language_defn) <la_print_type>: Likewise.
3128 * m2-lang.h (m2_print_type): Likewise.
3129 * m2-typeprint.c (m2_print_type): Likewise.
3130 * p-lang.h (pascal_print_type): Likewise.
3131 * p-typeprint.c (pascal_print_type): Likewise.
3132
d914c394
SS
31332010-06-11 Stan Shebs <stan@codesourcery.com>
3134
3135 Add per-operation permission flags.
3136
3137 * target.h (struct target_ops): New method to_set_permissions.
3138 (target_set_permissions): New macro.
3139 (target_insert_breakpoint): Change macro to function.
3140 (target_remove_breakpoint): Ditto.
3141 (target_stop): Ditto.
3142 (may_write_registers): Declare.
3143 (may_write_memory): Declare.
3144 (may_insert_breakpoints): Declare.
3145 (may_insert_tracepoints): Declare.
3146 (may_insert_fast_tracepoints): Declare.
3147 (may_stop): Declare.
3148 * target.c (may_write_registers, may_write_registers_1): New globals.
3149 (may_write_memory, may_write_memory_1): New globals.
3150 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3151 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3152 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3153 globals.
3154 (may_stop, may_stop_1): New global.
3155 (target_xfer_partial): Test for write permission.
3156 (target_store_registers): Ditto.
3157 (target_insert_breakpoint): New function.
3158 (target_remove_breakpoint): New function.
3159 (target_stop): New function.
3160 (_initialize_targets): Add new set/show variables.
3161 (set_write_memory_permission): New function.
3162 (update_target_permissions): New function.
3163 (set_target_permissions): New function.
3164 (update_current_target): Default to_set_permissions.
3165 (_initialize_targets): Use new globals and setter function.
3166 * tracepoint.c (start_tracing): Test for permission.
3167 * inferior.h (update_observer_mode): Declare.
3168 * infrun.c (non_stop_1): Define earlier.
3169 (observer_mode, observer_mode_1): New globals.
3170 (set_observer_mode, show_observer_mode): New functions.
3171 (update_observer_mode): New function.
3172 (_initialize_infrun): Define "set observer" command.
3173 * remote.c (PACKET_QAllow): New optional packet.
3174 (remote_protocol_features): Add QAllow.
3175 (remote_set_permissions): New function.
3176 (remote_start_remote): Call it.
3177 (init_remote_ops): Add it to target vector.
3178 (_initialize_remote): Add config command for QAllow.
3179
aec5aa8b
TT
31802010-06-11 Tom Tromey <tromey@redhat.com>
3181
3182 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3183 DW_AT_vtable_elem_location even when GCC extension is seen.
3184
0e03807e
TT
31852010-06-11 Tom Tromey <tromey@redhat.com>
3186
3187 PR gdb/9977, PR exp/11636:
3188 * value.h (value_offset): Update.
3189 (struct lval_funcs) <check_validity>: New field.
3190 <copy_closure>: Make argument const.
3191 (value_computed_closure): Update.
3192 (value_contents_for_printing): Declare.
3193 (value_bits_valid): Likewise.
3194 (val_print): Likewise.
3195 (set_value_component_location): Update.
3196 (value_entirely_optimized_out): Declare.
3197 * value.c (value_offset): Argument now const.
3198 (require_not_optimized_out): New function.
3199 (value_contents_for_printing): New function.
3200 (value_contents_all): Call require_not_optimized_out.
3201 (value_contents): Likewise.
3202 (value_bits_valid): New function.
3203 (value_computed_closure): Argument now const.
3204 (set_value_component_location): Make 'whole' argument const.
3205 (value_entirely_optimized_out): New function.
3206 (value_bitsize): Argument now 'const'.
3207 (value_bitpos): Likewise.
3208 (value_type): Likewise.
3209 * valprint.h (val_print_array_elements): Update.
3210 * valprint.c (val_print): Add 'val' argument. Use
3211 valprint_check_validity.
3212 (valprint_check_validity): New function.
3213 (value_check_printable): Use value_entirely_optimized_out.
3214 (common_val_print): Update.
3215 (value_print): Likewise.
3216 (val_print_array_elements): Add 'val' argument.
3217 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3218 value_bits_valid. Reinit frame cache for lval_computed.
3219 * sh64-tdep.c (sh64_do_register): Update.
3220 * scm-valprint.c (scm_val_print): Add 'val' argument.
3221 * scm-lang.h (scm_val_print): Update.
3222 * python/python.h (apply_val_pretty_printer): Update.
3223 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3224 argument. Call set_value_component_location.
3225 * printcmd.c (print_scalar_formatted): Update.
3226 * p-valprint.c (pascal_val_print): Add 'val' argument.
3227 (pascal_object_print_value_fields): Likewise.
3228 (pascal_object_print_value): Likewise.
3229 (pascal_object_print_static_field): Update.
3230 * p-lang.h (pascal_val_print): Update.
3231 (pascal_object_print_value_fields): Update.
3232 * mt-tdep.c (mt_registers_info): Update.
3233 * mi/mi-main.c (get_register): Update.
3234 (mi_cmd_data_evaluate_expression): Use common_val_print.
3235 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3236 (m2_print_unbounded_array): Likewise.
3237 (m2_val_print): Likewise.
3238 * m2-lang.h (m2_val_print): Update.
3239 * language.h (struct language_defn) <la_val_print>: Add 'val'
3240 argument.
3241 (LA_VAL_PRINT): Likewise.
3242 * language.c (unk_lang_val_print): Add 'val' argument.
3243 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3244 (java_val_print): Likewise.
3245 * jv-lang.h (java_val_print): Add 'val' argument.
3246 * infcmd.c (default_print_registers_info): Update.
3247 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3248 (f77_print_array): Likewise.
3249 (f_val_print): Likewise.
3250 * f-lang.h (f_val_print): Add 'val' argument.
3251 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3252 value_bitpos.
3253 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3254 set_value_optimized_out.
3255 (write_pieced_value): Use value_bitsize and value_bitpos.
3256 <default>: Don't exit loop.
3257 (check_pieced_value_validity): New function.
3258 (pieced_value_funcs): Reference check_pieced_value_validity,
3259 check_pieced_value_invalid.
3260 (copy_pieced_value_closure): Update.
3261 (check_pieced_value_bits): New function.
3262 (check_pieced_value_invalid): New function.
3263 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3264 (d_val_print): Likewise.
3265 * d-lang.h (d_val_print): Update.
3266 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3267 (cp_print_value_fields_rtti): Likewise.
3268 (cp_print_value): Likewise.
3269 (cp_print_static_field): Update.
3270 * c-valprint.c (c_val_print): Add 'val' argument.
3271 (c_value_print): Update.
3272 * c-lang.h (c_val_print): Update.
3273 (cp_print_value_fields): Likewise.
3274 (cp_print_value_fields_rtti): Likewise.
3275 * ada-valprint.c (struct ada_val_print_args): Remove.
3276 (val_print_packed_array_elements): Add 'val' argument.
3277 (ada_val_print): Likewise. Rewrite.
3278 (ada_val_print_stub): Remove.
3279 (ada_val_print_array): Add 'val' argument.
3280 (ada_val_print_1): Likewise.
3281 (print_variant_part): Likewise.
3282 (ada_value_print): Update.
3283 (print_record): Add 'val' argument.
3284 (print_field_values): Likewise.
3285 * ada-lang.h (ada_val_print): Update.
3286
3cf03773
TT
32872010-06-11 Tom Tromey <tromey@redhat.com>
3288
3289 * vec.h (VEC_cleanup): New macro.
3290 (DEF_VEC_ALLOC_FUNC_I): Update.
3291 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3292 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3293 * dwarf2loc.c (struct axs_var_loc): Remove.
3294 (unimplemented): New function.
3295 (translate_register): Likewise.
3296 (access_memory): Likewise.
3297 (compile_dwarf_to_ax): Likewise.
3298 (dwarf2_tracepoint_var_loc): Remove.
3299 (dwarf2_tracepoint_var_access): Likewise.
3300 (dwarf2_tracepoint_var_ref): Likewise.
3301 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3302 (loclist_tracepoint_var_ref): Likewise.
3303 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3304 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3305 require_composition. No longer static.
3306 (execute_stack_op): Update.
3307 * ax-gdb.h (trace_kludge): Declare.
3308
2bdf28a0
JK
33092010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3310
3311 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3312 (should_be_inserted): Return zero also on NULL OWNER.
3313 (breakpoint_program_space_exit): New OWNER comment.
3314 (insert_breakpoint_locations): Extend comment for OWNER.
3315 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3316 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3317 New OWNER comment.
3318 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3319 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3320 (bpstat_check_location): New assert on OWNER.
3321 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3322 and B initializations to the code block. New assert on them.
3323 (print_one_breakpoint_location): New OWNER comment.
3324 (watchpoint_locations_match): Assert on OWNER.
3325 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3326 initializations to the code block. New assert on OWNER.
3327 (set_breakpoint_location_function): New assert on OWNER.
3328 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3329 (bp_location_compare, update_global_location_list)
3330 (update_global_location_list): New OWNER comment.
3331
5b9a19af
UW
33322010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3333
3334 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3335
669211f5
UW
33362010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3337
3338 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3339 (lin_thread_get_thread_signals): Remove prototype.
3340 (GET_THREAD_SIGNALS): Remove.
3341 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3342 * linux-thread-db.c (check_thread_signals): Directly call
3343 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3344
b7a8b4ef
UW
33452010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3346
3347 * gregset.h (GDB_FPXREGSET_T): Remove.
3348 (gdb_fpxregset_t): Likewise.
3349 (supply_fpxregset): Remove prototype.
3350 (fill_fpxregset): Likewise.
3351 * i386-linux-nat.c (supply_fpxregset): Remove.
3352 (fill_fpxregset): Likewise.
3353 (fetch_fpxregs): Inline supply_fpxregset call.
3354 (store_fpxregs): Inline fill_fpxregset call.
3355
3356 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3357 * config/i386/nm-linux.h: Remove file.
3358
82892036
MS
33592010-06-09 Michael Snyder <msnyder@vmware.com>
3360
3361 * target.c (update_current_target): Fix spelling error in comment.
3362 (target_mourn_inferior): Fix spelling error in error message.
3363
5ddb52fa
PH
33642010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3365
3366 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3367 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3368
0f2caa1b
MS
33692010-06-08 Michael Snyder <msnyder@vmware.com>
3370
3371 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3372
3bebe2f2
JK
33732010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3374
3375 * configure.ac <"${have_libpython}" != no>: New workaround of
3376 python#4434.
3377 * configure: Regenerate.
3378
eaaffdf4
HZ
33792010-06-08 Hui Zhu <teawater@gmail.com>
3380
3381 * record.c (record_wait): Move signal out of replay code.
3382
5c631832
JK
33832010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3384
3385 Fix PR 10640.
3386 * dwarf2-frame.c (no_dwarf_call): New function.
3387 (execute_stack_op): Set CTX->DWARF_CALL.
3388 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3389 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3390 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3391 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3392 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3393 (needs_frame_dwarf_call): New function.
3394 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3395 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3396 Update the comment. Move variables die, offset and error call to ...
3397 (follow_die_ref): ... a new function.
3398 (dwarf2_fetch_die_location_block): New function.
3399 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3400
17ea53c3
JK
34012010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3402
3403 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3404 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3405 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3406 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3407 this change.
3408 (struct needs_frame_baton): New field per_cu.
3409 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3410 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3411
245040d7
SW
34122010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3413
3414 * cp-support.c (make_symbol_overload_list_namespace): Only search
3415 static and global blocks.
3416 (make_symbol_overload_list_block): New function.
3417 (make_symbol_overload_list): Separate namespace search from block
3418 search.
3419 (make_symbol_overload_list_qualified): Use
3420 make_symbol_overload_list_block.
3421
4c3376c8
SW
34222010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3423
3424 * value.h: Created oload_search_type enum.
3425 (find_overload_match): Use oload_search_type enum.
3426 * valops.c (find_overload_match): Support combined member and
3427 non-member search.
3428 * eval.c (evaluate_subexp_standard): Calls to
3429 find_overload_match now use oload_search_type enum.
3430 (oload_method_static): Verify index is a proper value.
3431 * valarith.c (value_user_defined_cpp_op): Search for and handle
3432 both member and non-member operators.
3433 (value_user_defined_cpp_op): New function.
3434 (value_user_defined_op): New function.
3435 (value_x_unop): Use value_user_defined_op.
3436 (value_x_binop): Ditto.
3437 * cp-support.c (make_symbol_overload_list_using): Added block
3438 iteration.
3439 Add check for namespace aliases and imported declarations.
3440
ee55da67
JK
34412010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3442
3443 * breakpoint.h (owner): Extend the comment.
3444
1a2ab13a
JK
34452010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3446
3447 Clear stale specific bp_location from former whole breakpoint.
3448 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3449 code ...
3450 (free_bp_location): ... here. Rename there the called function to
3451 bpstat_remove_bp_location_callback.
3452 (bpstat_remove_breakpoint_callback): Rename to ...
3453 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3454 to struct bp_location. Change the called function to
3455 bpstat_remove_bp_location. Create new declaration for the function.
3456 (bpstat_remove_breakpoint): Rename to ...
3457 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3458 code for the new parameter type.
3459
16d6b4b7
NS
34602010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3461
3462 * README: Make version-agnostic.
3463
7e314c57
JK
34642010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3465
3466 Fix duplicate types for single DIE.
3467 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3468 set_die_type.
3469 (read_array_type): Remove type initialization. Recheck get_die_type
3470 after initial die_type. Move set_die_type before set_descriptive_type.
3471 (read_set_type): New variable domain_type. Recheck get_die_type after
3472 initial die_type. Move attr initialization later.
3473 (read_tag_pointer_type, read_tag_reference_type): New variable
3474 target_type. Recheck get_die_type after initial die_type.
3475 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3476 die_type and die_containing_type.
3477 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3478 Recheck get_die_type after initial die_type.
3479 (read_subrange_type): Recheck get_die_type after initial die_type.
3480 Move set_die_type before set_descriptive_type.
3481 (set_die_type): Extend the function comment. Call complaint if DIE has
3482 some type already set.
3483
2f296114
VP
34842010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3485
3486 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3487 for current naming of thread groups (iN, not N).
3488
554794dc
SDJ
34892010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3490
3491 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3492 * parse.c (operator_length): Likewise.
3493 (operator_length_standard): Likewise.
3494 * parser-defs.h (operator_length): Likewise.
3495 (operator_length_standard): Likewise.
3496 (struct exp_descriptor <operator_length>): Likewise.
3497
967cf477
DE
34982010-06-04 Doug Evans <dje@google.com>
3499
bddaacb9 3500 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
3501 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3502 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3503 * python/python.c (gdbpy_enabled_cst): Define.
3504 (_initialize_python): Initialize gdbpy_enabled_cst.
3505 * NEWS: Add entry.
3506
2dec564e
JK
35072010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3508
3509 * breakpoint.c (update_global_location_list): Fix comment typo.
3510
44b5680a
HZ
35112010-06-04 Hui Zhu <teawater@gmail.com>
3512
3513 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3514
e7a30f46
DE
35152010-06-03 Doug Evans <dje@google.com>
3516
3517 * configure.ac: Don't fail if python is unusable when
3518 configured with --with-python=auto.
3519 * configure: Regenerate.
3520
84b4420f
SW
35212010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3522
889bf7c5 3523 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 3524
df178451
PM
35252010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3526
3527 * valprint.h (get_array_bounds): Change low and high parameter types
3528 to LONGEST *.
0407b3f1 3529 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
3530 compute bounds.
3531 (val_print_array_elements): Adapt to change above.
3532 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3533 * p-valprint.c (pascal_val_print): Likewise.
3534
fd5700c7
JK
35352010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3536
3537 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3538 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3539 .F08.
3540
f55ee35c
JK
35412010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3542
3543 Support DW_TAG_module as separate namespaces.
3544 * dwarf2read.c (typename_concat): New parameter physname.
3545 (read_module_type): New function and declaration.
3546 (scan_partial_symbols): Scan also DW_TAG_module children.
3547 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3548 to typename_concat backward compatible physname value 0.
3549 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3550 backward compatible physname value 0.
3551 (add_partial_module, read_module): Remove FIXME comment.
3552 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3553 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3554 DIEs under DW_TAG_module.
3555 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3556 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3557 && physname and return there instead of just setting NAME. Extend
3558 the main block for language_fortran. Pass physname parameter to the
3559 typename_concat call.
3560 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3561 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3562 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3563 missing from SYMBOL_SET_NAMES in the language_fortran case.
3564 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3565 variables.
3566 (read_type_die) <DW_TAG_module>: New.
3567 (MAX_SEP_LEN): Increase to 7.
3568 (typename_concat): New parameter physname. New variable lead. Support
3569 also language_fortran.
3570 * f-exp.y (yylex): Consider : also as a symbol name character class.
3571 * f-lang.c: Include cp-support.h.
3572 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3573 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3574 f_word_break_characters and f_make_symbol_completion_list.
3575 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3576 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3577 * symtab.c (symbol_init_language_specific): Support language_fortran.
3578 (symbol_find_demangled_name): New comment on language_fortran.
3579 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3580 for language_fortran.
3581 (lookup_symbol_aux_local): Check imports also for language_fortran.
3582 (default_make_symbol_completion_list): Rename to ...
3583 (default_make_symbol_completion_list_break_on): ... this name. New
3584 parameter break_on, use it.
3585 (default_make_symbol_completion_list): New stub.
3586 * symtab.h (default_make_symbol_completion_list_break_on): New
3587 prototype.
3588
cb91c06a
JB
35892010-06-02 Joel Brobecker <brobecker@adacore.com>
3590
3591 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3592 to error.
3593
5c315b68
JK
35942010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3595
3596 * dwarf2read.c (typename_concat): Add const to the variable sep.
3597
9eae7c52
TT
35982010-06-02 Tom Tromey <tromey@redhat.com>
3599
3600 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3601 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3602 type is const. Add 'def' argument. Add missing operators, remove
3603 unhandled ones.
3604 (decode_locdesc): Update.
3605 (dwarf2_always_disassemble): New global.
3606 (show_dwarf2_always_disassemble): New function.
3607 (_initialize_dwarf2_read): Add always-disassemble.
3608 (dwarf2_per_cu_offset_size): New function.
3609 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3610 (piece_end_p): New function.
3611 (locexpr_describe_location_piece): Replace 'size' argument with
3612 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3613 some constants. Remove errors.
3614 (disassemble_dwarf_expression): New function.
3615 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3616 Add 'offset_size' argument.
3617 (loclist_describe_location): Change output formatting.
3618 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3619
7d3fe98e
SW
36202010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3621
3622 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3623 anonymous type case.
3624
e77813c8
PM
36252010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3626
3627 * dwarf2read.c (read_subrange_type): Handle missing base type
3628 according to Dwarf-2 specifications.
3629
7cf3118a
SDJ
36302010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3631
3632 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3633 BINOP_EXCL.
3634 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3635 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3636 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3637 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3638 UNOP_CHMAX, UNOP_CHMIN.
3639 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3640 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3641 UNOP_CHMIN>: Remove opcodes.
3642
ae4d0c03
PM
36432010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3644
3645 * dwarf2read.c (read_func_scope): Do not complain for
3646 external function if bounds are not found.
3647
fa593d66
PA
36482010-06-01 Pedro Alves <pedro@codesourcery.com>
3649
3650 * NEWS: Mention gdbserver fast tracepoints support.
3651
cd44747c
PM
36522010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3653
3654 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3655 New macros.
3656 (windows_set_console_info): New function.
3657 (windows_create_inferior): Call windows_set_console_info
3658 if NEW_CONSOLE is true.
3659 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3660 (_initialize_loadable): Initialize GetConsoleFontSize and
3661 GetCurrentConsoleFont.
3662
f6528abd
JK
36632010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3664
3665 * Makefile.in (RDYNAMIC): New.
3666 (SFILES): Add proc-service.list.
3667 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3668 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3669 * config/arm/linux.mh: Likewise.
3670 * config/i386/linux.mh: Likewise.
3671 * config/i386/linux64.mh: Likewise.
3672 * config/ia64/linux.mh: Likewise.
3673 * config/m32r/linux.mh: Likewise.
3674 * config/m68k/linux.mh: Likewise.
3675 * config/mips/linux.mh: Likewise.
3676 * config/pa/linux.mh: Likewise.
3677 * config/powerpc/linux.mh: Likewise.
3678 * config/powerpc/ppc64-linux.mh: Likewise.
3679 * config/s390/s390.mh: Likewise.
3680 * config/sparc/linux.mh: Likewise.
3681 * config/sparc/linux64.mh: Likewise.
3682 * config/xtensa/linux.mh: Likewise.
3683 * configure.ac: New RDYNAMIC on native host and GCC.
3684 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3685 * configure: Regenerate.
3686 * proc-service.list: New.
3687
ca2a87a0
JK
36882010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3689
3690 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3691 CONTENT.
3692
1e225492
JK
36932010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3694
3695 * linux-nat.c (linux_nat_wait_1): Do not call
3696 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3697 TARGET_WAITKIND_SIGNALLED.
3698
e802dbe0
JB
36992010-05-27 Joel Brobecker <brobecker@adacore.com>
3700
3701 * ada-lang.c (ada_inferior_data): New struct.
3702 (ada_inferior_data): New static global.
3703 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3704 (ada_get_tsd_type): New functions.
3705 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3706 to look the tsd type up.
3707 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3708 event. Set ada_inferior_data.
3709
176a6961
PA
37102010-05-27 Pedro Alves <pedro@codesourcery.com>
3711
3712 * remote.c (unpack_varlen_hex): Remove forward declaration.
3713 (remote_console_output): Make static, and add forward declaration.
3714 * remote.h: Drop FIXME comment.
3715 (unpack_varlen_hex): Declare.
3716 (remote_console_output, remote_cisco_objfile_relocate)
3717 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3718 Delete declarations.
3719 * tracepoint.c: Include "remote.h".
3720 (unpack_varlen_hex): Delete declaration.
3721
88bfdde4
TT
37222010-05-27 Tom Tromey <tromey@redhat.com>
3723
3724 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3725 (allocate_piece_closure): Initialize refc.
3726 (copy_pieced_value_closure): Use refc.
3727 (free_pieced_value_closure): Likewise.
3728
8c6363cf
TT
37292010-05-27 Tom Tromey <tromey@redhat.com>
3730
3731 * arm-tdep.c (push_stack_item): 'contents' now const.
3732 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3733 value_contents_writeable. Introduce new temporary.
3734
7ecb917e
TT
37352010-05-27 Tom Tromey <tromey@redhat.com>
3736
3737 * findcmd.c (parse_find_args): Use value_contents, not
3738 value_contents_raw.
3739
f42a0a33
TT
37402010-05-27 Tom Tromey <tromey@redhat.com>
3741
3742 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3743 const. Use value_contents, not value_contents_writeable.
3744
12b795ad
JB
37452010-05-27 Joel Brobecker <brobecker@adacore.com>
3746
3747 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3748 by call to value_contents.
3749
5a2e11c7
OS
37502010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3751
3752 * MAINTAINERS: Add myself for write after approval privileges.
3753
ec685c5e
DE
37542010-05-26 Doug Evans <dje@google.com>
3755
0c4a4063
DE
3756 Allow python to find its files if moved from original location.
3757 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3758 (GDB_AC_WITH_DIR): Call it.
3759 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3760 python installation directory.
3761 * config.in: Regenerate.
3762 * configure: Regenerate.
3763 * defs.h (python_libdir): Declare.
3764 * main.c (python_libdir): Define.
3765 (captured_main): Initialize python_libdir.
3766 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3767 call Py_SetProgramName to make sure python can find its libraries
3768 and modules.
3769
ec685c5e
DE
3770 * configure.ac: Try to use python's distutils to fetch compilation
3771 parameters.
3772 * configure: Regenerate.
3773 * python/python-config.py: New file.
3774
363a6e9f
OS
37752010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3776
3777 * ser-tcp.c (net_open): Check error return from socket() call by its
3778 equality to -1 not by it being negative.
3779 (net_close): Likewise.
3780
dde08ee1
PA
37812010-05-26 Pedro Alves <pedro@codesourcery.com>
3782
3783 * NEWS: Mention the `qRelocInsn' feature.
3784 * gdbarch.sh (relocate_instruction): New.
3785 * amd64-tdep.c (rip_relative_offset): New.
3786 (append_insns): New.
3787 (amd64_relocate_instruction): New.
3788 (amd64_init_abi): Install it.
3789 * i386-tdep.c (append_insns): New.
3790 (i386_relocate_instruction): New.
3791 (i386_gdbarch_init): Install it.
3792 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3793 * gdbarch.h, gdbarch.c: Regenerate.
3794
947bb88f
TT
37952010-05-26 Tom Tromey <tromey@redhat.com>
3796
3797 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3798 (struct dwarf2_loclist_baton) <data>: Likewise.
3799 * dwarf2loc.c (find_location_expression): Constify return type.
3800 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3801 (dwarf2_loc_desc_needs_frame): Likewise.
3802 (loclist_read_variable): Constify.
3803 (loclist_describe_location): Likewise.
3804 (loclist_tracepoint_var_ref): Likewise.
3805
0d45f56e
TT
38062010-05-25 Tom Tromey <tromey@redhat.com>
3807
3808 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3809 (dwarf_expr_frame_base_1): Likewise.
3810 (read_pieced_value): Update.
3811 (needs_frame_frame_base): Constify.
3812 (dwarf2_tracepoint_var_loc): Likewise.
3813 (dwarf2_tracepoint_var_access): Likewise.
3814 (locexpr_describe_location_piece): Likewise.
3815 (locexpr_describe_location_1): Likewise.
3816 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3817 Constify.
3818 (data): Now const.
3819 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3820 (dwarf_expr_eval, read_uleb128, read_sleb128)
3821 (dwarf2_read_address): Update.
3822 * dwarf2expr.c (dwarf_expr_eval): Constify.
3823 (read_uleb128): Likewise.
3824 (read_sleb128): Likewise.
3825 (dwarf2_read_address): Likewise.
3826 (require_composition): Likewise.
3827 (execute_stack_op): Likewise.
3828 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3829 "const gdb_byte *".
3830 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3831 Now const.
3832 (no_get_frame_base): Constify.
3833 (execute_stack_op): Likewise.
3834 (execute_cfa_program): Likewise.
3835 (read_encoded_value): Likewise.
3836
07ca107c
DE
38372010-05-25 Doug Evans <dje@google.com>
3838
e34838f0
DE
3839 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3840
01f69b38
DE
3841 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3842 * event-loop.c: ... here.
3843 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3844 `error' for clarity.
3845 (tui_getc): Pass correct value for `error' parameter to
3846 tui_readline_output.
3847
07ca107c
DE
3848 Add python gdb.GdbError and gdb.string_to_argv.
3849 * NEWS: Document them.
3850 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3851 the exception is gdb.GdbError. Print a second traceback if there's
3852 an error computing the error message.
3853 (gdbpy_string_to_argv): New function.
3854 * python/py-utils.c (gdbpy_obj_to_string): New function.
3855 (gdbpy_exception_to_string): New function.
3856 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3857 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3858 (gdbpy_gdberror_exc): Declare.
3859 * python/python.c (gdbpy_gdberror_exc): New global.
3860 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3861 gdb.GdbError.
3862 (GdbMethods): Add string_to_argv.
3863
5572ce1f
PM
38642010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3865
3866 * windows-nat.c (display_selector): Call GetLastError to give better
3867 failure explanation.
3868
acd5838a
PA
38692010-05-24 Pedro Alves <pedro@codesourcery.com>
3870
3871 * config.in: Regenerate.
3872
b26a4dcb
JK
38732010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3874
3875 Code cleanup.
3876 * target.c (push_target): Return only void. Remove the return value
3877 comment.
3878 * target.h (push_target): Return only void.
3879
f434ba03
PA
38802010-05-23 Pedro Alves <pedro@codesourcery.com>
3881
3882 Update gnulib from latest git.
3883 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3884
3885 * gnulib/memcmp.c: Removed.
3886 * gnulib/memchr.valgrind: New.
3887 * gnulib/stddef.in.h: New.
3888 * gnulib/Makefile.am: Updated.
3889 * gnulib/memchr.c: Updated.
3890 * gnulib/memmem.c: Updated.
3891 * gnulib/stdint.in.h: Updated.
3892 * gnulib/str-two-way.h: Updated.
3893 * gnulib/string.in.h: Updated.
3894 * gnulib/wchar.in.h: Updated.
3895
3896 * gnulib/extra/link-warning.h: Removed.
3897 * gnulib/extra/c++defs.h: New.
3898 * gnulib/extra/warn-on-use.h: New.
3899 * gnulib/extra/arg-nonnull.h: Updated.
3900
3901 * gnulib/m4/extensions.m4: Updated.
3902 * gnulib/m4/gnulib-cache.m4: Updated.
3903 * gnulib/m4/gnulib-common.m4: Updated.
3904 * gnulib/m4/gnulib-comp.m4: Updated.
3905 * gnulib/m4/gnulib-tool.m4: Updated.
3906 * gnulib/m4/include_next.m4: Updated.
3907 * gnulib/m4/longlong.m4: Updated.
3908 * gnulib/m4/memchr.m4: Updated.
3909 * gnulib/m4/memmem.m4: Updated.
3910 * gnulib/m4/stdint.m4: Updated.
3911 * gnulib/m4/string_h.m4: Updated.
3912 * gnulib/m4/memcmp.m4: Removed.
3913 * gnulib/m4/onceonly_2_57.m4: Removed.
3914 * gnulib/m4/00gnulib.m4: New.
3915 * gnulib/m4/mmap-anon.m4: New.
3916 * gnulib/m4/multiarch.m4: New.
3917 * gnulib/m4/onceonly.m4: New.
3918 * gnulib/m4/stddef_h.m4: New.
3919 * gnulib/m4/warn-on-use.m4: New.
3920 * gnulib/m4/wchar.m4: Removed.
3921 * gnulib/m4/wchar_h.m4: New.
3922 * gnulib/m4/wchar_t.m4: New.
3923 * gnulib/m4/wint_t.m4: New.
3924
3925 * aclocal.m4: Regenerate.
3926 * config.in: Likewise.
3927 * configure: Likewise.
3928 * gnulib/Makefile.in: Likewise.
3929
d3b1e874
TT
39302010-05-21 Tom Tromey <tromey@redhat.com>
3931
3932 * dwarf2loc.c (extract_bits_primitive): New function.
3933 (extract_bits): Likewise.
3934 (insert_bits): Likewise.
3935 (copy_bitwise): Likewise.
3936 (read_pieced_value): Do all operations in bits.
3937 (write_pieced_value): Likewise.
3938 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3939 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3940 Always use xrealloc to resize piece array.
3941 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3942 <DW_OP_piece>: Update.
3943 <DW_OP_bit_piece>: New case.
3944
cb826367
TT
39452010-05-21 Tom Tromey <tromey@redhat.com>
3946
3947 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3948 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3949 * dwarf2expr.h (enum dwarf_value_location)
3950 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3951 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3952 (add_piece): Handle empty piece.
3953 (execute_stack_op) <DW_OP_piece>: Handle
3954 DWARF_VALUE_OPTIMIZED_OUT.
3955
74de6778
TT
39562010-05-21 Tom Tromey <tromey@redhat.com>
3957
3958 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3959 evaluate_subexp, not evaluate_subexp_with_coercion.
3960
f346a30d
PM
39612010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3962
3963 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3964 attribute.
3965
afd74c5f
TT
39662010-05-21 Tom Tromey <tromey@redhat.com>
3967
3968 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3969 offset.
3970 (write_pieced_value): Likewise.
3971
90e7c2c5
PM
39722010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3973
3974 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3975 and DW_TAG_volatile_type.
3976 (new_symbol): Likewise.
3977
8148cf8d
PM
39782010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3979
3980 * p-valprint.c (pascal_val_print): Call get_array_bounds
3981 to obtain the number of elements in an array.
3982
3a1d4620
DE
39832010-05-19 Doug Evans <dje@google.com>
3984
0bf0f8c4
DE
3985 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3986
3a1d4620
DE
3987 * python.c (source_python_script): Add comment.
3988 (source_python_script_for_objfile): Remove unnecessary call to
3989 gdbpy_print_stack.
3990
dc21167c
JK
39912010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3992 Sergio Durigan Junior <sergiodj@redhat.com>
3993
3994 Code cleanup.
3995 * parse.c (exp_iterate): Use operator_length wrapper function.
3996
5b4ee69b
MS
39972010-05-18 Michael Snyder <msnyder@vmware.com>
3998
3999 * ada-lang.c: White space.
4000 * ada-typeprint.c: White space.
4001 * ada-valprint.c: White space.
4002 * addrmap.c: White space.
4003 * auxv.c: White space.
4004 * ax-gdb.c: White space.
4005
e17c9e56
HZ
40062010-05-18 Hui Zhu <teawater@gmail.com>
4007
4008 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4009 for oldfp.
4010 (inferior_call_waitpid): Move make_cleanup out of check.
4011 Check the return of waitpid.
4012 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4013
a109c7c1
MS
40142010-05-17 Michael Snyder <msnyder@vmware.com>
4015
1c5313c5
MS
4016 * tui/tui.c: White space.
4017 * tui/tui-data.c: White space.
4018 * tui/tui-disasm.c: White space.
4019 * tui/tui-file.c: White space.
4020 * tui/tui-interp.c: White space.
4021 * tui/tui-main.c: White space.
4022 * tui/tui-out.c: White space.
4023 * tui/tui-regs.c: White space.
4024 * tui/tui-source.c: White space.
4025 * tui/tui-stack.c: White space.
4026 * tui/tui-win.c: White space.
4027 * tui/tui-winsource.c: White space.
4028
f4a14ae6
MS
4029 * procfs.c: White space.
4030
d59b6f6c
MS
4031 * python/py-auto-load.c: White space.
4032 * python/py-block.c: White space.
4033 * python/py-breakpoint.c: White space.
4034 * python/py-cmd.c: White space.
4035 * python/py-function.c: White space.
4036 * python/py-lazy-string.c: White space.
4037 * python/py-objfile.c: White space.
4038 * python/py-param.c: White space.
4039 * python/py-prettyprint.c: White space.
4040 * python/py-progspace.c: White space.
4041 * python/py-symtab.c: White space.
4042 * python/python.c: White space.
4043 * python/py-type.c: White space.
4044 * python/py-utils.c: White space.
4045 * python/py-value.c: White space.
4046
102040f0
MS
4047 * mi/mi-cmd-break.c: White space.
4048 * mi/mi-cmd-env.c: White space.
4049 * mi/mi-cmds.c: White space.
4050 * mi/mi-cmd-stack.c: White space.
4051 * mi/mi-cmd-var.c: White space.
4052 * mi/mi-console.c: White space.
4053 * mi/mi-getopt.c: White space.
4054 * mi/mi-interp.c: White space.
4055 * mi/mi-main.c: White space.
4056 * mi/mi-out.c: White space.
4057 * mi/mi-parse.c: White space.
4058
cdb27c12
MS
4059 * cli/cli-cmds.c: White space.
4060 * cli/cli-decode.c: White space.
4061 * cli/cli-dump.c: White space.
4062 * cli/cli-interp.c: White space.
4063 * cli/cli-logging.c: White space.
4064 * cli/cli-script.c: White space.
4065 * cli/cli-setshow.c: White space.
4066
a109c7c1
MS
4067 * valarith.c: White space.
4068 * valops.c: White space.
4069 * valprint.c: White space.
4070 * value.c: White space.
4071 * varobj.c: White space.
4072 * xcoffread.c: White space.
4073 * xml-support.c: White space.
4074 * xml-tdesc.c: White space.
4075
3872d37d
AS
40762010-05-17 Andreas Schwab <schwab@redhat.com>
4077
4078 PR gdb/11092
4079 * c-lang.c (c_printstr): Compute real length of NUL terminated
4080 string at first.
4081
0cce5bd9
JB
40822010-05-17 Joel Brobecker <brobecker@adacore.com>
4083
4084 * parse.c (parse_exp_in_context): When block is not NULL, use
4085 its associated language to parse the expression instead of
4086 the current_language.
4087
5f19d646
JB
40882010-05-17 Joel Brobecker <brobecker@adacore.com>
4089
4090 * jv-lang.c (java_lookup_class): Remove commented out code.
4091 (type_from_class): Likewise.
4092 (java_op_print_tab): Remove commented-out elements.
4093
28c85d6c
JB
40942010-05-17 Joel Brobecker <brobecker@adacore.com>
4095
4096 * ada-lang.c (to_fixed_range_type): The the raw index type as
4097 argument instead of the raw type name. Remove orig_type parameter.
4098 Update calls throughout.
4099 (ada_fixup_array_indexes_type): New function.
4100 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4101 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4102 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4103 Remove name parameter.
4104 (print_array_type): Add call to ada_fixup_array_indexes_type.
4105 Update calls to print_range_type.
4106 (ada_print_type): Update calls to print_range_type.
4107
d09039dd
PM
41082010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4109
4110 * dwarf2read.c (read_set_type): Set type length if
4111 DW_AT_byte_size attribute is present.
4112
7a081a30
PM
41132010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4114
4115 * p-valprint.c (pascal_val_print): Handle set type if range limits
4116 are undefined but size is known.
4117
77382aee
PA
41182010-05-17 Pedro Alves <pedro@codesourcery.com>
4119
4120 * procfs.c: Reformat.
4121
433759f7
MS
41222010-05-16 Michael Snyder <msnyder@vmware.com>
4123
5d502164
MS
4124 * target.c: White space.
4125 * target-descriptions.c: White space.
4126 * target-memory.c: White space.
4127 * thread.c: White space.
4128 * top.c: White space.
4129 * tracepoint.c: White space.
4130 * trad-frame.c: White space.
4131 * tramp-frame.c: White space.
4132 * ui-file.c: White space.
4133 * ui-out.c: White space.
4134 * user-regs.c: White space.
4135 * utils.c: White space.
4136
433759f7
MS
4137 * scm-exp.c: White space.
4138 * scm-lang.c: White space.
4139 * scm-valprint.c: White space.
4140 * sentinel-frame.c: White space.
4141 * ser-base.c: White space.
4142 * ser-go32.c: White space.
4143 * serial.c: White space.
4144 * ser-mingw.c: White space.
4145 * ser-pipe.c: White space.
4146 * ser-tcp.c: White space.
4147 * ser-unix.c: White space.
4148 * solib.c: White space.
4149 * solib-darwin.c: White space.
4150 * solib-frv.c: White space.
4151 * solib-irix.c: White space.
4152 * solib-osf.c: White space.
4153 * solib-pa64.c: White space.
4154 * solib-som.c: White space.
4155 * solib-spu.c: White space.
4156 * solib-svr4.c: White space.
4157 * solib-target.c: White space.
4158 * source.c: White space.
4159 * stabsread.c: White space.
4160 * stack.c: White space.
4161 * std-regs.c: White space.
4162 * symfile.c: White space.
4163 * symmisc.c: White space.
4164 * symtab.c: White space.
4165
dd304d53
MS
41662010-05-16 Michael Snyder <msnyder@vmware.com>
4167
4168 * source.c (_initialize_source): Add "rev" as an abbreviation
4169 for the "reverse-search" command.
4170
a744cf53
MS
41712010-05-16 Michael Snyder <msnyder@vmware.com>
4172
123f5f96
MS
4173 * record.c: White space.
4174 * regcache.c: White space.
4175 * reggroups.c: White space.
4176 * remote-fileio.c: White space.
4177 * remote-m32r-sdi.c: White space.
4178 * remote-mips.c: White space.
4179 * remote-sim.c: White space.
a744cf53
MS
4180 * remote.c: White space.
4181 (process_g_packet): Remove orphan braces.
4182
b8d56208
MS
41832010-05-15 Michael Snyder <msnyder@vmware.com>
4184
ad3bbd48
MS
4185 * parse.c: White space.
4186 * p-lang.c: White space.
4187 * posix-hdep.c: White space.
4188 * printcmd.c: White space.
4189 * progspace.c: White space.
4190 * prologue-value.c: White space.
4191 * psymtab.c: White space.
4192 * p-typeprint.c: White space.
4193 * p-valprint.c: White space.
4194
5cc80db3
MS
4195 * objc-lang.c: White space.
4196 * objfiles.c: White space.
4197 * observer.c: White space.
4198 * osabi.c: White space.
4199 * osdata.c: White space.
4200
b8d56208
MS
4201 * m2-lang.c: White space.
4202 * m2-valprint.c: White space.
4203 * macrocmd.c: White space.
4204 * macroexp.c: White space.
4205 * macroscope.c: White space.
4206 * macrotab.c: White space.
4207 * main.c: White space.
4208 * maint.c: White space.
4209 * mdebugread.c: White space.
4210 * memattr.c: White space.
4211 * minsyms.c: White space.
4212 * monitor.c: White space.
4213
9a619af0
MS
42142010-05-14 Michael Snyder <msnyder@vmware.com>
4215
e0881a8e
MS
4216 * jv-lang.c: White space.
4217 * jv-typeprint.c: White space.
4218 * jv-valprint.c: White space.
4219 * language.c: White space.
4220 * libunwind-frame.c: White space.
4221 * linespec.c: White space.
4222 * linux-nat.c: White space.
4223 * linux-record.c: White space.
4224 * linux-thread-db.c: White space.
4225
abbb1732
MS
4226 * infcall.c: White space.
4227 * inf-child.c: White space.
4228 * infcmd.c: White space.
4229 * inferior.c: White space.
4230 * inf-loop.c: White space.
4231 * inflow.c: White space.
4232 * inline-frame.c: White space.
4233 * interps.c: White space.
4234
d8734c88
MS
4235 * gcore.c: White space.
4236 * gdb.c: White space.
4237 * gdbtypes.c: White space.
4238 * gnu-nat.c: White space.
4239 * gnu-v2-abi.c: White space.
4240 * gnu-v3-abi.c: White space.
4241
bb9bcb69
MS
4242 * findcmd.c: White space.
4243 * findvar.c: White space.
4244 * fork-child.c: White space.
4245 * frame-base.c: White space.
4246 * frame.c: White space.
4247 * frame-unwind.c: White space.
4248 * f-valprint.c: White space.
4249
d7f9d729
MS
4250 * elfread.c: White space.
4251 * environ.c: White space.
4252 * eval.c: White space.
4253 * event-loop.c: White space.
4254 * event-top.c: White space.
4255 * exceptions.c: White space.
4256 * exec.c: White space.
4257 * expprint.c: White space.
4258
9a619af0
MS
4259 * dbxread.c: White space.
4260 * dcache.c: White space.
4261 * disasm.c: White space.
4262 * doublest.c: White space.
4263 * dsrec.c: White space.
4264 * dummy-frame.c: White space.
4265 * dwarf2expr.c: White space.
4266 * dwarf2-frame.c: White space.
4267 * dwarf2loc.c: White space.
4268 * dwarf2read.c: White space.
4269
88d4aea7
PM
42702010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4271
889bf7c5 4272 PR python/11482
88d4aea7
PM
4273
4274 * python/py-value.c (valpy_hash): New function.
4275 (value_object_type): Register valpy_hash.
4276
7a298875 42772010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 4278 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
4279
4280 * linux-fork.c (gdbthread.h): New include.
4281 (fork_info): Add parent_ptid.
4282 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4283 functions.
4284 (delete_checkpoint_command): Call inferior_call_waitpid.
4285 (checkpoint_command): Set parent_ptid.
4286
c14feecc
MS
42872010-05-13 Michael Snyder <msnyder@vmware.com>
4288
6595d32b
MS
4289 * dictionary.c: Re-indent to GNU coding standard.
4290
c5504eaf
MS
4291 * charset.c: White space.
4292 * c-lang.c: White space.
4293 * cli-out.c: White space.
4294 * coffread.c: White space.
4295 * complaints.c: White space.
4296 * completer.c: White space.
4297 * corefile.c: White space.
4298 * corelow.c: White space.
4299 * cp-abi.c: White space.
4300 * cp-namespace.c: White space.
4301 * cp-support.c: White space.
4302 * cp-valprint.c: White space.
4303 * c-typeprint.c: White space.
4304 * c-valprint.c: White space.
cc59ec59
MS
4305 * blockframe.c: White space.
4306 * breakpoint.c: White space.
4307 * buildsym.c: White space.
4308 * blockframe.c: White space.
b6de9da4 4309 * bcache.c: White space.
05c547f6
MS
4310 * gdbarch.sh: White space, add blank lines.
4311 * arch-utils.c: Ditto.
4312 * gdbarch.c: Regenerate.
1c4d3f96 4313 * frame.c: White space, add blank lines.
f89b749f
MS
4314 * stack.c: White space, add blank lines.
4315 (initialize_stack): Remove long-dead code.
c14feecc 4316
a2d33775
JK
43172010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4318
4319 Code cleanup.
4320 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4321 (locexpr_read_variable, loclist_read_variable): Update the callers.
4322
33ac96f0
JK
43232010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4324
4325 Code cleanup.
4326 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4327 Remove check of NULL returned by tag_type_to_type.
4328 (die_containing_type): Remove variable type. Remove type_die variable
4329 initialization. Remove check of NULL returned by tag_type_to_type.
4330
f5a010c0
PM
43312010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4332
4333 PR exp/11530.
4334 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4335 names of unnamed structures or unions.
4336
bf701c2c
PM
43372010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4338
4339 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 4340 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
4341 find_procinfo_or_die call.
4342 (procfs_stopped_data_address): New function.
4343 (procfs_use_watchpoints): Register new watchpoint related function.
4344
d02691ef
TT
43452010-05-11 Tom Tromey <tromey@redhat.com>
4346
4347 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4348
e0627e85
MS
43492010-05-10 Michael Snyder <msnyder@vmware.com>
4350
4351 * utils.c: White space cleanup.
4352
cc73bb8c
TT
43532010-05-10 Tom Tromey <tromey@redhat.com>
4354
4355 * eval.c (ptrmath_type_p): Add 'lang' argument.
4356 (evaluate_subexp_standard): Update.
4357 (evaluate_subexp_with_coercion): Update.
4358 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4359
c02866a0
MS
43602010-05-10 Michael Snyder <msnyder@vmware.com>
4361
4362 * utils.c (do_fclose_cleanup) Restore local variable.
4363
06280d23
DE
43642010-05-09 Doug Evans <dje@google.com>
4365
4366 * record.c (init_record_core_ops): Rename record_core to record-core.
4367
fa07e785
JB
43682010-05-08 Joel Brobecker <brobecker@adacore.com>
4369
4370 Implement task switching on pa-hpux.
4371 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4372 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4373
4c680d1d
PM
43742010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4375
4376 * valops.c (find_overload_match): Add missing i18n markup.
4377
28e176a6
PM
43782010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4379
4380 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4381
48cb83fd
JK
43822010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4383
4384 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4385 list for the obconcat call.
4386 * mdebugread.c (parse_symbol): Likewise.
4387 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4388 Likewise.
4389 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4390 New variable ap. Remove variables len and val.
4391 * symfile.h (obconcat): Likewise for the prototype.
4392
f92adf3c
MS
43932010-05-07 Michael Snyder <msnyder@vmware.com>
4394
4395 * python/python.c (execute_gdb_command): Remove unused variables.
4396 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 4397 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
4398 Remove unused variable.
4399 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4400 (cmdpy_completer): Remove unused variable.
4401 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4402 * python/py-function.c (fnpy_call): Remove unused variable.
4403 * python/py-objfile.c (objfile_to_objfile_object):
4404 Remove unused variable.
4405 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 4406 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
4407 Remove unused variable.
4408 (gdbpy_default_visualizer): Remove unused variable.
4409 * python/py-progspace.c (pspace_to_pspace_object):
4410 Remove unused variable.
0407b3f1 4411 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 4412 Remove unused variable.
0407b3f1 4413 * python/py-type.c (typy_template_argument):
f92adf3c
MS
4414 Remove unused variable.
4415 * python/py-value.c (valpy_string): Remove unused variable.
4416 (convert_value_from_python): Remove unused variables.
4417
d160942f
MS
44182010-05-07 Michael Snyder <msnyder@vmware.com>
4419
4420 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4421 and use it to compute variable 't1'.
4422
587542ab
JB
44232010-05-07 Joel Brobecker <brobecker@adacore.com>
4424
4425 * ada-lang.c (assign_aggregate): Remove unused variable.
4426
7322dca9
SW
44272010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4428
4429 PR C++/7943:
4430 * valops.c (find_overload_match): Handle fsym == NULL case.
4431 Add int no_adl argument.
4432 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4433 when appropriate.
4434 Add int no_adl argument.
4435 (find_oload_champ_namespace): Add int no_adl argument.
4436 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4437 expression.
4438 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4439 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4440 Evaluate arguments and use them to perform ADL lookup.
4441 Pass no_adl argument to find_overload_match.
4442 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4443 * cp-support.h: Added prototype for
4444 make_symbol_overload_list_namespace.
4445 * cp-support.c (make_symbol_overload_list_namespace): New function.
4446 (make_symbol_overload_list_adl_namespace): New function.
4447 (make_symbol_overload_list_adl): New function.
4448 (make_symbol_overload_list_using): Moved code to add function to
4449 overload set to make_symbol_overload_list_namespace.
4450 * c-exp.y: create UNKNOWN_CPP_NAME token.
4451 Add parse rule for ADL functions.
4452 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4453
3f1f6884
JK
44542010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4455
4456 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4457 sentinel.
4458
3caf13b4
JB
44592010-05-07 Joel Brobecker <brobecker@adacore.com>
4460
4461 Implement task switching on solaris targets.
4462 * sol-thread.c (thread_db_find_thread_from_tid)
4463 (sol_get_ada_task_ptid): New functions.
4464 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4465
94b0dee1
PA
44662010-05-07 Pedro Alves <pedro@codesourcery.com>
4467
4468 * remote.c (remote_query_supported_append): Use reconcat.
4469 (remote_query_supported): Install a cleanup. Use reconcat.
4470
1408c251
PA
44712010-05-07 Pedro Alves <pedro@codesourcery.com>
4472
4473 * gdbarch.sh (qsupported): Delete.
4474 * gdbarch.h, gdbarch.c: Regenerate.
4475 * remote.c (remote_query_supported): Remove use of
4476 gdbarch_qsupported.
4477
f8e50cfe
SDJ
44782010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4479
4480 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4481 function.
4482
8ea13695
MS
44832010-05-06 Michael Snyder <msnyder@vmware.com>
4484
c6913b7d
MS
4485 * xml-support.c (xinclude_start_include): Delete unused variable.
4486 (xml_process_xincludes): Delete unused variable.
4487 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4488 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4489 (tdesc_find_arch_register): Delete unused variable.
4490 (tdesc_use_registers): Delete unused variable.
4491 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4492 * inferior.c (print_inferior): Delete unused variable.
4493 * record.c (record_open_1): Delete unused variable.
4494 (record_restore): Delete unused variable.
4495 (cmd_record_save): Delete unused variable.
4496 * gcore.c (derive_heap_segment): Delete unused variable.
4497 (objfile_find_memory_regions): Use unused variable.
4498 * jit.c (jit_inferior_init): Delete unused variable.
4499 * progspace.c (clone_program_space): Delete unused variable.
4500 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
4501
4502 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
4503 Delete unused variable.
4504 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4505 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4506 (method_name_from_physname): Delete unused variable.
4507 (cp_func_name): Delete unused variable.
4508 (cp_validate_operator): Delete unused variable.
0407b3f1 4509 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 4510 Delete unused variable.
0407b3f1 4511 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
4512 Delete unused variable.
4513 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4514
1be757cf
MS
4515 * serial.c (serial_for_fd): Delete unused variable.
4516 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4517 * top.c (execute_command): Delete unused variable.
4518 (init_main): Delete unused variable.
4519 * utils.c (do_fclose_cleanup): Delete unused variable.
4520 (do_all_inferior_continuations): Delete unused variable.
4521 (initialize_utils): Delete unused variable.
4522 (internal_problem_mode): Delete unused global.
4523 * frame.c (get_prev_frame): Delete unused global.
4524 (get_frame_locals_address): Delete unused global.
4525 (get_frame_args_address): Delete unused global.
4526
9216103f
MS
4527 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4528 (pascal_type_print_varspec_prefix): Delete unused variable.
4529 * f-typeprint.c (f_type_print_base): Delete unused variable.
4530 (f_type_print_varspec_suffix): Delete unused variable.
4531 * m2-typeprint.c (m2_print_type): Delete unused variable.
4532 (m2_long_set): Delete unused variable.
4533 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4534 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 4535 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
4536 Delete unused variable.
4537 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4538 * m2-valprint.c (m2_val_print): Delete unused variable.
4539
34fa1d9d
MS
4540 * ui-out.c (ui_out_field_int): Delete unused variable.
4541 (ui_out_field_fmt_int): Delete unused variable.
4542 * varobj.c (varobj_list_children): Delete unused variable.
4543 (varobj_set_value): Delete unused variable.
4544 (install_new_value_visualizer): Delete unused variable.
4545 (varobj_set_visualizer): Delete unused variable.
4546 (varobj_update): Delete unused variable.
4547 (varobj_editable_p): Delete unused variable.
4548 (c_value_of_root): Delete unused variable.
4549 (cplus_describe_child): Delete unused variable.
4550
b5385fc0
MS
4551 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4552 (decode_constrained_packed_array_type): Delete unused variable.
4553 (add_defn_to_vec): Delete unused variable.
4554 (symbol_completion_match): Delete unused variable.
4555 (value_tag_from_contents_and_address): Delete unused variable.
4556 (ada_evaluate_subexp): Delete unused variable.
4557 * c-lang.c (classify_type): Delete unused variable.
4558 * f-lang.c (f_printstr): Delete unused variable.
4559 * objc-lang.c (objc_printstr): Delete unused variable.
4560 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4561 * jv-lang.c (type_from_class): ifdef unused variable.
4562 (java_class_name_from_physname): Delete unused variable.
4563 * m2-lang.c (m2_printstr): Delete unused variable.
4564
4fc06681
MS
4565 * objfiles.c (objfile_relocate): Delete unused variable.
4566 * maint.c (_initialize_maint_cmds): Delete unused variable.
4567 * demangle.c (_initialize_demangler): Delete unused variable.
4568 * corefile.c (reopen_exec_file): Delete unused variable.
4569 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4570 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4571
6b4398f7
MS
4572 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4573 * memattr.c (mem_delete): Delete unused variable.
4574 (invalidate_target_mem_regions): Delete unused variable.
4575 * mem-break.c (default_memory_insert_breakpoint):
4576 Delete unused variable.
4577 * target.c (target_get_osdata): Delete unused variable.
4578 * parse.c (length_of_subexp): Delete unused variable.
4579 (prefixify_subexp): Delete unused variable.
4580 (exp_iterate): Delete unused variable.
4581 * reverse.c (delete_bookmark_command): Delete unused variable.
4582
308d96ed
MS
4583 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4584 * macroexp.c (gather_arguments): Delete unused variable.
4585 (substitute_args): Delete unused variable.
4586 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4587 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4588 (_initialize_gdbarch): Delete unused variable.
4589 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 4590 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
4591 Delete unused variable.
4592 (_initialize_gdbarch_utils): Delete unused variable.
4593 * gdbtypes.c (make_cv_type): Delete unused variable.
4594 (make_type_with_address_space): Delete unused variable.
4595
167e4384
MS
4596 * linespec.c (decode_compound): Delete unused variable.
4597 * dictionary.c (iterator_next_hashed): Delete unused variable.
4598 * infcall.c (call_function_by_hand): Delete unused variable.
4599 * infcmd.c (step_1): Delete unused variable.
4600 (registers_info): Delete unused variable.
4601 (attach_command): Delete unused variable.
4602 * infrun.c (follow_exec): Delete unused variable.
4603 (handle_step_into_function_backwards): Delete unused variable.
4604 (_initialize_infrun): Delete unused variable.
4605 * stack.c (parse_frame_specification_1): Delete unused variable.
4606 (frame_info): Delete unused variable.
4607 (backtrace_command_1): Delete unused variable.
4608 (catch_info): Delete unused variable.
4609
8f78b329
MS
4610 * eval.c (evaluate_subexp_standard): Delete unused variable.
4611 * valops.c (value_cast_pointers): Delete unused variable.
4612 (value_dynamic_cast): Delete unused variable.
4613 (value_array): Delete unused variable.
4614 (find_overload_match): Delete unused variable.
4615 * valarith.c (value_subscript): Delete unused variable.
4616 (value_binop): Delete unused variable.
4617 * valprint.c (_initialize_valprint): Delete unused variable.
4618 * printcmd.c (print_command_1): Delete unused variable.
4619 (address_info): Delete unused variable.
4620 (printf_command): Delete unused variable.
4621
8ea13695
MS
4622 * auxv.c (target_auxv_search): Delete unused variable.
4623 * blockframe.c (get_frame_block): Delete unused variable.
4624 * regcache.c (regcache_cpy): Delete unused variable.
4625 (regcache_cpy_no_passthrough): Delete unused variable.
4626 * charset.c (wchar_iterate): Delete unused variable.
4627 (find_charset_names): Delete unused variable.
4628 (_initialize_charset): Delete unused variable.
0407b3f1 4629 * disasm.c (do_mixed_source_and_assembly):
8ea13695 4630 Delete unused variable.
0407b3f1 4631 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
4632 Delete unused variable.
4633 (set_substitute_path_command): Delete unused variable.
4634 * value.c (preserve_values): Delete unused variable.
4635 (value_from_double): Delete unused variable.
4636
afe38095
MS
46372010-05-05 Michael Snyder <msnyder@vmware.com>
4638
952a6d41
MS
4639 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4640 (find_last_source_symtab_from_partial): Delete unused variable.
4641 * symfile.c (place_section): Delete unused variable.
4642 (default_symfile_offsets): Delete unused variable.
4643 (get_debug_link_info): Delete unused variable.
4644 (find_separate_debug_file_by_debuglink): Delete unused variable.
4645 (add_symbol_file_command): Delete unused variable.
4646 (symfile_find_segment_sections): Delete unused variable.
4647 * symmisc.c (free_symtab): Delete unused variable.
4648 (dump_symtab_1): Delete unused variable.
4649 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4650 (find_pc_sect_symtab): Delete unused variable.
4651 (skip_prologue_using_lineinfo): Delete unused variable.
4652 (sources_info): Delete unused variable.
4653 (completion_list_add_name): Delete unused variable.
4654 (expand_line_sal): Delete unused variable.
4655
0407b3f1 4656 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
4657 Delete unused variables.
4658 (insert_catchpoint): Delete unused variable.
4659 (update_watchpoint): Delete unused variable.
4660 (insert_bp_location): Delete unused variable.
4661 (insert_breakpoint_locations): Delete unused variable.
4662 (remove_breakpoint_1): Delete unused variable.
4663 (software_breakpoint_inserted_here_p): Delete unused variable.
4664 (watchpoints_triggered): Delete unused variable.
4665 (bpstat_check_watchpoint): Delete unused variable.
4666 (bpstat_stop_status): Delete unused variable.
4667 (print_one_breakpoint_location): Delete unused variable.
4668 (allocate_bp_location): Delete unused variable.
4669 (create_breakpoint): Delete unused variable.
4670 (watch_command_1): Delete unused variable.
4671 (catch_exception_command_1): Delete unused variable.
4672 (catch_ada_exception_command): Delete unused variable.
4673 (delete_breakpoint): Delete unused variable.
4674 (breakpoint_re_set_one): Delete unused variable.
4675 (do_enable_breakpoint): Delete unused variable.
4676
eda5a4d7
PA
46772010-05-06 Pedro Alves <pedro@codesourcery.com>
4678
4679 * amd64-tdep.c: Include disasm.h.
4680 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4681 (amd64_insn_length): Moved to disasm.c and renamed.
4682 (fixup_riprel): Adjust.
4683 * disasm.c (do_ui_file_delete): New.
4684 (gdb_insn_length): New.
4685 (gdb_buffered_insn_length_fprintf)
4686 (gdb_buffered_insn_length_init_dis)
4687 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4688 renamed.
4689 * disasm.h (gdb_insn_length): Declare.
4690 (gdb_buffered_insn_length): Declare.
4691
02357a4a
PA
46922010-05-06 Pedro Alves <pedro@codesourcery.com>
4693
4694 * remote.c (clear_threads_parsing_context): New.
4695 (remote_threads_info): Delete unused null_cleanup. Install a
4696 cleanup to clear the threads_parsing_context in case parsing
4697 throws.
4698
8c5630cb
MS
46992010-05-05 Michael Snyder <msnyder@vmware.com>
4700
4701 * c-exp.y (parse_string_or_char): Delete unused variable.
4702 (c_lex): Delete unused variable.
4703 * cp-name-parser.y (cpname_lex): Delete unused variable.
4704 * ada-exp.y (find_primitive_type): Delete unused variable.
4705 (write_var_or_type): Delete unused variable.
4706 * jv-exp.y (java_parse): Delete unused variable.
4707 (push_expression_name): Delete unused variable.
4708 * p-exp.y (pascal_lex): Delete unused variable.
4709
46c162d4
PA
47102010-05-05 Pedro Alves <pedro@codesourcery.com>
4711
4712 * remote.c (remote_threads_info): Really revert previous previous
4713 change.
4714
0043e6a5
MS
47152010-05-05 Michael Snyder <msnyder@vmware.com>
4716
fa238c03
MS
4717 * elfread.c (elf_symtab_read): Delete unused variable.
4718 (find_separate_debug_file_by_buildid): Delete unused variables.
4719 (elf_symfile_read): Delete unused variable.
4720
4721 * coffread.c (coff_symfile_read): Delete unused variables.
4722
4723 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4724 (read_pe_exported_syms): Delete unused variable.
4725
4726 * stabsread.c (define_symbol): Delete unused variable.
4727
4728 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4729 (process_psymtab_comp_unit): Delete unused variable.
4730 (dwarf2_build_psymtabs_hard): Delete unused variable.
4731 (load_partial_comp_unit): Delete unused variable.
4732 (create_all_comp_units): Delete unused variable.
4733 (scan_partial_symbols): Delete unused variable.
4734 (add_partial_symbol): Delete unused variable.
4735 (add_partial_namespace): Delete unused variable.
4736 (add_partial_enumeration): Delete unused variable.
4737 (load_full_comp_unit): Delete unused variable.
4738 (process_full_comp_unit): Delete unused variable.
4739 (read_file_scope): Delete unused variable.
4740 (read_type_unit_scope): Delete unused variable.
4741 (process_structure_scope): Delete unused variable.
4742 (process_enumeration_scope): Delete unused variable.
4743 (read_tag_ptr_to_member_type): Delete unused variable.
4744 (read_typedef): Delete unused variable.
4745 (read_partial_die): Delete unused variable.
4746 (decode_locdesc): Delete unused variable.
4747 (zeroed_partial_die): Delete unused global variable.
4748
0407b3f1 4749 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 4750 Delete unused variable.
0407b3f1 4751 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
4752 Delete unused variable.
4753 (tui_check_register_values): Delete unused variable.
4754 (tui_register_format): Delete unused variable.
4755 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 4756 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
4757 Delete unused variables.
4758 (tui_vertical_data_scroll): Delete unused variables.
4759
75721c66
MS
47602010-05-05 Michael Snyder <msnyder@vmware.com>
4761
c31a71f4
MS
4762 * remote.c (remote_threads_info): Revert questionable part of
4763 the previous change.
4764
47652010-05-05 Michael Snyder <msnyder@vmware.com>
4766
4767 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4768 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4769 (mi_cmd_var_list_children): Delete unused variable.
4770 (varobj_update_one): Delete unused variable.
4771 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 4772 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
4773 Delete unused variable.
4774 (mi_cmd_stack_list_variables): Delete unused variable.
4775 (list_args_or_locals): Delete unused variable.
0407b3f1 4776 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
4777 Delete unused variables.
4778 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 4779 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
4780 Delete unused variable.
4781 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4782 (mi_cmd_interpreter_exec): Delete unused variable.
4783 (mi_on_normal_stop): Delete unused variable.
4784 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4785 (print_one_inferior): Delete unused variables.
4786 (mi_execute_command): Delete unused variable.
4787 (mi_cmd_execute): Delete unused variable.
4788 (timestamp): Delete unused variable.
4789
4790 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 4791 (restore_binary_file): Delete unused variable.
c31a71f4
MS
4792 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4793 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
4794 (recurse_read_control_structure): Delete unused variable.
4795 (script_from_file): Delete unused variable.
c31a71f4 4796 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
4797 (disassemble_command): Delete unused variable.
4798
4799 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 4800 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
4801 Delete unused variables.
4802 (encode_actions_1): Delete unused variables.
4803 (start_tracing): Delete unused variable.
4804 (trace_status_mi): Delete unused variable.
4805 (tfind_1): Delete unused variable.
4806 (trace_find_pc_command): Delete unused variable.
4807 (trace_find_line_command): Delete unused variables.
4808 (trace_find_range_command): Delete unused variables.
4809 (trace_find_outside_command): Delete unused variables.
4810 (parse_tracepoint_definition): Delete unused variables.
4811 (tfile_fetch_registers): Delete unused variable.
4812
9128a503
MS
4813 * dcache.c (dcache_init): Delete unused variable.
4814 (dcache_info): Delete unused variable.
4815
aa369b55 4816 * remote.c (remote_threads_info): Delete unused variable.
9128a503 4817 (process_stop_reply) :Delete unused variable.
aa369b55
MS
4818 (remote_get_trace_status): Delete unused variables.
4819
9e9547e4
MS
4820 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4821 (thread_from_lwp): Delete unused variable.
4822 (enable_thread_event_reporting): Delete unused variable.
4823 (check_for_thread_db): Delete unused variables.
4824 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 4825
9e9547e4
MS
4826 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4827 (checkpoint_command): Delete unused variable.
4828 (linux_fork_context): Delete unused variables.
4829
fa238c03 4830 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
4831 (linux_tracefork_child): Delete unused variable.
4832 (linux_child_follow_fork): Delete unused variable.
4833 (linux_nat_detach): Delete unused variable.
4834 (linux_handle_extended_wait): Delete unused variable.
4835 (linux_nat_has_pending_sigint): Delete unused variable.
4836 (linux_nat_find_memory_regions): Delete unused variable.
4837 (linux_nat_make_corefile_notes): Delete unused variables.
4838 (linux_nat_info_proc_cmd): Delete unused variable.
4839 (linux_proc_pending_signals): Delete unused variable.
4840 (linux_nat_stop_lwp): Delete unused variables.
4841 (_initialize_linux_nat): Delete unused variable.
4842
fa238c03 4843 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 4844
0407b3f1 4845 * linux-record.c (record_linux_system_call):
e0f069a3
MS
4846 Delete unused variables.
4847
789d24f0
MS
4848 * corelow.c (core_xfer_partial): Delete unused variables.
4849
1cd337a5 4850 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 4851 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
4852 conditionally-used variable declarations.
4853
b00e3f56
MS
4854 * solib.c (solib_find): Delete unused variable.
4855 (free_so_symbols): Delete unused variable.
4856 (info_sharedlibrary_command): Delete unused variable.
4857 (reload_shared_libraries_1): Delete unused variable.
4858 (_initialize_solib): Delete unused variable.
4859
90f62196
MS
4860 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4861 (i386_collect_xstateregset): Delete unused variable.
4862 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4863
75721c66
MS
4864 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4865 Delete unused variable 'type'.
4866
af33db37
JB
48672010-05-05 Joel Brobecker <brobecker@adacore.com>
4868
90f62196 4869 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
4870 ada-lang.c: Remove comment mentioning these macros.
4871 * m2-exp.y: Delete commented out code.
af33db37 4872
0497f5b0
JB
48732010-05-05 Joel Brobecker <brobecker@adacore.com>
4874
4875 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4876 for array types.
4877 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4878
6e39997a
PM
48792010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4880
4881 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 4882 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
4883 ATTRIBUTE_UNUSED.
4884 (cleanup_kernel_helper_return): Likewise.
4885 * arm-tdep.c (copy_unmodified): Likewise.
4886 (copy_preload): Likewise.
4887 (copy_copro_load_store): Likewise.
4888 (cleanup_branch): Likewise.
4889 (copy_b_bl_blx): Likewise.
4890 (copy_bx_blx_reg): Likewise.
4891 (copy_alu_imm): Likewise.
4892 (copy_alu_reg): Likewise.
4893 (copy_alu_shifted_reg): Likewise.
4894 (cleanup_load): Likewise.
4895 (cleanup_store): Likewise.
4896 (cleanup_block_load_pc): Likewise.
4897 (cleanup_svc): Likewise.
4898 (copy_undef): Likewise.
4899 (copy_unpred): Likewise.
4900 * remote.c (register_remote_support_xml): Likewise.
4901
1412f70b
HZ
49022010-05-05 Hui Zhu <teawater@gmail.com>
4903
4904 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4905
c4f7c687
MK
49062010-05-04 Mark Kettenis <kettenis@gnu.org>
4907
4908 * remote.c (register_remote_support_xml)
4909 (remote_query_supported_append, remote_query_supported): Add cast
4910 to NULL used as sentinel.
4911 * tracepoint.c (tvariables_info_1): Likewise.
4912 * utils.c (add_internal_problem_command): Likewise.
4913
63b4f126
MGD
49142010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4915
4916 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4917 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4918 registers gracefully.
4919
2f1bdd26
MGD
49202010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4921
0407b3f1 4922 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
4923 specific parts.
4924
e1c34c5d
PM
49252010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4926
4927 PR exp/11349.
4928 * printcmd.c (x_command): Only dereference once implicitly for
4929 TYPE_CODE_REF.
4930
ae462839
DE
49312010-05-03 Doug Evans <dje@google.com>
4932
4933 * event-loop.c (gdb_timer): Delete unused global.
4934 (create_timer): Update.
4935
1ac77ea1
JK
49362010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4937
4938 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4939 CURRENT->DECLARATION case.
4940 * cp-support.h (struct using_direct): Provide extended comment.
4941
7c54a108
MK
49422010-05-03 Mark Kettenis <kettenis@gnu.org>
4943
4944 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4945 HPPABSD_SIZEOF_GREGS.
4946 (HPPAOBSD_SIZEOF_FPREGS): New define.
4947 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4948 (hppaobsd_supply_fpregset): New function.
4949 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4950 (hppaobsd_fpregset): New variable.
4951 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4952 (_initialize_hppabsd_tdep): Remove spurious blank line.
4953
278582cb
PM
49542010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4955
4956 PR pascal/11349.
4957 * p-valprint.c (pascal_value_print): Always dereference a value with
4958 type code TYPE_CODE_REF.
0407b3f1 4959
f0223081
PA
49602010-05-03 Pedro Alves <pedro@codesourcery.com>
4961
4962 * remote.c (remote_notice_signals): New.
4963 (remote_start_remote): In non-stop mode, update the remote end on
4964 which signals it can silently pass.
4965 (init_remote_ops): Install remote_notice_signals.
4966
c25c4a8b
JK
49672010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4968
4969 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4970 * command.h (error_no_arg): ... here. Remove NORETURN, change
4971 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4972 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4973 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4974 (internal_verror, internal_error, nomem): Remove NORETURN, change
4975 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4976 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4977 (throw_vfatal, throw_error): Remove NORETURN.
4978 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4979 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4980 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4981 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4982 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4983 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4984 NORETURN.
4985 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4986 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4987 ATTRIBUTE_NORETURN.
4988 * target.c (tcomplain): Likewise.
4989 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4990 ATTRIBUTE_NORETURN.
4991 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4992 (internal_error, perror_with_name, nomem): Remove NORETURN.
4993 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4994 ATTRIBUTE_NORETURN.
4995
a0b31db1
JK
49962010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4997
4998 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4999 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5000 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5001 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5002 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5003 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5004 * complaints.h (complaint, internal_complaint): Likewise.
5005 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5006 (ATTR_FORMAT): Remove.
5007 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5008 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5009 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5010 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5011 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5012 (internal_error, internal_vwarning, internal_warning, warning)
5013 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5014 * disasm.c (fprintf_disasm): Likewise.
5015 * exceptions.c (throw_it): Likewise.
5016 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5017 (throw_error): Likewise.
5018 * language.h (type_error, range_error): Likewise.
5019 * linespec.c (cplusplus_error): Likewise.
5020 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5021 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5022 * monitor.c (monitor_debug): Likewise.
5023 * parser-defs.h (parser_fprintf): Likewise.
5024 * serial.h (serial_printf): Likewise.
5025 * tui/tui-hooks.c (tui_query_hook): Likewise.
5026 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5027 (uo_message): Likewise.
5028 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5029 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5030 Likewise.
5031 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5032
02a45ac0
PA
50332010-05-02 Pedro Alves <pedro@codesourcery.com>
5034
5035 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5036 (cli_table_header, cli_begin, cli_end, cli_field_int)
5037 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5038 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5039 Delete forward declarations.
5040 (cli_ui_out_impl): Move below the callbacks.
5041 (_initialize_cli_out): Delete.
5042
1915ef4f
PA
50432010-05-02 Pedro Alves <pedro@codesourcery.com>
5044
5045 * README: Use consistent `GDB' and `GDBserver' spellings.
5046
0dfb946f
JK
50472010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5050
4d533103
PA
50512010-05-01 Pedro Alves <pedro@codesourcery.com>
5052
5053 * infrun.c (prepare_for_detach): In non-stop, context switch to
5054 the thread that got the event before handling the event.
5055
705b5767
TT
50562010-04-30 Tom Tromey <tromey@redhat.com>
5057
5058 * symtab.c (symbol_set_names): Fix typo.
5059
3c0ee1a4
PM
50602010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5061
5062 * python/py-param.c (parm_constants): Avoid ARI warning
5063 by adding ARI comment.
5064 (parmpy_init): Likewise.
5065
ea1fae46
PM
50662010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5067
5068 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5069 and created type for re-use.
5070
c24d0242
PM
50712010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5072
5073 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5074
a26d8d11
DE
50752010-04-29 Doug Evans <dje@google.com>
5076
5077 * ser-base.h (reschedule): Delete prototype.
5078 * ser-base.c (reschedule): Make static.
5079
f8624c62
MGD
50802010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5081
5082 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5083 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 5084 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 5085 EABI.
0407b3f1 5086 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
5087 use.
5088
e66408ed
PA
50892010-04-29 Pedro Alves <pedro@codesourcery.com>
5090
5091 PR gdb/11557
5092
5093 * regcache.c (registers_changed): Rename to ...
5094 (registers_changed_ptid): ... this, and only delete register cache
5095 entries matching the ptid filter argument.
5096 (registers_changed): Reimplement on top of registers_changed_ptid.
5097 * regcache.h (registers_changed_ptid): Declare.
5098 * target.c (target_resume): Flush register caches.
5099
d7b32ed3 51002010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
5101 Tom Tromey <tromey@redhat.com>
5102 Thiago Jung Bauermann <bauerman@br.ibm.com>
5103
5104 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5105 (SUBDIR_PYTHON_SRCS): Likewise.
5106 (py-parameter.o): New rule.
5107 * python/py-parameter.c: New file.
5108 * python/python-internal.h (gdbpy_initialize_parameter)
5109 (gdbpy_parameter, gdbpy_parameter_value)
5110 (gdbpy_parse_command_name): Declare.
5111 * python/py-cmd.c (parse_command_name): Rename to
5112 gdbpy_parse_command_name.
5113 (gdbpy_parse_command_name): Accept a starting list parameter and
5114 use over cmdlist.
5115 (cmdpy_init): Use gdbpy_parse_command_name.
5116 * python/python.c (parameter_to_python): Rename to
5117 gdbpy_parameter_to_python. Accept enum var_types and value.
5118 (gdbpy_parameter): Use gdbpy_parameter_value.
5119 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 5120
ce72ce41
MGD
51212010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5122
5123 * MAINTAINERS: Add myself for write after approval privileges.
5124
6aecb9c2
JB
51252010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5126
5127 D language support.
5128 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5129 (COMMON_OBS): Add d-lang.o d-valprint.o.
5130 (HFILES_NO_SRCDIR): Add d-lang.h.
5131 * NEWS: Mention D language support.
5132 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5133 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5134 * d-lang.c: New file.
5135 * d-lang.h: New file.
5136 * d-valprint.c: New file.
5137 * defs.h (enum language): Add language_d.
5138 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5139 * language.c (binop_result_type, integral_type, character_type)
5140 (string_type, boolean_type, structured_type): Add language_d.
5141 * symfile.c (init_filename_language_table): Add language_d.
5142 * symtab.c: Include d-lang.h.
5143 (symbol_init_language_specific, symbol_find_demangled_name)
5144 (symbol_natural_name, lookup_symbol_in_language)
5145 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5146
6f992fbf
JB
51472010-04-27 Joel Brobecker <brobecker@adacore.com>
5148
5149 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5150
dde59185
JB
51512010-04-27 Joel Brobecker <brobecker@adacore.com>
5152
5153 * symfile.c (init_filename_language_table): Register .dg files
5154 with language_ada.
5155
d09ce91e
JB
51562010-04-27 Joel Brobecker <brobecker@adacore.com>
5157
5158 * gdbtypes.h (struct main_type): Expand comment about target_type
5159 field.
5160
67f1675e
JB
51612010-04-27 Pedro Alves <pedro@codesourcery.com>
5162 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
5163
5164 * symfile.c (reread_symbols): Also search for file in libraries.
5165 Update comment.
5166
dfd0fe27
JB
51672010-04-27 Joel Brobecker <brobecker@adacore.com>
5168
5169 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5170 in terms of configuration.
5171
0133421a
JK
51722010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5173
5174 * objfiles.c: Include solist.h.
5175 (free_all_objfiles): New variable so. Check stale solist objfiles.
5176 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5177 and no_shared_libraries.
5178
e78f4312
JB
51792010-04-27 Joel Brobecker <brobecker@adacore.com>
5180
5181 ARI warning fix.
5182 * python/py-auto-load.c (source_section_scripts): Remove trailing
5183 new-line in i18n string.
5184
9214d371
DE
51852010-04-26 Doug Evans <dje@google.com>
5186
5187 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5188
3f172e24
TT
51892010-04-26 Tom Tromey <tromey@redhat.com>
5190
5191 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5192 command list.
5193
e790e06e
PM
51942010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5195
5196 Removal of config/i386/nm-i386sol2.h native configuration file.
5197 * config/i386/nm-i386sol2.h: Remove file.
5198 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5199 * config/i386/sol2-64.mh: Idem.
88562582
PM
5200 * config/djgpp/fnchange.lst: Remove reference to that file.
5201 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 5202
b7da9e9f
PM
52032010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5204
5205 PR breakpoints/11531.
5206 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5207 macro definition and related comment.
5208 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5209 (resume): Remove code and comment related to this macro.
5210
72f6eb52
JK
52112010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5212
5213 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5214 Fix whitespace.
5215
ab38a727
PA
52162010-04-24 Pedro Alves <pedro@codesourcery.com>
5217
5218 * defs.h: Adjust comment.
5219 * filesystem.h, filesystem.c: New files.
5220 * Makefile.in (SFILES): Add filesystem.c.
5221 (COMMON_OBS): Add filesystem.o.
5222 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5223 different target and host path flavours.
5224 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5225 has_dos_based_file_system on the gdbarch.
5226 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5227 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5228 * i386-tdep.c (i386_go32_init_abi): Ditto.
5229 * gdbarch.sh (has_dos_based_file_system): New.
5230 * gdbarch.h, gdbarch.c: Regenerate.
5231 * NEWS: Mention improved support for remote targets with DOS-based
5232 filesystems. Mention new `set/show target-file-system-kind'
5233 commands.
5234
35c9c7ba
SS
52352010-04-23 Stan Shebs <stan@codesourcery.com>
5236
5237 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5238 comments.
5239 (struct agent_reqs): Remove.
5240 (ax_reg_mask): Declare.
5241 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5242 (free_agent_expr): Free reg_mask.
5243 (ax_print): Add scope and register mask info.
5244 (ax_reqs): Remove agent_reqs argument, use agent expression
5245 fields, and move part of register mask computation to...
5246 (ax_reg_mask): New function.
5247 * ax-gdb.c (gen_trace_static_fields): Call it.
5248 (gen_traced_pop): Ditto.
5249 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5250 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5251 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5252 (gen_eval_for_expr): Ditto, and require an rvalue.
5253 (agent_command): Call ax_reqs.
5254 (agent_eval_command): Ditto.
5255 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5256 (validate_action_line): Ditto.
5257 (collect_symbol): Ditto.
5258 (encode_actions_1): Ditto.
5259
492928e4
JK
52602010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5261 Paul Pluzhnikov <ppluzhnikov@google.com>
5262 Jan Kratochvil <jan.kratochvil@redhat.com>
5263
5264 Fix deadlock on looped list of loaded shared objects.
5265 * solib-svr4.c (LM_PREV): New function.
5266 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5267 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5268 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5269 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5270
66d09542
DE
52712010-04-23 Doug Evans <dje@google.com>
5272
88a1906b
DE
5273 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5274 python.
5275 * configure: Regenerate.
5276 * main.c: #include "python/python.h".
5277 (captured_main): Defer loading auto-loaded scripts until after
5278 local_gdbinit has been sourced.
5279 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5280 (load_auto_scripts_for_objfile): New function.
5281 (auto_load_new_objfile): Call it.
5282 * python/python.h (gdbpy_global_auto_load): Declare.
5283 (load_auto_scripts_for_objfile): Declare.
5284
66d09542
DE
5285 Add support for auto-loading scripts from .debug_gdb_scripts section.
5286 * NEWS: Add entry for .debug_gdb_scripts.
5287 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5288 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5289 (py-auto-load.o): New rule.
5290 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5291 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5292 * python/py-auto-load.c: New file.
5293 * python/python-internal.h: #include <stdio.h>.
5294 (set_python_list, show_python_list): Declare.
5295 (gdbpy_initialize_auto_load): Declare.
5296 (source_python_script_for_objfile): Declare.
5297 * python/python.c: Remove #include of observer.h.
5298 (gdbpy_auto_load): Moved to py-auto-load.c.
5299 (GDBPY_AUTO_FILENAME): Ditto.
5300 (gdbpy_new_objfile): Delete.
5301 (source_python_script_for_objfile): New function.
5302 (set_python_list, show_python_list): Make externally visible.
5303 (_initialize_python): Move "auto-load" command to py-auto-load.c
5304 and observer_attach_new_objfile to py-auto-load.c.
5305
3a48e6ff 53062010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 5307
3a48e6ff
JG
5308 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5309 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5310 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5311 New constants.
5312 (alpha_heuristic_analyze_probing_loop): New function.
5313 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5314 and handle cases when a stack probe loop is generated.
5315 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5316 (alpha_mdebug_max_frame_size_exceeded): New function.
5317 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5318 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5319 Return 0 when the maximum debuggable frame size has been exceeded.
5320
e4166a49
JB
53212010-04-23 Joel Brobecker <brobecker@adacore.com>
5322
5323 Fix ARI warning.
5324 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5325
8bd10a10
CM
53262010-04-20 Chris Moller <cmoller@redhat.com>
5327
5328 PR 10179
5329
5330 * symtab.c (rbreak_command): Added code to include a filename
5331 specification in the rbreak argument.
5332 * NEWS: Added a brief description of filename-qualified rbreak.
5333
c0201579
JK
53342010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5335
5336 Fix crashes on dangling display expressions.
5337 * ada-lang.c (ada_operator_check): New function.
5338 (ada_exp_descriptor): Fill-in the field operator_check.
5339 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5340 * jv-lang.c (exp_descriptor_java): Likewise.
5341 * m2-lang.c (exp_descriptor_modula2): Likewise.
5342 * scm-lang.c (exp_descriptor_scm): Likewise.
5343 * parse.c (exp_descriptor_standard): Likewise.
5344 (operator_check_standard): New function.
5345 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5346 * parser-defs.h (struct exp_descriptor): New field operator_check.
5347 (operator_check_standard, exp_uses_objfile): New declarations.
5348 * printcmd.c: Remove the inclusion of solib.h.
5349 (display_uses_solib_p): Remove the function.
5350 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5351 and exp_uses_objfile instead of display_uses_solib_p.
5352 * solist.h (struct so_list) <objfile>: New comment.
5353 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5354 * symtab.h (lookup_objfile_from_block): New declaration.
5355 (struct general_symbol_info) <obj_section>: Extend the comment.
5356
6ffbb7ab
TJB
53572010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5358 Thiago Jung Bauermann <bauerman@br.ibm.com>
5359
5360 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5361 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5362 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5363 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5364 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5365 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5366 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5367 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5368 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5369 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5370 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5371 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5372 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5373 Define, in case <ptrace.h> doesn't provide it.
5374 (booke_debug_info): New variable.
5375 (max_slots_number): Ditto.
5376 (hw_break_tuple): New struct.
5377 (thread_points): Ditto.
5378 (ppc_threads): New variable.
5379 (PPC_DEBUG_CURRENT_VERSION): New define.
5380 (have_ptrace_new_debug_booke): New function.
5381 (ppc_linux_check_watch_resources): Renamed to ...
5382 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5383 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5384 (booke_cmp_hw_point): New function.
5385 (booke_find_thread_points_by_tid): Ditto.
5386 (booke_insert_point): Ditto.
5387 (booke_remove_point): Ditto.
5388 (ppc_linux_insert_hw_breakpoint): Ditto.
5389 (ppc_linux_remove_hw_breakpoint): Ditto.
5390 (get_trigger_type): Ditto.
5391 (ppc_linux_insert_watchpoint): Handle BookE processors.
5392 (ppc_linux_remove_watchpoint): Ditto.
5393 (ppc_linux_new_thread): Ditto.
5394 (ppc_linux_thread_exit): New function..
5395 (ppc_linux_stopped_data_address): Handle BookE processors.
5396 (ppc_linux_watchpoint_addr_within_range): Ditto.
5397 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5398 to_remove_hw_breakpoint fields of the target operations struct.
5399 Add observe for the thread_exit event.
5400
be0d2954
L
54012010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5402
5403 * i386-linux-nat.c (regmap): Removed.
5404 (fetch_register): Replace regmap with
5405 i386_linux_gregset_reg_offset.
5406 (store_register): Likewise.
5407 (supply_gregset): Likewise.
5408 (fill_gregset): Likewise.
5409
5410 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5411 global.
5412
5413 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5414
f56dcb88
CM
54152010-04-22 Chris Moller <cmoller@redhat.com>
5416
5417 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
5418 method of popping recursion-detection stack with a method based on
5419 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
5420 the static array obstack rather than the static member obstack.)
5421
6cd6a2ae
L
54222010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5423
5424 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5425 (_initialize_amd64_linux_nat): Replace
5426 amd64_linux_gregset64_reg_offset with
5427 amd64_linux_gregset_reg_offset.
5428
5429 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5430 global.
5431
5432 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5433
621791b8
PM
54342010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5435
5436 PR stabs/11479.
5437 * stabsread.c (set_length_in_type_chain): New function.
5438 (read_struct_type): Call set_length_in_type_chain function.
5439 (read_enum_type): Idem.
5440
105c2d85
SS
54412010-04-21 Stan Shebs <stan@codesourcery.com>
5442 Nathan Sidwell <nathan@codesourcery.com>
5443
5444 * tracepoint.c (trace_save): Open in binary mode.
5445
9a22f0d0
PM
54462010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5447
5448 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5449 fields.
0407b3f1 5450 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
5451 builtin_char32 fields.
5452 * printcmd.c (decode_format): Set char size to '\0'
5453 for strings unless explicit size is given.
5454 (print_formatted): Correct calculation of NEXT_ADDRESS
5455 for 16 or 32 bit strings.
5456 (do_examine): Do not force byte size for strings.
5457 Use builtin_char16 and builtin_char32 types to display
0407b3f1 5458 16 or 32 bit-wide strings.
9a22f0d0
PM
5459 (x_command): Set LAST_SIZE to 'b' for string type.
5460
f335d1b3
L
54612010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5462
5463 PR corefiles/11523
5464 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5465 XCR0 first.
5466
5467 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5468 there is no .reg-xstate section.
5469 (i386_linux_core_read_description): Check XCR0 first.
5470
a9789a6b
MF
54712010-04-21 Mike Frysinger <vapier@gentoo.org>
5472
5473 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5474 for len <= 8.
5475
0b66f317
CM
54762010-04-21 Chris Moller <cmoller@redhat.com>
5477
5478 PR 9167
5479 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
5480 method of popping recursion-detection stack with a method based on
5481 obstack_object_size().
0b66f317 5482
6e354e5e
PM
54832010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5484
5485 PR pascal/11492.
5486 * p-valprint.c (pascal_val_print): Fix default printing of integer
5487 arrays.
5488
57174f31
PM
54892010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5490
5491 Fix compilation warning on gcc-4.1.2.
5492 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5493 local variable`pc' to zero.
5494
6fbc7cd8
JB
54952010-04-20 Joel Brobecker <brobecker@adacore.com>
5496
5497 Implement thread support with core files on alpha-tru64.
5498 * dec-thread.c (dec_thread_find_new_threads): New function,
5499 extracted from resync_thread_list.
5500 (resync_thread_list): Add OPS parameter. Replace extracted-out
5501 code by call to dec_thread_find_new_threads.
5502 (dec_thread_wait): Update call to resync_thread_list.
5503 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5504
438c98a1
JB
55052010-04-20 Joel Brobecker <brobecker@adacore.com>
5506
5507 * ada-lang.c (value_pointer): New function.
5508 (make_array_descriptor): Call value_pointer to convert addresses to
5509 pointers.
5510
2971b56b
JB
55112010-04-20 Joel Brobecker <brobecker@adacore.com>
5512
5513 * rs6000-aix-tdep.c: #include exceptions.h.
5514 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5515 while reading the memory at ADDR, then ADDR cannot be a function
5516 descriptor.
5517
be942545
JB
55182010-04-20 Joel Brobecker <brobecker@adacore.com>
5519
5520 * ada-typeprint.c (ada_print_typedef): New function.
5521 * ada-lang.h (ada_print_typedef): Add declaration.
5522 * ada-lang.c (ada_language_defn): set la_print_typdef field
5523 to ada_print_typedef.
5524
1ca8fce0
JB
55252010-04-20 Joel Brobecker <brobecker@adacore.com>
5526
5527 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5528
e9ef4f39
JB
55292010-04-20 Joel Brobecker <brobecker@adacore.com>
5530
5531 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5532 (iterate_over_mappings): Adjust function profile. Add declaration.
5533 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5534 Adjust accordingly.
5535
e294797a
JB
55362010-04-20 Joel Brobecker <brobecker@adacore.com>
5537
5538 * procfs.c (solib_mappings_callback): Move function up to avoid
5539 a compiler warning.
5540
a223f1e7
JB
55412010-04-20 Joel Brobecker <brobecker@adacore.com>
5542
5543 * procfs.c (find_signalled_thread, find_stop_signal): Move
5544 these functions down to define them only when used.
5545
0c3acc09
JB
55462010-04-20 Joel Brobecker <brobecker@adacore.com>
5547
5548 * valprint.c (common_val_print): Fix the value before extracting
5549 its contents.
5550 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5551 * ada-lang.h (ada_to_fixed_value): New function declaration.
5552 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5553 to avoid code duplication and fix a bug in the handling of
5554 fixed types contents.
5555
31ef98ae
TT
55562010-04-20 Tom Tromey <tromey@redhat.com>
5557
5558 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5559 (read_partial_die): Likewise.
5560 (dwarf_attr_name): Likewise.
5561
ec31cde5 55622010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 5563
ec31cde5
CM
5564 PR 10867
5565
5566 * cp-valprint.c (global): Adding new static array recursion
5567 detection obstack.
5568 (cp_print_value_fields, cp_print_static_field): Added new static
5569 array recursion detection code.
5570
e0e0e543
MK
55712010-04-20 Mark Kettenis <kettenis@gnu.org>
5572
5573 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5574 general-purpose register set should be 68 instead of 144.
5575 (i386_linux_sse_regset_sections): Likewise.
5576 (i386_linux_avx_regset_sections): Likewise.
5577
08922a10
SS
55782010-04-20 Stan Shebs <stan@codesourcery.com>
5579 Nathan Sidwell <nathan@codesourcery.com>
5580
5581 * dwarf2loc.c (struct axs_var_loc): New struct.
5582 (dwarf2_tracepoint_var_loc): New function.
5583 (dwarf2_tracepoint_var_access): New function.
5584 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5585 with DW_OP_piece.
5586 (locexpr_describe_location_piece): New function.
5587 (locexpr_describe_location_1): New function.
5588 (locexpr_describe_location): Call it, update signature.
5589 (loclist_describe_location): Rewrite to loop over locations,
5590 update signature.
5591 * symtab.h (struct symbol_computed_ops): Add address to
5592 describe_location arguments, return void.
5593 * printcmd.c (address_info): Get context PC, pass to computed
5594 location description.
5595 * tracepoint.c (scope_info): Ditto.
5596 * ax-gdb.c (trace_kludge): Export.
5597
2dc7f7b3
TT
55982010-04-20 Tom Tromey <tromey@redhat.com>
5599
5600 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5601 (struct dwarf2_cie) <segment_size>: New field.
5602 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5603 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5604 DW_FORM_exprloc.
5605 (read_attribute_value): Handle DW_FORM_flag_present,
5606 DW_FORM_sec_offset, DW_FORM_exprloc.
5607 (dump_die_shallow): Likewise.
5608 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5609 (dwarf2_const_value): Handle DW_FORM_exprloc.
5610 (attr_form_is_block): Likewise.
5611 (struct line_header) <maximum_ops_per_instruction>: New field.
5612 (dwarf_decode_line_header): Set new field.
5613 (dwarf_decode_lines): Handle new field.
5614
ce4b0682
SDJ
56152010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5616
5617 * f-exp.y: Add new production to recognize the `logical*8' type.
5618 (LOGICAL_S8_KEYWORD): New token.
5619 * f-lang.c (enum f_primitive_types)
5620 <f_primitive_type_logical_s8>: New field.
5621 (f_language_arch_info): Handling `logical*8' type.
5622 (build_fortran_types): Building `logical*8' type.
5623 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5624
ff9f22f1
DE
56252010-04-19 Doug Evans <dje@google.com>
5626
5627 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5628 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5629 (pipe_close): Ditto.
5630
437125bd
PM
56312010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5632
5633 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5634
e8e6c82e
PM
56352010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5636
5637 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5638 type to void function.
5639
4136fdd2
SS
56402010-04-19 Stan Shebs <stan@codesourcery.com>
5641 Vladimir Prus <vladimir@codesourcery.com>
5642
5643 * tracepoint.c (tfind_1): Add missing newline, report exit from
5644 tfind mode as such.
5645 * target.c (update_current_target): Make default
5646 to_trace_find return -1.
5647
0c4b2e63
MF
56482010-04-19 Mike Frysinger <vapier@gentoo.org>
5649
5650 * objc-lang.c (find_methods): Move symname check up.
5651
78076abc
PA
56522010-04-19 Pedro Alves <pedro@codesourcery.com>
5653
5654 * ada-lang.c (print_recreate_exception)
5655 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5656 not "catch unhandled".
5657
6149aea9
PA
56582010-04-19 Pedro Alves <pedro@codesourcery.com>
5659
5660 PR breakpoints/8554.
5661
5662 Implement `save-breakpoints'.
5663
5664 * breakpoint.c (save_cmdlist): New.
5665 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5666 to save_cmdlist.
5667 (print_recreate_catch_fork): New.
5668 (catch_fork_breakpoint_ops): Install it.
5669 (print_recreate_catch_vfork): New.
5670 (catch_vfork_breakpoint_ops): Install it.
5671 (print_recreate_catch_syscall): New.
5672 (catch_syscall_breakpoint_ops): Install it.
5673 (print_recreate_catch_exec): New.
5674 (catch_exec_breakpoint_ops): Install it.
5675 (print_recreate_exception_catchpoint): New.
5676 (gnu_v3_exception_catchpoint_ops): Install it.
5677 (save_breakpoints): New, based on tracepoint_save_command, but
5678 handle all breakpoint types.
5679 (save_breakpoints_command): New.
5680 (tracepoint_save_command): Rename to...
5681 (save_tracepoints_command): ... this, and reimplement using
5682 save_breakpoints.
5683 (save_command): New.
5684 (_initialize_breakpoints): Install the "save" command prefix.
5685 Install the "save breakpoints" command. Make "save-tracepoints" a
5686 deprecated alias for "save tracepoints".
5687 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5688 * ada-lang.c (print_recreate_exception): New.
5689 (print_recreate_catch_exception): New.
5690 (catch_exception_breakpoint_ops): Install it.
5691 (print_recreate_catch_exception_unhandled): New.
5692 (catch_exception_unhandled_breakpoint_ops): Install it.
5693 (print_recreate_catch_assert): New.
5694 (catch_assert_breakpoint_ops): Install it.
5695
5696 * NEWS: Mention the new `save breakpoints' command. Mention the
5697 new `save tracepoints' alias and that `save-tracepoints' is now
5698 deprecated.
5699
0a8fce9a
PA
57002010-04-18 Pedro Alves <pedro@codesourcery.com>
5701
5702 PR tui/9217
5703
5704 * tui/tui-out.c: Include cli-out.h.
5705 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5706 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5707 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5708 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5709 declarations.
5710 (struct ui_out_data): Rename to...
5711 (struct tui_ui_out_data): ... this. Remove `stream' and
5712 `suppress_output' fields, and inherit cli_ui_out_data.
5713 (tui_out_data): New typedef.
5714 (tui_ui_out_impl): Don't initialize fields staticaly.
5715 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5716 (tui_begin, tui_end): Delete.
5717 (tui_field_int): Adjust to delegate most work to the base type.
5718 (tui_field_skip): Delete.
5719 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5720 delegate most work to the base type.
5721 (tui_spaces): Delete.
5722 (tui_text): Adjust to delegate most work to the base type.
5723 (tui_message): Delete.
5724 (tui_wrap_hint): Delete.
5725 (tui_flush): Delete.
5726 (out_field_fmt): Delete.
5727 (field_separator): Delete.
5728 (tui_out_new): Adjust to initialize the base type.
5729 (_initialize_tui_out): Initialize tui_ui_out_impl.
5730 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5731 cli_ui_out_data.
5732 (cli_out_data): Adjust.
5733 (cli_ui_out_impl): Make extern.
5734 (cli_table_header, cli_field_int, cli_field_skip): Use
5735 uo_field_string instead of cli_field_string.
5736 (cli_redirect): Adjust to use cli_out_data.
5737 (cli_out_data_ctor): New.
5738 (cli_out_new): Use it.
5739 * cli-out.h (struct ui_file): Remove forward declaration.
5740 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5741 (cli_ui_out_impl): Declare.
5742 (cli_out_data_ctor): Declare.
5743 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5744 (uo_field_string): No longer static.
5745 (ui_out_data): Change return type to void pointer.
5746 (ui_out_new): Change `data' parameter type to void pointer.
5747 * ui-out.h (struct ui_out_data): Don't forward declare.
5748 (ui_out_data): Change return type to void pointer.
5749 (ui_out_new): Change `data' parameter type to void pointer.
5750 (uo_field_string): Declare.
5751
172240dd
PA
57522010-04-17 Pedro Alves <pedro@codesourcery.com>
5753
5754 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5755 instead of always false.
5756
ed41462c
L
57572010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5758
5759 PR corefiles/11511
5760 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5761 orig_rax.
5762
cc60f2e3
PA
57632010-04-17 Pedro Alves <pedro@codesourcery.com>
5764
5765 * breakpoint.c (watchpoints_triggered): Use
5766 is_hardware_watchpoint.
5767 (watchpoints_triggered): Ditto.
5768 (bpstat_check_location): Use is_watchpoint and
5769 is_hardware_watchpoint.
5770 (bpstat_check_watchpoint): Use is_watchpoint and
5771 is_hardware_watchpoint.
5772 (bpstat_stop_status): Fix comment.
5773 (user_settable_breakpoint): Use is_watchpoint.
5774 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5775 (disable_watchpoints_before_interactive_call_start): Use
5776 is_watchpoint.
5777 (enable_watchpoints_after_interactive_call_stop): Use
5778 is_watchpoint.
5779 (clear_command): Use is_watchpoint.
5780 (do_enable_breakpoint): Use is_watchpoint.
5781
cb7db0f2
MF
57822010-04-16 Mike Frysinger <vapier@gentoo.org>
5783
5784 * solib-frv.c (enable_break1_done): Delete.
5785 (enable_break2): Do not check enable_break1_done. Move the
5786 enable_break2_done setting and call to
5787 remove_solib_event_breakpoints() to the end. Return without
5788 warning when the contents of _dl_debug_addr are 0.
5789 (enable_break): Do not set enable_break1_done.
5790 (frv_clear_solib): Likewise.
5791
d77b48cf
KB
57922010-04-16 Kevin Buettner <kevinb@redhat.com>
5793
5794 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5795 instead of an error if no PLT entry is found. Return a
5796 potentially useful result.
5797 (m32c_m16c_pointer_to_address): Add code to search for function
5798 address when no .plt entry is found.
5799
f90824dc
SS
58002010-04-16 Stan Shebs <stan@codesourcery.com>
5801
5802 * tracepoint.c (trace_variable_command): Run a cleanup.
5803
9b79b476
PM
58042010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5805
5806 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5807
711e434b
PM
58082010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5809
5810 Support for Windows OS Thread Information Block.
5811 * NEWS: Document new feature.
5812 * remote.c (PACKET_qGetTIBAddr): New enum element.
5813 (remote_get_tib_address): New function.
5814 (init_remote_ops): Set to_get_tib_address field
5815 to remote_get_tib_address.
5816 (_initialize_remote): Add add_packet_config_cmd
5817 for PACKET_qGetTIBAddr.
5818 * target.c (update_current_target): Set default value for
5819 new to_get_tib_address field.
5820 * target.h (target_ops): New field to_get_tib_address.
5821 (target_get_tib_address): New macro.
5822 * windows-nat.c (thread_info): Add thread_local_base field.
5823 (windows_add_thread): Add tlb argument of type 'void *'.
5824 (fake_create_process): Adapt windows_add_thread call.
5825 (get_windows_debug_event): Idem.
5826 (windows_get_tib_address): New function.
5827 (init_windows_ops): Set to_get_tib_address field
5828 to remote_get_tib_address.
5829 (_initialize_windows_nat): Replace info_w32_cmdlist
5830 initialization by a call to init_w32_command_list.
5831 (info_w32_command, info_w32_cmdlist): Removed from here...
5832 to windows-tdep.c file.
5833 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 5834 (init_w32_command_list): New external function
711e434b
PM
5835 declaration.
5836 * windows-tdep.c: Add several headers.
5837 (info_w32_cmdlist): to here, made global.
5838 (thread_information_32): New struct.
5839 (thread_information_64): New struct.
5840 (TIB_NAME): New char array.
5841 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5842 (maint_display_all_tib): New static variable.
5843 (windows_get_tlb_type): New function.
5844 (tlb_value_read, tlb_value_write): New functions.
5845 (tlb_value_funcs): New static struct.
5846 (tlb_make_value): New function.
5847 (display_one_tib): New function.
5848 (display_tib): New function.
5849 (show_maint_show_all_tib):New function.
5850 (info_w32_command): Moved from windows-nat.c.
5851 (init_w32_command_list): New function.
5852 (_initialize_windows_tdep): New function.
5853 New "maint set/show show-all-tib" command
5854 New "$_tlb" internal variable.
5855
cae3f17b
JB
58562010-04-16 Joel Brobecker <brobecker@adacore.com>
5857
5858 * tui/tui-regs.c (tui_display_register): Add comment about
5859 a couple of casts.
5860 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5861
2ce6d6bf
SS
58622010-04-15 Stan Shebs <stan@codesourcery.com>
5863
5864 * frame.c: Include tracepoint.h.
5865 (get_current_frame): Allow a trace frame to be an alternate source
5866 of stack frame data.
5867 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5868 it won't succeed.
5869
7e559477
PA
58702010-04-15 Pedro Alves <pedro@codesourcery.com>
5871
5872 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5873 flags.
5874 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5875
3f7b2faa
DE
58762010-04-15 Doug Evans <dje@google.com>
5877
fa33c3cd
DE
5878 * NEWS: Add entry for python program space support.
5879 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5880 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5881 (py-progspace.o): New rule.
5882 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5883 function.
5884 (find_pretty_printer_from_progspace): New function.
5885 (find_pretty_printer_from_gdb): New function.
5886 (find_pretty_printer): Rewrite.
5887 * python/py-progspace.c: New file.
5888 * python/python-internal.h (program_space): Add forward decl.
5889 (pspace_to_pspace_object, pspy_get_printers): Declare.
5890 (gdbpy_initialize_pspace): Declare.
5891 * python/python.c: #include "progspace.h".
5892 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5893 (_initialize_python): Call gdbpy_initialize_pspace.
5894 (GdbMethods): Add current_progspace, progspaces.
5895
3f7b2faa
DE
5896 Add -s option to source command.
5897 * NEWS: Document new option.
5898 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5899 Delete from_tty and cleanupp args. Split filep arg into file and
5900 full_pathp. New arg search_path.
5901 (source_script_from_stream): New function.
5902 (source_script_with_search): New function.
5903 (source_script): Rewrite.
5904 (source_command): Parse "-s" option.
5905 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5906 * python/python.c (source_python_script): Make file arg a const char *.
5907 Don't call fclose, leave for caller.
5908 * python/python.h (source_python_script): Update.
5909
a86988f2
PA
59102010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5911 Pedro Alves <pedro@codesourcery.com>
5912
5913 Avoid rereading shared libraries that haven't changed.
5914
5915 * solib.c (free_so_symbols): New function, from ...
5916 (free_so): ... here. Call it.
5917 (solib_read_symbols): Don't warn here if symbols have already been
5918 loaded.
5919 (solib_add): Warn here instead, if a pattern was specified.
5920 (reload_shared_libraries_1): New.
5921 (reload_shared_libraries): Rewrite to not fetch the library list.
5922
e6d9b9c2
DE
59232010-04-14 Doug Evans <dje@google.com>
5924
589390d6 5925 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
5926 concatenating string to search path.
5927
516ba659
PA
59282010-04-14 Pedro Alves <pedro@codesourcery.com>
5929
5930 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5931 * objfiles.c (gdb_bfd_close_or_warn): New.
5932 * corelow.c: Include objfiles.h
5933 (core_close): Use gdb_bfd_close_or_warn.
5934 * elfread.c (build_id_verify): Ditto.
5935 * exec.c (exec_close, exec_close_1): Ditto.
5936
048d532d
PA
59372010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5938 Pedro Alves <pedro@codesourcery.com>
5939
5940 Group errors for many missing shared libraries.
5941
5942 * solist.h (struct so_list): Remove from_tty.
5943 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5944 (solib_map_sections): Take so_list argument. Return 0 if we
5945 failed to open a BFD. Add target sections here.
5946 (symbol_add_stub): Delete.
5947 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5948 not from_tty copied from the so_list. Don't warn a second time
5949 for a missing library.
5950 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5951 add to the section table here. Print out a single warning for all
5952 missing libraries.
5953 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5954 flags.
5955
044c0f87
PM
59562010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5957
5958 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5959 error/warning messages. Capitalize and use complete sentences.
5960 (blpy_block_syms_iternext): Likewise.
5961 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5962 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5963 (frame_info_to_frame_object, frapy_read_var)
5964 (gdbpy_frame_stop_reason_string): Likewise.
5965 * python/py-lazy-string.c (stpy_convert_to_value)
5966 (gdbpy_create_lazy_string_object): Likewise.
5967 * python/py-objfile.c (objfpy_set_printers): Likewise.
5968 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5969 * python/python.c (parameter_to_python): Likewise.
5970 * python/py-type.c (typy_range, typy_target): Likewise.
5971 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5972 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5973
5974
79f283fe
PM
59752010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5976
5977 PR python/11381
5978
5979 * python/py-prettyprint.c (pretty_print_one_value): Test for
5980 Py_None.
5981 (print_string_repr): Test for Py_None. Set flags accordingly.
5982 Return value depending on return type.
5983 (print_children): Take a value indicating whether data was printed
5984 before this function was called. Alter output accordingly.
5985 (apply_val_pretty_printer): Capture return value from
5986 print_string_repr and pass to print_children.
5987
4ac5d44e
MK
59882010-04-13 Mark Kettenis <kettenis@gnu.org>
5989
e1caee70 5990 PR corefiles/11481
4ac5d44e
MK
5991 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5992 register note sections.
5993 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5994 New variables.
5995 (i386_linux_init_abi): Install list of supported register note
5996 sections that matches the target description.
5997
ad91cd99
PA
59982010-04-13 Pedro Alves <pedro@codesourcery.com>
5999
6000 * remote.c (remote_get_noisy_reply): Don't error out on empty
6001 replies.
6002 (remote_start_remote): Update and merge tracepoints and trace
6003 state variables as long as the target supports tracepoints.
6004 (remote_trace_init): Fix prototype.
6005 (remote_download_trace_state_variable): Validate reply.
6006 (remote_trace_set_readonly_regions): Fix prototype.
6007 (remote_trace_start): Fix prototype. Check for empty reply.
6008 (remote_get_trace_status): Small cleanup.
6009 (remote_trace_stop): Fix prototype. Check for empty reply.
6010 (remote_trace_find): Check for empty reply.
6011 (remote_save_trace_data): Validate reply.
6012 (remote_set_disconnected_tracing): Check for empty reply, and
6013 validate reply.
6014 (remote_set_circular_trace_buffer): Ditto.
6015
ae3bccd4
PM
60162010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6017
6018 Suppress unused value warning during compilation.
6019 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6020 calls to void.
6021 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6022
523136f2
SS
60232010-04-12 Stan Shebs <stan@codesourcery.com>
6024
6025 * tracepoint.c (tfile_xfer_partial): Check read result.
6026
0d18d720
MF
60272010-04-12 Mike Frysinger <vapier@gentoo.org>
6028
6029 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6030 * remote-sim.c (gdbsim_files_info): Likewise.
6031
3b273a55
RE
60322010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6033
6034 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6035 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6036 variable.
6037 (fetch_vfp_registers): New function to fetch VFP registers.
6038 (store_vfp_registers): New function to store VFP registers.
6039 (arm_linux_fetch_inferior_registers): Add support for VFP
6040 registers.
6041 (arm_linux_store_inferior_registers): Likewise.
6042 (arm_linux_read_description): Likewise.
6043 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6044 until we need it.
6045
778c7095
L
60462010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6047
6048 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6049 tdep.
6050 (amd64_collect_xstateregset): Likewise.
6051
2114d44c
SS
60522010-04-09 Stan Shebs <stan@codesourcery.com>
6053
87290684
SS
6054 * tracepoint.c (trace_status_mi): Report frames created.
6055
2114d44c
SS
6056 * tracepoint.c (trace_dump_command): Include default-collect
6057 expressions.
6058
86da934b
UW
60592010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6060
6061 * symtab.c (find_function_start_sal): Never return SAL pointing
6062 before function start address, even if line info is missing.
6063
2d6e647a 60642010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
6065
6066 * NEWS: Mention tracepoints support.
6067
a97153c7
PA
60682010-04-09 Pedro Alves <pedro@codesourcery.com>
6069
6070 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6071 circular trace buffer statuses.
6072
7a66d603
JK
60732010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6074
6075 * config/djgpp/fnchange.lst: Fix typo in translations for
6076 symbol-without-target_section.exp and symbol-without-target_section.c.
6077
2566ad2d
PA
60782010-04-09 Pedro Alves <pedro@codesourcery.com>
6079
6080 * breakpoint.c (condition_command): Pass condition expression to
6081 set_breakpoint_condition stripped from breakpoint number.
6082
adc36818
PM
60832010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6084 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 6085 Tom Tromey <tromey@redhat.com>
adc36818
PM
6086
6087 * breakpoint.c (condition_command): Simplify. Move condition
6088 setting code to ...
6089 (set_breakpoint_condition): ... here. New function.
6090 * breakpoint.h (set_breakpoint_condition): Declare.
6091 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6092 (SUBDIR_PYTHON_SRCS): Likewise.
6093 (py-breakpoint.o): New rule.
6094 * python/py-breakpoint.c: New file.
6095 * python/python-internal.h (gdbpy_breakpoints)
6096 (gdbpy_initialize_breakpoints): Declare.
6097 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6098
219f2f23
PA
60992010-04-09 Pedro Alves <pedro@codesourcery.com>
6100
6101 * regformats/regdat.sh: Include server.h. Don't include
6102 regcache.h.
6103
33da3f1c
SS
61042010-04-08 Stan Shebs <stan@codesourcery.com>
6105 Pedro Alves <pedro@codesourcery.com>
6106
6107 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6108 and circular_buffer.
6109 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6110 * tracepoint.c (trace_status_command): Display target's status for
6111 disconnected tracing and circular buffer.
6112 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6113 query for non-disconnected-tracing case, remove the stop_tracing
6114 call.
6115 (tfile_open): Clear disconnected and circular buffer status.
6116 (trace_save): Save disconnected and circular buffer status.
6117 (parse_trace_status): Parse disconnected and circular buffer status,
6118 also recognize disconnected as a stop reason.
6119 * remote.c (remote_set_disconnected_tracing): Only set
6120 QTDisconnected if the remote end supports disconnected tracing.
6121 Warn otherwise, if trying to enable disconnected tracing.
6122 * infcmd.c (detach_command): Update disconnect_tracing call.
6123 * cli/cli-cmds.c (quit_command): Ditto.
6124
4e4d8374
L
61252010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6126
6127 * i387-tdep.c (i387_collect_xsave): Replace abort with
6128 internal_error.
6129
ad443146
SS
61302010-04-08 Stan Shebs <stan@codesourcery.com>
6131
6132 * breakpoint.c (default_collect_info): New function.
6133 (breakpoints_info): Call it.
6134 (maintenance_info_breakpoints): Ditto.
6135 (tracepoints_info): Ditto.
6136
40936b0d
L
61372010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6138
6139 * i387-tdep.c (i387_collect_xsave): Re-indent.
6140
3a13a53b
L
61412010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6142
6143 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6144 if HAVE_PTRACE_GETFPXREGS is defined.
6145 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6146 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6147
6148 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6149 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6150 if .reg-xfp section doesn't exist.
6151 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6152
6153 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6154
6155 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6156 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6157 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6158 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6159 (i386_gdbarch_init): Update comments.
6160 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6161
6162 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6163
6164 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6165
6166 * features/Makefile (i386/i386-mmx-expedite): New.
6167 (i386/i386-mmx-linux-expedite): Likewise.
6168 ($(outdir)/i386/i386-mmx.dat): Likewise.
6169 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6170
6171 * features/i386/i386-mmx-linux.c: New.
6172 * features/i386/i386-mmx-linux.xml: Likewise.
6173 * features/i386/i386-mmx.c: Likewise.
6174 * features/i386/i386-mmx.xml: Likewise.
6175 * regformats/i386/i386-mmx-linux.dat: Likewise.
6176 * regformats/i386/i386-mmx.dat: Likewise.
6177
6178 * features/Makefile (WHICH): Add i386/i386-mmx and
6179 i386/i386-mmx-linux.
6180
08001717
DE
61812010-04-08 Doug Evans <dje@google.com>
6182
6183 * source.c (openp): Skip $cdir in PATH.
6184
fff5cc64
PM
61852010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6186
6187 PR python/11417
fff5cc64 6188 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
6189 a NULL address.
6190 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6191 address and a zero length.
fff5cc64 6192
f8c4f480
HZ
61932010-04-08 Hui Zhu <teawater@gmail.com>
6194
6195 * i386-tdep.c (i386_process_record): Add support for insn
6196 rdtsc.
6197
eb5cda86
DE
61982010-04-07 Doug Evans <dje@google.com>
6199
6200 * python/python.c (source_python_script): Use ensure_python_env
6201 to prepare environment for script.
6202
a055a187
L
62032010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6204
6205 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6206 <sys/uio.h> and "i386-xstate.h".
6207 (PTRACE_GETREGSET): New.
6208 (PTRACE_SETREGSET): Likewise.
6209 (have_ptrace_getregset): Likewise.
6210 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6211 registers.
6212 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6213 registers.
6214 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6215 (amd64_linux_store_inferior_registers): Likewise.
6216 (amd64_linux_read_description): Check and enable AVX target
6217 descriptions.
6218
6219 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6220 and "features/i386/amd64-avx-linux.c".
6221 (amd64_linux_regset_sections): New.
6222 (amd64_linux_core_read_description): Check and enable AVX
6223 target description.
6224 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6225 set_gdbarch_core_regset_sections.
6226 (_initialize_amd64_linux_tdep): Call
6227 initialize_tdesc_amd64_avx_linux.
6228
6229 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6230 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6231 (tdesc_amd64_avx_linux): New.
6232 (amd64_linux_update_xstateregset): Likewise.
6233
6234 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6235 (amd64_ymm_names): New.
6236 (amd64_ymmh_names): Likewise.
6237 (amd64_register_name): Likewise.
6238 (amd64_supply_xstateregset): Likewise.
6239 (amd64_collect_xstateregset): Likewise.
6240 (amd64_supply_xsave): Likewise.
6241 (amd64_collect_xsave): Likewise.
6242 (AMD64_NUM_REGS): Removed.
6243 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6244 %xmmN if AVX is available.
6245 (amd64_pseudo_register_name): Support pseudo YMM registers.
6246 (amd64_regset_from_core_section): Support .reg-xstate section.
6247 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6248 and ymm0h_regnum. Call set_gdbarch_register_name.
6249 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6250
6251 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6252 AMD64_YMM15H_REGNUM.
6253 (AMD64_NUM_REGS): New.
6254 (amd64_supply_xsave): Likewise.
6255 (amd64_collect_xsave): Likewise.
6256 (amd64_register_name): Removed.
6257 (amd64_register_type): Likewise.
6258
31aeac78
L
62592010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6260
6261 * i387-tdep.c: Include "i386-xstate.h".
6262 (XSAVE_XSTATE_BV_ADDR): New.
6263 (xsave_avxh_offset): Likewise.
6264 (XSAVE_AVXH_ADDR): Likewise.
6265 (i387_supply_xsave): Likewise.
6266 (i387_collect_xsave): Likewise.
6267
6268 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6269 (I387_YMM0H_REGNUM): Likewise.
6270 (I387_YMMENDH_REGNUM): Likewise.
6271 (i387_supply_xsave): Likewise.
6272 (i387_collect_xsave): Likewise.
6273
c131fcee
L
62742010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6275
6276 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6277 <sys/uio.h> and "i386-xstate.h".
6278 (PTRACE_GETREGSET): New.
6279 (PTRACE_SETREGSET): Likewise.
6280 (fetch_xstateregs): Likewise.
6281 (store_xstateregs): Likewise.
6282 (GETXSTATEREGS_SUPPLIES): Likewise.
6283 (regmap): Include 8 upper YMM registers.
6284 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6285 state.
6286 (i386_linux_store_inferior_registers): Likewise.
6287 (i386_linux_read_description): Check and enable AVX target
6288 descriptions.
6289
6290 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6291 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6292 (i386_linux_regset_sections): Add ".reg-xstate".
6293 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6294 (i386_linux_core_read_xcr0): New.
6295 (i386_linux_core_read_description): Check and enable AVX target
6296 description.
6297 (i386_linux_init_abi): Set xsave_xcr0_offset.
6298 (_initialize_i386_linux_tdep): Call
6299 initialize_tdesc_i386_avx_linux.
6300
6301 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6302 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6303 (i386_linux_core_read_xcr0): New.
6304 (tdesc_i386_avx_linux): Likewise.
6305 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6306
6307 * i386-tdep.c: Include "i386-xstate.h" and
6308 "features/i386/i386-avx.c".
6309 (i386_ymm_names): New.
6310 (i386_ymmh_names): Likewise.
6311 (i386_ymmh_regnum_p): Likewise.
6312 (i386_ymm_regnum_p): Likewise.
6313 (i386_xmm_regnum_p): Likewise.
6314 (i386_register_name): Likewise.
6315 (i386_ymm_type): Likewise.
6316 (i386_supply_xstateregset): Likewise.
6317 (i386_collect_xstateregset): Likewise.
6318 (i386_sse_regnum_p): Removed.
6319 (i386_pseudo_register_name): Support pseudo YMM registers.
6320 (i386_pseudo_register_type): Likewise.
6321 (i386_pseudo_register_read): Likewise.
6322 (i386_pseudo_register_write): Likewise.
6323 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6324 %xmmN if AVX is available.
6325 (i386_regset_from_core_section): Support .reg-xstate section.
6326 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6327 (i386_process_record): Replace i386_sse_regnum_p with
6328 i386_xmm_regnum_p.
6329 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6330 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 6331 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
6332 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6333 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6334 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6335 Set ymm0_regnum.
6336 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6337
6338 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6339 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6340 i386_ymm_type.
6341 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6342 (I386_AVX_NUM_REGS): New.
6343 (i386_xmm_regnum_p): Likewise.
6344 (i386_ymm_regnum_p): Likewise.
6345 (i386_ymmh_regnum_p): Likewise.
6346
6347 * common/i386-xstate.h: New.
6348
98adf0f3
L
63492010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6350
6351 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6352
6353 * features/Makefile (WHICH): Add i386/i386-avx,
6354 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6355 (i386/i386-avx-expedite): New.
6356 (i386/i386-avx-linux-expedite): Likewise.
6357 (i386/x86-64-avx-expedite):Likewise.
6358 (i386/x86-64-avx-linux-expedite): Likewise.
6359 ($(outdir)/i386/i386-avx.dat): New dependency.
6360 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6361 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6362 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6363
6364 * features/i386/32bit-avx.xml: New.
6365 * features/i386/64bit-avx.xml: Likewise.
6366 * features/i386/i386-avx-linux.c: Likewise.
6367 * features/i386/i386-avx-linux.xml: Likewise.
6368 * features/i386/i386-avx.c: Likewise.
6369 * features/i386/i386-avx.xml: Likewise.
6370 * features/i386/x86-64-avx-linux.c: Likewise.
6371 * features/i386/x86-64-avx-linux.xml: Likewise.
6372 * features/i386/x86-64-avx.c: Likewise.
6373 * features/i386/x86-64-avx.xml: Likewise.
6374 * regformats/i386/i386-avx-linux.dat: Likewise.
6375 * regformats/i386/i386-avx.dat: Likewise.
6376 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6377 * regformats/i386/x86-64-avx.dat: Likewise.
6378
05159abe
DE
63792010-04-07 Doug Evans <dje@google.com>
6380
6381 * top.c (source_file_name): Make const char *.
6382 * top.h (source_file_name): Update.
6383 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6384 const char *.
6385 (script_from_file): Change `file' arg to const char *.
6386 * cli/cli-script.h (script_from_file): Update.
6387
96e39866
DE
63882010-04-06 Doug Evans <dje@google.com>
6389
6390 * cli/cli-cmds.c (source_command): Run cleanups.
6391
3149d8c1
SS
63922010-04-06 Stan Shebs <stan@codesourcery.com>
6393
6394 * defs.h (char_ptr): Move typedef here from...
6395 * ada-lang.c (char_ptr): Remove.
6396 * charset.c (char_ptr): Remove.
6397 * tracepoint.h (struct uploaded_string): Remove.
6398 (struct uploaded_tp): Use vectors for string arrays.
6399 * tracepoint.c (trace_save): Use vectors of actions.
6400 (parse_tracepoint_definition): Ditto.
6401 (get_uploaded_tp): Clear vectors.
6402 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6403 (next_cmd): Change to an int.
6404 (read_next_cmd): Use vector of command strings.
6405
4cc23ede
DE
64062010-04-06 Doug Evans <dje@google.com>
6407
6408 * top.h (source_script, cd_command): Delete.
6409 * main.c: #include "cli/cli-cmds.h"
6410
bd333fb7
KB
64112010-04-06 Kevin Buettner <kevinb@redhat.com>
6412
6413 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6414 type in bytes, not bits.
6415
ec8a089a
PM
64162010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6417
6418 * stabsread.c (define_symbol): Add support for char
6419 and string constants.
6420
2244ba2e
PM
64212010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6422
6423 Remove remaining "%ll" uses.
6424 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6425 hex_string call.
6426 * rs6000-nat.c (rs6000_ptrace64): Idem.
6427 * solib-pa64.c (pa64_current_sos): Idem.
6428 * solib-spu.c (spu_current_sos): Idem.
6429 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6430 plongest call.
6431 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6432 phex (VAR, 8) call.
6433 * sh64-tdep.c (sh64_show_media_regs): Idem.
6434
fce3c1f0
SS
64352010-04-05 Stan Shebs <stan@codesourcery.com>
6436
6437 * tracepoint.c: Include gdbcore.h.
6438 (tfile_xfer_partial): Return partial results, also try reading
6439 from executable.
6440 (tfile_has_all_memory): New function.
6441 (init_tfile_ops): Use it.
6442
626ea16d
SDJ
64432010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6444
6445 PR gdb/10736:
6446 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6447 the changes in data-directory.
6448 (init_sysinfo): Reload the syscall XML file if the data-directory
6449 has changed.
6450
1f7ccab2
JK
64512010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6452
6453 Code cleanup.
6454 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6455
d77f58be
SS
64562010-04-04 Stan Shebs <stan@codesourcery.com>
6457 Nathan Sidwell <nathan@codesourcery.com>
6458
6459 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6460 breakpoints printed.
6461 (is_hardware_watchpoint): Make argument const.
6462 (is_watchpoint): Ditto.
6463 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6464 use it everywhere.
6465 (breakpoints_info): Pass NULL to breakpoint_1.
6466 (maintenance_info_breakpoints): Ditto.
6467 (watchpoints_info): New function.
6468 (tracepoints_info): Use breakpoint_1 filter.
6469 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6470 (_initialize_breakpoint): Make "info watchpoints" its own command.
6471 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6472 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6473
af54718e
SS
64742010-04-04 Stan Shebs <stan@codesourcery.com>
6475
6476 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6477
74d1f91e
JK
64782010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6479
6480 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6481 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6482
91d91ceb
JK
64832010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6484
6485 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6486 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6487
60531b24
JK
64882010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6489
6490 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6491 code form.
6492
a3c4230a
HZ
64932010-04-02 Hui Zhu <teawater@gmail.com>
6494
6495 * i386-tdep.c (OT_DQUAD): New enum.
6496 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6497 SSE3, SSSE3 and SSE4.
6498
b15758fe
HZ
64992010-04-02 Hui Zhu <teawater@gmail.com>
6500
6501 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6502 "*addr = 0".
6503
afd02f27
PA
65042010-04-02 Pedro Alves <pedro@codesourcery.com>
6505
6506 * tracepoint.c (trace_dump_actions): New, factored out from
6507 trace_dump_command, and adjusted to recurse into while-stepping's
6508 action list.
6509 (trace_dump_command): Use it.
6510
5cea2a26
PA
65112010-04-02 Pedro Alves <pedro@codesourcery.com>
6512
6513 * breakpoint.h (struct counted_command_line): Moved definition to
6514 breakpoint.c, and forward declare.
6515 (breakpoint_commands): Declare.
6516 * breakpoint.c (struct counted_command_line): Moved here.
6517 (breakpoint_commands): New.
6518 * tracepoint.c (encode_actions): Use breakpoint_commands.
6519 * remote.c (remote_download_tracepoint): Ditto.
6520
7c47795c
L
65212010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6522
6523 * remote.c (remote_parse_stop_reply): Use hex_string instead
6524 of phex_nz for error.
6525
fff87407
SS
65262010-04-01 Stan Shebs <stan@codesourcery.com>
6527 Nathan Sidwell <nathan@codesourcery.com>
6528
6529 * tracepoint.h (enum actionline_type): Remove.
6530 (validate_actionline): Change return to void.
6531 * tracepoint.c (report_agent_reqs_errors): New function.
6532 (validate_actionline): Call it, change return to void, report errors
6533 more consistently.
6534 (collect_symbol): Call report_agent_reqs_errors.
6535 (encode_actions_1): Ditto.
6536 (encode_actions): Don't expect a result from validate_actionline.
6537
615bcdef
SS
65382010-04-01 Stan Shebs <stan@codesourcery.com>
6539
6540 * tracepoint.c (trace_start_command): Confirm if trace is running.
6541 (trace_stop_command): Error if trace not running.
6542
fe01d668
L
65432010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6544
6545 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6546 (AMD64_NUM_LOWER_BYTE_REGS): New.
6547 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6548 (amd64_pseudo_register_write): Likewise.
6549 (amd64_init_abi): Set num_byte_regs to 20.
6550
86b17b60
PA
65512010-04-01 Pedro Alves <pedro@codesourcery.com>
6552
6553 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6554 (prev_breakpoint_count): New.
6555 (set_breakpoint_count): Adjust.
6556 (rbreak_start_breakpoint_count): New.
6557 (start_rbreak_breakpoints): Adjust.
6558 (end_rbreak_breakpoints): Adjust.
6559 (struct commands_info) <arg>: New field.
6560 (do_map_commands_command): Tweak output to include breakpoint spec
6561 range.
6562 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6563 ARG was empty on entry. Set INFO's arg.
6564 (create_breakpoint): Adjust.
6565
6566 * NEWS: Clarify `commands' changes.
6567
2c58c0a9
PA
65682010-04-01 Pedro Alves <pedro@codesourcery.com>
6569
6570 * tracepoint.c: Include stack.h.
6571 (struct add_local_symbols_data): New.
6572 (do_collect_symbol): New.
6573 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6574 iterate_over_block_local_vars.
6575 * stack.c (print_block_frame_locals): Rewrite as ...
6576 (iterate_over_block_locals): ... this. Take a callback function
6577 pointer and generic data pointer, and call that instead of
6578 print_variable_and_value.
6579 (struct print_variable_and_value_data): New.
6580 (do_print_variable_and_value): New.
6581 (iterate_over_block_local_vars): New, abstracted out from
6582 print_frame_local_vars.
6583 (print_frame_local_vars): Rewrite using
6584 iterate_over_block_local_vars.
6585 (iterate_over_block_arg_vars): New, abstracted out from
6586 print_frame_arg_vars.
6587 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6588 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6589 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6590
d476da0e
RE
65912010-03-31 Richard Earnshaw <rearnsha@arm.com>
6592
6593 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 6594 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
6595 PC register.
6596
8072405b
JK
65972010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6598
6599 Fix crash on reading wrong function declaration DWARF.
6600 * dwarf2read.c (read_subroutine_type): New variable void_type.
6601 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6602 more close to their use.
6603
8bf6485c
SS
66042010-03-31 Stan Shebs <stan@codesourcery.com>
6605
6606 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 6607 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
6608 * tracepoint.c (save_trace_state_variables): New function.
6609 * tracepoint.h (save_trace_state_variables): Declare it.
6610
2ae2a0b7
PM
66112010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6612
1a161f72 6613 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 6614
86ffb506
KS
66152010-03-30 Keith Seitz <keiths@redhat.com>
6616
6617 * c-typeprint.c (c_type_print_args): Don't print "void"
6618 for java, regardless of whether it is TYPE_PROTOTYPED.
6619 Use the passed-in language instead of current_language.
6620 (c_type_print_varspec_suffix): Use current_language instead
6621 of assuming language_c.
6622 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6623 any return type specifier from the physname.
6624
956c2c8b
PA
66252010-03-30 Pedro Alves <pedro@codesourcery.com>
6626
6627 * tui/tui-interp.c (tui_is_toplevel): New.
6628 (tui_init): Set it.
6629 (tui_allowed_p): New.
6630 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6631 enabling it.
6632 * tui/tui.h (tui_allowed_p): Declare.
6633
98e5a990
TT
66342010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6635
6636 * serial.h: Include winsock2.h before windows.h.
6637
c8d5aac9
L
66382010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6639
6640 * NEWS: Mention xmlRegisters= in qSupported packet.
6641
6642 * i386-tdep.c: Include "remote.h".
6643 (_initialize_i386_tdep): Call register_remote_support_xml.
6644
6645 * remote.c (remote_support_xml): New.
6646 (register_remote_support_xml): Likewise.
6647 (remote_query_supported_append): Likewise.
6648 (remote_query_supported): Support remote_support_xml.
6649
6650 * remote.h (register_remote_support_xml): New.
6651
76a2b958
SS
66522010-03-29 Stan Shebs <stan@codesourcery.com>
6653
42e08e69
SS
6654 * tracepoint.c (trace_find_line_command): Remove dead code.
6655
409873ef
SS
6656 * tracepoint.h (struct uploaded_string): New struct.
6657 (struct uploaded_tp): New fields for source strings.
6658 * breakpoint.c (this_utp, next_cmd): New globals.
6659 (read_uploaded_action): New function.
6660 (create_tracepoint_from_upload): Fill in more parts
6661 of a tracepoint.
6662 * tracepoint.c (encode_source_string): New function.
6663 (trace_save): Write out source strings, fix error checks.
6664 (parse_tracepoint_definition): Add source string parsing.
6665 * remote.c (PACKET_TracepointSource): New packet type.
6666 (remote_download_command_source): New function.
6667 (remote_download_tracepoint): Download source pieces also.
6668 (_initialize_remote): Add packet config command.
6669
a0405854
SS
6670 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6671 expression handler.
6672
76a2b958
SS
6673 * tracepoint.c (start_tracing): Check tracepoints before sending
6674 commands to target, don't start if all tracepoints disabled.
6675
d350db38
PA
66762010-03-28 Pedro Alves <pedro@codesourcery.com>
6677
12f2d601 6678 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 6679
8b9b7ef8
SS
66802010-03-26 Stan Shebs <stan@codesourcery.com>
6681
6682 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6683
9766ced4
SS
66842010-03-26 Tom Tromey <tromey@redhat.com>
6685
6686 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6687
059acae7
UW
66882010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6689
6690 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6691 (skip_prologue_sal): Remove local definition.
6692 (resolve_sal_pc): Remove now unnecessary code.
6693 * linespec.c (minsym_found): Call skip_prologue_sal.
6694 * symtab.c (find_function_start_pc): Remove.
6695 (find_function_start_sal): Extract prologue skipping into ...
6696 (skip_prologue_sal): ... this new function. Handle code both
6697 with and without debug info. Respect SAL's explicit_pc and
6698 explicit_line flags. Inline old find_function_start_pc.
6699 * symtab.h (find_function_start_pc): Remove.
6700 (skip_prologue_sal): Add prototype.
6701
4a811a97
UW
67022010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6703
6704 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6705 for DW_TAG_imported_module children.
6706
907af001
UW
67072010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6708
6709 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6710 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6711 * completer.c (add_struct_fields): Fix inverted logic.
6712
dde2d684
UW
67132010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6714
6715 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6716
a609a0c8
PA
67172010-03-26 Pedro Alves <pedro@codesourcery.com>
6718
6719 * tracepoint.c (current_trace_status): Don't make sure error_desc
6720 is non-NULL here.
6721 (parse_trace_status): Release a previous error_desc string, and
6722 set it to NULL by default. If stop reason is tracepoint_error,
6723 make sure error_desc is not left NULL.
6724
610197fd
PA
67252010-03-26 Pedro Alves <pedro@codesourcery.com>
6726
6727 * tracepoint.c (trace_save): Remove X from tracepoint error
6728 description.
6729
99b5e152
PA
67302010-03-26 Pedro Alves <pedro@codesourcery.com>
6731
6732 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6733 the terror description. Don't expect an X prefix.
6734
6c28cbf2
SS
67352010-03-25 Stan Shebs <stan@codesourcery.com>
6736
6737 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6738 (struct trace_status): New field error_desc.
6739 * tracepoint.c (stop_reason_names): Add terror.
6740 (current_trace_status): Ensure non-NULL error description.
6741 (trace_status_command): Add error report.
6742 (trace_status_mi): Ditto.
6743 (trace_save): Add special case for error description.
6744 (parse_trace_status): Add case for errors.
6745
418835cc
KS
67462010-03-25 Keith Seitz <keiths@redhat.com>
6747
6748 * dwarf2read.c (read_subroutine_type): If the compilation unit
6749 language is Java, mark any formal parameter named "this" as
6750 artificial (GCC/43521).
6751 (dwarf2_name): Add special handling for Java constructors.
6752
aa7d318d
TT
67532010-03-25 Tom Tromey <tromey@redhat.com>
6754
6755 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6756 * infrun.c (handle_inferior_event): Change initialization of
6757 stop_stack_dummy.
6758 (handle_inferior_event): Change assignment to stop_stack_dummy.
6759 (normal_stop): Update use of stop_stack_dummy.
6760 (struct inferior_status) <stop_stack_dummy>: Change type.
6761 * inferior.h (stop_stack_dummy): Update.
6762 * infcmd.c (stop_stack_dummy): Change type.
6763 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6764 function.
6765 (call_function_by_hand): Call set_std_terminate_breakpoint.
6766 Rewrite std::terminate handling.
6767 * breakpoint.h (enum bptype) <bp_std_terminate,
6768 bp_std_terminate_master>: New.
6769 (enum stop_stack_kind): New.
6770 (struct bpstat_what) <call_dummy>: Change type.
6771 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6772 Declare.
6773 * breakpoint.c (create_std_terminate_master_breakpoint): New
6774 function.
6775 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6776 Call create_std_terminate_master_breakpoint.
6777 (print_it_typical): Handle new breakpoint kinds.
6778 (bpstat_stop_status): Handle bp_std_terminate_master.
6779 (bpstat_what): Correctly set call_dummy field. Handle
6780 bp_std_terminate_master and bp_std_terminate.
6781 (print_one_breakpoint_location): Update.
6782 (allocate_bp_location): Update.
6783 (set_std_terminate_breakpoint): New function.
6784 (delete_std_terminate_breakpoint): Likewise.
6785 (create_thread_event_breakpoint): Update.
6786 (delete_command): Update.
6787 (breakpoint_re_set_one): Update.
6788 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6789
82ccf5a5
JK
67902010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6791
6792 * symfile.c (build_section_addr_info_from_bfd): New.
6793 (build_section_addr_info_from_objfile): Base it on
6794 build_section_addr_info_from_bfd.
6795 (addrs_section_compar, addrs_section_sort): New.
6796 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6797 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6798 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6799
737c4c52
MS
68002010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6801
8d95cc3b 6802 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
6803 Remove unused local variable.
6804
95a42b64
TT
68052010-03-24 Tom Tromey <tromey@redhat.com>
6806
6807 PR breakpoints/9352:
6808 * NEWS: Mention changes to `commands' and `rbreak'.
6809 * symtab.c (do_end_rbreak_breakpoints): New function.
6810 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6811 end_rbreak_breakpoints.
6812 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6813 (set_breakpoint_count): Likewise. Clear last_was_multi.
6814 (multi_start, multi_end, last_was_multi): New globals.
6815 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6816 functions.
6817 (struct commands_info): New
6818 (do_map_commands_command): New function.
6819 (commands_command_1): New function.
6820 (commands_command): Use it.
6821 (commands_from_control_command): Likewise.
6822 (do_delete_breakpoint): New function.
6823 (delete_command): Use it.
6824 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6825 (do_map_disable_breakpoint): New function.
6826 (disable_command): Use it.
6827 (do_map_enable_breakpoint): New function.
6828 (enable_command): Use it.
6829 (enable_once_breakpoint): Add argument.
6830 (enable_once_command): Update.
6831 (enable_delete_breakpoint): Add argument.
6832 (enable_delete_command): Update.
6833 (break_command_really): Set last_was_multi when needed.
6834 (check_tracepoint_command): Fix formatting.
6835 (validate_commands_for_breakpoint): New function.
6836 (breakpoint_set_commands): Use it.
6837 (tracepoint_save_command): Update.
6838 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6839 Declare.
6840
9add0f1b
TT
68412010-03-24 Tom Tromey <tromey@redhat.com>
6842
6843 * breakpoint.h (struct counted_command_line): New struct.
6844 (struct breakpoint) <commands>: Change type.
6845 (struct bpstats) <commands>: Change type.
6846 <commands_left>: New field.
6847 * breakpoint.c (alloc_counted_command_line): New function.
6848 (incref_counted_command_line): Likewise.
6849 (decref_counted_command_line): Likewise.
6850 (do_cleanup_counted_command_line): Likewise.
6851 (make_cleanup_decref_counted_command_line): Likewise.
6852 (breakpoint_set_commands): Use decref_counted_command_line and
6853 alloc_counted_command_line.
6854 (commands_command): Don't error if breakpoint commands are
6855 executing.
6856 (commands_from_control_command): Likewise.
6857 (bpstat_free): Update.
6858 (bpstat_copy): Likewise.
6859 (bpstat_clear_actions): Likewise.
6860 (bpstat_do_actions_1): Likewise.
6861 (bpstat_stop_status): Likewise.
6862 (print_one_breakpoint_location): Likewise.
6863 (delete_breakpoint): Likewise.
6864 (bpstat_alloc): Initialize new field.
6865 (tracepoint_save_command): Update.
6866 * tracepoint.c (encode_actions): Update.
6867 (trace_dump_command): Update.
6868
a6c727b2
DJ
68692010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6870
6871 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6872 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6873 (read_structure_type): For RealView, set TYPE_STUB on structures with
6874 no byte size and no children.
6875 (read_subroutine_type): Mark functions as prototyped by default.
6876 * symtab.c (producer_is_realview): New function.
6877 * symtab.h (expand_line_sal): Fix declaration formatting.
6878 (producer_is_realview): Declare.
6879
0d39a070
DJ
68802010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6881
6882 * arm-tdep.c (skip_prologue_function): New function.
6883 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6884 (thumb_analyze_prologue): Document return value. Recognize more
6885 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6886 Add debug output.
6887 (arm_skip_prologue): Remove call dummy check. Check the prologue
6888 for non-GNU compilers.
6889 (arm_instruction_changes_pc): New function.
6890 (arm_analyze_prologue): New function, broken out from
6891 arm_scan_prologue. Recognize more ARM instructions and skippable
6892 calls. Update comments. Handle NULL cache. Return the address
6893 of the first unrecognized instruction. Do not skip past other
6894 instructions which change control flow. Add debug output.
6895 (arm_scan_prologue): Use arm_analyze_prologue.
6896 (ARM_PC_32): Delete.
6897 (shifted_reg_val): Simplify ARM_PC_32 check.
6898
4baf5cf4
VP
68992010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6900
6901 * tracepoint.c (tvariables_info_1): Actually compute
6902 the number of rows in the result.
6903
4a5e7a5b
PA
69042010-03-24 Pedro Alves <pedro@codesourcery.com>
6905
6906 * remote.c (crc32): Constify `buf' parameter.
6907 (remote_verify_memory): New, abstracted out from...
6908 (compare_sections_command): ... this. Remove hardcoded target
6909 checks.
6910 (init_remote_ops): Install remote_verify_memory.
6911 * target.c (target_verify_memory): New.
6912 * target.h (struct target_ops) <to_verify_memory>: New field.
6913 (target_verify_memory): Declare.
6914
011aacb0
VP
69152010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6916
6917 Implement -trace-save.
6918
6919 * mi-cmds.h (mi_cmds_trace_save): Declare.
6920 * mi-cmds.c (mi_cmds): Register -trace-save.
6921 * mi/mi-main.c (mi_cmd_trace_save): New.
6922 * remote.c (remote_save_trace_data): Take const parameter.
6923 * target.h (struct target_ops::to_save_trace_data): Take
6924 const parameter.
6925 * target.c (update_current_target): Adjust to the above.
6926 * tracepoint.c (trave_save): New, extracted from
6927 (trace_save_command): ...this.
6928 (tfile_trace_find): Remove message that is unnecessary now
6929 that 'tfind' reports found frame.
6930 * tracepoint.h (trace_save): Declare.
6931
f197e0f1
VP
69322010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6933
6934 Implement -trace-find.
6935
6936 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6937 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6938 * mi/mi-main.c (mi_cmd_trace_find): New.
6939 * target.h (struct target_ops): Document to_trace_find.
6940 * tracepoint.h (tfind_1): Declare.
6941 * tracepoint.c (finish_tfind_command): Rename to...
6942 (tfind_1): ...this.
6943 * remote.c (remote_trace_find): Return -1 if target say
6944 there's no frame. Improve error diagnostics.
6945
40e1c229
VP
69462010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6947
6948 -trace-define-variable and -trace-list-variables.
6949
6950 * tracepoint.c (create_trace_state_variable): Make
6951 private copy of name, as opposed to assuming the
6952 pointer lives forever.
6953 (tvariables_info_1): New.
6954 (tvariables_info): Use the above.
6955 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6956 Declare.
6957 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6958 and -trace-list-variables.
6959 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6960 (mi_cmd_trace_list_variables): New.
6961 * mi/mi-main.c (mi_cmd_trace_define_variable)
6962 (mi_cmd_trace_list_variables): New.
6963
9b4c786c
VP
69642010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6965
6966 Implement -break-passcount.
6967
6968 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6969 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6970 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6971
f224b49d
VP
69722010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6973
6974 -trace-start/-trace-end/-trace-status.
6975
6976 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6977 and -trace-stop.
6978 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6979 (mi_cmd_trace_stop): Declare.
6980 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6981 (mi_cmd_trace_stop): New.
6982 * tracepoint.c (start_tracing): New, extracted from...
6983 (trace_start_command): ...this.
6984 (trace_status_mi): New.
6985 * tracepoint.h (struct trace_status): Document
6986 stopping_tracepoint.
6987 (start_tracing, stop_tracing, trace_status_mi): Declare.
6988
6534d786
VP
69892010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6990
6991 Implement creating tracepoints with -break-insert.
6992
6993 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6994 to mean that tracepoint should be created.
6995
51661e93
VP
69962010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6997
6998 * breakpoint.c (check_no_tracepoint_commands): Use
6999 current spelling of 'teval'.
7000
a7bdde9e
VP
70012010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7002
7003 Unify actions and commands
7004
7005 * defs.h (read_command_lines, read_command_lines_1): New
7006 parameters validator and closure.
7007 * tracepoint.h (struct action_line): Remove.
7008 * breakpoint.h (struct breakpoint): Remove the 'actions'
7009 field.
7010 * defs.h (enum command_control_type): New value
7011 while_stepping_control.
7012 (struct command_line): Add comments.
7013 * breakpoint.c (breakoint_is_tracepoint): New.
7014 (breakpoint_set_commands): For tracepoints,
7015 verify the commands are permissible.
7016 (check_tracepoint_commands): New.
7017 (commands_command): Require that each new line is validated using
7018 check_tracepoint_command, if we set commands for a tracepoint.
7019 (create_tracepoint_from_upload): Likewise.
7020 (print_one_breakpoint_location): Remove the code to print
7021 actions specifically.
7022 (tracepoint_save_command): Relay to print_command_lines.
7023 * cli/cli-script.c (process_next_line): New parameters validator
7024 and closure. Handle 'while-stepping'. Call validator if not null.
7025 (read_command_lines, read_command_lines1): Likewise.
7026 (recurse_read_control_structure): New parameters validator and
7027 closure. Handle while_stepping_control.
7028 (print_command_lines): Handle while-stepping.
7029 (get_command_line, define_command, document_command): Adjust.
7030 * remote.c (remote_download_tracepoint): Adjust.
7031 * tracepoint.c (make_cleanup_free_actions, read_actions)
7032 (free_actions, do_free_actions_cleanup): Remove.
7033 (trace_actions_command): Use read_command_lines.
7034 (validate_actionline): Use error in one place.
7035 (encode_actions_1): New, extracted from...
7036 (encode_actions): ...this. Also use cleanups for exception
7037 safety.
7038 (trace_dump_command): Adjust.
7039 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7040 it's tracepoint.
7041
64e3cf3d
MF
70422010-03-23 Mike Frysinger <vapier@gentoo.org>
7043
7044 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7045
52e9fde8
SS
70462010-03-22 Stan Shebs <stan@codesourcery.com>
7047
7048 * value.c (value_static_field): Be lazy about the field's value.
7049
508ccb1f
TT
70502010-03-22 Reid Kleckner <reid@kleckner.net>
7051
7052 PR gdb/11094
7053 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7054 bp_jit_event.
7055 (disable_breakpoints_in_shlibs): Likewise.
7056
acebe513
UW
70572010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7058
7059 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7060 GCC 4.1 debug info generation (GCC PR c++/28460).
7061 (determine_prefix): Likewise.
7062
957b8b5a
DJ
70632010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7064
7065 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7066 get_current_arch.
7067 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7068
3b11a015
SS
70692010-03-19 Stan Shebs <stan@codesourcery.com>
7070
7071 * ax-gdb.c (gen_fetch): Handle bool.
7072 (gen_usual_unary): Ditto.
7073 (gen_cast): Ditto.
7074 (gen_equal): New function.
7075 (gen_less): New function.
7076 (gen_expr_binop_rest): Call them, also return integer type from
7077 logical operations.
7078 (gen_expr): Ditto.
7079
20781792
TT
70802010-03-19 Tom Tromey <tromey@redhat.com>
7081
7082 * jv-lang.c (jv_dynamics_objfile_data_key)
7083 (jv_type_objfile_data_key): New globals.
7084 (class_symtab): Move earlier.
7085 (jv_per_objfile_free): New function.
7086 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7087 parameter.
7088 Remove ancient #if 1.
7089 (add_class_symbol): Remove redundant declaration.
7090 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7091 (java_link_class_type): Mark as static. Update.
7092 (jv_clear_object_type): New function.
7093 (set_java_object_type): Likewise.
7094 (get_java_object_type): Use set_java_object_type.
7095 (is_object_type): Likewise.
7096 (_initialize_java_language): Register new objfile keys.
7097 (get_java_class_symtab): Add 'gdbarch' parameter.
7098 (add_class_symtab_symbol): Update.
7099 (type_from_class): Update.
7100
cf3e25ca
SS
71012010-03-19 Stan Shebs <stan@codesourcery.com>
7102
8d95cc3b 7103 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 7104
f1ae44c9 71052010-03-18 Joel Brobecker <brobecker@adacore.com>
7106
7107 GDB 7.1 released.
7108
4daf5ac0
SS
71092010-03-18 Stan Shebs <stan@codesourcery.com>
7110 Pedro Alves <pedro@codesourcery.com>
7111
7112 * target.h (struct target_ops): New method
7113 to_set_circular_trace_buffer.
7114 (target_set_circular_trace_buffer): New macro.
7115 * target.c (update_current_target): Add
7116 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7117 default behavior.
7118 * remote.c (remote_set_circular_trace_buffer): New function.
7119 (init_remote_ops): Add it to vector.
7120 * tracepoint.h (struct trace_status): New field traceframes_created,
7121 change buffer_size and buffer_free to int.
7122 * tracepoint.c (circular_trace_buffer): New global.
7123 (start_tracing): Send values of disconnected tracing and circular
7124 trace buffer settings.
7125 (set_circular_trace_buffer): New function.
7126 (parse_trace_state): Handle total space and frames created.
7127 (trace_status_command): Display total space and total frames
7128 created.
7129 (trace_save): Write out new status values.
7130 (parse_trace_status): Set traceframe_count, traceframes_created,
7131 buffer_free and buffer_size to -1 by default.
7132 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7133 * NEWS: Mention the circular trace buffer option.
7134
40c549d6
TT
71352010-03-18 Tom Tromey <tromey@redhat.com>
7136
7137 * infcmd.c (finish_command_continuation): Wrap print_return_value
7138 in TRY_CATCH.
7139
e8d05480
JB
71402010-03-18 Joel Brobecker <brobecker@adacore.com>
7141
7142 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7143 DIE has a name before creating the associated partial symbol.
7144 (read_func_scope): Emit a complaint if the subprogram does not
7145 have a name or when we can't extract the subprogram PC bounds.
7146
441b986a
UW
71472010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7148
7149 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7150 instead of selected frame architecture.
7151
4247603b
PA
71522010-03-18 Pedro Alves <pedro@codesourcery.com>
7153
7154 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7155 a valid selected thread, and that it is not running.
7156 (advance_command): Ditto.
7157 (finish_command): Ditto.
7158
400c6af0
SS
71592010-03-17 Stan Shebs <stan@codesourcery.com>
7160
3a96536b
SS
7161 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7162
573cda03
SS
7163 * infcall.c: Include tracepoint.h.
7164 (call_function_by_hand): Disallow calls in tfind mode.
7165 * infcmd.c: Include tracepoint.h.
7166 (ensure_not_tfind_mode): New function.
7167 (continue_1): Call it.
7168 (step_1) Ditto.
7169 (jump_command): Ditto.
7170 (signal_command): Ditto.
7171 (advance_command): Ditto.
7172 (until_command): Ditto.
7173 (finish_command): Ditto.
7174 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7175
400c6af0
SS
7176 * ax-gdb.h (struct axs_value): New field optimized_out.
7177 (gen_trace_for_var): Add gdbarch argument.
7178 * ax-gdb.c (gen_trace_static_fields): New function.
7179 (gen_traced_pop): Call it, add gdbarch argument.
7180 (gen_trace_for_expr): Update call to it.
7181 (gen_trace_for_var): Ditto, and report optimized-out variables.
7182 (gen_struct_ref_recursive): Check for optimized-out value.
7183 (gen_struct_elt_for_reference): Ditto.
7184 (gen_static_field): Pass gdbarch instead of expression, assume
7185 optimization if field not found.
7186 (gen_var_ref): Set the optimized_out flag.
7187 (gen_expr): Error on optimized-out variable.
7188 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7189 expressions, skip optimized-out variables with computed locations.
7190 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7191 erroring out if location expression missing.
7192 (loclist_tracepoint_var_ref): Don't error out here.
7193
a3b2a86b
TT
71942010-03-17 Tom Tromey <tromey@redhat.com>
7195
7196 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7197 DWARF data is available.
7198
38963c97
DJ
71992010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7200
7201 * symfile.c (generic_load): Reset breakpoints after loading.
7202
ddabfc73
TT
72032010-03-17 Tom Tromey <tromey@redhat.com>
7204
7205 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7206
d8c09fb5
JK
72072010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7208
7209 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7210 create_breakpoint call, adjust the parameters.
7211
bbb0eef6
JK
72122010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7213 Chandru <chandru@in.ibm.com>
7214
7215 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7216 * valarith.c (value_subscripted_rvalue): Suppress error if
7217 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7218
46956e39
HZ
72192010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7220
7221 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7222
b8d088ac
JB
72232010-03-16 Joel Brobecker <brobecker@adacore.com>
7224
7225 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7226 before doing the associated thread switch.
7227
322be962
DJ
72282010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7229
7230 * MAINTAINERS: Update my email address.
7231
8cdf0e15
VP
72322010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7233
7234 Simplify MI breakpoint setting.
7235
7236 * breakpoint.c (break_command_really): Make nonstatic and
7237 rename to...
7238 (create_breakpoint): ...this. Rename prior function by this name
7239 to...
7240 (create_breakpoint_sal): ...this.
7241 (create_breakpoints): Rename to...
7242 (create_breakpoints_sal): ...this.
7243 (set_breakpoint): Remove.
7244 * breakpoint.h: Adjust to above changes.
7245 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7246
b6e7192f
SS
72472010-03-15 Stan Shebs <stan@codesourcery.com>
7248
7249 * ax-gdb.c: Include cp-support.h.
7250 (find_field): Remove.
7251 (gen_primitive_field): New function.
7252 (gen_struct_ref_recursive): New function.
7253 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7254 of find_field.
7255 (gen_static_field): New function.
7256 (gen_struct_elt_for_reference): New.
7257 (gen_namespace_elt): New.
7258 (gen_maybe_namespace_elt): New.
7259 (gen_aggregate_elt_ref): New.
7260 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7261
1054b214
TT
72622010-03-15 Tom Tromey <tromey@redhat.com>
7263
7264 * dwarf2read.c (die_needs_namespace): Also return 0 for
7265 DW_TAG_subprogram.
7266
13387711
SW
72672010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7268
7269 PR c++/7936:
7270 * cp-support.h: Added char *declaration element to using_direct
7271 data struct.
7272 (cp_add_using): Added char *declaration argument.
7273 (cp_add_using_directive): Ditto.
7274 (cp_lookup_symbol_imports): made extern.
7275 * cp-namespace.c: Updated with the above changes.
7276 * dwarf2read.c (read_import_statement): Ditto.
7277 (read_namespace): Ditto.
7278 (read_import_statement): Support import declarations.
7279 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7280 declarations.
7281 Added support for 'declaration_only' search.
7282 (cp_lookup_symbol_namespace): Attempt to search for the name as
7283 is before consideration of imports.
7284 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7285 search at every block level search.
7286 Now takes language argument.
7287 (lookup_symbol_aux): Updated.
7288
6e31430b
TT
72892010-03-15 Tom Tromey <tromey@redhat.com>
7290
7291 * c-exp.y (name_not_typename): Add 'operator' clause.
7292
4dea3bb7 72932010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
7294
7295 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7296 * configure: Regenerate.
7297
4d9743af
JK
72982010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7299
7300 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7301 and ".sdynbss". Update the comment.
7302
f75150fe
JZ
73032010-03-15 Jie Zhang <jie@codesourcery.com>
7304
7305 * MAINTAINERS: Update my email address.
7306
3c13bc11
DJ
73072010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7308
7309 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7310
43484f03
DJ
73112010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7312
7313 * charset.c [USE_WIN32API]: Include <windows.h>.
7314 (_initialize_charset): Correct type of w32_host_default_charset.
7315
5f25d77d
PA
73162010-03-14 Pedro Alves <pedro@codesourcery.com>
7317
7318 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7319
1c809c68
TT
73202010-03-12 Tom Tromey <tromey@redhat.com>
7321
7322 PR c++/9708:
7323 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7324 in a lexical block does not need a namespace.
7325 (new_symbol) <DW_TAG_variable>: Put extern variables on
7326 list_in_scope in all cases.
7327
948103cf
SS
73282010-03-12 Stan Shebs <stan@codesourcery.com>
7329
7330 * ax-gdb.c (gen_expr): Add shift expressions.
7331 (gen_expr_binop_rest): Ditto.
7332
00ae8fef
SW
73332010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7334
7335 * buildsym.c (finish_block): Reset using_directives pointer
7336 after block initialization.
7337
9cad29ac
L
73382010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7339
7340 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7341 * i386-tdep.c (i386_word_names): Likewise.
7342
2f4d8875
PA
73432010-03-12 Pedro Alves <pedro@codesourcery.com>
7344
7345 * target.c (memory_xfer_partial): Don't use the stack cache if
7346 inspecting trace frames.
7347 * tracepoint.c (finish_tfind_command): Invalidate the target
7348 dcache.
7349
ccf26247
JK
73502010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7351
7352 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7353 for the PIC displacement, print also the displacement value.
7354 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7355
477c84a7
KB
73562010-03-10 Kevin Buettner <kevinb@redhat.com>
7357
7358 * remote-mips.c (close_ports, mips_initialize_cleanups)
7359 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7360 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7361 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7362 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7363 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7364 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7365 comments describing each of these functions.
7366 (mips_enter_debug, mips_exit_debug, common_open)
7367 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7368 blank line after the comment describing the function.
7369
01c30d6e
JK
73702010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7371
7372 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7373 parameter displacementp. Update comment.
7374 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7375 element exists. Return if svr4_exec_displacement was not successful.
7376 Update comment.
7377
09919ac2
JK
73782010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7379 Daniel Jacobowitz <dan@codesourcery.com>
7380
7381 * solib-svr4.c (read_program_header): Support type == -1 to read
7382 all program headers.
7383 (read_program_headers_from_bfd): New function.
7384 (svr4_static_exec_displacement): Remove and move the comment ...
7385 (svr4_exec_displacement): ... here. Remove variable found. New
7386 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7387 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7388 targets using read_program_headers_from_bfd. Remove the call of
7389 svr4_static_exec_displacement.
7390
d146bf1e
TT
73912010-03-10 Tom Tromey <tromey@redhat.com>
7392
7393 * dwarf2read.c (struct pubnames_header): Remove.
7394 (_PUBNAMES_HEADER): Remove.
7395 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7396 (struct aranges_header): Remove.
7397 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7398 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7399 (PUBNAMES_SECTION): Remove.
7400 (ARANGES_SECTION): Remove.
7401 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7402 (dwarf2_build_psymtabs): Remove dead code.
7403 (dwarf2_build_psymtabs_easy): Remove.
7404
be391dca
TT
74052010-03-10 Tom Tromey <tromey@redhat.com>
7406
7407 * elfread.c (elf_symfile_read): Don't call
7408 dwarf2_build_frame_info.
7409 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7410 (struct dwarf2_per_objfile) <objfile>: New field.
7411 (dwarf2_has_info): Now idempotent. Set objfile field.
7412 (dwarf2_read_section): Check and set readin field. Call
7413 posix_madvise.
7414 (dwarf2_build_psymtabs): Don't read all sections.
7415 (read_type_comp_unit_head): Read types section.
7416 (create_debug_types_hash_table): Likewise.
7417 (init_cu_die_reader): Add asserts.
7418 (process_type_comp_unit): Add assert.
7419 (dwarf2_build_psymtabs_hard): Read info section.
7420 (load_partial_comp_unit): Add assert.
7421 (create_all_comp_units): Read info section.
7422 (load_full_comp_unit): Likewise.
7423 (dwarf2_ranges_read): Read ranges section.
7424 (dwarf2_record_block_ranges): Add assert.
7425 (dwarf2_read_abbrevs): Read abbrev section.
7426 (read_indirect_string): Read str section.
7427 (dwarf_decode_line_header): Read line section.
7428 (read_signatured_type_at_offset): Read types section.
7429 (dwarf_decode_macros): Read macinfo section.
7430 (dwarf2_symbol_mark_computed): Read loc section.
7431 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7432 dwarf2_build_frame_info.
7433 (dwarf2_build_frame_info): Unconditionally set
7434 dwarf2_frame_objfile_data on the objfile.
7435 * configure.ac: Check for posix_madvise.
7436 * config.in, configure: Rebuild.
7437
ccefe4c4
TT
74382010-03-10 Tom Tromey <tromey@redhat.com>
7439
e38df1d0
TT
7440 * xcoffread.c (xcoff_start_psymtab): Update.
7441 (xcoff_end_psymtab): Update.
7442 * psymtab.c (allocate_psymtab): Remove dead code.
7443 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7444 void*.
7445 * mdebugread.c (parse_partial_symbols): Update.
7446 (new_psymtab): Likewise.
7447 * dwarf2read.c (process_psymtab_comp_unit): Update.
7448 (psymtab_to_symtab_1): Update.
7449 * dbxread.c (start_psymtab): Update.
7450 (end_psymtab): Likewise.
7451
be391dca 74522010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 7453
ccefe4c4
TT
7454 * xcoffread.c: Include psymtab.h.
7455 (xcoff_sym_fns): Update.
7456 * symtab.h (struct partial_symbol): Remove.
7457 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7458 (struct partial_symtab): Remove.
7459 (PSYMTAB_TO_SYMTAB): Remove.
7460 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7461 (find_pc_sect_psymtab): Remove.
7462 (find_pc_sect_symtab_via_partial): Declare.
7463 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7464 (find_main_psymtab): Remove.
7465 (find_main_filename): Declare.
7466 (fixup_psymbol_section): Remove.
7467 (fixup_section): Declare.
7468 * symtab.c: Include psymtab.h.
7469 (lookup_symtab): Use lookup_symtab method.
7470 (lookup_partial_symtab): Remove.
7471 (find_pc_sect_psymtab_closer): Remove.
7472 (find_pc_sect_psymtab): Remove.
7473 (find_pc_sect_symtab_via_partial): New function.
7474 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7475 (fixup_section): No longer static.
7476 (fixup_psymbol_section): Remove.
7477 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7478 (lookup_global_symbol_from_objfile): Likewise.
7479 (lookup_symbol_aux_psymtabs): Remove.
7480 (lookup_symbol_aux_quick): New function.
7481 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7482 (lookup_partial_symbol): Remove.
7483 (basic_lookup_transparent_type_quick): New function.
7484 (basic_lookup_transparent_type): Use it.
7485 (find_main_psymtab): Remove.
7486 (find_main_filename): New function.
7487 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7488 (find_line_symtab): Use expand_symtabs_with_filename method.
7489 (output_partial_symbol_filename): New function.
7490 (sources_info): Use map_partial_symbol_filenames.
7491 (struct search_symbols_data): New type.
7492 (search_symbols_file_matches): New function.
7493 (search_symbols_name_matches): Likewise.
7494 (search_symbols): Use expand_symtabs_matching method.
7495 (struct add_name_data): Rename from add_macro_name_data.
7496 (add_macro_name): Update.
7497 (add_partial_symbol_name): New function.
7498 (default_make_symbol_completion_list): Use
7499 map_partial_symbol_names.
7500 (struct add_partial_symbol_name): New type.
7501 (maybe_add_partial_symtab_filename): New function.
7502 (make_source_files_completion_list): Use
7503 map_partial_symbol_filenames.
7504 (expand_line_sal): Use expand_symtabs_with_filename method.
7505 * symmisc.c: Include psymtab.h.
7506 (print_objfile_statistics): Use print_stats method.
7507 (dump_objfile): Use dump method.
7508 (dump_psymtab, maintenance_print_psymbols)
7509 (maintenance_info_psymtabs, maintenance_check_symtabs)
7510 (extend_psymbol_list): Remove.
7511 * symfile.h (struct quick_symbol_functions): New struct.
7512 (struct sym_fns) <qf>: New field.
7513 (sort_pst_symbols): Remove.
7514 (increment_reading_symtab): Declare.
7515 * symfile.c: Include psymtab.h.
7516 (compare_psymbols, sort_pst_symbols): Remove.
7517 (psymtab_to_symtab): Remove.
7518 (increment_reading_symtab): New function.
7519 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7520 method.
7521 (set_initial_language): Use find_main_filename.
7522 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7523 (free_named_symtabs): Remove unused code.
7524 (start_psymtab_common, add_psymbol_to_bcache)
7525 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7526 Remove.
7527 * stack.c: Include psymtab.h, symfile.h.
7528 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7529 * source.h (psymtab_to_fullname): Don't declare.
7530 * source.c: Include psymtab.h.
7531 (select_source_symtab): Use find_last_source_symtab method.
7532 (forget_cached_source_info): Use forget_cached_source_info
7533 method.
7534 (find_and_open_source): No longer static.
7535 (psymtab_to_fullname): Remove.
7536 * somread.c: Include psymtab.h.
7537 (som_sym_fns): Update.
7538 * psympriv.h: New file.
7539 * psymtab.h: New file.
7540 * psymtab.c: New file.
7541 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7542 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7543 * objfiles.c: Include psymtab.h.
7544 (objfile_relocate1): Use relocate method.
7545 (objfile_has_partial_symbols): Use has_symbols method.
7546 * mipsread.c: Include psymtab.h.
7547 (ecoff_sym_fns): Update.
7548 * mi/mi-cmd-file.c: Include psymtab.h.
7549 (print_partial_file_name): New function.
7550 (mi_cmd_file_list_exec_source_files): Use
7551 map_partial_symbol_filenames.
7552 * mdebugread.c: Include psympriv.h.
7553 * machoread.c: Include psympriv.h.
7554 (macho_sym_fns): Update.
7555 * m2-exp.y (yylex): Use lookup_symtab.
7556 * elfread.c: Include psympriv.h.
7557 (elf_sym_fns): Update.
7558 * dwarf2read.c: Include psympriv.h.
7559 * dbxread.c: Include psympriv.h.
7560 (aout_sym_fns): Update.
7561 * cp-support.c: Include psymtab.h.
7562 (read_in_psymtabs): Remove.
7563 (make_symbol_overload_list_qualified): Use
7564 expand_symtabs_for_function method.
7565 * coffread.c: Include psympriv.h.
7566 (coff_sym_fns): Update.
7567 * blockframe.c: Include psymtab.h.
7568 (find_pc_partial_function): Use find_pc_sect_symtab method.
7569 * ada-lang.h (ada_update_initial_language): Update.
7570 * ada-lang.c: Include psymtab.h.
7571 (ada_update_initial_language): Remove 'main_pst' argument.
7572 (ada_lookup_partial_symbol): Remove.
7573 (struct ada_psym_data): New type.
7574 (ada_add_psyms): New function.
7575 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7576 (struct add_partial_datum): New type.
7577 (ada_add_partial_symbol_completions): New function.
7578 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7579 (ada_exception_support_info_sniffer): Update.
7580 * Makefile.in (SFILES): Add psymtab.c.
7581 (COMMON_OBS): Add psymtab.o.
7582 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7583
7d8500b7
PM
75842010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7585
7586 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7587
c0cc3a76
SW
75882010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7589
7590 PR C++/11236:
7591 * cp-namespace.c (cp_add_using): Deleted.
7592 (cp_add_using_directive): Use obstack allocations.
7593 Merged the function cp_add_using into this one.
7594 Added 'struct obstack *' argument.
7595 (cp_scan_for_anonymous_namespaces): Updated.
7596 * cp-support.h: Updated.
7597 * dwarf2read.c (read_import_statement): Updated.
7598 (read_namespace): Updated.
7599
452fa064
CF
76002010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7601
7602 * windows-nat.c (cygwin_conv_path): Remove old macro.
7603
60e1c644
PA
76042010-03-10 Pedro Alves <pedro@codesourcery.com>
7605
7606 * breakpoint.c (condition_command): Handle watchpoint conditions.
7607 (is_hardware_watchpoint): Add comment.
7608 (is_watchpoint): New.
7609 (update_watchpoint): Don't reparse the watchpoint's condition
7610 unless necessary.
7611 (WP_IGNORE): New.
7612 (watchpoint_check): Use it.
7613 (bpstat_check_watchpoint): Handle it.
7614 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7615 conditions in a frame where it makes sense.
7616 (watch_command_1): Store the innermost block of the condition
7617 expression.
7618 (delete_breakpoint): Delete the watchpoint condition expression.
7619 * breakpoint.h (struct bp_location) <cond>: Update comment.
7620 (struct breakpoint): New field `cond_exp_valid_block'.
7621
af6b7be1
JB
76222010-03-09 Joel Brobecker <brobecker@adacore.com>
7623
7624 Adjust handling of Ada DIEs after dwarf2_physname patch.
7625 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7626
60c5c021
CF
76272010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7628 Pierre Muller <muller@ics.u-strasbg.fr>
7629
7630 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7631 from/to posix/win32.
7632 (windows_make_so): Use non-Cygwin 1.7 specific function.
7633 (windows_create_inferior): Make sure that cygallargs points to
7634 original args in non Cygwin 1.7. case.
7635
60a1502a
MS
76362010-03-09 Michael Snyder <msnyder@vmware.com>
7637
7638 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7639 after target_read_memory to get host byte order.
7640 (i386_process_record): Ditto.
7641
94af9270
KS
76422010-03-09 Keith Seitz <keiths@redhat.com>
7643
7644 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7645 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7646 print out const or volatile qualifiers, too.
7647 (c_type_print_args): Add parameters show_artificial and language.
7648 Skip artificial parameters when requested.
7649 Use the appropriate language printer.
7650 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7651 parameters and pass language_c.
7652 * dwarf2read.c (die_list): New file global.
7653 (struct partial_die_info): Update comments for name field.
7654 (pdi_needs_namespace): Renamed to ...
7655 (die_needs_namespace): ... this. Rewrite.
7656 (dwarf2_linkage_name): Remove.
7657 (add_partial_symbol): Do not predicate the call to
7658 partial_die_full_name based on pdi_needs_namespace.
7659 Remove call to cp_check_possible_namespace_symbols and associated
7660 outdated comments.
7661 (guess_structure_name): Do not inspect child subprogram DIEs.
7662 (dwarf2_fullname): Update comments.
7663 Use die_needs_namespace to assist in computing the name.
7664 (read_func_scope): Use dwarf2_name to get the DIE's name.
7665 Use dwarf2_physname to get the "linkage name" of the DIE.
7666 (dwarf2_add_member_field): Use dwarf2_physname instead of
7667 dwarf2_linkage_name.
7668 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7669 (determine_class): Remove.
7670 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7671 except Ada.
7672 (new_symbol): Unconditionally call dwarf2_name.
7673 Compute the "linkage name" using dwarf2_physname.
7674 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7675 When determining to scan for anonymous C++ namespaces, ignore
7676 the linkage name.
7677 (dwarf2_physname): New function.
7678 (dwarf2_full_name): Move content to new function and call
7679 that.
7680 (dwarf2_compute_name): "New" function.
7681 (_initialize_dwarf2_read): Initialize die_list.
7682 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7683 physname.
7684 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7685 without a demangled name.
7686 Print out type information for non-virtual methods.
c8d5aac9 7687 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 7688 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
7689 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7690 (decode_compound): Stop consuming at an open parenthesis.
7691 Keep template parameters.
7692 Keep any overload information.
7693 Keep keywords like "const".
7694 Remove paren_pointer.
7695 Move is_quoted check from set_flags to here.
7696 Remove #if 0 code from 2000. Ten years is long enough.
7697 (find_method): Before comparing symbol names, canonicalize the string
7698 from the user.
7699 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
7700 (find_method_overload_end): New function.
7701 (set_flags): Remove.
c8d5aac9
L
7702 (decode_compound): Assume that parentheses are matched.
7703 It's a lot easier.
94af9270
KS
7704 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7705 to cplus_demangle.
7706 * linespec.c (decode_line_1): Keep important keywords like
7707 "const" and "volatile".
7708 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7709 * typeprint.h (c_type_print_args): Add declaration.
7710 * ui-file.c (do_ui_file_obsavestring): New function.
7711 (ui_file_obsavestring): New function.
7712 * ui-file.h (ui_file_obsavestring): Add declaration.
7713 * valops.c (find_overload_match): Resolve the object to
7714 a non-pointer type.
7715 If the object is a data member, search the object for the member
7716 and return with staticp set.
7717 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7718 Do not attempt to extract a function name from non-function types.
7719 If the extracted function name and the original name are the same,
7720 we don't have a C++ method.
7721
8d95cc3b
PA
7722 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7723 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
7724
7725 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7726 and arguments from symbol lookups.
7727 * ax-gdb.c (gen_expr): Likewise.
7728 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7729 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7730 lookup_possible_namespace_symbol): Likewise.
7731 * cp-support.c (read_in_psymtabs): Likewise.
7732 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7733 * language.h (la_lookup_symbol_nonlocal): Likewise.
7734 * scm-valprint.c (scm_inferior_print): Likewise.
7735 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7736 * solib-svr.c (elf_lookup_lib): Likewise.
7737 * solib.c (show_auto_solib_add): Likewise.
7738 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7739 * symmisc.c (maintenance_check_symtabs): Likewise.
7740 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7741 lookup_symbol_aux_local, lookup_symbol_aux_block,
7742 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7743 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7744 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7745 basic_lookup_transparent_type, find_main_psymtab,
7746 lookup_block_symbol): Likewise.
7747 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7748 lookup_symbol_global, lookup_symbol_aux_block,
7749 lookup_symbol_partial_symbol, lookup_block_symbol,
7750 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7751
9cb74f47
PM
77522010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7753
7754 * python/python-internal.h: Include symtab.h.
7755
af6b7be1
JB
77562010-03-09 Joel Brobecker <brobecker@adacore.com>
7757 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
7758
7759 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7760 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7761 indentation.
7762
bad56014
TT
77632010-03-08 Tom Tromey <tromey@redhat.com>
7764
7765 * breakpoint.c (breakpoint_1): Add "QUIT".
7766
08105857
PA
77672010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7768 Pedro Alves <pedro@codesourcery.com>
7769
7770 * solib.c (solib_find): Replace extension if
7771 solib_symbols_extension is set in the target gdbarch.
7772 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7773 solib_symbols_extension to "sym".
7774 * gdbarch.sh (solib_symbols_extension): New variable.
7775 (pstring): New function.
7776 * gdbarch.h, gdbarch.c: Regenerate.
7777
7c953934
TT
77782010-03-08 Tom Tromey <tromey@redhat.com>
7779
7780 PR cli/9591:
7781 * NEWS: Update.
7782 * utils.c: Include main.h.
7783 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7784 (defaulted_query): Use default answer if `batch_flag'.
7785 * main.h (batch_flag): Declare.
7786 * main.c (batch_flag): New global.
7787 (captured_main): Remove 'batch'. Update.
7788
bbd2783e
KB
77892010-03-08 Kevin Buettner <kevinb@redhat.com>
7790
7791 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7792 and Kevin Buettner:
7793
7794 * remote-mips.c (rockhopper_ops): New target_ops struct.
7795 (MON_ROCKHOPPER): New mips_monitor_type.
7796 (read_hex_value): New function.
7797 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 7798 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
7799 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7800 (rockhopper_open): New function.
7801 (mips_wait): Read the PC, FP and SP fields as strings. Use
7802 read_hex_value to parse them and mips_set_register to commit them.
7803 (mips_set_register): New function.
7804 (mips_fetch_registers): Do not cast register value to "unsigned"
7805 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7806 (mips_store_registers): Use a 'T' packet to set registers when
7807 using MON_ROCKHOPPER.
7808 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7809 and expect the total to be printed before the entry address.
7810 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7811
566f3d17
KB
78122010-03-08 Kevin Buettner <kevinb@redhat.com>
7813
7814 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7815 Change return value to int. Store value fetched in location
7816 addressed by `val'. Use function's return value as success
7817 or failure indicator. Adjust all callers.
7818
9c8ee2ab 78192010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
7820
7821 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7822
7155de5a
HZ
78232010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7824 Hui Zhu <teawater@gmail.com>
7825
7826 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7827 tmp_to_stopped_data_address.
7828 (record_open): Reset tmp_to_stopped_by_watchpoint and
7829 tmp_to_stopped_data_address.
7830 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7831 to_stopped_data_address.
7832
580879fc
HZ
78332010-03-08 Hui Zhu <teawater@gmail.com>
7834
7835 * i386-tdep.c (i386_process_record): Initialize regnum.
7836
b0fcb67f
JK
78372010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7838
7839 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7840 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7841
08597104
JB
78422010-03-08 Joel Brobecker <brobecker@adacore.com>
7843
7844 Memory error when reading wrong core file.
7845 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7846 errors while reading the inferior memory, and return zero if
7847 an exception was raised.
7848
425b824a
MS
78492010-03-07 Michael Snyder <msnyder@vmware.com>
7850
ec6dbf37
MS
7851 * record.c (record_restore): Rename tmpu8 to rectype.
7852
648d0c8b
MS
7853 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7854 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7855
7856 (i386_record_push): Rename local tmpulongest to addr.
7857
7858 (i386_process_record): Rename local tmpulongest to addr.
7859
7860 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7861 addr64.
955db0c0
MS
7862
7863 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 7864
10760264
JB
78652010-03-07 Joel Brobecker <brobecker@adacore.com>
7866
7867 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 7868 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 7869
b3c613f2
CF
78702010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7871
7872 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7873 block. Define helper macros to reduce ifdefs in code.
7874 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7875 size. Call unadorned GetModuleFileNameEx rather than
7876 GetModuleFileNameEx*.
7877 (windows_make_so): Use __PMAX to denote maximum buffer size and
7878 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7879 appropriate.
7880 (get_image_name): Use __PMAX to denote maximum buffer size.
7881 (handle_load_dll): Likewise.
7882 (windows_pid_to_exec_file): Likewise.
7883 (windows_create_inferior): Add many accommodations for older Cygwin and
7884 non-Cygwin.
7885 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7886 __USEWIDE conditional.
7887 (bad_GetModuleFileNameExA): Likewise.
7888 (_initialize_loadable): Just use real function names without the dyn_
7889 part since they are defined earlier.
7890
f870a310
TT
78912010-03-05 Corinna Vinschen <vinschen@redhat.com>
7892 Tom Tromey <tromey@redhat.com>
7893
7894 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7895 (parse_escape): Likewise.
7896 * python/py-utils.c (unicode_to_target_string): Update.
7897 (unicode_to_target_python_string): Update.
7898 (target_string_to_unicode): Update.
7899 * printcmd.c (printf_command): Update.
7900 * p-exp.y (yylex): Update.
7901 * objc-exp.y (yylex): Update.
7902 * mi/mi-parse.c: Include charset.h.
7903 (mi_parse_escape): New function.
7904 (mi_parse_argv): Use it.
7905 * jv-exp.y (yylex): Update.
7906 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7907 function.
7908 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7909 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7910 * gdbarch.c: Rebuild.
7911 * gdbarch.h: Rebuild.
7912 * defs.h (parse_escape): Update.
7913 * cli/cli-setshow.c: Include arch-utils.h.
7914 (do_setshow_command): Update.
7915 * cli/cli-cmds.c (echo_command): Update.
7916 * charset.h (target_charset, target_wide_charset): Update.
7917 * charset.c: Include arch-utils.h.
7918 (target_charset_name): Default to "auto".
7919 (target_wide_charset_name): Likewise.
7920 (show_target_charset_name): Handle "auto".
7921 (show_target_wide_charset_name): Likewise.
7922 (be_le_arch): New global.
7923 (set_be_le_names): Add 'gdbarch' argument.
7924 (validate): Likewise. Don't call set_be_le_names.
7925 (set_charset_sfunc, set_host_charset_sfunc)
7926 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7927 Update.
7928 (target_charset): Add 'gdbarch' argument.
7929 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7930 (auto_target_charset_name): New global.
7931 (default_auto_charset, default_auto_wide_charset): New functions.
7932 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7933 for target charsets. Copy result of nl_langinfo. Use GetACP if
7934 USE_WIN32API.
7935 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7936 remove 'byte_order' argument. Update.
7937 (classify_type): Likewise.
7938 (c_emit_char): Update.
7939 (c_printchar): Update.
7940 (c_printstr): Update.
7941 (c_get_string): Update.
7942 (evaluate_subexp_c): Update.
7943 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7944 Declare.
7945 * python/python.c (gdbpy_target_charset): New function.
7946 (gdbpy_target_wide_charset): Likewise.
7947 (GdbMethods): Update.
7948 * NEWS: Update.
7949
4e7386b0
UW
79502010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7951
7952 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7953 off high address bits.
7954
aab48ede
UW
79552010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7956
7957 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7958 address as UnsignedLongLong, not LongLong.
7959
8eeafb51 79602010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 7961 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
7962
7963 * remote-mips.c (gdbthread.h): Include.
7964 (remote_mips_ptid): Declare.
7965 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7966 (common_open): Set inferior_ptid, add it as an inferior, and
7967 as a thread too. Delete FIXME comment regarding start_remote().
7968 (mips_close): Invoke generic_mourn_inferior().
7969 (mips_kill): Make sure that target_mourn_inferior is invoked.
7970 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7971 it's now invoked from mips_close().
7972 (mips_load): Don't null out inferior_ptid. Don't call
7973 clear_symtab_users().
7974 (mips_thread_alive, mips_pid_to_str): New functions.
7975 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7976 to_thread_alive and to_pid_to_str operations.
7977
ae411497
TT
79782010-03-04 Tom Tromey <tromey@redhat.com>
7979
7980 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7981 in DWARF 3 and later.
7982 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7983
0e0b460e
KS
79842010-03-04 Keith Seitz <keiths@redhat.com>
7985
7986 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7987 If the filename portion of the linespec was quoted, recheck the
7988 remainder for additional quoting.
7989 (locate_first_half): Skip over completer chars, too.
7990
1b93ff13
TT
79912010-03-04 Tom Tromey <tromey@redhat.com>
7992
7993 * printcmd.c (printf_command): Pass dummy argument to
7994 printf_filtered.
7995
fc36e839
DE
79962010-03-04 Doug Evans <dje@google.com>
7997
111f853c
DE
7998 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7999 unwound_fp.
8000
fc36e839
DE
8001 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8002
c7437ca6
PA
80032010-03-04 Pedro Alves <pedro@codesourcery.com>
8004
8005 * breakpoint.c (update_watchpoint): Create a sentinel location if
8006 the software watchpoint isn't watching any memory.
8007 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8008
58dadb1b
PA
80092010-03-04 Pedro Alves <pedro@codesourcery.com>
8010
8011 * utils.c (fputs_maybe_filtered): Check if there's already a top
8012 level interpreter before dereferencing it. If there isn't one,
8013 don't paginate either.
8014
50e98be4
DJ
80152010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8016
8017 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8018 the state right when single stepping.
8019 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8020 Get the next PC along with the instruction state.
8021 (thumb_get_next_pc): Remove.
8022 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8023
2e3ceee9
HZ
80242010-03-04 Hui Zhu <teawater@gmail.com>
8025
8026 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8027
390a8aca
PA
80282010-03-03 Pedro Alves <pedro@codesourcery.com>
8029
8030 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8031 top level interpreter is MI.
8032
9355b391
SS
80332010-03-03 Stan Shebs <stan@codesourcery.com>
8034
8035 * remote.c (remote_download_tracepoint): Iterate over locations.
8036 * tracepoint.c (validate_actionline): Ditto.
8037 (encode_actions): Add location argument.
8038 (trace_dump_command): Check all locations to see if stepping
8039 frame.
390a8aca 8040
8685c86f
L
80412010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8042 Eli Zaretskii <eliz@gnu.org>
8043
8044 * NEWS: Add X86 general purpose registers section.
8045
e8f781e2
TT
80462010-03-03 Tom Tromey <tromey@redhat.com>
8047
8048 PR mi/11098:
8049 * varobj.c (install_new_value): Handle case where new print_value
8050 is NULL.
8051
a0e0ef55
TT
80522010-03-03 Dainis Jonitis <jonitis@gmail.com>
8053
8054 PR gdb/11345:
8055 * printcmd.c (printf_command): Print end of format string using
8056 printf_filtered.
8057
a58d7472
TT
80582010-03-02 Tom Tromey <tromey@redhat.com>
8059
8060 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8061 * defs.h (read_command_lines_1): Add missing 'void'.
8062 * cli/cli-script.c (recurse_read_control_structure): Add missing
8063 'void'.
8064 (read_next_line): Likewise.
8065 (read_command_lines_1): Likewise.
8066
ce50d78b
UW
80672010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8068
8069 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8070 store backchain as part of prologue.
8071
7e9af34a
DJ
80722010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8073
8074 * progspace.c (update_address_spaces): Update inferior address spaces
8075 also.
8076
01637564
DE
80772010-03-02 Doug Evans <dje@google.com>
8078
8079 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8080 lowpc,highpc args to addrmap_set_empty.
8081
1ba53b71
L
80822010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8083
8084 * amd64-tdep.c (amd64_byte_names): New.
8085 (amd64_word_names): Likewise.
8086 (amd64_dword_names): Likewise.
8087 (amd64_pseudo_register_name): Likewise.
8088 (amd64_pseudo_register_read): Likewise.
8089 (amd64_pseudo_register_write): Likewise.
8090 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8091 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8092 set_gdbarch_pseudo_register_write and
8093 set_tdesc_pseudo_register_name. Don't call
8094 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8095
8096 * i386-tdep.c (i386_num_mmx_regs): Removed.
8097 (i386_num_pseudo_regs): Likewise.
8098 (i386_byte_names): New.
8099 (i386_word_names): Likewise.
8100 (i386_byte_regnum_p): Likewise.
8101 (i386_word_regnum_p): Likewise.
8102 (i386_mmx_regnum_p): Updated.
8103 (i386_pseudo_register_name): Make it global. Handle byte and
8104 word pseudo-registers.
8105 (i386_pseudo_register_read): Likewise.
8106 (i386_pseudo_register_write): Likewise.
8107 (i386_pseudo_register_type): Handle byte, word and dword
8108 pseudo-registers
8109 (i386_register_reggroup_p): Don't include pseudo
8110 registers, except for MXX, in any register groups. Don't
8111 include pseudo byte, word, dword registers in general_reggroup.
8112 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8113 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8114 pseudo-registers after word pseudo-registers. Call
8115 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8116
8117 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8118 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8119 eax_regnum.
8120 (i386_byte_regnum_p): New.
8121 (i386_word_regnum_p): Likewise.
8122 (i386_dword_regnum_p): Likewise.
8123 (i386_pseudo_register_name): Likewise.
8124 (i386_pseudo_register_read): Likewise.
8125 (i386_pseudo_register_write): Likewise.
8126
a6f5ef51
L
81272010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8128
8129 * target-descriptions.c (tdesc_type): Remove
8130 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8131 (tdesc_predefined_types): Likewise.
8132 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8133 if flag name is empty.
8134 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8135
8136 * features/i386/32bit-core.xml: Define i386_eflags.
8137 * features/i386/64bit-core.xml: Likewise.
8138
8139 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8140 * features/i386/64bit-sse.xml: Likewise.
8141
8142 * features/i386/amd64-linux.c: Regenerated.
8143 * features/i386/amd64.c: Likewise.
8144 * features/i386/i386-linux.c: Likewise.
8145 * features/i386/i386.c: Likewise.
8146
f5dff777
DJ
81472010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8148
8149 * gdbtypes.c (append_composite_type_field_raw): New.
8150 (append_composite_type_field_aligned): Use the new function.
8151 * gdbtypes.h (append_composite_type_field_raw): Declare.
8152 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8153 (struct tdesc_type_flag): New type.
8154 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8155 kind. Add size to u.u. Add u.f for flags.
8156 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8157 (tdesc_free_type): Likewise.
8158 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8159 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8160 (tdesc_add_bitfield, tdesc_add_flag): New.
8161 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8162 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8163 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8164 current_type. Add current_type_size and current_type_is_flags.
8165 (tdesc_start_union): Clear the new fields.
8166 (tdesc_start_struct, tdesc_start_flags): New.
8167 (tdesc_start_field): Handle struct fields, including bitfields.
8168 (field_attributes): Make type optional. Add start and end.
8169 (union_children): Rename to struct_union_children.
8170 (union_attributes): Rename to struct_union_attributes. Add optional
8171 size.
8172 (flags_attributes): New.
8173 (feature_children): Add struct and flags.
8174 * features/gdb-target.dtd: Add flags and struct to features.
8175 Make field type optional. Add field start and end.
8176
90884b2b
L
81772010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8178
8179 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8180 (amd64_linux_read_description): Likewise.
8181 (_initialize_amd64_linux_nat): Set to_read_description to
8182 amd64_linux_read_description.
8183
8184 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8185 (amd64_linux_register_name): Removed.
8186 (amd64_linux_register_type): Likewise.
8187 (amd64_linux_core_read_description): New.
8188 (amd64_linux_init_abi): Set target description to
8189 tdesc_amd64_linux if needed. Support orig_rax in target
8190 description. Don't call set_gdbarch_register_name nor
8191 set_gdbarch_register_type. Call
8192 set_gdbarch_core_read_description.
8193 (_initialize_amd64_linux_tdep): Call
8194 initialize_tdesc_amd64_linux.
8195
8196 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8197
8198 * amd64-tdep.c: Include "features/i386/amd64.c".
8199 (amd64_register_names): Removed.
8200 (amd64_register_name): Likewise.
8201 (amd64_register_type): Likewise.
8202 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 8203 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
8204 set_gdbarch_register_name nor set_gdbarch_register_type.
8205 (_initialize_amd64_tdep): New.
8206
8207 * i386-linux-nat.c (i386_linux_read_description): New.
8208 (_initialize_i386_linux_nat): Set to_read_description to
8209 i386_linux_read_description.
8210
8211 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8212 (i386_linux_register_name): Removed.
8213 (i386_linux_core_read_description): New.
8214 (i386_linux_read_description): Likewise.
8215 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8216 Set target description to tdesc_i386_linux if needed. Support
8217 orig_eax. Set register_reggroup_p. Call
8218 set_gdbarch_core_read_description.
8219 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8220
8221 * i386-linux-tdep.h (tdesc_i386_linux): New.
8222
8223 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8224 with I387_NUM_REGS.
8225
8226 * i386-tdep.c: Include "features/i386/i386.c".
8227 (i386_register_names): Make it const.
8228 (i386_mmx_names): Likewise.
8229 (i386_num_register_names): Removed.
8230 (i386_register_name): Likewise.
8231 (i386_eflags_type): Likewise.
8232 (i386_mxcsr_type): Likewise.
8233 (i386_sse_type): Likewise.
8234 (i386_register_type): Likewise.
8235 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8236 (i386_pseudo_register_name): New.
8237 (i386_pseudo_register_type): Likewise.
8238 (i386_mmx_type): Make it static.
8239 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8240 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8241 call set_gdbarch_register_name nor set_gdbarch_register_type.
8242 Set register_reggroup_p. Set target description to tdesc_i386
8243 if needed. Call set_tdesc_pseudo_register_type,
8244 set_tdesc_pseudo_register_name and tdesc_use_registers.
8245 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8246 initialize_tdesc_x86_64.
8247
8248 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8249 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8250 register_names, tdesc and register_reggroup_p.
8251 (I386_NUM_FREGS): Removed.
8252 (i386_eflags_type): Likewise.
8253 (i386_mxcsr_type): Likewise.
8254 (i386_mmx_type): Likewise.
8255 (i386_sse_type): Likewise.
8256 (i386_register_name): Likewise.
8257 (i386_regnum): Add I386_MXCSR_REGNUM.
8258 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8259
8260 * i387-tdep.h (I387_NUM_REGS): New.
8261
8262 * regformats/i386/i386-linux.dat: Generated.
8263 * regformats/i386/i386.dat: Likewise.
8264 * regformats/i386/amd64-linux.dat: Likewise.
8265 * regformats/i386/amd64.dat: Likewise.
8266
8267 * regformats/reg-i386-linux.dat: Removed.
8268 * regformats/reg-i386.dat: Likewise.
8269 * regformats/reg-x86-64-linux.dat: Likewise.
8270 * regformats/reg-x86-64.dat: Likewise.
8271
d0d0ab16
CV
82722010-03-01 Corinna Vinschen <vinschen@redhat.com>
8273
8274 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8275 cygwin_conv_path API rather than the deprecated
8276 cygwin_conv_to_full_posix_path.
8277 * windows-nat.c:
8278 (GetModuleFileNameExA): Undefine for Cygwin.
8279 (GetModuleFileNameExW): Define for Cygwin.
8280 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8281 Call GetModuleFileNameExW and convert path to POSIX using
8282 cygwin_conv_path.
8283 (windows_make_so): Always define p. Drop unused variable m.
8284 Don't use Win32 functions to check file existance, rather use
8285 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8286 Use canonicalize_file_name to get full path.
8287 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8288 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8289 use correct target buffer size in call to WideCharToMultiByte.
8290 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8291 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8292 (windows_create_inferior): Convert all paths and arguments to wchar_t
8293 and use CreateProcessW on Cygwin.
8294 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8295 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8296 (bad_GetModuleFileNameExW): Define for Cygwin.
8297 (_initialize_loadable): Load GetModuleFileNameExW into
8298 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8299
dc00d89f
PM
83002010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8301
8302 PR python/11036
8303 * python/py-frame.c (frapy_read_var): Add block argument and logic
8304 to cope with user provided blocks.
8305
0e095b7e
JK
83062010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8307
8308 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8309 New comment.
8310
2f9e05b4
CV
83112010-02-28 Corinna Vinschen <vinschen@redhat.com>
8312
8313 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8314 (COMMON_OBS): ... to here since it's used unconditionally.
8315 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8316 (SFILES): To here.
8317
eb195664
DD
83182010-02-26 David Daney <ddaney@caviumnetworks.com>
8319
8320 * mips-linux-tdep.c: Update struct sigframe comments.
8321 (SIGFRAME_CODE_OFFSET): Delete macro.
8322 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8323 this_frame's sp.
8324 (mips_linux_n32n64_sigframe_init): Same.
8325
97b0f3e2
KB
83262010-02-26 Kevin Buettner <kevinb@redhat.com>
8327
8328 * remote-mips.c (mips_load): Don't use pseudo-register when
8329 invalidating regcache.
8330
4069ebbe
DJ
83312010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8332
8333 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8334
05071a4d
PA
83352010-02-26 Pedro Alves <pedro@codesourcery.com>
8336
8337 * NEWS: Add "New targets" section, and mention ARM Symbian
8338 support.
8339
6063c216
UW
83402010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8341
8342 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8343 add ADDR_SIZE member.
8344 (allocate_piece_closure): Update.
8345 (copy_pieced_value_closure): Likewise.
8346 (dwarf2_evaluate_loc_desc): Likewise.
8347 (read_pieced_value): Use DWARF address size instead of
8348 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8349
5107b149 83502010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 8351 Tom Tromey <tromey@redhat.com>
5107b149
PM
8352
8353 * python/py-type.c (typy_lookup_typename): Add in block argument.
8354 If provided restrict lookup to specified blocks.
8355 (gdbpy_lookup_type): Likewise.
8356 (typy_lookup_type): Likewise.
8357
78664fa3 83582010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 8359
78664fa3
PA
8360 Symbian config
8361
8362 gdb/
8363 * arm-symbian-tdep.c: New.
8364 * configure.tgt (arm*-*-symbianelf*): New target.
8365 (*-*-symbianelf*): New OS.
8366 * osabi.c (gdb_osabi_names): Add Symbian.
8367 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8368 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8369 (ALLDEPFILES): Add arm-symbian-tdep.c.
8370
eb73e134
DJ
83712010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8372
8373 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8374
46ef47e5
PA
83752010-02-24 Pedro Alves <pedro@codesourcery.com>
8376
8377 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8378
f3e9a817 83792010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 8380 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
8381 Thiago Jung Bauermann <bauerman@br.ibm.com>
8382
8383 * python/python.c (_initialize_python): Call
8384 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8385 gdbpy_initialize_blocks.
8386 * python/python-internal.h: Declare struct symbol, block and
8387 symtab_and_line. Declare block_object_type and
8388 symbol_object_type
8389 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8390 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8391 (symbol_to_symbol_object, block_to_block_object)
8392 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8393 (gdbpy_initialize_blocks ): Declare.
8394 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8395 (frapy_select): Add methods.
8396 (frapy_read_var): Add symbol branch.
8397 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8398 py-block.
8399 (SUBDIR_PYTHON_SRCS): Likewise.
8400 (py-symbol.o): New rule.
8401 (py-symtab.o): Likewise.
8402 (py-block.o): Likewise.
8403 * python/py-symbol.c: New file.
8404 * python/py-symtab.c: Likewise.
8405 * python/py-block.c: Likewise.
8406
24291992
PA
84072010-02-24 Pedro Alves <pedro@codesourcery.com>
8408
8409 PR gdb/11321
8410
8411 * inferior.h (prepare_for_detach): Declare.
8412 (struct inferior) <detaching>: New field.
8413 * infrun.c (prepare_for_detach): New.
8414 (handle_inferior_event) <random signal>: Don't stop if detaching.
8415 * target.c (target_detach): Call prepare_for_detach.
8416
fc1cf338
PA
84172010-02-24 Pedro Alves <pedro@codesourcery.com>
8418
8419 Per-process displaced stepping queue.
8420
8421 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8422 (displaced_step_gdbarch, displaced_step_closure,
8423 (displaced_step_original, displaced_step_copy): Move globals to
8424 this...
8425 (struct displaced_step_inferior_state): ... new structure.
8426 (displaced_step_inferior_states): New global.
8427 (get_displaced_stepping_state, add_displaced_stepping_state)
8428 (remove_displaced_stepping_state, infrun_inferior_exit): New
8429 functions.
8430 (displaced_step_clear): Add displaced_step_inferior_state
8431 parameter, and adjust to handle it.
8432 (displaced_step_clear_cleanup): Parameter is now a
8433 displaced_step_inferior_state. Adjust.
8434 (displaced_step_prepare): Adjust.
8435 (displaced_step_fixup, displaced_step_fixup)
8436 (infrun_thread_ptid_changed, resume): Adjust.
8437 (init_wait_for_inferior): Don't call displaced_step_clear.
8438 (infrun_thread_stop_requested): Rewrite.
8439 (_initialize_infrun): Install infrun_inferior_exit as
8440 inferior_exit observer.
8441
0723dbf5
PA
84422010-02-24 Pedro Alves <pedro@codesourcery.com>
8443
8444 * inferior.h (ptid_match): Declare.
8445 * infrun.c (ptid_match): New.
8446 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8447 (handle_notification): Add debug output.
8448 * linux-nat.c (ptid_match): Delete.
8449
09de9781
DM
84502010-02-24 David S. Miller <davem@davemloft.net>
8451
8452 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8453 * syscalls/sparc-linux.xml: New.
8454 * syscalls/sparc64-linux.xml: New.
8455 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8456 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8457 (sparc32_linux_get_syscall_number): New function.
8458 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8459 syscall number fetcher.
8460 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8461 (sparc64_linux_get_syscall_number): New function.
8462 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8463 syscall number fetcher.
8464
a79b8f6e
VP
84652010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8466
8467 Multiexec MI
8468
8469 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8470 * inferior.c (add_inferior_silent): Notify inferior_added
8471 observer.
8472 (delete_inferior_1): Notify inferior_removed observer.
8473 (exit_inferior_1): Pass inferior, not pid, to observer.
8474 (inferior_appeared): Likewise.
8475 (add_inferior_with_spaces): New.
8476 (add_inferior_command): Use the above.
8477 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8478 Declare.
8479
8480 * inflow.c (inflow_inferior_exit): Likewise.
8481 * jit.c (jit_inferior_exit_hook): Likewise.
8482
8483 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8484 remove-inferior.
8485 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8486 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8487 (report_initial_inferior): New.
8488 (mi_inferior_removed): Register the above. Make sure
8489 inferior_added observer is called on the first inferior.
8490 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8491 inferior number, not pid.
8492 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8493 affected.
8494 * mi/mi-main.c (current_context): New.
8495 (proceed_thread_callback): Use typed closure.
8496 Proceed everything if pid is 0. Most implementation split into
8497 (proceed_thread): ... this.
8498 (run_one_inferior): New.
8499 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8500 Adjust for multiexec behaviour.
8501 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8502 (mi_cmd_execute): Handle the 'thread-group' option here.
8503 Do some extra checks.
8504 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8505 options.
8506 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8507
115d30f9
VP
85082010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8509
8510 Make -exec-run a proper MI commands.
8511
8512 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8513 * mi/mi-cmds.c (mi_cmds): Adjust.
8514 * mi/mi-main.c (mi_cmd_exec_run): New.
8515
06cd862c
PA
85162010-02-24 Pedro Alves <pedro@codesourcery.com>
8517 Stan Shebs <stan@codesourcery.com>
8518
8519 * tracepoint.h (set_traceframe_number)
8520 (cleanup_restore_current_traceframe): Declare.
8521 * tracepoint.c (set_traceframe_number): New.
8522 (struct current_traceframe_cleanup): New.
8523 (do_restore_current_traceframe_cleanup)
8524 (restore_current_traceframe_cleanup_dtor)
8525 (make_cleanup_restore_current_traceframe): New.
8526 * infrun.c: Include tracepoint.h.
8527 (fetch_inferior_event): Switch out and in of tfind mode.
8528
ab92d69b
PA
85292010-02-24 Pedro Alves <pedro@codesourcery.com>
8530
8531 * breakpoint.c (breakpoint_init_inferior): Also delete
8532 bp_shlib_event breakpoints.
8533 * solib-frv.c (enable_break): Remove call to
8534 remove_solib_event_breakpoints.
8535 * solib-svr4.c (enable_break): Ditto.
8536 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8537 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8538 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8539 * solib-spu.c (spu_enable_break): Ditto.
8540
e707a91d
PA
85412010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8542
8543 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8544
cfce2ea2
PA
85452010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8546
8547 * varobj.c (varobj_update): Avoid non-constants in initializers.
8548
05566b3b
TT
85492010-02-23 Tom Tromey <tromey@redhat.com>
8550
8551 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8552 handle big-endian values.
8553 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8554
85d721b8
PA
85552010-02-22 Pedro Alves <pedro@codesourcery.com>
8556
8557 PR9605
8558
8559 gdb/
8560 * breakpoint.c (insert_bp_location): If inserting the read
8561 watchpoint failed, fallback to an access watchpoint.
8562 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8563 if the value changed, if not watching the same memory for writes.
8564 (watchpoint_locations_match): Add comment.
8565 (update_global_location_list): Copy the location's watchpoint type.
8566 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8567 handle read watchpoints here.
8568 (i386_insert_watchpoint): Read watchpoints aren't supported.
8569 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8570 packets.
8571 * target.h (target_insert_watchpoint): Update description.
8572
48ea67a7
TT
85732010-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8576 * m2-typeprint.c (m2_print_type): Update.
8577 * gdbtypes.c (recursive_dump_type): Update.
8578 (copy_type_recursive): Update.
8579 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8580 (c_type_print_base): Update.
8581 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8582 Remove.
8583 (struct cplus_struct_type) <ntemplate_args>: Remove.
8584 <struct template_arg>: Remove.
8585 <is_dynamic>: Move earlier.
8586 (TYPE_TEMPLATE_ARGS): Remove.
8587 (TYPE_NTEMPLATE_ARGS): Remove.
8588 (TYPE_TEMPLATE_ARG): Remove.
8589
48e32051
TT
85902010-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 PR c++/8693, PR c++/9496:
8593 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8594 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8595 write_dollar_variable. Don't try to classify NAME tokens.
8596 (token_and_value): New type.
8597 (token_fifo, popping, name_obstack): New globals.
8598 (classify_name): New function.
8599 (classify_inner_name): Likewise.
8600 (yylex): Likewise.
8601 (VARIABLE): Now has type sval.
8602 (exp : VARIABLE): Call write_dollar_variable.
8603 (qualified_name): Use TYPENAME, not typebase. Add production for
8604 multiple "::" instances.
8605 (variable): Use name_not_typename.
8606 (qualified_type): Remove.
8607 (typebase): Update.
8608
672d9c23
JK
86092010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8610
8611 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8612 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8613 found by bfd_get_section_by_name.
8614 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8615
bfbf3774
JB
86162010-02-19 Joel Brobecker <brobecker@adacore.com>
8617
8618 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8619 7.0 section" into "Changes in 7.1".
8620
6756b09b 86212010-02-19 Joel Brobecker <brobecker@adacore.com>
8622
8623 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8624 * version.in: Bump version to 7.1.50.20100219-cvs.
8625
202b96c1
PA
86262010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8627
8628 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8629 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8630
de2e5182
TT
86312010-02-17 Tom Tromey <tromey@redhat.com>
8632
8633 * NEWS: Add Python API Improvements section.
8634
7280022e
DJ
86352010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8636
8637 * NEWS: Correct typo.
8638
6f451e5e
TT
86392010-02-17 Tom Tromey <tromey@redhat.com>
8640
8641 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8642
012836ea
JK
86432010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8644
8645 * symfile.c (build_section_addr_info_from_objfile): Include sections
8646 only if they are SEC_ALLOC or SEC_LOAD.
8647
d182d057
L
86482010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8649
8650 PR shlibs/11293
8651 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8652 of ULONGEST for address size.
8653
4eef138c
TT
86542010-02-17 Tom Tromey <tromey@redhat.com>
8655
8656 * NEWS: Add C++ improvements section.
8657
548a926a
UW
86582010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8659
8660 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8661 PyThreadState_Swap): Avoid "statement with no effect" warning.
8662
ad3a0e5b
JK
86632010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8664
8665 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8666 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8667
243e2c5d 86682010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 8669 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
8670
8671 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8672 gdb_assert. Fix info->size for SIG prologue.
8673
275f2e57
DJ
86742010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8675
8676 * infcmd.c (show_inferior_tty_command): Check for NULL.
8677 Correct output message.
8678
791dfb64
DJ
86792010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8680
8681 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8682 FUNCTION contains parentheses. Improve removal of a trailing
8683 single quote.
8684
14d1346b
DJ
86852010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8686
8687 * gcore.c (do_bfd_delete_cleanup): New function.
8688 (gcore_command): Use it. Discard the cleanup after success.
8689 (gcore_copy_callback): Delete dead code.
8690
e76ab67f
DJ
86912010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8692
8693 * symfile.c (addr_info_make_relative): Always use
8694 find_lowest_section.
8695
71dee663
SW
86962010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8697
8698 * NEWS: Added entry for namespace fixes.
8699
a9854bd5
TT
87002010-02-15 Tom Tromey <tromey@redhat.com>
8701
8702 * dwarf2read.c (guess_structure_name): Allocate name on the
8703 objfile obstack.
8704
fd9e29b5
TT
87052010-02-15 Tom Tromey <tromey@redhat.com>
8706
8707 * c-typeprint.c (c_type_print_base): Reverse order of test.
8708
4e1fc9c9
JK
87092010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8710
8711 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8712 initialize it from ELF BFD. Extend the prelink condition by it.
8713
74164c56
JK
87142010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8715
8716 * defs.h (parse_pid_to_attach): New.
8717 * utils.c (parse_pid_to_attach): New.
8718 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8719 * gnu-nat.c (gnu_attach): Likewise.
8720 * nto-procfs.c (procfs_attach): Likewise.
8721 * procfs.c (procfs_attach): Likewise.
8722 * windows-nat.c (windows_attach): Likewise.
8723 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8724 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8725 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8726 check.
8727
bf6adea8
MM
87282010-02-14 Masaki Muranaka <monaka@monami-software.com>
8729
8730 * MAINTAINERS: Add myself for write after approval privileges.
8731
28f34a8f
JK
87322010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8733
8734 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8735 block.
8736
701ed6dc
JK
87372010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8738
8739 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8740 only if INFO_VERBOSE.
8741
e5829bee
MS
87422010-02-12 Tomas Holmberg <th@virtutech.com>
8743
8744 * mi/mi-main.c: Added the --reverse flag to the following MI
8745 commands: exec-continue, exec-finish, exec-next, exec-step,
8746 exec-next-instruction, exec-step-instruction. This is to
8747 support reverse execution over the MI interface to gdb.
8748
081dfbf7
PA
87492010-02-12 Pedro Alves <pedro@codesourcery.com>
8750
8751 * tracepoint.c (_initialize_tracepoint): Specify that the address
8752 range of `tfind outsize' is exclusive, and that the address range
8753 of `tfind range' is inclusive, in the commands' help strings.
8754
ecc13e53
JB
87552010-02-12 Joel Brobecker <brobecker@adacore.com>
8756
8757 Spurious "dll not found" error messages on x64-windows.
8758 * windows-nat.c: Add include of complaints.h.
8759 (handle_unload_dll): Change dll-not-found error into a complaint.
8760
15c3d785
PA
87612010-02-12 Pedro Alves <pedro@codesourcery.com>
8762
8763 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8764 bp_tracepoint and bp_fast_tracepoint, not
8765 bp_loc_software_breakpoint.
8766 (update_global_location_list): Tracepoints are never duplicates of
8767 anything.
8768
fd9b8c24
PA
87692010-02-12 Pedro Alves <pedro@codesourcery.com>
8770
8771 * breakpoint.c (break_command_really): Change return type to int.
8772 Return false if no breakpoint was created, true otherwise.
8773 (trace_command): Don't set the tracepoint count if no tracepoint
8774 was created.
8775 (ftrace_command): Ditto.
8776 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8777 created in the breakpoints table.
8778
5c0d192f
JK
87792010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8780 Ulrich Weigand <uweigand@de.ibm.com>
8781
8782 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8783
5d5b640e
PA
87842010-02-11 Pedro Alves <pedro@codesourcery.com>
8785
8786 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8787 the offset value isn't of integral type.
8788
e5a0a904
JK
87892010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8790
8791 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8792 New.
8793
be636754
PA
87942010-02-11 Pedro Alves <pedro@codesourcery.com>
8795
8796 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8797 non-subscriptable types.
8798 * valarith.c (binop_types_user_defined_p): New, abstracted out
8799 from ...
8800 (binop_user_defined_p): ... this.
8801 * value.h (binop_types_user_defined_p): Declare.
8802
10ef8d6a
PA
88032010-02-11 Pedro Alves <pedro@codesourcery.com>
8804
8805 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8806 Merge uploaded TSVs before merging uploaded tracepoints.
8807
b1028c8e
PA
88082010-02-11 Pedro Alves <pedro@codesourcery.com>
8809
8810 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8811
7a93fb82 88122010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 8813
7a93fb82
VP
8814 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8815 whitespace character after a dot in comment.
8816 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8817 Likewise.
8818 (list_args_or_locals): For the 'all' (that is
8819 -stack-list-variables) case, always output list of tuples.
8820 Output 'arg' field if variable is argument.
84d90c10 8821
92981e24
TT
88222010-02-10 Tom Tromey <tromey@redhat.com>
8823
8824 * parser-defs.h (parser_debug): Declare.
8825 * parse.c (_initialize_parse): Install "debug parser" set/show
8826 command.
8827 (parser_debug): New global.
8828 (show_parserdebug): New function.
8829 * c-exp.y (c_parse): Set yydebug.
8830
9fd3625f
L
88312010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8832
8833 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8834 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8835 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8836 i386_mxcsr.
8837 (tdesc_find_type): New.
8838 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8839 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8840
8841 * target-descriptions.h (tdesc_find_type): New.
8842
2fe842e5
MS
88432010-02-10 Michael Snyder <msnyder@vmware.com>
8844
8845 * gdb-gdb.py: Comment fix.
8846
f18b4cab
TG
88472010-02-09 Tristan Gingold <gingold@adacore.com>
8848
8849 * machoread.c (macho_symfile_relocate): New function.
8850 (macho_sym_fns): Use macho_symfile_relocate instead of
8851 default_symfile_relocate.
8852 (macho_oso_data): New type.
8853 (current_oso): New variable.
8854 (macho_add_oso_symfile): Do not compute section_addr_info, but
8855 instead set vma of sections.
8856 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8857 Set and clear current_oso.
8858
31dbc1c5
JB
88592010-02-09 Joel Brobecker <brobecker@adacore.com>
8860
8861 Wrong type description for tagged type parameter.
8862 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8863 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8864 reference to a tagged type.
8865
399f313b
TG
88662010-02-09 Tristan Gingold <gingold@adacore.com>
8867
8868 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8869 brothers of the parent.
8870
714f19d5
TT
88712010-02-08 Tom Tromey <tromey@redhat.com>
8872
8873 PR c++/8017:
8874 * value.h: Update.
8875 * valops.c (search_struct_field): Make 'name' const.
8876 (search_struct_method): Likewise.
8877 (find_method_list): Make 'method' const.
8878 (value_struct_elt): Make 'name' and 'err' const.
8879 (value_find_oload_method_list): Make 'method' const.
8880 (find_overload_match): Make 'name' const.
8881 * eval.c (evaluate_subexp_standard): New locals function,
8882 function_name.
8883 <OP_FUNCALL>: Handle OP_SCOPE specially.
8884
de0a0249
UW
88852010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8886
8887 * infrun.c (handle_inferior_event): Do not look up regcache
8888 for exited processes.
8889
8d95cc3b 88902010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
8891
8892 PR gdb/10728
8893 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 8894 warn if found, and assume length = 1.
83b10087 8895
99903ae3
CM
88962010-02-08 Chris Moller <cmoller@redhat.com>
8897
8898 PR gdb/9067
8899 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 8900 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 8901
e3e9f5a2
PA
89022010-02-08 Pedro Alves <pedro@codesourcery.com>
8903
8904 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8905 resumed LWPs as resumed.
8906 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8907 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8908 of throwing an internal error. If an LWP of a process we're not
8909 waiting for reports a signal, don't force collecting a SIGSTOP,
8910 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8911 go through all LWPs cancelling breakpoints in non-stop mode.
8912 (resume_stopped_resumed_lwps): New.
8913 (linux_nat_wait): Use it.
8914
46763423
L
89152010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8916
8917 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8918 i386/amd64 and i386/amd64-linux.
8919 (i386/i386-expedite): New.
8920 (i386/i386-linux-expedite): Likewise.
8921 (i386/amd64-expedite):Likewise.
8922 (i386/amd64-linux-expedite): Likewise.
8923 ($(outdir)/i386/i386-linux.dat): Likewise.
8924 ($(outdir)/i386/amd64.dat): Likewise.
8925 ($(outdir)/i386/amd64-linux.dat): Likewise.
8926
8927 * features/i386/32bit-core.xml: New.
8928 * features/i386/32bit-linux.xml: Likewise.
8929 * features/i386/32bit-sse.xml: Likewise.
8930 * features/i386/64bit-core.xml: Likewise.
8931 * features/i386/64bit-linux.xml: Likewise.
8932 * features/i386/64bit-sse.xml: Likewise.
8933 * features/i386/i386-linux.xml: Likewise.
8934 * features/i386/i386.xml: Likewise.
8935 * features/i386/amd64-linux.xml: Likewise.
8936 * features/i386/amd64.xml: Likewise.
8937 * features/i386/i386-linux.c: Likewise.
8938 * features/i386/i386.c: Likewise.
8939 * features/i386/amd64-linux.c: Likewise.
8940 * features/i386/amd64.c: Likewise.
8941
82856980
SW
89422010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8943
8944 PR c++/7935:
8945 * cp-support.h: Added char* alias element to using_direct data
8946 struct.
8947 (cp_add_using): Added char* alias argument.
8948 (cp_add_using_directive): Ditto.
8949 * cp-namespace.c: Updated with the above changes.
8950 (cp_lookup_symbol_imports): Check for aliases.
8951 * dwarf2read.c (read_import_statement): Figure out local alias
8952 for the import and pass it on to cp_add_using.
8953 (read_namespace): Pass alias argument to cp_add_using.
8954
d18b8b7a
HZ
89552010-02-05 Hui Zhu <teawater@gmail.com>
8956
8957 * defs.h (gdb_bfd_errmsg): New extern.
8958 * exec.c (exec_file_attach): Change bfd_errmsg to
8959 gdb_bfd_errmsg.
8960 * utils.c (AMBIGUOUS_MESS1): New macro.
8961 (AMBIGUOUS_MESS2): New macro.
8962 (gdb_bfd_errmsg): New function.
8963
48379de6
DE
89642010-02-04 Doug Evans <dje@google.com>
8965
8966 * solib-svr4.c (enable_break): Add comment.
8967
4ee73e90
AG
89682010-02-04 Anthony Green <green@moxielogic.com>
8969
8970 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8971 gracefully.
8972
1a334831
TT
89732010-02-04 Tom Tromey <tromey@redhat.com>
8974
8975 * valops.c (search_struct_field): Account for
8976 value_embedded_offset. Fix check for virtual base past the end of
8977 the object. Use value_copy when making a slice of the value.
8978
1180b2c8
L
89792010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8980
8981 PR tui/9622
8982 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8983 only if gdb_stdout is a tty.
8984
c3f08eb7
L
89852010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8986
8987 * target-descriptions.c: Include "osabi.h".
8988 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8989 OSABI.
8990
2d33f7b8
TG
89912010-02-04 Tristan Gingold <gingold@adacore.com>
8992
8993 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8994 (macho_symtab_read): Adjust calls to macho_add_oso.
8995 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8996 (macho_symfile_read): Adjust call to macho_oso_symfile.
8997 (macho_new_init): Move this function after declarations.
8998 (macho_symfile_init): Ditto.
8999 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9000 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9001
11334b82
VP
90022010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9003
9004 Include MI command in remotelog.
9005
9006 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9007
ff97be06
L
90082010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9009
9010 * remote.c (remote_state): Remove gdbarch.
9011 (init_remote_state): Don't set gdbarch.
9012 (remote_query_supported): Pass target_gdbarch instead of
9013 rs->gdbarch to gdbarch_qsupported.
9014
75cebea9
L
90152010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9016
9017 * gdbarch.sh: Add qsupported.
9018
9019 * gdbarch.c: Regenerated.
9020 * gdbarch.h: Likewise.
9021
9022 * remote.c (remote_state): Add gdbarch.
9023 (init_remote_state): Set gdbarch.
9024 (remote_query_supported): Support gdbarch_qsupported.
9025
c1dec97b
DJ
90262010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9027
9028 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9029 __FreeBSD_kernel_version.
9030
ac8035ab
TG
90312010-02-03 Tristan Gingold <gingold@adacore.com>
9032
9033 * symfile.h (struct sym_fns): Add sym_relocate field.
9034 (default_symfile_relocate): New prototype.
9035 (symfile_relocate_debug_section): First argument is now an objfile.
9036 * symfile.c (default_symfile_relocate): Rename from
9037 symfile_relocate_debug_section, first argument is now an objfile.
9038 (symfile_relocate_debug_section): New function.
9039 * coffread.c (coff_sym_fns): Set sym_relocate field.
9040 * somread.c (som_sym_fns): Ditto.
9041 * mipsread.c (ecoff_sym_fns): Ditto.
9042 * machoread.c (macho_sym_fns): Ditto.
9043 * elfread.c (elf_sym_fns): Ditto.
9044 * dwarf2read.c (dwarf2_read_section): Ditto.
9045 * xcoffread.c (xcoff_sym_fns): Ditto.
9046 * dbxread.c (aout_sym_fns): Ditto.
9047 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9048 (elfstab_build_psymtabs): Ditto.
9049
be52b756
L
90502010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9051
9052 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9053
9c3c02fd
TT
90542010-02-02 Tom Tromey <tromey@redhat.com>
9055
9056 * valops.c (value_cast_structs): Try downcasting using the RTTI
9057 type.
9058
f23f4c59
TT
90592010-02-02 Tom Tromey <tromey@redhat.com>
9060
9061 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9062 (gnuv2_baseclass_offset): Now static.
9063 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9064 * gnu-v2-abi.h: Remove.
9065
0cc2414c
TT
90662010-02-02 Tom Tromey <tromey@redhat.com>
9067
9068 * m2-typeprint.c (m2_record_fields): Don't use
9069 TYPE_DECLARED_TYPE.
9070 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9071 (struct main_type) <flag_declared_class>: New field.
9072 (struct cplus_struct_type) <declared_type>: Remove.
9073 <ntemplate_args>: Move earlier.
9074 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9075 (DECLARED_TYPE_TEMPLATE): Remove.
9076 (TYPE_DECLARED_TYPE): Remove.
9077 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9078 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9079 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9080 TYPE_DECLARED_TYPE.
9081
edf3d5f3
TT
90822010-02-02 Tom Tromey <tromey@redhat.com>
9083
9084 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9085 * valops.c (search_struct_field): Compute nbases after calling
9086 CHECK_TYPEDEF.
9087 (check_field): Call CHECK_TYPEDEF.
9088 * cp-valprint.c (cp_print_value): Pass correct address to
9089 baseclass_offset. Fix check for virtual base past the end of the
9090 object. Don't offset address passed to cp_print_value_fields or
9091 apply_val_pretty_printer.
9092 (cp_print_value_fields): Fix call to val_print.
9093 (cp_print_value_fields_rtti): New function.
9094 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9095 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9096 val_print.
9097 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9098 offset to address.
9099 * language.h (struct language_defn) <la_val_print>: Document.
9100 * c-lang.h (cp_print_value_fields_rtti): Declare.
9101
e4b7f41c
JK
91022010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9103
9104 PR libc/11214:
9105 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9106 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9107 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9108
7618e12b
DJ
91092010-02-01 Michael Matz <matz@suse.de>
9110 Daniel Jacobowitz <dan@codesourcery.com>
9111
e4b7f41c 9112 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
9113 functions use a frame pointer.
9114
b381ea14
JK
91152010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9116
9117 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9118 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9119 * config/djgpp/fnchange.lst: Add translations for
9120 symbol-without-target_section.exp and symbol-without-target_section.c.
9121
0e05dfcb
DJ
91222010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9123
9124 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9125 (remote_breakpoint_for_pc): Correct invalid_p check.
9126 * gdbarch.c: Regenerated.
9127
f9d67f43
DJ
91282010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9129
9130 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9131 arm_pc_is_thumb.
9132 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9133 (extend_buffer_earlier): New function.
9134 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9135 (arm_adjust_breakpoint_address): New function.
9136 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9137
177321bd
DJ
91382010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9139
9140 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9141 (arm_linux_thumb2_le_breakpoint): New constants.
9142 (arm_linux_init_abi): Set thumb2_breakpoint and
9143 thumb2_breakpoint_size.
9144 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9145 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9146 Implement support for single stepping through IT blocks if
9147 a 32-bit Thumb breakpoint instruction is available.
9148 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9149 is available, use it when needed.
9150 (arm_remote_breakpoint_from_pc): New function.
9151 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9152 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9153 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9154
a1dcb23a
DJ
91552010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9156
9157 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9158 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9159 * gdbarch.c, gdbarch.h: Regenerated.
9160 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9161 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9162 gdbarch_remote_breakpoint_from_pc.
9163
2b009048
DJ
91642010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9165
9166 * infrun.c (prepare_to_proceed): Handle other signals which might
9167 match a breakpoint.
9168 (handle_inferior_event): Move the check for unusual breakpoint
9169 signals earlier.
9170
e4e2711a
JB
91712010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9172
9173 amd64 - function returning record with field straddling 2 registers.
9174 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9175 a record of length <= 16 in which a field straddles the two
9176 eightbytes.
9177
cba6fab5
JB
91782010-01-29 Joel Brobecker <brobecker@adacore.com>
9179
9180 Implement return values on amd64-windows.
9181 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9182 (amd64_windows_return_value): New function.
9183 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9184 amd64_windows_return_value.
9185
3af6ddfe
JB
91862010-01-29 Joel Brobecker <brobecker@adacore.com>
9187
9188 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 9189 parameter registers.
3af6ddfe
JB
9190 * i386-tdep.h (struct gdbarch_tdep): Add new field
9191 integer_param_regs_saved_in_caller_frame.
9192 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9193 tdep->integer_param_regs_saved_in_caller_frame to 1.
9194 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9195 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9196
80d19a06
JB
91972010-01-29 Joel Brobecker <brobecker@adacore.com>
9198
9199 amd64-windows: memory args passed by pointer during function calls.
9200 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9201 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9202 where tdep->memory_args_by_pointer is non-zero.
9203 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9204 tdep->memory_args_by_pointer to 1.
9205
ba581dc1
JB
92062010-01-29 Joel Brobecker <brobecker@adacore.com>
9207
4966b6c2 9208 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
9209 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9210 amd64-tdep.c.
9211 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9212 call_dummy_integer_regs, and classify.
9213 * amd64-tdep.h (amd64_classify): Add declaration.
9214 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9215 (amd64_reg_class): Delete, moved to i386-tdep.h.
9216 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9217 Replace call to amd64_classify by call to tdep->classify.
9218 (amd64_push_arguments): Get the list of registers to use for
9219 passing integer parameters from the gdbarch tdep structure,
9220 rather than using a hardcoded one. Replace calls to amd64_classify
9221 by calls to tdep->classify.
9222 (amd64_push_dummy_call): Get the register number used for
9223 the "hidden" argument from tdep->call_dummy_integer_regs.
9224 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9225 and tdep->call_dummy_integer_regs. Set tdep->classify.
9226 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9227 (amd64_windows_dummy_call_integer_regs): New static global.
9228 (amd64_windows_classify): New function.
9229 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9230 tdep->call_dummy_integer_regs and tdep->classify.
9231
d37346f0
DJ
92322010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9233
9234 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9235 for the new regcache. All callers updated.
9236 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9237 (get_thread_arch_regcache): Do not set aspace here.
9238 * regcache.h (regcache_xmalloc): Update declaration.
9239
9240 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9241 regcache_xmalloc updated.
9242
7434dadd
JB
92432010-01-28 Joel Brobecker <brobecker@adacore.com>
9244
9245 Another -Wunused-function error in procfs.c (sparc-solaris)
9246 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9247 Only define if SYS_syssgi is defined.
9248 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9249 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9250 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9251 is itself defined.
9252
16d905e2
CF
92532010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9254
9255 * windows-nat.c (windows_initialization_done): New variable.
9256 (get_windows_debug_event): Issue error when process dies before
9257 completely initializing.
9258 (do_initial_windows_stuff): Set flag to indicate when we are done with
9259 the initial steps of attaching to the child.
9260
cd55e50f
JK
92612010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9262
9263 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9264
99cc78aa
DE
92652010-01-27 Doug Evans <dje@google.com>
9266
4c7dcb84
DE
9267 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9268
99cc78aa
DE
9269 * breakpoint.c (bpstat_stop_status): Delete useless code.
9270
52334bf5
JK
92712010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9272
9273 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9274 objfile via SYMBOL_SYMTAB.
9275
708ead4e
TT
92762010-01-26 Tom Tromey <tromey@redhat.com>
9277
9278 PR exp/7643:
9279 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9280 coerce_array on result.
9281
b14e635e
SW
92822010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9283
9284 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9285 search_parent argument.
9286 (cp_add_using): Initialize 'searched' field.
9287 (reset_directive_searched): New function.
9288 * cp-support.h: Add 'searched' field to using_direct struct.
9289 (cp_lookup_symbol_imports): Ditto.
9290 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9291 Perform recursive search.
9292 Implement non parent search.
9293 * valops.c (value_maybe_namespace_elt): Updated.
9294
8540c487
SW
92952010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9296
9297 PR gdb/10929:
9298 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9299 scopes which contain using directives even if they contain no
9300 declarations.
9301 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9302 la_lookup_symbol_nonlocal.
9303 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9304 cp_lookup_symbol_namespace.
9305 (cp_lookup_symbol_namespace): Perform an import lookup at every
9306 block level.
9307 (cp_lookup_symbol_imports): New function.
9308 (cp_lookup_symbol_in_namespace): New function.
9309
421d5d99
TT
93102010-01-25 Tom Tromey <tromey@redhat.com>
9311
9312 PR gdb/11049:
9313 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9314 result.
9315
6bcc772d
RO
93162010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9317
9318 * configure.ac: Only use host_os part when disabling TUI on osf.
9319 Use test to check variables, prefix strings with x.
9320 * configure: Regenerate.
9321
9322 * solib-osf.c (osf_current_sos): Initialize tail.
9323
1c1238a5
TG
93242010-01-25 gingold <gingold@adacore.com>
9325
c8d5aac9
L
9326 * windows-nat.c (windows_continue): Use %x to print thread id.
9327 (get_windows_debug_event): Ditto.
1c1238a5 9328
0b92b5bb
TT
93292010-01-22 Tom Tromey <tromey@redhat.com>
9330
9331 PR symtab/11199:
9332 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9333 type and arguments. Use smash_to_methodptr_type.
9334 (read_structure_type): Call quirk_gcc_member_function_pointer
9335 later.
9336 * gdbtypes.h (smash_to_methodptr_type): Declare.
9337 * gdbtypes.c (smash_to_methodptr_type): New function.
9338 (lookup_methodptr_type): Use it.
9339
0d5392b8
TT
93402010-01-21 Tom Tromey <tromey@redhat.com>
9341
9342 PR symtab/11198:
9343 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9344 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9345 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9346 (glibc_skip_solib_resolver): Use
9347 lookup_minimal_symbol_and_objfile.
9348
e6d088ec
KT
93492010-01-21 Kai Tietz <kai.tietz@onevision.com>
9350
9351 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9352 WIN32 targets.
9353
b966cb8a
TT
93542010-01-20 Tom Tromey <tromey@redhat.com>
9355
9356 PR backtrace/10770:
9357 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9358 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9359 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9360 dwarf_stack_values, not CORE_ADDRs.
9361 (execute_stack_op): Change DW_OP_div and comparison operators to
9362 use signed operands.
9363
3f81c18a
VP
93642010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9365
9366 Per-inferior args and tty and environment.
9367
9368 * infcmd.c (inferior_args): Rename to ...
9369 (inferior_args_scratch): ... this.
9370 (inferior_io_terminal): Rename to ...
9371 (inferior_io_terminal_scratch): ... this.
9372 (inferior_argc, inferior_argv): Remove.
9373 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9374 inside current_inferior().
9375 (set_inferior_tty_command, show_inferior_tty_command): New.
9376 (get_inferior_args, set_inferior_args): Store inside
9377 current_inferior().
9378 (notice_args_set): Likewise and rename to...
9379 (set_args_command): ... this.
9380 (set_inferior_args_vector): Likewise.
9381 (notice_args_read): Rename to...
9382 (show_args_command): ...new.
9383 (tty_command): Remove.
9384 (run_command_1): Don't free old args, as they are freed by
9385 set_inferior_arg now.
9386 (run_no_args_command): Likewise.
9387 (inferior_environ): Remove.
9388 (run_command_1): Use environment of the current inferior.
9389 (environment_info, set_environment_command)
9390 (unset_environment_command, path_info, path_command): Likewise.
9391 (_initialize_infcmd): Adjust for function and variable renames.
9392 Do not init inferior_environ.
9393 * inferior.h (set_inferior_arg): Adjust prototype.
9394 (struct inferior): New fields args, argc, argv, terminal, environment.
9395 (inferior_environ): Remove declaration.
9396 * inferior.c (free_inferior): Free new fields.
9397 (add_inferior_silent): Initialize 'environment' field.
9398 * main.c (captured_main): Set arguments only after the initial
9399 inferior has been created. Set set_inferior_io_terminal,
9400 not tty_command.
9401 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9402 inferior.
9403 (_initialize_mi_cmd_env): Adjust for disappearance of global
9404 inferior_environ.
9405 * solib.c (solib_find): Use environment of the current inferior.
9406
d8b65138
JK
94072010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9408
9409 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9410 HAVE_PYTHON.
9411 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9412
692465f1
JB
94132010-01-20 Joel Brobecker <brobecker@adacore.com>
9414
9415 Get rid of ada-lang.c:function_name_from_pc.
9416 * ada-lang.c: Add "stack.h" #include.
9417 (function_name_from_pc): Delete.
9418 (is_known_support_routine): Replace call to function_name_from_pc
9419 by call to find_frame_funname.
9420 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9421
95519e0e
TT
94222010-01-19 Tom Tromey <tromey@redhat.com>
9423
9424 PR c++/11026:
9425 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9426 objfile obstack.
9427
95c11dc7
TT
94282010-01-19 Tom Tromey <tromey@redhat.com>
9429
9430 * top.c (stop_sig, float_handler, do_nothing): Remove.
9431
a0f49112
JK
94322010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9433
9434 * breakpoint.c (watchpoint_check): Check the call
9435 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9436 Extend the comment.
8d95cc3b 9437 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
9438 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9439 watchpoint-cond-gone-stripped.c.
9440
ceeb3d5a
TT
94412010-01-19 Tom Tromey <tromey@redhat.com>
9442
9443 PR c++/8000:
9444 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9445 into parent scope, and enumerator into grandparent scope.
9446
2b71fc8e
JB
94472010-01-19 Joel Brobecker <brobecker@adacore.com>
9448
9449 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9450
03564ed9
JB
94512010-01-19 Joel Brobecker <brobecker@adacore.com>
9452
9453 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9454 i[34567]86-*-solaris2.1[0-9]*.
9455 * configure.tgt: Likewise.
9456
fb2e7cb4
JB
94572010-01-19 Joel Brobecker <brobecker@adacore.com>
9458
9459 * NEWS: Document the source command enhancement allowing it
9460 to load Python scripts. Document the "set/show script-extension"
9461 commands.
9462
1cb5e2a4
JB
94632010-01-19 Joel Brobecker <brobecker@adacore.com>
9464
9465 Add -Wunused-function to compile flags.
9466 * configure.ac: Add -Wunused-function to build_warnings.
9467 * configure: Regenerate.
9468
0ec6cd0c
JB
94692010-01-19 Joel Brobecker <brobecker@adacore.com>
9470
9471 "delete" ada-lex.c:input function, not used.
9472 * ada-lex.l: #define YY_NO_INPUT.
9473
b74845da
JB
94742010-01-19 Joel Brobecker <brobecker@adacore.com>
9475
9476 Delete free_named_symtabs and associated cleanup.
9477 * symfile.h (free_named_symtabs): Delete declaration.
9478 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9479 (cashier_psymtab): Comment function out.
9480 Delete declaration.
9481 (free_named_symtabs): Delete.
9482 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9483 * dbxread.c (end_psymtab): Likewise.
9484 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9485 * exec.c (exec_close_1): Ditto.
9486 * xcoffread.c (xcoff_end_psymtab): Likewise.
9487
65c06092
JB
94882010-01-19 Joel Brobecker <brobecker@adacore.com>
9489
9490 * stack.c (print_block_frame_labels): Comment function out.
9491
d5cd6034
JB
94922010-01-19 Joel Brobecker <brobecker@adacore.com>
9493
9494 Delete unused or undefined functions.
9495 * breakpoint.c (ep_parse_optional_filename): Delete.
9496 * dcache.c (dcache_write_line): Remove declaration.
9497 * infrun.c (build_infrun): Remove declaration.
9498 * tracepoint.c (tracepoint_save_command): Remove declaration.
9499 * linux-nat.c (init_lwp_list): Delete. No longer used.
9500 * event-loop.c (check_async_signal_handlers): Delete declaration.
9501 * infrun.c (init_execution_control_state): Delete.
9502 (proceed): Update comment to avoid mentioning
9503 init_execution_control_state.
9504 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9505 * ada-lang.c (ada_to_static_fixed_value): Delete.
9506 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9507 * cp-namespace.c (cp_copy_usings): Delete.
9508 * xml-syscall.c (xml_number_of_syscalls): Delete.
9509 * progspace.c (find_program_space_by_num): Delete.
9510 * inflow.c (handle_sigio): Delete declaration.
9511 * hppa-tdep.c (hppa_alignof): Delete.
9512 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9513 (mipsnbsd_core_osabi_sniffer): Delete.
9514
4e8f195d
TT
95152010-01-18 Tom Tromey <tromey@redhat.com>
9516
9517 PR c++/9680:
9518 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9519 (CONST_CAST): New tokens.
9520 (exp): Add new productions.
9521 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9522 reinterpret_cast.
9523 (is_cast_operator): New function.
9524 (yylex): Handle cast operators specially.
9525 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9526 UNOP_REINTERPRET_CAST>: New cases.
9527 * expprint.c (print_subexp_standard): Likewise.
9528 (op_name_standard): Likewise.
9529 (dump_subexp_body_standard): Likewise.
9530 * parse.c (operator_length_standard): Likewise.
9531 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9532 UNOP_REINTERPRET_CAST.
9533 * gdbtypes.c (class_types_same_p): New function.
9534 (is_ancestor): Use it.
9535 (is_public_ancestor): New function.
9536 (is_unique_ancestor_worker): Likewise.
9537 (is_unique_ancestor): Likewise.
9538 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9539 (is_unique_ancestor): Declare.
9540 * valops.c (value_reinterpret_cast): New function.
9541 (dynamic_cast_check_1): Likewise.
9542 (dynamic_cast_check_2): Likewise.
9543 (value_dynamic_cast): Likewise.
9544 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9545
d9c57d9f
JB
95462010-01-18 Joel Brobecker <brobecker@adacore.com>
9547
9548 Fix build failure when building without Python support.
9549 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9550 is not defined.
9551
f80d3ff2
JB
95522010-01-18 Joel Brobecker <brobecker@adacore.com>
9553
9554 Use XVS field type instead of doing a parallel lookup.
9555 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9556 if it is a reference type instead of doing a type lookup using
9557 the XVS field name.
9558
5bf03f13
JB
95592010-01-18 Joel Brobecker <brobecker@adacore.com>
9560
9561 Trust PAD types instead of using PAD___XVS.
9562 * ada-lang.c (trust_pad_over_xvs): New static variable.
9563 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9564 parallel XVS type, follow the XVS type instead of the PAD type.
9565 (unwrap_value): Make sure that there is no parallel XVE type
9566 before returning the value as is.
9567 (set_ada_list, show_ada_list): New static variables.
9568 (set_ada_command, show_ada_command): New functions.
9569 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9570 Add new "set/show ada trust-PAD-over-XVS" setting.
9571
973817a3
JB
95722010-01-18 Tom Tromey <tromey@redhat.com>
9573 Thiago Jung Bauermann <bauerman@br.ibm.com>
9574
9575 Allow "source" to load python scripts.
9576 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9577 * python/python.c (source_python_script): New function.
9578 * python/python.h (source_python_script): Add declaration.
9579 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9580 (script_ext_off, script_ext_soft, script_ext_strict)
9581 (script_ext_enums, script_ext_mode): New static constants.
9582 (show_script_ext_mode, find_and_open_script): New functions.
9583 (source_script): Enhance to handle Python scripts.
9584 (init_cli_cmds): Add set/show script-extension commands.
9585
98e03262
SS
95862010-01-16 Stan Shebs <stan@codesourcery.com>
9587
9588 * tracepoint.h (struct trace_status): Use unsigned long long
9589 instead of size_t.
9590 * tracepoint.c (trace_status_command): Fix printf directive.
9591 (trace_save_command): Check fwrite returns, fix printf directive.
9592 (trace_filename): New global.
9593 (tfile_open): Set it, check read returns.
9594 (tfile_close): Free trace_filename.
9595 (tfile_get_traceframe_address): Check read returns.
9596 (tfile_trace_find): Ditto.
9597 (tfile_fetch_registers): Ditto.
9598 (tfile_xfer_partial): Ditto.
9599 (tfile_get_trace_state_variable_value): Ditto.
9600
00bf0b85
SS
96012010-01-15 Stan Shebs <stan@codesourcery.com>
9602
9603 Add trace file support.
9604 * tracepoint.h (enum trace_stop_reason): New enum.
9605 (struct trace_status): New struct.
9606 (parse_trace_status): Declare.
9607 (struct uploaded_tp): Move here from remote.c,
9608 add fields for actions.
9609 (struct uploaded_tsv): New struct.
9610 * tracepoint.c (tfile_ops): New target vector.
9611 (trace_fd): New global.
9612 (tfile_open): New function.
9613 (tfile_close): New function.
9614 (tfile_files_info): New function.
9615 (tfile_get_trace_status): New function.
9616 (tfile_get_traceframe_address): New function.
9617 (tfile_trace_find): New function.
9618 (tfile_fetch_registers): New function.
9619 (tfile_xfer_partial): New function.
9620 (tfile_get_trace_state_variable_value): New function.
9621 (init_tfile_ops): New function.
9622 (_initialize_tracepoint): Call it, add tfile target.
9623 (trace_status): New global.
9624 (current_trace_status): New function.
9625 (trace_running_p): Remove, change all users to get from
9626 current_trace_status()->running.
9627 (get_trace_status): Remove.
9628 (trace_status_command): Call target_get_trace_status directly,
9629 report more detail including tracing stop reasons.
9630 (trace_find_command): Always allow tfind on a file.
9631 (trace_find_pc_command): Ditto.
9632 (trace_find_tracepoint_command): Ditto.
9633 (trace_find_line_command): Ditto.
9634 (trace_find_range_command): Ditto.
9635 (trace_find_outside_command): Ditto.
9636 (trace_frames_offset, cur_offset): Declare as off_t.
9637 (trace_regblock_size): Rename from reg_size, update users.
9638 (parse_trace_status): New function.
9639 (tfile_interp_line): New function.
9640 (disconnect_or_stop_tracing): Ensure current trace
9641 status before asking what to do.
9642 (stop_reason_names): New global.
9643 (trace_save_command): New command.
9644 (get_uploaded_tp): Move here from remote.c.
9645 (find_matching_tracepoint): Ditto.
9646 (merge_uploaded_tracepoints): New function.
9647 (parse_trace_status): Use stop_reason_names.
9648 (_initialize_tracepoint): Define tsave command.
9649 * target.h (target_ops): New fields to_save_trace_data,
9650 to_upload_tracepoints, to_upload_trace_state_variables,
9651 to_get_raw_trace_data, change to_get_trace_status
9652 to take a pointer to a status struct.
9653 (target_save_trace_data): New macro.
9654 (target_upload_tracepoints): New macro.
9655 (target_upload_trace_state_variables): New macro.
9656 (target_get_raw_trace_data): New macro.
9657 * target.c (update_current_target): Add new methods, change
9658 signature of to_get_trace_status.
9659 * remote.c (hex2bin): Make globally visible.
9660 (bin2hex): Ditto.
9661 (remote_download_trace_state_variable): Download name also.
9662 (remote_get_trace_status): Update parameter, use
9663 parse_trace_status.
9664 (remote_save_trace_data): New function.
9665 (remote_upload_tracepoints): New function.
9666 (remote_upload_trace_state_variables): New function.
9667 (remote_get_raw_trace_data): New function.
9668 (remote_start_remote): Use them.
9669 (_initialize_remote_ops): Add operations.
9670 * ax-gdb.c: Include breakpoint.h.
9671 * breakpoint.c (create_tracepoint_from_upload): Use
9672 break_command_really, return tracepoint, warn about unimplemented
9673 parts.
9674 * NEWS: Mention trace file addition.
9675
d904de5b
JK
96762010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9677
9678 Fix compilation warning on gcc-3.4.
9679 * exec.c (print_section_info): Move the `displacement' variable
9680 initialization to its declaration.
9681
64aa9731
JK
96822010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9683
9684 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9685 comparison.
9686
ca1f5def 96872010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
9688
9689 "info tasks" broken by typedefs in ATCB type definitions.
9690 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9691 ada_check_typedef before retrieving the length of the type for
9692 regular fields.
9693
12ab9e09
JB
96942010-01-15 Joel Brobecker <brobecker@adacore.com>
9695
9696 Do not use name-based lookup for unconstrained packed arrays.
9697 * ada-lang.c (find_parallel_type_by_descriptive_type):
9698 Limit the fallback to name-based lookups to the case where
9699 the type is a constrained packed array.
9700
c389c3dc
JB
97012010-01-15 Joel Brobecker <brobecker@adacore.com>
9702
9703 Enhance gdb-gdb.py to handle main_type.type_specific.
9704 * gdb-gdb.py: Print the type-specific part of struct main_type.
9705
7991dee7
JK
97062010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9707
9708 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9709 * configure: Regenerate.
9710 * config.in: Regenerate.
9711 * utils.c: Include sys/resource.h.
9712 (dump_core, can_dump_core): New.
9713 (internal_vproblem): Update the comment. Check can_dump_core while
9714 setting dump_core_p. Replace two abort calls by dump_core calls.
9715
93c26624
JK
97162010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9717 Eli Zaretskii <eliz@gnu.org>
9718
9719 * NEWS: Document the PIE support.
9720
55235ad7
JK
97212010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9722
9723 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9724 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9725
41752192
JK
97262010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9729 Replace exec_entry_point call by bfd_get_start_address.
9730
9f2982ff
JK
97312010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9732
9733 Support Valgrind attachments broken by the PIE support.
9734 * auxv.c: Include gdbcore.h.
9735 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9736 parameters ops, object and annex. Remove their assertions.
9737 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9738 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9739 (memory_xfer_auxv): ... here.
9740 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9741 memory_xfer_auxv.
9742 * procfs.c (procfs_xfer_partial): Likewise.
9743 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9744 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9745 (svr4_solib_create_inferior_hook): Conditionalize the
9746 svr4_relocate_main_executable call.
9747
61f0d762
JK
97482010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9749
9750 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9751 target_section. Find SECT in current_target_sections, gdb_assert it.
9752 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9753 New variable abfd.
9754 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9755 of separate debug info file.
9756
51bee8e9
JK
97572010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9758
9759 Support PIEs with no symfile_objfile.
9760 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9761 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9762
b8040f19
JK
97632010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9764
9765 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9766 code part to ...
9767 (svr4_static_exec_displacement): ... a new function.
9768 (svr4_exec_displacement): New function.
9769 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9770 new_offsets using alloca now. Remove variable old_chain and changed.
9771 Call objfile_relocate unconditionally now.
9772
eb90ce83
DE
97732010-01-14 Doug Evans <dje@google.com>
9774
9775 * gdbtypes.c (arch_flags_type): Fix comment.
9776 * gdbtypes.h (arch_composite_type): Fix comment.
9777
bdfed3bc
TG
97782009-01-14 Tristan Gingold <gingold@adacore.com>
9779
9780 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9781 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9782 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9783 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9784 macho_add_oso_symfile.
9785 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9786
1596ad23
JB
97872010-01-14 Joel Brobecker <brobecker@adacore.com>
9788
9789 Tru64: Dead threads are never deleted.
9790 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9791 (dec_thread_count_gdb_threads): Fix counter increment.
9792 (dec_thread_add_gdb_thread): Fix *listp increment.
9793 (resync_thread_list): Fix bug in deletion of dead threads that
9794 caused all threads to be deleted, instead of just the dead ones.
9795
be759fcf
PM
97962010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9797
9798 PR python/10705
9799
9800 * python/python-internal.h: Add lazy_string_object_type
9801 definition.
9802 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9803 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9804 * python/py-value.c (valpy_lazy_string): New function.
9805 (convert_value_from_python): Add lazy string conversion.
9806 * python/py-prettyprint.c (pretty_print_one_value): Check if
9807 return is also a lazy string.
9808 (print_string_repr): Add lazy string printing branch.
9809 (print_children): Likewise.
9810 * python/py-lazy-string.c: New file. Implement lazy strings.
9811 * python/python.c (_initialize_python): Call
9812 gdbpy_initialize_lazy_string.
9813 * varobj.c (value_get_print_value): Add lazy string printing
9814 branch. Account for encoding.
9815 * c-lang.c (c_printstr): Account for new encoding argument. If
9816 encoding is NULL, find encoding suited for type, otherwise use
9817 user encoding.
9818 * language.h (language_defn): Add encoding argument.
9819 (LA_PRINT_STRING): Likewise.
9820 * language.c (unk_lang_printstr): Update to reflect new encoding
9821 argument to language_defn.
9822 * ada-lang.h (ada_printstr): Likewise.
9823 * c-lang.h (c_printstr): Likewise.
9824 * p-lang.h (pascal_printstr);
9825 * f-lang.c (f_printstr): Likewise.
9826 * m2-lang.c (m2_printstr): Likewise.
9827 * objc-lang.c (objc_printstr): Likewise.
9828 * p-lang.c (pascal_printstr): Likewise.
9829 * scm-lang.c (scm_printstr): Likewise.
9830 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9831 encoding argument.
9832 * ada-valprint.c (ada_printstr): Likewise.
9833 * f-valprint.c (f_val_print): Likewise
9834 * m2-valprint.c (m2_val_print): Likewise.
9835 * p-valprint.c (pascal_val_print): Likewise.
9836 * expprint.c (print_subexp_standard): Likewise.
9837 * valprint.c (val_print_string): Likewise.
9838 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9839 (SUBDIR_PYTHON_SRCS): Likewise.
9840 (py-lazy-string.o): New rule.
9841
1fe72117 98422010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
9843
9844 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9845 uninitialized" warning from gcc on local `tree'.
9846
dc146f7c
VP
98472010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9848
9849 Implement core awareness.
9850
9851 * bcache.c (compare_ints): Remove
9852 (print_percentage): Use compare_positive_ints.
9853 * defs.h (compare_positive_ints): Declare.
9854 * linux-nat.h (struct lin_lwp): New field core.
9855 (linux_nat_core_of_thread_1): Declare.
9856 * linux-nat.c (add_lwp): Init the 'core' field.
9857 (linux_nat_wait_1): Record the core.
9858 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9859 (linux_nat_add_target): Register the above.
9860 * linux-thread-db.c (update_thread_core): New.
9861 (thread_db_find_new_threads): Update core information for
9862 every thread.
9863 * remote.c (struct private_thread_info): New.
9864 (free_private_thread_info, demand_private_info): New.
9865 (PACKET_qXfer_threads, use_osdata_threads): New.
9866 (struct thread_item, threads_parsing_context
9867 (start_thread, end_thread, thread_attributes)
9868 (thread_children, threads_children, threads_elements): New.
9869 (remote_threads_info): Try qXfer:threads before anything
9870 else.
9871 (remote_protocol_packets): Register qXfer:threads.
9872 (remote_open_1): Init use_osdata_threads.
9873 (struct stop_reply): New field 'core'.
9874 (remote_parse_stop_reply): Parse core number.
9875 (process_stop_reply): Record core number.
9876 (remote_xfer_partial): Handle qXfer:threads.
9877 (remote_core_of_thread): New.
9878 (init_remote_ops): Register remote_core_of_thread.
9879 (_initialize_remote): Register qXfer:read.
9880 * target.c (target_core_of_thread): New
9881 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9882 (struct target_ops): New field to_core_of_threads.
9883 (target_core_of_thread): Declare.
9884 * gdbthread.h (struct thread_info): New field private_dtor.
9885 * thread.c (print_thread_info): Report the core.
9886 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9887 * utils.c (compare_positive_ints): New.
9888 * features/threads.dtd: New.
9889 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9890 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9891 (do_nothing, free_vector_of_osdata_items)
9892 (splay_tree_int_comparator, free_splay_tree): New.
9893 (print_one_inferior_data): Implemented printing of selected
9894 inferiors. Collect and print cores.
9895 (output_cores): New.
9896 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9897 thread groups together with --available.
9898
d30c5336
JK
98992010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9900
9901 * configure: Regenerate (for _STRUCTURED_PROC).
9902
02893727
JB
99032010-01-12 Joel Brobecker <brobecker@adacore.com>
9904
9905 Delete dead function.
9906 * ada-lang.c (extract_string): Delete. No longer used.
9907
46ed2d6f
JB
99082010-01-12 Joel Brobecker <brobecker@adacore.com>
9909
9910 Fix -Wunused warning in dec-thread.c.
9911 * dec-thread.c (dec_thread_count_gdb_threads)
9912 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9913
606b8d1a
JB
99142010-01-12 Joel Brobecker <brobecker@adacore.com>
9915
9916 * ada-valprint.c (ada_print_floating): Remove trailing space.
9917
b4ba55a1
JB
99182010-01-12 Joel Brobecker <brobecker@adacore.com>
9919
9920 Add support for DW_AT_GNAT_descriptive_type.
9921 * gdbtypes.h (enum type_specific_kind): New enum.
9922 (struct main_type) [type_specific_field]: New component.
9923 [type_specific]: Add new component "gnat_stuff".
9924 (struct gnat_aux_type): New type.
9925 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9926 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9927 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9928 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9929 (TYPE_SPECIFIC_FIELD): New macros.
9930 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9931 type does not hold any cplus-specific data.
9932 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9933 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9934 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9935 cplus-specific data.
9936 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9937 Set new component TYPE_SPECIFIC_FIELD (type).
9938 (gnat_aux_default): New constant.
9939 (allocate_gnat_aux_type): New function.
9940 (init_type): Add initialization the type-specific stuff for
9941 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9942 (print_gnat_stuff): New function.
9943 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9944 specific data. Adjust code that prints the contents of the
9945 type-specific union using the TYPE_SPECIFIC_FIELD value.
9946 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9947 the type cplus stuff for Ada types.
9948 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9949 Error out if these routines are called with an Ada type.
9950 (read_structure_type, read_array_type, read_subrange_type):
9951 Add call to set_descriptive_type.
9952 (set_die_type): Initialize the gnat-specific data if necessary.
9953 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9954 New functions.
9955 * ada-lang.c (decode_constrained_packed_array_type): Use
9956 decode_constrained_packed_array_type instead of doing a standard
9957 lookup to locate a parallel type.
9958 (find_parallel_type_by_descriptive_type): New function.
9959 (ada_find_parallel_type_with_name): New function.
9960 (ada_find_parallel_type): Reimplement using
9961 ada_find_parallel_type_with_name.
9962 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9963 to check if type has a cplus stuff.
9964 * linespec.c (total_number_of_methods): Likewise.
9965 * mdebugread.c (new_type): Likewise.
9966
b0f02ee9
JK
99672010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9968
9969 * NEWS: Document the 0b binary number prefix parsing.
9970
b260e109
JK
99712010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9972
9973 * objfiles.c (objfile_relocate1): Change the return type to int.
9974 Describe the new return value. Return non-zero if data changed.
9975 (objfile_relocate): New variable changed. Set it. Call
9976 breakpoint_re_set depending on CHANGED.
9977
b5cfddf5
JK
99782010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9979
9980 Implement binary numbers parsing.
9981 * c-exp.y (parse_number): New case 'b' and 'B'.
9982
e0ae4240
JK
99832010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9984 Tristan Gingold <gingold@adacore.com>
9985
9986 * solib.c (info_sharedlibrary_command): Replace
9987 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9988 objfile_has_symbols.
9989
6e0e5977
JB
99902010-01-10 Joel Brobecker <brobecker@adacore.com>
9991
9992 * NEWS: Document the improvements made to the mips-irix port.
9993
7348c5e1
JB
99942010-01-09 Joel Brobecker <brobecker@adacore.com>
9995
9996 Fix the documentation of valprint.c:value_print.
9997 * valprint.c (value_print): Update the function description to
9998 mention that the syntax of the output follows the current_language,
9999 not necessarily C.
10000
567995e1
JK
100012010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10002
10003 Fix displacement of separate debug info files.
10004 * objfiles.c (objfile_relocate): Rename to ...
10005 (objfile_relocate1): ... here and make it static. Extend the comment.
10006 (objfile_relocate): New function.
10007 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10008 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10009 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10010 allocated using alloca.
10011 * symfile.c (copy_section_addr_info): Remove.
10012 (build_section_addr_info_from_objfile): Make it global. New variables
10013 addr_bit and mask, use them.
10014 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10015 (copy_section_addr_info): Remove.
10016
6d8eadbd
JB
100172010-01-09 Joel Brobecker <brobecker@adacore.com>
10018
10019 Signal unwinder for mips-irix N32.
10020 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10021 tramp-frame.h.
10022 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10023 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
10024 (SIGCONTEXT_LO_OFF): New macros.
10025 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
10026 (mips_irix_n32_tramp_frame): New static constant.
10027 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10028
27087a3d
JB
100292010-01-09 Joel Brobecker <brobecker@adacore.com>
10030
10031 Breakpoint in shared library does not work on mips-irix.
10032 * procfs.c: #include "observer.h".
10033 (procfs_inferior_created): New function, moving here the code
10034 which unsets the syssgi syscall-exit notifications.
10035 (procfs_create_inferior): Remove the code which unsets the syssgi
10036 syscall-exit notifications. It is too early to do this here.
10037 (_initialize_procfs): Attach the procfs_inferior_created observer.
10038
f08877ba
JB
100392010-01-09 Joel Brobecker <brobecker@adacore.com>
10040
10041 Wrong return convention for arrays (mips-irix).
10042 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10043 128 bits or smaller are returned the same way as structs
10044 and unions of the the same size.
10045
e4b97d48
JB
100462010-01-09 Joel Brobecker <brobecker@adacore.com>
10047
10048 Cannot set the PC on mips-irix.
10049 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10050 register number, no the cooked one.
10051
11377e68
JB
100522010-01-09 Joel Brobecker <brobecker@adacore.com>
10053
10054 Error while loading core file on mips-irix.
10055 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10056 if debugging from a core file.
10057
b2391021
JB
100582010-01-09 Joel Brobecker <brobecker@adacore.com>
10059
10060 GDB hangs when attaching to process on mips-irix.
10061 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10062 attaching to a process.
10063
f2ec0ecf
JB
100642010-01-09 Joel Brobecker <brobecker@adacore.com>
10065
10066 Use the correct breakpoint instruction on mips-irix.
10067 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10068 containing the correct breakpoint instruction to use on mips-irix.
10069 Use it when the osabi is GDB_OSABI_IRIX.
10070
3c95f01c
JB
100712010-01-09 Joel Brobecker <brobecker@adacore.com>
10072
10073 -Wunused warning in procfs.c (mips-irix only).
10074 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10075 throughout instead of using praddset and prdelset respectively.
10076
4b7703ad
JB
100772010-01-09 Joel Brobecker <brobecker@adacore.com>
10078
10079 GDB crash while stepping into function.
10080 * infrun.c (handle_inferior_event): Refetch the current frame
10081 after handling what.main_action, in case that pointer became
10082 dangling.
10083
12c89474
JB
100842010-01-09 Joel Brobecker <brobecker@adacore.com>
10085
10086 Fix build failure of solaris-hosted cross debuggers.
10087 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10088
1a3fd262 100892010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
10090
10091 Fix build failure on sparc-solaris.
10092 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10093
75242ef4
JK
100942010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10095
10096 Move some symfile code into subroutines.
10097 * symfile.h (relative_addr_info_to_section_offsets)
10098 (addr_info_make_relative): New prototypes.
10099 * symfile.c (default_symfile_offsets): Move a part to ...
10100 (relative_addr_info_to_section_offsets): ... this new function.
10101 (default_symfile_offsets): Call it.
10102 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10103 this part to ...
10104 (addr_info_make_relative): ... this new function.
10105
268a4a75
JK
101062010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10107
10108 Add from_tty to solib_create_inferior_hook.
10109 * infcmd.c (post_create_inferior): Move solib_add after
10110 solib_create_inferior_hook. Pass from_tty to
10111 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10112 0 from_tty and comment why.
10113 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10114 * linux-nat.c (linux_child_follow_fork): Likewise.
10115 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10116 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10117 from_tty.
10118 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10119 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10120 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10121 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10122 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10123 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10124 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10125 Pass it to svr4_so_ops.solib_create_inferior_hook.
10126 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10127 from_tty.
10128 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10129 solib_add.
10130 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10131 enable_break.
10132 * solib-target.c (solib_target_solib_create_inferior_hook): New
10133 parameter from_tty.
10134 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10135 it to ops->solib_create_inferior_hook.
10136 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10137 Move solib_add after solib_create_inferior_hook, call it now with
10138 from_tty as 0. New comment there.
10139 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10140 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10141 Likewise.
10142
cf00dfa7
VP
101432010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10144
10145 Fix multiexec race.
10146 * infrun.c (handle_inferior_event): Use get_thread_regcache
10147 with events ptid, not get_current_regcache.
10148
f91e5ac3
JB
101492009-01-08 Joel Brobecker <brobecker@adacore.com>
10150
10151 GDB crash with empty executable name (MinGW).
10152 * source.c (openp): Add assert that parameter string is not NULL.
10153 if parameter string is an empty string, then return with a failure
10154 immediately.
10155
92b9ce5b
JB
101562009-01-08 Joel Brobecker <brobecker@adacore.com>
10157
10158 Get rid of support for VAX Floats.
10159 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10160 (ada_vax_float_print_function): Delete.
10161 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10162 (ada_vax_float_print_function): Delete.
10163 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10164 (ada_print_type): Remove support for VAX floats.
10165 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10166
268a4a75 101672010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
10168
10169 * stabsread.c (read_args): Handle zero arguments.
10170
f0f20949
JB
101712009-01-08 Joel Brobecker <brobecker@adacore.com>
10172
10173 Cannot find in-tree libiconv.a after reconfigure.
10174 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10175 that we can use, then cache the path to this archive.
10176 * configure: Regenerate.
10177
6b6218c5
SS
101782010-01-07 Stan Shebs <stan@codesourcery.com>
10179
35b1e5cc
SS
10180 Make tracepoint operations go through target vector.
10181 * target.h (enum trace_find_type): New enum.
10182 (struct target_ops): New fields to_trace_init,
10183 to_download_tracepoint, to_download_trace_state_variable,
10184 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10185 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10186 to_set_disconnected_tracing.
10187 (target_trace_init): New macro.
10188 (target_download_tracepoint): New macro.
10189 (target_download_trace_state_variable): New macro.
10190 (target_trace_start): New macro.
10191 (target_trace_set_readonly_regions): New macro.
10192 (target_get_trace_status): New macro.
10193 (target_trace_stop): New macro.
10194 (target_trace_find): New macro.
10195 (target_get_trace_state_variable_value): New macro.
10196 (target_set_disconnected_tracing): New macro.
10197 * target.c (update_current_target): Inherit and set defaults for
10198 tracepoint operations.
10199 * tracepoint.c (default_collect): Make globally visible.
10200 (target_is_remote): Remove, along with all calls.
10201 (tvariables_info): Call target_get_trace_state_variable_value.
10202 (remote_set_transparent_ranges): Remove.
10203 (trace_start_command): Call target_trace_init,
10204 target_download_tracepoint, etc.
10205 (download_tracepoint): Remove.
10206 (trace_stop_command): Simplify.
10207 (stop_tracing): Call target_trace_stop.
10208 (get_trace_status): Call target_get_trace_status.
10209 (trace_status_command): Add case for targets that cannot trace.
10210 (finish_tfind_command): Change to take numerical arguments, call
10211 target_trace_find.
10212 (trace_find_command): Update call to finish_tfind_command.
10213 (trace_find_pc_command): Ditto.
10214 (trace_find_tracepoint_command): Ditto.
10215 (trace_find_line_command): Ditto.
10216 (trace_find_range_command): Ditto.
10217 (trace_find_outside_command): Ditto.
10218 (set_disconnected_tracing_value): Call
10219 target_set_disconnected_tracing.
10220 * remote.c: Add protocol encoding bits from tracepoint.c.
10221 (trace_error): Move from tracepoint.c.
10222 (remote_get_noisy_reply): Ditto.
10223 (free_actions_list_cleanup_wrapper): Ditto.
10224 (free_actions_list): Ditto.
10225 (remote_trace_init): New function.
10226 (remote_download_tracepoint): New function.
10227 (remote_download_trace_state_variable): New function.
10228 (remote_trace_set_readonly_regions): New function.
10229 (remote_trace_start): New function.
10230 (remote_get_trace_status): New function.
10231 (remote_trace_stop): New function.
10232 (remote_trace_find): New function.
10233 (remote_download_trace_state_variable): New function.
10234 (remote_set_disconnected_tracing): New function.
10235 (init_remote_ops): Add tracepoint operations.
10236
6b6218c5
SS
10237 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10238
089b4803
TG
102392010-01-07 Tristan Gingold <gingold@adacore.com>
10240
10241 * symfile.c (build_section_addr_info_from_objfile): New function.
10242 (symbol_file_add_separate): Don't use offsets from objfile but
10243 built an addr info.
10244
d5551862
SS
102452010-01-06 Stan Shebs <stan@codesourcery.com>
10246
10247 Support disconnected tracing.
10248 * infcmd.c (detach_command): Ask whether to stop tracing.
10249 * cli/cli-cmds.c (quit_command): Ditto.
10250 * breakpoint.h (struct breakpoint): New field number_on_target.
10251 * breakpoint.c (create_tracepoint_from_upload): New function.
10252 (get_tracepoint_by_number_on_target): New function.
10253 * remote.c (struct remote): New field disconnected_tracing.
10254 (remote_disconnected_tracing_feature): New function.
10255 (remote_protocol_features): Add DisconnectedTracing.
10256 (struct uploaded_tp): New struct.
10257 (uploaded_tps): New global.
10258 (get_uploaded_tp): New function.
10259 (find_matching_tracepoint): New function.
10260 (remote_get_tracing_state): New function.
10261 (remote_start_remote): Call it.
10262 * tracepoint.c (disconnected_tracing): New global.
10263 (trace_start_command): Initialize number_on_target.
10264 (stop_tracing): New function, split out from...
10265 (trace_stop_command): Call stop_tracing.
10266 (get_trace_status): New function, split out from...
10267 (trace_status_command): Call get_trace_status, add info on
10268 disconnection behavior.
10269 (disconnect_or_stop_tracing): New function.
10270 (finish_tfind_command): Translate from number on target.
10271 (trace_find_tracepoint_command): Translate to number on target.
10272 (send_disconnected_tracing_value): New function.
10273 (set_disconnected_tracing): New function.
10274 (_initialize_tracepoint): Add disconnected-tracing variable.
10275 * NEWS: Mention disconnected tracing.
10276
15d123c9
TG
102772010-01-06 Tristan Gingold <gingold@adacore.com>
10278
10279 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10280 parameter to main_objfile. Iterate on all separate debug objfiles.
10281 * symfile.h (symbol_file_add_separate)
10282 (find_separate_debug_file_by_debuglink): Remove parameter names.
10283 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10284 (reread_symbols): Use free_objfile_separate_debug.
10285 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10286 Adjust comment.
10287 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10288 (free_objfile_separate_debug): New prototypes.
10289 * objfiles.c (objfile_separate_debug_iterate): New function.
10290 (add_separate_debug_objfile, free_objfile_separate_debug): New
10291 functions.
10292 (free_objfile): Use free_objfile_separate_debug. Adjust for
10293 multiple separate debug objfile.
10294 (objfile_has_symbols): Adjust comment. Iterate on all separate
10295 debug objfiles.
10296 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10297 debug objfile.
10298 (lookup_minimal_symbol_text): Ditto.
10299 (lookup_minimal_symbol_by_pc_name): Ditto.
10300 (lookup_minimal_symbol_solib_trampoline): Ditto.
10301 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10302 debug objfiles.
10303
7a697b8d
SS
103042010-01-05 Stan Shebs <stan@codesourcery.com>
10305
10306 Add fast tracepoints.
10307 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10308 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10309 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10310 * breakpoint.c (tracepoint_type): New function.
10311 (ALL_TRACEPOINTS): Use it.
10312 (should_be_inserted): Ditto.
10313 (bpstat_check_location): Ditto.
10314 (print_one_breakpoint_location): Ditto.
10315 (user_settable_breakpoint): Ditto.
10316 (set_breakpoint_location_function): Ditto.
10317 (disable_breakpoints_in_shlibs): Ditto.
10318 (delete_trace_command): Ditto.
10319 (print_it_typical): Add bp_fast_tracepoint case.
10320 (bpstat_what): Ditto.
10321 (print_one_breakpoint_location): Ditto.
10322 (allocate_bp_location): Ditto.
10323 (mention): Ditto.
10324 (breakpoint_re_set_one): Ditto.
10325 (disable_command): Ditto.
10326 (enable_command): Ditto.
10327 (check_fast_tracepoint_sals): New function.
10328 (break_command_really): Call it.
10329 (ftrace_command): New function.
10330 (_initialize_breakpoint): Add ftrace command.
10331 * gdbarch.sh (fast_tracepoint_valid_at): New.
10332 * gdbarch.h, gdbarch.c: Regenerate.
10333 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10334 (i386_gdbarch_init): Use it.
10335 * remote.c (struct remote_state): New field fast_tracepoints.
10336 (PACKET_FastTracepoints): New packet config type.
10337 (remote_fast_tracepoint_feature): New function.
10338 (remote_protocol_features): Add FastTracepoints.
10339 (remote_supports_fast_tracepoints): New function.
10340 (_initialize_remote): Add FastTracepoints.
10341 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10342 * NEWS: Mention fast tracepoints.
10343
737a160e
JB
103442010-01-06 Joel Brobecker <brobecker@adacore.com>
10345
10346 * gdb-gdb.py: New file.
10347
ce6cca6d
MS
103482010-01-05 Michael Snyder <msnyder@vmware.com>
10349
10350 * infrun.c (handle_inferior_event): Fix typo in comment.
10351
0d15807d
JK
103522010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10353
10354 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10355
7803799a
UW
103562010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10357
c8d5aac9 10358 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
10359 and s390x-linux64.
10360 (s390-linux32-expedite): Define.
10361 (s390-linux64-expedite): Define.
10362 (s390x-linux64-expedite): Define.
10363 * features/s390-acr.xml: New file.
10364 * features/s390-fpr.xml: New file.
10365 * features/s390-core32.xml: New file.
10366 * features/s390-core64.xml: New file.
10367 * features/s390x-core64.xml: New file.
10368 * features/s390-linux32.xml: New file.
10369 * features/s390-linux64.xml: New file.
10370 * features/s390x-linux64.xml: New file.
10371 * features/s390-linux32.c: New generated file.
10372 * features/s390-linux64.c: New generated file.
10373 * features/s390x-linux64.c: New generated file.
10374
10375 * regformats/s390-linux32.dat: New generated file.
10376 * regformats/s390-linux64.dat: New generated file.
10377 * regformats/s390x-linux64.dat: New generated file.
10378 * regformats/reg-s390.dat: Remove.
10379 * regformats/reg-s390x.dat: Remove.
10380
10381 * s390-nat.c: Include "auxv.h" and <elf.h>.
10382 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10383 (s390_target_wordsize): New function.
10384 (s390_auxv_parse): Likewise.
10385 (s390_get_hwcap): Likewise.
10386 (s390_read_description): Likewise.
10387 (_initialize_s390_nat): Install s390_auxv_parse and
10388 s390_read_description.
10389
10390 * s390-tdep.c: Include "features/s390-linux32.c",
10391 "features/s390-linux64.c", and "features/s390x-linux64.c".
10392 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10393 (s390_register_call_saved): New function.
10394 (s390_register_name): Remove.
10395 (s390_register_type): Remove.
10396 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10397 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10398 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10399 (s390_pseudo_register_name): New function.
10400 (s390_pseudo_register_type): New function.
10401 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10402 Handle full GPR pesudos and varying pseudo register numbers.
10403 (s390_pseudo_register_write): Likewise
10404 (s390x_pseudo_register_read): Remove.
10405 (s390x_pseudo_register_write): Likewise.
10406 (s390_register_group): Remove.
10407 (s390_pseudo_register_group): New function.
10408 (s390_regmap_gregset): Add GPR upper halves.
10409 (s390x_regmap_gregset): Likewise.
10410 (s390_regmap_fpregset): Likewise.
10411 (s390_regmap_upper): New global variable.
10412 (s390_upper_regset): New global variable.
10413 (s390_upper_regset_sections): New global variable.
10414 (s390_regset_from_core_section): Handle GPR upper halves.
10415 (s390_core_read_description): New function.
10416 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10417 register information. Handle varying pseudo register numbers.
10418 (s390_backchain_frame_unwind_cache): Likewise.
10419 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10420 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10421 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10422 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10423 Handle varying pseudo register numbers.
10424 (s390_unwind_pc): Handle varying pseudo register numbers.
10425 (s390_dwarf2_prev_register): New function.
10426 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10427 register information. Handle varying pseudo register numbers.
10428 Install s390_dwarf2_prev_register to unwind full GPRs.
10429 (s390_gdbarch_init): Handle target descriptions. Assign varying
10430 pseudo register numbers. Install s390_adjust_frame_regnum.
10431 (_initialize_s390_tdep): Initialize target descriptions.
10432
10433 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10434 (S390_NUM_REGS): Redefine to include upper half registers.
10435 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10436 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10437 (tdesc_s390_linux32): Add declaration.
10438 (tdesc_s390_linux64): Likewise.
10439 (tdesc_s390x_linux64): Likewise.
10440
1b1818e4
UW
104412010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10442
10443 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10444 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10445 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10446 (ppc_linux_vmx_regset_sections): Likewise.
10447 (ppc_linux_fp_regset_sections): Likewise.
10448
10449 * corelow.c (get_core_register_section): Constify arguments.
10450 (get_core_registers): Use gdbarch_core_regset_sections instead
10451 of hard-coded platform-specific register section names.
10452
dcbf108f
UW
104532010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10454
10455 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 10456 a register, assume the least-significant part is used.
dcbf108f
UW
10457 (write_pieced_value): Likewise.
10458
704e9165
UW
104592010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10460
10461 * printcmd.c: Include "arch-utils.h".
10462 (do_one_display): Re-parse expression if current architecture changed.
10463
c54eabfa
JK
104642010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10465 Joel Brobecker <brobecker@adacore.com>
10466
10467 * gdbtypes.c (check_typedef): New comment on type length.
10468 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10469 comment on type length.
10470 (value_primitive_field): Keep the original TYPE value, new comment.
10471
50cb2941
JK
104722010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10473
10474 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10475 p_start. Change != comparisons to > and < comparisons.
10476
be66db07
JK
104772010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10478
10479 * cli/cli-script.c (process_next_line): Check P2 overrun.
10480
abd775ce
JB
104812009-01-01 Joel Brobecker <brobecker@adacore.com>
10482
10483 Update the copyright hearder to add year 2010 for most GDB files.
10484
6479260d
JB
104852009-01-01 Joel Brobecker <brobecker@adacore.com>
10486
10487 Fix build failure in inf-ptrace.c.
10488 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10489
4a70f654
JB
104902010-01-01 Joel Brobecker <brobecker@adacore.com>
10491
10492 * top.c (print_gdb_version): Update copyright year.
10493
595939de 104942010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
10495
10496 Fix break *FUN'address thread NUM.
10497 * ada-lex.l (task): Expand rule to also match the thread keyword.
10498
70575d34
JB
104992010-01-01 Joel Brobecker <brobecker@adacore.com>
10500
10501 Fix break *FUN'address task NUM.
10502 * ada-lex.l (task): New rule.
10503 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10504 been built before using it.
10505
e1e4d4a4 10506For older changes see ChangeLog-2009.
c906108c
SS
10507\f
10508Local Variables:
10509mode: change-log
10510left-margin: 8
10511fill-column: 74
10512version-control: never
57da7796 10513coding: utf-8
c906108c 10514End:
This page took 1.98091 seconds and 4 git commands to generate.