]>
Commit | Line | Data |
---|---|---|
ec3d575a UW |
1 | 2010-10-08 Ulrich Weigand <[email protected]> |
2 | ||
3 | * arm-tdep.c (thumb_expand_immediate): New function. | |
4 | (thumb_instruction_changes_pc): Likewise. | |
5 | (thumb2_instruction_changes_pc): Likewise. | |
6 | (thumb_analyze_prologue): Handle 32-bit Thumb instructions during | |
7 | prologue parsing. Improved support for optimized code. | |
8 | (thumb_scan_prologue): Do not reply on line-number information, | |
9 | use same heuristics as arm_scan_prologue insead. | |
10 | (skip_prologue_function): Accept functions | |
11 | "__tls_get_addr" and "__aeabi_read_tp". | |
12 | ||
4024ca99 UW |
13 | 2010-10-08 Ulrich Weigand <[email protected]> |
14 | Daniel Jacobowitz <[email protected]> | |
15 | ||
16 | * arm-tdep.c (thumb_in_function_epilogue_p) | |
17 | (arm_in_function_epilogue_p): New. | |
18 | (arm_gdbarch_init): Install arm_in_function_epilogue_p as | |
19 | gdbarch_in_function_epilogue_p callback. | |
20 | ||
855c153f DE |
21 | 2010-10-07 Doug Evans <[email protected]> |
22 | ||
00e14314 DE |
23 | * cc-with-index.sh (output_file): Default to a.out. |
24 | ||
3876f04e DE |
25 | * dwarf2read.c (mapped_index): Rename member index_table to |
26 | symbol_table and index_table_slots to symbol_table_slots. | |
27 | All uses updated. | |
28 | (create_symbol_hash_table): Renamed from create_index_table. | |
29 | All callers updated. | |
30 | (add_indices_to_cpool): Rename arg index_table to symbol_hash_table. | |
31 | (write_hash_table): Rename local index_table to symbol_hash_table. | |
32 | ||
855c153f DE |
33 | * addrmap.h (addrmap_foreach_fn): New typedef. |
34 | (addrmap_foreach): Declare. | |
35 | * addrmap.c (struct addrmap_funcs): New member foreach. | |
36 | (addrmap_foreach): New function. | |
37 | (addrmap_fixed_foreach): New function. | |
38 | (addrmap_fixed_funcs): Update. | |
39 | (struct mutable_foreach_data): New struct. | |
40 | (addrmap_mutable_foreach_worker): New function. | |
41 | (addrmap_mutable_foreach): New function. | |
42 | (addrmap_mutable_funcs): Update. | |
43 | ||
1d2a4540 PH |
44 | 2010-10-07 Paul Hilfinger <[email protected]> |
45 | ||
46 | * dictionary.c (dict_hash): Revert to msymbol_hash_iw in | |
47 | more cases. | |
48 | ||
40658b94 PH |
49 | 2010-10-07 Paul Hilfinger <[email protected]> |
50 | ||
51 | * ada-lang.c (full_match): Declare. | |
52 | (ada_match_name): Rename to match_name (we should avoid prefixing static | |
53 | symbols with "ada_"). | |
54 | (match_name): New name for ada_match_name. | |
55 | (struct ada_psym_data): Remove and replace with... | |
56 | (struct match_data): User data for map_matching_symbols. | |
57 | (ada_add_psyms): Remove. | |
58 | (aux_add_nonlocal_symbols): New function, used as callback for | |
59 | map_matching_symbols. | |
60 | (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded | |
61 | symbols. | |
62 | (ada_add_non_local_symbols): Rename to add_nonlocal_symbols. | |
63 | (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols. | |
64 | Rework to use map_matching_symbols instead of map_ada_symtabs. | |
65 | (ada_lookup_symbol_list): Use add_nonlocal_symbols. | |
66 | * psymtab.c: Include dependency on dictionary.h. | |
67 | (match_partial_symbol): New function. | |
68 | (ada_lookup_partial_symbol): Remove. | |
69 | (map_block): New function, auxiliary to map_matching_symbols_psymtab. | |
70 | (map_matching_symbols_psymtab): New function. | |
71 | (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab. | |
72 | * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols. | |
73 | ||
c4d840bd PH |
74 | 2010-10-06 Paul Hilfinger <[email protected]> |
75 | ||
76 | * ada-lang.c (ada_match_name): Use new API for wild_match. | |
40658b94 PH |
77 | (wild_match): Change API to be consistent with that of strcmp_iw; |
78 | return 0 for a match, and switch operand order. | |
79 | (full_match): New function. | |
80 | (ada_add_block_symbols): Use dict_iter_match_{first,next} for | |
81 | matching to allow use of hashing. | |
82 | * dictionary.c (struct dict_vector): Generalize iter_name_first, | |
83 | iter_name_next ot iter_match_first, iter_match_next. | |
84 | (iter_name_first_hashed): Replace with iter_match_first_hashed. | |
85 | (iter_name_next_hashed): Replace with iter_match_next_hashed. | |
86 | (iter_name_first_linear): Replace with iter_match_first_linear. | |
87 | (iter_name_next_linear): Replace with iter_match_next_linear. | |
88 | (dict_iter_name_first): Re-implement to use dict_iter_match_first. | |
89 | (dict_iter_name_next): Re-implement to use dict_iter_match_next. | |
90 | (dict_iter_match_first): New function. | |
91 | (dict_iter_match_next): New function. | |
92 | (dict_hash): New function. | |
93 | * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare. | |
94 | * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API. | |
c4d840bd | 95 | |
543ecec7 DE |
96 | 2010-10-06 Doug Evans <[email protected]> |
97 | ||
98 | * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@. | |
99 | ||
2f608a3a KW |
100 | 2010-10-06 Ken Werner <[email protected]> |
101 | ||
102 | * dwarf2read.c (read_tag_const_type): Handle const arrays. | |
103 | ||
aa2e2d8d DE |
104 | 2010-10-06 Doug Evans <[email protected]> |
105 | ||
9c9606fb DE |
106 | * Makefile.in (REQUIRED_SUBDIRS): New var. |
107 | (subdir_do): Verify required subdir Makefiles exist. | |
108 | ||
aa2e2d8d DE |
109 | Create subdir data-directory. |
110 | * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to | |
111 | data-directory/Makefile.in. | |
112 | (SUBDIRS): Add data-directory. | |
113 | (all): Remove xml-syscall-copy dependency. | |
114 | (xml-syscall-copy): Moved to data-directory/Makefile.in as | |
115 | stamp-syscalls. | |
116 | (xml-syscall-install): Moved to data-directory/Makefile.in as | |
117 | install-syscalls. | |
118 | (install-only): Remove xml-syscall-install dependency. | |
119 | (all-data-directory): New rule. | |
120 | (data-directory/Makefile): New rule. | |
121 | * configure.ac (AC_OUTPUT): Add data-directory/Makefile. | |
122 | * configure: Regenerate. | |
123 | * data-directory/Makefile.in: New file. | |
124 | * python/lib/gdb/__init__.py: New file. | |
125 | ||
aa27d0b3 JB |
126 | 2010-10-06 Joel Brobecker <[email protected]> |
127 | ||
128 | Fix ARI warnings in advance_wild_match. | |
129 | * ada-lang.c (advance_wild_match): Delete local variable t2. | |
130 | Adjust code accordingly. Minor reformatting. | |
131 | ||
2844d6b5 KW |
132 | 2010-10-06 Ken Werner <[email protected]> |
133 | ||
134 | * gdbtypes.h (struct main_type): Remove flag_nottext. | |
135 | (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT. | |
136 | (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT. | |
137 | (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext. | |
138 | * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead | |
139 | of TYPE_FLAG_NOTTEXT. | |
140 | (init_type): Remove the initialization of the flag_nottext field. | |
141 | (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of | |
142 | TYPE_FLAG_NOTTEXT. | |
143 | * c-valprint.c (c_val_print): Remove TYPE_VECTOR check. | |
144 | ||
2fdf6df6 DE |
145 | 2010-10-04 Doug Evans <[email protected]> |
146 | ||
ea65fe05 DE |
147 | * cc-with-index.sh: New file. |
148 | ||
2fdf6df6 DE |
149 | * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after |
150 | function comment. | |
151 | (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto. | |
152 | (create_cus_from_index, create_addrmap_from_index): Ditto. | |
153 | (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto. | |
154 | (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto. | |
155 | (dw2_do_expand_symtabs_matching): Ditto. | |
b89be57b DE |
156 | (eq_strtab_entry, create_strtab, add_string): Ditto. |
157 | (hash_strtab_entry): Ditto. | |
158 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto. | |
159 | (create_index_table, create_mapped_symtab, find_slot): Ditto. | |
160 | (hash_expand, add_index_entry, add_indices_to_cpool): Ditto. | |
161 | (write_hash_table, add_address_entry, write_psymbols): Ditto. | |
162 | (write_obstack, unlink_if_set, write_one_signatured_type): Ditto. | |
163 | (write_psymtabs_to_index): Ditto. | |
2fdf6df6 | 164 | |
40bc484c JB |
165 | 2010-10-04 Joel Brobecker <[email protected]> |
166 | ||
167 | * ada-lang.c: #include "value.h". | |
168 | (ensure_lval): Delete advance declaration. Remove gdbarch and sp | |
169 | arguments. Implement using value_allocate_space_in_inferior | |
170 | instead of allocating memory from the stack. | |
171 | (make_array_descriptor): Remove gdbarch and sp parameters. Update | |
172 | calls to ensure_lval. | |
173 | (ada_convert_actual): Remove gdbarch and sp parameters. Update | |
174 | calls to make_array_descriptor and ensure_lval. | |
175 | * ada-lang.h (ada_convert_actual): Update declaration. | |
176 | * infcall.c (value_arg_coerce): Update call to ada_convert_actual. | |
177 | ||
f17618ea DE |
178 | 2010-10-04 Doug Evans <[email protected]> |
179 | ||
180 | * python/python.c (_initialize_python): Define new function | |
181 | GdbSetPythonDirectory in python. Use it to update sys.path and | |
182 | gdb.__path__. | |
183 | ||
83e3a93c PH |
184 | 2010-10-03 Paul Hilfinger <[email protected]> |
185 | ||
186 | * gdb/ada-typeprint.c (print_selected_record_field_types): New function, | |
187 | incorporating and generalizing print_record_field_types. | |
188 | (print_record_field_types): Change return value and update comment. | |
189 | Re-implement using print_selected_record_field_types. | |
190 | (print_choices): Print "=>" here. | |
191 | Handle case of unencoded variant branch. | |
192 | (print_variant_clauses): Reformat comment. | |
193 | Special-case unencoded variant branch. | |
194 | ||
195 | 2010-10-03 Paul Hilfinger <[email protected]> | |
73589123 PH |
196 | |
197 | * ada-lang.c (wild_match): Reimplement. | |
198 | Change API to eliminate unused length argument, reverse arguments and | |
199 | make 0 the 'true' return value. | |
200 | (advance_wild_match): New auxiliary function for wild_match to improve | |
201 | readability. | |
202 | (ada_match_name, ada_add_block_symbols): Use new API for wild_match. | |
203 | * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new | |
204 | API for wild_match. | |
205 | * symfile.h (map_ada_symtabs): Modify declaration to use new API for | |
206 | wild_match. | |
207 | * dwarf2read.c (dw2_map_ada_symtabs): Ditto. | |
208 | ||
11570e71 DE |
209 | 2010-10-01 Doug Evans <[email protected]> |
210 | ||
211 | * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text | |
212 | for `save gdb-index' command. | |
213 | ||
72b9f47f TT |
214 | 2010-10-01 Tom Tromey <[email protected]> |
215 | ||
216 | * symfile.h (allocate_symtab): Update. | |
217 | * symfile.c (allocate_symtab): Make 'filename' const. | |
218 | * psymtab.c (add_psymbol_to_bcache): Make 'name' const. | |
219 | (add_psymbol_to_list): Likewise. | |
220 | * psympriv.h (struct partial_symtab) <filename, dirname>: Now | |
221 | const. | |
222 | (add_psymbol_to_list): Update. | |
223 | * mdebugread.c (new_symtab): Make 'name' const. | |
224 | (psymtab_to_symtab_1): Make 'filename' const. | |
225 | * elfread.c (elfstab_offset_sections): Update. | |
226 | * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const. | |
227 | (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const. | |
228 | (psymtab_include_file_name): Update. | |
229 | * dbxread.c (find_stab_function_addr): Make 'filename' const. | |
230 | * buildsym.h (start_subfile): Update. | |
231 | * buildsym.c (start_subfile): Make arguments const. | |
232 | ||
55e39473 MS |
233 | 2010-09-30 Ali Lakhia <[email protected]> |
234 | ||
235 | * fork-child.c (breakup_args): Fix crash if shell forking is | |
236 | disabled at compile time. | |
237 | ||
05e522ef JB |
238 | 2010-10-01 Joel Brobecker <[email protected]> |
239 | ||
240 | * ada-lang.c (desc_bounds): Add handling of the case where | |
241 | the P_BOUNDS field is a pointer to a stub. | |
242 | (desc_data_target_type): Same for P_ARRAY field. | |
243 | (ada_check_typedef): Strip the typedef layers from the type | |
244 | found by ada_find_any_type. | |
245 | ||
49a45ecf JB |
246 | 2010-10-01 Joel Brobecker <[email protected]> |
247 | ||
248 | * sparc-tdep.c (sparc32_frame_align): New function. | |
249 | (sparc32_gdbarch_init): Set the frame_align gdbarch method. | |
250 | * sparc64-tdep.c (sparc64_frame_align): New function. | |
251 | (sparc64_gdbarch_init): Set the frame_align gdbarch method. | |
252 | ||
a5916a62 L |
253 | 2010-09-30 H.J. Lu <[email protected]> |
254 | ||
255 | * defs.h (MAX_REGISTER_SIZE): Set to 64. | |
256 | ||
00b5771c TT |
257 | 2010-09-30 Tom Tromey <[email protected]> |
258 | ||
259 | * symfile.h (struct sym_fns) <next>: Remove. | |
260 | (add_symtab_fns): Update. | |
261 | * symfile.c (sym_fns_ptr): New typedef. | |
262 | (symtab_fns): Now a VEC. | |
263 | (add_symtab_fns): Update. Change argument type. | |
264 | (find_sym_fns): Update. Change return type. | |
265 | (get_symfile_segment_data): Update. | |
266 | * objfiles.h (struct objfile) <sf>: Now const. | |
267 | * somread.c (som_sym_fns): Now const. Update. | |
268 | * xcoffread.c (xcoff_sym_fns): Now const. Update. | |
269 | * mipsread.c (ecoff_sym_fns): Now const. Update. | |
270 | * machoread.c (macho_sym_fns): Now const. Update. | |
271 | * elfread.c (elf_sym_fns): Now const. Update. | |
272 | (elf_sym_fns_gdb_index): Likewise. | |
273 | * dbxread.c (aout_sym_fns): Now const. Update. | |
274 | * coffread.c (coff_sym_fns): Now const. Update. | |
275 | ||
38f12cfc TT |
276 | 2010-09-30 Tom Tromey <[email protected]> |
277 | ||
278 | * value.c (value_primitive_field): Take 'offset' into account for | |
279 | packed field. | |
280 | ||
9ae8282d TT |
281 | 2010-09-30 Tom Tromey <[email protected]> |
282 | ||
283 | * completer.c (count_struct_fields): Handle anonymous structs and | |
284 | unions. | |
285 | (add_struct_fields): Likewise. | |
286 | ||
e9e07ba6 JK |
287 | 2010-09-30 Jan Kratochvil <[email protected]> |
288 | ||
289 | Fix printing parameters of inlined functions. | |
290 | * ada-lang.c (is_known_support_routine) | |
291 | (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter | |
292 | for find_frame_funname. | |
293 | * python/py-frame.c (frapy_name): Likewise. | |
294 | * stack.c (find_frame_funname): New parameter funcp. Update the | |
295 | function comment. Fill it in. | |
296 | (print_frame): New variable func. Initialize it by | |
297 | find_frame_funname. Print arguments only if FUNC is not NULL. Use | |
298 | FUNC as the parameter of print_args_stub. | |
299 | * stack.h (find_frame_funname): New parameter funcp. Remove the | |
300 | function declaration comment. | |
301 | ||
cd2effb2 JK |
302 | 2010-09-30 Jan Kratochvil <[email protected]> |
303 | ||
304 | PR corefiles/12071. | |
305 | * inferior.c (have_live_inferiors): New variables old_chain, inf and | |
306 | tp. Iterate INFERIOR_LIST and call target_has_execution. | |
307 | ||
bceffbf3 JK |
308 | 2010-09-29 Jan Kratochvil <[email protected]> |
309 | ||
310 | Fix GDB crash on inferior calls with self-referencing classes. | |
311 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static | |
312 | member fields. | |
313 | ||
abc72ce4 DE |
314 | 2010-09-29 Doug Evans <[email protected]> |
315 | ||
316 | Workaround for gcc/45682. | |
317 | * dwarf2read.c (partial_die_info): New fields fixup_called, | |
318 | linkage_name. | |
319 | (guess_partial_die_structure_name): Renamed from guess_structure_name. | |
320 | Move definition next to use. Use linkage_name to determine if class | |
321 | is in a namespace. All callers updated. | |
322 | (fixup_partial_die): Return early if already called. | |
323 | Set fixup_called when done. | |
324 | (guess_full_die_structure_name): New function. | |
325 | (determine_prefix): Call it for class/struct/union dies if c++ and | |
326 | .debug_types section is present and parent is DW_TAG_compile_unit. | |
327 | ||
0ac7be25 JB |
328 | 2010-09-28 Joel Brobecker <[email protected]> |
329 | ||
330 | * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a. | |
331 | (sparc-*-rtems*): Delete. Now redundant with sparc-*-*. | |
332 | ||
6e1bb179 JB |
333 | 2010-09-28 Joel Brobecker <[email protected]> |
334 | ||
335 | * NEWS: Announce Ravenscar Profile support. | |
336 | ||
036b1ba8 JB |
337 | 2010-09-28 Joel Brobecker <[email protected]> |
338 | Jerome Guitton <[email protected]> | |
339 | ||
340 | * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c: | |
341 | New files. | |
342 | * configure.tgt (sparc-*-*): Add ravenscar-thread.o and | |
343 | ravenscar-sparc-thread.o to gdb_target_obs. | |
344 | ||
474011fb JB |
345 | 2010-09-28 Joel Brobecker <[email protected]> |
346 | ||
347 | * ada-tasks.c (iterate_over_live_ada_tasks): New function. | |
348 | * ada-lang.h (iterate_over_live_ada_tasks): Declare. | |
349 | ||
99e24b90 PM |
350 | 2010-09-27 Pierre Muller <[email protected]> |
351 | ||
352 | * amd64-windows-tdep.c (amd64_skip_main_prologue): New function. | |
353 | (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch | |
354 | skip_main_prologue method. | |
355 | ||
987d643c TT |
356 | 2010-09-27 Tom Tromey <[email protected]> |
357 | ||
358 | * dwarf2read.c (dwarf2_read_index): Only allow version 3. | |
359 | (write_psymbols): Add 'psyms_seen' and 'is_static' arguments. | |
360 | Only emit a given psymbol once. | |
361 | (struct signatured_type_index_data) <psyms_seen>: New field. | |
362 | (write_one_signatured_type): Update. | |
363 | (cleanup_htab): New function. | |
364 | (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump | |
365 | version to 3. | |
366 | (save_gdb_index_command): Update index documentation. | |
367 | ||
d3aff959 TT |
368 | 2010-09-27 Tom Tromey <[email protected]> |
369 | ||
370 | * bcache.c (expand_hash_table): Use hash_function, not hash. | |
371 | ||
716b65bf TT |
372 | 2010-09-27 Tom Tromey <[email protected]> |
373 | ||
374 | * gdb_wchar.h: Change minimum libiconv to 0x108. | |
375 | ||
1736ad11 JK |
376 | 2010-09-24 Jan Kratochvil <[email protected]> |
377 | ||
378 | Fix lost siginfo_t for inferior calls. | |
379 | * infrun.c | |
380 | (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New. | |
381 | (save_inferior_thread_state): New variables regcache, gdbarch and | |
382 | siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p. | |
383 | Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS | |
384 | using REGCACHE. | |
385 | (restore_inferior_thread_state): New variables regcache and gdbarch. | |
386 | Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using | |
387 | REGCACHE. Free also SIGINFO_DATA. | |
388 | ||
4b5246aa TT |
389 | 2010-09-24 Tom Tromey <[email protected]> |
390 | ||
391 | * dwarf2read.c (dw2_expand_symtabs_matching): Add missing | |
392 | MAYBE_SWAPs. | |
393 | (dw2_map_symbol_names): Likewise. | |
394 | ||
2a7d6a25 SW |
395 | 2010-09-24 Sami Wagiaalla <[email protected]> |
396 | ||
397 | * valops.c (find_oload_champ_namespace_loop): replace incorrect | |
398 | discard_cleanups do_cleanups. | |
399 | ||
b53a1623 PA |
400 | 2010-09-24 Pedro Alves <[email protected]> |
401 | ||
e6ee044d PA |
402 | PR gdb/11842 |
403 | ||
b53a1623 PA |
404 | * amd64-linux-nat.c (compat_siginfo_from_siginfo) |
405 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
406 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
407 | si_code < 0. | |
408 | ||
96a8853a PA |
409 | 2010-09-24 Pedro Alves <[email protected]> |
410 | ||
411 | * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop. | |
412 | ||
39383a48 JB |
413 | 2010-09-22 Joel Brobecker <[email protected]> |
414 | ||
415 | * ada-tasks.c (read_atcb): Do not compute the task ptid when | |
416 | debugging a core file. | |
417 | ||
d31d2fc3 JK |
418 | 2010-09-22 Jan Kratochvil <[email protected]> |
419 | ||
420 | Code cleanup. | |
421 | * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove. | |
422 | (free_objfile) <objfile->name != NULL>: Remove the conditional around | |
423 | xfree. | |
424 | * objfiles.h (struct objfile) <name>: New comment it is never NULL. | |
425 | * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>: | |
426 | Remove. | |
427 | * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name> | |
428 | Remove the conditional. | |
429 | * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise. | |
430 | ||
7f6130ff JK |
431 | 2010-09-22 Jan Kratochvil <[email protected]> |
432 | ||
433 | * main.c: Include objfiles.h. | |
434 | (captured_main): New variable objfile. Call | |
435 | load_auto_scripts_for_objfile for ALL_OBJFILES. | |
436 | ||
c2b0a229 JK |
437 | 2010-09-22 Jan Kratochvil <[email protected]> |
438 | ||
439 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also | |
440 | DW_TAG_constant. | |
441 | ||
72929c62 JB |
442 | 2010-09-22 Joel Brobecker <[email protected]> |
443 | ||
444 | * dwarf2read.c (scan_partial_symbols): Add handling of | |
445 | DW_TAG_constant DIEs. | |
446 | (add_partial_symbol, load_partial_dies, new_symbol): Likewise. | |
447 | ||
496c0e1b JB |
448 | 2010-09-22 Joel Brobecker <[email protected]> |
449 | ||
450 | * configure.ac: Add support for --enable-gdbserver. | |
451 | * configure: Regenerate. | |
452 | ||
ec322823 SW |
453 | 2010-09-22 Sami Wagiaalla <[email protected]> |
454 | ||
455 | PR C++/12028 | |
456 | * valops.c (find_oload_champ_namespace_loop): removed incorrect | |
457 | 'old_cleanups' reassignment. | |
458 | ||
1558ab4c JK |
459 | 2010-09-16 Jan Kratochvil <[email protected]> |
460 | ||
461 | * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted | |
462 | characters. | |
463 | ||
875b4ff5 PM |
464 | 2010-09-16 Phil Muldoon <[email protected]> |
465 | ||
466 | PR mi/11407 | |
467 | * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from | |
468 | read_var_value and common_val_print and print a warning. | |
469 | ||
65dedcb2 JK |
470 | 2010-09-15 Jan Kratochvil <[email protected]> |
471 | ||
472 | * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to | |
473 | keep the list in alphabetical order. Use longer e-mail address. | |
474 | ||
0e780a22 TT |
475 | 2010-09-15 Tom Tromey <[email protected]> |
476 | ||
477 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil. | |
478 | ||
62234ccc TT |
479 | 2010-09-15 Tom Tromey <[email protected]> |
480 | ||
481 | * charset.c (iconv_open): New define. | |
482 | (iconv): Likewise. | |
483 | (iconv_close): Likewise. | |
484 | (phony_iconv_open): Add "phony_" prefix. | |
485 | (phony_iconv_close): Likewise. | |
486 | (phony_iconv): Likewise. | |
487 | * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__. | |
488 | Change how INTERMEDIATE_ENCODING is defined. | |
489 | ||
4950bc1c DE |
490 | 2010-09-15 Doug Evans <[email protected]> |
491 | ||
492 | * dwarf2read.c (struct die_info): Fix comment. | |
493 | ||
349126ea AM |
494 | 2010-09-15 Alan Modra <[email protected]> |
495 | ||
496 | PR 4606 | |
497 | * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather | |
498 | than setting SEC_NEVER_LOAD on sections that need not be copied. | |
499 | ||
923c6a3d TT |
500 | 2010-09-14 Tom Tromey <[email protected]> |
501 | ||
502 | * psympriv.h (add_psymbol_to_list, init_psymbol_list) | |
503 | (start_psymtab_common, allocate_psymtab, discard_psymtab): | |
504 | Declare. | |
505 | * symfile.h (extend_psymbol_list): Remove. | |
506 | (add_psymbol_to_list, init_psymbol_list, start_psymtab_common) | |
507 | (allocate_psymtab, discard_psymtab): Move to psympriv.h. | |
508 | * psymtab.c (extend_psymbol_list): Move earlier. Now static. | |
509 | ||
a9e6a4bb JK |
510 | 2010-09-14 Jan Kratochvil <[email protected]> |
511 | ||
512 | * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error. | |
513 | Update the comment. | |
514 | ||
7155d578 TT |
515 | 2010-09-14 Tom Tromey <[email protected]> |
516 | ||
517 | PR symtab/8399: | |
518 | * dwarf2loc.c (locexpr_describe_location_piece): Don't call error | |
519 | for unrecognized frame base expression. | |
520 | ||
515ed532 TT |
521 | 2010-09-14 Tom Tromey <[email protected]> |
522 | ||
523 | PR exp/11803: | |
524 | * value.c (value_static_field): Use value_of_variable. | |
525 | ||
b467f580 PM |
526 | 2010-09-14 Pierre Muller <[email protected]> |
527 | ||
528 | * m32r-rom.c: Replace winsock.h with winsock2.h header. | |
529 | * remote-m32r-sdi.c: Replace winsock.h by winsock2.h. | |
530 | ||
450ca57c SW |
531 | 2010-09-13 Sami Wagiaalla <[email protected]> |
532 | ||
533 | PR symtab/11992: | |
534 | * c-exp.y (classify_name): Check is_a_member_of_this before returning | |
535 | UNKNOWN_CPP_NAME. | |
536 | ||
1aee7009 JB |
537 | 2010-09-13 Joel Brobecker <[email protected]> |
538 | ||
539 | * NEWS: Add x86-lynxos to the list of platforms supported by | |
540 | gdbserver. | |
541 | ||
5ec6ebf9 JB |
542 | 2010-09-13 Joel Brobecker <[email protected]> |
543 | ||
544 | * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos. | |
545 | ||
1863c96c TT |
546 | 2010-09-13 Tom Tromey <[email protected]> |
547 | ||
548 | * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h. | |
549 | ||
0c5acf93 L |
550 | 2010-09-13 H.J. Lu <[email protected]> |
551 | ||
552 | * i386-tdep.c (i386_ymm_type): Set type name to | |
553 | builtin_type_vec256i. | |
554 | ||
1c6272a6 MS |
555 | 2010-09-12 Michael Snyder <[email protected]> |
556 | ||
557 | * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. | |
558 | ||
e866c497 L |
559 | 2010-09-12 H.J. Lu <[email protected]> |
560 | ||
561 | * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. | |
562 | ||
9191d390 L |
563 | 2010-09-11 H.J. Lu <[email protected]> |
564 | ||
565 | * amd64-tdep.c (amd64_register_name): Removed. | |
566 | (amd64_init_abi): Don't call set_gdbarch_register_name. | |
567 | ||
568 | * i386-tdep.c (i386_ymmh_regnum_p): Make it static. | |
569 | ||
570 | * i386-tdep.h (i386_ymmh_regnum_p): Removed. | |
571 | ||
8d4d924b JK |
572 | 2010-09-11 Jan Kratochvil <[email protected]> |
573 | Paul Bolle <[email protected]> | |
574 | ||
575 | Redirect also uiout and stdtarg{,err} in execute_command_to_string. | |
576 | * cli-logging.c (struct saved_output_files) <targerr>: New. | |
577 | (set_logging_redirect, pop_output_files, handle_redirections): | |
578 | Redirect also gdb_stdtargerr. | |
579 | * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New | |
580 | declarations. | |
581 | * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect | |
582 | also gdb_stdtargerr. | |
583 | * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete | |
584 | to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr. | |
585 | Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop. | |
586 | * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr. | |
587 | * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop): | |
588 | New functions. | |
589 | ||
3329c4b5 PM |
590 | 2010-09-10 Pierre Muller <[email protected]> |
591 | ||
592 | * hppa-tdep.c (unwind_command): Use host_address_to_string function | |
593 | to display a host address. | |
594 | * monitor.c (monitor_read_memory): Likewise. | |
595 | * xtensa-tdep.c (xtensa_push_dummy_call): Likewise. | |
596 | ||
5e8db398 PM |
597 | 2010-09-10 Pierre Muller <[email protected]> |
598 | ||
599 | * coffread.c (struct coff_symbol): Change c_value type from `long' to | |
600 | `CORE_ADDRESS' as it might contain target addresses. | |
601 | ||
37049e31 PM |
602 | 2010-09-10 Pierre Muller <[email protected]> |
603 | ||
604 | * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro | |
605 | before cast to pointer to avoid warning. | |
606 | ||
351a3e56 KB |
607 | 2010-09-09 Kevin Buettner <[email protected]> |
608 | ||
609 | * v850-tdep.c (v850_gdbarch_init): Change the v850's `char' | |
610 | type to be signed. | |
349126ea | 611 | |
6afafb54 UW |
612 | 2010-09-09 Ulrich Weigand <[email protected]> |
613 | ||
614 | * dwarf2read.c (fixup_partial_die): Do not set dummy name for | |
615 | anonymous class partial DIEs. | |
616 | ||
60430eff DJ |
617 | 2010-09-08 Daniel Jacobowitz <[email protected]> |
618 | ||
619 | * dwarf2read.c (dwarf2_compute_name): Check that the first | |
620 | argument is a pointer. | |
621 | ||
f1078f66 DJ |
622 | 2010-09-08 Daniel Jacobowitz <[email protected]> |
623 | ||
624 | * dwarf2read.c (read_func_scope, read_structure_type) | |
625 | (read_common_block): Check for a NULL return from new_symbol. | |
626 | ||
82430852 JK |
627 | 2010-09-08 Jan Kratochvil <[email protected]> |
628 | ||
629 | * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS. | |
630 | ||
c767944b DJ |
631 | 2010-09-08 Daniel Jacobowitz <[email protected]> |
632 | ||
633 | * dwarf2read.c (read_structure_type): Move processing of | |
634 | fields and member functions from here... | |
635 | (process_structure_scope): ... to here. | |
636 | ||
561d3825 DJ |
637 | 2010-09-08 Daniel Jacobowitz <[email protected]> |
638 | ||
639 | * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use | |
640 | the domain type. | |
641 | (gnuv3_make_method_ptr): Likewise. | |
642 | ||
9bd89d67 TT |
643 | 2010-09-08 Tom Tromey <[email protected]> |
644 | ||
645 | * breakpoint.c (create_breakpoint): Add missing _(). | |
646 | ||
1d040b0d DE |
647 | 2010-09-08 Doug Evans <[email protected]> |
648 | ||
649 | * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused. | |
650 | ||
774b6a14 TT |
651 | 2010-09-08 Tom Tromey <[email protected]> |
652 | ||
653 | Revert: | |
654 | 2010-09-01 Tom Tromey <[email protected]> | |
655 | * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c, | |
656 | symtab.h: Revert earlier change. | |
657 | ||
fc956729 SW |
658 | 2010-09-09 Sami Wagiaalla <[email protected]> |
659 | ||
660 | * psymtab.c (add_psymbol_to_bcache): Initialize | |
661 | obj_section. | |
662 | memset psymbol.ginfo.value to 0. | |
663 | ||
48f9886d PA |
664 | 2010-09-06 Pedro Alves <[email protected]> |
665 | ||
666 | * infrun.c (resume): Extend comment on ignoring single-step | |
667 | requests on vfork parents waiting for a vfork-done. | |
668 | ||
423ec54c JK |
669 | 2010-09-06 Jan Kratochvil <[email protected]> |
670 | Pedro Alves <[email protected]> | |
671 | ||
672 | * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH | |
673 | is NULL. | |
674 | * fork-child.c (startup_inferior) <resume_signal>: Use enum | |
675 | target_signal type. | |
676 | * linux-nat.c (linux_nat_resume): Use target_signal_to_host before | |
677 | calling strsignal. Use enum target_signal type for saved_signo. | |
678 | (linux_handle_extended_wait) <signo>: Use enum target_signal type. | |
679 | (linux_nat_wait_1): Use enum target_signal type for signo. Use | |
680 | target_signal_to_host before calling strsignal. | |
681 | * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by | |
682 | TARGET_SIGNAL_0. | |
683 | ||
a6eb9bc8 JK |
684 | 2010-09-06 Pedro Alves <[email protected]> |
685 | Jan Kratochvil <[email protected]> | |
686 | ||
687 | * common/signals.c (ANY): Remove. | |
688 | (SET): No longer use ANY. | |
689 | ||
74609e71 YQ |
690 | 2010-09-06 Yao Qi <[email protected]> |
691 | ||
692 | * infrunc(resume): When inferior is waiting_for_vfork_done, | |
693 | clear step and don't use displaced stepping. | |
694 | ||
8464be76 DJ |
695 | 2010-09-04 Daniel Jacobowitz <[email protected]> |
696 | ||
697 | * breakpoint.c (can_use_hardware_watchpoint): Handle the first | |
698 | value specially. | |
699 | ||
33d62d64 JK |
700 | 2010-09-04 Jan Kratochvil <[email protected]> |
701 | ||
702 | Code cleanup - split print_stop_reason. | |
703 | * infrun.c (enum inferior_stop_reason): Remove. | |
704 | (print_stop_reason): Remove by splitting into ... | |
705 | (print_exited_reason, print_signal_exited_reason) | |
706 | (print_no_history_reason, print_signal_received_reason) | |
707 | (print_end_stepping_range_reason): ... these new functions. Update | |
708 | the preceding comment. | |
709 | (handle_inferior_event): Change the calls to print_exited_reason, | |
710 | print_signal_exited_reason, print_no_history_reason, | |
711 | print_signal_received_reason, print_end_stepping_range_reason. | |
712 | (handle_step_into_function, handle_step_into_function_backward): | |
713 | Change the calls to print_end_stepping_range_reason. | |
714 | ||
14dba4b4 JK |
715 | 2010-09-03 Jan Kratochvil <[email protected]> |
716 | ||
717 | * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL. | |
718 | * cli-out.c: Include vec.h. | |
719 | (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New | |
720 | variable stream, initialize it, use it. | |
721 | (cli_redirect): New function comment. Replace the stream and | |
722 | original_stream fields by the new streams field. Remove the | |
723 | original_stream != NULL conditional, assert error on NULL instead. | |
724 | (out_field_fmt, field_separator): New variable stream, initialize it, use it. | |
725 | (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and | |
726 | original_stream fields by the new streams field. | |
727 | (cli_out_set_stream): Replace the stream field by the new streams | |
728 | field. | |
729 | * cli-out.h: Include vec.h. | |
730 | (ui_filep): New typedef, call DEF_VEC_P for it. | |
731 | (struct cli_ui_out_data): Replace the stream and original_stream | |
732 | fields by the new streams field. | |
733 | * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with | |
734 | NULL first. Extend the comment. | |
735 | (handle_redirections): Call ui_out_redirect with output. | |
736 | * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect | |
737 | calls outside of the TRY_CATCH block. | |
738 | ||
b04bc5d4 | 739 | 2010-09-03 Joel Brobecker <[email protected]> |
740 | ||
741 | GDB 7.2 released. | |
742 | ||
080db4e0 JB |
743 | 2010-09-02 Joel Brobecker <[email protected]> |
744 | ||
745 | Back out the following change: | |
746 | | 2010-06-29 Hui Zhu <[email protected]> | |
747 | | * record.c (set_record_pic_cmdlist, | |
748 | | show_record_pic_cmdlist): New variables. | |
749 | | (set_record_pic_command, | |
750 | | show_record_pic_command): New functions. | |
751 | | (record_pic_function, record_pic_line, record_pic_enum, | |
752 | | set_record_pic_type, record_pic_hide_nofunction, | |
753 | | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
754 | | (record_pic_fputs): New function. | |
755 | | (function_list, node_list, edge_list): New struct. | |
756 | | (function_list, node_list, edge_list): New variables. | |
757 | | (record_pic_cleanups, record_pic_node, | |
758 | | record_pic_edge, cmd_record_pic): New functions. | |
759 | | (_initialize_record): Add new commands for record pic. | |
760 | ||
0a4f61e3 DJ |
761 | 2010-09-02 Daniel Jacobowitz <[email protected]> |
762 | ||
763 | * config.in, configure: Regenerated. | |
764 | * configure.ac: Check for waitpid. | |
765 | * ser-pipe.c (pipe_close): Wait for the program to exit. | |
766 | ||
58b61394 JK |
767 | 2010-09-02 Jan Kratochvil <[email protected]> |
768 | ||
ba720883 | 769 | * cli/cli-logging.c: Include gdb_assert.h. |
58b61394 JK |
770 | (set_logging_overwrite): New function. |
771 | (logging_redirect): New comment. | |
772 | (logging_no_redirect_file, set_logging_redirect) | |
773 | (pop_output_files) <logging_no_redirect_file>: New. | |
774 | (handle_redirections) <!logging_redirect>: New variable | |
775 | no_redirect_file. Remove file autoclose for tee_file_new. No longer | |
776 | discard cleanup for the close of former OUTPUT. Set | |
777 | LOGGING_NO_REDIRECT_FILE. | |
778 | (handle_redirections) <logging_redirect>: gdb_assert | |
779 | LOGGING_NO_REDIRECT_FILE. | |
780 | (show_logging_command) <logging_redirect handling>: Adjust messages | |
781 | for SAVED_FILENAME not NULL. | |
782 | (_initialize_cli_logging): Install set_logging_overwrite and | |
783 | set_logging_redirect. | |
784 | ||
706774f2 JK |
785 | 2010-09-02 Jan Kratochvil <[email protected]> |
786 | ||
787 | * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END. | |
788 | ||
9a35ccf7 JK |
789 | 2010-09-02 Jan Kratochvil <[email protected]> |
790 | ||
791 | * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form. | |
792 | (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and | |
793 | add $(GDB_WARN_CFLAGS_NO_FORMAT). | |
794 | (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS). | |
795 | ||
ba9b2ec3 YQ |
796 | 2010-09-02 Yao Qi <[email protected]> |
797 | ||
798 | * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal | |
799 | number from a WIFSIGNALED status. | |
800 | ||
faf68db7 TT |
801 | 2010-09-01 Tom Tromey <[email protected]> |
802 | ||
803 | * symtab.h (lookup_type_symbol): Declare. | |
804 | * symtab.c (lookup_symbol_in_language_full): Rename from | |
805 | lookup_symbol_in_language. Add 'for_type' argument. | |
806 | (lookup_symbol_in_language): New function. | |
807 | (lookup_type_symbol): Likewise. | |
808 | (lookup_symbol_aux): Add 'for_type' argument. | |
809 | (match_symbol_aux): New function. | |
810 | (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching. | |
811 | (match_transparent_type): New function. | |
812 | (basic_lookup_transparent_type): Use expand_one_symtab_matching. | |
813 | * symfile.h (struct quick_symbol_functions) | |
814 | <pre_expand_symtabs_matching>: Remove. | |
815 | <expand_one_symtab_matching>: New field. | |
816 | * psymtab.c (expand_one_symtab_matching_psymtabs): New function. | |
817 | (pre_expand_symtabs_matching_psymtabs): Remove. | |
818 | (psym_functions): Update. | |
819 | * gdbtypes.c (lookup_typename): Use lookup_type_symbol. | |
820 | * dwarf2read.c (dw2_lookup_symbol): Update comment. | |
821 | (dw2_pre_expand_symtabs_matching): Remove. | |
822 | (dw2_expand_one_symtab_matching): New function. | |
823 | (dwarf2_gdb_index_functions): Update. | |
824 | ||
248c9dbc JB |
825 | 2010-09-01 Joel Brobecker <[email protected]> |
826 | ||
827 | * NEWS: Add entry announcing GDBserver support on powerpc-lynxos. | |
828 | ||
f75d858b MK |
829 | 2010-09-01 Marc Khouzam <[email protected]> |
830 | ||
831 | * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse' | |
832 | as a feature reported by -list-target-features. | |
833 | ||
0482b03b JB |
834 | 2010-09-01 Joel Brobecker <[email protected]> |
835 | ||
836 | * features/Makefile (WHICH): Add rs6000/powerpc-32. | |
837 | (powerpc-32.o, powerpc-32.c): New rules. | |
838 | (clean): Also remove powerpc-32.c. | |
839 | * regformats/rs6000/powerpc-32.dat: Generate. | |
840 | ||
710e1a31 SW |
841 | 2010-08-31 Sami Wagiaalla <[email protected]> |
842 | ||
843 | * symfile.c (reread_symbols): Use psymbol_bcache_free, and | |
844 | psymbol_bcache_init. | |
845 | * psymtab.h (psymbol_bcache_init): New function prototype. | |
846 | (psymbol_bcache_free): New function prototype. | |
847 | (psymbol_bcache_get_bcache): New function prototype. | |
848 | * psymtab.c (psymbol_bcache_init): New function. | |
849 | (psymbol_bcache_free): New function. | |
850 | (psymbol_bcache_full): New function. | |
851 | (psymbol_bcache_get_bcache): New function. | |
852 | (add_psymbol_to_bcache): use psymbol_bcache_full. | |
853 | * objfiles.h (psymbol_cache): Change type of psymbol_cache to | |
854 | psymbol_bcache. | |
855 | * symmisc.c (print_symbol_bcache_statistics): Updated. | |
856 | (print_objfile_statistics): Updated. | |
857 | * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize | |
858 | psymbol_cache. | |
859 | (free_objfile): Use psymbol_bcache_free. | |
860 | ||
64382290 TT |
861 | 2010-08-31 Tom Tromey <[email protected]> |
862 | ||
863 | PR c++/11961: | |
864 | * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>: | |
865 | Don't set TYPE_NAME on the type. | |
866 | ||
8bbed405 MS |
867 | 2010-08-31 Michael Snyder <[email protected]> |
868 | ||
869 | * infrun.c (set_exec_direction_func): Error out if target does not | |
870 | support reverse execution. | |
871 | ||
06253dd3 JK |
872 | 2010-08-31 Jan Kratochvil <[email protected]> |
873 | ||
874 | Make linux_get_siginfo_type `type *' unique. | |
875 | * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data) | |
876 | (init_linux_gdbarch_data, get_linux_gdbarch_data): New. | |
877 | (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize | |
878 | it. Use linux_gdbarch_data->siginfo_type as a persistent storage. | |
879 | (_initialize_linux_tdep): New. | |
880 | ||
b8edc417 JK |
881 | 2010-08-31 Jan Kratochvil <[email protected]> |
882 | ||
883 | Code cleanup. | |
884 | * defs.h (find_memory_region_ftype): New typedef. | |
885 | (exec_set_find_memory_regions): Use it. | |
886 | * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype. | |
887 | * fbsd-nat.c (fbsd_find_memory_regions): Likewise. | |
888 | * gcore.c (objfile_find_memory_regions): Likewise. | |
889 | * gnu-nat.c (gnu_find_memory_regions): Likewise. | |
890 | * linux-nat.c (linux_nat_find_memory_regions): Likewise. | |
891 | * procfs.c (iterate_over_mappings_cb_ftype): Remove. | |
892 | (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to | |
893 | find_memory_region_ftype. | |
894 | (insert_dbx_link_bpt_in_region): Likewise. | |
895 | (iterate_over_mappings): Likewise. Drop the comment part about the | |
896 | function prototype. | |
897 | (find_memory_regions_callback): Use find_memory_region_ftype. | |
898 | (proc_find_memory_regions): Likewise. | |
899 | (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to | |
900 | find_memory_region_ftype. | |
901 | * target.c (dummy_find_memory_regions): Use find_memory_region_ftype. | |
902 | * target.h (struct target_ops) <to_find_memory_regions>: Likewise. | |
903 | ||
cbd70537 SW |
904 | 2010-08-31 Sami Wagiaalla <[email protected]> |
905 | ||
906 | * psymtab.c (add_psymbol_to_bcache): Remove 'static' from | |
907 | 'static partial_symbol psymbol'. | |
908 | (psymbol_hash): New function. | |
909 | (psymbol_compare): New function. | |
910 | * bcache.c (hash_continue): New. | |
911 | (hash): Use hash_continue. | |
912 | * bcache.c: Add hash_function and compare_function | |
913 | pointers to bcache struct. | |
914 | (bcache_full): Use bcache->hash_function, and | |
915 | bcache->compare_function. | |
916 | (bcache_compare): New function. | |
917 | (bcache_xmalloc): Take hash_function and | |
918 | compare_function arguments and initialize the | |
919 | bcach's pointers. | |
920 | Updated comment. | |
921 | * objfiles.c (allocate_objfile): Updated. | |
922 | * symfile.c (reread_symbols): Updated. | |
923 | * python/py-type.c (typy_richcompare): Updated. | |
924 | ||
03f17ccf TT |
925 | 2010-08-30 Andre Poenitz <[email protected]> |
926 | Tom Tromey <[email protected]> | |
927 | ||
928 | PR python/11792: | |
929 | * python/py-value.c (valpy_get_dynamic_type): New function. | |
930 | (value_object_getset): Add "dynamic_type". | |
931 | (valpy_get_type): Fail on error. | |
932 | ||
25b41d01 YQ |
933 | 2010-08-30 Yao Qi <[email protected]> |
934 | ||
935 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New. | |
936 | (arm_linux_syscall_next_pc): New. | |
937 | (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. | |
938 | (arm_linux_init_abi): Initialize syscall_next_pc. | |
939 | * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode. | |
940 | (arm_get_next_pc_raw): Get next pc of SWI in ARM mode. | |
941 | * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. | |
942 | Declare arm_frame_is_thumb. | |
943 | ||
5760d0ab JK |
944 | 2010-08-30 Jan Kratochvil <[email protected]> |
945 | ||
946 | Code cleanup. | |
947 | * breakpoint.c (bpstat_alloc): Remove unused prototype. | |
948 | (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the | |
949 | code. | |
950 | (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust | |
951 | calls of bpstat_alloc. Remove explicit bs chain termination. | |
952 | ||
46a96992 JK |
953 | 2010-08-28 Jan Kratochvil <[email protected]> |
954 | ||
955 | Code cleanup. | |
956 | * linux-nat.c (pull_pid_from_list): Rename status to statusp. | |
957 | (my_waitpid): Likewise. | |
958 | ||
36374493 DE |
959 | 2010-08-27 Doug Evans <[email protected]> |
960 | ||
961 | * dwarf2read.c (dw2_require_line_header): Read from .debug_types | |
962 | as appropriate. | |
963 | ||
8b93c54c TT |
964 | 2010-08-27 Tom Tromey <[email protected]> |
965 | ||
966 | * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set | |
967 | TYPE_FIELD_IGNORE_BITS. | |
968 | ||
16be1145 DE |
969 | 2010-08-27 Doug Evans <[email protected]> |
970 | ||
971 | * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match | |
972 | the order they're defined in. munmap .debug_types buffer. | |
973 | ||
e254ef6a DE |
974 | 2010-08-26 Doug Evans <[email protected]> |
975 | ||
976 | * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu. | |
977 | (dw2_forget_cached_source_info): Rename local cu to per_cu. | |
978 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto. | |
979 | (dw2_print_stats, dw2_expand_all_symtabs): Ditto. | |
980 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto. | |
981 | (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto. | |
982 | (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto. | |
983 | (dwarf2_free_objfile, write_one_signatured_type): Ditto. | |
984 | (write_psymtabs_to_index): Ditto. | |
985 | ||
ae53ffa4 PA |
986 | 2010-08-26 Pedro Alves <[email protected]> |
987 | ||
988 | * NEWS: Mention libthread_db debugging with core files. | |
989 | ||
c6da4cef DE |
990 | 2010-08-26 Doug Evans <[email protected]> |
991 | ||
992 | * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary | |
993 | forward decl. Pass pst->dirname to dwarf_decode_lines. | |
994 | (psymtab_include_file_name): New function. | |
995 | (dwarf_decode_lines): Call it. Update comments. | |
996 | ||
cd02d79d PA |
997 | 2010-08-25 Pedro Alves <[email protected]> |
998 | ||
999 | * dwarf2read.c (inherit_abstract_dies): Handle origin die's | |
1000 | compilation unit being different from target die's. | |
1001 | ||
673bfd45 DE |
1002 | 2010-08-24 Doug Evans <[email protected]> |
1003 | ||
1004 | PR symtab/11942 | |
1005 | * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash, | |
1006 | debug_types_type_hash. | |
1007 | (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash. | |
1008 | All uses updated. | |
1009 | (lookup_die_type): Renamed from tag_type_to_tag. First look in | |
1010 | appropriate type_hash table. All callers updated. | |
1011 | (allocate_signatured_type_table): Renamed from | |
1012 | allocate_signatured_type_hash_table. All callers updated. | |
1013 | (create_signatured_type_table_from_index): Renamed from | |
1014 | create_signatured_type_hash_from_index. All callers updated. | |
1015 | (read_die_type): Add comment. Move actual reading to ... | |
1016 | (read_die_type_1): ... here. New function. | |
1017 | (follow_die_ref_or_sig): Tweak comment. | |
1018 | (set_die_type): Rewrite to use appropriate choice of | |
1019 | debug_info_type_hash or debug_types_type_hash. | |
1020 | (get_die_type_at_offset): New function. | |
1021 | (get_die_type): Call it. | |
1022 | ||
e8fd65ef JK |
1023 | 2010-08-24 Jan Kratochvil <[email protected]> |
1024 | ||
1025 | * python/py-type.c (typy_richcompare): Initialize worklist. | |
1026 | ||
9779414d DJ |
1027 | 2010-08-24 Daniel Jacobowitz <[email protected]> |
1028 | Kazu Hirata <[email protected]> | |
1029 | Jonathan Larmour <[email protected]> | |
1030 | ||
1031 | * arm-tdep.c: Include features/arm-with-m.c. | |
1032 | (arm_psr_thumb_bit): New. Update all uses of CPSR_T to | |
1033 | call this function. | |
1034 | (arm_pc_is_thumb): Add a gdbarch argument. Update all callers. | |
1035 | Check is_m after force-mode. | |
1036 | (arm_gdbarch_init): Check the binary before the target description. | |
1037 | Add check for M profile attribute. If we have an M-profile device, | |
1038 | but no target register description, use arm-with-m. Recognize the | |
1039 | new org.gnu.gdb.arm.m-profile feature and its xpsr register. | |
1040 | (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m. | |
1041 | * arm-tdep.h (XPSR_T): Define. | |
1042 | (struct gdbarch_tdep): Add is_m member. | |
1043 | * features/arm-m-profile.xml, features/arm-with-m.c, | |
1044 | features/arm-with-m.xml: New files. | |
1045 | ||
9dc481d3 DE |
1046 | 2010-08-23 Doug Evans <[email protected]> |
1047 | ||
1048 | * dwarf2read.c (read_structure_type): Add comment. | |
1049 | (read_enumeration_type): Add comment. | |
1050 | (process_enumeration_scope): Move definition of some locals | |
1051 | closer to their use. | |
1052 | (read_namespace_type): Add comment. | |
e71ec853 | 1053 | (set_die_type): Fix typo in comment. |
9dc481d3 | 1054 | |
f9ffd4bb TT |
1055 | 2010-08-23 Tom Tromey <[email protected]> |
1056 | ||
1057 | PR python/11145: | |
1058 | * python/py-value.c: Include expression.h. | |
1059 | (valpy_do_cast): New function. | |
1060 | (valpy_cast): Use it. | |
1061 | (valpy_dynamic_cast): New function. | |
1062 | (valpy_reinterpret_cast): Likewise. | |
1063 | (value_object_methods): Add dynamic_cast, reinterpret_cast. | |
1064 | ||
96f73ba5 TT |
1065 | 2010-08-23 Tom Tromey <[email protected]> |
1066 | ||
1067 | PR python/11391: | |
1068 | * python/py-value.c (valpy_nonzero): Don't throw error for other | |
1069 | Value types. | |
1070 | ||
d839c8a4 TT |
1071 | 2010-08-23 Tom Tromey <[email protected]> |
1072 | ||
1073 | PR python/10676: | |
1074 | * python/py-type.c: Include bcache.h, vec.h. | |
1075 | (struct type_equality_entry): New. | |
1076 | (compare_strings): New function. | |
1077 | (check_types_equal): Likewise. | |
1078 | (check_types_worklist): Likewise. | |
1079 | (typy_richcompare): Likewise. | |
1080 | (type_object_type): Set tp_richcompare field. | |
1081 | ||
05d0e1e7 TT |
1082 | 2010-08-23 Tom Tromey <[email protected]> |
1083 | ||
1084 | PR python/10953: | |
1085 | * python/py-type.c (typy_fields): Call check_typedef. | |
1086 | (typy_template_argument): Add TRY_CATCH. | |
1087 | ||
702c2711 TT |
1088 | 2010-08-23 Tom Tromey <[email protected]> |
1089 | ||
1090 | PR python/11915: | |
1091 | * python/py-type.c (typy_array): New function. | |
1092 | (type_object_methods): Add "array". | |
1093 | ||
4a532131 PA |
1094 | 2010-08-20 Pedro Alves <[email protected]> |
1095 | ||
1096 | * python/python.c: Include "serial.h". | |
1097 | (gdbpy_event_fds): Change type to `struct serial *' a array from | |
1098 | int array. | |
1099 | (gdbpy_run_events): Change parameters. Use serial_readchar in | |
1100 | place of read. | |
1101 | (gdbpy_post_event): Use serial_write in place of write. | |
1102 | (gdbpy_initialize_events): Use serial_pipe instead of pipe, and | |
1103 | serial_async in place of add_file_handler. | |
1104 | ||
58f07bae PA |
1105 | 2010-08-20 Pedro Alves <[email protected]> |
1106 | ||
1107 | * serial.h (gdb_pipe, serial_pipe): Declare. | |
1108 | * serial.c (serial_interface_lookup): Take a const char pointer. | |
1109 | (serial_fdopen): Rename to ... | |
1110 | (serial_fdopen_ops): ... this. Add an OPS parameter and use it. | |
1111 | Call the OPS' fdopen function if there is one. | |
1112 | (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops. | |
1113 | (serial_pipe): New. | |
1114 | (struct serial_ops) <fdopen>: New field. | |
1115 | ||
1116 | * ser-mingw.c (free_pipe_state): | |
1117 | (free_pipe_state): Close output on non-pex pipes. | |
1118 | (pipe_windows_fdopen): New. | |
1119 | (gdb_pipe): New. | |
1120 | (_initialize_ser_windows): Register pipe_windows_fdopen. | |
1121 | * ser-go32.c (gdb_pipe): New. | |
1122 | * ser-pipe.c (pipe_close): Close file descriptor even if there's | |
1123 | no state pointer. | |
1124 | (pipe_ops): Delete. | |
1125 | (gdb_pipe): New. | |
1126 | ||
3da10d80 KS |
1127 | 2010-08-20 Keith Seitz <[email protected]> |
1128 | ||
1129 | PR symtab/11465: | |
889bf7c5 | 1130 | * dwarf2read.c (struct delayed_method_info): New struct. |
3da10d80 KS |
1131 | (struct dwarf2_cu): Add vector method_list. |
1132 | (scan_partial_symbols): Count methods for union, class, structure, | |
1133 | and interface types. | |
1134 | (add_to_method_list): New function. | |
1135 | (free_delayed_list): New function. | |
1136 | (compute_delayed_physnames): New function. | |
1137 | (process_full_comp_unit): Make a cleanup for the CU's delayed | |
1138 | physname list, compute the delayed physnames, and free the | |
1139 | the list. | |
1140 | (dwarf2_add_member_fn): For C++ and Java, delay the computation | |
1141 | of the physname until after the CU is read. | |
1142 | ||
1143 | * dwarf2read.c (read_structure_type): Check if the current | |
1144 | DIE's type was already completed after dwarf2_full_name | |
1145 | was called. | |
889bf7c5 | 1146 | |
ca11e899 SS |
1147 | 2010-08-19 Stan Shebs <[email protected]> |
1148 | ||
1149 | * NEWS: Mention some additional changes. | |
1150 | ||
4d2dc20a TT |
1151 | 2010-08-19 Tom Tromey <[email protected]> |
1152 | ||
1153 | * Makefile.in (install-python): Add DESTDIR. | |
1154 | ||
d30f5e1f DE |
1155 | 2010-08-19 Doug Evans <[email protected]> |
1156 | ||
1157 | PR exp/11926 | |
1158 | * parser-defs.h (parse_float, parse_c_float): Declare. | |
1159 | * parse.c (parse_float, parse_c_float): New function. | |
1160 | * c-exp.y (parse_number): Call parse_c_float. | |
1161 | * objc-exp.y (parse_number): Ditto. | |
1162 | * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition. | |
1163 | * jv-exp.y (parse_number): Call parse_float, fix suffix handling. | |
1164 | ||
2837d59e JB |
1165 | 2010-08-19 Joel Brobecker <[email protected]> |
1166 | ||
1167 | * psymtab.c (map_symbol_filenames_psymtab): Call FUN with | |
1168 | the arguments in the correct order. | |
1169 | * symtab.c (maybe_add_partial_symtab_filename): Declare | |
1170 | the arguments in the correct order. | |
1171 | ||
35633fef JK |
1172 | 2010-08-19 Jan Kratochvil <[email protected]> |
1173 | ||
1174 | * varobj.c (varobj_create): Replace variable old_fi with old_id, | |
1175 | initialize it by null_frame_id, wrap its usage by get_frame_id, | |
1176 | frame_id_p and frame_find_by_id. | |
1177 | ||
94f7449c TT |
1178 | 2010-08-18 Tom Tromey <[email protected]> |
1179 | ||
1180 | PR python/11900: | |
1181 | * configure: Rebuild. | |
1182 | * configure.ac: Add install-python to CONFIG_INSTALL. | |
1183 | * Makefile.in (install-python): New. | |
1184 | ||
f3574227 DE |
1185 | 2010-08-18 Doug Evans <[email protected]> |
1186 | ||
1187 | * gdb_assert.h (gdb_assert_not_reached): New macro. | |
1188 | (gdb_assert_fail): Fix typo in comment. | |
1189 | * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of | |
1190 | gdb_assert (0). | |
1191 | * darwin-nat.c (darwin_check_new_threads): Ditto. | |
1192 | * dwarf2read.c (dwarf2_get_section_info): Ditto. | |
1193 | (munmap_section_buffer): Ditto. | |
1194 | * m32c-tdep.c (make_types): Ditto. | |
1195 | (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto. | |
1196 | * macroexp.c (get_character_constant): Ditto. | |
1197 | (get_string_literal): Ditto. | |
1198 | * mep-tdep.c (mep_pseudo_cr_size): Ditto. | |
1199 | (mep_pseudo_cr_index, mep_register_type): Ditto. | |
1200 | (mep_pseudo_register_read, mep_pseudo_register_write): Ditto. | |
1201 | (mep_get_insn, mep_analyze_prologue): Ditto. | |
1202 | * objfiles.c (qsort_cmp): Ditto. | |
1203 | * prologue-value.c (pv_is_identical): Ditto. | |
1204 | * record.c (record_get_loc): Ditto. | |
1205 | * value.c (value_static_field): Ditto. | |
1206 | * xtensa-tdep.c (call0_track_op): Ditto. | |
1207 | ||
c92817ce TT |
1208 | 2010-08-18 Tom Tromey <[email protected]> |
1209 | ||
1210 | PR symtab/11919: | |
1211 | * gdbtypes.c (lookup_struct_elt_type): Clean up error emission. | |
1212 | * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move | |
1213 | name-copying lower. Document exception behavior. | |
1214 | * completer.c (expression_completer): Catch exceptions from | |
1215 | parse_field_expression. | |
1216 | ||
856d6f99 PA |
1217 | 2010-08-18 Pedro Alves <[email protected]> |
1218 | ||
1219 | PR corefile/8210 | |
1220 | ||
1221 | * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983 | |
1222 | workaround on core files. | |
1223 | (try_thread_db_load_1): Don't try enabling thread event reporting | |
1224 | on core files. | |
1225 | (thread_db_load): Allow thread_db on core files. | |
1226 | (attach_thread): Don't check thread signals on core files, nor try | |
1227 | really attaching to the thread, nor enabling thread event event | |
1228 | reporting. | |
1229 | (thread_db_detach): Don't try disabing thread event reporting or | |
1230 | removing thread event breakpoints when debugging a core file. | |
1231 | (find_new_threads_callback): Don't try enabling thread event | |
1232 | reporting on core files. | |
1233 | (thread_db_find_new_threads_2): Don't look for a stopped lwp when | |
1234 | debugging a core file. | |
1235 | (thread_db_find_new_threads): Don't update thread | |
1236 | cores (processors) when debugging a core (dump). | |
1237 | ||
261b8d08 PA |
1238 | 2010-08-18 Pedro Alves <[email protected]> |
1239 | ||
1240 | PR corefile/8210 | |
1241 | ||
1242 | * corelow.c (add_to_thread_list): Don't use | |
1243 | gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid. | |
1244 | (get_core_register_section): Don't use | |
1245 | gdbarch_core_reg_section_encodes_pid. | |
1246 | ||
1247 | * gdbarch.sh (core_reg_section_encodes_pid): Delete. | |
1248 | * gdbarch.h, gdbarch.c: Regenerate. | |
1249 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set | |
1250 | gdbarch_core_reg_section_encodes_pid. | |
1251 | * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto. | |
1252 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto. | |
1253 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto. | |
1254 | ||
f9b42018 YQ |
1255 | 2010-08-18 Yao Qi <[email protected]> |
1256 | ||
1257 | * MAINTAINERS : Add myself under Write After Approval. | |
1258 | ||
def98928 TT |
1259 | 2010-08-17 Tom Tromey <[email protected]> |
1260 | ||
1261 | * NEWS: Mention template parameter support. | |
1262 | ||
0807b50c PA |
1263 | 2010-08-17 Pedro Alves <[email protected]> |
1264 | ||
1265 | PR breakpoints/11371 | |
1266 | ||
1267 | * breakpoint.c (decref_bp_location): Assert the reference count is | |
1268 | sane. | |
1269 | ||
f431efe5 PA |
1270 | 2010-08-17 Pedro Alves <[email protected]> |
1271 | ||
1272 | PR breakpoints/11371 | |
1273 | ||
1274 | * breakpoint.c (breakpoint_init_inferior): Decrement the | |
1275 | location's reference count instead of deleting right away. | |
1276 | (bpstat_free): Decrement the location's reference count. Make | |
1277 | static. | |
1278 | (bpstat_copy): Increment the location's reference count. | |
1279 | (bpstat_find_breakpoint): Adjust. | |
1280 | (bpstat_num): Adjust. | |
1281 | (print_it_typical): Adjust. Use the breakpoint pointer in the | |
1282 | bpstat instead of the location's owner. | |
1283 | (bpstat_alloc): Remove const qualifier from the 'bl' parameter. | |
1284 | Adjust to record the location's owner in the bpstat. | |
1285 | (watchpoint_check): Use the breakpoint pointer in the bpstat | |
1286 | instead of the location's owner. | |
1287 | (bpstat_check_breakpoint_conditions): Don't handle | |
1288 | bp_watchpoint_scope here. Use the breakpoint pointer in the | |
1289 | bpstat instead of the location's owner. | |
1290 | (bpstat_stop_status): Defer inferior function calls to after | |
1291 | building the bpstat list. Handle bp_watchpoint_scope here. Use | |
1292 | the breakpoint pointer in the bpstat instead of the location's | |
1293 | owner. | |
1294 | (bpstat_what): Use the breakpoint pointer in the bpstat instead of | |
1295 | the location's owner. | |
1296 | (free_bp_location): Don't walk bpstats clearing locations. | |
1297 | (incref_bp_location): New. | |
1298 | (decref_bp_location): New. | |
1299 | (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat | |
1300 | instead of the location's owner. | |
1301 | (update_global_location_list): Clear the location's owner, and | |
1302 | decrement the location's reference count instead of deleting it | |
1303 | right away. | |
1304 | (breakpoint_retire_moribund): Decrement the location's reference | |
1305 | count instead of deleting it right away. | |
1306 | (bpstat_remove_bp_location): Delete. | |
1307 | (bpstat_remove_breakpoint): New. | |
1308 | (bpstat_remove_bp_location_callback): Delete. | |
1309 | (bpstat_remove_breakpoint_callback): New. | |
1310 | (delete_breakpoint): Iterate over all threads' stop_bpstat's | |
1311 | clearing references to the breakpoint that is being deleted. | |
1312 | ||
1313 | * breakpoint.h (struct bp_location) <refc>: New field. | |
1314 | <owner>: Update comments. | |
1315 | (bpstat_free): Delete declaration. | |
1316 | (struct bpstats): Change the type of the breakpoint_at field to | |
1317 | struct breakpoint point, from struct bp_location pointer. Add new | |
1318 | field bp_location_at. | |
1319 | ||
14c0d4e1 TT |
1320 | 2010-08-16 Tom Tromey <[email protected]> |
1321 | ||
1322 | * NEWS: Fix typo. | |
1323 | ||
b56df873 TT |
1324 | 2010-08-16 Tom Tromey <[email protected]> |
1325 | ||
1326 | * NEWS: Mention watch -location. | |
1327 | ||
d63d0675 JK |
1328 | 2010-08-16 Jan Kratochvil <[email protected]> |
1329 | ||
1330 | * breakpoint.c (update_watchpoint): Add source empty line. Prefer | |
1331 | EXP_STRING_REPARSE to EXP_STRING. | |
1332 | (watch_command_1): Set also EXP_STRING_REPARSE. | |
1333 | (delete_breakpoint): Free also EXP_STRING_REPARSE. | |
1334 | * breakpoint.h (struct breakpoint): New field exp_string_reparse. | |
1335 | Update comment for exp_string. | |
1336 | ||
06a64a0b TT |
1337 | 2010-08-16 Tom Tromey <[email protected]> |
1338 | ||
1339 | * value.c (release_value): Clear 'next' pointer. | |
1340 | * breakpoint.c (watch_command_1): Add 'just_location' argument. | |
1341 | (watch_command_wrapper): Update. | |
1342 | (watch_maybe_just_location): New function. | |
1343 | (watch_command): Update. | |
1344 | (rwatch_command_wrapper): Update. | |
1345 | (rwatch_command): Update. | |
1346 | (awatch_command_wrapper): Update. | |
1347 | (awatch_command): Update. | |
1348 | (check_for_argument): New function. | |
1349 | (_initialize_breakpoint): Update help text. | |
1350 | ||
f96b8fa0 UW |
1351 | 2010-08-14 Ulrich Weigand <[email protected]> |
1352 | ||
1353 | * arm-tdep.c (arm_push_dummy_call): Handle pointers to | |
1354 | typedef'ed function types correctly. | |
1355 | ||
4eb54052 TT |
1356 | 2010-08-13 Tom Tromey <[email protected]> |
1357 | ||
1358 | * python/python-internal.h (gdbpy_get_hook_function): Don't | |
1359 | declare. | |
1360 | ||
44be957e JK |
1361 | 2010-08-13 Jan Kratochvil <[email protected]> |
1362 | ||
ba720883 | 1363 | * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them |
44be957e JK |
1364 | static. |
1365 | ||
76d8b686 KW |
1366 | 2010-08-13 Ken Werner <[email protected]> |
1367 | ||
1368 | * python/python.c (gdbpy_solib_name): Remove the const qualifier of | |
1369 | the format strings to be compatible with Python 2.4. | |
1370 | ||
8dedea02 VP |
1371 | 2010-08-13 Vladimir Prus <[email protected]> |
1372 | ||
1373 | Easier and more stubborn MI memory read commands. | |
1374 | ||
1375 | * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes | |
1376 | and data-write-memory-bytes. | |
1377 | * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes) | |
1378 | (mi_cmd_data_write_memory_bytes): New. | |
1379 | * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read. | |
1380 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes): | |
1381 | New. | |
1382 | (mi_cmd_list_features): Add "data-read-memory-bytes" feature. | |
1383 | * target.c (target_read_until_error): Remove. | |
1384 | (read_whatever_is_readable, free_memory_read_result_vector) | |
1385 | (read_memory_robust): New. | |
1386 | * target.h (target_read_until_error): Remove. | |
1387 | (struct memory_read_result, free_memory_read_result_vector) | |
1388 | (read_memory_robust): New. | |
1389 | ||
1d9ec526 HZ |
1390 | 2010-08-13 Hui Zhu <[email protected]> |
1391 | ||
1392 | * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup. | |
1393 | (read_comp_unit): Initialize back_to. | |
1394 | ||
98bfdba5 PA |
1395 | 2010-08-12 Daniel Jacobowitz <[email protected]> |
1396 | Pedro Alves <[email protected]> | |
1397 | ||
1398 | * dwarf2read.c: Include "c-lang.h" and "valprint.h". | |
1399 | (struct dwarf2_per_objfile) <reading_partial_symbols>: New field. | |
1400 | (struct partial_die_info) <has_template_arguments>: New field. | |
1401 | <num_attrs>: Change type to unsigned char. | |
1402 | <building_fullname>: New field. | |
1403 | (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only | |
1404 | allocate a CU if we don't have one already. Add a cleanup for the | |
1405 | CU. | |
1406 | (partial_die_full_name): Handle template arguments not in | |
1407 | DW_AT_name. | |
1408 | (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols. | |
1409 | (load_full_comp_unit): Only allocate a CU if we don't have one | |
1410 | already. | |
1411 | (do_ui_file_peek_last): New. | |
1412 | (dwarf2_compute_name): Handle template parameters not in | |
1413 | DW_AT_name. | |
1414 | (read_comp_unit): Read and free abbrevs if not read yet. | |
1415 | (load_partial_dies): Handle template arguments not in DW_AT_name. | |
1416 | (find_partial_die): If we have a CU, but no a partial dies yet, | |
1417 | also read in the CU. | |
1418 | (dwarf2_const_value_attr): New, abstracted out from | |
1419 | dwarf2_const_value. | |
1420 | (dwarf2_const_value, dwarf2_const_value_data): Adjust to use | |
1421 | dwarf2_const_value_attr. | |
1422 | (determine_prefix): Detect and break loops created by RCVT's debug | |
1423 | info. | |
1424 | (maybe_queue_comp_unit): Bail out early if reading partial | |
1425 | symbols. | |
1426 | (follow_die_offset): Load full CU if we have no dies. | |
1427 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public. | |
1428 | * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare. | |
1429 | ||
ca5c20b6 | 1430 | 2010-08-11 Tom Tromey <[email protected]> |
889bf7c5 | 1431 | Phil Muldoon <[email protected]> |
ca5c20b6 PM |
1432 | |
1433 | * python/python.c (gdbpy_run_events): New function. | |
1434 | (gdbpy_post_event): Likewise. | |
1435 | (gdbpy_initialize_events): Likewise. | |
1436 | (_initialize_python): Call gdbpy_initialize_events. | |
1437 | ||
7346b668 KW |
1438 | 2010-08-11 Ken Werner <[email protected]> |
1439 | ||
1440 | * gdb/valarith.c (vector_binop): New function. | |
1441 | (scalar_binop): Likewise. | |
1442 | (value_binop): Call scalar_binop or vector_binop depending on the types. | |
1443 | * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR. | |
1444 | (evaluate_subexp_with_coercion): Add vector check to not convert vectors | |
1445 | to pointers. | |
1446 | * gdb/value.c (coerce_array): Add vector check to not coerce vectors. | |
1447 | ||
62183e15 TT |
1448 | 2010-08-11 Brad Roberts <[email protected]> |
1449 | ||
1450 | * d-lang.c (extract_identifiers): Handle multiple digits. | |
1451 | ||
39d7b0e2 JK |
1452 | 2010-08-11 Jan Kratochvil <[email protected]> |
1453 | ||
1454 | Code cleanup. | |
1455 | * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier. | |
1456 | Rename to dummy_frame_unwind. | |
1457 | (dummy_frame_unwind): Remove. | |
1458 | * dummy-frame.h (dummy_frame_unwind): Reference directly the struct. | |
1459 | * frame-unwind.c (frame_unwind_init): Use address of | |
1460 | dummy_frame_unwind and inline_frame_unwind. | |
1461 | * frame.c (create_sentinel_frame): Use address of | |
1462 | sentinel_frame_unwind. | |
1463 | * inline-frame.c (inline_frame_unwinder): Rename to | |
1464 | inline_frame_unwind. | |
1465 | (inline_frame_unwind): Remove. | |
1466 | * inline-frame.h (inline_frame_unwind): Reference directly the struct. | |
1467 | * sentinel-frame.c (sentinel_frame_unwinder): Rename to | |
1468 | sentinel_frame_unwind. | |
1469 | (sentinel_frame_unwind): Remove. | |
1470 | * sentinel-frame.h (sentinel_frame_unwind): Reference directly the | |
1471 | struct. | |
1472 | ||
9f9a8002 JK |
1473 | 2010-08-11 Jan Kratochvil <[email protected]> |
1474 | ||
1475 | Code cleanup. | |
1476 | * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type | |
1477 | and returned value. New comment from frame-unwind.h. | |
1478 | * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type. | |
1479 | Extend the comment. | |
1480 | * frame.c (get_frame_id, frame_unwind_register_value) | |
1481 | (create_new_frame, get_prev_frame_1, frame_unwinder_is) | |
1482 | (get_frame_type, frame_unwind_arch): Do not use the return value of | |
1483 | frame_unwind_find_by_frame. | |
1484 | ||
cb2e07a6 | 1485 | 2010-08-11 Phil Muldoon <[email protected]> |
889bf7c5 | 1486 | Thiago Jung Bauermann <[email protected]> |
cb2e07a6 PM |
1487 | Tom Tromey <[email protected]> |
1488 | ||
1489 | * python/python.c (gdbpy_solib_address): New function. | |
1490 | (gdbpy_decode_line): Likewise. | |
1491 | ||
c29c521f TT |
1492 | 2010-08-10 Tom Tromey <[email protected]> |
1493 | ||
1494 | Revert gdb-add-index addition: | |
1495 | * Makefile.in (install-only): Don't install gdb-add-index. | |
1496 | * gdb-add-index.sh: Remove. | |
1497 | ||
0c012db1 KB |
1498 | 2010-08-09 Kevin Buettner <[email protected]> |
1499 | ||
1500 | * remote-sim.c (gdbsim_xfer_inferior_memory): Replace | |
1501 | `target_has_execution' check with `to_has_memory' check. | |
1502 | (gdbsim_has_all_memory, gdbsim_has_memory): New functions. | |
1503 | (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops' | |
1504 | with `gdbsim_has_all_memory' and `gdbsim_has_memory'. | |
1505 | ||
db04efe6 KB |
1506 | 2010-08-09 Kevin Buettner <[email protected]> |
1507 | ||
1508 | * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid) | |
1509 | (resume_siggnal, resume_step): Move these static globals... | |
1510 | (struct sim_inferior_data): ...into this new struct. | |
1511 | (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open): | |
1512 | New static globals. | |
1513 | (gdb_callback, callbacks_initialized): Move these globals to | |
1514 | a point earlier in the file. | |
1515 | (check_for_duplicate_sim_descriptor, get_sim_inferior_data) | |
1516 | (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup) | |
1517 | (gdbsim_close_inferior, gdbsim_resume_inferior) | |
1518 | (gdbsim_stop_inferior): New functions. | |
1519 | (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID): | |
1520 | New constants. | |
1521 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load) | |
1522 | (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume) | |
1523 | (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait) | |
1524 | (gdbsim_xfer_inferior_memory, gdbsim_files_info) | |
1525 | (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive, | |
1526 | (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set | |
1527 | new local variable `sim_data' in each of these functions. Use | |
1528 | `sim_data' to reference former globals `program_loaded', | |
1529 | `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and | |
1530 | `resume_step'. | |
1531 | (gdbsim_open): Remove local variable `argv'. Put results of call | |
1532 | to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't | |
1533 | make a cleanup for it. Free it though when a sim instance cannot | |
1534 | be obtained. | |
1535 | (gdbsim_close): Free sim_argv and null it out as appropriate. | |
1536 | Close sim instances in all inferiors. | |
1537 | (gdbsim_cntrl_c): Stop all inferiors. | |
1538 | (gdbsim_wait): | |
1539 | (_initialize_remote_sim): Initialize `sim_inferior_data_key'. | |
1540 | ||
e37fd15a SW |
1541 | 2010-08-09 Sami Wagiaalla <[email protected]> |
1542 | ||
1543 | * dwarf2read.c (new_symbol): Add symbol to variable list at end of | |
1544 | function after symbol construction is complete. | |
1545 | Do the same for template symbol addition to template_symbols list. | |
1546 | ||
45c58896 SW |
1547 | 2010-08-09 Sami Wagiaalla <[email protected]> |
1548 | ||
1549 | * symtab.c (symbol_get_demangled_name): Remove assertion and | |
1550 | return NULL when language_specific.cplus_specific is not initialized. | |
1551 | * stabsread.c (define_symbol): Set the name before calling | |
1552 | cp_scan_for_anonymous_namespaces. | |
1553 | ||
33e5013e SW |
1554 | 2010-08-09 Sami Wagiaalla <[email protected]> |
1555 | ||
1556 | * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to | |
1557 | SYMBOL_SET_LANGUAGE. | |
1558 | (symbol_init_language_specific): Renamed to symbol_set_language. | |
1559 | * symtab.c (symbol_init_language_specific): Removed redundant check | |
1560 | for language_cplus. | |
1561 | Renamed to symbol_set_language. | |
1562 | * stabsread.c (define_symbol): Updated. | |
1563 | (read_enum_type): Updated | |
1564 | * psymtab.c (add_psymbol_to_bcache): Updated. | |
1565 | * minsyms.c (install_minimal_symbols): Updated. | |
1566 | * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of | |
1567 | SYMBOL_LANGUAGE to set the language. | |
1568 | * minsyms.c (prim_record_minimal_symbol_full): Ditto. | |
1569 | * mdebugread.c (new_symbol): Ditto. | |
1570 | * cp-namespace.c (check_one_possible_namespace_symbol): Ditto. | |
1571 | * dwarf2read.c (new_symbol_full): Ditto. | |
1572 | * jv-lang.c (add_class_symbol): Ditto. | |
1573 | ||
5da1313b JK |
1574 | 2010-08-07 Jan Kratochvil <[email protected]> |
1575 | ||
1576 | * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file) | |
1577 | (make_cleanup_restore_page_info) | |
1578 | (set_batch_flag_and_make_cleanup_restore_page_info): New declarations. | |
1579 | * gdbcmd.h (execute_command_to_string): New declaration. | |
1580 | * python/python.c (struct restore_ui_file_closure, restore_ui_file) | |
1581 | (make_cleanup_restore_ui_file): Move to utils.c | |
1582 | (execute_gdb_command) <to_string>: Move ... | |
1583 | * top.c (execute_command_to_string): ... here. Call | |
1584 | set_batch_flag_and_make_cleanup_restore_page_info. | |
1585 | * utils.c (make_cleanup_restore_integer): New source file blank line. | |
1586 | (make_cleanup_restore_uinteger): New. | |
1587 | (struct restore_ui_file_closure, do_restore_ui_file) | |
1588 | (make_cleanup_restore_ui_file): Move here from python/python.c. | |
1589 | (init_page_info) <batch_flag> | |
1590 | (do_restore_page_info_cleanup, make_cleanup_restore_page_info) | |
1591 | (set_batch_flag_and_make_cleanup_restore_page_info): New. | |
1592 | ||
c820c52a PA |
1593 | 2010-08-06 Maciej W. Rozycki <[email protected]> |
1594 | ||
1595 | * thread.c (add_thread_silent): Use null_ptid instead of | |
1596 | minus_one_ptid while getting rid of stale inferior_ptid. | |
1597 | ||
8da614df CV |
1598 | 2010-08-06 Corinna Vinschen <[email protected]> |
1599 | ||
1600 | * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member. | |
1601 | Throughout, call read_encoded_value with ptr_size rather than addr_size. | |
1602 | (decode_frame_entry_1): Remove redundant setting of | |
1603 | addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit | |
1604 | to determine addr_size in Dwarf versions < 4. Set ptr_size dependent | |
1605 | on examined frame section. Add comment to explain why. | |
1606 | * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy | |
1607 | comment to explain usage. | |
1608 | * gdbarch.c: Regenerate. | |
1609 | * gdbarch.h: Regenerate. | |
1610 | ||
1611 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4. | |
1612 | ||
e4195b40 JK |
1613 | 2010-08-06 Jan Kratochvil <[email protected]> |
1614 | ||
1615 | Code cleanup. | |
1616 | * varobj.c (varobj_create): Move variables fi, old_fi and block to | |
1617 | a more inner block. | |
1618 | ||
a3217aa0 PA |
1619 | 2010-08-05 Pedro Alves <[email protected]> |
1620 | ||
1621 | * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*) | |
1622 | (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) | |
1623 | (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*) | |
1624 | (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add | |
1625 | linux-tdep.o to gdb_target_obs. | |
1626 | ||
e2b4a699 | 1627 | 2010-08-05 Marc Khouzam <[email protected]> |
889bf7c5 PA |
1628 | |
1629 | * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first | |
e2b4a699 | 1630 | argument. |
889bf7c5 | 1631 | |
50e8a0d5 HZ |
1632 | 2010-08-05 Hui Zhu <[email protected]> |
1633 | ||
1634 | * mips-linux-tdep.c(regset.h): New include. | |
1635 | (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper, | |
1636 | mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper, | |
1637 | mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper, | |
1638 | mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper, | |
1639 | mips_linux_regset_from_core_section): New functions. | |
1640 | (fetch_core_registers, regset_core_fns): Deleted. | |
1641 | (mips_linux_init_abi): Add mips_linux_regset_from_core_section. | |
1642 | Deleted regset_core_fns. | |
1643 | * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset, | |
1644 | tdep->gregset64, tdep->fpregset and tdep->fpregset64. | |
1645 | * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset | |
1646 | and fpregset64. | |
1647 | ||
70728992 PA |
1648 | 2010-08-04 Pedro Alves <[email protected]> |
1649 | ||
1650 | * s390-tdep.c: Include linux-tdep.h. | |
1651 | (s390_gdbarch_init): Call linux_init_abi. | |
1652 | ||
a5ee0f0c PA |
1653 | 2010-08-04 Pedro Alves <[email protected]> |
1654 | ||
1655 | * corelow.c (core_pid_to_str): Default to using normal_pid_to_str | |
1656 | instead of printing "Thread" here. | |
1657 | * linux-tdep.c: Include inferior.h. | |
1658 | (linux_core_pid_to_str): New. | |
1659 | (linux_init_abi): New. | |
1660 | * linux-tdep.h (linux_init_abi): Declare. | |
1661 | * alpha-linux-tdep.c: Include linux-tdep.h. | |
1662 | (alpha_linux_init_abi): Call linux_init_abi. | |
1663 | * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi. | |
1664 | * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi. | |
1665 | * frv-linux-tdep.c: Include linux-tdep.h | |
1666 | (frv_linux_init_abi): Call linux_init_abi. | |
1667 | * hppa-linux-tdep.c: Include linux-tdep.h | |
1668 | (hppa_linux_init_abi): Call linux_init_abi. | |
1669 | * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi. | |
1670 | * ia64-linux-tdep.c: Include linux-tdep.h. | |
1671 | (ia64_linux_init_abi): Call linux_init_abi. | |
1672 | * m32r-linux-tdep.c: Include linux-tdep.h. | |
1673 | (m32r_linux_init_abi): Call linux_init_abi. | |
1674 | * m68klinux-tdep.c: Include linux-tdep.h. | |
1675 | (m68k_linux_init_abi): Call linux_init_abi. | |
1676 | * microblaze-linux-tdep.c: Include linux-tdep.h. | |
1677 | (microblaze_linux_init_abi): Call linux_init_abi. | |
1678 | * mips-linux-tdep.c: Include linux-tdep.h. | |
1679 | (mips_linux_init_abi): Call linux_init_abi. | |
1680 | * mn10300-linux-tdep.c: Include linux-tdep.h. | |
1681 | (am33_linux_init_osabi): Call linux_init_abi. Rename the | |
1682 | 'gdbinfo' parameter to 'info'. | |
1683 | * ppc-linux-tdep.c: Include linux-tdep.h. | |
1684 | (ppc_linux_init_abi): Call linux_init_abi. | |
1685 | * sh-linux-tdep.c: Include linux-tdep.h. | |
1686 | (sh_linux_init_abi): Call linux_init_abi. | |
1687 | * sparc-linux-tdep.c: Include linux-tdep.h. | |
1688 | (sparc32_linux_init_abi): Call linux_init_abi. | |
1689 | * sparc64-linux-tdep.c: Include linux-tdep.h. | |
1690 | (sparc64_linux_init_abi): Call linux_init_abi. | |
1691 | * xtensa-linux-tdep.c: Include linux-tdep.h. | |
1692 | (xtensa_linux_init_abi): Call linux_init_abi. | |
1693 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New. | |
1694 | (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str | |
1695 | callback. | |
1696 | ||
bc043ef3 DE |
1697 | 2010-08-03 Doug Evans <[email protected]> |
1698 | ||
1699 | * breakpoint.c (bpdisp_text): Constify bpdisps. | |
1700 | * solib-svr4.c (solib_break_names): Constify. | |
1701 | (bkpt_names, main_name_list): Constify. | |
1702 | (match_main): Constify soname arg. | |
63cdd227 DE |
1703 | (bfd_lookup_symbol): Remove unnecessary forward decl. |
1704 | Constify symname arg. | |
bc043ef3 DE |
1705 | (enable_break): Constify bkpt_namep. |
1706 | * symtab.c (search_symbols): Constify types, types2, types3, types4. | |
1707 | (symtab_symbol_info): Constify classnames. | |
1708 | ||
585d1eb8 PM |
1709 | 2010-08-03 Phil Muldoon <[email protected]> |
1710 | ||
1711 | * NEWS: Document Python value inferior function calls. | |
1712 | ||
2de00c64 DE |
1713 | 2010-08-02 Doug Evans <[email protected]> |
1714 | ||
1715 | * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature. | |
1716 | ||
02d868e8 PP |
1717 | 2010-07-31 Paul Pluzhnikov <[email protected]> |
1718 | ||
1719 | * linux-thread-db.c (libthread_db_debug): New variable. | |
1720 | (thread_db_find_new_threads_silently): Control verbosity with it. | |
1721 | (try_thread_db_load_1, try_thread_db_load): Likewise. | |
1722 | (find_new_threads_once): Likewise. | |
1723 | (_initialize_thread_db): Set/show it. | |
1724 | ||
a19cae16 JK |
1725 | 2010-07-31 Jan Kratochvil <[email protected]> |
1726 | ||
1727 | * common/signals.c (signals): Move the content to signals.def. | |
1728 | Include it. Remove the INDENT comments. | |
1729 | ||
c2bbed2a TT |
1730 | 2010-07-30 Tom Tromey <[email protected]> |
1731 | ||
1732 | * Makefile.in (install-only): Install gdb-add-index. | |
1733 | * gdb-add-index.sh: New file. | |
1734 | ||
f32b2f09 CR |
1735 | 2010-07-31 Renquan Cheng <[email protected]> |
1736 | ||
1737 | * MAINTAINERS: Add myself for write after approval privileges. | |
1738 | ||
1276c759 JK |
1739 | 2010-07-30 Jan Kratochvil <[email protected]> |
1740 | ||
1741 | * symfile.c (addr_section_name): New function. | |
1742 | (addrs_section_compar): Use it. | |
1743 | (addr_info_make_relative): Use it. Move variable sect_name into a more | |
1744 | inner block. Make ".dynbss" and ".sdynbss" checks more strict. | |
1745 | ||
420697bb TT |
1746 | 2010-07-30 Tom Tromey <[email protected]> |
1747 | ||
1748 | * configure: Rebuild. | |
1749 | * configure.ac: Add missing case for Python 2.7. | |
1750 | ||
d0d99561 DD |
1751 | 2010-07-29 DJ Delorie <[email protected]> |
1752 | ||
1753 | * rx-tdep.c (rx_analyze_prologue): Don't require branches to have | |
1754 | conditions. | |
1755 | ||
0b29bdde PA |
1756 | 2010-07-29 Pedro Alves <[email protected]> |
1757 | ||
1758 | * PROBLEMS: Remove mention of all problems. | |
1759 | ||
110ed339 PA |
1760 | 2010-07-28 Pedro Alves <[email protected]> |
1761 | ||
1762 | PR build/11848 | |
1763 | * configure.ac: Check for wresize. | |
1764 | * configure, config.in: Regenerate. | |
1765 | * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call | |
1766 | with HAVE_WRESIZE. | |
1767 | ||
326fd672 TT |
1768 | 2010-07-28 Tom Tromey <[email protected]> |
1769 | ||
1770 | PR python/11060: | |
1771 | * python/py-type.c (typy_legacy_template_argument): New function, | |
1772 | extracted from typy_template_argument. | |
1773 | (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a | |
1774 | value when needed. | |
1775 | ||
4ac8c4da TT |
1776 | 2010-07-28 Oleg Nesterov <[email protected]> |
1777 | ||
1778 | * remote.c (readchar): Call pop_target in case of SERIAL_ERROR. | |
1779 | ||
053315c2 TT |
1780 | 2010-07-27 Tom Tromey <[email protected]> |
1781 | ||
1782 | * dwarf2read.c (dwarf2_const_value_data): Never sign extend. | |
1783 | ||
3ce3b1ba PA |
1784 | 2010-07-28 Daniel Jacobowitz <[email protected]> |
1785 | ||
1786 | * dwarf2read.c (read_subroutine_type): Improve THIS detection, | |
1787 | handling DW_AT_object_pointer, and workaround GCC PR 43053. | |
1788 | ||
2bb4f988 TT |
1789 | 2010-07-28 Tom Tromey <[email protected]> |
1790 | ||
1791 | * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h. | |
1792 | ||
74232302 JB |
1793 | 2010-07-28 Joel Brobecker <[email protected]> |
1794 | ||
1795 | * remote.c (remote_download_tracepoint): Add missing gettext markup. | |
1796 | * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise. | |
1797 | ||
385d04dc JB |
1798 | 2010-07-28 Joel Brobecker <[email protected]> |
1799 | ||
1800 | * breakpoint.c (breakpoint_re_set_one): Move call to set_language | |
1801 | down, just before the block that parse the breakpoint addr_string. | |
1802 | ||
34eaf542 TT |
1803 | 2010-07-28 Tom Tromey <[email protected]> |
1804 | ||
1805 | PR c++/9946: | |
1806 | * symfile.c (reread_symbols): Clear template_symbols. | |
1807 | * symtab.h (struct symbol) <is_cplus_template_function>: New | |
1808 | field. | |
1809 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. | |
1810 | (struct template_symbol): New. | |
1811 | * symtab.c (lookup_symbol_aux_local): Use | |
1812 | cp_lookup_symbol_imports_or_template. | |
1813 | * objfiles.h (struct objfile) <template_symbols>: New field. | |
1814 | * objfiles.c (relocate_one_symbol): New function. | |
1815 | (objfile_relocate1): Use it. Relocate isolated symbols. | |
1816 | * gdbtypes.h (struct cplus_struct_type) <n_template_arguments, | |
1817 | template_arguments>: New fields. | |
1818 | (TYPE_N_TEMPLATE_ARGUMENTS): New macro. | |
1819 | (TYPE_TEMPLATE_ARGUMENTS): Likewise. | |
1820 | (TYPE_TEMPLATE_ARGUMENT): Likewise. | |
1821 | (lookup_typename): Update. | |
1822 | * gdbtypes.c (lookup_typename): Constify "block" argument. | |
1823 | * dwarf2read.c: Include vec.h. | |
1824 | (symbolp): New typedef. | |
1825 | (read_func_scope): Read template arguments. Allocate a | |
1826 | template_symbol when needed. | |
1827 | (read_structure_type): Read template arguments. | |
1828 | (new_symbol_full): New function, from new_symbol. Handle | |
1829 | DW_TAG_template_type_param and DW_TAG_template_value_param. | |
1830 | (new_symbol): Rewrite as wrapper. | |
1831 | * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. | |
1832 | * cp-namespace.c: Include language.h. | |
1833 | (search_symbol_list): New function. | |
1834 | (cp_lookup_symbol_imports_or_template): Likewise. | |
1835 | ||
d27b3be4 PA |
1836 | 2010-07-28 Balazs Kezes <[email protected]> |
1837 | ||
1838 | * tui/tui-win.c (make_visible_with_new_height): Resize and move | |
1839 | the command window to the new size and position. | |
1840 | ||
0036e657 PA |
1841 | 2010-07-28 Balazs Kezes <[email protected]> |
1842 | ||
a782f43e | 1843 | * tui/tui-win.c (tui_resize_all): Update the locator's origin's |
0036e657 PA |
1844 | coordinates. |
1845 | ||
36900355 PA |
1846 | 2010-07-28 Balazs Kezes <[email protected]> |
1847 | ||
a782f43e | 1848 | * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all |
36900355 | 1849 | after a detecting a resize. |
a782f43e | 1850 | * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to |
36900355 PA |
1851 | call. |
1852 | ||
db5e03ae PA |
1853 | 2010-07-28 Pedro Alves <[email protected]> |
1854 | ||
1855 | * configure.ac: Check for resize_term. | |
1856 | * configure, config.in: Regenerate. | |
1857 | ||
b71fff68 JB |
1858 | 2010-07-27 Joel Brobecker <[email protected]> |
1859 | ||
1860 | * MAINTAINERS (Write After Approval): Reorder a couple of entries. | |
1861 | ||
9b1c24c8 PA |
1862 | 2010-07-27 Daniel Jacobowitz <[email protected]> |
1863 | ||
1864 | * dwarf2read.c (read_string): Rename to ... | |
1865 | (read_direct_string): ... this. | |
1866 | (skip_one_die, read_attribute_value, dwarf_decode_line_header) | |
1867 | (dwarf_decode_lines, dwarf_decode_macros): Adjust. | |
1868 | ||
00390b84 JK |
1869 | 2010-07-27 Jan Kratochvil <[email protected]> |
1870 | ||
1871 | * linux-nat.c (linux_nat_lp_status_is_event): New function. | |
1872 | (count_events_callback, select_event_lwp_callback) | |
1873 | (cancel_breakpoints_callback, linux_nat_wait_1): Use it. | |
1874 | ||
26ab7092 JK |
1875 | 2010-07-27 Jan Kratochvil <[email protected]> |
1876 | ||
1877 | * ia64-linux-nat.c (ia64_linux_status_is_event): New function. | |
1878 | (_initialize_ia64_linux_nat): Install it. | |
1879 | * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event) | |
1880 | (linux_nat_set_status_is_event): New. | |
1881 | (stop_wait_callback, count_events_callback, select_event_lwp_callback) | |
1882 | cancel_breakpoints_callback, linux_nat_filter_event) | |
1883 | (linux_nat_wait_1): Use linux_nat_status_is_event. | |
1884 | * linux-nat.h (linux_nat_set_status_is_event): New prototype. | |
1885 | ||
283e6a52 TT |
1886 | 2010-07-27 Tom Tromey <[email protected]> |
1887 | ||
1888 | * NEWS: Mention labels, .gdb_index. | |
1889 | ||
53a71c06 CR |
1890 | 2010-07-28 CHENG Renquan <[email protected]> |
1891 | ||
1892 | * cli/cli-cmds.c (disassemble_command): Add support of disassemble | |
3422f666 | 1893 | "start,+length" form of arguments. |
53a71c06 CR |
1894 | * NEWS: Add "Changed commands" (disassemble) section for "Changes |
1895 | since GDB 7.1"; and merge two separated paragraphs of disassemble | |
1896 | description in "Changes in GDB 7.0". | |
1897 | ||
c63a1f86 JK |
1898 | 2010-07-27 Jan Kratochvil <[email protected]> |
1899 | ||
1900 | * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. | |
1901 | * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. | |
1902 | (fputs_maybe_filtered): Do not do filtering also on | |
1903 | ! INPUT_FROM_TERMINAL_P. | |
1904 | ||
abebb8b0 JB |
1905 | 2010-07-27 Joel Brobecker <[email protected]> |
1906 | ||
1907 | * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline | |
1908 | in warning message. | |
1909 | ||
5374244e PM |
1910 | 2010-07-27 Phil Muldoon <[email protected]> |
1911 | ||
1912 | * python/py-value.c (valpy_call): New Function. | |
1913 | ||
ac0b195c KW |
1914 | 2010-07-27 Ken Werner <[email protected]> |
1915 | ||
889bf7c5 | 1916 | * dwarf2read.c (dwarf2_read_index): Initialize the types_list and |
ac0b195c KW |
1917 | types_list_elements variables. |
1918 | ||
09d8bd00 TT |
1919 | 2010-07-26 Tom Tromey <[email protected]> |
1920 | ||
1921 | * dwarf2loc.c (locexpr_describe_location_piece): Also recognize | |
1922 | TLS with DW_OP_const4u or DW_OP_const8u. | |
1923 | ||
9fe70b4f TJB |
1924 | 2010-07-26 Thiago Jung Bauermann <[email protected]> |
1925 | ||
1926 | * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get | |
1927 | VSX registers contents. | |
1928 | ||
caac4577 JG |
1929 | 2010-07-26 Jerome Guitton <[email protected]> |
1930 | ||
1931 | * dwarf2read.c (add_partial_symbol): Do not add a global variable if | |
1932 | its adress is null. Add comment to explain why. | |
1933 | (new_symbol): Ditto. | |
1934 | ||
857d11d0 JK |
1935 | 2010-07-25 Jan Kratochvil <[email protected]> |
1936 | ||
1937 | * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to | |
1938 | the host signal first. | |
1939 | ||
1fd400ff TT |
1940 | 2010-07-23 Tom Tromey <[email protected]> |
1941 | ||
1942 | * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units, | |
1943 | type_comp_units>: New fields. | |
1944 | (dw2_get_cu): New function. | |
1945 | (create_cus_from_index): Remove unused argument. | |
1946 | (create_signatured_type_hash_from_index): New function. | |
1947 | (create_addrmap_from_index): Update. | |
1948 | (dwarf2_read_index): Handle version 2. | |
1949 | (dw2_find_last_source_symtab, dw2_forget_cached_source_info) | |
1950 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching) | |
1951 | (dw2_print_stats, dw2_expand_all_symtabs) | |
1952 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file) | |
1953 | (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update. | |
1954 | (dwarf2_initialize_objfile): Call create_debug_types_hash_table. | |
1955 | (allocate_signatured_type_hash_table): New function. | |
1956 | (add_signatured_type_cu_to_list): Likewise. | |
1957 | (create_debug_types_hash_table): Use them. Set type_comp_units. | |
1958 | (read_signatured_type): Ensure section data is available. | |
1959 | (add_address_entry): Don't record empty ranges. | |
1960 | (struct signatured_type_index_data): New. | |
1961 | (write_one_signatured_type): New function. | |
1962 | (write_psymtabs_to_index): Write type CUs. | |
1963 | (save_gdb_index_command): Update comment. | |
1964 | (process_type_comp_unit): Move inititalization of | |
1965 | from_debug_types... | |
1966 | (create_debug_types_hash_table): ... here. | |
1967 | ||
3a674486 JK |
1968 | 2010-07-23 Jan Kratochvil <[email protected]> |
1969 | ||
1970 | * gdb_gcore.sh (tmpfile): Remove the variable, its initialization, | |
1971 | cleanup and generating of gdb script to it. | |
1972 | (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination | |
1973 | and terminal size. Convert $tmpfile to a series of -ex-es. | |
1974 | ||
54ec275a KS |
1975 | 2010-07-23 Keith Seitz <[email protected]> |
1976 | ||
1977 | * symtab.c (basic_lookup_transparent_type): Call pre-expand | |
1978 | hook for STATIC_BLOCK types, too. | |
1979 | ||
8fd447e6 KS |
1980 | 2010-07-23 Keith Seitz <[email protected]> |
1981 | ||
1982 | * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr | |
1983 | and vector definition. | |
1984 | ||
25b72dde JK |
1985 | 2010-07-23 Jan Kratochvil <[email protected]> |
1986 | ||
1987 | * linux-nat.c (cancel_breakpoint): Remove unused forward declaration. | |
1988 | ||
96d19272 JK |
1989 | 2010-07-22 Jan Kratochvil <[email protected]> |
1990 | ||
1991 | * dwarf2read.c: Include completer.h. | |
1992 | (save_gdb_index_command): Use matching usage command name. | |
1993 | (_initialize_dwarf2_read): New variable c, initialize it by add_cmd. | |
1994 | Set filename_completer for it. | |
1995 | ||
ca1f3406 TT |
1996 | 2010-07-22 Tom Tromey <[email protected]> |
1997 | ||
1998 | * dwarf2read.c (create_debug_types_hash_table): Set objfile on | |
1999 | type signature's per-CU data. | |
2000 | ||
ba25b921 PA |
2001 | 2010-07-22 Pedro Alves <[email protected]> |
2002 | ||
2003 | * NEWS: Mention target reported shared libraries support by | |
2004 | default. | |
2005 | ||
23bd0f7c PA |
2006 | 2010-07-21 Pedro Alves <[email protected]> |
2007 | ||
2008 | PR symtab/11827 | |
2009 | ||
2010 | Revert: | |
2011 | 2010-05-21 Pierre Muller <[email protected]> | |
2012 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
2013 | and DW_TAG_volatile_type. | |
2014 | (new_symbol): Likewise. | |
2015 | ||
883df6dd SW |
2016 | 2010-07-21 Sami Wagiaalla <[email protected]> |
2017 | ||
2018 | * eval.c (evaluate_subexp_standard): Disabled evaluation of C++ | |
2019 | function symbols before overload resolution. | |
2020 | ||
269b11a2 PA |
2021 | 2010-07-21 Pedro Alves <[email protected]> |
2022 | ||
2023 | * breakpoint.c (bptype_string): New, abstracted out from | |
2024 | print_one_breakpoint_location. | |
2025 | (print_one_breakpoint_location): Adjust. | |
2026 | (breakpoint_1): Adjust the type column width dynamically. | |
2027 | ||
569b05a5 JK |
2028 | 2010-07-20 Jan Kratochvil <[email protected]> |
2029 | ||
2030 | * symfile.c (find_separate_debug_file_by_debuglink): Remove | |
2031 | a gdb_assert call, new comment. | |
2032 | ||
ad34eb2f JK |
2033 | 2010-07-20 Jan Kratochvil <[email protected]> |
2034 | ||
2035 | * linux-nat.c (linux_handle_extended_wait): Handle case when | |
2036 | event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP. | |
2037 | ||
33355866 JK |
2038 | 2010-07-20 Jan Kratochvil <[email protected]> |
2039 | ||
2040 | Code cleanup. | |
2041 | * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling | |
2042 | linux_nat_wait_1. Use always LP->STATUS afterwards. | |
2043 | ||
26590820 HZ |
2044 | 2010-07-20 Hui Zhu <[email protected]> |
2045 | ||
2046 | * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. | |
2047 | (inf_ptrace_attach): Ditto. | |
2048 | ||
c0edd9ed JK |
2049 | 2010-07-19 Jan Kratochvil <[email protected]> |
2050 | ||
2051 | Make core files the process_stratum. | |
2052 | * corefile.c (core_target): New variable. | |
2053 | (core_file_command): Remove variable t, use core_target. | |
2054 | * corelow.c (core_ops): Make it static. | |
2055 | (init_core_ops): Change to process_stratum. Initialize CORE_TARGET. | |
2056 | * defs.h (make_cleanup_unpush_target): New prototype. | |
2057 | * gdbarch.h: Regenerate. | |
2058 | * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment. | |
2059 | * gdbcore.h (core_target): New declaration. | |
2060 | * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New | |
2061 | variables ops_already_pushed and back_to. Use push_target, | |
2062 | make_cleanup_unpush_target and discard_cleanups calls. | |
2063 | * record.c (record_open): Replace core_stratum by a core_bfd check. | |
2064 | * target.c (target_is_pushed): New function. | |
2065 | (find_core_target): Remove. | |
2066 | * target.h (enum strata) <core_stratum>: Remove. | |
2067 | (target_is_pushed): New declaration. | |
2068 | (find_core_target): Remove declaration. | |
2069 | * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment. | |
2070 | * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. | |
2071 | ||
f02253f1 HZ |
2072 | 2010-07-19 Hui Zhu <[email protected]> |
2073 | ||
2074 | * breakpoint.c (single_step_breakpoints_inserted): New | |
2075 | function. | |
2076 | * breakpoint.h (single_step_breakpoints_inserted): Extern. | |
2077 | * infrun.c (maybe_software_singlestep): Add check code. | |
2078 | * record.c (record_resume): Add code for software single step. | |
2079 | (record_wait): Ditto. | |
2080 | ||
78768c4a JK |
2081 | 2010-07-18 Jan Kratochvil <[email protected]> |
2082 | ||
2083 | * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into | |
2084 | a more inner block. Remove its unused declaration initializer. | |
2085 | ||
431e49aa TJB |
2086 | 2010-07-16 Thiago Jung Bauermann <[email protected]> |
2087 | ||
2088 | * NEWS: Mention support for the new ptrace interface and hardware | |
2089 | accelerated watchpoint conditions on powerpc-linux. | |
2090 | ||
bd91e7ae OS |
2091 | 2010-07-16 Ozkan Sezer <[email protected]> |
2092 | ||
2093 | * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned | |
2094 | long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars | |
2095 | and host_address_to_string() and %s for pointers. | |
2096 | (debug_to_remove_breakpoint): Likewise. | |
2097 | (debug_to_region_ok_for_hw_watchpoint): Likewise. | |
2098 | (debug_to_can_accel_watchpoint_condition): Likewise. | |
2099 | (debug_to_stopped_data_address): Likewise. | |
2100 | (debug_to_watchpoint_addr_within_range): Likewise. | |
2101 | (debug_to_insert_hw_breakpoint): Likewise. | |
2102 | (debug_to_remove_hw_breakpoint): Likewise. | |
2103 | (debug_to_insert_watchpoint): Likewise. | |
2104 | (debug_to_remove_watchpoint): Likewise. | |
2105 | ||
29df156d SW |
2106 | 2010-07-16 Sami Wagiaalla <[email protected]> |
2107 | ||
2108 | * symtab.h (symbol_set_demangled_name): Now takes an optional objfile* | |
2109 | argument. | |
2110 | (cplus_specific): New struct. | |
2111 | * symtab.c (symbol_set_demangled_name): Updated. | |
2112 | Use cplus_specific for cplus symbols. | |
2113 | (symbol_get_demangled_name): Retrive the name from the cplus_specific | |
2114 | struct for cplus symbols. | |
2115 | (symbol_init_language_specific): Set cplus_specific for cplus symbols. | |
2116 | (symbol_set_names): Pass objfile to symbol_set_demangled_name. | |
2117 | * symtab.c (symbol_init_cplus_specific): New function. | |
2118 | ||
b250c185 SW |
2119 | 2010-07-16 Sami Wagiaalla <[email protected]> |
2120 | ||
2121 | * symtab.h (symbol_set_demangled_name): New function. | |
2122 | (symbol_get_demangled_name): New function. | |
2123 | * symtab.c (symbol_set_demangled_name): New function. | |
2124 | (symbol_get_demangled_name): New function. | |
2125 | (symbol_init_language_specific): Use demangled_name setter and getter. | |
2126 | (symbol_set_names): Ditto. | |
2127 | (symbol_natural_name): Ditto. | |
2128 | (symbol_demangled_name): Ditto. | |
2129 | * dwarf2read.c (new_symbol): Ditto. | |
2130 | ||
afa16725 SW |
2131 | 2010-07-16 Sami Wagiaalla <[email protected]> |
2132 | ||
2133 | * symtab.h: Renamed cplus_specific to mangled_lang. | |
2134 | * symtab.c (symbol_init_language_specific): Updated. | |
2135 | (symbol_set_names): Updated. | |
2136 | (symbol_natural_name): Updated. | |
2137 | (symbol_demangled_name): Updated. | |
2138 | * ada-lang.c (ada_decode_symbol): Updated. | |
2139 | * dwarf2read.c (new_symbol): Updated. | |
2140 | ||
3cbaedff KW |
2141 | 2010-07-14 Ken Werner <[email protected]> |
2142 | ||
2143 | * valops.c (value_assign): Do not call to value_coerce_to_target. | |
2144 | (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR. | |
2145 | ||
c932f1be KW |
2146 | 2010-07-14 Ken Werner <[email protected]> |
2147 | ||
2148 | * MAINTAINERS: Add myself for write after approval privileges. | |
2149 | ||
91158a56 TT |
2150 | 2010-07-13 Emmanuel Thomé <[email protected]> |
2151 | ||
2152 | * c-valprint.c (c_val_print): Add embedded_offset to address in | |
2153 | call to val_print_array_elements. | |
2154 | ||
b3b272e1 TT |
2155 | 2010-07-13 Tom Tromey <[email protected]> |
2156 | ||
2157 | * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'. | |
2158 | ||
bb3fa9d0 TT |
2159 | 2010-07-13 Tom Tromey <[email protected]> |
2160 | ||
2161 | * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to | |
2162 | objfile. | |
2163 | ||
dd786858 TT |
2164 | 2010-07-13 Tom Tromey <[email protected]> |
2165 | ||
2166 | * symfile.c (set_initial_language): Update. | |
2167 | (deduce_language_from_filename): Argument type now const. | |
2168 | * symtab.h (find_main_filename): Update. | |
2169 | (deduce_language_from_filename): Update. | |
2170 | * symtab.c (find_main_filename): Make result const. | |
2171 | * dwarf2read.c (dw2_find_symbol_file): Change return type. | |
2172 | * psymtab.c (find_symbol_file_from_partial): Change return type. | |
2173 | * symfile.h (struct quick_symbol_functions) <find_symbol_file>: | |
2174 | Make result const. | |
2175 | ||
9291a0cd TT |
2176 | 2010-07-13 Tom Tromey <[email protected]> |
2177 | ||
2178 | * breakpoint.c (save_cmdlist): No longer static. | |
2179 | * gdbcmd.h (save_cmdlist): Declare. | |
2180 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Set | |
2181 | OBJF_READNOW on objfile if readnow_symbol_files. | |
2182 | * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile. | |
2183 | (elf_sym_fns_gdb_index): New global. | |
2184 | * dwarf2read.c: Include exceptions.h. | |
2185 | (offset_type): New. | |
2186 | (struct mapped_index): New. | |
2187 | (dwarf2_per_cu_data_ptr): New typedef. | |
2188 | (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>: | |
2189 | New fields. | |
2190 | (GDB_INDEX_SECTION): New define. | |
2191 | (struct dwarf2_per_cu_quick_data): New. | |
2192 | (struct dwarf2_per_cu_data) <objfile>: New field. | |
2193 | <psymtab>: Removed. | |
2194 | <v>: New field. | |
2195 | (byte_swap): New function. | |
2196 | (MAYBE_SWAP): New macro. | |
2197 | (INDEX_SUFFIX): New macro. | |
2198 | (dw2_do_instantiate_symtab): New function. | |
2199 | (dw2_instantiate_symtab): Likewise. | |
2200 | (create_cus_from_index): Likewise. | |
2201 | (create_addrmap_from_index): Likewise. | |
2202 | (mapped_index_string_hash): Likewise. | |
2203 | (find_slot_in_mapped_hash): Likewise. | |
2204 | (dwarf2_read_index): Likewise. | |
2205 | (dw2_setup): Likewise. | |
2206 | (dw2_require_line_header): Likewise. | |
2207 | (dw2_require_full_path): Likewise. | |
2208 | (dw2_find_last_source_symtab): Likewise. | |
2209 | (dw2_forget_cached_source_info): Likewise. | |
2210 | (dw2_lookup_symtab): Likewise. | |
2211 | (dw2_lookup_symbol): Likewise. | |
2212 | (dw2_do_expand_symtabs_matching): Likewise. | |
2213 | (dw2_pre_expand_symtabs_matching): Likewise. | |
2214 | (dw2_print_stats): Likewise. | |
2215 | (dw2_dump): Likewise. | |
2216 | (dw2_relocate): Likewise. | |
2217 | (dw2_expand_symtabs_for_function): Likewise. | |
2218 | (dw2_expand_all_symtabs): Likewise. | |
2219 | (dw2_expand_symtabs_with_filename): Likewise. | |
2220 | (dw2_find_symbol_file): Likewise. | |
2221 | (dw2_map_ada_symtabs): Likewise. | |
2222 | (dw2_expand_symtabs_matching): Likewise. | |
2223 | (dw2_find_pc_sect_symtab): Likewise. | |
2224 | (dw2_map_symbol_names): Likewise. | |
2225 | (dw2_map_symbol_filenames): Likewise. | |
2226 | (dw2_has_symbols): Likewise. | |
2227 | (dwarf2_gdb_index_functions): New global. | |
2228 | (dwarf2_initialize_objfile): New function. | |
2229 | (process_psymtab_comp_unit): Update. | |
2230 | (add_partial_subprogram): Likewise. | |
2231 | (dwarf2_psymtab_to_symtab): Likewise. | |
2232 | (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab. | |
2233 | (process_full_comp_unit): Update. | |
2234 | (find_file_and_directory): New function. | |
2235 | (read_file_scope): Use find_file_and_directory. | |
2236 | (dwarf2_per_cu_objfile): Update. | |
2237 | (dwarf2_per_cu_addr_size): Update. | |
2238 | (dwarf2_per_cu_offset_size): Update. | |
2239 | (dwarf2_free_objfile): Free the index, if needed. | |
2240 | (dwarf2_per_objfile_free): Unmap the index, if needed. | |
2241 | (struct strtab_entry): New. | |
2242 | (hash_strtab_entry): New function. | |
2243 | (eq_strtab_entry): Likewise. | |
2244 | (create_strtab): Likewise. | |
2245 | (add_string): Likewise. | |
2246 | (struct symtab_index_entry): New. | |
2247 | (struct mapped_symtab): New. | |
2248 | (hash_symtab_entry): New function. | |
2249 | (eq_symtab_entry): Likewise. | |
2250 | (delete_symtab_entry): Likewise. | |
2251 | (create_index_table): Likewise. | |
2252 | (create_mapped_symtab): Likewise. | |
2253 | (cleanup_mapped_symtab): Likewise. | |
2254 | (find_slot): Likewise. | |
2255 | (hash_expand): Likewise. | |
2256 | (add_index_entry): Likewise. | |
2257 | (add_indices_to_cpool): Likewise. | |
2258 | (write_hash_table): Likewise. | |
2259 | (add_address_entry): Likewise. | |
2260 | (write_psymbols): Likewise. | |
2261 | (write_obstack): Likewise. | |
2262 | (unlink_if_set): Likewise. | |
2263 | (write_psymtabs_to_index): Likewise. | |
2264 | (save_gdb_index_command): Likewise. | |
2265 | (_initialize_dwarf2_read): Install "save gdb-index" | |
2266 | command. | |
2267 | (create_all_comp_units): Initialize 'objfile' field of CU. | |
2268 | (dwarf2_locate_sections): Check for .gdb_index. | |
2269 | * psymtab.h (dwarf2_gdb_index_functions): Declare. | |
2270 | * symfile.h (dwarf2_initialize_objfile): Declare. | |
2271 | ||
58b6ab13 TT |
2272 | 2010-07-13 Tom Tromey <[email protected]> |
2273 | ||
2274 | * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook. | |
2275 | (basic_lookup_transparent_type): Likewise. | |
2276 | * symfile.h (struct quick_symbol_functions) | |
2277 | <pre_expand_symtabs_matching>: New field. | |
2278 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function. | |
2279 | (psym_functions): Update. | |
2280 | ||
0f5238ed TT |
2281 | 2010-07-13 Tom Tromey <[email protected]> |
2282 | ||
2283 | PR breakpoints/8357: | |
2284 | * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment. | |
2285 | * linespec.c (decode_line_1): Update comment. Call decode_label. | |
2286 | (decode_label): New function. | |
2287 | (symbol_found): Handle LOC_LABEL. | |
2288 | * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and | |
2289 | domain. Call add_symbol_to_list. | |
2290 | ||
9aa1f1e3 TT |
2291 | 2010-07-13 Tom Tromey <[email protected]> |
2292 | ||
2293 | * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare. | |
2294 | * dwarf2loc.c (find_location_expression): Use | |
2295 | dwarf2_per_cu_text_offset. | |
2296 | (dwarf2_evaluate_loc_desc): Likewise. | |
2297 | (dwarf2_loc_desc_needs_frame): Likewise. | |
2298 | (compile_dwarf_to_ax): Likewise. | |
2299 | (loclist_describe_location): Likewise. | |
2300 | * dwarf2read.c (dwarf2_per_cu_text_offset): New function. | |
2301 | (dwarf2_per_cu_objfile): Update comment. | |
2302 | ||
953ac07e JK |
2303 | 2010-07-12 Jan Kratochvil <[email protected]> |
2304 | ||
2305 | * dwarf2read.c (read_subrange_type): Call read_subrange_type. | |
2306 | * p-lang.c (pascal_printstr): Likewise. | |
2307 | ||
f04e4012 TT |
2308 | 2010-07-09 Tom Tromey <[email protected]> |
2309 | ||
2310 | * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use | |
2311 | 'hint' if it is NULL. | |
2312 | ||
f4dfd9c0 HZ |
2313 | 2010-07-09 Hui Zhu <[email protected]> |
2314 | ||
2315 | * source.c (print_source_lines_base): Add check for noprint. | |
2316 | ||
7e6e39e5 JB |
2317 | 2010-07-08 Joel Brobecker <[email protected]> |
2318 | ||
2319 | * python/python-config.py: Resync with Python 2.7 version of this | |
2320 | script. | |
2321 | ||
76b8507d JB |
2322 | 2010-07-08 Joel Brobecker <[email protected]> |
2323 | ||
2324 | * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2). | |
2325 | ||
797054e6 JB |
2326 | 2010-07-07 Joel Brobecker <[email protected]> |
2327 | ||
2328 | * NEWS: Create a new section for the next release branch. | |
2329 | Rename the section of the current branch, now that it has | |
2330 | been cut. | |
2331 | ||
c80befee | 2332 | 2010-07-07 Joel Brobecker <[email protected]> |
2333 | ||
2334 | GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC) | |
2335 | * version.in: Bump version to 7.2.50.20100707-cvs. | |
2336 | ||
ac56253d TT |
2337 | 2010-07-07 Tom Tromey <[email protected]> |
2338 | ||
2339 | * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a | |
2340 | LOC_COMPUTED symbol. | |
2341 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field. | |
2342 | (dwarf2_loc_desc_needs_frame): Likewise. | |
2343 | (compile_dwarf_to_ax) <DW_OP_addr>: Use offset. | |
2344 | * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field. | |
2345 | * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset. | |
2346 | * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add | |
2347 | 'offset' argument. | |
2348 | (struct dwarf2_frame_cache) <text_offset>: New field. | |
2349 | (dwarf2_frame_cache): Set new field. | |
2350 | (dwarf2_frame_prev_register): Update. | |
2351 | (dwarf2_frame_sniffer): Update. | |
2352 | (dwarf2_frame_base_sniffer): Update. | |
2353 | (dwarf2_frame_find_fde): Add 'out_offset' argument. | |
2354 | ||
0cf6dd15 TJB |
2355 | 2010-07-07 Sergio Durigan Junior <[email protected]> |
2356 | Thiago Jung Bauermann <[email protected]> | |
2357 | ||
2358 | Support for hw accelerated condition watchpoints in booke powerpc. | |
2359 | ||
2360 | * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value | |
2361 | and move to eval.c. Change callers. | |
2362 | (insert_bp_location): Pass watchpoint condition in | |
2363 | target_insert_watchpoint. | |
2364 | (remove_breakpoint_1) Pass watchpoint condition in | |
2365 | target_remove_watchpoint. | |
2366 | (watchpoint_locations_match): Call | |
2367 | target_can_accel_watchpoint_condition. | |
2368 | * eval.c: Include wrapper.h. | |
2369 | (fetch_subexp_value): Moved from breakpoint.c. | |
2370 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): | |
2371 | Formatting fix. | |
2372 | (can_use_watchpoint_cond_accel): New function. | |
2373 | (calculate_dvc): Likewise. | |
2374 | (num_memory_accesses): Likewise. | |
2375 | (check_condition): Likewise. | |
2376 | (ppc_linux_can_accel_watchpoint_condition): Likewise | |
2377 | (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel, | |
2378 | check_condition and calculate_dvc. | |
2379 | (ppc_linux_remove_watchpoint): Likewise. | |
2380 | (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to | |
2381 | ppc_linux_can_accel_watchpoint_condition | |
2382 | * target.c (debug_to_insert_watchpoint): Add argument for watchpoint | |
2383 | condition. | |
2384 | (debug_to_remove_watchpoint): Likewise. | |
2385 | (debug_to_can_accel_watchpoint_condition): New function. | |
2386 | (update_current_target): Set to_can_accel_watchpoint_condition. | |
2387 | (setup_target_debug): Set to_can_accel_watchpoint_condition. | |
2388 | * target.h: Add opaque declaration for struct expression. | |
2389 | (struct target_ops) <to_insert_watchpoint>, | |
2390 | <to_remove_watchpoint>: Add new arguments to pass the watchpoint | |
2391 | <to_can_accel_watchpoint_condition>: New member. | |
2392 | condition. Update all callers and implementations. | |
2393 | (target_can_accel_watchpoint_condition): New macro. | |
2394 | * value.c (free_value_chain): New function. | |
2395 | * value.h (fetch_subexp_value): New prototype. | |
2396 | (free_value_chain): Likewise. | |
2397 | ||
2f2241f1 UW |
2398 | 2010-07-07 Ulrich Weigand <[email protected]> |
2399 | ||
2400 | * linux-nat.c (linux_nat_do_thread_registers): Use section size | |
2401 | from gdbarch_core_regset_sections also for .reg if present. | |
2402 | ||
2403 | * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect | |
2404 | section size for .reg. | |
2405 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
2406 | (ppc_linux_vmx_regset_sections): Likewise. | |
2407 | (ppc_linux_fp_regset_sections): Likewise. | |
2408 | (ppc64_linux_vsx_regset_sections): New variable. | |
2409 | (ppc64_linux_vmx_regset_sections): Likewise. | |
2410 | (ppc64_linux_fp_regset_sections): Likewise. | |
2411 | (ppc_linux_init_abi): Install core_regset_section lists appropriate | |
2412 | for current word size. | |
2413 | ||
1fd7cdc2 JB |
2414 | 2010-07-06 Joel Brobecker <[email protected]> |
2415 | ||
2416 | * server.c (myresume): Make static. | |
2417 | ||
11763c18 TT |
2418 | 2010-07-06 Tom Tromey <[email protected]> |
2419 | ||
2420 | * configure, config.in: Rebuild. | |
2421 | * configure.ac (HAVE_LIBPYTHON2_7): New define. | |
2422 | * python/python-internal.h: Handle HAVE_LIBPYTHON2_7. | |
2423 | ||
a6cc4789 AS |
2424 | 2010-07-06 Andreas Schwab <[email protected]> |
2425 | ||
2426 | * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for | |
2427 | "clear". | |
2428 | ||
f9e9243a UW |
2429 | 2010-07-06 Ken Werner <[email protected]> |
2430 | ||
2431 | * gdbtypes.h (floatformats_ieee_half): Add declaration. | |
2432 | * gdbtypes.c (floatformats_ieee_half): New variable. | |
2433 | * doublest.c (floatformat_from_length): Set format to | |
2434 | gdbarch_half_format if length matches. | |
2435 | * gdbarch.sh (half_bit): New architecture method. | |
2436 | (half_format): Likewise. | |
2437 | * gdbarch.h: Regenerate. | |
2438 | * gdbarch.c: Likewise. | |
2439 | ||
4e5799b6 JK |
2440 | 2010-07-05 Jan Kratochvil <[email protected]> |
2441 | Joel Brobecker <[email protected]> | |
2442 | ||
2443 | Fix re-run of PIE executable, PR shlibs/11776. | |
2444 | * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove | |
2445 | the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS. | |
2446 | ||
86e4bafc JK |
2447 | 2010-07-05 Jan Kratochvil <[email protected]> |
2448 | Joel Brobecker <[email protected]> | |
2449 | ||
2450 | * auxv.c (memory_xfer_auxv): Update attach comment. | |
2451 | * solib-svr4.c (svr4_special_symbol_handling): Remove the call to | |
2452 | svr4_relocate_main_executable. | |
2453 | (svr4_solib_create_inferior_hook): Make the call to | |
2454 | svr4_relocate_main_executable unconditional. | |
2455 | ||
3cd07d20 JK |
2456 | 2010-07-05 Jan Kratochvil <[email protected]> |
2457 | Joel Brobecker <[email protected]> | |
2458 | ||
2459 | * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address. | |
2460 | ||
0a1e94c7 JK |
2461 | 2010-07-05 Jan Kratochvil <[email protected]> |
2462 | Joel Brobecker <[email protected]> | |
2463 | ||
2464 | Fix attaching to PIEs prelinked on the disk after the process was | |
2465 | started. | |
2466 | * solib-svr4.c (svr4_exec_displacement): New variable arch_size. | |
2467 | Verify it against bfd_get_arch_size. Try to match arbitrary | |
2468 | displacement for the phdrs comparison. | |
2469 | ||
5387647f TT |
2470 | 2010-07-02 Tom Tromey <[email protected]> |
2471 | ||
2472 | PR exp/11780: | |
2473 | * libunwind-frame.c (libunwind_frame_prev_register): Don't set | |
2474 | value as optimized-out. | |
2475 | ||
38b6c3b3 TJB |
2476 | 2010-07-02 Ulrich Weigand <[email protected]> |
2477 | Thiago Jung Bauermann <[email protected]> | |
2478 | ||
2479 | * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this | |
2480 | represent?" question in comment. Change comment to a proper sentence. | |
2481 | ||
a17ac5b0 TT |
2482 | 2010-07-02 Ken Werner <[email protected]> |
2483 | ||
2484 | * c-valprint.c (c_val_print): Fix printing of character vectors. | |
2485 | ||
bddaafad JK |
2486 | 2010-07-02 Jan Kratochvil <[email protected]> |
2487 | ||
2488 | * spu-tdep.c (spu_catch_start): Adjust the caller of changed | |
2489 | create_breakpoint prototype. | |
2490 | ||
d41c0fc8 PA |
2491 | 2010-07-01 Pedro Alves <[email protected]> |
2492 | ||
2493 | * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify | |
2494 | usefulness suggestion of multiple breakpoints at same location. | |
2495 | ||
dc10affe PA |
2496 | 2010-07-01 Pedro Alves <[email protected]> |
2497 | ||
2498 | * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'. | |
2499 | ||
cabe9ab6 PA |
2500 | 2010-07-01 Pedro Alves <[email protected]> |
2501 | ||
2502 | * dwarf2loc.c (locexpr_tracepoint_var_ref) | |
2503 | (loclist_tracepoint_var_ref): Handle optimized out values. | |
2504 | ||
cce7e648 PA |
2505 | 2010-07-01 Pedro Alves <[email protected]> |
2506 | ||
2507 | * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove | |
2508 | unnecessary space in string. | |
2509 | * filesystem.c (_initialize_filesystem): Ditto. | |
2510 | * frame.c (_initialize_frame): Ditto. | |
2511 | * infcmd.c (step_once): Ditto. | |
2512 | * infrun.c (_initialize_infrun): Ditto. | |
2513 | * linux-nat.c (linux_child_follow_fork): Ditto. | |
2514 | * maint.c (maintenance_deprecate): Ditto. | |
2515 | * memattr.c (_initialize_mem): Ditto. | |
2516 | * mips-tdep.c (_initialize_mips_tdep): Ditto. | |
2517 | * monitor.c (monitor_open): Ditto. | |
2518 | * procfs.c (procfs_xfer_memory): Ditto. | |
2519 | * reverse.c (bookmarks_info): Ditto. | |
2520 | * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto. | |
2521 | * stack.c (_initialize_stack): Ditto. | |
2522 | * tracepoint.c (_initialize_tracepoint): Ditto. | |
2523 | * xtensa-tdep.c (xtensa_supply_gregset, | |
2524 | xtensa_regset_from_core_section): Ditto. | |
2525 | ||
b65c7efe TT |
2526 | 2010-07-01 Tom Tromey <[email protected]> |
2527 | ||
2528 | * value.h (struct lval_funcs) <check_any_valid>: Rename from | |
2529 | check_all_valid. | |
2530 | * value.c (value_entirely_optimized_out): Invert result. Update | |
2531 | for new function name. | |
2532 | ||
0fb4aa4b PA |
2533 | 2010-07-01 Pedro Alves <[email protected]> |
2534 | ||
2535 | Static tracepoints support. | |
2536 | ||
2537 | * NEWS: Mention new support for static tracepoints. | |
2538 | (New packets): Mention qTfSTM, qTsSTM, qTSTMat and | |
2539 | qXfer:statictrace:read. | |
2540 | (New features in the GDB remote stub, GDBserver): Mention static | |
2541 | tracepoints support using an UST based backend. | |
2542 | (New commands): Mention "info static-tracepoint-markers" and | |
2543 | "strace". | |
2544 | * breakpoint.c (is_marker_spec): New. | |
2545 | (is_tracepoint): Handle static tracepoints. | |
2546 | (validate_commands_for_breakpoint): Static tracepoints can't do | |
2547 | while-stepping. | |
2548 | (static_tracepoints_here): New. | |
2549 | (bpstat_what): Handle static tracepoints. | |
2550 | (print_one_breakpoint_location, allocate_bp_location, mention): | |
2551 | Ditto. | |
2552 | (create_breakpoint_sal): Ditto. | |
2553 | (decode_static_tracepoint_spec): New. | |
2554 | (create_breakpoint): Replace `hardwareflag', and `traceflag' with | |
2555 | `type_wanted'. Adjust. Handle static tracepoint marker | |
2556 | locations. | |
2557 | (break_command_1): Adjust. | |
2558 | (update_static_tracepoint): New. | |
2559 | (update_breakpoint_locations): Handle static tracepoints. | |
2560 | (breakpoint_re_set_one): Handle static tracepoint marker | |
2561 | locations. | |
2562 | (disable_command, enable_command): Handle static tracepoints. | |
2563 | (trace_command, ftrace_command): Adjust. | |
2564 | (strace_command): New. | |
2565 | (create_tracepoint_from_upload): Adjust. | |
2566 | (save_breakpoints): Handle static tracepoints. | |
2567 | (_initialize_breakpoint): Install the "strace" command. | |
2568 | * breakpoint.h (enum bptype): New bp_static_tracepoint type. | |
2569 | (struct breakpoint): New fields static_trace_marker_id and | |
2570 | static_trace_marker_id_idx. | |
2571 | (breakpoints_here_p): Declare. | |
2572 | (create_breakpoint): Adjust. | |
2573 | (static_tracepoints_here): Declare. | |
2574 | * remote.c (struct remote_state) <static_tracepoints>: New field. | |
2575 | (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New. | |
2576 | (remote_static_tracepoint_marker_at): New. | |
2577 | (remote_static_tracepoint_markers_by_strid): New. | |
2578 | (remote_static_tracepoint_feature): New. | |
2579 | (remote_disconnected_tracing_feature): Handle "StaticTracepoints". | |
2580 | (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA. | |
2581 | (remote_supports_static_tracepoints): New. | |
2582 | (remote_download_tracepoint): Download static tracepoints. | |
2583 | (init_remote_ops): Install remote_static_tracepoint_marker_at and | |
2584 | remote_static_tracepoint_markers_by_strid. | |
2585 | (_initialize_remote): Install set|show remote static-tracepoints, | |
2586 | and set|show remote read-sdata-object commands. | |
2587 | * target.c (update_current_target): Inherit and default | |
2588 | to_static_tracepoint_marker_at, and | |
2589 | to_static_tracepoint_markers_by_strid. | |
2590 | * target.h (static_tracepoint_marker): Forward declare. | |
2591 | (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA. | |
889bf7c5 | 2592 | (static_tracepoint_marker_p): New typedef. |
0fb4aa4b PA |
2593 | (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type. |
2594 | (struct target_ops): New fields to_static_tracepoint_marker_at and | |
2595 | to_static_tracepoint_markers_by_strid. | |
2596 | (target_static_tracepoint_marker_at) | |
2597 | (target_static_tracepoint_markers_by_strid): New. | |
2598 | * tracepoint.c: Include source.h. | |
2599 | (validate_actionline): Handle $_sdata. | |
2600 | (struct collection_list): New field strace_data. | |
2601 | (add_static_trace_data): New. | |
2602 | (clear_collection_list): Clear strace_data. | |
2603 | (stringify_collection_list): Account for a possible static trace | |
2604 | data collection. | |
2605 | (encode_actions_1): Encode an $_sdata collection. | |
2606 | (parse_tracepoint_definition): Handle static tracepoints. | |
2607 | (parse_static_tracepoint_marker_definition): New. | |
2608 | (release_static_tracepoint_marker): New. | |
2609 | (print_one_static_tracepoint_marker): New. | |
2610 | (info_static_tracepoint_markers_command): New. | |
2611 | (sdata_make_value): New. | |
2612 | (_initialize_tracepoint): Create the $_sdata convenience variable. | |
2613 | Add the "info static-tracepoint-markers" command. | |
2614 | Mention $_sdata in the "collect" command's help output. | |
2615 | * tracepoint.h (struct static_tracepoint_marker): New. | |
2616 | (parse_static_tracepoint_marker_definition) | |
2617 | (release_static_tracepoint_marker): Declare. | |
2618 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust. | |
2619 | * python/py-breakpoint.c (bppy_new): Adjust. | |
2620 | ||
aac63f0f JB |
2621 | 2010-06-30 Joel Brobecker <[email protected]> |
2622 | ||
2623 | * python/python-internal.h (_XOPEN_SOURCE): Undefine before | |
2624 | including Python.h. | |
2625 | ||
e68994a7 DE |
2626 | 2010-06-29 Doug Evans <[email protected]> |
2627 | ||
3863f96c DE |
2628 | PR gdb/11702 |
2629 | * dwarf2read.c (dwarf2_add_field): Only create a symbol if | |
2630 | DW_AT_external is present. | |
2631 | ||
254e6b9e DE |
2632 | PR gdb/11702 |
2633 | * NEWS: Add entry. | |
2634 | * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present, | |
2635 | create a symbol for the field and record the value. | |
2636 | (new_symbol): Handle DW_TAG_member. | |
2637 | * gdbtypes.c (field_is_static): Remove FIXME. | |
2638 | * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN, | |
2639 | only ignore LOC_CONST symbols that are enums. | |
2640 | ||
6e70227d DE |
2641 | * dwarf2read.c: Remove trailing whitespace. |
2642 | ||
e68994a7 DE |
2643 | Delete FIELD_LOC_KIND_DWARF_BLOCK, unused. |
2644 | * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK. | |
2645 | (struct main_type, field loc): Delete dwarf_block. | |
2646 | (FIELD_DWARF_BLOCK): Delete. | |
2647 | (SET_FIELD_DWARF_BLOCK): Delete. | |
2648 | (TYPE_FIELD_DWARF_BLOCK): Delete. | |
2649 | * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img): | |
2650 | Update. | |
2651 | ||
a480d2f6 HZ |
2652 | 2010-06-29 Hui Zhu <[email protected]> |
2653 | ||
2654 | * record.c (set_record_pic_cmdlist, | |
2655 | show_record_pic_cmdlist): New variables. | |
2656 | (set_record_pic_command, | |
2657 | show_record_pic_command): New functions. | |
2658 | (record_pic_function, record_pic_line, record_pic_enum, | |
2659 | set_record_pic_type, record_pic_hide_nofunction, | |
2660 | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
2661 | (record_pic_fputs): New function. | |
2662 | (function_list, node_list, edge_list): New struct. | |
2663 | (function_list, node_list, edge_list): New variables. | |
2664 | (record_pic_cleanups, record_pic_node, | |
2665 | record_pic_edge, cmd_record_pic): New functions. | |
2666 | (_initialize_record): Add new commands for record pic. | |
2667 | ||
a0d7a4ff JK |
2668 | 2010-06-28 Jan Kratochvil <[email protected]> |
2669 | ||
2670 | * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call | |
2671 | ALLOCATE_CPLUS_STRUCT_TYPE. | |
2672 | ||
595939de | 2673 | 2010-06-28 Phil Muldoon <[email protected]> |
889bf7c5 PA |
2674 | Tom Tromey <[email protected]> |
2675 | Thiago Jung Bauermann <[email protected]> | |
595939de PM |
2676 | |
2677 | * value.c (pack_unsigned_long): New function. | |
2678 | (value_from_ulongest): New function. | |
2679 | * value.h (value_from_ulongest): Declare. | |
2680 | * python/python.c (_initialize_python): Call | |
2681 | gdbpy_initialize_thread and gdbpy_initialize_inferior. | |
2682 | * python/python-internal.h: Define thread_object. | |
2683 | (gdbpy_inferiors, gdbpy_selected_thread) | |
2684 | (frame_info_to_frame_object, create_thread_object) | |
2685 | (find_thread_object, find_inferior_object) | |
2686 | (gdbpy_initialize_thread, gdbpy_initialize_inferiors) | |
2687 | (gdbpy_is_value_object, get_addr_from_python): Declare. | |
2688 | * python/py-value.c (builtin_type_upylong): Define. | |
2689 | (convert_value_from_python): Add logic for ulongest. | |
2690 | (gdbpy_is_value_object): New function. | |
2691 | * python/py-utils.c (get_addr_from_python): New function. | |
2692 | * python/py-frame.c (frame_info_to_frame_object): Return a PyObject. | |
2693 | (gdbpy_selected_frame): Use PyObject over frame_info. | |
2694 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and | |
2695 | py-infthread. | |
2696 | (SUBDIR_PYTHON_SRCS): Likewise. | |
2697 | (py-inferior.o): New Rule. | |
2698 | (py-infthread.o): New Rule. | |
2699 | * python/py-inferior.c: New File. | |
2700 | * python/py-infthread.c: New File. | |
2701 | ||
98751a41 JK |
2702 | 2010-06-28 Jan Kratochvil <[email protected]> |
2703 | ||
2704 | * c-typeprint.c (c_type_print_base): For no fields check include also | |
2705 | TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section. | |
2706 | * dwarf2read.c (struct typedef_field_list) | |
2707 | (struct field_info) <typedef_field_list, typedef_field_list_count>: New. | |
2708 | (dwarf2_add_typedef): New. | |
2709 | (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef. | |
2710 | Copy also FI.TYPEDEF_FIELD_LIST. | |
2711 | * gdbtypes.h (struct typedef_field) | |
2712 | (struct cplus_struct_type) <typedef_field, typedef_field_count> | |
2713 | (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME) | |
2714 | (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New. | |
2715 | ||
41f62f39 JK |
2716 | 2010-06-28 Jan Kratochvil <[email protected]> |
2717 | ||
2718 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
2719 | concatenated_name. Turn the current return condition into a reverse | |
2720 | one. Call also lookup_static_symbol_aux on the constructed qualified | |
2721 | name. | |
2722 | * symtab.c (lookup_symbol_aux): Move variable objfile and searching in | |
2723 | other files into a called ... | |
2724 | (lookup_static_symbol_aux): ... new function here. | |
2725 | * symtab.h (lookup_static_symbol_aux): New prototype. | |
2726 | * valops.c (value_maybe_namespace_elt): Call also | |
2727 | lookup_static_symbol_aux if we failed otherwise. | |
2728 | ||
af53d231 JK |
2729 | 2010-06-28 Jan Kratochvil <[email protected]> |
2730 | ||
2731 | Fix PR c++/11703 and PR gdb/1448. | |
2732 | * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add | |
2733 | FIRST_ITER check. | |
2734 | ||
9655fd1a JK |
2735 | 2010-06-28 Jan Kratochvil <[email protected]> |
2736 | ||
2737 | Fix modification of cplus_struct_default. | |
2738 | * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>: | |
2739 | Call ALLOCATE_CPLUS_STRUCT_TYPE. | |
2740 | * gdbtypes.c (cplus_struct_default): New empty initializer, comment it. | |
2741 | ||
9279c692 JB |
2742 | 2010-06-28 Joel Brobecker <[email protected]> |
2743 | ||
2744 | * NEWS: Add entry announcing the python directory. | |
2745 | ||
d3f41bb1 TT |
2746 | 2010-06-28 Tom Tromey <[email protected]> |
2747 | ||
2748 | * dwarf2read.c (read_structure_type): Allocate null cleanup later. | |
2749 | ||
23e7acfb DE |
2750 | 2010-06-28 Doug Evans <[email protected]> |
2751 | ||
2752 | * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused. | |
2753 | All callers updated. | |
2754 | ||
6036c742 JK |
2755 | 2010-06-28 Jan Kratochvil <[email protected]> |
2756 | ||
2757 | * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call | |
2758 | obstack_begin after each obstack_free. | |
2759 | ||
9f18a3b3 DE |
2760 | 2010-06-27 Doug Evans <[email protected]> |
2761 | ||
1596cb5d DE |
2762 | * value.c (value_static_field): Use `switch' instead of `if'. |
2763 | Assert-fail if passed invalid TYPE_FIELD_LOC_KIND. | |
2764 | ||
9f18a3b3 DE |
2765 | * valops.c (search_struct_field): Fix typo in error message. |
2766 | ||
43dabe42 UW |
2767 | 2010-06-26 Ulrich Weigand <[email protected]> |
2768 | ||
2769 | * dwarf2expr.c (execute_stack_op): Place preprocessor | |
2770 | directives at the start of the source line. | |
2771 | ||
0f3bb72e PH |
2772 | 2010-06-25 Paul Hilfinger <[email protected]> |
2773 | ||
6036c742 JK |
2774 | * defs.h (make_command_stats_cleanup): Declare. |
2775 | (set_display_time): Declare. | |
2776 | (set_display_space): Declare. | |
2777 | * event-top.c (command_handler): Use make_command_stats_cleanup. | |
2778 | * main.c (display_time, display_space): Move definitions to utils.c. | |
2779 | (captured_main): Use make_command_stats_cleanup to get start-up | |
2780 | statistics. | |
2781 | Use set_display_time and set_display_space for processing OPT_STATISTICS | |
2782 | case. | |
2783 | * maint.c (maintenance_time_display): Use set_display_time. | |
2784 | (maintenance_space_display): Use set_display_space. | |
2785 | * top.c (execute_command): Remove obsolete 'maint time' code. | |
2786 | (command_loop): Use make_command_stats_cleanup. | |
2787 | * utils.c (struct cmd_stats): Structure for storing initial time | |
2788 | and space usage. | |
2789 | (display_time, display_space): Move definitions here from utils.c. | |
2790 | (set_display_time): New function. | |
2791 | (set_display_space): New function. | |
2792 | (make_command_stats_cleanup): New function. | |
2793 | (report_command_stats): New auxiliary function for | |
2794 | make_command_stats_cleanup. | |
0f3bb72e | 2795 | |
070c8028 UW |
2796 | 2010-06-25 Ulrich Weigand <[email protected]> |
2797 | ||
2798 | * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for | |
2799 | hosts where CORE_ADDR is long long. | |
2800 | ||
bc9f0842 TT |
2801 | 2010-06-25 Tom Tromey <[email protected]> |
2802 | ||
2803 | PR python/10808: | |
2804 | * python/python.c (execute_gdb_command): Add keywords. Accept | |
2805 | "to_string" argument. | |
2806 | (struct restore_ui_file_closure): New. | |
2807 | (restore_ui_file): New function. | |
2808 | (make_cleanup_restore_ui_file): Likewise. | |
2809 | (GdbMethods) <execute>: Update. | |
2810 | ||
c0cc4c83 UW |
2811 | 2010-06-25 Ulrich Weigand <[email protected]> |
2812 | ||
2813 | * s390-tdep.c (s390_push_dummy_call): Error on stack overflow | |
2814 | during inferior call stack frame setup. | |
2815 | ||
f1d8ee66 UW |
2816 | 2010-06-25 Ken Werner <[email protected]> |
2817 | ||
2818 | * solib-spu.c: Include "exception.h". | |
2819 | (ocl_program_data_key): New variable. | |
2820 | (append_ocl_sos): New function. | |
2821 | (ocl_enable_break): Likewise. | |
2822 | (spu_current_sos): Call append_ocl_sos. | |
2823 | (spu_solib_loaded): Call ocl_enable_break. | |
2824 | (_initialize_spu_solib): Register ocl_program_data_key. | |
2825 | ||
19c0c0f8 UW |
2826 | 2010-06-25 Ulrich Weigand <[email protected]> |
2827 | ||
2828 | * cp-support.c (reset_directive_searched): New function. | |
2829 | (make_symbol_overload_list_using): Prevent recursive calls. | |
2830 | ||
0f6a939d PM |
2831 | 2010-06-25 Phil Muldoon <[email protected]> |
2832 | ||
2833 | * printcmd.c (print_variable_and_value): Print error message on | |
2834 | caught exception. | |
2835 | ||
f2c7657e UW |
2836 | 2010-06-25 Ulrich Weigand <[email protected]> |
2837 | ||
2838 | * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type | |
2839 | of stack values. | |
2840 | (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new | |
2841 | "value" member. | |
2842 | (dwarf_expr_push): Change input type to ULONGEST. | |
2843 | (dwarf_expr_fetch): Change return type to ULONGEST. | |
2844 | (dwarf_expr_fetch_address): Add prototype. | |
2845 | (dwarf2_read_address): Remove prototype. | |
2846 | * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values. | |
2847 | Truncate stack values to ctx->addr_size bytes. | |
2848 | (dwarf_expr_fetch): Change return value to ULONGEST. | |
2849 | (dwarf_expr_fetch_address): New function. | |
2850 | (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch | |
2851 | when appropriate. Update for struct dwarf_expr_piece changes. | |
2852 | (dwarf2_read_address): Remove. | |
2853 | (unsigned_address_type): Remove. | |
2854 | (signed_address_type): Remove. | |
2855 | (execute_stack_op): Use dwarf_expr_fetch_address instead of | |
2856 | dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack | |
2857 | values. Perform operations on ULONGEST instead of on GDB values, | |
2858 | sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr | |
2859 | values and DW_OP_deref results as unsigned integers. | |
2860 | * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece | |
2861 | changes. | |
2862 | (write_pieced_value): Likewise. | |
2863 | (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of | |
2864 | dwarf_expr_fetch when appropriate. | |
2865 | (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers. | |
2866 | * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address | |
2867 | instead of dwarf_expr_fetch when appropriate. | |
2868 | ||
b1d61bc9 PM |
2869 | 2010-06-25 Pierre Muller <[email protected]> |
2870 | ||
2871 | * c-typeprint.c (c_print_typedef): Append new type name for typedefs. | |
2872 | ||
b14285f6 JB |
2873 | 2010-06-24 Joel Brobecker <[email protected]> |
2874 | ||
2875 | * python/python.c (_initialize_python): Add new "constant" | |
2876 | PYTHONDIR in gdb module. Insert this path at the head of | |
2877 | sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and | |
2878 | exec its __init__.py script if it exists in that directory. | |
2879 | ||
fd60dc69 KB |
2880 | 2010-06-24 Kevin Buettner <[email protected]> |
2881 | ||
2882 | * rx-tdep.c (RX_ACC_REGNUM): Define. | |
2883 | (RX_NUM_REGS): Redefine to 26. | |
2884 | (rx_register_name): Add register "acc". Change order of several | |
2885 | registers. Change name of "vct" register to "fintv" to match RX | |
2886 | documentation. | |
2887 | (rx_register_type): Add case for RX_ACC_REGNUM. | |
2888 | ||
18430289 TT |
2889 | 2010-06-24 Tom Tromey <[email protected]> |
2890 | ||
2891 | * psymtab.c (lookup_partial_symbol): Mark definition as static. | |
2892 | ||
40618926 JK |
2893 | 2010-06-24 Jan Kratochvil <[email protected]> |
2894 | Tom Tromey <[email protected]> | |
2895 | ||
2896 | Fix GDB startup on readonly filesystem. | |
2897 | * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init. | |
2898 | ||
628fe4e4 JK |
2899 | 2010-06-24 Jan Kratochvil <[email protected]> |
2900 | Pedro Alves <[email protected]> | |
2901 | ||
2902 | Fix PR 9436. | |
2903 | * breakpoint.c (handle_jit_event): New function. | |
2904 | (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl, | |
2905 | jit, err, table and bs_class. New variables shlib_event, jit_event, | |
2906 | this_action and bptype. Change bs_class assignments to this_action | |
2907 | assignments. new unhandled bptype internal error. Move here | |
2908 | shlib_event and jit_event handling from handle_inferior_event. | |
2909 | * breakpoint.h (enum bpstat_what_main_action): Extend the comment. | |
2910 | Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and | |
2911 | BPSTAT_WHAT_CHECK_JIT. | |
2912 | * inferior.h (debug_infrun, stop_on_solib_events): New declarations. | |
2913 | * infrun.c (debug_infrun, stop_on_solib_events): Remove static. | |
2914 | (handle_inferior_event): Reinitialize frame and gdbarch after | |
2915 | bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and | |
2916 | BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even | |
2917 | gdbarch when frame gets reinitialized. | |
2918 | ||
f1421989 HZ |
2919 | 2010-06-24 Hui Zhu <[email protected]> |
2920 | ||
2921 | * printcmd.c (ui_printf): New function. | |
2922 | (printf_command): Call ui_printf. | |
2923 | (_initialize_printcmd): New command "eval". | |
2924 | ||
d03285ec UW |
2925 | 2010-06-23 Ulrich Weigand <[email protected]> |
2926 | ||
2927 | * infrun.c (handle_inferior_event): Handle presence of single-step | |
2928 | breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED. | |
2929 | Cancel single-step breakpoints for TARGET_WAITKIND_EXITED, | |
2930 | TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD. | |
2931 | * breakpoint.c (detach_single_step_breakpoints): New function. | |
2932 | (detach_breakpoints): Call it. | |
2933 | (cancel_single_step_breakpoints): New function. | |
2934 | * breakpoint.h (cancel_single_step_breakpoints): Add prototype. | |
2935 | ||
2936 | * spu-tdep.c (spu_memory_remove_breakpoint): New function. | |
2937 | (spu_gdbarch_init): Install it. | |
2938 | ||
38f6b338 JK |
2939 | 2010-06-23 Jan Kratochvil <[email protected]> |
2940 | ||
2941 | * configure.ac: Always set RDYNAMIC at least as `-rdynamic'. | |
2942 | * configure: Regenerate. | |
2943 | ||
bb08c432 HZ |
2944 | 2010-06-22 Hui Zhu <[email protected]> |
2945 | ||
2946 | * i386-tdep.c (i386_record_lea_modrm): Change warning to query. | |
2947 | (i386_process_record): Ditto. | |
2948 | * record.c (record_memory_query): New variable. | |
2949 | (_initialize_record): New command "set record memory-query". | |
2950 | * record.h (record_memory_query): New extern. | |
2951 | ||
b55078be DE |
2952 | 2010-06-21 Doug Evans <[email protected]> |
2953 | ||
2954 | * i386-tdep.h (i386_displaced_step_copy_insn): Declare. | |
2955 | * i386-tdep.c (i386_displaced_step_copy_insn): New function. | |
2956 | (i386_syscall_p): Change type of lengthp to int. | |
2957 | (i386_displaced_step_fixup): Handle kernels that run one past a | |
2958 | syscall insn. | |
2959 | * i386-linux-tdep.c (i386_linux_init_abi): Use | |
2960 | i386_displaced_step_copy_insn instead of | |
2961 | simple_displaced_step_copy_insn. | |
2962 | ||
75079b2b TT |
2963 | 2010-06-21 Tom Tromey <[email protected]> |
2964 | ||
2965 | * dwarf2read.c (read_base_type): Handle DW_ATE_UTF. | |
2966 | (dwarf_type_encoding_name): Likewise. | |
2967 | ||
b00fdb78 TT |
2968 | 2010-06-21 Tom Tromey <[email protected]> |
2969 | ||
2970 | * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME. | |
2971 | * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME. | |
2972 | * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME. | |
2973 | * gdbtypes.h (TYPE_ERROR_NAME): New macro. | |
2974 | * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME. | |
2975 | * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME. | |
2976 | * dwarf2read.c (tag_type_to_type): Create a new error type on | |
2977 | failure. | |
2978 | * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME. | |
2979 | * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME. | |
2980 | ||
84951ab5 MS |
2981 | 2010-06-21 Michael Snyder <[email protected]> |
2982 | ||
889bf7c5 | 2983 | * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd, |
84951ab5 MS |
2984 | not add_abbrev_prefix_cmd, for "enable breakpoints". |
2985 | ||
d4a087c7 UW |
2986 | 2010-06-21 Ulrich Weigand <[email protected]> |
2987 | ||
2988 | * dwarf2loc.c (find_location_expression): Add relocation offset | |
2989 | to base-address-selection entry base addresses. Read addresses | |
2990 | (and offsets) as signed/unsigned integers, depending on the | |
2991 | BFD's sign_extend_vma flag. Do not call dwarf2_read_address. | |
2992 | (loclist_describe_location): Likewise. | |
2993 | (disassemble_dwarf_expression): Read DW_OP_addr operand as | |
2994 | unsigned integer. Do not call dwarf2_read_address. | |
2995 | (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address. | |
2996 | ||
13def385 UW |
2997 | 2010-06-19 Ulrich Weigand <[email protected]> |
2998 | ||
2999 | * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register | |
3000 | value instead of hard-coded SPU_LS_SIZE. | |
3001 | (spu_software_single_step): Likewise. | |
3002 | * spu-tdep.h (SPU_LS_SIZE): Remove. | |
3003 | ||
d2ed6730 UW |
3004 | 2010-06-19 Ulrich Weigand <[email protected]> |
3005 | ||
3006 | * spu-multiarch.c (spu_xfer_partial): Wrap around local store | |
3007 | limit on local store memory accesses. | |
3008 | * spu-linux-nat.c (spu_xfer_partial): Likewise. | |
3009 | * spu-tdep.c (spu_lslr): Remove. | |
3010 | (spu_pointer_to_address): Do not truncate addresses. | |
3011 | (spu_integer_to_address): Likewise. | |
3012 | (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA. | |
3013 | * spu-tdep.h: Add comments. | |
3014 | (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit. | |
3015 | (SPU_OVERLAY_LMA): Define. | |
3016 | ||
6aed2dbc SS |
3017 | 2010-06-18 Stan Shebs <[email protected]> |
3018 | ||
a61408f8 SS |
3019 | * osdata.c (get_osdata): Warn separately if target does not report |
3020 | type list. | |
3021 | (info_osdata_command): Allow empty type, report error if target | |
3022 | does not return available types of OS data. | |
3023 | * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data | |
3024 | types if no annex supplied. | |
3025 | ||
6aed2dbc SS |
3026 | * thread.c (thread_id_make_value): Make a value representing the |
3027 | current thread. | |
3028 | (_initialize_thread): Create $_thread. | |
3029 | ||
ec61707d JB |
3030 | 2010-06-17 Joel Brobecker <[email protected]> |
3031 | ||
3032 | * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after | |
3033 | last local variable declaration. No real code change. | |
3034 | ||
60606b2c TT |
3035 | 2010-06-17 Tom Tromey <[email protected]> |
3036 | ||
3037 | * dwarf2read.c (psymtabs_addrmap_cleanup): New function. | |
3038 | (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a | |
3039 | temporary obstack. | |
3040 | ||
65d79d4b SDJ |
3041 | 2010-06-16 Sergio Durigan Junior <[email protected]> |
3042 | Jan Kratochvil <[email protected]> | |
3043 | ||
3044 | * breakpoint.c: Include parser-defs.h. | |
3045 | (watchpoint_exp_is_const): New function. | |
3046 | (watch_command_1): Call watchpoint_exp_is_const to check | |
3047 | if the expression is constant. | |
3048 | ||
0407b3f1 AS |
3049 | 2010-06-15 Andreas Schwab <[email protected]> |
3050 | ||
3051 | * configure.ac: Check for RDYNAMIC also for cross builds. | |
3052 | * configure: Regenerate. | |
3053 | ||
98d64339 PA |
3054 | 2010-06-15 Pedro Alves <[email protected]> |
3055 | ||
3056 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
3057 | (SFILES): Remove solib-null.c, add solib-target.c. | |
3058 | (COMMON_OBS): Remove solib-null.o, add solib-target.o. | |
3059 | (ALLDEPFILES): Remove solib-target.c. | |
3060 | * solib-target.c (_initialize_solib_target): Set | |
3061 | current_target_so_ops to solib_target_so_ops if not already set. | |
3062 | * solib-null.c: Delete. | |
3063 | ||
6a271cae PA |
3064 | 2010-06-14 Pedro Alves <[email protected]> |
3065 | ||
3066 | * NEWS: Mention GDBserver's JIT compilation of tracepoint | |
3067 | bytecode. | |
3068 | ||
1e9beacb UW |
3069 | 2010-06-14 Ulrich Weigand <[email protected]> |
3070 | ||
3071 | * cp-valprint.c (cp_print_static_field): Members of | |
3072 | dont_print_stat_array_obstack are of type "struct type *". | |
3073 | (_initialize_cp_valprint): Likewise. | |
3074 | ||
21a176fb UW |
3075 | 2010-06-14 Ulrich Weigand <[email protected]> |
3076 | ||
3077 | * frame.c (frame_register_unwind): Do not access contents | |
3078 | of "optimized out" unwound register value. | |
3079 | ||
25b524e8 JK |
3080 | 2010-06-14 Jan Kratochvil <[email protected]> |
3081 | ||
3082 | * ada-lang.h (ada_print_type): Make varstring const. | |
3083 | * ada-typeprint.c (print_func_type): Make name const. | |
3084 | (ada_print_type): Make varstring const. | |
3085 | * c-lang.h (c_print_type): Make varstring const. | |
3086 | * c-typeprint.c (c_print_type): Likewise. | |
3087 | * f-lang.h (f_print_type): Likewise. | |
3088 | * f-typeprint.c (f_print_type): Likewise. | |
3089 | * jv-lang.h (java_print_type): Likewise. | |
3090 | * jv-typeprint.c (java_print_type): Likewise. | |
3091 | * language.c (unk_lang_print_type): Likewise. | |
3092 | * language.h (struct language_defn) <la_print_type>: Likewise. | |
3093 | * m2-lang.h (m2_print_type): Likewise. | |
3094 | * m2-typeprint.c (m2_print_type): Likewise. | |
3095 | * p-lang.h (pascal_print_type): Likewise. | |
3096 | * p-typeprint.c (pascal_print_type): Likewise. | |
3097 | ||
d914c394 SS |
3098 | 2010-06-11 Stan Shebs <[email protected]> |
3099 | ||
3100 | Add per-operation permission flags. | |
3101 | ||
3102 | * target.h (struct target_ops): New method to_set_permissions. | |
3103 | (target_set_permissions): New macro. | |
3104 | (target_insert_breakpoint): Change macro to function. | |
3105 | (target_remove_breakpoint): Ditto. | |
3106 | (target_stop): Ditto. | |
3107 | (may_write_registers): Declare. | |
3108 | (may_write_memory): Declare. | |
3109 | (may_insert_breakpoints): Declare. | |
3110 | (may_insert_tracepoints): Declare. | |
3111 | (may_insert_fast_tracepoints): Declare. | |
3112 | (may_stop): Declare. | |
3113 | * target.c (may_write_registers, may_write_registers_1): New globals. | |
3114 | (may_write_memory, may_write_memory_1): New globals. | |
3115 | (may_insert_breakpoints, may_insert_breakpoints_1): New globals. | |
3116 | (may_insert_tracepoints, may_insert_tracepoints_1): New globals. | |
3117 | (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New | |
3118 | globals. | |
3119 | (may_stop, may_stop_1): New global. | |
3120 | (target_xfer_partial): Test for write permission. | |
3121 | (target_store_registers): Ditto. | |
3122 | (target_insert_breakpoint): New function. | |
3123 | (target_remove_breakpoint): New function. | |
3124 | (target_stop): New function. | |
3125 | (_initialize_targets): Add new set/show variables. | |
3126 | (set_write_memory_permission): New function. | |
3127 | (update_target_permissions): New function. | |
3128 | (set_target_permissions): New function. | |
3129 | (update_current_target): Default to_set_permissions. | |
3130 | (_initialize_targets): Use new globals and setter function. | |
3131 | * tracepoint.c (start_tracing): Test for permission. | |
3132 | * inferior.h (update_observer_mode): Declare. | |
3133 | * infrun.c (non_stop_1): Define earlier. | |
3134 | (observer_mode, observer_mode_1): New globals. | |
3135 | (set_observer_mode, show_observer_mode): New functions. | |
3136 | (update_observer_mode): New function. | |
3137 | (_initialize_infrun): Define "set observer" command. | |
3138 | * remote.c (PACKET_QAllow): New optional packet. | |
3139 | (remote_protocol_features): Add QAllow. | |
3140 | (remote_set_permissions): New function. | |
3141 | (remote_start_remote): Call it. | |
3142 | (init_remote_ops): Add it to target vector. | |
3143 | (_initialize_remote): Add config command for QAllow. | |
3144 | ||
aec5aa8b TT |
3145 | 2010-06-11 Tom Tromey <[email protected]> |
3146 | ||
3147 | * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of | |
3148 | DW_AT_vtable_elem_location even when GCC extension is seen. | |
3149 | ||
0e03807e TT |
3150 | 2010-06-11 Tom Tromey <[email protected]> |
3151 | ||
3152 | PR gdb/9977, PR exp/11636: | |
3153 | * value.h (value_offset): Update. | |
3154 | (struct lval_funcs) <check_validity>: New field. | |
3155 | <copy_closure>: Make argument const. | |
3156 | (value_computed_closure): Update. | |
3157 | (value_contents_for_printing): Declare. | |
3158 | (value_bits_valid): Likewise. | |
3159 | (val_print): Likewise. | |
3160 | (set_value_component_location): Update. | |
3161 | (value_entirely_optimized_out): Declare. | |
3162 | * value.c (value_offset): Argument now const. | |
3163 | (require_not_optimized_out): New function. | |
3164 | (value_contents_for_printing): New function. | |
3165 | (value_contents_all): Call require_not_optimized_out. | |
3166 | (value_contents): Likewise. | |
3167 | (value_bits_valid): New function. | |
3168 | (value_computed_closure): Argument now const. | |
3169 | (set_value_component_location): Make 'whole' argument const. | |
3170 | (value_entirely_optimized_out): New function. | |
3171 | (value_bitsize): Argument now 'const'. | |
3172 | (value_bitpos): Likewise. | |
3173 | (value_type): Likewise. | |
3174 | * valprint.h (val_print_array_elements): Update. | |
3175 | * valprint.c (val_print): Add 'val' argument. Use | |
3176 | valprint_check_validity. | |
3177 | (valprint_check_validity): New function. | |
3178 | (value_check_printable): Use value_entirely_optimized_out. | |
3179 | (common_val_print): Update. | |
3180 | (value_print): Likewise. | |
3181 | (val_print_array_elements): Add 'val' argument. | |
3182 | * valops.c (value_fetch_lazy): Use value_contents_for_printing, | |
3183 | value_bits_valid. Reinit frame cache for lval_computed. | |
3184 | * sh64-tdep.c (sh64_do_register): Update. | |
3185 | * scm-valprint.c (scm_val_print): Add 'val' argument. | |
3186 | * scm-lang.h (scm_val_print): Update. | |
3187 | * python/python.h (apply_val_pretty_printer): Update. | |
3188 | * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val' | |
3189 | argument. Call set_value_component_location. | |
3190 | * printcmd.c (print_scalar_formatted): Update. | |
3191 | * p-valprint.c (pascal_val_print): Add 'val' argument. | |
3192 | (pascal_object_print_value_fields): Likewise. | |
3193 | (pascal_object_print_value): Likewise. | |
3194 | (pascal_object_print_static_field): Update. | |
3195 | * p-lang.h (pascal_val_print): Update. | |
3196 | (pascal_object_print_value_fields): Update. | |
3197 | * mt-tdep.c (mt_registers_info): Update. | |
3198 | * mi/mi-main.c (get_register): Update. | |
3199 | (mi_cmd_data_evaluate_expression): Use common_val_print. | |
3200 | * m2-valprint.c (m2_print_array_contents): Add 'val' argument. | |
3201 | (m2_print_unbounded_array): Likewise. | |
3202 | (m2_val_print): Likewise. | |
3203 | * m2-lang.h (m2_val_print): Update. | |
3204 | * language.h (struct language_defn) <la_val_print>: Add 'val' | |
3205 | argument. | |
3206 | (LA_VAL_PRINT): Likewise. | |
3207 | * language.c (unk_lang_val_print): Add 'val' argument. | |
3208 | * jv-valprint.c (java_print_value_fields): Add 'val' argument. | |
3209 | (java_val_print): Likewise. | |
3210 | * jv-lang.h (java_val_print): Add 'val' argument. | |
3211 | * infcmd.c (default_print_registers_info): Update. | |
3212 | * f-valprint.c (f77_print_array_1): Add 'val' argument. | |
3213 | (f77_print_array): Likewise. | |
3214 | (f_val_print): Likewise. | |
3215 | * f-lang.h (f_val_print): Add 'val' argument. | |
3216 | * dwarf2loc.c (read_pieced_value): Use value_bitsize and | |
3217 | value_bitpos. | |
3218 | <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call | |
3219 | set_value_optimized_out. | |
3220 | (write_pieced_value): Use value_bitsize and value_bitpos. | |
3221 | <default>: Don't exit loop. | |
3222 | (check_pieced_value_validity): New function. | |
3223 | (pieced_value_funcs): Reference check_pieced_value_validity, | |
3224 | check_pieced_value_invalid. | |
3225 | (copy_pieced_value_closure): Update. | |
3226 | (check_pieced_value_bits): New function. | |
3227 | (check_pieced_value_invalid): New function. | |
3228 | * d-valprint.c (dynamic_array_type): Add 'val' argument. | |
3229 | (d_val_print): Likewise. | |
3230 | * d-lang.h (d_val_print): Update. | |
3231 | * cp-valprint.c (cp_print_value_fields): Add 'val' argument. | |
3232 | (cp_print_value_fields_rtti): Likewise. | |
3233 | (cp_print_value): Likewise. | |
3234 | (cp_print_static_field): Update. | |
3235 | * c-valprint.c (c_val_print): Add 'val' argument. | |
3236 | (c_value_print): Update. | |
3237 | * c-lang.h (c_val_print): Update. | |
3238 | (cp_print_value_fields): Likewise. | |
3239 | (cp_print_value_fields_rtti): Likewise. | |
3240 | * ada-valprint.c (struct ada_val_print_args): Remove. | |
3241 | (val_print_packed_array_elements): Add 'val' argument. | |
3242 | (ada_val_print): Likewise. Rewrite. | |
3243 | (ada_val_print_stub): Remove. | |
3244 | (ada_val_print_array): Add 'val' argument. | |
3245 | (ada_val_print_1): Likewise. | |
3246 | (print_variant_part): Likewise. | |
3247 | (ada_value_print): Update. | |
3248 | (print_record): Add 'val' argument. | |
3249 | (print_field_values): Likewise. | |
3250 | * ada-lang.h (ada_val_print): Update. | |
3251 | ||
3cf03773 TT |
3252 | 2010-06-11 Tom Tromey <[email protected]> |
3253 | ||
3254 | * vec.h (VEC_cleanup): New macro. | |
3255 | (DEF_VEC_ALLOC_FUNC_I): Update. | |
3256 | (DEF_VEC_ALLOC_FUNC_P): Likewise. | |
3257 | (DEF_VEC_ALLOC_FUNC_O): Likewise. | |
3258 | * dwarf2loc.c (struct axs_var_loc): Remove. | |
3259 | (unimplemented): New function. | |
3260 | (translate_register): Likewise. | |
3261 | (access_memory): Likewise. | |
3262 | (compile_dwarf_to_ax): Likewise. | |
3263 | (dwarf2_tracepoint_var_loc): Remove. | |
3264 | (dwarf2_tracepoint_var_access): Likewise. | |
3265 | (dwarf2_tracepoint_var_ref): Likewise. | |
3266 | (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax. | |
3267 | (loclist_tracepoint_var_ref): Likewise. | |
3268 | * dwarf2expr.h (dwarf_expr_require_composition): Declare. | |
3269 | * dwarf2expr.c (dwarf_expr_require_composition): Rename from | |
3270 | require_composition. No longer static. | |
3271 | (execute_stack_op): Update. | |
3272 | * ax-gdb.h (trace_kludge): Declare. | |
3273 | ||
2bdf28a0 JK |
3274 | 2010-06-11 Jan Kratochvil <[email protected]> |
3275 | ||
3276 | * breakpoint.c (breakpoint_restore_shadows): New OWNER comment. | |
3277 | (should_be_inserted): Return zero also on NULL OWNER. | |
3278 | (breakpoint_program_space_exit): New OWNER comment. | |
3279 | (insert_breakpoint_locations): Extend comment for OWNER. | |
3280 | (remove_breakpoint_1, remove_breakpoint): Assert on OWNER. | |
3281 | (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match): | |
3282 | New OWNER comment. | |
3283 | (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER. | |
3284 | (watchpoint_check): New assert on BREAKPOINT_AT and OWNER. | |
3285 | (bpstat_check_location): New assert on OWNER. | |
3286 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL | |
3287 | and B initializations to the code block. New assert on them. | |
3288 | (print_one_breakpoint_location): New OWNER comment. | |
3289 | (watchpoint_locations_match): Assert on OWNER. | |
3290 | (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2 | |
3291 | initializations to the code block. New assert on OWNER. | |
3292 | (set_breakpoint_location_function): New assert on OWNER. | |
3293 | (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib) | |
3294 | (bp_location_compare, update_global_location_list) | |
3295 | (update_global_location_list): New OWNER comment. | |
3296 | ||
5b9a19af UW |
3297 | 2010-06-09 Ulrich Weigand <[email protected]> |
3298 | ||
3299 | * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h | |
3300 | ||
669211f5 UW |
3301 | 2010-06-09 Ulrich Weigand <[email protected]> |
3302 | ||
3303 | * config/nm-linux.h (struct target_ops): Remove forward declaration. | |
3304 | (lin_thread_get_thread_signals): Remove prototype. | |
3305 | (GET_THREAD_SIGNALS): Remove. | |
3306 | * linux-nat.h (lin_thread_get_thread_signals): Add prototype. | |
3307 | * linux-thread-db.c (check_thread_signals): Directly call | |
3308 | lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS. | |
3309 | ||
b7a8b4ef UW |
3310 | 2010-06-09 Ulrich Weigand <[email protected]> |
3311 | ||
3312 | * gregset.h (GDB_FPXREGSET_T): Remove. | |
3313 | (gdb_fpxregset_t): Likewise. | |
3314 | (supply_fpxregset): Remove prototype. | |
3315 | (fill_fpxregset): Likewise. | |
3316 | * i386-linux-nat.c (supply_fpxregset): Remove. | |
3317 | (fill_fpxregset): Likewise. | |
3318 | (fetch_fpxregs): Inline supply_fpxregset call. | |
3319 | (store_fpxregs): Inline fill_fpxregset call. | |
3320 | ||
3321 | * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h. | |
3322 | * config/i386/nm-linux.h: Remove file. | |
3323 | ||
82892036 MS |
3324 | 2010-06-09 Michael Snyder <[email protected]> |
3325 | ||
3326 | * target.c (update_current_target): Fix spelling error in comment. | |
3327 | (target_mourn_inferior): Fix spelling error in error message. | |
3328 | ||
5ddb52fa PH |
3329 | 2010-06-08 Paul Hilfinger <[email protected]> |
3330 | ||
3331 | * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to | |
3332 | SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments. | |
3333 | ||
0f2caa1b MS |
3334 | 2010-06-08 Michael Snyder <[email protected]> |
3335 | ||
3336 | * remote.c (remote_close): Set inferior_ptid to null_ptid. | |
3337 | ||
3bebe2f2 JK |
3338 | 2010-06-08 Jan Kratochvil <[email protected]> |
3339 | ||
3340 | * configure.ac <"${have_libpython}" != no>: New workaround of | |
3341 | python#4434. | |
3342 | * configure: Regenerate. | |
3343 | ||
eaaffdf4 HZ |
3344 | 2010-06-08 Hui Zhu <[email protected]> |
3345 | ||
3346 | * record.c (record_wait): Move signal out of replay code. | |
3347 | ||
5c631832 JK |
3348 | 2010-06-07 Jan Kratochvil <[email protected]> |
3349 | ||
3350 | Fix PR 10640. | |
3351 | * dwarf2-frame.c (no_dwarf_call): New function. | |
3352 | (execute_stack_op): Set CTX->DWARF_CALL. | |
3353 | * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New. | |
3354 | * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New. | |
3355 | (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field. | |
3356 | * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions. | |
3357 | (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL. | |
3358 | (needs_frame_dwarf_call): New function. | |
3359 | (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL. | |
3360 | * dwarf2read.c (follow_die_offset): Based on former follow_die_ref. | |
3361 | Update the comment. Move variables die, offset and error call to ... | |
3362 | (follow_die_ref): ... a new function. | |
3363 | (dwarf2_fetch_die_location_block): New function. | |
3364 | * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype. | |
3365 | ||
17ea53c3 JK |
3366 | 2010-06-07 Jan Kratochvil <[email protected]> |
3367 | ||
3368 | * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. | |
3369 | (dwarf_expr_tls_address): Use per_cu instead of objfile. | |
3370 | (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. | |
3371 | Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for | |
3372 | this change. | |
3373 | (struct needs_frame_baton): New field per_cu. | |
3374 | (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. | |
3375 | * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment. | |
3376 | ||
245040d7 SW |
3377 | 2010-06-07 Sami Wagiaalla <[email protected]> |
3378 | ||
3379 | * cp-support.c (make_symbol_overload_list_namespace): Only search | |
3380 | static and global blocks. | |
3381 | (make_symbol_overload_list_block): New function. | |
3382 | (make_symbol_overload_list): Separate namespace search from block | |
3383 | search. | |
3384 | (make_symbol_overload_list_qualified): Use | |
3385 | make_symbol_overload_list_block. | |
3386 | ||
4c3376c8 SW |
3387 | 2010-06-07 Sami Wagiaalla <[email protected]> |
3388 | ||
3389 | * value.h: Created oload_search_type enum. | |
3390 | (find_overload_match): Use oload_search_type enum. | |
3391 | * valops.c (find_overload_match): Support combined member and | |
3392 | non-member search. | |
3393 | * eval.c (evaluate_subexp_standard): Calls to | |
3394 | find_overload_match now use oload_search_type enum. | |
3395 | (oload_method_static): Verify index is a proper value. | |
3396 | * valarith.c (value_user_defined_cpp_op): Search for and handle | |
3397 | both member and non-member operators. | |
3398 | (value_user_defined_cpp_op): New function. | |
3399 | (value_user_defined_op): New function. | |
3400 | (value_x_unop): Use value_user_defined_op. | |
3401 | (value_x_binop): Ditto. | |
3402 | * cp-support.c (make_symbol_overload_list_using): Added block | |
3403 | iteration. | |
3404 | Add check for namespace aliases and imported declarations. | |
3405 | ||
ee55da67 JK |
3406 | 2010-06-07 Jan Kratochvil <[email protected]> |
3407 | ||
3408 | * breakpoint.h (owner): Extend the comment. | |
3409 | ||
1a2ab13a JK |
3410 | 2010-06-07 Jan Kratochvil <[email protected]> |
3411 | ||
3412 | Clear stale specific bp_location from former whole breakpoint. | |
3413 | * breakpoint.c (delete_breakpoint): Move the stale referencing clear | |
3414 | code ... | |
3415 | (free_bp_location): ... here. Rename there the called function to | |
3416 | bpstat_remove_bp_location_callback. | |
3417 | (bpstat_remove_breakpoint_callback): Rename to ... | |
3418 | (bpstat_remove_bp_location_callback): ... here, change DATA resolution | |
3419 | to struct bp_location. Change the called function to | |
3420 | bpstat_remove_bp_location. Create new declaration for the function. | |
3421 | (bpstat_remove_breakpoint): Rename to ... | |
3422 | (bpstat_remove_bp_location): ..., change the parameter to loc, adjust | |
3423 | code for the new parameter type. | |
3424 | ||
16d6b4b7 NS |
3425 | 2010-06-07 Nathan Sidwell <[email protected]> |
3426 | ||
3427 | * README: Make version-agnostic. | |
3428 | ||
7e314c57 JK |
3429 | 2010-06-05 Jan Kratochvil <[email protected]> |
3430 | ||
3431 | Fix duplicate types for single DIE. | |
3432 | * dwarf2read.c (read_structure_type): Move set_descriptive_type after | |
3433 | set_die_type. | |
3434 | (read_array_type): Remove type initialization. Recheck get_die_type | |
3435 | after initial die_type. Move set_die_type before set_descriptive_type. | |
3436 | (read_set_type): New variable domain_type. Recheck get_die_type after | |
3437 | initial die_type. Move attr initialization later. | |
3438 | (read_tag_pointer_type, read_tag_reference_type): New variable | |
3439 | target_type. Recheck get_die_type after initial die_type. | |
3440 | (read_tag_ptr_to_member_type): Recheck get_die_type after initial | |
3441 | die_type and die_containing_type. | |
3442 | (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): | |
3443 | Recheck get_die_type after initial die_type. | |
3444 | (read_subrange_type): Recheck get_die_type after initial die_type. | |
3445 | Move set_die_type before set_descriptive_type. | |
3446 | (set_die_type): Extend the function comment. Call complaint if DIE has | |
3447 | some type already set. | |
3448 | ||
2f296114 VP |
3449 | 2010-06-05 Vladimir Prus <[email protected]> |
3450 | ||
3451 | * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust | |
3452 | for current naming of thread groups (iN, not N). | |
3453 | ||
554794dc SDJ |
3454 | 2010-06-04 Sergio Durigan Junior <[email protected]> |
3455 | ||
3456 | * ada-lang.c (ada_operator_length): Constify `struct expression'. | |
3457 | * parse.c (operator_length): Likewise. | |
3458 | (operator_length_standard): Likewise. | |
3459 | * parser-defs.h (operator_length): Likewise. | |
3460 | (operator_length_standard): Likewise. | |
3461 | (struct exp_descriptor <operator_length>): Likewise. | |
3462 | ||
967cf477 DE |
3463 | 2010-06-04 Doug Evans <[email protected]> |
3464 | ||
bddaacb9 | 3465 | Add support for enabling/disabling individual pretty-printers. |
967cf477 DE |
3466 | * python/py-prettyprint.c (search_pp_list): Skip disabled printers. |
3467 | * python/python-internal.h (gdbpy_enabled_cst): Declare. | |
3468 | * python/python.c (gdbpy_enabled_cst): Define. | |
3469 | (_initialize_python): Initialize gdbpy_enabled_cst. | |
3470 | * NEWS: Add entry. | |
3471 | ||
2dec564e JK |
3472 | 2010-06-04 Jan Kratochvil <[email protected]> |
3473 | ||
3474 | * breakpoint.c (update_global_location_list): Fix comment typo. | |
3475 | ||
44b5680a HZ |
3476 | 2010-06-04 Hui Zhu <[email protected]> |
3477 | ||
3478 | * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. | |
3479 | ||
e7a30f46 DE |
3480 | 2010-06-03 Doug Evans <[email protected]> |
3481 | ||
3482 | * configure.ac: Don't fail if python is unusable when | |
3483 | configured with --with-python=auto. | |
3484 | * configure: Regenerate. | |
3485 | ||
84b4420f SW |
3486 | 2010-06-03 Sami Wagiaalla <[email protected]> |
3487 | ||
889bf7c5 | 3488 | * dwarf2read.c (new_symbol): Remove redundant naming of symbol. |
84b4420f | 3489 | |
df178451 PM |
3490 | 2010-06-03 Pierre Muller <[email protected]> |
3491 | ||
3492 | * valprint.h (get_array_bounds): Change low and high parameter types | |
3493 | to LONGEST *. | |
0407b3f1 | 3494 | * valprint.c (get_array_bounds): Use get_discrete_bounds call to |
df178451 PM |
3495 | compute bounds. |
3496 | (val_print_array_elements): Adapt to change above. | |
3497 | * ada-valprint.c (print_optional_low_bound): Adapt to change above. | |
3498 | * p-valprint.c (pascal_val_print): Likewise. | |
3499 | ||
fd5700c7 JK |
3500 | 2010-06-02 Jan Kratochvil <[email protected]> |
3501 | ||
3502 | * symfile.c (init_filename_language_table): New extensions .for, .FOR, | |
3503 | .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and | |
3504 | .F08. | |
3505 | ||
f55ee35c JK |
3506 | 2010-06-02 Jan Kratochvil <[email protected]> |
3507 | ||
3508 | Support DW_TAG_module as separate namespaces. | |
3509 | * dwarf2read.c (typename_concat): New parameter physname. | |
3510 | (read_module_type): New function and declaration. | |
3511 | (scan_partial_symbols): Scan also DW_TAG_module children. | |
3512 | (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass | |
3513 | to typename_concat backward compatible physname value 0. | |
3514 | (partial_die_full_name, read_namespace_type): Pass to typename_concat | |
3515 | backward compatible physname value 0. | |
3516 | (add_partial_module, read_module): Remove FIXME comment. | |
3517 | (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. | |
3518 | (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for | |
3519 | DIEs under DW_TAG_module. | |
3520 | (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and | |
3521 | DW_AT_MIPS_linkage_name first, extend it for language_fortran | |
3522 | && physname and return there instead of just setting NAME. Extend | |
3523 | the main block for language_fortran. Pass physname parameter to the | |
3524 | typename_concat call. | |
3525 | (read_import_statement, read_func_scope, get_scope_pc_bounds) | |
3526 | (load_partial_dies, determine_prefix): Support also DW_TAG_module. | |
3527 | (new_symbol): Fill in cplus_specific.demangled_name if it is still | |
3528 | missing from SYMBOL_SET_NAMES in the language_fortran case. | |
3529 | (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module | |
3530 | variables. | |
3531 | (read_type_die) <DW_TAG_module>: New. | |
3532 | (MAX_SEP_LEN): Increase to 7. | |
3533 | (typename_concat): New parameter physname. New variable lead. Support | |
3534 | also language_fortran. | |
3535 | * f-exp.y (yylex): Consider : also as a symbol name character class. | |
3536 | * f-lang.c: Include cp-support.h. | |
3537 | (f_word_break_characters, f_make_symbol_completion_list): New functions. | |
3538 | (f_language_defn): Use cp_lookup_symbol_nonlocal, | |
3539 | f_word_break_characters and f_make_symbol_completion_list. | |
3540 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. | |
3541 | * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. | |
3542 | * symtab.c (symbol_init_language_specific): Support language_fortran. | |
3543 | (symbol_find_demangled_name): New comment on language_fortran. | |
3544 | (symbol_natural_name, symbol_demangled_name): Use demangled_name even | |
3545 | for language_fortran. | |
3546 | (lookup_symbol_aux_local): Check imports also for language_fortran. | |
3547 | (default_make_symbol_completion_list): Rename to ... | |
3548 | (default_make_symbol_completion_list_break_on): ... this name. New | |
3549 | parameter break_on, use it. | |
3550 | (default_make_symbol_completion_list): New stub. | |
3551 | * symtab.h (default_make_symbol_completion_list_break_on): New | |
3552 | prototype. | |
3553 | ||
cb91c06a JB |
3554 | 2010-06-02 Joel Brobecker <[email protected]> |
3555 | ||
3556 | * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call | |
3557 | to error. | |
3558 | ||
5c315b68 JK |
3559 | 2010-06-02 Jan Kratochvil <[email protected]> |
3560 | ||
3561 | * dwarf2read.c (typename_concat): Add const to the variable sep. | |
3562 | ||
9eae7c52 TT |
3563 | 2010-06-02 Tom Tromey <[email protected]> |
3564 | ||
3565 | * dwarf2loc.h (dwarf2_per_cu_data): Declare. | |
3566 | * dwarf2read.c (dwarf_stack_op_name): No longer static. Return | |
3567 | type is const. Add 'def' argument. Add missing operators, remove | |
3568 | unhandled ones. | |
3569 | (decode_locdesc): Update. | |
3570 | (dwarf2_always_disassemble): New global. | |
3571 | (show_dwarf2_always_disassemble): New function. | |
3572 | (_initialize_dwarf2_read): Add always-disassemble. | |
3573 | (dwarf2_per_cu_offset_size): New function. | |
3574 | * dwarf2loc.c (dwarf2_always_disassemble): Declare. | |
3575 | (piece_end_p): New function. | |
3576 | (locexpr_describe_location_piece): Replace 'size' argument with | |
3577 | 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize | |
3578 | some constants. Remove errors. | |
3579 | (disassemble_dwarf_expression): New function. | |
3580 | (locexpr_describe_location_1): Use disassemble_dwarf_expression. | |
3581 | Add 'offset_size' argument. | |
3582 | (loclist_describe_location): Change output formatting. | |
3583 | * dwarf2expr.h (dwarf_stack_op_name): Declare. | |
3584 | ||
7d3fe98e SW |
3585 | 2010-06-02 Sami Wagiaalla <[email protected]> |
3586 | ||
3587 | * cp-support.c (make_symbol_overload_list_adl_namespace): Handle | |
3588 | anonymous type case. | |
3589 | ||
e77813c8 PM |
3590 | 2010-06-02 Pierre Muller <[email protected]> |
3591 | ||
3592 | * dwarf2read.c (read_subrange_type): Handle missing base type | |
3593 | according to Dwarf-2 specifications. | |
3594 | ||
7cf3118a SDJ |
3595 | 2010-06-01 Sergio Durigan Junior <[email protected]> |
3596 | ||
3597 | * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL, | |
3598 | BINOP_EXCL. | |
3599 | (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL, | |
3600 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH. | |
3601 | (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL, | |
3602 | BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, | |
3603 | UNOP_CHMAX, UNOP_CHMIN. | |
3604 | * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL, | |
3605 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX, | |
3606 | UNOP_CHMIN>: Remove opcodes. | |
3607 | ||
ae4d0c03 PM |
3608 | 2010-06-01 Pierre Muller <[email protected]> |
3609 | ||
3610 | * dwarf2read.c (read_func_scope): Do not complain for | |
3611 | external function if bounds are not found. | |
3612 | ||
fa593d66 PA |
3613 | 2010-06-01 Pedro Alves <[email protected]> |
3614 | ||
3615 | * NEWS: Mention gdbserver fast tracepoints support. | |
3616 | ||
cd44747c PM |
3617 | 2010-05-31 Pierre Muller <[email protected]> |
3618 | ||
3619 | * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont): | |
3620 | New macros. | |
3621 | (windows_set_console_info): New function. | |
3622 | (windows_create_inferior): Call windows_set_console_info | |
3623 | if NEW_CONSOLE is true. | |
3624 | (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions. | |
3625 | (_initialize_loadable): Initialize GetConsoleFontSize and | |
3626 | GetCurrentConsoleFont. | |
3627 | ||
f6528abd JK |
3628 | 2010-05-28 Jan Kratochvil <[email protected]> |
3629 | ||
3630 | * Makefile.in (RDYNAMIC): New. | |
3631 | (SFILES): Add proc-service.list. | |
3632 | * config/alpha/alpha-linux.mh (NAT_CDEPS): New. | |
3633 | (LOADLIBES): Replace -rdynamic by $(RDYNAMIC). | |
3634 | * config/arm/linux.mh: Likewise. | |
3635 | * config/i386/linux.mh: Likewise. | |
3636 | * config/i386/linux64.mh: Likewise. | |
3637 | * config/ia64/linux.mh: Likewise. | |
3638 | * config/m32r/linux.mh: Likewise. | |
3639 | * config/m68k/linux.mh: Likewise. | |
3640 | * config/mips/linux.mh: Likewise. | |
3641 | * config/pa/linux.mh: Likewise. | |
3642 | * config/powerpc/linux.mh: Likewise. | |
3643 | * config/powerpc/ppc64-linux.mh: Likewise. | |
3644 | * config/s390/s390.mh: Likewise. | |
3645 | * config/sparc/linux.mh: Likewise. | |
3646 | * config/sparc/linux64.mh: Likewise. | |
3647 | * config/xtensa/linux.mh: Likewise. | |
3648 | * configure.ac: New RDYNAMIC on native host and GCC. | |
3649 | (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC. | |
3650 | * configure: Regenerate. | |
3651 | * proc-service.list: New. | |
3652 | ||
ca2a87a0 JK |
3653 | 2010-05-28 Jan Kratochvil <[email protected]> |
3654 | ||
3655 | * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid | |
3656 | CONTENT. | |
3657 | ||
1e225492 JK |
3658 | 2010-05-28 Jan Kratochvil <[email protected]> |
3659 | ||
3660 | * linux-nat.c (linux_nat_wait_1): Do not call | |
3661 | linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or | |
3662 | TARGET_WAITKIND_SIGNALLED. | |
3663 | ||
e802dbe0 JB |
3664 | 2010-05-27 Joel Brobecker <[email protected]> |
3665 | ||
3666 | * ada-lang.c (ada_inferior_data): New struct. | |
3667 | (ada_inferior_data): New static global. | |
3668 | (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit) | |
3669 | (ada_get_tsd_type): New functions. | |
3670 | (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type | |
3671 | to look the tsd type up. | |
3672 | (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit | |
3673 | event. Set ada_inferior_data. | |
3674 | ||
176a6961 PA |
3675 | 2010-05-27 Pedro Alves <[email protected]> |
3676 | ||
3677 | * remote.c (unpack_varlen_hex): Remove forward declaration. | |
3678 | (remote_console_output): Make static, and add forward declaration. | |
3679 | * remote.h: Drop FIXME comment. | |
3680 | (unpack_varlen_hex): Declare. | |
3681 | (remote_console_output, remote_cisco_objfile_relocate) | |
3682 | (deprecated_target_resume_hook, deprecated_target_wait_loop_hook): | |
3683 | Delete declarations. | |
3684 | * tracepoint.c: Include "remote.h". | |
3685 | (unpack_varlen_hex): Delete declaration. | |
3686 | ||
88bfdde4 TT |
3687 | 2010-05-27 Tom Tromey <[email protected]> |
3688 | ||
3689 | * dwarf2loc.c (struct piece_closure) <refc>: New field. | |
3690 | (allocate_piece_closure): Initialize refc. | |
3691 | (copy_pieced_value_closure): Use refc. | |
3692 | (free_pieced_value_closure): Likewise. | |
3693 | ||
8c6363cf TT |
3694 | 2010-05-27 Tom Tromey <[email protected]> |
3695 | ||
3696 | * arm-tdep.c (push_stack_item): 'contents' now const. | |
3697 | (arm_push_dummy_call): Make 'val' const. Use value_contents, not | |
3698 | value_contents_writeable. Introduce new temporary. | |
3699 | ||
7ecb917e TT |
3700 | 2010-05-27 Tom Tromey <[email protected]> |
3701 | ||
3702 | * findcmd.c (parse_find_args): Use value_contents, not | |
3703 | value_contents_raw. | |
3704 | ||
f42a0a33 TT |
3705 | 2010-05-27 Tom Tromey <[email protected]> |
3706 | ||
3707 | * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents | |
3708 | const. Use value_contents, not value_contents_writeable. | |
3709 | ||
12b795ad JB |
3710 | 2010-05-27 Joel Brobecker <[email protected]> |
3711 | ||
3712 | * ada-lang.c (ensure_lval): Replace call to value_contents_raw | |
3713 | by call to value_contents. | |
3714 | ||
5a2e11c7 OS |
3715 | 2010-05-27 Ozkan Sezer <[email protected]> |
3716 | ||
3717 | * MAINTAINERS: Add myself for write after approval privileges. | |
3718 | ||
ec685c5e DE |
3719 | 2010-05-26 Doug Evans <[email protected]> |
3720 | ||
0c4a4063 DE |
3721 | Allow python to find its files if moved from original location. |
3722 | * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function. | |
3723 | (GDB_AC_WITH_DIR): Call it. | |
3724 | * configure.ac: Define WITH_PYTHON_PATH if we can find the | |
3725 | python installation directory. | |
3726 | * config.in: Regenerate. | |
3727 | * configure: Regenerate. | |
3728 | * defs.h (python_libdir): Declare. | |
3729 | * main.c (python_libdir): Define. | |
3730 | (captured_main): Initialize python_libdir. | |
3731 | * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH, | |
3732 | call Py_SetProgramName to make sure python can find its libraries | |
3733 | and modules. | |
3734 | ||
ec685c5e DE |
3735 | * configure.ac: Try to use python's distutils to fetch compilation |
3736 | parameters. | |
3737 | * configure: Regenerate. | |
3738 | * python/python-config.py: New file. | |
3739 | ||
363a6e9f OS |
3740 | 2010-05-26 Ozkan Sezer <[email protected]> |
3741 | ||
3742 | * ser-tcp.c (net_open): Check error return from socket() call by its | |
3743 | equality to -1 not by it being negative. | |
3744 | (net_close): Likewise. | |
3745 | ||
dde08ee1 PA |
3746 | 2010-05-26 Pedro Alves <[email protected]> |
3747 | ||
3748 | * NEWS: Mention the `qRelocInsn' feature. | |
3749 | * gdbarch.sh (relocate_instruction): New. | |
3750 | * amd64-tdep.c (rip_relative_offset): New. | |
3751 | (append_insns): New. | |
3752 | (amd64_relocate_instruction): New. | |
3753 | (amd64_init_abi): Install it. | |
3754 | * i386-tdep.c (append_insns): New. | |
3755 | (i386_relocate_instruction): New. | |
3756 | (i386_gdbarch_init): Install it. | |
3757 | * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests. | |
3758 | * gdbarch.h, gdbarch.c: Regenerate. | |
3759 | ||
947bb88f TT |
3760 | 2010-05-26 Tom Tromey <[email protected]> |
3761 | ||
3762 | * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const. | |
3763 | (struct dwarf2_loclist_baton) <data>: Likewise. | |
3764 | * dwarf2loc.c (find_location_expression): Constify return type. | |
3765 | (dwarf2_evaluate_loc_desc): Make 'data' argument const. | |
3766 | (dwarf2_loc_desc_needs_frame): Likewise. | |
3767 | (loclist_read_variable): Constify. | |
3768 | (loclist_describe_location): Likewise. | |
3769 | (loclist_tracepoint_var_ref): Likewise. | |
3770 | ||
0d45f56e TT |
3771 | 2010-05-25 Tom Tromey <[email protected]> |
3772 | ||
3773 | * dwarf2loc.c (dwarf_expr_frame_base): Constify. | |
3774 | (dwarf_expr_frame_base_1): Likewise. | |
3775 | (read_pieced_value): Update. | |
3776 | (needs_frame_frame_base): Constify. | |
3777 | (dwarf2_tracepoint_var_loc): Likewise. | |
3778 | (dwarf2_tracepoint_var_access): Likewise. | |
3779 | (locexpr_describe_location_piece): Likewise. | |
3780 | (locexpr_describe_location_1): Likewise. | |
3781 | * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>: | |
3782 | Constify. | |
3783 | (data): Now const. | |
3784 | (struct dwarf_expr_piece) <v.literal.data>: Likewise. | |
3785 | (dwarf_expr_eval, read_uleb128, read_sleb128) | |
3786 | (dwarf2_read_address): Update. | |
3787 | * dwarf2expr.c (dwarf_expr_eval): Constify. | |
3788 | (read_uleb128): Likewise. | |
3789 | (read_sleb128): Likewise. | |
3790 | (dwarf2_read_address): Likewise. | |
3791 | (require_composition): Likewise. | |
3792 | (execute_stack_op): Likewise. | |
3793 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a | |
3794 | "const gdb_byte *". | |
3795 | * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>: | |
3796 | Now const. | |
3797 | (no_get_frame_base): Constify. | |
3798 | (execute_stack_op): Likewise. | |
3799 | (execute_cfa_program): Likewise. | |
3800 | (read_encoded_value): Likewise. | |
3801 | ||
07ca107c DE |
3802 | 2010-05-25 Doug Evans <[email protected]> |
3803 | ||
e34838f0 DE |
3804 | * ser-pipe.c (pipe_open): Ignore SIGINTs in child. |
3805 | ||
01f69b38 DE |
3806 | * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ... |
3807 | * event-loop.c: ... here. | |
3808 | * tui/tui-io.c (tui_readline_output): Rename parameter `code' to | |
3809 | `error' for clarity. | |
3810 | (tui_getc): Pass correct value for `error' parameter to | |
3811 | tui_readline_output. | |
3812 | ||
07ca107c DE |
3813 | Add python gdb.GdbError and gdb.string_to_argv. |
3814 | * NEWS: Document them. | |
3815 | * python/py-cmd.c (cmdpy_function): Don't print a traceback if | |
3816 | the exception is gdb.GdbError. Print a second traceback if there's | |
3817 | an error computing the error message. | |
3818 | (gdbpy_string_to_argv): New function. | |
3819 | * python/py-utils.c (gdbpy_obj_to_string): New function. | |
3820 | (gdbpy_exception_to_string): New function. | |
3821 | * python/python-internal.h (gdbpy_string_to_argv): Declare. | |
3822 | (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare. | |
3823 | (gdbpy_gdberror_exc): Declare. | |
3824 | * python/python.c (gdbpy_gdberror_exc): New global. | |
3825 | (_initialize_python): Initialize gdbpy_gdberror_exc and create | |
3826 | gdb.GdbError. | |
3827 | (GdbMethods): Add string_to_argv. | |
3828 | ||
5572ce1f PM |
3829 | 2010-05-21 Pierre Muller <[email protected]> |
3830 | ||
3831 | * windows-nat.c (display_selector): Call GetLastError to give better | |
3832 | failure explanation. | |
3833 | ||
acd5838a PA |
3834 | 2010-05-24 Pedro Alves <[email protected]> |
3835 | ||
3836 | * config.in: Regenerate. | |
3837 | ||
b26a4dcb JK |
3838 | 2010-05-23 Jan Kratochvil <[email protected]> |
3839 | ||
3840 | Code cleanup. | |
3841 | * target.c (push_target): Return only void. Remove the return value | |
3842 | comment. | |
3843 | * target.h (push_target): Return only void. | |
3844 | ||
f434ba03 PA |
3845 | 2010-05-23 Pedro Alves <[email protected]> |
3846 | ||
3847 | Update gnulib from latest git. | |
3848 | (250b80067c1e1d8faa0c42fb572f721975b929c5) | |
3849 | ||
3850 | * gnulib/memcmp.c: Removed. | |
3851 | * gnulib/memchr.valgrind: New. | |
3852 | * gnulib/stddef.in.h: New. | |
3853 | * gnulib/Makefile.am: Updated. | |
3854 | * gnulib/memchr.c: Updated. | |
3855 | * gnulib/memmem.c: Updated. | |
3856 | * gnulib/stdint.in.h: Updated. | |
3857 | * gnulib/str-two-way.h: Updated. | |
3858 | * gnulib/string.in.h: Updated. | |
3859 | * gnulib/wchar.in.h: Updated. | |
3860 | ||
3861 | * gnulib/extra/link-warning.h: Removed. | |
3862 | * gnulib/extra/c++defs.h: New. | |
3863 | * gnulib/extra/warn-on-use.h: New. | |
3864 | * gnulib/extra/arg-nonnull.h: Updated. | |
3865 | ||
3866 | * gnulib/m4/extensions.m4: Updated. | |
3867 | * gnulib/m4/gnulib-cache.m4: Updated. | |
3868 | * gnulib/m4/gnulib-common.m4: Updated. | |
3869 | * gnulib/m4/gnulib-comp.m4: Updated. | |
3870 | * gnulib/m4/gnulib-tool.m4: Updated. | |
3871 | * gnulib/m4/include_next.m4: Updated. | |
3872 | * gnulib/m4/longlong.m4: Updated. | |
3873 | * gnulib/m4/memchr.m4: Updated. | |
3874 | * gnulib/m4/memmem.m4: Updated. | |
3875 | * gnulib/m4/stdint.m4: Updated. | |
3876 | * gnulib/m4/string_h.m4: Updated. | |
3877 | * gnulib/m4/memcmp.m4: Removed. | |
3878 | * gnulib/m4/onceonly_2_57.m4: Removed. | |
3879 | * gnulib/m4/00gnulib.m4: New. | |
3880 | * gnulib/m4/mmap-anon.m4: New. | |
3881 | * gnulib/m4/multiarch.m4: New. | |
3882 | * gnulib/m4/onceonly.m4: New. | |
3883 | * gnulib/m4/stddef_h.m4: New. | |
3884 | * gnulib/m4/warn-on-use.m4: New. | |
3885 | * gnulib/m4/wchar.m4: Removed. | |
3886 | * gnulib/m4/wchar_h.m4: New. | |
3887 | * gnulib/m4/wchar_t.m4: New. | |
3888 | * gnulib/m4/wint_t.m4: New. | |
3889 | ||
3890 | * aclocal.m4: Regenerate. | |
3891 | * config.in: Likewise. | |
3892 | * configure: Likewise. | |
3893 | * gnulib/Makefile.in: Likewise. | |
3894 | ||
d3b1e874 TT |
3895 | 2010-05-21 Tom Tromey <[email protected]> |
3896 | ||
3897 | * dwarf2loc.c (extract_bits_primitive): New function. | |
3898 | (extract_bits): Likewise. | |
3899 | (insert_bits): Likewise. | |
3900 | (copy_bitwise): Likewise. | |
3901 | (read_pieced_value): Do all operations in bits. | |
3902 | (write_pieced_value): Likewise. | |
3903 | * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field. | |
3904 | * dwarf2expr.c (add_piece): New arguments bit_piece, offset. | |
3905 | Always use xrealloc to resize piece array. | |
3906 | (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece. | |
3907 | <DW_OP_piece>: Update. | |
3908 | <DW_OP_bit_piece>: New case. | |
3909 | ||
cb826367 TT |
3910 | 2010-05-21 Tom Tromey <[email protected]> |
3911 | ||
3912 | * dwarf2loc.c (read_pieced_value): Exit loop when result is full. | |
3913 | <DWARF_VALUE_OPTIMIZED_OUT>: New case. | |
3914 | * dwarf2expr.h (enum dwarf_value_location) | |
3915 | <DWARF_VALUE_OPTIMIZED_OUT>: New constant. | |
3916 | * dwarf2expr.c (dwarf_expr_stack_empty_p): New function. | |
3917 | (add_piece): Handle empty piece. | |
3918 | (execute_stack_op) <DW_OP_piece>: Handle | |
3919 | DWARF_VALUE_OPTIMIZED_OUT. | |
3920 | ||
74de6778 TT |
3921 | 2010-05-21 Tom Tromey <[email protected]> |
3922 | ||
3923 | * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call | |
3924 | evaluate_subexp, not evaluate_subexp_with_coercion. | |
3925 | ||
f346a30d PM |
3926 | 2010-05-21 Pierre Muller <[email protected]> |
3927 | ||
3928 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
3929 | attribute. | |
3930 | ||
afd74c5f TT |
3931 | 2010-05-21 Tom Tromey <[email protected]> |
3932 | ||
3933 | * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an | |
3934 | offset. | |
3935 | (write_pieced_value): Likewise. | |
3936 | ||
90e7c2c5 PM |
3937 | 2010-05-21 Pierre Muller <[email protected]> |
3938 | ||
3939 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
3940 | and DW_TAG_volatile_type. | |
3941 | (new_symbol): Likewise. | |
3942 | ||
8148cf8d PM |
3943 | 2010-05-20 Pierre Muller <[email protected]> |
3944 | ||
3945 | * p-valprint.c (pascal_val_print): Call get_array_bounds | |
3946 | to obtain the number of elements in an array. | |
3947 | ||
3a1d4620 DE |
3948 | 2010-05-19 Doug Evans <[email protected]> |
3949 | ||
0bf0f8c4 DE |
3950 | * python.c (gdbpy_print_stack): Ensure output ends with a newline. |
3951 | ||
3a1d4620 DE |
3952 | * python.c (source_python_script): Add comment. |
3953 | (source_python_script_for_objfile): Remove unnecessary call to | |
3954 | gdbpy_print_stack. | |
3955 | ||
dc21167c JK |
3956 | 2010-05-18 Jan Kratochvil <[email protected]> |
3957 | Sergio Durigan Junior <[email protected]> | |
3958 | ||
3959 | Code cleanup. | |
3960 | * parse.c (exp_iterate): Use operator_length wrapper function. | |
3961 | ||
5b4ee69b MS |
3962 | 2010-05-18 Michael Snyder <[email protected]> |
3963 | ||
3964 | * ada-lang.c: White space. | |
3965 | * ada-typeprint.c: White space. | |
3966 | * ada-valprint.c: White space. | |
3967 | * addrmap.c: White space. | |
3968 | * auxv.c: White space. | |
3969 | * ax-gdb.c: White space. | |
3970 | ||
e17c9e56 HZ |
3971 | 2010-05-18 Hui Zhu <[email protected]> |
3972 | ||
3973 | * linux-fork.c (inferior_call_waitpid_cleanup): Add check | |
3974 | for oldfp. | |
3975 | (inferior_call_waitpid): Move make_cleanup out of check. | |
3976 | Check the return of waitpid. | |
3977 | (delete_checkpoint_command): Add pptid to save fi->parent_ptid. | |
3978 | ||
a109c7c1 MS |
3979 | 2010-05-17 Michael Snyder <[email protected]> |
3980 | ||
1c5313c5 MS |
3981 | * tui/tui.c: White space. |
3982 | * tui/tui-data.c: White space. | |
3983 | * tui/tui-disasm.c: White space. | |
3984 | * tui/tui-file.c: White space. | |
3985 | * tui/tui-interp.c: White space. | |
3986 | * tui/tui-main.c: White space. | |
3987 | * tui/tui-out.c: White space. | |
3988 | * tui/tui-regs.c: White space. | |
3989 | * tui/tui-source.c: White space. | |
3990 | * tui/tui-stack.c: White space. | |
3991 | * tui/tui-win.c: White space. | |
3992 | * tui/tui-winsource.c: White space. | |
3993 | ||
f4a14ae6 MS |
3994 | * procfs.c: White space. |
3995 | ||
d59b6f6c MS |
3996 | * python/py-auto-load.c: White space. |
3997 | * python/py-block.c: White space. | |
3998 | * python/py-breakpoint.c: White space. | |
3999 | * python/py-cmd.c: White space. | |
4000 | * python/py-function.c: White space. | |
4001 | * python/py-lazy-string.c: White space. | |
4002 | * python/py-objfile.c: White space. | |
4003 | * python/py-param.c: White space. | |
4004 | * python/py-prettyprint.c: White space. | |
4005 | * python/py-progspace.c: White space. | |
4006 | * python/py-symtab.c: White space. | |
4007 | * python/python.c: White space. | |
4008 | * python/py-type.c: White space. | |
4009 | * python/py-utils.c: White space. | |
4010 | * python/py-value.c: White space. | |
4011 | ||
102040f0 MS |
4012 | * mi/mi-cmd-break.c: White space. |
4013 | * mi/mi-cmd-env.c: White space. | |
4014 | * mi/mi-cmds.c: White space. | |
4015 | * mi/mi-cmd-stack.c: White space. | |
4016 | * mi/mi-cmd-var.c: White space. | |
4017 | * mi/mi-console.c: White space. | |
4018 | * mi/mi-getopt.c: White space. | |
4019 | * mi/mi-interp.c: White space. | |
4020 | * mi/mi-main.c: White space. | |
4021 | * mi/mi-out.c: White space. | |
4022 | * mi/mi-parse.c: White space. | |
4023 | ||
cdb27c12 MS |
4024 | * cli/cli-cmds.c: White space. |
4025 | * cli/cli-decode.c: White space. | |
4026 | * cli/cli-dump.c: White space. | |
4027 | * cli/cli-interp.c: White space. | |
4028 | * cli/cli-logging.c: White space. | |
4029 | * cli/cli-script.c: White space. | |
4030 | * cli/cli-setshow.c: White space. | |
4031 | ||
a109c7c1 MS |
4032 | * valarith.c: White space. |
4033 | * valops.c: White space. | |
4034 | * valprint.c: White space. | |
4035 | * value.c: White space. | |
4036 | * varobj.c: White space. | |
4037 | * xcoffread.c: White space. | |
4038 | * xml-support.c: White space. | |
4039 | * xml-tdesc.c: White space. | |
4040 | ||
3872d37d AS |
4041 | 2010-05-17 Andreas Schwab <[email protected]> |
4042 | ||
4043 | PR gdb/11092 | |
4044 | * c-lang.c (c_printstr): Compute real length of NUL terminated | |
4045 | string at first. | |
4046 | ||
0cce5bd9 JB |
4047 | 2010-05-17 Joel Brobecker <[email protected]> |
4048 | ||
4049 | * parse.c (parse_exp_in_context): When block is not NULL, use | |
4050 | its associated language to parse the expression instead of | |
4051 | the current_language. | |
4052 | ||
5f19d646 JB |
4053 | 2010-05-17 Joel Brobecker <[email protected]> |
4054 | ||
4055 | * jv-lang.c (java_lookup_class): Remove commented out code. | |
4056 | (type_from_class): Likewise. | |
4057 | (java_op_print_tab): Remove commented-out elements. | |
4058 | ||
28c85d6c JB |
4059 | 2010-05-17 Joel Brobecker <[email protected]> |
4060 | ||
4061 | * ada-lang.c (to_fixed_range_type): The the raw index type as | |
4062 | argument instead of the raw type name. Remove orig_type parameter. | |
4063 | Update calls throughout. | |
4064 | (ada_fixup_array_indexes_type): New function. | |
4065 | (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type. | |
4066 | * ada-lang.h (ada_fixup_array_indexes_type): Add declaration. | |
4067 | * ada-typeprint.c (print_range_type): Renames print_range_type_named. | |
4068 | Remove name parameter. | |
4069 | (print_array_type): Add call to ada_fixup_array_indexes_type. | |
4070 | Update calls to print_range_type. | |
4071 | (ada_print_type): Update calls to print_range_type. | |
4072 | ||
d09039dd PM |
4073 | 2010-05-17 Pierre Muller <[email protected]> |
4074 | ||
4075 | * dwarf2read.c (read_set_type): Set type length if | |
4076 | DW_AT_byte_size attribute is present. | |
4077 | ||
7a081a30 PM |
4078 | 2010-05-17 Pierre Muller <[email protected]> |
4079 | ||
4080 | * p-valprint.c (pascal_val_print): Handle set type if range limits | |
4081 | are undefined but size is known. | |
4082 | ||
77382aee PA |
4083 | 2010-05-17 Pedro Alves <[email protected]> |
4084 | ||
4085 | * procfs.c: Reformat. | |
4086 | ||
433759f7 MS |
4087 | 2010-05-16 Michael Snyder <[email protected]> |
4088 | ||
5d502164 MS |
4089 | * target.c: White space. |
4090 | * target-descriptions.c: White space. | |
4091 | * target-memory.c: White space. | |
4092 | * thread.c: White space. | |
4093 | * top.c: White space. | |
4094 | * tracepoint.c: White space. | |
4095 | * trad-frame.c: White space. | |
4096 | * tramp-frame.c: White space. | |
4097 | * ui-file.c: White space. | |
4098 | * ui-out.c: White space. | |
4099 | * user-regs.c: White space. | |
4100 | * utils.c: White space. | |
4101 | ||
433759f7 MS |
4102 | * scm-exp.c: White space. |
4103 | * scm-lang.c: White space. | |
4104 | * scm-valprint.c: White space. | |
4105 | * sentinel-frame.c: White space. | |
4106 | * ser-base.c: White space. | |
4107 | * ser-go32.c: White space. | |
4108 | * serial.c: White space. | |
4109 | * ser-mingw.c: White space. | |
4110 | * ser-pipe.c: White space. | |
4111 | * ser-tcp.c: White space. | |
4112 | * ser-unix.c: White space. | |
4113 | * solib.c: White space. | |
4114 | * solib-darwin.c: White space. | |
4115 | * solib-frv.c: White space. | |
4116 | * solib-irix.c: White space. | |
4117 | * solib-osf.c: White space. | |
4118 | * solib-pa64.c: White space. | |
4119 | * solib-som.c: White space. | |
4120 | * solib-spu.c: White space. | |
4121 | * solib-svr4.c: White space. | |
4122 | * solib-target.c: White space. | |
4123 | * source.c: White space. | |
4124 | * stabsread.c: White space. | |
4125 | * stack.c: White space. | |
4126 | * std-regs.c: White space. | |
4127 | * symfile.c: White space. | |
4128 | * symmisc.c: White space. | |
4129 | * symtab.c: White space. | |
4130 | ||
dd304d53 MS |
4131 | 2010-05-16 Michael Snyder <[email protected]> |
4132 | ||
4133 | * source.c (_initialize_source): Add "rev" as an abbreviation | |
4134 | for the "reverse-search" command. | |
4135 | ||
a744cf53 MS |
4136 | 2010-05-16 Michael Snyder <[email protected]> |
4137 | ||
123f5f96 MS |
4138 | * record.c: White space. |
4139 | * regcache.c: White space. | |
4140 | * reggroups.c: White space. | |
4141 | * remote-fileio.c: White space. | |
4142 | * remote-m32r-sdi.c: White space. | |
4143 | * remote-mips.c: White space. | |
4144 | * remote-sim.c: White space. | |
a744cf53 MS |
4145 | * remote.c: White space. |
4146 | (process_g_packet): Remove orphan braces. | |
4147 | ||
b8d56208 MS |
4148 | 2010-05-15 Michael Snyder <[email protected]> |
4149 | ||
ad3bbd48 MS |
4150 | * parse.c: White space. |
4151 | * p-lang.c: White space. | |
4152 | * posix-hdep.c: White space. | |
4153 | * printcmd.c: White space. | |
4154 | * progspace.c: White space. | |
4155 | * prologue-value.c: White space. | |
4156 | * psymtab.c: White space. | |
4157 | * p-typeprint.c: White space. | |
4158 | * p-valprint.c: White space. | |
4159 | ||
5cc80db3 MS |
4160 | * objc-lang.c: White space. |
4161 | * objfiles.c: White space. | |
4162 | * observer.c: White space. | |
4163 | * osabi.c: White space. | |
4164 | * osdata.c: White space. | |
4165 | ||
b8d56208 MS |
4166 | * m2-lang.c: White space. |
4167 | * m2-valprint.c: White space. | |
4168 | * macrocmd.c: White space. | |
4169 | * macroexp.c: White space. | |
4170 | * macroscope.c: White space. | |
4171 | * macrotab.c: White space. | |
4172 | * main.c: White space. | |
4173 | * maint.c: White space. | |
4174 | * mdebugread.c: White space. | |
4175 | * memattr.c: White space. | |
4176 | * minsyms.c: White space. | |
4177 | * monitor.c: White space. | |
4178 | ||
9a619af0 MS |
4179 | 2010-05-14 Michael Snyder <[email protected]> |
4180 | ||
e0881a8e MS |
4181 | * jv-lang.c: White space. |
4182 | * jv-typeprint.c: White space. | |
4183 | * jv-valprint.c: White space. | |
4184 | * language.c: White space. | |
4185 | * libunwind-frame.c: White space. | |
4186 | * linespec.c: White space. | |
4187 | * linux-nat.c: White space. | |
4188 | * linux-record.c: White space. | |
4189 | * linux-thread-db.c: White space. | |
4190 | ||
abbb1732 MS |
4191 | * infcall.c: White space. |
4192 | * inf-child.c: White space. | |
4193 | * infcmd.c: White space. | |
4194 | * inferior.c: White space. | |
4195 | * inf-loop.c: White space. | |
4196 | * inflow.c: White space. | |
4197 | * inline-frame.c: White space. | |
4198 | * interps.c: White space. | |
4199 | ||
d8734c88 MS |
4200 | * gcore.c: White space. |
4201 | * gdb.c: White space. | |
4202 | * gdbtypes.c: White space. | |
4203 | * gnu-nat.c: White space. | |
4204 | * gnu-v2-abi.c: White space. | |
4205 | * gnu-v3-abi.c: White space. | |
4206 | ||
bb9bcb69 MS |
4207 | * findcmd.c: White space. |
4208 | * findvar.c: White space. | |
4209 | * fork-child.c: White space. | |
4210 | * frame-base.c: White space. | |
4211 | * frame.c: White space. | |
4212 | * frame-unwind.c: White space. | |
4213 | * f-valprint.c: White space. | |
4214 | ||
d7f9d729 MS |
4215 | * elfread.c: White space. |
4216 | * environ.c: White space. | |
4217 | * eval.c: White space. | |
4218 | * event-loop.c: White space. | |
4219 | * event-top.c: White space. | |
4220 | * exceptions.c: White space. | |
4221 | * exec.c: White space. | |
4222 | * expprint.c: White space. | |
4223 | ||
9a619af0 MS |
4224 | * dbxread.c: White space. |
4225 | * dcache.c: White space. | |
4226 | * disasm.c: White space. | |
4227 | * doublest.c: White space. | |
4228 | * dsrec.c: White space. | |
4229 | * dummy-frame.c: White space. | |
4230 | * dwarf2expr.c: White space. | |
4231 | * dwarf2-frame.c: White space. | |
4232 | * dwarf2loc.c: White space. | |
4233 | * dwarf2read.c: White space. | |
4234 | ||
88d4aea7 PM |
4235 | 2010-05-14 Phil Muldoon <[email protected]> |
4236 | ||
889bf7c5 | 4237 | PR python/11482 |
88d4aea7 PM |
4238 | |
4239 | * python/py-value.c (valpy_hash): New function. | |
4240 | (value_object_type): Register valpy_hash. | |
4241 | ||
7a298875 | 4242 | 2010-05-14 Hui Zhu <[email protected]> |
0407b3f1 | 4243 | Michael Snyder <[email protected]> |
7a298875 HZ |
4244 | |
4245 | * linux-fork.c (gdbthread.h): New include. | |
4246 | (fork_info): Add parent_ptid. | |
4247 | (inferior_call_waitpid_cleanup, inferior_call_waitpid): New | |
4248 | functions. | |
4249 | (delete_checkpoint_command): Call inferior_call_waitpid. | |
4250 | (checkpoint_command): Set parent_ptid. | |
4251 | ||
c14feecc MS |
4252 | 2010-05-13 Michael Snyder <[email protected]> |
4253 | ||
6595d32b MS |
4254 | * dictionary.c: Re-indent to GNU coding standard. |
4255 | ||
c5504eaf MS |
4256 | * charset.c: White space. |
4257 | * c-lang.c: White space. | |
4258 | * cli-out.c: White space. | |
4259 | * coffread.c: White space. | |
4260 | * complaints.c: White space. | |
4261 | * completer.c: White space. | |
4262 | * corefile.c: White space. | |
4263 | * corelow.c: White space. | |
4264 | * cp-abi.c: White space. | |
4265 | * cp-namespace.c: White space. | |
4266 | * cp-support.c: White space. | |
4267 | * cp-valprint.c: White space. | |
4268 | * c-typeprint.c: White space. | |
4269 | * c-valprint.c: White space. | |
cc59ec59 MS |
4270 | * blockframe.c: White space. |
4271 | * breakpoint.c: White space. | |
4272 | * buildsym.c: White space. | |
4273 | * blockframe.c: White space. | |
b6de9da4 | 4274 | * bcache.c: White space. |
05c547f6 MS |
4275 | * gdbarch.sh: White space, add blank lines. |
4276 | * arch-utils.c: Ditto. | |
4277 | * gdbarch.c: Regenerate. | |
1c4d3f96 | 4278 | * frame.c: White space, add blank lines. |
f89b749f MS |
4279 | * stack.c: White space, add blank lines. |
4280 | (initialize_stack): Remove long-dead code. | |
c14feecc | 4281 | |
a2d33775 JK |
4282 | 2010-05-13 Jan Kratochvil <[email protected]> |
4283 | ||
4284 | Code cleanup. | |
4285 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type. | |
4286 | (locexpr_read_variable, loclist_read_variable): Update the callers. | |
4287 | ||
33ac96f0 JK |
4288 | 2010-05-13 Jan Kratochvil <[email protected]> |
4289 | ||
4290 | Code cleanup. | |
4291 | * dwarf2read.c (die_type, die_descriptive_type): Remove variable type. | |
4292 | Remove check of NULL returned by tag_type_to_type. | |
4293 | (die_containing_type): Remove variable type. Remove type_die variable | |
4294 | initialization. Remove check of NULL returned by tag_type_to_type. | |
4295 | ||
f5a010c0 PM |
4296 | 2010-05-11 Pierre Muller <[email protected]> |
4297 | ||
4298 | PR exp/11530. | |
4299 | * gdbtypes.c (lookup_struct_elt_type): Also lookup | |
4300 | names of unnamed structures or unions. | |
4301 | ||
bf701c2c PM |
4302 | 2010-05-11 Pierre Muller <[email protected]> |
4303 | ||
4304 | * procfs.c (proc_watchpoint_address): New function. | |
0407b3f1 | 4305 | (procfs_stopped_by_watchpoint): Remove useless check after |
bf701c2c PM |
4306 | find_procinfo_or_die call. |
4307 | (procfs_stopped_data_address): New function. | |
4308 | (procfs_use_watchpoints): Register new watchpoint related function. | |
4309 | ||
d02691ef TT |
4310 | 2010-05-11 Tom Tromey <[email protected]> |
4311 | ||
4312 | * eval.c (evaluate_subexp_standard): Revert inadvertent change. | |
4313 | ||
e0627e85 MS |
4314 | 2010-05-10 Michael Snyder <[email protected]> |
4315 | ||
4316 | * utils.c: White space cleanup. | |
4317 | ||
cc73bb8c TT |
4318 | 2010-05-10 Tom Tromey <[email protected]> |
4319 | ||
4320 | * eval.c (ptrmath_type_p): Add 'lang' argument. | |
4321 | (evaluate_subexp_standard): Update. | |
4322 | (evaluate_subexp_with_coercion): Update. | |
4323 | * language.h (CAST_IS_CONVERSION): Add 'LANG' argument. | |
4324 | ||
c02866a0 MS |
4325 | 2010-05-10 Michael Snyder <[email protected]> |
4326 | ||
4327 | * utils.c (do_fclose_cleanup) Restore local variable. | |
4328 | ||
06280d23 DE |
4329 | 2010-05-09 Doug Evans <[email protected]> |
4330 | ||
4331 | * record.c (init_record_core_ops): Rename record_core to record-core. | |
4332 | ||
fa07e785 JB |
4333 | 2010-05-08 Joel Brobecker <[email protected]> |
4334 | ||
4335 | Implement task switching on pa-hpux. | |
4336 | * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function. | |
4337 | (inf_ttrace_target): Set t->to_get_ada_task_ptid. | |
4338 | ||
4c680d1d PM |
4339 | 2010-05-08 Pierre Muller <[email protected]> |
4340 | ||
4341 | * valops.c (find_overload_match): Add missing i18n markup. | |
4342 | ||
28e176a6 PM |
4343 | 2010-05-08 Pierre Muller <[email protected]> |
4344 | ||
4345 | * p-exp.y (exp : SIZEOF '(' exp ')'): New rule. | |
4346 | ||
48cb83fd JK |
4347 | 2010-05-08 Jan Kratochvil <[email protected]> |
4348 | ||
4349 | * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg | |
4350 | list for the obconcat call. | |
4351 | * mdebugread.c (parse_symbol): Likewise. | |
4352 | * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev): | |
4353 | Likewise. | |
4354 | * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'. | |
4355 | New variable ap. Remove variables len and val. | |
4356 | * symfile.h (obconcat): Likewise for the prototype. | |
4357 | ||
f92adf3c MS |
4358 | 2010-05-07 Michael Snyder <[email protected]> |
4359 | ||
4360 | * python/python.c (execute_gdb_command): Remove unused variables. | |
4361 | * python/py-block.c (gdbpy_block_for_pc): Remove unused variable. | |
0407b3f1 | 4362 | * python/py-breakpoint.c (gdbpy_breakpoint_created): |
f92adf3c MS |
4363 | Remove unused variable. |
4364 | * python/py-cmd.c (cmdpy_function): Remove unused variable. | |
4365 | (cmdpy_completer): Remove unused variable. | |
4366 | * python/py-frame.c (frapy_find_sal): Remove unused variable. | |
4367 | * python/py-function.c (fnpy_call): Remove unused variable. | |
4368 | * python/py-objfile.c (objfile_to_objfile_object): | |
4369 | Remove unused variable. | |
4370 | * python/py-param.c (parmpy_init): Remove unused variable. | |
0407b3f1 | 4371 | * python/py-prettyprint.c (apply_varobj_pretty_printer): |
f92adf3c MS |
4372 | Remove unused variable. |
4373 | (gdbpy_default_visualizer): Remove unused variable. | |
4374 | * python/py-progspace.c (pspace_to_pspace_object): | |
4375 | Remove unused variable. | |
0407b3f1 | 4376 | * python/py-symtab.c (symtab_and_line_to_sal_object): |
f92adf3c | 4377 | Remove unused variable. |
0407b3f1 | 4378 | * python/py-type.c (typy_template_argument): |
f92adf3c MS |
4379 | Remove unused variable. |
4380 | * python/py-value.c (valpy_string): Remove unused variable. | |
4381 | (convert_value_from_python): Remove unused variables. | |
4382 | ||
d160942f MS |
4383 | 2010-05-07 Michael Snyder <[email protected]> |
4384 | ||
4385 | * valops.c (value_cast_pointers): Restore unused variable 'type1', | |
4386 | and use it to compute variable 't1'. | |
4387 | ||
587542ab JB |
4388 | 2010-05-07 Joel Brobecker <[email protected]> |
4389 | ||
4390 | * ada-lang.c (assign_aggregate): Remove unused variable. | |
4391 | ||
7322dca9 SW |
4392 | 2010-05-07 Sami Wagiaalla <[email protected]> |
4393 | ||
4394 | PR C++/7943: | |
4395 | * valops.c (find_overload_match): Handle fsym == NULL case. | |
4396 | Add int no_adl argument. | |
4397 | (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl | |
4398 | when appropriate. | |
4399 | Add int no_adl argument. | |
4400 | (find_oload_champ_namespace): Add int no_adl argument. | |
4401 | * parse.c (operator_length_standard): Return length for OP_ADL_FUNC | |
4402 | expression. | |
4403 | * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case. | |
4404 | * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case. | |
4405 | Evaluate arguments and use them to perform ADL lookup. | |
4406 | Pass no_adl argument to find_overload_match. | |
4407 | Disable adl lookup when evaluating a fully qualified OP_FUNCALL. | |
4408 | * cp-support.h: Added prototype for | |
4409 | make_symbol_overload_list_namespace. | |
4410 | * cp-support.c (make_symbol_overload_list_namespace): New function. | |
4411 | (make_symbol_overload_list_adl_namespace): New function. | |
4412 | (make_symbol_overload_list_adl): New function. | |
4413 | (make_symbol_overload_list_using): Moved code to add function to | |
4414 | overload set to make_symbol_overload_list_namespace. | |
4415 | * c-exp.y: create UNKNOWN_CPP_NAME token. | |
4416 | Add parse rule for ADL functions. | |
4417 | (classify_name): Recognize an UNKNOWN_CPP_NAME. | |
4418 | ||
3f1f6884 JK |
4419 | 2010-05-07 Jan Kratochvil <[email protected]> |
4420 | ||
4421 | * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as | |
4422 | sentinel. | |
4423 | ||
3caf13b4 JB |
4424 | 2010-05-07 Joel Brobecker <[email protected]> |
4425 | ||
4426 | Implement task switching on solaris targets. | |
4427 | * sol-thread.c (thread_db_find_thread_from_tid) | |
4428 | (sol_get_ada_task_ptid): New functions. | |
4429 | (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid. | |
4430 | ||
94b0dee1 PA |
4431 | 2010-05-07 Pedro Alves <[email protected]> |
4432 | ||
4433 | * remote.c (remote_query_supported_append): Use reconcat. | |
4434 | (remote_query_supported): Install a cleanup. Use reconcat. | |
4435 | ||
1408c251 PA |
4436 | 2010-05-07 Pedro Alves <[email protected]> |
4437 | ||
4438 | * gdbarch.sh (qsupported): Delete. | |
4439 | * gdbarch.h, gdbarch.c: Regenerate. | |
4440 | * remote.c (remote_query_supported): Remove use of | |
4441 | gdbarch_qsupported. | |
4442 | ||
f8e50cfe SDJ |
4443 | 2010-05-06 Sergio Durigan Junior <[email protected]> |
4444 | ||
4445 | * xml-syscall.c (syscall_start_syscalls_info): Remove unused | |
4446 | function. | |
4447 | ||
8ea13695 MS |
4448 | 2010-05-06 Michael Snyder <[email protected]> |
4449 | ||
c6913b7d MS |
4450 | * xml-support.c (xinclude_start_include): Delete unused variable. |
4451 | (xml_process_xincludes): Delete unused variable. | |
4452 | * xml-syscall.c (syscall_parse_xml): Delete unused variable. | |
4453 | * target-descriptions.c (tdesc_gdb_type): Delete unused variable. | |
4454 | (tdesc_find_arch_register): Delete unused variable. | |
4455 | (tdesc_use_registers): Delete unused variable. | |
4456 | * xml-tdesc.c (tdesc_start_target): Delete unused variable. | |
4457 | * inferior.c (print_inferior): Delete unused variable. | |
4458 | * record.c (record_open_1): Delete unused variable. | |
4459 | (record_restore): Delete unused variable. | |
4460 | (cmd_record_save): Delete unused variable. | |
4461 | * gcore.c (derive_heap_segment): Delete unused variable. | |
4462 | (objfile_find_memory_regions): Use unused variable. | |
4463 | * jit.c (jit_inferior_init): Delete unused variable. | |
4464 | * progspace.c (clone_program_space): Delete unused variable. | |
4465 | (pspace_empty_p): Delete unused variable. | |
0407b3f1 AS |
4466 | |
4467 | * frame-unwind.c (frame_unwind_find_by_frame): | |
1c5465ac MS |
4468 | Delete unused variable. |
4469 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. | |
4470 | * cp-support.c (mangled_name_to_comp): Delete unused variable. | |
4471 | (method_name_from_physname): Delete unused variable. | |
4472 | (cp_func_name): Delete unused variable. | |
4473 | (cp_validate_operator): Delete unused variable. | |
0407b3f1 | 4474 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): |
1c5465ac | 4475 | Delete unused variable. |
0407b3f1 | 4476 | * trad-frame.c (trad_frame_get_prev_register): |
1c5465ac MS |
4477 | Delete unused variable. |
4478 | * tramp-frame.c (tramp_frame_cache): Delete unused variable. | |
4479 | ||
1be757cf MS |
4480 | * serial.c (serial_for_fd): Delete unused variable. |
4481 | * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. | |
4482 | * top.c (execute_command): Delete unused variable. | |
4483 | (init_main): Delete unused variable. | |
4484 | * utils.c (do_fclose_cleanup): Delete unused variable. | |
4485 | (do_all_inferior_continuations): Delete unused variable. | |
4486 | (initialize_utils): Delete unused variable. | |
4487 | (internal_problem_mode): Delete unused global. | |
4488 | * frame.c (get_prev_frame): Delete unused global. | |
4489 | (get_frame_locals_address): Delete unused global. | |
4490 | (get_frame_args_address): Delete unused global. | |
4491 | ||
9216103f MS |
4492 | * p-typeprint.c (pascal_type_print_base): Delete unused variable. |
4493 | (pascal_type_print_varspec_prefix): Delete unused variable. | |
4494 | * f-typeprint.c (f_type_print_base): Delete unused variable. | |
4495 | (f_type_print_varspec_suffix): Delete unused variable. | |
4496 | * m2-typeprint.c (m2_print_type): Delete unused variable. | |
4497 | (m2_long_set): Delete unused variable. | |
4498 | * ada-valprint.c (ada_val_print_1): Delete unused variable. | |
4499 | * d-valprint.c (dynamic_array_type): Delete unused variable. | |
0407b3f1 | 4500 | * f-valprint.c (f77_get_dynamic_length_of_aggregate): |
9216103f MS |
4501 | Delete unused variable. |
4502 | (f77_create_arrayprint_offset_tbl): Delete unused variable. | |
4503 | * m2-valprint.c (m2_val_print): Delete unused variable. | |
4504 | ||
34fa1d9d MS |
4505 | * ui-out.c (ui_out_field_int): Delete unused variable. |
4506 | (ui_out_field_fmt_int): Delete unused variable. | |
4507 | * varobj.c (varobj_list_children): Delete unused variable. | |
4508 | (varobj_set_value): Delete unused variable. | |
4509 | (install_new_value_visualizer): Delete unused variable. | |
4510 | (varobj_set_visualizer): Delete unused variable. | |
4511 | (varobj_update): Delete unused variable. | |
4512 | (varobj_editable_p): Delete unused variable. | |
4513 | (c_value_of_root): Delete unused variable. | |
4514 | (cplus_describe_child): Delete unused variable. | |
4515 | ||
b5385fc0 MS |
4516 | * ada-lang.c (add_defn_to_vec): Delete unused variable. |
4517 | (decode_constrained_packed_array_type): Delete unused variable. | |
4518 | (add_defn_to_vec): Delete unused variable. | |
4519 | (symbol_completion_match): Delete unused variable. | |
4520 | (value_tag_from_contents_and_address): Delete unused variable. | |
4521 | (ada_evaluate_subexp): Delete unused variable. | |
4522 | * c-lang.c (classify_type): Delete unused variable. | |
4523 | * f-lang.c (f_printstr): Delete unused variable. | |
4524 | * objc-lang.c (objc_printstr): Delete unused variable. | |
4525 | * ada-tasks.c (get_known_tasks_addr): Delete unused variable. | |
4526 | * jv-lang.c (type_from_class): ifdef unused variable. | |
4527 | (java_class_name_from_physname): Delete unused variable. | |
4528 | * m2-lang.c (m2_printstr): Delete unused variable. | |
4529 | ||
4fc06681 MS |
4530 | * objfiles.c (objfile_relocate): Delete unused variable. |
4531 | * maint.c (_initialize_maint_cmds): Delete unused variable. | |
4532 | * demangle.c (_initialize_demangler): Delete unused variable. | |
4533 | * corefile.c (reopen_exec_file): Delete unused variable. | |
4534 | * dwarf2expr.c (dwarf2_read_address): Delete unused variable. | |
4535 | * dwarf2-frame.c (decode_frame_entry): Delete unused variable. | |
4536 | ||
6b4398f7 MS |
4537 | * osabi.c (_initialize_gdb_osabi): Delete unused variable. |
4538 | * memattr.c (mem_delete): Delete unused variable. | |
4539 | (invalidate_target_mem_regions): Delete unused variable. | |
4540 | * mem-break.c (default_memory_insert_breakpoint): | |
4541 | Delete unused variable. | |
4542 | * target.c (target_get_osdata): Delete unused variable. | |
4543 | * parse.c (length_of_subexp): Delete unused variable. | |
4544 | (prefixify_subexp): Delete unused variable. | |
4545 | (exp_iterate): Delete unused variable. | |
4546 | * reverse.c (delete_bookmark_command): Delete unused variable. | |
4547 | ||
308d96ed MS |
4548 | * macrocmd.c (_initialize_macrocmd): Delete unused variable. |
4549 | * macroexp.c (gather_arguments): Delete unused variable. | |
4550 | (substitute_args): Delete unused variable. | |
4551 | * completer.c (gdb_completer_loc_break_characters): Unused, delete. | |
4552 | * gdbarch.sh (gdbarch_printable_names): Delete unused variable. | |
4553 | (_initialize_gdbarch): Delete unused variable. | |
4554 | * gdbarch.c, gdbarch.h: Regenerate. | |
0407b3f1 | 4555 | * arch-utils.c (initialize_current_architecture): |
308d96ed MS |
4556 | Delete unused variable. |
4557 | (_initialize_gdbarch_utils): Delete unused variable. | |
4558 | * gdbtypes.c (make_cv_type): Delete unused variable. | |
4559 | (make_type_with_address_space): Delete unused variable. | |
4560 | ||
167e4384 MS |
4561 | * linespec.c (decode_compound): Delete unused variable. |
4562 | * dictionary.c (iterator_next_hashed): Delete unused variable. | |
4563 | * infcall.c (call_function_by_hand): Delete unused variable. | |
4564 | * infcmd.c (step_1): Delete unused variable. | |
4565 | (registers_info): Delete unused variable. | |
4566 | (attach_command): Delete unused variable. | |
4567 | * infrun.c (follow_exec): Delete unused variable. | |
4568 | (handle_step_into_function_backwards): Delete unused variable. | |
4569 | (_initialize_infrun): Delete unused variable. | |
4570 | * stack.c (parse_frame_specification_1): Delete unused variable. | |
4571 | (frame_info): Delete unused variable. | |
4572 | (backtrace_command_1): Delete unused variable. | |
4573 | (catch_info): Delete unused variable. | |
4574 | ||
8f78b329 MS |
4575 | * eval.c (evaluate_subexp_standard): Delete unused variable. |
4576 | * valops.c (value_cast_pointers): Delete unused variable. | |
4577 | (value_dynamic_cast): Delete unused variable. | |
4578 | (value_array): Delete unused variable. | |
4579 | (find_overload_match): Delete unused variable. | |
4580 | * valarith.c (value_subscript): Delete unused variable. | |
4581 | (value_binop): Delete unused variable. | |
4582 | * valprint.c (_initialize_valprint): Delete unused variable. | |
4583 | * printcmd.c (print_command_1): Delete unused variable. | |
4584 | (address_info): Delete unused variable. | |
4585 | (printf_command): Delete unused variable. | |
4586 | ||
8ea13695 MS |
4587 | * auxv.c (target_auxv_search): Delete unused variable. |
4588 | * blockframe.c (get_frame_block): Delete unused variable. | |
4589 | * regcache.c (regcache_cpy): Delete unused variable. | |
4590 | (regcache_cpy_no_passthrough): Delete unused variable. | |
4591 | * charset.c (wchar_iterate): Delete unused variable. | |
4592 | (find_charset_names): Delete unused variable. | |
4593 | (_initialize_charset): Delete unused variable. | |
0407b3f1 | 4594 | * disasm.c (do_mixed_source_and_assembly): |
8ea13695 | 4595 | Delete unused variable. |
0407b3f1 | 4596 | * source.c (set_default_source_symtab_and_line): |
8ea13695 MS |
4597 | Delete unused variable. |
4598 | (set_substitute_path_command): Delete unused variable. | |
4599 | * value.c (preserve_values): Delete unused variable. | |
4600 | (value_from_double): Delete unused variable. | |
4601 | ||
afe38095 MS |
4602 | 2010-05-05 Michael Snyder <[email protected]> |
4603 | ||
952a6d41 MS |
4604 | * psymtab.c (lookup_partial_symbol): Delete unused variable. |
4605 | (find_last_source_symtab_from_partial): Delete unused variable. | |
4606 | * symfile.c (place_section): Delete unused variable. | |
4607 | (default_symfile_offsets): Delete unused variable. | |
4608 | (get_debug_link_info): Delete unused variable. | |
4609 | (find_separate_debug_file_by_debuglink): Delete unused variable. | |
4610 | (add_symbol_file_command): Delete unused variable. | |
4611 | (symfile_find_segment_sections): Delete unused variable. | |
4612 | * symmisc.c (free_symtab): Delete unused variable. | |
4613 | (dump_symtab_1): Delete unused variable. | |
4614 | * symtab.c (lookup_symbil_aux_quick): Delete unused variable. | |
4615 | (find_pc_sect_symtab): Delete unused variable. | |
4616 | (skip_prologue_using_lineinfo): Delete unused variable. | |
4617 | (sources_info): Delete unused variable. | |
4618 | (completion_list_add_name): Delete unused variable. | |
4619 | (expand_line_sal): Delete unused variable. | |
4620 | ||
0407b3f1 | 4621 | * breakpoint.c (validate_commands_for_breakpoint): |
afe38095 MS |
4622 | Delete unused variables. |
4623 | (insert_catchpoint): Delete unused variable. | |
4624 | (update_watchpoint): Delete unused variable. | |
4625 | (insert_bp_location): Delete unused variable. | |
4626 | (insert_breakpoint_locations): Delete unused variable. | |
4627 | (remove_breakpoint_1): Delete unused variable. | |
4628 | (software_breakpoint_inserted_here_p): Delete unused variable. | |
4629 | (watchpoints_triggered): Delete unused variable. | |
4630 | (bpstat_check_watchpoint): Delete unused variable. | |
4631 | (bpstat_stop_status): Delete unused variable. | |
4632 | (print_one_breakpoint_location): Delete unused variable. | |
4633 | (allocate_bp_location): Delete unused variable. | |
4634 | (create_breakpoint): Delete unused variable. | |
4635 | (watch_command_1): Delete unused variable. | |
4636 | (catch_exception_command_1): Delete unused variable. | |
4637 | (catch_ada_exception_command): Delete unused variable. | |
4638 | (delete_breakpoint): Delete unused variable. | |
4639 | (breakpoint_re_set_one): Delete unused variable. | |
4640 | (do_enable_breakpoint): Delete unused variable. | |
4641 | ||
eda5a4d7 PA |
4642 | 2010-05-06 Pedro Alves <[email protected]> |
4643 | ||
4644 | * amd64-tdep.c: Include disasm.h. | |
4645 | (amd64_insn_length_fprintf, amd64_insn_length_init_dis) | |
4646 | (amd64_insn_length): Moved to disasm.c and renamed. | |
4647 | (fixup_riprel): Adjust. | |
4648 | * disasm.c (do_ui_file_delete): New. | |
4649 | (gdb_insn_length): New. | |
4650 | (gdb_buffered_insn_length_fprintf) | |
4651 | (gdb_buffered_insn_length_init_dis) | |
4652 | (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and | |
4653 | renamed. | |
4654 | * disasm.h (gdb_insn_length): Declare. | |
4655 | (gdb_buffered_insn_length): Declare. | |
4656 | ||
02357a4a PA |
4657 | 2010-05-06 Pedro Alves <[email protected]> |
4658 | ||
4659 | * remote.c (clear_threads_parsing_context): New. | |
4660 | (remote_threads_info): Delete unused null_cleanup. Install a | |
4661 | cleanup to clear the threads_parsing_context in case parsing | |
4662 | throws. | |
4663 | ||
8c5630cb MS |
4664 | 2010-05-05 Michael Snyder <[email protected]> |
4665 | ||
4666 | * c-exp.y (parse_string_or_char): Delete unused variable. | |
4667 | (c_lex): Delete unused variable. | |
4668 | * cp-name-parser.y (cpname_lex): Delete unused variable. | |
4669 | * ada-exp.y (find_primitive_type): Delete unused variable. | |
4670 | (write_var_or_type): Delete unused variable. | |
4671 | * jv-exp.y (java_parse): Delete unused variable. | |
4672 | (push_expression_name): Delete unused variable. | |
4673 | * p-exp.y (pascal_lex): Delete unused variable. | |
4674 | ||
46c162d4 PA |
4675 | 2010-05-05 Pedro Alves <[email protected]> |
4676 | ||
4677 | * remote.c (remote_threads_info): Really revert previous previous | |
4678 | change. | |
4679 | ||
0043e6a5 MS |
4680 | 2010-05-05 Michael Snyder <[email protected]> |
4681 | ||
fa238c03 MS |
4682 | * elfread.c (elf_symtab_read): Delete unused variable. |
4683 | (find_separate_debug_file_by_buildid): Delete unused variables. | |
4684 | (elf_symfile_read): Delete unused variable. | |
4685 | ||
4686 | * coffread.c (coff_symfile_read): Delete unused variables. | |
4687 | ||
4688 | * coff-pe-read.c (add_pe_exported_sym): Delete unused variable. | |
4689 | (read_pe_exported_syms): Delete unused variable. | |
4690 | ||
4691 | * stabsread.c (define_symbol): Delete unused variable. | |
4692 | ||
4693 | * dwarf2read.c (read_type_comp_unit_head): Delete unused variable. | |
4694 | (process_psymtab_comp_unit): Delete unused variable. | |
4695 | (dwarf2_build_psymtabs_hard): Delete unused variable. | |
4696 | (load_partial_comp_unit): Delete unused variable. | |
4697 | (create_all_comp_units): Delete unused variable. | |
4698 | (scan_partial_symbols): Delete unused variable. | |
4699 | (add_partial_symbol): Delete unused variable. | |
4700 | (add_partial_namespace): Delete unused variable. | |
4701 | (add_partial_enumeration): Delete unused variable. | |
4702 | (load_full_comp_unit): Delete unused variable. | |
4703 | (process_full_comp_unit): Delete unused variable. | |
4704 | (read_file_scope): Delete unused variable. | |
4705 | (read_type_unit_scope): Delete unused variable. | |
4706 | (process_structure_scope): Delete unused variable. | |
4707 | (process_enumeration_scope): Delete unused variable. | |
4708 | (read_tag_ptr_to_member_type): Delete unused variable. | |
4709 | (read_typedef): Delete unused variable. | |
4710 | (read_partial_die): Delete unused variable. | |
4711 | (decode_locdesc): Delete unused variable. | |
4712 | (zeroed_partial_die): Delete unused global variable. | |
4713 | ||
0407b3f1 | 4714 | * tui/tui-interp.c (_initialize_tui_interp): |
0043e6a5 | 4715 | Delete unused variable. |
0407b3f1 | 4716 | * tui/tui-regs.c tui_display_registers_from): |
0043e6a5 MS |
4717 | Delete unused variable. |
4718 | (tui_check_register_values): Delete unused variable. | |
4719 | (tui_register_format): Delete unused variable. | |
4720 | * tui/tui-win.c (_initialize_tui_win): Delete unused variable. | |
0407b3f1 | 4721 | * tui/tui-windata.c (tui_display_data_from_line): |
0043e6a5 MS |
4722 | Delete unused variables. |
4723 | (tui_vertical_data_scroll): Delete unused variables. | |
4724 | ||
75721c66 MS |
4725 | 2010-05-05 Michael Snyder <[email protected]> |
4726 | ||
c31a71f4 MS |
4727 | * remote.c (remote_threads_info): Revert questionable part of |
4728 | the previous change. | |
4729 | ||
4730 | 2010-05-05 Michael Snyder <[email protected]> | |
4731 | ||
4732 | * mi/mi-out.c (mi_table_begin): Delete unused variable. | |
4733 | * mi/mi-cmd-var.c (print_varobj): Delete unused variable. | |
4734 | (mi_cmd_var_list_children): Delete unused variable. | |
4735 | (varobj_update_one): Delete unused variable. | |
4736 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables. | |
0407b3f1 | 4737 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): |
c31a71f4 MS |
4738 | Delete unused variable. |
4739 | (mi_cmd_stack_list_variables): Delete unused variable. | |
4740 | (list_args_or_locals): Delete unused variable. | |
0407b3f1 | 4741 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): |
c31a71f4 MS |
4742 | Delete unused variables. |
4743 | (mi_cmd_file_list_exec_source_files): Delete unused variable. | |
0407b3f1 | 4744 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): |
c31a71f4 MS |
4745 | Delete unused variable. |
4746 | * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable. | |
4747 | (mi_cmd_interpreter_exec): Delete unused variable. | |
4748 | (mi_on_normal_stop): Delete unused variable. | |
4749 | * mi/mi-main.c (run_one_inferior): Delete unused variable. | |
4750 | (print_one_inferior): Delete unused variables. | |
4751 | (mi_execute_command): Delete unused variable. | |
4752 | (mi_cmd_execute): Delete unused variable. | |
4753 | (timestamp): Delete unused variable. | |
4754 | ||
4755 | * cli/cli-dump.c (dump_memory_to_file): Delete unused variable. | |
d36fc00b | 4756 | (restore_binary_file): Delete unused variable. |
c31a71f4 MS |
4757 | * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables. |
4758 | * cli/cli-script.c (define_command): Delete unused variables. | |
d36fc00b MS |
4759 | (recurse_read_control_structure): Delete unused variable. |
4760 | (script_from_file): Delete unused variable. | |
c31a71f4 | 4761 | * cli/cli-cmds.c (complete_command): Delete unused variable. |
d36fc00b MS |
4762 | (disassemble_command): Delete unused variable. |
4763 | ||
4764 | * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables. | |
0407b3f1 | 4765 | * tracepoint.c (delete_trace_variable_command): |
d36fc00b MS |
4766 | Delete unused variables. |
4767 | (encode_actions_1): Delete unused variables. | |
4768 | (start_tracing): Delete unused variable. | |
4769 | (trace_status_mi): Delete unused variable. | |
4770 | (tfind_1): Delete unused variable. | |
4771 | (trace_find_pc_command): Delete unused variable. | |
4772 | (trace_find_line_command): Delete unused variables. | |
4773 | (trace_find_range_command): Delete unused variables. | |
4774 | (trace_find_outside_command): Delete unused variables. | |
4775 | (parse_tracepoint_definition): Delete unused variables. | |
4776 | (tfile_fetch_registers): Delete unused variable. | |
4777 | ||
9128a503 MS |
4778 | * dcache.c (dcache_init): Delete unused variable. |
4779 | (dcache_info): Delete unused variable. | |
4780 | ||
aa369b55 | 4781 | * remote.c (remote_threads_info): Delete unused variable. |
9128a503 | 4782 | (process_stop_reply) :Delete unused variable. |
aa369b55 MS |
4783 | (remote_get_trace_status): Delete unused variables. |
4784 | ||
9e9547e4 MS |
4785 | * linux-thread-db.c (add_thread_db_info): Delete unused variable. |
4786 | (thread_from_lwp): Delete unused variable. | |
4787 | (enable_thread_event_reporting): Delete unused variable. | |
4788 | (check_for_thread_db): Delete unused variables. | |
4789 | (thread_db_find_new_threads_2): Delete unused variable. | |
0407b3f1 | 4790 | |
9e9547e4 MS |
4791 | * linux-fork.c (info_checkpoints_command): Delete unused variables. |
4792 | (checkpoint_command): Delete unused variable. | |
4793 | (linux_fork_context): Delete unused variables. | |
4794 | ||
fa238c03 | 4795 | * linux-nat.c (linux_parent_pid): Delete unused global variable. |
75083f7e MS |
4796 | (linux_tracefork_child): Delete unused variable. |
4797 | (linux_child_follow_fork): Delete unused variable. | |
4798 | (linux_nat_detach): Delete unused variable. | |
4799 | (linux_handle_extended_wait): Delete unused variable. | |
4800 | (linux_nat_has_pending_sigint): Delete unused variable. | |
4801 | (linux_nat_find_memory_regions): Delete unused variable. | |
4802 | (linux_nat_make_corefile_notes): Delete unused variables. | |
4803 | (linux_nat_info_proc_cmd): Delete unused variable. | |
4804 | (linux_proc_pending_signals): Delete unused variable. | |
4805 | (linux_nat_stop_lwp): Delete unused variables. | |
4806 | (_initialize_linux_nat): Delete unused variable. | |
4807 | ||
fa238c03 | 4808 | * ser-pipe.c (pipe_ops): Delete unused global variable. |
2d148b94 | 4809 | |
0407b3f1 | 4810 | * linux-record.c (record_linux_system_call): |
e0f069a3 MS |
4811 | Delete unused variables. |
4812 | ||
789d24f0 MS |
4813 | * corelow.c (core_xfer_partial): Delete unused variables. |
4814 | ||
1cd337a5 | 4815 | * solib-svr4.c (find_program_interpreter): Delete unused variable. |
0407b3f1 | 4816 | (svr4_solib_create_inferior_hook): Add ifdef around |
1cd337a5 MS |
4817 | conditionally-used variable declarations. |
4818 | ||
b00e3f56 MS |
4819 | * solib.c (solib_find): Delete unused variable. |
4820 | (free_so_symbols): Delete unused variable. | |
4821 | (info_sharedlibrary_command): Delete unused variable. | |
4822 | (reload_shared_libraries_1): Delete unused variable. | |
4823 | (_initialize_solib): Delete unused variable. | |
4824 | ||
90f62196 MS |
4825 | * i386-tdep.c (i386_supply_xstateregset) Delete unused variable. |
4826 | (i386_collect_xstateregset): Delete unused variable. | |
4827 | * i387-tdep.c (i387_print_float_info): Delete unused variable. | |
4828 | ||
75721c66 MS |
4829 | * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx): |
4830 | Delete unused variable 'type'. | |
4831 | ||
af33db37 JB |
4832 | 2010-05-05 Joel Brobecker <[email protected]> |
4833 | ||
90f62196 | 4834 | * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. * |
63db82b2 JB |
4835 | ada-lang.c: Remove comment mentioning these macros. |
4836 | * m2-exp.y: Delete commented out code. | |
af33db37 | 4837 | |
0497f5b0 JB |
4838 | 2010-05-05 Joel Brobecker <[email protected]> |
4839 | ||
4840 | * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero | |
4841 | for array types. | |
4842 | * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise. | |
4843 | ||
6e39997a PM |
4844 | 2010-05-04 Pierre Muller <[email protected]> |
4845 | ||
4846 | ARI fix: Remove ATTRIBUTE_UNUSED throughout. | |
0407b3f1 | 4847 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove |
6e39997a PM |
4848 | ATTRIBUTE_UNUSED. |
4849 | (cleanup_kernel_helper_return): Likewise. | |
4850 | * arm-tdep.c (copy_unmodified): Likewise. | |
4851 | (copy_preload): Likewise. | |
4852 | (copy_copro_load_store): Likewise. | |
4853 | (cleanup_branch): Likewise. | |
4854 | (copy_b_bl_blx): Likewise. | |
4855 | (copy_bx_blx_reg): Likewise. | |
4856 | (copy_alu_imm): Likewise. | |
4857 | (copy_alu_reg): Likewise. | |
4858 | (copy_alu_shifted_reg): Likewise. | |
4859 | (cleanup_load): Likewise. | |
4860 | (cleanup_store): Likewise. | |
4861 | (cleanup_block_load_pc): Likewise. | |
4862 | (cleanup_svc): Likewise. | |
4863 | (copy_undef): Likewise. | |
4864 | (copy_unpred): Likewise. | |
4865 | * remote.c (register_remote_support_xml): Likewise. | |
4866 | ||
1412f70b HZ |
4867 | 2010-05-05 Hui Zhu <[email protected]> |
4868 | ||
4869 | * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment. | |
4870 | ||
c4f7c687 MK |
4871 | 2010-05-04 Mark Kettenis <[email protected]> |
4872 | ||
4873 | * remote.c (register_remote_support_xml) | |
4874 | (remote_query_supported_append, remote_query_supported): Add cast | |
4875 | to NULL used as sentinel. | |
4876 | * tracepoint.c (tvariables_info_1): Likewise. | |
4877 | * utils.c (add_internal_problem_command): Likewise. | |
4878 | ||
63b4f126 MGD |
4879 | 2010-05-04 Matthew Gretton-Dann <[email protected]> |
4880 | ||
4881 | * dwarf2loc.c (read_pieced_value, write_pieced_value, | |
4882 | dwarf2_evaluate_loc_desc): Handle not being able to access DWARF | |
4883 | registers gracefully. | |
4884 | ||
2f1bdd26 MGD |
4885 | 2010-05-04 Matthew Gretton-Dann <[email protected]> |
4886 | ||
0407b3f1 | 4887 | * exec.c (print_section_info): Display entry point without arch |
2f1bdd26 MGD |
4888 | specific parts. |
4889 | ||
e1c34c5d PM |
4890 | 2010-05-04 Pierre Muller <[email protected]> |
4891 | ||
4892 | PR exp/11349. | |
4893 | * printcmd.c (x_command): Only dereference once implicitly for | |
4894 | TYPE_CODE_REF. | |
4895 | ||
ae462839 DE |
4896 | 2010-05-03 Doug Evans <[email protected]> |
4897 | ||
4898 | * event-loop.c (gdb_timer): Delete unused global. | |
4899 | (create_timer): Update. | |
4900 | ||
1ac77ea1 JK |
4901 | 2010-05-03 Jan Kratochvil <[email protected]> |
4902 | ||
4903 | * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the | |
4904 | CURRENT->DECLARATION case. | |
4905 | * cp-support.h (struct using_direct): Provide extended comment. | |
4906 | ||
7c54a108 MK |
4907 | 2010-05-03 Mark Kettenis <[email protected]> |
4908 | ||
4909 | * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from | |
4910 | HPPABSD_SIZEOF_GREGS. | |
4911 | (HPPAOBSD_SIZEOF_FPREGS): New define. | |
4912 | (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset. | |
4913 | (hppaobsd_supply_fpregset): New function. | |
4914 | (hppaobsd_gregset): Renamed from hppabsd_gregset. | |
4915 | (hppaobsd_fpregset): New variable. | |
4916 | (hppaobsd_regset_from_core_section): Handle floating-point registers. | |
4917 | (_initialize_hppabsd_tdep): Remove spurious blank line. | |
4918 | ||
278582cb PM |
4919 | 2010-05-03 Pierre Muller <[email protected]> |
4920 | ||
4921 | PR pascal/11349. | |
4922 | * p-valprint.c (pascal_value_print): Always dereference a value with | |
4923 | type code TYPE_CODE_REF. | |
0407b3f1 | 4924 | |
f0223081 PA |
4925 | 2010-05-03 Pedro Alves <[email protected]> |
4926 | ||
4927 | * remote.c (remote_notice_signals): New. | |
4928 | (remote_start_remote): In non-stop mode, update the remote end on | |
4929 | which signals it can silently pass. | |
4930 | (init_remote_ops): Install remote_notice_signals. | |
4931 | ||
c25c4a8b JK |
4932 | 2010-05-02 Jan Kratochvil <[email protected]> |
4933 | ||
4934 | * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... | |
4935 | * command.h (error_no_arg): ... here. Remove NORETURN, change | |
4936 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
4937 | * defs.h (NORETURN, ATTR_NORETURN): Remove. | |
4938 | (perror_with_name, verror, error, error_stream, vfatal, fatal) | |
4939 | (internal_verror, internal_error, nomem): Remove NORETURN, change | |
4940 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
4941 | * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) | |
4942 | (throw_vfatal, throw_error): Remove NORETURN. | |
4943 | (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
4944 | * exceptions.h (throw_exception, throw_verror, throw_vfatal) | |
4945 | (throw_error, deprecated_throw_reason): Remove NORETURN, change | |
4946 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
4947 | * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN | |
4948 | to ATTRIBUTE_NORETURN for prototype, for the definition only remove | |
4949 | NORETURN. | |
4950 | * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. | |
4951 | * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to | |
4952 | ATTRIBUTE_NORETURN. | |
4953 | * target.c (tcomplain): Likewise. | |
4954 | * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to | |
4955 | ATTRIBUTE_NORETURN. | |
4956 | * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) | |
4957 | (internal_error, perror_with_name, nomem): Remove NORETURN. | |
4958 | * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to | |
4959 | ATTRIBUTE_NORETURN. | |
4960 | ||
a0b31db1 JK |
4961 | 2010-05-02 Jan Kratochvil <[email protected]> |
4962 | ||
4963 | * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
4964 | * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. | |
4965 | * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. | |
4966 | (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
4967 | * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. | |
4968 | (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
4969 | * complaints.h (complaint, internal_complaint): Likewise. | |
4970 | * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. | |
4971 | (ATTR_FORMAT): Remove. | |
4972 | (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) | |
4973 | (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) | |
4974 | (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) | |
4975 | (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) | |
4976 | (xsnprintf, verror, error, vfatal, fatal, internal_verror) | |
4977 | (internal_error, internal_vwarning, internal_warning, warning) | |
4978 | (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
4979 | * disasm.c (fprintf_disasm): Likewise. | |
4980 | * exceptions.c (throw_it): Likewise. | |
4981 | * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) | |
4982 | (throw_error): Likewise. | |
4983 | * language.h (type_error, range_error): Likewise. | |
4984 | * linespec.c (cplusplus_error): Likewise. | |
4985 | * mi/mi-interp.c (mi_interp_query_hook): Likewise. | |
4986 | * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. | |
4987 | * monitor.c (monitor_debug): Likewise. | |
4988 | * parser-defs.h (parser_fprintf): Likewise. | |
4989 | * serial.h (serial_printf): Likewise. | |
4990 | * tui/tui-hooks.c (tui_query_hook): Likewise. | |
4991 | * ui-out.c (default_field_fmt, default_message, uo_field_fmt) | |
4992 | (uo_message): Likewise. | |
4993 | * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. | |
4994 | * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): | |
4995 | Likewise. | |
4996 | * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise. | |
4997 | ||
02a45ac0 PA |
4998 | 2010-05-02 Pedro Alves <[email protected]> |
4999 | ||
5000 | * cli-out.c (cli_table_begin, cli_table_body, cli_table_end) | |
5001 | (cli_table_header, cli_begin, cli_end, cli_field_int) | |
5002 | (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) | |
5003 | (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): | |
5004 | Delete forward declarations. | |
5005 | (cli_ui_out_impl): Move below the callbacks. | |
5006 | (_initialize_cli_out): Delete. | |
5007 | ||
1915ef4f PA |
5008 | 2010-05-02 Pedro Alves <[email protected]> |
5009 | ||
5010 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
5011 | ||
0dfb946f JK |
5012 | 2010-05-02 Jan Kratochvil <[email protected]> |
5013 | ||
5014 | * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration. | |
5015 | ||
4d533103 PA |
5016 | 2010-05-01 Pedro Alves <[email protected]> |
5017 | ||
5018 | * infrun.c (prepare_for_detach): In non-stop, context switch to | |
5019 | the thread that got the event before handling the event. | |
5020 | ||
705b5767 TT |
5021 | 2010-04-30 Tom Tromey <[email protected]> |
5022 | ||
5023 | * symtab.c (symbol_set_names): Fix typo. | |
5024 | ||
3c0ee1a4 PM |
5025 | 2010-04-30 Pierre Muller <[email protected]> |
5026 | ||
5027 | * python/py-param.c (parm_constants): Avoid ARI warning | |
5028 | by adding ARI comment. | |
5029 | (parmpy_init): Likewise. | |
5030 | ||
ea1fae46 PM |
5031 | 2010-04-30 Pierre Muller <[email protected]> |
5032 | ||
5033 | * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH | |
5034 | and created type for re-use. | |
5035 | ||
c24d0242 PM |
5036 | 2010-04-30 Pierre Muller <[email protected]> |
5037 | ||
5038 | * NEWS: Mention gdbserver support for x86_64 Windows 64-bit. | |
5039 | ||
a26d8d11 DE |
5040 | 2010-04-29 Doug Evans <[email protected]> |
5041 | ||
5042 | * ser-base.h (reschedule): Delete prototype. | |
5043 | * ser-base.c (reschedule): Make static. | |
5044 | ||
f8624c62 MGD |
5045 | 2010-04-29 Matthew Gretton-Dann <[email protected]> |
5046 | ||
5047 | * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove. | |
5048 | (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA. | |
0407b3f1 | 5049 | (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for |
f8624c62 | 5050 | EABI. |
0407b3f1 | 5051 | (arm_linux_init_abi): Set up JB_PC field dependent on FP model in |
f8624c62 MGD |
5052 | use. |
5053 | ||
e66408ed PA |
5054 | 2010-04-29 Pedro Alves <[email protected]> |
5055 | ||
5056 | PR gdb/11557 | |
5057 | ||
5058 | * regcache.c (registers_changed): Rename to ... | |
5059 | (registers_changed_ptid): ... this, and only delete register cache | |
5060 | entries matching the ptid filter argument. | |
5061 | (registers_changed): Reimplement on top of registers_changed_ptid. | |
5062 | * regcache.h (registers_changed_ptid): Declare. | |
5063 | * target.c (target_resume): Flush register caches. | |
5064 | ||
d7b32ed3 | 5065 | 2010-04-29 Phil Muldoon <[email protected]> |
0407b3f1 AS |
5066 | Tom Tromey <[email protected]> |
5067 | Thiago Jung Bauermann <[email protected]> | |
5068 | ||
5069 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. | |
5070 | (SUBDIR_PYTHON_SRCS): Likewise. | |
5071 | (py-parameter.o): New rule. | |
5072 | * python/py-parameter.c: New file. | |
5073 | * python/python-internal.h (gdbpy_initialize_parameter) | |
5074 | (gdbpy_parameter, gdbpy_parameter_value) | |
5075 | (gdbpy_parse_command_name): Declare. | |
5076 | * python/py-cmd.c (parse_command_name): Rename to | |
5077 | gdbpy_parse_command_name. | |
5078 | (gdbpy_parse_command_name): Accept a starting list parameter and | |
5079 | use over cmdlist. | |
5080 | (cmdpy_init): Use gdbpy_parse_command_name. | |
5081 | * python/python.c (parameter_to_python): Rename to | |
5082 | gdbpy_parameter_to_python. Accept enum var_types and value. | |
5083 | (gdbpy_parameter): Use gdbpy_parameter_value. | |
5084 | (_initialize_python): Call gdbpy_initialize_parameters. | |
d7b32ed3 | 5085 | |
ce72ce41 MGD |
5086 | 2010-04-29 Matthew Gretton-Dann <[email protected]> |
5087 | ||
5088 | * MAINTAINERS: Add myself for write after approval privileges. | |
5089 | ||
6aecb9c2 JB |
5090 | 2010-04-29 Mihail Zenkov <[email protected]> |
5091 | ||
5092 | D language support. | |
5093 | * Makefile.in (SFILES): Add d-lang.c d-valprint.c. | |
5094 | (COMMON_OBS): Add d-lang.o d-valprint.o. | |
5095 | (HFILES_NO_SRCDIR): Add d-lang.h. | |
5096 | * NEWS: Mention D language support. | |
5097 | * c-lang.c (c_emit_char, exp_descriptor_c): Make public. | |
5098 | * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. | |
5099 | * d-lang.c: New file. | |
5100 | * d-lang.h: New file. | |
5101 | * d-valprint.c: New file. | |
5102 | * defs.h (enum language): Add language_d. | |
5103 | * dwarf2read.c (set_cu_language): Add DW_LANG_D. | |
5104 | * language.c (binop_result_type, integral_type, character_type) | |
5105 | (string_type, boolean_type, structured_type): Add language_d. | |
5106 | * symfile.c (init_filename_language_table): Add language_d. | |
5107 | * symtab.c: Include d-lang.h. | |
5108 | (symbol_init_language_specific, symbol_find_demangled_name) | |
5109 | (symbol_natural_name, lookup_symbol_in_language) | |
5110 | (symbol_demangled_name, symbol_matches_domain): Add language_d. | |
5111 | ||
6f992fbf JB |
5112 | 2010-04-27 Joel Brobecker <[email protected]> |
5113 | ||
5114 | * solib-svr4.c (solib_svr4_r_map): Expand function description. | |
5115 | ||
dde59185 JB |
5116 | 2010-04-27 Joel Brobecker <[email protected]> |
5117 | ||
5118 | * symfile.c (init_filename_language_table): Register .dg files | |
5119 | with language_ada. | |
5120 | ||
d09ce91e JB |
5121 | 2010-04-27 Joel Brobecker <[email protected]> |
5122 | ||
5123 | * gdbtypes.h (struct main_type): Expand comment about target_type | |
5124 | field. | |
5125 | ||
67f1675e JB |
5126 | 2010-04-27 Pedro Alves <[email protected]> |
5127 | Tristan Gingold <[email protected]> | |
02aeec7b JB |
5128 | |
5129 | * symfile.c (reread_symbols): Also search for file in libraries. | |
5130 | Update comment. | |
5131 | ||
dfd0fe27 JB |
5132 | 2010-04-27 Joel Brobecker <[email protected]> |
5133 | ||
5134 | * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets | |
5135 | in terms of configuration. | |
5136 | ||
0133421a JK |
5137 | 2010-04-27 Jan Kratochvil <[email protected]> |
5138 | ||
5139 | * objfiles.c: Include solist.h. | |
5140 | (free_all_objfiles): New variable so. Check stale solist objfiles. | |
5141 | * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles | |
5142 | and no_shared_libraries. | |
5143 | ||
e78f4312 JB |
5144 | 2010-04-27 Joel Brobecker <[email protected]> |
5145 | ||
5146 | ARI warning fix. | |
5147 | * python/py-auto-load.c (source_section_scripts): Remove trailing | |
5148 | new-line in i18n string. | |
5149 | ||
9214d371 DE |
5150 | 2010-04-26 Doug Evans <[email protected]> |
5151 | ||
5152 | * serial.c (serial_write): Handle serial_debug_p akin to serial_read. | |
5153 | ||
3f172e24 TT |
5154 | 2010-04-26 Tom Tromey <[email protected]> |
5155 | ||
5156 | * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the | |
5157 | command list. | |
5158 | ||
e790e06e PM |
5159 | 2010-04-26 Pierre Muller <[email protected]> |
5160 | ||
5161 | Removal of config/i386/nm-i386sol2.h native configuration file. | |
5162 | * config/i386/nm-i386sol2.h: Remove file. | |
5163 | * config/i386/i386sol2.mh: Remove NAT_FILE definition. | |
5164 | * config/i386/sol2-64.mh: Idem. | |
88562582 PM |
5165 | * config/djgpp/fnchange.lst: Remove reference to that file. |
5166 | * Makefile.in (HFILES_NO_SRCDIR): Idem. | |
e790e06e | 5167 | |
b7da9e9f PM |
5168 | 2010-04-26 Pierre Muller <[email protected]> |
5169 | ||
5170 | PR breakpoints/11531. | |
5171 | * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove | |
5172 | macro definition and related comment. | |
5173 | * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. | |
5174 | (resume): Remove code and comment related to this macro. | |
5175 | ||
72f6eb52 JK |
5176 | 2010-04-26 Jan Kratochvil <[email protected]> |
5177 | ||
5178 | * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. | |
5179 | Fix whitespace. | |
5180 | ||
ab38a727 PA |
5181 | 2010-04-24 Pedro Alves <[email protected]> |
5182 | ||
5183 | * defs.h: Adjust comment. | |
5184 | * filesystem.h, filesystem.c: New files. | |
5185 | * Makefile.in (SFILES): Add filesystem.c. | |
5186 | (COMMON_OBS): Add filesystem.o. | |
5187 | * solib.c (solib_find): Handle DOS-based filesystems. Handle | |
5188 | different target and host path flavours. | |
5189 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
5190 | has_dos_based_file_system on the gdbarch. | |
5191 | * arm-wince-tdep.c (arm_wince_init_abi): Ditto. | |
5192 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. | |
5193 | * i386-tdep.c (i386_go32_init_abi): Ditto. | |
5194 | * gdbarch.sh (has_dos_based_file_system): New. | |
5195 | * gdbarch.h, gdbarch.c: Regenerate. | |
5196 | * NEWS: Mention improved support for remote targets with DOS-based | |
5197 | filesystems. Mention new `set/show target-file-system-kind' | |
5198 | commands. | |
5199 | ||
35c9c7ba SS |
5200 | 2010-04-23 Stan Shebs <[email protected]> |
5201 | ||
5202 | * ax.h (struct agent_expr): Merge in agent_reqs fields, add some | |
5203 | comments. | |
5204 | (struct agent_reqs): Remove. | |
5205 | (ax_reg_mask): Declare. | |
5206 | * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. | |
5207 | (free_agent_expr): Free reg_mask. | |
5208 | (ax_print): Add scope and register mask info. | |
5209 | (ax_reqs): Remove agent_reqs argument, use agent expression | |
5210 | fields, and move part of register mask computation to... | |
5211 | (ax_reg_mask): New function. | |
5212 | * ax-gdb.c (gen_trace_static_fields): Call it. | |
5213 | (gen_traced_pop): Ditto. | |
5214 | (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. | |
5215 | (gen_trace_for_var): Pass gdbarch to new_agent_expr. | |
5216 | (gen_trace_for_expr): Ditto, and clear optimized_out flag. | |
5217 | (gen_eval_for_expr): Ditto, and require an rvalue. | |
5218 | (agent_command): Call ax_reqs. | |
5219 | (agent_eval_command): Ditto. | |
5220 | * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. | |
5221 | (validate_action_line): Ditto. | |
5222 | (collect_symbol): Ditto. | |
5223 | (encode_actions_1): Ditto. | |
5224 | ||
492928e4 JK |
5225 | 2010-04-23 Daniel Jacobowitz <[email protected]> |
5226 | Paul Pluzhnikov <[email protected]> | |
5227 | Jan Kratochvil <[email protected]> | |
5228 | ||
5229 | Fix deadlock on looped list of loaded shared objects. | |
5230 | * solib-svr4.c (LM_PREV): New function. | |
5231 | (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. | |
5232 | (svr4_current_sos): Check for correct l_prev. New variables prev_lm | |
5233 | and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. | |
5234 | * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. | |
5235 | ||
66d09542 DE |
5236 | 2010-04-23 Doug Evans <[email protected]> |
5237 | ||
88a1906b DE |
5238 | * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using |
5239 | python. | |
5240 | * configure: Regenerate. | |
5241 | * main.c: #include "python/python.h". | |
5242 | (captured_main): Defer loading auto-loaded scripts until after | |
5243 | local_gdbinit has been sourced. | |
5244 | * python/py-auto-load.c (gdbpy_global_auto_load): New global. | |
5245 | (load_auto_scripts_for_objfile): New function. | |
5246 | (auto_load_new_objfile): Call it. | |
5247 | * python/python.h (gdbpy_global_auto_load): Declare. | |
5248 | (load_auto_scripts_for_objfile): Declare. | |
5249 | ||
66d09542 DE |
5250 | Add support for auto-loading scripts from .debug_gdb_scripts section. |
5251 | * NEWS: Add entry for .debug_gdb_scripts. | |
5252 | * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. | |
5253 | (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. | |
5254 | (py-auto-load.o): New rule. | |
5255 | * cli/cli-cmds.c (find_and_open_script): Make externally visible. | |
5256 | * cli/cli-cmds.h (find_and_open_script): Update prototype. | |
5257 | * python/py-auto-load.c: New file. | |
5258 | * python/python-internal.h: #include <stdio.h>. | |
5259 | (set_python_list, show_python_list): Declare. | |
5260 | (gdbpy_initialize_auto_load): Declare. | |
5261 | (source_python_script_for_objfile): Declare. | |
5262 | * python/python.c: Remove #include of observer.h. | |
5263 | (gdbpy_auto_load): Moved to py-auto-load.c. | |
5264 | (GDBPY_AUTO_FILENAME): Ditto. | |
5265 | (gdbpy_new_objfile): Delete. | |
5266 | (source_python_script_for_objfile): New function. | |
5267 | (set_python_list, show_python_list): Make externally visible. | |
5268 | (_initialize_python): Move "auto-load" command to py-auto-load.c | |
5269 | and observer_attach_new_objfile to py-auto-load.c. | |
5270 | ||
3a48e6ff | 5271 | 2010-04-23 Jerome Guitton <[email protected]> |
0407b3f1 | 5272 | |
3a48e6ff JG |
5273 | * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA) |
5274 | (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. | |
5275 | (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): | |
5276 | New constants. | |
5277 | (alpha_heuristic_analyze_probing_loop): New function. | |
5278 | (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect | |
5279 | and handle cases when a stack probe loop is generated. | |
5280 | * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. | |
5281 | (alpha_mdebug_max_frame_size_exceeded): New function. | |
5282 | (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. | |
5283 | (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): | |
5284 | Return 0 when the maximum debuggable frame size has been exceeded. | |
5285 | ||
e4166a49 JB |
5286 | 2010-04-23 Joel Brobecker <[email protected]> |
5287 | ||
5288 | Fix ARI warning. | |
5289 | * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline. | |
5290 | ||
8bd10a10 CM |
5291 | 2010-04-20 Chris Moller <[email protected]> |
5292 | ||
5293 | PR 10179 | |
5294 | ||
5295 | * symtab.c (rbreak_command): Added code to include a filename | |
5296 | specification in the rbreak argument. | |
5297 | * NEWS: Added a brief description of filename-qualified rbreak. | |
5298 | ||
c0201579 JK |
5299 | 2010-04-22 Jan Kratochvil <[email protected]> |
5300 | ||
5301 | Fix crashes on dangling display expressions. | |
5302 | * ada-lang.c (ada_operator_check): New function. | |
5303 | (ada_exp_descriptor): Fill-in the field operator_check. | |
5304 | * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. | |
5305 | * jv-lang.c (exp_descriptor_java): Likewise. | |
5306 | * m2-lang.c (exp_descriptor_modula2): Likewise. | |
5307 | * scm-lang.c (exp_descriptor_scm): Likewise. | |
5308 | * parse.c (exp_descriptor_standard): Likewise. | |
5309 | (operator_check_standard): New function. | |
5310 | (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. | |
5311 | * parser-defs.h (struct exp_descriptor): New field operator_check. | |
5312 | (operator_check_standard, exp_uses_objfile): New declarations. | |
5313 | * printcmd.c: Remove the inclusion of solib.h. | |
5314 | (display_uses_solib_p): Remove the function. | |
5315 | (clear_dangling_display_expressions): Call lookup_objfile_from_block | |
5316 | and exp_uses_objfile instead of display_uses_solib_p. | |
5317 | * solist.h (struct so_list) <objfile>: New comment. | |
5318 | * symtab.c (lookup_objfile_from_block): Remove the static qualifier. | |
5319 | * symtab.h (lookup_objfile_from_block): New declaration. | |
5320 | (struct general_symbol_info) <obj_section>: Extend the comment. | |
5321 | ||
6ffbb7ab TJB |
5322 | 2010-04-22 Sergio Durigan Junior <[email protected]> |
5323 | Thiago Jung Bauermann <[email protected]> | |
5324 | ||
5325 | * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. | |
5326 | (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, | |
5327 | ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, | |
5328 | PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, | |
5329 | PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, | |
5330 | PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, | |
5331 | PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, | |
5332 | PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, | |
5333 | PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, | |
5334 | PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, | |
5335 | PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, | |
5336 | PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, | |
5337 | PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): | |
5338 | Define, in case <ptrace.h> doesn't provide it. | |
5339 | (booke_debug_info): New variable. | |
5340 | (max_slots_number): Ditto. | |
5341 | (hw_break_tuple): New struct. | |
5342 | (thread_points): Ditto. | |
5343 | (ppc_threads): New variable. | |
5344 | (PPC_DEBUG_CURRENT_VERSION): New define. | |
5345 | (have_ptrace_new_debug_booke): New function. | |
5346 | (ppc_linux_check_watch_resources): Renamed to ... | |
5347 | (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. | |
5348 | (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. | |
5349 | (booke_cmp_hw_point): New function. | |
5350 | (booke_find_thread_points_by_tid): Ditto. | |
5351 | (booke_insert_point): Ditto. | |
5352 | (booke_remove_point): Ditto. | |
5353 | (ppc_linux_insert_hw_breakpoint): Ditto. | |
5354 | (ppc_linux_remove_hw_breakpoint): Ditto. | |
5355 | (get_trigger_type): Ditto. | |
5356 | (ppc_linux_insert_watchpoint): Handle BookE processors. | |
5357 | (ppc_linux_remove_watchpoint): Ditto. | |
5358 | (ppc_linux_new_thread): Ditto. | |
5359 | (ppc_linux_thread_exit): New function.. | |
5360 | (ppc_linux_stopped_data_address): Handle BookE processors. | |
5361 | (ppc_linux_watchpoint_addr_within_range): Ditto. | |
5362 | (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and | |
5363 | to_remove_hw_breakpoint fields of the target operations struct. | |
5364 | Add observe for the thread_exit event. | |
5365 | ||
be0d2954 L |
5366 | 2010-04-22 H.J. Lu <[email protected]> |
5367 | ||
5368 | * i386-linux-nat.c (regmap): Removed. | |
5369 | (fetch_register): Replace regmap with | |
5370 | i386_linux_gregset_reg_offset. | |
5371 | (store_register): Likewise. | |
5372 | (supply_gregset): Likewise. | |
5373 | (fill_gregset): Likewise. | |
5374 | ||
5375 | * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it | |
5376 | global. | |
5377 | ||
5378 | * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New. | |
5379 | ||
f56dcb88 CM |
5380 | 2010-04-22 Chris Moller <[email protected]> |
5381 | ||
5382 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
758afad7 L |
5383 | method of popping recursion-detection stack with a method based on |
5384 | obstack_object_size(). (Similar to the PR9167 patch below, but for | |
f56dcb88 CM |
5385 | the static array obstack rather than the static member obstack.) |
5386 | ||
6cd6a2ae L |
5387 | 2010-04-22 H.J. Lu <[email protected]> |
5388 | ||
5389 | * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. | |
5390 | (_initialize_amd64_linux_nat): Replace | |
5391 | amd64_linux_gregset64_reg_offset with | |
5392 | amd64_linux_gregset_reg_offset. | |
5393 | ||
5394 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it | |
5395 | global. | |
5396 | ||
5397 | * amd64-tdep.h (amd64_linux_gregset_reg_offset): New. | |
5398 | ||
621791b8 PM |
5399 | 2010-04-22 Pierre Muller <[email protected]> |
5400 | ||
5401 | PR stabs/11479. | |
5402 | * stabsread.c (set_length_in_type_chain): New function. | |
5403 | (read_struct_type): Call set_length_in_type_chain function. | |
5404 | (read_enum_type): Idem. | |
5405 | ||
105c2d85 SS |
5406 | 2010-04-21 Stan Shebs <[email protected]> |
5407 | Nathan Sidwell <[email protected]> | |
5408 | ||
5409 | * tracepoint.c (trace_save): Open in binary mode. | |
5410 | ||
9a22f0d0 PM |
5411 | 2010-04-22 Pierre Muller <[email protected]> |
5412 | ||
5413 | * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 | |
5414 | fields. | |
0407b3f1 | 5415 | * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and |
9a22f0d0 PM |
5416 | builtin_char32 fields. |
5417 | * printcmd.c (decode_format): Set char size to '\0' | |
5418 | for strings unless explicit size is given. | |
5419 | (print_formatted): Correct calculation of NEXT_ADDRESS | |
5420 | for 16 or 32 bit strings. | |
5421 | (do_examine): Do not force byte size for strings. | |
5422 | Use builtin_char16 and builtin_char32 types to display | |
0407b3f1 | 5423 | 16 or 32 bit-wide strings. |
9a22f0d0 PM |
5424 | (x_command): Set LAST_SIZE to 'b' for string type. |
5425 | ||
f335d1b3 L |
5426 | 2010-04-21 H.J. Lu <[email protected]> |
5427 | ||
5428 | PR corefiles/11523 | |
5429 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Check | |
5430 | XCR0 first. | |
5431 | ||
5432 | * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if | |
5433 | there is no .reg-xstate section. | |
5434 | (i386_linux_core_read_description): Check XCR0 first. | |
5435 | ||
a9789a6b MF |
5436 | 2010-04-21 Mike Frysinger <[email protected]> |
5437 | ||
5438 | * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert () | |
5439 | for len <= 8. | |
5440 | ||
0b66f317 CM |
5441 | 2010-04-21 Chris Moller <[email protected]> |
5442 | ||
5443 | PR 9167 | |
5444 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
32d7376d L |
5445 | method of popping recursion-detection stack with a method based on |
5446 | obstack_object_size(). | |
0b66f317 | 5447 | |
6e354e5e PM |
5448 | 2010-04-21 Pierre Muller <[email protected]> |
5449 | ||
5450 | PR pascal/11492. | |
5451 | * p-valprint.c (pascal_val_print): Fix default printing of integer | |
5452 | arrays. | |
5453 | ||
57174f31 PM |
5454 | 2010-04-21 Pierre Muller <[email protected]> |
5455 | ||
5456 | Fix compilation warning on gcc-4.1.2. | |
5457 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize | |
5458 | local variable`pc' to zero. | |
5459 | ||
6fbc7cd8 JB |
5460 | 2010-04-20 Joel Brobecker <[email protected]> |
5461 | ||
5462 | Implement thread support with core files on alpha-tru64. | |
5463 | * dec-thread.c (dec_thread_find_new_threads): New function, | |
5464 | extracted from resync_thread_list. | |
5465 | (resync_thread_list): Add OPS parameter. Replace extracted-out | |
5466 | code by call to dec_thread_find_new_threads. | |
5467 | (dec_thread_wait): Update call to resync_thread_list. | |
5468 | (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads. | |
5469 | ||
438c98a1 JB |
5470 | 2010-04-20 Joel Brobecker <[email protected]> |
5471 | ||
5472 | * ada-lang.c (value_pointer): New function. | |
5473 | (make_array_descriptor): Call value_pointer to convert addresses to | |
5474 | pointers. | |
5475 | ||
2971b56b JB |
5476 | 2010-04-20 Joel Brobecker <[email protected]> |
5477 | ||
5478 | * rs6000-aix-tdep.c: #include exceptions.h. | |
5479 | (rs6000_convert_from_func_ptr_addr): If an exception is thrown | |
5480 | while reading the memory at ADDR, then ADDR cannot be a function | |
5481 | descriptor. | |
5482 | ||
be942545 JB |
5483 | 2010-04-20 Joel Brobecker <[email protected]> |
5484 | ||
5485 | * ada-typeprint.c (ada_print_typedef): New function. | |
5486 | * ada-lang.h (ada_print_typedef): Add declaration. | |
5487 | * ada-lang.c (ada_language_defn): set la_print_typdef field | |
5488 | to ada_print_typedef. | |
5489 | ||
1ca8fce0 JB |
5490 | 2010-04-20 Joel Brobecker <[email protected]> |
5491 | ||
5492 | * procfs.c (procfs_address_to_host_pointer): Only define when used. | |
5493 | ||
e9ef4f39 JB |
5494 | 2010-04-20 Joel Brobecker <[email protected]> |
5495 | ||
5496 | * procfs.c (iterate_over_mappings_cb_ftype): New typedef. | |
5497 | (iterate_over_mappings): Adjust function profile. Add declaration. | |
5498 | (insert_dbx_link_bpt_in_region, info_mappings_callback): | |
5499 | Adjust accordingly. | |
5500 | ||
e294797a JB |
5501 | 2010-04-20 Joel Brobecker <[email protected]> |
5502 | ||
5503 | * procfs.c (solib_mappings_callback): Move function up to avoid | |
5504 | a compiler warning. | |
5505 | ||
a223f1e7 JB |
5506 | 2010-04-20 Joel Brobecker <[email protected]> |
5507 | ||
5508 | * procfs.c (find_signalled_thread, find_stop_signal): Move | |
5509 | these functions down to define them only when used. | |
5510 | ||
0c3acc09 JB |
5511 | 2010-04-20 Joel Brobecker <[email protected]> |
5512 | ||
5513 | * valprint.c (common_val_print): Fix the value before extracting | |
5514 | its contents. | |
5515 | * ada-lang.c (ada_to_fixed_value): Make this function extern. | |
5516 | * ada-lang.h (ada_to_fixed_value): New function declaration. | |
5517 | * ada-valprint.c (ada_value_print): Use ada_to_fixed_value | |
5518 | to avoid code duplication and fix a bug in the handling of | |
5519 | fixed types contents. | |
5520 | ||
31ef98ae TT |
5521 | 2010-04-20 Tom Tromey <[email protected]> |
5522 | ||
5523 | * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name. | |
5524 | (read_partial_die): Likewise. | |
5525 | (dwarf_attr_name): Likewise. | |
5526 | ||
ec31cde5 | 5527 | 2010-04-20 Chris Moller <[email protected]> |
0407b3f1 | 5528 | |
ec31cde5 CM |
5529 | PR 10867 |
5530 | ||
5531 | * cp-valprint.c (global): Adding new static array recursion | |
5532 | detection obstack. | |
5533 | (cp_print_value_fields, cp_print_static_field): Added new static | |
5534 | array recursion detection code. | |
5535 | ||
e0e0e543 MK |
5536 | 2010-04-20 Mark Kettenis <[email protected]> |
5537 | ||
5538 | * i386-linux-tdep.c (i386_linux_regset_sections): Size of the | |
5539 | general-purpose register set should be 68 instead of 144. | |
5540 | (i386_linux_sse_regset_sections): Likewise. | |
5541 | (i386_linux_avx_regset_sections): Likewise. | |
5542 | ||
08922a10 SS |
5543 | 2010-04-20 Stan Shebs <[email protected]> |
5544 | Nathan Sidwell <[email protected]> | |
5545 | ||
5546 | * dwarf2loc.c (struct axs_var_loc): New struct. | |
5547 | (dwarf2_tracepoint_var_loc): New function. | |
5548 | (dwarf2_tracepoint_var_access): New function. | |
5549 | (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal | |
5550 | with DW_OP_piece. | |
5551 | (locexpr_describe_location_piece): New function. | |
5552 | (locexpr_describe_location_1): New function. | |
5553 | (locexpr_describe_location): Call it, update signature. | |
5554 | (loclist_describe_location): Rewrite to loop over locations, | |
5555 | update signature. | |
5556 | * symtab.h (struct symbol_computed_ops): Add address to | |
5557 | describe_location arguments, return void. | |
5558 | * printcmd.c (address_info): Get context PC, pass to computed | |
5559 | location description. | |
5560 | * tracepoint.c (scope_info): Ditto. | |
5561 | * ax-gdb.c (trace_kludge): Export. | |
5562 | ||
2dc7f7b3 TT |
5563 | 2010-04-20 Tom Tromey <[email protected]> |
5564 | ||
5565 | * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4. | |
5566 | (struct dwarf2_cie) <segment_size>: New field. | |
5567 | * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4. | |
5568 | (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset, | |
5569 | DW_FORM_exprloc. | |
5570 | (read_attribute_value): Handle DW_FORM_flag_present, | |
5571 | DW_FORM_sec_offset, DW_FORM_exprloc. | |
5572 | (dump_die_shallow): Likewise. | |
5573 | (attr_form_is_section_offset): Handle DW_FORM_sec_offset. | |
5574 | (dwarf2_const_value): Handle DW_FORM_exprloc. | |
5575 | (attr_form_is_block): Likewise. | |
5576 | (struct line_header) <maximum_ops_per_instruction>: New field. | |
5577 | (dwarf_decode_line_header): Set new field. | |
5578 | (dwarf_decode_lines): Handle new field. | |
5579 | ||
ce4b0682 SDJ |
5580 | 2010-04-20 Jan Kratochvil <[email protected]> |
5581 | ||
5582 | * f-exp.y: Add new production to recognize the `logical*8' type. | |
5583 | (LOGICAL_S8_KEYWORD): New token. | |
5584 | * f-lang.c (enum f_primitive_types) | |
5585 | <f_primitive_type_logical_s8>: New field. | |
5586 | (f_language_arch_info): Handling `logical*8' type. | |
5587 | (build_fortran_types): Building `logical*8' type. | |
5588 | * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field. | |
5589 | ||
ff9f22f1 DE |
5590 | 2010-04-19 Doug Evans <[email protected]> |
5591 | ||
5592 | * ser-base.c (generic_readchar): Watch for EOF in read of error_fd. | |
5593 | * ser-pipe.c (pipe_open): Fix file descriptor leaks. | |
5594 | (pipe_close): Ditto. | |
5595 | ||
437125bd PM |
5596 | 2010-04-19 Pierre Muller <[email protected]> |
5597 | ||
5598 | * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes. | |
5599 | ||
e8e6c82e PM |
5600 | 2010-04-19 Pierre Muller <[email protected]> |
5601 | ||
5602 | * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle | |
5603 | type to void function. | |
5604 | ||
4136fdd2 SS |
5605 | 2010-04-19 Stan Shebs <[email protected]> |
5606 | Vladimir Prus <[email protected]> | |
5607 | ||
5608 | * tracepoint.c (tfind_1): Add missing newline, report exit from | |
5609 | tfind mode as such. | |
5610 | * target.c (update_current_target): Make default | |
5611 | to_trace_find return -1. | |
5612 | ||
0c4b2e63 MF |
5613 | 2010-04-19 Mike Frysinger <[email protected]> |
5614 | ||
5615 | * objc-lang.c (find_methods): Move symname check up. | |
5616 | ||
78076abc PA |
5617 | 2010-04-19 Pedro Alves <[email protected]> |
5618 | ||
5619 | * ada-lang.c (print_recreate_exception) | |
5620 | <ex_catch_exception_unhandled>: It's "catch exception unhandled", | |
5621 | not "catch unhandled". | |
5622 | ||
6149aea9 PA |
5623 | 2010-04-19 Pedro Alves <[email protected]> |
5624 | ||
5625 | PR breakpoints/8554. | |
5626 | ||
5627 | Implement `save-breakpoints'. | |
5628 | ||
5629 | * breakpoint.c (save_cmdlist): New. | |
5630 | (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close | |
5631 | to save_cmdlist. | |
5632 | (print_recreate_catch_fork): New. | |
5633 | (catch_fork_breakpoint_ops): Install it. | |
5634 | (print_recreate_catch_vfork): New. | |
5635 | (catch_vfork_breakpoint_ops): Install it. | |
5636 | (print_recreate_catch_syscall): New. | |
5637 | (catch_syscall_breakpoint_ops): Install it. | |
5638 | (print_recreate_catch_exec): New. | |
5639 | (catch_exec_breakpoint_ops): Install it. | |
5640 | (print_recreate_exception_catchpoint): New. | |
5641 | (gnu_v3_exception_catchpoint_ops): Install it. | |
5642 | (save_breakpoints): New, based on tracepoint_save_command, but | |
5643 | handle all breakpoint types. | |
5644 | (save_breakpoints_command): New. | |
5645 | (tracepoint_save_command): Rename to... | |
5646 | (save_tracepoints_command): ... this, and reimplement using | |
5647 | save_breakpoints. | |
5648 | (save_command): New. | |
5649 | (_initialize_breakpoints): Install the "save" command prefix. | |
5650 | Install the "save breakpoints" command. Make "save-tracepoints" a | |
5651 | deprecated alias for "save tracepoints". | |
5652 | * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. | |
5653 | * ada-lang.c (print_recreate_exception): New. | |
5654 | (print_recreate_catch_exception): New. | |
5655 | (catch_exception_breakpoint_ops): Install it. | |
5656 | (print_recreate_catch_exception_unhandled): New. | |
5657 | (catch_exception_unhandled_breakpoint_ops): Install it. | |
5658 | (print_recreate_catch_assert): New. | |
5659 | (catch_assert_breakpoint_ops): Install it. | |
5660 | ||
5661 | * NEWS: Mention the new `save breakpoints' command. Mention the | |
5662 | new `save tracepoints' alias and that `save-tracepoints' is now | |
5663 | deprecated. | |
5664 | ||
0a8fce9a PA |
5665 | 2010-04-18 Pedro Alves <[email protected]> |
5666 | ||
5667 | PR tui/9217 | |
5668 | ||
5669 | * tui/tui-out.c: Include cli-out.h. | |
5670 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
5671 | (tui_begin, tui_end, tui_field_int, tui_field_skip) | |
5672 | (tui_field_string, tui_field_fmt, tui_spaces, tui_text) | |
5673 | (tui_message, tui_wrap_hint, tui_flush): Delete forward | |
5674 | declarations. | |
5675 | (struct ui_out_data): Rename to... | |
5676 | (struct tui_ui_out_data): ... this. Remove `stream' and | |
5677 | `suppress_output' fields, and inherit cli_ui_out_data. | |
5678 | (tui_out_data): New typedef. | |
5679 | (tui_ui_out_impl): Don't initialize fields staticaly. | |
5680 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
5681 | (tui_begin, tui_end): Delete. | |
5682 | (tui_field_int): Adjust to delegate most work to the base type. | |
5683 | (tui_field_skip): Delete. | |
5684 | (tui_field_string, tui_field_fmt): Adjust comment. Adjust to | |
5685 | delegate most work to the base type. | |
5686 | (tui_spaces): Delete. | |
5687 | (tui_text): Adjust to delegate most work to the base type. | |
5688 | (tui_message): Delete. | |
5689 | (tui_wrap_hint): Delete. | |
5690 | (tui_flush): Delete. | |
5691 | (out_field_fmt): Delete. | |
5692 | (field_separator): Delete. | |
5693 | (tui_out_new): Adjust to initialize the base type. | |
5694 | (_initialize_tui_out): Initialize tui_ui_out_impl. | |
5695 | * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed | |
5696 | cli_ui_out_data. | |
5697 | (cli_out_data): Adjust. | |
5698 | (cli_ui_out_impl): Make extern. | |
5699 | (cli_table_header, cli_field_int, cli_field_skip): Use | |
5700 | uo_field_string instead of cli_field_string. | |
5701 | (cli_redirect): Adjust to use cli_out_data. | |
5702 | (cli_out_data_ctor): New. | |
5703 | (cli_out_new): Use it. | |
5704 | * cli-out.h (struct ui_file): Remove forward declaration. | |
5705 | (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. | |
5706 | (cli_ui_out_impl): Declare. | |
5707 | (cli_out_data_ctor): Declare. | |
5708 | * ui-out.c (struct ui_out) <data>: Change type to void pointer. | |
5709 | (uo_field_string): No longer static. | |
5710 | (ui_out_data): Change return type to void pointer. | |
5711 | (ui_out_new): Change `data' parameter type to void pointer. | |
5712 | * ui-out.h (struct ui_out_data): Don't forward declare. | |
5713 | (ui_out_data): Change return type to void pointer. | |
5714 | (ui_out_new): Change `data' parameter type to void pointer. | |
5715 | (uo_field_string): Declare. | |
5716 | ||
172240dd PA |
5717 | 2010-04-17 Pedro Alves <[email protected]> |
5718 | ||
5719 | * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, | |
5720 | instead of always false. | |
5721 | ||
ed41462c L |
5722 | 2010-04-17 H.J. Lu <[email protected]> |
5723 | ||
5724 | PR corefiles/11511 | |
5725 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support | |
5726 | orig_rax. | |
5727 | ||
cc60f2e3 PA |
5728 | 2010-04-17 Pedro Alves <[email protected]> |
5729 | ||
5730 | * breakpoint.c (watchpoints_triggered): Use | |
5731 | is_hardware_watchpoint. | |
5732 | (watchpoints_triggered): Ditto. | |
5733 | (bpstat_check_location): Use is_watchpoint and | |
5734 | is_hardware_watchpoint. | |
5735 | (bpstat_check_watchpoint): Use is_watchpoint and | |
5736 | is_hardware_watchpoint. | |
5737 | (bpstat_stop_status): Fix comment. | |
5738 | (user_settable_breakpoint): Use is_watchpoint. | |
5739 | (hw_watchpoint_used_count): Use is_hardware_watchpoint. | |
5740 | (disable_watchpoints_before_interactive_call_start): Use | |
5741 | is_watchpoint. | |
5742 | (enable_watchpoints_after_interactive_call_stop): Use | |
5743 | is_watchpoint. | |
5744 | (clear_command): Use is_watchpoint. | |
5745 | (do_enable_breakpoint): Use is_watchpoint. | |
5746 | ||
cb7db0f2 MF |
5747 | 2010-04-16 Mike Frysinger <[email protected]> |
5748 | ||
5749 | * solib-frv.c (enable_break1_done): Delete. | |
5750 | (enable_break2): Do not check enable_break1_done. Move the | |
5751 | enable_break2_done setting and call to | |
5752 | remove_solib_event_breakpoints() to the end. Return without | |
5753 | warning when the contents of _dl_debug_addr are 0. | |
5754 | (enable_break): Do not set enable_break1_done. | |
5755 | (frv_clear_solib): Likewise. | |
5756 | ||
d77b48cf KB |
5757 | 2010-04-16 Kevin Buettner <[email protected]> |
5758 | ||
5759 | * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning | |
5760 | instead of an error if no PLT entry is found. Return a | |
5761 | potentially useful result. | |
5762 | (m32c_m16c_pointer_to_address): Add code to search for function | |
5763 | address when no .plt entry is found. | |
5764 | ||
f90824dc SS |
5765 | 2010-04-16 Stan Shebs <[email protected]> |
5766 | ||
5767 | * tracepoint.c (trace_variable_command): Run a cleanup. | |
5768 | ||
9b79b476 PM |
5769 | 2010-04-16 Pierre Muller <[email protected]> |
5770 | ||
5771 | * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range. | |
5772 | ||
711e434b PM |
5773 | 2010-04-16 Pierre Muller <[email protected]> |
5774 | ||
5775 | Support for Windows OS Thread Information Block. | |
5776 | * NEWS: Document new feature. | |
5777 | * remote.c (PACKET_qGetTIBAddr): New enum element. | |
5778 | (remote_get_tib_address): New function. | |
5779 | (init_remote_ops): Set to_get_tib_address field | |
5780 | to remote_get_tib_address. | |
5781 | (_initialize_remote): Add add_packet_config_cmd | |
5782 | for PACKET_qGetTIBAddr. | |
5783 | * target.c (update_current_target): Set default value for | |
5784 | new to_get_tib_address field. | |
5785 | * target.h (target_ops): New field to_get_tib_address. | |
5786 | (target_get_tib_address): New macro. | |
5787 | * windows-nat.c (thread_info): Add thread_local_base field. | |
5788 | (windows_add_thread): Add tlb argument of type 'void *'. | |
5789 | (fake_create_process): Adapt windows_add_thread call. | |
5790 | (get_windows_debug_event): Idem. | |
5791 | (windows_get_tib_address): New function. | |
5792 | (init_windows_ops): Set to_get_tib_address field | |
5793 | to remote_get_tib_address. | |
5794 | (_initialize_windows_nat): Replace info_w32_cmdlist | |
5795 | initialization by a call to init_w32_command_list. | |
5796 | (info_w32_command, info_w32_cmdlist): Removed from here... | |
5797 | to windows-tdep.c file. | |
5798 | * windows-tdep.h (info_w32_cmdlist): Declare. | |
0407b3f1 | 5799 | (init_w32_command_list): New external function |
711e434b PM |
5800 | declaration. |
5801 | * windows-tdep.c: Add several headers. | |
5802 | (info_w32_cmdlist): to here, made global. | |
5803 | (thread_information_32): New struct. | |
5804 | (thread_information_64): New struct. | |
5805 | (TIB_NAME): New char array. | |
5806 | (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants. | |
5807 | (maint_display_all_tib): New static variable. | |
5808 | (windows_get_tlb_type): New function. | |
5809 | (tlb_value_read, tlb_value_write): New functions. | |
5810 | (tlb_value_funcs): New static struct. | |
5811 | (tlb_make_value): New function. | |
5812 | (display_one_tib): New function. | |
5813 | (display_tib): New function. | |
5814 | (show_maint_show_all_tib):New function. | |
5815 | (info_w32_command): Moved from windows-nat.c. | |
5816 | (init_w32_command_list): New function. | |
5817 | (_initialize_windows_tdep): New function. | |
5818 | New "maint set/show show-all-tib" command | |
5819 | New "$_tlb" internal variable. | |
5820 | ||
cae3f17b JB |
5821 | 2010-04-16 Joel Brobecker <[email protected]> |
5822 | ||
5823 | * tui/tui-regs.c (tui_display_register): Add comment about | |
5824 | a couple of casts. | |
5825 | * tui/tui-stack.c (tui_show_locator_content): Ditto. | |
5826 | ||
2ce6d6bf SS |
5827 | 2010-04-15 Stan Shebs <[email protected]> |
5828 | ||
5829 | * frame.c: Include tracepoint.h. | |
5830 | (get_current_frame): Allow a trace frame to be an alternate source | |
5831 | of stack frame data. | |
5832 | * tracepoint.c (tfind_1): Don't try to get current stack frame if | |
5833 | it won't succeed. | |
5834 | ||
7e559477 PA |
5835 | 2010-04-15 Pedro Alves <[email protected]> |
5836 | ||
5837 | * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for | |
5838 | flags. | |
5839 | * solib-spu.c (spu_solib_loaded): Always pass 0 for flags. | |
5840 | ||
3f7b2faa DE |
5841 | 2010-04-15 Doug Evans <[email protected]> |
5842 | ||
fa33c3cd DE |
5843 | * NEWS: Add entry for python program space support. |
5844 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o. | |
5845 | (SUBDIR_PYTHON_SRCS): Add py-progspace.c. | |
5846 | (py-progspace.o): New rule. | |
5847 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New | |
5848 | function. | |
5849 | (find_pretty_printer_from_progspace): New function. | |
5850 | (find_pretty_printer_from_gdb): New function. | |
5851 | (find_pretty_printer): Rewrite. | |
5852 | * python/py-progspace.c: New file. | |
5853 | * python/python-internal.h (program_space): Add forward decl. | |
5854 | (pspace_to_pspace_object, pspy_get_printers): Declare. | |
5855 | (gdbpy_initialize_pspace): Declare. | |
5856 | * python/python.c: #include "progspace.h". | |
5857 | (gdbpy_get_current_progspace, gdbpy_progspaces): New functions. | |
5858 | (_initialize_python): Call gdbpy_initialize_pspace. | |
5859 | (GdbMethods): Add current_progspace, progspaces. | |
5860 | ||
3f7b2faa DE |
5861 | Add -s option to source command. |
5862 | * NEWS: Document new option. | |
5863 | * cli/cli-cmds.c (find_and_open_script): Add function comment. | |
5864 | Delete from_tty and cleanupp args. Split filep arg into file and | |
5865 | full_pathp. New arg search_path. | |
5866 | (source_script_from_stream): New function. | |
5867 | (source_script_with_search): New function. | |
5868 | (source_script): Rewrite. | |
5869 | (source_command): Parse "-s" option. | |
5870 | (init_cli_cmds): Add "-s" docs to source command help, and reformat. | |
5871 | * python/python.c (source_python_script): Make file arg a const char *. | |
5872 | Don't call fclose, leave for caller. | |
5873 | * python/python.h (source_python_script): Update. | |
5874 | ||
a86988f2 PA |
5875 | 2010-04-14 Daniel Jacobowitz <[email protected]> |
5876 | Pedro Alves <[email protected]> | |
5877 | ||
5878 | Avoid rereading shared libraries that haven't changed. | |
5879 | ||
5880 | * solib.c (free_so_symbols): New function, from ... | |
5881 | (free_so): ... here. Call it. | |
5882 | (solib_read_symbols): Don't warn here if symbols have already been | |
5883 | loaded. | |
5884 | (solib_add): Warn here instead, if a pattern was specified. | |
5885 | (reload_shared_libraries_1): New. | |
5886 | (reload_shared_libraries): Rewrite to not fetch the library list. | |
5887 | ||
e6d9b9c2 DE |
5888 | 2010-04-14 Doug Evans <[email protected]> |
5889 | ||
589390d6 | 5890 | * source.c (openp): Strip DOS drive letter if present before |
e6d9b9c2 DE |
5891 | concatenating string to search path. |
5892 | ||
516ba659 PA |
5893 | 2010-04-14 Pedro Alves <[email protected]> |
5894 | ||
5895 | * objfiles.h (gdb_bfd_close_or_warn): Declare. | |
5896 | * objfiles.c (gdb_bfd_close_or_warn): New. | |
5897 | * corelow.c: Include objfiles.h | |
5898 | (core_close): Use gdb_bfd_close_or_warn. | |
5899 | * elfread.c (build_id_verify): Ditto. | |
5900 | * exec.c (exec_close, exec_close_1): Ditto. | |
5901 | ||
048d532d PA |
5902 | 2010-04-14 Daniel Jacobowitz <[email protected]> |
5903 | Pedro Alves <[email protected]> | |
5904 | ||
5905 | Group errors for many missing shared libraries. | |
5906 | ||
5907 | * solist.h (struct so_list): Remove from_tty. | |
5908 | * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD. | |
5909 | (solib_map_sections): Take so_list argument. Return 0 if we | |
5910 | failed to open a BFD. Add target sections here. | |
5911 | (symbol_add_stub): Delete. | |
5912 | (solib_read_symbols): Inline symbol_add_stub. Use current flags, | |
5913 | not from_tty copied from the so_list. Don't warn a second time | |
5914 | for a missing library. | |
5915 | (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not | |
5916 | add to the section table here. Print out a single warning for all | |
5917 | missing libraries. | |
5918 | * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for | |
5919 | flags. | |
5920 | ||
044c0f87 PM |
5921 | 2010-04-14 Phil Muldoon <[email protected]> |
5922 | ||
5923 | * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass | |
5924 | error/warning messages. Capitalize and use complete sentences. | |
5925 | (blpy_block_syms_iternext): Likewise. | |
5926 | * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. | |
5927 | * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) | |
5928 | (frame_info_to_frame_object, frapy_read_var) | |
5929 | (gdbpy_frame_stop_reason_string): Likewise. | |
5930 | * python/py-lazy-string.c (stpy_convert_to_value) | |
5931 | (gdbpy_create_lazy_string_object): Likewise. | |
5932 | * python/py-objfile.c (objfpy_set_printers): Likewise. | |
5933 | * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. | |
5934 | * python/python.c (parameter_to_python): Likewise. | |
5935 | * python/py-type.c (typy_range, typy_target): Likewise. | |
5936 | * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) | |
5937 | (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. | |
5938 | ||
5939 | ||
79f283fe PM |
5940 | 2010-04-14 Phil Muldoon <[email protected]> |
5941 | ||
5942 | PR python/11381 | |
5943 | ||
5944 | * python/py-prettyprint.c (pretty_print_one_value): Test for | |
5945 | Py_None. | |
5946 | (print_string_repr): Test for Py_None. Set flags accordingly. | |
5947 | Return value depending on return type. | |
5948 | (print_children): Take a value indicating whether data was printed | |
5949 | before this function was called. Alter output accordingly. | |
5950 | (apply_val_pretty_printer): Capture return value from | |
5951 | print_string_repr and pass to print_children. | |
5952 | ||
4ac5d44e MK |
5953 | 2010-04-13 Mark Kettenis <[email protected]> |
5954 | ||
e1caee70 | 5955 | PR corefiles/11481 |
4ac5d44e MK |
5956 | * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended |
5957 | register note sections. | |
5958 | (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections): | |
5959 | New variables. | |
5960 | (i386_linux_init_abi): Install list of supported register note | |
5961 | sections that matches the target description. | |
5962 | ||
ad91cd99 PA |
5963 | 2010-04-13 Pedro Alves <[email protected]> |
5964 | ||
5965 | * remote.c (remote_get_noisy_reply): Don't error out on empty | |
5966 | replies. | |
5967 | (remote_start_remote): Update and merge tracepoints and trace | |
5968 | state variables as long as the target supports tracepoints. | |
5969 | (remote_trace_init): Fix prototype. | |
5970 | (remote_download_trace_state_variable): Validate reply. | |
5971 | (remote_trace_set_readonly_regions): Fix prototype. | |
5972 | (remote_trace_start): Fix prototype. Check for empty reply. | |
5973 | (remote_get_trace_status): Small cleanup. | |
5974 | (remote_trace_stop): Fix prototype. Check for empty reply. | |
5975 | (remote_trace_find): Check for empty reply. | |
5976 | (remote_save_trace_data): Validate reply. | |
5977 | (remote_set_disconnected_tracing): Check for empty reply, and | |
5978 | validate reply. | |
5979 | (remote_set_circular_trace_buffer): Ditto. | |
5980 | ||
ae3bccd4 PM |
5981 | 2010-04-13 Pierre Muller <[email protected]> |
5982 | ||
5983 | Suppress unused value warning during compilation. | |
5984 | * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend | |
5985 | calls to void. | |
5986 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
5987 | ||
523136f2 SS |
5988 | 2010-04-12 Stan Shebs <[email protected]> |
5989 | ||
5990 | * tracepoint.c (tfile_xfer_partial): Check read result. | |
5991 | ||
0d18d720 MF |
5992 | 2010-04-12 Mike Frysinger <[email protected]> |
5993 | ||
5994 | * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var. | |
5995 | * remote-sim.c (gdbsim_files_info): Likewise. | |
5996 | ||
3b273a55 RE |
5997 | 2010-04-12 Matthew Gretton-Dann <[email protected]> |
5998 | ||
5999 | * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM | |
6000 | * arm-linux-nat.c (arm_linux_vfp_register_count): New | |
6001 | variable. | |
6002 | (fetch_vfp_registers): New function to fetch VFP registers. | |
6003 | (store_vfp_registers): New function to store VFP registers. | |
6004 | (arm_linux_fetch_inferior_registers): Add support for VFP | |
6005 | registers. | |
6006 | (arm_linux_store_inferior_registers): Likewise. | |
6007 | (arm_linux_read_description): Likewise. | |
6008 | (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc | |
6009 | until we need it. | |
6010 | ||
778c7095 L |
6011 | 2010-04-11 H.J. Lu <[email protected]> |
6012 | ||
6013 | * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused | |
6014 | tdep. | |
6015 | (amd64_collect_xstateregset): Likewise. | |
6016 | ||
2114d44c SS |
6017 | 2010-04-09 Stan Shebs <[email protected]> |
6018 | ||
87290684 SS |
6019 | * tracepoint.c (trace_status_mi): Report frames created. |
6020 | ||
2114d44c SS |
6021 | * tracepoint.c (trace_dump_command): Include default-collect |
6022 | expressions. | |
6023 | ||
86da934b UW |
6024 | 2010-04-09 Ulrich Weigand <[email protected]> |
6025 | ||
6026 | * symtab.c (find_function_start_sal): Never return SAL pointing | |
6027 | before function start address, even if line info is missing. | |
6028 | ||
2d6e647a | 6029 | 2010-04-09 Pedro Alves <[email protected]> |
d337e9f0 PA |
6030 | |
6031 | * NEWS: Mention tracepoints support. | |
6032 | ||
a97153c7 PA |
6033 | 2010-04-09 Pedro Alves <[email protected]> |
6034 | ||
6035 | * tracepoint.c (trace_status_mi): Report disconnected tracing and | |
6036 | circular trace buffer statuses. | |
6037 | ||
7a66d603 JK |
6038 | 2010-04-09 Jan Kratochvil <[email protected]> |
6039 | ||
6040 | * config/djgpp/fnchange.lst: Fix typo in translations for | |
6041 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
6042 | ||
2566ad2d PA |
6043 | 2010-04-09 Pedro Alves <[email protected]> |
6044 | ||
6045 | * breakpoint.c (condition_command): Pass condition expression to | |
6046 | set_breakpoint_condition stripped from breakpoint number. | |
6047 | ||
adc36818 PM |
6048 | 2010-04-09 Phil Muldoon <[email protected]> |
6049 | Thiago Jung Bauermann <[email protected]> | |
2566ad2d | 6050 | Tom Tromey <[email protected]> |
adc36818 PM |
6051 | |
6052 | * breakpoint.c (condition_command): Simplify. Move condition | |
6053 | setting code to ... | |
6054 | (set_breakpoint_condition): ... here. New function. | |
6055 | * breakpoint.h (set_breakpoint_condition): Declare. | |
6056 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint. | |
6057 | (SUBDIR_PYTHON_SRCS): Likewise. | |
6058 | (py-breakpoint.o): New rule. | |
6059 | * python/py-breakpoint.c: New file. | |
6060 | * python/python-internal.h (gdbpy_breakpoints) | |
6061 | (gdbpy_initialize_breakpoints): Declare. | |
6062 | (GDB_PY_SET_HANDLE_EXCEPTION) Define. | |
6063 | ||
219f2f23 PA |
6064 | 2010-04-09 Pedro Alves <[email protected]> |
6065 | ||
6066 | * regformats/regdat.sh: Include server.h. Don't include | |
6067 | regcache.h. | |
6068 | ||
33da3f1c SS |
6069 | 2010-04-08 Stan Shebs <[email protected]> |
6070 | Pedro Alves <[email protected]> | |
6071 | ||
6072 | * tracepoint.h (struct trace_status): New fields disconnected_tracing | |
6073 | and circular_buffer. | |
6074 | (disconnect_tracing): Rename from disconnect_or_stop_tracing. | |
6075 | * tracepoint.c (trace_status_command): Display target's status for | |
6076 | disconnected tracing and circular buffer. | |
6077 | (disconnect_tracing): Rename from disconnect_or_stop_tracing, add | |
6078 | query for non-disconnected-tracing case, remove the stop_tracing | |
6079 | call. | |
6080 | (tfile_open): Clear disconnected and circular buffer status. | |
6081 | (trace_save): Save disconnected and circular buffer status. | |
6082 | (parse_trace_status): Parse disconnected and circular buffer status, | |
6083 | also recognize disconnected as a stop reason. | |
6084 | * remote.c (remote_set_disconnected_tracing): Only set | |
6085 | QTDisconnected if the remote end supports disconnected tracing. | |
6086 | Warn otherwise, if trying to enable disconnected tracing. | |
6087 | * infcmd.c (detach_command): Update disconnect_tracing call. | |
6088 | * cli/cli-cmds.c (quit_command): Ditto. | |
6089 | ||
4e4d8374 L |
6090 | 2010-04-08 H.J. Lu <[email protected]> |
6091 | ||
6092 | * i387-tdep.c (i387_collect_xsave): Replace abort with | |
6093 | internal_error. | |
6094 | ||
ad443146 SS |
6095 | 2010-04-08 Stan Shebs <[email protected]> |
6096 | ||
6097 | * breakpoint.c (default_collect_info): New function. | |
6098 | (breakpoints_info): Call it. | |
6099 | (maintenance_info_breakpoints): Ditto. | |
6100 | (tracepoints_info): Ditto. | |
6101 | ||
40936b0d L |
6102 | 2010-04-08 H.J. Lu <[email protected]> |
6103 | ||
6104 | * i387-tdep.c (i387_collect_xsave): Re-indent. | |
6105 | ||
3a13a53b L |
6106 | 2010-04-08 H.J. Lu <[email protected]> |
6107 | ||
6108 | * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1 | |
6109 | if HAVE_PTRACE_GETFPXREGS is defined. | |
6110 | (i386_linux_read_description): Set have_ptrace_getfpxregs and | |
6111 | have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed. | |
6112 | ||
6113 | * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c" | |
6114 | (i386_linux_core_read_description): Return tdesc_i386_mmx_linux | |
6115 | if .reg-xfp section doesn't exist. | |
6116 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux. | |
6117 | ||
6118 | * i386-linux-tdep.h (tdesc_i386_mmx_linux): New. | |
6119 | ||
6120 | * i386-tdep.c: Include "features/i386/i386-mmx.c". | |
6121 | (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx. | |
6122 | (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set | |
6123 | xcr0 to I386_XSTATE_X87_MASK if SSE isn't available. | |
6124 | (i386_gdbarch_init): Update comments. | |
6125 | (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx. | |
6126 | ||
6127 | * common/i386-xstate.h (I386_XSTATE_X87_MASK): New. | |
6128 | ||
6129 | * config/djgpp/fnchange.lst: Add i386 MMX XML files. | |
6130 | ||
6131 | * features/Makefile (i386/i386-mmx-expedite): New. | |
6132 | (i386/i386-mmx-linux-expedite): Likewise. | |
6133 | ($(outdir)/i386/i386-mmx.dat): Likewise. | |
6134 | ($(outdir)/i386/i386-mmx-linux.dat): Likewise. | |
6135 | ||
6136 | * features/i386/i386-mmx-linux.c: New. | |
6137 | * features/i386/i386-mmx-linux.xml: Likewise. | |
6138 | * features/i386/i386-mmx.c: Likewise. | |
6139 | * features/i386/i386-mmx.xml: Likewise. | |
6140 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
6141 | * regformats/i386/i386-mmx.dat: Likewise. | |
6142 | ||
6143 | * features/Makefile (WHICH): Add i386/i386-mmx and | |
6144 | i386/i386-mmx-linux. | |
6145 | ||
08001717 DE |
6146 | 2010-04-08 Doug Evans <[email protected]> |
6147 | ||
6148 | * source.c (openp): Skip $cdir in PATH. | |
6149 | ||
fff5cc64 PM |
6150 | 2010-04-08 Phil Muldoon <[email protected]> |
6151 | ||
6152 | PR python/11417 | |
fff5cc64 | 6153 | * python/py-lazy-string.c (stpy_convert_to_value): Check for |
3a13a53b L |
6154 | a NULL address. |
6155 | (gdbpy_create_lazy_string_object): Allow strings with a NULL | |
6156 | address and a zero length. | |
fff5cc64 | 6157 | |
f8c4f480 HZ |
6158 | 2010-04-08 Hui Zhu <[email protected]> |
6159 | ||
6160 | * i386-tdep.c (i386_process_record): Add support for insn | |
6161 | rdtsc. | |
6162 | ||
eb5cda86 DE |
6163 | 2010-04-07 Doug Evans <[email protected]> |
6164 | ||
6165 | * python/python.c (source_python_script): Use ensure_python_env | |
6166 | to prepare environment for script. | |
6167 | ||
a055a187 L |
6168 | 2010-04-07 H.J. Lu <[email protected]> |
6169 | ||
6170 | * amd64-linux-nat.c: Include "regset.h", "elf/common.h", | |
6171 | <sys/uio.h> and "i386-xstate.h". | |
6172 | (PTRACE_GETREGSET): New. | |
6173 | (PTRACE_SETREGSET): Likewise. | |
6174 | (have_ptrace_getregset): Likewise. | |
6175 | (amd64_linux_gregset64_reg_offset): Include 16 upper YMM | |
6176 | registers. | |
6177 | (amd64_linux_gregset32_reg_offset): Include 8 upper YMM | |
6178 | registers. | |
6179 | (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS. | |
6180 | (amd64_linux_store_inferior_registers): Likewise. | |
6181 | (amd64_linux_read_description): Check and enable AVX target | |
6182 | descriptions. | |
6183 | ||
6184 | * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h" | |
6185 | and "features/i386/amd64-avx-linux.c". | |
6186 | (amd64_linux_regset_sections): New. | |
6187 | (amd64_linux_core_read_description): Check and enable AVX | |
6188 | target description. | |
6189 | (amd64_linux_init_abi): Set xsave_xcr0_offset. Call | |
6190 | set_gdbarch_core_regset_sections. | |
6191 | (_initialize_amd64_linux_tdep): Call | |
6192 | initialize_tdesc_amd64_avx_linux. | |
6193 | ||
6194 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace | |
6195 | AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM. | |
6196 | (tdesc_amd64_avx_linux): New. | |
6197 | (amd64_linux_update_xstateregset): Likewise. | |
6198 | ||
6199 | * amd64-tdep.c: Include "features/i386/amd64-avx.c". | |
6200 | (amd64_ymm_names): New. | |
6201 | (amd64_ymmh_names): Likewise. | |
6202 | (amd64_register_name): Likewise. | |
6203 | (amd64_supply_xstateregset): Likewise. | |
6204 | (amd64_collect_xstateregset): Likewise. | |
6205 | (amd64_supply_xsave): Likewise. | |
6206 | (amd64_collect_xsave): Likewise. | |
6207 | (AMD64_NUM_REGS): Removed. | |
6208 | (amd64_dwarf_reg_to_regnum): Return %ymmN register number for | |
6209 | %xmmN if AVX is available. | |
6210 | (amd64_pseudo_register_name): Support pseudo YMM registers. | |
6211 | (amd64_regset_from_core_section): Support .reg-xstate section. | |
6212 | (amd64_init_abi): Set ymmh_register_names, num_ymm_regs | |
6213 | and ymm0h_regnum. Call set_gdbarch_register_name. | |
6214 | (amd64_init_abi): Call initialize_tdesc_amd64_avx. | |
6215 | ||
6216 | * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and | |
6217 | AMD64_YMM15H_REGNUM. | |
6218 | (AMD64_NUM_REGS): New. | |
6219 | (amd64_supply_xsave): Likewise. | |
6220 | (amd64_collect_xsave): Likewise. | |
6221 | (amd64_register_name): Removed. | |
6222 | (amd64_register_type): Likewise. | |
6223 | ||
31aeac78 L |
6224 | 2010-04-07 H.J. Lu <[email protected]> |
6225 | ||
6226 | * i387-tdep.c: Include "i386-xstate.h". | |
6227 | (XSAVE_XSTATE_BV_ADDR): New. | |
6228 | (xsave_avxh_offset): Likewise. | |
6229 | (XSAVE_AVXH_ADDR): Likewise. | |
6230 | (i387_supply_xsave): Likewise. | |
6231 | (i387_collect_xsave): Likewise. | |
6232 | ||
6233 | * i387-tdep.h (I387_NUM_YMM_REGS): New. | |
6234 | (I387_YMM0H_REGNUM): Likewise. | |
6235 | (I387_YMMENDH_REGNUM): Likewise. | |
6236 | (i387_supply_xsave): Likewise. | |
6237 | (i387_collect_xsave): Likewise. | |
6238 | ||
c131fcee L |
6239 | 2010-04-07 H.J. Lu <[email protected]> |
6240 | ||
6241 | * i386-linux-nat.c: Include "regset.h", "elf/common.h", | |
6242 | <sys/uio.h> and "i386-xstate.h". | |
6243 | (PTRACE_GETREGSET): New. | |
6244 | (PTRACE_SETREGSET): Likewise. | |
6245 | (fetch_xstateregs): Likewise. | |
6246 | (store_xstateregs): Likewise. | |
6247 | (GETXSTATEREGS_SUPPLIES): Likewise. | |
6248 | (regmap): Include 8 upper YMM registers. | |
6249 | (i386_linux_fetch_inferior_registers): Support XSAVE extended | |
6250 | state. | |
6251 | (i386_linux_store_inferior_registers): Likewise. | |
6252 | (i386_linux_read_description): Check and enable AVX target | |
6253 | descriptions. | |
6254 | ||
6255 | * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h", | |
6256 | "i386-xstate.h" and "features/i386/i386-avx-linux.c". | |
6257 | (i386_linux_regset_sections): Add ".reg-xstate". | |
6258 | (i386_linux_gregset_reg_offset): Include 8 upper YMM registers. | |
6259 | (i386_linux_core_read_xcr0): New. | |
6260 | (i386_linux_core_read_description): Check and enable AVX target | |
6261 | description. | |
6262 | (i386_linux_init_abi): Set xsave_xcr0_offset. | |
6263 | (_initialize_i386_linux_tdep): Call | |
6264 | initialize_tdesc_i386_avx_linux. | |
6265 | ||
6266 | * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace | |
6267 | I386_SSE_NUM_REGS with I386_AVX_NUM_REGS. | |
6268 | (i386_linux_core_read_xcr0): New. | |
6269 | (tdesc_i386_avx_linux): Likewise. | |
6270 | (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise. | |
6271 | ||
6272 | * i386-tdep.c: Include "i386-xstate.h" and | |
6273 | "features/i386/i386-avx.c". | |
6274 | (i386_ymm_names): New. | |
6275 | (i386_ymmh_names): Likewise. | |
6276 | (i386_ymmh_regnum_p): Likewise. | |
6277 | (i386_ymm_regnum_p): Likewise. | |
6278 | (i386_xmm_regnum_p): Likewise. | |
6279 | (i386_register_name): Likewise. | |
6280 | (i386_ymm_type): Likewise. | |
6281 | (i386_supply_xstateregset): Likewise. | |
6282 | (i386_collect_xstateregset): Likewise. | |
6283 | (i386_sse_regnum_p): Removed. | |
6284 | (i386_pseudo_register_name): Support pseudo YMM registers. | |
6285 | (i386_pseudo_register_type): Likewise. | |
6286 | (i386_pseudo_register_read): Likewise. | |
6287 | (i386_pseudo_register_write): Likewise. | |
6288 | (i386_dbx_reg_to_regnum): Return %ymmN register number for | |
6289 | %xmmN if AVX is available. | |
6290 | (i386_regset_from_core_section): Support .reg-xstate section. | |
6291 | (i386_register_reggroup_p): Supper upper YMM and YMM registers. | |
6292 | (i386_process_record): Replace i386_sse_regnum_p with | |
6293 | i386_xmm_regnum_p. | |
6294 | (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature. | |
6295 | Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0. | |
8d95cc3b | 6296 | (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset. |
c131fcee L |
6297 | Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with |
6298 | I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and | |
6299 | num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs. | |
6300 | Set ymm0_regnum. | |
6301 | (_initialize_i386_tdep): Call initialize_tdesc_i386_avx. | |
6302 | ||
6303 | * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum, | |
6304 | xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and | |
6305 | i386_ymm_type. | |
6306 | (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM. | |
6307 | (I386_AVX_NUM_REGS): New. | |
6308 | (i386_xmm_regnum_p): Likewise. | |
6309 | (i386_ymm_regnum_p): Likewise. | |
6310 | (i386_ymmh_regnum_p): Likewise. | |
6311 | ||
6312 | * common/i386-xstate.h: New. | |
6313 | ||
98adf0f3 L |
6314 | 2010-04-07 H.J. Lu <[email protected]> |
6315 | ||
6316 | * config/djgpp/fnchange.lst: Add x86 AVX XML files. | |
6317 | ||
6318 | * features/Makefile (WHICH): Add i386/i386-avx, | |
6319 | i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux. | |
6320 | (i386/i386-avx-expedite): New. | |
6321 | (i386/i386-avx-linux-expedite): Likewise. | |
6322 | (i386/x86-64-avx-expedite):Likewise. | |
6323 | (i386/x86-64-avx-linux-expedite): Likewise. | |
6324 | ($(outdir)/i386/i386-avx.dat): New dependency. | |
6325 | ($(outdir)/i386/i386-avx-linux.dat): Likewise. | |
6326 | ($(outdir)/i386/x86-avx-64.dat): Likewise. | |
6327 | ($(outdir)/i386/x86-64-avx-linux.dat): Likewise. | |
6328 | ||
6329 | * features/i386/32bit-avx.xml: New. | |
6330 | * features/i386/64bit-avx.xml: Likewise. | |
6331 | * features/i386/i386-avx-linux.c: Likewise. | |
6332 | * features/i386/i386-avx-linux.xml: Likewise. | |
6333 | * features/i386/i386-avx.c: Likewise. | |
6334 | * features/i386/i386-avx.xml: Likewise. | |
6335 | * features/i386/x86-64-avx-linux.c: Likewise. | |
6336 | * features/i386/x86-64-avx-linux.xml: Likewise. | |
6337 | * features/i386/x86-64-avx.c: Likewise. | |
6338 | * features/i386/x86-64-avx.xml: Likewise. | |
6339 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
6340 | * regformats/i386/i386-avx.dat: Likewise. | |
6341 | * regformats/i386/x86-64-avx-linux.dat: Likewise. | |
6342 | * regformats/i386/x86-64-avx.dat: Likewise. | |
6343 | ||
05159abe DE |
6344 | 2010-04-07 Doug Evans <[email protected]> |
6345 | ||
6346 | * top.c (source_file_name): Make const char *. | |
6347 | * top.h (source_file_name): Update. | |
6348 | * cli/cli-script.c (source_cleanup_lines_args): Make old_file | |
6349 | const char *. | |
6350 | (script_from_file): Change `file' arg to const char *. | |
6351 | * cli/cli-script.h (script_from_file): Update. | |
6352 | ||
96e39866 DE |
6353 | 2010-04-06 Doug Evans <[email protected]> |
6354 | ||
6355 | * cli/cli-cmds.c (source_command): Run cleanups. | |
6356 | ||
3149d8c1 SS |
6357 | 2010-04-06 Stan Shebs <[email protected]> |
6358 | ||
6359 | * defs.h (char_ptr): Move typedef here from... | |
6360 | * ada-lang.c (char_ptr): Remove. | |
6361 | * charset.c (char_ptr): Remove. | |
6362 | * tracepoint.h (struct uploaded_string): Remove. | |
6363 | (struct uploaded_tp): Use vectors for string arrays. | |
6364 | * tracepoint.c (trace_save): Use vectors of actions. | |
6365 | (parse_tracepoint_definition): Ditto. | |
6366 | (get_uploaded_tp): Clear vectors. | |
6367 | * breakpoint.c (create_tracepoint_from_upload): Use vectors. | |
6368 | (next_cmd): Change to an int. | |
6369 | (read_next_cmd): Use vector of command strings. | |
6370 | ||
4cc23ede DE |
6371 | 2010-04-06 Doug Evans <[email protected]> |
6372 | ||
6373 | * top.h (source_script, cd_command): Delete. | |
6374 | * main.c: #include "cli/cli-cmds.h" | |
6375 | ||
bd333fb7 KB |
6376 | 2010-04-06 Kevin Buettner <[email protected]> |
6377 | ||
6378 | * m32c-tdep.c (make_types): When calling `arch_type', pass size of | |
6379 | type in bytes, not bits. | |
6380 | ||
ec8a089a PM |
6381 | 2010-04-06 Pierre Muller <[email protected]> |
6382 | ||
6383 | * stabsread.c (define_symbol): Add support for char | |
6384 | and string constants. | |
6385 | ||
2244ba2e PM |
6386 | 2010-04-06 Pierre Muller <[email protected]> |
6387 | ||
6388 | Remove remaining "%ll" uses. | |
6389 | * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using | |
6390 | hex_string call. | |
6391 | * rs6000-nat.c (rs6000_ptrace64): Idem. | |
6392 | * solib-pa64.c (pa64_current_sos): Idem. | |
6393 | * solib-spu.c (spu_current_sos): Idem. | |
6394 | * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using | |
6395 | plongest call. | |
6396 | * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using | |
6397 | phex (VAR, 8) call. | |
6398 | * sh64-tdep.c (sh64_show_media_regs): Idem. | |
6399 | ||
fce3c1f0 SS |
6400 | 2010-04-05 Stan Shebs <[email protected]> |
6401 | ||
6402 | * tracepoint.c: Include gdbcore.h. | |
6403 | (tfile_xfer_partial): Return partial results, also try reading | |
6404 | from executable. | |
6405 | (tfile_has_all_memory): New function. | |
6406 | (init_tfile_ops): Use it. | |
6407 | ||
626ea16d SDJ |
6408 | 2010-04-05 Sergio Durigan Junior <[email protected]> |
6409 | ||
6410 | PR gdb/10736: | |
6411 | * xml-syscall.c (my_gdb_datadir): New variable to keep track of | |
6412 | the changes in data-directory. | |
6413 | (init_sysinfo): Reload the syscall XML file if the data-directory | |
6414 | has changed. | |
6415 | ||
1f7ccab2 JK |
6416 | 2010-04-05 Jan Kratochvil <[email protected]> |
6417 | ||
6418 | Code cleanup. | |
6419 | * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop. | |
6420 | ||
d77f58be SS |
6421 | 2010-04-04 Stan Shebs <[email protected]> |
6422 | Nathan Sidwell <[email protected]> | |
6423 | ||
6424 | * breakpoint.c (breakpoint_1): Add filter argument, return number of | |
6425 | breakpoints printed. | |
6426 | (is_hardware_watchpoint): Make argument const. | |
6427 | (is_watchpoint): Ditto. | |
6428 | (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint, | |
6429 | use it everywhere. | |
6430 | (breakpoints_info): Pass NULL to breakpoint_1. | |
6431 | (maintenance_info_breakpoints): Ditto. | |
6432 | (watchpoints_info): New function. | |
6433 | (tracepoints_info): Use breakpoint_1 filter. | |
6434 | (set_ignore_count): Warn that tracepoint ignore count will be ignored. | |
6435 | (_initialize_breakpoint): Make "info watchpoints" its own command. | |
6436 | * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint. | |
6437 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint. | |
6438 | ||
af54718e SS |
6439 | 2010-04-04 Stan Shebs <[email protected]> |
6440 | ||
6441 | * tracepoint.c (tfile_fetch_registers): Add fallback case. | |
6442 | ||
74d1f91e JK |
6443 | 2010-04-04 Jan Kratochvil <[email protected]> |
6444 | ||
6445 | * infcmd.c (run_command_1): Call proceed with regcache_read_pc address. | |
6446 | * config/djgpp/fnchange.lst: Add translation for break-entry.exp. | |
6447 | ||
91d91ceb JK |
6448 | 2010-04-04 Jan Kratochvil <[email protected]> |
6449 | ||
6450 | * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove. | |
6451 | * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove. | |
6452 | ||
60531b24 JK |
6453 | 2010-04-02 Jan Kratochvil <[email protected]> |
6454 | ||
6455 | * dwarf2read.c (read_namespace_type): Use common "return set_die_type" | |
6456 | code form. | |
6457 | ||
a3c4230a HZ |
6458 | 2010-04-02 Hui Zhu <[email protected]> |
6459 | ||
6460 | * i386-tdep.c (OT_DQUAD): New enum. | |
6461 | (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2, | |
6462 | SSE3, SSSE3 and SSE4. | |
6463 | ||
b15758fe HZ |
6464 | 2010-04-02 Hui Zhu <[email protected]> |
6465 | ||
6466 | * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless | |
6467 | "*addr = 0". | |
6468 | ||
afd02f27 PA |
6469 | 2010-04-02 Pedro Alves <[email protected]> |
6470 | ||
6471 | * tracepoint.c (trace_dump_actions): New, factored out from | |
6472 | trace_dump_command, and adjusted to recurse into while-stepping's | |
6473 | action list. | |
6474 | (trace_dump_command): Use it. | |
6475 | ||
5cea2a26 PA |
6476 | 2010-04-02 Pedro Alves <[email protected]> |
6477 | ||
6478 | * breakpoint.h (struct counted_command_line): Moved definition to | |
6479 | breakpoint.c, and forward declare. | |
6480 | (breakpoint_commands): Declare. | |
6481 | * breakpoint.c (struct counted_command_line): Moved here. | |
6482 | (breakpoint_commands): New. | |
6483 | * tracepoint.c (encode_actions): Use breakpoint_commands. | |
6484 | * remote.c (remote_download_tracepoint): Ditto. | |
6485 | ||
7c47795c L |
6486 | 2010-04-01 H.J. Lu <[email protected]> |
6487 | ||
6488 | * remote.c (remote_parse_stop_reply): Use hex_string instead | |
6489 | of phex_nz for error. | |
6490 | ||
fff87407 SS |
6491 | 2010-04-01 Stan Shebs <[email protected]> |
6492 | Nathan Sidwell <[email protected]> | |
6493 | ||
6494 | * tracepoint.h (enum actionline_type): Remove. | |
6495 | (validate_actionline): Change return to void. | |
6496 | * tracepoint.c (report_agent_reqs_errors): New function. | |
6497 | (validate_actionline): Call it, change return to void, report errors | |
6498 | more consistently. | |
6499 | (collect_symbol): Call report_agent_reqs_errors. | |
6500 | (encode_actions_1): Ditto. | |
6501 | (encode_actions): Don't expect a result from validate_actionline. | |
6502 | ||
615bcdef SS |
6503 | 2010-04-01 Stan Shebs <[email protected]> |
6504 | ||
6505 | * tracepoint.c (trace_start_command): Confirm if trace is running. | |
6506 | (trace_stop_command): Error if trace not running. | |
6507 | ||
fe01d668 L |
6508 | 2010-04-01 H.J. Lu <[email protected]> |
6509 | ||
6510 | * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh". | |
6511 | (AMD64_NUM_LOWER_BYTE_REGS): New. | |
6512 | (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh". | |
6513 | (amd64_pseudo_register_write): Likewise. | |
6514 | (amd64_init_abi): Set num_byte_regs to 20. | |
6515 | ||
86b17b60 PA |
6516 | 2010-04-01 Pedro Alves <[email protected]> |
6517 | ||
6518 | * breakpoint.c (multi_start, multi_end, last_was_multi): Delete. | |
6519 | (prev_breakpoint_count): New. | |
6520 | (set_breakpoint_count): Adjust. | |
6521 | (rbreak_start_breakpoint_count): New. | |
6522 | (start_rbreak_breakpoints): Adjust. | |
6523 | (end_rbreak_breakpoints): Adjust. | |
6524 | (struct commands_info) <arg>: New field. | |
6525 | (do_map_commands_command): Tweak output to include breakpoint spec | |
6526 | range. | |
6527 | (commands_command_1): Adjust. Avoid setting an xfree cleanup if | |
6528 | ARG was empty on entry. Set INFO's arg. | |
6529 | (create_breakpoint): Adjust. | |
6530 | ||
6531 | * NEWS: Clarify `commands' changes. | |
6532 | ||
2c58c0a9 PA |
6533 | 2010-04-01 Pedro Alves <[email protected]> |
6534 | ||
6535 | * tracepoint.c: Include stack.h. | |
6536 | (struct add_local_symbols_data): New. | |
6537 | (do_collect_symbol): New. | |
6538 | (add_local_symbols): Rewrite using iterate_over_block_arg_vars and | |
6539 | iterate_over_block_local_vars. | |
6540 | * stack.c (print_block_frame_locals): Rewrite as ... | |
6541 | (iterate_over_block_locals): ... this. Take a callback function | |
6542 | pointer and generic data pointer, and call that instead of | |
6543 | print_variable_and_value. | |
6544 | (struct print_variable_and_value_data): New. | |
6545 | (do_print_variable_and_value): New. | |
6546 | (iterate_over_block_local_vars): New, abstracted out from | |
6547 | print_frame_local_vars. | |
6548 | (print_frame_local_vars): Rewrite using | |
6549 | iterate_over_block_local_vars. | |
6550 | (iterate_over_block_arg_vars): New, abstracted out from | |
6551 | print_frame_arg_vars. | |
6552 | (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. | |
6553 | * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. | |
6554 | (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. | |
6555 | ||
d476da0e RE |
6556 | 2010-03-31 Richard Earnshaw <[email protected]> |
6557 | ||
6558 | * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH | |
8d95cc3b | 6559 | instructions. Use the PC+4 if the base of the TBB or TBH is the |
d476da0e RE |
6560 | PC register. |
6561 | ||
8072405b JK |
6562 | 2010-03-31 Jan Kratochvil <[email protected]> |
6563 | ||
6564 | Fix crash on reading wrong function declaration DWARF. | |
6565 | * dwarf2read.c (read_subroutine_type): New variable void_type. | |
6566 | Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization | |
6567 | more close to their use. | |
6568 | ||
8bf6485c SS |
6569 | 2010-03-31 Stan Shebs <[email protected]> |
6570 | ||
6571 | * breakpoint.c (tracepoint_save_command): Include variables, | |
8d95cc3b | 6572 | conditionals, tracepoint types, and default-collect. |
8bf6485c SS |
6573 | * tracepoint.c (save_trace_state_variables): New function. |
6574 | * tracepoint.h (save_trace_state_variables): Declare it. | |
6575 | ||
2ae2a0b7 PM |
6576 | 2010-03-31 Pierre Muller <[email protected]> |
6577 | ||
1a161f72 | 6578 | * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. |
2ae2a0b7 | 6579 | |
86ffb506 KS |
6580 | 2010-03-30 Keith Seitz <[email protected]> |
6581 | ||
6582 | * c-typeprint.c (c_type_print_args): Don't print "void" | |
6583 | for java, regardless of whether it is TYPE_PROTOTYPED. | |
6584 | Use the passed-in language instead of current_language. | |
6585 | (c_type_print_varspec_suffix): Use current_language instead | |
6586 | of assuming language_c. | |
6587 | * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off | |
6588 | any return type specifier from the physname. | |
6589 | ||
956c2c8b PA |
6590 | 2010-03-30 Pedro Alves <[email protected]> |
6591 | ||
6592 | * tui/tui-interp.c (tui_is_toplevel): New. | |
6593 | (tui_init): Set it. | |
6594 | (tui_allowed_p): New. | |
6595 | * tui/tui.c (tui_enable): Check if the TUI is allowed before | |
6596 | enabling it. | |
6597 | * tui/tui.h (tui_allowed_p): Declare. | |
6598 | ||
98e5a990 TT |
6599 | 2010-03-30 Ozkan Sezer <[email protected]> |
6600 | ||
6601 | * serial.h: Include winsock2.h before windows.h. | |
6602 | ||
c8d5aac9 L |
6603 | 2010-03-30 H.J. Lu <[email protected]> |
6604 | ||
6605 | * NEWS: Mention xmlRegisters= in qSupported packet. | |
6606 | ||
6607 | * i386-tdep.c: Include "remote.h". | |
6608 | (_initialize_i386_tdep): Call register_remote_support_xml. | |
6609 | ||
6610 | * remote.c (remote_support_xml): New. | |
6611 | (register_remote_support_xml): Likewise. | |
6612 | (remote_query_supported_append): Likewise. | |
6613 | (remote_query_supported): Support remote_support_xml. | |
6614 | ||
6615 | * remote.h (register_remote_support_xml): New. | |
6616 | ||
76a2b958 SS |
6617 | 2010-03-29 Stan Shebs <[email protected]> |
6618 | ||
42e08e69 SS |
6619 | * tracepoint.c (trace_find_line_command): Remove dead code. |
6620 | ||
409873ef SS |
6621 | * tracepoint.h (struct uploaded_string): New struct. |
6622 | (struct uploaded_tp): New fields for source strings. | |
6623 | * breakpoint.c (this_utp, next_cmd): New globals. | |
6624 | (read_uploaded_action): New function. | |
6625 | (create_tracepoint_from_upload): Fill in more parts | |
6626 | of a tracepoint. | |
6627 | * tracepoint.c (encode_source_string): New function. | |
6628 | (trace_save): Write out source strings, fix error checks. | |
6629 | (parse_tracepoint_definition): Add source string parsing. | |
6630 | * remote.c (PACKET_TracepointSource): New packet type. | |
6631 | (remote_download_command_source): New function. | |
6632 | (remote_download_tracepoint): Download source pieces also. | |
6633 | (_initialize_remote): Add packet config command. | |
6634 | ||
a0405854 SS |
6635 | * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to |
6636 | expression handler. | |
6637 | ||
76a2b958 SS |
6638 | * tracepoint.c (start_tracing): Check tracepoints before sending |
6639 | commands to target, don't start if all tracepoints disabled. | |
6640 | ||
d350db38 PA |
6641 | 2010-03-28 Pedro Alves <[email protected]> |
6642 | ||
12f2d601 | 6643 | * cli/cli-script.c (process_next_line): Handle 'stepping'. |
d350db38 | 6644 | |
8b9b7ef8 SS |
6645 | 2010-03-26 Stan Shebs <[email protected]> |
6646 | ||
6647 | * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode. | |
6648 | ||
9766ced4 SS |
6649 | 2010-03-26 Tom Tromey <[email protected]> |
6650 | ||
6651 | * breakpoint.c (commands_command_1): Duplicate 'arg'. | |
6652 | ||
059acae7 UW |
6653 | 2010-03-26 Ulrich Weigand <[email protected]> |
6654 | ||
6655 | * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal. | |
6656 | (skip_prologue_sal): Remove local definition. | |
6657 | (resolve_sal_pc): Remove now unnecessary code. | |
6658 | * linespec.c (minsym_found): Call skip_prologue_sal. | |
6659 | * symtab.c (find_function_start_pc): Remove. | |
6660 | (find_function_start_sal): Extract prologue skipping into ... | |
6661 | (skip_prologue_sal): ... this new function. Handle code both | |
6662 | with and without debug info. Respect SAL's explicit_pc and | |
6663 | explicit_line flags. Inline old find_function_start_pc. | |
6664 | * symtab.h (find_function_start_pc): Remove. | |
6665 | (skip_prologue_sal): Add prototype. | |
6666 | ||
4a811a97 UW |
6667 | 2010-03-26 Ulrich Weigand <[email protected]> |
6668 | ||
6669 | * dwarf2read.c (read_func_scope): Also scan specification DIEs | |
6670 | for DW_TAG_imported_module children. | |
6671 | ||
907af001 UW |
6672 | 2010-03-26 Ulrich Weigand <[email protected]> |
6673 | ||
6674 | * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by | |
6675 | ignoring spurious DW_AT_name attributes for unnamed structs or unions. | |
6676 | * completer.c (add_struct_fields): Fix inverted logic. | |
6677 | ||
dde2d684 UW |
6678 | 2010-03-26 Ulrich Weigand <[email protected]> |
6679 | ||
6680 | * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left. | |
6681 | ||
a609a0c8 PA |
6682 | 2010-03-26 Pedro Alves <[email protected]> |
6683 | ||
6684 | * tracepoint.c (current_trace_status): Don't make sure error_desc | |
6685 | is non-NULL here. | |
6686 | (parse_trace_status): Release a previous error_desc string, and | |
6687 | set it to NULL by default. If stop reason is tracepoint_error, | |
6688 | make sure error_desc is not left NULL. | |
6689 | ||
610197fd PA |
6690 | 2010-03-26 Pedro Alves <[email protected]> |
6691 | ||
6692 | * tracepoint.c (trace_save): Remove X from tracepoint error | |
6693 | description. | |
6694 | ||
99b5e152 PA |
6695 | 2010-03-26 Pedro Alves <[email protected]> |
6696 | ||
6697 | * tracepoint.c (parse_trace_status): Don't allow plain strings in | |
6698 | the terror description. Don't expect an X prefix. | |
6699 | ||
6c28cbf2 SS |
6700 | 2010-03-25 Stan Shebs <[email protected]> |
6701 | ||
6702 | * tracepoint.h (trace_stop_reason): Add tracepoint_error. | |
6703 | (struct trace_status): New field error_desc. | |
6704 | * tracepoint.c (stop_reason_names): Add terror. | |
6705 | (current_trace_status): Ensure non-NULL error description. | |
6706 | (trace_status_command): Add error report. | |
6707 | (trace_status_mi): Ditto. | |
6708 | (trace_save): Add special case for error description. | |
6709 | (parse_trace_status): Add case for errors. | |
6710 | ||
418835cc KS |
6711 | 2010-03-25 Keith Seitz <[email protected]> |
6712 | ||
6713 | * dwarf2read.c (read_subroutine_type): If the compilation unit | |
6714 | language is Java, mark any formal parameter named "this" as | |
6715 | artificial (GCC/43521). | |
6716 | (dwarf2_name): Add special handling for Java constructors. | |
6717 | ||
aa7d318d TT |
6718 | 2010-03-25 Tom Tromey <[email protected]> |
6719 | ||
6720 | PR gdb/11327, PR gdb/11328, PR breakpoints/11368: | |
6721 | * infrun.c (handle_inferior_event): Change initialization of | |
6722 | stop_stack_dummy. | |
6723 | (handle_inferior_event): Change assignment to stop_stack_dummy. | |
6724 | (normal_stop): Update use of stop_stack_dummy. | |
6725 | (struct inferior_status) <stop_stack_dummy>: Change type. | |
6726 | * inferior.h (stop_stack_dummy): Update. | |
6727 | * infcmd.c (stop_stack_dummy): Change type. | |
6728 | * infcall.c (cleanup_delete_std_terminate_breakpoint): New | |
6729 | function. | |
6730 | (call_function_by_hand): Call set_std_terminate_breakpoint. | |
6731 | Rewrite std::terminate handling. | |
6732 | * breakpoint.h (enum bptype) <bp_std_terminate, | |
6733 | bp_std_terminate_master>: New. | |
6734 | (enum stop_stack_kind): New. | |
6735 | (struct bpstat_what) <call_dummy>: Change type. | |
6736 | (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): | |
6737 | Declare. | |
6738 | * breakpoint.c (create_std_terminate_master_breakpoint): New | |
6739 | function. | |
6740 | (update_breakpoints_after_exec): Handle bp_std_terminate_master. | |
6741 | Call create_std_terminate_master_breakpoint. | |
6742 | (print_it_typical): Handle new breakpoint kinds. | |
6743 | (bpstat_stop_status): Handle bp_std_terminate_master. | |
6744 | (bpstat_what): Correctly set call_dummy field. Handle | |
6745 | bp_std_terminate_master and bp_std_terminate. | |
6746 | (print_one_breakpoint_location): Update. | |
6747 | (allocate_bp_location): Update. | |
6748 | (set_std_terminate_breakpoint): New function. | |
6749 | (delete_std_terminate_breakpoint): Likewise. | |
6750 | (create_thread_event_breakpoint): Update. | |
6751 | (delete_command): Update. | |
6752 | (breakpoint_re_set_one): Update. | |
6753 | (breakpoint_re_set): Call create_std_terminate_master_breakpoint. | |
6754 | ||
82ccf5a5 JK |
6755 | 2010-03-25 Jan Kratochvil <[email protected]> |
6756 | ||
6757 | * symfile.c (build_section_addr_info_from_bfd): New. | |
6758 | (build_section_addr_info_from_objfile): Base it on | |
6759 | build_section_addr_info_from_bfd. | |
6760 | (addrs_section_compar, addrs_section_sort): New. | |
6761 | (addr_info_make_relative): New variables my_cleanup, abfd_addrs, | |
6762 | addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build | |
6763 | addrs_to_abfd_addrs. Use it for recalculating ADDRS. | |
6764 | ||
737c4c52 MS |
6765 | 2010-03-24 Michael Snyder <[email protected]> |
6766 | ||
8d95cc3b | 6767 | * elfread.c (find_separate_debug_file_by_buildid): |
737c4c52 MS |
6768 | Remove unused local variable. |
6769 | ||
95a42b64 TT |
6770 | 2010-03-24 Tom Tromey <[email protected]> |
6771 | ||
6772 | PR breakpoints/9352: | |
6773 | * NEWS: Mention changes to `commands' and `rbreak'. | |
6774 | * symtab.c (do_end_rbreak_breakpoints): New function. | |
6775 | (rbreak_command): Call start_rbreak_breakpoints; arrange to call | |
6776 | end_rbreak_breakpoints. | |
6777 | * breakpoint.c (breakpoint_count, tracepoint_count): Now static. | |
6778 | (set_breakpoint_count): Likewise. Clear last_was_multi. | |
6779 | (multi_start, multi_end, last_was_multi): New globals. | |
6780 | (start_rbreak_breakpoints, end_rbreak_breakpoints): New | |
6781 | functions. | |
6782 | (struct commands_info): New | |
6783 | (do_map_commands_command): New function. | |
6784 | (commands_command_1): New function. | |
6785 | (commands_command): Use it. | |
6786 | (commands_from_control_command): Likewise. | |
6787 | (do_delete_breakpoint): New function. | |
6788 | (delete_command): Use it. | |
6789 | (map_breakpoint_numbers): Add 'data' argument. Pass to callback. | |
6790 | (do_map_disable_breakpoint): New function. | |
6791 | (disable_command): Use it. | |
6792 | (do_map_enable_breakpoint): New function. | |
6793 | (enable_command): Use it. | |
6794 | (enable_once_breakpoint): Add argument. | |
6795 | (enable_once_command): Update. | |
6796 | (enable_delete_breakpoint): Add argument. | |
6797 | (enable_delete_command): Update. | |
6798 | (break_command_really): Set last_was_multi when needed. | |
6799 | (check_tracepoint_command): Fix formatting. | |
6800 | (validate_commands_for_breakpoint): New function. | |
6801 | (breakpoint_set_commands): Use it. | |
6802 | (tracepoint_save_command): Update. | |
6803 | * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints): | |
6804 | Declare. | |
6805 | ||
9add0f1b TT |
6806 | 2010-03-24 Tom Tromey <[email protected]> |
6807 | ||
6808 | * breakpoint.h (struct counted_command_line): New struct. | |
6809 | (struct breakpoint) <commands>: Change type. | |
6810 | (struct bpstats) <commands>: Change type. | |
6811 | <commands_left>: New field. | |
6812 | * breakpoint.c (alloc_counted_command_line): New function. | |
6813 | (incref_counted_command_line): Likewise. | |
6814 | (decref_counted_command_line): Likewise. | |
6815 | (do_cleanup_counted_command_line): Likewise. | |
6816 | (make_cleanup_decref_counted_command_line): Likewise. | |
6817 | (breakpoint_set_commands): Use decref_counted_command_line and | |
6818 | alloc_counted_command_line. | |
6819 | (commands_command): Don't error if breakpoint commands are | |
6820 | executing. | |
6821 | (commands_from_control_command): Likewise. | |
6822 | (bpstat_free): Update. | |
6823 | (bpstat_copy): Likewise. | |
6824 | (bpstat_clear_actions): Likewise. | |
6825 | (bpstat_do_actions_1): Likewise. | |
6826 | (bpstat_stop_status): Likewise. | |
6827 | (print_one_breakpoint_location): Likewise. | |
6828 | (delete_breakpoint): Likewise. | |
6829 | (bpstat_alloc): Initialize new field. | |
6830 | (tracepoint_save_command): Update. | |
6831 | * tracepoint.c (encode_actions): Update. | |
6832 | (trace_dump_command): Update. | |
6833 | ||
a6c727b2 DJ |
6834 | 2010-03-24 Daniel Jacobowitz <[email protected]> |
6835 | ||
6836 | * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview. | |
6837 | * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer. | |
6838 | (read_structure_type): For RealView, set TYPE_STUB on structures with | |
6839 | no byte size and no children. | |
6840 | (read_subroutine_type): Mark functions as prototyped by default. | |
6841 | * symtab.c (producer_is_realview): New function. | |
6842 | * symtab.h (expand_line_sal): Fix declaration formatting. | |
6843 | (producer_is_realview): Declare. | |
6844 | ||
0d39a070 DJ |
6845 | 2010-03-24 Daniel Jacobowitz <[email protected]> |
6846 | ||
6847 | * arm-tdep.c (skip_prologue_function): New function. | |
6848 | (submask, bit, bits, sbits, BranchDest): Move higher in the file. | |
6849 | (thumb_analyze_prologue): Document return value. Recognize more | |
6850 | Thumb instructions, skippable calls, and some Thumb-2 instructions. | |
6851 | Add debug output. | |
6852 | (arm_skip_prologue): Remove call dummy check. Check the prologue | |
6853 | for non-GNU compilers. | |
6854 | (arm_instruction_changes_pc): New function. | |
6855 | (arm_analyze_prologue): New function, broken out from | |
6856 | arm_scan_prologue. Recognize more ARM instructions and skippable | |
6857 | calls. Update comments. Handle NULL cache. Return the address | |
6858 | of the first unrecognized instruction. Do not skip past other | |
6859 | instructions which change control flow. Add debug output. | |
6860 | (arm_scan_prologue): Use arm_analyze_prologue. | |
6861 | (ARM_PC_32): Delete. | |
6862 | (shifted_reg_val): Simplify ARM_PC_32 check. | |
6863 | ||
4baf5cf4 VP |
6864 | 2010-03-24 Vladimir Prus <[email protected]> |
6865 | ||
6866 | * tracepoint.c (tvariables_info_1): Actually compute | |
6867 | the number of rows in the result. | |
6868 | ||
4a5e7a5b PA |
6869 | 2010-03-24 Pedro Alves <[email protected]> |
6870 | ||
6871 | * remote.c (crc32): Constify `buf' parameter. | |
6872 | (remote_verify_memory): New, abstracted out from... | |
6873 | (compare_sections_command): ... this. Remove hardcoded target | |
6874 | checks. | |
6875 | (init_remote_ops): Install remote_verify_memory. | |
6876 | * target.c (target_verify_memory): New. | |
6877 | * target.h (struct target_ops) <to_verify_memory>: New field. | |
6878 | (target_verify_memory): Declare. | |
6879 | ||
011aacb0 VP |
6880 | 2010-03-24 Vladimir Prus <[email protected]> |
6881 | ||
6882 | Implement -trace-save. | |
6883 | ||
6884 | * mi-cmds.h (mi_cmds_trace_save): Declare. | |
6885 | * mi-cmds.c (mi_cmds): Register -trace-save. | |
6886 | * mi/mi-main.c (mi_cmd_trace_save): New. | |
6887 | * remote.c (remote_save_trace_data): Take const parameter. | |
6888 | * target.h (struct target_ops::to_save_trace_data): Take | |
6889 | const parameter. | |
6890 | * target.c (update_current_target): Adjust to the above. | |
6891 | * tracepoint.c (trave_save): New, extracted from | |
6892 | (trace_save_command): ...this. | |
6893 | (tfile_trace_find): Remove message that is unnecessary now | |
6894 | that 'tfind' reports found frame. | |
6895 | * tracepoint.h (trace_save): Declare. | |
6896 | ||
f197e0f1 VP |
6897 | 2010-03-24 Vladimir Prus <[email protected]> |
6898 | ||
6899 | Implement -trace-find. | |
6900 | ||
6901 | * mi/mi-cmds.c (mi_cmds): Register -trace-find. | |
6902 | * mi/mi-cmds.h (mi_cmd_trace_find): Declare. | |
6903 | * mi/mi-main.c (mi_cmd_trace_find): New. | |
6904 | * target.h (struct target_ops): Document to_trace_find. | |
6905 | * tracepoint.h (tfind_1): Declare. | |
6906 | * tracepoint.c (finish_tfind_command): Rename to... | |
6907 | (tfind_1): ...this. | |
6908 | * remote.c (remote_trace_find): Return -1 if target say | |
6909 | there's no frame. Improve error diagnostics. | |
6910 | ||
40e1c229 VP |
6911 | 2010-03-24 Vladimir Prus <[email protected]> |
6912 | ||
6913 | -trace-define-variable and -trace-list-variables. | |
6914 | ||
6915 | * tracepoint.c (create_trace_state_variable): Make | |
6916 | private copy of name, as opposed to assuming the | |
6917 | pointer lives forever. | |
6918 | (tvariables_info_1): New. | |
6919 | (tvariables_info): Use the above. | |
6920 | * tracepoint.h (create_trace_state_variable, tvariables_info_1): | |
6921 | Declare. | |
6922 | * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable | |
6923 | and -trace-list-variables. | |
6924 | * mi/mi-cmds.h (mi_cmd_trace_define_variable) | |
6925 | (mi_cmd_trace_list_variables): New. | |
6926 | * mi/mi-main.c (mi_cmd_trace_define_variable) | |
6927 | (mi_cmd_trace_list_variables): New. | |
6928 | ||
9b4c786c VP |
6929 | 2010-03-24 Vladimir Prus <[email protected]> |
6930 | ||
6931 | Implement -break-passcount. | |
6932 | ||
6933 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): New. | |
6934 | * mi/mi-cmds.c (mi_cmds): Register -break-passcount. | |
6935 | * mi/mi-cmds.h (mi_cmd_break_passcount): Declare. | |
6936 | ||
f224b49d VP |
6937 | 2010-03-24 Vladimir Prus <[email protected]> |
6938 | ||
6939 | -trace-start/-trace-end/-trace-status. | |
6940 | ||
6941 | * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status | |
6942 | and -trace-stop. | |
6943 | * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) | |
6944 | (mi_cmd_trace_stop): Declare. | |
6945 | * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) | |
6946 | (mi_cmd_trace_stop): New. | |
6947 | * tracepoint.c (start_tracing): New, extracted from... | |
6948 | (trace_start_command): ...this. | |
6949 | (trace_status_mi): New. | |
6950 | * tracepoint.h (struct trace_status): Document | |
6951 | stopping_tracepoint. | |
6952 | (start_tracing, stop_tracing, trace_status_mi): Declare. | |
6953 | ||
6534d786 VP |
6954 | 2010-03-24 Vladimir Prus <[email protected]> |
6955 | ||
6956 | Implement creating tracepoints with -break-insert. | |
6957 | ||
6958 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a | |
6959 | to mean that tracepoint should be created. | |
6960 | ||
51661e93 VP |
6961 | 2010-03-24 Vladimir Prus <[email protected]> |
6962 | ||
6963 | * breakpoint.c (check_no_tracepoint_commands): Use | |
6964 | current spelling of 'teval'. | |
6965 | ||
a7bdde9e VP |
6966 | 2010-03-24 Vladimir Prus <[email protected]> |
6967 | ||
6968 | Unify actions and commands | |
6969 | ||
6970 | * defs.h (read_command_lines, read_command_lines_1): New | |
6971 | parameters validator and closure. | |
6972 | * tracepoint.h (struct action_line): Remove. | |
6973 | * breakpoint.h (struct breakpoint): Remove the 'actions' | |
6974 | field. | |
6975 | * defs.h (enum command_control_type): New value | |
6976 | while_stepping_control. | |
6977 | (struct command_line): Add comments. | |
6978 | * breakpoint.c (breakoint_is_tracepoint): New. | |
6979 | (breakpoint_set_commands): For tracepoints, | |
6980 | verify the commands are permissible. | |
6981 | (check_tracepoint_commands): New. | |
6982 | (commands_command): Require that each new line is validated using | |
6983 | check_tracepoint_command, if we set commands for a tracepoint. | |
6984 | (create_tracepoint_from_upload): Likewise. | |
6985 | (print_one_breakpoint_location): Remove the code to print | |
6986 | actions specifically. | |
6987 | (tracepoint_save_command): Relay to print_command_lines. | |
6988 | * cli/cli-script.c (process_next_line): New parameters validator | |
6989 | and closure. Handle 'while-stepping'. Call validator if not null. | |
6990 | (read_command_lines, read_command_lines1): Likewise. | |
6991 | (recurse_read_control_structure): New parameters validator and | |
6992 | closure. Handle while_stepping_control. | |
6993 | (print_command_lines): Handle while-stepping. | |
6994 | (get_command_line, define_command, document_command): Adjust. | |
6995 | * remote.c (remote_download_tracepoint): Adjust. | |
6996 | * tracepoint.c (make_cleanup_free_actions, read_actions) | |
6997 | (free_actions, do_free_actions_cleanup): Remove. | |
6998 | (trace_actions_command): Use read_command_lines. | |
6999 | (validate_actionline): Use error in one place. | |
7000 | (encode_actions_1): New, extracted from... | |
7001 | (encode_actions): ...this. Also use cleanups for exception | |
7002 | safety. | |
7003 | (trace_dump_command): Adjust. | |
7004 | * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if | |
7005 | it's tracepoint. | |
7006 | ||
64e3cf3d MF |
7007 | 2010-03-23 Mike Frysinger <[email protected]> |
7008 | ||
7009 | * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/.. | |
7010 | ||
52e9fde8 SS |
7011 | 2010-03-22 Stan Shebs <[email protected]> |
7012 | ||
7013 | * value.c (value_static_field): Be lazy about the field's value. | |
7014 | ||
508ccb1f TT |
7015 | 2010-03-22 Reid Kleckner <[email protected]> |
7016 | ||
7017 | PR gdb/11094 | |
7018 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add | |
7019 | bp_jit_event. | |
7020 | (disable_breakpoints_in_shlibs): Likewise. | |
7021 | ||
acebe513 UW |
7022 | 2010-03-22 Ulrich Weigand <[email protected]> |
7023 | ||
7024 | * dwarf2read.c (partial_die_parent_scope): Work around buggy | |
7025 | GCC 4.1 debug info generation (GCC PR c++/28460). | |
7026 | (determine_prefix): Likewise. | |
7027 | ||
957b8b5a DJ |
7028 | 2010-03-20 Daniel Jacobowitz <[email protected]> |
7029 | ||
7030 | * tui/tui-disasm.c (tui_get_begin_asm_address): Default to | |
7031 | get_current_arch. | |
7032 | * tui/tui-layout.c (extract_display_start_addr): Likewise. | |
7033 | ||
3b11a015 SS |
7034 | 2010-03-19 Stan Shebs <[email protected]> |
7035 | ||
7036 | * ax-gdb.c (gen_fetch): Handle bool. | |
7037 | (gen_usual_unary): Ditto. | |
7038 | (gen_cast): Ditto. | |
7039 | (gen_equal): New function. | |
7040 | (gen_less): New function. | |
7041 | (gen_expr_binop_rest): Call them, also return integer type from | |
7042 | logical operations. | |
7043 | (gen_expr): Ditto. | |
7044 | ||
20781792 TT |
7045 | 2010-03-19 Tom Tromey <[email protected]> |
7046 | ||
7047 | * jv-lang.c (jv_dynamics_objfile_data_key) | |
7048 | (jv_type_objfile_data_key): New globals. | |
7049 | (class_symtab): Move earlier. | |
7050 | (jv_per_objfile_free): New function. | |
7051 | (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch' | |
7052 | parameter. | |
7053 | Remove ancient #if 1. | |
7054 | (add_class_symbol): Remove redundant declaration. | |
7055 | (java_lookup_class): Use alloc_type, not alloc_type_arch. | |
7056 | (java_link_class_type): Mark as static. Update. | |
7057 | (jv_clear_object_type): New function. | |
7058 | (set_java_object_type): Likewise. | |
7059 | (get_java_object_type): Use set_java_object_type. | |
7060 | (is_object_type): Likewise. | |
7061 | (_initialize_java_language): Register new objfile keys. | |
7062 | (get_java_class_symtab): Add 'gdbarch' parameter. | |
7063 | (add_class_symtab_symbol): Update. | |
7064 | (type_from_class): Update. | |
7065 | ||
cf3e25ca SS |
7066 | 2010-03-19 Stan Shebs <[email protected]> |
7067 | ||
8d95cc3b | 7068 | * ax-general.c (ax_const_l): Fix a sizing bug. |
cf3e25ca | 7069 | |
f1ae44c9 | 7070 | 2010-03-18 Joel Brobecker <[email protected]> |
7071 | ||
7072 | GDB 7.1 released. | |
7073 | ||
4daf5ac0 SS |
7074 | 2010-03-18 Stan Shebs <[email protected]> |
7075 | Pedro Alves <[email protected]> | |
7076 | ||
7077 | * target.h (struct target_ops): New method | |
7078 | to_set_circular_trace_buffer. | |
7079 | (target_set_circular_trace_buffer): New macro. | |
7080 | * target.c (update_current_target): Add | |
7081 | to_set_circular_trace_buffer, fix to_set_disconnected_tracing | |
7082 | default behavior. | |
7083 | * remote.c (remote_set_circular_trace_buffer): New function. | |
7084 | (init_remote_ops): Add it to vector. | |
7085 | * tracepoint.h (struct trace_status): New field traceframes_created, | |
7086 | change buffer_size and buffer_free to int. | |
7087 | * tracepoint.c (circular_trace_buffer): New global. | |
7088 | (start_tracing): Send values of disconnected tracing and circular | |
7089 | trace buffer settings. | |
7090 | (set_circular_trace_buffer): New function. | |
7091 | (parse_trace_state): Handle total space and frames created. | |
7092 | (trace_status_command): Display total space and total frames | |
7093 | created. | |
7094 | (trace_save): Write out new status values. | |
7095 | (parse_trace_status): Set traceframe_count, traceframes_created, | |
7096 | buffer_free and buffer_size to -1 by default. | |
7097 | (_initialize_tracepoint): New setshow for circular-trace-buffer. | |
7098 | * NEWS: Mention the circular trace buffer option. | |
7099 | ||
40c549d6 TT |
7100 | 2010-03-18 Tom Tromey <[email protected]> |
7101 | ||
7102 | * infcmd.c (finish_command_continuation): Wrap print_return_value | |
7103 | in TRY_CATCH. | |
7104 | ||
e8d05480 JB |
7105 | 2010-03-18 Joel Brobecker <[email protected]> |
7106 | ||
7107 | * dwarf2read.c (add_partial_subprogram): Make sure the subprogram | |
7108 | DIE has a name before creating the associated partial symbol. | |
7109 | (read_func_scope): Emit a complaint if the subprogram does not | |
7110 | have a name or when we can't extract the subprogram PC bounds. | |
7111 | ||
441b986a UW |
7112 | 2010-03-18 Ulrich Weigand <[email protected]> |
7113 | ||
7114 | * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch | |
7115 | instead of selected frame architecture. | |
7116 | ||
4247603b PA |
7117 | 2010-03-18 Pedro Alves <[email protected]> |
7118 | ||
7119 | * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's | |
7120 | a valid selected thread, and that it is not running. | |
7121 | (advance_command): Ditto. | |
7122 | (finish_command): Ditto. | |
7123 | ||
400c6af0 SS |
7124 | 2010-03-17 Stan Shebs <[email protected]> |
7125 | ||
3a96536b SS |
7126 | * ax-gdb.c (require_rvalue): Disallow non-scalars. |
7127 | ||
573cda03 SS |
7128 | * infcall.c: Include tracepoint.h. |
7129 | (call_function_by_hand): Disallow calls in tfind mode. | |
7130 | * infcmd.c: Include tracepoint.h. | |
7131 | (ensure_not_tfind_mode): New function. | |
7132 | (continue_1): Call it. | |
7133 | (step_1) Ditto. | |
7134 | (jump_command): Ditto. | |
7135 | (signal_command): Ditto. | |
7136 | (advance_command): Ditto. | |
7137 | (until_command): Ditto. | |
7138 | (finish_command): Ditto. | |
7139 | * tracepoint.h (disconnect_or_stop_tracing): Declare. | |
7140 | ||
400c6af0 SS |
7141 | * ax-gdb.h (struct axs_value): New field optimized_out. |
7142 | (gen_trace_for_var): Add gdbarch argument. | |
7143 | * ax-gdb.c (gen_trace_static_fields): New function. | |
7144 | (gen_traced_pop): Call it, add gdbarch argument. | |
7145 | (gen_trace_for_expr): Update call to it. | |
7146 | (gen_trace_for_var): Ditto, and report optimized-out variables. | |
7147 | (gen_struct_ref_recursive): Check for optimized-out value. | |
7148 | (gen_struct_elt_for_reference): Ditto. | |
7149 | (gen_static_field): Pass gdbarch instead of expression, assume | |
7150 | optimization if field not found. | |
7151 | (gen_var_ref): Set the optimized_out flag. | |
7152 | (gen_expr): Error on optimized-out variable. | |
7153 | * tracepoint.c (collect_symbol): Handle struct-valued vars as | |
7154 | expressions, skip optimized-out variables with computed locations. | |
7155 | * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of | |
7156 | erroring out if location expression missing. | |
7157 | (loclist_tracepoint_var_ref): Don't error out here. | |
7158 | ||
a3b2a86b TT |
7159 | 2010-03-17 Tom Tromey <[email protected]> |
7160 | ||
7161 | * dwarf2read.c (dwarf2_get_section_info): Handle case where no | |
7162 | DWARF data is available. | |
7163 | ||
38963c97 DJ |
7164 | 2010-03-17 Daniel Jacobowitz <[email protected]> |
7165 | ||
7166 | * symfile.c (generic_load): Reset breakpoints after loading. | |
7167 | ||
ddabfc73 TT |
7168 | 2010-03-17 Tom Tromey <[email protected]> |
7169 | ||
7170 | * linux-nat.c (linux_nat_detach): Check debug_linux_nat. | |
7171 | ||
d8c09fb5 JK |
7172 | 2010-03-17 Jan Kratochvil <[email protected]> |
7173 | ||
7174 | * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the | |
7175 | create_breakpoint call, adjust the parameters. | |
7176 | ||
bbb0eef6 JK |
7177 | 2010-03-16 Jan Kratochvil <[email protected]> |
7178 | Chandru <[email protected]> | |
7179 | ||
7180 | * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. | |
7181 | * valarith.c (value_subscripted_rvalue): Suppress error if | |
7182 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
7183 | ||
46956e39 HZ |
7184 | 2010-03-16 Holger Hans Peter Freyther <[email protected]> |
7185 | ||
7186 | * linux-record.c (record_linux_msghdr): Remove unintended semicolons. | |
7187 | ||
b8d088ac JB |
7188 | 2010-03-16 Joel Brobecker <[email protected]> |
7189 | ||
7190 | * ada-tasks.c (task_command_1): Check that the task ptid is valid | |
7191 | before doing the associated thread switch. | |
7192 | ||
322be962 DJ |
7193 | 2010-03-16 Daniel Jacobowitz <[email protected]> |
7194 | ||
7195 | * MAINTAINERS: Update my email address. | |
7196 | ||
8cdf0e15 VP |
7197 | 2010-03-16 Vladimir Prus <[email protected]> |
7198 | ||
7199 | Simplify MI breakpoint setting. | |
7200 | ||
7201 | * breakpoint.c (break_command_really): Make nonstatic and | |
7202 | rename to... | |
7203 | (create_breakpoint): ...this. Rename prior function by this name | |
7204 | to... | |
7205 | (create_breakpoint_sal): ...this. | |
7206 | (create_breakpoints): Rename to... | |
7207 | (create_breakpoints_sal): ...this. | |
7208 | (set_breakpoint): Remove. | |
7209 | * breakpoint.h: Adjust to above changes. | |
7210 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify. | |
7211 | ||
b6e7192f SS |
7212 | 2010-03-15 Stan Shebs <[email protected]> |
7213 | ||
7214 | * ax-gdb.c: Include cp-support.h. | |
7215 | (find_field): Remove. | |
7216 | (gen_primitive_field): New function. | |
7217 | (gen_struct_ref_recursive): New function. | |
7218 | (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead | |
7219 | of find_field. | |
7220 | (gen_static_field): New function. | |
7221 | (gen_struct_elt_for_reference): New. | |
7222 | (gen_namespace_elt): New. | |
7223 | (gen_maybe_namespace_elt): New. | |
7224 | (gen_aggregate_elt_ref): New. | |
7225 | (gen_expr): Add OP_SCOPE, display opcode name in error message. | |
7226 | ||
1054b214 TT |
7227 | 2010-03-15 Tom Tromey <[email protected]> |
7228 | ||
7229 | * dwarf2read.c (die_needs_namespace): Also return 0 for | |
7230 | DW_TAG_subprogram. | |
7231 | ||
13387711 SW |
7232 | 2010-03-15 Sami Wagiaalla <[email protected]> |
7233 | ||
7234 | PR c++/7936: | |
7235 | * cp-support.h: Added char *declaration element to using_direct | |
7236 | data struct. | |
7237 | (cp_add_using): Added char *declaration argument. | |
7238 | (cp_add_using_directive): Ditto. | |
7239 | (cp_lookup_symbol_imports): made extern. | |
7240 | * cp-namespace.c: Updated with the above changes. | |
7241 | * dwarf2read.c (read_import_statement): Ditto. | |
7242 | (read_namespace): Ditto. | |
7243 | (read_import_statement): Support import declarations. | |
7244 | * cp-namespace.c (cp_lookup_symbol_imports): Check for imported | |
7245 | declarations. | |
7246 | Added support for 'declaration_only' search. | |
7247 | (cp_lookup_symbol_namespace): Attempt to search for the name as | |
7248 | is before consideration of imports. | |
7249 | * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' | |
7250 | search at every block level search. | |
7251 | Now takes language argument. | |
7252 | (lookup_symbol_aux): Updated. | |
7253 | ||
6e31430b TT |
7254 | 2010-03-15 Tom Tromey <[email protected]> |
7255 | ||
7256 | * c-exp.y (name_not_typename): Add 'operator' clause. | |
7257 | ||
4dea3bb7 | 7258 | 2010-03-15 Ralf Corsepius <[email protected]> (tiny change) |
bf307134 JB |
7259 | |
7260 | * configure.ac: Exit if ${gdb_target_obs}" is not set. | |
7261 | * configure: Regenerate. | |
7262 | ||
4d9743af JK |
7263 | 2010-03-15 Jan Kratochvil <[email protected]> |
7264 | ||
7265 | * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" | |
7266 | and ".sdynbss". Update the comment. | |
7267 | ||
f75150fe JZ |
7268 | 2010-03-15 Jie Zhang <[email protected]> |
7269 | ||
7270 | * MAINTAINERS: Update my email address. | |
7271 | ||
3c13bc11 DJ |
7272 | 2010-03-14 Daniel Jacobowitz <[email protected]> |
7273 | ||
7274 | * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. | |
7275 | ||
43484f03 DJ |
7276 | 2010-03-14 Daniel Jacobowitz <[email protected]> |
7277 | ||
7278 | * charset.c [USE_WIN32API]: Include <windows.h>. | |
7279 | (_initialize_charset): Correct type of w32_host_default_charset. | |
7280 | ||
5f25d77d PA |
7281 | 2010-03-14 Pedro Alves <[email protected]> |
7282 | ||
7283 | * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. | |
7284 | ||
1c809c68 TT |
7285 | 2010-03-12 Tom Tromey <[email protected]> |
7286 | ||
7287 | PR c++/9708: | |
7288 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable | |
7289 | in a lexical block does not need a namespace. | |
7290 | (new_symbol) <DW_TAG_variable>: Put extern variables on | |
7291 | list_in_scope in all cases. | |
7292 | ||
948103cf SS |
7293 | 2010-03-12 Stan Shebs <[email protected]> |
7294 | ||
7295 | * ax-gdb.c (gen_expr): Add shift expressions. | |
7296 | (gen_expr_binop_rest): Ditto. | |
7297 | ||
00ae8fef SW |
7298 | 2010-03-12 Sami Wagiaalla <[email protected]> |
7299 | ||
7300 | * buildsym.c (finish_block): Reset using_directives pointer | |
7301 | after block initialization. | |
7302 | ||
9cad29ac L |
7303 | 2010-03-12 H.J. Lu <[email protected]> |
7304 | ||
7305 | * amd64-tdep.c (amd64_word_names): Replace "sp" with "". | |
7306 | * i386-tdep.c (i386_word_names): Likewise. | |
7307 | ||
2f4d8875 PA |
7308 | 2010-03-12 Pedro Alves <[email protected]> |
7309 | ||
7310 | * target.c (memory_xfer_partial): Don't use the stack cache if | |
7311 | inspecting trace frames. | |
7312 | * tracepoint.c (finish_tfind_command): Invalidate the target | |
7313 | dcache. | |
7314 | ||
ccf26247 JK |
7315 | 2010-03-11 Jan Kratochvil <[email protected]> |
7316 | ||
7317 | * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered | |
7318 | for the PIC displacement, print also the displacement value. | |
7319 | (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. | |
7320 | ||
477c84a7 KB |
7321 | 2010-03-10 Kevin Buettner <[email protected]> |
7322 | ||
7323 | * remote-mips.c (close_ports, mips_initialize_cleanups) | |
7324 | (mips_exit_cleanups, mips_send_command, mips_open, pmon_open) | |
7325 | (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint) | |
7326 | (mips_stopped_by_watchpoint, send_srec, pmon_checkset) | |
7327 | (pmon_make_fastrec, pmon_check_ack, mips_expect_download) | |
7328 | (pmon_check_entry_address, pmon_check_total, pmon_end_download) | |
7329 | (pmon_download, pmon_load_fast, _initialize_remote_mips): Add | |
7330 | comments describing each of these functions. | |
7331 | (mips_enter_debug, mips_exit_debug, common_open) | |
7332 | (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add | |
7333 | blank line after the comment describing the function. | |
7334 | ||
01c30d6e JK |
7335 | 2010-03-10 Jan Kratochvil <[email protected]> |
7336 | ||
7337 | * solib-svr4.c (svr4_exec_displacement): Return now success, new | |
7338 | parameter displacementp. Update comment. | |
7339 | (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS | |
7340 | element exists. Return if svr4_exec_displacement was not successful. | |
7341 | Update comment. | |
7342 | ||
09919ac2 JK |
7343 | 2010-03-10 Jan Kratochvil <[email protected]> |
7344 | Daniel Jacobowitz <[email protected]> | |
7345 | ||
7346 | * solib-svr4.c (read_program_header): Support type == -1 to read | |
7347 | all program headers. | |
7348 | (read_program_headers_from_bfd): New function. | |
7349 | (svr4_static_exec_displacement): Remove and move the comment ... | |
7350 | (svr4_exec_displacement): ... here. Remove variable found. New | |
7351 | variable displacement. Check also DYNAMIC. Verify DISPLACEMENT | |
7352 | alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF | |
7353 | targets using read_program_headers_from_bfd. Remove the call of | |
7354 | svr4_static_exec_displacement. | |
7355 | ||
d146bf1e TT |
7356 | 2010-03-10 Tom Tromey <[email protected]> |
7357 | ||
7358 | * dwarf2read.c (struct pubnames_header): Remove. | |
7359 | (_PUBNAMES_HEADER): Remove. | |
7360 | (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove. | |
7361 | (struct aranges_header): Remove. | |
7362 | (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove. | |
7363 | (struct dwarf2_per_objfile) <pubnames, aranges>: Remove. | |
7364 | (PUBNAMES_SECTION): Remove. | |
7365 | (ARANGES_SECTION): Remove. | |
7366 | (dwarf2_locate_sections): Don't handle pubnames or aranges. | |
7367 | (dwarf2_build_psymtabs): Remove dead code. | |
7368 | (dwarf2_build_psymtabs_easy): Remove. | |
7369 | ||
be391dca TT |
7370 | 2010-03-10 Tom Tromey <[email protected]> |
7371 | ||
7372 | * elfread.c (elf_symfile_read): Don't call | |
7373 | dwarf2_build_frame_info. | |
7374 | * dwarf2read.c (struct dwarf2_section_info) <readin>: New field. | |
7375 | (struct dwarf2_per_objfile) <objfile>: New field. | |
7376 | (dwarf2_has_info): Now idempotent. Set objfile field. | |
7377 | (dwarf2_read_section): Check and set readin field. Call | |
7378 | posix_madvise. | |
7379 | (dwarf2_build_psymtabs): Don't read all sections. | |
7380 | (read_type_comp_unit_head): Read types section. | |
7381 | (create_debug_types_hash_table): Likewise. | |
7382 | (init_cu_die_reader): Add asserts. | |
7383 | (process_type_comp_unit): Add assert. | |
7384 | (dwarf2_build_psymtabs_hard): Read info section. | |
7385 | (load_partial_comp_unit): Add assert. | |
7386 | (create_all_comp_units): Read info section. | |
7387 | (load_full_comp_unit): Likewise. | |
7388 | (dwarf2_ranges_read): Read ranges section. | |
7389 | (dwarf2_record_block_ranges): Add assert. | |
7390 | (dwarf2_read_abbrevs): Read abbrev section. | |
7391 | (read_indirect_string): Read str section. | |
7392 | (dwarf_decode_line_header): Read line section. | |
7393 | (read_signatured_type_at_offset): Read types section. | |
7394 | (dwarf_decode_macros): Read macinfo section. | |
7395 | (dwarf2_symbol_mark_computed): Read loc section. | |
7396 | * dwarf2-frame.c (dwarf2_frame_find_fde): Call | |
7397 | dwarf2_build_frame_info. | |
7398 | (dwarf2_build_frame_info): Unconditionally set | |
7399 | dwarf2_frame_objfile_data on the objfile. | |
7400 | * configure.ac: Check for posix_madvise. | |
7401 | * config.in, configure: Rebuild. | |
7402 | ||
ccefe4c4 TT |
7403 | 2010-03-10 Tom Tromey <[email protected]> |
7404 | ||
e38df1d0 TT |
7405 | * xcoffread.c (xcoff_start_psymtab): Update. |
7406 | (xcoff_end_psymtab): Update. | |
7407 | * psymtab.c (allocate_psymtab): Remove dead code. | |
7408 | * psympriv.h (struct partial_symtab) <read_symtab_private>: Now | |
7409 | void*. | |
7410 | * mdebugread.c (parse_partial_symbols): Update. | |
7411 | (new_psymtab): Likewise. | |
7412 | * dwarf2read.c (process_psymtab_comp_unit): Update. | |
7413 | (psymtab_to_symtab_1): Update. | |
7414 | * dbxread.c (start_psymtab): Update. | |
7415 | (end_psymtab): Likewise. | |
7416 | ||
be391dca | 7417 | 2010-03-10 Tom Tromey <[email protected]> |
e38df1d0 | 7418 | |
ccefe4c4 TT |
7419 | * xcoffread.c: Include psymtab.h. |
7420 | (xcoff_sym_fns): Update. | |
7421 | * symtab.h (struct partial_symbol): Remove. | |
7422 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove. | |
7423 | (struct partial_symtab): Remove. | |
7424 | (PSYMTAB_TO_SYMTAB): Remove. | |
7425 | (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab) | |
7426 | (find_pc_sect_psymtab): Remove. | |
7427 | (find_pc_sect_symtab_via_partial): Declare. | |
7428 | (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab) | |
7429 | (find_main_psymtab): Remove. | |
7430 | (find_main_filename): Declare. | |
7431 | (fixup_psymbol_section): Remove. | |
7432 | (fixup_section): Declare. | |
7433 | * symtab.c: Include psymtab.h. | |
7434 | (lookup_symtab): Use lookup_symtab method. | |
7435 | (lookup_partial_symtab): Remove. | |
7436 | (find_pc_sect_psymtab_closer): Remove. | |
7437 | (find_pc_sect_psymtab): Remove. | |
7438 | (find_pc_sect_symtab_via_partial): New function. | |
7439 | (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove. | |
7440 | (fixup_section): No longer static. | |
7441 | (fixup_psymbol_section): Remove. | |
7442 | (lookup_symbol_aux): Use lookup_symbol_aux_quick. | |
7443 | (lookup_global_symbol_from_objfile): Likewise. | |
7444 | (lookup_symbol_aux_psymtabs): Remove. | |
7445 | (lookup_symbol_aux_quick): New function. | |
7446 | (lookup_symbol_global): Use lookup_symbol_aux_quick. | |
7447 | (lookup_partial_symbol): Remove. | |
7448 | (basic_lookup_transparent_type_quick): New function. | |
7449 | (basic_lookup_transparent_type): Use it. | |
7450 | (find_main_psymtab): Remove. | |
7451 | (find_main_filename): New function. | |
7452 | (find_pc_sect_symtab): Use find_pc_sect_symtab method. | |
7453 | (find_line_symtab): Use expand_symtabs_with_filename method. | |
7454 | (output_partial_symbol_filename): New function. | |
7455 | (sources_info): Use map_partial_symbol_filenames. | |
7456 | (struct search_symbols_data): New type. | |
7457 | (search_symbols_file_matches): New function. | |
7458 | (search_symbols_name_matches): Likewise. | |
7459 | (search_symbols): Use expand_symtabs_matching method. | |
7460 | (struct add_name_data): Rename from add_macro_name_data. | |
7461 | (add_macro_name): Update. | |
7462 | (add_partial_symbol_name): New function. | |
7463 | (default_make_symbol_completion_list): Use | |
7464 | map_partial_symbol_names. | |
7465 | (struct add_partial_symbol_name): New type. | |
7466 | (maybe_add_partial_symtab_filename): New function. | |
7467 | (make_source_files_completion_list): Use | |
7468 | map_partial_symbol_filenames. | |
7469 | (expand_line_sal): Use expand_symtabs_with_filename method. | |
7470 | * symmisc.c: Include psymtab.h. | |
7471 | (print_objfile_statistics): Use print_stats method. | |
7472 | (dump_objfile): Use dump method. | |
7473 | (dump_psymtab, maintenance_print_psymbols) | |
7474 | (maintenance_info_psymtabs, maintenance_check_symtabs) | |
7475 | (extend_psymbol_list): Remove. | |
7476 | * symfile.h (struct quick_symbol_functions): New struct. | |
7477 | (struct sym_fns) <qf>: New field. | |
7478 | (sort_pst_symbols): Remove. | |
7479 | (increment_reading_symtab): Declare. | |
7480 | * symfile.c: Include psymtab.h. | |
7481 | (compare_psymbols, sort_pst_symbols): Remove. | |
7482 | (psymtab_to_symtab): Remove. | |
7483 | (increment_reading_symtab): New function. | |
7484 | (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs | |
7485 | method. | |
7486 | (set_initial_language): Use find_main_filename. | |
7487 | (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove. | |
7488 | (free_named_symtabs): Remove unused code. | |
7489 | (start_psymtab_common, add_psymbol_to_bcache) | |
7490 | (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list): | |
7491 | Remove. | |
7492 | * stack.c: Include psymtab.h, symfile.h. | |
7493 | (backtrace_command_1): Use find_pc_sect_symtab_via_partial. | |
7494 | * source.h (psymtab_to_fullname): Don't declare. | |
7495 | * source.c: Include psymtab.h. | |
7496 | (select_source_symtab): Use find_last_source_symtab method. | |
7497 | (forget_cached_source_info): Use forget_cached_source_info | |
7498 | method. | |
7499 | (find_and_open_source): No longer static. | |
7500 | (psymtab_to_fullname): Remove. | |
7501 | * somread.c: Include psymtab.h. | |
7502 | (som_sym_fns): Update. | |
7503 | * psympriv.h: New file. | |
7504 | * psymtab.h: New file. | |
7505 | * psymtab.c: New file. | |
7506 | * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove. | |
7507 | (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise. | |
7508 | * objfiles.c: Include psymtab.h. | |
7509 | (objfile_relocate1): Use relocate method. | |
7510 | (objfile_has_partial_symbols): Use has_symbols method. | |
7511 | * mipsread.c: Include psymtab.h. | |
7512 | (ecoff_sym_fns): Update. | |
7513 | * mi/mi-cmd-file.c: Include psymtab.h. | |
7514 | (print_partial_file_name): New function. | |
7515 | (mi_cmd_file_list_exec_source_files): Use | |
7516 | map_partial_symbol_filenames. | |
7517 | * mdebugread.c: Include psympriv.h. | |
7518 | * machoread.c: Include psympriv.h. | |
7519 | (macho_sym_fns): Update. | |
7520 | * m2-exp.y (yylex): Use lookup_symtab. | |
7521 | * elfread.c: Include psympriv.h. | |
7522 | (elf_sym_fns): Update. | |
7523 | * dwarf2read.c: Include psympriv.h. | |
7524 | * dbxread.c: Include psympriv.h. | |
7525 | (aout_sym_fns): Update. | |
7526 | * cp-support.c: Include psymtab.h. | |
7527 | (read_in_psymtabs): Remove. | |
7528 | (make_symbol_overload_list_qualified): Use | |
7529 | expand_symtabs_for_function method. | |
7530 | * coffread.c: Include psympriv.h. | |
7531 | (coff_sym_fns): Update. | |
7532 | * blockframe.c: Include psymtab.h. | |
7533 | (find_pc_partial_function): Use find_pc_sect_symtab method. | |
7534 | * ada-lang.h (ada_update_initial_language): Update. | |
7535 | * ada-lang.c: Include psymtab.h. | |
7536 | (ada_update_initial_language): Remove 'main_pst' argument. | |
7537 | (ada_lookup_partial_symbol): Remove. | |
7538 | (struct ada_psym_data): New type. | |
7539 | (ada_add_psyms): New function. | |
7540 | (ada_add_non_local_symbols): Use map_ada_symtabs method. | |
7541 | (struct add_partial_datum): New type. | |
7542 | (ada_add_partial_symbol_completions): New function. | |
7543 | (ada_make_symbol_completion_list): Use map_partial_symbol_names. | |
7544 | (ada_exception_support_info_sniffer): Update. | |
7545 | * Makefile.in (SFILES): Add psymtab.c. | |
7546 | (COMMON_OBS): Add psymtab.o. | |
7547 | (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h. | |
7548 | ||
7d8500b7 PM |
7549 | 2010-03-10 Pierre Muller <[email protected]> |
7550 | ||
7551 | * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. | |
7552 | ||
c0cc3a76 SW |
7553 | 2010-03-10 Sami Wagiaalla <[email protected]> |
7554 | ||
7555 | PR C++/11236: | |
7556 | * cp-namespace.c (cp_add_using): Deleted. | |
7557 | (cp_add_using_directive): Use obstack allocations. | |
7558 | Merged the function cp_add_using into this one. | |
7559 | Added 'struct obstack *' argument. | |
7560 | (cp_scan_for_anonymous_namespaces): Updated. | |
7561 | * cp-support.h: Updated. | |
7562 | * dwarf2read.c (read_import_statement): Updated. | |
7563 | (read_namespace): Updated. | |
7564 | ||
452fa064 CF |
7565 | 2010-03-10 Pierre Muller <[email protected]> |
7566 | ||
7567 | * windows-nat.c (cygwin_conv_path): Remove old macro. | |
7568 | ||
60e1c644 PA |
7569 | 2010-03-10 Pedro Alves <[email protected]> |
7570 | ||
7571 | * breakpoint.c (condition_command): Handle watchpoint conditions. | |
7572 | (is_hardware_watchpoint): Add comment. | |
7573 | (is_watchpoint): New. | |
7574 | (update_watchpoint): Don't reparse the watchpoint's condition | |
7575 | unless necessary. | |
7576 | (WP_IGNORE): New. | |
7577 | (watchpoint_check): Use it. | |
7578 | (bpstat_check_watchpoint): Handle it. | |
7579 | (bpstat_check_breakpoint_conditions): Evaluate watchpoint local | |
7580 | conditions in a frame where it makes sense. | |
7581 | (watch_command_1): Store the innermost block of the condition | |
7582 | expression. | |
7583 | (delete_breakpoint): Delete the watchpoint condition expression. | |
7584 | * breakpoint.h (struct bp_location) <cond>: Update comment. | |
7585 | (struct breakpoint): New field `cond_exp_valid_block'. | |
7586 | ||
af6b7be1 JB |
7587 | 2010-03-09 Joel Brobecker <[email protected]> |
7588 | ||
7589 | Adjust handling of Ada DIEs after dwarf2_physname patch. | |
7590 | * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs. | |
7591 | ||
60c5c021 CF |
7592 | 2010-03-09 Christopher Faylor <[email protected]> |
7593 | Pierre Muller <[email protected]> | |
7594 | ||
7595 | * windows-nat.c (cygwin_conv_path): Redefine to properly convert | |
7596 | from/to posix/win32. | |
7597 | (windows_make_so): Use non-Cygwin 1.7 specific function. | |
7598 | (windows_create_inferior): Make sure that cygallargs points to | |
7599 | original args in non Cygwin 1.7. case. | |
7600 | ||
60a1502a MS |
7601 | 2010-03-09 Michael Snyder <[email protected]> |
7602 | ||
7603 | * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int | |
7604 | after target_read_memory to get host byte order. | |
7605 | (i386_process_record): Ditto. | |
7606 | ||
94af9270 KS |
7607 | 2010-03-09 Keith Seitz <[email protected]> |
7608 | ||
7609 | Based on work from Daniel Jacobowitz <[email protected]> | |
7610 | * c-typeprint.c (cp_type_print_method_args): For non-static methods, | |
7611 | print out const or volatile qualifiers, too. | |
7612 | (c_type_print_args): Add parameters show_artificial and language. | |
7613 | Skip artificial parameters when requested. | |
7614 | Use the appropriate language printer. | |
7615 | (c_type_print_varspec): Tell c_type_print_args to skip artificial | |
7616 | parameters and pass language_c. | |
7617 | * dwarf2read.c (die_list): New file global. | |
7618 | (struct partial_die_info): Update comments for name field. | |
7619 | (pdi_needs_namespace): Renamed to ... | |
7620 | (die_needs_namespace): ... this. Rewrite. | |
7621 | (dwarf2_linkage_name): Remove. | |
7622 | (add_partial_symbol): Do not predicate the call to | |
7623 | partial_die_full_name based on pdi_needs_namespace. | |
7624 | Remove call to cp_check_possible_namespace_symbols and associated | |
7625 | outdated comments. | |
7626 | (guess_structure_name): Do not inspect child subprogram DIEs. | |
7627 | (dwarf2_fullname): Update comments. | |
7628 | Use die_needs_namespace to assist in computing the name. | |
7629 | (read_func_scope): Use dwarf2_name to get the DIE's name. | |
7630 | Use dwarf2_physname to get the "linkage name" of the DIE. | |
7631 | (dwarf2_add_member_field): Use dwarf2_physname instead of | |
7632 | dwarf2_linkage_name. | |
7633 | (read_structure_type): For structs and classes, set TYPE_NAME, too. | |
7634 | (determine_class): Remove. | |
7635 | (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages | |
7636 | except Ada. | |
7637 | (new_symbol): Unconditionally call dwarf2_name. | |
7638 | Compute the "linkage name" using dwarf2_physname. | |
7639 | Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs. | |
7640 | When determining to scan for anonymous C++ namespaces, ignore | |
7641 | the linkage name. | |
7642 | (dwarf2_physname): New function. | |
7643 | (dwarf2_full_name): Move content to new function and call | |
7644 | that. | |
7645 | (dwarf2_compute_name): "New" function. | |
7646 | (_initialize_dwarf2_read): Initialize die_list. | |
7647 | * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable | |
7648 | physname. | |
7649 | (gnu_v3_print_method_ptr): Use the physname for virtual methods | |
7650 | without a demangled name. | |
7651 | Print out type information for non-virtual methods. | |
c8d5aac9 | 7652 | * linespec.c (decode_line_1): Force ANY string using "::" (or |
94af9270 | 7653 | "." for java) to use decode_compound, and clean up any stray quoting. |
c8d5aac9 L |
7654 | If we found a file symtab, re-evaluate whether the remainder is_quoted. |
7655 | (decode_compound): Stop consuming at an open parenthesis. | |
7656 | Keep template parameters. | |
7657 | Keep any overload information. | |
7658 | Keep keywords like "const". | |
7659 | Remove paren_pointer. | |
7660 | Move is_quoted check from set_flags to here. | |
7661 | Remove #if 0 code from 2000. Ten years is long enough. | |
7662 | (find_method): Before comparing symbol names, canonicalize the string | |
7663 | from the user. | |
7664 | If a specific overload is requested, find it. Otherwise throw an error. | |
94af9270 KS |
7665 | (find_method_overload_end): New function. |
7666 | (set_flags): Remove. | |
c8d5aac9 L |
7667 | (decode_compound): Assume that parentheses are matched. |
7668 | It's a lot easier. | |
94af9270 KS |
7669 | * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag |
7670 | to cplus_demangle. | |
7671 | * linespec.c (decode_line_1): Keep important keywords like | |
7672 | "const" and "volatile". | |
7673 | * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove. | |
7674 | * typeprint.h (c_type_print_args): Add declaration. | |
7675 | * ui-file.c (do_ui_file_obsavestring): New function. | |
7676 | (ui_file_obsavestring): New function. | |
7677 | * ui-file.h (ui_file_obsavestring): Add declaration. | |
7678 | * valops.c (find_overload_match): Resolve the object to | |
7679 | a non-pointer type. | |
7680 | If the object is a data member, search the object for the member | |
7681 | and return with staticp set. | |
7682 | Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME. | |
7683 | Do not attempt to extract a function name from non-function types. | |
7684 | If the extracted function name and the original name are the same, | |
7685 | we don't have a C++ method. | |
7686 | ||
8d95cc3b PA |
7687 | From Jan Kratochvil <[email protected]>: |
7688 | * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name. | |
94af9270 KS |
7689 | |
7690 | * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters | |
7691 | and arguments from symbol lookups. | |
7692 | * ax-gdb.c (gen_expr): Likewise. | |
7693 | * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope, | |
7694 | cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type, | |
7695 | lookup_possible_namespace_symbol): Likewise. | |
7696 | * cp-support.c (read_in_psymtabs): Likewise. | |
7697 | * cp-support.h (cp_lookup_symbol_nonlocal): Likewise. | |
7698 | * language.h (la_lookup_symbol_nonlocal): Likewise. | |
7699 | * scm-valprint.c (scm_inferior_print): Likewise. | |
7700 | * solib-darwin.c (darwin_relocate_section_addresses): Likewise. | |
7701 | * solib-svr.c (elf_lookup_lib): Likewise. | |
7702 | * solib.c (show_auto_solib_add): Likewise. | |
7703 | * solist.h (lookup_lib_global, solib_global_lookup): Likewise. | |
7704 | * symmisc.c (maintenance_check_symtabs): Likewise. | |
7705 | * symtab.c (lookup_symbol_in_language, lookup_symbol_aux, | |
7706 | lookup_symbol_aux_local, lookup_symbol_aux_block, | |
7707 | lookup_symbol_from_objfile, lookup_symbol_aux_symtabs, | |
7708 | lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal, | |
7709 | lookup_symbol_static, lookup_symbol_global, symbol_matches_domain, | |
7710 | basic_lookup_transparent_type, find_main_psymtab, | |
7711 | lookup_block_symbol): Likewise. | |
7712 | * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static, | |
7713 | lookup_symbol_global, lookup_symbol_aux_block, | |
7714 | lookup_symbol_partial_symbol, lookup_block_symbol, | |
7715 | lookup_global_symbol, value_maybe_namespace_elt): Likewise. | |
7716 | ||
9cb74f47 PM |
7717 | 2010-03-09 Pierre Muller <[email protected]> |
7718 | ||
7719 | * python/python-internal.h: Include symtab.h. | |
7720 | ||
af6b7be1 JB |
7721 | 2010-03-09 Joel Brobecker <[email protected]> |
7722 | Pierre Muller <[email protected]> | |
e13eedd5 PM |
7723 | |
7724 | * p-lang.c (is_pascal_string_type): Remove unneeded parentheses. | |
7725 | * p-valprint.c (pascal_val_print): Remove undeed block and fix | |
7726 | indentation. | |
7727 | ||
bad56014 TT |
7728 | 2010-03-08 Tom Tromey <[email protected]> |
7729 | ||
7730 | * breakpoint.c (breakpoint_1): Add "QUIT". | |
7731 | ||
08105857 PA |
7732 | 2010-03-08 Daniel Jacobowitz <[email protected]> |
7733 | Pedro Alves <[email protected]> | |
7734 | ||
7735 | * solib.c (solib_find): Replace extension if | |
7736 | solib_symbols_extension is set in the target gdbarch. | |
7737 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
7738 | solib_symbols_extension to "sym". | |
7739 | * gdbarch.sh (solib_symbols_extension): New variable. | |
7740 | (pstring): New function. | |
7741 | * gdbarch.h, gdbarch.c: Regenerate. | |
7742 | ||
7c953934 TT |
7743 | 2010-03-08 Tom Tromey <[email protected]> |
7744 | ||
7745 | PR cli/9591: | |
7746 | * NEWS: Update. | |
7747 | * utils.c: Include main.h. | |
7748 | (fputs_maybe_filtered): Don't paginate if `batch_flag'. | |
7749 | (defaulted_query): Use default answer if `batch_flag'. | |
7750 | * main.h (batch_flag): Declare. | |
7751 | * main.c (batch_flag): New global. | |
7752 | (captured_main): Remove 'batch'. Update. | |
7753 | ||
bbd2783e KB |
7754 | 2010-03-08 Kevin Buettner <[email protected]> |
7755 | ||
7756 | From Richard Sandiford, Martin M. Hunt, Corinna Vinschen, | |
7757 | and Kevin Buettner: | |
7758 | ||
7759 | * remote-mips.c (rockhopper_ops): New target_ops struct. | |
7760 | (MON_ROCKHOPPER): New mips_monitor_type. | |
7761 | (read_hex_value): New function. | |
7762 | (mips_request): Send 8-byte values with a 'T' packet. Read the | |
8d95cc3b | 7763 | packet argument as a string and use read_hex_value to parse it. |
bbd2783e KB |
7764 | (mips_exit_debug): Wait for response when using MON_ROCKHOPPER. |
7765 | (rockhopper_open): New function. | |
7766 | (mips_wait): Read the PC, FP and SP fields as strings. Use | |
7767 | read_hex_value to parse them and mips_set_register to commit them. | |
7768 | (mips_set_register): New function. | |
7769 | (mips_fetch_registers): Do not cast register value to "unsigned" | |
7770 | when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register. | |
7771 | (mips_store_registers): Use a 'T' packet to set registers when | |
7772 | using MON_ROCKHOPPER. | |
7773 | (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER | |
7774 | and expect the total to be printed before the entry address. | |
7775 | (_initialize_remote_mips): Initialize and add rockhopper_ops. | |
7776 | ||
566f3d17 KB |
7777 | 2010-03-08 Kevin Buettner <[email protected]> |
7778 | ||
7779 | * remote-mips.c (mips_fetch_word): Add new parameter, `valp'. | |
7780 | Change return value to int. Store value fetched in location | |
7781 | addressed by `val'. Use function's return value as success | |
7782 | or failure indicator. Adjust all callers. | |
7783 | ||
9c8ee2ab | 7784 | 2010-03-08 Pierre Muller <[email protected]> |
f72d4b77 PM |
7785 | |
7786 | * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. | |
7787 | ||
7155de5a HZ |
7788 | 2010-03-08 Jan Kratochvil <[email protected]> |
7789 | Hui Zhu <[email protected]> | |
7790 | ||
7791 | * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and | |
7792 | tmp_to_stopped_data_address. | |
7793 | (record_open): Reset tmp_to_stopped_by_watchpoint and | |
7794 | tmp_to_stopped_data_address. | |
7795 | * target.c (init_dummy_target): Add to_stopped_by_watchpoint and | |
7796 | to_stopped_data_address. | |
7797 | ||
580879fc HZ |
7798 | 2010-03-08 Hui Zhu <[email protected]> |
7799 | ||
7800 | * i386-tdep.c (i386_process_record): Initialize regnum. | |
7801 | ||
b0fcb67f JK |
7802 | 2010-03-08 Jan Kratochvil <[email protected]> |
7803 | ||
7804 | * symfile.c (addr_info_make_relative): New variable sect_name, use it. | |
7805 | Do not warn on ".gnu.liblist" and ".gnu.conflict". | |
7806 | ||
08597104 JB |
7807 | 2010-03-08 Joel Brobecker <[email protected]> |
7808 | ||
7809 | Memory error when reading wrong core file. | |
7810 | * solib-svr4.c (solib_svr4_r_map): catch and print all exception | |
7811 | errors while reading the inferior memory, and return zero if | |
7812 | an exception was raised. | |
7813 | ||
425b824a MS |
7814 | 2010-03-07 Michael Snyder <[email protected]> |
7815 | ||
ec6dbf37 MS |
7816 | * record.c (record_restore): Rename tmpu8 to rectype. |
7817 | ||
648d0c8b MS |
7818 | * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables |
7819 | tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. | |
7820 | ||
7821 | (i386_record_push): Rename local tmpulongest to addr. | |
7822 | ||
7823 | (i386_process_record): Rename local tmpulongest to addr. | |
7824 | ||
7825 | Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, | |
7826 | addr64. | |
955db0c0 MS |
7827 | |
7828 | Rename local variable tmpu8 to opcode8 and regnum. | |
425b824a | 7829 | |
10760264 JB |
7830 | 2010-03-07 Joel Brobecker <[email protected]> |
7831 | ||
7832 | * remote.c (remote_get_ada_task_ptid): New function. | |
c8d5aac9 | 7833 | (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. |
10760264 | 7834 | |
b3c613f2 CF |
7835 | 2010-03-06 Christopher Faylor <[email protected]> |
7836 | ||
7837 | * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one | |
7838 | block. Define helper macros to reduce ifdefs in code. | |
7839 | (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer | |
7840 | size. Call unadorned GetModuleFileNameEx rather than | |
7841 | GetModuleFileNameEx*. | |
7842 | (windows_make_so): Use __PMAX to denote maximum buffer size and | |
7843 | cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as | |
7844 | appropriate. | |
7845 | (get_image_name): Use __PMAX to denote maximum buffer size. | |
7846 | (handle_load_dll): Likewise. | |
7847 | (windows_pid_to_exec_file): Likewise. | |
7848 | (windows_create_inferior): Add many accommodations for older Cygwin and | |
7849 | non-Cygwin. | |
7850 | (bad_GetModuleFileNameExW): Control inclusion of this function based on | |
7851 | __USEWIDE conditional. | |
7852 | (bad_GetModuleFileNameExA): Likewise. | |
7853 | (_initialize_loadable): Just use real function names without the dyn_ | |
7854 | part since they are defined earlier. | |
7855 | ||
f870a310 TT |
7856 | 2010-03-05 Corinna Vinschen <[email protected]> |
7857 | Tom Tromey <[email protected]> | |
7858 | ||
7859 | * utils.c (host_char_to_target): Add 'gdbarch' argument. | |
7860 | (parse_escape): Likewise. | |
7861 | * python/py-utils.c (unicode_to_target_string): Update. | |
7862 | (unicode_to_target_python_string): Update. | |
7863 | (target_string_to_unicode): Update. | |
7864 | * printcmd.c (printf_command): Update. | |
7865 | * p-exp.y (yylex): Update. | |
7866 | * objc-exp.y (yylex): Update. | |
7867 | * mi/mi-parse.c: Include charset.h. | |
7868 | (mi_parse_escape): New function. | |
7869 | (mi_parse_argv): Use it. | |
7870 | * jv-exp.y (yylex): Update. | |
7871 | * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New | |
7872 | function. | |
7873 | (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. | |
7874 | * gdbarch.sh (auto_charset, auto_wide_charset): New. | |
7875 | * gdbarch.c: Rebuild. | |
7876 | * gdbarch.h: Rebuild. | |
7877 | * defs.h (parse_escape): Update. | |
7878 | * cli/cli-setshow.c: Include arch-utils.h. | |
7879 | (do_setshow_command): Update. | |
7880 | * cli/cli-cmds.c (echo_command): Update. | |
7881 | * charset.h (target_charset, target_wide_charset): Update. | |
7882 | * charset.c: Include arch-utils.h. | |
7883 | (target_charset_name): Default to "auto". | |
7884 | (target_wide_charset_name): Likewise. | |
7885 | (show_target_charset_name): Handle "auto". | |
7886 | (show_target_wide_charset_name): Likewise. | |
7887 | (be_le_arch): New global. | |
7888 | (set_be_le_names): Add 'gdbarch' argument. | |
7889 | (validate): Likewise. Don't call set_be_le_names. | |
7890 | (set_charset_sfunc, set_host_charset_sfunc) | |
7891 | (set_target_charset_sfunc, set_target_wide_charset_sfunc): | |
7892 | Update. | |
7893 | (target_charset): Add 'gdbarch' argument. | |
7894 | (target_wide_charset): Likewise. Remove 'byte_order' argument. | |
7895 | (auto_target_charset_name): New global. | |
7896 | (default_auto_charset, default_auto_wide_charset): New functions. | |
7897 | (_initialize_charset): Set auto_target_charset_name. Allow "auto" | |
7898 | for target charsets. Copy result of nl_langinfo. Use GetACP if | |
7899 | USE_WIN32API. | |
7900 | * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, | |
7901 | remove 'byte_order' argument. Update. | |
7902 | (classify_type): Likewise. | |
7903 | (c_emit_char): Update. | |
7904 | (c_printchar): Update. | |
7905 | (c_printstr): Update. | |
7906 | (c_get_string): Update. | |
7907 | (evaluate_subexp_c): Update. | |
7908 | * arch-utils.h (default_auto_charset, default_auto_wide_charset): | |
7909 | Declare. | |
7910 | * python/python.c (gdbpy_target_charset): New function. | |
7911 | (gdbpy_target_wide_charset): Likewise. | |
7912 | (GdbMethods): Update. | |
7913 | * NEWS: Update. | |
7914 | ||
4e7386b0 UW |
7915 | 2010-03-05 Ulrich Weigand <[email protected]> |
7916 | ||
7917 | * symfile.c (build_section_addr_info_from_objfile): Do not mask | |
7918 | off high address bits. | |
7919 | ||
aab48ede UW |
7920 | 2010-03-05 Ulrich Weigand <[email protected]> |
7921 | ||
7922 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract | |
7923 | address as UnsignedLongLong, not LongLong. | |
7924 | ||
8eeafb51 | 7925 | 2010-03-05 Kevin Buettner <[email protected]> |
c8d5aac9 | 7926 | Pedro Alves <[email protected]> |
8eeafb51 KB |
7927 | |
7928 | * remote-mips.c (gdbthread.h): Include. | |
7929 | (remote_mips_ptid): Declare. | |
7930 | (mips_error): Only mourn the inferior when inferior_ptid is non-null. | |
7931 | (common_open): Set inferior_ptid, add it as an inferior, and | |
7932 | as a thread too. Delete FIXME comment regarding start_remote(). | |
7933 | (mips_close): Invoke generic_mourn_inferior(). | |
7934 | (mips_kill): Make sure that target_mourn_inferior is invoked. | |
7935 | (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as | |
7936 | it's now invoked from mips_close(). | |
7937 | (mips_load): Don't null out inferior_ptid. Don't call | |
7938 | clear_symtab_users(). | |
7939 | (mips_thread_alive, mips_pid_to_str): New functions. | |
7940 | (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize | |
7941 | to_thread_alive and to_pid_to_str operations. | |
7942 | ||
ae411497 TT |
7943 | 2010-03-04 Tom Tromey <[email protected]> |
7944 | ||
7945 | * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size | |
7946 | in DWARF 3 and later. | |
7947 | (read_attribute_value) <DW_FORM_ref_addr>: Likewise. | |
7948 | ||
0e0b460e KS |
7949 | 2010-03-04 Keith Seitz <[email protected]> |
7950 | ||
7951 | * linespec.c (decode_line_1): Update comments for is_quote_enclosed. | |
7952 | If the filename portion of the linespec was quoted, recheck the | |
7953 | remainder for additional quoting. | |
7954 | (locate_first_half): Skip over completer chars, too. | |
7955 | ||
1b93ff13 TT |
7956 | 2010-03-04 Tom Tromey <[email protected]> |
7957 | ||
7958 | * printcmd.c (printf_command): Pass dummy argument to | |
7959 | printf_filtered. | |
7960 | ||
fc36e839 DE |
7961 | 2010-03-04 Doug Evans <[email protected]> |
7962 | ||
111f853c DE |
7963 | * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, |
7964 | unwound_fp. | |
7965 | ||
fc36e839 DE |
7966 | * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. |
7967 | ||
c7437ca6 PA |
7968 | 2010-03-04 Pedro Alves <[email protected]> |
7969 | ||
7970 | * breakpoint.c (update_watchpoint): Create a sentinel location if | |
7971 | the software watchpoint isn't watching any memory. | |
7972 | (breakpoint_address_bits): Skip dummy software watchpoint locations. | |
7973 | ||
58dadb1b PA |
7974 | 2010-03-04 Pedro Alves <[email protected]> |
7975 | ||
7976 | * utils.c (fputs_maybe_filtered): Check if there's already a top | |
7977 | level interpreter before dereferencing it. If there isn't one, | |
7978 | don't paginate either. | |
7979 | ||
50e98be4 DJ |
7980 | 2010-03-04 Matthew Gretton-Dann <[email protected]> |
7981 | ||
7982 | * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get | |
7983 | the state right when single stepping. | |
7984 | (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. | |
7985 | Get the next PC along with the instruction state. | |
7986 | (thumb_get_next_pc): Remove. | |
7987 | (arm_get_next_pc): Modified to use arm_get_next_pc_raw. | |
7988 | ||
2e3ceee9 HZ |
7989 | 2010-03-04 Hui Zhu <[email protected]> |
7990 | ||
7991 | * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". | |
7992 | ||
390a8aca PA |
7993 | 2010-03-03 Pedro Alves <[email protected]> |
7994 | ||
7995 | * utils.c (fputs_maybe_filtered): Always disable pagination if the | |
7996 | top level interpreter is MI. | |
7997 | ||
9355b391 SS |
7998 | 2010-03-03 Stan Shebs <[email protected]> |
7999 | ||
8000 | * remote.c (remote_download_tracepoint): Iterate over locations. | |
8001 | * tracepoint.c (validate_actionline): Ditto. | |
8002 | (encode_actions): Add location argument. | |
8003 | (trace_dump_command): Check all locations to see if stepping | |
8004 | frame. | |
390a8aca | 8005 | |
8685c86f L |
8006 | 2010-03-03 H.J. Lu <[email protected]> |
8007 | Eli Zaretskii <[email protected]> | |
8008 | ||
8009 | * NEWS: Add X86 general purpose registers section. | |
8010 | ||
e8f781e2 TT |
8011 | 2010-03-03 Tom Tromey <[email protected]> |
8012 | ||
8013 | PR mi/11098: | |
8014 | * varobj.c (install_new_value): Handle case where new print_value | |
8015 | is NULL. | |
8016 | ||
a0e0ef55 TT |
8017 | 2010-03-03 Dainis Jonitis <[email protected]> |
8018 | ||
8019 | PR gdb/11345: | |
8020 | * printcmd.c (printf_command): Print end of format string using | |
8021 | printf_filtered. | |
8022 | ||
a58d7472 TT |
8023 | 2010-03-02 Tom Tromey <[email protected]> |
8024 | ||
8025 | * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. | |
8026 | * defs.h (read_command_lines_1): Add missing 'void'. | |
8027 | * cli/cli-script.c (recurse_read_control_structure): Add missing | |
8028 | 'void'. | |
8029 | (read_next_line): Likewise. | |
8030 | (read_command_lines_1): Likewise. | |
8031 | ||
ce50d78b UW |
8032 | 2010-03-02 Ulrich Weigand <[email protected]> |
8033 | ||
8034 | * spu-tdep.c (spu_analyze_prologue): Track instruction to | |
8035 | store backchain as part of prologue. | |
8036 | ||
7e9af34a DJ |
8037 | 2010-03-02 Daniel Jacobowitz <[email protected]> |
8038 | ||
8039 | * progspace.c (update_address_spaces): Update inferior address spaces | |
8040 | also. | |
8041 | ||
01637564 DE |
8042 | 2010-03-02 Doug Evans <[email protected]> |
8043 | ||
8044 | * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to | |
8045 | lowpc,highpc args to addrmap_set_empty. | |
8046 | ||
1ba53b71 L |
8047 | 2010-03-02 H.J. Lu <[email protected]> |
8048 | ||
8049 | * amd64-tdep.c (amd64_byte_names): New. | |
8050 | (amd64_word_names): Likewise. | |
8051 | (amd64_dword_names): Likewise. | |
8052 | (amd64_pseudo_register_name): Likewise. | |
8053 | (amd64_pseudo_register_read): Likewise. | |
8054 | (amd64_pseudo_register_write): Likewise. | |
8055 | (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs | |
8056 | and num_mmx_regs. Call set_gdbarch_pseudo_register_read, | |
8057 | set_gdbarch_pseudo_register_write and | |
8058 | set_tdesc_pseudo_register_name. Don't call | |
8059 | set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. | |
8060 | ||
8061 | * i386-tdep.c (i386_num_mmx_regs): Removed. | |
8062 | (i386_num_pseudo_regs): Likewise. | |
8063 | (i386_byte_names): New. | |
8064 | (i386_word_names): Likewise. | |
8065 | (i386_byte_regnum_p): Likewise. | |
8066 | (i386_word_regnum_p): Likewise. | |
8067 | (i386_mmx_regnum_p): Updated. | |
8068 | (i386_pseudo_register_name): Make it global. Handle byte and | |
8069 | word pseudo-registers. | |
8070 | (i386_pseudo_register_read): Likewise. | |
8071 | (i386_pseudo_register_write): Likewise. | |
8072 | (i386_pseudo_register_type): Handle byte, word and dword | |
8073 | pseudo-registers | |
8074 | (i386_register_reggroup_p): Don't include pseudo | |
8075 | registers, except for MXX, in any register groups. Don't | |
8076 | include pseudo byte, word, dword registers in general_reggroup. | |
8077 | (i386_gdbarch_init): Set num_byte_regs, num_word_regs, | |
8078 | num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX | |
8079 | pseudo-registers after word pseudo-registers. Call | |
8080 | set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. | |
8081 | ||
8082 | * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, | |
8083 | al_regnum, num_word_regs, ax_regnum, num_dword_regs and | |
8084 | eax_regnum. | |
8085 | (i386_byte_regnum_p): New. | |
8086 | (i386_word_regnum_p): Likewise. | |
8087 | (i386_dword_regnum_p): Likewise. | |
8088 | (i386_pseudo_register_name): Likewise. | |
8089 | (i386_pseudo_register_read): Likewise. | |
8090 | (i386_pseudo_register_write): Likewise. | |
8091 | ||
a6f5ef51 L |
8092 | 2010-03-01 H.J. Lu <[email protected]> |
8093 | ||
8094 | * target-descriptions.c (tdesc_type): Remove | |
8095 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
8096 | (tdesc_predefined_types): Likewise. | |
8097 | (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag | |
8098 | if flag name is empty. | |
8099 | (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. | |
8100 | ||
8101 | * features/i386/32bit-core.xml: Define i386_eflags. | |
8102 | * features/i386/64bit-core.xml: Likewise. | |
8103 | ||
8104 | * features/i386/32bit-sse.xml: Define i386_mxcsr. | |
8105 | * features/i386/64bit-sse.xml: Likewise. | |
8106 | ||
8107 | * features/i386/amd64-linux.c: Regenerated. | |
8108 | * features/i386/amd64.c: Likewise. | |
8109 | * features/i386/i386-linux.c: Likewise. | |
8110 | * features/i386/i386.c: Likewise. | |
8111 | ||
f5dff777 DJ |
8112 | 2010-03-01 Daniel Jacobowitz <[email protected]> |
8113 | ||
8114 | * gdbtypes.c (append_composite_type_field_raw): New. | |
8115 | (append_composite_type_field_aligned): Use the new function. | |
8116 | * gdbtypes.h (append_composite_type_field_raw): Declare. | |
8117 | * target-descriptions.c (struct tdesc_type_field): Add start and end. | |
8118 | (struct tdesc_type_flag): New type. | |
8119 | (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to | |
8120 | kind. Add size to u.u. Add u.f for flags. | |
8121 | (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. | |
8122 | (tdesc_free_type): Likewise. | |
8123 | (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. | |
8124 | (tdesc_add_field): Handle TDESC_TYPE_STRUCT. | |
8125 | (tdesc_add_bitfield, tdesc_add_flag): New. | |
8126 | * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) | |
8127 | (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. | |
8128 | * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to | |
8129 | current_type. Add current_type_size and current_type_is_flags. | |
8130 | (tdesc_start_union): Clear the new fields. | |
8131 | (tdesc_start_struct, tdesc_start_flags): New. | |
8132 | (tdesc_start_field): Handle struct fields, including bitfields. | |
8133 | (field_attributes): Make type optional. Add start and end. | |
8134 | (union_children): Rename to struct_union_children. | |
8135 | (union_attributes): Rename to struct_union_attributes. Add optional | |
8136 | size. | |
8137 | (flags_attributes): New. | |
8138 | (feature_children): Add struct and flags. | |
8139 | * features/gdb-target.dtd: Add flags and struct to features. | |
8140 | Make field type optional. Add field start and end. | |
8141 | ||
90884b2b L |
8142 | 2010-03-01 H.J. Lu <[email protected]> |
8143 | ||
8144 | * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. | |
8145 | (amd64_linux_read_description): Likewise. | |
8146 | (_initialize_amd64_linux_nat): Set to_read_description to | |
8147 | amd64_linux_read_description. | |
8148 | ||
8149 | * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". | |
8150 | (amd64_linux_register_name): Removed. | |
8151 | (amd64_linux_register_type): Likewise. | |
8152 | (amd64_linux_core_read_description): New. | |
8153 | (amd64_linux_init_abi): Set target description to | |
8154 | tdesc_amd64_linux if needed. Support orig_rax in target | |
8155 | description. Don't call set_gdbarch_register_name nor | |
8156 | set_gdbarch_register_type. Call | |
8157 | set_gdbarch_core_read_description. | |
8158 | (_initialize_amd64_linux_tdep): Call | |
8159 | initialize_tdesc_amd64_linux. | |
8160 | ||
8161 | * amd64-linux-tdep.h (tdesc_amd64_linux): New. | |
8162 | ||
8163 | * amd64-tdep.c: Include "features/i386/amd64.c". | |
8164 | (amd64_register_names): Removed. | |
8165 | (amd64_register_name): Likewise. | |
8166 | (amd64_register_type): Likewise. | |
8167 | (amd64_init_abi): Set num_core_regs and register_names. Set | |
8d95cc3b | 8168 | target description to tdesc_amd64 if needed. Don't call |
90884b2b L |
8169 | set_gdbarch_register_name nor set_gdbarch_register_type. |
8170 | (_initialize_amd64_tdep): New. | |
8171 | ||
8172 | * i386-linux-nat.c (i386_linux_read_description): New. | |
8173 | (_initialize_i386_linux_nat): Set to_read_description to | |
8174 | i386_linux_read_description. | |
8175 | ||
8176 | * i386-linux-tdep.c: Include "features/i386/i386-linux.c". | |
8177 | (i386_linux_register_name): Removed. | |
8178 | (i386_linux_core_read_description): New. | |
8179 | (i386_linux_read_description): Likewise. | |
8180 | (i386_linux_init_abi): Don't call set_gdbarch_register_name. | |
8181 | Set target description to tdesc_i386_linux if needed. Support | |
8182 | orig_eax. Set register_reggroup_p. Call | |
8183 | set_gdbarch_core_read_description. | |
8184 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. | |
8185 | ||
8186 | * i386-linux-tdep.h (tdesc_i386_linux): New. | |
8187 | ||
8188 | * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS | |
8189 | with I387_NUM_REGS. | |
8190 | ||
8191 | * i386-tdep.c: Include "features/i386/i386.c". | |
8192 | (i386_register_names): Make it const. | |
8193 | (i386_mmx_names): Likewise. | |
8194 | (i386_num_register_names): Removed. | |
8195 | (i386_register_name): Likewise. | |
8196 | (i386_eflags_type): Likewise. | |
8197 | (i386_mxcsr_type): Likewise. | |
8198 | (i386_sse_type): Likewise. | |
8199 | (i386_register_type): Likewise. | |
8200 | (i387_ext_type): Call tdesc_find_type instead of arch_float_type. | |
8201 | (i386_pseudo_register_name): New. | |
8202 | (i386_pseudo_register_type): Likewise. | |
8203 | (i386_mmx_type): Make it static. | |
8204 | (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with | |
8205 | I387_NUM_REGS. Set num_core_regs and register_names. Don't | |
8206 | call set_gdbarch_register_name nor set_gdbarch_register_type. | |
8207 | Set register_reggroup_p. Set target description to tdesc_i386 | |
8208 | if needed. Call set_tdesc_pseudo_register_type, | |
8209 | set_tdesc_pseudo_register_name and tdesc_use_registers. | |
8210 | (_initialize_i386_tdep): Call initialize_tdesc_i386. | |
8211 | initialize_tdesc_x86_64. | |
8212 | ||
8213 | * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, | |
8214 | i386_mxcsr_type and i386_sse_type. Add num_core_regs, | |
8215 | register_names, tdesc and register_reggroup_p. | |
8216 | (I386_NUM_FREGS): Removed. | |
8217 | (i386_eflags_type): Likewise. | |
8218 | (i386_mxcsr_type): Likewise. | |
8219 | (i386_mmx_type): Likewise. | |
8220 | (i386_sse_type): Likewise. | |
8221 | (i386_register_name): Likewise. | |
8222 | (i386_regnum): Add I386_MXCSR_REGNUM. | |
8223 | (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. | |
8224 | ||
8225 | * i387-tdep.h (I387_NUM_REGS): New. | |
8226 | ||
8227 | * regformats/i386/i386-linux.dat: Generated. | |
8228 | * regformats/i386/i386.dat: Likewise. | |
8229 | * regformats/i386/amd64-linux.dat: Likewise. | |
8230 | * regformats/i386/amd64.dat: Likewise. | |
8231 | ||
8232 | * regformats/reg-i386-linux.dat: Removed. | |
8233 | * regformats/reg-i386.dat: Likewise. | |
8234 | * regformats/reg-x86-64-linux.dat: Likewise. | |
8235 | * regformats/reg-x86-64.dat: Likewise. | |
8236 | ||
d0d0ab16 CV |
8237 | 2010-03-01 Corinna Vinschen <[email protected]> |
8238 | ||
8239 | * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 | |
8240 | cygwin_conv_path API rather than the deprecated | |
8241 | cygwin_conv_to_full_posix_path. | |
8242 | * windows-nat.c: | |
8243 | (GetModuleFileNameExA): Undefine for Cygwin. | |
8244 | (GetModuleFileNameExW): Define for Cygwin. | |
8245 | (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. | |
8246 | Call GetModuleFileNameExW and convert path to POSIX using | |
8247 | cygwin_conv_path. | |
8248 | (windows_make_so): Always define p. Drop unused variable m. | |
8249 | Don't use Win32 functions to check file existance, rather use | |
8250 | access on Cygwin. Fetch system directory using GetSystemDirectoryW. | |
8251 | Use canonicalize_file_name to get full path. | |
8252 | (get_image_name): Use wcstombs, rather than WideCharToMultiByte | |
8253 | to convert Unicode pathname to multibyte on Cygwin. Otherwise, | |
8254 | use correct target buffer size in call to WideCharToMultiByte. | |
8255 | (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. | |
8256 | (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. | |
8257 | (windows_create_inferior): Convert all paths and arguments to wchar_t | |
8258 | and use CreateProcessW on Cygwin. | |
8259 | (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. | |
8260 | (bad_GetModuleFileNameExA): Undefine for Cygwin. | |
8261 | (bad_GetModuleFileNameExW): Define for Cygwin. | |
8262 | (_initialize_loadable): Load GetModuleFileNameExW into | |
8263 | dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. | |
8264 | ||
dc00d89f PM |
8265 | 2010-02-28 Phil Muldoon <[email protected]> |
8266 | ||
8267 | PR python/11036 | |
8268 | * python/py-frame.c (frapy_read_var): Add block argument and logic | |
8269 | to cope with user provided blocks. | |
8270 | ||
0e095b7e JK |
8271 | 2010-02-28 Jan Kratochvil <[email protected]> |
8272 | ||
8273 | * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. | |
8274 | New comment. | |
8275 | ||
2f9e05b4 CV |
8276 | 2010-02-28 Corinna Vinschen <[email protected]> |
8277 | ||
8278 | * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... | |
8279 | (COMMON_OBS): ... to here since it's used unconditionally. | |
8280 | (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... | |
8281 | (SFILES): To here. | |
8282 | ||
eb195664 DD |
8283 | 2010-02-26 David Daney <[email protected]> |
8284 | ||
8285 | * mips-linux-tdep.c: Update struct sigframe comments. | |
8286 | (SIGFRAME_CODE_OFFSET): Delete macro. | |
8287 | (mips_linux_o32_sigframe_init): Calculate sigcontext_base using | |
8288 | this_frame's sp. | |
8289 | (mips_linux_n32n64_sigframe_init): Same. | |
8290 | ||
97b0f3e2 KB |
8291 | 2010-02-26 Kevin Buettner <[email protected]> |
8292 | ||
8293 | * remote-mips.c (mips_load): Don't use pseudo-register when | |
8294 | invalidating regcache. | |
8295 | ||
4069ebbe DJ |
8296 | 2010-02-26 Daniel Jacobowitz <[email protected]> |
8297 | ||
8298 | * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. | |
8299 | ||
05071a4d PA |
8300 | 2010-02-26 Pedro Alves <[email protected]> |
8301 | ||
8302 | * NEWS: Add "New targets" section, and mention ARM Symbian | |
8303 | support. | |
8304 | ||
6063c216 UW |
8305 | 2010-02-26 Ulrich Weigand <[email protected]> |
8306 | ||
8307 | * dwarf2loc.c (struct piece_closure): Remove ARCH member, | |
8308 | add ADDR_SIZE member. | |
8309 | (allocate_piece_closure): Update. | |
8310 | (copy_pieced_value_closure): Likewise. | |
8311 | (dwarf2_evaluate_loc_desc): Likewise. | |
8312 | (read_pieced_value): Use DWARF address size instead of | |
8313 | GDB's gdbarch_addr_bit as size of values on the DWARF stack. | |
8314 | ||
5107b149 | 8315 | 2010-02-26 Phil Muldoon <[email protected]> |
c8d5aac9 | 8316 | Tom Tromey <[email protected]> |
5107b149 PM |
8317 | |
8318 | * python/py-type.c (typy_lookup_typename): Add in block argument. | |
8319 | If provided restrict lookup to specified blocks. | |
8320 | (gdbpy_lookup_type): Likewise. | |
8321 | (typy_lookup_type): Likewise. | |
8322 | ||
78664fa3 | 8323 | 2010-02-25 Daniel Jacobowitz <[email protected]> |
8d95cc3b | 8324 | |
78664fa3 PA |
8325 | Symbian config |
8326 | ||
8327 | gdb/ | |
8328 | * arm-symbian-tdep.c: New. | |
8329 | * configure.tgt (arm*-*-symbianelf*): New target. | |
8330 | (*-*-symbianelf*): New OS. | |
8331 | * osabi.c (gdb_osabi_names): Add Symbian. | |
8332 | * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN. | |
8333 | * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o. | |
8334 | (ALLDEPFILES): Add arm-symbian-tdep.c. | |
8335 | ||
eb73e134 DJ |
8336 | 2010-02-25 Daniel Jacobowitz <[email protected]> |
8337 | ||
8338 | * symfile.c (find_lowest_section): Include SEC_ALLOC sections. | |
8339 | ||
46ef47e5 PA |
8340 | 2010-02-24 Pedro Alves <[email protected]> |
8341 | ||
8342 | * mi/mi-main.c (mi_cmd_execute): Fix typo. | |
8343 | ||
f3e9a817 | 8344 | 2010-02-24 Phil Muldoon <[email protected]> |
8d95cc3b | 8345 | Tom Tromey <[email protected]> |
f3e9a817 PM |
8346 | Thiago Jung Bauermann <[email protected]> |
8347 | ||
8348 | * python/python.c (_initialize_python): Call | |
8349 | gdbpy_initialize_symtabs, gdbpy_initialize_symbols and | |
8350 | gdbpy_initialize_blocks. | |
8351 | * python/python-internal.h: Declare struct symbol, block and | |
8352 | symtab_and_line. Declare block_object_type and | |
8353 | symbol_object_type | |
8354 | (gdbpy_lookup_symbol gdbpy_block_for_pc) | |
8355 | (symtab_and_line_to_sal_object, symtab_to_symtab_object) | |
8356 | (symbol_to_symbol_object, block_to_block_object) | |
8357 | (gdbpy_initialize_symtabs,gdbpy_initialize_symbols) | |
8358 | (gdbpy_initialize_blocks ): Declare. | |
8359 | * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal) | |
8360 | (frapy_select): Add methods. | |
8361 | (frapy_read_var): Add symbol branch. | |
8362 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab, | |
8363 | py-block. | |
8364 | (SUBDIR_PYTHON_SRCS): Likewise. | |
8365 | (py-symbol.o): New rule. | |
8366 | (py-symtab.o): Likewise. | |
8367 | (py-block.o): Likewise. | |
8368 | * python/py-symbol.c: New file. | |
8369 | * python/py-symtab.c: Likewise. | |
8370 | * python/py-block.c: Likewise. | |
8371 | ||
24291992 PA |
8372 | 2010-02-24 Pedro Alves <[email protected]> |
8373 | ||
8374 | PR gdb/11321 | |
8375 | ||
8376 | * inferior.h (prepare_for_detach): Declare. | |
8377 | (struct inferior) <detaching>: New field. | |
8378 | * infrun.c (prepare_for_detach): New. | |
8379 | (handle_inferior_event) <random signal>: Don't stop if detaching. | |
8380 | * target.c (target_detach): Call prepare_for_detach. | |
8381 | ||
fc1cf338 PA |
8382 | 2010-02-24 Pedro Alves <[email protected]> |
8383 | ||
8384 | Per-process displaced stepping queue. | |
8385 | ||
8386 | * infrun.c (displaced_step_ptid, displaced_step_request_queue) | |
8387 | (displaced_step_gdbarch, displaced_step_closure, | |
8388 | (displaced_step_original, displaced_step_copy): Move globals to | |
8389 | this... | |
8390 | (struct displaced_step_inferior_state): ... new structure. | |
8391 | (displaced_step_inferior_states): New global. | |
8392 | (get_displaced_stepping_state, add_displaced_stepping_state) | |
8393 | (remove_displaced_stepping_state, infrun_inferior_exit): New | |
8394 | functions. | |
8395 | (displaced_step_clear): Add displaced_step_inferior_state | |
8396 | parameter, and adjust to handle it. | |
8397 | (displaced_step_clear_cleanup): Parameter is now a | |
8398 | displaced_step_inferior_state. Adjust. | |
8399 | (displaced_step_prepare): Adjust. | |
8400 | (displaced_step_fixup, displaced_step_fixup) | |
8401 | (infrun_thread_ptid_changed, resume): Adjust. | |
8402 | (init_wait_for_inferior): Don't call displaced_step_clear. | |
8403 | (infrun_thread_stop_requested): Rewrite. | |
8404 | (_initialize_infrun): Install infrun_inferior_exit as | |
8405 | inferior_exit observer. | |
8406 | ||
0723dbf5 PA |
8407 | 2010-02-24 Pedro Alves <[email protected]> |
8408 | ||
8409 | * inferior.h (ptid_match): Declare. | |
8410 | * infrun.c (ptid_match): New. | |
8411 | * remote.c (queued_stop_reply): Rewrite and use ptid_match. | |
8412 | (handle_notification): Add debug output. | |
8413 | * linux-nat.c (ptid_match): Delete. | |
8414 | ||
09de9781 DM |
8415 | 2010-02-24 David S. Miller <[email protected]> |
8416 | ||
8417 | * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. | |
8418 | * syscalls/sparc-linux.xml: New. | |
8419 | * syscalls/sparc64-linux.xml: New. | |
8420 | * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. | |
8421 | * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. | |
8422 | (sparc32_linux_get_syscall_number): New function. | |
8423 | (sparc32_linux_init_abi): Set syscall XML file name and hook up | |
8424 | syscall number fetcher. | |
8425 | * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. | |
8426 | (sparc64_linux_get_syscall_number): New function. | |
8427 | (sparc64_linux_init_abi): Set syscall XML file name and hook up | |
8428 | syscall number fetcher. | |
8429 | ||
a79b8f6e VP |
8430 | 2010-02-24 Vladimir Prus <[email protected]> |
8431 | ||
8432 | Multiexec MI | |
8433 | ||
8434 | * breakpoint.c (clear_syscall_counts): Take struct inferior*. | |
8435 | * inferior.c (add_inferior_silent): Notify inferior_added | |
8436 | observer. | |
8437 | (delete_inferior_1): Notify inferior_removed observer. | |
8438 | (exit_inferior_1): Pass inferior, not pid, to observer. | |
8439 | (inferior_appeared): Likewise. | |
8440 | (add_inferior_with_spaces): New. | |
8441 | (add_inferior_command): Use the above. | |
8442 | * inferior.h (delete_inferior_1, add_inferior_with_spaces): | |
8443 | Declare. | |
8444 | ||
8445 | * inflow.c (inflow_inferior_exit): Likewise. | |
8446 | * jit.c (jit_inferior_exit_hook): Likewise. | |
8447 | ||
8448 | * mi/mi-cmds.c (mi_cmds): Register add-inferior and | |
8449 | remove-inferior. | |
8450 | * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
8451 | * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New. | |
8452 | (report_initial_inferior): New. | |
8453 | (mi_inferior_removed): Register the above. Make sure | |
8454 | inferior_added observer is called on the first inferior. | |
8455 | (mi_new_thread, mi_thread_exit): Thread group is now identified by | |
8456 | inferior number, not pid. | |
8457 | (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are | |
8458 | affected. | |
8459 | * mi/mi-main.c (current_context): New. | |
8460 | (proceed_thread_callback): Use typed closure. | |
8461 | Proceed everything if pid is 0. Most implementation split into | |
8462 | (proceed_thread): ... this. | |
8463 | (run_one_inferior): New. | |
8464 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run): | |
8465 | Adjust for multiexec behaviour. | |
8466 | (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
8467 | (mi_cmd_execute): Handle the 'thread-group' option here. | |
8468 | Do some extra checks. | |
8469 | * mi-parse.c (mi_parse): Handle the --all and --thread-group | |
8470 | options. | |
8471 | * mi-parse.h (struct mi_parse): New fields all and thread_group. | |
8472 | ||
115d30f9 VP |
8473 | 2010-02-24 Vladimir Prus <[email protected]> |
8474 | ||
8475 | Make -exec-run a proper MI commands. | |
8476 | ||
8477 | * mi/mi-cmds.h (mi_cmd_exec_run): Declare. | |
8478 | * mi/mi-cmds.c (mi_cmds): Adjust. | |
8479 | * mi/mi-main.c (mi_cmd_exec_run): New. | |
8480 | ||
06cd862c PA |
8481 | 2010-02-24 Pedro Alves <[email protected]> |
8482 | Stan Shebs <[email protected]> | |
8483 | ||
8484 | * tracepoint.h (set_traceframe_number) | |
8485 | (cleanup_restore_current_traceframe): Declare. | |
8486 | * tracepoint.c (set_traceframe_number): New. | |
8487 | (struct current_traceframe_cleanup): New. | |
8488 | (do_restore_current_traceframe_cleanup) | |
8489 | (restore_current_traceframe_cleanup_dtor) | |
8490 | (make_cleanup_restore_current_traceframe): New. | |
8491 | * infrun.c: Include tracepoint.h. | |
8492 | (fetch_inferior_event): Switch out and in of tfind mode. | |
8493 | ||
ab92d69b PA |
8494 | 2010-02-24 Pedro Alves <[email protected]> |
8495 | ||
8496 | * breakpoint.c (breakpoint_init_inferior): Also delete | |
8497 | bp_shlib_event breakpoints. | |
8498 | * solib-frv.c (enable_break): Remove call to | |
8499 | remove_solib_event_breakpoints. | |
8500 | * solib-svr4.c (enable_break): Ditto. | |
8501 | * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. | |
8502 | * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. | |
8503 | * solib-som.c (som_solib_create_inferior_hook): Ditto. | |
8504 | * solib-spu.c (spu_enable_break): Ditto. | |
8505 | ||
e707a91d PA |
8506 | 2010-02-23 Harald Koenig <[email protected]> |
8507 | ||
8508 | * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE. | |
8509 | ||
cfce2ea2 PA |
8510 | 2010-02-23 Harald Koenig <[email protected]> |
8511 | ||
8512 | * varobj.c (varobj_update): Avoid non-constants in initializers. | |
8513 | ||
05566b3b TT |
8514 | 2010-02-23 Tom Tromey <[email protected]> |
8515 | ||
8516 | * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly | |
8517 | handle big-endian values. | |
8518 | (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise. | |
8519 | ||
85d721b8 PA |
8520 | 2010-02-22 Pedro Alves <[email protected]> |
8521 | ||
8522 | PR9605 | |
8523 | ||
8524 | gdb/ | |
8525 | * breakpoint.c (insert_bp_location): If inserting the read | |
8526 | watchpoint failed, fallback to an access watchpoint. | |
8527 | (bpstat_check_watchpoint): Stop for read watchpoint triggers even | |
8528 | if the value changed, if not watching the same memory for writes. | |
8529 | (watchpoint_locations_match): Add comment. | |
8530 | (update_global_location_list): Copy the location's watchpoint type. | |
8531 | * i386-nat.c (i386_length_and_rw_bits): It's an internal error to | |
8532 | handle read watchpoints here. | |
8533 | (i386_insert_watchpoint): Read watchpoints aren't supported. | |
8534 | * remote.c (remote_insert_watchpoint): Return 1 for unsupported | |
8535 | packets. | |
8536 | * target.h (target_insert_watchpoint): Update description. | |
8537 | ||
48ea67a7 TT |
8538 | 2010-02-19 Tom Tromey <[email protected]> |
8539 | ||
8540 | * p-typeprint.c (pascal_type_print_varspec_prefix): Update. | |
8541 | * m2-typeprint.c (m2_print_type): Update. | |
8542 | * gdbtypes.c (recursive_dump_type): Update. | |
8543 | (copy_type_recursive): Update. | |
8544 | * c-typeprint.c (c_type_print_varspec_prefix): Update. | |
8545 | (c_type_print_base): Update. | |
8546 | * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG): | |
8547 | Remove. | |
8548 | (struct cplus_struct_type) <ntemplate_args>: Remove. | |
8549 | <struct template_arg>: Remove. | |
8550 | <is_dynamic>: Move earlier. | |
8551 | (TYPE_TEMPLATE_ARGS): Remove. | |
8552 | (TYPE_NTEMPLATE_ARGS): Remove. | |
8553 | (TYPE_TEMPLATE_ARG): Remove. | |
8554 | ||
48e32051 TT |
8555 | 2010-02-19 Tom Tromey <[email protected]> |
8556 | ||
8557 | PR c++/8693, PR c++/9496: | |
8558 | * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. | |
8559 | * c-exp.y (lex_one_token): Rename from yylex. Don't call | |
8560 | write_dollar_variable. Don't try to classify NAME tokens. | |
8561 | (token_and_value): New type. | |
8562 | (token_fifo, popping, name_obstack): New globals. | |
8563 | (classify_name): New function. | |
8564 | (classify_inner_name): Likewise. | |
8565 | (yylex): Likewise. | |
8566 | (VARIABLE): Now has type sval. | |
8567 | (exp : VARIABLE): Call write_dollar_variable. | |
8568 | (qualified_name): Use TYPENAME, not typebase. Add production for | |
8569 | multiple "::" instances. | |
8570 | (variable): Use name_not_typename. | |
8571 | (qualified_type): Remove. | |
8572 | (typebase): Update. | |
8573 | ||
672d9c23 JK |
8574 | 2010-02-19 Jan Kratochvil <[email protected]> |
8575 | ||
8576 | * symfile.c (addr_info_make_relative): Extend comment. Move SECT to | |
8577 | a more inner block. Initialize ADDR by LOWER_OFFSET only if it was | |
8578 | found by bfd_get_section_by_name. | |
8579 | * symfile.h (struct section_addr_info) <sectindex>: New comment. | |
8580 | ||
bfbf3774 JB |
8581 | 2010-02-19 Joel Brobecker <[email protected]> |
8582 | ||
8583 | * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since | |
8584 | 7.0 section" into "Changes in 7.1". | |
8585 | ||
6756b09b | 8586 | 2010-02-19 Joel Brobecker <[email protected]> |
8587 | ||
8588 | GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC) | |
8589 | * version.in: Bump version to 7.1.50.20100219-cvs. | |
8590 | ||
202b96c1 PA |
8591 | 2010-02-18 Harald Koenig <[email protected]> |
8592 | ||
8593 | * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. | |
8594 | * symfile.c (symfile_map_offsets_to_segments): Fix assertion. | |
8595 | ||
de2e5182 TT |
8596 | 2010-02-17 Tom Tromey <[email protected]> |
8597 | ||
8598 | * NEWS: Add Python API Improvements section. | |
8599 | ||
7280022e DJ |
8600 | 2010-02-18 Daniel Jacobowitz <[email protected]> |
8601 | ||
8602 | * NEWS: Correct typo. | |
8603 | ||
6f451e5e TT |
8604 | 2010-02-17 Tom Tromey <[email protected]> |
8605 | ||
8606 | * objfiles.c (gdb_bfd_ref): Handle abfd==NULL. | |
8607 | ||
012836ea JK |
8608 | 2010-02-17 Jan Kratochvil <[email protected]> |
8609 | ||
8610 | * symfile.c (build_section_addr_info_from_objfile): Include sections | |
8611 | only if they are SEC_ALLOC or SEC_LOAD. | |
8612 | ||
d182d057 L |
8613 | 2010-02-17 H.J. Lu <[email protected]> |
8614 | ||
8615 | PR shlibs/11293 | |
8616 | * solib-svr4.c (enable_break): Check size of CORE_ADDR instead | |
8617 | of ULONGEST for address size. | |
8618 | ||
4eef138c TT |
8619 | 2010-02-17 Tom Tromey <[email protected]> |
8620 | ||
8621 | * NEWS: Add C++ improvements section. | |
8622 | ||
548a926a UW |
8623 | 2010-02-17 Ulrich Weigand <[email protected]> |
8624 | ||
8625 | * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, | |
8626 | PyThreadState_Swap): Avoid "statement with no effect" warning. | |
8627 | ||
ad3a0e5b JK |
8628 | 2010-02-17 Jan Kratochvil <[email protected]> |
8629 | ||
8630 | * solib-svr4.c (enable_break <target_auxv_search>): New variable | |
8631 | addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors. | |
8632 | ||
243e2c5d | 8633 | 2010-02-17 Tristan Gingold <[email protected]> |
b2319725 | 8634 | Petr Hluzin <[email protected]> |
243e2c5d TG |
8635 | |
8636 | * avr-tdep.c (avr_scan_prologue): Convert an if statement to a | |
8637 | gdb_assert. Fix info->size for SIG prologue. | |
8638 | ||
275f2e57 DJ |
8639 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
8640 | ||
8641 | * infcmd.c (show_inferior_tty_command): Check for NULL. | |
8642 | Correct output message. | |
8643 | ||
791dfb64 DJ |
8644 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
8645 | ||
8646 | * linespec.c (decode_line_1): Handle FILE:FUNCTION even if | |
8647 | FUNCTION contains parentheses. Improve removal of a trailing | |
8648 | single quote. | |
8649 | ||
14d1346b DJ |
8650 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
8651 | ||
8652 | * gcore.c (do_bfd_delete_cleanup): New function. | |
8653 | (gcore_command): Use it. Discard the cleanup after success. | |
8654 | (gcore_copy_callback): Delete dead code. | |
8655 | ||
e76ab67f DJ |
8656 | 2010-02-16 Daniel Jacobowitz <[email protected]> |
8657 | ||
8658 | * symfile.c (addr_info_make_relative): Always use | |
8659 | find_lowest_section. | |
8660 | ||
71dee663 SW |
8661 | 2010-02-16 Sami Wagiaalla <[email protected]> |
8662 | ||
8663 | * NEWS: Added entry for namespace fixes. | |
8664 | ||
a9854bd5 TT |
8665 | 2010-02-15 Tom Tromey <[email protected]> |
8666 | ||
8667 | * dwarf2read.c (guess_structure_name): Allocate name on the | |
8668 | objfile obstack. | |
8669 | ||
fd9e29b5 TT |
8670 | 2010-02-15 Tom Tromey <[email protected]> |
8671 | ||
8672 | * c-typeprint.c (c_type_print_base): Reverse order of test. | |
8673 | ||
4e1fc9c9 JK |
8674 | 2010-02-15 Jan Kratochvil <[email protected]> |
8675 | ||
8676 | * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally | |
8677 | initialize it from ELF BFD. Extend the prelink condition by it. | |
8678 | ||
74164c56 JK |
8679 | 2010-02-15 Jan Kratochvil <[email protected]> |
8680 | ||
8681 | * defs.h (parse_pid_to_attach): New. | |
8682 | * utils.c (parse_pid_to_attach): New. | |
8683 | * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid. | |
8684 | * gnu-nat.c (gnu_attach): Likewise. | |
8685 | * nto-procfs.c (procfs_attach): Likewise. | |
8686 | * procfs.c (procfs_attach): Likewise. | |
8687 | * windows-nat.c (windows_attach): Likewise. | |
8688 | * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy. | |
8689 | * inf-ttrace.c (inf_ttrace_attach): Likewise. | |
8690 | * remote.c (extended_remote_attach_1): Likewise. New comment on getpid | |
8691 | check. | |
8692 | ||
bf6adea8 MM |
8693 | 2010-02-14 Masaki Muranaka <[email protected]> |
8694 | ||
8695 | * MAINTAINERS: Add myself for write after approval privileges. | |
8696 | ||
28f34a8f JK |
8697 | 2010-02-13 Jan Kratochvil <[email protected]> |
8698 | ||
8699 | * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner | |
8700 | block. | |
8701 | ||
701ed6dc JK |
8702 | 2010-02-13 Jan Kratochvil <[email protected]> |
8703 | ||
8704 | * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment | |
8705 | only if INFO_VERBOSE. | |
8706 | ||
e5829bee MS |
8707 | 2010-02-12 Tomas Holmberg <[email protected]> |
8708 | ||
8709 | * mi/mi-main.c: Added the --reverse flag to the following MI | |
8710 | commands: exec-continue, exec-finish, exec-next, exec-step, | |
8711 | exec-next-instruction, exec-step-instruction. This is to | |
8712 | support reverse execution over the MI interface to gdb. | |
8713 | ||
081dfbf7 PA |
8714 | 2010-02-12 Pedro Alves <[email protected]> |
8715 | ||
8716 | * tracepoint.c (_initialize_tracepoint): Specify that the address | |
8717 | range of `tfind outsize' is exclusive, and that the address range | |
8718 | of `tfind range' is inclusive, in the commands' help strings. | |
8719 | ||
ecc13e53 JB |
8720 | 2010-02-12 Joel Brobecker <[email protected]> |
8721 | ||
8722 | Spurious "dll not found" error messages on x64-windows. | |
8723 | * windows-nat.c: Add include of complaints.h. | |
8724 | (handle_unload_dll): Change dll-not-found error into a complaint. | |
8725 | ||
15c3d785 PA |
8726 | 2010-02-12 Pedro Alves <[email protected]> |
8727 | ||
8728 | * breakpoint.c (allocate_bp_location): Use bp_loc_other for | |
8729 | bp_tracepoint and bp_fast_tracepoint, not | |
8730 | bp_loc_software_breakpoint. | |
8731 | (update_global_location_list): Tracepoints are never duplicates of | |
8732 | anything. | |
8733 | ||
fd9b8c24 PA |
8734 | 2010-02-12 Pedro Alves <[email protected]> |
8735 | ||
8736 | * breakpoint.c (break_command_really): Change return type to int. | |
8737 | Return false if no breakpoint was created, true otherwise. | |
8738 | (trace_command): Don't set the tracepoint count if no tracepoint | |
8739 | was created. | |
8740 | (ftrace_command): Ditto. | |
8741 | (create_tracepoint_from_upload): Bail out if the tracepoint wasn't | |
8742 | created in the breakpoints table. | |
8743 | ||
5c0d192f JK |
8744 | 2010-02-11 Jan Kratochvil <[email protected]> |
8745 | Ulrich Weigand <[email protected]> | |
8746 | ||
8747 | * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition. | |
8748 | ||
5d5b640e PA |
8749 | 2010-02-11 Pedro Alves <[email protected]> |
8750 | ||
8751 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if | |
8752 | the offset value isn't of integral type. | |
8753 | ||
e5a0a904 JK |
8754 | 2010-02-11 Jan Kratochvil <[email protected]> |
8755 | ||
8756 | * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>: | |
8757 | New. | |
8758 | ||
be636754 PA |
8759 | 2010-02-11 Pedro Alves <[email protected]> |
8760 | ||
8761 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on | |
8762 | non-subscriptable types. | |
8763 | * valarith.c (binop_types_user_defined_p): New, abstracted out | |
8764 | from ... | |
8765 | (binop_user_defined_p): ... this. | |
8766 | * value.h (binop_types_user_defined_p): Declare. | |
8767 | ||
10ef8d6a PA |
8768 | 2010-02-11 Pedro Alves <[email protected]> |
8769 | ||
8770 | * tracepoint.c (tfile_open): Remove spurious discard_cleanups. | |
8771 | Merge uploaded TSVs before merging uploaded tracepoints. | |
8772 | ||
b1028c8e PA |
8773 | 2010-02-11 Pedro Alves <[email protected]> |
8774 | ||
8775 | * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers. | |
8776 | ||
7a93fb82 | 8777 | 2010-02-11 Vladimir Prus <[email protected]> |
84d90c10 | 8778 | |
7a93fb82 VP |
8779 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra |
8780 | whitespace character after a dot in comment. | |
8781 | (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): | |
8782 | Likewise. | |
8783 | (list_args_or_locals): For the 'all' (that is | |
8784 | -stack-list-variables) case, always output list of tuples. | |
8785 | Output 'arg' field if variable is argument. | |
84d90c10 | 8786 | |
92981e24 TT |
8787 | 2010-02-10 Tom Tromey <[email protected]> |
8788 | ||
8789 | * parser-defs.h (parser_debug): Declare. | |
8790 | * parse.c (_initialize_parse): Install "debug parser" set/show | |
8791 | command. | |
8792 | (parser_debug): New global. | |
8793 | (show_parserdebug): New function. | |
8794 | * c-exp.y (c_parse): Set yydebug. | |
8795 | ||
9fd3625f L |
8796 | 2010-02-10 H.J. Lu <[email protected]> |
8797 | ||
8798 | * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, | |
8799 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
8800 | (tdesc_predefined_types): Add i387_ext, i386_eflags and | |
8801 | i386_mxcsr. | |
8802 | (tdesc_find_type): New. | |
8803 | (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, | |
8804 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
8805 | ||
8806 | * target-descriptions.h (tdesc_find_type): New. | |
8807 | ||
2fe842e5 MS |
8808 | 2010-02-10 Michael Snyder <[email protected]> |
8809 | ||
8810 | * gdb-gdb.py: Comment fix. | |
8811 | ||
f18b4cab TG |
8812 | 2010-02-09 Tristan Gingold <[email protected]> |
8813 | ||
8814 | * machoread.c (macho_symfile_relocate): New function. | |
8815 | (macho_sym_fns): Use macho_symfile_relocate instead of | |
8816 | default_symfile_relocate. | |
8817 | (macho_oso_data): New type. | |
8818 | (current_oso): New variable. | |
8819 | (macho_add_oso_symfile): Do not compute section_addr_info, but | |
8820 | instead set vma of sections. | |
8821 | Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. | |
8822 | Set and clear current_oso. | |
8823 | ||
31dbc1c5 JB |
8824 | 2010-02-09 Joel Brobecker <[email protected]> |
8825 | ||
8826 | Wrong type description for tagged type parameter. | |
8827 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
8828 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
8829 | reference to a tagged type. | |
8830 | ||
399f313b TG |
8831 | 2010-02-09 Tristan Gingold <[email protected]> |
8832 | ||
8833 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
8834 | brothers of the parent. | |
8835 | ||
714f19d5 TT |
8836 | 2010-02-08 Tom Tromey <[email protected]> |
8837 | ||
8838 | PR c++/8017: | |
8839 | * value.h: Update. | |
8840 | * valops.c (search_struct_field): Make 'name' const. | |
8841 | (search_struct_method): Likewise. | |
8842 | (find_method_list): Make 'method' const. | |
8843 | (value_struct_elt): Make 'name' and 'err' const. | |
8844 | (value_find_oload_method_list): Make 'method' const. | |
8845 | (find_overload_match): Make 'name' const. | |
8846 | * eval.c (evaluate_subexp_standard): New locals function, | |
8847 | function_name. | |
8848 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
8849 | ||
de0a0249 UW |
8850 | 2010-02-08 Ulrich Weigand <[email protected]> |
8851 | ||
8852 | * infrun.c (handle_inferior_event): Do not look up regcache | |
8853 | for exited processes. | |
8854 | ||
8d95cc3b | 8855 | 2010-02-08 Chris Moller <[email protected]> |
83b10087 CM |
8856 | |
8857 | PR gdb/10728 | |
8858 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
8d95cc3b | 8859 | warn if found, and assume length = 1. |
83b10087 | 8860 | |
99903ae3 CM |
8861 | 2010-02-08 Chris Moller <[email protected]> |
8862 | ||
8863 | PR gdb/9067 | |
8864 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
6036c742 | 8865 | (cp_print_static_field) Fix use of obstacks. |
8d95cc3b | 8866 | |
e3e9f5a2 PA |
8867 | 2010-02-08 Pedro Alves <[email protected]> |
8868 | ||
8869 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
8870 | resumed LWPs as resumed. | |
8871 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
8872 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
8873 | of throwing an internal error. If an LWP of a process we're not | |
8874 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
8875 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
8876 | go through all LWPs cancelling breakpoints in non-stop mode. | |
8877 | (resume_stopped_resumed_lwps): New. | |
8878 | (linux_nat_wait): Use it. | |
8879 | ||
46763423 L |
8880 | 2010-02-07 H.J. Lu <[email protected]> |
8881 | ||
8882 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
8883 | i386/amd64 and i386/amd64-linux. | |
8884 | (i386/i386-expedite): New. | |
8885 | (i386/i386-linux-expedite): Likewise. | |
8886 | (i386/amd64-expedite):Likewise. | |
8887 | (i386/amd64-linux-expedite): Likewise. | |
8888 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
8889 | ($(outdir)/i386/amd64.dat): Likewise. | |
8890 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
8891 | ||
8892 | * features/i386/32bit-core.xml: New. | |
8893 | * features/i386/32bit-linux.xml: Likewise. | |
8894 | * features/i386/32bit-sse.xml: Likewise. | |
8895 | * features/i386/64bit-core.xml: Likewise. | |
8896 | * features/i386/64bit-linux.xml: Likewise. | |
8897 | * features/i386/64bit-sse.xml: Likewise. | |
8898 | * features/i386/i386-linux.xml: Likewise. | |
8899 | * features/i386/i386.xml: Likewise. | |
8900 | * features/i386/amd64-linux.xml: Likewise. | |
8901 | * features/i386/amd64.xml: Likewise. | |
8902 | * features/i386/i386-linux.c: Likewise. | |
8903 | * features/i386/i386.c: Likewise. | |
8904 | * features/i386/amd64-linux.c: Likewise. | |
8905 | * features/i386/amd64.c: Likewise. | |
8906 | ||
82856980 SW |
8907 | 2010-02-05 Sami Wagiaalla <[email protected]> |
8908 | ||
8909 | PR c++/7935: | |
8910 | * cp-support.h: Added char* alias element to using_direct data | |
8911 | struct. | |
8912 | (cp_add_using): Added char* alias argument. | |
8913 | (cp_add_using_directive): Ditto. | |
8914 | * cp-namespace.c: Updated with the above changes. | |
8915 | (cp_lookup_symbol_imports): Check for aliases. | |
8916 | * dwarf2read.c (read_import_statement): Figure out local alias | |
8917 | for the import and pass it on to cp_add_using. | |
8918 | (read_namespace): Pass alias argument to cp_add_using. | |
8919 | ||
d18b8b7a HZ |
8920 | 2010-02-05 Hui Zhu <[email protected]> |
8921 | ||
8922 | * defs.h (gdb_bfd_errmsg): New extern. | |
8923 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
8924 | gdb_bfd_errmsg. | |
8925 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
8926 | (AMBIGUOUS_MESS2): New macro. | |
8927 | (gdb_bfd_errmsg): New function. | |
8928 | ||
48379de6 DE |
8929 | 2010-02-04 Doug Evans <[email protected]> |
8930 | ||
8931 | * solib-svr4.c (enable_break): Add comment. | |
8932 | ||
4ee73e90 AG |
8933 | 2010-02-04 Anthony Green <[email protected]> |
8934 | ||
8935 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
8936 | gracefully. | |
8937 | ||
1a334831 TT |
8938 | 2010-02-04 Tom Tromey <[email protected]> |
8939 | ||
8940 | * valops.c (search_struct_field): Account for | |
8941 | value_embedded_offset. Fix check for virtual base past the end of | |
8942 | the object. Use value_copy when making a slice of the value. | |
8943 | ||
1180b2c8 L |
8944 | 2010-02-04 H.J. Lu <[email protected]> |
8945 | ||
8946 | PR tui/9622 | |
8947 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
8948 | only if gdb_stdout is a tty. | |
8949 | ||
c3f08eb7 L |
8950 | 2010-02-04 H.J. Lu <[email protected]> |
8951 | ||
8952 | * target-descriptions.c: Include "osabi.h". | |
8953 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
8954 | OSABI. | |
8955 | ||
2d33f7b8 TG |
8956 | 2010-02-04 Tristan Gingold <[email protected]> |
8957 | ||
8958 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
8959 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
8960 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
8961 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
8962 | (macho_new_init): Move this function after declarations. | |
8963 | (macho_symfile_init): Ditto. | |
8964 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
8965 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
8966 | ||
11334b82 VP |
8967 | 2010-02-04 Vladimir Prus <[email protected]> |
8968 | ||
8969 | Include MI command in remotelog. | |
8970 | ||
8971 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
8972 | ||
ff97be06 L |
8973 | 2010-02-03 H.J. Lu <[email protected]> |
8974 | ||
8975 | * remote.c (remote_state): Remove gdbarch. | |
8976 | (init_remote_state): Don't set gdbarch. | |
8977 | (remote_query_supported): Pass target_gdbarch instead of | |
8978 | rs->gdbarch to gdbarch_qsupported. | |
8979 | ||
75cebea9 L |
8980 | 2010-02-03 H.J. Lu <[email protected]> |
8981 | ||
8982 | * gdbarch.sh: Add qsupported. | |
8983 | ||
8984 | * gdbarch.c: Regenerated. | |
8985 | * gdbarch.h: Likewise. | |
8986 | ||
8987 | * remote.c (remote_state): Add gdbarch. | |
8988 | (init_remote_state): Set gdbarch. | |
8989 | (remote_query_supported): Support gdbarch_qsupported. | |
8990 | ||
c1dec97b DJ |
8991 | 2010-02-03 Daniel Jacobowitz <[email protected]> |
8992 | ||
8993 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
8994 | __FreeBSD_kernel_version. | |
8995 | ||
ac8035ab TG |
8996 | 2010-02-03 Tristan Gingold <[email protected]> |
8997 | ||
8998 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
8999 | (default_symfile_relocate): New prototype. | |
9000 | (symfile_relocate_debug_section): First argument is now an objfile. | |
9001 | * symfile.c (default_symfile_relocate): Rename from | |
9002 | symfile_relocate_debug_section, first argument is now an objfile. | |
9003 | (symfile_relocate_debug_section): New function. | |
9004 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
9005 | * somread.c (som_sym_fns): Ditto. | |
9006 | * mipsread.c (ecoff_sym_fns): Ditto. | |
9007 | * machoread.c (macho_sym_fns): Ditto. | |
9008 | * elfread.c (elf_sym_fns): Ditto. | |
9009 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
9010 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
9011 | * dbxread.c (aout_sym_fns): Ditto. | |
9012 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
9013 | (elfstab_build_psymtabs): Ditto. | |
9014 | ||
be52b756 L |
9015 | 2010-02-03 H.J. Lu <[email protected]> |
9016 | ||
9017 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
9018 | ||
9c3c02fd TT |
9019 | 2010-02-02 Tom Tromey <[email protected]> |
9020 | ||
9021 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
9022 | type. | |
9023 | ||
f23f4c59 TT |
9024 | 2010-02-02 Tom Tromey <[email protected]> |
9025 | ||
9026 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
9027 | (gnuv2_baseclass_offset): Now static. | |
9028 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
9029 | * gnu-v2-abi.h: Remove. | |
9030 | ||
0cc2414c TT |
9031 | 2010-02-02 Tom Tromey <[email protected]> |
9032 | ||
9033 | * m2-typeprint.c (m2_record_fields): Don't use | |
9034 | TYPE_DECLARED_TYPE. | |
9035 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
9036 | (struct main_type) <flag_declared_class>: New field. | |
9037 | (struct cplus_struct_type) <declared_type>: Remove. | |
9038 | <ntemplate_args>: Move earlier. | |
9039 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
9040 | (DECLARED_TYPE_TEMPLATE): Remove. | |
9041 | (TYPE_DECLARED_TYPE): Remove. | |
9042 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
9043 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
9044 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
9045 | TYPE_DECLARED_TYPE. | |
9046 | ||
edf3d5f3 TT |
9047 | 2010-02-02 Tom Tromey <[email protected]> |
9048 | ||
9049 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
9050 | * valops.c (search_struct_field): Compute nbases after calling | |
9051 | CHECK_TYPEDEF. | |
9052 | (check_field): Call CHECK_TYPEDEF. | |
9053 | * cp-valprint.c (cp_print_value): Pass correct address to | |
9054 | baseclass_offset. Fix check for virtual base past the end of the | |
9055 | object. Don't offset address passed to cp_print_value_fields or | |
9056 | apply_val_pretty_printer. | |
9057 | (cp_print_value_fields): Fix call to val_print. | |
9058 | (cp_print_value_fields_rtti): New function. | |
9059 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
9060 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
9061 | val_print. | |
9062 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
9063 | offset to address. | |
9064 | * language.h (struct language_defn) <la_val_print>: Document. | |
9065 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
9066 | ||
e4b7f41c JK |
9067 | 2010-02-01 Jan Kratochvil <[email protected]> |
9068 | ||
9069 | PR libc/11214: | |
9070 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
9071 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
9072 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
9073 | ||
7618e12b DJ |
9074 | 2010-02-01 Michael Matz <[email protected]> |
9075 | Daniel Jacobowitz <[email protected]> | |
9076 | ||
e4b7f41c | 9077 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
9078 | functions use a frame pointer. |
9079 | ||
b381ea14 JK |
9080 | 2010-02-01 Jan Kratochvil <[email protected]> |
9081 | ||
9082 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
9083 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
9084 | * config/djgpp/fnchange.lst: Add translations for | |
9085 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
9086 | ||
0e05dfcb DJ |
9087 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
9088 | ||
9089 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
9090 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
9091 | * gdbarch.c: Regenerated. | |
9092 | ||
f9d67f43 DJ |
9093 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
9094 | ||
9095 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
9096 | arm_pc_is_thumb. | |
9097 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
9098 | (extend_buffer_earlier): New function. | |
9099 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
9100 | (arm_adjust_breakpoint_address): New function. | |
9101 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
9102 | ||
177321bd DJ |
9103 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
9104 | ||
9105 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
9106 | (arm_linux_thumb2_le_breakpoint): New constants. | |
9107 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
9108 | thumb2_breakpoint_size. | |
9109 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
9110 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
9111 | Implement support for single stepping through IT blocks if | |
9112 | a 32-bit Thumb breakpoint instruction is available. | |
9113 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
9114 | is available, use it when needed. | |
9115 | (arm_remote_breakpoint_from_pc): New function. | |
9116 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
9117 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
9118 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
9119 | ||
a1dcb23a DJ |
9120 | 2010-02-01 Daniel Jacobowitz <[email protected]> |
9121 | ||
9122 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
9123 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
9124 | * gdbarch.c, gdbarch.h: Regenerated. | |
9125 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
9126 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
9127 | gdbarch_remote_breakpoint_from_pc. | |
9128 | ||
2b009048 DJ |
9129 | 2010-01-29 Daniel Jacobowitz <[email protected]> |
9130 | ||
9131 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
9132 | match a breakpoint. | |
9133 | (handle_inferior_event): Move the check for unusual breakpoint | |
9134 | signals earlier. | |
9135 | ||
e4e2711a JB |
9136 | 2010-01-29 Paul Hilfinger <[email protected]> |
9137 | ||
9138 | amd64 - function returning record with field straddling 2 registers. | |
9139 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
9140 | a record of length <= 16 in which a field straddles the two | |
9141 | eightbytes. | |
9142 | ||
cba6fab5 JB |
9143 | 2010-01-29 Joel Brobecker <[email protected]> |
9144 | ||
9145 | Implement return values on amd64-windows. | |
9146 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
9147 | (amd64_windows_return_value): New function. | |
9148 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
9149 | amd64_windows_return_value. | |
9150 | ||
3af6ddfe JB |
9151 | 2010-01-29 Joel Brobecker <[email protected]> |
9152 | ||
9153 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 9154 | parameter registers. |
3af6ddfe JB |
9155 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
9156 | integer_param_regs_saved_in_caller_frame. | |
9157 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
9158 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
9159 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
9160 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
9161 | ||
80d19a06 JB |
9162 | 2010-01-29 Joel Brobecker <[email protected]> |
9163 | ||
9164 | amd64-windows: memory args passed by pointer during function calls. | |
9165 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
9166 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
9167 | where tdep->memory_args_by_pointer is non-zero. | |
9168 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
9169 | tdep->memory_args_by_pointer to 1. | |
9170 | ||
ba581dc1 JB |
9171 | 2010-01-29 Joel Brobecker <[email protected]> |
9172 | ||
4966b6c2 | 9173 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
9174 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
9175 | amd64-tdep.c. | |
9176 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
9177 | call_dummy_integer_regs, and classify. | |
9178 | * amd64-tdep.h (amd64_classify): Add declaration. | |
9179 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
9180 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
9181 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
9182 | Replace call to amd64_classify by call to tdep->classify. | |
9183 | (amd64_push_arguments): Get the list of registers to use for | |
9184 | passing integer parameters from the gdbarch tdep structure, | |
9185 | rather than using a hardcoded one. Replace calls to amd64_classify | |
9186 | by calls to tdep->classify. | |
9187 | (amd64_push_dummy_call): Get the register number used for | |
9188 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
9189 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
9190 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
9191 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
9192 | (amd64_windows_dummy_call_integer_regs): New static global. | |
9193 | (amd64_windows_classify): New function. | |
9194 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
9195 | tdep->call_dummy_integer_regs and tdep->classify. | |
9196 | ||
d37346f0 DJ |
9197 | 2010-01-28 Daniel Jacobowitz <[email protected]> |
9198 | ||
9199 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
9200 | for the new regcache. All callers updated. | |
9201 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
9202 | (get_thread_arch_regcache): Do not set aspace here. | |
9203 | * regcache.h (regcache_xmalloc): Update declaration. | |
9204 | ||
9205 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
9206 | regcache_xmalloc updated. | |
9207 | ||
7434dadd JB |
9208 | 2010-01-28 Joel Brobecker <[email protected]> |
9209 | ||
9210 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
9211 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
9212 | Only define if SYS_syssgi is defined. | |
9213 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
9214 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
9215 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
9216 | is itself defined. | |
9217 | ||
16d905e2 CF |
9218 | 2010-01-27 Christopher Faylor <[email protected]> |
9219 | ||
9220 | * windows-nat.c (windows_initialization_done): New variable. | |
9221 | (get_windows_debug_event): Issue error when process dies before | |
9222 | completely initializing. | |
9223 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
9224 | the initial steps of attaching to the child. | |
9225 | ||
cd55e50f JK |
9226 | 2010-01-27 Jan Kratochvil <[email protected]> |
9227 | ||
9228 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
9229 | ||
99cc78aa DE |
9230 | 2010-01-27 Doug Evans <[email protected]> |
9231 | ||
4c7dcb84 DE |
9232 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
9233 | ||
99cc78aa DE |
9234 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
9235 | ||
52334bf5 JK |
9236 | 2010-01-27 Jan Kratochvil <[email protected]> |
9237 | ||
9238 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
9239 | objfile via SYMBOL_SYMTAB. | |
9240 | ||
708ead4e TT |
9241 | 2010-01-26 Tom Tromey <[email protected]> |
9242 | ||
9243 | PR exp/7643: | |
9244 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
9245 | coerce_array on result. | |
9246 | ||
b14e635e SW |
9247 | 2010-01-26 Sami Wagiaalla <[email protected]> |
9248 | ||
9249 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
9250 | search_parent argument. | |
9251 | (cp_add_using): Initialize 'searched' field. | |
9252 | (reset_directive_searched): New function. | |
9253 | * cp-support.h: Add 'searched' field to using_direct struct. | |
9254 | (cp_lookup_symbol_imports): Ditto. | |
9255 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
9256 | Perform recursive search. | |
9257 | Implement non parent search. | |
9258 | * valops.c (value_maybe_namespace_elt): Updated. | |
9259 | ||
8540c487 SW |
9260 | 2010-01-26 Sami Wagiaalla <[email protected]> |
9261 | ||
9262 | PR gdb/10929: | |
9263 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
9264 | scopes which contain using directives even if they contain no | |
9265 | declarations. | |
9266 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
9267 | la_lookup_symbol_nonlocal. | |
9268 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
9269 | cp_lookup_symbol_namespace. | |
9270 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
9271 | block level. | |
9272 | (cp_lookup_symbol_imports): New function. | |
9273 | (cp_lookup_symbol_in_namespace): New function. | |
9274 | ||
421d5d99 TT |
9275 | 2010-01-25 Tom Tromey <[email protected]> |
9276 | ||
9277 | PR gdb/11049: | |
9278 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
9279 | result. | |
9280 | ||
6bcc772d RO |
9281 | 2010-01-25 Rainer Orth <[email protected]> |
9282 | ||
9283 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
9284 | Use test to check variables, prefix strings with x. | |
9285 | * configure: Regenerate. | |
9286 | ||
9287 | * solib-osf.c (osf_current_sos): Initialize tail. | |
9288 | ||
1c1238a5 TG |
9289 | 2010-01-25 gingold <[email protected]> |
9290 | ||
c8d5aac9 L |
9291 | * windows-nat.c (windows_continue): Use %x to print thread id. |
9292 | (get_windows_debug_event): Ditto. | |
1c1238a5 | 9293 | |
0b92b5bb TT |
9294 | 2010-01-22 Tom Tromey <[email protected]> |
9295 | ||
9296 | PR symtab/11199: | |
9297 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
9298 | type and arguments. Use smash_to_methodptr_type. | |
9299 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
9300 | later. | |
9301 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
9302 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
9303 | (lookup_methodptr_type): Use it. | |
9304 | ||
0d5392b8 TT |
9305 | 2010-01-21 Tom Tromey <[email protected]> |
9306 | ||
9307 | PR symtab/11198: | |
9308 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
9309 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
9310 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
9311 | (glibc_skip_solib_resolver): Use | |
9312 | lookup_minimal_symbol_and_objfile. | |
9313 | ||
e6d088ec KT |
9314 | 2010-01-21 Kai Tietz <[email protected]> |
9315 | ||
9316 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
9317 | WIN32 targets. | |
9318 | ||
b966cb8a TT |
9319 | 2010-01-20 Tom Tromey <[email protected]> |
9320 | ||
9321 | PR backtrace/10770: | |
9322 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
9323 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
9324 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
9325 | dwarf_stack_values, not CORE_ADDRs. | |
9326 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
9327 | use signed operands. | |
9328 | ||
3f81c18a VP |
9329 | 2010-01-20 Vladimir Prus <[email protected]> |
9330 | ||
9331 | Per-inferior args and tty and environment. | |
9332 | ||
9333 | * infcmd.c (inferior_args): Rename to ... | |
9334 | (inferior_args_scratch): ... this. | |
9335 | (inferior_io_terminal): Rename to ... | |
9336 | (inferior_io_terminal_scratch): ... this. | |
9337 | (inferior_argc, inferior_argv): Remove. | |
9338 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
9339 | inside current_inferior(). | |
9340 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
9341 | (get_inferior_args, set_inferior_args): Store inside | |
9342 | current_inferior(). | |
9343 | (notice_args_set): Likewise and rename to... | |
9344 | (set_args_command): ... this. | |
9345 | (set_inferior_args_vector): Likewise. | |
9346 | (notice_args_read): Rename to... | |
9347 | (show_args_command): ...new. | |
9348 | (tty_command): Remove. | |
9349 | (run_command_1): Don't free old args, as they are freed by | |
9350 | set_inferior_arg now. | |
9351 | (run_no_args_command): Likewise. | |
9352 | (inferior_environ): Remove. | |
9353 | (run_command_1): Use environment of the current inferior. | |
9354 | (environment_info, set_environment_command) | |
9355 | (unset_environment_command, path_info, path_command): Likewise. | |
9356 | (_initialize_infcmd): Adjust for function and variable renames. | |
9357 | Do not init inferior_environ. | |
9358 | * inferior.h (set_inferior_arg): Adjust prototype. | |
9359 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
9360 | (inferior_environ): Remove declaration. | |
9361 | * inferior.c (free_inferior): Free new fields. | |
9362 | (add_inferior_silent): Initialize 'environment' field. | |
9363 | * main.c (captured_main): Set arguments only after the initial | |
9364 | inferior has been created. Set set_inferior_io_terminal, | |
9365 | not tty_command. | |
9366 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
9367 | inferior. | |
9368 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
9369 | inferior_environ. | |
9370 | * solib.c (solib_find): Use environment of the current inferior. | |
9371 | ||
d8b65138 JK |
9372 | 2010-01-20 Jan Kratochvil <[email protected]> |
9373 | ||
9374 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
9375 | HAVE_PYTHON. | |
9376 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
9377 | ||
692465f1 JB |
9378 | 2010-01-20 Joel Brobecker <[email protected]> |
9379 | ||
9380 | Get rid of ada-lang.c:function_name_from_pc. | |
9381 | * ada-lang.c: Add "stack.h" #include. | |
9382 | (function_name_from_pc): Delete. | |
9383 | (is_known_support_routine): Replace call to function_name_from_pc | |
9384 | by call to find_frame_funname. | |
9385 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
9386 | ||
95519e0e TT |
9387 | 2010-01-19 Tom Tromey <[email protected]> |
9388 | ||
9389 | PR c++/11026: | |
9390 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
9391 | objfile obstack. | |
9392 | ||
95c11dc7 TT |
9393 | 2010-01-19 Tom Tromey <[email protected]> |
9394 | ||
9395 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
9396 | ||
a0f49112 JK |
9397 | 2010-01-19 Jan Kratochvil <[email protected]> |
9398 | ||
9399 | * breakpoint.c (watchpoint_check): Check the call | |
9400 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
9401 | Extend the comment. | |
8d95cc3b | 9402 | * config/djgpp/fnchange.lst: Add translations for |
a0f49112 JK |
9403 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and |
9404 | watchpoint-cond-gone-stripped.c. | |
9405 | ||
ceeb3d5a TT |
9406 | 2010-01-19 Tom Tromey <[email protected]> |
9407 | ||
9408 | PR c++/8000: | |
9409 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
9410 | into parent scope, and enumerator into grandparent scope. | |
9411 | ||
2b71fc8e JB |
9412 | 2010-01-19 Joel Brobecker <[email protected]> |
9413 | ||
9414 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
9415 | ||
03564ed9 JB |
9416 | 2010-01-19 Joel Brobecker <[email protected]> |
9417 | ||
9418 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
9419 | i[34567]86-*-solaris2.1[0-9]*. | |
9420 | * configure.tgt: Likewise. | |
9421 | ||
fb2e7cb4 JB |
9422 | 2010-01-19 Joel Brobecker <[email protected]> |
9423 | ||
9424 | * NEWS: Document the source command enhancement allowing it | |
9425 | to load Python scripts. Document the "set/show script-extension" | |
9426 | commands. | |
9427 | ||
1cb5e2a4 JB |
9428 | 2010-01-19 Joel Brobecker <[email protected]> |
9429 | ||
9430 | Add -Wunused-function to compile flags. | |
9431 | * configure.ac: Add -Wunused-function to build_warnings. | |
9432 | * configure: Regenerate. | |
9433 | ||
0ec6cd0c JB |
9434 | 2010-01-19 Joel Brobecker <[email protected]> |
9435 | ||
9436 | "delete" ada-lex.c:input function, not used. | |
9437 | * ada-lex.l: #define YY_NO_INPUT. | |
9438 | ||
b74845da JB |
9439 | 2010-01-19 Joel Brobecker <[email protected]> |
9440 | ||
9441 | Delete free_named_symtabs and associated cleanup. | |
9442 | * symfile.h (free_named_symtabs): Delete declaration. | |
9443 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
9444 | (cashier_psymtab): Comment function out. | |
9445 | Delete declaration. | |
9446 | (free_named_symtabs): Delete. | |
9447 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
9448 | * dbxread.c (end_psymtab): Likewise. | |
9449 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
9450 | * exec.c (exec_close_1): Ditto. | |
9451 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
9452 | ||
65c06092 JB |
9453 | 2010-01-19 Joel Brobecker <[email protected]> |
9454 | ||
9455 | * stack.c (print_block_frame_labels): Comment function out. | |
9456 | ||
d5cd6034 JB |
9457 | 2010-01-19 Joel Brobecker <[email protected]> |
9458 | ||
9459 | Delete unused or undefined functions. | |
9460 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
9461 | * dcache.c (dcache_write_line): Remove declaration. | |
9462 | * infrun.c (build_infrun): Remove declaration. | |
9463 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
9464 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
9465 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
9466 | * infrun.c (init_execution_control_state): Delete. | |
9467 | (proceed): Update comment to avoid mentioning | |
9468 | init_execution_control_state. | |
9469 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
9470 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
9471 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
9472 | * cp-namespace.c (cp_copy_usings): Delete. | |
9473 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
9474 | * progspace.c (find_program_space_by_num): Delete. | |
9475 | * inflow.c (handle_sigio): Delete declaration. | |
9476 | * hppa-tdep.c (hppa_alignof): Delete. | |
9477 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
9478 | (mipsnbsd_core_osabi_sniffer): Delete. | |
9479 | ||
4e8f195d TT |
9480 | 2010-01-18 Tom Tromey <[email protected]> |
9481 | ||
9482 | PR c++/9680: | |
9483 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
9484 | (CONST_CAST): New tokens. | |
9485 | (exp): Add new productions. | |
9486 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
9487 | reinterpret_cast. | |
9488 | (is_cast_operator): New function. | |
9489 | (yylex): Handle cast operators specially. | |
9490 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
9491 | UNOP_REINTERPRET_CAST>: New cases. | |
9492 | * expprint.c (print_subexp_standard): Likewise. | |
9493 | (op_name_standard): Likewise. | |
9494 | (dump_subexp_body_standard): Likewise. | |
9495 | * parse.c (operator_length_standard): Likewise. | |
9496 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
9497 | UNOP_REINTERPRET_CAST. | |
9498 | * gdbtypes.c (class_types_same_p): New function. | |
9499 | (is_ancestor): Use it. | |
9500 | (is_public_ancestor): New function. | |
9501 | (is_unique_ancestor_worker): Likewise. | |
9502 | (is_unique_ancestor): Likewise. | |
9503 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
9504 | (is_unique_ancestor): Declare. | |
9505 | * valops.c (value_reinterpret_cast): New function. | |
9506 | (dynamic_cast_check_1): Likewise. | |
9507 | (dynamic_cast_check_2): Likewise. | |
9508 | (value_dynamic_cast): Likewise. | |
9509 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
9510 | ||
d9c57d9f JB |
9511 | 2010-01-18 Joel Brobecker <[email protected]> |
9512 | ||
9513 | Fix build failure when building without Python support. | |
9514 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
9515 | is not defined. | |
9516 | ||
f80d3ff2 JB |
9517 | 2010-01-18 Joel Brobecker <[email protected]> |
9518 | ||
9519 | Use XVS field type instead of doing a parallel lookup. | |
9520 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
9521 | if it is a reference type instead of doing a type lookup using | |
9522 | the XVS field name. | |
9523 | ||
5bf03f13 JB |
9524 | 2010-01-18 Joel Brobecker <[email protected]> |
9525 | ||
9526 | Trust PAD types instead of using PAD___XVS. | |
9527 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
9528 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
9529 | parallel XVS type, follow the XVS type instead of the PAD type. | |
9530 | (unwrap_value): Make sure that there is no parallel XVE type | |
9531 | before returning the value as is. | |
9532 | (set_ada_list, show_ada_list): New static variables. | |
9533 | (set_ada_command, show_ada_command): New functions. | |
9534 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
9535 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
9536 | ||
973817a3 JB |
9537 | 2010-01-18 Tom Tromey <[email protected]> |
9538 | Thiago Jung Bauermann <[email protected]> | |
9539 | ||
9540 | Allow "source" to load python scripts. | |
9541 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
9542 | * python/python.c (source_python_script): New function. | |
9543 | * python/python.h (source_python_script): Add declaration. | |
9544 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
9545 | (script_ext_off, script_ext_soft, script_ext_strict) | |
9546 | (script_ext_enums, script_ext_mode): New static constants. | |
9547 | (show_script_ext_mode, find_and_open_script): New functions. | |
9548 | (source_script): Enhance to handle Python scripts. | |
9549 | (init_cli_cmds): Add set/show script-extension commands. | |
9550 | ||
98e03262 SS |
9551 | 2010-01-16 Stan Shebs <[email protected]> |
9552 | ||
9553 | * tracepoint.h (struct trace_status): Use unsigned long long | |
9554 | instead of size_t. | |
9555 | * tracepoint.c (trace_status_command): Fix printf directive. | |
9556 | (trace_save_command): Check fwrite returns, fix printf directive. | |
9557 | (trace_filename): New global. | |
9558 | (tfile_open): Set it, check read returns. | |
9559 | (tfile_close): Free trace_filename. | |
9560 | (tfile_get_traceframe_address): Check read returns. | |
9561 | (tfile_trace_find): Ditto. | |
9562 | (tfile_fetch_registers): Ditto. | |
9563 | (tfile_xfer_partial): Ditto. | |
9564 | (tfile_get_trace_state_variable_value): Ditto. | |
9565 | ||
00bf0b85 SS |
9566 | 2010-01-15 Stan Shebs <[email protected]> |
9567 | ||
9568 | Add trace file support. | |
9569 | * tracepoint.h (enum trace_stop_reason): New enum. | |
9570 | (struct trace_status): New struct. | |
9571 | (parse_trace_status): Declare. | |
9572 | (struct uploaded_tp): Move here from remote.c, | |
9573 | add fields for actions. | |
9574 | (struct uploaded_tsv): New struct. | |
9575 | * tracepoint.c (tfile_ops): New target vector. | |
9576 | (trace_fd): New global. | |
9577 | (tfile_open): New function. | |
9578 | (tfile_close): New function. | |
9579 | (tfile_files_info): New function. | |
9580 | (tfile_get_trace_status): New function. | |
9581 | (tfile_get_traceframe_address): New function. | |
9582 | (tfile_trace_find): New function. | |
9583 | (tfile_fetch_registers): New function. | |
9584 | (tfile_xfer_partial): New function. | |
9585 | (tfile_get_trace_state_variable_value): New function. | |
9586 | (init_tfile_ops): New function. | |
9587 | (_initialize_tracepoint): Call it, add tfile target. | |
9588 | (trace_status): New global. | |
9589 | (current_trace_status): New function. | |
9590 | (trace_running_p): Remove, change all users to get from | |
9591 | current_trace_status()->running. | |
9592 | (get_trace_status): Remove. | |
9593 | (trace_status_command): Call target_get_trace_status directly, | |
9594 | report more detail including tracing stop reasons. | |
9595 | (trace_find_command): Always allow tfind on a file. | |
9596 | (trace_find_pc_command): Ditto. | |
9597 | (trace_find_tracepoint_command): Ditto. | |
9598 | (trace_find_line_command): Ditto. | |
9599 | (trace_find_range_command): Ditto. | |
9600 | (trace_find_outside_command): Ditto. | |
9601 | (trace_frames_offset, cur_offset): Declare as off_t. | |
9602 | (trace_regblock_size): Rename from reg_size, update users. | |
9603 | (parse_trace_status): New function. | |
9604 | (tfile_interp_line): New function. | |
9605 | (disconnect_or_stop_tracing): Ensure current trace | |
9606 | status before asking what to do. | |
9607 | (stop_reason_names): New global. | |
9608 | (trace_save_command): New command. | |
9609 | (get_uploaded_tp): Move here from remote.c. | |
9610 | (find_matching_tracepoint): Ditto. | |
9611 | (merge_uploaded_tracepoints): New function. | |
9612 | (parse_trace_status): Use stop_reason_names. | |
9613 | (_initialize_tracepoint): Define tsave command. | |
9614 | * target.h (target_ops): New fields to_save_trace_data, | |
9615 | to_upload_tracepoints, to_upload_trace_state_variables, | |
9616 | to_get_raw_trace_data, change to_get_trace_status | |
9617 | to take a pointer to a status struct. | |
9618 | (target_save_trace_data): New macro. | |
9619 | (target_upload_tracepoints): New macro. | |
9620 | (target_upload_trace_state_variables): New macro. | |
9621 | (target_get_raw_trace_data): New macro. | |
9622 | * target.c (update_current_target): Add new methods, change | |
9623 | signature of to_get_trace_status. | |
9624 | * remote.c (hex2bin): Make globally visible. | |
9625 | (bin2hex): Ditto. | |
9626 | (remote_download_trace_state_variable): Download name also. | |
9627 | (remote_get_trace_status): Update parameter, use | |
9628 | parse_trace_status. | |
9629 | (remote_save_trace_data): New function. | |
9630 | (remote_upload_tracepoints): New function. | |
9631 | (remote_upload_trace_state_variables): New function. | |
9632 | (remote_get_raw_trace_data): New function. | |
9633 | (remote_start_remote): Use them. | |
9634 | (_initialize_remote_ops): Add operations. | |
9635 | * ax-gdb.c: Include breakpoint.h. | |
9636 | * breakpoint.c (create_tracepoint_from_upload): Use | |
9637 | break_command_really, return tracepoint, warn about unimplemented | |
9638 | parts. | |
9639 | * NEWS: Mention trace file addition. | |
9640 | ||
d904de5b JK |
9641 | 2010-01-15 Jan Kratochvil <[email protected]> |
9642 | ||
9643 | Fix compilation warning on gcc-3.4. | |
9644 | * exec.c (print_section_info): Move the `displacement' variable | |
9645 | initialization to its declaration. | |
9646 | ||
64aa9731 JK |
9647 | 2010-01-15 Jan Kratochvil <[email protected]> |
9648 | ||
9649 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
9650 | comparison. | |
9651 | ||
ca1f5def | 9652 | 2010-01-15 Eric Botcazou <[email protected]> |
9f0dec2d JB |
9653 | |
9654 | "info tasks" broken by typedefs in ATCB type definitions. | |
9655 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
9656 | ada_check_typedef before retrieving the length of the type for | |
9657 | regular fields. | |
9658 | ||
12ab9e09 JB |
9659 | 2010-01-15 Joel Brobecker <[email protected]> |
9660 | ||
9661 | Do not use name-based lookup for unconstrained packed arrays. | |
9662 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
9663 | Limit the fallback to name-based lookups to the case where | |
9664 | the type is a constrained packed array. | |
9665 | ||
c389c3dc JB |
9666 | 2010-01-15 Joel Brobecker <[email protected]> |
9667 | ||
9668 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
9669 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
9670 | ||
7991dee7 JK |
9671 | 2010-01-15 Jan Kratochvil <[email protected]> |
9672 | ||
9673 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
9674 | * configure: Regenerate. | |
9675 | * config.in: Regenerate. | |
9676 | * utils.c: Include sys/resource.h. | |
9677 | (dump_core, can_dump_core): New. | |
9678 | (internal_vproblem): Update the comment. Check can_dump_core while | |
9679 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
9680 | ||
93c26624 JK |
9681 | 2010-01-14 Jan Kratochvil <[email protected]> |
9682 | Eli Zaretskii <[email protected]> | |
9683 | ||
9684 | * NEWS: Document the PIE support. | |
9685 | ||
55235ad7 JK |
9686 | 2010-01-14 Jan Kratochvil <[email protected]> |
9687 | ||
9688 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
9689 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
9690 | ||
41752192 JK |
9691 | 2010-01-14 Jan Kratochvil <[email protected]> |
9692 | ||
9693 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
9694 | Replace exec_entry_point call by bfd_get_start_address. | |
9695 | ||
9f2982ff JK |
9696 | 2010-01-14 Jan Kratochvil <[email protected]> |
9697 | ||
9698 | Support Valgrind attachments broken by the PIE support. | |
9699 | * auxv.c: Include gdbcore.h. | |
9700 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
9701 | parameters ops, object and annex. Remove their assertions. | |
9702 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
9703 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
9704 | (memory_xfer_auxv): ... here. | |
9705 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
9706 | memory_xfer_auxv. | |
9707 | * procfs.c (procfs_xfer_partial): Likewise. | |
9708 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
9709 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
9710 | (svr4_solib_create_inferior_hook): Conditionalize the | |
9711 | svr4_relocate_main_executable call. | |
9712 | ||
61f0d762 JK |
9713 | 2010-01-14 Jan Kratochvil <[email protected]> |
9714 | ||
9715 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
9716 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
9717 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
9718 | New variable abfd. | |
9719 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
9720 | of separate debug info file. | |
9721 | ||
51bee8e9 JK |
9722 | 2010-01-14 Jan Kratochvil <[email protected]> |
9723 | ||
9724 | Support PIEs with no symfile_objfile. | |
9725 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
9726 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
9727 | ||
b8040f19 JK |
9728 | 2010-01-14 Jan Kratochvil <[email protected]> |
9729 | ||
9730 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
9731 | code part to ... | |
9732 | (svr4_static_exec_displacement): ... a new function. | |
9733 | (svr4_exec_displacement): New function. | |
9734 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
9735 | new_offsets using alloca now. Remove variable old_chain and changed. | |
9736 | Call objfile_relocate unconditionally now. | |
9737 | ||
eb90ce83 DE |
9738 | 2010-01-14 Doug Evans <[email protected]> |
9739 | ||
9740 | * gdbtypes.c (arch_flags_type): Fix comment. | |
9741 | * gdbtypes.h (arch_composite_type): Fix comment. | |
9742 | ||
bdfed3bc TG |
9743 | 2009-01-14 Tristan Gingold <[email protected]> |
9744 | ||
9745 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
9746 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
9747 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
9748 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
9749 | macho_add_oso_symfile. | |
9750 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
9751 | ||
1596ad23 JB |
9752 | 2010-01-14 Joel Brobecker <[email protected]> |
9753 | ||
9754 | Tru64: Dead threads are never deleted. | |
9755 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
9756 | (dec_thread_count_gdb_threads): Fix counter increment. | |
9757 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
9758 | (resync_thread_list): Fix bug in deletion of dead threads that | |
9759 | caused all threads to be deleted, instead of just the dead ones. | |
9760 | ||
be759fcf PM |
9761 | 2010-01-13 Phil Muldoon <[email protected]> |
9762 | ||
9763 | PR python/10705 | |
9764 | ||
9765 | * python/python-internal.h: Add lazy_string_object_type | |
9766 | definition. | |
9767 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
9768 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
9769 | * python/py-value.c (valpy_lazy_string): New function. | |
9770 | (convert_value_from_python): Add lazy string conversion. | |
9771 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
9772 | return is also a lazy string. | |
9773 | (print_string_repr): Add lazy string printing branch. | |
9774 | (print_children): Likewise. | |
9775 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
9776 | * python/python.c (_initialize_python): Call | |
9777 | gdbpy_initialize_lazy_string. | |
9778 | * varobj.c (value_get_print_value): Add lazy string printing | |
9779 | branch. Account for encoding. | |
9780 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
9781 | encoding is NULL, find encoding suited for type, otherwise use | |
9782 | user encoding. | |
9783 | * language.h (language_defn): Add encoding argument. | |
9784 | (LA_PRINT_STRING): Likewise. | |
9785 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
9786 | argument to language_defn. | |
9787 | * ada-lang.h (ada_printstr): Likewise. | |
9788 | * c-lang.h (c_printstr): Likewise. | |
9789 | * p-lang.h (pascal_printstr); | |
9790 | * f-lang.c (f_printstr): Likewise. | |
9791 | * m2-lang.c (m2_printstr): Likewise. | |
9792 | * objc-lang.c (objc_printstr): Likewise. | |
9793 | * p-lang.c (pascal_printstr): Likewise. | |
9794 | * scm-lang.c (scm_printstr): Likewise. | |
9795 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
9796 | encoding argument. | |
9797 | * ada-valprint.c (ada_printstr): Likewise. | |
9798 | * f-valprint.c (f_val_print): Likewise | |
9799 | * m2-valprint.c (m2_val_print): Likewise. | |
9800 | * p-valprint.c (pascal_val_print): Likewise. | |
9801 | * expprint.c (print_subexp_standard): Likewise. | |
9802 | * valprint.c (val_print_string): Likewise. | |
9803 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
9804 | (SUBDIR_PYTHON_SRCS): Likewise. | |
9805 | (py-lazy-string.o): New rule. | |
9806 | ||
1fe72117 | 9807 | 2010-01-13 Doug Evans <[email protected]> |
8eee9c5a DE |
9808 | |
9809 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
9810 | uninitialized" warning from gcc on local `tree'. | |
9811 | ||
dc146f7c VP |
9812 | 2010-01-13 Vladimir Prus <[email protected]> |
9813 | ||
9814 | Implement core awareness. | |
9815 | ||
9816 | * bcache.c (compare_ints): Remove | |
9817 | (print_percentage): Use compare_positive_ints. | |
9818 | * defs.h (compare_positive_ints): Declare. | |
9819 | * linux-nat.h (struct lin_lwp): New field core. | |
9820 | (linux_nat_core_of_thread_1): Declare. | |
9821 | * linux-nat.c (add_lwp): Init the 'core' field. | |
9822 | (linux_nat_wait_1): Record the core. | |
9823 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
9824 | (linux_nat_add_target): Register the above. | |
9825 | * linux-thread-db.c (update_thread_core): New. | |
9826 | (thread_db_find_new_threads): Update core information for | |
9827 | every thread. | |
9828 | * remote.c (struct private_thread_info): New. | |
9829 | (free_private_thread_info, demand_private_info): New. | |
9830 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
9831 | (struct thread_item, threads_parsing_context | |
9832 | (start_thread, end_thread, thread_attributes) | |
9833 | (thread_children, threads_children, threads_elements): New. | |
9834 | (remote_threads_info): Try qXfer:threads before anything | |
9835 | else. | |
9836 | (remote_protocol_packets): Register qXfer:threads. | |
9837 | (remote_open_1): Init use_osdata_threads. | |
9838 | (struct stop_reply): New field 'core'. | |
9839 | (remote_parse_stop_reply): Parse core number. | |
9840 | (process_stop_reply): Record core number. | |
9841 | (remote_xfer_partial): Handle qXfer:threads. | |
9842 | (remote_core_of_thread): New. | |
9843 | (init_remote_ops): Register remote_core_of_thread. | |
9844 | (_initialize_remote): Register qXfer:read. | |
9845 | * target.c (target_core_of_thread): New | |
9846 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
9847 | (struct target_ops): New field to_core_of_threads. | |
9848 | (target_core_of_thread): Declare. | |
9849 | * gdbthread.h (struct thread_info): New field private_dtor. | |
9850 | * thread.c (print_thread_info): Report the core. | |
9851 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
9852 | * utils.c (compare_positive_ints): New. | |
9853 | * features/threads.dtd: New. | |
9854 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
9855 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
9856 | (do_nothing, free_vector_of_osdata_items) | |
9857 | (splay_tree_int_comparator, free_splay_tree): New. | |
9858 | (print_one_inferior_data): Implemented printing of selected | |
9859 | inferiors. Collect and print cores. | |
9860 | (output_cores): New. | |
9861 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
9862 | thread groups together with --available. | |
9863 | ||
d30c5336 JK |
9864 | 2010-01-12 Jan Kratochvil <[email protected]> |
9865 | ||
9866 | * configure: Regenerate (for _STRUCTURED_PROC). | |
9867 | ||
02893727 JB |
9868 | 2010-01-12 Joel Brobecker <[email protected]> |
9869 | ||
9870 | Delete dead function. | |
9871 | * ada-lang.c (extract_string): Delete. No longer used. | |
9872 | ||
46ed2d6f JB |
9873 | 2010-01-12 Joel Brobecker <[email protected]> |
9874 | ||
9875 | Fix -Wunused warning in dec-thread.c. | |
9876 | * dec-thread.c (dec_thread_count_gdb_threads) | |
9877 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
9878 | ||
606b8d1a JB |
9879 | 2010-01-12 Joel Brobecker <[email protected]> |
9880 | ||
9881 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
9882 | ||
b4ba55a1 JB |
9883 | 2010-01-12 Joel Brobecker <[email protected]> |
9884 | ||
9885 | Add support for DW_AT_GNAT_descriptive_type. | |
9886 | * gdbtypes.h (enum type_specific_kind): New enum. | |
9887 | (struct main_type) [type_specific_field]: New component. | |
9888 | [type_specific]: Add new component "gnat_stuff". | |
9889 | (struct gnat_aux_type): New type. | |
9890 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
9891 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
9892 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
9893 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
9894 | (TYPE_SPECIFIC_FIELD): New macros. | |
9895 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
9896 | type does not hold any cplus-specific data. | |
9897 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
9898 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
9899 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
9900 | cplus-specific data. | |
9901 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
9902 | Set new component TYPE_SPECIFIC_FIELD (type). | |
9903 | (gnat_aux_default): New constant. | |
9904 | (allocate_gnat_aux_type): New function. | |
9905 | (init_type): Add initialization the type-specific stuff for | |
9906 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
9907 | (print_gnat_stuff): New function. | |
9908 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
9909 | specific data. Adjust code that prints the contents of the | |
9910 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
9911 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
9912 | the type cplus stuff for Ada types. | |
9913 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
9914 | Error out if these routines are called with an Ada type. | |
9915 | (read_structure_type, read_array_type, read_subrange_type): | |
9916 | Add call to set_descriptive_type. | |
9917 | (set_die_type): Initialize the gnat-specific data if necessary. | |
9918 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
9919 | New functions. | |
9920 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
9921 | decode_constrained_packed_array_type instead of doing a standard | |
9922 | lookup to locate a parallel type. | |
9923 | (find_parallel_type_by_descriptive_type): New function. | |
9924 | (ada_find_parallel_type_with_name): New function. | |
9925 | (ada_find_parallel_type): Reimplement using | |
9926 | ada_find_parallel_type_with_name. | |
9927 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
9928 | to check if type has a cplus stuff. | |
9929 | * linespec.c (total_number_of_methods): Likewise. | |
9930 | * mdebugread.c (new_type): Likewise. | |
9931 | ||
b0f02ee9 JK |
9932 | 2010-01-11 Jan Kratochvil <[email protected]> |
9933 | ||
9934 | * NEWS: Document the 0b binary number prefix parsing. | |
9935 | ||
b260e109 JK |
9936 | 2010-01-11 Jan Kratochvil <[email protected]> |
9937 | ||
9938 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
9939 | Describe the new return value. Return non-zero if data changed. | |
9940 | (objfile_relocate): New variable changed. Set it. Call | |
9941 | breakpoint_re_set depending on CHANGED. | |
9942 | ||
b5cfddf5 JK |
9943 | 2010-01-11 Jan Kratochvil <[email protected]> |
9944 | ||
9945 | Implement binary numbers parsing. | |
9946 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
9947 | ||
e0ae4240 JK |
9948 | 2010-01-11 Jan Kratochvil <[email protected]> |
9949 | Tristan Gingold <[email protected]> | |
9950 | ||
9951 | * solib.c (info_sharedlibrary_command): Replace | |
9952 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
9953 | objfile_has_symbols. | |
9954 | ||
6e0e5977 JB |
9955 | 2010-01-10 Joel Brobecker <[email protected]> |
9956 | ||
9957 | * NEWS: Document the improvements made to the mips-irix port. | |
9958 | ||
7348c5e1 JB |
9959 | 2010-01-09 Joel Brobecker <[email protected]> |
9960 | ||
9961 | Fix the documentation of valprint.c:value_print. | |
9962 | * valprint.c (value_print): Update the function description to | |
9963 | mention that the syntax of the output follows the current_language, | |
9964 | not necessarily C. | |
9965 | ||
567995e1 JK |
9966 | 2010-01-09 Jan Kratochvil <[email protected]> |
9967 | ||
9968 | Fix displacement of separate debug info files. | |
9969 | * objfiles.c (objfile_relocate): Rename to ... | |
9970 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
9971 | (objfile_relocate): New function. | |
9972 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
9973 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
9974 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
9975 | allocated using alloca. | |
9976 | * symfile.c (copy_section_addr_info): Remove. | |
9977 | (build_section_addr_info_from_objfile): Make it global. New variables | |
9978 | addr_bit and mask, use them. | |
9979 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
9980 | (copy_section_addr_info): Remove. | |
9981 | ||
6d8eadbd JB |
9982 | 2010-01-09 Joel Brobecker <[email protected]> |
9983 | ||
9984 | Signal unwinder for mips-irix N32. | |
9985 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
9986 | tramp-frame.h. | |
9987 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
9988 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
8d95cc3b PA |
9989 | (SIGCONTEXT_LO_OFF): New macros. |
9990 | (mips_irix_n32_tramp_frame_init): New function. | |
6d8eadbd JB |
9991 | (mips_irix_n32_tramp_frame): New static constant. |
9992 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
9993 | ||
27087a3d JB |
9994 | 2010-01-09 Joel Brobecker <[email protected]> |
9995 | ||
9996 | Breakpoint in shared library does not work on mips-irix. | |
9997 | * procfs.c: #include "observer.h". | |
9998 | (procfs_inferior_created): New function, moving here the code | |
9999 | which unsets the syssgi syscall-exit notifications. | |
10000 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
10001 | syscall-exit notifications. It is too early to do this here. | |
10002 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
10003 | ||
f08877ba JB |
10004 | 2010-01-09 Joel Brobecker <[email protected]> |
10005 | ||
10006 | Wrong return convention for arrays (mips-irix). | |
10007 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
10008 | 128 bits or smaller are returned the same way as structs | |
10009 | and unions of the the same size. | |
10010 | ||
e4b97d48 JB |
10011 | 2010-01-09 Joel Brobecker <[email protected]> |
10012 | ||
10013 | Cannot set the PC on mips-irix. | |
10014 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
10015 | register number, no the cooked one. | |
10016 | ||
11377e68 JB |
10017 | 2010-01-09 Joel Brobecker <[email protected]> |
10018 | ||
10019 | Error while loading core file on mips-irix. | |
10020 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
10021 | if debugging from a core file. | |
10022 | ||
b2391021 JB |
10023 | 2010-01-09 Joel Brobecker <[email protected]> |
10024 | ||
10025 | GDB hangs when attaching to process on mips-irix. | |
10026 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
10027 | attaching to a process. | |
10028 | ||
f2ec0ecf JB |
10029 | 2010-01-09 Joel Brobecker <[email protected]> |
10030 | ||
10031 | Use the correct breakpoint instruction on mips-irix. | |
10032 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
10033 | containing the correct breakpoint instruction to use on mips-irix. | |
10034 | Use it when the osabi is GDB_OSABI_IRIX. | |
10035 | ||
3c95f01c JB |
10036 | 2010-01-09 Joel Brobecker <[email protected]> |
10037 | ||
10038 | -Wunused warning in procfs.c (mips-irix only). | |
10039 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
10040 | throughout instead of using praddset and prdelset respectively. | |
10041 | ||
4b7703ad JB |
10042 | 2010-01-09 Joel Brobecker <[email protected]> |
10043 | ||
10044 | GDB crash while stepping into function. | |
10045 | * infrun.c (handle_inferior_event): Refetch the current frame | |
10046 | after handling what.main_action, in case that pointer became | |
10047 | dangling. | |
10048 | ||
12c89474 JB |
10049 | 2010-01-09 Joel Brobecker <[email protected]> |
10050 | ||
10051 | Fix build failure of solaris-hosted cross debuggers. | |
10052 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
10053 | ||
1a3fd262 | 10054 | 2010-01-09 Daniel Gutson <[email protected]> |
4c490650 JB |
10055 | |
10056 | Fix build failure on sparc-solaris. | |
10057 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
10058 | ||
75242ef4 JK |
10059 | 2010-01-08 Jan Kratochvil <[email protected]> |
10060 | ||
10061 | Move some symfile code into subroutines. | |
10062 | * symfile.h (relative_addr_info_to_section_offsets) | |
10063 | (addr_info_make_relative): New prototypes. | |
10064 | * symfile.c (default_symfile_offsets): Move a part to ... | |
10065 | (relative_addr_info_to_section_offsets): ... this new function. | |
10066 | (default_symfile_offsets): Call it. | |
10067 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
10068 | this part to ... | |
10069 | (addr_info_make_relative): ... this new function. | |
10070 | ||
268a4a75 JK |
10071 | 2010-01-08 Jan Kratochvil <[email protected]> |
10072 | ||
10073 | Add from_tty to solib_create_inferior_hook. | |
10074 | * infcmd.c (post_create_inferior): Move solib_add after | |
10075 | solib_create_inferior_hook. Pass from_tty to | |
10076 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
10077 | 0 from_tty and comment why. | |
10078 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
10079 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
10080 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
10081 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
10082 | from_tty. | |
10083 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
10084 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
10085 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
10086 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
10087 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
10088 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
10089 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
10090 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
10091 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
10092 | from_tty. | |
10093 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
10094 | solib_add. | |
10095 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
10096 | enable_break. | |
10097 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
10098 | parameter from_tty. | |
10099 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
10100 | it to ops->solib_create_inferior_hook. | |
10101 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
10102 | Move solib_add after solib_create_inferior_hook, call it now with | |
10103 | from_tty as 0. New comment there. | |
10104 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
10105 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
10106 | Likewise. | |
10107 | ||
cf00dfa7 VP |
10108 | 2010-01-08 Vladimir Prus <[email protected]> |
10109 | ||
10110 | Fix multiexec race. | |
10111 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
10112 | with events ptid, not get_current_regcache. | |
10113 | ||
f91e5ac3 JB |
10114 | 2009-01-08 Joel Brobecker <[email protected]> |
10115 | ||
10116 | GDB crash with empty executable name (MinGW). | |
10117 | * source.c (openp): Add assert that parameter string is not NULL. | |
10118 | if parameter string is an empty string, then return with a failure | |
10119 | immediately. | |
10120 | ||
92b9ce5b JB |
10121 | 2009-01-08 Joel Brobecker <[email protected]> |
10122 | ||
10123 | Get rid of support for VAX Floats. | |
10124 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
10125 | (ada_vax_float_print_function): Delete. | |
10126 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
10127 | (ada_vax_float_print_function): Delete. | |
10128 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
10129 | (ada_print_type): Remove support for VAX floats. | |
10130 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
10131 | ||
268a4a75 | 10132 | 2010-01-08 Jan Kratochvil <[email protected]> |
d24d8548 JK |
10133 | |
10134 | * stabsread.c (read_args): Handle zero arguments. | |
10135 | ||
f0f20949 JB |
10136 | 2009-01-08 Joel Brobecker <[email protected]> |
10137 | ||
10138 | Cannot find in-tree libiconv.a after reconfigure. | |
10139 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
10140 | that we can use, then cache the path to this archive. | |
10141 | * configure: Regenerate. | |
10142 | ||
6b6218c5 SS |
10143 | 2010-01-07 Stan Shebs <[email protected]> |
10144 | ||
35b1e5cc SS |
10145 | Make tracepoint operations go through target vector. |
10146 | * target.h (enum trace_find_type): New enum. | |
10147 | (struct target_ops): New fields to_trace_init, | |
10148 | to_download_tracepoint, to_download_trace_state_variable, | |
10149 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
10150 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
10151 | to_set_disconnected_tracing. | |
10152 | (target_trace_init): New macro. | |
10153 | (target_download_tracepoint): New macro. | |
10154 | (target_download_trace_state_variable): New macro. | |
10155 | (target_trace_start): New macro. | |
10156 | (target_trace_set_readonly_regions): New macro. | |
10157 | (target_get_trace_status): New macro. | |
10158 | (target_trace_stop): New macro. | |
10159 | (target_trace_find): New macro. | |
10160 | (target_get_trace_state_variable_value): New macro. | |
10161 | (target_set_disconnected_tracing): New macro. | |
10162 | * target.c (update_current_target): Inherit and set defaults for | |
10163 | tracepoint operations. | |
10164 | * tracepoint.c (default_collect): Make globally visible. | |
10165 | (target_is_remote): Remove, along with all calls. | |
10166 | (tvariables_info): Call target_get_trace_state_variable_value. | |
10167 | (remote_set_transparent_ranges): Remove. | |
10168 | (trace_start_command): Call target_trace_init, | |
10169 | target_download_tracepoint, etc. | |
10170 | (download_tracepoint): Remove. | |
10171 | (trace_stop_command): Simplify. | |
10172 | (stop_tracing): Call target_trace_stop. | |
10173 | (get_trace_status): Call target_get_trace_status. | |
10174 | (trace_status_command): Add case for targets that cannot trace. | |
10175 | (finish_tfind_command): Change to take numerical arguments, call | |
10176 | target_trace_find. | |
10177 | (trace_find_command): Update call to finish_tfind_command. | |
10178 | (trace_find_pc_command): Ditto. | |
10179 | (trace_find_tracepoint_command): Ditto. | |
10180 | (trace_find_line_command): Ditto. | |
10181 | (trace_find_range_command): Ditto. | |
10182 | (trace_find_outside_command): Ditto. | |
10183 | (set_disconnected_tracing_value): Call | |
10184 | target_set_disconnected_tracing. | |
10185 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
10186 | (trace_error): Move from tracepoint.c. | |
10187 | (remote_get_noisy_reply): Ditto. | |
10188 | (free_actions_list_cleanup_wrapper): Ditto. | |
10189 | (free_actions_list): Ditto. | |
10190 | (remote_trace_init): New function. | |
10191 | (remote_download_tracepoint): New function. | |
10192 | (remote_download_trace_state_variable): New function. | |
10193 | (remote_trace_set_readonly_regions): New function. | |
10194 | (remote_trace_start): New function. | |
10195 | (remote_get_trace_status): New function. | |
10196 | (remote_trace_stop): New function. | |
10197 | (remote_trace_find): New function. | |
10198 | (remote_download_trace_state_variable): New function. | |
10199 | (remote_set_disconnected_tracing): New function. | |
10200 | (init_remote_ops): Add tracepoint operations. | |
10201 | ||
6b6218c5 SS |
10202 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
10203 | ||
089b4803 TG |
10204 | 2010-01-07 Tristan Gingold <[email protected]> |
10205 | ||
10206 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
10207 | (symbol_file_add_separate): Don't use offsets from objfile but | |
10208 | built an addr info. | |
10209 | ||
d5551862 SS |
10210 | 2010-01-06 Stan Shebs <[email protected]> |
10211 | ||
10212 | Support disconnected tracing. | |
10213 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
10214 | * cli/cli-cmds.c (quit_command): Ditto. | |
10215 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
10216 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
10217 | (get_tracepoint_by_number_on_target): New function. | |
10218 | * remote.c (struct remote): New field disconnected_tracing. | |
10219 | (remote_disconnected_tracing_feature): New function. | |
10220 | (remote_protocol_features): Add DisconnectedTracing. | |
10221 | (struct uploaded_tp): New struct. | |
10222 | (uploaded_tps): New global. | |
10223 | (get_uploaded_tp): New function. | |
10224 | (find_matching_tracepoint): New function. | |
10225 | (remote_get_tracing_state): New function. | |
10226 | (remote_start_remote): Call it. | |
10227 | * tracepoint.c (disconnected_tracing): New global. | |
10228 | (trace_start_command): Initialize number_on_target. | |
10229 | (stop_tracing): New function, split out from... | |
10230 | (trace_stop_command): Call stop_tracing. | |
10231 | (get_trace_status): New function, split out from... | |
10232 | (trace_status_command): Call get_trace_status, add info on | |
10233 | disconnection behavior. | |
10234 | (disconnect_or_stop_tracing): New function. | |
10235 | (finish_tfind_command): Translate from number on target. | |
10236 | (trace_find_tracepoint_command): Translate to number on target. | |
10237 | (send_disconnected_tracing_value): New function. | |
10238 | (set_disconnected_tracing): New function. | |
10239 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
10240 | * NEWS: Mention disconnected tracing. | |
10241 | ||
15d123c9 TG |
10242 | 2010-01-06 Tristan Gingold <[email protected]> |
10243 | ||
10244 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
10245 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
10246 | * symfile.h (symbol_file_add_separate) | |
10247 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
10248 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
10249 | (reread_symbols): Use free_objfile_separate_debug. | |
10250 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
10251 | Adjust comment. | |
10252 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
10253 | (free_objfile_separate_debug): New prototypes. | |
10254 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
10255 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
10256 | functions. | |
10257 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
10258 | multiple separate debug objfile. | |
10259 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
10260 | debug objfiles. | |
10261 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
10262 | debug objfile. | |
10263 | (lookup_minimal_symbol_text): Ditto. | |
10264 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
10265 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
10266 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
10267 | debug objfiles. | |
10268 | ||
7a697b8d SS |
10269 | 2010-01-05 Stan Shebs <[email protected]> |
10270 | ||
10271 | Add fast tracepoints. | |
10272 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
10273 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
10274 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
10275 | * breakpoint.c (tracepoint_type): New function. | |
10276 | (ALL_TRACEPOINTS): Use it. | |
10277 | (should_be_inserted): Ditto. | |
10278 | (bpstat_check_location): Ditto. | |
10279 | (print_one_breakpoint_location): Ditto. | |
10280 | (user_settable_breakpoint): Ditto. | |
10281 | (set_breakpoint_location_function): Ditto. | |
10282 | (disable_breakpoints_in_shlibs): Ditto. | |
10283 | (delete_trace_command): Ditto. | |
10284 | (print_it_typical): Add bp_fast_tracepoint case. | |
10285 | (bpstat_what): Ditto. | |
10286 | (print_one_breakpoint_location): Ditto. | |
10287 | (allocate_bp_location): Ditto. | |
10288 | (mention): Ditto. | |
10289 | (breakpoint_re_set_one): Ditto. | |
10290 | (disable_command): Ditto. | |
10291 | (enable_command): Ditto. | |
10292 | (check_fast_tracepoint_sals): New function. | |
10293 | (break_command_really): Call it. | |
10294 | (ftrace_command): New function. | |
10295 | (_initialize_breakpoint): Add ftrace command. | |
10296 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
10297 | * gdbarch.h, gdbarch.c: Regenerate. | |
10298 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
10299 | (i386_gdbarch_init): Use it. | |
10300 | * remote.c (struct remote_state): New field fast_tracepoints. | |
10301 | (PACKET_FastTracepoints): New packet config type. | |
10302 | (remote_fast_tracepoint_feature): New function. | |
10303 | (remote_protocol_features): Add FastTracepoints. | |
10304 | (remote_supports_fast_tracepoints): New function. | |
10305 | (_initialize_remote): Add FastTracepoints. | |
10306 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
10307 | * NEWS: Mention fast tracepoints. | |
10308 | ||
737a160e JB |
10309 | 2010-01-06 Joel Brobecker <[email protected]> |
10310 | ||
10311 | * gdb-gdb.py: New file. | |
10312 | ||
ce6cca6d MS |
10313 | 2010-01-05 Michael Snyder <[email protected]> |
10314 | ||
10315 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
10316 | ||
0d15807d JK |
10317 | 2010-01-05 Jan Kratochvil <[email protected]> |
10318 | ||
10319 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
10320 | ||
7803799a UW |
10321 | 2010-01-04 Ulrich Weigand <[email protected]> |
10322 | ||
c8d5aac9 | 10323 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, |
7803799a UW |
10324 | and s390x-linux64. |
10325 | (s390-linux32-expedite): Define. | |
10326 | (s390-linux64-expedite): Define. | |
10327 | (s390x-linux64-expedite): Define. | |
10328 | * features/s390-acr.xml: New file. | |
10329 | * features/s390-fpr.xml: New file. | |
10330 | * features/s390-core32.xml: New file. | |
10331 | * features/s390-core64.xml: New file. | |
10332 | * features/s390x-core64.xml: New file. | |
10333 | * features/s390-linux32.xml: New file. | |
10334 | * features/s390-linux64.xml: New file. | |
10335 | * features/s390x-linux64.xml: New file. | |
10336 | * features/s390-linux32.c: New generated file. | |
10337 | * features/s390-linux64.c: New generated file. | |
10338 | * features/s390x-linux64.c: New generated file. | |
10339 | ||
10340 | * regformats/s390-linux32.dat: New generated file. | |
10341 | * regformats/s390-linux64.dat: New generated file. | |
10342 | * regformats/s390x-linux64.dat: New generated file. | |
10343 | * regformats/reg-s390.dat: Remove. | |
10344 | * regformats/reg-s390x.dat: Remove. | |
10345 | ||
10346 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
10347 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
10348 | (s390_target_wordsize): New function. | |
10349 | (s390_auxv_parse): Likewise. | |
10350 | (s390_get_hwcap): Likewise. | |
10351 | (s390_read_description): Likewise. | |
10352 | (_initialize_s390_nat): Install s390_auxv_parse and | |
10353 | s390_read_description. | |
10354 | ||
10355 | * s390-tdep.c: Include "features/s390-linux32.c", | |
10356 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
10357 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
10358 | (s390_register_call_saved): New function. | |
10359 | (s390_register_name): Remove. | |
10360 | (s390_register_type): Remove. | |
10361 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
10362 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
10363 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
10364 | (s390_pseudo_register_name): New function. | |
10365 | (s390_pseudo_register_type): New function. | |
10366 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
10367 | Handle full GPR pesudos and varying pseudo register numbers. | |
10368 | (s390_pseudo_register_write): Likewise | |
10369 | (s390x_pseudo_register_read): Remove. | |
10370 | (s390x_pseudo_register_write): Likewise. | |
10371 | (s390_register_group): Remove. | |
10372 | (s390_pseudo_register_group): New function. | |
10373 | (s390_regmap_gregset): Add GPR upper halves. | |
10374 | (s390x_regmap_gregset): Likewise. | |
10375 | (s390_regmap_fpregset): Likewise. | |
10376 | (s390_regmap_upper): New global variable. | |
10377 | (s390_upper_regset): New global variable. | |
10378 | (s390_upper_regset_sections): New global variable. | |
10379 | (s390_regset_from_core_section): Handle GPR upper halves. | |
10380 | (s390_core_read_description): New function. | |
10381 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
10382 | register information. Handle varying pseudo register numbers. | |
10383 | (s390_backchain_frame_unwind_cache): Likewise. | |
10384 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
10385 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
10386 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
10387 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
10388 | Handle varying pseudo register numbers. | |
10389 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
10390 | (s390_dwarf2_prev_register): New function. | |
10391 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
10392 | register information. Handle varying pseudo register numbers. | |
10393 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
10394 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
10395 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
10396 | (_initialize_s390_tdep): Initialize target descriptions. | |
10397 | ||
10398 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
10399 | (S390_NUM_REGS): Redefine to include upper half registers. | |
10400 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
10401 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
10402 | (tdesc_s390_linux32): Add declaration. | |
10403 | (tdesc_s390_linux64): Likewise. | |
10404 | (tdesc_s390x_linux64): Likewise. | |
10405 | ||
1b1818e4 UW |
10406 | 2010-01-04 Ulrich Weigand <[email protected]> |
10407 | ||
10408 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
10409 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
10410 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
10411 | (ppc_linux_vmx_regset_sections): Likewise. | |
10412 | (ppc_linux_fp_regset_sections): Likewise. | |
10413 | ||
10414 | * corelow.c (get_core_register_section): Constify arguments. | |
10415 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
10416 | of hard-coded platform-specific register section names. | |
10417 | ||
dcbf108f UW |
10418 | 2010-01-04 Ulrich Weigand <[email protected]> |
10419 | ||
10420 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 10421 | a register, assume the least-significant part is used. |
dcbf108f UW |
10422 | (write_pieced_value): Likewise. |
10423 | ||
704e9165 UW |
10424 | 2010-01-04 Ulrich Weigand <[email protected]> |
10425 | ||
10426 | * printcmd.c: Include "arch-utils.h". | |
10427 | (do_one_display): Re-parse expression if current architecture changed. | |
10428 | ||
c54eabfa JK |
10429 | 2010-01-03 Jan Kratochvil <[email protected]> |
10430 | Joel Brobecker <[email protected]> | |
10431 | ||
10432 | * gdbtypes.c (check_typedef): New comment on type length. | |
10433 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
10434 | comment on type length. | |
10435 | (value_primitive_field): Keep the original TYPE value, new comment. | |
10436 | ||
50cb2941 JK |
10437 | 2010-01-01 Jan Kratochvil <[email protected]> |
10438 | ||
10439 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
10440 | p_start. Change != comparisons to > and < comparisons. | |
10441 | ||
be66db07 JK |
10442 | 2010-01-01 Jan Kratochvil <[email protected]> |
10443 | ||
10444 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
10445 | ||
abd775ce JB |
10446 | 2009-01-01 Joel Brobecker <[email protected]> |
10447 | ||
10448 | Update the copyright hearder to add year 2010 for most GDB files. | |
10449 | ||
6479260d JB |
10450 | 2009-01-01 Joel Brobecker <[email protected]> |
10451 | ||
10452 | Fix build failure in inf-ptrace.c. | |
10453 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
10454 | ||
4a70f654 JB |
10455 | 2010-01-01 Joel Brobecker <[email protected]> |
10456 | ||
10457 | * top.c (print_gdb_version): Update copyright year. | |
10458 | ||
595939de | 10459 | 2010-01-01, 10 Joel Brobecker <[email protected]> |
b9ee2233 JB |
10460 | |
10461 | Fix break *FUN'address thread NUM. | |
10462 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
10463 | ||
70575d34 JB |
10464 | 2010-01-01 Joel Brobecker <[email protected]> |
10465 | ||
10466 | Fix break *FUN'address task NUM. | |
10467 | * ada-lex.l (task): New rule. | |
10468 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
10469 | been built before using it. | |
10470 | ||
e1e4d4a4 | 10471 | For older changes see ChangeLog-2009. |
c906108c SS |
10472 | \f |
10473 | Local Variables: | |
10474 | mode: change-log | |
10475 | left-margin: 8 | |
10476 | fill-column: 74 | |
10477 | version-control: never | |
57da7796 | 10478 | coding: utf-8 |
c906108c | 10479 | End: |