Commit | Line | Data |
---|---|---|
21bce120 VP |
1 | 2010-10-20 Vladimir Prus <vladimir@codesourcery.com> |
2 | ||
3 | * remote.c (remote_get_threadlist): If we got empty | |
4 | response, bail out immediately, and don't emit any | |
5 | warnings. | |
6 | ||
ad8b5167 UW |
7 | 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
8 | ||
9 | * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding | |
10 | for "mov pc, REG" as well. | |
11 | (thumb_instruction_changes_pc): Likewise. | |
12 | ||
79afc5ef SW |
13 | 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> |
14 | ||
15 | PR C++/11500: | |
16 | * valarith.c (value_x_unop): Handle STRUCTOP_PTR. | |
17 | * eval.c (evaluate_subexp_standard): Check for overload of | |
18 | 'operator->'. | |
19 | * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR. | |
20 | (value_x_unop): Ditto. | |
21 | * valops.c: Include "exceptions.h". | |
22 | (find_overload_match): Throw NOT_FOUND_ERROR. | |
23 | (value_struct_elt): Ditto. | |
24 | ||
cca56ac7 TT |
25 | 2010-10-19 Tom Tromey <tromey@redhat.com> |
26 | ||
27 | * python/py-cmd.c (cmdpy_function): Unreference exception state. | |
28 | ||
026ffab7 SW |
29 | 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> |
30 | ||
31 | * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS. | |
32 | * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS | |
33 | for conversion. | |
34 | Make all other conversions illegal. | |
35 | ||
8c540a24 DE |
36 | 2010-10-18 Doug Evans <dje@google.com> |
37 | ||
38 | * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify | |
39 | assumptions of when this case happens. Print "<unnamed typedef>". | |
40 | ||
3a772aa4 TT |
41 | 2010-10-18 Tom Tromey <tromey@redhat.com> |
42 | ||
43 | * valprint.c (val_print_string): Pass 'encoding' to | |
44 | LA_PRINT_STRING. | |
45 | ||
01f8c46d JK |
46 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
47 | ||
48 | Fix the `stopped language detection' testcase for gcc-4.5. | |
49 | * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN. | |
50 | * symfile.c (set_initial_language): Move variable filename to a more | |
51 | inner block. Prefer LANGUAGE_OF_MAIN. | |
52 | * symtab.c (language_of_main): New variable. | |
53 | (set_main_name): Always reset LANGUAGE_OF_MAIN. | |
54 | * symtab.h (language_of_main): New declaration. | |
55 | ||
8aeb23f3 JK |
56 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
57 | Pedro Alves <pedro@codesourcery.com> | |
58 | ||
59 | * gdbthread.h (currently_stepping): New declaration. | |
60 | * infrun.c (currently_stepping): Remove the forward declaration. | |
61 | (currently_stepping): Make it global. | |
62 | * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New | |
63 | variables tp and step, initialized them. Pass STEP to to_resume. | |
64 | Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP. | |
65 | * remote.c (currently_stepping_callback): New. | |
66 | (remote_vcont_resume) | |
67 | <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>: | |
68 | New variable tp. Call currently_stepping_callback and step such | |
69 | thread. | |
70 | ||
c1e56572 JK |
71 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
72 | ||
73 | * infrun.c (follow_exec): Replace symbol_file_add_main by | |
74 | symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and | |
75 | breakpoint_re_set. | |
76 | * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for | |
77 | clear_symtab_users. | |
78 | * objfiles.c (free_all_objfiles): Likewise. | |
79 | * remote-m32r-sdi.c (m32r_load): Likewise. | |
80 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
81 | * symfile.c (new_symfile_objfile): New comment for add_flags. Call | |
82 | clear_symtab_users with ADD_FLAGS. | |
83 | (reread_symbols): Use parameter 0 for clear_symtab_users. | |
84 | (clear_symtab_users): New parameter add_flags. Do not call | |
85 | breakpoint_re_set if SYMFILE_DEFER_BP_RESET. | |
86 | (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users. | |
87 | * symtab.h (clear_symtab_users): New parameter add_flags. | |
88 | ||
3a182a69 JK |
89 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
90 | ||
91 | Fix GCC false warning. | |
92 | * varobj.c (value_get_print_value) <str_addr>: Initialize it. | |
93 | ||
3a9d7214 PM |
94 | 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr> |
95 | ||
96 | * p-typeprint.c (pascal_type_print_method_args): Fix problem in | |
97 | display of type of method arguments. | |
98 | ||
09ca9e2e TT |
99 | 2010-10-15 Tom Tromey <tromey@redhat.com> |
100 | ||
101 | PR python/11948: | |
102 | * varobj.c (value_get_print_value): Use val_print_string to print | |
103 | lazy strings. | |
104 | * python/py-prettyprint.c (print_string_repr): Use | |
105 | val_print_string to print lazy strings. Fix cleanup logic. | |
106 | (print_children): Likewise. | |
107 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
108 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite. | |
109 | Change return type to 'void', add 'addr' argument. | |
110 | * value.h (val_print_string): Update. | |
111 | * valprint.c (val_print_string): Add 'encoding' argument. | |
112 | * printcmd.c (print_formatted): Update. | |
113 | * p-valprint.c (pascal_val_print): Update. | |
114 | * m2-valprint.c (print_unpacked_pointer): Update. | |
115 | (m2_print_array_contents): Likewise. | |
116 | * jv-valprint.c (java_value_print): Update. | |
117 | * f-valprint.c (f_val_print): Update. | |
118 | * c-valprint.c (c_val_print): Update. | |
119 | * auxv.c (fprint_target_auxv): Update. | |
120 | ||
92163a10 JK |
121 | 2010-10-15 Doug Evans <dje@google.com> |
122 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
123 | ||
124 | PR exp/12117 | |
125 | * gdbtypes.c (check_typedef): Clean up function comment. | |
126 | Keep track of instance flags as we strip typedefs and create a new | |
127 | type to preserve them if necessary. | |
128 | * gdbtypes.h (type) <instance_flags>: Extend the comment. | |
129 | ||
dae71413 PM |
130 | 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr> |
131 | ||
132 | * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor. | |
133 | ||
7062b0a0 SW |
134 | 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com> |
135 | ||
136 | * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS. | |
137 | * gdbtypes.c (rank_one_type): Move type comparison code out of here | |
138 | to... | |
139 | (types_equal): ...here. And changed it as follows: | |
140 | Outside of typedefs type must be of the same TYPE_CODE. | |
141 | When compairing two pointers or references they are equal if their | |
142 | targets are equal. | |
143 | Correct pointer conversions. | |
144 | ||
5c3da5ea PM |
145 | 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr> |
146 | ||
147 | * p-lang.c (is_pascal_string_type): Avoid crashes on structures | |
148 | having fields without names. | |
149 | ||
577ce03a TT |
150 | 2010-10-13 Tom Tromey <tromey@redhat.com> |
151 | ||
152 | * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name. | |
153 | ||
a737a51b DE |
154 | 2010-10-13 Doug Evans <dje@google.com> |
155 | ||
0e3509db DE |
156 | New python module gdb.types. |
157 | * NEWS: Document it. | |
158 | * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py. | |
159 | * python/lib/gdb/types.py: New file. | |
160 | ||
a737a51b DE |
161 | * c-typeprint.c: Whitespace cleanup. |
162 | (cp_type_print_method_args): Remove unnecessary forward decl. | |
163 | (cp_type_print_derivation_info): Ditto. | |
164 | (c_type_print_varspec_prefix): Mark as static at definition. | |
165 | (c_type_print_modifier): Fix arg descriptions. | |
166 | ||
8dc78533 JK |
167 | 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
168 | ||
169 | * python/py-breakpoint.c (bppy_set_condition): New comment. | |
170 | * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for | |
171 | failed PyUnicode_Decode. | |
172 | (cmdpy_completer): Skip element for failed | |
173 | python_string_to_host_string. | |
174 | (cmdpy_init): Return -1 on failed python_string_to_host_string. | |
175 | * python/py-frame.c (frapy_read_var): Extend the function comment. | |
176 | * python/py-function.c (fnpy_init): Return -1 on failed | |
177 | python_string_to_host_string. | |
178 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend | |
179 | the function comment. | |
180 | (infpy_search_memory): Extend the function comment. Remove the | |
181 | PyErr_SetString call on already set error state. | |
182 | * python/py-param.c (set_parameter_value): Extend the function | |
183 | comment. Return -1 on failed python_string_to_host_string, twice. | |
184 | (set_attr): Extend the function comment. | |
185 | (compute_enum_values): Extend the function comment. New variable | |
186 | back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on | |
187 | failed python_string_to_host_string. | |
188 | (get_doc_string): Call gdbpy_print_stack on failed | |
189 | python_string_to_host_string. | |
190 | (parmpy_init): Extend the function comment. | |
191 | * python/py-prettyprint.c (pretty_print_one_value): Likewise. | |
192 | (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on | |
193 | failed python_string_to_host_string. | |
194 | * python/py-value.c (valpy_new, valpy_getitem, valpy_call) | |
195 | (valpy_binop, valpy_richcompare): Extend the function comment. | |
196 | * python/python.c | |
197 | (struct python_env) <error_type, error_value, error_traceback>: New | |
198 | fields. | |
199 | (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore. | |
200 | (ensure_python_env): Call PyErr_Fetch. | |
201 | * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on | |
202 | failed convert_value_from_python. | |
203 | (value_get_print_value): Call gdbpy_print_stack on failed | |
204 | python_string_to_target_python_string. | |
205 | ||
1bdb0c54 TT |
206 | 2010-10-12 Tom Tromey <tromey@redhat.com> |
207 | ||
208 | * python/py-prettyprint.c (search_pp_list): Fix error checking. | |
209 | ||
0526b37a SW |
210 | 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com> |
211 | ||
212 | * gdbtypes.c (do_is_ancestor): New function. | |
213 | (is_ancestor): Use do_is_ancestor. | |
214 | (is_public_ancestor): Use do_is_ancestor. | |
215 | ||
c1b5be38 PM |
216 | 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr> |
217 | ||
218 | * ser-go32.c (struct dos_ops): Add missing fdopen field. | |
219 | ||
68770265 MGD |
220 | 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
221 | ||
222 | * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array. | |
223 | ||
64b00020 DE |
224 | 2010-10-11 Doug Evans <dje@google.com> |
225 | ||
226 | * c-typeprint.c (c_type_print_modifier): Add note that this prints | |
227 | the address space id too. | |
228 | ||
43b8e241 JK |
229 | 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
230 | ||
231 | Fix attaching to re-prelinked executables on ppc64. | |
232 | * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect, | |
233 | initialize it, try to adjust FILESZ field by it. | |
234 | ||
417b5110 DJ |
235 | 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com> |
236 | ||
237 | * tracepoint.c (merge_uploaded_trace_state_variables): Only print | |
238 | messages if info_verbose. | |
239 | ||
3bdf2bbd KW |
240 | 2010-10-08 Ken Werner <ken.werner@de.ibm.com> |
241 | ||
242 | * valops.c (value_cast): Handle vector types. | |
243 | * valarith.c (value_binop): Widen scalar to vector if appropriate. | |
244 | ||
ec3d575a UW |
245 | 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com> |
246 | ||
247 | * arm-tdep.c (thumb_expand_immediate): New function. | |
248 | (thumb_instruction_changes_pc): Likewise. | |
249 | (thumb2_instruction_changes_pc): Likewise. | |
250 | (thumb_analyze_prologue): Handle 32-bit Thumb instructions during | |
251 | prologue parsing. Improved support for optimized code. | |
252 | (thumb_scan_prologue): Do not reply on line-number information, | |
253 | use same heuristics as arm_scan_prologue insead. | |
254 | (skip_prologue_function): Accept functions | |
255 | "__tls_get_addr" and "__aeabi_read_tp". | |
256 | ||
4024ca99 UW |
257 | 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com> |
258 | Daniel Jacobowitz <dan@codesourcery.com> | |
259 | ||
260 | * arm-tdep.c (thumb_in_function_epilogue_p) | |
261 | (arm_in_function_epilogue_p): New. | |
262 | (arm_gdbarch_init): Install arm_in_function_epilogue_p as | |
263 | gdbarch_in_function_epilogue_p callback. | |
264 | ||
855c153f DE |
265 | 2010-10-07 Doug Evans <dje@google.com> |
266 | ||
00e14314 DE |
267 | * cc-with-index.sh (output_file): Default to a.out. |
268 | ||
3876f04e DE |
269 | * dwarf2read.c (mapped_index): Rename member index_table to |
270 | symbol_table and index_table_slots to symbol_table_slots. | |
271 | All uses updated. | |
272 | (create_symbol_hash_table): Renamed from create_index_table. | |
273 | All callers updated. | |
274 | (add_indices_to_cpool): Rename arg index_table to symbol_hash_table. | |
275 | (write_hash_table): Rename local index_table to symbol_hash_table. | |
276 | ||
855c153f DE |
277 | * addrmap.h (addrmap_foreach_fn): New typedef. |
278 | (addrmap_foreach): Declare. | |
279 | * addrmap.c (struct addrmap_funcs): New member foreach. | |
280 | (addrmap_foreach): New function. | |
281 | (addrmap_fixed_foreach): New function. | |
282 | (addrmap_fixed_funcs): Update. | |
283 | (struct mutable_foreach_data): New struct. | |
284 | (addrmap_mutable_foreach_worker): New function. | |
285 | (addrmap_mutable_foreach): New function. | |
286 | (addrmap_mutable_funcs): Update. | |
287 | ||
1d2a4540 PH |
288 | 2010-10-07 Paul Hilfinger <hilfinger@adacore.com> |
289 | ||
290 | * dictionary.c (dict_hash): Revert to msymbol_hash_iw in | |
291 | more cases. | |
292 | ||
40658b94 PH |
293 | 2010-10-07 Paul Hilfinger <hilfinger@adacore.com> |
294 | ||
295 | * ada-lang.c (full_match): Declare. | |
296 | (ada_match_name): Rename to match_name (we should avoid prefixing static | |
297 | symbols with "ada_"). | |
298 | (match_name): New name for ada_match_name. | |
299 | (struct ada_psym_data): Remove and replace with... | |
300 | (struct match_data): User data for map_matching_symbols. | |
301 | (ada_add_psyms): Remove. | |
302 | (aux_add_nonlocal_symbols): New function, used as callback for | |
303 | map_matching_symbols. | |
304 | (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded | |
305 | symbols. | |
306 | (ada_add_non_local_symbols): Rename to add_nonlocal_symbols. | |
307 | (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols. | |
308 | Rework to use map_matching_symbols instead of map_ada_symtabs. | |
309 | (ada_lookup_symbol_list): Use add_nonlocal_symbols. | |
310 | * psymtab.c: Include dependency on dictionary.h. | |
311 | (match_partial_symbol): New function. | |
312 | (ada_lookup_partial_symbol): Remove. | |
313 | (map_block): New function, auxiliary to map_matching_symbols_psymtab. | |
314 | (map_matching_symbols_psymtab): New function. | |
315 | (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab. | |
316 | * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols. | |
317 | ||
c4d840bd PH |
318 | 2010-10-06 Paul Hilfinger <hilfinger@adacore.com> |
319 | ||
320 | * ada-lang.c (ada_match_name): Use new API for wild_match. | |
40658b94 PH |
321 | (wild_match): Change API to be consistent with that of strcmp_iw; |
322 | return 0 for a match, and switch operand order. | |
323 | (full_match): New function. | |
324 | (ada_add_block_symbols): Use dict_iter_match_{first,next} for | |
325 | matching to allow use of hashing. | |
326 | * dictionary.c (struct dict_vector): Generalize iter_name_first, | |
327 | iter_name_next ot iter_match_first, iter_match_next. | |
328 | (iter_name_first_hashed): Replace with iter_match_first_hashed. | |
329 | (iter_name_next_hashed): Replace with iter_match_next_hashed. | |
330 | (iter_name_first_linear): Replace with iter_match_first_linear. | |
331 | (iter_name_next_linear): Replace with iter_match_next_linear. | |
332 | (dict_iter_name_first): Re-implement to use dict_iter_match_first. | |
333 | (dict_iter_name_next): Re-implement to use dict_iter_match_next. | |
334 | (dict_iter_match_first): New function. | |
335 | (dict_iter_match_next): New function. | |
336 | (dict_hash): New function. | |
337 | * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare. | |
338 | * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API. | |
c4d840bd | 339 | |
543ecec7 DE |
340 | 2010-10-06 Doug Evans <dje@google.com> |
341 | ||
342 | * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@. | |
343 | ||
2f608a3a KW |
344 | 2010-10-06 Ken Werner <ken.werner@de.ibm.com> |
345 | ||
346 | * dwarf2read.c (read_tag_const_type): Handle const arrays. | |
347 | ||
aa2e2d8d DE |
348 | 2010-10-06 Doug Evans <dje@google.com> |
349 | ||
9c9606fb DE |
350 | * Makefile.in (REQUIRED_SUBDIRS): New var. |
351 | (subdir_do): Verify required subdir Makefiles exist. | |
352 | ||
aa2e2d8d DE |
353 | Create subdir data-directory. |
354 | * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to | |
355 | data-directory/Makefile.in. | |
356 | (SUBDIRS): Add data-directory. | |
357 | (all): Remove xml-syscall-copy dependency. | |
358 | (xml-syscall-copy): Moved to data-directory/Makefile.in as | |
359 | stamp-syscalls. | |
360 | (xml-syscall-install): Moved to data-directory/Makefile.in as | |
361 | install-syscalls. | |
362 | (install-only): Remove xml-syscall-install dependency. | |
363 | (all-data-directory): New rule. | |
364 | (data-directory/Makefile): New rule. | |
365 | * configure.ac (AC_OUTPUT): Add data-directory/Makefile. | |
366 | * configure: Regenerate. | |
367 | * data-directory/Makefile.in: New file. | |
368 | * python/lib/gdb/__init__.py: New file. | |
369 | ||
aa27d0b3 JB |
370 | 2010-10-06 Joel Brobecker <brobecker@adacore.com> |
371 | ||
372 | Fix ARI warnings in advance_wild_match. | |
373 | * ada-lang.c (advance_wild_match): Delete local variable t2. | |
374 | Adjust code accordingly. Minor reformatting. | |
375 | ||
2844d6b5 KW |
376 | 2010-10-06 Ken Werner <ken.werner@de.ibm.com> |
377 | ||
378 | * gdbtypes.h (struct main_type): Remove flag_nottext. | |
379 | (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT. | |
380 | (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT. | |
381 | (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext. | |
382 | * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead | |
383 | of TYPE_FLAG_NOTTEXT. | |
384 | (init_type): Remove the initialization of the flag_nottext field. | |
385 | (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of | |
386 | TYPE_FLAG_NOTTEXT. | |
387 | * c-valprint.c (c_val_print): Remove TYPE_VECTOR check. | |
388 | ||
2fdf6df6 DE |
389 | 2010-10-04 Doug Evans <dje@google.com> |
390 | ||
ea65fe05 DE |
391 | * cc-with-index.sh: New file. |
392 | ||
2fdf6df6 DE |
393 | * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after |
394 | function comment. | |
395 | (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto. | |
396 | (create_cus_from_index, create_addrmap_from_index): Ditto. | |
397 | (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto. | |
398 | (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto. | |
399 | (dw2_do_expand_symtabs_matching): Ditto. | |
b89be57b DE |
400 | (eq_strtab_entry, create_strtab, add_string): Ditto. |
401 | (hash_strtab_entry): Ditto. | |
402 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto. | |
403 | (create_index_table, create_mapped_symtab, find_slot): Ditto. | |
404 | (hash_expand, add_index_entry, add_indices_to_cpool): Ditto. | |
405 | (write_hash_table, add_address_entry, write_psymbols): Ditto. | |
406 | (write_obstack, unlink_if_set, write_one_signatured_type): Ditto. | |
407 | (write_psymtabs_to_index): Ditto. | |
2fdf6df6 | 408 | |
40bc484c JB |
409 | 2010-10-04 Joel Brobecker <brobecker@adacore.com> |
410 | ||
411 | * ada-lang.c: #include "value.h". | |
412 | (ensure_lval): Delete advance declaration. Remove gdbarch and sp | |
413 | arguments. Implement using value_allocate_space_in_inferior | |
414 | instead of allocating memory from the stack. | |
415 | (make_array_descriptor): Remove gdbarch and sp parameters. Update | |
416 | calls to ensure_lval. | |
417 | (ada_convert_actual): Remove gdbarch and sp parameters. Update | |
418 | calls to make_array_descriptor and ensure_lval. | |
419 | * ada-lang.h (ada_convert_actual): Update declaration. | |
420 | * infcall.c (value_arg_coerce): Update call to ada_convert_actual. | |
421 | ||
f17618ea DE |
422 | 2010-10-04 Doug Evans <dje@google.com> |
423 | ||
424 | * python/python.c (_initialize_python): Define new function | |
425 | GdbSetPythonDirectory in python. Use it to update sys.path and | |
426 | gdb.__path__. | |
427 | ||
83e3a93c PH |
428 | 2010-10-03 Paul Hilfinger <hilfinger@adacore.com> |
429 | ||
430 | * gdb/ada-typeprint.c (print_selected_record_field_types): New function, | |
431 | incorporating and generalizing print_record_field_types. | |
432 | (print_record_field_types): Change return value and update comment. | |
433 | Re-implement using print_selected_record_field_types. | |
434 | (print_choices): Print "=>" here. | |
435 | Handle case of unencoded variant branch. | |
436 | (print_variant_clauses): Reformat comment. | |
437 | Special-case unencoded variant branch. | |
438 | ||
439 | 2010-10-03 Paul Hilfinger <hilfinger@adacore.com> | |
73589123 PH |
440 | |
441 | * ada-lang.c (wild_match): Reimplement. | |
442 | Change API to eliminate unused length argument, reverse arguments and | |
443 | make 0 the 'true' return value. | |
444 | (advance_wild_match): New auxiliary function for wild_match to improve | |
445 | readability. | |
446 | (ada_match_name, ada_add_block_symbols): Use new API for wild_match. | |
447 | * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new | |
448 | API for wild_match. | |
449 | * symfile.h (map_ada_symtabs): Modify declaration to use new API for | |
450 | wild_match. | |
451 | * dwarf2read.c (dw2_map_ada_symtabs): Ditto. | |
452 | ||
11570e71 DE |
453 | 2010-10-01 Doug Evans <dje@google.com> |
454 | ||
455 | * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text | |
456 | for `save gdb-index' command. | |
457 | ||
72b9f47f TT |
458 | 2010-10-01 Tom Tromey <tromey@redhat.com> |
459 | ||
460 | * symfile.h (allocate_symtab): Update. | |
461 | * symfile.c (allocate_symtab): Make 'filename' const. | |
462 | * psymtab.c (add_psymbol_to_bcache): Make 'name' const. | |
463 | (add_psymbol_to_list): Likewise. | |
464 | * psympriv.h (struct partial_symtab) <filename, dirname>: Now | |
465 | const. | |
466 | (add_psymbol_to_list): Update. | |
467 | * mdebugread.c (new_symtab): Make 'name' const. | |
468 | (psymtab_to_symtab_1): Make 'filename' const. | |
469 | * elfread.c (elfstab_offset_sections): Update. | |
470 | * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const. | |
471 | (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const. | |
472 | (psymtab_include_file_name): Update. | |
473 | * dbxread.c (find_stab_function_addr): Make 'filename' const. | |
474 | * buildsym.h (start_subfile): Update. | |
475 | * buildsym.c (start_subfile): Make arguments const. | |
476 | ||
55e39473 MS |
477 | 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net> |
478 | ||
479 | * fork-child.c (breakup_args): Fix crash if shell forking is | |
480 | disabled at compile time. | |
481 | ||
05e522ef JB |
482 | 2010-10-01 Joel Brobecker <brobecker@adacore.com> |
483 | ||
484 | * ada-lang.c (desc_bounds): Add handling of the case where | |
485 | the P_BOUNDS field is a pointer to a stub. | |
486 | (desc_data_target_type): Same for P_ARRAY field. | |
487 | (ada_check_typedef): Strip the typedef layers from the type | |
488 | found by ada_find_any_type. | |
489 | ||
49a45ecf JB |
490 | 2010-10-01 Joel Brobecker <brobecker@adacore.com> |
491 | ||
492 | * sparc-tdep.c (sparc32_frame_align): New function. | |
493 | (sparc32_gdbarch_init): Set the frame_align gdbarch method. | |
494 | * sparc64-tdep.c (sparc64_frame_align): New function. | |
495 | (sparc64_gdbarch_init): Set the frame_align gdbarch method. | |
496 | ||
a5916a62 L |
497 | 2010-09-30 H.J. Lu <hongjiu.lu@intel.com> |
498 | ||
499 | * defs.h (MAX_REGISTER_SIZE): Set to 64. | |
500 | ||
00b5771c TT |
501 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
502 | ||
503 | * symfile.h (struct sym_fns) <next>: Remove. | |
504 | (add_symtab_fns): Update. | |
505 | * symfile.c (sym_fns_ptr): New typedef. | |
506 | (symtab_fns): Now a VEC. | |
507 | (add_symtab_fns): Update. Change argument type. | |
508 | (find_sym_fns): Update. Change return type. | |
509 | (get_symfile_segment_data): Update. | |
510 | * objfiles.h (struct objfile) <sf>: Now const. | |
511 | * somread.c (som_sym_fns): Now const. Update. | |
512 | * xcoffread.c (xcoff_sym_fns): Now const. Update. | |
513 | * mipsread.c (ecoff_sym_fns): Now const. Update. | |
514 | * machoread.c (macho_sym_fns): Now const. Update. | |
515 | * elfread.c (elf_sym_fns): Now const. Update. | |
516 | (elf_sym_fns_gdb_index): Likewise. | |
517 | * dbxread.c (aout_sym_fns): Now const. Update. | |
518 | * coffread.c (coff_sym_fns): Now const. Update. | |
519 | ||
38f12cfc TT |
520 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
521 | ||
522 | * value.c (value_primitive_field): Take 'offset' into account for | |
523 | packed field. | |
524 | ||
9ae8282d TT |
525 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
526 | ||
527 | * completer.c (count_struct_fields): Handle anonymous structs and | |
528 | unions. | |
529 | (add_struct_fields): Likewise. | |
530 | ||
e9e07ba6 JK |
531 | 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
532 | ||
533 | Fix printing parameters of inlined functions. | |
534 | * ada-lang.c (is_known_support_routine) | |
535 | (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter | |
536 | for find_frame_funname. | |
537 | * python/py-frame.c (frapy_name): Likewise. | |
538 | * stack.c (find_frame_funname): New parameter funcp. Update the | |
539 | function comment. Fill it in. | |
540 | (print_frame): New variable func. Initialize it by | |
541 | find_frame_funname. Print arguments only if FUNC is not NULL. Use | |
542 | FUNC as the parameter of print_args_stub. | |
543 | * stack.h (find_frame_funname): New parameter funcp. Remove the | |
544 | function declaration comment. | |
545 | ||
cd2effb2 JK |
546 | 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
547 | ||
548 | PR corefiles/12071. | |
549 | * inferior.c (have_live_inferiors): New variables old_chain, inf and | |
550 | tp. Iterate INFERIOR_LIST and call target_has_execution. | |
551 | ||
bceffbf3 JK |
552 | 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
553 | ||
554 | Fix GDB crash on inferior calls with self-referencing classes. | |
555 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static | |
556 | member fields. | |
557 | ||
abc72ce4 DE |
558 | 2010-09-29 Doug Evans <dje@google.com> |
559 | ||
560 | Workaround for gcc/45682. | |
561 | * dwarf2read.c (partial_die_info): New fields fixup_called, | |
562 | linkage_name. | |
563 | (guess_partial_die_structure_name): Renamed from guess_structure_name. | |
564 | Move definition next to use. Use linkage_name to determine if class | |
565 | is in a namespace. All callers updated. | |
566 | (fixup_partial_die): Return early if already called. | |
567 | Set fixup_called when done. | |
568 | (guess_full_die_structure_name): New function. | |
569 | (determine_prefix): Call it for class/struct/union dies if c++ and | |
570 | .debug_types section is present and parent is DW_TAG_compile_unit. | |
571 | ||
0ac7be25 JB |
572 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
573 | ||
574 | * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a. | |
575 | (sparc-*-rtems*): Delete. Now redundant with sparc-*-*. | |
576 | ||
6e1bb179 JB |
577 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
578 | ||
579 | * NEWS: Announce Ravenscar Profile support. | |
580 | ||
036b1ba8 JB |
581 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
582 | Jerome Guitton <guitton@adacore.com> | |
583 | ||
584 | * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c: | |
585 | New files. | |
586 | * configure.tgt (sparc-*-*): Add ravenscar-thread.o and | |
587 | ravenscar-sparc-thread.o to gdb_target_obs. | |
588 | ||
474011fb JB |
589 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
590 | ||
591 | * ada-tasks.c (iterate_over_live_ada_tasks): New function. | |
592 | * ada-lang.h (iterate_over_live_ada_tasks): Declare. | |
593 | ||
99e24b90 PM |
594 | 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr> |
595 | ||
596 | * amd64-windows-tdep.c (amd64_skip_main_prologue): New function. | |
597 | (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch | |
598 | skip_main_prologue method. | |
599 | ||
987d643c TT |
600 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
601 | ||
602 | * dwarf2read.c (dwarf2_read_index): Only allow version 3. | |
603 | (write_psymbols): Add 'psyms_seen' and 'is_static' arguments. | |
604 | Only emit a given psymbol once. | |
605 | (struct signatured_type_index_data) <psyms_seen>: New field. | |
606 | (write_one_signatured_type): Update. | |
607 | (cleanup_htab): New function. | |
608 | (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump | |
609 | version to 3. | |
610 | (save_gdb_index_command): Update index documentation. | |
611 | ||
d3aff959 TT |
612 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
613 | ||
614 | * bcache.c (expand_hash_table): Use hash_function, not hash. | |
615 | ||
716b65bf TT |
616 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
617 | ||
618 | * gdb_wchar.h: Change minimum libiconv to 0x108. | |
619 | ||
1736ad11 JK |
620 | 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
621 | ||
622 | Fix lost siginfo_t for inferior calls. | |
623 | * infrun.c | |
624 | (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New. | |
625 | (save_inferior_thread_state): New variables regcache, gdbarch and | |
626 | siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p. | |
627 | Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS | |
628 | using REGCACHE. | |
629 | (restore_inferior_thread_state): New variables regcache and gdbarch. | |
630 | Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using | |
631 | REGCACHE. Free also SIGINFO_DATA. | |
632 | ||
4b5246aa TT |
633 | 2010-09-24 Tom Tromey <tromey@redhat.com> |
634 | ||
635 | * dwarf2read.c (dw2_expand_symtabs_matching): Add missing | |
636 | MAYBE_SWAPs. | |
637 | (dw2_map_symbol_names): Likewise. | |
638 | ||
2a7d6a25 SW |
639 | 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com> |
640 | ||
641 | * valops.c (find_oload_champ_namespace_loop): replace incorrect | |
642 | discard_cleanups do_cleanups. | |
643 | ||
b53a1623 PA |
644 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
645 | ||
e6ee044d PA |
646 | PR gdb/11842 |
647 | ||
b53a1623 PA |
648 | * amd64-linux-nat.c (compat_siginfo_from_siginfo) |
649 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
650 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
651 | si_code < 0. | |
652 | ||
96a8853a PA |
653 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
654 | ||
655 | * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop. | |
656 | ||
39383a48 JB |
657 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
658 | ||
659 | * ada-tasks.c (read_atcb): Do not compute the task ptid when | |
660 | debugging a core file. | |
661 | ||
d31d2fc3 JK |
662 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
663 | ||
664 | Code cleanup. | |
665 | * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove. | |
666 | (free_objfile) <objfile->name != NULL>: Remove the conditional around | |
667 | xfree. | |
668 | * objfiles.h (struct objfile) <name>: New comment it is never NULL. | |
669 | * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>: | |
670 | Remove. | |
671 | * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name> | |
672 | Remove the conditional. | |
673 | * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise. | |
674 | ||
7f6130ff JK |
675 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
676 | ||
677 | * main.c: Include objfiles.h. | |
678 | (captured_main): New variable objfile. Call | |
679 | load_auto_scripts_for_objfile for ALL_OBJFILES. | |
680 | ||
c2b0a229 JK |
681 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
682 | ||
683 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also | |
684 | DW_TAG_constant. | |
685 | ||
72929c62 JB |
686 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
687 | ||
688 | * dwarf2read.c (scan_partial_symbols): Add handling of | |
689 | DW_TAG_constant DIEs. | |
690 | (add_partial_symbol, load_partial_dies, new_symbol): Likewise. | |
691 | ||
496c0e1b JB |
692 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
693 | ||
694 | * configure.ac: Add support for --enable-gdbserver. | |
695 | * configure: Regenerate. | |
696 | ||
ec322823 SW |
697 | 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> |
698 | ||
699 | PR C++/12028 | |
700 | * valops.c (find_oload_champ_namespace_loop): removed incorrect | |
701 | 'old_cleanups' reassignment. | |
702 | ||
1558ab4c JK |
703 | 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
704 | ||
705 | * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted | |
706 | characters. | |
707 | ||
875b4ff5 PM |
708 | 2010-09-16 Phil Muldoon <pmuldoon@redhat.com> |
709 | ||
710 | PR mi/11407 | |
711 | * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from | |
712 | read_var_value and common_val_print and print a warning. | |
713 | ||
65dedcb2 JK |
714 | 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
715 | ||
716 | * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to | |
717 | keep the list in alphabetical order. Use longer e-mail address. | |
718 | ||
0e780a22 TT |
719 | 2010-09-15 Tom Tromey <tromey@redhat.com> |
720 | ||
721 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil. | |
722 | ||
62234ccc TT |
723 | 2010-09-15 Tom Tromey <tromey@redhat.com> |
724 | ||
725 | * charset.c (iconv_open): New define. | |
726 | (iconv): Likewise. | |
727 | (iconv_close): Likewise. | |
728 | (phony_iconv_open): Add "phony_" prefix. | |
729 | (phony_iconv_close): Likewise. | |
730 | (phony_iconv): Likewise. | |
731 | * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__. | |
732 | Change how INTERMEDIATE_ENCODING is defined. | |
733 | ||
4950bc1c DE |
734 | 2010-09-15 Doug Evans <dje@google.com> |
735 | ||
736 | * dwarf2read.c (struct die_info): Fix comment. | |
737 | ||
349126ea AM |
738 | 2010-09-15 Alan Modra <amodra@gmail.com> |
739 | ||
740 | PR 4606 | |
741 | * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather | |
742 | than setting SEC_NEVER_LOAD on sections that need not be copied. | |
743 | ||
923c6a3d TT |
744 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
745 | ||
746 | * psympriv.h (add_psymbol_to_list, init_psymbol_list) | |
747 | (start_psymtab_common, allocate_psymtab, discard_psymtab): | |
748 | Declare. | |
749 | * symfile.h (extend_psymbol_list): Remove. | |
750 | (add_psymbol_to_list, init_psymbol_list, start_psymtab_common) | |
751 | (allocate_psymtab, discard_psymtab): Move to psympriv.h. | |
752 | * psymtab.c (extend_psymbol_list): Move earlier. Now static. | |
753 | ||
a9e6a4bb JK |
754 | 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
755 | ||
756 | * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error. | |
757 | Update the comment. | |
758 | ||
7155d578 TT |
759 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
760 | ||
761 | PR symtab/8399: | |
762 | * dwarf2loc.c (locexpr_describe_location_piece): Don't call error | |
763 | for unrecognized frame base expression. | |
764 | ||
515ed532 TT |
765 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
766 | ||
767 | PR exp/11803: | |
768 | * value.c (value_static_field): Use value_of_variable. | |
769 | ||
b467f580 PM |
770 | 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr> |
771 | ||
772 | * m32r-rom.c: Replace winsock.h with winsock2.h header. | |
773 | * remote-m32r-sdi.c: Replace winsock.h by winsock2.h. | |
774 | ||
450ca57c SW |
775 | 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com> |
776 | ||
777 | PR symtab/11992: | |
778 | * c-exp.y (classify_name): Check is_a_member_of_this before returning | |
779 | UNKNOWN_CPP_NAME. | |
780 | ||
1aee7009 JB |
781 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
782 | ||
783 | * NEWS: Add x86-lynxos to the list of platforms supported by | |
784 | gdbserver. | |
785 | ||
5ec6ebf9 JB |
786 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
787 | ||
788 | * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos. | |
789 | ||
1863c96c TT |
790 | 2010-09-13 Tom Tromey <tromey@redhat.com> |
791 | ||
792 | * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h. | |
793 | ||
0c5acf93 L |
794 | 2010-09-13 H.J. Lu <hongjiu.lu@intel.com> |
795 | ||
796 | * i386-tdep.c (i386_ymm_type): Set type name to | |
797 | builtin_type_vec256i. | |
798 | ||
1c6272a6 MS |
799 | 2010-09-12 Michael Snyder <msnyder@vmware.com> |
800 | ||
801 | * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. | |
802 | ||
e866c497 L |
803 | 2010-09-12 H.J. Lu <hongjiu.lu@intel.com> |
804 | ||
805 | * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. | |
806 | ||
9191d390 L |
807 | 2010-09-11 H.J. Lu <hongjiu.lu@intel.com> |
808 | ||
809 | * amd64-tdep.c (amd64_register_name): Removed. | |
810 | (amd64_init_abi): Don't call set_gdbarch_register_name. | |
811 | ||
812 | * i386-tdep.c (i386_ymmh_regnum_p): Make it static. | |
813 | ||
814 | * i386-tdep.h (i386_ymmh_regnum_p): Removed. | |
815 | ||
8d4d924b JK |
816 | 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
817 | Paul Bolle <pebolle@tiscali.nl> | |
818 | ||
819 | Redirect also uiout and stdtarg{,err} in execute_command_to_string. | |
820 | * cli-logging.c (struct saved_output_files) <targerr>: New. | |
821 | (set_logging_redirect, pop_output_files, handle_redirections): | |
822 | Redirect also gdb_stdtargerr. | |
823 | * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New | |
824 | declarations. | |
825 | * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect | |
826 | also gdb_stdtargerr. | |
827 | * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete | |
828 | to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr. | |
829 | Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop. | |
830 | * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr. | |
831 | * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop): | |
832 | New functions. | |
833 | ||
3329c4b5 PM |
834 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
835 | ||
836 | * hppa-tdep.c (unwind_command): Use host_address_to_string function | |
837 | to display a host address. | |
838 | * monitor.c (monitor_read_memory): Likewise. | |
839 | * xtensa-tdep.c (xtensa_push_dummy_call): Likewise. | |
840 | ||
5e8db398 PM |
841 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
842 | ||
843 | * coffread.c (struct coff_symbol): Change c_value type from `long' to | |
844 | `CORE_ADDRESS' as it might contain target addresses. | |
845 | ||
37049e31 PM |
846 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
847 | ||
848 | * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro | |
849 | before cast to pointer to avoid warning. | |
850 | ||
351a3e56 KB |
851 | 2010-09-09 Kevin Buettner <kevinb@redhat.com> |
852 | ||
853 | * v850-tdep.c (v850_gdbarch_init): Change the v850's `char' | |
854 | type to be signed. | |
349126ea | 855 | |
6afafb54 UW |
856 | 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com> |
857 | ||
858 | * dwarf2read.c (fixup_partial_die): Do not set dummy name for | |
859 | anonymous class partial DIEs. | |
860 | ||
60430eff DJ |
861 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
862 | ||
863 | * dwarf2read.c (dwarf2_compute_name): Check that the first | |
864 | argument is a pointer. | |
865 | ||
f1078f66 DJ |
866 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
867 | ||
868 | * dwarf2read.c (read_func_scope, read_structure_type) | |
869 | (read_common_block): Check for a NULL return from new_symbol. | |
870 | ||
82430852 JK |
871 | 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
872 | ||
873 | * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS. | |
874 | ||
c767944b DJ |
875 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
876 | ||
877 | * dwarf2read.c (read_structure_type): Move processing of | |
878 | fields and member functions from here... | |
879 | (process_structure_scope): ... to here. | |
880 | ||
561d3825 DJ |
881 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
882 | ||
883 | * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use | |
884 | the domain type. | |
885 | (gnuv3_make_method_ptr): Likewise. | |
886 | ||
9bd89d67 TT |
887 | 2010-09-08 Tom Tromey <tromey@redhat.com> |
888 | ||
889 | * breakpoint.c (create_breakpoint): Add missing _(). | |
890 | ||
1d040b0d DE |
891 | 2010-09-08 Doug Evans <dje@google.com> |
892 | ||
893 | * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused. | |
894 | ||
774b6a14 TT |
895 | 2010-09-08 Tom Tromey <tromey@redhat.com> |
896 | ||
897 | Revert: | |
898 | 2010-09-01 Tom Tromey <tromey@redhat.com> | |
899 | * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c, | |
900 | symtab.h: Revert earlier change. | |
901 | ||
fc956729 SW |
902 | 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com> |
903 | ||
904 | * psymtab.c (add_psymbol_to_bcache): Initialize | |
905 | obj_section. | |
906 | memset psymbol.ginfo.value to 0. | |
907 | ||
48f9886d PA |
908 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
909 | ||
910 | * infrun.c (resume): Extend comment on ignoring single-step | |
911 | requests on vfork parents waiting for a vfork-done. | |
912 | ||
423ec54c JK |
913 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
914 | Pedro Alves <pedro@codesourcery.com> | |
915 | ||
916 | * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH | |
917 | is NULL. | |
918 | * fork-child.c (startup_inferior) <resume_signal>: Use enum | |
919 | target_signal type. | |
920 | * linux-nat.c (linux_nat_resume): Use target_signal_to_host before | |
921 | calling strsignal. Use enum target_signal type for saved_signo. | |
922 | (linux_handle_extended_wait) <signo>: Use enum target_signal type. | |
923 | (linux_nat_wait_1): Use enum target_signal type for signo. Use | |
924 | target_signal_to_host before calling strsignal. | |
925 | * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by | |
926 | TARGET_SIGNAL_0. | |
927 | ||
a6eb9bc8 JK |
928 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
929 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
930 | ||
931 | * common/signals.c (ANY): Remove. | |
932 | (SET): No longer use ANY. | |
933 | ||
74609e71 YQ |
934 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
935 | ||
936 | * infrunc(resume): When inferior is waiting_for_vfork_done, | |
937 | clear step and don't use displaced stepping. | |
938 | ||
8464be76 DJ |
939 | 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
940 | ||
941 | * breakpoint.c (can_use_hardware_watchpoint): Handle the first | |
942 | value specially. | |
943 | ||
33d62d64 JK |
944 | 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
945 | ||
946 | Code cleanup - split print_stop_reason. | |
947 | * infrun.c (enum inferior_stop_reason): Remove. | |
948 | (print_stop_reason): Remove by splitting into ... | |
949 | (print_exited_reason, print_signal_exited_reason) | |
950 | (print_no_history_reason, print_signal_received_reason) | |
951 | (print_end_stepping_range_reason): ... these new functions. Update | |
952 | the preceding comment. | |
953 | (handle_inferior_event): Change the calls to print_exited_reason, | |
954 | print_signal_exited_reason, print_no_history_reason, | |
955 | print_signal_received_reason, print_end_stepping_range_reason. | |
956 | (handle_step_into_function, handle_step_into_function_backward): | |
957 | Change the calls to print_end_stepping_range_reason. | |
958 | ||
14dba4b4 JK |
959 | 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
960 | ||
961 | * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL. | |
962 | * cli-out.c: Include vec.h. | |
963 | (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New | |
964 | variable stream, initialize it, use it. | |
965 | (cli_redirect): New function comment. Replace the stream and | |
966 | original_stream fields by the new streams field. Remove the | |
967 | original_stream != NULL conditional, assert error on NULL instead. | |
968 | (out_field_fmt, field_separator): New variable stream, initialize it, use it. | |
969 | (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and | |
970 | original_stream fields by the new streams field. | |
971 | (cli_out_set_stream): Replace the stream field by the new streams | |
972 | field. | |
973 | * cli-out.h: Include vec.h. | |
974 | (ui_filep): New typedef, call DEF_VEC_P for it. | |
975 | (struct cli_ui_out_data): Replace the stream and original_stream | |
976 | fields by the new streams field. | |
977 | * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with | |
978 | NULL first. Extend the comment. | |
979 | (handle_redirections): Call ui_out_redirect with output. | |
980 | * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect | |
981 | calls outside of the TRY_CATCH block. | |
982 | ||
b04bc5d4 | 983 | 2010-09-03 Joel Brobecker <brobecker@adacore.com> |
984 | ||
985 | GDB 7.2 released. | |
986 | ||
080db4e0 JB |
987 | 2010-09-02 Joel Brobecker <brobecker@adacore.com> |
988 | ||
989 | Back out the following change: | |
990 | | 2010-06-29 Hui Zhu <teawater@gmail.com> | |
991 | | * record.c (set_record_pic_cmdlist, | |
992 | | show_record_pic_cmdlist): New variables. | |
993 | | (set_record_pic_command, | |
994 | | show_record_pic_command): New functions. | |
995 | | (record_pic_function, record_pic_line, record_pic_enum, | |
996 | | set_record_pic_type, record_pic_hide_nofunction, | |
997 | | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
998 | | (record_pic_fputs): New function. | |
999 | | (function_list, node_list, edge_list): New struct. | |
1000 | | (function_list, node_list, edge_list): New variables. | |
1001 | | (record_pic_cleanups, record_pic_node, | |
1002 | | record_pic_edge, cmd_record_pic): New functions. | |
1003 | | (_initialize_record): Add new commands for record pic. | |
1004 | ||
0a4f61e3 DJ |
1005 | 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com> |
1006 | ||
1007 | * config.in, configure: Regenerated. | |
1008 | * configure.ac: Check for waitpid. | |
1009 | * ser-pipe.c (pipe_close): Wait for the program to exit. | |
1010 | ||
58b61394 JK |
1011 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1012 | ||
ba720883 | 1013 | * cli/cli-logging.c: Include gdb_assert.h. |
58b61394 JK |
1014 | (set_logging_overwrite): New function. |
1015 | (logging_redirect): New comment. | |
1016 | (logging_no_redirect_file, set_logging_redirect) | |
1017 | (pop_output_files) <logging_no_redirect_file>: New. | |
1018 | (handle_redirections) <!logging_redirect>: New variable | |
1019 | no_redirect_file. Remove file autoclose for tee_file_new. No longer | |
1020 | discard cleanup for the close of former OUTPUT. Set | |
1021 | LOGGING_NO_REDIRECT_FILE. | |
1022 | (handle_redirections) <logging_redirect>: gdb_assert | |
1023 | LOGGING_NO_REDIRECT_FILE. | |
1024 | (show_logging_command) <logging_redirect handling>: Adjust messages | |
1025 | for SAVED_FILENAME not NULL. | |
1026 | (_initialize_cli_logging): Install set_logging_overwrite and | |
1027 | set_logging_redirect. | |
1028 | ||
706774f2 JK |
1029 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1030 | ||
1031 | * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END. | |
1032 | ||
9a35ccf7 JK |
1033 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1034 | ||
1035 | * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form. | |
1036 | (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and | |
1037 | add $(GDB_WARN_CFLAGS_NO_FORMAT). | |
1038 | (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS). | |
1039 | ||
ba9b2ec3 YQ |
1040 | 2010-09-02 Yao Qi <yao@codesourcery.com> |
1041 | ||
1042 | * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal | |
1043 | number from a WIFSIGNALED status. | |
1044 | ||
faf68db7 TT |
1045 | 2010-09-01 Tom Tromey <tromey@redhat.com> |
1046 | ||
1047 | * symtab.h (lookup_type_symbol): Declare. | |
1048 | * symtab.c (lookup_symbol_in_language_full): Rename from | |
1049 | lookup_symbol_in_language. Add 'for_type' argument. | |
1050 | (lookup_symbol_in_language): New function. | |
1051 | (lookup_type_symbol): Likewise. | |
1052 | (lookup_symbol_aux): Add 'for_type' argument. | |
1053 | (match_symbol_aux): New function. | |
1054 | (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching. | |
1055 | (match_transparent_type): New function. | |
1056 | (basic_lookup_transparent_type): Use expand_one_symtab_matching. | |
1057 | * symfile.h (struct quick_symbol_functions) | |
1058 | <pre_expand_symtabs_matching>: Remove. | |
1059 | <expand_one_symtab_matching>: New field. | |
1060 | * psymtab.c (expand_one_symtab_matching_psymtabs): New function. | |
1061 | (pre_expand_symtabs_matching_psymtabs): Remove. | |
1062 | (psym_functions): Update. | |
1063 | * gdbtypes.c (lookup_typename): Use lookup_type_symbol. | |
1064 | * dwarf2read.c (dw2_lookup_symbol): Update comment. | |
1065 | (dw2_pre_expand_symtabs_matching): Remove. | |
1066 | (dw2_expand_one_symtab_matching): New function. | |
1067 | (dwarf2_gdb_index_functions): Update. | |
1068 | ||
248c9dbc JB |
1069 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
1070 | ||
1071 | * NEWS: Add entry announcing GDBserver support on powerpc-lynxos. | |
1072 | ||
f75d858b MK |
1073 | 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com> |
1074 | ||
1075 | * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse' | |
1076 | as a feature reported by -list-target-features. | |
1077 | ||
0482b03b JB |
1078 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
1079 | ||
1080 | * features/Makefile (WHICH): Add rs6000/powerpc-32. | |
1081 | (powerpc-32.o, powerpc-32.c): New rules. | |
1082 | (clean): Also remove powerpc-32.c. | |
1083 | * regformats/rs6000/powerpc-32.dat: Generate. | |
1084 | ||
710e1a31 SW |
1085 | 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com> |
1086 | ||
1087 | * symfile.c (reread_symbols): Use psymbol_bcache_free, and | |
1088 | psymbol_bcache_init. | |
1089 | * psymtab.h (psymbol_bcache_init): New function prototype. | |
1090 | (psymbol_bcache_free): New function prototype. | |
1091 | (psymbol_bcache_get_bcache): New function prototype. | |
1092 | * psymtab.c (psymbol_bcache_init): New function. | |
1093 | (psymbol_bcache_free): New function. | |
1094 | (psymbol_bcache_full): New function. | |
1095 | (psymbol_bcache_get_bcache): New function. | |
1096 | (add_psymbol_to_bcache): use psymbol_bcache_full. | |
1097 | * objfiles.h (psymbol_cache): Change type of psymbol_cache to | |
1098 | psymbol_bcache. | |
1099 | * symmisc.c (print_symbol_bcache_statistics): Updated. | |
1100 | (print_objfile_statistics): Updated. | |
1101 | * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize | |
1102 | psymbol_cache. | |
1103 | (free_objfile): Use psymbol_bcache_free. | |
1104 | ||
64382290 TT |
1105 | 2010-08-31 Tom Tromey <tromey@redhat.com> |
1106 | ||
1107 | PR c++/11961: | |
1108 | * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>: | |
1109 | Don't set TYPE_NAME on the type. | |
1110 | ||
8bbed405 MS |
1111 | 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
1112 | ||
1113 | * infrun.c (set_exec_direction_func): Error out if target does not | |
1114 | support reverse execution. | |
1115 | ||
06253dd3 JK |
1116 | 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
1117 | ||
1118 | Make linux_get_siginfo_type `type *' unique. | |
1119 | * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data) | |
1120 | (init_linux_gdbarch_data, get_linux_gdbarch_data): New. | |
1121 | (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize | |
1122 | it. Use linux_gdbarch_data->siginfo_type as a persistent storage. | |
1123 | (_initialize_linux_tdep): New. | |
1124 | ||
b8edc417 JK |
1125 | 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
1126 | ||
1127 | Code cleanup. | |
1128 | * defs.h (find_memory_region_ftype): New typedef. | |
1129 | (exec_set_find_memory_regions): Use it. | |
1130 | * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype. | |
1131 | * fbsd-nat.c (fbsd_find_memory_regions): Likewise. | |
1132 | * gcore.c (objfile_find_memory_regions): Likewise. | |
1133 | * gnu-nat.c (gnu_find_memory_regions): Likewise. | |
1134 | * linux-nat.c (linux_nat_find_memory_regions): Likewise. | |
1135 | * procfs.c (iterate_over_mappings_cb_ftype): Remove. | |
1136 | (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to | |
1137 | find_memory_region_ftype. | |
1138 | (insert_dbx_link_bpt_in_region): Likewise. | |
1139 | (iterate_over_mappings): Likewise. Drop the comment part about the | |
1140 | function prototype. | |
1141 | (find_memory_regions_callback): Use find_memory_region_ftype. | |
1142 | (proc_find_memory_regions): Likewise. | |
1143 | (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to | |
1144 | find_memory_region_ftype. | |
1145 | * target.c (dummy_find_memory_regions): Use find_memory_region_ftype. | |
1146 | * target.h (struct target_ops) <to_find_memory_regions>: Likewise. | |
1147 | ||
cbd70537 SW |
1148 | 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com> |
1149 | ||
1150 | * psymtab.c (add_psymbol_to_bcache): Remove 'static' from | |
1151 | 'static partial_symbol psymbol'. | |
1152 | (psymbol_hash): New function. | |
1153 | (psymbol_compare): New function. | |
1154 | * bcache.c (hash_continue): New. | |
1155 | (hash): Use hash_continue. | |
1156 | * bcache.c: Add hash_function and compare_function | |
1157 | pointers to bcache struct. | |
1158 | (bcache_full): Use bcache->hash_function, and | |
1159 | bcache->compare_function. | |
1160 | (bcache_compare): New function. | |
1161 | (bcache_xmalloc): Take hash_function and | |
1162 | compare_function arguments and initialize the | |
1163 | bcach's pointers. | |
1164 | Updated comment. | |
1165 | * objfiles.c (allocate_objfile): Updated. | |
1166 | * symfile.c (reread_symbols): Updated. | |
1167 | * python/py-type.c (typy_richcompare): Updated. | |
1168 | ||
03f17ccf TT |
1169 | 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com> |
1170 | Tom Tromey <tromey@redhat.com> | |
1171 | ||
1172 | PR python/11792: | |
1173 | * python/py-value.c (valpy_get_dynamic_type): New function. | |
1174 | (value_object_getset): Add "dynamic_type". | |
1175 | (valpy_get_type): Fail on error. | |
1176 | ||
25b41d01 YQ |
1177 | 2010-08-30 Yao Qi <yao@codesourcery.com> |
1178 | ||
1179 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New. | |
1180 | (arm_linux_syscall_next_pc): New. | |
1181 | (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. | |
1182 | (arm_linux_init_abi): Initialize syscall_next_pc. | |
1183 | * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode. | |
1184 | (arm_get_next_pc_raw): Get next pc of SWI in ARM mode. | |
1185 | * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. | |
1186 | Declare arm_frame_is_thumb. | |
1187 | ||
5760d0ab JK |
1188 | 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
1189 | ||
1190 | Code cleanup. | |
1191 | * breakpoint.c (bpstat_alloc): Remove unused prototype. | |
1192 | (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the | |
1193 | code. | |
1194 | (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust | |
1195 | calls of bpstat_alloc. Remove explicit bs chain termination. | |
1196 | ||
46a96992 JK |
1197 | 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1198 | ||
1199 | Code cleanup. | |
1200 | * linux-nat.c (pull_pid_from_list): Rename status to statusp. | |
1201 | (my_waitpid): Likewise. | |
1202 | ||
36374493 DE |
1203 | 2010-08-27 Doug Evans <dje@google.com> |
1204 | ||
1205 | * dwarf2read.c (dw2_require_line_header): Read from .debug_types | |
1206 | as appropriate. | |
1207 | ||
8b93c54c TT |
1208 | 2010-08-27 Tom Tromey <tromey@redhat.com> |
1209 | ||
1210 | * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set | |
1211 | TYPE_FIELD_IGNORE_BITS. | |
1212 | ||
16be1145 DE |
1213 | 2010-08-27 Doug Evans <dje@google.com> |
1214 | ||
1215 | * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match | |
1216 | the order they're defined in. munmap .debug_types buffer. | |
1217 | ||
e254ef6a DE |
1218 | 2010-08-26 Doug Evans <dje@google.com> |
1219 | ||
1220 | * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu. | |
1221 | (dw2_forget_cached_source_info): Rename local cu to per_cu. | |
1222 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto. | |
1223 | (dw2_print_stats, dw2_expand_all_symtabs): Ditto. | |
1224 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto. | |
1225 | (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto. | |
1226 | (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto. | |
1227 | (dwarf2_free_objfile, write_one_signatured_type): Ditto. | |
1228 | (write_psymtabs_to_index): Ditto. | |
1229 | ||
ae53ffa4 PA |
1230 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
1231 | ||
1232 | * NEWS: Mention libthread_db debugging with core files. | |
1233 | ||
c6da4cef DE |
1234 | 2010-08-26 Doug Evans <dje@google.com> |
1235 | ||
1236 | * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary | |
1237 | forward decl. Pass pst->dirname to dwarf_decode_lines. | |
1238 | (psymtab_include_file_name): New function. | |
1239 | (dwarf_decode_lines): Call it. Update comments. | |
1240 | ||
cd02d79d PA |
1241 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
1242 | ||
1243 | * dwarf2read.c (inherit_abstract_dies): Handle origin die's | |
1244 | compilation unit being different from target die's. | |
1245 | ||
673bfd45 DE |
1246 | 2010-08-24 Doug Evans <dje@google.com> |
1247 | ||
1248 | PR symtab/11942 | |
1249 | * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash, | |
1250 | debug_types_type_hash. | |
1251 | (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash. | |
1252 | All uses updated. | |
1253 | (lookup_die_type): Renamed from tag_type_to_tag. First look in | |
1254 | appropriate type_hash table. All callers updated. | |
1255 | (allocate_signatured_type_table): Renamed from | |
1256 | allocate_signatured_type_hash_table. All callers updated. | |
1257 | (create_signatured_type_table_from_index): Renamed from | |
1258 | create_signatured_type_hash_from_index. All callers updated. | |
1259 | (read_die_type): Add comment. Move actual reading to ... | |
1260 | (read_die_type_1): ... here. New function. | |
1261 | (follow_die_ref_or_sig): Tweak comment. | |
1262 | (set_die_type): Rewrite to use appropriate choice of | |
1263 | debug_info_type_hash or debug_types_type_hash. | |
1264 | (get_die_type_at_offset): New function. | |
1265 | (get_die_type): Call it. | |
1266 | ||
e8fd65ef JK |
1267 | 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
1268 | ||
1269 | * python/py-type.c (typy_richcompare): Initialize worklist. | |
1270 | ||
9779414d DJ |
1271 | 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com> |
1272 | Kazu Hirata <kazu@codesourcery.com> | |
1273 | Jonathan Larmour <jifl@eCosCentric.com> | |
1274 | ||
1275 | * arm-tdep.c: Include features/arm-with-m.c. | |
1276 | (arm_psr_thumb_bit): New. Update all uses of CPSR_T to | |
1277 | call this function. | |
1278 | (arm_pc_is_thumb): Add a gdbarch argument. Update all callers. | |
1279 | Check is_m after force-mode. | |
1280 | (arm_gdbarch_init): Check the binary before the target description. | |
1281 | Add check for M profile attribute. If we have an M-profile device, | |
1282 | but no target register description, use arm-with-m. Recognize the | |
1283 | new org.gnu.gdb.arm.m-profile feature and its xpsr register. | |
1284 | (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m. | |
1285 | * arm-tdep.h (XPSR_T): Define. | |
1286 | (struct gdbarch_tdep): Add is_m member. | |
1287 | * features/arm-m-profile.xml, features/arm-with-m.c, | |
1288 | features/arm-with-m.xml: New files. | |
1289 | ||
9dc481d3 DE |
1290 | 2010-08-23 Doug Evans <dje@google.com> |
1291 | ||
1292 | * dwarf2read.c (read_structure_type): Add comment. | |
1293 | (read_enumeration_type): Add comment. | |
1294 | (process_enumeration_scope): Move definition of some locals | |
1295 | closer to their use. | |
1296 | (read_namespace_type): Add comment. | |
e71ec853 | 1297 | (set_die_type): Fix typo in comment. |
9dc481d3 | 1298 | |
f9ffd4bb TT |
1299 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1300 | ||
1301 | PR python/11145: | |
1302 | * python/py-value.c: Include expression.h. | |
1303 | (valpy_do_cast): New function. | |
1304 | (valpy_cast): Use it. | |
1305 | (valpy_dynamic_cast): New function. | |
1306 | (valpy_reinterpret_cast): Likewise. | |
1307 | (value_object_methods): Add dynamic_cast, reinterpret_cast. | |
1308 | ||
96f73ba5 TT |
1309 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1310 | ||
1311 | PR python/11391: | |
1312 | * python/py-value.c (valpy_nonzero): Don't throw error for other | |
1313 | Value types. | |
1314 | ||
d839c8a4 TT |
1315 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1316 | ||
1317 | PR python/10676: | |
1318 | * python/py-type.c: Include bcache.h, vec.h. | |
1319 | (struct type_equality_entry): New. | |
1320 | (compare_strings): New function. | |
1321 | (check_types_equal): Likewise. | |
1322 | (check_types_worklist): Likewise. | |
1323 | (typy_richcompare): Likewise. | |
1324 | (type_object_type): Set tp_richcompare field. | |
1325 | ||
05d0e1e7 TT |
1326 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1327 | ||
1328 | PR python/10953: | |
1329 | * python/py-type.c (typy_fields): Call check_typedef. | |
1330 | (typy_template_argument): Add TRY_CATCH. | |
1331 | ||
702c2711 TT |
1332 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1333 | ||
1334 | PR python/11915: | |
1335 | * python/py-type.c (typy_array): New function. | |
1336 | (type_object_methods): Add "array". | |
1337 | ||
4a532131 PA |
1338 | 2010-08-20 Pedro Alves <pedro@codesourcery.com> |
1339 | ||
1340 | * python/python.c: Include "serial.h". | |
1341 | (gdbpy_event_fds): Change type to `struct serial *' a array from | |
1342 | int array. | |
1343 | (gdbpy_run_events): Change parameters. Use serial_readchar in | |
1344 | place of read. | |
1345 | (gdbpy_post_event): Use serial_write in place of write. | |
1346 | (gdbpy_initialize_events): Use serial_pipe instead of pipe, and | |
1347 | serial_async in place of add_file_handler. | |
1348 | ||
58f07bae PA |
1349 | 2010-08-20 Pedro Alves <pedro@codesourcery.com> |
1350 | ||
1351 | * serial.h (gdb_pipe, serial_pipe): Declare. | |
1352 | * serial.c (serial_interface_lookup): Take a const char pointer. | |
1353 | (serial_fdopen): Rename to ... | |
1354 | (serial_fdopen_ops): ... this. Add an OPS parameter and use it. | |
1355 | Call the OPS' fdopen function if there is one. | |
1356 | (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops. | |
1357 | (serial_pipe): New. | |
1358 | (struct serial_ops) <fdopen>: New field. | |
1359 | ||
1360 | * ser-mingw.c (free_pipe_state): | |
1361 | (free_pipe_state): Close output on non-pex pipes. | |
1362 | (pipe_windows_fdopen): New. | |
1363 | (gdb_pipe): New. | |
1364 | (_initialize_ser_windows): Register pipe_windows_fdopen. | |
1365 | * ser-go32.c (gdb_pipe): New. | |
1366 | * ser-pipe.c (pipe_close): Close file descriptor even if there's | |
1367 | no state pointer. | |
1368 | (pipe_ops): Delete. | |
1369 | (gdb_pipe): New. | |
1370 | ||
3da10d80 KS |
1371 | 2010-08-20 Keith Seitz <keiths@redhat.com> |
1372 | ||
1373 | PR symtab/11465: | |
889bf7c5 | 1374 | * dwarf2read.c (struct delayed_method_info): New struct. |
3da10d80 KS |
1375 | (struct dwarf2_cu): Add vector method_list. |
1376 | (scan_partial_symbols): Count methods for union, class, structure, | |
1377 | and interface types. | |
1378 | (add_to_method_list): New function. | |
1379 | (free_delayed_list): New function. | |
1380 | (compute_delayed_physnames): New function. | |
1381 | (process_full_comp_unit): Make a cleanup for the CU's delayed | |
1382 | physname list, compute the delayed physnames, and free the | |
1383 | the list. | |
1384 | (dwarf2_add_member_fn): For C++ and Java, delay the computation | |
1385 | of the physname until after the CU is read. | |
1386 | ||
1387 | * dwarf2read.c (read_structure_type): Check if the current | |
1388 | DIE's type was already completed after dwarf2_full_name | |
1389 | was called. | |
889bf7c5 | 1390 | |
ca11e899 SS |
1391 | 2010-08-19 Stan Shebs <stan@codesourcery.com> |
1392 | ||
1393 | * NEWS: Mention some additional changes. | |
1394 | ||
4d2dc20a TT |
1395 | 2010-08-19 Tom Tromey <tromey@redhat.com> |
1396 | ||
1397 | * Makefile.in (install-python): Add DESTDIR. | |
1398 | ||
d30f5e1f DE |
1399 | 2010-08-19 Doug Evans <dje@google.com> |
1400 | ||
1401 | PR exp/11926 | |
1402 | * parser-defs.h (parse_float, parse_c_float): Declare. | |
1403 | * parse.c (parse_float, parse_c_float): New function. | |
1404 | * c-exp.y (parse_number): Call parse_c_float. | |
1405 | * objc-exp.y (parse_number): Ditto. | |
1406 | * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition. | |
1407 | * jv-exp.y (parse_number): Call parse_float, fix suffix handling. | |
1408 | ||
2837d59e JB |
1409 | 2010-08-19 Joel Brobecker <brobecker@adacore.com> |
1410 | ||
1411 | * psymtab.c (map_symbol_filenames_psymtab): Call FUN with | |
1412 | the arguments in the correct order. | |
1413 | * symtab.c (maybe_add_partial_symtab_filename): Declare | |
1414 | the arguments in the correct order. | |
1415 | ||
35633fef JK |
1416 | 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
1417 | ||
1418 | * varobj.c (varobj_create): Replace variable old_fi with old_id, | |
1419 | initialize it by null_frame_id, wrap its usage by get_frame_id, | |
1420 | frame_id_p and frame_find_by_id. | |
1421 | ||
94f7449c TT |
1422 | 2010-08-18 Tom Tromey <tromey@redhat.com> |
1423 | ||
1424 | PR python/11900: | |
1425 | * configure: Rebuild. | |
1426 | * configure.ac: Add install-python to CONFIG_INSTALL. | |
1427 | * Makefile.in (install-python): New. | |
1428 | ||
f3574227 DE |
1429 | 2010-08-18 Doug Evans <dje@google.com> |
1430 | ||
1431 | * gdb_assert.h (gdb_assert_not_reached): New macro. | |
1432 | (gdb_assert_fail): Fix typo in comment. | |
1433 | * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of | |
1434 | gdb_assert (0). | |
1435 | * darwin-nat.c (darwin_check_new_threads): Ditto. | |
1436 | * dwarf2read.c (dwarf2_get_section_info): Ditto. | |
1437 | (munmap_section_buffer): Ditto. | |
1438 | * m32c-tdep.c (make_types): Ditto. | |
1439 | (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto. | |
1440 | * macroexp.c (get_character_constant): Ditto. | |
1441 | (get_string_literal): Ditto. | |
1442 | * mep-tdep.c (mep_pseudo_cr_size): Ditto. | |
1443 | (mep_pseudo_cr_index, mep_register_type): Ditto. | |
1444 | (mep_pseudo_register_read, mep_pseudo_register_write): Ditto. | |
1445 | (mep_get_insn, mep_analyze_prologue): Ditto. | |
1446 | * objfiles.c (qsort_cmp): Ditto. | |
1447 | * prologue-value.c (pv_is_identical): Ditto. | |
1448 | * record.c (record_get_loc): Ditto. | |
1449 | * value.c (value_static_field): Ditto. | |
1450 | * xtensa-tdep.c (call0_track_op): Ditto. | |
1451 | ||
c92817ce TT |
1452 | 2010-08-18 Tom Tromey <tromey@redhat.com> |
1453 | ||
1454 | PR symtab/11919: | |
1455 | * gdbtypes.c (lookup_struct_elt_type): Clean up error emission. | |
1456 | * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move | |
1457 | name-copying lower. Document exception behavior. | |
1458 | * completer.c (expression_completer): Catch exceptions from | |
1459 | parse_field_expression. | |
1460 | ||
856d6f99 PA |
1461 | 2010-08-18 Pedro Alves <pedro@codesourcery.com> |
1462 | ||
1463 | PR corefile/8210 | |
1464 | ||
1465 | * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983 | |
1466 | workaround on core files. | |
1467 | (try_thread_db_load_1): Don't try enabling thread event reporting | |
1468 | on core files. | |
1469 | (thread_db_load): Allow thread_db on core files. | |
1470 | (attach_thread): Don't check thread signals on core files, nor try | |
1471 | really attaching to the thread, nor enabling thread event event | |
1472 | reporting. | |
1473 | (thread_db_detach): Don't try disabing thread event reporting or | |
1474 | removing thread event breakpoints when debugging a core file. | |
1475 | (find_new_threads_callback): Don't try enabling thread event | |
1476 | reporting on core files. | |
1477 | (thread_db_find_new_threads_2): Don't look for a stopped lwp when | |
1478 | debugging a core file. | |
1479 | (thread_db_find_new_threads): Don't update thread | |
1480 | cores (processors) when debugging a core (dump). | |
1481 | ||
261b8d08 PA |
1482 | 2010-08-18 Pedro Alves <pedro@codesourcery.com> |
1483 | ||
1484 | PR corefile/8210 | |
1485 | ||
1486 | * corelow.c (add_to_thread_list): Don't use | |
1487 | gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid. | |
1488 | (get_core_register_section): Don't use | |
1489 | gdbarch_core_reg_section_encodes_pid. | |
1490 | ||
1491 | * gdbarch.sh (core_reg_section_encodes_pid): Delete. | |
1492 | * gdbarch.h, gdbarch.c: Regenerate. | |
1493 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set | |
1494 | gdbarch_core_reg_section_encodes_pid. | |
1495 | * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto. | |
1496 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto. | |
1497 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto. | |
1498 | ||
f9b42018 YQ |
1499 | 2010-08-18 Yao Qi <yao@codesourcery.com> |
1500 | ||
1501 | * MAINTAINERS : Add myself under Write After Approval. | |
1502 | ||
def98928 TT |
1503 | 2010-08-17 Tom Tromey <tromey@redhat.com> |
1504 | ||
1505 | * NEWS: Mention template parameter support. | |
1506 | ||
0807b50c PA |
1507 | 2010-08-17 Pedro Alves <pedro@codesourcery.com> |
1508 | ||
1509 | PR breakpoints/11371 | |
1510 | ||
1511 | * breakpoint.c (decref_bp_location): Assert the reference count is | |
1512 | sane. | |
1513 | ||
f431efe5 PA |
1514 | 2010-08-17 Pedro Alves <pedro@codesourcery.com> |
1515 | ||
1516 | PR breakpoints/11371 | |
1517 | ||
1518 | * breakpoint.c (breakpoint_init_inferior): Decrement the | |
1519 | location's reference count instead of deleting right away. | |
1520 | (bpstat_free): Decrement the location's reference count. Make | |
1521 | static. | |
1522 | (bpstat_copy): Increment the location's reference count. | |
1523 | (bpstat_find_breakpoint): Adjust. | |
1524 | (bpstat_num): Adjust. | |
1525 | (print_it_typical): Adjust. Use the breakpoint pointer in the | |
1526 | bpstat instead of the location's owner. | |
1527 | (bpstat_alloc): Remove const qualifier from the 'bl' parameter. | |
1528 | Adjust to record the location's owner in the bpstat. | |
1529 | (watchpoint_check): Use the breakpoint pointer in the bpstat | |
1530 | instead of the location's owner. | |
1531 | (bpstat_check_breakpoint_conditions): Don't handle | |
1532 | bp_watchpoint_scope here. Use the breakpoint pointer in the | |
1533 | bpstat instead of the location's owner. | |
1534 | (bpstat_stop_status): Defer inferior function calls to after | |
1535 | building the bpstat list. Handle bp_watchpoint_scope here. Use | |
1536 | the breakpoint pointer in the bpstat instead of the location's | |
1537 | owner. | |
1538 | (bpstat_what): Use the breakpoint pointer in the bpstat instead of | |
1539 | the location's owner. | |
1540 | (free_bp_location): Don't walk bpstats clearing locations. | |
1541 | (incref_bp_location): New. | |
1542 | (decref_bp_location): New. | |
1543 | (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat | |
1544 | instead of the location's owner. | |
1545 | (update_global_location_list): Clear the location's owner, and | |
1546 | decrement the location's reference count instead of deleting it | |
1547 | right away. | |
1548 | (breakpoint_retire_moribund): Decrement the location's reference | |
1549 | count instead of deleting it right away. | |
1550 | (bpstat_remove_bp_location): Delete. | |
1551 | (bpstat_remove_breakpoint): New. | |
1552 | (bpstat_remove_bp_location_callback): Delete. | |
1553 | (bpstat_remove_breakpoint_callback): New. | |
1554 | (delete_breakpoint): Iterate over all threads' stop_bpstat's | |
1555 | clearing references to the breakpoint that is being deleted. | |
1556 | ||
1557 | * breakpoint.h (struct bp_location) <refc>: New field. | |
1558 | <owner>: Update comments. | |
1559 | (bpstat_free): Delete declaration. | |
1560 | (struct bpstats): Change the type of the breakpoint_at field to | |
1561 | struct breakpoint point, from struct bp_location pointer. Add new | |
1562 | field bp_location_at. | |
1563 | ||
14c0d4e1 TT |
1564 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
1565 | ||
1566 | * NEWS: Fix typo. | |
1567 | ||
b56df873 TT |
1568 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
1569 | ||
1570 | * NEWS: Mention watch -location. | |
1571 | ||
d63d0675 JK |
1572 | 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
1573 | ||
1574 | * breakpoint.c (update_watchpoint): Add source empty line. Prefer | |
1575 | EXP_STRING_REPARSE to EXP_STRING. | |
1576 | (watch_command_1): Set also EXP_STRING_REPARSE. | |
1577 | (delete_breakpoint): Free also EXP_STRING_REPARSE. | |
1578 | * breakpoint.h (struct breakpoint): New field exp_string_reparse. | |
1579 | Update comment for exp_string. | |
1580 | ||
06a64a0b TT |
1581 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
1582 | ||
1583 | * value.c (release_value): Clear 'next' pointer. | |
1584 | * breakpoint.c (watch_command_1): Add 'just_location' argument. | |
1585 | (watch_command_wrapper): Update. | |
1586 | (watch_maybe_just_location): New function. | |
1587 | (watch_command): Update. | |
1588 | (rwatch_command_wrapper): Update. | |
1589 | (rwatch_command): Update. | |
1590 | (awatch_command_wrapper): Update. | |
1591 | (awatch_command): Update. | |
1592 | (check_for_argument): New function. | |
1593 | (_initialize_breakpoint): Update help text. | |
1594 | ||
f96b8fa0 UW |
1595 | 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com> |
1596 | ||
1597 | * arm-tdep.c (arm_push_dummy_call): Handle pointers to | |
1598 | typedef'ed function types correctly. | |
1599 | ||
4eb54052 TT |
1600 | 2010-08-13 Tom Tromey <tromey@redhat.com> |
1601 | ||
1602 | * python/python-internal.h (gdbpy_get_hook_function): Don't | |
1603 | declare. | |
1604 | ||
44be957e JK |
1605 | 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1606 | ||
ba720883 | 1607 | * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them |
44be957e JK |
1608 | static. |
1609 | ||
76d8b686 KW |
1610 | 2010-08-13 Ken Werner <ken.werner@de.ibm.com> |
1611 | ||
1612 | * python/python.c (gdbpy_solib_name): Remove the const qualifier of | |
1613 | the format strings to be compatible with Python 2.4. | |
1614 | ||
8dedea02 VP |
1615 | 2010-08-13 Vladimir Prus <vladimir@codesourcery.com> |
1616 | ||
1617 | Easier and more stubborn MI memory read commands. | |
1618 | ||
1619 | * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes | |
1620 | and data-write-memory-bytes. | |
1621 | * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes) | |
1622 | (mi_cmd_data_write_memory_bytes): New. | |
1623 | * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read. | |
1624 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes): | |
1625 | New. | |
1626 | (mi_cmd_list_features): Add "data-read-memory-bytes" feature. | |
1627 | * target.c (target_read_until_error): Remove. | |
1628 | (read_whatever_is_readable, free_memory_read_result_vector) | |
1629 | (read_memory_robust): New. | |
1630 | * target.h (target_read_until_error): Remove. | |
1631 | (struct memory_read_result, free_memory_read_result_vector) | |
1632 | (read_memory_robust): New. | |
1633 | ||
1d9ec526 HZ |
1634 | 2010-08-13 Hui Zhu <teawater@gmail.com> |
1635 | ||
1636 | * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup. | |
1637 | (read_comp_unit): Initialize back_to. | |
1638 | ||
98bfdba5 PA |
1639 | 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com> |
1640 | Pedro Alves <pedro@codesourcery.com> | |
1641 | ||
1642 | * dwarf2read.c: Include "c-lang.h" and "valprint.h". | |
1643 | (struct dwarf2_per_objfile) <reading_partial_symbols>: New field. | |
1644 | (struct partial_die_info) <has_template_arguments>: New field. | |
1645 | <num_attrs>: Change type to unsigned char. | |
1646 | <building_fullname>: New field. | |
1647 | (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only | |
1648 | allocate a CU if we don't have one already. Add a cleanup for the | |
1649 | CU. | |
1650 | (partial_die_full_name): Handle template arguments not in | |
1651 | DW_AT_name. | |
1652 | (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols. | |
1653 | (load_full_comp_unit): Only allocate a CU if we don't have one | |
1654 | already. | |
1655 | (do_ui_file_peek_last): New. | |
1656 | (dwarf2_compute_name): Handle template parameters not in | |
1657 | DW_AT_name. | |
1658 | (read_comp_unit): Read and free abbrevs if not read yet. | |
1659 | (load_partial_dies): Handle template arguments not in DW_AT_name. | |
1660 | (find_partial_die): If we have a CU, but no a partial dies yet, | |
1661 | also read in the CU. | |
1662 | (dwarf2_const_value_attr): New, abstracted out from | |
1663 | dwarf2_const_value. | |
1664 | (dwarf2_const_value, dwarf2_const_value_data): Adjust to use | |
1665 | dwarf2_const_value_attr. | |
1666 | (determine_prefix): Detect and break loops created by RCVT's debug | |
1667 | info. | |
1668 | (maybe_queue_comp_unit): Bail out early if reading partial | |
1669 | symbols. | |
1670 | (follow_die_offset): Load full CU if we have no dies. | |
1671 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public. | |
1672 | * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare. | |
1673 | ||
ca5c20b6 | 1674 | 2010-08-11 Tom Tromey <tromey@redhat.com> |
889bf7c5 | 1675 | Phil Muldoon <pmuldoon@redhat.com> |
ca5c20b6 PM |
1676 | |
1677 | * python/python.c (gdbpy_run_events): New function. | |
1678 | (gdbpy_post_event): Likewise. | |
1679 | (gdbpy_initialize_events): Likewise. | |
1680 | (_initialize_python): Call gdbpy_initialize_events. | |
1681 | ||
7346b668 KW |
1682 | 2010-08-11 Ken Werner <ken.werner@de.ibm.com> |
1683 | ||
1684 | * gdb/valarith.c (vector_binop): New function. | |
1685 | (scalar_binop): Likewise. | |
1686 | (value_binop): Call scalar_binop or vector_binop depending on the types. | |
1687 | * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR. | |
1688 | (evaluate_subexp_with_coercion): Add vector check to not convert vectors | |
1689 | to pointers. | |
1690 | * gdb/value.c (coerce_array): Add vector check to not coerce vectors. | |
1691 | ||
62183e15 TT |
1692 | 2010-08-11 Brad Roberts <braddr@puremagic.com> |
1693 | ||
1694 | * d-lang.c (extract_identifiers): Handle multiple digits. | |
1695 | ||
39d7b0e2 JK |
1696 | 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1697 | ||
1698 | Code cleanup. | |
1699 | * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier. | |
1700 | Rename to dummy_frame_unwind. | |
1701 | (dummy_frame_unwind): Remove. | |
1702 | * dummy-frame.h (dummy_frame_unwind): Reference directly the struct. | |
1703 | * frame-unwind.c (frame_unwind_init): Use address of | |
1704 | dummy_frame_unwind and inline_frame_unwind. | |
1705 | * frame.c (create_sentinel_frame): Use address of | |
1706 | sentinel_frame_unwind. | |
1707 | * inline-frame.c (inline_frame_unwinder): Rename to | |
1708 | inline_frame_unwind. | |
1709 | (inline_frame_unwind): Remove. | |
1710 | * inline-frame.h (inline_frame_unwind): Reference directly the struct. | |
1711 | * sentinel-frame.c (sentinel_frame_unwinder): Rename to | |
1712 | sentinel_frame_unwind. | |
1713 | (sentinel_frame_unwind): Remove. | |
1714 | * sentinel-frame.h (sentinel_frame_unwind): Reference directly the | |
1715 | struct. | |
1716 | ||
9f9a8002 JK |
1717 | 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1718 | ||
1719 | Code cleanup. | |
1720 | * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type | |
1721 | and returned value. New comment from frame-unwind.h. | |
1722 | * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type. | |
1723 | Extend the comment. | |
1724 | * frame.c (get_frame_id, frame_unwind_register_value) | |
1725 | (create_new_frame, get_prev_frame_1, frame_unwinder_is) | |
1726 | (get_frame_type, frame_unwind_arch): Do not use the return value of | |
1727 | frame_unwind_find_by_frame. | |
1728 | ||
cb2e07a6 | 1729 | 2010-08-11 Phil Muldoon <pmuldoon@redhat.com> |
889bf7c5 | 1730 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
cb2e07a6 PM |
1731 | Tom Tromey <tromey@redhat.com> |
1732 | ||
1733 | * python/python.c (gdbpy_solib_address): New function. | |
1734 | (gdbpy_decode_line): Likewise. | |
1735 | ||
c29c521f TT |
1736 | 2010-08-10 Tom Tromey <tromey@redhat.com> |
1737 | ||
1738 | Revert gdb-add-index addition: | |
1739 | * Makefile.in (install-only): Don't install gdb-add-index. | |
1740 | * gdb-add-index.sh: Remove. | |
1741 | ||
0c012db1 KB |
1742 | 2010-08-09 Kevin Buettner <kevinb@redhat.com> |
1743 | ||
1744 | * remote-sim.c (gdbsim_xfer_inferior_memory): Replace | |
1745 | `target_has_execution' check with `to_has_memory' check. | |
1746 | (gdbsim_has_all_memory, gdbsim_has_memory): New functions. | |
1747 | (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops' | |
1748 | with `gdbsim_has_all_memory' and `gdbsim_has_memory'. | |
1749 | ||
db04efe6 KB |
1750 | 2010-08-09 Kevin Buettner <kevinb@redhat.com> |
1751 | ||
1752 | * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid) | |
1753 | (resume_siggnal, resume_step): Move these static globals... | |
1754 | (struct sim_inferior_data): ...into this new struct. | |
1755 | (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open): | |
1756 | New static globals. | |
1757 | (gdb_callback, callbacks_initialized): Move these globals to | |
1758 | a point earlier in the file. | |
1759 | (check_for_duplicate_sim_descriptor, get_sim_inferior_data) | |
1760 | (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup) | |
1761 | (gdbsim_close_inferior, gdbsim_resume_inferior) | |
1762 | (gdbsim_stop_inferior): New functions. | |
1763 | (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID): | |
1764 | New constants. | |
1765 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load) | |
1766 | (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume) | |
1767 | (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait) | |
1768 | (gdbsim_xfer_inferior_memory, gdbsim_files_info) | |
1769 | (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive, | |
1770 | (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set | |
1771 | new local variable `sim_data' in each of these functions. Use | |
1772 | `sim_data' to reference former globals `program_loaded', | |
1773 | `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and | |
1774 | `resume_step'. | |
1775 | (gdbsim_open): Remove local variable `argv'. Put results of call | |
1776 | to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't | |
1777 | make a cleanup for it. Free it though when a sim instance cannot | |
1778 | be obtained. | |
1779 | (gdbsim_close): Free sim_argv and null it out as appropriate. | |
1780 | Close sim instances in all inferiors. | |
1781 | (gdbsim_cntrl_c): Stop all inferiors. | |
1782 | (gdbsim_wait): | |
1783 | (_initialize_remote_sim): Initialize `sim_inferior_data_key'. | |
1784 | ||
e37fd15a SW |
1785 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
1786 | ||
1787 | * dwarf2read.c (new_symbol): Add symbol to variable list at end of | |
1788 | function after symbol construction is complete. | |
1789 | Do the same for template symbol addition to template_symbols list. | |
1790 | ||
45c58896 SW |
1791 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
1792 | ||
1793 | * symtab.c (symbol_get_demangled_name): Remove assertion and | |
1794 | return NULL when language_specific.cplus_specific is not initialized. | |
1795 | * stabsread.c (define_symbol): Set the name before calling | |
1796 | cp_scan_for_anonymous_namespaces. | |
1797 | ||
33e5013e SW |
1798 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
1799 | ||
1800 | * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to | |
1801 | SYMBOL_SET_LANGUAGE. | |
1802 | (symbol_init_language_specific): Renamed to symbol_set_language. | |
1803 | * symtab.c (symbol_init_language_specific): Removed redundant check | |
1804 | for language_cplus. | |
1805 | Renamed to symbol_set_language. | |
1806 | * stabsread.c (define_symbol): Updated. | |
1807 | (read_enum_type): Updated | |
1808 | * psymtab.c (add_psymbol_to_bcache): Updated. | |
1809 | * minsyms.c (install_minimal_symbols): Updated. | |
1810 | * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of | |
1811 | SYMBOL_LANGUAGE to set the language. | |
1812 | * minsyms.c (prim_record_minimal_symbol_full): Ditto. | |
1813 | * mdebugread.c (new_symbol): Ditto. | |
1814 | * cp-namespace.c (check_one_possible_namespace_symbol): Ditto. | |
1815 | * dwarf2read.c (new_symbol_full): Ditto. | |
1816 | * jv-lang.c (add_class_symbol): Ditto. | |
1817 | ||
5da1313b JK |
1818 | 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1819 | ||
1820 | * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file) | |
1821 | (make_cleanup_restore_page_info) | |
1822 | (set_batch_flag_and_make_cleanup_restore_page_info): New declarations. | |
1823 | * gdbcmd.h (execute_command_to_string): New declaration. | |
1824 | * python/python.c (struct restore_ui_file_closure, restore_ui_file) | |
1825 | (make_cleanup_restore_ui_file): Move to utils.c | |
1826 | (execute_gdb_command) <to_string>: Move ... | |
1827 | * top.c (execute_command_to_string): ... here. Call | |
1828 | set_batch_flag_and_make_cleanup_restore_page_info. | |
1829 | * utils.c (make_cleanup_restore_integer): New source file blank line. | |
1830 | (make_cleanup_restore_uinteger): New. | |
1831 | (struct restore_ui_file_closure, do_restore_ui_file) | |
1832 | (make_cleanup_restore_ui_file): Move here from python/python.c. | |
1833 | (init_page_info) <batch_flag> | |
1834 | (do_restore_page_info_cleanup, make_cleanup_restore_page_info) | |
1835 | (set_batch_flag_and_make_cleanup_restore_page_info): New. | |
1836 | ||
c820c52a PA |
1837 | 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com> |
1838 | ||
1839 | * thread.c (add_thread_silent): Use null_ptid instead of | |
1840 | minus_one_ptid while getting rid of stale inferior_ptid. | |
1841 | ||
8da614df CV |
1842 | 2010-08-06 Corinna Vinschen <vinschen@redhat.com> |
1843 | ||
1844 | * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member. | |
1845 | Throughout, call read_encoded_value with ptr_size rather than addr_size. | |
1846 | (decode_frame_entry_1): Remove redundant setting of | |
1847 | addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit | |
1848 | to determine addr_size in Dwarf versions < 4. Set ptr_size dependent | |
1849 | on examined frame section. Add comment to explain why. | |
1850 | * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy | |
1851 | comment to explain usage. | |
1852 | * gdbarch.c: Regenerate. | |
1853 | * gdbarch.h: Regenerate. | |
1854 | ||
1855 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4. | |
1856 | ||
e4195b40 JK |
1857 | 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1858 | ||
1859 | Code cleanup. | |
1860 | * varobj.c (varobj_create): Move variables fi, old_fi and block to | |
1861 | a more inner block. | |
1862 | ||
a3217aa0 PA |
1863 | 2010-08-05 Pedro Alves <pedro@codesourcery.com> |
1864 | ||
1865 | * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*) | |
1866 | (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) | |
1867 | (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*) | |
1868 | (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add | |
1869 | linux-tdep.o to gdb_target_obs. | |
1870 | ||
e2b4a699 | 1871 | 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com> |
889bf7c5 PA |
1872 | |
1873 | * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first | |
e2b4a699 | 1874 | argument. |
889bf7c5 | 1875 | |
50e8a0d5 HZ |
1876 | 2010-08-05 Hui Zhu <teawater@gmail.com> |
1877 | ||
1878 | * mips-linux-tdep.c(regset.h): New include. | |
1879 | (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper, | |
1880 | mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper, | |
1881 | mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper, | |
1882 | mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper, | |
1883 | mips_linux_regset_from_core_section): New functions. | |
1884 | (fetch_core_registers, regset_core_fns): Deleted. | |
1885 | (mips_linux_init_abi): Add mips_linux_regset_from_core_section. | |
1886 | Deleted regset_core_fns. | |
1887 | * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset, | |
1888 | tdep->gregset64, tdep->fpregset and tdep->fpregset64. | |
1889 | * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset | |
1890 | and fpregset64. | |
1891 | ||
70728992 PA |
1892 | 2010-08-04 Pedro Alves <pedro@codesourcery.com> |
1893 | ||
1894 | * s390-tdep.c: Include linux-tdep.h. | |
1895 | (s390_gdbarch_init): Call linux_init_abi. | |
1896 | ||
a5ee0f0c PA |
1897 | 2010-08-04 Pedro Alves <pedro@codesourcery.com> |
1898 | ||
1899 | * corelow.c (core_pid_to_str): Default to using normal_pid_to_str | |
1900 | instead of printing "Thread" here. | |
1901 | * linux-tdep.c: Include inferior.h. | |
1902 | (linux_core_pid_to_str): New. | |
1903 | (linux_init_abi): New. | |
1904 | * linux-tdep.h (linux_init_abi): Declare. | |
1905 | * alpha-linux-tdep.c: Include linux-tdep.h. | |
1906 | (alpha_linux_init_abi): Call linux_init_abi. | |
1907 | * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi. | |
1908 | * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi. | |
1909 | * frv-linux-tdep.c: Include linux-tdep.h | |
1910 | (frv_linux_init_abi): Call linux_init_abi. | |
1911 | * hppa-linux-tdep.c: Include linux-tdep.h | |
1912 | (hppa_linux_init_abi): Call linux_init_abi. | |
1913 | * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi. | |
1914 | * ia64-linux-tdep.c: Include linux-tdep.h. | |
1915 | (ia64_linux_init_abi): Call linux_init_abi. | |
1916 | * m32r-linux-tdep.c: Include linux-tdep.h. | |
1917 | (m32r_linux_init_abi): Call linux_init_abi. | |
1918 | * m68klinux-tdep.c: Include linux-tdep.h. | |
1919 | (m68k_linux_init_abi): Call linux_init_abi. | |
1920 | * microblaze-linux-tdep.c: Include linux-tdep.h. | |
1921 | (microblaze_linux_init_abi): Call linux_init_abi. | |
1922 | * mips-linux-tdep.c: Include linux-tdep.h. | |
1923 | (mips_linux_init_abi): Call linux_init_abi. | |
1924 | * mn10300-linux-tdep.c: Include linux-tdep.h. | |
1925 | (am33_linux_init_osabi): Call linux_init_abi. Rename the | |
1926 | 'gdbinfo' parameter to 'info'. | |
1927 | * ppc-linux-tdep.c: Include linux-tdep.h. | |
1928 | (ppc_linux_init_abi): Call linux_init_abi. | |
1929 | * sh-linux-tdep.c: Include linux-tdep.h. | |
1930 | (sh_linux_init_abi): Call linux_init_abi. | |
1931 | * sparc-linux-tdep.c: Include linux-tdep.h. | |
1932 | (sparc32_linux_init_abi): Call linux_init_abi. | |
1933 | * sparc64-linux-tdep.c: Include linux-tdep.h. | |
1934 | (sparc64_linux_init_abi): Call linux_init_abi. | |
1935 | * xtensa-linux-tdep.c: Include linux-tdep.h. | |
1936 | (xtensa_linux_init_abi): Call linux_init_abi. | |
1937 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New. | |
1938 | (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str | |
1939 | callback. | |
1940 | ||
bc043ef3 DE |
1941 | 2010-08-03 Doug Evans <dje@google.com> |
1942 | ||
1943 | * breakpoint.c (bpdisp_text): Constify bpdisps. | |
1944 | * solib-svr4.c (solib_break_names): Constify. | |
1945 | (bkpt_names, main_name_list): Constify. | |
1946 | (match_main): Constify soname arg. | |
63cdd227 DE |
1947 | (bfd_lookup_symbol): Remove unnecessary forward decl. |
1948 | Constify symname arg. | |
bc043ef3 DE |
1949 | (enable_break): Constify bkpt_namep. |
1950 | * symtab.c (search_symbols): Constify types, types2, types3, types4. | |
1951 | (symtab_symbol_info): Constify classnames. | |
1952 | ||
585d1eb8 PM |
1953 | 2010-08-03 Phil Muldoon <pmuldoon@redhat.com> |
1954 | ||
1955 | * NEWS: Document Python value inferior function calls. | |
1956 | ||
2de00c64 DE |
1957 | 2010-08-02 Doug Evans <dje@google.com> |
1958 | ||
1959 | * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature. | |
1960 | ||
02d868e8 PP |
1961 | 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
1962 | ||
1963 | * linux-thread-db.c (libthread_db_debug): New variable. | |
1964 | (thread_db_find_new_threads_silently): Control verbosity with it. | |
1965 | (try_thread_db_load_1, try_thread_db_load): Likewise. | |
1966 | (find_new_threads_once): Likewise. | |
1967 | (_initialize_thread_db): Set/show it. | |
1968 | ||
a19cae16 JK |
1969 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
1970 | ||
1971 | * common/signals.c (signals): Move the content to signals.def. | |
1972 | Include it. Remove the INDENT comments. | |
1973 | ||
c2bbed2a TT |
1974 | 2010-07-30 Tom Tromey <tromey@redhat.com> |
1975 | ||
1976 | * Makefile.in (install-only): Install gdb-add-index. | |
1977 | * gdb-add-index.sh: New file. | |
1978 | ||
f32b2f09 CR |
1979 | 2010-07-31 Renquan Cheng <crq@gcc.gnu.org> |
1980 | ||
1981 | * MAINTAINERS: Add myself for write after approval privileges. | |
1982 | ||
1276c759 JK |
1983 | 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
1984 | ||
1985 | * symfile.c (addr_section_name): New function. | |
1986 | (addrs_section_compar): Use it. | |
1987 | (addr_info_make_relative): Use it. Move variable sect_name into a more | |
1988 | inner block. Make ".dynbss" and ".sdynbss" checks more strict. | |
1989 | ||
420697bb TT |
1990 | 2010-07-30 Tom Tromey <tromey@redhat.com> |
1991 | ||
1992 | * configure: Rebuild. | |
1993 | * configure.ac: Add missing case for Python 2.7. | |
1994 | ||
d0d99561 DD |
1995 | 2010-07-29 DJ Delorie <dj@redhat.com> |
1996 | ||
1997 | * rx-tdep.c (rx_analyze_prologue): Don't require branches to have | |
1998 | conditions. | |
1999 | ||
0b29bdde PA |
2000 | 2010-07-29 Pedro Alves <pedro@codesourcery.com> |
2001 | ||
2002 | * PROBLEMS: Remove mention of all problems. | |
2003 | ||
110ed339 PA |
2004 | 2010-07-28 Pedro Alves <pedro@codesourcery.com> |
2005 | ||
2006 | PR build/11848 | |
2007 | * configure.ac: Check for wresize. | |
2008 | * configure, config.in: Regenerate. | |
2009 | * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call | |
2010 | with HAVE_WRESIZE. | |
2011 | ||
326fd672 TT |
2012 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2013 | ||
2014 | PR python/11060: | |
2015 | * python/py-type.c (typy_legacy_template_argument): New function, | |
2016 | extracted from typy_template_argument. | |
2017 | (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a | |
2018 | value when needed. | |
2019 | ||
4ac8c4da TT |
2020 | 2010-07-28 Oleg Nesterov <oleg@redhat.com> |
2021 | ||
2022 | * remote.c (readchar): Call pop_target in case of SERIAL_ERROR. | |
2023 | ||
053315c2 TT |
2024 | 2010-07-27 Tom Tromey <tromey@redhat.com> |
2025 | ||
2026 | * dwarf2read.c (dwarf2_const_value_data): Never sign extend. | |
2027 | ||
3ce3b1ba PA |
2028 | 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
2029 | ||
2030 | * dwarf2read.c (read_subroutine_type): Improve THIS detection, | |
2031 | handling DW_AT_object_pointer, and workaround GCC PR 43053. | |
2032 | ||
2bb4f988 TT |
2033 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2034 | ||
2035 | * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h. | |
2036 | ||
74232302 JB |
2037 | 2010-07-28 Joel Brobecker <brobecker@adacore.com> |
2038 | ||
2039 | * remote.c (remote_download_tracepoint): Add missing gettext markup. | |
2040 | * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise. | |
2041 | ||
385d04dc JB |
2042 | 2010-07-28 Joel Brobecker <brobecker@adacore.com> |
2043 | ||
2044 | * breakpoint.c (breakpoint_re_set_one): Move call to set_language | |
2045 | down, just before the block that parse the breakpoint addr_string. | |
2046 | ||
34eaf542 TT |
2047 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2048 | ||
2049 | PR c++/9946: | |
2050 | * symfile.c (reread_symbols): Clear template_symbols. | |
2051 | * symtab.h (struct symbol) <is_cplus_template_function>: New | |
2052 | field. | |
2053 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. | |
2054 | (struct template_symbol): New. | |
2055 | * symtab.c (lookup_symbol_aux_local): Use | |
2056 | cp_lookup_symbol_imports_or_template. | |
2057 | * objfiles.h (struct objfile) <template_symbols>: New field. | |
2058 | * objfiles.c (relocate_one_symbol): New function. | |
2059 | (objfile_relocate1): Use it. Relocate isolated symbols. | |
2060 | * gdbtypes.h (struct cplus_struct_type) <n_template_arguments, | |
2061 | template_arguments>: New fields. | |
2062 | (TYPE_N_TEMPLATE_ARGUMENTS): New macro. | |
2063 | (TYPE_TEMPLATE_ARGUMENTS): Likewise. | |
2064 | (TYPE_TEMPLATE_ARGUMENT): Likewise. | |
2065 | (lookup_typename): Update. | |
2066 | * gdbtypes.c (lookup_typename): Constify "block" argument. | |
2067 | * dwarf2read.c: Include vec.h. | |
2068 | (symbolp): New typedef. | |
2069 | (read_func_scope): Read template arguments. Allocate a | |
2070 | template_symbol when needed. | |
2071 | (read_structure_type): Read template arguments. | |
2072 | (new_symbol_full): New function, from new_symbol. Handle | |
2073 | DW_TAG_template_type_param and DW_TAG_template_value_param. | |
2074 | (new_symbol): Rewrite as wrapper. | |
2075 | * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. | |
2076 | * cp-namespace.c: Include language.h. | |
2077 | (search_symbol_list): New function. | |
2078 | (cp_lookup_symbol_imports_or_template): Likewise. | |
2079 | ||
d27b3be4 PA |
2080 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
2081 | ||
2082 | * tui/tui-win.c (make_visible_with_new_height): Resize and move | |
2083 | the command window to the new size and position. | |
2084 | ||
0036e657 PA |
2085 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
2086 | ||
a782f43e | 2087 | * tui/tui-win.c (tui_resize_all): Update the locator's origin's |
0036e657 PA |
2088 | coordinates. |
2089 | ||
36900355 PA |
2090 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
2091 | ||
a782f43e | 2092 | * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all |
36900355 | 2093 | after a detecting a resize. |
a782f43e | 2094 | * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to |
36900355 PA |
2095 | call. |
2096 | ||
db5e03ae PA |
2097 | 2010-07-28 Pedro Alves <pedro@codesourcery.com> |
2098 | ||
2099 | * configure.ac: Check for resize_term. | |
2100 | * configure, config.in: Regenerate. | |
2101 | ||
b71fff68 JB |
2102 | 2010-07-27 Joel Brobecker <brobecker@adacore.com> |
2103 | ||
2104 | * MAINTAINERS (Write After Approval): Reorder a couple of entries. | |
2105 | ||
9b1c24c8 PA |
2106 | 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com> |
2107 | ||
2108 | * dwarf2read.c (read_string): Rename to ... | |
2109 | (read_direct_string): ... this. | |
2110 | (skip_one_die, read_attribute_value, dwarf_decode_line_header) | |
2111 | (dwarf_decode_lines, dwarf_decode_macros): Adjust. | |
2112 | ||
00390b84 JK |
2113 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
2114 | ||
2115 | * linux-nat.c (linux_nat_lp_status_is_event): New function. | |
2116 | (count_events_callback, select_event_lwp_callback) | |
2117 | (cancel_breakpoints_callback, linux_nat_wait_1): Use it. | |
2118 | ||
26ab7092 JK |
2119 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
2120 | ||
2121 | * ia64-linux-nat.c (ia64_linux_status_is_event): New function. | |
2122 | (_initialize_ia64_linux_nat): Install it. | |
2123 | * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event) | |
2124 | (linux_nat_set_status_is_event): New. | |
2125 | (stop_wait_callback, count_events_callback, select_event_lwp_callback) | |
2126 | cancel_breakpoints_callback, linux_nat_filter_event) | |
2127 | (linux_nat_wait_1): Use linux_nat_status_is_event. | |
2128 | * linux-nat.h (linux_nat_set_status_is_event): New prototype. | |
2129 | ||
283e6a52 TT |
2130 | 2010-07-27 Tom Tromey <tromey@redhat.com> |
2131 | ||
2132 | * NEWS: Mention labels, .gdb_index. | |
2133 | ||
53a71c06 CR |
2134 | 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg> |
2135 | ||
2136 | * cli/cli-cmds.c (disassemble_command): Add support of disassemble | |
3422f666 | 2137 | "start,+length" form of arguments. |
53a71c06 CR |
2138 | * NEWS: Add "Changed commands" (disassemble) section for "Changes |
2139 | since GDB 7.1"; and merge two separated paragraphs of disassemble | |
2140 | description in "Changes in GDB 7.0". | |
2141 | ||
c63a1f86 JK |
2142 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
2143 | ||
2144 | * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. | |
2145 | * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. | |
2146 | (fputs_maybe_filtered): Do not do filtering also on | |
2147 | ! INPUT_FROM_TERMINAL_P. | |
2148 | ||
abebb8b0 JB |
2149 | 2010-07-27 Joel Brobecker <brobecker@adacore.com> |
2150 | ||
2151 | * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline | |
2152 | in warning message. | |
2153 | ||
5374244e PM |
2154 | 2010-07-27 Phil Muldoon <pmuldoon@redhat.com> |
2155 | ||
2156 | * python/py-value.c (valpy_call): New Function. | |
2157 | ||
ac0b195c KW |
2158 | 2010-07-27 Ken Werner <ken.werner@de.ibm.com> |
2159 | ||
889bf7c5 | 2160 | * dwarf2read.c (dwarf2_read_index): Initialize the types_list and |
ac0b195c KW |
2161 | types_list_elements variables. |
2162 | ||
09d8bd00 TT |
2163 | 2010-07-26 Tom Tromey <tromey@redhat.com> |
2164 | ||
2165 | * dwarf2loc.c (locexpr_describe_location_piece): Also recognize | |
2166 | TLS with DW_OP_const4u or DW_OP_const8u. | |
2167 | ||
9fe70b4f TJB |
2168 | 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2169 | ||
2170 | * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get | |
2171 | VSX registers contents. | |
2172 | ||
caac4577 JG |
2173 | 2010-07-26 Jerome Guitton <guitton@adacore.com> |
2174 | ||
2175 | * dwarf2read.c (add_partial_symbol): Do not add a global variable if | |
2176 | its adress is null. Add comment to explain why. | |
2177 | (new_symbol): Ditto. | |
2178 | ||
857d11d0 JK |
2179 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
2180 | ||
2181 | * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to | |
2182 | the host signal first. | |
2183 | ||
1fd400ff TT |
2184 | 2010-07-23 Tom Tromey <tromey@redhat.com> |
2185 | ||
2186 | * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units, | |
2187 | type_comp_units>: New fields. | |
2188 | (dw2_get_cu): New function. | |
2189 | (create_cus_from_index): Remove unused argument. | |
2190 | (create_signatured_type_hash_from_index): New function. | |
2191 | (create_addrmap_from_index): Update. | |
2192 | (dwarf2_read_index): Handle version 2. | |
2193 | (dw2_find_last_source_symtab, dw2_forget_cached_source_info) | |
2194 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching) | |
2195 | (dw2_print_stats, dw2_expand_all_symtabs) | |
2196 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file) | |
2197 | (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update. | |
2198 | (dwarf2_initialize_objfile): Call create_debug_types_hash_table. | |
2199 | (allocate_signatured_type_hash_table): New function. | |
2200 | (add_signatured_type_cu_to_list): Likewise. | |
2201 | (create_debug_types_hash_table): Use them. Set type_comp_units. | |
2202 | (read_signatured_type): Ensure section data is available. | |
2203 | (add_address_entry): Don't record empty ranges. | |
2204 | (struct signatured_type_index_data): New. | |
2205 | (write_one_signatured_type): New function. | |
2206 | (write_psymtabs_to_index): Write type CUs. | |
2207 | (save_gdb_index_command): Update comment. | |
2208 | (process_type_comp_unit): Move inititalization of | |
2209 | from_debug_types... | |
2210 | (create_debug_types_hash_table): ... here. | |
2211 | ||
3a674486 JK |
2212 | 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
2213 | ||
2214 | * gdb_gcore.sh (tmpfile): Remove the variable, its initialization, | |
2215 | cleanup and generating of gdb script to it. | |
2216 | (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination | |
2217 | and terminal size. Convert $tmpfile to a series of -ex-es. | |
2218 | ||
54ec275a KS |
2219 | 2010-07-23 Keith Seitz <keiths@redhat.com> |
2220 | ||
2221 | * symtab.c (basic_lookup_transparent_type): Call pre-expand | |
2222 | hook for STATIC_BLOCK types, too. | |
2223 | ||
8fd447e6 KS |
2224 | 2010-07-23 Keith Seitz <keiths@redhat.com> |
2225 | ||
2226 | * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr | |
2227 | and vector definition. | |
2228 | ||
25b72dde JK |
2229 | 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
2230 | ||
2231 | * linux-nat.c (cancel_breakpoint): Remove unused forward declaration. | |
2232 | ||
96d19272 JK |
2233 | 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
2234 | ||
2235 | * dwarf2read.c: Include completer.h. | |
2236 | (save_gdb_index_command): Use matching usage command name. | |
2237 | (_initialize_dwarf2_read): New variable c, initialize it by add_cmd. | |
2238 | Set filename_completer for it. | |
2239 | ||
ca1f3406 TT |
2240 | 2010-07-22 Tom Tromey <tromey@redhat.com> |
2241 | ||
2242 | * dwarf2read.c (create_debug_types_hash_table): Set objfile on | |
2243 | type signature's per-CU data. | |
2244 | ||
ba25b921 PA |
2245 | 2010-07-22 Pedro Alves <pedro@codesourcery.com> |
2246 | ||
2247 | * NEWS: Mention target reported shared libraries support by | |
2248 | default. | |
2249 | ||
23bd0f7c PA |
2250 | 2010-07-21 Pedro Alves <pedro@codesourcery.com> |
2251 | ||
2252 | PR symtab/11827 | |
2253 | ||
2254 | Revert: | |
2255 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> | |
2256 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
2257 | and DW_TAG_volatile_type. | |
2258 | (new_symbol): Likewise. | |
2259 | ||
883df6dd SW |
2260 | 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com> |
2261 | ||
2262 | * eval.c (evaluate_subexp_standard): Disabled evaluation of C++ | |
2263 | function symbols before overload resolution. | |
2264 | ||
269b11a2 PA |
2265 | 2010-07-21 Pedro Alves <pedro@codesourcery.com> |
2266 | ||
2267 | * breakpoint.c (bptype_string): New, abstracted out from | |
2268 | print_one_breakpoint_location. | |
2269 | (print_one_breakpoint_location): Adjust. | |
2270 | (breakpoint_1): Adjust the type column width dynamically. | |
2271 | ||
569b05a5 JK |
2272 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2273 | ||
2274 | * symfile.c (find_separate_debug_file_by_debuglink): Remove | |
2275 | a gdb_assert call, new comment. | |
2276 | ||
ad34eb2f JK |
2277 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2278 | ||
2279 | * linux-nat.c (linux_handle_extended_wait): Handle case when | |
2280 | event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP. | |
2281 | ||
33355866 JK |
2282 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2283 | ||
2284 | Code cleanup. | |
2285 | * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling | |
2286 | linux_nat_wait_1. Use always LP->STATUS afterwards. | |
2287 | ||
26590820 HZ |
2288 | 2010-07-20 Hui Zhu <teawater@gmail.com> |
2289 | ||
2290 | * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. | |
2291 | (inf_ptrace_attach): Ditto. | |
2292 | ||
c0edd9ed JK |
2293 | 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
2294 | ||
2295 | Make core files the process_stratum. | |
2296 | * corefile.c (core_target): New variable. | |
2297 | (core_file_command): Remove variable t, use core_target. | |
2298 | * corelow.c (core_ops): Make it static. | |
2299 | (init_core_ops): Change to process_stratum. Initialize CORE_TARGET. | |
2300 | * defs.h (make_cleanup_unpush_target): New prototype. | |
2301 | * gdbarch.h: Regenerate. | |
2302 | * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment. | |
2303 | * gdbcore.h (core_target): New declaration. | |
2304 | * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New | |
2305 | variables ops_already_pushed and back_to. Use push_target, | |
2306 | make_cleanup_unpush_target and discard_cleanups calls. | |
2307 | * record.c (record_open): Replace core_stratum by a core_bfd check. | |
2308 | * target.c (target_is_pushed): New function. | |
2309 | (find_core_target): Remove. | |
2310 | * target.h (enum strata) <core_stratum>: Remove. | |
2311 | (target_is_pushed): New declaration. | |
2312 | (find_core_target): Remove declaration. | |
2313 | * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment. | |
2314 | * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. | |
2315 | ||
f02253f1 HZ |
2316 | 2010-07-19 Hui Zhu <teawater@gmail.com> |
2317 | ||
2318 | * breakpoint.c (single_step_breakpoints_inserted): New | |
2319 | function. | |
2320 | * breakpoint.h (single_step_breakpoints_inserted): Extern. | |
2321 | * infrun.c (maybe_software_singlestep): Add check code. | |
2322 | * record.c (record_resume): Add code for software single step. | |
2323 | (record_wait): Ditto. | |
2324 | ||
78768c4a JK |
2325 | 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
2326 | ||
2327 | * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into | |
2328 | a more inner block. Remove its unused declaration initializer. | |
2329 | ||
431e49aa TJB |
2330 | 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2331 | ||
2332 | * NEWS: Mention support for the new ptrace interface and hardware | |
2333 | accelerated watchpoint conditions on powerpc-linux. | |
2334 | ||
bd91e7ae OS |
2335 | 2010-07-16 Ozkan Sezer <sezeroz@gmail.com> |
2336 | ||
2337 | * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned | |
2338 | long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars | |
2339 | and host_address_to_string() and %s for pointers. | |
2340 | (debug_to_remove_breakpoint): Likewise. | |
2341 | (debug_to_region_ok_for_hw_watchpoint): Likewise. | |
2342 | (debug_to_can_accel_watchpoint_condition): Likewise. | |
2343 | (debug_to_stopped_data_address): Likewise. | |
2344 | (debug_to_watchpoint_addr_within_range): Likewise. | |
2345 | (debug_to_insert_hw_breakpoint): Likewise. | |
2346 | (debug_to_remove_hw_breakpoint): Likewise. | |
2347 | (debug_to_insert_watchpoint): Likewise. | |
2348 | (debug_to_remove_watchpoint): Likewise. | |
2349 | ||
29df156d SW |
2350 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
2351 | ||
2352 | * symtab.h (symbol_set_demangled_name): Now takes an optional objfile* | |
2353 | argument. | |
2354 | (cplus_specific): New struct. | |
2355 | * symtab.c (symbol_set_demangled_name): Updated. | |
2356 | Use cplus_specific for cplus symbols. | |
2357 | (symbol_get_demangled_name): Retrive the name from the cplus_specific | |
2358 | struct for cplus symbols. | |
2359 | (symbol_init_language_specific): Set cplus_specific for cplus symbols. | |
2360 | (symbol_set_names): Pass objfile to symbol_set_demangled_name. | |
2361 | * symtab.c (symbol_init_cplus_specific): New function. | |
2362 | ||
b250c185 SW |
2363 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
2364 | ||
2365 | * symtab.h (symbol_set_demangled_name): New function. | |
2366 | (symbol_get_demangled_name): New function. | |
2367 | * symtab.c (symbol_set_demangled_name): New function. | |
2368 | (symbol_get_demangled_name): New function. | |
2369 | (symbol_init_language_specific): Use demangled_name setter and getter. | |
2370 | (symbol_set_names): Ditto. | |
2371 | (symbol_natural_name): Ditto. | |
2372 | (symbol_demangled_name): Ditto. | |
2373 | * dwarf2read.c (new_symbol): Ditto. | |
2374 | ||
afa16725 SW |
2375 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
2376 | ||
2377 | * symtab.h: Renamed cplus_specific to mangled_lang. | |
2378 | * symtab.c (symbol_init_language_specific): Updated. | |
2379 | (symbol_set_names): Updated. | |
2380 | (symbol_natural_name): Updated. | |
2381 | (symbol_demangled_name): Updated. | |
2382 | * ada-lang.c (ada_decode_symbol): Updated. | |
2383 | * dwarf2read.c (new_symbol): Updated. | |
2384 | ||
3cbaedff KW |
2385 | 2010-07-14 Ken Werner <ken.werner@de.ibm.com> |
2386 | ||
2387 | * valops.c (value_assign): Do not call to value_coerce_to_target. | |
2388 | (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR. | |
2389 | ||
c932f1be KW |
2390 | 2010-07-14 Ken Werner <ken.werner@de.ibm.com> |
2391 | ||
2392 | * MAINTAINERS: Add myself for write after approval privileges. | |
2393 | ||
91158a56 TT |
2394 | 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com> |
2395 | ||
2396 | * c-valprint.c (c_val_print): Add embedded_offset to address in | |
2397 | call to val_print_array_elements. | |
2398 | ||
b3b272e1 TT |
2399 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2400 | ||
2401 | * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'. | |
2402 | ||
bb3fa9d0 TT |
2403 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2404 | ||
2405 | * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to | |
2406 | objfile. | |
2407 | ||
dd786858 TT |
2408 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2409 | ||
2410 | * symfile.c (set_initial_language): Update. | |
2411 | (deduce_language_from_filename): Argument type now const. | |
2412 | * symtab.h (find_main_filename): Update. | |
2413 | (deduce_language_from_filename): Update. | |
2414 | * symtab.c (find_main_filename): Make result const. | |
2415 | * dwarf2read.c (dw2_find_symbol_file): Change return type. | |
2416 | * psymtab.c (find_symbol_file_from_partial): Change return type. | |
2417 | * symfile.h (struct quick_symbol_functions) <find_symbol_file>: | |
2418 | Make result const. | |
2419 | ||
9291a0cd TT |
2420 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2421 | ||
2422 | * breakpoint.c (save_cmdlist): No longer static. | |
2423 | * gdbcmd.h (save_cmdlist): Declare. | |
2424 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Set | |
2425 | OBJF_READNOW on objfile if readnow_symbol_files. | |
2426 | * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile. | |
2427 | (elf_sym_fns_gdb_index): New global. | |
2428 | * dwarf2read.c: Include exceptions.h. | |
2429 | (offset_type): New. | |
2430 | (struct mapped_index): New. | |
2431 | (dwarf2_per_cu_data_ptr): New typedef. | |
2432 | (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>: | |
2433 | New fields. | |
2434 | (GDB_INDEX_SECTION): New define. | |
2435 | (struct dwarf2_per_cu_quick_data): New. | |
2436 | (struct dwarf2_per_cu_data) <objfile>: New field. | |
2437 | <psymtab>: Removed. | |
2438 | <v>: New field. | |
2439 | (byte_swap): New function. | |
2440 | (MAYBE_SWAP): New macro. | |
2441 | (INDEX_SUFFIX): New macro. | |
2442 | (dw2_do_instantiate_symtab): New function. | |
2443 | (dw2_instantiate_symtab): Likewise. | |
2444 | (create_cus_from_index): Likewise. | |
2445 | (create_addrmap_from_index): Likewise. | |
2446 | (mapped_index_string_hash): Likewise. | |
2447 | (find_slot_in_mapped_hash): Likewise. | |
2448 | (dwarf2_read_index): Likewise. | |
2449 | (dw2_setup): Likewise. | |
2450 | (dw2_require_line_header): Likewise. | |
2451 | (dw2_require_full_path): Likewise. | |
2452 | (dw2_find_last_source_symtab): Likewise. | |
2453 | (dw2_forget_cached_source_info): Likewise. | |
2454 | (dw2_lookup_symtab): Likewise. | |
2455 | (dw2_lookup_symbol): Likewise. | |
2456 | (dw2_do_expand_symtabs_matching): Likewise. | |
2457 | (dw2_pre_expand_symtabs_matching): Likewise. | |
2458 | (dw2_print_stats): Likewise. | |
2459 | (dw2_dump): Likewise. | |
2460 | (dw2_relocate): Likewise. | |
2461 | (dw2_expand_symtabs_for_function): Likewise. | |
2462 | (dw2_expand_all_symtabs): Likewise. | |
2463 | (dw2_expand_symtabs_with_filename): Likewise. | |
2464 | (dw2_find_symbol_file): Likewise. | |
2465 | (dw2_map_ada_symtabs): Likewise. | |
2466 | (dw2_expand_symtabs_matching): Likewise. | |
2467 | (dw2_find_pc_sect_symtab): Likewise. | |
2468 | (dw2_map_symbol_names): Likewise. | |
2469 | (dw2_map_symbol_filenames): Likewise. | |
2470 | (dw2_has_symbols): Likewise. | |
2471 | (dwarf2_gdb_index_functions): New global. | |
2472 | (dwarf2_initialize_objfile): New function. | |
2473 | (process_psymtab_comp_unit): Update. | |
2474 | (add_partial_subprogram): Likewise. | |
2475 | (dwarf2_psymtab_to_symtab): Likewise. | |
2476 | (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab. | |
2477 | (process_full_comp_unit): Update. | |
2478 | (find_file_and_directory): New function. | |
2479 | (read_file_scope): Use find_file_and_directory. | |
2480 | (dwarf2_per_cu_objfile): Update. | |
2481 | (dwarf2_per_cu_addr_size): Update. | |
2482 | (dwarf2_per_cu_offset_size): Update. | |
2483 | (dwarf2_free_objfile): Free the index, if needed. | |
2484 | (dwarf2_per_objfile_free): Unmap the index, if needed. | |
2485 | (struct strtab_entry): New. | |
2486 | (hash_strtab_entry): New function. | |
2487 | (eq_strtab_entry): Likewise. | |
2488 | (create_strtab): Likewise. | |
2489 | (add_string): Likewise. | |
2490 | (struct symtab_index_entry): New. | |
2491 | (struct mapped_symtab): New. | |
2492 | (hash_symtab_entry): New function. | |
2493 | (eq_symtab_entry): Likewise. | |
2494 | (delete_symtab_entry): Likewise. | |
2495 | (create_index_table): Likewise. | |
2496 | (create_mapped_symtab): Likewise. | |
2497 | (cleanup_mapped_symtab): Likewise. | |
2498 | (find_slot): Likewise. | |
2499 | (hash_expand): Likewise. | |
2500 | (add_index_entry): Likewise. | |
2501 | (add_indices_to_cpool): Likewise. | |
2502 | (write_hash_table): Likewise. | |
2503 | (add_address_entry): Likewise. | |
2504 | (write_psymbols): Likewise. | |
2505 | (write_obstack): Likewise. | |
2506 | (unlink_if_set): Likewise. | |
2507 | (write_psymtabs_to_index): Likewise. | |
2508 | (save_gdb_index_command): Likewise. | |
2509 | (_initialize_dwarf2_read): Install "save gdb-index" | |
2510 | command. | |
2511 | (create_all_comp_units): Initialize 'objfile' field of CU. | |
2512 | (dwarf2_locate_sections): Check for .gdb_index. | |
2513 | * psymtab.h (dwarf2_gdb_index_functions): Declare. | |
2514 | * symfile.h (dwarf2_initialize_objfile): Declare. | |
2515 | ||
58b6ab13 TT |
2516 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2517 | ||
2518 | * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook. | |
2519 | (basic_lookup_transparent_type): Likewise. | |
2520 | * symfile.h (struct quick_symbol_functions) | |
2521 | <pre_expand_symtabs_matching>: New field. | |
2522 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function. | |
2523 | (psym_functions): Update. | |
2524 | ||
0f5238ed TT |
2525 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2526 | ||
2527 | PR breakpoints/8357: | |
2528 | * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment. | |
2529 | * linespec.c (decode_line_1): Update comment. Call decode_label. | |
2530 | (decode_label): New function. | |
2531 | (symbol_found): Handle LOC_LABEL. | |
2532 | * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and | |
2533 | domain. Call add_symbol_to_list. | |
2534 | ||
9aa1f1e3 TT |
2535 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2536 | ||
2537 | * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare. | |
2538 | * dwarf2loc.c (find_location_expression): Use | |
2539 | dwarf2_per_cu_text_offset. | |
2540 | (dwarf2_evaluate_loc_desc): Likewise. | |
2541 | (dwarf2_loc_desc_needs_frame): Likewise. | |
2542 | (compile_dwarf_to_ax): Likewise. | |
2543 | (loclist_describe_location): Likewise. | |
2544 | * dwarf2read.c (dwarf2_per_cu_text_offset): New function. | |
2545 | (dwarf2_per_cu_objfile): Update comment. | |
2546 | ||
953ac07e JK |
2547 | 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
2548 | ||
2549 | * dwarf2read.c (read_subrange_type): Call read_subrange_type. | |
2550 | * p-lang.c (pascal_printstr): Likewise. | |
2551 | ||
f04e4012 TT |
2552 | 2010-07-09 Tom Tromey <tromey@redhat.com> |
2553 | ||
2554 | * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use | |
2555 | 'hint' if it is NULL. | |
2556 | ||
f4dfd9c0 HZ |
2557 | 2010-07-09 Hui Zhu <teawater@gmail.com> |
2558 | ||
2559 | * source.c (print_source_lines_base): Add check for noprint. | |
2560 | ||
7e6e39e5 JB |
2561 | 2010-07-08 Joel Brobecker <brobecker@adacore.com> |
2562 | ||
2563 | * python/python-config.py: Resync with Python 2.7 version of this | |
2564 | script. | |
2565 | ||
76b8507d JB |
2566 | 2010-07-08 Joel Brobecker <brobecker@adacore.com> |
2567 | ||
2568 | * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2). | |
2569 | ||
797054e6 JB |
2570 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
2571 | ||
2572 | * NEWS: Create a new section for the next release branch. | |
2573 | Rename the section of the current branch, now that it has | |
2574 | been cut. | |
2575 | ||
c80befee | 2576 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
2577 | ||
2578 | GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC) | |
2579 | * version.in: Bump version to 7.2.50.20100707-cvs. | |
2580 | ||
ac56253d TT |
2581 | 2010-07-07 Tom Tromey <tromey@redhat.com> |
2582 | ||
2583 | * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a | |
2584 | LOC_COMPUTED symbol. | |
2585 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field. | |
2586 | (dwarf2_loc_desc_needs_frame): Likewise. | |
2587 | (compile_dwarf_to_ax) <DW_OP_addr>: Use offset. | |
2588 | * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field. | |
2589 | * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset. | |
2590 | * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add | |
2591 | 'offset' argument. | |
2592 | (struct dwarf2_frame_cache) <text_offset>: New field. | |
2593 | (dwarf2_frame_cache): Set new field. | |
2594 | (dwarf2_frame_prev_register): Update. | |
2595 | (dwarf2_frame_sniffer): Update. | |
2596 | (dwarf2_frame_base_sniffer): Update. | |
2597 | (dwarf2_frame_find_fde): Add 'out_offset' argument. | |
2598 | ||
0cf6dd15 TJB |
2599 | 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
2600 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
2601 | ||
2602 | Support for hw accelerated condition watchpoints in booke powerpc. | |
2603 | ||
2604 | * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value | |
2605 | and move to eval.c. Change callers. | |
2606 | (insert_bp_location): Pass watchpoint condition in | |
2607 | target_insert_watchpoint. | |
2608 | (remove_breakpoint_1) Pass watchpoint condition in | |
2609 | target_remove_watchpoint. | |
2610 | (watchpoint_locations_match): Call | |
2611 | target_can_accel_watchpoint_condition. | |
2612 | * eval.c: Include wrapper.h. | |
2613 | (fetch_subexp_value): Moved from breakpoint.c. | |
2614 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): | |
2615 | Formatting fix. | |
2616 | (can_use_watchpoint_cond_accel): New function. | |
2617 | (calculate_dvc): Likewise. | |
2618 | (num_memory_accesses): Likewise. | |
2619 | (check_condition): Likewise. | |
2620 | (ppc_linux_can_accel_watchpoint_condition): Likewise | |
2621 | (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel, | |
2622 | check_condition and calculate_dvc. | |
2623 | (ppc_linux_remove_watchpoint): Likewise. | |
2624 | (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to | |
2625 | ppc_linux_can_accel_watchpoint_condition | |
2626 | * target.c (debug_to_insert_watchpoint): Add argument for watchpoint | |
2627 | condition. | |
2628 | (debug_to_remove_watchpoint): Likewise. | |
2629 | (debug_to_can_accel_watchpoint_condition): New function. | |
2630 | (update_current_target): Set to_can_accel_watchpoint_condition. | |
2631 | (setup_target_debug): Set to_can_accel_watchpoint_condition. | |
2632 | * target.h: Add opaque declaration for struct expression. | |
2633 | (struct target_ops) <to_insert_watchpoint>, | |
2634 | <to_remove_watchpoint>: Add new arguments to pass the watchpoint | |
2635 | <to_can_accel_watchpoint_condition>: New member. | |
2636 | condition. Update all callers and implementations. | |
2637 | (target_can_accel_watchpoint_condition): New macro. | |
2638 | * value.c (free_value_chain): New function. | |
2639 | * value.h (fetch_subexp_value): New prototype. | |
2640 | (free_value_chain): Likewise. | |
2641 | ||
2f2241f1 UW |
2642 | 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com> |
2643 | ||
2644 | * linux-nat.c (linux_nat_do_thread_registers): Use section size | |
2645 | from gdbarch_core_regset_sections also for .reg if present. | |
2646 | ||
2647 | * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect | |
2648 | section size for .reg. | |
2649 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
2650 | (ppc_linux_vmx_regset_sections): Likewise. | |
2651 | (ppc_linux_fp_regset_sections): Likewise. | |
2652 | (ppc64_linux_vsx_regset_sections): New variable. | |
2653 | (ppc64_linux_vmx_regset_sections): Likewise. | |
2654 | (ppc64_linux_fp_regset_sections): Likewise. | |
2655 | (ppc_linux_init_abi): Install core_regset_section lists appropriate | |
2656 | for current word size. | |
2657 | ||
1fd7cdc2 JB |
2658 | 2010-07-06 Joel Brobecker <brobecker@adacore.com> |
2659 | ||
2660 | * server.c (myresume): Make static. | |
2661 | ||
11763c18 TT |
2662 | 2010-07-06 Tom Tromey <tromey@redhat.com> |
2663 | ||
2664 | * configure, config.in: Rebuild. | |
2665 | * configure.ac (HAVE_LIBPYTHON2_7): New define. | |
2666 | * python/python-internal.h: Handle HAVE_LIBPYTHON2_7. | |
2667 | ||
a6cc4789 AS |
2668 | 2010-07-06 Andreas Schwab <schwab@linux-m68k.org> |
2669 | ||
2670 | * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for | |
2671 | "clear". | |
2672 | ||
f9e9243a UW |
2673 | 2010-07-06 Ken Werner <ken.werner@de.ibm.com> |
2674 | ||
2675 | * gdbtypes.h (floatformats_ieee_half): Add declaration. | |
2676 | * gdbtypes.c (floatformats_ieee_half): New variable. | |
2677 | * doublest.c (floatformat_from_length): Set format to | |
2678 | gdbarch_half_format if length matches. | |
2679 | * gdbarch.sh (half_bit): New architecture method. | |
2680 | (half_format): Likewise. | |
2681 | * gdbarch.h: Regenerate. | |
2682 | * gdbarch.c: Likewise. | |
2683 | ||
4e5799b6 JK |
2684 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2685 | Joel Brobecker <brobecker@adacore.com> | |
2686 | ||
2687 | Fix re-run of PIE executable, PR shlibs/11776. | |
2688 | * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove | |
2689 | the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS. | |
2690 | ||
86e4bafc JK |
2691 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2692 | Joel Brobecker <brobecker@adacore.com> | |
2693 | ||
2694 | * auxv.c (memory_xfer_auxv): Update attach comment. | |
2695 | * solib-svr4.c (svr4_special_symbol_handling): Remove the call to | |
2696 | svr4_relocate_main_executable. | |
2697 | (svr4_solib_create_inferior_hook): Make the call to | |
2698 | svr4_relocate_main_executable unconditional. | |
2699 | ||
3cd07d20 JK |
2700 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2701 | Joel Brobecker <brobecker@adacore.com> | |
2702 | ||
2703 | * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address. | |
2704 | ||
0a1e94c7 JK |
2705 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2706 | Joel Brobecker <brobecker@adacore.com> | |
2707 | ||
2708 | Fix attaching to PIEs prelinked on the disk after the process was | |
2709 | started. | |
2710 | * solib-svr4.c (svr4_exec_displacement): New variable arch_size. | |
2711 | Verify it against bfd_get_arch_size. Try to match arbitrary | |
2712 | displacement for the phdrs comparison. | |
2713 | ||
5387647f TT |
2714 | 2010-07-02 Tom Tromey <tromey@redhat.com> |
2715 | ||
2716 | PR exp/11780: | |
2717 | * libunwind-frame.c (libunwind_frame_prev_register): Don't set | |
2718 | value as optimized-out. | |
2719 | ||
38b6c3b3 TJB |
2720 | 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com> |
2721 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
2722 | ||
2723 | * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this | |
2724 | represent?" question in comment. Change comment to a proper sentence. | |
2725 | ||
a17ac5b0 TT |
2726 | 2010-07-02 Ken Werner <ken.werner@de.ibm.com> |
2727 | ||
2728 | * c-valprint.c (c_val_print): Fix printing of character vectors. | |
2729 | ||
bddaafad JK |
2730 | 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
2731 | ||
2732 | * spu-tdep.c (spu_catch_start): Adjust the caller of changed | |
2733 | create_breakpoint prototype. | |
2734 | ||
d41c0fc8 PA |
2735 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2736 | ||
2737 | * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify | |
2738 | usefulness suggestion of multiple breakpoints at same location. | |
2739 | ||
dc10affe PA |
2740 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2741 | ||
2742 | * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'. | |
2743 | ||
cabe9ab6 PA |
2744 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2745 | ||
2746 | * dwarf2loc.c (locexpr_tracepoint_var_ref) | |
2747 | (loclist_tracepoint_var_ref): Handle optimized out values. | |
2748 | ||
cce7e648 PA |
2749 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2750 | ||
2751 | * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove | |
2752 | unnecessary space in string. | |
2753 | * filesystem.c (_initialize_filesystem): Ditto. | |
2754 | * frame.c (_initialize_frame): Ditto. | |
2755 | * infcmd.c (step_once): Ditto. | |
2756 | * infrun.c (_initialize_infrun): Ditto. | |
2757 | * linux-nat.c (linux_child_follow_fork): Ditto. | |
2758 | * maint.c (maintenance_deprecate): Ditto. | |
2759 | * memattr.c (_initialize_mem): Ditto. | |
2760 | * mips-tdep.c (_initialize_mips_tdep): Ditto. | |
2761 | * monitor.c (monitor_open): Ditto. | |
2762 | * procfs.c (procfs_xfer_memory): Ditto. | |
2763 | * reverse.c (bookmarks_info): Ditto. | |
2764 | * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto. | |
2765 | * stack.c (_initialize_stack): Ditto. | |
2766 | * tracepoint.c (_initialize_tracepoint): Ditto. | |
2767 | * xtensa-tdep.c (xtensa_supply_gregset, | |
2768 | xtensa_regset_from_core_section): Ditto. | |
2769 | ||
b65c7efe TT |
2770 | 2010-07-01 Tom Tromey <tromey@redhat.com> |
2771 | ||
2772 | * value.h (struct lval_funcs) <check_any_valid>: Rename from | |
2773 | check_all_valid. | |
2774 | * value.c (value_entirely_optimized_out): Invert result. Update | |
2775 | for new function name. | |
2776 | ||
0fb4aa4b PA |
2777 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2778 | ||
2779 | Static tracepoints support. | |
2780 | ||
2781 | * NEWS: Mention new support for static tracepoints. | |
2782 | (New packets): Mention qTfSTM, qTsSTM, qTSTMat and | |
2783 | qXfer:statictrace:read. | |
2784 | (New features in the GDB remote stub, GDBserver): Mention static | |
2785 | tracepoints support using an UST based backend. | |
2786 | (New commands): Mention "info static-tracepoint-markers" and | |
2787 | "strace". | |
2788 | * breakpoint.c (is_marker_spec): New. | |
2789 | (is_tracepoint): Handle static tracepoints. | |
2790 | (validate_commands_for_breakpoint): Static tracepoints can't do | |
2791 | while-stepping. | |
2792 | (static_tracepoints_here): New. | |
2793 | (bpstat_what): Handle static tracepoints. | |
2794 | (print_one_breakpoint_location, allocate_bp_location, mention): | |
2795 | Ditto. | |
2796 | (create_breakpoint_sal): Ditto. | |
2797 | (decode_static_tracepoint_spec): New. | |
2798 | (create_breakpoint): Replace `hardwareflag', and `traceflag' with | |
2799 | `type_wanted'. Adjust. Handle static tracepoint marker | |
2800 | locations. | |
2801 | (break_command_1): Adjust. | |
2802 | (update_static_tracepoint): New. | |
2803 | (update_breakpoint_locations): Handle static tracepoints. | |
2804 | (breakpoint_re_set_one): Handle static tracepoint marker | |
2805 | locations. | |
2806 | (disable_command, enable_command): Handle static tracepoints. | |
2807 | (trace_command, ftrace_command): Adjust. | |
2808 | (strace_command): New. | |
2809 | (create_tracepoint_from_upload): Adjust. | |
2810 | (save_breakpoints): Handle static tracepoints. | |
2811 | (_initialize_breakpoint): Install the "strace" command. | |
2812 | * breakpoint.h (enum bptype): New bp_static_tracepoint type. | |
2813 | (struct breakpoint): New fields static_trace_marker_id and | |
2814 | static_trace_marker_id_idx. | |
2815 | (breakpoints_here_p): Declare. | |
2816 | (create_breakpoint): Adjust. | |
2817 | (static_tracepoints_here): Declare. | |
2818 | * remote.c (struct remote_state) <static_tracepoints>: New field. | |
2819 | (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New. | |
2820 | (remote_static_tracepoint_marker_at): New. | |
2821 | (remote_static_tracepoint_markers_by_strid): New. | |
2822 | (remote_static_tracepoint_feature): New. | |
2823 | (remote_disconnected_tracing_feature): Handle "StaticTracepoints". | |
2824 | (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA. | |
2825 | (remote_supports_static_tracepoints): New. | |
2826 | (remote_download_tracepoint): Download static tracepoints. | |
2827 | (init_remote_ops): Install remote_static_tracepoint_marker_at and | |
2828 | remote_static_tracepoint_markers_by_strid. | |
2829 | (_initialize_remote): Install set|show remote static-tracepoints, | |
2830 | and set|show remote read-sdata-object commands. | |
2831 | * target.c (update_current_target): Inherit and default | |
2832 | to_static_tracepoint_marker_at, and | |
2833 | to_static_tracepoint_markers_by_strid. | |
2834 | * target.h (static_tracepoint_marker): Forward declare. | |
2835 | (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA. | |
889bf7c5 | 2836 | (static_tracepoint_marker_p): New typedef. |
0fb4aa4b PA |
2837 | (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type. |
2838 | (struct target_ops): New fields to_static_tracepoint_marker_at and | |
2839 | to_static_tracepoint_markers_by_strid. | |
2840 | (target_static_tracepoint_marker_at) | |
2841 | (target_static_tracepoint_markers_by_strid): New. | |
2842 | * tracepoint.c: Include source.h. | |
2843 | (validate_actionline): Handle $_sdata. | |
2844 | (struct collection_list): New field strace_data. | |
2845 | (add_static_trace_data): New. | |
2846 | (clear_collection_list): Clear strace_data. | |
2847 | (stringify_collection_list): Account for a possible static trace | |
2848 | data collection. | |
2849 | (encode_actions_1): Encode an $_sdata collection. | |
2850 | (parse_tracepoint_definition): Handle static tracepoints. | |
2851 | (parse_static_tracepoint_marker_definition): New. | |
2852 | (release_static_tracepoint_marker): New. | |
2853 | (print_one_static_tracepoint_marker): New. | |
2854 | (info_static_tracepoint_markers_command): New. | |
2855 | (sdata_make_value): New. | |
2856 | (_initialize_tracepoint): Create the $_sdata convenience variable. | |
2857 | Add the "info static-tracepoint-markers" command. | |
2858 | Mention $_sdata in the "collect" command's help output. | |
2859 | * tracepoint.h (struct static_tracepoint_marker): New. | |
2860 | (parse_static_tracepoint_marker_definition) | |
2861 | (release_static_tracepoint_marker): Declare. | |
2862 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust. | |
2863 | * python/py-breakpoint.c (bppy_new): Adjust. | |
2864 | ||
aac63f0f JB |
2865 | 2010-06-30 Joel Brobecker <brobecker@adacore.com> |
2866 | ||
2867 | * python/python-internal.h (_XOPEN_SOURCE): Undefine before | |
2868 | including Python.h. | |
2869 | ||
e68994a7 DE |
2870 | 2010-06-29 Doug Evans <dje@google.com> |
2871 | ||
3863f96c DE |
2872 | PR gdb/11702 |
2873 | * dwarf2read.c (dwarf2_add_field): Only create a symbol if | |
2874 | DW_AT_external is present. | |
2875 | ||
254e6b9e DE |
2876 | PR gdb/11702 |
2877 | * NEWS: Add entry. | |
2878 | * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present, | |
2879 | create a symbol for the field and record the value. | |
2880 | (new_symbol): Handle DW_TAG_member. | |
2881 | * gdbtypes.c (field_is_static): Remove FIXME. | |
2882 | * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN, | |
2883 | only ignore LOC_CONST symbols that are enums. | |
2884 | ||
6e70227d DE |
2885 | * dwarf2read.c: Remove trailing whitespace. |
2886 | ||
e68994a7 DE |
2887 | Delete FIELD_LOC_KIND_DWARF_BLOCK, unused. |
2888 | * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK. | |
2889 | (struct main_type, field loc): Delete dwarf_block. | |
2890 | (FIELD_DWARF_BLOCK): Delete. | |
2891 | (SET_FIELD_DWARF_BLOCK): Delete. | |
2892 | (TYPE_FIELD_DWARF_BLOCK): Delete. | |
2893 | * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img): | |
2894 | Update. | |
2895 | ||
a480d2f6 HZ |
2896 | 2010-06-29 Hui Zhu <teawater@gmail.com> |
2897 | ||
2898 | * record.c (set_record_pic_cmdlist, | |
2899 | show_record_pic_cmdlist): New variables. | |
2900 | (set_record_pic_command, | |
2901 | show_record_pic_command): New functions. | |
2902 | (record_pic_function, record_pic_line, record_pic_enum, | |
2903 | set_record_pic_type, record_pic_hide_nofunction, | |
2904 | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
2905 | (record_pic_fputs): New function. | |
2906 | (function_list, node_list, edge_list): New struct. | |
2907 | (function_list, node_list, edge_list): New variables. | |
2908 | (record_pic_cleanups, record_pic_node, | |
2909 | record_pic_edge, cmd_record_pic): New functions. | |
2910 | (_initialize_record): Add new commands for record pic. | |
2911 | ||
a0d7a4ff JK |
2912 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2913 | ||
2914 | * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call | |
2915 | ALLOCATE_CPLUS_STRUCT_TYPE. | |
2916 | ||
595939de | 2917 | 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> |
889bf7c5 PA |
2918 | Tom Tromey <tromey@redhat.com> |
2919 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
595939de PM |
2920 | |
2921 | * value.c (pack_unsigned_long): New function. | |
2922 | (value_from_ulongest): New function. | |
2923 | * value.h (value_from_ulongest): Declare. | |
2924 | * python/python.c (_initialize_python): Call | |
2925 | gdbpy_initialize_thread and gdbpy_initialize_inferior. | |
2926 | * python/python-internal.h: Define thread_object. | |
2927 | (gdbpy_inferiors, gdbpy_selected_thread) | |
2928 | (frame_info_to_frame_object, create_thread_object) | |
2929 | (find_thread_object, find_inferior_object) | |
2930 | (gdbpy_initialize_thread, gdbpy_initialize_inferiors) | |
2931 | (gdbpy_is_value_object, get_addr_from_python): Declare. | |
2932 | * python/py-value.c (builtin_type_upylong): Define. | |
2933 | (convert_value_from_python): Add logic for ulongest. | |
2934 | (gdbpy_is_value_object): New function. | |
2935 | * python/py-utils.c (get_addr_from_python): New function. | |
2936 | * python/py-frame.c (frame_info_to_frame_object): Return a PyObject. | |
2937 | (gdbpy_selected_frame): Use PyObject over frame_info. | |
2938 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and | |
2939 | py-infthread. | |
2940 | (SUBDIR_PYTHON_SRCS): Likewise. | |
2941 | (py-inferior.o): New Rule. | |
2942 | (py-infthread.o): New Rule. | |
2943 | * python/py-inferior.c: New File. | |
2944 | * python/py-infthread.c: New File. | |
2945 | ||
98751a41 JK |
2946 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2947 | ||
2948 | * c-typeprint.c (c_type_print_base): For no fields check include also | |
2949 | TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section. | |
2950 | * dwarf2read.c (struct typedef_field_list) | |
2951 | (struct field_info) <typedef_field_list, typedef_field_list_count>: New. | |
2952 | (dwarf2_add_typedef): New. | |
2953 | (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef. | |
2954 | Copy also FI.TYPEDEF_FIELD_LIST. | |
2955 | * gdbtypes.h (struct typedef_field) | |
2956 | (struct cplus_struct_type) <typedef_field, typedef_field_count> | |
2957 | (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME) | |
2958 | (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New. | |
2959 | ||
41f62f39 JK |
2960 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2961 | ||
2962 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
2963 | concatenated_name. Turn the current return condition into a reverse | |
2964 | one. Call also lookup_static_symbol_aux on the constructed qualified | |
2965 | name. | |
2966 | * symtab.c (lookup_symbol_aux): Move variable objfile and searching in | |
2967 | other files into a called ... | |
2968 | (lookup_static_symbol_aux): ... new function here. | |
2969 | * symtab.h (lookup_static_symbol_aux): New prototype. | |
2970 | * valops.c (value_maybe_namespace_elt): Call also | |
2971 | lookup_static_symbol_aux if we failed otherwise. | |
2972 | ||
af53d231 JK |
2973 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2974 | ||
2975 | Fix PR c++/11703 and PR gdb/1448. | |
2976 | * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add | |
2977 | FIRST_ITER check. | |
2978 | ||
9655fd1a JK |
2979 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2980 | ||
2981 | Fix modification of cplus_struct_default. | |
2982 | * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>: | |
2983 | Call ALLOCATE_CPLUS_STRUCT_TYPE. | |
2984 | * gdbtypes.c (cplus_struct_default): New empty initializer, comment it. | |
2985 | ||
9279c692 JB |
2986 | 2010-06-28 Joel Brobecker <brobecker@adacore.com> |
2987 | ||
2988 | * NEWS: Add entry announcing the python directory. | |
2989 | ||
d3f41bb1 TT |
2990 | 2010-06-28 Tom Tromey <tromey@redhat.com> |
2991 | ||
2992 | * dwarf2read.c (read_structure_type): Allocate null cleanup later. | |
2993 | ||
23e7acfb DE |
2994 | 2010-06-28 Doug Evans <dje@google.com> |
2995 | ||
2996 | * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused. | |
2997 | All callers updated. | |
2998 | ||
6036c742 JK |
2999 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3000 | ||
3001 | * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call | |
3002 | obstack_begin after each obstack_free. | |
3003 | ||
9f18a3b3 DE |
3004 | 2010-06-27 Doug Evans <dje@google.com> |
3005 | ||
1596cb5d DE |
3006 | * value.c (value_static_field): Use `switch' instead of `if'. |
3007 | Assert-fail if passed invalid TYPE_FIELD_LOC_KIND. | |
3008 | ||
9f18a3b3 DE |
3009 | * valops.c (search_struct_field): Fix typo in error message. |
3010 | ||
43dabe42 UW |
3011 | 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com> |
3012 | ||
3013 | * dwarf2expr.c (execute_stack_op): Place preprocessor | |
3014 | directives at the start of the source line. | |
3015 | ||
0f3bb72e PH |
3016 | 2010-06-25 Paul Hilfinger <hilfinger@adacore.com> |
3017 | ||
6036c742 JK |
3018 | * defs.h (make_command_stats_cleanup): Declare. |
3019 | (set_display_time): Declare. | |
3020 | (set_display_space): Declare. | |
3021 | * event-top.c (command_handler): Use make_command_stats_cleanup. | |
3022 | * main.c (display_time, display_space): Move definitions to utils.c. | |
3023 | (captured_main): Use make_command_stats_cleanup to get start-up | |
3024 | statistics. | |
3025 | Use set_display_time and set_display_space for processing OPT_STATISTICS | |
3026 | case. | |
3027 | * maint.c (maintenance_time_display): Use set_display_time. | |
3028 | (maintenance_space_display): Use set_display_space. | |
3029 | * top.c (execute_command): Remove obsolete 'maint time' code. | |
3030 | (command_loop): Use make_command_stats_cleanup. | |
3031 | * utils.c (struct cmd_stats): Structure for storing initial time | |
3032 | and space usage. | |
3033 | (display_time, display_space): Move definitions here from utils.c. | |
3034 | (set_display_time): New function. | |
3035 | (set_display_space): New function. | |
3036 | (make_command_stats_cleanup): New function. | |
3037 | (report_command_stats): New auxiliary function for | |
3038 | make_command_stats_cleanup. | |
0f3bb72e | 3039 | |
070c8028 UW |
3040 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3041 | ||
3042 | * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for | |
3043 | hosts where CORE_ADDR is long long. | |
3044 | ||
bc9f0842 TT |
3045 | 2010-06-25 Tom Tromey <tromey@redhat.com> |
3046 | ||
3047 | PR python/10808: | |
3048 | * python/python.c (execute_gdb_command): Add keywords. Accept | |
3049 | "to_string" argument. | |
3050 | (struct restore_ui_file_closure): New. | |
3051 | (restore_ui_file): New function. | |
3052 | (make_cleanup_restore_ui_file): Likewise. | |
3053 | (GdbMethods) <execute>: Update. | |
3054 | ||
c0cc4c83 UW |
3055 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3056 | ||
3057 | * s390-tdep.c (s390_push_dummy_call): Error on stack overflow | |
3058 | during inferior call stack frame setup. | |
3059 | ||
f1d8ee66 UW |
3060 | 2010-06-25 Ken Werner <ken.werner@de.ibm.com> |
3061 | ||
3062 | * solib-spu.c: Include "exception.h". | |
3063 | (ocl_program_data_key): New variable. | |
3064 | (append_ocl_sos): New function. | |
3065 | (ocl_enable_break): Likewise. | |
3066 | (spu_current_sos): Call append_ocl_sos. | |
3067 | (spu_solib_loaded): Call ocl_enable_break. | |
3068 | (_initialize_spu_solib): Register ocl_program_data_key. | |
3069 | ||
19c0c0f8 UW |
3070 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3071 | ||
3072 | * cp-support.c (reset_directive_searched): New function. | |
3073 | (make_symbol_overload_list_using): Prevent recursive calls. | |
3074 | ||
0f6a939d PM |
3075 | 2010-06-25 Phil Muldoon <pmuldoon@redhat.com> |
3076 | ||
3077 | * printcmd.c (print_variable_and_value): Print error message on | |
3078 | caught exception. | |
3079 | ||
f2c7657e UW |
3080 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3081 | ||
3082 | * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type | |
3083 | of stack values. | |
3084 | (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new | |
3085 | "value" member. | |
3086 | (dwarf_expr_push): Change input type to ULONGEST. | |
3087 | (dwarf_expr_fetch): Change return type to ULONGEST. | |
3088 | (dwarf_expr_fetch_address): Add prototype. | |
3089 | (dwarf2_read_address): Remove prototype. | |
3090 | * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values. | |
3091 | Truncate stack values to ctx->addr_size bytes. | |
3092 | (dwarf_expr_fetch): Change return value to ULONGEST. | |
3093 | (dwarf_expr_fetch_address): New function. | |
3094 | (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch | |
3095 | when appropriate. Update for struct dwarf_expr_piece changes. | |
3096 | (dwarf2_read_address): Remove. | |
3097 | (unsigned_address_type): Remove. | |
3098 | (signed_address_type): Remove. | |
3099 | (execute_stack_op): Use dwarf_expr_fetch_address instead of | |
3100 | dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack | |
3101 | values. Perform operations on ULONGEST instead of on GDB values, | |
3102 | sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr | |
3103 | values and DW_OP_deref results as unsigned integers. | |
3104 | * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece | |
3105 | changes. | |
3106 | (write_pieced_value): Likewise. | |
3107 | (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of | |
3108 | dwarf_expr_fetch when appropriate. | |
3109 | (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers. | |
3110 | * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address | |
3111 | instead of dwarf_expr_fetch when appropriate. | |
3112 | ||
b1d61bc9 PM |
3113 | 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr> |
3114 | ||
3115 | * c-typeprint.c (c_print_typedef): Append new type name for typedefs. | |
3116 | ||
b14285f6 JB |
3117 | 2010-06-24 Joel Brobecker <brobecker@adacore.com> |
3118 | ||
3119 | * python/python.c (_initialize_python): Add new "constant" | |
3120 | PYTHONDIR in gdb module. Insert this path at the head of | |
3121 | sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and | |
3122 | exec its __init__.py script if it exists in that directory. | |
3123 | ||
fd60dc69 KB |
3124 | 2010-06-24 Kevin Buettner <kevinb@redhat.com> |
3125 | ||
3126 | * rx-tdep.c (RX_ACC_REGNUM): Define. | |
3127 | (RX_NUM_REGS): Redefine to 26. | |
3128 | (rx_register_name): Add register "acc". Change order of several | |
3129 | registers. Change name of "vct" register to "fintv" to match RX | |
3130 | documentation. | |
3131 | (rx_register_type): Add case for RX_ACC_REGNUM. | |
3132 | ||
18430289 TT |
3133 | 2010-06-24 Tom Tromey <tromey@redhat.com> |
3134 | ||
3135 | * psymtab.c (lookup_partial_symbol): Mark definition as static. | |
3136 | ||
40618926 JK |
3137 | 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
3138 | Tom Tromey <tromey@redhat.com> | |
3139 | ||
3140 | Fix GDB startup on readonly filesystem. | |
3141 | * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init. | |
3142 | ||
628fe4e4 JK |
3143 | 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
3144 | Pedro Alves <pedro@codesourcery.com> | |
3145 | ||
3146 | Fix PR 9436. | |
3147 | * breakpoint.c (handle_jit_event): New function. | |
3148 | (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl, | |
3149 | jit, err, table and bs_class. New variables shlib_event, jit_event, | |
3150 | this_action and bptype. Change bs_class assignments to this_action | |
3151 | assignments. new unhandled bptype internal error. Move here | |
3152 | shlib_event and jit_event handling from handle_inferior_event. | |
3153 | * breakpoint.h (enum bpstat_what_main_action): Extend the comment. | |
3154 | Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and | |
3155 | BPSTAT_WHAT_CHECK_JIT. | |
3156 | * inferior.h (debug_infrun, stop_on_solib_events): New declarations. | |
3157 | * infrun.c (debug_infrun, stop_on_solib_events): Remove static. | |
3158 | (handle_inferior_event): Reinitialize frame and gdbarch after | |
3159 | bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and | |
3160 | BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even | |
3161 | gdbarch when frame gets reinitialized. | |
3162 | ||
f1421989 HZ |
3163 | 2010-06-24 Hui Zhu <teawater@gmail.com> |
3164 | ||
3165 | * printcmd.c (ui_printf): New function. | |
3166 | (printf_command): Call ui_printf. | |
3167 | (_initialize_printcmd): New command "eval". | |
3168 | ||
d03285ec UW |
3169 | 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com> |
3170 | ||
3171 | * infrun.c (handle_inferior_event): Handle presence of single-step | |
3172 | breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED. | |
3173 | Cancel single-step breakpoints for TARGET_WAITKIND_EXITED, | |
3174 | TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD. | |
3175 | * breakpoint.c (detach_single_step_breakpoints): New function. | |
3176 | (detach_breakpoints): Call it. | |
3177 | (cancel_single_step_breakpoints): New function. | |
3178 | * breakpoint.h (cancel_single_step_breakpoints): Add prototype. | |
3179 | ||
3180 | * spu-tdep.c (spu_memory_remove_breakpoint): New function. | |
3181 | (spu_gdbarch_init): Install it. | |
3182 | ||
38f6b338 JK |
3183 | 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
3184 | ||
3185 | * configure.ac: Always set RDYNAMIC at least as `-rdynamic'. | |
3186 | * configure: Regenerate. | |
3187 | ||
bb08c432 HZ |
3188 | 2010-06-22 Hui Zhu <teawater@gmail.com> |
3189 | ||
3190 | * i386-tdep.c (i386_record_lea_modrm): Change warning to query. | |
3191 | (i386_process_record): Ditto. | |
3192 | * record.c (record_memory_query): New variable. | |
3193 | (_initialize_record): New command "set record memory-query". | |
3194 | * record.h (record_memory_query): New extern. | |
3195 | ||
b55078be DE |
3196 | 2010-06-21 Doug Evans <dje@google.com> |
3197 | ||
3198 | * i386-tdep.h (i386_displaced_step_copy_insn): Declare. | |
3199 | * i386-tdep.c (i386_displaced_step_copy_insn): New function. | |
3200 | (i386_syscall_p): Change type of lengthp to int. | |
3201 | (i386_displaced_step_fixup): Handle kernels that run one past a | |
3202 | syscall insn. | |
3203 | * i386-linux-tdep.c (i386_linux_init_abi): Use | |
3204 | i386_displaced_step_copy_insn instead of | |
3205 | simple_displaced_step_copy_insn. | |
3206 | ||
75079b2b TT |
3207 | 2010-06-21 Tom Tromey <tromey@redhat.com> |
3208 | ||
3209 | * dwarf2read.c (read_base_type): Handle DW_ATE_UTF. | |
3210 | (dwarf_type_encoding_name): Likewise. | |
3211 | ||
b00fdb78 TT |
3212 | 2010-06-21 Tom Tromey <tromey@redhat.com> |
3213 | ||
3214 | * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME. | |
3215 | * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME. | |
3216 | * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME. | |
3217 | * gdbtypes.h (TYPE_ERROR_NAME): New macro. | |
3218 | * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME. | |
3219 | * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME. | |
3220 | * dwarf2read.c (tag_type_to_type): Create a new error type on | |
3221 | failure. | |
3222 | * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME. | |
3223 | * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME. | |
3224 | ||
84951ab5 MS |
3225 | 2010-06-21 Michael Snyder <msnyder@vmware.com> |
3226 | ||
889bf7c5 | 3227 | * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd, |
84951ab5 MS |
3228 | not add_abbrev_prefix_cmd, for "enable breakpoints". |
3229 | ||
d4a087c7 UW |
3230 | 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com> |
3231 | ||
3232 | * dwarf2loc.c (find_location_expression): Add relocation offset | |
3233 | to base-address-selection entry base addresses. Read addresses | |
3234 | (and offsets) as signed/unsigned integers, depending on the | |
3235 | BFD's sign_extend_vma flag. Do not call dwarf2_read_address. | |
3236 | (loclist_describe_location): Likewise. | |
3237 | (disassemble_dwarf_expression): Read DW_OP_addr operand as | |
3238 | unsigned integer. Do not call dwarf2_read_address. | |
3239 | (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address. | |
3240 | ||
13def385 UW |
3241 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
3242 | ||
3243 | * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register | |
3244 | value instead of hard-coded SPU_LS_SIZE. | |
3245 | (spu_software_single_step): Likewise. | |
3246 | * spu-tdep.h (SPU_LS_SIZE): Remove. | |
3247 | ||
d2ed6730 UW |
3248 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
3249 | ||
3250 | * spu-multiarch.c (spu_xfer_partial): Wrap around local store | |
3251 | limit on local store memory accesses. | |
3252 | * spu-linux-nat.c (spu_xfer_partial): Likewise. | |
3253 | * spu-tdep.c (spu_lslr): Remove. | |
3254 | (spu_pointer_to_address): Do not truncate addresses. | |
3255 | (spu_integer_to_address): Likewise. | |
3256 | (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA. | |
3257 | * spu-tdep.h: Add comments. | |
3258 | (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit. | |
3259 | (SPU_OVERLAY_LMA): Define. | |
3260 | ||
6aed2dbc SS |
3261 | 2010-06-18 Stan Shebs <stan@codesourcery.com> |
3262 | ||
a61408f8 SS |
3263 | * osdata.c (get_osdata): Warn separately if target does not report |
3264 | type list. | |
3265 | (info_osdata_command): Allow empty type, report error if target | |
3266 | does not return available types of OS data. | |
3267 | * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data | |
3268 | types if no annex supplied. | |
3269 | ||
6aed2dbc SS |
3270 | * thread.c (thread_id_make_value): Make a value representing the |
3271 | current thread. | |
3272 | (_initialize_thread): Create $_thread. | |
3273 | ||
ec61707d JB |
3274 | 2010-06-17 Joel Brobecker <brobecker@adacore.com> |
3275 | ||
3276 | * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after | |
3277 | last local variable declaration. No real code change. | |
3278 | ||
60606b2c TT |
3279 | 2010-06-17 Tom Tromey <tromey@redhat.com> |
3280 | ||
3281 | * dwarf2read.c (psymtabs_addrmap_cleanup): New function. | |
3282 | (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a | |
3283 | temporary obstack. | |
3284 | ||
65d79d4b SDJ |
3285 | 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com> |
3286 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
3287 | ||
3288 | * breakpoint.c: Include parser-defs.h. | |
3289 | (watchpoint_exp_is_const): New function. | |
3290 | (watch_command_1): Call watchpoint_exp_is_const to check | |
3291 | if the expression is constant. | |
3292 | ||
0407b3f1 AS |
3293 | 2010-06-15 Andreas Schwab <schwab@linux-m68k.org> |
3294 | ||
3295 | * configure.ac: Check for RDYNAMIC also for cross builds. | |
3296 | * configure: Regenerate. | |
3297 | ||
98d64339 PA |
3298 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
3299 | ||
3300 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
3301 | (SFILES): Remove solib-null.c, add solib-target.c. | |
3302 | (COMMON_OBS): Remove solib-null.o, add solib-target.o. | |
3303 | (ALLDEPFILES): Remove solib-target.c. | |
3304 | * solib-target.c (_initialize_solib_target): Set | |
3305 | current_target_so_ops to solib_target_so_ops if not already set. | |
3306 | * solib-null.c: Delete. | |
3307 | ||
6a271cae PA |
3308 | 2010-06-14 Pedro Alves <pedro@codesourcery.com> |
3309 | ||
3310 | * NEWS: Mention GDBserver's JIT compilation of tracepoint | |
3311 | bytecode. | |
3312 | ||
1e9beacb UW |
3313 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
3314 | ||
3315 | * cp-valprint.c (cp_print_static_field): Members of | |
3316 | dont_print_stat_array_obstack are of type "struct type *". | |
3317 | (_initialize_cp_valprint): Likewise. | |
3318 | ||
21a176fb UW |
3319 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
3320 | ||
3321 | * frame.c (frame_register_unwind): Do not access contents | |
3322 | of "optimized out" unwound register value. | |
3323 | ||
25b524e8 JK |
3324 | 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
3325 | ||
3326 | * ada-lang.h (ada_print_type): Make varstring const. | |
3327 | * ada-typeprint.c (print_func_type): Make name const. | |
3328 | (ada_print_type): Make varstring const. | |
3329 | * c-lang.h (c_print_type): Make varstring const. | |
3330 | * c-typeprint.c (c_print_type): Likewise. | |
3331 | * f-lang.h (f_print_type): Likewise. | |
3332 | * f-typeprint.c (f_print_type): Likewise. | |
3333 | * jv-lang.h (java_print_type): Likewise. | |
3334 | * jv-typeprint.c (java_print_type): Likewise. | |
3335 | * language.c (unk_lang_print_type): Likewise. | |
3336 | * language.h (struct language_defn) <la_print_type>: Likewise. | |
3337 | * m2-lang.h (m2_print_type): Likewise. | |
3338 | * m2-typeprint.c (m2_print_type): Likewise. | |
3339 | * p-lang.h (pascal_print_type): Likewise. | |
3340 | * p-typeprint.c (pascal_print_type): Likewise. | |
3341 | ||
d914c394 SS |
3342 | 2010-06-11 Stan Shebs <stan@codesourcery.com> |
3343 | ||
3344 | Add per-operation permission flags. | |
3345 | ||
3346 | * target.h (struct target_ops): New method to_set_permissions. | |
3347 | (target_set_permissions): New macro. | |
3348 | (target_insert_breakpoint): Change macro to function. | |
3349 | (target_remove_breakpoint): Ditto. | |
3350 | (target_stop): Ditto. | |
3351 | (may_write_registers): Declare. | |
3352 | (may_write_memory): Declare. | |
3353 | (may_insert_breakpoints): Declare. | |
3354 | (may_insert_tracepoints): Declare. | |
3355 | (may_insert_fast_tracepoints): Declare. | |
3356 | (may_stop): Declare. | |
3357 | * target.c (may_write_registers, may_write_registers_1): New globals. | |
3358 | (may_write_memory, may_write_memory_1): New globals. | |
3359 | (may_insert_breakpoints, may_insert_breakpoints_1): New globals. | |
3360 | (may_insert_tracepoints, may_insert_tracepoints_1): New globals. | |
3361 | (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New | |
3362 | globals. | |
3363 | (may_stop, may_stop_1): New global. | |
3364 | (target_xfer_partial): Test for write permission. | |
3365 | (target_store_registers): Ditto. | |
3366 | (target_insert_breakpoint): New function. | |
3367 | (target_remove_breakpoint): New function. | |
3368 | (target_stop): New function. | |
3369 | (_initialize_targets): Add new set/show variables. | |
3370 | (set_write_memory_permission): New function. | |
3371 | (update_target_permissions): New function. | |
3372 | (set_target_permissions): New function. | |
3373 | (update_current_target): Default to_set_permissions. | |
3374 | (_initialize_targets): Use new globals and setter function. | |
3375 | * tracepoint.c (start_tracing): Test for permission. | |
3376 | * inferior.h (update_observer_mode): Declare. | |
3377 | * infrun.c (non_stop_1): Define earlier. | |
3378 | (observer_mode, observer_mode_1): New globals. | |
3379 | (set_observer_mode, show_observer_mode): New functions. | |
3380 | (update_observer_mode): New function. | |
3381 | (_initialize_infrun): Define "set observer" command. | |
3382 | * remote.c (PACKET_QAllow): New optional packet. | |
3383 | (remote_protocol_features): Add QAllow. | |
3384 | (remote_set_permissions): New function. | |
3385 | (remote_start_remote): Call it. | |
3386 | (init_remote_ops): Add it to target vector. | |
3387 | (_initialize_remote): Add config command for QAllow. | |
3388 | ||
aec5aa8b TT |
3389 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
3390 | ||
3391 | * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of | |
3392 | DW_AT_vtable_elem_location even when GCC extension is seen. | |
3393 | ||
0e03807e TT |
3394 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
3395 | ||
3396 | PR gdb/9977, PR exp/11636: | |
3397 | * value.h (value_offset): Update. | |
3398 | (struct lval_funcs) <check_validity>: New field. | |
3399 | <copy_closure>: Make argument const. | |
3400 | (value_computed_closure): Update. | |
3401 | (value_contents_for_printing): Declare. | |
3402 | (value_bits_valid): Likewise. | |
3403 | (val_print): Likewise. | |
3404 | (set_value_component_location): Update. | |
3405 | (value_entirely_optimized_out): Declare. | |
3406 | * value.c (value_offset): Argument now const. | |
3407 | (require_not_optimized_out): New function. | |
3408 | (value_contents_for_printing): New function. | |
3409 | (value_contents_all): Call require_not_optimized_out. | |
3410 | (value_contents): Likewise. | |
3411 | (value_bits_valid): New function. | |
3412 | (value_computed_closure): Argument now const. | |
3413 | (set_value_component_location): Make 'whole' argument const. | |
3414 | (value_entirely_optimized_out): New function. | |
3415 | (value_bitsize): Argument now 'const'. | |
3416 | (value_bitpos): Likewise. | |
3417 | (value_type): Likewise. | |
3418 | * valprint.h (val_print_array_elements): Update. | |
3419 | * valprint.c (val_print): Add 'val' argument. Use | |
3420 | valprint_check_validity. | |
3421 | (valprint_check_validity): New function. | |
3422 | (value_check_printable): Use value_entirely_optimized_out. | |
3423 | (common_val_print): Update. | |
3424 | (value_print): Likewise. | |
3425 | (val_print_array_elements): Add 'val' argument. | |
3426 | * valops.c (value_fetch_lazy): Use value_contents_for_printing, | |
3427 | value_bits_valid. Reinit frame cache for lval_computed. | |
3428 | * sh64-tdep.c (sh64_do_register): Update. | |
3429 | * scm-valprint.c (scm_val_print): Add 'val' argument. | |
3430 | * scm-lang.h (scm_val_print): Update. | |
3431 | * python/python.h (apply_val_pretty_printer): Update. | |
3432 | * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val' | |
3433 | argument. Call set_value_component_location. | |
3434 | * printcmd.c (print_scalar_formatted): Update. | |
3435 | * p-valprint.c (pascal_val_print): Add 'val' argument. | |
3436 | (pascal_object_print_value_fields): Likewise. | |
3437 | (pascal_object_print_value): Likewise. | |
3438 | (pascal_object_print_static_field): Update. | |
3439 | * p-lang.h (pascal_val_print): Update. | |
3440 | (pascal_object_print_value_fields): Update. | |
3441 | * mt-tdep.c (mt_registers_info): Update. | |
3442 | * mi/mi-main.c (get_register): Update. | |
3443 | (mi_cmd_data_evaluate_expression): Use common_val_print. | |
3444 | * m2-valprint.c (m2_print_array_contents): Add 'val' argument. | |
3445 | (m2_print_unbounded_array): Likewise. | |
3446 | (m2_val_print): Likewise. | |
3447 | * m2-lang.h (m2_val_print): Update. | |
3448 | * language.h (struct language_defn) <la_val_print>: Add 'val' | |
3449 | argument. | |
3450 | (LA_VAL_PRINT): Likewise. | |
3451 | * language.c (unk_lang_val_print): Add 'val' argument. | |
3452 | * jv-valprint.c (java_print_value_fields): Add 'val' argument. | |
3453 | (java_val_print): Likewise. | |
3454 | * jv-lang.h (java_val_print): Add 'val' argument. | |
3455 | * infcmd.c (default_print_registers_info): Update. | |
3456 | * f-valprint.c (f77_print_array_1): Add 'val' argument. | |
3457 | (f77_print_array): Likewise. | |
3458 | (f_val_print): Likewise. | |
3459 | * f-lang.h (f_val_print): Add 'val' argument. | |
3460 | * dwarf2loc.c (read_pieced_value): Use value_bitsize and | |
3461 | value_bitpos. | |
3462 | <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call | |
3463 | set_value_optimized_out. | |
3464 | (write_pieced_value): Use value_bitsize and value_bitpos. | |
3465 | <default>: Don't exit loop. | |
3466 | (check_pieced_value_validity): New function. | |
3467 | (pieced_value_funcs): Reference check_pieced_value_validity, | |
3468 | check_pieced_value_invalid. | |
3469 | (copy_pieced_value_closure): Update. | |
3470 | (check_pieced_value_bits): New function. | |
3471 | (check_pieced_value_invalid): New function. | |
3472 | * d-valprint.c (dynamic_array_type): Add 'val' argument. | |
3473 | (d_val_print): Likewise. | |
3474 | * d-lang.h (d_val_print): Update. | |
3475 | * cp-valprint.c (cp_print_value_fields): Add 'val' argument. | |
3476 | (cp_print_value_fields_rtti): Likewise. | |
3477 | (cp_print_value): Likewise. | |
3478 | (cp_print_static_field): Update. | |
3479 | * c-valprint.c (c_val_print): Add 'val' argument. | |
3480 | (c_value_print): Update. | |
3481 | * c-lang.h (c_val_print): Update. | |
3482 | (cp_print_value_fields): Likewise. | |
3483 | (cp_print_value_fields_rtti): Likewise. | |
3484 | * ada-valprint.c (struct ada_val_print_args): Remove. | |
3485 | (val_print_packed_array_elements): Add 'val' argument. | |
3486 | (ada_val_print): Likewise. Rewrite. | |
3487 | (ada_val_print_stub): Remove. | |
3488 | (ada_val_print_array): Add 'val' argument. | |
3489 | (ada_val_print_1): Likewise. | |
3490 | (print_variant_part): Likewise. | |
3491 | (ada_value_print): Update. | |
3492 | (print_record): Add 'val' argument. | |
3493 | (print_field_values): Likewise. | |
3494 | * ada-lang.h (ada_val_print): Update. | |
3495 | ||
3cf03773 TT |
3496 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
3497 | ||
3498 | * vec.h (VEC_cleanup): New macro. | |
3499 | (DEF_VEC_ALLOC_FUNC_I): Update. | |
3500 | (DEF_VEC_ALLOC_FUNC_P): Likewise. | |
3501 | (DEF_VEC_ALLOC_FUNC_O): Likewise. | |
3502 | * dwarf2loc.c (struct axs_var_loc): Remove. | |
3503 | (unimplemented): New function. | |
3504 | (translate_register): Likewise. | |
3505 | (access_memory): Likewise. | |
3506 | (compile_dwarf_to_ax): Likewise. | |
3507 | (dwarf2_tracepoint_var_loc): Remove. | |
3508 | (dwarf2_tracepoint_var_access): Likewise. | |
3509 | (dwarf2_tracepoint_var_ref): Likewise. | |
3510 | (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax. | |
3511 | (loclist_tracepoint_var_ref): Likewise. | |
3512 | * dwarf2expr.h (dwarf_expr_require_composition): Declare. | |
3513 | * dwarf2expr.c (dwarf_expr_require_composition): Rename from | |
3514 | require_composition. No longer static. | |
3515 | (execute_stack_op): Update. | |
3516 | * ax-gdb.h (trace_kludge): Declare. | |
3517 | ||
2bdf28a0 JK |
3518 | 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3519 | ||
3520 | * breakpoint.c (breakpoint_restore_shadows): New OWNER comment. | |
3521 | (should_be_inserted): Return zero also on NULL OWNER. | |
3522 | (breakpoint_program_space_exit): New OWNER comment. | |
3523 | (insert_breakpoint_locations): Extend comment for OWNER. | |
3524 | (remove_breakpoint_1, remove_breakpoint): Assert on OWNER. | |
3525 | (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match): | |
3526 | New OWNER comment. | |
3527 | (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER. | |
3528 | (watchpoint_check): New assert on BREAKPOINT_AT and OWNER. | |
3529 | (bpstat_check_location): New assert on OWNER. | |
3530 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL | |
3531 | and B initializations to the code block. New assert on them. | |
3532 | (print_one_breakpoint_location): New OWNER comment. | |
3533 | (watchpoint_locations_match): Assert on OWNER. | |
3534 | (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2 | |
3535 | initializations to the code block. New assert on OWNER. | |
3536 | (set_breakpoint_location_function): New assert on OWNER. | |
3537 | (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib) | |
3538 | (bp_location_compare, update_global_location_list) | |
3539 | (update_global_location_list): New OWNER comment. | |
3540 | ||
5b9a19af UW |
3541 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
3542 | ||
3543 | * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h | |
3544 | ||
669211f5 UW |
3545 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
3546 | ||
3547 | * config/nm-linux.h (struct target_ops): Remove forward declaration. | |
3548 | (lin_thread_get_thread_signals): Remove prototype. | |
3549 | (GET_THREAD_SIGNALS): Remove. | |
3550 | * linux-nat.h (lin_thread_get_thread_signals): Add prototype. | |
3551 | * linux-thread-db.c (check_thread_signals): Directly call | |
3552 | lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS. | |
3553 | ||
b7a8b4ef UW |
3554 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
3555 | ||
3556 | * gregset.h (GDB_FPXREGSET_T): Remove. | |
3557 | (gdb_fpxregset_t): Likewise. | |
3558 | (supply_fpxregset): Remove prototype. | |
3559 | (fill_fpxregset): Likewise. | |
3560 | * i386-linux-nat.c (supply_fpxregset): Remove. | |
3561 | (fill_fpxregset): Likewise. | |
3562 | (fetch_fpxregs): Inline supply_fpxregset call. | |
3563 | (store_fpxregs): Inline fill_fpxregset call. | |
3564 | ||
3565 | * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h. | |
3566 | * config/i386/nm-linux.h: Remove file. | |
3567 | ||
82892036 MS |
3568 | 2010-06-09 Michael Snyder <msnyder@vmware.com> |
3569 | ||
3570 | * target.c (update_current_target): Fix spelling error in comment. | |
3571 | (target_mourn_inferior): Fix spelling error in error message. | |
3572 | ||
5ddb52fa PH |
3573 | 2010-06-08 Paul Hilfinger <hilfingr@adacore.com> |
3574 | ||
3575 | * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to | |
3576 | SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments. | |
3577 | ||
0f2caa1b MS |
3578 | 2010-06-08 Michael Snyder <msnyder@vmware.com> |
3579 | ||
3580 | * remote.c (remote_close): Set inferior_ptid to null_ptid. | |
3581 | ||
3bebe2f2 JK |
3582 | 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3583 | ||
3584 | * configure.ac <"${have_libpython}" != no>: New workaround of | |
3585 | python#4434. | |
3586 | * configure: Regenerate. | |
3587 | ||
eaaffdf4 HZ |
3588 | 2010-06-08 Hui Zhu <teawater@gmail.com> |
3589 | ||
3590 | * record.c (record_wait): Move signal out of replay code. | |
3591 | ||
5c631832 JK |
3592 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3593 | ||
3594 | Fix PR 10640. | |
3595 | * dwarf2-frame.c (no_dwarf_call): New function. | |
3596 | (execute_stack_op): Set CTX->DWARF_CALL. | |
3597 | * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New. | |
3598 | * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New. | |
3599 | (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field. | |
3600 | * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions. | |
3601 | (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL. | |
3602 | (needs_frame_dwarf_call): New function. | |
3603 | (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL. | |
3604 | * dwarf2read.c (follow_die_offset): Based on former follow_die_ref. | |
3605 | Update the comment. Move variables die, offset and error call to ... | |
3606 | (follow_die_ref): ... a new function. | |
3607 | (dwarf2_fetch_die_location_block): New function. | |
3608 | * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype. | |
3609 | ||
17ea53c3 JK |
3610 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3611 | ||
3612 | * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. | |
3613 | (dwarf_expr_tls_address): Use per_cu instead of objfile. | |
3614 | (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. | |
3615 | Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for | |
3616 | this change. | |
3617 | (struct needs_frame_baton): New field per_cu. | |
3618 | (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. | |
3619 | * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment. | |
3620 | ||
245040d7 SW |
3621 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
3622 | ||
3623 | * cp-support.c (make_symbol_overload_list_namespace): Only search | |
3624 | static and global blocks. | |
3625 | (make_symbol_overload_list_block): New function. | |
3626 | (make_symbol_overload_list): Separate namespace search from block | |
3627 | search. | |
3628 | (make_symbol_overload_list_qualified): Use | |
3629 | make_symbol_overload_list_block. | |
3630 | ||
4c3376c8 SW |
3631 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
3632 | ||
3633 | * value.h: Created oload_search_type enum. | |
3634 | (find_overload_match): Use oload_search_type enum. | |
3635 | * valops.c (find_overload_match): Support combined member and | |
3636 | non-member search. | |
3637 | * eval.c (evaluate_subexp_standard): Calls to | |
3638 | find_overload_match now use oload_search_type enum. | |
3639 | (oload_method_static): Verify index is a proper value. | |
3640 | * valarith.c (value_user_defined_cpp_op): Search for and handle | |
3641 | both member and non-member operators. | |
3642 | (value_user_defined_cpp_op): New function. | |
3643 | (value_user_defined_op): New function. | |
3644 | (value_x_unop): Use value_user_defined_op. | |
3645 | (value_x_binop): Ditto. | |
3646 | * cp-support.c (make_symbol_overload_list_using): Added block | |
3647 | iteration. | |
3648 | Add check for namespace aliases and imported declarations. | |
3649 | ||
ee55da67 JK |
3650 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3651 | ||
3652 | * breakpoint.h (owner): Extend the comment. | |
3653 | ||
1a2ab13a JK |
3654 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3655 | ||
3656 | Clear stale specific bp_location from former whole breakpoint. | |
3657 | * breakpoint.c (delete_breakpoint): Move the stale referencing clear | |
3658 | code ... | |
3659 | (free_bp_location): ... here. Rename there the called function to | |
3660 | bpstat_remove_bp_location_callback. | |
3661 | (bpstat_remove_breakpoint_callback): Rename to ... | |
3662 | (bpstat_remove_bp_location_callback): ... here, change DATA resolution | |
3663 | to struct bp_location. Change the called function to | |
3664 | bpstat_remove_bp_location. Create new declaration for the function. | |
3665 | (bpstat_remove_breakpoint): Rename to ... | |
3666 | (bpstat_remove_bp_location): ..., change the parameter to loc, adjust | |
3667 | code for the new parameter type. | |
3668 | ||
16d6b4b7 NS |
3669 | 2010-06-07 Nathan Sidwell <nathan@codesourcery.com> |
3670 | ||
3671 | * README: Make version-agnostic. | |
3672 | ||
7e314c57 JK |
3673 | 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
3674 | ||
3675 | Fix duplicate types for single DIE. | |
3676 | * dwarf2read.c (read_structure_type): Move set_descriptive_type after | |
3677 | set_die_type. | |
3678 | (read_array_type): Remove type initialization. Recheck get_die_type | |
3679 | after initial die_type. Move set_die_type before set_descriptive_type. | |
3680 | (read_set_type): New variable domain_type. Recheck get_die_type after | |
3681 | initial die_type. Move attr initialization later. | |
3682 | (read_tag_pointer_type, read_tag_reference_type): New variable | |
3683 | target_type. Recheck get_die_type after initial die_type. | |
3684 | (read_tag_ptr_to_member_type): Recheck get_die_type after initial | |
3685 | die_type and die_containing_type. | |
3686 | (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): | |
3687 | Recheck get_die_type after initial die_type. | |
3688 | (read_subrange_type): Recheck get_die_type after initial die_type. | |
3689 | Move set_die_type before set_descriptive_type. | |
3690 | (set_die_type): Extend the function comment. Call complaint if DIE has | |
3691 | some type already set. | |
3692 | ||
2f296114 VP |
3693 | 2010-06-05 Vladimir Prus <vladimir@codesourcery.com> |
3694 | ||
3695 | * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust | |
3696 | for current naming of thread groups (iN, not N). | |
3697 | ||
554794dc SDJ |
3698 | 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com> |
3699 | ||
3700 | * ada-lang.c (ada_operator_length): Constify `struct expression'. | |
3701 | * parse.c (operator_length): Likewise. | |
3702 | (operator_length_standard): Likewise. | |
3703 | * parser-defs.h (operator_length): Likewise. | |
3704 | (operator_length_standard): Likewise. | |
3705 | (struct exp_descriptor <operator_length>): Likewise. | |
3706 | ||
967cf477 DE |
3707 | 2010-06-04 Doug Evans <dje@google.com> |
3708 | ||
bddaacb9 | 3709 | Add support for enabling/disabling individual pretty-printers. |
967cf477 DE |
3710 | * python/py-prettyprint.c (search_pp_list): Skip disabled printers. |
3711 | * python/python-internal.h (gdbpy_enabled_cst): Declare. | |
3712 | * python/python.c (gdbpy_enabled_cst): Define. | |
3713 | (_initialize_python): Initialize gdbpy_enabled_cst. | |
3714 | * NEWS: Add entry. | |
3715 | ||
2dec564e JK |
3716 | 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
3717 | ||
3718 | * breakpoint.c (update_global_location_list): Fix comment typo. | |
3719 | ||
44b5680a HZ |
3720 | 2010-06-04 Hui Zhu <teawater@gmail.com> |
3721 | ||
3722 | * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. | |
3723 | ||
e7a30f46 DE |
3724 | 2010-06-03 Doug Evans <dje@google.com> |
3725 | ||
3726 | * configure.ac: Don't fail if python is unusable when | |
3727 | configured with --with-python=auto. | |
3728 | * configure: Regenerate. | |
3729 | ||
84b4420f SW |
3730 | 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> |
3731 | ||
889bf7c5 | 3732 | * dwarf2read.c (new_symbol): Remove redundant naming of symbol. |
84b4420f | 3733 | |
df178451 PM |
3734 | 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr> |
3735 | ||
3736 | * valprint.h (get_array_bounds): Change low and high parameter types | |
3737 | to LONGEST *. | |
0407b3f1 | 3738 | * valprint.c (get_array_bounds): Use get_discrete_bounds call to |
df178451 PM |
3739 | compute bounds. |
3740 | (val_print_array_elements): Adapt to change above. | |
3741 | * ada-valprint.c (print_optional_low_bound): Adapt to change above. | |
3742 | * p-valprint.c (pascal_val_print): Likewise. | |
3743 | ||
fd5700c7 JK |
3744 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3745 | ||
3746 | * symfile.c (init_filename_language_table): New extensions .for, .FOR, | |
3747 | .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and | |
3748 | .F08. | |
3749 | ||
f55ee35c JK |
3750 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3751 | ||
3752 | Support DW_TAG_module as separate namespaces. | |
3753 | * dwarf2read.c (typename_concat): New parameter physname. | |
3754 | (read_module_type): New function and declaration. | |
3755 | (scan_partial_symbols): Scan also DW_TAG_module children. | |
3756 | (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass | |
3757 | to typename_concat backward compatible physname value 0. | |
3758 | (partial_die_full_name, read_namespace_type): Pass to typename_concat | |
3759 | backward compatible physname value 0. | |
3760 | (add_partial_module, read_module): Remove FIXME comment. | |
3761 | (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. | |
3762 | (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for | |
3763 | DIEs under DW_TAG_module. | |
3764 | (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and | |
3765 | DW_AT_MIPS_linkage_name first, extend it for language_fortran | |
3766 | && physname and return there instead of just setting NAME. Extend | |
3767 | the main block for language_fortran. Pass physname parameter to the | |
3768 | typename_concat call. | |
3769 | (read_import_statement, read_func_scope, get_scope_pc_bounds) | |
3770 | (load_partial_dies, determine_prefix): Support also DW_TAG_module. | |
3771 | (new_symbol): Fill in cplus_specific.demangled_name if it is still | |
3772 | missing from SYMBOL_SET_NAMES in the language_fortran case. | |
3773 | (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module | |
3774 | variables. | |
3775 | (read_type_die) <DW_TAG_module>: New. | |
3776 | (MAX_SEP_LEN): Increase to 7. | |
3777 | (typename_concat): New parameter physname. New variable lead. Support | |
3778 | also language_fortran. | |
3779 | * f-exp.y (yylex): Consider : also as a symbol name character class. | |
3780 | * f-lang.c: Include cp-support.h. | |
3781 | (f_word_break_characters, f_make_symbol_completion_list): New functions. | |
3782 | (f_language_defn): Use cp_lookup_symbol_nonlocal, | |
3783 | f_word_break_characters and f_make_symbol_completion_list. | |
3784 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. | |
3785 | * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. | |
3786 | * symtab.c (symbol_init_language_specific): Support language_fortran. | |
3787 | (symbol_find_demangled_name): New comment on language_fortran. | |
3788 | (symbol_natural_name, symbol_demangled_name): Use demangled_name even | |
3789 | for language_fortran. | |
3790 | (lookup_symbol_aux_local): Check imports also for language_fortran. | |
3791 | (default_make_symbol_completion_list): Rename to ... | |
3792 | (default_make_symbol_completion_list_break_on): ... this name. New | |
3793 | parameter break_on, use it. | |
3794 | (default_make_symbol_completion_list): New stub. | |
3795 | * symtab.h (default_make_symbol_completion_list_break_on): New | |
3796 | prototype. | |
3797 | ||
cb91c06a JB |
3798 | 2010-06-02 Joel Brobecker <brobecker@adacore.com> |
3799 | ||
3800 | * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call | |
3801 | to error. | |
3802 | ||
5c315b68 JK |
3803 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3804 | ||
3805 | * dwarf2read.c (typename_concat): Add const to the variable sep. | |
3806 | ||
9eae7c52 TT |
3807 | 2010-06-02 Tom Tromey <tromey@redhat.com> |
3808 | ||
3809 | * dwarf2loc.h (dwarf2_per_cu_data): Declare. | |
3810 | * dwarf2read.c (dwarf_stack_op_name): No longer static. Return | |
3811 | type is const. Add 'def' argument. Add missing operators, remove | |
3812 | unhandled ones. | |
3813 | (decode_locdesc): Update. | |
3814 | (dwarf2_always_disassemble): New global. | |
3815 | (show_dwarf2_always_disassemble): New function. | |
3816 | (_initialize_dwarf2_read): Add always-disassemble. | |
3817 | (dwarf2_per_cu_offset_size): New function. | |
3818 | * dwarf2loc.c (dwarf2_always_disassemble): Declare. | |
3819 | (piece_end_p): New function. | |
3820 | (locexpr_describe_location_piece): Replace 'size' argument with | |
3821 | 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize | |
3822 | some constants. Remove errors. | |
3823 | (disassemble_dwarf_expression): New function. | |
3824 | (locexpr_describe_location_1): Use disassemble_dwarf_expression. | |
3825 | Add 'offset_size' argument. | |
3826 | (loclist_describe_location): Change output formatting. | |
3827 | * dwarf2expr.h (dwarf_stack_op_name): Declare. | |
3828 | ||
7d3fe98e SW |
3829 | 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> |
3830 | ||
3831 | * cp-support.c (make_symbol_overload_list_adl_namespace): Handle | |
3832 | anonymous type case. | |
3833 | ||
e77813c8 PM |
3834 | 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr> |
3835 | ||
3836 | * dwarf2read.c (read_subrange_type): Handle missing base type | |
3837 | according to Dwarf-2 specifications. | |
3838 | ||
7cf3118a SDJ |
3839 | 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com> |
3840 | ||
3841 | * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL, | |
3842 | BINOP_EXCL. | |
3843 | (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL, | |
3844 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH. | |
3845 | (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL, | |
3846 | BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, | |
3847 | UNOP_CHMAX, UNOP_CHMIN. | |
3848 | * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL, | |
3849 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX, | |
3850 | UNOP_CHMIN>: Remove opcodes. | |
3851 | ||
ae4d0c03 PM |
3852 | 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr> |
3853 | ||
3854 | * dwarf2read.c (read_func_scope): Do not complain for | |
3855 | external function if bounds are not found. | |
3856 | ||
fa593d66 PA |
3857 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
3858 | ||
3859 | * NEWS: Mention gdbserver fast tracepoints support. | |
3860 | ||
cd44747c PM |
3861 | 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr> |
3862 | ||
3863 | * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont): | |
3864 | New macros. | |
3865 | (windows_set_console_info): New function. | |
3866 | (windows_create_inferior): Call windows_set_console_info | |
3867 | if NEW_CONSOLE is true. | |
3868 | (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions. | |
3869 | (_initialize_loadable): Initialize GetConsoleFontSize and | |
3870 | GetCurrentConsoleFont. | |
3871 | ||
f6528abd JK |
3872 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3873 | ||
3874 | * Makefile.in (RDYNAMIC): New. | |
3875 | (SFILES): Add proc-service.list. | |
3876 | * config/alpha/alpha-linux.mh (NAT_CDEPS): New. | |
3877 | (LOADLIBES): Replace -rdynamic by $(RDYNAMIC). | |
3878 | * config/arm/linux.mh: Likewise. | |
3879 | * config/i386/linux.mh: Likewise. | |
3880 | * config/i386/linux64.mh: Likewise. | |
3881 | * config/ia64/linux.mh: Likewise. | |
3882 | * config/m32r/linux.mh: Likewise. | |
3883 | * config/m68k/linux.mh: Likewise. | |
3884 | * config/mips/linux.mh: Likewise. | |
3885 | * config/pa/linux.mh: Likewise. | |
3886 | * config/powerpc/linux.mh: Likewise. | |
3887 | * config/powerpc/ppc64-linux.mh: Likewise. | |
3888 | * config/s390/s390.mh: Likewise. | |
3889 | * config/sparc/linux.mh: Likewise. | |
3890 | * config/sparc/linux64.mh: Likewise. | |
3891 | * config/xtensa/linux.mh: Likewise. | |
3892 | * configure.ac: New RDYNAMIC on native host and GCC. | |
3893 | (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC. | |
3894 | * configure: Regenerate. | |
3895 | * proc-service.list: New. | |
3896 | ||
ca2a87a0 JK |
3897 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3898 | ||
3899 | * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid | |
3900 | CONTENT. | |
3901 | ||
1e225492 JK |
3902 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3903 | ||
3904 | * linux-nat.c (linux_nat_wait_1): Do not call | |
3905 | linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or | |
3906 | TARGET_WAITKIND_SIGNALLED. | |
3907 | ||
e802dbe0 JB |
3908 | 2010-05-27 Joel Brobecker <brobecker@adacore.com> |
3909 | ||
3910 | * ada-lang.c (ada_inferior_data): New struct. | |
3911 | (ada_inferior_data): New static global. | |
3912 | (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit) | |
3913 | (ada_get_tsd_type): New functions. | |
3914 | (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type | |
3915 | to look the tsd type up. | |
3916 | (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit | |
3917 | event. Set ada_inferior_data. | |
3918 | ||
176a6961 PA |
3919 | 2010-05-27 Pedro Alves <pedro@codesourcery.com> |
3920 | ||
3921 | * remote.c (unpack_varlen_hex): Remove forward declaration. | |
3922 | (remote_console_output): Make static, and add forward declaration. | |
3923 | * remote.h: Drop FIXME comment. | |
3924 | (unpack_varlen_hex): Declare. | |
3925 | (remote_console_output, remote_cisco_objfile_relocate) | |
3926 | (deprecated_target_resume_hook, deprecated_target_wait_loop_hook): | |
3927 | Delete declarations. | |
3928 | * tracepoint.c: Include "remote.h". | |
3929 | (unpack_varlen_hex): Delete declaration. | |
3930 | ||
88bfdde4 TT |
3931 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
3932 | ||
3933 | * dwarf2loc.c (struct piece_closure) <refc>: New field. | |
3934 | (allocate_piece_closure): Initialize refc. | |
3935 | (copy_pieced_value_closure): Use refc. | |
3936 | (free_pieced_value_closure): Likewise. | |
3937 | ||
8c6363cf TT |
3938 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
3939 | ||
3940 | * arm-tdep.c (push_stack_item): 'contents' now const. | |
3941 | (arm_push_dummy_call): Make 'val' const. Use value_contents, not | |
3942 | value_contents_writeable. Introduce new temporary. | |
3943 | ||
7ecb917e TT |
3944 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
3945 | ||
3946 | * findcmd.c (parse_find_args): Use value_contents, not | |
3947 | value_contents_raw. | |
3948 | ||
f42a0a33 TT |
3949 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
3950 | ||
3951 | * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents | |
3952 | const. Use value_contents, not value_contents_writeable. | |
3953 | ||
12b795ad JB |
3954 | 2010-05-27 Joel Brobecker <brobecker@adacore.com> |
3955 | ||
3956 | * ada-lang.c (ensure_lval): Replace call to value_contents_raw | |
3957 | by call to value_contents. | |
3958 | ||
5a2e11c7 OS |
3959 | 2010-05-27 Ozkan Sezer <sezeroz@gmail.com> |
3960 | ||
3961 | * MAINTAINERS: Add myself for write after approval privileges. | |
3962 | ||
ec685c5e DE |
3963 | 2010-05-26 Doug Evans <dje@google.com> |
3964 | ||
0c4a4063 DE |
3965 | Allow python to find its files if moved from original location. |
3966 | * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function. | |
3967 | (GDB_AC_WITH_DIR): Call it. | |
3968 | * configure.ac: Define WITH_PYTHON_PATH if we can find the | |
3969 | python installation directory. | |
3970 | * config.in: Regenerate. | |
3971 | * configure: Regenerate. | |
3972 | * defs.h (python_libdir): Declare. | |
3973 | * main.c (python_libdir): Define. | |
3974 | (captured_main): Initialize python_libdir. | |
3975 | * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH, | |
3976 | call Py_SetProgramName to make sure python can find its libraries | |
3977 | and modules. | |
3978 | ||
ec685c5e DE |
3979 | * configure.ac: Try to use python's distutils to fetch compilation |
3980 | parameters. | |
3981 | * configure: Regenerate. | |
3982 | * python/python-config.py: New file. | |
3983 | ||
363a6e9f OS |
3984 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
3985 | ||
3986 | * ser-tcp.c (net_open): Check error return from socket() call by its | |
3987 | equality to -1 not by it being negative. | |
3988 | (net_close): Likewise. | |
3989 | ||
dde08ee1 PA |
3990 | 2010-05-26 Pedro Alves <pedro@codesourcery.com> |
3991 | ||
3992 | * NEWS: Mention the `qRelocInsn' feature. | |
3993 | * gdbarch.sh (relocate_instruction): New. | |
3994 | * amd64-tdep.c (rip_relative_offset): New. | |
3995 | (append_insns): New. | |
3996 | (amd64_relocate_instruction): New. | |
3997 | (amd64_init_abi): Install it. | |
3998 | * i386-tdep.c (append_insns): New. | |
3999 | (i386_relocate_instruction): New. | |
4000 | (i386_gdbarch_init): Install it. | |
4001 | * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests. | |
4002 | * gdbarch.h, gdbarch.c: Regenerate. | |
4003 | ||
947bb88f TT |
4004 | 2010-05-26 Tom Tromey <tromey@redhat.com> |
4005 | ||
4006 | * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const. | |
4007 | (struct dwarf2_loclist_baton) <data>: Likewise. | |
4008 | * dwarf2loc.c (find_location_expression): Constify return type. | |
4009 | (dwarf2_evaluate_loc_desc): Make 'data' argument const. | |
4010 | (dwarf2_loc_desc_needs_frame): Likewise. | |
4011 | (loclist_read_variable): Constify. | |
4012 | (loclist_describe_location): Likewise. | |
4013 | (loclist_tracepoint_var_ref): Likewise. | |
4014 | ||
0d45f56e TT |
4015 | 2010-05-25 Tom Tromey <tromey@redhat.com> |
4016 | ||
4017 | * dwarf2loc.c (dwarf_expr_frame_base): Constify. | |
4018 | (dwarf_expr_frame_base_1): Likewise. | |
4019 | (read_pieced_value): Update. | |
4020 | (needs_frame_frame_base): Constify. | |
4021 | (dwarf2_tracepoint_var_loc): Likewise. | |
4022 | (dwarf2_tracepoint_var_access): Likewise. | |
4023 | (locexpr_describe_location_piece): Likewise. | |
4024 | (locexpr_describe_location_1): Likewise. | |
4025 | * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>: | |
4026 | Constify. | |
4027 | (data): Now const. | |
4028 | (struct dwarf_expr_piece) <v.literal.data>: Likewise. | |
4029 | (dwarf_expr_eval, read_uleb128, read_sleb128) | |
4030 | (dwarf2_read_address): Update. | |
4031 | * dwarf2expr.c (dwarf_expr_eval): Constify. | |
4032 | (read_uleb128): Likewise. | |
4033 | (read_sleb128): Likewise. | |
4034 | (dwarf2_read_address): Likewise. | |
4035 | (require_composition): Likewise. | |
4036 | (execute_stack_op): Likewise. | |
4037 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a | |
4038 | "const gdb_byte *". | |
4039 | * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>: | |
4040 | Now const. | |
4041 | (no_get_frame_base): Constify. | |
4042 | (execute_stack_op): Likewise. | |
4043 | (execute_cfa_program): Likewise. | |
4044 | (read_encoded_value): Likewise. | |
4045 | ||
07ca107c DE |
4046 | 2010-05-25 Doug Evans <dje@google.com> |
4047 | ||
e34838f0 DE |
4048 | * ser-pipe.c (pipe_open): Ignore SIGINTs in child. |
4049 | ||
01f69b38 DE |
4050 | * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ... |
4051 | * event-loop.c: ... here. | |
4052 | * tui/tui-io.c (tui_readline_output): Rename parameter `code' to | |
4053 | `error' for clarity. | |
4054 | (tui_getc): Pass correct value for `error' parameter to | |
4055 | tui_readline_output. | |
4056 | ||
07ca107c DE |
4057 | Add python gdb.GdbError and gdb.string_to_argv. |
4058 | * NEWS: Document them. | |
4059 | * python/py-cmd.c (cmdpy_function): Don't print a traceback if | |
4060 | the exception is gdb.GdbError. Print a second traceback if there's | |
4061 | an error computing the error message. | |
4062 | (gdbpy_string_to_argv): New function. | |
4063 | * python/py-utils.c (gdbpy_obj_to_string): New function. | |
4064 | (gdbpy_exception_to_string): New function. | |
4065 | * python/python-internal.h (gdbpy_string_to_argv): Declare. | |
4066 | (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare. | |
4067 | (gdbpy_gdberror_exc): Declare. | |
4068 | * python/python.c (gdbpy_gdberror_exc): New global. | |
4069 | (_initialize_python): Initialize gdbpy_gdberror_exc and create | |
4070 | gdb.GdbError. | |
4071 | (GdbMethods): Add string_to_argv. | |
4072 | ||
5572ce1f PM |
4073 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4074 | ||
4075 | * windows-nat.c (display_selector): Call GetLastError to give better | |
4076 | failure explanation. | |
4077 | ||
acd5838a PA |
4078 | 2010-05-24 Pedro Alves <pedro@codesourcery.com> |
4079 | ||
4080 | * config.in: Regenerate. | |
4081 | ||
b26a4dcb JK |
4082 | 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
4083 | ||
4084 | Code cleanup. | |
4085 | * target.c (push_target): Return only void. Remove the return value | |
4086 | comment. | |
4087 | * target.h (push_target): Return only void. | |
4088 | ||
f434ba03 PA |
4089 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
4090 | ||
4091 | Update gnulib from latest git. | |
4092 | (250b80067c1e1d8faa0c42fb572f721975b929c5) | |
4093 | ||
4094 | * gnulib/memcmp.c: Removed. | |
4095 | * gnulib/memchr.valgrind: New. | |
4096 | * gnulib/stddef.in.h: New. | |
4097 | * gnulib/Makefile.am: Updated. | |
4098 | * gnulib/memchr.c: Updated. | |
4099 | * gnulib/memmem.c: Updated. | |
4100 | * gnulib/stdint.in.h: Updated. | |
4101 | * gnulib/str-two-way.h: Updated. | |
4102 | * gnulib/string.in.h: Updated. | |
4103 | * gnulib/wchar.in.h: Updated. | |
4104 | ||
4105 | * gnulib/extra/link-warning.h: Removed. | |
4106 | * gnulib/extra/c++defs.h: New. | |
4107 | * gnulib/extra/warn-on-use.h: New. | |
4108 | * gnulib/extra/arg-nonnull.h: Updated. | |
4109 | ||
4110 | * gnulib/m4/extensions.m4: Updated. | |
4111 | * gnulib/m4/gnulib-cache.m4: Updated. | |
4112 | * gnulib/m4/gnulib-common.m4: Updated. | |
4113 | * gnulib/m4/gnulib-comp.m4: Updated. | |
4114 | * gnulib/m4/gnulib-tool.m4: Updated. | |
4115 | * gnulib/m4/include_next.m4: Updated. | |
4116 | * gnulib/m4/longlong.m4: Updated. | |
4117 | * gnulib/m4/memchr.m4: Updated. | |
4118 | * gnulib/m4/memmem.m4: Updated. | |
4119 | * gnulib/m4/stdint.m4: Updated. | |
4120 | * gnulib/m4/string_h.m4: Updated. | |
4121 | * gnulib/m4/memcmp.m4: Removed. | |
4122 | * gnulib/m4/onceonly_2_57.m4: Removed. | |
4123 | * gnulib/m4/00gnulib.m4: New. | |
4124 | * gnulib/m4/mmap-anon.m4: New. | |
4125 | * gnulib/m4/multiarch.m4: New. | |
4126 | * gnulib/m4/onceonly.m4: New. | |
4127 | * gnulib/m4/stddef_h.m4: New. | |
4128 | * gnulib/m4/warn-on-use.m4: New. | |
4129 | * gnulib/m4/wchar.m4: Removed. | |
4130 | * gnulib/m4/wchar_h.m4: New. | |
4131 | * gnulib/m4/wchar_t.m4: New. | |
4132 | * gnulib/m4/wint_t.m4: New. | |
4133 | ||
4134 | * aclocal.m4: Regenerate. | |
4135 | * config.in: Likewise. | |
4136 | * configure: Likewise. | |
4137 | * gnulib/Makefile.in: Likewise. | |
4138 | ||
d3b1e874 TT |
4139 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
4140 | ||
4141 | * dwarf2loc.c (extract_bits_primitive): New function. | |
4142 | (extract_bits): Likewise. | |
4143 | (insert_bits): Likewise. | |
4144 | (copy_bitwise): Likewise. | |
4145 | (read_pieced_value): Do all operations in bits. | |
4146 | (write_pieced_value): Likewise. | |
4147 | * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field. | |
4148 | * dwarf2expr.c (add_piece): New arguments bit_piece, offset. | |
4149 | Always use xrealloc to resize piece array. | |
4150 | (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece. | |
4151 | <DW_OP_piece>: Update. | |
4152 | <DW_OP_bit_piece>: New case. | |
4153 | ||
cb826367 TT |
4154 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
4155 | ||
4156 | * dwarf2loc.c (read_pieced_value): Exit loop when result is full. | |
4157 | <DWARF_VALUE_OPTIMIZED_OUT>: New case. | |
4158 | * dwarf2expr.h (enum dwarf_value_location) | |
4159 | <DWARF_VALUE_OPTIMIZED_OUT>: New constant. | |
4160 | * dwarf2expr.c (dwarf_expr_stack_empty_p): New function. | |
4161 | (add_piece): Handle empty piece. | |
4162 | (execute_stack_op) <DW_OP_piece>: Handle | |
4163 | DWARF_VALUE_OPTIMIZED_OUT. | |
4164 | ||
74de6778 TT |
4165 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
4166 | ||
4167 | * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call | |
4168 | evaluate_subexp, not evaluate_subexp_with_coercion. | |
4169 | ||
f346a30d PM |
4170 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4171 | ||
4172 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
4173 | attribute. | |
4174 | ||
afd74c5f TT |
4175 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
4176 | ||
4177 | * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an | |
4178 | offset. | |
4179 | (write_pieced_value): Likewise. | |
4180 | ||
90e7c2c5 PM |
4181 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4182 | ||
4183 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
4184 | and DW_TAG_volatile_type. | |
4185 | (new_symbol): Likewise. | |
4186 | ||
8148cf8d PM |
4187 | 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr> |
4188 | ||
4189 | * p-valprint.c (pascal_val_print): Call get_array_bounds | |
4190 | to obtain the number of elements in an array. | |
4191 | ||
3a1d4620 DE |
4192 | 2010-05-19 Doug Evans <dje@google.com> |
4193 | ||
0bf0f8c4 DE |
4194 | * python.c (gdbpy_print_stack): Ensure output ends with a newline. |
4195 | ||
3a1d4620 DE |
4196 | * python.c (source_python_script): Add comment. |
4197 | (source_python_script_for_objfile): Remove unnecessary call to | |
4198 | gdbpy_print_stack. | |
4199 | ||
dc21167c JK |
4200 | 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
4201 | Sergio Durigan Junior <sergiodj@redhat.com> | |
4202 | ||
4203 | Code cleanup. | |
4204 | * parse.c (exp_iterate): Use operator_length wrapper function. | |
4205 | ||
5b4ee69b MS |
4206 | 2010-05-18 Michael Snyder <msnyder@vmware.com> |
4207 | ||
4208 | * ada-lang.c: White space. | |
4209 | * ada-typeprint.c: White space. | |
4210 | * ada-valprint.c: White space. | |
4211 | * addrmap.c: White space. | |
4212 | * auxv.c: White space. | |
4213 | * ax-gdb.c: White space. | |
4214 | ||
e17c9e56 HZ |
4215 | 2010-05-18 Hui Zhu <teawater@gmail.com> |
4216 | ||
4217 | * linux-fork.c (inferior_call_waitpid_cleanup): Add check | |
4218 | for oldfp. | |
4219 | (inferior_call_waitpid): Move make_cleanup out of check. | |
4220 | Check the return of waitpid. | |
4221 | (delete_checkpoint_command): Add pptid to save fi->parent_ptid. | |
4222 | ||
a109c7c1 MS |
4223 | 2010-05-17 Michael Snyder <msnyder@vmware.com> |
4224 | ||
1c5313c5 MS |
4225 | * tui/tui.c: White space. |
4226 | * tui/tui-data.c: White space. | |
4227 | * tui/tui-disasm.c: White space. | |
4228 | * tui/tui-file.c: White space. | |
4229 | * tui/tui-interp.c: White space. | |
4230 | * tui/tui-main.c: White space. | |
4231 | * tui/tui-out.c: White space. | |
4232 | * tui/tui-regs.c: White space. | |
4233 | * tui/tui-source.c: White space. | |
4234 | * tui/tui-stack.c: White space. | |
4235 | * tui/tui-win.c: White space. | |
4236 | * tui/tui-winsource.c: White space. | |
4237 | ||
f4a14ae6 MS |
4238 | * procfs.c: White space. |
4239 | ||
d59b6f6c MS |
4240 | * python/py-auto-load.c: White space. |
4241 | * python/py-block.c: White space. | |
4242 | * python/py-breakpoint.c: White space. | |
4243 | * python/py-cmd.c: White space. | |
4244 | * python/py-function.c: White space. | |
4245 | * python/py-lazy-string.c: White space. | |
4246 | * python/py-objfile.c: White space. | |
4247 | * python/py-param.c: White space. | |
4248 | * python/py-prettyprint.c: White space. | |
4249 | * python/py-progspace.c: White space. | |
4250 | * python/py-symtab.c: White space. | |
4251 | * python/python.c: White space. | |
4252 | * python/py-type.c: White space. | |
4253 | * python/py-utils.c: White space. | |
4254 | * python/py-value.c: White space. | |
4255 | ||
102040f0 MS |
4256 | * mi/mi-cmd-break.c: White space. |
4257 | * mi/mi-cmd-env.c: White space. | |
4258 | * mi/mi-cmds.c: White space. | |
4259 | * mi/mi-cmd-stack.c: White space. | |
4260 | * mi/mi-cmd-var.c: White space. | |
4261 | * mi/mi-console.c: White space. | |
4262 | * mi/mi-getopt.c: White space. | |
4263 | * mi/mi-interp.c: White space. | |
4264 | * mi/mi-main.c: White space. | |
4265 | * mi/mi-out.c: White space. | |
4266 | * mi/mi-parse.c: White space. | |
4267 | ||
cdb27c12 MS |
4268 | * cli/cli-cmds.c: White space. |
4269 | * cli/cli-decode.c: White space. | |
4270 | * cli/cli-dump.c: White space. | |
4271 | * cli/cli-interp.c: White space. | |
4272 | * cli/cli-logging.c: White space. | |
4273 | * cli/cli-script.c: White space. | |
4274 | * cli/cli-setshow.c: White space. | |
4275 | ||
a109c7c1 MS |
4276 | * valarith.c: White space. |
4277 | * valops.c: White space. | |
4278 | * valprint.c: White space. | |
4279 | * value.c: White space. | |
4280 | * varobj.c: White space. | |
4281 | * xcoffread.c: White space. | |
4282 | * xml-support.c: White space. | |
4283 | * xml-tdesc.c: White space. | |
4284 | ||
3872d37d AS |
4285 | 2010-05-17 Andreas Schwab <schwab@redhat.com> |
4286 | ||
4287 | PR gdb/11092 | |
4288 | * c-lang.c (c_printstr): Compute real length of NUL terminated | |
4289 | string at first. | |
4290 | ||
0cce5bd9 JB |
4291 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
4292 | ||
4293 | * parse.c (parse_exp_in_context): When block is not NULL, use | |
4294 | its associated language to parse the expression instead of | |
4295 | the current_language. | |
4296 | ||
5f19d646 JB |
4297 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
4298 | ||
4299 | * jv-lang.c (java_lookup_class): Remove commented out code. | |
4300 | (type_from_class): Likewise. | |
4301 | (java_op_print_tab): Remove commented-out elements. | |
4302 | ||
28c85d6c JB |
4303 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
4304 | ||
4305 | * ada-lang.c (to_fixed_range_type): The the raw index type as | |
4306 | argument instead of the raw type name. Remove orig_type parameter. | |
4307 | Update calls throughout. | |
4308 | (ada_fixup_array_indexes_type): New function. | |
4309 | (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type. | |
4310 | * ada-lang.h (ada_fixup_array_indexes_type): Add declaration. | |
4311 | * ada-typeprint.c (print_range_type): Renames print_range_type_named. | |
4312 | Remove name parameter. | |
4313 | (print_array_type): Add call to ada_fixup_array_indexes_type. | |
4314 | Update calls to print_range_type. | |
4315 | (ada_print_type): Update calls to print_range_type. | |
4316 | ||
d09039dd PM |
4317 | 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr> |
4318 | ||
4319 | * dwarf2read.c (read_set_type): Set type length if | |
4320 | DW_AT_byte_size attribute is present. | |
4321 | ||
7a081a30 PM |
4322 | 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr> |
4323 | ||
4324 | * p-valprint.c (pascal_val_print): Handle set type if range limits | |
4325 | are undefined but size is known. | |
4326 | ||
77382aee PA |
4327 | 2010-05-17 Pedro Alves <pedro@codesourcery.com> |
4328 | ||
4329 | * procfs.c: Reformat. | |
4330 | ||
433759f7 MS |
4331 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
4332 | ||
5d502164 MS |
4333 | * target.c: White space. |
4334 | * target-descriptions.c: White space. | |
4335 | * target-memory.c: White space. | |
4336 | * thread.c: White space. | |
4337 | * top.c: White space. | |
4338 | * tracepoint.c: White space. | |
4339 | * trad-frame.c: White space. | |
4340 | * tramp-frame.c: White space. | |
4341 | * ui-file.c: White space. | |
4342 | * ui-out.c: White space. | |
4343 | * user-regs.c: White space. | |
4344 | * utils.c: White space. | |
4345 | ||
433759f7 MS |
4346 | * scm-exp.c: White space. |
4347 | * scm-lang.c: White space. | |
4348 | * scm-valprint.c: White space. | |
4349 | * sentinel-frame.c: White space. | |
4350 | * ser-base.c: White space. | |
4351 | * ser-go32.c: White space. | |
4352 | * serial.c: White space. | |
4353 | * ser-mingw.c: White space. | |
4354 | * ser-pipe.c: White space. | |
4355 | * ser-tcp.c: White space. | |
4356 | * ser-unix.c: White space. | |
4357 | * solib.c: White space. | |
4358 | * solib-darwin.c: White space. | |
4359 | * solib-frv.c: White space. | |
4360 | * solib-irix.c: White space. | |
4361 | * solib-osf.c: White space. | |
4362 | * solib-pa64.c: White space. | |
4363 | * solib-som.c: White space. | |
4364 | * solib-spu.c: White space. | |
4365 | * solib-svr4.c: White space. | |
4366 | * solib-target.c: White space. | |
4367 | * source.c: White space. | |
4368 | * stabsread.c: White space. | |
4369 | * stack.c: White space. | |
4370 | * std-regs.c: White space. | |
4371 | * symfile.c: White space. | |
4372 | * symmisc.c: White space. | |
4373 | * symtab.c: White space. | |
4374 | ||
dd304d53 MS |
4375 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
4376 | ||
4377 | * source.c (_initialize_source): Add "rev" as an abbreviation | |
4378 | for the "reverse-search" command. | |
4379 | ||
a744cf53 MS |
4380 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
4381 | ||
123f5f96 MS |
4382 | * record.c: White space. |
4383 | * regcache.c: White space. | |
4384 | * reggroups.c: White space. | |
4385 | * remote-fileio.c: White space. | |
4386 | * remote-m32r-sdi.c: White space. | |
4387 | * remote-mips.c: White space. | |
4388 | * remote-sim.c: White space. | |
a744cf53 MS |
4389 | * remote.c: White space. |
4390 | (process_g_packet): Remove orphan braces. | |
4391 | ||
b8d56208 MS |
4392 | 2010-05-15 Michael Snyder <msnyder@vmware.com> |
4393 | ||
ad3bbd48 MS |
4394 | * parse.c: White space. |
4395 | * p-lang.c: White space. | |
4396 | * posix-hdep.c: White space. | |
4397 | * printcmd.c: White space. | |
4398 | * progspace.c: White space. | |
4399 | * prologue-value.c: White space. | |
4400 | * psymtab.c: White space. | |
4401 | * p-typeprint.c: White space. | |
4402 | * p-valprint.c: White space. | |
4403 | ||
5cc80db3 MS |
4404 | * objc-lang.c: White space. |
4405 | * objfiles.c: White space. | |
4406 | * observer.c: White space. | |
4407 | * osabi.c: White space. | |
4408 | * osdata.c: White space. | |
4409 | ||
b8d56208 MS |
4410 | * m2-lang.c: White space. |
4411 | * m2-valprint.c: White space. | |
4412 | * macrocmd.c: White space. | |
4413 | * macroexp.c: White space. | |
4414 | * macroscope.c: White space. | |
4415 | * macrotab.c: White space. | |
4416 | * main.c: White space. | |
4417 | * maint.c: White space. | |
4418 | * mdebugread.c: White space. | |
4419 | * memattr.c: White space. | |
4420 | * minsyms.c: White space. | |
4421 | * monitor.c: White space. | |
4422 | ||
9a619af0 MS |
4423 | 2010-05-14 Michael Snyder <msnyder@vmware.com> |
4424 | ||
e0881a8e MS |
4425 | * jv-lang.c: White space. |
4426 | * jv-typeprint.c: White space. | |
4427 | * jv-valprint.c: White space. | |
4428 | * language.c: White space. | |
4429 | * libunwind-frame.c: White space. | |
4430 | * linespec.c: White space. | |
4431 | * linux-nat.c: White space. | |
4432 | * linux-record.c: White space. | |
4433 | * linux-thread-db.c: White space. | |
4434 | ||
abbb1732 MS |
4435 | * infcall.c: White space. |
4436 | * inf-child.c: White space. | |
4437 | * infcmd.c: White space. | |
4438 | * inferior.c: White space. | |
4439 | * inf-loop.c: White space. | |
4440 | * inflow.c: White space. | |
4441 | * inline-frame.c: White space. | |
4442 | * interps.c: White space. | |
4443 | ||
d8734c88 MS |
4444 | * gcore.c: White space. |
4445 | * gdb.c: White space. | |
4446 | * gdbtypes.c: White space. | |
4447 | * gnu-nat.c: White space. | |
4448 | * gnu-v2-abi.c: White space. | |
4449 | * gnu-v3-abi.c: White space. | |
4450 | ||
bb9bcb69 MS |
4451 | * findcmd.c: White space. |
4452 | * findvar.c: White space. | |
4453 | * fork-child.c: White space. | |
4454 | * frame-base.c: White space. | |
4455 | * frame.c: White space. | |
4456 | * frame-unwind.c: White space. | |
4457 | * f-valprint.c: White space. | |
4458 | ||
d7f9d729 MS |
4459 | * elfread.c: White space. |
4460 | * environ.c: White space. | |
4461 | * eval.c: White space. | |
4462 | * event-loop.c: White space. | |
4463 | * event-top.c: White space. | |
4464 | * exceptions.c: White space. | |
4465 | * exec.c: White space. | |
4466 | * expprint.c: White space. | |
4467 | ||
9a619af0 MS |
4468 | * dbxread.c: White space. |
4469 | * dcache.c: White space. | |
4470 | * disasm.c: White space. | |
4471 | * doublest.c: White space. | |
4472 | * dsrec.c: White space. | |
4473 | * dummy-frame.c: White space. | |
4474 | * dwarf2expr.c: White space. | |
4475 | * dwarf2-frame.c: White space. | |
4476 | * dwarf2loc.c: White space. | |
4477 | * dwarf2read.c: White space. | |
4478 | ||
88d4aea7 PM |
4479 | 2010-05-14 Phil Muldoon <pmuldoon@redhat.com> |
4480 | ||
889bf7c5 | 4481 | PR python/11482 |
88d4aea7 PM |
4482 | |
4483 | * python/py-value.c (valpy_hash): New function. | |
4484 | (value_object_type): Register valpy_hash. | |
4485 | ||
7a298875 | 4486 | 2010-05-14 Hui Zhu <teawater@gmail.com> |
0407b3f1 | 4487 | Michael Snyder <msnyder@vmware.com> |
7a298875 HZ |
4488 | |
4489 | * linux-fork.c (gdbthread.h): New include. | |
4490 | (fork_info): Add parent_ptid. | |
4491 | (inferior_call_waitpid_cleanup, inferior_call_waitpid): New | |
4492 | functions. | |
4493 | (delete_checkpoint_command): Call inferior_call_waitpid. | |
4494 | (checkpoint_command): Set parent_ptid. | |
4495 | ||
c14feecc MS |
4496 | 2010-05-13 Michael Snyder <msnyder@vmware.com> |
4497 | ||
6595d32b MS |
4498 | * dictionary.c: Re-indent to GNU coding standard. |
4499 | ||
c5504eaf MS |
4500 | * charset.c: White space. |
4501 | * c-lang.c: White space. | |
4502 | * cli-out.c: White space. | |
4503 | * coffread.c: White space. | |
4504 | * complaints.c: White space. | |
4505 | * completer.c: White space. | |
4506 | * corefile.c: White space. | |
4507 | * corelow.c: White space. | |
4508 | * cp-abi.c: White space. | |
4509 | * cp-namespace.c: White space. | |
4510 | * cp-support.c: White space. | |
4511 | * cp-valprint.c: White space. | |
4512 | * c-typeprint.c: White space. | |
4513 | * c-valprint.c: White space. | |
cc59ec59 MS |
4514 | * blockframe.c: White space. |
4515 | * breakpoint.c: White space. | |
4516 | * buildsym.c: White space. | |
4517 | * blockframe.c: White space. | |
b6de9da4 | 4518 | * bcache.c: White space. |
05c547f6 MS |
4519 | * gdbarch.sh: White space, add blank lines. |
4520 | * arch-utils.c: Ditto. | |
4521 | * gdbarch.c: Regenerate. | |
1c4d3f96 | 4522 | * frame.c: White space, add blank lines. |
f89b749f MS |
4523 | * stack.c: White space, add blank lines. |
4524 | (initialize_stack): Remove long-dead code. | |
c14feecc | 4525 | |
a2d33775 JK |
4526 | 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4527 | ||
4528 | Code cleanup. | |
4529 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type. | |
4530 | (locexpr_read_variable, loclist_read_variable): Update the callers. | |
4531 | ||
33ac96f0 JK |
4532 | 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4533 | ||
4534 | Code cleanup. | |
4535 | * dwarf2read.c (die_type, die_descriptive_type): Remove variable type. | |
4536 | Remove check of NULL returned by tag_type_to_type. | |
4537 | (die_containing_type): Remove variable type. Remove type_die variable | |
4538 | initialization. Remove check of NULL returned by tag_type_to_type. | |
4539 | ||
f5a010c0 PM |
4540 | 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr> |
4541 | ||
4542 | PR exp/11530. | |
4543 | * gdbtypes.c (lookup_struct_elt_type): Also lookup | |
4544 | names of unnamed structures or unions. | |
4545 | ||
bf701c2c PM |
4546 | 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr> |
4547 | ||
4548 | * procfs.c (proc_watchpoint_address): New function. | |
0407b3f1 | 4549 | (procfs_stopped_by_watchpoint): Remove useless check after |
bf701c2c PM |
4550 | find_procinfo_or_die call. |
4551 | (procfs_stopped_data_address): New function. | |
4552 | (procfs_use_watchpoints): Register new watchpoint related function. | |
4553 | ||
d02691ef TT |
4554 | 2010-05-11 Tom Tromey <tromey@redhat.com> |
4555 | ||
4556 | * eval.c (evaluate_subexp_standard): Revert inadvertent change. | |
4557 | ||
e0627e85 MS |
4558 | 2010-05-10 Michael Snyder <msnyder@vmware.com> |
4559 | ||
4560 | * utils.c: White space cleanup. | |
4561 | ||
cc73bb8c TT |
4562 | 2010-05-10 Tom Tromey <tromey@redhat.com> |
4563 | ||
4564 | * eval.c (ptrmath_type_p): Add 'lang' argument. | |
4565 | (evaluate_subexp_standard): Update. | |
4566 | (evaluate_subexp_with_coercion): Update. | |
4567 | * language.h (CAST_IS_CONVERSION): Add 'LANG' argument. | |
4568 | ||
c02866a0 MS |
4569 | 2010-05-10 Michael Snyder <msnyder@vmware.com> |
4570 | ||
4571 | * utils.c (do_fclose_cleanup) Restore local variable. | |
4572 | ||
06280d23 DE |
4573 | 2010-05-09 Doug Evans <dje@google.com> |
4574 | ||
4575 | * record.c (init_record_core_ops): Rename record_core to record-core. | |
4576 | ||
fa07e785 JB |
4577 | 2010-05-08 Joel Brobecker <brobecker@adacore.com> |
4578 | ||
4579 | Implement task switching on pa-hpux. | |
4580 | * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function. | |
4581 | (inf_ttrace_target): Set t->to_get_ada_task_ptid. | |
4582 | ||
4c680d1d PM |
4583 | 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr> |
4584 | ||
4585 | * valops.c (find_overload_match): Add missing i18n markup. | |
4586 | ||
28e176a6 PM |
4587 | 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr> |
4588 | ||
4589 | * p-exp.y (exp : SIZEOF '(' exp ')'): New rule. | |
4590 | ||
48cb83fd JK |
4591 | 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4592 | ||
4593 | * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg | |
4594 | list for the obconcat call. | |
4595 | * mdebugread.c (parse_symbol): Likewise. | |
4596 | * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev): | |
4597 | Likewise. | |
4598 | * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'. | |
4599 | New variable ap. Remove variables len and val. | |
4600 | * symfile.h (obconcat): Likewise for the prototype. | |
4601 | ||
f92adf3c MS |
4602 | 2010-05-07 Michael Snyder <msnyder@vmware.com> |
4603 | ||
4604 | * python/python.c (execute_gdb_command): Remove unused variables. | |
4605 | * python/py-block.c (gdbpy_block_for_pc): Remove unused variable. | |
0407b3f1 | 4606 | * python/py-breakpoint.c (gdbpy_breakpoint_created): |
f92adf3c MS |
4607 | Remove unused variable. |
4608 | * python/py-cmd.c (cmdpy_function): Remove unused variable. | |
4609 | (cmdpy_completer): Remove unused variable. | |
4610 | * python/py-frame.c (frapy_find_sal): Remove unused variable. | |
4611 | * python/py-function.c (fnpy_call): Remove unused variable. | |
4612 | * python/py-objfile.c (objfile_to_objfile_object): | |
4613 | Remove unused variable. | |
4614 | * python/py-param.c (parmpy_init): Remove unused variable. | |
0407b3f1 | 4615 | * python/py-prettyprint.c (apply_varobj_pretty_printer): |
f92adf3c MS |
4616 | Remove unused variable. |
4617 | (gdbpy_default_visualizer): Remove unused variable. | |
4618 | * python/py-progspace.c (pspace_to_pspace_object): | |
4619 | Remove unused variable. | |
0407b3f1 | 4620 | * python/py-symtab.c (symtab_and_line_to_sal_object): |
f92adf3c | 4621 | Remove unused variable. |
0407b3f1 | 4622 | * python/py-type.c (typy_template_argument): |
f92adf3c MS |
4623 | Remove unused variable. |
4624 | * python/py-value.c (valpy_string): Remove unused variable. | |
4625 | (convert_value_from_python): Remove unused variables. | |
4626 | ||
d160942f MS |
4627 | 2010-05-07 Michael Snyder <msnyder@vmware.com> |
4628 | ||
4629 | * valops.c (value_cast_pointers): Restore unused variable 'type1', | |
4630 | and use it to compute variable 't1'. | |
4631 | ||
587542ab JB |
4632 | 2010-05-07 Joel Brobecker <brobecker@adacore.com> |
4633 | ||
4634 | * ada-lang.c (assign_aggregate): Remove unused variable. | |
4635 | ||
7322dca9 SW |
4636 | 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com> |
4637 | ||
4638 | PR C++/7943: | |
4639 | * valops.c (find_overload_match): Handle fsym == NULL case. | |
4640 | Add int no_adl argument. | |
4641 | (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl | |
4642 | when appropriate. | |
4643 | Add int no_adl argument. | |
4644 | (find_oload_champ_namespace): Add int no_adl argument. | |
4645 | * parse.c (operator_length_standard): Return length for OP_ADL_FUNC | |
4646 | expression. | |
4647 | * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case. | |
4648 | * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case. | |
4649 | Evaluate arguments and use them to perform ADL lookup. | |
4650 | Pass no_adl argument to find_overload_match. | |
4651 | Disable adl lookup when evaluating a fully qualified OP_FUNCALL. | |
4652 | * cp-support.h: Added prototype for | |
4653 | make_symbol_overload_list_namespace. | |
4654 | * cp-support.c (make_symbol_overload_list_namespace): New function. | |
4655 | (make_symbol_overload_list_adl_namespace): New function. | |
4656 | (make_symbol_overload_list_adl): New function. | |
4657 | (make_symbol_overload_list_using): Moved code to add function to | |
4658 | overload set to make_symbol_overload_list_namespace. | |
4659 | * c-exp.y: create UNKNOWN_CPP_NAME token. | |
4660 | Add parse rule for ADL functions. | |
4661 | (classify_name): Recognize an UNKNOWN_CPP_NAME. | |
4662 | ||
3f1f6884 JK |
4663 | 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4664 | ||
4665 | * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as | |
4666 | sentinel. | |
4667 | ||
3caf13b4 JB |
4668 | 2010-05-07 Joel Brobecker <brobecker@adacore.com> |
4669 | ||
4670 | Implement task switching on solaris targets. | |
4671 | * sol-thread.c (thread_db_find_thread_from_tid) | |
4672 | (sol_get_ada_task_ptid): New functions. | |
4673 | (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid. | |
4674 | ||
94b0dee1 PA |
4675 | 2010-05-07 Pedro Alves <pedro@codesourcery.com> |
4676 | ||
4677 | * remote.c (remote_query_supported_append): Use reconcat. | |
4678 | (remote_query_supported): Install a cleanup. Use reconcat. | |
4679 | ||
1408c251 PA |
4680 | 2010-05-07 Pedro Alves <pedro@codesourcery.com> |
4681 | ||
4682 | * gdbarch.sh (qsupported): Delete. | |
4683 | * gdbarch.h, gdbarch.c: Regenerate. | |
4684 | * remote.c (remote_query_supported): Remove use of | |
4685 | gdbarch_qsupported. | |
4686 | ||
f8e50cfe SDJ |
4687 | 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
4688 | ||
4689 | * xml-syscall.c (syscall_start_syscalls_info): Remove unused | |
4690 | function. | |
4691 | ||
8ea13695 MS |
4692 | 2010-05-06 Michael Snyder <msnyder@vmware.com> |
4693 | ||
c6913b7d MS |
4694 | * xml-support.c (xinclude_start_include): Delete unused variable. |
4695 | (xml_process_xincludes): Delete unused variable. | |
4696 | * xml-syscall.c (syscall_parse_xml): Delete unused variable. | |
4697 | * target-descriptions.c (tdesc_gdb_type): Delete unused variable. | |
4698 | (tdesc_find_arch_register): Delete unused variable. | |
4699 | (tdesc_use_registers): Delete unused variable. | |
4700 | * xml-tdesc.c (tdesc_start_target): Delete unused variable. | |
4701 | * inferior.c (print_inferior): Delete unused variable. | |
4702 | * record.c (record_open_1): Delete unused variable. | |
4703 | (record_restore): Delete unused variable. | |
4704 | (cmd_record_save): Delete unused variable. | |
4705 | * gcore.c (derive_heap_segment): Delete unused variable. | |
4706 | (objfile_find_memory_regions): Use unused variable. | |
4707 | * jit.c (jit_inferior_init): Delete unused variable. | |
4708 | * progspace.c (clone_program_space): Delete unused variable. | |
4709 | (pspace_empty_p): Delete unused variable. | |
0407b3f1 AS |
4710 | |
4711 | * frame-unwind.c (frame_unwind_find_by_frame): | |
1c5465ac MS |
4712 | Delete unused variable. |
4713 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. | |
4714 | * cp-support.c (mangled_name_to_comp): Delete unused variable. | |
4715 | (method_name_from_physname): Delete unused variable. | |
4716 | (cp_func_name): Delete unused variable. | |
4717 | (cp_validate_operator): Delete unused variable. | |
0407b3f1 | 4718 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): |
1c5465ac | 4719 | Delete unused variable. |
0407b3f1 | 4720 | * trad-frame.c (trad_frame_get_prev_register): |
1c5465ac MS |
4721 | Delete unused variable. |
4722 | * tramp-frame.c (tramp_frame_cache): Delete unused variable. | |
4723 | ||
1be757cf MS |
4724 | * serial.c (serial_for_fd): Delete unused variable. |
4725 | * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. | |
4726 | * top.c (execute_command): Delete unused variable. | |
4727 | (init_main): Delete unused variable. | |
4728 | * utils.c (do_fclose_cleanup): Delete unused variable. | |
4729 | (do_all_inferior_continuations): Delete unused variable. | |
4730 | (initialize_utils): Delete unused variable. | |
4731 | (internal_problem_mode): Delete unused global. | |
4732 | * frame.c (get_prev_frame): Delete unused global. | |
4733 | (get_frame_locals_address): Delete unused global. | |
4734 | (get_frame_args_address): Delete unused global. | |
4735 | ||
9216103f MS |
4736 | * p-typeprint.c (pascal_type_print_base): Delete unused variable. |
4737 | (pascal_type_print_varspec_prefix): Delete unused variable. | |
4738 | * f-typeprint.c (f_type_print_base): Delete unused variable. | |
4739 | (f_type_print_varspec_suffix): Delete unused variable. | |
4740 | * m2-typeprint.c (m2_print_type): Delete unused variable. | |
4741 | (m2_long_set): Delete unused variable. | |
4742 | * ada-valprint.c (ada_val_print_1): Delete unused variable. | |
4743 | * d-valprint.c (dynamic_array_type): Delete unused variable. | |
0407b3f1 | 4744 | * f-valprint.c (f77_get_dynamic_length_of_aggregate): |
9216103f MS |
4745 | Delete unused variable. |
4746 | (f77_create_arrayprint_offset_tbl): Delete unused variable. | |
4747 | * m2-valprint.c (m2_val_print): Delete unused variable. | |
4748 | ||
34fa1d9d MS |
4749 | * ui-out.c (ui_out_field_int): Delete unused variable. |
4750 | (ui_out_field_fmt_int): Delete unused variable. | |
4751 | * varobj.c (varobj_list_children): Delete unused variable. | |
4752 | (varobj_set_value): Delete unused variable. | |
4753 | (install_new_value_visualizer): Delete unused variable. | |
4754 | (varobj_set_visualizer): Delete unused variable. | |
4755 | (varobj_update): Delete unused variable. | |
4756 | (varobj_editable_p): Delete unused variable. | |
4757 | (c_value_of_root): Delete unused variable. | |
4758 | (cplus_describe_child): Delete unused variable. | |
4759 | ||
b5385fc0 MS |
4760 | * ada-lang.c (add_defn_to_vec): Delete unused variable. |
4761 | (decode_constrained_packed_array_type): Delete unused variable. | |
4762 | (add_defn_to_vec): Delete unused variable. | |
4763 | (symbol_completion_match): Delete unused variable. | |
4764 | (value_tag_from_contents_and_address): Delete unused variable. | |
4765 | (ada_evaluate_subexp): Delete unused variable. | |
4766 | * c-lang.c (classify_type): Delete unused variable. | |
4767 | * f-lang.c (f_printstr): Delete unused variable. | |
4768 | * objc-lang.c (objc_printstr): Delete unused variable. | |
4769 | * ada-tasks.c (get_known_tasks_addr): Delete unused variable. | |
4770 | * jv-lang.c (type_from_class): ifdef unused variable. | |
4771 | (java_class_name_from_physname): Delete unused variable. | |
4772 | * m2-lang.c (m2_printstr): Delete unused variable. | |
4773 | ||
4fc06681 MS |
4774 | * objfiles.c (objfile_relocate): Delete unused variable. |
4775 | * maint.c (_initialize_maint_cmds): Delete unused variable. | |
4776 | * demangle.c (_initialize_demangler): Delete unused variable. | |
4777 | * corefile.c (reopen_exec_file): Delete unused variable. | |
4778 | * dwarf2expr.c (dwarf2_read_address): Delete unused variable. | |
4779 | * dwarf2-frame.c (decode_frame_entry): Delete unused variable. | |
4780 | ||
6b4398f7 MS |
4781 | * osabi.c (_initialize_gdb_osabi): Delete unused variable. |
4782 | * memattr.c (mem_delete): Delete unused variable. | |
4783 | (invalidate_target_mem_regions): Delete unused variable. | |
4784 | * mem-break.c (default_memory_insert_breakpoint): | |
4785 | Delete unused variable. | |
4786 | * target.c (target_get_osdata): Delete unused variable. | |
4787 | * parse.c (length_of_subexp): Delete unused variable. | |
4788 | (prefixify_subexp): Delete unused variable. | |
4789 | (exp_iterate): Delete unused variable. | |
4790 | * reverse.c (delete_bookmark_command): Delete unused variable. | |
4791 | ||
308d96ed MS |
4792 | * macrocmd.c (_initialize_macrocmd): Delete unused variable. |
4793 | * macroexp.c (gather_arguments): Delete unused variable. | |
4794 | (substitute_args): Delete unused variable. | |
4795 | * completer.c (gdb_completer_loc_break_characters): Unused, delete. | |
4796 | * gdbarch.sh (gdbarch_printable_names): Delete unused variable. | |
4797 | (_initialize_gdbarch): Delete unused variable. | |
4798 | * gdbarch.c, gdbarch.h: Regenerate. | |
0407b3f1 | 4799 | * arch-utils.c (initialize_current_architecture): |
308d96ed MS |
4800 | Delete unused variable. |
4801 | (_initialize_gdbarch_utils): Delete unused variable. | |
4802 | * gdbtypes.c (make_cv_type): Delete unused variable. | |
4803 | (make_type_with_address_space): Delete unused variable. | |
4804 | ||
167e4384 MS |
4805 | * linespec.c (decode_compound): Delete unused variable. |
4806 | * dictionary.c (iterator_next_hashed): Delete unused variable. | |
4807 | * infcall.c (call_function_by_hand): Delete unused variable. | |
4808 | * infcmd.c (step_1): Delete unused variable. | |
4809 | (registers_info): Delete unused variable. | |
4810 | (attach_command): Delete unused variable. | |
4811 | * infrun.c (follow_exec): Delete unused variable. | |
4812 | (handle_step_into_function_backwards): Delete unused variable. | |
4813 | (_initialize_infrun): Delete unused variable. | |
4814 | * stack.c (parse_frame_specification_1): Delete unused variable. | |
4815 | (frame_info): Delete unused variable. | |
4816 | (backtrace_command_1): Delete unused variable. | |
4817 | (catch_info): Delete unused variable. | |
4818 | ||
8f78b329 MS |
4819 | * eval.c (evaluate_subexp_standard): Delete unused variable. |
4820 | * valops.c (value_cast_pointers): Delete unused variable. | |
4821 | (value_dynamic_cast): Delete unused variable. | |
4822 | (value_array): Delete unused variable. | |
4823 | (find_overload_match): Delete unused variable. | |
4824 | * valarith.c (value_subscript): Delete unused variable. | |
4825 | (value_binop): Delete unused variable. | |
4826 | * valprint.c (_initialize_valprint): Delete unused variable. | |
4827 | * printcmd.c (print_command_1): Delete unused variable. | |
4828 | (address_info): Delete unused variable. | |
4829 | (printf_command): Delete unused variable. | |
4830 | ||
8ea13695 MS |
4831 | * auxv.c (target_auxv_search): Delete unused variable. |
4832 | * blockframe.c (get_frame_block): Delete unused variable. | |
4833 | * regcache.c (regcache_cpy): Delete unused variable. | |
4834 | (regcache_cpy_no_passthrough): Delete unused variable. | |
4835 | * charset.c (wchar_iterate): Delete unused variable. | |
4836 | (find_charset_names): Delete unused variable. | |
4837 | (_initialize_charset): Delete unused variable. | |
0407b3f1 | 4838 | * disasm.c (do_mixed_source_and_assembly): |
8ea13695 | 4839 | Delete unused variable. |
0407b3f1 | 4840 | * source.c (set_default_source_symtab_and_line): |
8ea13695 MS |
4841 | Delete unused variable. |
4842 | (set_substitute_path_command): Delete unused variable. | |
4843 | * value.c (preserve_values): Delete unused variable. | |
4844 | (value_from_double): Delete unused variable. | |
4845 | ||
afe38095 MS |
4846 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
4847 | ||
952a6d41 MS |
4848 | * psymtab.c (lookup_partial_symbol): Delete unused variable. |
4849 | (find_last_source_symtab_from_partial): Delete unused variable. | |
4850 | * symfile.c (place_section): Delete unused variable. | |
4851 | (default_symfile_offsets): Delete unused variable. | |
4852 | (get_debug_link_info): Delete unused variable. | |
4853 | (find_separate_debug_file_by_debuglink): Delete unused variable. | |
4854 | (add_symbol_file_command): Delete unused variable. | |
4855 | (symfile_find_segment_sections): Delete unused variable. | |
4856 | * symmisc.c (free_symtab): Delete unused variable. | |
4857 | (dump_symtab_1): Delete unused variable. | |
4858 | * symtab.c (lookup_symbil_aux_quick): Delete unused variable. | |
4859 | (find_pc_sect_symtab): Delete unused variable. | |
4860 | (skip_prologue_using_lineinfo): Delete unused variable. | |
4861 | (sources_info): Delete unused variable. | |
4862 | (completion_list_add_name): Delete unused variable. | |
4863 | (expand_line_sal): Delete unused variable. | |
4864 | ||
0407b3f1 | 4865 | * breakpoint.c (validate_commands_for_breakpoint): |
afe38095 MS |
4866 | Delete unused variables. |
4867 | (insert_catchpoint): Delete unused variable. | |
4868 | (update_watchpoint): Delete unused variable. | |
4869 | (insert_bp_location): Delete unused variable. | |
4870 | (insert_breakpoint_locations): Delete unused variable. | |
4871 | (remove_breakpoint_1): Delete unused variable. | |
4872 | (software_breakpoint_inserted_here_p): Delete unused variable. | |
4873 | (watchpoints_triggered): Delete unused variable. | |
4874 | (bpstat_check_watchpoint): Delete unused variable. | |
4875 | (bpstat_stop_status): Delete unused variable. | |
4876 | (print_one_breakpoint_location): Delete unused variable. | |
4877 | (allocate_bp_location): Delete unused variable. | |
4878 | (create_breakpoint): Delete unused variable. | |
4879 | (watch_command_1): Delete unused variable. | |
4880 | (catch_exception_command_1): Delete unused variable. | |
4881 | (catch_ada_exception_command): Delete unused variable. | |
4882 | (delete_breakpoint): Delete unused variable. | |
4883 | (breakpoint_re_set_one): Delete unused variable. | |
4884 | (do_enable_breakpoint): Delete unused variable. | |
4885 | ||
eda5a4d7 PA |
4886 | 2010-05-06 Pedro Alves <pedro@codesourcery.com> |
4887 | ||
4888 | * amd64-tdep.c: Include disasm.h. | |
4889 | (amd64_insn_length_fprintf, amd64_insn_length_init_dis) | |
4890 | (amd64_insn_length): Moved to disasm.c and renamed. | |
4891 | (fixup_riprel): Adjust. | |
4892 | * disasm.c (do_ui_file_delete): New. | |
4893 | (gdb_insn_length): New. | |
4894 | (gdb_buffered_insn_length_fprintf) | |
4895 | (gdb_buffered_insn_length_init_dis) | |
4896 | (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and | |
4897 | renamed. | |
4898 | * disasm.h (gdb_insn_length): Declare. | |
4899 | (gdb_buffered_insn_length): Declare. | |
4900 | ||
02357a4a PA |
4901 | 2010-05-06 Pedro Alves <pedro@codesourcery.com> |
4902 | ||
4903 | * remote.c (clear_threads_parsing_context): New. | |
4904 | (remote_threads_info): Delete unused null_cleanup. Install a | |
4905 | cleanup to clear the threads_parsing_context in case parsing | |
4906 | throws. | |
4907 | ||
8c5630cb MS |
4908 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
4909 | ||
4910 | * c-exp.y (parse_string_or_char): Delete unused variable. | |
4911 | (c_lex): Delete unused variable. | |
4912 | * cp-name-parser.y (cpname_lex): Delete unused variable. | |
4913 | * ada-exp.y (find_primitive_type): Delete unused variable. | |
4914 | (write_var_or_type): Delete unused variable. | |
4915 | * jv-exp.y (java_parse): Delete unused variable. | |
4916 | (push_expression_name): Delete unused variable. | |
4917 | * p-exp.y (pascal_lex): Delete unused variable. | |
4918 | ||
46c162d4 PA |
4919 | 2010-05-05 Pedro Alves <pedro@codesourcery.com> |
4920 | ||
4921 | * remote.c (remote_threads_info): Really revert previous previous | |
4922 | change. | |
4923 | ||
0043e6a5 MS |
4924 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
4925 | ||
fa238c03 MS |
4926 | * elfread.c (elf_symtab_read): Delete unused variable. |
4927 | (find_separate_debug_file_by_buildid): Delete unused variables. | |
4928 | (elf_symfile_read): Delete unused variable. | |
4929 | ||
4930 | * coffread.c (coff_symfile_read): Delete unused variables. | |
4931 | ||
4932 | * coff-pe-read.c (add_pe_exported_sym): Delete unused variable. | |
4933 | (read_pe_exported_syms): Delete unused variable. | |
4934 | ||
4935 | * stabsread.c (define_symbol): Delete unused variable. | |
4936 | ||
4937 | * dwarf2read.c (read_type_comp_unit_head): Delete unused variable. | |
4938 | (process_psymtab_comp_unit): Delete unused variable. | |
4939 | (dwarf2_build_psymtabs_hard): Delete unused variable. | |
4940 | (load_partial_comp_unit): Delete unused variable. | |
4941 | (create_all_comp_units): Delete unused variable. | |
4942 | (scan_partial_symbols): Delete unused variable. | |
4943 | (add_partial_symbol): Delete unused variable. | |
4944 | (add_partial_namespace): Delete unused variable. | |
4945 | (add_partial_enumeration): Delete unused variable. | |
4946 | (load_full_comp_unit): Delete unused variable. | |
4947 | (process_full_comp_unit): Delete unused variable. | |
4948 | (read_file_scope): Delete unused variable. | |
4949 | (read_type_unit_scope): Delete unused variable. | |
4950 | (process_structure_scope): Delete unused variable. | |
4951 | (process_enumeration_scope): Delete unused variable. | |
4952 | (read_tag_ptr_to_member_type): Delete unused variable. | |
4953 | (read_typedef): Delete unused variable. | |
4954 | (read_partial_die): Delete unused variable. | |
4955 | (decode_locdesc): Delete unused variable. | |
4956 | (zeroed_partial_die): Delete unused global variable. | |
4957 | ||
0407b3f1 | 4958 | * tui/tui-interp.c (_initialize_tui_interp): |
0043e6a5 | 4959 | Delete unused variable. |
0407b3f1 | 4960 | * tui/tui-regs.c tui_display_registers_from): |
0043e6a5 MS |
4961 | Delete unused variable. |
4962 | (tui_check_register_values): Delete unused variable. | |
4963 | (tui_register_format): Delete unused variable. | |
4964 | * tui/tui-win.c (_initialize_tui_win): Delete unused variable. | |
0407b3f1 | 4965 | * tui/tui-windata.c (tui_display_data_from_line): |
0043e6a5 MS |
4966 | Delete unused variables. |
4967 | (tui_vertical_data_scroll): Delete unused variables. | |
4968 | ||
75721c66 MS |
4969 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
4970 | ||
c31a71f4 MS |
4971 | * remote.c (remote_threads_info): Revert questionable part of |
4972 | the previous change. | |
4973 | ||
4974 | 2010-05-05 Michael Snyder <msnyder@vmware.com> | |
4975 | ||
4976 | * mi/mi-out.c (mi_table_begin): Delete unused variable. | |
4977 | * mi/mi-cmd-var.c (print_varobj): Delete unused variable. | |
4978 | (mi_cmd_var_list_children): Delete unused variable. | |
4979 | (varobj_update_one): Delete unused variable. | |
4980 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables. | |
0407b3f1 | 4981 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): |
c31a71f4 MS |
4982 | Delete unused variable. |
4983 | (mi_cmd_stack_list_variables): Delete unused variable. | |
4984 | (list_args_or_locals): Delete unused variable. | |
0407b3f1 | 4985 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): |
c31a71f4 MS |
4986 | Delete unused variables. |
4987 | (mi_cmd_file_list_exec_source_files): Delete unused variable. | |
0407b3f1 | 4988 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): |
c31a71f4 MS |
4989 | Delete unused variable. |
4990 | * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable. | |
4991 | (mi_cmd_interpreter_exec): Delete unused variable. | |
4992 | (mi_on_normal_stop): Delete unused variable. | |
4993 | * mi/mi-main.c (run_one_inferior): Delete unused variable. | |
4994 | (print_one_inferior): Delete unused variables. | |
4995 | (mi_execute_command): Delete unused variable. | |
4996 | (mi_cmd_execute): Delete unused variable. | |
4997 | (timestamp): Delete unused variable. | |
4998 | ||
4999 | * cli/cli-dump.c (dump_memory_to_file): Delete unused variable. | |
d36fc00b | 5000 | (restore_binary_file): Delete unused variable. |
c31a71f4 MS |
5001 | * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables. |
5002 | * cli/cli-script.c (define_command): Delete unused variables. | |
d36fc00b MS |
5003 | (recurse_read_control_structure): Delete unused variable. |
5004 | (script_from_file): Delete unused variable. | |
c31a71f4 | 5005 | * cli/cli-cmds.c (complete_command): Delete unused variable. |
d36fc00b MS |
5006 | (disassemble_command): Delete unused variable. |
5007 | ||
5008 | * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables. | |
0407b3f1 | 5009 | * tracepoint.c (delete_trace_variable_command): |
d36fc00b MS |
5010 | Delete unused variables. |
5011 | (encode_actions_1): Delete unused variables. | |
5012 | (start_tracing): Delete unused variable. | |
5013 | (trace_status_mi): Delete unused variable. | |
5014 | (tfind_1): Delete unused variable. | |
5015 | (trace_find_pc_command): Delete unused variable. | |
5016 | (trace_find_line_command): Delete unused variables. | |
5017 | (trace_find_range_command): Delete unused variables. | |
5018 | (trace_find_outside_command): Delete unused variables. | |
5019 | (parse_tracepoint_definition): Delete unused variables. | |
5020 | (tfile_fetch_registers): Delete unused variable. | |
5021 | ||
9128a503 MS |
5022 | * dcache.c (dcache_init): Delete unused variable. |
5023 | (dcache_info): Delete unused variable. | |
5024 | ||
aa369b55 | 5025 | * remote.c (remote_threads_info): Delete unused variable. |
9128a503 | 5026 | (process_stop_reply) :Delete unused variable. |
aa369b55 MS |
5027 | (remote_get_trace_status): Delete unused variables. |
5028 | ||
9e9547e4 MS |
5029 | * linux-thread-db.c (add_thread_db_info): Delete unused variable. |
5030 | (thread_from_lwp): Delete unused variable. | |
5031 | (enable_thread_event_reporting): Delete unused variable. | |
5032 | (check_for_thread_db): Delete unused variables. | |
5033 | (thread_db_find_new_threads_2): Delete unused variable. | |
0407b3f1 | 5034 | |
9e9547e4 MS |
5035 | * linux-fork.c (info_checkpoints_command): Delete unused variables. |
5036 | (checkpoint_command): Delete unused variable. | |
5037 | (linux_fork_context): Delete unused variables. | |
5038 | ||
fa238c03 | 5039 | * linux-nat.c (linux_parent_pid): Delete unused global variable. |
75083f7e MS |
5040 | (linux_tracefork_child): Delete unused variable. |
5041 | (linux_child_follow_fork): Delete unused variable. | |
5042 | (linux_nat_detach): Delete unused variable. | |
5043 | (linux_handle_extended_wait): Delete unused variable. | |
5044 | (linux_nat_has_pending_sigint): Delete unused variable. | |
5045 | (linux_nat_find_memory_regions): Delete unused variable. | |
5046 | (linux_nat_make_corefile_notes): Delete unused variables. | |
5047 | (linux_nat_info_proc_cmd): Delete unused variable. | |
5048 | (linux_proc_pending_signals): Delete unused variable. | |
5049 | (linux_nat_stop_lwp): Delete unused variables. | |
5050 | (_initialize_linux_nat): Delete unused variable. | |
5051 | ||
fa238c03 | 5052 | * ser-pipe.c (pipe_ops): Delete unused global variable. |
2d148b94 | 5053 | |
0407b3f1 | 5054 | * linux-record.c (record_linux_system_call): |
e0f069a3 MS |
5055 | Delete unused variables. |
5056 | ||
789d24f0 MS |
5057 | * corelow.c (core_xfer_partial): Delete unused variables. |
5058 | ||
1cd337a5 | 5059 | * solib-svr4.c (find_program_interpreter): Delete unused variable. |
0407b3f1 | 5060 | (svr4_solib_create_inferior_hook): Add ifdef around |
1cd337a5 MS |
5061 | conditionally-used variable declarations. |
5062 | ||
b00e3f56 MS |
5063 | * solib.c (solib_find): Delete unused variable. |
5064 | (free_so_symbols): Delete unused variable. | |
5065 | (info_sharedlibrary_command): Delete unused variable. | |
5066 | (reload_shared_libraries_1): Delete unused variable. | |
5067 | (_initialize_solib): Delete unused variable. | |
5068 | ||
90f62196 MS |
5069 | * i386-tdep.c (i386_supply_xstateregset) Delete unused variable. |
5070 | (i386_collect_xstateregset): Delete unused variable. | |
5071 | * i387-tdep.c (i387_print_float_info): Delete unused variable. | |
5072 | ||
75721c66 MS |
5073 | * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx): |
5074 | Delete unused variable 'type'. | |
5075 | ||
af33db37 JB |
5076 | 2010-05-05 Joel Brobecker <brobecker@adacore.com> |
5077 | ||
90f62196 | 5078 | * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. * |
63db82b2 JB |
5079 | ada-lang.c: Remove comment mentioning these macros. |
5080 | * m2-exp.y: Delete commented out code. | |
af33db37 | 5081 | |
0497f5b0 JB |
5082 | 2010-05-05 Joel Brobecker <brobecker@adacore.com> |
5083 | ||
5084 | * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero | |
5085 | for array types. | |
5086 | * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise. | |
5087 | ||
6e39997a PM |
5088 | 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr> |
5089 | ||
5090 | ARI fix: Remove ATTRIBUTE_UNUSED throughout. | |
0407b3f1 | 5091 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove |
6e39997a PM |
5092 | ATTRIBUTE_UNUSED. |
5093 | (cleanup_kernel_helper_return): Likewise. | |
5094 | * arm-tdep.c (copy_unmodified): Likewise. | |
5095 | (copy_preload): Likewise. | |
5096 | (copy_copro_load_store): Likewise. | |
5097 | (cleanup_branch): Likewise. | |
5098 | (copy_b_bl_blx): Likewise. | |
5099 | (copy_bx_blx_reg): Likewise. | |
5100 | (copy_alu_imm): Likewise. | |
5101 | (copy_alu_reg): Likewise. | |
5102 | (copy_alu_shifted_reg): Likewise. | |
5103 | (cleanup_load): Likewise. | |
5104 | (cleanup_store): Likewise. | |
5105 | (cleanup_block_load_pc): Likewise. | |
5106 | (cleanup_svc): Likewise. | |
5107 | (copy_undef): Likewise. | |
5108 | (copy_unpred): Likewise. | |
5109 | * remote.c (register_remote_support_xml): Likewise. | |
5110 | ||
1412f70b HZ |
5111 | 2010-05-05 Hui Zhu <teawater@gmail.com> |
5112 | ||
5113 | * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment. | |
5114 | ||
c4f7c687 MK |
5115 | 2010-05-04 Mark Kettenis <kettenis@gnu.org> |
5116 | ||
5117 | * remote.c (register_remote_support_xml) | |
5118 | (remote_query_supported_append, remote_query_supported): Add cast | |
5119 | to NULL used as sentinel. | |
5120 | * tracepoint.c (tvariables_info_1): Likewise. | |
5121 | * utils.c (add_internal_problem_command): Likewise. | |
5122 | ||
63b4f126 MGD |
5123 | 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
5124 | ||
5125 | * dwarf2loc.c (read_pieced_value, write_pieced_value, | |
5126 | dwarf2_evaluate_loc_desc): Handle not being able to access DWARF | |
5127 | registers gracefully. | |
5128 | ||
2f1bdd26 MGD |
5129 | 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
5130 | ||
0407b3f1 | 5131 | * exec.c (print_section_info): Display entry point without arch |
2f1bdd26 MGD |
5132 | specific parts. |
5133 | ||
e1c34c5d PM |
5134 | 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr> |
5135 | ||
5136 | PR exp/11349. | |
5137 | * printcmd.c (x_command): Only dereference once implicitly for | |
5138 | TYPE_CODE_REF. | |
5139 | ||
ae462839 DE |
5140 | 2010-05-03 Doug Evans <dje@google.com> |
5141 | ||
5142 | * event-loop.c (gdb_timer): Delete unused global. | |
5143 | (create_timer): Update. | |
5144 | ||
1ac77ea1 JK |
5145 | 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
5146 | ||
5147 | * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the | |
5148 | CURRENT->DECLARATION case. | |
5149 | * cp-support.h (struct using_direct): Provide extended comment. | |
5150 | ||
7c54a108 MK |
5151 | 2010-05-03 Mark Kettenis <kettenis@gnu.org> |
5152 | ||
5153 | * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from | |
5154 | HPPABSD_SIZEOF_GREGS. | |
5155 | (HPPAOBSD_SIZEOF_FPREGS): New define. | |
5156 | (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset. | |
5157 | (hppaobsd_supply_fpregset): New function. | |
5158 | (hppaobsd_gregset): Renamed from hppabsd_gregset. | |
5159 | (hppaobsd_fpregset): New variable. | |
5160 | (hppaobsd_regset_from_core_section): Handle floating-point registers. | |
5161 | (_initialize_hppabsd_tdep): Remove spurious blank line. | |
5162 | ||
278582cb PM |
5163 | 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
5164 | ||
5165 | PR pascal/11349. | |
5166 | * p-valprint.c (pascal_value_print): Always dereference a value with | |
5167 | type code TYPE_CODE_REF. | |
0407b3f1 | 5168 | |
f0223081 PA |
5169 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
5170 | ||
5171 | * remote.c (remote_notice_signals): New. | |
5172 | (remote_start_remote): In non-stop mode, update the remote end on | |
5173 | which signals it can silently pass. | |
5174 | (init_remote_ops): Install remote_notice_signals. | |
5175 | ||
c25c4a8b JK |
5176 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
5177 | ||
5178 | * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... | |
5179 | * command.h (error_no_arg): ... here. Remove NORETURN, change | |
5180 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
5181 | * defs.h (NORETURN, ATTR_NORETURN): Remove. | |
5182 | (perror_with_name, verror, error, error_stream, vfatal, fatal) | |
5183 | (internal_verror, internal_error, nomem): Remove NORETURN, change | |
5184 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
5185 | * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) | |
5186 | (throw_vfatal, throw_error): Remove NORETURN. | |
5187 | (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
5188 | * exceptions.h (throw_exception, throw_verror, throw_vfatal) | |
5189 | (throw_error, deprecated_throw_reason): Remove NORETURN, change | |
5190 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
5191 | * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN | |
5192 | to ATTRIBUTE_NORETURN for prototype, for the definition only remove | |
5193 | NORETURN. | |
5194 | * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. | |
5195 | * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to | |
5196 | ATTRIBUTE_NORETURN. | |
5197 | * target.c (tcomplain): Likewise. | |
5198 | * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to | |
5199 | ATTRIBUTE_NORETURN. | |
5200 | * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) | |
5201 | (internal_error, perror_with_name, nomem): Remove NORETURN. | |
5202 | * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to | |
5203 | ATTRIBUTE_NORETURN. | |
5204 | ||
a0b31db1 JK |
5205 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
5206 | ||
5207 | * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
5208 | * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. | |
5209 | * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. | |
5210 | (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
5211 | * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. | |
5212 | (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
5213 | * complaints.h (complaint, internal_complaint): Likewise. | |
5214 | * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. | |
5215 | (ATTR_FORMAT): Remove. | |
5216 | (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) | |
5217 | (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) | |
5218 | (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) | |
5219 | (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) | |
5220 | (xsnprintf, verror, error, vfatal, fatal, internal_verror) | |
5221 | (internal_error, internal_vwarning, internal_warning, warning) | |
5222 | (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
5223 | * disasm.c (fprintf_disasm): Likewise. | |
5224 | * exceptions.c (throw_it): Likewise. | |
5225 | * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) | |
5226 | (throw_error): Likewise. | |
5227 | * language.h (type_error, range_error): Likewise. | |
5228 | * linespec.c (cplusplus_error): Likewise. | |
5229 | * mi/mi-interp.c (mi_interp_query_hook): Likewise. | |
5230 | * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. | |
5231 | * monitor.c (monitor_debug): Likewise. | |
5232 | * parser-defs.h (parser_fprintf): Likewise. | |
5233 | * serial.h (serial_printf): Likewise. | |
5234 | * tui/tui-hooks.c (tui_query_hook): Likewise. | |
5235 | * ui-out.c (default_field_fmt, default_message, uo_field_fmt) | |
5236 | (uo_message): Likewise. | |
5237 | * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. | |
5238 | * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): | |
5239 | Likewise. | |
5240 | * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise. | |
5241 | ||
02a45ac0 PA |
5242 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
5243 | ||
5244 | * cli-out.c (cli_table_begin, cli_table_body, cli_table_end) | |
5245 | (cli_table_header, cli_begin, cli_end, cli_field_int) | |
5246 | (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) | |
5247 | (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): | |
5248 | Delete forward declarations. | |
5249 | (cli_ui_out_impl): Move below the callbacks. | |
5250 | (_initialize_cli_out): Delete. | |
5251 | ||
1915ef4f PA |
5252 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
5253 | ||
5254 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
5255 | ||
0dfb946f JK |
5256 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
5257 | ||
5258 | * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration. | |
5259 | ||
4d533103 PA |
5260 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
5261 | ||
5262 | * infrun.c (prepare_for_detach): In non-stop, context switch to | |
5263 | the thread that got the event before handling the event. | |
5264 | ||
705b5767 TT |
5265 | 2010-04-30 Tom Tromey <tromey@redhat.com> |
5266 | ||
5267 | * symtab.c (symbol_set_names): Fix typo. | |
5268 | ||
3c0ee1a4 PM |
5269 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
5270 | ||
5271 | * python/py-param.c (parm_constants): Avoid ARI warning | |
5272 | by adding ARI comment. | |
5273 | (parmpy_init): Likewise. | |
5274 | ||
ea1fae46 PM |
5275 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
5276 | ||
5277 | * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH | |
5278 | and created type for re-use. | |
5279 | ||
c24d0242 PM |
5280 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
5281 | ||
5282 | * NEWS: Mention gdbserver support for x86_64 Windows 64-bit. | |
5283 | ||
a26d8d11 DE |
5284 | 2010-04-29 Doug Evans <dje@google.com> |
5285 | ||
5286 | * ser-base.h (reschedule): Delete prototype. | |
5287 | * ser-base.c (reschedule): Make static. | |
5288 | ||
f8624c62 MGD |
5289 | 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
5290 | ||
5291 | * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove. | |
5292 | (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA. | |
0407b3f1 | 5293 | (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for |
f8624c62 | 5294 | EABI. |
0407b3f1 | 5295 | (arm_linux_init_abi): Set up JB_PC field dependent on FP model in |
f8624c62 MGD |
5296 | use. |
5297 | ||
e66408ed PA |
5298 | 2010-04-29 Pedro Alves <pedro@codesourcery.com> |
5299 | ||
5300 | PR gdb/11557 | |
5301 | ||
5302 | * regcache.c (registers_changed): Rename to ... | |
5303 | (registers_changed_ptid): ... this, and only delete register cache | |
5304 | entries matching the ptid filter argument. | |
5305 | (registers_changed): Reimplement on top of registers_changed_ptid. | |
5306 | * regcache.h (registers_changed_ptid): Declare. | |
5307 | * target.c (target_resume): Flush register caches. | |
5308 | ||
d7b32ed3 | 5309 | 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> |
0407b3f1 AS |
5310 | Tom Tromey <tromey@redhat.com> |
5311 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
5312 | ||
5313 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. | |
5314 | (SUBDIR_PYTHON_SRCS): Likewise. | |
5315 | (py-parameter.o): New rule. | |
5316 | * python/py-parameter.c: New file. | |
5317 | * python/python-internal.h (gdbpy_initialize_parameter) | |
5318 | (gdbpy_parameter, gdbpy_parameter_value) | |
5319 | (gdbpy_parse_command_name): Declare. | |
5320 | * python/py-cmd.c (parse_command_name): Rename to | |
5321 | gdbpy_parse_command_name. | |
5322 | (gdbpy_parse_command_name): Accept a starting list parameter and | |
5323 | use over cmdlist. | |
5324 | (cmdpy_init): Use gdbpy_parse_command_name. | |
5325 | * python/python.c (parameter_to_python): Rename to | |
5326 | gdbpy_parameter_to_python. Accept enum var_types and value. | |
5327 | (gdbpy_parameter): Use gdbpy_parameter_value. | |
5328 | (_initialize_python): Call gdbpy_initialize_parameters. | |
d7b32ed3 | 5329 | |
ce72ce41 MGD |
5330 | 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
5331 | ||
5332 | * MAINTAINERS: Add myself for write after approval privileges. | |
5333 | ||
6aecb9c2 JB |
5334 | 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com> |
5335 | ||
5336 | D language support. | |
5337 | * Makefile.in (SFILES): Add d-lang.c d-valprint.c. | |
5338 | (COMMON_OBS): Add d-lang.o d-valprint.o. | |
5339 | (HFILES_NO_SRCDIR): Add d-lang.h. | |
5340 | * NEWS: Mention D language support. | |
5341 | * c-lang.c (c_emit_char, exp_descriptor_c): Make public. | |
5342 | * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. | |
5343 | * d-lang.c: New file. | |
5344 | * d-lang.h: New file. | |
5345 | * d-valprint.c: New file. | |
5346 | * defs.h (enum language): Add language_d. | |
5347 | * dwarf2read.c (set_cu_language): Add DW_LANG_D. | |
5348 | * language.c (binop_result_type, integral_type, character_type) | |
5349 | (string_type, boolean_type, structured_type): Add language_d. | |
5350 | * symfile.c (init_filename_language_table): Add language_d. | |
5351 | * symtab.c: Include d-lang.h. | |
5352 | (symbol_init_language_specific, symbol_find_demangled_name) | |
5353 | (symbol_natural_name, lookup_symbol_in_language) | |
5354 | (symbol_demangled_name, symbol_matches_domain): Add language_d. | |
5355 | ||
6f992fbf JB |
5356 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5357 | ||
5358 | * solib-svr4.c (solib_svr4_r_map): Expand function description. | |
5359 | ||
dde59185 JB |
5360 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5361 | ||
5362 | * symfile.c (init_filename_language_table): Register .dg files | |
5363 | with language_ada. | |
5364 | ||
d09ce91e JB |
5365 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5366 | ||
5367 | * gdbtypes.h (struct main_type): Expand comment about target_type | |
5368 | field. | |
5369 | ||
67f1675e JB |
5370 | 2010-04-27 Pedro Alves <pedro@codesourcery.com> |
5371 | Tristan Gingold <gingold@adacore.com> | |
02aeec7b JB |
5372 | |
5373 | * symfile.c (reread_symbols): Also search for file in libraries. | |
5374 | Update comment. | |
5375 | ||
dfd0fe27 JB |
5376 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5377 | ||
5378 | * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets | |
5379 | in terms of configuration. | |
5380 | ||
0133421a JK |
5381 | 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
5382 | ||
5383 | * objfiles.c: Include solist.h. | |
5384 | (free_all_objfiles): New variable so. Check stale solist objfiles. | |
5385 | * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles | |
5386 | and no_shared_libraries. | |
5387 | ||
e78f4312 JB |
5388 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5389 | ||
5390 | ARI warning fix. | |
5391 | * python/py-auto-load.c (source_section_scripts): Remove trailing | |
5392 | new-line in i18n string. | |
5393 | ||
9214d371 DE |
5394 | 2010-04-26 Doug Evans <dje@google.com> |
5395 | ||
5396 | * serial.c (serial_write): Handle serial_debug_p akin to serial_read. | |
5397 | ||
3f172e24 TT |
5398 | 2010-04-26 Tom Tromey <tromey@redhat.com> |
5399 | ||
5400 | * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the | |
5401 | command list. | |
5402 | ||
e790e06e PM |
5403 | 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr> |
5404 | ||
5405 | Removal of config/i386/nm-i386sol2.h native configuration file. | |
5406 | * config/i386/nm-i386sol2.h: Remove file. | |
5407 | * config/i386/i386sol2.mh: Remove NAT_FILE definition. | |
5408 | * config/i386/sol2-64.mh: Idem. | |
88562582 PM |
5409 | * config/djgpp/fnchange.lst: Remove reference to that file. |
5410 | * Makefile.in (HFILES_NO_SRCDIR): Idem. | |
e790e06e | 5411 | |
b7da9e9f PM |
5412 | 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr> |
5413 | ||
5414 | PR breakpoints/11531. | |
5415 | * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove | |
5416 | macro definition and related comment. | |
5417 | * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. | |
5418 | (resume): Remove code and comment related to this macro. | |
5419 | ||
72f6eb52 JK |
5420 | 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
5421 | ||
5422 | * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. | |
5423 | Fix whitespace. | |
5424 | ||
ab38a727 PA |
5425 | 2010-04-24 Pedro Alves <pedro@codesourcery.com> |
5426 | ||
5427 | * defs.h: Adjust comment. | |
5428 | * filesystem.h, filesystem.c: New files. | |
5429 | * Makefile.in (SFILES): Add filesystem.c. | |
5430 | (COMMON_OBS): Add filesystem.o. | |
5431 | * solib.c (solib_find): Handle DOS-based filesystems. Handle | |
5432 | different target and host path flavours. | |
5433 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
5434 | has_dos_based_file_system on the gdbarch. | |
5435 | * arm-wince-tdep.c (arm_wince_init_abi): Ditto. | |
5436 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. | |
5437 | * i386-tdep.c (i386_go32_init_abi): Ditto. | |
5438 | * gdbarch.sh (has_dos_based_file_system): New. | |
5439 | * gdbarch.h, gdbarch.c: Regenerate. | |
5440 | * NEWS: Mention improved support for remote targets with DOS-based | |
5441 | filesystems. Mention new `set/show target-file-system-kind' | |
5442 | commands. | |
5443 | ||
35c9c7ba SS |
5444 | 2010-04-23 Stan Shebs <stan@codesourcery.com> |
5445 | ||
5446 | * ax.h (struct agent_expr): Merge in agent_reqs fields, add some | |
5447 | comments. | |
5448 | (struct agent_reqs): Remove. | |
5449 | (ax_reg_mask): Declare. | |
5450 | * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. | |
5451 | (free_agent_expr): Free reg_mask. | |
5452 | (ax_print): Add scope and register mask info. | |
5453 | (ax_reqs): Remove agent_reqs argument, use agent expression | |
5454 | fields, and move part of register mask computation to... | |
5455 | (ax_reg_mask): New function. | |
5456 | * ax-gdb.c (gen_trace_static_fields): Call it. | |
5457 | (gen_traced_pop): Ditto. | |
5458 | (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. | |
5459 | (gen_trace_for_var): Pass gdbarch to new_agent_expr. | |
5460 | (gen_trace_for_expr): Ditto, and clear optimized_out flag. | |
5461 | (gen_eval_for_expr): Ditto, and require an rvalue. | |
5462 | (agent_command): Call ax_reqs. | |
5463 | (agent_eval_command): Ditto. | |
5464 | * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. | |
5465 | (validate_action_line): Ditto. | |
5466 | (collect_symbol): Ditto. | |
5467 | (encode_actions_1): Ditto. | |
5468 | ||
492928e4 JK |
5469 | 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com> |
5470 | Paul Pluzhnikov <ppluzhnikov@google.com> | |
5471 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5472 | ||
5473 | Fix deadlock on looped list of loaded shared objects. | |
5474 | * solib-svr4.c (LM_PREV): New function. | |
5475 | (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. | |
5476 | (svr4_current_sos): Check for correct l_prev. New variables prev_lm | |
5477 | and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. | |
5478 | * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. | |
5479 | ||
66d09542 DE |
5480 | 2010-04-23 Doug Evans <dje@google.com> |
5481 | ||
88a1906b DE |
5482 | * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using |
5483 | python. | |
5484 | * configure: Regenerate. | |
5485 | * main.c: #include "python/python.h". | |
5486 | (captured_main): Defer loading auto-loaded scripts until after | |
5487 | local_gdbinit has been sourced. | |
5488 | * python/py-auto-load.c (gdbpy_global_auto_load): New global. | |
5489 | (load_auto_scripts_for_objfile): New function. | |
5490 | (auto_load_new_objfile): Call it. | |
5491 | * python/python.h (gdbpy_global_auto_load): Declare. | |
5492 | (load_auto_scripts_for_objfile): Declare. | |
5493 | ||
66d09542 DE |
5494 | Add support for auto-loading scripts from .debug_gdb_scripts section. |
5495 | * NEWS: Add entry for .debug_gdb_scripts. | |
5496 | * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. | |
5497 | (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. | |
5498 | (py-auto-load.o): New rule. | |
5499 | * cli/cli-cmds.c (find_and_open_script): Make externally visible. | |
5500 | * cli/cli-cmds.h (find_and_open_script): Update prototype. | |
5501 | * python/py-auto-load.c: New file. | |
5502 | * python/python-internal.h: #include <stdio.h>. | |
5503 | (set_python_list, show_python_list): Declare. | |
5504 | (gdbpy_initialize_auto_load): Declare. | |
5505 | (source_python_script_for_objfile): Declare. | |
5506 | * python/python.c: Remove #include of observer.h. | |
5507 | (gdbpy_auto_load): Moved to py-auto-load.c. | |
5508 | (GDBPY_AUTO_FILENAME): Ditto. | |
5509 | (gdbpy_new_objfile): Delete. | |
5510 | (source_python_script_for_objfile): New function. | |
5511 | (set_python_list, show_python_list): Make externally visible. | |
5512 | (_initialize_python): Move "auto-load" command to py-auto-load.c | |
5513 | and observer_attach_new_objfile to py-auto-load.c. | |
5514 | ||
3a48e6ff | 5515 | 2010-04-23 Jerome Guitton <guitton@adacore.com> |
0407b3f1 | 5516 | |
3a48e6ff JG |
5517 | * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA) |
5518 | (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. | |
5519 | (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): | |
5520 | New constants. | |
5521 | (alpha_heuristic_analyze_probing_loop): New function. | |
5522 | (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect | |
5523 | and handle cases when a stack probe loop is generated. | |
5524 | * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. | |
5525 | (alpha_mdebug_max_frame_size_exceeded): New function. | |
5526 | (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. | |
5527 | (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): | |
5528 | Return 0 when the maximum debuggable frame size has been exceeded. | |
5529 | ||
e4166a49 JB |
5530 | 2010-04-23 Joel Brobecker <brobecker@adacore.com> |
5531 | ||
5532 | Fix ARI warning. | |
5533 | * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline. | |
5534 | ||
8bd10a10 CM |
5535 | 2010-04-20 Chris Moller <cmoller@redhat.com> |
5536 | ||
5537 | PR 10179 | |
5538 | ||
5539 | * symtab.c (rbreak_command): Added code to include a filename | |
5540 | specification in the rbreak argument. | |
5541 | * NEWS: Added a brief description of filename-qualified rbreak. | |
5542 | ||
c0201579 JK |
5543 | 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
5544 | ||
5545 | Fix crashes on dangling display expressions. | |
5546 | * ada-lang.c (ada_operator_check): New function. | |
5547 | (ada_exp_descriptor): Fill-in the field operator_check. | |
5548 | * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. | |
5549 | * jv-lang.c (exp_descriptor_java): Likewise. | |
5550 | * m2-lang.c (exp_descriptor_modula2): Likewise. | |
5551 | * scm-lang.c (exp_descriptor_scm): Likewise. | |
5552 | * parse.c (exp_descriptor_standard): Likewise. | |
5553 | (operator_check_standard): New function. | |
5554 | (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. | |
5555 | * parser-defs.h (struct exp_descriptor): New field operator_check. | |
5556 | (operator_check_standard, exp_uses_objfile): New declarations. | |
5557 | * printcmd.c: Remove the inclusion of solib.h. | |
5558 | (display_uses_solib_p): Remove the function. | |
5559 | (clear_dangling_display_expressions): Call lookup_objfile_from_block | |
5560 | and exp_uses_objfile instead of display_uses_solib_p. | |
5561 | * solist.h (struct so_list) <objfile>: New comment. | |
5562 | * symtab.c (lookup_objfile_from_block): Remove the static qualifier. | |
5563 | * symtab.h (lookup_objfile_from_block): New declaration. | |
5564 | (struct general_symbol_info) <obj_section>: Extend the comment. | |
5565 | ||
6ffbb7ab TJB |
5566 | 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
5567 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
5568 | ||
5569 | * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. | |
5570 | (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, | |
5571 | ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, | |
5572 | PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, | |
5573 | PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, | |
5574 | PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, | |
5575 | PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, | |
5576 | PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, | |
5577 | PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, | |
5578 | PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, | |
5579 | PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, | |
5580 | PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, | |
5581 | PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): | |
5582 | Define, in case <ptrace.h> doesn't provide it. | |
5583 | (booke_debug_info): New variable. | |
5584 | (max_slots_number): Ditto. | |
5585 | (hw_break_tuple): New struct. | |
5586 | (thread_points): Ditto. | |
5587 | (ppc_threads): New variable. | |
5588 | (PPC_DEBUG_CURRENT_VERSION): New define. | |
5589 | (have_ptrace_new_debug_booke): New function. | |
5590 | (ppc_linux_check_watch_resources): Renamed to ... | |
5591 | (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. | |
5592 | (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. | |
5593 | (booke_cmp_hw_point): New function. | |
5594 | (booke_find_thread_points_by_tid): Ditto. | |
5595 | (booke_insert_point): Ditto. | |
5596 | (booke_remove_point): Ditto. | |
5597 | (ppc_linux_insert_hw_breakpoint): Ditto. | |
5598 | (ppc_linux_remove_hw_breakpoint): Ditto. | |
5599 | (get_trigger_type): Ditto. | |
5600 | (ppc_linux_insert_watchpoint): Handle BookE processors. | |
5601 | (ppc_linux_remove_watchpoint): Ditto. | |
5602 | (ppc_linux_new_thread): Ditto. | |
5603 | (ppc_linux_thread_exit): New function.. | |
5604 | (ppc_linux_stopped_data_address): Handle BookE processors. | |
5605 | (ppc_linux_watchpoint_addr_within_range): Ditto. | |
5606 | (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and | |
5607 | to_remove_hw_breakpoint fields of the target operations struct. | |
5608 | Add observe for the thread_exit event. | |
5609 | ||
be0d2954 L |
5610 | 2010-04-22 H.J. Lu <hongjiu.lu@intel.com> |
5611 | ||
5612 | * i386-linux-nat.c (regmap): Removed. | |
5613 | (fetch_register): Replace regmap with | |
5614 | i386_linux_gregset_reg_offset. | |
5615 | (store_register): Likewise. | |
5616 | (supply_gregset): Likewise. | |
5617 | (fill_gregset): Likewise. | |
5618 | ||
5619 | * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it | |
5620 | global. | |
5621 | ||
5622 | * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New. | |
5623 | ||
f56dcb88 CM |
5624 | 2010-04-22 Chris Moller <cmoller@redhat.com> |
5625 | ||
5626 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
758afad7 L |
5627 | method of popping recursion-detection stack with a method based on |
5628 | obstack_object_size(). (Similar to the PR9167 patch below, but for | |
f56dcb88 CM |
5629 | the static array obstack rather than the static member obstack.) |
5630 | ||
6cd6a2ae L |
5631 | 2010-04-22 H.J. Lu <hongjiu.lu@intel.com> |
5632 | ||
5633 | * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. | |
5634 | (_initialize_amd64_linux_nat): Replace | |
5635 | amd64_linux_gregset64_reg_offset with | |
5636 | amd64_linux_gregset_reg_offset. | |
5637 | ||
5638 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it | |
5639 | global. | |
5640 | ||
5641 | * amd64-tdep.h (amd64_linux_gregset_reg_offset): New. | |
5642 | ||
621791b8 PM |
5643 | 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> |
5644 | ||
5645 | PR stabs/11479. | |
5646 | * stabsread.c (set_length_in_type_chain): New function. | |
5647 | (read_struct_type): Call set_length_in_type_chain function. | |
5648 | (read_enum_type): Idem. | |
5649 | ||
105c2d85 SS |
5650 | 2010-04-21 Stan Shebs <stan@codesourcery.com> |
5651 | Nathan Sidwell <nathan@codesourcery.com> | |
5652 | ||
5653 | * tracepoint.c (trace_save): Open in binary mode. | |
5654 | ||
9a22f0d0 PM |
5655 | 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> |
5656 | ||
5657 | * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 | |
5658 | fields. | |
0407b3f1 | 5659 | * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and |
9a22f0d0 PM |
5660 | builtin_char32 fields. |
5661 | * printcmd.c (decode_format): Set char size to '\0' | |
5662 | for strings unless explicit size is given. | |
5663 | (print_formatted): Correct calculation of NEXT_ADDRESS | |
5664 | for 16 or 32 bit strings. | |
5665 | (do_examine): Do not force byte size for strings. | |
5666 | Use builtin_char16 and builtin_char32 types to display | |
0407b3f1 | 5667 | 16 or 32 bit-wide strings. |
9a22f0d0 PM |
5668 | (x_command): Set LAST_SIZE to 'b' for string type. |
5669 | ||
f335d1b3 L |
5670 | 2010-04-21 H.J. Lu <hongjiu.lu@intel.com> |
5671 | ||
5672 | PR corefiles/11523 | |
5673 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Check | |
5674 | XCR0 first. | |
5675 | ||
5676 | * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if | |
5677 | there is no .reg-xstate section. | |
5678 | (i386_linux_core_read_description): Check XCR0 first. | |
5679 | ||
a9789a6b MF |
5680 | 2010-04-21 Mike Frysinger <vapier@gentoo.org> |
5681 | ||
5682 | * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert () | |
5683 | for len <= 8. | |
5684 | ||
0b66f317 CM |
5685 | 2010-04-21 Chris Moller <cmoller@redhat.com> |
5686 | ||
5687 | PR 9167 | |
5688 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
32d7376d L |
5689 | method of popping recursion-detection stack with a method based on |
5690 | obstack_object_size(). | |
0b66f317 | 5691 | |
6e354e5e PM |
5692 | 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
5693 | ||
5694 | PR pascal/11492. | |
5695 | * p-valprint.c (pascal_val_print): Fix default printing of integer | |
5696 | arrays. | |
5697 | ||
57174f31 PM |
5698 | 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
5699 | ||
5700 | Fix compilation warning on gcc-4.1.2. | |
5701 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize | |
5702 | local variable`pc' to zero. | |
5703 | ||
6fbc7cd8 JB |
5704 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5705 | ||
5706 | Implement thread support with core files on alpha-tru64. | |
5707 | * dec-thread.c (dec_thread_find_new_threads): New function, | |
5708 | extracted from resync_thread_list. | |
5709 | (resync_thread_list): Add OPS parameter. Replace extracted-out | |
5710 | code by call to dec_thread_find_new_threads. | |
5711 | (dec_thread_wait): Update call to resync_thread_list. | |
5712 | (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads. | |
5713 | ||
438c98a1 JB |
5714 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5715 | ||
5716 | * ada-lang.c (value_pointer): New function. | |
5717 | (make_array_descriptor): Call value_pointer to convert addresses to | |
5718 | pointers. | |
5719 | ||
2971b56b JB |
5720 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5721 | ||
5722 | * rs6000-aix-tdep.c: #include exceptions.h. | |
5723 | (rs6000_convert_from_func_ptr_addr): If an exception is thrown | |
5724 | while reading the memory at ADDR, then ADDR cannot be a function | |
5725 | descriptor. | |
5726 | ||
be942545 JB |
5727 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5728 | ||
5729 | * ada-typeprint.c (ada_print_typedef): New function. | |
5730 | * ada-lang.h (ada_print_typedef): Add declaration. | |
5731 | * ada-lang.c (ada_language_defn): set la_print_typdef field | |
5732 | to ada_print_typedef. | |
5733 | ||
1ca8fce0 JB |
5734 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5735 | ||
5736 | * procfs.c (procfs_address_to_host_pointer): Only define when used. | |
5737 | ||
e9ef4f39 JB |
5738 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5739 | ||
5740 | * procfs.c (iterate_over_mappings_cb_ftype): New typedef. | |
5741 | (iterate_over_mappings): Adjust function profile. Add declaration. | |
5742 | (insert_dbx_link_bpt_in_region, info_mappings_callback): | |
5743 | Adjust accordingly. | |
5744 | ||
e294797a JB |
5745 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5746 | ||
5747 | * procfs.c (solib_mappings_callback): Move function up to avoid | |
5748 | a compiler warning. | |
5749 | ||
a223f1e7 JB |
5750 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5751 | ||
5752 | * procfs.c (find_signalled_thread, find_stop_signal): Move | |
5753 | these functions down to define them only when used. | |
5754 | ||
0c3acc09 JB |
5755 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5756 | ||
5757 | * valprint.c (common_val_print): Fix the value before extracting | |
5758 | its contents. | |
5759 | * ada-lang.c (ada_to_fixed_value): Make this function extern. | |
5760 | * ada-lang.h (ada_to_fixed_value): New function declaration. | |
5761 | * ada-valprint.c (ada_value_print): Use ada_to_fixed_value | |
5762 | to avoid code duplication and fix a bug in the handling of | |
5763 | fixed types contents. | |
5764 | ||
31ef98ae TT |
5765 | 2010-04-20 Tom Tromey <tromey@redhat.com> |
5766 | ||
5767 | * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name. | |
5768 | (read_partial_die): Likewise. | |
5769 | (dwarf_attr_name): Likewise. | |
5770 | ||
ec31cde5 | 5771 | 2010-04-20 Chris Moller <cmoller@redhat.com> |
0407b3f1 | 5772 | |
ec31cde5 CM |
5773 | PR 10867 |
5774 | ||
5775 | * cp-valprint.c (global): Adding new static array recursion | |
5776 | detection obstack. | |
5777 | (cp_print_value_fields, cp_print_static_field): Added new static | |
5778 | array recursion detection code. | |
5779 | ||
e0e0e543 MK |
5780 | 2010-04-20 Mark Kettenis <kettenis@gnu.org> |
5781 | ||
5782 | * i386-linux-tdep.c (i386_linux_regset_sections): Size of the | |
5783 | general-purpose register set should be 68 instead of 144. | |
5784 | (i386_linux_sse_regset_sections): Likewise. | |
5785 | (i386_linux_avx_regset_sections): Likewise. | |
5786 | ||
08922a10 SS |
5787 | 2010-04-20 Stan Shebs <stan@codesourcery.com> |
5788 | Nathan Sidwell <nathan@codesourcery.com> | |
5789 | ||
5790 | * dwarf2loc.c (struct axs_var_loc): New struct. | |
5791 | (dwarf2_tracepoint_var_loc): New function. | |
5792 | (dwarf2_tracepoint_var_access): New function. | |
5793 | (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal | |
5794 | with DW_OP_piece. | |
5795 | (locexpr_describe_location_piece): New function. | |
5796 | (locexpr_describe_location_1): New function. | |
5797 | (locexpr_describe_location): Call it, update signature. | |
5798 | (loclist_describe_location): Rewrite to loop over locations, | |
5799 | update signature. | |
5800 | * symtab.h (struct symbol_computed_ops): Add address to | |
5801 | describe_location arguments, return void. | |
5802 | * printcmd.c (address_info): Get context PC, pass to computed | |
5803 | location description. | |
5804 | * tracepoint.c (scope_info): Ditto. | |
5805 | * ax-gdb.c (trace_kludge): Export. | |
5806 | ||
2dc7f7b3 TT |
5807 | 2010-04-20 Tom Tromey <tromey@redhat.com> |
5808 | ||
5809 | * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4. | |
5810 | (struct dwarf2_cie) <segment_size>: New field. | |
5811 | * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4. | |
5812 | (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset, | |
5813 | DW_FORM_exprloc. | |
5814 | (read_attribute_value): Handle DW_FORM_flag_present, | |
5815 | DW_FORM_sec_offset, DW_FORM_exprloc. | |
5816 | (dump_die_shallow): Likewise. | |
5817 | (attr_form_is_section_offset): Handle DW_FORM_sec_offset. | |
5818 | (dwarf2_const_value): Handle DW_FORM_exprloc. | |
5819 | (attr_form_is_block): Likewise. | |
5820 | (struct line_header) <maximum_ops_per_instruction>: New field. | |
5821 | (dwarf_decode_line_header): Set new field. | |
5822 | (dwarf_decode_lines): Handle new field. | |
5823 | ||
ce4b0682 SDJ |
5824 | 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
5825 | ||
5826 | * f-exp.y: Add new production to recognize the `logical*8' type. | |
5827 | (LOGICAL_S8_KEYWORD): New token. | |
5828 | * f-lang.c (enum f_primitive_types) | |
5829 | <f_primitive_type_logical_s8>: New field. | |
5830 | (f_language_arch_info): Handling `logical*8' type. | |
5831 | (build_fortran_types): Building `logical*8' type. | |
5832 | * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field. | |
5833 | ||
ff9f22f1 DE |
5834 | 2010-04-19 Doug Evans <dje@google.com> |
5835 | ||
5836 | * ser-base.c (generic_readchar): Watch for EOF in read of error_fd. | |
5837 | * ser-pipe.c (pipe_open): Fix file descriptor leaks. | |
5838 | (pipe_close): Ditto. | |
5839 | ||
437125bd PM |
5840 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
5841 | ||
5842 | * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes. | |
5843 | ||
e8e6c82e PM |
5844 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
5845 | ||
5846 | * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle | |
5847 | type to void function. | |
5848 | ||
4136fdd2 SS |
5849 | 2010-04-19 Stan Shebs <stan@codesourcery.com> |
5850 | Vladimir Prus <vladimir@codesourcery.com> | |
5851 | ||
5852 | * tracepoint.c (tfind_1): Add missing newline, report exit from | |
5853 | tfind mode as such. | |
5854 | * target.c (update_current_target): Make default | |
5855 | to_trace_find return -1. | |
5856 | ||
0c4b2e63 MF |
5857 | 2010-04-19 Mike Frysinger <vapier@gentoo.org> |
5858 | ||
5859 | * objc-lang.c (find_methods): Move symname check up. | |
5860 | ||
78076abc PA |
5861 | 2010-04-19 Pedro Alves <pedro@codesourcery.com> |
5862 | ||
5863 | * ada-lang.c (print_recreate_exception) | |
5864 | <ex_catch_exception_unhandled>: It's "catch exception unhandled", | |
5865 | not "catch unhandled". | |
5866 | ||
6149aea9 PA |
5867 | 2010-04-19 Pedro Alves <pedro@codesourcery.com> |
5868 | ||
5869 | PR breakpoints/8554. | |
5870 | ||
5871 | Implement `save-breakpoints'. | |
5872 | ||
5873 | * breakpoint.c (save_cmdlist): New. | |
5874 | (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close | |
5875 | to save_cmdlist. | |
5876 | (print_recreate_catch_fork): New. | |
5877 | (catch_fork_breakpoint_ops): Install it. | |
5878 | (print_recreate_catch_vfork): New. | |
5879 | (catch_vfork_breakpoint_ops): Install it. | |
5880 | (print_recreate_catch_syscall): New. | |
5881 | (catch_syscall_breakpoint_ops): Install it. | |
5882 | (print_recreate_catch_exec): New. | |
5883 | (catch_exec_breakpoint_ops): Install it. | |
5884 | (print_recreate_exception_catchpoint): New. | |
5885 | (gnu_v3_exception_catchpoint_ops): Install it. | |
5886 | (save_breakpoints): New, based on tracepoint_save_command, but | |
5887 | handle all breakpoint types. | |
5888 | (save_breakpoints_command): New. | |
5889 | (tracepoint_save_command): Rename to... | |
5890 | (save_tracepoints_command): ... this, and reimplement using | |
5891 | save_breakpoints. | |
5892 | (save_command): New. | |
5893 | (_initialize_breakpoints): Install the "save" command prefix. | |
5894 | Install the "save breakpoints" command. Make "save-tracepoints" a | |
5895 | deprecated alias for "save tracepoints". | |
5896 | * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. | |
5897 | * ada-lang.c (print_recreate_exception): New. | |
5898 | (print_recreate_catch_exception): New. | |
5899 | (catch_exception_breakpoint_ops): Install it. | |
5900 | (print_recreate_catch_exception_unhandled): New. | |
5901 | (catch_exception_unhandled_breakpoint_ops): Install it. | |
5902 | (print_recreate_catch_assert): New. | |
5903 | (catch_assert_breakpoint_ops): Install it. | |
5904 | ||
5905 | * NEWS: Mention the new `save breakpoints' command. Mention the | |
5906 | new `save tracepoints' alias and that `save-tracepoints' is now | |
5907 | deprecated. | |
5908 | ||
0a8fce9a PA |
5909 | 2010-04-18 Pedro Alves <pedro@codesourcery.com> |
5910 | ||
5911 | PR tui/9217 | |
5912 | ||
5913 | * tui/tui-out.c: Include cli-out.h. | |
5914 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
5915 | (tui_begin, tui_end, tui_field_int, tui_field_skip) | |
5916 | (tui_field_string, tui_field_fmt, tui_spaces, tui_text) | |
5917 | (tui_message, tui_wrap_hint, tui_flush): Delete forward | |
5918 | declarations. | |
5919 | (struct ui_out_data): Rename to... | |
5920 | (struct tui_ui_out_data): ... this. Remove `stream' and | |
5921 | `suppress_output' fields, and inherit cli_ui_out_data. | |
5922 | (tui_out_data): New typedef. | |
5923 | (tui_ui_out_impl): Don't initialize fields staticaly. | |
5924 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
5925 | (tui_begin, tui_end): Delete. | |
5926 | (tui_field_int): Adjust to delegate most work to the base type. | |
5927 | (tui_field_skip): Delete. | |
5928 | (tui_field_string, tui_field_fmt): Adjust comment. Adjust to | |
5929 | delegate most work to the base type. | |
5930 | (tui_spaces): Delete. | |
5931 | (tui_text): Adjust to delegate most work to the base type. | |
5932 | (tui_message): Delete. | |
5933 | (tui_wrap_hint): Delete. | |
5934 | (tui_flush): Delete. | |
5935 | (out_field_fmt): Delete. | |
5936 | (field_separator): Delete. | |
5937 | (tui_out_new): Adjust to initialize the base type. | |
5938 | (_initialize_tui_out): Initialize tui_ui_out_impl. | |
5939 | * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed | |
5940 | cli_ui_out_data. | |
5941 | (cli_out_data): Adjust. | |
5942 | (cli_ui_out_impl): Make extern. | |
5943 | (cli_table_header, cli_field_int, cli_field_skip): Use | |
5944 | uo_field_string instead of cli_field_string. | |
5945 | (cli_redirect): Adjust to use cli_out_data. | |
5946 | (cli_out_data_ctor): New. | |
5947 | (cli_out_new): Use it. | |
5948 | * cli-out.h (struct ui_file): Remove forward declaration. | |
5949 | (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. | |
5950 | (cli_ui_out_impl): Declare. | |
5951 | (cli_out_data_ctor): Declare. | |
5952 | * ui-out.c (struct ui_out) <data>: Change type to void pointer. | |
5953 | (uo_field_string): No longer static. | |
5954 | (ui_out_data): Change return type to void pointer. | |
5955 | (ui_out_new): Change `data' parameter type to void pointer. | |
5956 | * ui-out.h (struct ui_out_data): Don't forward declare. | |
5957 | (ui_out_data): Change return type to void pointer. | |
5958 | (ui_out_new): Change `data' parameter type to void pointer. | |
5959 | (uo_field_string): Declare. | |
5960 | ||
172240dd PA |
5961 | 2010-04-17 Pedro Alves <pedro@codesourcery.com> |
5962 | ||
5963 | * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, | |
5964 | instead of always false. | |
5965 | ||
ed41462c L |
5966 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
5967 | ||
5968 | PR corefiles/11511 | |
5969 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support | |
5970 | orig_rax. | |
5971 | ||
cc60f2e3 PA |
5972 | 2010-04-17 Pedro Alves <pedro@codesourcery.com> |
5973 | ||
5974 | * breakpoint.c (watchpoints_triggered): Use | |
5975 | is_hardware_watchpoint. | |
5976 | (watchpoints_triggered): Ditto. | |
5977 | (bpstat_check_location): Use is_watchpoint and | |
5978 | is_hardware_watchpoint. | |
5979 | (bpstat_check_watchpoint): Use is_watchpoint and | |
5980 | is_hardware_watchpoint. | |
5981 | (bpstat_stop_status): Fix comment. | |
5982 | (user_settable_breakpoint): Use is_watchpoint. | |
5983 | (hw_watchpoint_used_count): Use is_hardware_watchpoint. | |
5984 | (disable_watchpoints_before_interactive_call_start): Use | |
5985 | is_watchpoint. | |
5986 | (enable_watchpoints_after_interactive_call_stop): Use | |
5987 | is_watchpoint. | |
5988 | (clear_command): Use is_watchpoint. | |
5989 | (do_enable_breakpoint): Use is_watchpoint. | |
5990 | ||
cb7db0f2 MF |
5991 | 2010-04-16 Mike Frysinger <vapier@gentoo.org> |
5992 | ||
5993 | * solib-frv.c (enable_break1_done): Delete. | |
5994 | (enable_break2): Do not check enable_break1_done. Move the | |
5995 | enable_break2_done setting and call to | |
5996 | remove_solib_event_breakpoints() to the end. Return without | |
5997 | warning when the contents of _dl_debug_addr are 0. | |
5998 | (enable_break): Do not set enable_break1_done. | |
5999 | (frv_clear_solib): Likewise. | |
6000 | ||
d77b48cf KB |
6001 | 2010-04-16 Kevin Buettner <kevinb@redhat.com> |
6002 | ||
6003 | * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning | |
6004 | instead of an error if no PLT entry is found. Return a | |
6005 | potentially useful result. | |
6006 | (m32c_m16c_pointer_to_address): Add code to search for function | |
6007 | address when no .plt entry is found. | |
6008 | ||
f90824dc SS |
6009 | 2010-04-16 Stan Shebs <stan@codesourcery.com> |
6010 | ||
6011 | * tracepoint.c (trace_variable_command): Run a cleanup. | |
6012 | ||
9b79b476 PM |
6013 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
6014 | ||
6015 | * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range. | |
6016 | ||
711e434b PM |
6017 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
6018 | ||
6019 | Support for Windows OS Thread Information Block. | |
6020 | * NEWS: Document new feature. | |
6021 | * remote.c (PACKET_qGetTIBAddr): New enum element. | |
6022 | (remote_get_tib_address): New function. | |
6023 | (init_remote_ops): Set to_get_tib_address field | |
6024 | to remote_get_tib_address. | |
6025 | (_initialize_remote): Add add_packet_config_cmd | |
6026 | for PACKET_qGetTIBAddr. | |
6027 | * target.c (update_current_target): Set default value for | |
6028 | new to_get_tib_address field. | |
6029 | * target.h (target_ops): New field to_get_tib_address. | |
6030 | (target_get_tib_address): New macro. | |
6031 | * windows-nat.c (thread_info): Add thread_local_base field. | |
6032 | (windows_add_thread): Add tlb argument of type 'void *'. | |
6033 | (fake_create_process): Adapt windows_add_thread call. | |
6034 | (get_windows_debug_event): Idem. | |
6035 | (windows_get_tib_address): New function. | |
6036 | (init_windows_ops): Set to_get_tib_address field | |
6037 | to remote_get_tib_address. | |
6038 | (_initialize_windows_nat): Replace info_w32_cmdlist | |
6039 | initialization by a call to init_w32_command_list. | |
6040 | (info_w32_command, info_w32_cmdlist): Removed from here... | |
6041 | to windows-tdep.c file. | |
6042 | * windows-tdep.h (info_w32_cmdlist): Declare. | |
0407b3f1 | 6043 | (init_w32_command_list): New external function |
711e434b PM |
6044 | declaration. |
6045 | * windows-tdep.c: Add several headers. | |
6046 | (info_w32_cmdlist): to here, made global. | |
6047 | (thread_information_32): New struct. | |
6048 | (thread_information_64): New struct. | |
6049 | (TIB_NAME): New char array. | |
6050 | (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants. | |
6051 | (maint_display_all_tib): New static variable. | |
6052 | (windows_get_tlb_type): New function. | |
6053 | (tlb_value_read, tlb_value_write): New functions. | |
6054 | (tlb_value_funcs): New static struct. | |
6055 | (tlb_make_value): New function. | |
6056 | (display_one_tib): New function. | |
6057 | (display_tib): New function. | |
6058 | (show_maint_show_all_tib):New function. | |
6059 | (info_w32_command): Moved from windows-nat.c. | |
6060 | (init_w32_command_list): New function. | |
6061 | (_initialize_windows_tdep): New function. | |
6062 | New "maint set/show show-all-tib" command | |
6063 | New "$_tlb" internal variable. | |
6064 | ||
cae3f17b JB |
6065 | 2010-04-16 Joel Brobecker <brobecker@adacore.com> |
6066 | ||
6067 | * tui/tui-regs.c (tui_display_register): Add comment about | |
6068 | a couple of casts. | |
6069 | * tui/tui-stack.c (tui_show_locator_content): Ditto. | |
6070 | ||
2ce6d6bf SS |
6071 | 2010-04-15 Stan Shebs <stan@codesourcery.com> |
6072 | ||
6073 | * frame.c: Include tracepoint.h. | |
6074 | (get_current_frame): Allow a trace frame to be an alternate source | |
6075 | of stack frame data. | |
6076 | * tracepoint.c (tfind_1): Don't try to get current stack frame if | |
6077 | it won't succeed. | |
6078 | ||
7e559477 PA |
6079 | 2010-04-15 Pedro Alves <pedro@codesourcery.com> |
6080 | ||
6081 | * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for | |
6082 | flags. | |
6083 | * solib-spu.c (spu_solib_loaded): Always pass 0 for flags. | |
6084 | ||
3f7b2faa DE |
6085 | 2010-04-15 Doug Evans <dje@google.com> |
6086 | ||
fa33c3cd DE |
6087 | * NEWS: Add entry for python program space support. |
6088 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o. | |
6089 | (SUBDIR_PYTHON_SRCS): Add py-progspace.c. | |
6090 | (py-progspace.o): New rule. | |
6091 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New | |
6092 | function. | |
6093 | (find_pretty_printer_from_progspace): New function. | |
6094 | (find_pretty_printer_from_gdb): New function. | |
6095 | (find_pretty_printer): Rewrite. | |
6096 | * python/py-progspace.c: New file. | |
6097 | * python/python-internal.h (program_space): Add forward decl. | |
6098 | (pspace_to_pspace_object, pspy_get_printers): Declare. | |
6099 | (gdbpy_initialize_pspace): Declare. | |
6100 | * python/python.c: #include "progspace.h". | |
6101 | (gdbpy_get_current_progspace, gdbpy_progspaces): New functions. | |
6102 | (_initialize_python): Call gdbpy_initialize_pspace. | |
6103 | (GdbMethods): Add current_progspace, progspaces. | |
6104 | ||
3f7b2faa DE |
6105 | Add -s option to source command. |
6106 | * NEWS: Document new option. | |
6107 | * cli/cli-cmds.c (find_and_open_script): Add function comment. | |
6108 | Delete from_tty and cleanupp args. Split filep arg into file and | |
6109 | full_pathp. New arg search_path. | |
6110 | (source_script_from_stream): New function. | |
6111 | (source_script_with_search): New function. | |
6112 | (source_script): Rewrite. | |
6113 | (source_command): Parse "-s" option. | |
6114 | (init_cli_cmds): Add "-s" docs to source command help, and reformat. | |
6115 | * python/python.c (source_python_script): Make file arg a const char *. | |
6116 | Don't call fclose, leave for caller. | |
6117 | * python/python.h (source_python_script): Update. | |
6118 | ||
a86988f2 PA |
6119 | 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
6120 | Pedro Alves <pedro@codesourcery.com> | |
6121 | ||
6122 | Avoid rereading shared libraries that haven't changed. | |
6123 | ||
6124 | * solib.c (free_so_symbols): New function, from ... | |
6125 | (free_so): ... here. Call it. | |
6126 | (solib_read_symbols): Don't warn here if symbols have already been | |
6127 | loaded. | |
6128 | (solib_add): Warn here instead, if a pattern was specified. | |
6129 | (reload_shared_libraries_1): New. | |
6130 | (reload_shared_libraries): Rewrite to not fetch the library list. | |
6131 | ||
e6d9b9c2 DE |
6132 | 2010-04-14 Doug Evans <dje@google.com> |
6133 | ||
589390d6 | 6134 | * source.c (openp): Strip DOS drive letter if present before |
e6d9b9c2 DE |
6135 | concatenating string to search path. |
6136 | ||
516ba659 PA |
6137 | 2010-04-14 Pedro Alves <pedro@codesourcery.com> |
6138 | ||
6139 | * objfiles.h (gdb_bfd_close_or_warn): Declare. | |
6140 | * objfiles.c (gdb_bfd_close_or_warn): New. | |
6141 | * corelow.c: Include objfiles.h | |
6142 | (core_close): Use gdb_bfd_close_or_warn. | |
6143 | * elfread.c (build_id_verify): Ditto. | |
6144 | * exec.c (exec_close, exec_close_1): Ditto. | |
6145 | ||
048d532d PA |
6146 | 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
6147 | Pedro Alves <pedro@codesourcery.com> | |
6148 | ||
6149 | Group errors for many missing shared libraries. | |
6150 | ||
6151 | * solist.h (struct so_list): Remove from_tty. | |
6152 | * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD. | |
6153 | (solib_map_sections): Take so_list argument. Return 0 if we | |
6154 | failed to open a BFD. Add target sections here. | |
6155 | (symbol_add_stub): Delete. | |
6156 | (solib_read_symbols): Inline symbol_add_stub. Use current flags, | |
6157 | not from_tty copied from the so_list. Don't warn a second time | |
6158 | for a missing library. | |
6159 | (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not | |
6160 | add to the section table here. Print out a single warning for all | |
6161 | missing libraries. | |
6162 | * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for | |
6163 | flags. | |
6164 | ||
044c0f87 PM |
6165 | 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> |
6166 | ||
6167 | * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass | |
6168 | error/warning messages. Capitalize and use complete sentences. | |
6169 | (blpy_block_syms_iternext): Likewise. | |
6170 | * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. | |
6171 | * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) | |
6172 | (frame_info_to_frame_object, frapy_read_var) | |
6173 | (gdbpy_frame_stop_reason_string): Likewise. | |
6174 | * python/py-lazy-string.c (stpy_convert_to_value) | |
6175 | (gdbpy_create_lazy_string_object): Likewise. | |
6176 | * python/py-objfile.c (objfpy_set_printers): Likewise. | |
6177 | * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. | |
6178 | * python/python.c (parameter_to_python): Likewise. | |
6179 | * python/py-type.c (typy_range, typy_target): Likewise. | |
6180 | * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) | |
6181 | (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. | |
6182 | ||
6183 | ||
79f283fe PM |
6184 | 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> |
6185 | ||
6186 | PR python/11381 | |
6187 | ||
6188 | * python/py-prettyprint.c (pretty_print_one_value): Test for | |
6189 | Py_None. | |
6190 | (print_string_repr): Test for Py_None. Set flags accordingly. | |
6191 | Return value depending on return type. | |
6192 | (print_children): Take a value indicating whether data was printed | |
6193 | before this function was called. Alter output accordingly. | |
6194 | (apply_val_pretty_printer): Capture return value from | |
6195 | print_string_repr and pass to print_children. | |
6196 | ||
4ac5d44e MK |
6197 | 2010-04-13 Mark Kettenis <kettenis@gnu.org> |
6198 | ||
e1caee70 | 6199 | PR corefiles/11481 |
4ac5d44e MK |
6200 | * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended |
6201 | register note sections. | |
6202 | (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections): | |
6203 | New variables. | |
6204 | (i386_linux_init_abi): Install list of supported register note | |
6205 | sections that matches the target description. | |
6206 | ||
ad91cd99 PA |
6207 | 2010-04-13 Pedro Alves <pedro@codesourcery.com> |
6208 | ||
6209 | * remote.c (remote_get_noisy_reply): Don't error out on empty | |
6210 | replies. | |
6211 | (remote_start_remote): Update and merge tracepoints and trace | |
6212 | state variables as long as the target supports tracepoints. | |
6213 | (remote_trace_init): Fix prototype. | |
6214 | (remote_download_trace_state_variable): Validate reply. | |
6215 | (remote_trace_set_readonly_regions): Fix prototype. | |
6216 | (remote_trace_start): Fix prototype. Check for empty reply. | |
6217 | (remote_get_trace_status): Small cleanup. | |
6218 | (remote_trace_stop): Fix prototype. Check for empty reply. | |
6219 | (remote_trace_find): Check for empty reply. | |
6220 | (remote_save_trace_data): Validate reply. | |
6221 | (remote_set_disconnected_tracing): Check for empty reply, and | |
6222 | validate reply. | |
6223 | (remote_set_circular_trace_buffer): Ditto. | |
6224 | ||
ae3bccd4 PM |
6225 | 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr> |
6226 | ||
6227 | Suppress unused value warning during compilation. | |
6228 | * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend | |
6229 | calls to void. | |
6230 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
6231 | ||
523136f2 SS |
6232 | 2010-04-12 Stan Shebs <stan@codesourcery.com> |
6233 | ||
6234 | * tracepoint.c (tfile_xfer_partial): Check read result. | |
6235 | ||
0d18d720 MF |
6236 | 2010-04-12 Mike Frysinger <vapier@gentoo.org> |
6237 | ||
6238 | * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var. | |
6239 | * remote-sim.c (gdbsim_files_info): Likewise. | |
6240 | ||
3b273a55 RE |
6241 | 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
6242 | ||
6243 | * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM | |
6244 | * arm-linux-nat.c (arm_linux_vfp_register_count): New | |
6245 | variable. | |
6246 | (fetch_vfp_registers): New function to fetch VFP registers. | |
6247 | (store_vfp_registers): New function to store VFP registers. | |
6248 | (arm_linux_fetch_inferior_registers): Add support for VFP | |
6249 | registers. | |
6250 | (arm_linux_store_inferior_registers): Likewise. | |
6251 | (arm_linux_read_description): Likewise. | |
6252 | (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc | |
6253 | until we need it. | |
6254 | ||
778c7095 L |
6255 | 2010-04-11 H.J. Lu <hongjiu.lu@intel.com> |
6256 | ||
6257 | * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused | |
6258 | tdep. | |
6259 | (amd64_collect_xstateregset): Likewise. | |
6260 | ||
2114d44c SS |
6261 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
6262 | ||
87290684 SS |
6263 | * tracepoint.c (trace_status_mi): Report frames created. |
6264 | ||
2114d44c SS |
6265 | * tracepoint.c (trace_dump_command): Include default-collect |
6266 | expressions. | |
6267 | ||
86da934b UW |
6268 | 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com> |
6269 | ||
6270 | * symtab.c (find_function_start_sal): Never return SAL pointing | |
6271 | before function start address, even if line info is missing. | |
6272 | ||
2d6e647a | 6273 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
d337e9f0 PA |
6274 | |
6275 | * NEWS: Mention tracepoints support. | |
6276 | ||
a97153c7 PA |
6277 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
6278 | ||
6279 | * tracepoint.c (trace_status_mi): Report disconnected tracing and | |
6280 | circular trace buffer statuses. | |
6281 | ||
7a66d603 JK |
6282 | 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
6283 | ||
6284 | * config/djgpp/fnchange.lst: Fix typo in translations for | |
6285 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
6286 | ||
2566ad2d PA |
6287 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
6288 | ||
6289 | * breakpoint.c (condition_command): Pass condition expression to | |
6290 | set_breakpoint_condition stripped from breakpoint number. | |
6291 | ||
adc36818 PM |
6292 | 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> |
6293 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
2566ad2d | 6294 | Tom Tromey <tromey@redhat.com> |
adc36818 PM |
6295 | |
6296 | * breakpoint.c (condition_command): Simplify. Move condition | |
6297 | setting code to ... | |
6298 | (set_breakpoint_condition): ... here. New function. | |
6299 | * breakpoint.h (set_breakpoint_condition): Declare. | |
6300 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint. | |
6301 | (SUBDIR_PYTHON_SRCS): Likewise. | |
6302 | (py-breakpoint.o): New rule. | |
6303 | * python/py-breakpoint.c: New file. | |
6304 | * python/python-internal.h (gdbpy_breakpoints) | |
6305 | (gdbpy_initialize_breakpoints): Declare. | |
6306 | (GDB_PY_SET_HANDLE_EXCEPTION) Define. | |
6307 | ||
219f2f23 PA |
6308 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
6309 | ||
6310 | * regformats/regdat.sh: Include server.h. Don't include | |
6311 | regcache.h. | |
6312 | ||
33da3f1c SS |
6313 | 2010-04-08 Stan Shebs <stan@codesourcery.com> |
6314 | Pedro Alves <pedro@codesourcery.com> | |
6315 | ||
6316 | * tracepoint.h (struct trace_status): New fields disconnected_tracing | |
6317 | and circular_buffer. | |
6318 | (disconnect_tracing): Rename from disconnect_or_stop_tracing. | |
6319 | * tracepoint.c (trace_status_command): Display target's status for | |
6320 | disconnected tracing and circular buffer. | |
6321 | (disconnect_tracing): Rename from disconnect_or_stop_tracing, add | |
6322 | query for non-disconnected-tracing case, remove the stop_tracing | |
6323 | call. | |
6324 | (tfile_open): Clear disconnected and circular buffer status. | |
6325 | (trace_save): Save disconnected and circular buffer status. | |
6326 | (parse_trace_status): Parse disconnected and circular buffer status, | |
6327 | also recognize disconnected as a stop reason. | |
6328 | * remote.c (remote_set_disconnected_tracing): Only set | |
6329 | QTDisconnected if the remote end supports disconnected tracing. | |
6330 | Warn otherwise, if trying to enable disconnected tracing. | |
6331 | * infcmd.c (detach_command): Update disconnect_tracing call. | |
6332 | * cli/cli-cmds.c (quit_command): Ditto. | |
6333 | ||
4e4d8374 L |
6334 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
6335 | ||
6336 | * i387-tdep.c (i387_collect_xsave): Replace abort with | |
6337 | internal_error. | |
6338 | ||
ad443146 SS |
6339 | 2010-04-08 Stan Shebs <stan@codesourcery.com> |
6340 | ||
6341 | * breakpoint.c (default_collect_info): New function. | |
6342 | (breakpoints_info): Call it. | |
6343 | (maintenance_info_breakpoints): Ditto. | |
6344 | (tracepoints_info): Ditto. | |
6345 | ||
40936b0d L |
6346 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
6347 | ||
6348 | * i387-tdep.c (i387_collect_xsave): Re-indent. | |
6349 | ||
3a13a53b L |
6350 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
6351 | ||
6352 | * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1 | |
6353 | if HAVE_PTRACE_GETFPXREGS is defined. | |
6354 | (i386_linux_read_description): Set have_ptrace_getfpxregs and | |
6355 | have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed. | |
6356 | ||
6357 | * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c" | |
6358 | (i386_linux_core_read_description): Return tdesc_i386_mmx_linux | |
6359 | if .reg-xfp section doesn't exist. | |
6360 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux. | |
6361 | ||
6362 | * i386-linux-tdep.h (tdesc_i386_mmx_linux): New. | |
6363 | ||
6364 | * i386-tdep.c: Include "features/i386/i386-mmx.c". | |
6365 | (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx. | |
6366 | (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set | |
6367 | xcr0 to I386_XSTATE_X87_MASK if SSE isn't available. | |
6368 | (i386_gdbarch_init): Update comments. | |
6369 | (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx. | |
6370 | ||
6371 | * common/i386-xstate.h (I386_XSTATE_X87_MASK): New. | |
6372 | ||
6373 | * config/djgpp/fnchange.lst: Add i386 MMX XML files. | |
6374 | ||
6375 | * features/Makefile (i386/i386-mmx-expedite): New. | |
6376 | (i386/i386-mmx-linux-expedite): Likewise. | |
6377 | ($(outdir)/i386/i386-mmx.dat): Likewise. | |
6378 | ($(outdir)/i386/i386-mmx-linux.dat): Likewise. | |
6379 | ||
6380 | * features/i386/i386-mmx-linux.c: New. | |
6381 | * features/i386/i386-mmx-linux.xml: Likewise. | |
6382 | * features/i386/i386-mmx.c: Likewise. | |
6383 | * features/i386/i386-mmx.xml: Likewise. | |
6384 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
6385 | * regformats/i386/i386-mmx.dat: Likewise. | |
6386 | ||
6387 | * features/Makefile (WHICH): Add i386/i386-mmx and | |
6388 | i386/i386-mmx-linux. | |
6389 | ||
08001717 DE |
6390 | 2010-04-08 Doug Evans <dje@google.com> |
6391 | ||
6392 | * source.c (openp): Skip $cdir in PATH. | |
6393 | ||
fff5cc64 PM |
6394 | 2010-04-08 Phil Muldoon <pmuldoon@redhat.com> |
6395 | ||
6396 | PR python/11417 | |
fff5cc64 | 6397 | * python/py-lazy-string.c (stpy_convert_to_value): Check for |
3a13a53b L |
6398 | a NULL address. |
6399 | (gdbpy_create_lazy_string_object): Allow strings with a NULL | |
6400 | address and a zero length. | |
fff5cc64 | 6401 | |
f8c4f480 HZ |
6402 | 2010-04-08 Hui Zhu <teawater@gmail.com> |
6403 | ||
6404 | * i386-tdep.c (i386_process_record): Add support for insn | |
6405 | rdtsc. | |
6406 | ||
eb5cda86 DE |
6407 | 2010-04-07 Doug Evans <dje@google.com> |
6408 | ||
6409 | * python/python.c (source_python_script): Use ensure_python_env | |
6410 | to prepare environment for script. | |
6411 | ||
a055a187 L |
6412 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6413 | ||
6414 | * amd64-linux-nat.c: Include "regset.h", "elf/common.h", | |
6415 | <sys/uio.h> and "i386-xstate.h". | |
6416 | (PTRACE_GETREGSET): New. | |
6417 | (PTRACE_SETREGSET): Likewise. | |
6418 | (have_ptrace_getregset): Likewise. | |
6419 | (amd64_linux_gregset64_reg_offset): Include 16 upper YMM | |
6420 | registers. | |
6421 | (amd64_linux_gregset32_reg_offset): Include 8 upper YMM | |
6422 | registers. | |
6423 | (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS. | |
6424 | (amd64_linux_store_inferior_registers): Likewise. | |
6425 | (amd64_linux_read_description): Check and enable AVX target | |
6426 | descriptions. | |
6427 | ||
6428 | * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h" | |
6429 | and "features/i386/amd64-avx-linux.c". | |
6430 | (amd64_linux_regset_sections): New. | |
6431 | (amd64_linux_core_read_description): Check and enable AVX | |
6432 | target description. | |
6433 | (amd64_linux_init_abi): Set xsave_xcr0_offset. Call | |
6434 | set_gdbarch_core_regset_sections. | |
6435 | (_initialize_amd64_linux_tdep): Call | |
6436 | initialize_tdesc_amd64_avx_linux. | |
6437 | ||
6438 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace | |
6439 | AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM. | |
6440 | (tdesc_amd64_avx_linux): New. | |
6441 | (amd64_linux_update_xstateregset): Likewise. | |
6442 | ||
6443 | * amd64-tdep.c: Include "features/i386/amd64-avx.c". | |
6444 | (amd64_ymm_names): New. | |
6445 | (amd64_ymmh_names): Likewise. | |
6446 | (amd64_register_name): Likewise. | |
6447 | (amd64_supply_xstateregset): Likewise. | |
6448 | (amd64_collect_xstateregset): Likewise. | |
6449 | (amd64_supply_xsave): Likewise. | |
6450 | (amd64_collect_xsave): Likewise. | |
6451 | (AMD64_NUM_REGS): Removed. | |
6452 | (amd64_dwarf_reg_to_regnum): Return %ymmN register number for | |
6453 | %xmmN if AVX is available. | |
6454 | (amd64_pseudo_register_name): Support pseudo YMM registers. | |
6455 | (amd64_regset_from_core_section): Support .reg-xstate section. | |
6456 | (amd64_init_abi): Set ymmh_register_names, num_ymm_regs | |
6457 | and ymm0h_regnum. Call set_gdbarch_register_name. | |
6458 | (amd64_init_abi): Call initialize_tdesc_amd64_avx. | |
6459 | ||
6460 | * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and | |
6461 | AMD64_YMM15H_REGNUM. | |
6462 | (AMD64_NUM_REGS): New. | |
6463 | (amd64_supply_xsave): Likewise. | |
6464 | (amd64_collect_xsave): Likewise. | |
6465 | (amd64_register_name): Removed. | |
6466 | (amd64_register_type): Likewise. | |
6467 | ||
31aeac78 L |
6468 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6469 | ||
6470 | * i387-tdep.c: Include "i386-xstate.h". | |
6471 | (XSAVE_XSTATE_BV_ADDR): New. | |
6472 | (xsave_avxh_offset): Likewise. | |
6473 | (XSAVE_AVXH_ADDR): Likewise. | |
6474 | (i387_supply_xsave): Likewise. | |
6475 | (i387_collect_xsave): Likewise. | |
6476 | ||
6477 | * i387-tdep.h (I387_NUM_YMM_REGS): New. | |
6478 | (I387_YMM0H_REGNUM): Likewise. | |
6479 | (I387_YMMENDH_REGNUM): Likewise. | |
6480 | (i387_supply_xsave): Likewise. | |
6481 | (i387_collect_xsave): Likewise. | |
6482 | ||
c131fcee L |
6483 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6484 | ||
6485 | * i386-linux-nat.c: Include "regset.h", "elf/common.h", | |
6486 | <sys/uio.h> and "i386-xstate.h". | |
6487 | (PTRACE_GETREGSET): New. | |
6488 | (PTRACE_SETREGSET): Likewise. | |
6489 | (fetch_xstateregs): Likewise. | |
6490 | (store_xstateregs): Likewise. | |
6491 | (GETXSTATEREGS_SUPPLIES): Likewise. | |
6492 | (regmap): Include 8 upper YMM registers. | |
6493 | (i386_linux_fetch_inferior_registers): Support XSAVE extended | |
6494 | state. | |
6495 | (i386_linux_store_inferior_registers): Likewise. | |
6496 | (i386_linux_read_description): Check and enable AVX target | |
6497 | descriptions. | |
6498 | ||
6499 | * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h", | |
6500 | "i386-xstate.h" and "features/i386/i386-avx-linux.c". | |
6501 | (i386_linux_regset_sections): Add ".reg-xstate". | |
6502 | (i386_linux_gregset_reg_offset): Include 8 upper YMM registers. | |
6503 | (i386_linux_core_read_xcr0): New. | |
6504 | (i386_linux_core_read_description): Check and enable AVX target | |
6505 | description. | |
6506 | (i386_linux_init_abi): Set xsave_xcr0_offset. | |
6507 | (_initialize_i386_linux_tdep): Call | |
6508 | initialize_tdesc_i386_avx_linux. | |
6509 | ||
6510 | * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace | |
6511 | I386_SSE_NUM_REGS with I386_AVX_NUM_REGS. | |
6512 | (i386_linux_core_read_xcr0): New. | |
6513 | (tdesc_i386_avx_linux): Likewise. | |
6514 | (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise. | |
6515 | ||
6516 | * i386-tdep.c: Include "i386-xstate.h" and | |
6517 | "features/i386/i386-avx.c". | |
6518 | (i386_ymm_names): New. | |
6519 | (i386_ymmh_names): Likewise. | |
6520 | (i386_ymmh_regnum_p): Likewise. | |
6521 | (i386_ymm_regnum_p): Likewise. | |
6522 | (i386_xmm_regnum_p): Likewise. | |
6523 | (i386_register_name): Likewise. | |
6524 | (i386_ymm_type): Likewise. | |
6525 | (i386_supply_xstateregset): Likewise. | |
6526 | (i386_collect_xstateregset): Likewise. | |
6527 | (i386_sse_regnum_p): Removed. | |
6528 | (i386_pseudo_register_name): Support pseudo YMM registers. | |
6529 | (i386_pseudo_register_type): Likewise. | |
6530 | (i386_pseudo_register_read): Likewise. | |
6531 | (i386_pseudo_register_write): Likewise. | |
6532 | (i386_dbx_reg_to_regnum): Return %ymmN register number for | |
6533 | %xmmN if AVX is available. | |
6534 | (i386_regset_from_core_section): Support .reg-xstate section. | |
6535 | (i386_register_reggroup_p): Supper upper YMM and YMM registers. | |
6536 | (i386_process_record): Replace i386_sse_regnum_p with | |
6537 | i386_xmm_regnum_p. | |
6538 | (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature. | |
6539 | Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0. | |
8d95cc3b | 6540 | (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset. |
c131fcee L |
6541 | Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with |
6542 | I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and | |
6543 | num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs. | |
6544 | Set ymm0_regnum. | |
6545 | (_initialize_i386_tdep): Call initialize_tdesc_i386_avx. | |
6546 | ||
6547 | * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum, | |
6548 | xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and | |
6549 | i386_ymm_type. | |
6550 | (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM. | |
6551 | (I386_AVX_NUM_REGS): New. | |
6552 | (i386_xmm_regnum_p): Likewise. | |
6553 | (i386_ymm_regnum_p): Likewise. | |
6554 | (i386_ymmh_regnum_p): Likewise. | |
6555 | ||
6556 | * common/i386-xstate.h: New. | |
6557 | ||
98adf0f3 L |
6558 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6559 | ||
6560 | * config/djgpp/fnchange.lst: Add x86 AVX XML files. | |
6561 | ||
6562 | * features/Makefile (WHICH): Add i386/i386-avx, | |
6563 | i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux. | |
6564 | (i386/i386-avx-expedite): New. | |
6565 | (i386/i386-avx-linux-expedite): Likewise. | |
6566 | (i386/x86-64-avx-expedite):Likewise. | |
6567 | (i386/x86-64-avx-linux-expedite): Likewise. | |
6568 | ($(outdir)/i386/i386-avx.dat): New dependency. | |
6569 | ($(outdir)/i386/i386-avx-linux.dat): Likewise. | |
6570 | ($(outdir)/i386/x86-avx-64.dat): Likewise. | |
6571 | ($(outdir)/i386/x86-64-avx-linux.dat): Likewise. | |
6572 | ||
6573 | * features/i386/32bit-avx.xml: New. | |
6574 | * features/i386/64bit-avx.xml: Likewise. | |
6575 | * features/i386/i386-avx-linux.c: Likewise. | |
6576 | * features/i386/i386-avx-linux.xml: Likewise. | |
6577 | * features/i386/i386-avx.c: Likewise. | |
6578 | * features/i386/i386-avx.xml: Likewise. | |
6579 | * features/i386/x86-64-avx-linux.c: Likewise. | |
6580 | * features/i386/x86-64-avx-linux.xml: Likewise. | |
6581 | * features/i386/x86-64-avx.c: Likewise. | |
6582 | * features/i386/x86-64-avx.xml: Likewise. | |
6583 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
6584 | * regformats/i386/i386-avx.dat: Likewise. | |
6585 | * regformats/i386/x86-64-avx-linux.dat: Likewise. | |
6586 | * regformats/i386/x86-64-avx.dat: Likewise. | |
6587 | ||
05159abe DE |
6588 | 2010-04-07 Doug Evans <dje@google.com> |
6589 | ||
6590 | * top.c (source_file_name): Make const char *. | |
6591 | * top.h (source_file_name): Update. | |
6592 | * cli/cli-script.c (source_cleanup_lines_args): Make old_file | |
6593 | const char *. | |
6594 | (script_from_file): Change `file' arg to const char *. | |
6595 | * cli/cli-script.h (script_from_file): Update. | |
6596 | ||
96e39866 DE |
6597 | 2010-04-06 Doug Evans <dje@google.com> |
6598 | ||
6599 | * cli/cli-cmds.c (source_command): Run cleanups. | |
6600 | ||
3149d8c1 SS |
6601 | 2010-04-06 Stan Shebs <stan@codesourcery.com> |
6602 | ||
6603 | * defs.h (char_ptr): Move typedef here from... | |
6604 | * ada-lang.c (char_ptr): Remove. | |
6605 | * charset.c (char_ptr): Remove. | |
6606 | * tracepoint.h (struct uploaded_string): Remove. | |
6607 | (struct uploaded_tp): Use vectors for string arrays. | |
6608 | * tracepoint.c (trace_save): Use vectors of actions. | |
6609 | (parse_tracepoint_definition): Ditto. | |
6610 | (get_uploaded_tp): Clear vectors. | |
6611 | * breakpoint.c (create_tracepoint_from_upload): Use vectors. | |
6612 | (next_cmd): Change to an int. | |
6613 | (read_next_cmd): Use vector of command strings. | |
6614 | ||
4cc23ede DE |
6615 | 2010-04-06 Doug Evans <dje@google.com> |
6616 | ||
6617 | * top.h (source_script, cd_command): Delete. | |
6618 | * main.c: #include "cli/cli-cmds.h" | |
6619 | ||
bd333fb7 KB |
6620 | 2010-04-06 Kevin Buettner <kevinb@redhat.com> |
6621 | ||
6622 | * m32c-tdep.c (make_types): When calling `arch_type', pass size of | |
6623 | type in bytes, not bits. | |
6624 | ||
ec8a089a PM |
6625 | 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr> |
6626 | ||
6627 | * stabsread.c (define_symbol): Add support for char | |
6628 | and string constants. | |
6629 | ||
2244ba2e PM |
6630 | 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr> |
6631 | ||
6632 | Remove remaining "%ll" uses. | |
6633 | * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using | |
6634 | hex_string call. | |
6635 | * rs6000-nat.c (rs6000_ptrace64): Idem. | |
6636 | * solib-pa64.c (pa64_current_sos): Idem. | |
6637 | * solib-spu.c (spu_current_sos): Idem. | |
6638 | * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using | |
6639 | plongest call. | |
6640 | * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using | |
6641 | phex (VAR, 8) call. | |
6642 | * sh64-tdep.c (sh64_show_media_regs): Idem. | |
6643 | ||
fce3c1f0 SS |
6644 | 2010-04-05 Stan Shebs <stan@codesourcery.com> |
6645 | ||
6646 | * tracepoint.c: Include gdbcore.h. | |
6647 | (tfile_xfer_partial): Return partial results, also try reading | |
6648 | from executable. | |
6649 | (tfile_has_all_memory): New function. | |
6650 | (init_tfile_ops): Use it. | |
6651 | ||
626ea16d SDJ |
6652 | 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
6653 | ||
6654 | PR gdb/10736: | |
6655 | * xml-syscall.c (my_gdb_datadir): New variable to keep track of | |
6656 | the changes in data-directory. | |
6657 | (init_sysinfo): Reload the syscall XML file if the data-directory | |
6658 | has changed. | |
6659 | ||
1f7ccab2 JK |
6660 | 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
6661 | ||
6662 | Code cleanup. | |
6663 | * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop. | |
6664 | ||
d77f58be SS |
6665 | 2010-04-04 Stan Shebs <stan@codesourcery.com> |
6666 | Nathan Sidwell <nathan@codesourcery.com> | |
6667 | ||
6668 | * breakpoint.c (breakpoint_1): Add filter argument, return number of | |
6669 | breakpoints printed. | |
6670 | (is_hardware_watchpoint): Make argument const. | |
6671 | (is_watchpoint): Ditto. | |
6672 | (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint, | |
6673 | use it everywhere. | |
6674 | (breakpoints_info): Pass NULL to breakpoint_1. | |
6675 | (maintenance_info_breakpoints): Ditto. | |
6676 | (watchpoints_info): New function. | |
6677 | (tracepoints_info): Use breakpoint_1 filter. | |
6678 | (set_ignore_count): Warn that tracepoint ignore count will be ignored. | |
6679 | (_initialize_breakpoint): Make "info watchpoints" its own command. | |
6680 | * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint. | |
6681 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint. | |
6682 | ||
af54718e SS |
6683 | 2010-04-04 Stan Shebs <stan@codesourcery.com> |
6684 | ||
6685 | * tracepoint.c (tfile_fetch_registers): Add fallback case. | |
6686 | ||
74d1f91e JK |
6687 | 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
6688 | ||
6689 | * infcmd.c (run_command_1): Call proceed with regcache_read_pc address. | |
6690 | * config/djgpp/fnchange.lst: Add translation for break-entry.exp. | |
6691 | ||
91d91ceb JK |
6692 | 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
6693 | ||
6694 | * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove. | |
6695 | * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove. | |
6696 | ||
60531b24 JK |
6697 | 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
6698 | ||
6699 | * dwarf2read.c (read_namespace_type): Use common "return set_die_type" | |
6700 | code form. | |
6701 | ||
a3c4230a HZ |
6702 | 2010-04-02 Hui Zhu <teawater@gmail.com> |
6703 | ||
6704 | * i386-tdep.c (OT_DQUAD): New enum. | |
6705 | (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2, | |
6706 | SSE3, SSSE3 and SSE4. | |
6707 | ||
b15758fe HZ |
6708 | 2010-04-02 Hui Zhu <teawater@gmail.com> |
6709 | ||
6710 | * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless | |
6711 | "*addr = 0". | |
6712 | ||
afd02f27 PA |
6713 | 2010-04-02 Pedro Alves <pedro@codesourcery.com> |
6714 | ||
6715 | * tracepoint.c (trace_dump_actions): New, factored out from | |
6716 | trace_dump_command, and adjusted to recurse into while-stepping's | |
6717 | action list. | |
6718 | (trace_dump_command): Use it. | |
6719 | ||
5cea2a26 PA |
6720 | 2010-04-02 Pedro Alves <pedro@codesourcery.com> |
6721 | ||
6722 | * breakpoint.h (struct counted_command_line): Moved definition to | |
6723 | breakpoint.c, and forward declare. | |
6724 | (breakpoint_commands): Declare. | |
6725 | * breakpoint.c (struct counted_command_line): Moved here. | |
6726 | (breakpoint_commands): New. | |
6727 | * tracepoint.c (encode_actions): Use breakpoint_commands. | |
6728 | * remote.c (remote_download_tracepoint): Ditto. | |
6729 | ||
7c47795c L |
6730 | 2010-04-01 H.J. Lu <hongjiu.lu@intel.com> |
6731 | ||
6732 | * remote.c (remote_parse_stop_reply): Use hex_string instead | |
6733 | of phex_nz for error. | |
6734 | ||
fff87407 SS |
6735 | 2010-04-01 Stan Shebs <stan@codesourcery.com> |
6736 | Nathan Sidwell <nathan@codesourcery.com> | |
6737 | ||
6738 | * tracepoint.h (enum actionline_type): Remove. | |
6739 | (validate_actionline): Change return to void. | |
6740 | * tracepoint.c (report_agent_reqs_errors): New function. | |
6741 | (validate_actionline): Call it, change return to void, report errors | |
6742 | more consistently. | |
6743 | (collect_symbol): Call report_agent_reqs_errors. | |
6744 | (encode_actions_1): Ditto. | |
6745 | (encode_actions): Don't expect a result from validate_actionline. | |
6746 | ||
615bcdef SS |
6747 | 2010-04-01 Stan Shebs <stan@codesourcery.com> |
6748 | ||
6749 | * tracepoint.c (trace_start_command): Confirm if trace is running. | |
6750 | (trace_stop_command): Error if trace not running. | |
6751 | ||
fe01d668 L |
6752 | 2010-04-01 H.J. Lu <hongjiu.lu@intel.com> |
6753 | ||
6754 | * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh". | |
6755 | (AMD64_NUM_LOWER_BYTE_REGS): New. | |
6756 | (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh". | |
6757 | (amd64_pseudo_register_write): Likewise. | |
6758 | (amd64_init_abi): Set num_byte_regs to 20. | |
6759 | ||
86b17b60 PA |
6760 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
6761 | ||
6762 | * breakpoint.c (multi_start, multi_end, last_was_multi): Delete. | |
6763 | (prev_breakpoint_count): New. | |
6764 | (set_breakpoint_count): Adjust. | |
6765 | (rbreak_start_breakpoint_count): New. | |
6766 | (start_rbreak_breakpoints): Adjust. | |
6767 | (end_rbreak_breakpoints): Adjust. | |
6768 | (struct commands_info) <arg>: New field. | |
6769 | (do_map_commands_command): Tweak output to include breakpoint spec | |
6770 | range. | |
6771 | (commands_command_1): Adjust. Avoid setting an xfree cleanup if | |
6772 | ARG was empty on entry. Set INFO's arg. | |
6773 | (create_breakpoint): Adjust. | |
6774 | ||
6775 | * NEWS: Clarify `commands' changes. | |
6776 | ||
2c58c0a9 PA |
6777 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
6778 | ||
6779 | * tracepoint.c: Include stack.h. | |
6780 | (struct add_local_symbols_data): New. | |
6781 | (do_collect_symbol): New. | |
6782 | (add_local_symbols): Rewrite using iterate_over_block_arg_vars and | |
6783 | iterate_over_block_local_vars. | |
6784 | * stack.c (print_block_frame_locals): Rewrite as ... | |
6785 | (iterate_over_block_locals): ... this. Take a callback function | |
6786 | pointer and generic data pointer, and call that instead of | |
6787 | print_variable_and_value. | |
6788 | (struct print_variable_and_value_data): New. | |
6789 | (do_print_variable_and_value): New. | |
6790 | (iterate_over_block_local_vars): New, abstracted out from | |
6791 | print_frame_local_vars. | |
6792 | (print_frame_local_vars): Rewrite using | |
6793 | iterate_over_block_local_vars. | |
6794 | (iterate_over_block_arg_vars): New, abstracted out from | |
6795 | print_frame_arg_vars. | |
6796 | (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. | |
6797 | * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. | |
6798 | (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. | |
6799 | ||
d476da0e RE |
6800 | 2010-03-31 Richard Earnshaw <rearnsha@arm.com> |
6801 | ||
6802 | * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH | |
8d95cc3b | 6803 | instructions. Use the PC+4 if the base of the TBB or TBH is the |
d476da0e RE |
6804 | PC register. |
6805 | ||
8072405b JK |
6806 | 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
6807 | ||
6808 | Fix crash on reading wrong function declaration DWARF. | |
6809 | * dwarf2read.c (read_subroutine_type): New variable void_type. | |
6810 | Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization | |
6811 | more close to their use. | |
6812 | ||
8bf6485c SS |
6813 | 2010-03-31 Stan Shebs <stan@codesourcery.com> |
6814 | ||
6815 | * breakpoint.c (tracepoint_save_command): Include variables, | |
8d95cc3b | 6816 | conditionals, tracepoint types, and default-collect. |
8bf6485c SS |
6817 | * tracepoint.c (save_trace_state_variables): New function. |
6818 | * tracepoint.h (save_trace_state_variables): Declare it. | |
6819 | ||
2ae2a0b7 PM |
6820 | 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr> |
6821 | ||
1a161f72 | 6822 | * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. |
2ae2a0b7 | 6823 | |
86ffb506 KS |
6824 | 2010-03-30 Keith Seitz <keiths@redhat.com> |
6825 | ||
6826 | * c-typeprint.c (c_type_print_args): Don't print "void" | |
6827 | for java, regardless of whether it is TYPE_PROTOTYPED. | |
6828 | Use the passed-in language instead of current_language. | |
6829 | (c_type_print_varspec_suffix): Use current_language instead | |
6830 | of assuming language_c. | |
6831 | * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off | |
6832 | any return type specifier from the physname. | |
6833 | ||
956c2c8b PA |
6834 | 2010-03-30 Pedro Alves <pedro@codesourcery.com> |
6835 | ||
6836 | * tui/tui-interp.c (tui_is_toplevel): New. | |
6837 | (tui_init): Set it. | |
6838 | (tui_allowed_p): New. | |
6839 | * tui/tui.c (tui_enable): Check if the TUI is allowed before | |
6840 | enabling it. | |
6841 | * tui/tui.h (tui_allowed_p): Declare. | |
6842 | ||
98e5a990 TT |
6843 | 2010-03-30 Ozkan Sezer <sezeroz@gmail.com> |
6844 | ||
6845 | * serial.h: Include winsock2.h before windows.h. | |
6846 | ||
c8d5aac9 L |
6847 | 2010-03-30 H.J. Lu <hongjiu.lu@intel.com> |
6848 | ||
6849 | * NEWS: Mention xmlRegisters= in qSupported packet. | |
6850 | ||
6851 | * i386-tdep.c: Include "remote.h". | |
6852 | (_initialize_i386_tdep): Call register_remote_support_xml. | |
6853 | ||
6854 | * remote.c (remote_support_xml): New. | |
6855 | (register_remote_support_xml): Likewise. | |
6856 | (remote_query_supported_append): Likewise. | |
6857 | (remote_query_supported): Support remote_support_xml. | |
6858 | ||
6859 | * remote.h (register_remote_support_xml): New. | |
6860 | ||
76a2b958 SS |
6861 | 2010-03-29 Stan Shebs <stan@codesourcery.com> |
6862 | ||
42e08e69 SS |
6863 | * tracepoint.c (trace_find_line_command): Remove dead code. |
6864 | ||
409873ef SS |
6865 | * tracepoint.h (struct uploaded_string): New struct. |
6866 | (struct uploaded_tp): New fields for source strings. | |
6867 | * breakpoint.c (this_utp, next_cmd): New globals. | |
6868 | (read_uploaded_action): New function. | |
6869 | (create_tracepoint_from_upload): Fill in more parts | |
6870 | of a tracepoint. | |
6871 | * tracepoint.c (encode_source_string): New function. | |
6872 | (trace_save): Write out source strings, fix error checks. | |
6873 | (parse_tracepoint_definition): Add source string parsing. | |
6874 | * remote.c (PACKET_TracepointSource): New packet type. | |
6875 | (remote_download_command_source): New function. | |
6876 | (remote_download_tracepoint): Download source pieces also. | |
6877 | (_initialize_remote): Add packet config command. | |
6878 | ||
a0405854 SS |
6879 | * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to |
6880 | expression handler. | |
6881 | ||
76a2b958 SS |
6882 | * tracepoint.c (start_tracing): Check tracepoints before sending |
6883 | commands to target, don't start if all tracepoints disabled. | |
6884 | ||
d350db38 PA |
6885 | 2010-03-28 Pedro Alves <pedro@codesourcery.com> |
6886 | ||
12f2d601 | 6887 | * cli/cli-script.c (process_next_line): Handle 'stepping'. |
d350db38 | 6888 | |
8b9b7ef8 SS |
6889 | 2010-03-26 Stan Shebs <stan@codesourcery.com> |
6890 | ||
6891 | * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode. | |
6892 | ||
9766ced4 SS |
6893 | 2010-03-26 Tom Tromey <tromey@redhat.com> |
6894 | ||
6895 | * breakpoint.c (commands_command_1): Duplicate 'arg'. | |
6896 | ||
059acae7 UW |
6897 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
6898 | ||
6899 | * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal. | |
6900 | (skip_prologue_sal): Remove local definition. | |
6901 | (resolve_sal_pc): Remove now unnecessary code. | |
6902 | * linespec.c (minsym_found): Call skip_prologue_sal. | |
6903 | * symtab.c (find_function_start_pc): Remove. | |
6904 | (find_function_start_sal): Extract prologue skipping into ... | |
6905 | (skip_prologue_sal): ... this new function. Handle code both | |
6906 | with and without debug info. Respect SAL's explicit_pc and | |
6907 | explicit_line flags. Inline old find_function_start_pc. | |
6908 | * symtab.h (find_function_start_pc): Remove. | |
6909 | (skip_prologue_sal): Add prototype. | |
6910 | ||
4a811a97 UW |
6911 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
6912 | ||
6913 | * dwarf2read.c (read_func_scope): Also scan specification DIEs | |
6914 | for DW_TAG_imported_module children. | |
6915 | ||
907af001 UW |
6916 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
6917 | ||
6918 | * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by | |
6919 | ignoring spurious DW_AT_name attributes for unnamed structs or unions. | |
6920 | * completer.c (add_struct_fields): Fix inverted logic. | |
6921 | ||
dde2d684 UW |
6922 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
6923 | ||
6924 | * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left. | |
6925 | ||
a609a0c8 PA |
6926 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
6927 | ||
6928 | * tracepoint.c (current_trace_status): Don't make sure error_desc | |
6929 | is non-NULL here. | |
6930 | (parse_trace_status): Release a previous error_desc string, and | |
6931 | set it to NULL by default. If stop reason is tracepoint_error, | |
6932 | make sure error_desc is not left NULL. | |
6933 | ||
610197fd PA |
6934 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
6935 | ||
6936 | * tracepoint.c (trace_save): Remove X from tracepoint error | |
6937 | description. | |
6938 | ||
99b5e152 PA |
6939 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
6940 | ||
6941 | * tracepoint.c (parse_trace_status): Don't allow plain strings in | |
6942 | the terror description. Don't expect an X prefix. | |
6943 | ||
6c28cbf2 SS |
6944 | 2010-03-25 Stan Shebs <stan@codesourcery.com> |
6945 | ||
6946 | * tracepoint.h (trace_stop_reason): Add tracepoint_error. | |
6947 | (struct trace_status): New field error_desc. | |
6948 | * tracepoint.c (stop_reason_names): Add terror. | |
6949 | (current_trace_status): Ensure non-NULL error description. | |
6950 | (trace_status_command): Add error report. | |
6951 | (trace_status_mi): Ditto. | |
6952 | (trace_save): Add special case for error description. | |
6953 | (parse_trace_status): Add case for errors. | |
6954 | ||
418835cc KS |
6955 | 2010-03-25 Keith Seitz <keiths@redhat.com> |
6956 | ||
6957 | * dwarf2read.c (read_subroutine_type): If the compilation unit | |
6958 | language is Java, mark any formal parameter named "this" as | |
6959 | artificial (GCC/43521). | |
6960 | (dwarf2_name): Add special handling for Java constructors. | |
6961 | ||
aa7d318d TT |
6962 | 2010-03-25 Tom Tromey <tromey@redhat.com> |
6963 | ||
6964 | PR gdb/11327, PR gdb/11328, PR breakpoints/11368: | |
6965 | * infrun.c (handle_inferior_event): Change initialization of | |
6966 | stop_stack_dummy. | |
6967 | (handle_inferior_event): Change assignment to stop_stack_dummy. | |
6968 | (normal_stop): Update use of stop_stack_dummy. | |
6969 | (struct inferior_status) <stop_stack_dummy>: Change type. | |
6970 | * inferior.h (stop_stack_dummy): Update. | |
6971 | * infcmd.c (stop_stack_dummy): Change type. | |
6972 | * infcall.c (cleanup_delete_std_terminate_breakpoint): New | |
6973 | function. | |
6974 | (call_function_by_hand): Call set_std_terminate_breakpoint. | |
6975 | Rewrite std::terminate handling. | |
6976 | * breakpoint.h (enum bptype) <bp_std_terminate, | |
6977 | bp_std_terminate_master>: New. | |
6978 | (enum stop_stack_kind): New. | |
6979 | (struct bpstat_what) <call_dummy>: Change type. | |
6980 | (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): | |
6981 | Declare. | |
6982 | * breakpoint.c (create_std_terminate_master_breakpoint): New | |
6983 | function. | |
6984 | (update_breakpoints_after_exec): Handle bp_std_terminate_master. | |
6985 | Call create_std_terminate_master_breakpoint. | |
6986 | (print_it_typical): Handle new breakpoint kinds. | |
6987 | (bpstat_stop_status): Handle bp_std_terminate_master. | |
6988 | (bpstat_what): Correctly set call_dummy field. Handle | |
6989 | bp_std_terminate_master and bp_std_terminate. | |
6990 | (print_one_breakpoint_location): Update. | |
6991 | (allocate_bp_location): Update. | |
6992 | (set_std_terminate_breakpoint): New function. | |
6993 | (delete_std_terminate_breakpoint): Likewise. | |
6994 | (create_thread_event_breakpoint): Update. | |
6995 | (delete_command): Update. | |
6996 | (breakpoint_re_set_one): Update. | |
6997 | (breakpoint_re_set): Call create_std_terminate_master_breakpoint. | |
6998 | ||
82ccf5a5 JK |
6999 | 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
7000 | ||
7001 | * symfile.c (build_section_addr_info_from_bfd): New. | |
7002 | (build_section_addr_info_from_objfile): Base it on | |
7003 | build_section_addr_info_from_bfd. | |
7004 | (addrs_section_compar, addrs_section_sort): New. | |
7005 | (addr_info_make_relative): New variables my_cleanup, abfd_addrs, | |
7006 | addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build | |
7007 | addrs_to_abfd_addrs. Use it for recalculating ADDRS. | |
7008 | ||
737c4c52 MS |
7009 | 2010-03-24 Michael Snyder <msnyder@localhost.localdomain> |
7010 | ||
8d95cc3b | 7011 | * elfread.c (find_separate_debug_file_by_buildid): |
737c4c52 MS |
7012 | Remove unused local variable. |
7013 | ||
95a42b64 TT |
7014 | 2010-03-24 Tom Tromey <tromey@redhat.com> |
7015 | ||
7016 | PR breakpoints/9352: | |
7017 | * NEWS: Mention changes to `commands' and `rbreak'. | |
7018 | * symtab.c (do_end_rbreak_breakpoints): New function. | |
7019 | (rbreak_command): Call start_rbreak_breakpoints; arrange to call | |
7020 | end_rbreak_breakpoints. | |
7021 | * breakpoint.c (breakpoint_count, tracepoint_count): Now static. | |
7022 | (set_breakpoint_count): Likewise. Clear last_was_multi. | |
7023 | (multi_start, multi_end, last_was_multi): New globals. | |
7024 | (start_rbreak_breakpoints, end_rbreak_breakpoints): New | |
7025 | functions. | |
7026 | (struct commands_info): New | |
7027 | (do_map_commands_command): New function. | |
7028 | (commands_command_1): New function. | |
7029 | (commands_command): Use it. | |
7030 | (commands_from_control_command): Likewise. | |
7031 | (do_delete_breakpoint): New function. | |
7032 | (delete_command): Use it. | |
7033 | (map_breakpoint_numbers): Add 'data' argument. Pass to callback. | |
7034 | (do_map_disable_breakpoint): New function. | |
7035 | (disable_command): Use it. | |
7036 | (do_map_enable_breakpoint): New function. | |
7037 | (enable_command): Use it. | |
7038 | (enable_once_breakpoint): Add argument. | |
7039 | (enable_once_command): Update. | |
7040 | (enable_delete_breakpoint): Add argument. | |
7041 | (enable_delete_command): Update. | |
7042 | (break_command_really): Set last_was_multi when needed. | |
7043 | (check_tracepoint_command): Fix formatting. | |
7044 | (validate_commands_for_breakpoint): New function. | |
7045 | (breakpoint_set_commands): Use it. | |
7046 | (tracepoint_save_command): Update. | |
7047 | * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints): | |
7048 | Declare. | |
7049 | ||
9add0f1b TT |
7050 | 2010-03-24 Tom Tromey <tromey@redhat.com> |
7051 | ||
7052 | * breakpoint.h (struct counted_command_line): New struct. | |
7053 | (struct breakpoint) <commands>: Change type. | |
7054 | (struct bpstats) <commands>: Change type. | |
7055 | <commands_left>: New field. | |
7056 | * breakpoint.c (alloc_counted_command_line): New function. | |
7057 | (incref_counted_command_line): Likewise. | |
7058 | (decref_counted_command_line): Likewise. | |
7059 | (do_cleanup_counted_command_line): Likewise. | |
7060 | (make_cleanup_decref_counted_command_line): Likewise. | |
7061 | (breakpoint_set_commands): Use decref_counted_command_line and | |
7062 | alloc_counted_command_line. | |
7063 | (commands_command): Don't error if breakpoint commands are | |
7064 | executing. | |
7065 | (commands_from_control_command): Likewise. | |
7066 | (bpstat_free): Update. | |
7067 | (bpstat_copy): Likewise. | |
7068 | (bpstat_clear_actions): Likewise. | |
7069 | (bpstat_do_actions_1): Likewise. | |
7070 | (bpstat_stop_status): Likewise. | |
7071 | (print_one_breakpoint_location): Likewise. | |
7072 | (delete_breakpoint): Likewise. | |
7073 | (bpstat_alloc): Initialize new field. | |
7074 | (tracepoint_save_command): Update. | |
7075 | * tracepoint.c (encode_actions): Update. | |
7076 | (trace_dump_command): Update. | |
7077 | ||
a6c727b2 DJ |
7078 | 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
7079 | ||
7080 | * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview. | |
7081 | * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer. | |
7082 | (read_structure_type): For RealView, set TYPE_STUB on structures with | |
7083 | no byte size and no children. | |
7084 | (read_subroutine_type): Mark functions as prototyped by default. | |
7085 | * symtab.c (producer_is_realview): New function. | |
7086 | * symtab.h (expand_line_sal): Fix declaration formatting. | |
7087 | (producer_is_realview): Declare. | |
7088 | ||
0d39a070 DJ |
7089 | 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
7090 | ||
7091 | * arm-tdep.c (skip_prologue_function): New function. | |
7092 | (submask, bit, bits, sbits, BranchDest): Move higher in the file. | |
7093 | (thumb_analyze_prologue): Document return value. Recognize more | |
7094 | Thumb instructions, skippable calls, and some Thumb-2 instructions. | |
7095 | Add debug output. | |
7096 | (arm_skip_prologue): Remove call dummy check. Check the prologue | |
7097 | for non-GNU compilers. | |
7098 | (arm_instruction_changes_pc): New function. | |
7099 | (arm_analyze_prologue): New function, broken out from | |
7100 | arm_scan_prologue. Recognize more ARM instructions and skippable | |
7101 | calls. Update comments. Handle NULL cache. Return the address | |
7102 | of the first unrecognized instruction. Do not skip past other | |
7103 | instructions which change control flow. Add debug output. | |
7104 | (arm_scan_prologue): Use arm_analyze_prologue. | |
7105 | (ARM_PC_32): Delete. | |
7106 | (shifted_reg_val): Simplify ARM_PC_32 check. | |
7107 | ||
4baf5cf4 VP |
7108 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7109 | ||
7110 | * tracepoint.c (tvariables_info_1): Actually compute | |
7111 | the number of rows in the result. | |
7112 | ||
4a5e7a5b PA |
7113 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
7114 | ||
7115 | * remote.c (crc32): Constify `buf' parameter. | |
7116 | (remote_verify_memory): New, abstracted out from... | |
7117 | (compare_sections_command): ... this. Remove hardcoded target | |
7118 | checks. | |
7119 | (init_remote_ops): Install remote_verify_memory. | |
7120 | * target.c (target_verify_memory): New. | |
7121 | * target.h (struct target_ops) <to_verify_memory>: New field. | |
7122 | (target_verify_memory): Declare. | |
7123 | ||
011aacb0 VP |
7124 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7125 | ||
7126 | Implement -trace-save. | |
7127 | ||
7128 | * mi-cmds.h (mi_cmds_trace_save): Declare. | |
7129 | * mi-cmds.c (mi_cmds): Register -trace-save. | |
7130 | * mi/mi-main.c (mi_cmd_trace_save): New. | |
7131 | * remote.c (remote_save_trace_data): Take const parameter. | |
7132 | * target.h (struct target_ops::to_save_trace_data): Take | |
7133 | const parameter. | |
7134 | * target.c (update_current_target): Adjust to the above. | |
7135 | * tracepoint.c (trave_save): New, extracted from | |
7136 | (trace_save_command): ...this. | |
7137 | (tfile_trace_find): Remove message that is unnecessary now | |
7138 | that 'tfind' reports found frame. | |
7139 | * tracepoint.h (trace_save): Declare. | |
7140 | ||
f197e0f1 VP |
7141 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7142 | ||
7143 | Implement -trace-find. | |
7144 | ||
7145 | * mi/mi-cmds.c (mi_cmds): Register -trace-find. | |
7146 | * mi/mi-cmds.h (mi_cmd_trace_find): Declare. | |
7147 | * mi/mi-main.c (mi_cmd_trace_find): New. | |
7148 | * target.h (struct target_ops): Document to_trace_find. | |
7149 | * tracepoint.h (tfind_1): Declare. | |
7150 | * tracepoint.c (finish_tfind_command): Rename to... | |
7151 | (tfind_1): ...this. | |
7152 | * remote.c (remote_trace_find): Return -1 if target say | |
7153 | there's no frame. Improve error diagnostics. | |
7154 | ||
40e1c229 VP |
7155 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7156 | ||
7157 | -trace-define-variable and -trace-list-variables. | |
7158 | ||
7159 | * tracepoint.c (create_trace_state_variable): Make | |
7160 | private copy of name, as opposed to assuming the | |
7161 | pointer lives forever. | |
7162 | (tvariables_info_1): New. | |
7163 | (tvariables_info): Use the above. | |
7164 | * tracepoint.h (create_trace_state_variable, tvariables_info_1): | |
7165 | Declare. | |
7166 | * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable | |
7167 | and -trace-list-variables. | |
7168 | * mi/mi-cmds.h (mi_cmd_trace_define_variable) | |
7169 | (mi_cmd_trace_list_variables): New. | |
7170 | * mi/mi-main.c (mi_cmd_trace_define_variable) | |
7171 | (mi_cmd_trace_list_variables): New. | |
7172 | ||
9b4c786c VP |
7173 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7174 | ||
7175 | Implement -break-passcount. | |
7176 | ||
7177 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): New. | |
7178 | * mi/mi-cmds.c (mi_cmds): Register -break-passcount. | |
7179 | * mi/mi-cmds.h (mi_cmd_break_passcount): Declare. | |
7180 | ||
f224b49d VP |
7181 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7182 | ||
7183 | -trace-start/-trace-end/-trace-status. | |
7184 | ||
7185 | * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status | |
7186 | and -trace-stop. | |
7187 | * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) | |
7188 | (mi_cmd_trace_stop): Declare. | |
7189 | * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) | |
7190 | (mi_cmd_trace_stop): New. | |
7191 | * tracepoint.c (start_tracing): New, extracted from... | |
7192 | (trace_start_command): ...this. | |
7193 | (trace_status_mi): New. | |
7194 | * tracepoint.h (struct trace_status): Document | |
7195 | stopping_tracepoint. | |
7196 | (start_tracing, stop_tracing, trace_status_mi): Declare. | |
7197 | ||
6534d786 VP |
7198 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7199 | ||
7200 | Implement creating tracepoints with -break-insert. | |
7201 | ||
7202 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a | |
7203 | to mean that tracepoint should be created. | |
7204 | ||
51661e93 VP |
7205 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7206 | ||
7207 | * breakpoint.c (check_no_tracepoint_commands): Use | |
7208 | current spelling of 'teval'. | |
7209 | ||
a7bdde9e VP |
7210 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7211 | ||
7212 | Unify actions and commands | |
7213 | ||
7214 | * defs.h (read_command_lines, read_command_lines_1): New | |
7215 | parameters validator and closure. | |
7216 | * tracepoint.h (struct action_line): Remove. | |
7217 | * breakpoint.h (struct breakpoint): Remove the 'actions' | |
7218 | field. | |
7219 | * defs.h (enum command_control_type): New value | |
7220 | while_stepping_control. | |
7221 | (struct command_line): Add comments. | |
7222 | * breakpoint.c (breakoint_is_tracepoint): New. | |
7223 | (breakpoint_set_commands): For tracepoints, | |
7224 | verify the commands are permissible. | |
7225 | (check_tracepoint_commands): New. | |
7226 | (commands_command): Require that each new line is validated using | |
7227 | check_tracepoint_command, if we set commands for a tracepoint. | |
7228 | (create_tracepoint_from_upload): Likewise. | |
7229 | (print_one_breakpoint_location): Remove the code to print | |
7230 | actions specifically. | |
7231 | (tracepoint_save_command): Relay to print_command_lines. | |
7232 | * cli/cli-script.c (process_next_line): New parameters validator | |
7233 | and closure. Handle 'while-stepping'. Call validator if not null. | |
7234 | (read_command_lines, read_command_lines1): Likewise. | |
7235 | (recurse_read_control_structure): New parameters validator and | |
7236 | closure. Handle while_stepping_control. | |
7237 | (print_command_lines): Handle while-stepping. | |
7238 | (get_command_line, define_command, document_command): Adjust. | |
7239 | * remote.c (remote_download_tracepoint): Adjust. | |
7240 | * tracepoint.c (make_cleanup_free_actions, read_actions) | |
7241 | (free_actions, do_free_actions_cleanup): Remove. | |
7242 | (trace_actions_command): Use read_command_lines. | |
7243 | (validate_actionline): Use error in one place. | |
7244 | (encode_actions_1): New, extracted from... | |
7245 | (encode_actions): ...this. Also use cleanups for exception | |
7246 | safety. | |
7247 | (trace_dump_command): Adjust. | |
7248 | * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if | |
7249 | it's tracepoint. | |
7250 | ||
64e3cf3d MF |
7251 | 2010-03-23 Mike Frysinger <vapier@gentoo.org> |
7252 | ||
7253 | * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/.. | |
7254 | ||
52e9fde8 SS |
7255 | 2010-03-22 Stan Shebs <stan@codesourcery.com> |
7256 | ||
7257 | * value.c (value_static_field): Be lazy about the field's value. | |
7258 | ||
508ccb1f TT |
7259 | 2010-03-22 Reid Kleckner <reid@kleckner.net> |
7260 | ||
7261 | PR gdb/11094 | |
7262 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add | |
7263 | bp_jit_event. | |
7264 | (disable_breakpoints_in_shlibs): Likewise. | |
7265 | ||
acebe513 UW |
7266 | 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com> |
7267 | ||
7268 | * dwarf2read.c (partial_die_parent_scope): Work around buggy | |
7269 | GCC 4.1 debug info generation (GCC PR c++/28460). | |
7270 | (determine_prefix): Likewise. | |
7271 | ||
957b8b5a DJ |
7272 | 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com> |
7273 | ||
7274 | * tui/tui-disasm.c (tui_get_begin_asm_address): Default to | |
7275 | get_current_arch. | |
7276 | * tui/tui-layout.c (extract_display_start_addr): Likewise. | |
7277 | ||
3b11a015 SS |
7278 | 2010-03-19 Stan Shebs <stan@codesourcery.com> |
7279 | ||
7280 | * ax-gdb.c (gen_fetch): Handle bool. | |
7281 | (gen_usual_unary): Ditto. | |
7282 | (gen_cast): Ditto. | |
7283 | (gen_equal): New function. | |
7284 | (gen_less): New function. | |
7285 | (gen_expr_binop_rest): Call them, also return integer type from | |
7286 | logical operations. | |
7287 | (gen_expr): Ditto. | |
7288 | ||
20781792 TT |
7289 | 2010-03-19 Tom Tromey <tromey@redhat.com> |
7290 | ||
7291 | * jv-lang.c (jv_dynamics_objfile_data_key) | |
7292 | (jv_type_objfile_data_key): New globals. | |
7293 | (class_symtab): Move earlier. | |
7294 | (jv_per_objfile_free): New function. | |
7295 | (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch' | |
7296 | parameter. | |
7297 | Remove ancient #if 1. | |
7298 | (add_class_symbol): Remove redundant declaration. | |
7299 | (java_lookup_class): Use alloc_type, not alloc_type_arch. | |
7300 | (java_link_class_type): Mark as static. Update. | |
7301 | (jv_clear_object_type): New function. | |
7302 | (set_java_object_type): Likewise. | |
7303 | (get_java_object_type): Use set_java_object_type. | |
7304 | (is_object_type): Likewise. | |
7305 | (_initialize_java_language): Register new objfile keys. | |
7306 | (get_java_class_symtab): Add 'gdbarch' parameter. | |
7307 | (add_class_symtab_symbol): Update. | |
7308 | (type_from_class): Update. | |
7309 | ||
cf3e25ca SS |
7310 | 2010-03-19 Stan Shebs <stan@codesourcery.com> |
7311 | ||
8d95cc3b | 7312 | * ax-general.c (ax_const_l): Fix a sizing bug. |
cf3e25ca | 7313 | |
f1ae44c9 | 7314 | 2010-03-18 Joel Brobecker <brobecker@adacore.com> |
7315 | ||
7316 | GDB 7.1 released. | |
7317 | ||
4daf5ac0 SS |
7318 | 2010-03-18 Stan Shebs <stan@codesourcery.com> |
7319 | Pedro Alves <pedro@codesourcery.com> | |
7320 | ||
7321 | * target.h (struct target_ops): New method | |
7322 | to_set_circular_trace_buffer. | |
7323 | (target_set_circular_trace_buffer): New macro. | |
7324 | * target.c (update_current_target): Add | |
7325 | to_set_circular_trace_buffer, fix to_set_disconnected_tracing | |
7326 | default behavior. | |
7327 | * remote.c (remote_set_circular_trace_buffer): New function. | |
7328 | (init_remote_ops): Add it to vector. | |
7329 | * tracepoint.h (struct trace_status): New field traceframes_created, | |
7330 | change buffer_size and buffer_free to int. | |
7331 | * tracepoint.c (circular_trace_buffer): New global. | |
7332 | (start_tracing): Send values of disconnected tracing and circular | |
7333 | trace buffer settings. | |
7334 | (set_circular_trace_buffer): New function. | |
7335 | (parse_trace_state): Handle total space and frames created. | |
7336 | (trace_status_command): Display total space and total frames | |
7337 | created. | |
7338 | (trace_save): Write out new status values. | |
7339 | (parse_trace_status): Set traceframe_count, traceframes_created, | |
7340 | buffer_free and buffer_size to -1 by default. | |
7341 | (_initialize_tracepoint): New setshow for circular-trace-buffer. | |
7342 | * NEWS: Mention the circular trace buffer option. | |
7343 | ||
40c549d6 TT |
7344 | 2010-03-18 Tom Tromey <tromey@redhat.com> |
7345 | ||
7346 | * infcmd.c (finish_command_continuation): Wrap print_return_value | |
7347 | in TRY_CATCH. | |
7348 | ||
e8d05480 JB |
7349 | 2010-03-18 Joel Brobecker <brobecker@adacore.com> |
7350 | ||
7351 | * dwarf2read.c (add_partial_subprogram): Make sure the subprogram | |
7352 | DIE has a name before creating the associated partial symbol. | |
7353 | (read_func_scope): Emit a complaint if the subprogram does not | |
7354 | have a name or when we can't extract the subprogram PC bounds. | |
7355 | ||
441b986a UW |
7356 | 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com> |
7357 | ||
7358 | * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch | |
7359 | instead of selected frame architecture. | |
7360 | ||
4247603b PA |
7361 | 2010-03-18 Pedro Alves <pedro@codesourcery.com> |
7362 | ||
7363 | * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's | |
7364 | a valid selected thread, and that it is not running. | |
7365 | (advance_command): Ditto. | |
7366 | (finish_command): Ditto. | |
7367 | ||
400c6af0 SS |
7368 | 2010-03-17 Stan Shebs <stan@codesourcery.com> |
7369 | ||
3a96536b SS |
7370 | * ax-gdb.c (require_rvalue): Disallow non-scalars. |
7371 | ||
573cda03 SS |
7372 | * infcall.c: Include tracepoint.h. |
7373 | (call_function_by_hand): Disallow calls in tfind mode. | |
7374 | * infcmd.c: Include tracepoint.h. | |
7375 | (ensure_not_tfind_mode): New function. | |
7376 | (continue_1): Call it. | |
7377 | (step_1) Ditto. | |
7378 | (jump_command): Ditto. | |
7379 | (signal_command): Ditto. | |
7380 | (advance_command): Ditto. | |
7381 | (until_command): Ditto. | |
7382 | (finish_command): Ditto. | |
7383 | * tracepoint.h (disconnect_or_stop_tracing): Declare. | |
7384 | ||
400c6af0 SS |
7385 | * ax-gdb.h (struct axs_value): New field optimized_out. |
7386 | (gen_trace_for_var): Add gdbarch argument. | |
7387 | * ax-gdb.c (gen_trace_static_fields): New function. | |
7388 | (gen_traced_pop): Call it, add gdbarch argument. | |
7389 | (gen_trace_for_expr): Update call to it. | |
7390 | (gen_trace_for_var): Ditto, and report optimized-out variables. | |
7391 | (gen_struct_ref_recursive): Check for optimized-out value. | |
7392 | (gen_struct_elt_for_reference): Ditto. | |
7393 | (gen_static_field): Pass gdbarch instead of expression, assume | |
7394 | optimization if field not found. | |
7395 | (gen_var_ref): Set the optimized_out flag. | |
7396 | (gen_expr): Error on optimized-out variable. | |
7397 | * tracepoint.c (collect_symbol): Handle struct-valued vars as | |
7398 | expressions, skip optimized-out variables with computed locations. | |
7399 | * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of | |
7400 | erroring out if location expression missing. | |
7401 | (loclist_tracepoint_var_ref): Don't error out here. | |
7402 | ||
a3b2a86b TT |
7403 | 2010-03-17 Tom Tromey <tromey@redhat.com> |
7404 | ||
7405 | * dwarf2read.c (dwarf2_get_section_info): Handle case where no | |
7406 | DWARF data is available. | |
7407 | ||
38963c97 DJ |
7408 | 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
7409 | ||
7410 | * symfile.c (generic_load): Reset breakpoints after loading. | |
7411 | ||
ddabfc73 TT |
7412 | 2010-03-17 Tom Tromey <tromey@redhat.com> |
7413 | ||
7414 | * linux-nat.c (linux_nat_detach): Check debug_linux_nat. | |
7415 | ||
d8c09fb5 JK |
7416 | 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7417 | ||
7418 | * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the | |
7419 | create_breakpoint call, adjust the parameters. | |
7420 | ||
bbb0eef6 JK |
7421 | 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
7422 | Chandru <chandru@in.ibm.com> | |
7423 | ||
7424 | * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. | |
7425 | * valarith.c (value_subscripted_rvalue): Suppress error if | |
7426 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
7427 | ||
46956e39 HZ |
7428 | 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org> |
7429 | ||
7430 | * linux-record.c (record_linux_msghdr): Remove unintended semicolons. | |
7431 | ||
b8d088ac JB |
7432 | 2010-03-16 Joel Brobecker <brobecker@adacore.com> |
7433 | ||
7434 | * ada-tasks.c (task_command_1): Check that the task ptid is valid | |
7435 | before doing the associated thread switch. | |
7436 | ||
322be962 DJ |
7437 | 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com> |
7438 | ||
7439 | * MAINTAINERS: Update my email address. | |
7440 | ||
8cdf0e15 VP |
7441 | 2010-03-16 Vladimir Prus <vladimir@codesourcery.com> |
7442 | ||
7443 | Simplify MI breakpoint setting. | |
7444 | ||
7445 | * breakpoint.c (break_command_really): Make nonstatic and | |
7446 | rename to... | |
7447 | (create_breakpoint): ...this. Rename prior function by this name | |
7448 | to... | |
7449 | (create_breakpoint_sal): ...this. | |
7450 | (create_breakpoints): Rename to... | |
7451 | (create_breakpoints_sal): ...this. | |
7452 | (set_breakpoint): Remove. | |
7453 | * breakpoint.h: Adjust to above changes. | |
7454 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify. | |
7455 | ||
b6e7192f SS |
7456 | 2010-03-15 Stan Shebs <stan@codesourcery.com> |
7457 | ||
7458 | * ax-gdb.c: Include cp-support.h. | |
7459 | (find_field): Remove. | |
7460 | (gen_primitive_field): New function. | |
7461 | (gen_struct_ref_recursive): New function. | |
7462 | (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead | |
7463 | of find_field. | |
7464 | (gen_static_field): New function. | |
7465 | (gen_struct_elt_for_reference): New. | |
7466 | (gen_namespace_elt): New. | |
7467 | (gen_maybe_namespace_elt): New. | |
7468 | (gen_aggregate_elt_ref): New. | |
7469 | (gen_expr): Add OP_SCOPE, display opcode name in error message. | |
7470 | ||
1054b214 TT |
7471 | 2010-03-15 Tom Tromey <tromey@redhat.com> |
7472 | ||
7473 | * dwarf2read.c (die_needs_namespace): Also return 0 for | |
7474 | DW_TAG_subprogram. | |
7475 | ||
13387711 SW |
7476 | 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com> |
7477 | ||
7478 | PR c++/7936: | |
7479 | * cp-support.h: Added char *declaration element to using_direct | |
7480 | data struct. | |
7481 | (cp_add_using): Added char *declaration argument. | |
7482 | (cp_add_using_directive): Ditto. | |
7483 | (cp_lookup_symbol_imports): made extern. | |
7484 | * cp-namespace.c: Updated with the above changes. | |
7485 | * dwarf2read.c (read_import_statement): Ditto. | |
7486 | (read_namespace): Ditto. | |
7487 | (read_import_statement): Support import declarations. | |
7488 | * cp-namespace.c (cp_lookup_symbol_imports): Check for imported | |
7489 | declarations. | |
7490 | Added support for 'declaration_only' search. | |
7491 | (cp_lookup_symbol_namespace): Attempt to search for the name as | |
7492 | is before consideration of imports. | |
7493 | * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' | |
7494 | search at every block level search. | |
7495 | Now takes language argument. | |
7496 | (lookup_symbol_aux): Updated. | |
7497 | ||
6e31430b TT |
7498 | 2010-03-15 Tom Tromey <tromey@redhat.com> |
7499 | ||
7500 | * c-exp.y (name_not_typename): Add 'operator' clause. | |
7501 | ||
4dea3bb7 | 7502 | 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change) |
bf307134 JB |
7503 | |
7504 | * configure.ac: Exit if ${gdb_target_obs}" is not set. | |
7505 | * configure: Regenerate. | |
7506 | ||
4d9743af JK |
7507 | 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
7508 | ||
7509 | * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" | |
7510 | and ".sdynbss". Update the comment. | |
7511 | ||
f75150fe JZ |
7512 | 2010-03-15 Jie Zhang <jie@codesourcery.com> |
7513 | ||
7514 | * MAINTAINERS: Update my email address. | |
7515 | ||
3c13bc11 DJ |
7516 | 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
7517 | ||
7518 | * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. | |
7519 | ||
43484f03 DJ |
7520 | 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
7521 | ||
7522 | * charset.c [USE_WIN32API]: Include <windows.h>. | |
7523 | (_initialize_charset): Correct type of w32_host_default_charset. | |
7524 | ||
5f25d77d PA |
7525 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
7526 | ||
7527 | * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. | |
7528 | ||
1c809c68 TT |
7529 | 2010-03-12 Tom Tromey <tromey@redhat.com> |
7530 | ||
7531 | PR c++/9708: | |
7532 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable | |
7533 | in a lexical block does not need a namespace. | |
7534 | (new_symbol) <DW_TAG_variable>: Put extern variables on | |
7535 | list_in_scope in all cases. | |
7536 | ||
948103cf SS |
7537 | 2010-03-12 Stan Shebs <stan@codesourcery.com> |
7538 | ||
7539 | * ax-gdb.c (gen_expr): Add shift expressions. | |
7540 | (gen_expr_binop_rest): Ditto. | |
7541 | ||
00ae8fef SW |
7542 | 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com> |
7543 | ||
7544 | * buildsym.c (finish_block): Reset using_directives pointer | |
7545 | after block initialization. | |
7546 | ||
9cad29ac L |
7547 | 2010-03-12 H.J. Lu <hongjiu.lu@intel.com> |
7548 | ||
7549 | * amd64-tdep.c (amd64_word_names): Replace "sp" with "". | |
7550 | * i386-tdep.c (i386_word_names): Likewise. | |
7551 | ||
2f4d8875 PA |
7552 | 2010-03-12 Pedro Alves <pedro@codesourcery.com> |
7553 | ||
7554 | * target.c (memory_xfer_partial): Don't use the stack cache if | |
7555 | inspecting trace frames. | |
7556 | * tracepoint.c (finish_tfind_command): Invalidate the target | |
7557 | dcache. | |
7558 | ||
ccf26247 JK |
7559 | 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
7560 | ||
7561 | * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered | |
7562 | for the PIC displacement, print also the displacement value. | |
7563 | (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. | |
7564 | ||
477c84a7 KB |
7565 | 2010-03-10 Kevin Buettner <kevinb@redhat.com> |
7566 | ||
7567 | * remote-mips.c (close_ports, mips_initialize_cleanups) | |
7568 | (mips_exit_cleanups, mips_send_command, mips_open, pmon_open) | |
7569 | (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint) | |
7570 | (mips_stopped_by_watchpoint, send_srec, pmon_checkset) | |
7571 | (pmon_make_fastrec, pmon_check_ack, mips_expect_download) | |
7572 | (pmon_check_entry_address, pmon_check_total, pmon_end_download) | |
7573 | (pmon_download, pmon_load_fast, _initialize_remote_mips): Add | |
7574 | comments describing each of these functions. | |
7575 | (mips_enter_debug, mips_exit_debug, common_open) | |
7576 | (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add | |
7577 | blank line after the comment describing the function. | |
7578 | ||
01c30d6e JK |
7579 | 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
7580 | ||
7581 | * solib-svr4.c (svr4_exec_displacement): Return now success, new | |
7582 | parameter displacementp. Update comment. | |
7583 | (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS | |
7584 | element exists. Return if svr4_exec_displacement was not successful. | |
7585 | Update comment. | |
7586 | ||
09919ac2 JK |
7587 | 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
7588 | Daniel Jacobowitz <dan@codesourcery.com> | |
7589 | ||
7590 | * solib-svr4.c (read_program_header): Support type == -1 to read | |
7591 | all program headers. | |
7592 | (read_program_headers_from_bfd): New function. | |
7593 | (svr4_static_exec_displacement): Remove and move the comment ... | |
7594 | (svr4_exec_displacement): ... here. Remove variable found. New | |
7595 | variable displacement. Check also DYNAMIC. Verify DISPLACEMENT | |
7596 | alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF | |
7597 | targets using read_program_headers_from_bfd. Remove the call of | |
7598 | svr4_static_exec_displacement. | |
7599 | ||
d146bf1e TT |
7600 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
7601 | ||
7602 | * dwarf2read.c (struct pubnames_header): Remove. | |
7603 | (_PUBNAMES_HEADER): Remove. | |
7604 | (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove. | |
7605 | (struct aranges_header): Remove. | |
7606 | (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove. | |
7607 | (struct dwarf2_per_objfile) <pubnames, aranges>: Remove. | |
7608 | (PUBNAMES_SECTION): Remove. | |
7609 | (ARANGES_SECTION): Remove. | |
7610 | (dwarf2_locate_sections): Don't handle pubnames or aranges. | |
7611 | (dwarf2_build_psymtabs): Remove dead code. | |
7612 | (dwarf2_build_psymtabs_easy): Remove. | |
7613 | ||
be391dca TT |
7614 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
7615 | ||
7616 | * elfread.c (elf_symfile_read): Don't call | |
7617 | dwarf2_build_frame_info. | |
7618 | * dwarf2read.c (struct dwarf2_section_info) <readin>: New field. | |
7619 | (struct dwarf2_per_objfile) <objfile>: New field. | |
7620 | (dwarf2_has_info): Now idempotent. Set objfile field. | |
7621 | (dwarf2_read_section): Check and set readin field. Call | |
7622 | posix_madvise. | |
7623 | (dwarf2_build_psymtabs): Don't read all sections. | |
7624 | (read_type_comp_unit_head): Read types section. | |
7625 | (create_debug_types_hash_table): Likewise. | |
7626 | (init_cu_die_reader): Add asserts. | |
7627 | (process_type_comp_unit): Add assert. | |
7628 | (dwarf2_build_psymtabs_hard): Read info section. | |
7629 | (load_partial_comp_unit): Add assert. | |
7630 | (create_all_comp_units): Read info section. | |
7631 | (load_full_comp_unit): Likewise. | |
7632 | (dwarf2_ranges_read): Read ranges section. | |
7633 | (dwarf2_record_block_ranges): Add assert. | |
7634 | (dwarf2_read_abbrevs): Read abbrev section. | |
7635 | (read_indirect_string): Read str section. | |
7636 | (dwarf_decode_line_header): Read line section. | |
7637 | (read_signatured_type_at_offset): Read types section. | |
7638 | (dwarf_decode_macros): Read macinfo section. | |
7639 | (dwarf2_symbol_mark_computed): Read loc section. | |
7640 | * dwarf2-frame.c (dwarf2_frame_find_fde): Call | |
7641 | dwarf2_build_frame_info. | |
7642 | (dwarf2_build_frame_info): Unconditionally set | |
7643 | dwarf2_frame_objfile_data on the objfile. | |
7644 | * configure.ac: Check for posix_madvise. | |
7645 | * config.in, configure: Rebuild. | |
7646 | ||
ccefe4c4 TT |
7647 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
7648 | ||
e38df1d0 TT |
7649 | * xcoffread.c (xcoff_start_psymtab): Update. |
7650 | (xcoff_end_psymtab): Update. | |
7651 | * psymtab.c (allocate_psymtab): Remove dead code. | |
7652 | * psympriv.h (struct partial_symtab) <read_symtab_private>: Now | |
7653 | void*. | |
7654 | * mdebugread.c (parse_partial_symbols): Update. | |
7655 | (new_psymtab): Likewise. | |
7656 | * dwarf2read.c (process_psymtab_comp_unit): Update. | |
7657 | (psymtab_to_symtab_1): Update. | |
7658 | * dbxread.c (start_psymtab): Update. | |
7659 | (end_psymtab): Likewise. | |
7660 | ||
be391dca | 7661 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
e38df1d0 | 7662 | |
ccefe4c4 TT |
7663 | * xcoffread.c: Include psymtab.h. |
7664 | (xcoff_sym_fns): Update. | |
7665 | * symtab.h (struct partial_symbol): Remove. | |
7666 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove. | |
7667 | (struct partial_symtab): Remove. | |
7668 | (PSYMTAB_TO_SYMTAB): Remove. | |
7669 | (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab) | |
7670 | (find_pc_sect_psymtab): Remove. | |
7671 | (find_pc_sect_symtab_via_partial): Declare. | |
7672 | (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab) | |
7673 | (find_main_psymtab): Remove. | |
7674 | (find_main_filename): Declare. | |
7675 | (fixup_psymbol_section): Remove. | |
7676 | (fixup_section): Declare. | |
7677 | * symtab.c: Include psymtab.h. | |
7678 | (lookup_symtab): Use lookup_symtab method. | |
7679 | (lookup_partial_symtab): Remove. | |
7680 | (find_pc_sect_psymtab_closer): Remove. | |
7681 | (find_pc_sect_psymtab): Remove. | |
7682 | (find_pc_sect_symtab_via_partial): New function. | |
7683 | (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove. | |
7684 | (fixup_section): No longer static. | |
7685 | (fixup_psymbol_section): Remove. | |
7686 | (lookup_symbol_aux): Use lookup_symbol_aux_quick. | |
7687 | (lookup_global_symbol_from_objfile): Likewise. | |
7688 | (lookup_symbol_aux_psymtabs): Remove. | |
7689 | (lookup_symbol_aux_quick): New function. | |
7690 | (lookup_symbol_global): Use lookup_symbol_aux_quick. | |
7691 | (lookup_partial_symbol): Remove. | |
7692 | (basic_lookup_transparent_type_quick): New function. | |
7693 | (basic_lookup_transparent_type): Use it. | |
7694 | (find_main_psymtab): Remove. | |
7695 | (find_main_filename): New function. | |
7696 | (find_pc_sect_symtab): Use find_pc_sect_symtab method. | |
7697 | (find_line_symtab): Use expand_symtabs_with_filename method. | |
7698 | (output_partial_symbol_filename): New function. | |
7699 | (sources_info): Use map_partial_symbol_filenames. | |
7700 | (struct search_symbols_data): New type. | |
7701 | (search_symbols_file_matches): New function. | |
7702 | (search_symbols_name_matches): Likewise. | |
7703 | (search_symbols): Use expand_symtabs_matching method. | |
7704 | (struct add_name_data): Rename from add_macro_name_data. | |
7705 | (add_macro_name): Update. | |
7706 | (add_partial_symbol_name): New function. | |
7707 | (default_make_symbol_completion_list): Use | |
7708 | map_partial_symbol_names. | |
7709 | (struct add_partial_symbol_name): New type. | |
7710 | (maybe_add_partial_symtab_filename): New function. | |
7711 | (make_source_files_completion_list): Use | |
7712 | map_partial_symbol_filenames. | |
7713 | (expand_line_sal): Use expand_symtabs_with_filename method. | |
7714 | * symmisc.c: Include psymtab.h. | |
7715 | (print_objfile_statistics): Use print_stats method. | |
7716 | (dump_objfile): Use dump method. | |
7717 | (dump_psymtab, maintenance_print_psymbols) | |
7718 | (maintenance_info_psymtabs, maintenance_check_symtabs) | |
7719 | (extend_psymbol_list): Remove. | |
7720 | * symfile.h (struct quick_symbol_functions): New struct. | |
7721 | (struct sym_fns) <qf>: New field. | |
7722 | (sort_pst_symbols): Remove. | |
7723 | (increment_reading_symtab): Declare. | |
7724 | * symfile.c: Include psymtab.h. | |
7725 | (compare_psymbols, sort_pst_symbols): Remove. | |
7726 | (psymtab_to_symtab): Remove. | |
7727 | (increment_reading_symtab): New function. | |
7728 | (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs | |
7729 | method. | |
7730 | (set_initial_language): Use find_main_filename. | |
7731 | (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove. | |
7732 | (free_named_symtabs): Remove unused code. | |
7733 | (start_psymtab_common, add_psymbol_to_bcache) | |
7734 | (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list): | |
7735 | Remove. | |
7736 | * stack.c: Include psymtab.h, symfile.h. | |
7737 | (backtrace_command_1): Use find_pc_sect_symtab_via_partial. | |
7738 | * source.h (psymtab_to_fullname): Don't declare. | |
7739 | * source.c: Include psymtab.h. | |
7740 | (select_source_symtab): Use find_last_source_symtab method. | |
7741 | (forget_cached_source_info): Use forget_cached_source_info | |
7742 | method. | |
7743 | (find_and_open_source): No longer static. | |
7744 | (psymtab_to_fullname): Remove. | |
7745 | * somread.c: Include psymtab.h. | |
7746 | (som_sym_fns): Update. | |
7747 | * psympriv.h: New file. | |
7748 | * psymtab.h: New file. | |
7749 | * psymtab.c: New file. | |
7750 | * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove. | |
7751 | (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise. | |
7752 | * objfiles.c: Include psymtab.h. | |
7753 | (objfile_relocate1): Use relocate method. | |
7754 | (objfile_has_partial_symbols): Use has_symbols method. | |
7755 | * mipsread.c: Include psymtab.h. | |
7756 | (ecoff_sym_fns): Update. | |
7757 | * mi/mi-cmd-file.c: Include psymtab.h. | |
7758 | (print_partial_file_name): New function. | |
7759 | (mi_cmd_file_list_exec_source_files): Use | |
7760 | map_partial_symbol_filenames. | |
7761 | * mdebugread.c: Include psympriv.h. | |
7762 | * machoread.c: Include psympriv.h. | |
7763 | (macho_sym_fns): Update. | |
7764 | * m2-exp.y (yylex): Use lookup_symtab. | |
7765 | * elfread.c: Include psympriv.h. | |
7766 | (elf_sym_fns): Update. | |
7767 | * dwarf2read.c: Include psympriv.h. | |
7768 | * dbxread.c: Include psympriv.h. | |
7769 | (aout_sym_fns): Update. | |
7770 | * cp-support.c: Include psymtab.h. | |
7771 | (read_in_psymtabs): Remove. | |
7772 | (make_symbol_overload_list_qualified): Use | |
7773 | expand_symtabs_for_function method. | |
7774 | * coffread.c: Include psympriv.h. | |
7775 | (coff_sym_fns): Update. | |
7776 | * blockframe.c: Include psymtab.h. | |
7777 | (find_pc_partial_function): Use find_pc_sect_symtab method. | |
7778 | * ada-lang.h (ada_update_initial_language): Update. | |
7779 | * ada-lang.c: Include psymtab.h. | |
7780 | (ada_update_initial_language): Remove 'main_pst' argument. | |
7781 | (ada_lookup_partial_symbol): Remove. | |
7782 | (struct ada_psym_data): New type. | |
7783 | (ada_add_psyms): New function. | |
7784 | (ada_add_non_local_symbols): Use map_ada_symtabs method. | |
7785 | (struct add_partial_datum): New type. | |
7786 | (ada_add_partial_symbol_completions): New function. | |
7787 | (ada_make_symbol_completion_list): Use map_partial_symbol_names. | |
7788 | (ada_exception_support_info_sniffer): Update. | |
7789 | * Makefile.in (SFILES): Add psymtab.c. | |
7790 | (COMMON_OBS): Add psymtab.o. | |
7791 | (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h. | |
7792 | ||
7d8500b7 PM |
7793 | 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr> |
7794 | ||
7795 | * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. | |
7796 | ||
c0cc3a76 SW |
7797 | 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com> |
7798 | ||
7799 | PR C++/11236: | |
7800 | * cp-namespace.c (cp_add_using): Deleted. | |
7801 | (cp_add_using_directive): Use obstack allocations. | |
7802 | Merged the function cp_add_using into this one. | |
7803 | Added 'struct obstack *' argument. | |
7804 | (cp_scan_for_anonymous_namespaces): Updated. | |
7805 | * cp-support.h: Updated. | |
7806 | * dwarf2read.c (read_import_statement): Updated. | |
7807 | (read_namespace): Updated. | |
7808 | ||
452fa064 CF |
7809 | 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr> |
7810 | ||
7811 | * windows-nat.c (cygwin_conv_path): Remove old macro. | |
7812 | ||
60e1c644 PA |
7813 | 2010-03-10 Pedro Alves <pedro@codesourcery.com> |
7814 | ||
7815 | * breakpoint.c (condition_command): Handle watchpoint conditions. | |
7816 | (is_hardware_watchpoint): Add comment. | |
7817 | (is_watchpoint): New. | |
7818 | (update_watchpoint): Don't reparse the watchpoint's condition | |
7819 | unless necessary. | |
7820 | (WP_IGNORE): New. | |
7821 | (watchpoint_check): Use it. | |
7822 | (bpstat_check_watchpoint): Handle it. | |
7823 | (bpstat_check_breakpoint_conditions): Evaluate watchpoint local | |
7824 | conditions in a frame where it makes sense. | |
7825 | (watch_command_1): Store the innermost block of the condition | |
7826 | expression. | |
7827 | (delete_breakpoint): Delete the watchpoint condition expression. | |
7828 | * breakpoint.h (struct bp_location) <cond>: Update comment. | |
7829 | (struct breakpoint): New field `cond_exp_valid_block'. | |
7830 | ||
af6b7be1 JB |
7831 | 2010-03-09 Joel Brobecker <brobecker@adacore.com> |
7832 | ||
7833 | Adjust handling of Ada DIEs after dwarf2_physname patch. | |
7834 | * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs. | |
7835 | ||
60c5c021 CF |
7836 | 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx> |
7837 | Pierre Muller <muller@ics.u-strasbg.fr> | |
7838 | ||
7839 | * windows-nat.c (cygwin_conv_path): Redefine to properly convert | |
7840 | from/to posix/win32. | |
7841 | (windows_make_so): Use non-Cygwin 1.7 specific function. | |
7842 | (windows_create_inferior): Make sure that cygallargs points to | |
7843 | original args in non Cygwin 1.7. case. | |
7844 | ||
60a1502a MS |
7845 | 2010-03-09 Michael Snyder <msnyder@vmware.com> |
7846 | ||
7847 | * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int | |
7848 | after target_read_memory to get host byte order. | |
7849 | (i386_process_record): Ditto. | |
7850 | ||
94af9270 KS |
7851 | 2010-03-09 Keith Seitz <keiths@redhat.com> |
7852 | ||
7853 | Based on work from Daniel Jacobowitz <dan@codesourcery.com> | |
7854 | * c-typeprint.c (cp_type_print_method_args): For non-static methods, | |
7855 | print out const or volatile qualifiers, too. | |
7856 | (c_type_print_args): Add parameters show_artificial and language. | |
7857 | Skip artificial parameters when requested. | |
7858 | Use the appropriate language printer. | |
7859 | (c_type_print_varspec): Tell c_type_print_args to skip artificial | |
7860 | parameters and pass language_c. | |
7861 | * dwarf2read.c (die_list): New file global. | |
7862 | (struct partial_die_info): Update comments for name field. | |
7863 | (pdi_needs_namespace): Renamed to ... | |
7864 | (die_needs_namespace): ... this. Rewrite. | |
7865 | (dwarf2_linkage_name): Remove. | |
7866 | (add_partial_symbol): Do not predicate the call to | |
7867 | partial_die_full_name based on pdi_needs_namespace. | |
7868 | Remove call to cp_check_possible_namespace_symbols and associated | |
7869 | outdated comments. | |
7870 | (guess_structure_name): Do not inspect child subprogram DIEs. | |
7871 | (dwarf2_fullname): Update comments. | |
7872 | Use die_needs_namespace to assist in computing the name. | |
7873 | (read_func_scope): Use dwarf2_name to get the DIE's name. | |
7874 | Use dwarf2_physname to get the "linkage name" of the DIE. | |
7875 | (dwarf2_add_member_field): Use dwarf2_physname instead of | |
7876 | dwarf2_linkage_name. | |
7877 | (read_structure_type): For structs and classes, set TYPE_NAME, too. | |
7878 | (determine_class): Remove. | |
7879 | (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages | |
7880 | except Ada. | |
7881 | (new_symbol): Unconditionally call dwarf2_name. | |
7882 | Compute the "linkage name" using dwarf2_physname. | |
7883 | Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs. | |
7884 | When determining to scan for anonymous C++ namespaces, ignore | |
7885 | the linkage name. | |
7886 | (dwarf2_physname): New function. | |
7887 | (dwarf2_full_name): Move content to new function and call | |
7888 | that. | |
7889 | (dwarf2_compute_name): "New" function. | |
7890 | (_initialize_dwarf2_read): Initialize die_list. | |
7891 | * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable | |
7892 | physname. | |
7893 | (gnu_v3_print_method_ptr): Use the physname for virtual methods | |
7894 | without a demangled name. | |
7895 | Print out type information for non-virtual methods. | |
c8d5aac9 | 7896 | * linespec.c (decode_line_1): Force ANY string using "::" (or |
94af9270 | 7897 | "." for java) to use decode_compound, and clean up any stray quoting. |
c8d5aac9 L |
7898 | If we found a file symtab, re-evaluate whether the remainder is_quoted. |
7899 | (decode_compound): Stop consuming at an open parenthesis. | |
7900 | Keep template parameters. | |
7901 | Keep any overload information. | |
7902 | Keep keywords like "const". | |
7903 | Remove paren_pointer. | |
7904 | Move is_quoted check from set_flags to here. | |
7905 | Remove #if 0 code from 2000. Ten years is long enough. | |
7906 | (find_method): Before comparing symbol names, canonicalize the string | |
7907 | from the user. | |
7908 | If a specific overload is requested, find it. Otherwise throw an error. | |
94af9270 KS |
7909 | (find_method_overload_end): New function. |
7910 | (set_flags): Remove. | |
c8d5aac9 L |
7911 | (decode_compound): Assume that parentheses are matched. |
7912 | It's a lot easier. | |
94af9270 KS |
7913 | * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag |
7914 | to cplus_demangle. | |
7915 | * linespec.c (decode_line_1): Keep important keywords like | |
7916 | "const" and "volatile". | |
7917 | * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove. | |
7918 | * typeprint.h (c_type_print_args): Add declaration. | |
7919 | * ui-file.c (do_ui_file_obsavestring): New function. | |
7920 | (ui_file_obsavestring): New function. | |
7921 | * ui-file.h (ui_file_obsavestring): Add declaration. | |
7922 | * valops.c (find_overload_match): Resolve the object to | |
7923 | a non-pointer type. | |
7924 | If the object is a data member, search the object for the member | |
7925 | and return with staticp set. | |
7926 | Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME. | |
7927 | Do not attempt to extract a function name from non-function types. | |
7928 | If the extracted function name and the original name are the same, | |
7929 | we don't have a C++ method. | |
7930 | ||
8d95cc3b PA |
7931 | From Jan Kratochvil <jan.kratochvil@redhat.com>: |
7932 | * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name. | |
94af9270 KS |
7933 | |
7934 | * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters | |
7935 | and arguments from symbol lookups. | |
7936 | * ax-gdb.c (gen_expr): Likewise. | |
7937 | * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope, | |
7938 | cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type, | |
7939 | lookup_possible_namespace_symbol): Likewise. | |
7940 | * cp-support.c (read_in_psymtabs): Likewise. | |
7941 | * cp-support.h (cp_lookup_symbol_nonlocal): Likewise. | |
7942 | * language.h (la_lookup_symbol_nonlocal): Likewise. | |
7943 | * scm-valprint.c (scm_inferior_print): Likewise. | |
7944 | * solib-darwin.c (darwin_relocate_section_addresses): Likewise. | |
7945 | * solib-svr.c (elf_lookup_lib): Likewise. | |
7946 | * solib.c (show_auto_solib_add): Likewise. | |
7947 | * solist.h (lookup_lib_global, solib_global_lookup): Likewise. | |
7948 | * symmisc.c (maintenance_check_symtabs): Likewise. | |
7949 | * symtab.c (lookup_symbol_in_language, lookup_symbol_aux, | |
7950 | lookup_symbol_aux_local, lookup_symbol_aux_block, | |
7951 | lookup_symbol_from_objfile, lookup_symbol_aux_symtabs, | |
7952 | lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal, | |
7953 | lookup_symbol_static, lookup_symbol_global, symbol_matches_domain, | |
7954 | basic_lookup_transparent_type, find_main_psymtab, | |
7955 | lookup_block_symbol): Likewise. | |
7956 | * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static, | |
7957 | lookup_symbol_global, lookup_symbol_aux_block, | |
7958 | lookup_symbol_partial_symbol, lookup_block_symbol, | |
7959 | lookup_global_symbol, value_maybe_namespace_elt): Likewise. | |
7960 | ||
9cb74f47 PM |
7961 | 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr> |
7962 | ||
7963 | * python/python-internal.h: Include symtab.h. | |
7964 | ||
af6b7be1 JB |
7965 | 2010-03-09 Joel Brobecker <brobecker@adacore.com> |
7966 | Pierre Muller <muller@ics.u-strasbg.fr> | |
e13eedd5 PM |
7967 | |
7968 | * p-lang.c (is_pascal_string_type): Remove unneeded parentheses. | |
7969 | * p-valprint.c (pascal_val_print): Remove undeed block and fix | |
7970 | indentation. | |
7971 | ||
bad56014 TT |
7972 | 2010-03-08 Tom Tromey <tromey@redhat.com> |
7973 | ||
7974 | * breakpoint.c (breakpoint_1): Add "QUIT". | |
7975 | ||
08105857 PA |
7976 | 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com> |
7977 | Pedro Alves <pedro@codesourcery.com> | |
7978 | ||
7979 | * solib.c (solib_find): Replace extension if | |
7980 | solib_symbols_extension is set in the target gdbarch. | |
7981 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
7982 | solib_symbols_extension to "sym". | |
7983 | * gdbarch.sh (solib_symbols_extension): New variable. | |
7984 | (pstring): New function. | |
7985 | * gdbarch.h, gdbarch.c: Regenerate. | |
7986 | ||
7c953934 TT |
7987 | 2010-03-08 Tom Tromey <tromey@redhat.com> |
7988 | ||
7989 | PR cli/9591: | |
7990 | * NEWS: Update. | |
7991 | * utils.c: Include main.h. | |
7992 | (fputs_maybe_filtered): Don't paginate if `batch_flag'. | |
7993 | (defaulted_query): Use default answer if `batch_flag'. | |
7994 | * main.h (batch_flag): Declare. | |
7995 | * main.c (batch_flag): New global. | |
7996 | (captured_main): Remove 'batch'. Update. | |
7997 | ||
bbd2783e KB |
7998 | 2010-03-08 Kevin Buettner <kevinb@redhat.com> |
7999 | ||
8000 | From Richard Sandiford, Martin M. Hunt, Corinna Vinschen, | |
8001 | and Kevin Buettner: | |
8002 | ||
8003 | * remote-mips.c (rockhopper_ops): New target_ops struct. | |
8004 | (MON_ROCKHOPPER): New mips_monitor_type. | |
8005 | (read_hex_value): New function. | |
8006 | (mips_request): Send 8-byte values with a 'T' packet. Read the | |
8d95cc3b | 8007 | packet argument as a string and use read_hex_value to parse it. |
bbd2783e KB |
8008 | (mips_exit_debug): Wait for response when using MON_ROCKHOPPER. |
8009 | (rockhopper_open): New function. | |
8010 | (mips_wait): Read the PC, FP and SP fields as strings. Use | |
8011 | read_hex_value to parse them and mips_set_register to commit them. | |
8012 | (mips_set_register): New function. | |
8013 | (mips_fetch_registers): Do not cast register value to "unsigned" | |
8014 | when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register. | |
8015 | (mips_store_registers): Use a 'T' packet to set registers when | |
8016 | using MON_ROCKHOPPER. | |
8017 | (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER | |
8018 | and expect the total to be printed before the entry address. | |
8019 | (_initialize_remote_mips): Initialize and add rockhopper_ops. | |
8020 | ||
566f3d17 KB |
8021 | 2010-03-08 Kevin Buettner <kevinb@redhat.com> |
8022 | ||
8023 | * remote-mips.c (mips_fetch_word): Add new parameter, `valp'. | |
8024 | Change return value to int. Store value fetched in location | |
8025 | addressed by `val'. Use function's return value as success | |
8026 | or failure indicator. Adjust all callers. | |
8027 | ||
9c8ee2ab | 8028 | 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr> |
f72d4b77 PM |
8029 | |
8030 | * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. | |
8031 | ||
7155de5a HZ |
8032 | 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
8033 | Hui Zhu <teawater@gmail.com> | |
8034 | ||
8035 | * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and | |
8036 | tmp_to_stopped_data_address. | |
8037 | (record_open): Reset tmp_to_stopped_by_watchpoint and | |
8038 | tmp_to_stopped_data_address. | |
8039 | * target.c (init_dummy_target): Add to_stopped_by_watchpoint and | |
8040 | to_stopped_data_address. | |
8041 | ||
580879fc HZ |
8042 | 2010-03-08 Hui Zhu <teawater@gmail.com> |
8043 | ||
8044 | * i386-tdep.c (i386_process_record): Initialize regnum. | |
8045 | ||
b0fcb67f JK |
8046 | 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
8047 | ||
8048 | * symfile.c (addr_info_make_relative): New variable sect_name, use it. | |
8049 | Do not warn on ".gnu.liblist" and ".gnu.conflict". | |
8050 | ||
08597104 JB |
8051 | 2010-03-08 Joel Brobecker <brobecker@adacore.com> |
8052 | ||
8053 | Memory error when reading wrong core file. | |
8054 | * solib-svr4.c (solib_svr4_r_map): catch and print all exception | |
8055 | errors while reading the inferior memory, and return zero if | |
8056 | an exception was raised. | |
8057 | ||
425b824a MS |
8058 | 2010-03-07 Michael Snyder <msnyder@vmware.com> |
8059 | ||
ec6dbf37 MS |
8060 | * record.c (record_restore): Rename tmpu8 to rectype. |
8061 | ||
648d0c8b MS |
8062 | * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables |
8063 | tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. | |
8064 | ||
8065 | (i386_record_push): Rename local tmpulongest to addr. | |
8066 | ||
8067 | (i386_process_record): Rename local tmpulongest to addr. | |
8068 | ||
8069 | Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, | |
8070 | addr64. | |
955db0c0 MS |
8071 | |
8072 | Rename local variable tmpu8 to opcode8 and regnum. | |
425b824a | 8073 | |
10760264 JB |
8074 | 2010-03-07 Joel Brobecker <brobecker@adacore.com> |
8075 | ||
8076 | * remote.c (remote_get_ada_task_ptid): New function. | |
c8d5aac9 | 8077 | (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. |
10760264 | 8078 | |
b3c613f2 CF |
8079 | 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx> |
8080 | ||
8081 | * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one | |
8082 | block. Define helper macros to reduce ifdefs in code. | |
8083 | (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer | |
8084 | size. Call unadorned GetModuleFileNameEx rather than | |
8085 | GetModuleFileNameEx*. | |
8086 | (windows_make_so): Use __PMAX to denote maximum buffer size and | |
8087 | cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as | |
8088 | appropriate. | |
8089 | (get_image_name): Use __PMAX to denote maximum buffer size. | |
8090 | (handle_load_dll): Likewise. | |
8091 | (windows_pid_to_exec_file): Likewise. | |
8092 | (windows_create_inferior): Add many accommodations for older Cygwin and | |
8093 | non-Cygwin. | |
8094 | (bad_GetModuleFileNameExW): Control inclusion of this function based on | |
8095 | __USEWIDE conditional. | |
8096 | (bad_GetModuleFileNameExA): Likewise. | |
8097 | (_initialize_loadable): Just use real function names without the dyn_ | |
8098 | part since they are defined earlier. | |
8099 | ||
f870a310 TT |
8100 | 2010-03-05 Corinna Vinschen <vinschen@redhat.com> |
8101 | Tom Tromey <tromey@redhat.com> | |
8102 | ||
8103 | * utils.c (host_char_to_target): Add 'gdbarch' argument. | |
8104 | (parse_escape): Likewise. | |
8105 | * python/py-utils.c (unicode_to_target_string): Update. | |
8106 | (unicode_to_target_python_string): Update. | |
8107 | (target_string_to_unicode): Update. | |
8108 | * printcmd.c (printf_command): Update. | |
8109 | * p-exp.y (yylex): Update. | |
8110 | * objc-exp.y (yylex): Update. | |
8111 | * mi/mi-parse.c: Include charset.h. | |
8112 | (mi_parse_escape): New function. | |
8113 | (mi_parse_argv): Use it. | |
8114 | * jv-exp.y (yylex): Update. | |
8115 | * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New | |
8116 | function. | |
8117 | (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. | |
8118 | * gdbarch.sh (auto_charset, auto_wide_charset): New. | |
8119 | * gdbarch.c: Rebuild. | |
8120 | * gdbarch.h: Rebuild. | |
8121 | * defs.h (parse_escape): Update. | |
8122 | * cli/cli-setshow.c: Include arch-utils.h. | |
8123 | (do_setshow_command): Update. | |
8124 | * cli/cli-cmds.c (echo_command): Update. | |
8125 | * charset.h (target_charset, target_wide_charset): Update. | |
8126 | * charset.c: Include arch-utils.h. | |
8127 | (target_charset_name): Default to "auto". | |
8128 | (target_wide_charset_name): Likewise. | |
8129 | (show_target_charset_name): Handle "auto". | |
8130 | (show_target_wide_charset_name): Likewise. | |
8131 | (be_le_arch): New global. | |
8132 | (set_be_le_names): Add 'gdbarch' argument. | |
8133 | (validate): Likewise. Don't call set_be_le_names. | |
8134 | (set_charset_sfunc, set_host_charset_sfunc) | |
8135 | (set_target_charset_sfunc, set_target_wide_charset_sfunc): | |
8136 | Update. | |
8137 | (target_charset): Add 'gdbarch' argument. | |
8138 | (target_wide_charset): Likewise. Remove 'byte_order' argument. | |
8139 | (auto_target_charset_name): New global. | |
8140 | (default_auto_charset, default_auto_wide_charset): New functions. | |
8141 | (_initialize_charset): Set auto_target_charset_name. Allow "auto" | |
8142 | for target charsets. Copy result of nl_langinfo. Use GetACP if | |
8143 | USE_WIN32API. | |
8144 | * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, | |
8145 | remove 'byte_order' argument. Update. | |
8146 | (classify_type): Likewise. | |
8147 | (c_emit_char): Update. | |
8148 | (c_printchar): Update. | |
8149 | (c_printstr): Update. | |
8150 | (c_get_string): Update. | |
8151 | (evaluate_subexp_c): Update. | |
8152 | * arch-utils.h (default_auto_charset, default_auto_wide_charset): | |
8153 | Declare. | |
8154 | * python/python.c (gdbpy_target_charset): New function. | |
8155 | (gdbpy_target_wide_charset): Likewise. | |
8156 | (GdbMethods): Update. | |
8157 | * NEWS: Update. | |
8158 | ||
4e7386b0 UW |
8159 | 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> |
8160 | ||
8161 | * symfile.c (build_section_addr_info_from_objfile): Do not mask | |
8162 | off high address bits. | |
8163 | ||
aab48ede UW |
8164 | 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> |
8165 | ||
8166 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract | |
8167 | address as UnsignedLongLong, not LongLong. | |
8168 | ||
8eeafb51 | 8169 | 2010-03-05 Kevin Buettner <kevinb@redhat.com> |
c8d5aac9 | 8170 | Pedro Alves <pedro@codesourcery.com> |
8eeafb51 KB |
8171 | |
8172 | * remote-mips.c (gdbthread.h): Include. | |
8173 | (remote_mips_ptid): Declare. | |
8174 | (mips_error): Only mourn the inferior when inferior_ptid is non-null. | |
8175 | (common_open): Set inferior_ptid, add it as an inferior, and | |
8176 | as a thread too. Delete FIXME comment regarding start_remote(). | |
8177 | (mips_close): Invoke generic_mourn_inferior(). | |
8178 | (mips_kill): Make sure that target_mourn_inferior is invoked. | |
8179 | (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as | |
8180 | it's now invoked from mips_close(). | |
8181 | (mips_load): Don't null out inferior_ptid. Don't call | |
8182 | clear_symtab_users(). | |
8183 | (mips_thread_alive, mips_pid_to_str): New functions. | |
8184 | (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize | |
8185 | to_thread_alive and to_pid_to_str operations. | |
8186 | ||
ae411497 TT |
8187 | 2010-03-04 Tom Tromey <tromey@redhat.com> |
8188 | ||
8189 | * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size | |
8190 | in DWARF 3 and later. | |
8191 | (read_attribute_value) <DW_FORM_ref_addr>: Likewise. | |
8192 | ||
0e0b460e KS |
8193 | 2010-03-04 Keith Seitz <keiths@redhat.com> |
8194 | ||
8195 | * linespec.c (decode_line_1): Update comments for is_quote_enclosed. | |
8196 | If the filename portion of the linespec was quoted, recheck the | |
8197 | remainder for additional quoting. | |
8198 | (locate_first_half): Skip over completer chars, too. | |
8199 | ||
1b93ff13 TT |
8200 | 2010-03-04 Tom Tromey <tromey@redhat.com> |
8201 | ||
8202 | * printcmd.c (printf_command): Pass dummy argument to | |
8203 | printf_filtered. | |
8204 | ||
fc36e839 DE |
8205 | 2010-03-04 Doug Evans <dje@google.com> |
8206 | ||
111f853c DE |
8207 | * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, |
8208 | unwound_fp. | |
8209 | ||
fc36e839 DE |
8210 | * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. |
8211 | ||
c7437ca6 PA |
8212 | 2010-03-04 Pedro Alves <pedro@codesourcery.com> |
8213 | ||
8214 | * breakpoint.c (update_watchpoint): Create a sentinel location if | |
8215 | the software watchpoint isn't watching any memory. | |
8216 | (breakpoint_address_bits): Skip dummy software watchpoint locations. | |
8217 | ||
58dadb1b PA |
8218 | 2010-03-04 Pedro Alves <pedro@codesourcery.com> |
8219 | ||
8220 | * utils.c (fputs_maybe_filtered): Check if there's already a top | |
8221 | level interpreter before dereferencing it. If there isn't one, | |
8222 | don't paginate either. | |
8223 | ||
50e98be4 DJ |
8224 | 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
8225 | ||
8226 | * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get | |
8227 | the state right when single stepping. | |
8228 | (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. | |
8229 | Get the next PC along with the instruction state. | |
8230 | (thumb_get_next_pc): Remove. | |
8231 | (arm_get_next_pc): Modified to use arm_get_next_pc_raw. | |
8232 | ||
2e3ceee9 HZ |
8233 | 2010-03-04 Hui Zhu <teawater@gmail.com> |
8234 | ||
8235 | * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". | |
8236 | ||
390a8aca PA |
8237 | 2010-03-03 Pedro Alves <pedro@codesourcery.com> |
8238 | ||
8239 | * utils.c (fputs_maybe_filtered): Always disable pagination if the | |
8240 | top level interpreter is MI. | |
8241 | ||
9355b391 SS |
8242 | 2010-03-03 Stan Shebs <stan@codesourcery.com> |
8243 | ||
8244 | * remote.c (remote_download_tracepoint): Iterate over locations. | |
8245 | * tracepoint.c (validate_actionline): Ditto. | |
8246 | (encode_actions): Add location argument. | |
8247 | (trace_dump_command): Check all locations to see if stepping | |
8248 | frame. | |
390a8aca | 8249 | |
8685c86f L |
8250 | 2010-03-03 H.J. Lu <hongjiu.lu@intel.com> |
8251 | Eli Zaretskii <eliz@gnu.org> | |
8252 | ||
8253 | * NEWS: Add X86 general purpose registers section. | |
8254 | ||
e8f781e2 TT |
8255 | 2010-03-03 Tom Tromey <tromey@redhat.com> |
8256 | ||
8257 | PR mi/11098: | |
8258 | * varobj.c (install_new_value): Handle case where new print_value | |
8259 | is NULL. | |
8260 | ||
a0e0ef55 TT |
8261 | 2010-03-03 Dainis Jonitis <jonitis@gmail.com> |
8262 | ||
8263 | PR gdb/11345: | |
8264 | * printcmd.c (printf_command): Print end of format string using | |
8265 | printf_filtered. | |
8266 | ||
a58d7472 TT |
8267 | 2010-03-02 Tom Tromey <tromey@redhat.com> |
8268 | ||
8269 | * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. | |
8270 | * defs.h (read_command_lines_1): Add missing 'void'. | |
8271 | * cli/cli-script.c (recurse_read_control_structure): Add missing | |
8272 | 'void'. | |
8273 | (read_next_line): Likewise. | |
8274 | (read_command_lines_1): Likewise. | |
8275 | ||
ce50d78b UW |
8276 | 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com> |
8277 | ||
8278 | * spu-tdep.c (spu_analyze_prologue): Track instruction to | |
8279 | store backchain as part of prologue. | |
8280 | ||
7e9af34a DJ |
8281 | 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com> |
8282 | ||
8283 | * progspace.c (update_address_spaces): Update inferior address spaces | |
8284 | also. | |
8285 | ||
01637564 DE |
8286 | 2010-03-02 Doug Evans <dje@google.com> |
8287 | ||
8288 | * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to | |
8289 | lowpc,highpc args to addrmap_set_empty. | |
8290 | ||
1ba53b71 L |
8291 | 2010-03-02 H.J. Lu <hongjiu.lu@intel.com> |
8292 | ||
8293 | * amd64-tdep.c (amd64_byte_names): New. | |
8294 | (amd64_word_names): Likewise. | |
8295 | (amd64_dword_names): Likewise. | |
8296 | (amd64_pseudo_register_name): Likewise. | |
8297 | (amd64_pseudo_register_read): Likewise. | |
8298 | (amd64_pseudo_register_write): Likewise. | |
8299 | (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs | |
8300 | and num_mmx_regs. Call set_gdbarch_pseudo_register_read, | |
8301 | set_gdbarch_pseudo_register_write and | |
8302 | set_tdesc_pseudo_register_name. Don't call | |
8303 | set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. | |
8304 | ||
8305 | * i386-tdep.c (i386_num_mmx_regs): Removed. | |
8306 | (i386_num_pseudo_regs): Likewise. | |
8307 | (i386_byte_names): New. | |
8308 | (i386_word_names): Likewise. | |
8309 | (i386_byte_regnum_p): Likewise. | |
8310 | (i386_word_regnum_p): Likewise. | |
8311 | (i386_mmx_regnum_p): Updated. | |
8312 | (i386_pseudo_register_name): Make it global. Handle byte and | |
8313 | word pseudo-registers. | |
8314 | (i386_pseudo_register_read): Likewise. | |
8315 | (i386_pseudo_register_write): Likewise. | |
8316 | (i386_pseudo_register_type): Handle byte, word and dword | |
8317 | pseudo-registers | |
8318 | (i386_register_reggroup_p): Don't include pseudo | |
8319 | registers, except for MXX, in any register groups. Don't | |
8320 | include pseudo byte, word, dword registers in general_reggroup. | |
8321 | (i386_gdbarch_init): Set num_byte_regs, num_word_regs, | |
8322 | num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX | |
8323 | pseudo-registers after word pseudo-registers. Call | |
8324 | set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. | |
8325 | ||
8326 | * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, | |
8327 | al_regnum, num_word_regs, ax_regnum, num_dword_regs and | |
8328 | eax_regnum. | |
8329 | (i386_byte_regnum_p): New. | |
8330 | (i386_word_regnum_p): Likewise. | |
8331 | (i386_dword_regnum_p): Likewise. | |
8332 | (i386_pseudo_register_name): Likewise. | |
8333 | (i386_pseudo_register_read): Likewise. | |
8334 | (i386_pseudo_register_write): Likewise. | |
8335 | ||
a6f5ef51 L |
8336 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
8337 | ||
8338 | * target-descriptions.c (tdesc_type): Remove | |
8339 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
8340 | (tdesc_predefined_types): Likewise. | |
8341 | (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag | |
8342 | if flag name is empty. | |
8343 | (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. | |
8344 | ||
8345 | * features/i386/32bit-core.xml: Define i386_eflags. | |
8346 | * features/i386/64bit-core.xml: Likewise. | |
8347 | ||
8348 | * features/i386/32bit-sse.xml: Define i386_mxcsr. | |
8349 | * features/i386/64bit-sse.xml: Likewise. | |
8350 | ||
8351 | * features/i386/amd64-linux.c: Regenerated. | |
8352 | * features/i386/amd64.c: Likewise. | |
8353 | * features/i386/i386-linux.c: Likewise. | |
8354 | * features/i386/i386.c: Likewise. | |
8355 | ||
f5dff777 DJ |
8356 | 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com> |
8357 | ||
8358 | * gdbtypes.c (append_composite_type_field_raw): New. | |
8359 | (append_composite_type_field_aligned): Use the new function. | |
8360 | * gdbtypes.h (append_composite_type_field_raw): Declare. | |
8361 | * target-descriptions.c (struct tdesc_type_field): Add start and end. | |
8362 | (struct tdesc_type_flag): New type. | |
8363 | (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to | |
8364 | kind. Add size to u.u. Add u.f for flags. | |
8365 | (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. | |
8366 | (tdesc_free_type): Likewise. | |
8367 | (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. | |
8368 | (tdesc_add_field): Handle TDESC_TYPE_STRUCT. | |
8369 | (tdesc_add_bitfield, tdesc_add_flag): New. | |
8370 | * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) | |
8371 | (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. | |
8372 | * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to | |
8373 | current_type. Add current_type_size and current_type_is_flags. | |
8374 | (tdesc_start_union): Clear the new fields. | |
8375 | (tdesc_start_struct, tdesc_start_flags): New. | |
8376 | (tdesc_start_field): Handle struct fields, including bitfields. | |
8377 | (field_attributes): Make type optional. Add start and end. | |
8378 | (union_children): Rename to struct_union_children. | |
8379 | (union_attributes): Rename to struct_union_attributes. Add optional | |
8380 | size. | |
8381 | (flags_attributes): New. | |
8382 | (feature_children): Add struct and flags. | |
8383 | * features/gdb-target.dtd: Add flags and struct to features. | |
8384 | Make field type optional. Add field start and end. | |
8385 | ||
90884b2b L |
8386 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
8387 | ||
8388 | * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. | |
8389 | (amd64_linux_read_description): Likewise. | |
8390 | (_initialize_amd64_linux_nat): Set to_read_description to | |
8391 | amd64_linux_read_description. | |
8392 | ||
8393 | * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". | |
8394 | (amd64_linux_register_name): Removed. | |
8395 | (amd64_linux_register_type): Likewise. | |
8396 | (amd64_linux_core_read_description): New. | |
8397 | (amd64_linux_init_abi): Set target description to | |
8398 | tdesc_amd64_linux if needed. Support orig_rax in target | |
8399 | description. Don't call set_gdbarch_register_name nor | |
8400 | set_gdbarch_register_type. Call | |
8401 | set_gdbarch_core_read_description. | |
8402 | (_initialize_amd64_linux_tdep): Call | |
8403 | initialize_tdesc_amd64_linux. | |
8404 | ||
8405 | * amd64-linux-tdep.h (tdesc_amd64_linux): New. | |
8406 | ||
8407 | * amd64-tdep.c: Include "features/i386/amd64.c". | |
8408 | (amd64_register_names): Removed. | |
8409 | (amd64_register_name): Likewise. | |
8410 | (amd64_register_type): Likewise. | |
8411 | (amd64_init_abi): Set num_core_regs and register_names. Set | |
8d95cc3b | 8412 | target description to tdesc_amd64 if needed. Don't call |
90884b2b L |
8413 | set_gdbarch_register_name nor set_gdbarch_register_type. |
8414 | (_initialize_amd64_tdep): New. | |
8415 | ||
8416 | * i386-linux-nat.c (i386_linux_read_description): New. | |
8417 | (_initialize_i386_linux_nat): Set to_read_description to | |
8418 | i386_linux_read_description. | |
8419 | ||
8420 | * i386-linux-tdep.c: Include "features/i386/i386-linux.c". | |
8421 | (i386_linux_register_name): Removed. | |
8422 | (i386_linux_core_read_description): New. | |
8423 | (i386_linux_read_description): Likewise. | |
8424 | (i386_linux_init_abi): Don't call set_gdbarch_register_name. | |
8425 | Set target description to tdesc_i386_linux if needed. Support | |
8426 | orig_eax. Set register_reggroup_p. Call | |
8427 | set_gdbarch_core_read_description. | |
8428 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. | |
8429 | ||
8430 | * i386-linux-tdep.h (tdesc_i386_linux): New. | |
8431 | ||
8432 | * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS | |
8433 | with I387_NUM_REGS. | |
8434 | ||
8435 | * i386-tdep.c: Include "features/i386/i386.c". | |
8436 | (i386_register_names): Make it const. | |
8437 | (i386_mmx_names): Likewise. | |
8438 | (i386_num_register_names): Removed. | |
8439 | (i386_register_name): Likewise. | |
8440 | (i386_eflags_type): Likewise. | |
8441 | (i386_mxcsr_type): Likewise. | |
8442 | (i386_sse_type): Likewise. | |
8443 | (i386_register_type): Likewise. | |
8444 | (i387_ext_type): Call tdesc_find_type instead of arch_float_type. | |
8445 | (i386_pseudo_register_name): New. | |
8446 | (i386_pseudo_register_type): Likewise. | |
8447 | (i386_mmx_type): Make it static. | |
8448 | (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with | |
8449 | I387_NUM_REGS. Set num_core_regs and register_names. Don't | |
8450 | call set_gdbarch_register_name nor set_gdbarch_register_type. | |
8451 | Set register_reggroup_p. Set target description to tdesc_i386 | |
8452 | if needed. Call set_tdesc_pseudo_register_type, | |
8453 | set_tdesc_pseudo_register_name and tdesc_use_registers. | |
8454 | (_initialize_i386_tdep): Call initialize_tdesc_i386. | |
8455 | initialize_tdesc_x86_64. | |
8456 | ||
8457 | * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, | |
8458 | i386_mxcsr_type and i386_sse_type. Add num_core_regs, | |
8459 | register_names, tdesc and register_reggroup_p. | |
8460 | (I386_NUM_FREGS): Removed. | |
8461 | (i386_eflags_type): Likewise. | |
8462 | (i386_mxcsr_type): Likewise. | |
8463 | (i386_mmx_type): Likewise. | |
8464 | (i386_sse_type): Likewise. | |
8465 | (i386_register_name): Likewise. | |
8466 | (i386_regnum): Add I386_MXCSR_REGNUM. | |
8467 | (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. | |
8468 | ||
8469 | * i387-tdep.h (I387_NUM_REGS): New. | |
8470 | ||
8471 | * regformats/i386/i386-linux.dat: Generated. | |
8472 | * regformats/i386/i386.dat: Likewise. | |
8473 | * regformats/i386/amd64-linux.dat: Likewise. | |
8474 | * regformats/i386/amd64.dat: Likewise. | |
8475 | ||
8476 | * regformats/reg-i386-linux.dat: Removed. | |
8477 | * regformats/reg-i386.dat: Likewise. | |
8478 | * regformats/reg-x86-64-linux.dat: Likewise. | |
8479 | * regformats/reg-x86-64.dat: Likewise. | |
8480 | ||
d0d0ab16 CV |
8481 | 2010-03-01 Corinna Vinschen <vinschen@redhat.com> |
8482 | ||
8483 | * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 | |
8484 | cygwin_conv_path API rather than the deprecated | |
8485 | cygwin_conv_to_full_posix_path. | |
8486 | * windows-nat.c: | |
8487 | (GetModuleFileNameExA): Undefine for Cygwin. | |
8488 | (GetModuleFileNameExW): Define for Cygwin. | |
8489 | (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. | |
8490 | Call GetModuleFileNameExW and convert path to POSIX using | |
8491 | cygwin_conv_path. | |
8492 | (windows_make_so): Always define p. Drop unused variable m. | |
8493 | Don't use Win32 functions to check file existance, rather use | |
8494 | access on Cygwin. Fetch system directory using GetSystemDirectoryW. | |
8495 | Use canonicalize_file_name to get full path. | |
8496 | (get_image_name): Use wcstombs, rather than WideCharToMultiByte | |
8497 | to convert Unicode pathname to multibyte on Cygwin. Otherwise, | |
8498 | use correct target buffer size in call to WideCharToMultiByte. | |
8499 | (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. | |
8500 | (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. | |
8501 | (windows_create_inferior): Convert all paths and arguments to wchar_t | |
8502 | and use CreateProcessW on Cygwin. | |
8503 | (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. | |
8504 | (bad_GetModuleFileNameExA): Undefine for Cygwin. | |
8505 | (bad_GetModuleFileNameExW): Define for Cygwin. | |
8506 | (_initialize_loadable): Load GetModuleFileNameExW into | |
8507 | dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. | |
8508 | ||
dc00d89f PM |
8509 | 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> |
8510 | ||
8511 | PR python/11036 | |
8512 | * python/py-frame.c (frapy_read_var): Add block argument and logic | |
8513 | to cope with user provided blocks. | |
8514 | ||
0e095b7e JK |
8515 | 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
8516 | ||
8517 | * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. | |
8518 | New comment. | |
8519 | ||
2f9e05b4 CV |
8520 | 2010-02-28 Corinna Vinschen <vinschen@redhat.com> |
8521 | ||
8522 | * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... | |
8523 | (COMMON_OBS): ... to here since it's used unconditionally. | |
8524 | (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... | |
8525 | (SFILES): To here. | |
8526 | ||
eb195664 DD |
8527 | 2010-02-26 David Daney <ddaney@caviumnetworks.com> |
8528 | ||
8529 | * mips-linux-tdep.c: Update struct sigframe comments. | |
8530 | (SIGFRAME_CODE_OFFSET): Delete macro. | |
8531 | (mips_linux_o32_sigframe_init): Calculate sigcontext_base using | |
8532 | this_frame's sp. | |
8533 | (mips_linux_n32n64_sigframe_init): Same. | |
8534 | ||
97b0f3e2 KB |
8535 | 2010-02-26 Kevin Buettner <kevinb@redhat.com> |
8536 | ||
8537 | * remote-mips.c (mips_load): Don't use pseudo-register when | |
8538 | invalidating regcache. | |
8539 | ||
4069ebbe DJ |
8540 | 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
8541 | ||
8542 | * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. | |
8543 | ||
05071a4d PA |
8544 | 2010-02-26 Pedro Alves <pedro@codesourcery.com> |
8545 | ||
8546 | * NEWS: Add "New targets" section, and mention ARM Symbian | |
8547 | support. | |
8548 | ||
6063c216 UW |
8549 | 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com> |
8550 | ||
8551 | * dwarf2loc.c (struct piece_closure): Remove ARCH member, | |
8552 | add ADDR_SIZE member. | |
8553 | (allocate_piece_closure): Update. | |
8554 | (copy_pieced_value_closure): Likewise. | |
8555 | (dwarf2_evaluate_loc_desc): Likewise. | |
8556 | (read_pieced_value): Use DWARF address size instead of | |
8557 | GDB's gdbarch_addr_bit as size of values on the DWARF stack. | |
8558 | ||
5107b149 | 8559 | 2010-02-26 Phil Muldoon <pmuldoon@redhat.com> |
c8d5aac9 | 8560 | Tom Tromey <tromey@redhat.com> |
5107b149 PM |
8561 | |
8562 | * python/py-type.c (typy_lookup_typename): Add in block argument. | |
8563 | If provided restrict lookup to specified blocks. | |
8564 | (gdbpy_lookup_type): Likewise. | |
8565 | (typy_lookup_type): Likewise. | |
8566 | ||
78664fa3 | 8567 | 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com> |
8d95cc3b | 8568 | |
78664fa3 PA |
8569 | Symbian config |
8570 | ||
8571 | gdb/ | |
8572 | * arm-symbian-tdep.c: New. | |
8573 | * configure.tgt (arm*-*-symbianelf*): New target. | |
8574 | (*-*-symbianelf*): New OS. | |
8575 | * osabi.c (gdb_osabi_names): Add Symbian. | |
8576 | * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN. | |
8577 | * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o. | |
8578 | (ALLDEPFILES): Add arm-symbian-tdep.c. | |
8579 | ||
eb73e134 DJ |
8580 | 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com> |
8581 | ||
8582 | * symfile.c (find_lowest_section): Include SEC_ALLOC sections. | |
8583 | ||
46ef47e5 PA |
8584 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8585 | ||
8586 | * mi/mi-main.c (mi_cmd_execute): Fix typo. | |
8587 | ||
f3e9a817 | 8588 | 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> |
8d95cc3b | 8589 | Tom Tromey <tromey@redhat.com> |
f3e9a817 PM |
8590 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
8591 | ||
8592 | * python/python.c (_initialize_python): Call | |
8593 | gdbpy_initialize_symtabs, gdbpy_initialize_symbols and | |
8594 | gdbpy_initialize_blocks. | |
8595 | * python/python-internal.h: Declare struct symbol, block and | |
8596 | symtab_and_line. Declare block_object_type and | |
8597 | symbol_object_type | |
8598 | (gdbpy_lookup_symbol gdbpy_block_for_pc) | |
8599 | (symtab_and_line_to_sal_object, symtab_to_symtab_object) | |
8600 | (symbol_to_symbol_object, block_to_block_object) | |
8601 | (gdbpy_initialize_symtabs,gdbpy_initialize_symbols) | |
8602 | (gdbpy_initialize_blocks ): Declare. | |
8603 | * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal) | |
8604 | (frapy_select): Add methods. | |
8605 | (frapy_read_var): Add symbol branch. | |
8606 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab, | |
8607 | py-block. | |
8608 | (SUBDIR_PYTHON_SRCS): Likewise. | |
8609 | (py-symbol.o): New rule. | |
8610 | (py-symtab.o): Likewise. | |
8611 | (py-block.o): Likewise. | |
8612 | * python/py-symbol.c: New file. | |
8613 | * python/py-symtab.c: Likewise. | |
8614 | * python/py-block.c: Likewise. | |
8615 | ||
24291992 PA |
8616 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8617 | ||
8618 | PR gdb/11321 | |
8619 | ||
8620 | * inferior.h (prepare_for_detach): Declare. | |
8621 | (struct inferior) <detaching>: New field. | |
8622 | * infrun.c (prepare_for_detach): New. | |
8623 | (handle_inferior_event) <random signal>: Don't stop if detaching. | |
8624 | * target.c (target_detach): Call prepare_for_detach. | |
8625 | ||
fc1cf338 PA |
8626 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8627 | ||
8628 | Per-process displaced stepping queue. | |
8629 | ||
8630 | * infrun.c (displaced_step_ptid, displaced_step_request_queue) | |
8631 | (displaced_step_gdbarch, displaced_step_closure, | |
8632 | (displaced_step_original, displaced_step_copy): Move globals to | |
8633 | this... | |
8634 | (struct displaced_step_inferior_state): ... new structure. | |
8635 | (displaced_step_inferior_states): New global. | |
8636 | (get_displaced_stepping_state, add_displaced_stepping_state) | |
8637 | (remove_displaced_stepping_state, infrun_inferior_exit): New | |
8638 | functions. | |
8639 | (displaced_step_clear): Add displaced_step_inferior_state | |
8640 | parameter, and adjust to handle it. | |
8641 | (displaced_step_clear_cleanup): Parameter is now a | |
8642 | displaced_step_inferior_state. Adjust. | |
8643 | (displaced_step_prepare): Adjust. | |
8644 | (displaced_step_fixup, displaced_step_fixup) | |
8645 | (infrun_thread_ptid_changed, resume): Adjust. | |
8646 | (init_wait_for_inferior): Don't call displaced_step_clear. | |
8647 | (infrun_thread_stop_requested): Rewrite. | |
8648 | (_initialize_infrun): Install infrun_inferior_exit as | |
8649 | inferior_exit observer. | |
8650 | ||
0723dbf5 PA |
8651 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8652 | ||
8653 | * inferior.h (ptid_match): Declare. | |
8654 | * infrun.c (ptid_match): New. | |
8655 | * remote.c (queued_stop_reply): Rewrite and use ptid_match. | |
8656 | (handle_notification): Add debug output. | |
8657 | * linux-nat.c (ptid_match): Delete. | |
8658 | ||
09de9781 DM |
8659 | 2010-02-24 David S. Miller <davem@davemloft.net> |
8660 | ||
8661 | * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. | |
8662 | * syscalls/sparc-linux.xml: New. | |
8663 | * syscalls/sparc64-linux.xml: New. | |
8664 | * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. | |
8665 | * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. | |
8666 | (sparc32_linux_get_syscall_number): New function. | |
8667 | (sparc32_linux_init_abi): Set syscall XML file name and hook up | |
8668 | syscall number fetcher. | |
8669 | * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. | |
8670 | (sparc64_linux_get_syscall_number): New function. | |
8671 | (sparc64_linux_init_abi): Set syscall XML file name and hook up | |
8672 | syscall number fetcher. | |
8673 | ||
a79b8f6e VP |
8674 | 2010-02-24 Vladimir Prus <vladimir@codesourcery.com> |
8675 | ||
8676 | Multiexec MI | |
8677 | ||
8678 | * breakpoint.c (clear_syscall_counts): Take struct inferior*. | |
8679 | * inferior.c (add_inferior_silent): Notify inferior_added | |
8680 | observer. | |
8681 | (delete_inferior_1): Notify inferior_removed observer. | |
8682 | (exit_inferior_1): Pass inferior, not pid, to observer. | |
8683 | (inferior_appeared): Likewise. | |
8684 | (add_inferior_with_spaces): New. | |
8685 | (add_inferior_command): Use the above. | |
8686 | * inferior.h (delete_inferior_1, add_inferior_with_spaces): | |
8687 | Declare. | |
8688 | ||
8689 | * inflow.c (inflow_inferior_exit): Likewise. | |
8690 | * jit.c (jit_inferior_exit_hook): Likewise. | |
8691 | ||
8692 | * mi/mi-cmds.c (mi_cmds): Register add-inferior and | |
8693 | remove-inferior. | |
8694 | * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
8695 | * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New. | |
8696 | (report_initial_inferior): New. | |
8697 | (mi_inferior_removed): Register the above. Make sure | |
8698 | inferior_added observer is called on the first inferior. | |
8699 | (mi_new_thread, mi_thread_exit): Thread group is now identified by | |
8700 | inferior number, not pid. | |
8701 | (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are | |
8702 | affected. | |
8703 | * mi/mi-main.c (current_context): New. | |
8704 | (proceed_thread_callback): Use typed closure. | |
8705 | Proceed everything if pid is 0. Most implementation split into | |
8706 | (proceed_thread): ... this. | |
8707 | (run_one_inferior): New. | |
8708 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run): | |
8709 | Adjust for multiexec behaviour. | |
8710 | (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
8711 | (mi_cmd_execute): Handle the 'thread-group' option here. | |
8712 | Do some extra checks. | |
8713 | * mi-parse.c (mi_parse): Handle the --all and --thread-group | |
8714 | options. | |
8715 | * mi-parse.h (struct mi_parse): New fields all and thread_group. | |
8716 | ||
115d30f9 VP |
8717 | 2010-02-24 Vladimir Prus <vladimir@codesourcery.com> |
8718 | ||
8719 | Make -exec-run a proper MI commands. | |
8720 | ||
8721 | * mi/mi-cmds.h (mi_cmd_exec_run): Declare. | |
8722 | * mi/mi-cmds.c (mi_cmds): Adjust. | |
8723 | * mi/mi-main.c (mi_cmd_exec_run): New. | |
8724 | ||
06cd862c PA |
8725 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8726 | Stan Shebs <stan@codesourcery.com> | |
8727 | ||
8728 | * tracepoint.h (set_traceframe_number) | |
8729 | (cleanup_restore_current_traceframe): Declare. | |
8730 | * tracepoint.c (set_traceframe_number): New. | |
8731 | (struct current_traceframe_cleanup): New. | |
8732 | (do_restore_current_traceframe_cleanup) | |
8733 | (restore_current_traceframe_cleanup_dtor) | |
8734 | (make_cleanup_restore_current_traceframe): New. | |
8735 | * infrun.c: Include tracepoint.h. | |
8736 | (fetch_inferior_event): Switch out and in of tfind mode. | |
8737 | ||
ab92d69b PA |
8738 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8739 | ||
8740 | * breakpoint.c (breakpoint_init_inferior): Also delete | |
8741 | bp_shlib_event breakpoints. | |
8742 | * solib-frv.c (enable_break): Remove call to | |
8743 | remove_solib_event_breakpoints. | |
8744 | * solib-svr4.c (enable_break): Ditto. | |
8745 | * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. | |
8746 | * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. | |
8747 | * solib-som.c (som_solib_create_inferior_hook): Ditto. | |
8748 | * solib-spu.c (spu_enable_break): Ditto. | |
8749 | ||
e707a91d PA |
8750 | 2010-02-23 Harald Koenig <H.Koenig@science-computing.de> |
8751 | ||
8752 | * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE. | |
8753 | ||
cfce2ea2 PA |
8754 | 2010-02-23 Harald Koenig <H.Koenig@science-computing.de> |
8755 | ||
8756 | * varobj.c (varobj_update): Avoid non-constants in initializers. | |
8757 | ||
05566b3b TT |
8758 | 2010-02-23 Tom Tromey <tromey@redhat.com> |
8759 | ||
8760 | * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly | |
8761 | handle big-endian values. | |
8762 | (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise. | |
8763 | ||
85d721b8 PA |
8764 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
8765 | ||
8766 | PR9605 | |
8767 | ||
8768 | gdb/ | |
8769 | * breakpoint.c (insert_bp_location): If inserting the read | |
8770 | watchpoint failed, fallback to an access watchpoint. | |
8771 | (bpstat_check_watchpoint): Stop for read watchpoint triggers even | |
8772 | if the value changed, if not watching the same memory for writes. | |
8773 | (watchpoint_locations_match): Add comment. | |
8774 | (update_global_location_list): Copy the location's watchpoint type. | |
8775 | * i386-nat.c (i386_length_and_rw_bits): It's an internal error to | |
8776 | handle read watchpoints here. | |
8777 | (i386_insert_watchpoint): Read watchpoints aren't supported. | |
8778 | * remote.c (remote_insert_watchpoint): Return 1 for unsupported | |
8779 | packets. | |
8780 | * target.h (target_insert_watchpoint): Update description. | |
8781 | ||
48ea67a7 TT |
8782 | 2010-02-19 Tom Tromey <tromey@redhat.com> |
8783 | ||
8784 | * p-typeprint.c (pascal_type_print_varspec_prefix): Update. | |
8785 | * m2-typeprint.c (m2_print_type): Update. | |
8786 | * gdbtypes.c (recursive_dump_type): Update. | |
8787 | (copy_type_recursive): Update. | |
8788 | * c-typeprint.c (c_type_print_varspec_prefix): Update. | |
8789 | (c_type_print_base): Update. | |
8790 | * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG): | |
8791 | Remove. | |
8792 | (struct cplus_struct_type) <ntemplate_args>: Remove. | |
8793 | <struct template_arg>: Remove. | |
8794 | <is_dynamic>: Move earlier. | |
8795 | (TYPE_TEMPLATE_ARGS): Remove. | |
8796 | (TYPE_NTEMPLATE_ARGS): Remove. | |
8797 | (TYPE_TEMPLATE_ARG): Remove. | |
8798 | ||
48e32051 TT |
8799 | 2010-02-19 Tom Tromey <tromey@redhat.com> |
8800 | ||
8801 | PR c++/8693, PR c++/9496: | |
8802 | * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. | |
8803 | * c-exp.y (lex_one_token): Rename from yylex. Don't call | |
8804 | write_dollar_variable. Don't try to classify NAME tokens. | |
8805 | (token_and_value): New type. | |
8806 | (token_fifo, popping, name_obstack): New globals. | |
8807 | (classify_name): New function. | |
8808 | (classify_inner_name): Likewise. | |
8809 | (yylex): Likewise. | |
8810 | (VARIABLE): Now has type sval. | |
8811 | (exp : VARIABLE): Call write_dollar_variable. | |
8812 | (qualified_name): Use TYPENAME, not typebase. Add production for | |
8813 | multiple "::" instances. | |
8814 | (variable): Use name_not_typename. | |
8815 | (qualified_type): Remove. | |
8816 | (typebase): Update. | |
8817 | ||
672d9c23 JK |
8818 | 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
8819 | ||
8820 | * symfile.c (addr_info_make_relative): Extend comment. Move SECT to | |
8821 | a more inner block. Initialize ADDR by LOWER_OFFSET only if it was | |
8822 | found by bfd_get_section_by_name. | |
8823 | * symfile.h (struct section_addr_info) <sectindex>: New comment. | |
8824 | ||
bfbf3774 JB |
8825 | 2010-02-19 Joel Brobecker <brobecker@adacore.com> |
8826 | ||
8827 | * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since | |
8828 | 7.0 section" into "Changes in 7.1". | |
8829 | ||
6756b09b | 8830 | 2010-02-19 Joel Brobecker <brobecker@adacore.com> |
8831 | ||
8832 | GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC) | |
8833 | * version.in: Bump version to 7.1.50.20100219-cvs. | |
8834 | ||
202b96c1 PA |
8835 | 2010-02-18 Harald Koenig <H.Koenig@science-computing.de> |
8836 | ||
8837 | * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. | |
8838 | * symfile.c (symfile_map_offsets_to_segments): Fix assertion. | |
8839 | ||
de2e5182 TT |
8840 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
8841 | ||
8842 | * NEWS: Add Python API Improvements section. | |
8843 | ||
7280022e DJ |
8844 | 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com> |
8845 | ||
8846 | * NEWS: Correct typo. | |
8847 | ||
6f451e5e TT |
8848 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
8849 | ||
8850 | * objfiles.c (gdb_bfd_ref): Handle abfd==NULL. | |
8851 | ||
012836ea JK |
8852 | 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
8853 | ||
8854 | * symfile.c (build_section_addr_info_from_objfile): Include sections | |
8855 | only if they are SEC_ALLOC or SEC_LOAD. | |
8856 | ||
d182d057 L |
8857 | 2010-02-17 H.J. Lu <hongjiu.lu@intel.com> |
8858 | ||
8859 | PR shlibs/11293 | |
8860 | * solib-svr4.c (enable_break): Check size of CORE_ADDR instead | |
8861 | of ULONGEST for address size. | |
8862 | ||
4eef138c TT |
8863 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
8864 | ||
8865 | * NEWS: Add C++ improvements section. | |
8866 | ||
548a926a UW |
8867 | 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
8868 | ||
8869 | * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, | |
8870 | PyThreadState_Swap): Avoid "statement with no effect" warning. | |
8871 | ||
ad3a0e5b JK |
8872 | 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
8873 | ||
8874 | * solib-svr4.c (enable_break <target_auxv_search>): New variable | |
8875 | addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors. | |
8876 | ||
243e2c5d | 8877 | 2010-02-17 Tristan Gingold <gingold@adacore.com> |
b2319725 | 8878 | Petr Hluzin <petr.hluzin@gmail.com> |
243e2c5d TG |
8879 | |
8880 | * avr-tdep.c (avr_scan_prologue): Convert an if statement to a | |
8881 | gdb_assert. Fix info->size for SIG prologue. | |
8882 | ||
275f2e57 DJ |
8883 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
8884 | ||
8885 | * infcmd.c (show_inferior_tty_command): Check for NULL. | |
8886 | Correct output message. | |
8887 | ||
791dfb64 DJ |
8888 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
8889 | ||
8890 | * linespec.c (decode_line_1): Handle FILE:FUNCTION even if | |
8891 | FUNCTION contains parentheses. Improve removal of a trailing | |
8892 | single quote. | |
8893 | ||
14d1346b DJ |
8894 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
8895 | ||
8896 | * gcore.c (do_bfd_delete_cleanup): New function. | |
8897 | (gcore_command): Use it. Discard the cleanup after success. | |
8898 | (gcore_copy_callback): Delete dead code. | |
8899 | ||
e76ab67f DJ |
8900 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
8901 | ||
8902 | * symfile.c (addr_info_make_relative): Always use | |
8903 | find_lowest_section. | |
8904 | ||
71dee663 SW |
8905 | 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com> |
8906 | ||
8907 | * NEWS: Added entry for namespace fixes. | |
8908 | ||
a9854bd5 TT |
8909 | 2010-02-15 Tom Tromey <tromey@redhat.com> |
8910 | ||
8911 | * dwarf2read.c (guess_structure_name): Allocate name on the | |
8912 | objfile obstack. | |
8913 | ||
fd9e29b5 TT |
8914 | 2010-02-15 Tom Tromey <tromey@redhat.com> |
8915 | ||
8916 | * c-typeprint.c (c_type_print_base): Reverse order of test. | |
8917 | ||
4e1fc9c9 JK |
8918 | 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
8919 | ||
8920 | * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally | |
8921 | initialize it from ELF BFD. Extend the prelink condition by it. | |
8922 | ||
74164c56 JK |
8923 | 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
8924 | ||
8925 | * defs.h (parse_pid_to_attach): New. | |
8926 | * utils.c (parse_pid_to_attach): New. | |
8927 | * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid. | |
8928 | * gnu-nat.c (gnu_attach): Likewise. | |
8929 | * nto-procfs.c (procfs_attach): Likewise. | |
8930 | * procfs.c (procfs_attach): Likewise. | |
8931 | * windows-nat.c (windows_attach): Likewise. | |
8932 | * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy. | |
8933 | * inf-ttrace.c (inf_ttrace_attach): Likewise. | |
8934 | * remote.c (extended_remote_attach_1): Likewise. New comment on getpid | |
8935 | check. | |
8936 | ||
bf6adea8 MM |
8937 | 2010-02-14 Masaki Muranaka <monaka@monami-software.com> |
8938 | ||
8939 | * MAINTAINERS: Add myself for write after approval privileges. | |
8940 | ||
28f34a8f JK |
8941 | 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
8942 | ||
8943 | * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner | |
8944 | block. | |
8945 | ||
701ed6dc JK |
8946 | 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
8947 | ||
8948 | * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment | |
8949 | only if INFO_VERBOSE. | |
8950 | ||
e5829bee MS |
8951 | 2010-02-12 Tomas Holmberg <th@virtutech.com> |
8952 | ||
8953 | * mi/mi-main.c: Added the --reverse flag to the following MI | |
8954 | commands: exec-continue, exec-finish, exec-next, exec-step, | |
8955 | exec-next-instruction, exec-step-instruction. This is to | |
8956 | support reverse execution over the MI interface to gdb. | |
8957 | ||
081dfbf7 PA |
8958 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
8959 | ||
8960 | * tracepoint.c (_initialize_tracepoint): Specify that the address | |
8961 | range of `tfind outsize' is exclusive, and that the address range | |
8962 | of `tfind range' is inclusive, in the commands' help strings. | |
8963 | ||
ecc13e53 JB |
8964 | 2010-02-12 Joel Brobecker <brobecker@adacore.com> |
8965 | ||
8966 | Spurious "dll not found" error messages on x64-windows. | |
8967 | * windows-nat.c: Add include of complaints.h. | |
8968 | (handle_unload_dll): Change dll-not-found error into a complaint. | |
8969 | ||
15c3d785 PA |
8970 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
8971 | ||
8972 | * breakpoint.c (allocate_bp_location): Use bp_loc_other for | |
8973 | bp_tracepoint and bp_fast_tracepoint, not | |
8974 | bp_loc_software_breakpoint. | |
8975 | (update_global_location_list): Tracepoints are never duplicates of | |
8976 | anything. | |
8977 | ||
fd9b8c24 PA |
8978 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
8979 | ||
8980 | * breakpoint.c (break_command_really): Change return type to int. | |
8981 | Return false if no breakpoint was created, true otherwise. | |
8982 | (trace_command): Don't set the tracepoint count if no tracepoint | |
8983 | was created. | |
8984 | (ftrace_command): Ditto. | |
8985 | (create_tracepoint_from_upload): Bail out if the tracepoint wasn't | |
8986 | created in the breakpoints table. | |
8987 | ||
5c0d192f JK |
8988 | 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
8989 | Ulrich Weigand <uweigand@de.ibm.com> | |
8990 | ||
8991 | * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition. | |
8992 | ||
5d5b640e PA |
8993 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
8994 | ||
8995 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if | |
8996 | the offset value isn't of integral type. | |
8997 | ||
e5a0a904 JK |
8998 | 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
8999 | ||
9000 | * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>: | |
9001 | New. | |
9002 | ||
be636754 PA |
9003 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
9004 | ||
9005 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on | |
9006 | non-subscriptable types. | |
9007 | * valarith.c (binop_types_user_defined_p): New, abstracted out | |
9008 | from ... | |
9009 | (binop_user_defined_p): ... this. | |
9010 | * value.h (binop_types_user_defined_p): Declare. | |
9011 | ||
10ef8d6a PA |
9012 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
9013 | ||
9014 | * tracepoint.c (tfile_open): Remove spurious discard_cleanups. | |
9015 | Merge uploaded TSVs before merging uploaded tracepoints. | |
9016 | ||
b1028c8e PA |
9017 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
9018 | ||
9019 | * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers. | |
9020 | ||
7a93fb82 | 9021 | 2010-02-11 Vladimir Prus <vladimir@codesourcery.com> |
84d90c10 | 9022 | |
7a93fb82 VP |
9023 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra |
9024 | whitespace character after a dot in comment. | |
9025 | (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): | |
9026 | Likewise. | |
9027 | (list_args_or_locals): For the 'all' (that is | |
9028 | -stack-list-variables) case, always output list of tuples. | |
9029 | Output 'arg' field if variable is argument. | |
84d90c10 | 9030 | |
92981e24 TT |
9031 | 2010-02-10 Tom Tromey <tromey@redhat.com> |
9032 | ||
9033 | * parser-defs.h (parser_debug): Declare. | |
9034 | * parse.c (_initialize_parse): Install "debug parser" set/show | |
9035 | command. | |
9036 | (parser_debug): New global. | |
9037 | (show_parserdebug): New function. | |
9038 | * c-exp.y (c_parse): Set yydebug. | |
9039 | ||
9fd3625f L |
9040 | 2010-02-10 H.J. Lu <hongjiu.lu@intel.com> |
9041 | ||
9042 | * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, | |
9043 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
9044 | (tdesc_predefined_types): Add i387_ext, i386_eflags and | |
9045 | i386_mxcsr. | |
9046 | (tdesc_find_type): New. | |
9047 | (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, | |
9048 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
9049 | ||
9050 | * target-descriptions.h (tdesc_find_type): New. | |
9051 | ||
2fe842e5 MS |
9052 | 2010-02-10 Michael Snyder <msnyder@vmware.com> |
9053 | ||
9054 | * gdb-gdb.py: Comment fix. | |
9055 | ||
f18b4cab TG |
9056 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
9057 | ||
9058 | * machoread.c (macho_symfile_relocate): New function. | |
9059 | (macho_sym_fns): Use macho_symfile_relocate instead of | |
9060 | default_symfile_relocate. | |
9061 | (macho_oso_data): New type. | |
9062 | (current_oso): New variable. | |
9063 | (macho_add_oso_symfile): Do not compute section_addr_info, but | |
9064 | instead set vma of sections. | |
9065 | Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. | |
9066 | Set and clear current_oso. | |
9067 | ||
31dbc1c5 JB |
9068 | 2010-02-09 Joel Brobecker <brobecker@adacore.com> |
9069 | ||
9070 | Wrong type description for tagged type parameter. | |
9071 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
9072 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
9073 | reference to a tagged type. | |
9074 | ||
399f313b TG |
9075 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
9076 | ||
9077 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
9078 | brothers of the parent. | |
9079 | ||
714f19d5 TT |
9080 | 2010-02-08 Tom Tromey <tromey@redhat.com> |
9081 | ||
9082 | PR c++/8017: | |
9083 | * value.h: Update. | |
9084 | * valops.c (search_struct_field): Make 'name' const. | |
9085 | (search_struct_method): Likewise. | |
9086 | (find_method_list): Make 'method' const. | |
9087 | (value_struct_elt): Make 'name' and 'err' const. | |
9088 | (value_find_oload_method_list): Make 'method' const. | |
9089 | (find_overload_match): Make 'name' const. | |
9090 | * eval.c (evaluate_subexp_standard): New locals function, | |
9091 | function_name. | |
9092 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
9093 | ||
de0a0249 UW |
9094 | 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
9095 | ||
9096 | * infrun.c (handle_inferior_event): Do not look up regcache | |
9097 | for exited processes. | |
9098 | ||
8d95cc3b | 9099 | 2010-02-08 Chris Moller <moller@mollerware.com> |
83b10087 CM |
9100 | |
9101 | PR gdb/10728 | |
9102 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
8d95cc3b | 9103 | warn if found, and assume length = 1. |
83b10087 | 9104 | |
99903ae3 CM |
9105 | 2010-02-08 Chris Moller <cmoller@redhat.com> |
9106 | ||
9107 | PR gdb/9067 | |
9108 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
6036c742 | 9109 | (cp_print_static_field) Fix use of obstacks. |
8d95cc3b | 9110 | |
e3e9f5a2 PA |
9111 | 2010-02-08 Pedro Alves <pedro@codesourcery.com> |
9112 | ||
9113 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
9114 | resumed LWPs as resumed. | |
9115 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
9116 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
9117 | of throwing an internal error. If an LWP of a process we're not | |
9118 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
9119 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
9120 | go through all LWPs cancelling breakpoints in non-stop mode. | |
9121 | (resume_stopped_resumed_lwps): New. | |
9122 | (linux_nat_wait): Use it. | |
9123 | ||
46763423 L |
9124 | 2010-02-07 H.J. Lu <hongjiu.lu@intel.com> |
9125 | ||
9126 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
9127 | i386/amd64 and i386/amd64-linux. | |
9128 | (i386/i386-expedite): New. | |
9129 | (i386/i386-linux-expedite): Likewise. | |
9130 | (i386/amd64-expedite):Likewise. | |
9131 | (i386/amd64-linux-expedite): Likewise. | |
9132 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
9133 | ($(outdir)/i386/amd64.dat): Likewise. | |
9134 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
9135 | ||
9136 | * features/i386/32bit-core.xml: New. | |
9137 | * features/i386/32bit-linux.xml: Likewise. | |
9138 | * features/i386/32bit-sse.xml: Likewise. | |
9139 | * features/i386/64bit-core.xml: Likewise. | |
9140 | * features/i386/64bit-linux.xml: Likewise. | |
9141 | * features/i386/64bit-sse.xml: Likewise. | |
9142 | * features/i386/i386-linux.xml: Likewise. | |
9143 | * features/i386/i386.xml: Likewise. | |
9144 | * features/i386/amd64-linux.xml: Likewise. | |
9145 | * features/i386/amd64.xml: Likewise. | |
9146 | * features/i386/i386-linux.c: Likewise. | |
9147 | * features/i386/i386.c: Likewise. | |
9148 | * features/i386/amd64-linux.c: Likewise. | |
9149 | * features/i386/amd64.c: Likewise. | |
9150 | ||
82856980 SW |
9151 | 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com> |
9152 | ||
9153 | PR c++/7935: | |
9154 | * cp-support.h: Added char* alias element to using_direct data | |
9155 | struct. | |
9156 | (cp_add_using): Added char* alias argument. | |
9157 | (cp_add_using_directive): Ditto. | |
9158 | * cp-namespace.c: Updated with the above changes. | |
9159 | (cp_lookup_symbol_imports): Check for aliases. | |
9160 | * dwarf2read.c (read_import_statement): Figure out local alias | |
9161 | for the import and pass it on to cp_add_using. | |
9162 | (read_namespace): Pass alias argument to cp_add_using. | |
9163 | ||
d18b8b7a HZ |
9164 | 2010-02-05 Hui Zhu <teawater@gmail.com> |
9165 | ||
9166 | * defs.h (gdb_bfd_errmsg): New extern. | |
9167 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
9168 | gdb_bfd_errmsg. | |
9169 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
9170 | (AMBIGUOUS_MESS2): New macro. | |
9171 | (gdb_bfd_errmsg): New function. | |
9172 | ||
48379de6 DE |
9173 | 2010-02-04 Doug Evans <dje@google.com> |
9174 | ||
9175 | * solib-svr4.c (enable_break): Add comment. | |
9176 | ||
4ee73e90 AG |
9177 | 2010-02-04 Anthony Green <green@moxielogic.com> |
9178 | ||
9179 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
9180 | gracefully. | |
9181 | ||
1a334831 TT |
9182 | 2010-02-04 Tom Tromey <tromey@redhat.com> |
9183 | ||
9184 | * valops.c (search_struct_field): Account for | |
9185 | value_embedded_offset. Fix check for virtual base past the end of | |
9186 | the object. Use value_copy when making a slice of the value. | |
9187 | ||
1180b2c8 L |
9188 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
9189 | ||
9190 | PR tui/9622 | |
9191 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
9192 | only if gdb_stdout is a tty. | |
9193 | ||
c3f08eb7 L |
9194 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
9195 | ||
9196 | * target-descriptions.c: Include "osabi.h". | |
9197 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
9198 | OSABI. | |
9199 | ||
2d33f7b8 TG |
9200 | 2010-02-04 Tristan Gingold <gingold@adacore.com> |
9201 | ||
9202 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
9203 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
9204 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
9205 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
9206 | (macho_new_init): Move this function after declarations. | |
9207 | (macho_symfile_init): Ditto. | |
9208 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
9209 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
9210 | ||
11334b82 VP |
9211 | 2010-02-04 Vladimir Prus <vladimir@codesourcery.com> |
9212 | ||
9213 | Include MI command in remotelog. | |
9214 | ||
9215 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
9216 | ||
ff97be06 L |
9217 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
9218 | ||
9219 | * remote.c (remote_state): Remove gdbarch. | |
9220 | (init_remote_state): Don't set gdbarch. | |
9221 | (remote_query_supported): Pass target_gdbarch instead of | |
9222 | rs->gdbarch to gdbarch_qsupported. | |
9223 | ||
75cebea9 L |
9224 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
9225 | ||
9226 | * gdbarch.sh: Add qsupported. | |
9227 | ||
9228 | * gdbarch.c: Regenerated. | |
9229 | * gdbarch.h: Likewise. | |
9230 | ||
9231 | * remote.c (remote_state): Add gdbarch. | |
9232 | (init_remote_state): Set gdbarch. | |
9233 | (remote_query_supported): Support gdbarch_qsupported. | |
9234 | ||
c1dec97b DJ |
9235 | 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com> |
9236 | ||
9237 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
9238 | __FreeBSD_kernel_version. | |
9239 | ||
ac8035ab TG |
9240 | 2010-02-03 Tristan Gingold <gingold@adacore.com> |
9241 | ||
9242 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
9243 | (default_symfile_relocate): New prototype. | |
9244 | (symfile_relocate_debug_section): First argument is now an objfile. | |
9245 | * symfile.c (default_symfile_relocate): Rename from | |
9246 | symfile_relocate_debug_section, first argument is now an objfile. | |
9247 | (symfile_relocate_debug_section): New function. | |
9248 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
9249 | * somread.c (som_sym_fns): Ditto. | |
9250 | * mipsread.c (ecoff_sym_fns): Ditto. | |
9251 | * machoread.c (macho_sym_fns): Ditto. | |
9252 | * elfread.c (elf_sym_fns): Ditto. | |
9253 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
9254 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
9255 | * dbxread.c (aout_sym_fns): Ditto. | |
9256 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
9257 | (elfstab_build_psymtabs): Ditto. | |
9258 | ||
be52b756 L |
9259 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
9260 | ||
9261 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
9262 | ||
9c3c02fd TT |
9263 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
9264 | ||
9265 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
9266 | type. | |
9267 | ||
f23f4c59 TT |
9268 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
9269 | ||
9270 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
9271 | (gnuv2_baseclass_offset): Now static. | |
9272 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
9273 | * gnu-v2-abi.h: Remove. | |
9274 | ||
0cc2414c TT |
9275 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
9276 | ||
9277 | * m2-typeprint.c (m2_record_fields): Don't use | |
9278 | TYPE_DECLARED_TYPE. | |
9279 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
9280 | (struct main_type) <flag_declared_class>: New field. | |
9281 | (struct cplus_struct_type) <declared_type>: Remove. | |
9282 | <ntemplate_args>: Move earlier. | |
9283 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
9284 | (DECLARED_TYPE_TEMPLATE): Remove. | |
9285 | (TYPE_DECLARED_TYPE): Remove. | |
9286 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
9287 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
9288 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
9289 | TYPE_DECLARED_TYPE. | |
9290 | ||
edf3d5f3 TT |
9291 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
9292 | ||
9293 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
9294 | * valops.c (search_struct_field): Compute nbases after calling | |
9295 | CHECK_TYPEDEF. | |
9296 | (check_field): Call CHECK_TYPEDEF. | |
9297 | * cp-valprint.c (cp_print_value): Pass correct address to | |
9298 | baseclass_offset. Fix check for virtual base past the end of the | |
9299 | object. Don't offset address passed to cp_print_value_fields or | |
9300 | apply_val_pretty_printer. | |
9301 | (cp_print_value_fields): Fix call to val_print. | |
9302 | (cp_print_value_fields_rtti): New function. | |
9303 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
9304 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
9305 | val_print. | |
9306 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
9307 | offset to address. | |
9308 | * language.h (struct language_defn) <la_val_print>: Document. | |
9309 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
9310 | ||
e4b7f41c JK |
9311 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9312 | ||
9313 | PR libc/11214: | |
9314 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
9315 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
9316 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
9317 | ||
7618e12b DJ |
9318 | 2010-02-01 Michael Matz <matz@suse.de> |
9319 | Daniel Jacobowitz <dan@codesourcery.com> | |
9320 | ||
e4b7f41c | 9321 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
9322 | functions use a frame pointer. |
9323 | ||
b381ea14 JK |
9324 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9325 | ||
9326 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
9327 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
9328 | * config/djgpp/fnchange.lst: Add translations for | |
9329 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
9330 | ||
0e05dfcb DJ |
9331 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9332 | ||
9333 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
9334 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
9335 | * gdbarch.c: Regenerated. | |
9336 | ||
f9d67f43 DJ |
9337 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9338 | ||
9339 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
9340 | arm_pc_is_thumb. | |
9341 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
9342 | (extend_buffer_earlier): New function. | |
9343 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
9344 | (arm_adjust_breakpoint_address): New function. | |
9345 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
9346 | ||
177321bd DJ |
9347 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9348 | ||
9349 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
9350 | (arm_linux_thumb2_le_breakpoint): New constants. | |
9351 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
9352 | thumb2_breakpoint_size. | |
9353 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
9354 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
9355 | Implement support for single stepping through IT blocks if | |
9356 | a 32-bit Thumb breakpoint instruction is available. | |
9357 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
9358 | is available, use it when needed. | |
9359 | (arm_remote_breakpoint_from_pc): New function. | |
9360 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
9361 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
9362 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
9363 | ||
a1dcb23a DJ |
9364 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9365 | ||
9366 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
9367 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
9368 | * gdbarch.c, gdbarch.h: Regenerated. | |
9369 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
9370 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
9371 | gdbarch_remote_breakpoint_from_pc. | |
9372 | ||
2b009048 DJ |
9373 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
9374 | ||
9375 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
9376 | match a breakpoint. | |
9377 | (handle_inferior_event): Move the check for unusual breakpoint | |
9378 | signals earlier. | |
9379 | ||
e4e2711a JB |
9380 | 2010-01-29 Paul Hilfinger <hilfinger@adacore.com> |
9381 | ||
9382 | amd64 - function returning record with field straddling 2 registers. | |
9383 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
9384 | a record of length <= 16 in which a field straddles the two | |
9385 | eightbytes. | |
9386 | ||
cba6fab5 JB |
9387 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
9388 | ||
9389 | Implement return values on amd64-windows. | |
9390 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
9391 | (amd64_windows_return_value): New function. | |
9392 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
9393 | amd64_windows_return_value. | |
9394 | ||
3af6ddfe JB |
9395 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
9396 | ||
9397 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 9398 | parameter registers. |
3af6ddfe JB |
9399 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
9400 | integer_param_regs_saved_in_caller_frame. | |
9401 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
9402 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
9403 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
9404 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
9405 | ||
80d19a06 JB |
9406 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
9407 | ||
9408 | amd64-windows: memory args passed by pointer during function calls. | |
9409 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
9410 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
9411 | where tdep->memory_args_by_pointer is non-zero. | |
9412 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
9413 | tdep->memory_args_by_pointer to 1. | |
9414 | ||
ba581dc1 JB |
9415 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
9416 | ||
4966b6c2 | 9417 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
9418 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
9419 | amd64-tdep.c. | |
9420 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
9421 | call_dummy_integer_regs, and classify. | |
9422 | * amd64-tdep.h (amd64_classify): Add declaration. | |
9423 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
9424 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
9425 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
9426 | Replace call to amd64_classify by call to tdep->classify. | |
9427 | (amd64_push_arguments): Get the list of registers to use for | |
9428 | passing integer parameters from the gdbarch tdep structure, | |
9429 | rather than using a hardcoded one. Replace calls to amd64_classify | |
9430 | by calls to tdep->classify. | |
9431 | (amd64_push_dummy_call): Get the register number used for | |
9432 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
9433 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
9434 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
9435 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
9436 | (amd64_windows_dummy_call_integer_regs): New static global. | |
9437 | (amd64_windows_classify): New function. | |
9438 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
9439 | tdep->call_dummy_integer_regs and tdep->classify. | |
9440 | ||
d37346f0 DJ |
9441 | 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
9442 | ||
9443 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
9444 | for the new regcache. All callers updated. | |
9445 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
9446 | (get_thread_arch_regcache): Do not set aspace here. | |
9447 | * regcache.h (regcache_xmalloc): Update declaration. | |
9448 | ||
9449 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
9450 | regcache_xmalloc updated. | |
9451 | ||
7434dadd JB |
9452 | 2010-01-28 Joel Brobecker <brobecker@adacore.com> |
9453 | ||
9454 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
9455 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
9456 | Only define if SYS_syssgi is defined. | |
9457 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
9458 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
9459 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
9460 | is itself defined. | |
9461 | ||
16d905e2 CF |
9462 | 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx> |
9463 | ||
9464 | * windows-nat.c (windows_initialization_done): New variable. | |
9465 | (get_windows_debug_event): Issue error when process dies before | |
9466 | completely initializing. | |
9467 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
9468 | the initial steps of attaching to the child. | |
9469 | ||
cd55e50f JK |
9470 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
9471 | ||
9472 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
9473 | ||
99cc78aa DE |
9474 | 2010-01-27 Doug Evans <dje@google.com> |
9475 | ||
4c7dcb84 DE |
9476 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
9477 | ||
99cc78aa DE |
9478 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
9479 | ||
52334bf5 JK |
9480 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
9481 | ||
9482 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
9483 | objfile via SYMBOL_SYMTAB. | |
9484 | ||
708ead4e TT |
9485 | 2010-01-26 Tom Tromey <tromey@redhat.com> |
9486 | ||
9487 | PR exp/7643: | |
9488 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
9489 | coerce_array on result. | |
9490 | ||
b14e635e SW |
9491 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
9492 | ||
9493 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
9494 | search_parent argument. | |
9495 | (cp_add_using): Initialize 'searched' field. | |
9496 | (reset_directive_searched): New function. | |
9497 | * cp-support.h: Add 'searched' field to using_direct struct. | |
9498 | (cp_lookup_symbol_imports): Ditto. | |
9499 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
9500 | Perform recursive search. | |
9501 | Implement non parent search. | |
9502 | * valops.c (value_maybe_namespace_elt): Updated. | |
9503 | ||
8540c487 SW |
9504 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
9505 | ||
9506 | PR gdb/10929: | |
9507 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
9508 | scopes which contain using directives even if they contain no | |
9509 | declarations. | |
9510 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
9511 | la_lookup_symbol_nonlocal. | |
9512 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
9513 | cp_lookup_symbol_namespace. | |
9514 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
9515 | block level. | |
9516 | (cp_lookup_symbol_imports): New function. | |
9517 | (cp_lookup_symbol_in_namespace): New function. | |
9518 | ||
421d5d99 TT |
9519 | 2010-01-25 Tom Tromey <tromey@redhat.com> |
9520 | ||
9521 | PR gdb/11049: | |
9522 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
9523 | result. | |
9524 | ||
6bcc772d RO |
9525 | 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9526 | ||
9527 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
9528 | Use test to check variables, prefix strings with x. | |
9529 | * configure: Regenerate. | |
9530 | ||
9531 | * solib-osf.c (osf_current_sos): Initialize tail. | |
9532 | ||
1c1238a5 TG |
9533 | 2010-01-25 gingold <gingold@adacore.com> |
9534 | ||
c8d5aac9 L |
9535 | * windows-nat.c (windows_continue): Use %x to print thread id. |
9536 | (get_windows_debug_event): Ditto. | |
1c1238a5 | 9537 | |
0b92b5bb TT |
9538 | 2010-01-22 Tom Tromey <tromey@redhat.com> |
9539 | ||
9540 | PR symtab/11199: | |
9541 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
9542 | type and arguments. Use smash_to_methodptr_type. | |
9543 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
9544 | later. | |
9545 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
9546 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
9547 | (lookup_methodptr_type): Use it. | |
9548 | ||
0d5392b8 TT |
9549 | 2010-01-21 Tom Tromey <tromey@redhat.com> |
9550 | ||
9551 | PR symtab/11198: | |
9552 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
9553 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
9554 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
9555 | (glibc_skip_solib_resolver): Use | |
9556 | lookup_minimal_symbol_and_objfile. | |
9557 | ||
e6d088ec KT |
9558 | 2010-01-21 Kai Tietz <kai.tietz@onevision.com> |
9559 | ||
9560 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
9561 | WIN32 targets. | |
9562 | ||
b966cb8a TT |
9563 | 2010-01-20 Tom Tromey <tromey@redhat.com> |
9564 | ||
9565 | PR backtrace/10770: | |
9566 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
9567 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
9568 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
9569 | dwarf_stack_values, not CORE_ADDRs. | |
9570 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
9571 | use signed operands. | |
9572 | ||
3f81c18a VP |
9573 | 2010-01-20 Vladimir Prus <vladimir@codesourcery.com> |
9574 | ||
9575 | Per-inferior args and tty and environment. | |
9576 | ||
9577 | * infcmd.c (inferior_args): Rename to ... | |
9578 | (inferior_args_scratch): ... this. | |
9579 | (inferior_io_terminal): Rename to ... | |
9580 | (inferior_io_terminal_scratch): ... this. | |
9581 | (inferior_argc, inferior_argv): Remove. | |
9582 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
9583 | inside current_inferior(). | |
9584 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
9585 | (get_inferior_args, set_inferior_args): Store inside | |
9586 | current_inferior(). | |
9587 | (notice_args_set): Likewise and rename to... | |
9588 | (set_args_command): ... this. | |
9589 | (set_inferior_args_vector): Likewise. | |
9590 | (notice_args_read): Rename to... | |
9591 | (show_args_command): ...new. | |
9592 | (tty_command): Remove. | |
9593 | (run_command_1): Don't free old args, as they are freed by | |
9594 | set_inferior_arg now. | |
9595 | (run_no_args_command): Likewise. | |
9596 | (inferior_environ): Remove. | |
9597 | (run_command_1): Use environment of the current inferior. | |
9598 | (environment_info, set_environment_command) | |
9599 | (unset_environment_command, path_info, path_command): Likewise. | |
9600 | (_initialize_infcmd): Adjust for function and variable renames. | |
9601 | Do not init inferior_environ. | |
9602 | * inferior.h (set_inferior_arg): Adjust prototype. | |
9603 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
9604 | (inferior_environ): Remove declaration. | |
9605 | * inferior.c (free_inferior): Free new fields. | |
9606 | (add_inferior_silent): Initialize 'environment' field. | |
9607 | * main.c (captured_main): Set arguments only after the initial | |
9608 | inferior has been created. Set set_inferior_io_terminal, | |
9609 | not tty_command. | |
9610 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
9611 | inferior. | |
9612 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
9613 | inferior_environ. | |
9614 | * solib.c (solib_find): Use environment of the current inferior. | |
9615 | ||
d8b65138 JK |
9616 | 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
9617 | ||
9618 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
9619 | HAVE_PYTHON. | |
9620 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
9621 | ||
692465f1 JB |
9622 | 2010-01-20 Joel Brobecker <brobecker@adacore.com> |
9623 | ||
9624 | Get rid of ada-lang.c:function_name_from_pc. | |
9625 | * ada-lang.c: Add "stack.h" #include. | |
9626 | (function_name_from_pc): Delete. | |
9627 | (is_known_support_routine): Replace call to function_name_from_pc | |
9628 | by call to find_frame_funname. | |
9629 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
9630 | ||
95519e0e TT |
9631 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
9632 | ||
9633 | PR c++/11026: | |
9634 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
9635 | objfile obstack. | |
9636 | ||
95c11dc7 TT |
9637 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
9638 | ||
9639 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
9640 | ||
a0f49112 JK |
9641 | 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
9642 | ||
9643 | * breakpoint.c (watchpoint_check): Check the call | |
9644 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
9645 | Extend the comment. | |
8d95cc3b | 9646 | * config/djgpp/fnchange.lst: Add translations for |
a0f49112 JK |
9647 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and |
9648 | watchpoint-cond-gone-stripped.c. | |
9649 | ||
ceeb3d5a TT |
9650 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
9651 | ||
9652 | PR c++/8000: | |
9653 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
9654 | into parent scope, and enumerator into grandparent scope. | |
9655 | ||
2b71fc8e JB |
9656 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9657 | ||
9658 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
9659 | ||
03564ed9 JB |
9660 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9661 | ||
9662 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
9663 | i[34567]86-*-solaris2.1[0-9]*. | |
9664 | * configure.tgt: Likewise. | |
9665 | ||
fb2e7cb4 JB |
9666 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9667 | ||
9668 | * NEWS: Document the source command enhancement allowing it | |
9669 | to load Python scripts. Document the "set/show script-extension" | |
9670 | commands. | |
9671 | ||
1cb5e2a4 JB |
9672 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9673 | ||
9674 | Add -Wunused-function to compile flags. | |
9675 | * configure.ac: Add -Wunused-function to build_warnings. | |
9676 | * configure: Regenerate. | |
9677 | ||
0ec6cd0c JB |
9678 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9679 | ||
9680 | "delete" ada-lex.c:input function, not used. | |
9681 | * ada-lex.l: #define YY_NO_INPUT. | |
9682 | ||
b74845da JB |
9683 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9684 | ||
9685 | Delete free_named_symtabs and associated cleanup. | |
9686 | * symfile.h (free_named_symtabs): Delete declaration. | |
9687 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
9688 | (cashier_psymtab): Comment function out. | |
9689 | Delete declaration. | |
9690 | (free_named_symtabs): Delete. | |
9691 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
9692 | * dbxread.c (end_psymtab): Likewise. | |
9693 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
9694 | * exec.c (exec_close_1): Ditto. | |
9695 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
9696 | ||
65c06092 JB |
9697 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9698 | ||
9699 | * stack.c (print_block_frame_labels): Comment function out. | |
9700 | ||
d5cd6034 JB |
9701 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9702 | ||
9703 | Delete unused or undefined functions. | |
9704 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
9705 | * dcache.c (dcache_write_line): Remove declaration. | |
9706 | * infrun.c (build_infrun): Remove declaration. | |
9707 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
9708 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
9709 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
9710 | * infrun.c (init_execution_control_state): Delete. | |
9711 | (proceed): Update comment to avoid mentioning | |
9712 | init_execution_control_state. | |
9713 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
9714 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
9715 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
9716 | * cp-namespace.c (cp_copy_usings): Delete. | |
9717 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
9718 | * progspace.c (find_program_space_by_num): Delete. | |
9719 | * inflow.c (handle_sigio): Delete declaration. | |
9720 | * hppa-tdep.c (hppa_alignof): Delete. | |
9721 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
9722 | (mipsnbsd_core_osabi_sniffer): Delete. | |
9723 | ||
4e8f195d TT |
9724 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
9725 | ||
9726 | PR c++/9680: | |
9727 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
9728 | (CONST_CAST): New tokens. | |
9729 | (exp): Add new productions. | |
9730 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
9731 | reinterpret_cast. | |
9732 | (is_cast_operator): New function. | |
9733 | (yylex): Handle cast operators specially. | |
9734 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
9735 | UNOP_REINTERPRET_CAST>: New cases. | |
9736 | * expprint.c (print_subexp_standard): Likewise. | |
9737 | (op_name_standard): Likewise. | |
9738 | (dump_subexp_body_standard): Likewise. | |
9739 | * parse.c (operator_length_standard): Likewise. | |
9740 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
9741 | UNOP_REINTERPRET_CAST. | |
9742 | * gdbtypes.c (class_types_same_p): New function. | |
9743 | (is_ancestor): Use it. | |
9744 | (is_public_ancestor): New function. | |
9745 | (is_unique_ancestor_worker): Likewise. | |
9746 | (is_unique_ancestor): Likewise. | |
9747 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
9748 | (is_unique_ancestor): Declare. | |
9749 | * valops.c (value_reinterpret_cast): New function. | |
9750 | (dynamic_cast_check_1): Likewise. | |
9751 | (dynamic_cast_check_2): Likewise. | |
9752 | (value_dynamic_cast): Likewise. | |
9753 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
9754 | ||
d9c57d9f JB |
9755 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
9756 | ||
9757 | Fix build failure when building without Python support. | |
9758 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
9759 | is not defined. | |
9760 | ||
f80d3ff2 JB |
9761 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
9762 | ||
9763 | Use XVS field type instead of doing a parallel lookup. | |
9764 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
9765 | if it is a reference type instead of doing a type lookup using | |
9766 | the XVS field name. | |
9767 | ||
5bf03f13 JB |
9768 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
9769 | ||
9770 | Trust PAD types instead of using PAD___XVS. | |
9771 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
9772 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
9773 | parallel XVS type, follow the XVS type instead of the PAD type. | |
9774 | (unwrap_value): Make sure that there is no parallel XVE type | |
9775 | before returning the value as is. | |
9776 | (set_ada_list, show_ada_list): New static variables. | |
9777 | (set_ada_command, show_ada_command): New functions. | |
9778 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
9779 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
9780 | ||
973817a3 JB |
9781 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
9782 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
9783 | ||
9784 | Allow "source" to load python scripts. | |
9785 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
9786 | * python/python.c (source_python_script): New function. | |
9787 | * python/python.h (source_python_script): Add declaration. | |
9788 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
9789 | (script_ext_off, script_ext_soft, script_ext_strict) | |
9790 | (script_ext_enums, script_ext_mode): New static constants. | |
9791 | (show_script_ext_mode, find_and_open_script): New functions. | |
9792 | (source_script): Enhance to handle Python scripts. | |
9793 | (init_cli_cmds): Add set/show script-extension commands. | |
9794 | ||
98e03262 SS |
9795 | 2010-01-16 Stan Shebs <stan@codesourcery.com> |
9796 | ||
9797 | * tracepoint.h (struct trace_status): Use unsigned long long | |
9798 | instead of size_t. | |
9799 | * tracepoint.c (trace_status_command): Fix printf directive. | |
9800 | (trace_save_command): Check fwrite returns, fix printf directive. | |
9801 | (trace_filename): New global. | |
9802 | (tfile_open): Set it, check read returns. | |
9803 | (tfile_close): Free trace_filename. | |
9804 | (tfile_get_traceframe_address): Check read returns. | |
9805 | (tfile_trace_find): Ditto. | |
9806 | (tfile_fetch_registers): Ditto. | |
9807 | (tfile_xfer_partial): Ditto. | |
9808 | (tfile_get_trace_state_variable_value): Ditto. | |
9809 | ||
00bf0b85 SS |
9810 | 2010-01-15 Stan Shebs <stan@codesourcery.com> |
9811 | ||
9812 | Add trace file support. | |
9813 | * tracepoint.h (enum trace_stop_reason): New enum. | |
9814 | (struct trace_status): New struct. | |
9815 | (parse_trace_status): Declare. | |
9816 | (struct uploaded_tp): Move here from remote.c, | |
9817 | add fields for actions. | |
9818 | (struct uploaded_tsv): New struct. | |
9819 | * tracepoint.c (tfile_ops): New target vector. | |
9820 | (trace_fd): New global. | |
9821 | (tfile_open): New function. | |
9822 | (tfile_close): New function. | |
9823 | (tfile_files_info): New function. | |
9824 | (tfile_get_trace_status): New function. | |
9825 | (tfile_get_traceframe_address): New function. | |
9826 | (tfile_trace_find): New function. | |
9827 | (tfile_fetch_registers): New function. | |
9828 | (tfile_xfer_partial): New function. | |
9829 | (tfile_get_trace_state_variable_value): New function. | |
9830 | (init_tfile_ops): New function. | |
9831 | (_initialize_tracepoint): Call it, add tfile target. | |
9832 | (trace_status): New global. | |
9833 | (current_trace_status): New function. | |
9834 | (trace_running_p): Remove, change all users to get from | |
9835 | current_trace_status()->running. | |
9836 | (get_trace_status): Remove. | |
9837 | (trace_status_command): Call target_get_trace_status directly, | |
9838 | report more detail including tracing stop reasons. | |
9839 | (trace_find_command): Always allow tfind on a file. | |
9840 | (trace_find_pc_command): Ditto. | |
9841 | (trace_find_tracepoint_command): Ditto. | |
9842 | (trace_find_line_command): Ditto. | |
9843 | (trace_find_range_command): Ditto. | |
9844 | (trace_find_outside_command): Ditto. | |
9845 | (trace_frames_offset, cur_offset): Declare as off_t. | |
9846 | (trace_regblock_size): Rename from reg_size, update users. | |
9847 | (parse_trace_status): New function. | |
9848 | (tfile_interp_line): New function. | |
9849 | (disconnect_or_stop_tracing): Ensure current trace | |
9850 | status before asking what to do. | |
9851 | (stop_reason_names): New global. | |
9852 | (trace_save_command): New command. | |
9853 | (get_uploaded_tp): Move here from remote.c. | |
9854 | (find_matching_tracepoint): Ditto. | |
9855 | (merge_uploaded_tracepoints): New function. | |
9856 | (parse_trace_status): Use stop_reason_names. | |
9857 | (_initialize_tracepoint): Define tsave command. | |
9858 | * target.h (target_ops): New fields to_save_trace_data, | |
9859 | to_upload_tracepoints, to_upload_trace_state_variables, | |
9860 | to_get_raw_trace_data, change to_get_trace_status | |
9861 | to take a pointer to a status struct. | |
9862 | (target_save_trace_data): New macro. | |
9863 | (target_upload_tracepoints): New macro. | |
9864 | (target_upload_trace_state_variables): New macro. | |
9865 | (target_get_raw_trace_data): New macro. | |
9866 | * target.c (update_current_target): Add new methods, change | |
9867 | signature of to_get_trace_status. | |
9868 | * remote.c (hex2bin): Make globally visible. | |
9869 | (bin2hex): Ditto. | |
9870 | (remote_download_trace_state_variable): Download name also. | |
9871 | (remote_get_trace_status): Update parameter, use | |
9872 | parse_trace_status. | |
9873 | (remote_save_trace_data): New function. | |
9874 | (remote_upload_tracepoints): New function. | |
9875 | (remote_upload_trace_state_variables): New function. | |
9876 | (remote_get_raw_trace_data): New function. | |
9877 | (remote_start_remote): Use them. | |
9878 | (_initialize_remote_ops): Add operations. | |
9879 | * ax-gdb.c: Include breakpoint.h. | |
9880 | * breakpoint.c (create_tracepoint_from_upload): Use | |
9881 | break_command_really, return tracepoint, warn about unimplemented | |
9882 | parts. | |
9883 | * NEWS: Mention trace file addition. | |
9884 | ||
d904de5b JK |
9885 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
9886 | ||
9887 | Fix compilation warning on gcc-3.4. | |
9888 | * exec.c (print_section_info): Move the `displacement' variable | |
9889 | initialization to its declaration. | |
9890 | ||
64aa9731 JK |
9891 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
9892 | ||
9893 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
9894 | comparison. | |
9895 | ||
ca1f5def | 9896 | 2010-01-15 Eric Botcazou <botcazou@adacore.com> |
9f0dec2d JB |
9897 | |
9898 | "info tasks" broken by typedefs in ATCB type definitions. | |
9899 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
9900 | ada_check_typedef before retrieving the length of the type for | |
9901 | regular fields. | |
9902 | ||
12ab9e09 JB |
9903 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
9904 | ||
9905 | Do not use name-based lookup for unconstrained packed arrays. | |
9906 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
9907 | Limit the fallback to name-based lookups to the case where | |
9908 | the type is a constrained packed array. | |
9909 | ||
c389c3dc JB |
9910 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
9911 | ||
9912 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
9913 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
9914 | ||
7991dee7 JK |
9915 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
9916 | ||
9917 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
9918 | * configure: Regenerate. | |
9919 | * config.in: Regenerate. | |
9920 | * utils.c: Include sys/resource.h. | |
9921 | (dump_core, can_dump_core): New. | |
9922 | (internal_vproblem): Update the comment. Check can_dump_core while | |
9923 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
9924 | ||
93c26624 JK |
9925 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
9926 | Eli Zaretskii <eliz@gnu.org> | |
9927 | ||
9928 | * NEWS: Document the PIE support. | |
9929 | ||
55235ad7 JK |
9930 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
9931 | ||
9932 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
9933 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
9934 | ||
41752192 JK |
9935 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
9936 | ||
9937 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
9938 | Replace exec_entry_point call by bfd_get_start_address. | |
9939 | ||
9f2982ff JK |
9940 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
9941 | ||
9942 | Support Valgrind attachments broken by the PIE support. | |
9943 | * auxv.c: Include gdbcore.h. | |
9944 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
9945 | parameters ops, object and annex. Remove their assertions. | |
9946 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
9947 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
9948 | (memory_xfer_auxv): ... here. | |
9949 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
9950 | memory_xfer_auxv. | |
9951 | * procfs.c (procfs_xfer_partial): Likewise. | |
9952 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
9953 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
9954 | (svr4_solib_create_inferior_hook): Conditionalize the | |
9955 | svr4_relocate_main_executable call. | |
9956 | ||
61f0d762 JK |
9957 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
9958 | ||
9959 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
9960 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
9961 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
9962 | New variable abfd. | |
9963 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
9964 | of separate debug info file. | |
9965 | ||
51bee8e9 JK |
9966 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
9967 | ||
9968 | Support PIEs with no symfile_objfile. | |
9969 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
9970 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
9971 | ||
b8040f19 JK |
9972 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
9973 | ||
9974 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
9975 | code part to ... | |
9976 | (svr4_static_exec_displacement): ... a new function. | |
9977 | (svr4_exec_displacement): New function. | |
9978 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
9979 | new_offsets using alloca now. Remove variable old_chain and changed. | |
9980 | Call objfile_relocate unconditionally now. | |
9981 | ||
eb90ce83 DE |
9982 | 2010-01-14 Doug Evans <dje@google.com> |
9983 | ||
9984 | * gdbtypes.c (arch_flags_type): Fix comment. | |
9985 | * gdbtypes.h (arch_composite_type): Fix comment. | |
9986 | ||
bdfed3bc TG |
9987 | 2009-01-14 Tristan Gingold <gingold@adacore.com> |
9988 | ||
9989 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
9990 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
9991 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
9992 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
9993 | macho_add_oso_symfile. | |
9994 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
9995 | ||
1596ad23 JB |
9996 | 2010-01-14 Joel Brobecker <brobecker@adacore.com> |
9997 | ||
9998 | Tru64: Dead threads are never deleted. | |
9999 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
10000 | (dec_thread_count_gdb_threads): Fix counter increment. | |
10001 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
10002 | (resync_thread_list): Fix bug in deletion of dead threads that | |
10003 | caused all threads to be deleted, instead of just the dead ones. | |
10004 | ||
be759fcf PM |
10005 | 2010-01-13 Phil Muldoon <pmuldoon@redhat.com> |
10006 | ||
10007 | PR python/10705 | |
10008 | ||
10009 | * python/python-internal.h: Add lazy_string_object_type | |
10010 | definition. | |
10011 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
10012 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
10013 | * python/py-value.c (valpy_lazy_string): New function. | |
10014 | (convert_value_from_python): Add lazy string conversion. | |
10015 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
10016 | return is also a lazy string. | |
10017 | (print_string_repr): Add lazy string printing branch. | |
10018 | (print_children): Likewise. | |
10019 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
10020 | * python/python.c (_initialize_python): Call | |
10021 | gdbpy_initialize_lazy_string. | |
10022 | * varobj.c (value_get_print_value): Add lazy string printing | |
10023 | branch. Account for encoding. | |
10024 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
10025 | encoding is NULL, find encoding suited for type, otherwise use | |
10026 | user encoding. | |
10027 | * language.h (language_defn): Add encoding argument. | |
10028 | (LA_PRINT_STRING): Likewise. | |
10029 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
10030 | argument to language_defn. | |
10031 | * ada-lang.h (ada_printstr): Likewise. | |
10032 | * c-lang.h (c_printstr): Likewise. | |
10033 | * p-lang.h (pascal_printstr); | |
10034 | * f-lang.c (f_printstr): Likewise. | |
10035 | * m2-lang.c (m2_printstr): Likewise. | |
10036 | * objc-lang.c (objc_printstr): Likewise. | |
10037 | * p-lang.c (pascal_printstr): Likewise. | |
10038 | * scm-lang.c (scm_printstr): Likewise. | |
10039 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
10040 | encoding argument. | |
10041 | * ada-valprint.c (ada_printstr): Likewise. | |
10042 | * f-valprint.c (f_val_print): Likewise | |
10043 | * m2-valprint.c (m2_val_print): Likewise. | |
10044 | * p-valprint.c (pascal_val_print): Likewise. | |
10045 | * expprint.c (print_subexp_standard): Likewise. | |
10046 | * valprint.c (val_print_string): Likewise. | |
10047 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
10048 | (SUBDIR_PYTHON_SRCS): Likewise. | |
10049 | (py-lazy-string.o): New rule. | |
10050 | ||
1fe72117 | 10051 | 2010-01-13 Doug Evans <dje@google.com> |
8eee9c5a DE |
10052 | |
10053 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
10054 | uninitialized" warning from gcc on local `tree'. | |
10055 | ||
dc146f7c VP |
10056 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
10057 | ||
10058 | Implement core awareness. | |
10059 | ||
10060 | * bcache.c (compare_ints): Remove | |
10061 | (print_percentage): Use compare_positive_ints. | |
10062 | * defs.h (compare_positive_ints): Declare. | |
10063 | * linux-nat.h (struct lin_lwp): New field core. | |
10064 | (linux_nat_core_of_thread_1): Declare. | |
10065 | * linux-nat.c (add_lwp): Init the 'core' field. | |
10066 | (linux_nat_wait_1): Record the core. | |
10067 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
10068 | (linux_nat_add_target): Register the above. | |
10069 | * linux-thread-db.c (update_thread_core): New. | |
10070 | (thread_db_find_new_threads): Update core information for | |
10071 | every thread. | |
10072 | * remote.c (struct private_thread_info): New. | |
10073 | (free_private_thread_info, demand_private_info): New. | |
10074 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
10075 | (struct thread_item, threads_parsing_context | |
10076 | (start_thread, end_thread, thread_attributes) | |
10077 | (thread_children, threads_children, threads_elements): New. | |
10078 | (remote_threads_info): Try qXfer:threads before anything | |
10079 | else. | |
10080 | (remote_protocol_packets): Register qXfer:threads. | |
10081 | (remote_open_1): Init use_osdata_threads. | |
10082 | (struct stop_reply): New field 'core'. | |
10083 | (remote_parse_stop_reply): Parse core number. | |
10084 | (process_stop_reply): Record core number. | |
10085 | (remote_xfer_partial): Handle qXfer:threads. | |
10086 | (remote_core_of_thread): New. | |
10087 | (init_remote_ops): Register remote_core_of_thread. | |
10088 | (_initialize_remote): Register qXfer:read. | |
10089 | * target.c (target_core_of_thread): New | |
10090 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
10091 | (struct target_ops): New field to_core_of_threads. | |
10092 | (target_core_of_thread): Declare. | |
10093 | * gdbthread.h (struct thread_info): New field private_dtor. | |
10094 | * thread.c (print_thread_info): Report the core. | |
10095 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
10096 | * utils.c (compare_positive_ints): New. | |
10097 | * features/threads.dtd: New. | |
10098 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
10099 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
10100 | (do_nothing, free_vector_of_osdata_items) | |
10101 | (splay_tree_int_comparator, free_splay_tree): New. | |
10102 | (print_one_inferior_data): Implemented printing of selected | |
10103 | inferiors. Collect and print cores. | |
10104 | (output_cores): New. | |
10105 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
10106 | thread groups together with --available. | |
10107 | ||
d30c5336 JK |
10108 | 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
10109 | ||
10110 | * configure: Regenerate (for _STRUCTURED_PROC). | |
10111 | ||
02893727 JB |
10112 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
10113 | ||
10114 | Delete dead function. | |
10115 | * ada-lang.c (extract_string): Delete. No longer used. | |
10116 | ||
46ed2d6f JB |
10117 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
10118 | ||
10119 | Fix -Wunused warning in dec-thread.c. | |
10120 | * dec-thread.c (dec_thread_count_gdb_threads) | |
10121 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
10122 | ||
606b8d1a JB |
10123 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
10124 | ||
10125 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
10126 | ||
b4ba55a1 JB |
10127 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
10128 | ||
10129 | Add support for DW_AT_GNAT_descriptive_type. | |
10130 | * gdbtypes.h (enum type_specific_kind): New enum. | |
10131 | (struct main_type) [type_specific_field]: New component. | |
10132 | [type_specific]: Add new component "gnat_stuff". | |
10133 | (struct gnat_aux_type): New type. | |
10134 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
10135 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
10136 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
10137 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
10138 | (TYPE_SPECIFIC_FIELD): New macros. | |
10139 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
10140 | type does not hold any cplus-specific data. | |
10141 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
10142 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
10143 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
10144 | cplus-specific data. | |
10145 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
10146 | Set new component TYPE_SPECIFIC_FIELD (type). | |
10147 | (gnat_aux_default): New constant. | |
10148 | (allocate_gnat_aux_type): New function. | |
10149 | (init_type): Add initialization the type-specific stuff for | |
10150 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
10151 | (print_gnat_stuff): New function. | |
10152 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
10153 | specific data. Adjust code that prints the contents of the | |
10154 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
10155 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
10156 | the type cplus stuff for Ada types. | |
10157 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
10158 | Error out if these routines are called with an Ada type. | |
10159 | (read_structure_type, read_array_type, read_subrange_type): | |
10160 | Add call to set_descriptive_type. | |
10161 | (set_die_type): Initialize the gnat-specific data if necessary. | |
10162 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
10163 | New functions. | |
10164 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
10165 | decode_constrained_packed_array_type instead of doing a standard | |
10166 | lookup to locate a parallel type. | |
10167 | (find_parallel_type_by_descriptive_type): New function. | |
10168 | (ada_find_parallel_type_with_name): New function. | |
10169 | (ada_find_parallel_type): Reimplement using | |
10170 | ada_find_parallel_type_with_name. | |
10171 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
10172 | to check if type has a cplus stuff. | |
10173 | * linespec.c (total_number_of_methods): Likewise. | |
10174 | * mdebugread.c (new_type): Likewise. | |
10175 | ||
b0f02ee9 JK |
10176 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
10177 | ||
10178 | * NEWS: Document the 0b binary number prefix parsing. | |
10179 | ||
b260e109 JK |
10180 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
10181 | ||
10182 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
10183 | Describe the new return value. Return non-zero if data changed. | |
10184 | (objfile_relocate): New variable changed. Set it. Call | |
10185 | breakpoint_re_set depending on CHANGED. | |
10186 | ||
b5cfddf5 JK |
10187 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
10188 | ||
10189 | Implement binary numbers parsing. | |
10190 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
10191 | ||
e0ae4240 JK |
10192 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
10193 | Tristan Gingold <gingold@adacore.com> | |
10194 | ||
10195 | * solib.c (info_sharedlibrary_command): Replace | |
10196 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
10197 | objfile_has_symbols. | |
10198 | ||
6e0e5977 JB |
10199 | 2010-01-10 Joel Brobecker <brobecker@adacore.com> |
10200 | ||
10201 | * NEWS: Document the improvements made to the mips-irix port. | |
10202 | ||
7348c5e1 JB |
10203 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10204 | ||
10205 | Fix the documentation of valprint.c:value_print. | |
10206 | * valprint.c (value_print): Update the function description to | |
10207 | mention that the syntax of the output follows the current_language, | |
10208 | not necessarily C. | |
10209 | ||
567995e1 JK |
10210 | 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
10211 | ||
10212 | Fix displacement of separate debug info files. | |
10213 | * objfiles.c (objfile_relocate): Rename to ... | |
10214 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
10215 | (objfile_relocate): New function. | |
10216 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
10217 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
10218 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
10219 | allocated using alloca. | |
10220 | * symfile.c (copy_section_addr_info): Remove. | |
10221 | (build_section_addr_info_from_objfile): Make it global. New variables | |
10222 | addr_bit and mask, use them. | |
10223 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
10224 | (copy_section_addr_info): Remove. | |
10225 | ||
6d8eadbd JB |
10226 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10227 | ||
10228 | Signal unwinder for mips-irix N32. | |
10229 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
10230 | tramp-frame.h. | |
10231 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
10232 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
8d95cc3b PA |
10233 | (SIGCONTEXT_LO_OFF): New macros. |
10234 | (mips_irix_n32_tramp_frame_init): New function. | |
6d8eadbd JB |
10235 | (mips_irix_n32_tramp_frame): New static constant. |
10236 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
10237 | ||
27087a3d JB |
10238 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10239 | ||
10240 | Breakpoint in shared library does not work on mips-irix. | |
10241 | * procfs.c: #include "observer.h". | |
10242 | (procfs_inferior_created): New function, moving here the code | |
10243 | which unsets the syssgi syscall-exit notifications. | |
10244 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
10245 | syscall-exit notifications. It is too early to do this here. | |
10246 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
10247 | ||
f08877ba JB |
10248 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10249 | ||
10250 | Wrong return convention for arrays (mips-irix). | |
10251 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
10252 | 128 bits or smaller are returned the same way as structs | |
10253 | and unions of the the same size. | |
10254 | ||
e4b97d48 JB |
10255 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10256 | ||
10257 | Cannot set the PC on mips-irix. | |
10258 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
10259 | register number, no the cooked one. | |
10260 | ||
11377e68 JB |
10261 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10262 | ||
10263 | Error while loading core file on mips-irix. | |
10264 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
10265 | if debugging from a core file. | |
10266 | ||
b2391021 JB |
10267 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10268 | ||
10269 | GDB hangs when attaching to process on mips-irix. | |
10270 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
10271 | attaching to a process. | |
10272 | ||
f2ec0ecf JB |
10273 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10274 | ||
10275 | Use the correct breakpoint instruction on mips-irix. | |
10276 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
10277 | containing the correct breakpoint instruction to use on mips-irix. | |
10278 | Use it when the osabi is GDB_OSABI_IRIX. | |
10279 | ||
3c95f01c JB |
10280 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10281 | ||
10282 | -Wunused warning in procfs.c (mips-irix only). | |
10283 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
10284 | throughout instead of using praddset and prdelset respectively. | |
10285 | ||
4b7703ad JB |
10286 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10287 | ||
10288 | GDB crash while stepping into function. | |
10289 | * infrun.c (handle_inferior_event): Refetch the current frame | |
10290 | after handling what.main_action, in case that pointer became | |
10291 | dangling. | |
10292 | ||
12c89474 JB |
10293 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10294 | ||
10295 | Fix build failure of solaris-hosted cross debuggers. | |
10296 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
10297 | ||
1a3fd262 | 10298 | 2010-01-09 Daniel Gutson <dgutson@codesourcery.com> |
4c490650 JB |
10299 | |
10300 | Fix build failure on sparc-solaris. | |
10301 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
10302 | ||
75242ef4 JK |
10303 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
10304 | ||
10305 | Move some symfile code into subroutines. | |
10306 | * symfile.h (relative_addr_info_to_section_offsets) | |
10307 | (addr_info_make_relative): New prototypes. | |
10308 | * symfile.c (default_symfile_offsets): Move a part to ... | |
10309 | (relative_addr_info_to_section_offsets): ... this new function. | |
10310 | (default_symfile_offsets): Call it. | |
10311 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
10312 | this part to ... | |
10313 | (addr_info_make_relative): ... this new function. | |
10314 | ||
268a4a75 JK |
10315 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
10316 | ||
10317 | Add from_tty to solib_create_inferior_hook. | |
10318 | * infcmd.c (post_create_inferior): Move solib_add after | |
10319 | solib_create_inferior_hook. Pass from_tty to | |
10320 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
10321 | 0 from_tty and comment why. | |
10322 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
10323 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
10324 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
10325 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
10326 | from_tty. | |
10327 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
10328 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
10329 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
10330 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
10331 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
10332 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
10333 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
10334 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
10335 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
10336 | from_tty. | |
10337 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
10338 | solib_add. | |
10339 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
10340 | enable_break. | |
10341 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
10342 | parameter from_tty. | |
10343 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
10344 | it to ops->solib_create_inferior_hook. | |
10345 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
10346 | Move solib_add after solib_create_inferior_hook, call it now with | |
10347 | from_tty as 0. New comment there. | |
10348 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
10349 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
10350 | Likewise. | |
10351 | ||
cf00dfa7 VP |
10352 | 2010-01-08 Vladimir Prus <vladimir@codesourcery.com> |
10353 | ||
10354 | Fix multiexec race. | |
10355 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
10356 | with events ptid, not get_current_regcache. | |
10357 | ||
f91e5ac3 JB |
10358 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
10359 | ||
10360 | GDB crash with empty executable name (MinGW). | |
10361 | * source.c (openp): Add assert that parameter string is not NULL. | |
10362 | if parameter string is an empty string, then return with a failure | |
10363 | immediately. | |
10364 | ||
92b9ce5b JB |
10365 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
10366 | ||
10367 | Get rid of support for VAX Floats. | |
10368 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
10369 | (ada_vax_float_print_function): Delete. | |
10370 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
10371 | (ada_vax_float_print_function): Delete. | |
10372 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
10373 | (ada_print_type): Remove support for VAX floats. | |
10374 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
10375 | ||
268a4a75 | 10376 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
d24d8548 JK |
10377 | |
10378 | * stabsread.c (read_args): Handle zero arguments. | |
10379 | ||
f0f20949 JB |
10380 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
10381 | ||
10382 | Cannot find in-tree libiconv.a after reconfigure. | |
10383 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
10384 | that we can use, then cache the path to this archive. | |
10385 | * configure: Regenerate. | |
10386 | ||
6b6218c5 SS |
10387 | 2010-01-07 Stan Shebs <stan@codesourcery.com> |
10388 | ||
35b1e5cc SS |
10389 | Make tracepoint operations go through target vector. |
10390 | * target.h (enum trace_find_type): New enum. | |
10391 | (struct target_ops): New fields to_trace_init, | |
10392 | to_download_tracepoint, to_download_trace_state_variable, | |
10393 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
10394 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
10395 | to_set_disconnected_tracing. | |
10396 | (target_trace_init): New macro. | |
10397 | (target_download_tracepoint): New macro. | |
10398 | (target_download_trace_state_variable): New macro. | |
10399 | (target_trace_start): New macro. | |
10400 | (target_trace_set_readonly_regions): New macro. | |
10401 | (target_get_trace_status): New macro. | |
10402 | (target_trace_stop): New macro. | |
10403 | (target_trace_find): New macro. | |
10404 | (target_get_trace_state_variable_value): New macro. | |
10405 | (target_set_disconnected_tracing): New macro. | |
10406 | * target.c (update_current_target): Inherit and set defaults for | |
10407 | tracepoint operations. | |
10408 | * tracepoint.c (default_collect): Make globally visible. | |
10409 | (target_is_remote): Remove, along with all calls. | |
10410 | (tvariables_info): Call target_get_trace_state_variable_value. | |
10411 | (remote_set_transparent_ranges): Remove. | |
10412 | (trace_start_command): Call target_trace_init, | |
10413 | target_download_tracepoint, etc. | |
10414 | (download_tracepoint): Remove. | |
10415 | (trace_stop_command): Simplify. | |
10416 | (stop_tracing): Call target_trace_stop. | |
10417 | (get_trace_status): Call target_get_trace_status. | |
10418 | (trace_status_command): Add case for targets that cannot trace. | |
10419 | (finish_tfind_command): Change to take numerical arguments, call | |
10420 | target_trace_find. | |
10421 | (trace_find_command): Update call to finish_tfind_command. | |
10422 | (trace_find_pc_command): Ditto. | |
10423 | (trace_find_tracepoint_command): Ditto. | |
10424 | (trace_find_line_command): Ditto. | |
10425 | (trace_find_range_command): Ditto. | |
10426 | (trace_find_outside_command): Ditto. | |
10427 | (set_disconnected_tracing_value): Call | |
10428 | target_set_disconnected_tracing. | |
10429 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
10430 | (trace_error): Move from tracepoint.c. | |
10431 | (remote_get_noisy_reply): Ditto. | |
10432 | (free_actions_list_cleanup_wrapper): Ditto. | |
10433 | (free_actions_list): Ditto. | |
10434 | (remote_trace_init): New function. | |
10435 | (remote_download_tracepoint): New function. | |
10436 | (remote_download_trace_state_variable): New function. | |
10437 | (remote_trace_set_readonly_regions): New function. | |
10438 | (remote_trace_start): New function. | |
10439 | (remote_get_trace_status): New function. | |
10440 | (remote_trace_stop): New function. | |
10441 | (remote_trace_find): New function. | |
10442 | (remote_download_trace_state_variable): New function. | |
10443 | (remote_set_disconnected_tracing): New function. | |
10444 | (init_remote_ops): Add tracepoint operations. | |
10445 | ||
6b6218c5 SS |
10446 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
10447 | ||
089b4803 TG |
10448 | 2010-01-07 Tristan Gingold <gingold@adacore.com> |
10449 | ||
10450 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
10451 | (symbol_file_add_separate): Don't use offsets from objfile but | |
10452 | built an addr info. | |
10453 | ||
d5551862 SS |
10454 | 2010-01-06 Stan Shebs <stan@codesourcery.com> |
10455 | ||
10456 | Support disconnected tracing. | |
10457 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
10458 | * cli/cli-cmds.c (quit_command): Ditto. | |
10459 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
10460 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
10461 | (get_tracepoint_by_number_on_target): New function. | |
10462 | * remote.c (struct remote): New field disconnected_tracing. | |
10463 | (remote_disconnected_tracing_feature): New function. | |
10464 | (remote_protocol_features): Add DisconnectedTracing. | |
10465 | (struct uploaded_tp): New struct. | |
10466 | (uploaded_tps): New global. | |
10467 | (get_uploaded_tp): New function. | |
10468 | (find_matching_tracepoint): New function. | |
10469 | (remote_get_tracing_state): New function. | |
10470 | (remote_start_remote): Call it. | |
10471 | * tracepoint.c (disconnected_tracing): New global. | |
10472 | (trace_start_command): Initialize number_on_target. | |
10473 | (stop_tracing): New function, split out from... | |
10474 | (trace_stop_command): Call stop_tracing. | |
10475 | (get_trace_status): New function, split out from... | |
10476 | (trace_status_command): Call get_trace_status, add info on | |
10477 | disconnection behavior. | |
10478 | (disconnect_or_stop_tracing): New function. | |
10479 | (finish_tfind_command): Translate from number on target. | |
10480 | (trace_find_tracepoint_command): Translate to number on target. | |
10481 | (send_disconnected_tracing_value): New function. | |
10482 | (set_disconnected_tracing): New function. | |
10483 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
10484 | * NEWS: Mention disconnected tracing. | |
10485 | ||
15d123c9 TG |
10486 | 2010-01-06 Tristan Gingold <gingold@adacore.com> |
10487 | ||
10488 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
10489 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
10490 | * symfile.h (symbol_file_add_separate) | |
10491 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
10492 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
10493 | (reread_symbols): Use free_objfile_separate_debug. | |
10494 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
10495 | Adjust comment. | |
10496 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
10497 | (free_objfile_separate_debug): New prototypes. | |
10498 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
10499 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
10500 | functions. | |
10501 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
10502 | multiple separate debug objfile. | |
10503 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
10504 | debug objfiles. | |
10505 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
10506 | debug objfile. | |
10507 | (lookup_minimal_symbol_text): Ditto. | |
10508 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
10509 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
10510 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
10511 | debug objfiles. | |
10512 | ||
7a697b8d SS |
10513 | 2010-01-05 Stan Shebs <stan@codesourcery.com> |
10514 | ||
10515 | Add fast tracepoints. | |
10516 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
10517 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
10518 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
10519 | * breakpoint.c (tracepoint_type): New function. | |
10520 | (ALL_TRACEPOINTS): Use it. | |
10521 | (should_be_inserted): Ditto. | |
10522 | (bpstat_check_location): Ditto. | |
10523 | (print_one_breakpoint_location): Ditto. | |
10524 | (user_settable_breakpoint): Ditto. | |
10525 | (set_breakpoint_location_function): Ditto. | |
10526 | (disable_breakpoints_in_shlibs): Ditto. | |
10527 | (delete_trace_command): Ditto. | |
10528 | (print_it_typical): Add bp_fast_tracepoint case. | |
10529 | (bpstat_what): Ditto. | |
10530 | (print_one_breakpoint_location): Ditto. | |
10531 | (allocate_bp_location): Ditto. | |
10532 | (mention): Ditto. | |
10533 | (breakpoint_re_set_one): Ditto. | |
10534 | (disable_command): Ditto. | |
10535 | (enable_command): Ditto. | |
10536 | (check_fast_tracepoint_sals): New function. | |
10537 | (break_command_really): Call it. | |
10538 | (ftrace_command): New function. | |
10539 | (_initialize_breakpoint): Add ftrace command. | |
10540 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
10541 | * gdbarch.h, gdbarch.c: Regenerate. | |
10542 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
10543 | (i386_gdbarch_init): Use it. | |
10544 | * remote.c (struct remote_state): New field fast_tracepoints. | |
10545 | (PACKET_FastTracepoints): New packet config type. | |
10546 | (remote_fast_tracepoint_feature): New function. | |
10547 | (remote_protocol_features): Add FastTracepoints. | |
10548 | (remote_supports_fast_tracepoints): New function. | |
10549 | (_initialize_remote): Add FastTracepoints. | |
10550 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
10551 | * NEWS: Mention fast tracepoints. | |
10552 | ||
737a160e JB |
10553 | 2010-01-06 Joel Brobecker <brobecker@adacore.com> |
10554 | ||
10555 | * gdb-gdb.py: New file. | |
10556 | ||
ce6cca6d MS |
10557 | 2010-01-05 Michael Snyder <msnyder@vmware.com> |
10558 | ||
10559 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
10560 | ||
0d15807d JK |
10561 | 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
10562 | ||
10563 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
10564 | ||
7803799a UW |
10565 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
10566 | ||
c8d5aac9 | 10567 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, |
7803799a UW |
10568 | and s390x-linux64. |
10569 | (s390-linux32-expedite): Define. | |
10570 | (s390-linux64-expedite): Define. | |
10571 | (s390x-linux64-expedite): Define. | |
10572 | * features/s390-acr.xml: New file. | |
10573 | * features/s390-fpr.xml: New file. | |
10574 | * features/s390-core32.xml: New file. | |
10575 | * features/s390-core64.xml: New file. | |
10576 | * features/s390x-core64.xml: New file. | |
10577 | * features/s390-linux32.xml: New file. | |
10578 | * features/s390-linux64.xml: New file. | |
10579 | * features/s390x-linux64.xml: New file. | |
10580 | * features/s390-linux32.c: New generated file. | |
10581 | * features/s390-linux64.c: New generated file. | |
10582 | * features/s390x-linux64.c: New generated file. | |
10583 | ||
10584 | * regformats/s390-linux32.dat: New generated file. | |
10585 | * regformats/s390-linux64.dat: New generated file. | |
10586 | * regformats/s390x-linux64.dat: New generated file. | |
10587 | * regformats/reg-s390.dat: Remove. | |
10588 | * regformats/reg-s390x.dat: Remove. | |
10589 | ||
10590 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
10591 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
10592 | (s390_target_wordsize): New function. | |
10593 | (s390_auxv_parse): Likewise. | |
10594 | (s390_get_hwcap): Likewise. | |
10595 | (s390_read_description): Likewise. | |
10596 | (_initialize_s390_nat): Install s390_auxv_parse and | |
10597 | s390_read_description. | |
10598 | ||
10599 | * s390-tdep.c: Include "features/s390-linux32.c", | |
10600 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
10601 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
10602 | (s390_register_call_saved): New function. | |
10603 | (s390_register_name): Remove. | |
10604 | (s390_register_type): Remove. | |
10605 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
10606 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
10607 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
10608 | (s390_pseudo_register_name): New function. | |
10609 | (s390_pseudo_register_type): New function. | |
10610 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
10611 | Handle full GPR pesudos and varying pseudo register numbers. | |
10612 | (s390_pseudo_register_write): Likewise | |
10613 | (s390x_pseudo_register_read): Remove. | |
10614 | (s390x_pseudo_register_write): Likewise. | |
10615 | (s390_register_group): Remove. | |
10616 | (s390_pseudo_register_group): New function. | |
10617 | (s390_regmap_gregset): Add GPR upper halves. | |
10618 | (s390x_regmap_gregset): Likewise. | |
10619 | (s390_regmap_fpregset): Likewise. | |
10620 | (s390_regmap_upper): New global variable. | |
10621 | (s390_upper_regset): New global variable. | |
10622 | (s390_upper_regset_sections): New global variable. | |
10623 | (s390_regset_from_core_section): Handle GPR upper halves. | |
10624 | (s390_core_read_description): New function. | |
10625 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
10626 | register information. Handle varying pseudo register numbers. | |
10627 | (s390_backchain_frame_unwind_cache): Likewise. | |
10628 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
10629 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
10630 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
10631 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
10632 | Handle varying pseudo register numbers. | |
10633 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
10634 | (s390_dwarf2_prev_register): New function. | |
10635 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
10636 | register information. Handle varying pseudo register numbers. | |
10637 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
10638 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
10639 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
10640 | (_initialize_s390_tdep): Initialize target descriptions. | |
10641 | ||
10642 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
10643 | (S390_NUM_REGS): Redefine to include upper half registers. | |
10644 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
10645 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
10646 | (tdesc_s390_linux32): Add declaration. | |
10647 | (tdesc_s390_linux64): Likewise. | |
10648 | (tdesc_s390x_linux64): Likewise. | |
10649 | ||
1b1818e4 UW |
10650 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
10651 | ||
10652 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
10653 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
10654 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
10655 | (ppc_linux_vmx_regset_sections): Likewise. | |
10656 | (ppc_linux_fp_regset_sections): Likewise. | |
10657 | ||
10658 | * corelow.c (get_core_register_section): Constify arguments. | |
10659 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
10660 | of hard-coded platform-specific register section names. | |
10661 | ||
dcbf108f UW |
10662 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
10663 | ||
10664 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 10665 | a register, assume the least-significant part is used. |
dcbf108f UW |
10666 | (write_pieced_value): Likewise. |
10667 | ||
704e9165 UW |
10668 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
10669 | ||
10670 | * printcmd.c: Include "arch-utils.h". | |
10671 | (do_one_display): Re-parse expression if current architecture changed. | |
10672 | ||
c54eabfa JK |
10673 | 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
10674 | Joel Brobecker <brobecker@adacore.com> | |
10675 | ||
10676 | * gdbtypes.c (check_typedef): New comment on type length. | |
10677 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
10678 | comment on type length. | |
10679 | (value_primitive_field): Keep the original TYPE value, new comment. | |
10680 | ||
50cb2941 JK |
10681 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
10682 | ||
10683 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
10684 | p_start. Change != comparisons to > and < comparisons. | |
10685 | ||
be66db07 JK |
10686 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
10687 | ||
10688 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
10689 | ||
abd775ce JB |
10690 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
10691 | ||
10692 | Update the copyright hearder to add year 2010 for most GDB files. | |
10693 | ||
6479260d JB |
10694 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
10695 | ||
10696 | Fix build failure in inf-ptrace.c. | |
10697 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
10698 | ||
4a70f654 JB |
10699 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
10700 | ||
10701 | * top.c (print_gdb_version): Update copyright year. | |
10702 | ||
595939de | 10703 | 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com> |
b9ee2233 JB |
10704 | |
10705 | Fix break *FUN'address thread NUM. | |
10706 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
10707 | ||
70575d34 JB |
10708 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
10709 | ||
10710 | Fix break *FUN'address task NUM. | |
10711 | * ada-lex.l (task): New rule. | |
10712 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
10713 | been built before using it. | |
10714 | ||
e1e4d4a4 | 10715 | For older changes see ChangeLog-2009. |
c906108c SS |
10716 | \f |
10717 | Local Variables: | |
10718 | mode: change-log | |
10719 | left-margin: 8 | |
10720 | fill-column: 74 | |
10721 | version-control: never | |
57da7796 | 10722 | coding: utf-8 |
c906108c | 10723 | End: |