Commit | Line | Data |
---|---|---|
a9d5ef47 SW |
1 | 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com> |
2 | ||
3 | * gdbtypes.h (struct rank): Created subrank. | |
4 | * gdbtypes.c: Initialized subrank for all | |
5 | 'BADNESS' constants. | |
6 | (distance_to_ancestor): New function. | |
7 | (is_ancestor): Use distance_to_ancestor. | |
8 | (is_public_ancestor): Ditto. | |
9 | (sum_ranks): Handle subrank. | |
10 | (compare_ranks): Ditto. | |
11 | (rank_one_type): Subrank base conversions. | |
12 | ||
6403aeea SW |
13 | 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com> |
14 | ||
15 | * gdbtypes.h: Create struct rank. | |
16 | Convert all 'BADNESS' macros to const struct rank declarations. | |
17 | (sum_ranks): New function. | |
18 | (compare_ranks): New function. | |
19 | * valops.c (find_oload_champ): Updated. | |
20 | (classify_oload_match): Use compare_ranks. | |
21 | Improved comments. | |
22 | (compare_parameters): Use compare_ranks. | |
23 | * gdbtypes.c: Initialize 'BADNESS' constants. | |
24 | (sum_ranks): New function. | |
25 | (compare_ranks): New function. | |
26 | (compare_badness): Use compare_ranks. | |
27 | (rank_function): Use global constants instead of literals. | |
28 | (rank_one_type): Ditto. | |
29 | Return struct rank. | |
30 | Use sum_ranks. | |
31 | ||
23fa7f66 DE |
32 | 2010-11-04 Doug Evans <dje@google.com> |
33 | ||
34 | * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment. | |
35 | (find_pretty_printer): Fix comments. | |
36 | ||
608bcef2 HZ |
37 | 2010-11-04 Hui Zhu <teawater@gmail.com> |
38 | ||
39 | * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma. | |
40 | ||
9addb3b9 JB |
41 | 2010-11-03 Joel Brobecker <brobecker@adacore.com> |
42 | ||
43 | * ada-valprint.c (ada_val_print_array): Move variables `eltlen' | |
44 | and `len' declaration and computation inside block where they | |
45 | are being used. | |
46 | ||
75be741b JB |
47 | 2010-11-03 Joel Brobecker <brobecker@adacore.com> |
48 | ||
49 | * valprint.c (val_print_array_elements): Put back handling of | |
50 | empty arrays. | |
51 | ||
dbc98a8b KW |
52 | 2010-11-03 Ken Werner <ken.werner@de.ibm.com> |
53 | ||
54 | * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the | |
55 | DIE and set the length of the type. | |
56 | * gdbtypes.h (get_array_bounds): Move here from valprint.h. | |
57 | * gdbtypes.c (get_array_bounds): Move here from valprint.c and | |
58 | return 0 if the corresponding bounds of the type are undefined. | |
59 | * valprint.h (get_array_bounds): Move declaration to gdbtypes.h. | |
60 | * valprint.c (get_array_bounds): Move implementation to gdbtypes.c. | |
61 | (val_print_array_elements): Use get_array_bounds to compute the number | |
62 | of array elements instead of dividing the length of the array by the | |
63 | length of the element types. | |
64 | * valarith.c (vector_binop): Likewise. | |
65 | * valops.c (value_cast): Likewise. | |
66 | * c-valprint.c (c_val_print): Likewise. | |
67 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. | |
68 | ||
120bd360 KW |
69 | 2010-11-03 Ken Werner <ken.werner@de.ibm.com> |
70 | ||
71 | * valarith.c (value_pos, value_neg, value_complement): Handle | |
72 | vector types. | |
73 | * valops.c (value_one): Likewise. | |
74 | ||
c37f7098 KW |
75 | 2010-11-03 Ken Werner <ken.werner@de.ibm.com> |
76 | ||
77 | * value.h (value_non_lval): Declare. | |
78 | * value.c (value_non_lval): New function. | |
79 | * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT, | |
80 | UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a | |
81 | non-lvalue. | |
82 | ||
7b51bc51 DE |
83 | 2010-11-02 Doug Evans <dje@google.com> |
84 | ||
85 | New python module gdb.printing, and new commands info pretty-printer, | |
86 | enable pretty-printer, disable pretty-printer. | |
87 | * NEWS: Mention them. | |
88 | * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py, | |
89 | gdb/command/__init__.py, gdb/command/pretty_printers.py. | |
90 | * python/lib/gdb/__init__.py: Install pretty-printer commands. | |
91 | * python/lib/gdb/printing.py: New file. | |
92 | * python/lib/gdb/command/__init__.py: New file. | |
93 | * python/lib/gdb/command/pretty_printers.py: New file. | |
94 | ||
50c97f38 TT |
95 | 2010-11-02 Tom Tromey <tromey@redhat.com> |
96 | ||
97 | * NEWS: Mention Guile removal. | |
98 | * defs.h (enum language) <language_scm>: Remove. | |
99 | * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c, | |
100 | scm-valprint.c. | |
101 | (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h. | |
102 | (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o. | |
103 | * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h: | |
104 | Remove. | |
105 | ||
9dea9163 DE |
106 | 2010-11-02 Doug Evans <dje@google.com> |
107 | ||
108 | * top.c: #include "python/python.h". | |
109 | (gdb_init): Add a comment regarding initialize_all_files. | |
110 | Call finish_python_initialization at the end. | |
111 | * python/python.h (finish_python_initialization): Declare. | |
112 | * python/python.c (finish_python_initialization): New function. | |
113 | (_initialize_python): Move python-implemented initialization there | |
114 | and call it. | |
115 | (GdbMethods): Use #ifdef HAVE_PYTHON for consistency. | |
116 | ||
a289b8f6 JK |
117 | 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
118 | ||
119 | Revert: | |
120 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> | |
121 | Pedro Alves <pedro@codesourcery.com> | |
122 | * gdbthread.h (currently_stepping): New declaration. | |
123 | * infrun.c (currently_stepping): Remove the forward declaration. | |
124 | (currently_stepping): Make it global. | |
125 | * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New | |
126 | variables tp and step, initialized them. Pass STEP to to_resume. | |
127 | Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP. | |
128 | * remote.c (currently_stepping_callback): New. | |
129 | (remote_vcont_resume) | |
130 | <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>: | |
131 | New variable tp. Call currently_stepping_callback and step such | |
132 | thread. | |
133 | ||
2209c807 HZ |
134 | 2010-11-01 Hui Zhu <teawater@gmail.com> |
135 | ||
136 | * tracepoint.c (tfile_xfer_partial): Change lma to vma. | |
137 | ||
0a2a54b8 HZ |
138 | 2010-10-28 Hui Zhu <teawater@gmail.com> |
139 | ||
140 | * tracepoint.c (trace_save): Change utp->actions to | |
141 | utp->step_actions. | |
142 | ||
284a3db3 JB |
143 | 2010-10-26 Joel Brobecker <brobecker@adacore.com> |
144 | ||
145 | * (_FILE_OFFSET_BITS): Fix typo in comment. | |
146 | ||
aed1781d JB |
147 | 2010-10-26 Joel Brobecker <brobecker@adacore.com> |
148 | ||
149 | * python/python-internal.h (_FILE_OFFSET_BITS): Undefine. | |
150 | (PyEval_InitThreads): Remove duplicate. Define as nothing. | |
151 | (PyEval_ReleaseLock): Define as nothing. | |
152 | ||
1e3fad37 JB |
153 | 2010-10-26 Joel Brobecker <brobecker@adacore.com> |
154 | ||
155 | * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp | |
156 | by call to FILENAME_CMP. | |
157 | ||
558b1900 JB |
158 | 2010-10-26 Joel Brobecker <brobecker@adacore.com> |
159 | ||
160 | * dictionary.c (dict_hash): Move assignment out of if condition. | |
161 | ||
f474844c JZ |
162 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
163 | ||
164 | * Makefile.in (install): Remove dependency of install-only and | |
165 | recursively invoke make for install-only. | |
166 | * data-directory/Makefile.in: Add FLAGS_TO_PASS variable. | |
167 | (install): Pass FLAGS_TO_PASS when recursively make install-only. | |
168 | ||
8991e9fa HZ |
169 | 2010-10-20 Hui Zhu <teawater@gmail.com> |
170 | ||
171 | * tracepoint.c (tfile_get_traceframe_address): Call | |
172 | extract_signed_integer. | |
173 | (tfile_trace_find): Call extract_signed_integer and | |
174 | extract_unsigned_integer. Change data_size to unsigned int. | |
175 | (tfile_fetch_registers): Call extract_unsigned_integer. | |
176 | (tfile_xfer_partial): Ditto. | |
177 | (tfile_get_trace_state_variable_value): Call | |
178 | extract_signed_integer and extract_unsigned_integer. | |
179 | ||
21bce120 VP |
180 | 2010-10-20 Vladimir Prus <vladimir@codesourcery.com> |
181 | ||
182 | * remote.c (remote_get_threadlist): If we got empty | |
183 | response, bail out immediately, and don't emit any | |
184 | warnings. | |
185 | ||
ad8b5167 UW |
186 | 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
187 | ||
188 | * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding | |
189 | for "mov pc, REG" as well. | |
190 | (thumb_instruction_changes_pc): Likewise. | |
191 | ||
79afc5ef SW |
192 | 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> |
193 | ||
194 | PR C++/11500: | |
195 | * valarith.c (value_x_unop): Handle STRUCTOP_PTR. | |
196 | * eval.c (evaluate_subexp_standard): Check for overload of | |
197 | 'operator->'. | |
198 | * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR. | |
199 | (value_x_unop): Ditto. | |
200 | * valops.c: Include "exceptions.h". | |
201 | (find_overload_match): Throw NOT_FOUND_ERROR. | |
202 | (value_struct_elt): Ditto. | |
203 | ||
cca56ac7 TT |
204 | 2010-10-19 Tom Tromey <tromey@redhat.com> |
205 | ||
206 | * python/py-cmd.c (cmdpy_function): Unreference exception state. | |
207 | ||
026ffab7 SW |
208 | 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> |
209 | ||
210 | * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS. | |
211 | * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS | |
212 | for conversion. | |
213 | Make all other conversions illegal. | |
214 | ||
8c540a24 DE |
215 | 2010-10-18 Doug Evans <dje@google.com> |
216 | ||
217 | * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify | |
218 | assumptions of when this case happens. Print "<unnamed typedef>". | |
219 | ||
3a772aa4 TT |
220 | 2010-10-18 Tom Tromey <tromey@redhat.com> |
221 | ||
222 | * valprint.c (val_print_string): Pass 'encoding' to | |
223 | LA_PRINT_STRING. | |
224 | ||
01f8c46d JK |
225 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
226 | ||
227 | Fix the `stopped language detection' testcase for gcc-4.5. | |
228 | * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN. | |
229 | * symfile.c (set_initial_language): Move variable filename to a more | |
230 | inner block. Prefer LANGUAGE_OF_MAIN. | |
231 | * symtab.c (language_of_main): New variable. | |
232 | (set_main_name): Always reset LANGUAGE_OF_MAIN. | |
233 | * symtab.h (language_of_main): New declaration. | |
234 | ||
8aeb23f3 JK |
235 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
236 | Pedro Alves <pedro@codesourcery.com> | |
237 | ||
238 | * gdbthread.h (currently_stepping): New declaration. | |
239 | * infrun.c (currently_stepping): Remove the forward declaration. | |
240 | (currently_stepping): Make it global. | |
241 | * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New | |
242 | variables tp and step, initialized them. Pass STEP to to_resume. | |
243 | Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP. | |
244 | * remote.c (currently_stepping_callback): New. | |
245 | (remote_vcont_resume) | |
246 | <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>: | |
247 | New variable tp. Call currently_stepping_callback and step such | |
248 | thread. | |
249 | ||
c1e56572 JK |
250 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
251 | ||
252 | * infrun.c (follow_exec): Replace symbol_file_add_main by | |
253 | symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and | |
254 | breakpoint_re_set. | |
255 | * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for | |
256 | clear_symtab_users. | |
257 | * objfiles.c (free_all_objfiles): Likewise. | |
258 | * remote-m32r-sdi.c (m32r_load): Likewise. | |
259 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
260 | * symfile.c (new_symfile_objfile): New comment for add_flags. Call | |
261 | clear_symtab_users with ADD_FLAGS. | |
262 | (reread_symbols): Use parameter 0 for clear_symtab_users. | |
263 | (clear_symtab_users): New parameter add_flags. Do not call | |
264 | breakpoint_re_set if SYMFILE_DEFER_BP_RESET. | |
265 | (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users. | |
266 | * symtab.h (clear_symtab_users): New parameter add_flags. | |
267 | ||
3a182a69 JK |
268 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
269 | ||
270 | Fix GCC false warning. | |
271 | * varobj.c (value_get_print_value) <str_addr>: Initialize it. | |
272 | ||
3a9d7214 PM |
273 | 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr> |
274 | ||
275 | * p-typeprint.c (pascal_type_print_method_args): Fix problem in | |
276 | display of type of method arguments. | |
277 | ||
09ca9e2e TT |
278 | 2010-10-15 Tom Tromey <tromey@redhat.com> |
279 | ||
280 | PR python/11948: | |
281 | * varobj.c (value_get_print_value): Use val_print_string to print | |
282 | lazy strings. | |
283 | * python/py-prettyprint.c (print_string_repr): Use | |
284 | val_print_string to print lazy strings. Fix cleanup logic. | |
285 | (print_children): Likewise. | |
286 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
287 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite. | |
288 | Change return type to 'void', add 'addr' argument. | |
289 | * value.h (val_print_string): Update. | |
290 | * valprint.c (val_print_string): Add 'encoding' argument. | |
291 | * printcmd.c (print_formatted): Update. | |
292 | * p-valprint.c (pascal_val_print): Update. | |
293 | * m2-valprint.c (print_unpacked_pointer): Update. | |
294 | (m2_print_array_contents): Likewise. | |
295 | * jv-valprint.c (java_value_print): Update. | |
296 | * f-valprint.c (f_val_print): Update. | |
297 | * c-valprint.c (c_val_print): Update. | |
298 | * auxv.c (fprint_target_auxv): Update. | |
299 | ||
92163a10 JK |
300 | 2010-10-15 Doug Evans <dje@google.com> |
301 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
302 | ||
303 | PR exp/12117 | |
304 | * gdbtypes.c (check_typedef): Clean up function comment. | |
305 | Keep track of instance flags as we strip typedefs and create a new | |
306 | type to preserve them if necessary. | |
307 | * gdbtypes.h (type) <instance_flags>: Extend the comment. | |
308 | ||
dae71413 PM |
309 | 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr> |
310 | ||
311 | * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor. | |
312 | ||
7062b0a0 SW |
313 | 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com> |
314 | ||
315 | * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS. | |
316 | * gdbtypes.c (rank_one_type): Move type comparison code out of here | |
317 | to... | |
318 | (types_equal): ...here. And changed it as follows: | |
319 | Outside of typedefs type must be of the same TYPE_CODE. | |
320 | When compairing two pointers or references they are equal if their | |
321 | targets are equal. | |
322 | Correct pointer conversions. | |
323 | ||
5c3da5ea PM |
324 | 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr> |
325 | ||
326 | * p-lang.c (is_pascal_string_type): Avoid crashes on structures | |
327 | having fields without names. | |
328 | ||
577ce03a TT |
329 | 2010-10-13 Tom Tromey <tromey@redhat.com> |
330 | ||
331 | * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name. | |
332 | ||
a737a51b DE |
333 | 2010-10-13 Doug Evans <dje@google.com> |
334 | ||
0e3509db DE |
335 | New python module gdb.types. |
336 | * NEWS: Document it. | |
337 | * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py. | |
338 | * python/lib/gdb/types.py: New file. | |
339 | ||
a737a51b DE |
340 | * c-typeprint.c: Whitespace cleanup. |
341 | (cp_type_print_method_args): Remove unnecessary forward decl. | |
342 | (cp_type_print_derivation_info): Ditto. | |
343 | (c_type_print_varspec_prefix): Mark as static at definition. | |
344 | (c_type_print_modifier): Fix arg descriptions. | |
345 | ||
8dc78533 JK |
346 | 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
347 | ||
348 | * python/py-breakpoint.c (bppy_set_condition): New comment. | |
349 | * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for | |
350 | failed PyUnicode_Decode. | |
351 | (cmdpy_completer): Skip element for failed | |
352 | python_string_to_host_string. | |
353 | (cmdpy_init): Return -1 on failed python_string_to_host_string. | |
354 | * python/py-frame.c (frapy_read_var): Extend the function comment. | |
355 | * python/py-function.c (fnpy_init): Return -1 on failed | |
356 | python_string_to_host_string. | |
357 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend | |
358 | the function comment. | |
359 | (infpy_search_memory): Extend the function comment. Remove the | |
360 | PyErr_SetString call on already set error state. | |
361 | * python/py-param.c (set_parameter_value): Extend the function | |
362 | comment. Return -1 on failed python_string_to_host_string, twice. | |
363 | (set_attr): Extend the function comment. | |
364 | (compute_enum_values): Extend the function comment. New variable | |
365 | back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on | |
366 | failed python_string_to_host_string. | |
367 | (get_doc_string): Call gdbpy_print_stack on failed | |
368 | python_string_to_host_string. | |
369 | (parmpy_init): Extend the function comment. | |
370 | * python/py-prettyprint.c (pretty_print_one_value): Likewise. | |
371 | (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on | |
372 | failed python_string_to_host_string. | |
373 | * python/py-value.c (valpy_new, valpy_getitem, valpy_call) | |
374 | (valpy_binop, valpy_richcompare): Extend the function comment. | |
375 | * python/python.c | |
376 | (struct python_env) <error_type, error_value, error_traceback>: New | |
377 | fields. | |
378 | (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore. | |
379 | (ensure_python_env): Call PyErr_Fetch. | |
380 | * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on | |
381 | failed convert_value_from_python. | |
382 | (value_get_print_value): Call gdbpy_print_stack on failed | |
383 | python_string_to_target_python_string. | |
384 | ||
1bdb0c54 TT |
385 | 2010-10-12 Tom Tromey <tromey@redhat.com> |
386 | ||
387 | * python/py-prettyprint.c (search_pp_list): Fix error checking. | |
388 | ||
0526b37a SW |
389 | 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com> |
390 | ||
391 | * gdbtypes.c (do_is_ancestor): New function. | |
392 | (is_ancestor): Use do_is_ancestor. | |
393 | (is_public_ancestor): Use do_is_ancestor. | |
394 | ||
c1b5be38 PM |
395 | 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr> |
396 | ||
397 | * ser-go32.c (struct dos_ops): Add missing fdopen field. | |
398 | ||
68770265 MGD |
399 | 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
400 | ||
401 | * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array. | |
402 | ||
64b00020 DE |
403 | 2010-10-11 Doug Evans <dje@google.com> |
404 | ||
405 | * c-typeprint.c (c_type_print_modifier): Add note that this prints | |
406 | the address space id too. | |
407 | ||
43b8e241 JK |
408 | 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
409 | ||
410 | Fix attaching to re-prelinked executables on ppc64. | |
411 | * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect, | |
412 | initialize it, try to adjust FILESZ field by it. | |
413 | ||
417b5110 DJ |
414 | 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com> |
415 | ||
416 | * tracepoint.c (merge_uploaded_trace_state_variables): Only print | |
417 | messages if info_verbose. | |
418 | ||
3bdf2bbd KW |
419 | 2010-10-08 Ken Werner <ken.werner@de.ibm.com> |
420 | ||
421 | * valops.c (value_cast): Handle vector types. | |
422 | * valarith.c (value_binop): Widen scalar to vector if appropriate. | |
423 | ||
ec3d575a UW |
424 | 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com> |
425 | ||
426 | * arm-tdep.c (thumb_expand_immediate): New function. | |
427 | (thumb_instruction_changes_pc): Likewise. | |
428 | (thumb2_instruction_changes_pc): Likewise. | |
429 | (thumb_analyze_prologue): Handle 32-bit Thumb instructions during | |
430 | prologue parsing. Improved support for optimized code. | |
431 | (thumb_scan_prologue): Do not reply on line-number information, | |
432 | use same heuristics as arm_scan_prologue insead. | |
433 | (skip_prologue_function): Accept functions | |
434 | "__tls_get_addr" and "__aeabi_read_tp". | |
435 | ||
4024ca99 UW |
436 | 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com> |
437 | Daniel Jacobowitz <dan@codesourcery.com> | |
438 | ||
439 | * arm-tdep.c (thumb_in_function_epilogue_p) | |
440 | (arm_in_function_epilogue_p): New. | |
441 | (arm_gdbarch_init): Install arm_in_function_epilogue_p as | |
442 | gdbarch_in_function_epilogue_p callback. | |
443 | ||
855c153f DE |
444 | 2010-10-07 Doug Evans <dje@google.com> |
445 | ||
00e14314 DE |
446 | * cc-with-index.sh (output_file): Default to a.out. |
447 | ||
3876f04e DE |
448 | * dwarf2read.c (mapped_index): Rename member index_table to |
449 | symbol_table and index_table_slots to symbol_table_slots. | |
450 | All uses updated. | |
451 | (create_symbol_hash_table): Renamed from create_index_table. | |
452 | All callers updated. | |
453 | (add_indices_to_cpool): Rename arg index_table to symbol_hash_table. | |
454 | (write_hash_table): Rename local index_table to symbol_hash_table. | |
455 | ||
855c153f DE |
456 | * addrmap.h (addrmap_foreach_fn): New typedef. |
457 | (addrmap_foreach): Declare. | |
458 | * addrmap.c (struct addrmap_funcs): New member foreach. | |
459 | (addrmap_foreach): New function. | |
460 | (addrmap_fixed_foreach): New function. | |
461 | (addrmap_fixed_funcs): Update. | |
462 | (struct mutable_foreach_data): New struct. | |
463 | (addrmap_mutable_foreach_worker): New function. | |
464 | (addrmap_mutable_foreach): New function. | |
465 | (addrmap_mutable_funcs): Update. | |
466 | ||
1d2a4540 PH |
467 | 2010-10-07 Paul Hilfinger <hilfinger@adacore.com> |
468 | ||
469 | * dictionary.c (dict_hash): Revert to msymbol_hash_iw in | |
470 | more cases. | |
471 | ||
40658b94 PH |
472 | 2010-10-07 Paul Hilfinger <hilfinger@adacore.com> |
473 | ||
474 | * ada-lang.c (full_match): Declare. | |
475 | (ada_match_name): Rename to match_name (we should avoid prefixing static | |
476 | symbols with "ada_"). | |
477 | (match_name): New name for ada_match_name. | |
478 | (struct ada_psym_data): Remove and replace with... | |
479 | (struct match_data): User data for map_matching_symbols. | |
480 | (ada_add_psyms): Remove. | |
481 | (aux_add_nonlocal_symbols): New function, used as callback for | |
482 | map_matching_symbols. | |
483 | (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded | |
484 | symbols. | |
485 | (ada_add_non_local_symbols): Rename to add_nonlocal_symbols. | |
486 | (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols. | |
487 | Rework to use map_matching_symbols instead of map_ada_symtabs. | |
488 | (ada_lookup_symbol_list): Use add_nonlocal_symbols. | |
489 | * psymtab.c: Include dependency on dictionary.h. | |
490 | (match_partial_symbol): New function. | |
491 | (ada_lookup_partial_symbol): Remove. | |
492 | (map_block): New function, auxiliary to map_matching_symbols_psymtab. | |
493 | (map_matching_symbols_psymtab): New function. | |
494 | (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab. | |
495 | * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols. | |
496 | ||
c4d840bd PH |
497 | 2010-10-06 Paul Hilfinger <hilfinger@adacore.com> |
498 | ||
499 | * ada-lang.c (ada_match_name): Use new API for wild_match. | |
40658b94 PH |
500 | (wild_match): Change API to be consistent with that of strcmp_iw; |
501 | return 0 for a match, and switch operand order. | |
502 | (full_match): New function. | |
503 | (ada_add_block_symbols): Use dict_iter_match_{first,next} for | |
504 | matching to allow use of hashing. | |
505 | * dictionary.c (struct dict_vector): Generalize iter_name_first, | |
506 | iter_name_next ot iter_match_first, iter_match_next. | |
507 | (iter_name_first_hashed): Replace with iter_match_first_hashed. | |
508 | (iter_name_next_hashed): Replace with iter_match_next_hashed. | |
509 | (iter_name_first_linear): Replace with iter_match_first_linear. | |
510 | (iter_name_next_linear): Replace with iter_match_next_linear. | |
511 | (dict_iter_name_first): Re-implement to use dict_iter_match_first. | |
512 | (dict_iter_name_next): Re-implement to use dict_iter_match_next. | |
513 | (dict_iter_match_first): New function. | |
514 | (dict_iter_match_next): New function. | |
515 | (dict_hash): New function. | |
516 | * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare. | |
517 | * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API. | |
c4d840bd | 518 | |
543ecec7 DE |
519 | 2010-10-06 Doug Evans <dje@google.com> |
520 | ||
521 | * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@. | |
522 | ||
2f608a3a KW |
523 | 2010-10-06 Ken Werner <ken.werner@de.ibm.com> |
524 | ||
525 | * dwarf2read.c (read_tag_const_type): Handle const arrays. | |
526 | ||
aa2e2d8d DE |
527 | 2010-10-06 Doug Evans <dje@google.com> |
528 | ||
9c9606fb DE |
529 | * Makefile.in (REQUIRED_SUBDIRS): New var. |
530 | (subdir_do): Verify required subdir Makefiles exist. | |
531 | ||
aa2e2d8d DE |
532 | Create subdir data-directory. |
533 | * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to | |
534 | data-directory/Makefile.in. | |
535 | (SUBDIRS): Add data-directory. | |
536 | (all): Remove xml-syscall-copy dependency. | |
537 | (xml-syscall-copy): Moved to data-directory/Makefile.in as | |
538 | stamp-syscalls. | |
539 | (xml-syscall-install): Moved to data-directory/Makefile.in as | |
540 | install-syscalls. | |
541 | (install-only): Remove xml-syscall-install dependency. | |
542 | (all-data-directory): New rule. | |
543 | (data-directory/Makefile): New rule. | |
544 | * configure.ac (AC_OUTPUT): Add data-directory/Makefile. | |
545 | * configure: Regenerate. | |
546 | * data-directory/Makefile.in: New file. | |
547 | * python/lib/gdb/__init__.py: New file. | |
548 | ||
aa27d0b3 JB |
549 | 2010-10-06 Joel Brobecker <brobecker@adacore.com> |
550 | ||
551 | Fix ARI warnings in advance_wild_match. | |
552 | * ada-lang.c (advance_wild_match): Delete local variable t2. | |
553 | Adjust code accordingly. Minor reformatting. | |
554 | ||
2844d6b5 KW |
555 | 2010-10-06 Ken Werner <ken.werner@de.ibm.com> |
556 | ||
557 | * gdbtypes.h (struct main_type): Remove flag_nottext. | |
558 | (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT. | |
559 | (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT. | |
560 | (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext. | |
561 | * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead | |
562 | of TYPE_FLAG_NOTTEXT. | |
563 | (init_type): Remove the initialization of the flag_nottext field. | |
564 | (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of | |
565 | TYPE_FLAG_NOTTEXT. | |
566 | * c-valprint.c (c_val_print): Remove TYPE_VECTOR check. | |
567 | ||
2fdf6df6 DE |
568 | 2010-10-04 Doug Evans <dje@google.com> |
569 | ||
ea65fe05 DE |
570 | * cc-with-index.sh: New file. |
571 | ||
2fdf6df6 DE |
572 | * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after |
573 | function comment. | |
574 | (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto. | |
575 | (create_cus_from_index, create_addrmap_from_index): Ditto. | |
576 | (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto. | |
577 | (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto. | |
578 | (dw2_do_expand_symtabs_matching): Ditto. | |
b89be57b DE |
579 | (eq_strtab_entry, create_strtab, add_string): Ditto. |
580 | (hash_strtab_entry): Ditto. | |
581 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto. | |
582 | (create_index_table, create_mapped_symtab, find_slot): Ditto. | |
583 | (hash_expand, add_index_entry, add_indices_to_cpool): Ditto. | |
584 | (write_hash_table, add_address_entry, write_psymbols): Ditto. | |
585 | (write_obstack, unlink_if_set, write_one_signatured_type): Ditto. | |
586 | (write_psymtabs_to_index): Ditto. | |
2fdf6df6 | 587 | |
40bc484c JB |
588 | 2010-10-04 Joel Brobecker <brobecker@adacore.com> |
589 | ||
590 | * ada-lang.c: #include "value.h". | |
591 | (ensure_lval): Delete advance declaration. Remove gdbarch and sp | |
592 | arguments. Implement using value_allocate_space_in_inferior | |
593 | instead of allocating memory from the stack. | |
594 | (make_array_descriptor): Remove gdbarch and sp parameters. Update | |
595 | calls to ensure_lval. | |
596 | (ada_convert_actual): Remove gdbarch and sp parameters. Update | |
597 | calls to make_array_descriptor and ensure_lval. | |
598 | * ada-lang.h (ada_convert_actual): Update declaration. | |
599 | * infcall.c (value_arg_coerce): Update call to ada_convert_actual. | |
600 | ||
f17618ea DE |
601 | 2010-10-04 Doug Evans <dje@google.com> |
602 | ||
603 | * python/python.c (_initialize_python): Define new function | |
604 | GdbSetPythonDirectory in python. Use it to update sys.path and | |
605 | gdb.__path__. | |
606 | ||
83e3a93c PH |
607 | 2010-10-03 Paul Hilfinger <hilfinger@adacore.com> |
608 | ||
609 | * gdb/ada-typeprint.c (print_selected_record_field_types): New function, | |
610 | incorporating and generalizing print_record_field_types. | |
611 | (print_record_field_types): Change return value and update comment. | |
612 | Re-implement using print_selected_record_field_types. | |
613 | (print_choices): Print "=>" here. | |
614 | Handle case of unencoded variant branch. | |
615 | (print_variant_clauses): Reformat comment. | |
616 | Special-case unencoded variant branch. | |
617 | ||
618 | 2010-10-03 Paul Hilfinger <hilfinger@adacore.com> | |
73589123 PH |
619 | |
620 | * ada-lang.c (wild_match): Reimplement. | |
621 | Change API to eliminate unused length argument, reverse arguments and | |
622 | make 0 the 'true' return value. | |
623 | (advance_wild_match): New auxiliary function for wild_match to improve | |
624 | readability. | |
625 | (ada_match_name, ada_add_block_symbols): Use new API for wild_match. | |
626 | * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new | |
627 | API for wild_match. | |
628 | * symfile.h (map_ada_symtabs): Modify declaration to use new API for | |
629 | wild_match. | |
630 | * dwarf2read.c (dw2_map_ada_symtabs): Ditto. | |
631 | ||
11570e71 DE |
632 | 2010-10-01 Doug Evans <dje@google.com> |
633 | ||
634 | * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text | |
635 | for `save gdb-index' command. | |
636 | ||
72b9f47f TT |
637 | 2010-10-01 Tom Tromey <tromey@redhat.com> |
638 | ||
639 | * symfile.h (allocate_symtab): Update. | |
640 | * symfile.c (allocate_symtab): Make 'filename' const. | |
641 | * psymtab.c (add_psymbol_to_bcache): Make 'name' const. | |
642 | (add_psymbol_to_list): Likewise. | |
643 | * psympriv.h (struct partial_symtab) <filename, dirname>: Now | |
644 | const. | |
645 | (add_psymbol_to_list): Update. | |
646 | * mdebugread.c (new_symtab): Make 'name' const. | |
647 | (psymtab_to_symtab_1): Make 'filename' const. | |
648 | * elfread.c (elfstab_offset_sections): Update. | |
649 | * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const. | |
650 | (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const. | |
651 | (psymtab_include_file_name): Update. | |
652 | * dbxread.c (find_stab_function_addr): Make 'filename' const. | |
653 | * buildsym.h (start_subfile): Update. | |
654 | * buildsym.c (start_subfile): Make arguments const. | |
655 | ||
55e39473 MS |
656 | 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net> |
657 | ||
658 | * fork-child.c (breakup_args): Fix crash if shell forking is | |
659 | disabled at compile time. | |
660 | ||
05e522ef JB |
661 | 2010-10-01 Joel Brobecker <brobecker@adacore.com> |
662 | ||
663 | * ada-lang.c (desc_bounds): Add handling of the case where | |
664 | the P_BOUNDS field is a pointer to a stub. | |
665 | (desc_data_target_type): Same for P_ARRAY field. | |
666 | (ada_check_typedef): Strip the typedef layers from the type | |
667 | found by ada_find_any_type. | |
668 | ||
49a45ecf JB |
669 | 2010-10-01 Joel Brobecker <brobecker@adacore.com> |
670 | ||
671 | * sparc-tdep.c (sparc32_frame_align): New function. | |
672 | (sparc32_gdbarch_init): Set the frame_align gdbarch method. | |
673 | * sparc64-tdep.c (sparc64_frame_align): New function. | |
674 | (sparc64_gdbarch_init): Set the frame_align gdbarch method. | |
675 | ||
a5916a62 L |
676 | 2010-09-30 H.J. Lu <hongjiu.lu@intel.com> |
677 | ||
678 | * defs.h (MAX_REGISTER_SIZE): Set to 64. | |
679 | ||
00b5771c TT |
680 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
681 | ||
682 | * symfile.h (struct sym_fns) <next>: Remove. | |
683 | (add_symtab_fns): Update. | |
684 | * symfile.c (sym_fns_ptr): New typedef. | |
685 | (symtab_fns): Now a VEC. | |
686 | (add_symtab_fns): Update. Change argument type. | |
687 | (find_sym_fns): Update. Change return type. | |
688 | (get_symfile_segment_data): Update. | |
689 | * objfiles.h (struct objfile) <sf>: Now const. | |
690 | * somread.c (som_sym_fns): Now const. Update. | |
691 | * xcoffread.c (xcoff_sym_fns): Now const. Update. | |
692 | * mipsread.c (ecoff_sym_fns): Now const. Update. | |
693 | * machoread.c (macho_sym_fns): Now const. Update. | |
694 | * elfread.c (elf_sym_fns): Now const. Update. | |
695 | (elf_sym_fns_gdb_index): Likewise. | |
696 | * dbxread.c (aout_sym_fns): Now const. Update. | |
697 | * coffread.c (coff_sym_fns): Now const. Update. | |
698 | ||
38f12cfc TT |
699 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
700 | ||
701 | * value.c (value_primitive_field): Take 'offset' into account for | |
702 | packed field. | |
703 | ||
9ae8282d TT |
704 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
705 | ||
706 | * completer.c (count_struct_fields): Handle anonymous structs and | |
707 | unions. | |
708 | (add_struct_fields): Likewise. | |
709 | ||
e9e07ba6 JK |
710 | 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
711 | ||
712 | Fix printing parameters of inlined functions. | |
713 | * ada-lang.c (is_known_support_routine) | |
714 | (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter | |
715 | for find_frame_funname. | |
716 | * python/py-frame.c (frapy_name): Likewise. | |
717 | * stack.c (find_frame_funname): New parameter funcp. Update the | |
718 | function comment. Fill it in. | |
719 | (print_frame): New variable func. Initialize it by | |
720 | find_frame_funname. Print arguments only if FUNC is not NULL. Use | |
721 | FUNC as the parameter of print_args_stub. | |
722 | * stack.h (find_frame_funname): New parameter funcp. Remove the | |
723 | function declaration comment. | |
724 | ||
cd2effb2 JK |
725 | 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
726 | ||
727 | PR corefiles/12071. | |
728 | * inferior.c (have_live_inferiors): New variables old_chain, inf and | |
729 | tp. Iterate INFERIOR_LIST and call target_has_execution. | |
730 | ||
bceffbf3 JK |
731 | 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
732 | ||
733 | Fix GDB crash on inferior calls with self-referencing classes. | |
734 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static | |
735 | member fields. | |
736 | ||
abc72ce4 DE |
737 | 2010-09-29 Doug Evans <dje@google.com> |
738 | ||
739 | Workaround for gcc/45682. | |
740 | * dwarf2read.c (partial_die_info): New fields fixup_called, | |
741 | linkage_name. | |
742 | (guess_partial_die_structure_name): Renamed from guess_structure_name. | |
743 | Move definition next to use. Use linkage_name to determine if class | |
744 | is in a namespace. All callers updated. | |
745 | (fixup_partial_die): Return early if already called. | |
746 | Set fixup_called when done. | |
747 | (guess_full_die_structure_name): New function. | |
748 | (determine_prefix): Call it for class/struct/union dies if c++ and | |
749 | .debug_types section is present and parent is DW_TAG_compile_unit. | |
750 | ||
0ac7be25 JB |
751 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
752 | ||
753 | * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a. | |
754 | (sparc-*-rtems*): Delete. Now redundant with sparc-*-*. | |
755 | ||
6e1bb179 JB |
756 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
757 | ||
758 | * NEWS: Announce Ravenscar Profile support. | |
759 | ||
036b1ba8 JB |
760 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
761 | Jerome Guitton <guitton@adacore.com> | |
762 | ||
763 | * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c: | |
764 | New files. | |
765 | * configure.tgt (sparc-*-*): Add ravenscar-thread.o and | |
766 | ravenscar-sparc-thread.o to gdb_target_obs. | |
767 | ||
474011fb JB |
768 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
769 | ||
770 | * ada-tasks.c (iterate_over_live_ada_tasks): New function. | |
771 | * ada-lang.h (iterate_over_live_ada_tasks): Declare. | |
772 | ||
99e24b90 PM |
773 | 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr> |
774 | ||
775 | * amd64-windows-tdep.c (amd64_skip_main_prologue): New function. | |
776 | (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch | |
777 | skip_main_prologue method. | |
778 | ||
987d643c TT |
779 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
780 | ||
781 | * dwarf2read.c (dwarf2_read_index): Only allow version 3. | |
782 | (write_psymbols): Add 'psyms_seen' and 'is_static' arguments. | |
783 | Only emit a given psymbol once. | |
784 | (struct signatured_type_index_data) <psyms_seen>: New field. | |
785 | (write_one_signatured_type): Update. | |
786 | (cleanup_htab): New function. | |
787 | (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump | |
788 | version to 3. | |
789 | (save_gdb_index_command): Update index documentation. | |
790 | ||
d3aff959 TT |
791 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
792 | ||
793 | * bcache.c (expand_hash_table): Use hash_function, not hash. | |
794 | ||
716b65bf TT |
795 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
796 | ||
797 | * gdb_wchar.h: Change minimum libiconv to 0x108. | |
798 | ||
1736ad11 JK |
799 | 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
800 | ||
801 | Fix lost siginfo_t for inferior calls. | |
802 | * infrun.c | |
803 | (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New. | |
804 | (save_inferior_thread_state): New variables regcache, gdbarch and | |
805 | siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p. | |
806 | Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS | |
807 | using REGCACHE. | |
808 | (restore_inferior_thread_state): New variables regcache and gdbarch. | |
809 | Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using | |
810 | REGCACHE. Free also SIGINFO_DATA. | |
811 | ||
4b5246aa TT |
812 | 2010-09-24 Tom Tromey <tromey@redhat.com> |
813 | ||
814 | * dwarf2read.c (dw2_expand_symtabs_matching): Add missing | |
815 | MAYBE_SWAPs. | |
816 | (dw2_map_symbol_names): Likewise. | |
817 | ||
2a7d6a25 SW |
818 | 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com> |
819 | ||
820 | * valops.c (find_oload_champ_namespace_loop): replace incorrect | |
821 | discard_cleanups do_cleanups. | |
822 | ||
b53a1623 PA |
823 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
824 | ||
e6ee044d PA |
825 | PR gdb/11842 |
826 | ||
b53a1623 PA |
827 | * amd64-linux-nat.c (compat_siginfo_from_siginfo) |
828 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
829 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
830 | si_code < 0. | |
831 | ||
96a8853a PA |
832 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
833 | ||
834 | * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop. | |
835 | ||
39383a48 JB |
836 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
837 | ||
838 | * ada-tasks.c (read_atcb): Do not compute the task ptid when | |
839 | debugging a core file. | |
840 | ||
d31d2fc3 JK |
841 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
842 | ||
843 | Code cleanup. | |
844 | * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove. | |
845 | (free_objfile) <objfile->name != NULL>: Remove the conditional around | |
846 | xfree. | |
847 | * objfiles.h (struct objfile) <name>: New comment it is never NULL. | |
848 | * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>: | |
849 | Remove. | |
850 | * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name> | |
851 | Remove the conditional. | |
852 | * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise. | |
853 | ||
7f6130ff JK |
854 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
855 | ||
856 | * main.c: Include objfiles.h. | |
857 | (captured_main): New variable objfile. Call | |
858 | load_auto_scripts_for_objfile for ALL_OBJFILES. | |
859 | ||
c2b0a229 JK |
860 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
861 | ||
862 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also | |
863 | DW_TAG_constant. | |
864 | ||
72929c62 JB |
865 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
866 | ||
867 | * dwarf2read.c (scan_partial_symbols): Add handling of | |
868 | DW_TAG_constant DIEs. | |
869 | (add_partial_symbol, load_partial_dies, new_symbol): Likewise. | |
870 | ||
496c0e1b JB |
871 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
872 | ||
873 | * configure.ac: Add support for --enable-gdbserver. | |
874 | * configure: Regenerate. | |
875 | ||
ec322823 SW |
876 | 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> |
877 | ||
878 | PR C++/12028 | |
879 | * valops.c (find_oload_champ_namespace_loop): removed incorrect | |
880 | 'old_cleanups' reassignment. | |
881 | ||
1558ab4c JK |
882 | 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
883 | ||
884 | * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted | |
885 | characters. | |
886 | ||
875b4ff5 PM |
887 | 2010-09-16 Phil Muldoon <pmuldoon@redhat.com> |
888 | ||
889 | PR mi/11407 | |
890 | * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from | |
891 | read_var_value and common_val_print and print a warning. | |
892 | ||
65dedcb2 JK |
893 | 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
894 | ||
895 | * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to | |
896 | keep the list in alphabetical order. Use longer e-mail address. | |
897 | ||
0e780a22 TT |
898 | 2010-09-15 Tom Tromey <tromey@redhat.com> |
899 | ||
900 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil. | |
901 | ||
62234ccc TT |
902 | 2010-09-15 Tom Tromey <tromey@redhat.com> |
903 | ||
904 | * charset.c (iconv_open): New define. | |
905 | (iconv): Likewise. | |
906 | (iconv_close): Likewise. | |
907 | (phony_iconv_open): Add "phony_" prefix. | |
908 | (phony_iconv_close): Likewise. | |
909 | (phony_iconv): Likewise. | |
910 | * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__. | |
911 | Change how INTERMEDIATE_ENCODING is defined. | |
912 | ||
4950bc1c DE |
913 | 2010-09-15 Doug Evans <dje@google.com> |
914 | ||
915 | * dwarf2read.c (struct die_info): Fix comment. | |
916 | ||
349126ea AM |
917 | 2010-09-15 Alan Modra <amodra@gmail.com> |
918 | ||
919 | PR 4606 | |
920 | * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather | |
921 | than setting SEC_NEVER_LOAD on sections that need not be copied. | |
922 | ||
923c6a3d TT |
923 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
924 | ||
925 | * psympriv.h (add_psymbol_to_list, init_psymbol_list) | |
926 | (start_psymtab_common, allocate_psymtab, discard_psymtab): | |
927 | Declare. | |
928 | * symfile.h (extend_psymbol_list): Remove. | |
929 | (add_psymbol_to_list, init_psymbol_list, start_psymtab_common) | |
930 | (allocate_psymtab, discard_psymtab): Move to psympriv.h. | |
931 | * psymtab.c (extend_psymbol_list): Move earlier. Now static. | |
932 | ||
a9e6a4bb JK |
933 | 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
934 | ||
935 | * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error. | |
936 | Update the comment. | |
937 | ||
7155d578 TT |
938 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
939 | ||
940 | PR symtab/8399: | |
941 | * dwarf2loc.c (locexpr_describe_location_piece): Don't call error | |
942 | for unrecognized frame base expression. | |
943 | ||
515ed532 TT |
944 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
945 | ||
946 | PR exp/11803: | |
947 | * value.c (value_static_field): Use value_of_variable. | |
948 | ||
b467f580 PM |
949 | 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr> |
950 | ||
951 | * m32r-rom.c: Replace winsock.h with winsock2.h header. | |
952 | * remote-m32r-sdi.c: Replace winsock.h by winsock2.h. | |
953 | ||
450ca57c SW |
954 | 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com> |
955 | ||
956 | PR symtab/11992: | |
957 | * c-exp.y (classify_name): Check is_a_member_of_this before returning | |
958 | UNKNOWN_CPP_NAME. | |
959 | ||
1aee7009 JB |
960 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
961 | ||
962 | * NEWS: Add x86-lynxos to the list of platforms supported by | |
963 | gdbserver. | |
964 | ||
5ec6ebf9 JB |
965 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
966 | ||
967 | * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos. | |
968 | ||
1863c96c TT |
969 | 2010-09-13 Tom Tromey <tromey@redhat.com> |
970 | ||
971 | * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h. | |
972 | ||
0c5acf93 L |
973 | 2010-09-13 H.J. Lu <hongjiu.lu@intel.com> |
974 | ||
975 | * i386-tdep.c (i386_ymm_type): Set type name to | |
976 | builtin_type_vec256i. | |
977 | ||
1c6272a6 MS |
978 | 2010-09-12 Michael Snyder <msnyder@vmware.com> |
979 | ||
980 | * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. | |
981 | ||
e866c497 L |
982 | 2010-09-12 H.J. Lu <hongjiu.lu@intel.com> |
983 | ||
984 | * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. | |
985 | ||
9191d390 L |
986 | 2010-09-11 H.J. Lu <hongjiu.lu@intel.com> |
987 | ||
988 | * amd64-tdep.c (amd64_register_name): Removed. | |
989 | (amd64_init_abi): Don't call set_gdbarch_register_name. | |
990 | ||
991 | * i386-tdep.c (i386_ymmh_regnum_p): Make it static. | |
992 | ||
993 | * i386-tdep.h (i386_ymmh_regnum_p): Removed. | |
994 | ||
8d4d924b JK |
995 | 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
996 | Paul Bolle <pebolle@tiscali.nl> | |
997 | ||
998 | Redirect also uiout and stdtarg{,err} in execute_command_to_string. | |
999 | * cli-logging.c (struct saved_output_files) <targerr>: New. | |
1000 | (set_logging_redirect, pop_output_files, handle_redirections): | |
1001 | Redirect also gdb_stdtargerr. | |
1002 | * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New | |
1003 | declarations. | |
1004 | * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect | |
1005 | also gdb_stdtargerr. | |
1006 | * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete | |
1007 | to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr. | |
1008 | Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop. | |
1009 | * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr. | |
1010 | * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop): | |
1011 | New functions. | |
1012 | ||
3329c4b5 PM |
1013 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
1014 | ||
1015 | * hppa-tdep.c (unwind_command): Use host_address_to_string function | |
1016 | to display a host address. | |
1017 | * monitor.c (monitor_read_memory): Likewise. | |
1018 | * xtensa-tdep.c (xtensa_push_dummy_call): Likewise. | |
1019 | ||
5e8db398 PM |
1020 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
1021 | ||
1022 | * coffread.c (struct coff_symbol): Change c_value type from `long' to | |
1023 | `CORE_ADDRESS' as it might contain target addresses. | |
1024 | ||
37049e31 PM |
1025 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
1026 | ||
1027 | * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro | |
1028 | before cast to pointer to avoid warning. | |
1029 | ||
351a3e56 KB |
1030 | 2010-09-09 Kevin Buettner <kevinb@redhat.com> |
1031 | ||
1032 | * v850-tdep.c (v850_gdbarch_init): Change the v850's `char' | |
1033 | type to be signed. | |
349126ea | 1034 | |
6afafb54 UW |
1035 | 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com> |
1036 | ||
1037 | * dwarf2read.c (fixup_partial_die): Do not set dummy name for | |
1038 | anonymous class partial DIEs. | |
1039 | ||
60430eff DJ |
1040 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
1041 | ||
1042 | * dwarf2read.c (dwarf2_compute_name): Check that the first | |
1043 | argument is a pointer. | |
1044 | ||
f1078f66 DJ |
1045 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
1046 | ||
1047 | * dwarf2read.c (read_func_scope, read_structure_type) | |
1048 | (read_common_block): Check for a NULL return from new_symbol. | |
1049 | ||
82430852 JK |
1050 | 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
1051 | ||
1052 | * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS. | |
1053 | ||
c767944b DJ |
1054 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
1055 | ||
1056 | * dwarf2read.c (read_structure_type): Move processing of | |
1057 | fields and member functions from here... | |
1058 | (process_structure_scope): ... to here. | |
1059 | ||
561d3825 DJ |
1060 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
1061 | ||
1062 | * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use | |
1063 | the domain type. | |
1064 | (gnuv3_make_method_ptr): Likewise. | |
1065 | ||
9bd89d67 TT |
1066 | 2010-09-08 Tom Tromey <tromey@redhat.com> |
1067 | ||
1068 | * breakpoint.c (create_breakpoint): Add missing _(). | |
1069 | ||
1d040b0d DE |
1070 | 2010-09-08 Doug Evans <dje@google.com> |
1071 | ||
1072 | * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused. | |
1073 | ||
774b6a14 TT |
1074 | 2010-09-08 Tom Tromey <tromey@redhat.com> |
1075 | ||
1076 | Revert: | |
1077 | 2010-09-01 Tom Tromey <tromey@redhat.com> | |
1078 | * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c, | |
1079 | symtab.h: Revert earlier change. | |
1080 | ||
fc956729 SW |
1081 | 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com> |
1082 | ||
1083 | * psymtab.c (add_psymbol_to_bcache): Initialize | |
1084 | obj_section. | |
1085 | memset psymbol.ginfo.value to 0. | |
1086 | ||
48f9886d PA |
1087 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
1088 | ||
1089 | * infrun.c (resume): Extend comment on ignoring single-step | |
1090 | requests on vfork parents waiting for a vfork-done. | |
1091 | ||
423ec54c JK |
1092 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1093 | Pedro Alves <pedro@codesourcery.com> | |
1094 | ||
1095 | * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH | |
1096 | is NULL. | |
1097 | * fork-child.c (startup_inferior) <resume_signal>: Use enum | |
1098 | target_signal type. | |
1099 | * linux-nat.c (linux_nat_resume): Use target_signal_to_host before | |
1100 | calling strsignal. Use enum target_signal type for saved_signo. | |
1101 | (linux_handle_extended_wait) <signo>: Use enum target_signal type. | |
1102 | (linux_nat_wait_1): Use enum target_signal type for signo. Use | |
1103 | target_signal_to_host before calling strsignal. | |
1104 | * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by | |
1105 | TARGET_SIGNAL_0. | |
1106 | ||
a6eb9bc8 JK |
1107 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
1108 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1109 | ||
1110 | * common/signals.c (ANY): Remove. | |
1111 | (SET): No longer use ANY. | |
1112 | ||
74609e71 YQ |
1113 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
1114 | ||
1115 | * infrunc(resume): When inferior is waiting_for_vfork_done, | |
1116 | clear step and don't use displaced stepping. | |
1117 | ||
8464be76 DJ |
1118 | 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
1119 | ||
1120 | * breakpoint.c (can_use_hardware_watchpoint): Handle the first | |
1121 | value specially. | |
1122 | ||
33d62d64 JK |
1123 | 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
1124 | ||
1125 | Code cleanup - split print_stop_reason. | |
1126 | * infrun.c (enum inferior_stop_reason): Remove. | |
1127 | (print_stop_reason): Remove by splitting into ... | |
1128 | (print_exited_reason, print_signal_exited_reason) | |
1129 | (print_no_history_reason, print_signal_received_reason) | |
1130 | (print_end_stepping_range_reason): ... these new functions. Update | |
1131 | the preceding comment. | |
1132 | (handle_inferior_event): Change the calls to print_exited_reason, | |
1133 | print_signal_exited_reason, print_no_history_reason, | |
1134 | print_signal_received_reason, print_end_stepping_range_reason. | |
1135 | (handle_step_into_function, handle_step_into_function_backward): | |
1136 | Change the calls to print_end_stepping_range_reason. | |
1137 | ||
14dba4b4 JK |
1138 | 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
1139 | ||
1140 | * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL. | |
1141 | * cli-out.c: Include vec.h. | |
1142 | (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New | |
1143 | variable stream, initialize it, use it. | |
1144 | (cli_redirect): New function comment. Replace the stream and | |
1145 | original_stream fields by the new streams field. Remove the | |
1146 | original_stream != NULL conditional, assert error on NULL instead. | |
1147 | (out_field_fmt, field_separator): New variable stream, initialize it, use it. | |
1148 | (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and | |
1149 | original_stream fields by the new streams field. | |
1150 | (cli_out_set_stream): Replace the stream field by the new streams | |
1151 | field. | |
1152 | * cli-out.h: Include vec.h. | |
1153 | (ui_filep): New typedef, call DEF_VEC_P for it. | |
1154 | (struct cli_ui_out_data): Replace the stream and original_stream | |
1155 | fields by the new streams field. | |
1156 | * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with | |
1157 | NULL first. Extend the comment. | |
1158 | (handle_redirections): Call ui_out_redirect with output. | |
1159 | * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect | |
1160 | calls outside of the TRY_CATCH block. | |
1161 | ||
b04bc5d4 | 1162 | 2010-09-03 Joel Brobecker <brobecker@adacore.com> |
1163 | ||
1164 | GDB 7.2 released. | |
1165 | ||
080db4e0 JB |
1166 | 2010-09-02 Joel Brobecker <brobecker@adacore.com> |
1167 | ||
1168 | Back out the following change: | |
1169 | | 2010-06-29 Hui Zhu <teawater@gmail.com> | |
1170 | | * record.c (set_record_pic_cmdlist, | |
1171 | | show_record_pic_cmdlist): New variables. | |
1172 | | (set_record_pic_command, | |
1173 | | show_record_pic_command): New functions. | |
1174 | | (record_pic_function, record_pic_line, record_pic_enum, | |
1175 | | set_record_pic_type, record_pic_hide_nofunction, | |
1176 | | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
1177 | | (record_pic_fputs): New function. | |
1178 | | (function_list, node_list, edge_list): New struct. | |
1179 | | (function_list, node_list, edge_list): New variables. | |
1180 | | (record_pic_cleanups, record_pic_node, | |
1181 | | record_pic_edge, cmd_record_pic): New functions. | |
1182 | | (_initialize_record): Add new commands for record pic. | |
1183 | ||
0a4f61e3 DJ |
1184 | 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com> |
1185 | ||
1186 | * config.in, configure: Regenerated. | |
1187 | * configure.ac: Check for waitpid. | |
1188 | * ser-pipe.c (pipe_close): Wait for the program to exit. | |
1189 | ||
58b61394 JK |
1190 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1191 | ||
ba720883 | 1192 | * cli/cli-logging.c: Include gdb_assert.h. |
58b61394 JK |
1193 | (set_logging_overwrite): New function. |
1194 | (logging_redirect): New comment. | |
1195 | (logging_no_redirect_file, set_logging_redirect) | |
1196 | (pop_output_files) <logging_no_redirect_file>: New. | |
1197 | (handle_redirections) <!logging_redirect>: New variable | |
1198 | no_redirect_file. Remove file autoclose for tee_file_new. No longer | |
1199 | discard cleanup for the close of former OUTPUT. Set | |
1200 | LOGGING_NO_REDIRECT_FILE. | |
1201 | (handle_redirections) <logging_redirect>: gdb_assert | |
1202 | LOGGING_NO_REDIRECT_FILE. | |
1203 | (show_logging_command) <logging_redirect handling>: Adjust messages | |
1204 | for SAVED_FILENAME not NULL. | |
1205 | (_initialize_cli_logging): Install set_logging_overwrite and | |
1206 | set_logging_redirect. | |
1207 | ||
706774f2 JK |
1208 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1209 | ||
1210 | * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END. | |
1211 | ||
9a35ccf7 JK |
1212 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1213 | ||
1214 | * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form. | |
1215 | (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and | |
1216 | add $(GDB_WARN_CFLAGS_NO_FORMAT). | |
1217 | (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS). | |
1218 | ||
ba9b2ec3 YQ |
1219 | 2010-09-02 Yao Qi <yao@codesourcery.com> |
1220 | ||
1221 | * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal | |
1222 | number from a WIFSIGNALED status. | |
1223 | ||
faf68db7 TT |
1224 | 2010-09-01 Tom Tromey <tromey@redhat.com> |
1225 | ||
1226 | * symtab.h (lookup_type_symbol): Declare. | |
1227 | * symtab.c (lookup_symbol_in_language_full): Rename from | |
1228 | lookup_symbol_in_language. Add 'for_type' argument. | |
1229 | (lookup_symbol_in_language): New function. | |
1230 | (lookup_type_symbol): Likewise. | |
1231 | (lookup_symbol_aux): Add 'for_type' argument. | |
1232 | (match_symbol_aux): New function. | |
1233 | (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching. | |
1234 | (match_transparent_type): New function. | |
1235 | (basic_lookup_transparent_type): Use expand_one_symtab_matching. | |
1236 | * symfile.h (struct quick_symbol_functions) | |
1237 | <pre_expand_symtabs_matching>: Remove. | |
1238 | <expand_one_symtab_matching>: New field. | |
1239 | * psymtab.c (expand_one_symtab_matching_psymtabs): New function. | |
1240 | (pre_expand_symtabs_matching_psymtabs): Remove. | |
1241 | (psym_functions): Update. | |
1242 | * gdbtypes.c (lookup_typename): Use lookup_type_symbol. | |
1243 | * dwarf2read.c (dw2_lookup_symbol): Update comment. | |
1244 | (dw2_pre_expand_symtabs_matching): Remove. | |
1245 | (dw2_expand_one_symtab_matching): New function. | |
1246 | (dwarf2_gdb_index_functions): Update. | |
1247 | ||
248c9dbc JB |
1248 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
1249 | ||
1250 | * NEWS: Add entry announcing GDBserver support on powerpc-lynxos. | |
1251 | ||
f75d858b MK |
1252 | 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com> |
1253 | ||
1254 | * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse' | |
1255 | as a feature reported by -list-target-features. | |
1256 | ||
0482b03b JB |
1257 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
1258 | ||
1259 | * features/Makefile (WHICH): Add rs6000/powerpc-32. | |
1260 | (powerpc-32.o, powerpc-32.c): New rules. | |
1261 | (clean): Also remove powerpc-32.c. | |
1262 | * regformats/rs6000/powerpc-32.dat: Generate. | |
1263 | ||
710e1a31 SW |
1264 | 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com> |
1265 | ||
1266 | * symfile.c (reread_symbols): Use psymbol_bcache_free, and | |
1267 | psymbol_bcache_init. | |
1268 | * psymtab.h (psymbol_bcache_init): New function prototype. | |
1269 | (psymbol_bcache_free): New function prototype. | |
1270 | (psymbol_bcache_get_bcache): New function prototype. | |
1271 | * psymtab.c (psymbol_bcache_init): New function. | |
1272 | (psymbol_bcache_free): New function. | |
1273 | (psymbol_bcache_full): New function. | |
1274 | (psymbol_bcache_get_bcache): New function. | |
1275 | (add_psymbol_to_bcache): use psymbol_bcache_full. | |
1276 | * objfiles.h (psymbol_cache): Change type of psymbol_cache to | |
1277 | psymbol_bcache. | |
1278 | * symmisc.c (print_symbol_bcache_statistics): Updated. | |
1279 | (print_objfile_statistics): Updated. | |
1280 | * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize | |
1281 | psymbol_cache. | |
1282 | (free_objfile): Use psymbol_bcache_free. | |
1283 | ||
64382290 TT |
1284 | 2010-08-31 Tom Tromey <tromey@redhat.com> |
1285 | ||
1286 | PR c++/11961: | |
1287 | * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>: | |
1288 | Don't set TYPE_NAME on the type. | |
1289 | ||
8bbed405 MS |
1290 | 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
1291 | ||
1292 | * infrun.c (set_exec_direction_func): Error out if target does not | |
1293 | support reverse execution. | |
1294 | ||
06253dd3 JK |
1295 | 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
1296 | ||
1297 | Make linux_get_siginfo_type `type *' unique. | |
1298 | * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data) | |
1299 | (init_linux_gdbarch_data, get_linux_gdbarch_data): New. | |
1300 | (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize | |
1301 | it. Use linux_gdbarch_data->siginfo_type as a persistent storage. | |
1302 | (_initialize_linux_tdep): New. | |
1303 | ||
b8edc417 JK |
1304 | 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
1305 | ||
1306 | Code cleanup. | |
1307 | * defs.h (find_memory_region_ftype): New typedef. | |
1308 | (exec_set_find_memory_regions): Use it. | |
1309 | * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype. | |
1310 | * fbsd-nat.c (fbsd_find_memory_regions): Likewise. | |
1311 | * gcore.c (objfile_find_memory_regions): Likewise. | |
1312 | * gnu-nat.c (gnu_find_memory_regions): Likewise. | |
1313 | * linux-nat.c (linux_nat_find_memory_regions): Likewise. | |
1314 | * procfs.c (iterate_over_mappings_cb_ftype): Remove. | |
1315 | (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to | |
1316 | find_memory_region_ftype. | |
1317 | (insert_dbx_link_bpt_in_region): Likewise. | |
1318 | (iterate_over_mappings): Likewise. Drop the comment part about the | |
1319 | function prototype. | |
1320 | (find_memory_regions_callback): Use find_memory_region_ftype. | |
1321 | (proc_find_memory_regions): Likewise. | |
1322 | (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to | |
1323 | find_memory_region_ftype. | |
1324 | * target.c (dummy_find_memory_regions): Use find_memory_region_ftype. | |
1325 | * target.h (struct target_ops) <to_find_memory_regions>: Likewise. | |
1326 | ||
cbd70537 SW |
1327 | 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com> |
1328 | ||
1329 | * psymtab.c (add_psymbol_to_bcache): Remove 'static' from | |
1330 | 'static partial_symbol psymbol'. | |
1331 | (psymbol_hash): New function. | |
1332 | (psymbol_compare): New function. | |
1333 | * bcache.c (hash_continue): New. | |
1334 | (hash): Use hash_continue. | |
1335 | * bcache.c: Add hash_function and compare_function | |
1336 | pointers to bcache struct. | |
1337 | (bcache_full): Use bcache->hash_function, and | |
1338 | bcache->compare_function. | |
1339 | (bcache_compare): New function. | |
1340 | (bcache_xmalloc): Take hash_function and | |
1341 | compare_function arguments and initialize the | |
1342 | bcach's pointers. | |
1343 | Updated comment. | |
1344 | * objfiles.c (allocate_objfile): Updated. | |
1345 | * symfile.c (reread_symbols): Updated. | |
1346 | * python/py-type.c (typy_richcompare): Updated. | |
1347 | ||
03f17ccf TT |
1348 | 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com> |
1349 | Tom Tromey <tromey@redhat.com> | |
1350 | ||
1351 | PR python/11792: | |
1352 | * python/py-value.c (valpy_get_dynamic_type): New function. | |
1353 | (value_object_getset): Add "dynamic_type". | |
1354 | (valpy_get_type): Fail on error. | |
1355 | ||
25b41d01 YQ |
1356 | 2010-08-30 Yao Qi <yao@codesourcery.com> |
1357 | ||
1358 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New. | |
1359 | (arm_linux_syscall_next_pc): New. | |
1360 | (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. | |
1361 | (arm_linux_init_abi): Initialize syscall_next_pc. | |
1362 | * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode. | |
1363 | (arm_get_next_pc_raw): Get next pc of SWI in ARM mode. | |
1364 | * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. | |
1365 | Declare arm_frame_is_thumb. | |
1366 | ||
5760d0ab JK |
1367 | 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
1368 | ||
1369 | Code cleanup. | |
1370 | * breakpoint.c (bpstat_alloc): Remove unused prototype. | |
1371 | (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the | |
1372 | code. | |
1373 | (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust | |
1374 | calls of bpstat_alloc. Remove explicit bs chain termination. | |
1375 | ||
46a96992 JK |
1376 | 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1377 | ||
1378 | Code cleanup. | |
1379 | * linux-nat.c (pull_pid_from_list): Rename status to statusp. | |
1380 | (my_waitpid): Likewise. | |
1381 | ||
36374493 DE |
1382 | 2010-08-27 Doug Evans <dje@google.com> |
1383 | ||
1384 | * dwarf2read.c (dw2_require_line_header): Read from .debug_types | |
1385 | as appropriate. | |
1386 | ||
8b93c54c TT |
1387 | 2010-08-27 Tom Tromey <tromey@redhat.com> |
1388 | ||
1389 | * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set | |
1390 | TYPE_FIELD_IGNORE_BITS. | |
1391 | ||
16be1145 DE |
1392 | 2010-08-27 Doug Evans <dje@google.com> |
1393 | ||
1394 | * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match | |
1395 | the order they're defined in. munmap .debug_types buffer. | |
1396 | ||
e254ef6a DE |
1397 | 2010-08-26 Doug Evans <dje@google.com> |
1398 | ||
1399 | * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu. | |
1400 | (dw2_forget_cached_source_info): Rename local cu to per_cu. | |
1401 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto. | |
1402 | (dw2_print_stats, dw2_expand_all_symtabs): Ditto. | |
1403 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto. | |
1404 | (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto. | |
1405 | (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto. | |
1406 | (dwarf2_free_objfile, write_one_signatured_type): Ditto. | |
1407 | (write_psymtabs_to_index): Ditto. | |
1408 | ||
ae53ffa4 PA |
1409 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
1410 | ||
1411 | * NEWS: Mention libthread_db debugging with core files. | |
1412 | ||
c6da4cef DE |
1413 | 2010-08-26 Doug Evans <dje@google.com> |
1414 | ||
1415 | * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary | |
1416 | forward decl. Pass pst->dirname to dwarf_decode_lines. | |
1417 | (psymtab_include_file_name): New function. | |
1418 | (dwarf_decode_lines): Call it. Update comments. | |
1419 | ||
cd02d79d PA |
1420 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
1421 | ||
1422 | * dwarf2read.c (inherit_abstract_dies): Handle origin die's | |
1423 | compilation unit being different from target die's. | |
1424 | ||
673bfd45 DE |
1425 | 2010-08-24 Doug Evans <dje@google.com> |
1426 | ||
1427 | PR symtab/11942 | |
1428 | * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash, | |
1429 | debug_types_type_hash. | |
1430 | (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash. | |
1431 | All uses updated. | |
1432 | (lookup_die_type): Renamed from tag_type_to_tag. First look in | |
1433 | appropriate type_hash table. All callers updated. | |
1434 | (allocate_signatured_type_table): Renamed from | |
1435 | allocate_signatured_type_hash_table. All callers updated. | |
1436 | (create_signatured_type_table_from_index): Renamed from | |
1437 | create_signatured_type_hash_from_index. All callers updated. | |
1438 | (read_die_type): Add comment. Move actual reading to ... | |
1439 | (read_die_type_1): ... here. New function. | |
1440 | (follow_die_ref_or_sig): Tweak comment. | |
1441 | (set_die_type): Rewrite to use appropriate choice of | |
1442 | debug_info_type_hash or debug_types_type_hash. | |
1443 | (get_die_type_at_offset): New function. | |
1444 | (get_die_type): Call it. | |
1445 | ||
e8fd65ef JK |
1446 | 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
1447 | ||
1448 | * python/py-type.c (typy_richcompare): Initialize worklist. | |
1449 | ||
9779414d DJ |
1450 | 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com> |
1451 | Kazu Hirata <kazu@codesourcery.com> | |
1452 | Jonathan Larmour <jifl@eCosCentric.com> | |
1453 | ||
1454 | * arm-tdep.c: Include features/arm-with-m.c. | |
1455 | (arm_psr_thumb_bit): New. Update all uses of CPSR_T to | |
1456 | call this function. | |
1457 | (arm_pc_is_thumb): Add a gdbarch argument. Update all callers. | |
1458 | Check is_m after force-mode. | |
1459 | (arm_gdbarch_init): Check the binary before the target description. | |
1460 | Add check for M profile attribute. If we have an M-profile device, | |
1461 | but no target register description, use arm-with-m. Recognize the | |
1462 | new org.gnu.gdb.arm.m-profile feature and its xpsr register. | |
1463 | (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m. | |
1464 | * arm-tdep.h (XPSR_T): Define. | |
1465 | (struct gdbarch_tdep): Add is_m member. | |
1466 | * features/arm-m-profile.xml, features/arm-with-m.c, | |
1467 | features/arm-with-m.xml: New files. | |
1468 | ||
9dc481d3 DE |
1469 | 2010-08-23 Doug Evans <dje@google.com> |
1470 | ||
1471 | * dwarf2read.c (read_structure_type): Add comment. | |
1472 | (read_enumeration_type): Add comment. | |
1473 | (process_enumeration_scope): Move definition of some locals | |
1474 | closer to their use. | |
1475 | (read_namespace_type): Add comment. | |
e71ec853 | 1476 | (set_die_type): Fix typo in comment. |
9dc481d3 | 1477 | |
f9ffd4bb TT |
1478 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1479 | ||
1480 | PR python/11145: | |
1481 | * python/py-value.c: Include expression.h. | |
1482 | (valpy_do_cast): New function. | |
1483 | (valpy_cast): Use it. | |
1484 | (valpy_dynamic_cast): New function. | |
1485 | (valpy_reinterpret_cast): Likewise. | |
1486 | (value_object_methods): Add dynamic_cast, reinterpret_cast. | |
1487 | ||
96f73ba5 TT |
1488 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1489 | ||
1490 | PR python/11391: | |
1491 | * python/py-value.c (valpy_nonzero): Don't throw error for other | |
1492 | Value types. | |
1493 | ||
d839c8a4 TT |
1494 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1495 | ||
1496 | PR python/10676: | |
1497 | * python/py-type.c: Include bcache.h, vec.h. | |
1498 | (struct type_equality_entry): New. | |
1499 | (compare_strings): New function. | |
1500 | (check_types_equal): Likewise. | |
1501 | (check_types_worklist): Likewise. | |
1502 | (typy_richcompare): Likewise. | |
1503 | (type_object_type): Set tp_richcompare field. | |
1504 | ||
05d0e1e7 TT |
1505 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1506 | ||
1507 | PR python/10953: | |
1508 | * python/py-type.c (typy_fields): Call check_typedef. | |
1509 | (typy_template_argument): Add TRY_CATCH. | |
1510 | ||
702c2711 TT |
1511 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
1512 | ||
1513 | PR python/11915: | |
1514 | * python/py-type.c (typy_array): New function. | |
1515 | (type_object_methods): Add "array". | |
1516 | ||
4a532131 PA |
1517 | 2010-08-20 Pedro Alves <pedro@codesourcery.com> |
1518 | ||
1519 | * python/python.c: Include "serial.h". | |
1520 | (gdbpy_event_fds): Change type to `struct serial *' a array from | |
1521 | int array. | |
1522 | (gdbpy_run_events): Change parameters. Use serial_readchar in | |
1523 | place of read. | |
1524 | (gdbpy_post_event): Use serial_write in place of write. | |
1525 | (gdbpy_initialize_events): Use serial_pipe instead of pipe, and | |
1526 | serial_async in place of add_file_handler. | |
1527 | ||
58f07bae PA |
1528 | 2010-08-20 Pedro Alves <pedro@codesourcery.com> |
1529 | ||
1530 | * serial.h (gdb_pipe, serial_pipe): Declare. | |
1531 | * serial.c (serial_interface_lookup): Take a const char pointer. | |
1532 | (serial_fdopen): Rename to ... | |
1533 | (serial_fdopen_ops): ... this. Add an OPS parameter and use it. | |
1534 | Call the OPS' fdopen function if there is one. | |
1535 | (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops. | |
1536 | (serial_pipe): New. | |
1537 | (struct serial_ops) <fdopen>: New field. | |
1538 | ||
1539 | * ser-mingw.c (free_pipe_state): | |
1540 | (free_pipe_state): Close output on non-pex pipes. | |
1541 | (pipe_windows_fdopen): New. | |
1542 | (gdb_pipe): New. | |
1543 | (_initialize_ser_windows): Register pipe_windows_fdopen. | |
1544 | * ser-go32.c (gdb_pipe): New. | |
1545 | * ser-pipe.c (pipe_close): Close file descriptor even if there's | |
1546 | no state pointer. | |
1547 | (pipe_ops): Delete. | |
1548 | (gdb_pipe): New. | |
1549 | ||
3da10d80 KS |
1550 | 2010-08-20 Keith Seitz <keiths@redhat.com> |
1551 | ||
1552 | PR symtab/11465: | |
889bf7c5 | 1553 | * dwarf2read.c (struct delayed_method_info): New struct. |
3da10d80 KS |
1554 | (struct dwarf2_cu): Add vector method_list. |
1555 | (scan_partial_symbols): Count methods for union, class, structure, | |
1556 | and interface types. | |
1557 | (add_to_method_list): New function. | |
1558 | (free_delayed_list): New function. | |
1559 | (compute_delayed_physnames): New function. | |
1560 | (process_full_comp_unit): Make a cleanup for the CU's delayed | |
1561 | physname list, compute the delayed physnames, and free the | |
1562 | the list. | |
1563 | (dwarf2_add_member_fn): For C++ and Java, delay the computation | |
1564 | of the physname until after the CU is read. | |
1565 | ||
1566 | * dwarf2read.c (read_structure_type): Check if the current | |
1567 | DIE's type was already completed after dwarf2_full_name | |
1568 | was called. | |
889bf7c5 | 1569 | |
ca11e899 SS |
1570 | 2010-08-19 Stan Shebs <stan@codesourcery.com> |
1571 | ||
1572 | * NEWS: Mention some additional changes. | |
1573 | ||
4d2dc20a TT |
1574 | 2010-08-19 Tom Tromey <tromey@redhat.com> |
1575 | ||
1576 | * Makefile.in (install-python): Add DESTDIR. | |
1577 | ||
d30f5e1f DE |
1578 | 2010-08-19 Doug Evans <dje@google.com> |
1579 | ||
1580 | PR exp/11926 | |
1581 | * parser-defs.h (parse_float, parse_c_float): Declare. | |
1582 | * parse.c (parse_float, parse_c_float): New function. | |
1583 | * c-exp.y (parse_number): Call parse_c_float. | |
1584 | * objc-exp.y (parse_number): Ditto. | |
1585 | * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition. | |
1586 | * jv-exp.y (parse_number): Call parse_float, fix suffix handling. | |
1587 | ||
2837d59e JB |
1588 | 2010-08-19 Joel Brobecker <brobecker@adacore.com> |
1589 | ||
1590 | * psymtab.c (map_symbol_filenames_psymtab): Call FUN with | |
1591 | the arguments in the correct order. | |
1592 | * symtab.c (maybe_add_partial_symtab_filename): Declare | |
1593 | the arguments in the correct order. | |
1594 | ||
35633fef JK |
1595 | 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
1596 | ||
1597 | * varobj.c (varobj_create): Replace variable old_fi with old_id, | |
1598 | initialize it by null_frame_id, wrap its usage by get_frame_id, | |
1599 | frame_id_p and frame_find_by_id. | |
1600 | ||
94f7449c TT |
1601 | 2010-08-18 Tom Tromey <tromey@redhat.com> |
1602 | ||
1603 | PR python/11900: | |
1604 | * configure: Rebuild. | |
1605 | * configure.ac: Add install-python to CONFIG_INSTALL. | |
1606 | * Makefile.in (install-python): New. | |
1607 | ||
f3574227 DE |
1608 | 2010-08-18 Doug Evans <dje@google.com> |
1609 | ||
1610 | * gdb_assert.h (gdb_assert_not_reached): New macro. | |
1611 | (gdb_assert_fail): Fix typo in comment. | |
1612 | * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of | |
1613 | gdb_assert (0). | |
1614 | * darwin-nat.c (darwin_check_new_threads): Ditto. | |
1615 | * dwarf2read.c (dwarf2_get_section_info): Ditto. | |
1616 | (munmap_section_buffer): Ditto. | |
1617 | * m32c-tdep.c (make_types): Ditto. | |
1618 | (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto. | |
1619 | * macroexp.c (get_character_constant): Ditto. | |
1620 | (get_string_literal): Ditto. | |
1621 | * mep-tdep.c (mep_pseudo_cr_size): Ditto. | |
1622 | (mep_pseudo_cr_index, mep_register_type): Ditto. | |
1623 | (mep_pseudo_register_read, mep_pseudo_register_write): Ditto. | |
1624 | (mep_get_insn, mep_analyze_prologue): Ditto. | |
1625 | * objfiles.c (qsort_cmp): Ditto. | |
1626 | * prologue-value.c (pv_is_identical): Ditto. | |
1627 | * record.c (record_get_loc): Ditto. | |
1628 | * value.c (value_static_field): Ditto. | |
1629 | * xtensa-tdep.c (call0_track_op): Ditto. | |
1630 | ||
c92817ce TT |
1631 | 2010-08-18 Tom Tromey <tromey@redhat.com> |
1632 | ||
1633 | PR symtab/11919: | |
1634 | * gdbtypes.c (lookup_struct_elt_type): Clean up error emission. | |
1635 | * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move | |
1636 | name-copying lower. Document exception behavior. | |
1637 | * completer.c (expression_completer): Catch exceptions from | |
1638 | parse_field_expression. | |
1639 | ||
856d6f99 PA |
1640 | 2010-08-18 Pedro Alves <pedro@codesourcery.com> |
1641 | ||
1642 | PR corefile/8210 | |
1643 | ||
1644 | * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983 | |
1645 | workaround on core files. | |
1646 | (try_thread_db_load_1): Don't try enabling thread event reporting | |
1647 | on core files. | |
1648 | (thread_db_load): Allow thread_db on core files. | |
1649 | (attach_thread): Don't check thread signals on core files, nor try | |
1650 | really attaching to the thread, nor enabling thread event event | |
1651 | reporting. | |
1652 | (thread_db_detach): Don't try disabing thread event reporting or | |
1653 | removing thread event breakpoints when debugging a core file. | |
1654 | (find_new_threads_callback): Don't try enabling thread event | |
1655 | reporting on core files. | |
1656 | (thread_db_find_new_threads_2): Don't look for a stopped lwp when | |
1657 | debugging a core file. | |
1658 | (thread_db_find_new_threads): Don't update thread | |
1659 | cores (processors) when debugging a core (dump). | |
1660 | ||
261b8d08 PA |
1661 | 2010-08-18 Pedro Alves <pedro@codesourcery.com> |
1662 | ||
1663 | PR corefile/8210 | |
1664 | ||
1665 | * corelow.c (add_to_thread_list): Don't use | |
1666 | gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid. | |
1667 | (get_core_register_section): Don't use | |
1668 | gdbarch_core_reg_section_encodes_pid. | |
1669 | ||
1670 | * gdbarch.sh (core_reg_section_encodes_pid): Delete. | |
1671 | * gdbarch.h, gdbarch.c: Regenerate. | |
1672 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set | |
1673 | gdbarch_core_reg_section_encodes_pid. | |
1674 | * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto. | |
1675 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto. | |
1676 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto. | |
1677 | ||
f9b42018 YQ |
1678 | 2010-08-18 Yao Qi <yao@codesourcery.com> |
1679 | ||
1680 | * MAINTAINERS : Add myself under Write After Approval. | |
1681 | ||
def98928 TT |
1682 | 2010-08-17 Tom Tromey <tromey@redhat.com> |
1683 | ||
1684 | * NEWS: Mention template parameter support. | |
1685 | ||
0807b50c PA |
1686 | 2010-08-17 Pedro Alves <pedro@codesourcery.com> |
1687 | ||
1688 | PR breakpoints/11371 | |
1689 | ||
1690 | * breakpoint.c (decref_bp_location): Assert the reference count is | |
1691 | sane. | |
1692 | ||
f431efe5 PA |
1693 | 2010-08-17 Pedro Alves <pedro@codesourcery.com> |
1694 | ||
1695 | PR breakpoints/11371 | |
1696 | ||
1697 | * breakpoint.c (breakpoint_init_inferior): Decrement the | |
1698 | location's reference count instead of deleting right away. | |
1699 | (bpstat_free): Decrement the location's reference count. Make | |
1700 | static. | |
1701 | (bpstat_copy): Increment the location's reference count. | |
1702 | (bpstat_find_breakpoint): Adjust. | |
1703 | (bpstat_num): Adjust. | |
1704 | (print_it_typical): Adjust. Use the breakpoint pointer in the | |
1705 | bpstat instead of the location's owner. | |
1706 | (bpstat_alloc): Remove const qualifier from the 'bl' parameter. | |
1707 | Adjust to record the location's owner in the bpstat. | |
1708 | (watchpoint_check): Use the breakpoint pointer in the bpstat | |
1709 | instead of the location's owner. | |
1710 | (bpstat_check_breakpoint_conditions): Don't handle | |
1711 | bp_watchpoint_scope here. Use the breakpoint pointer in the | |
1712 | bpstat instead of the location's owner. | |
1713 | (bpstat_stop_status): Defer inferior function calls to after | |
1714 | building the bpstat list. Handle bp_watchpoint_scope here. Use | |
1715 | the breakpoint pointer in the bpstat instead of the location's | |
1716 | owner. | |
1717 | (bpstat_what): Use the breakpoint pointer in the bpstat instead of | |
1718 | the location's owner. | |
1719 | (free_bp_location): Don't walk bpstats clearing locations. | |
1720 | (incref_bp_location): New. | |
1721 | (decref_bp_location): New. | |
1722 | (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat | |
1723 | instead of the location's owner. | |
1724 | (update_global_location_list): Clear the location's owner, and | |
1725 | decrement the location's reference count instead of deleting it | |
1726 | right away. | |
1727 | (breakpoint_retire_moribund): Decrement the location's reference | |
1728 | count instead of deleting it right away. | |
1729 | (bpstat_remove_bp_location): Delete. | |
1730 | (bpstat_remove_breakpoint): New. | |
1731 | (bpstat_remove_bp_location_callback): Delete. | |
1732 | (bpstat_remove_breakpoint_callback): New. | |
1733 | (delete_breakpoint): Iterate over all threads' stop_bpstat's | |
1734 | clearing references to the breakpoint that is being deleted. | |
1735 | ||
1736 | * breakpoint.h (struct bp_location) <refc>: New field. | |
1737 | <owner>: Update comments. | |
1738 | (bpstat_free): Delete declaration. | |
1739 | (struct bpstats): Change the type of the breakpoint_at field to | |
1740 | struct breakpoint point, from struct bp_location pointer. Add new | |
1741 | field bp_location_at. | |
1742 | ||
14c0d4e1 TT |
1743 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
1744 | ||
1745 | * NEWS: Fix typo. | |
1746 | ||
b56df873 TT |
1747 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
1748 | ||
1749 | * NEWS: Mention watch -location. | |
1750 | ||
d63d0675 JK |
1751 | 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
1752 | ||
1753 | * breakpoint.c (update_watchpoint): Add source empty line. Prefer | |
1754 | EXP_STRING_REPARSE to EXP_STRING. | |
1755 | (watch_command_1): Set also EXP_STRING_REPARSE. | |
1756 | (delete_breakpoint): Free also EXP_STRING_REPARSE. | |
1757 | * breakpoint.h (struct breakpoint): New field exp_string_reparse. | |
1758 | Update comment for exp_string. | |
1759 | ||
06a64a0b TT |
1760 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
1761 | ||
1762 | * value.c (release_value): Clear 'next' pointer. | |
1763 | * breakpoint.c (watch_command_1): Add 'just_location' argument. | |
1764 | (watch_command_wrapper): Update. | |
1765 | (watch_maybe_just_location): New function. | |
1766 | (watch_command): Update. | |
1767 | (rwatch_command_wrapper): Update. | |
1768 | (rwatch_command): Update. | |
1769 | (awatch_command_wrapper): Update. | |
1770 | (awatch_command): Update. | |
1771 | (check_for_argument): New function. | |
1772 | (_initialize_breakpoint): Update help text. | |
1773 | ||
f96b8fa0 UW |
1774 | 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com> |
1775 | ||
1776 | * arm-tdep.c (arm_push_dummy_call): Handle pointers to | |
1777 | typedef'ed function types correctly. | |
1778 | ||
4eb54052 TT |
1779 | 2010-08-13 Tom Tromey <tromey@redhat.com> |
1780 | ||
1781 | * python/python-internal.h (gdbpy_get_hook_function): Don't | |
1782 | declare. | |
1783 | ||
44be957e JK |
1784 | 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1785 | ||
ba720883 | 1786 | * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them |
44be957e JK |
1787 | static. |
1788 | ||
76d8b686 KW |
1789 | 2010-08-13 Ken Werner <ken.werner@de.ibm.com> |
1790 | ||
1791 | * python/python.c (gdbpy_solib_name): Remove the const qualifier of | |
1792 | the format strings to be compatible with Python 2.4. | |
1793 | ||
8dedea02 VP |
1794 | 2010-08-13 Vladimir Prus <vladimir@codesourcery.com> |
1795 | ||
1796 | Easier and more stubborn MI memory read commands. | |
1797 | ||
1798 | * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes | |
1799 | and data-write-memory-bytes. | |
1800 | * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes) | |
1801 | (mi_cmd_data_write_memory_bytes): New. | |
1802 | * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read. | |
1803 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes): | |
1804 | New. | |
1805 | (mi_cmd_list_features): Add "data-read-memory-bytes" feature. | |
1806 | * target.c (target_read_until_error): Remove. | |
1807 | (read_whatever_is_readable, free_memory_read_result_vector) | |
1808 | (read_memory_robust): New. | |
1809 | * target.h (target_read_until_error): Remove. | |
1810 | (struct memory_read_result, free_memory_read_result_vector) | |
1811 | (read_memory_robust): New. | |
1812 | ||
1d9ec526 HZ |
1813 | 2010-08-13 Hui Zhu <teawater@gmail.com> |
1814 | ||
1815 | * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup. | |
1816 | (read_comp_unit): Initialize back_to. | |
1817 | ||
98bfdba5 PA |
1818 | 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com> |
1819 | Pedro Alves <pedro@codesourcery.com> | |
1820 | ||
1821 | * dwarf2read.c: Include "c-lang.h" and "valprint.h". | |
1822 | (struct dwarf2_per_objfile) <reading_partial_symbols>: New field. | |
1823 | (struct partial_die_info) <has_template_arguments>: New field. | |
1824 | <num_attrs>: Change type to unsigned char. | |
1825 | <building_fullname>: New field. | |
1826 | (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only | |
1827 | allocate a CU if we don't have one already. Add a cleanup for the | |
1828 | CU. | |
1829 | (partial_die_full_name): Handle template arguments not in | |
1830 | DW_AT_name. | |
1831 | (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols. | |
1832 | (load_full_comp_unit): Only allocate a CU if we don't have one | |
1833 | already. | |
1834 | (do_ui_file_peek_last): New. | |
1835 | (dwarf2_compute_name): Handle template parameters not in | |
1836 | DW_AT_name. | |
1837 | (read_comp_unit): Read and free abbrevs if not read yet. | |
1838 | (load_partial_dies): Handle template arguments not in DW_AT_name. | |
1839 | (find_partial_die): If we have a CU, but no a partial dies yet, | |
1840 | also read in the CU. | |
1841 | (dwarf2_const_value_attr): New, abstracted out from | |
1842 | dwarf2_const_value. | |
1843 | (dwarf2_const_value, dwarf2_const_value_data): Adjust to use | |
1844 | dwarf2_const_value_attr. | |
1845 | (determine_prefix): Detect and break loops created by RCVT's debug | |
1846 | info. | |
1847 | (maybe_queue_comp_unit): Bail out early if reading partial | |
1848 | symbols. | |
1849 | (follow_die_offset): Load full CU if we have no dies. | |
1850 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public. | |
1851 | * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare. | |
1852 | ||
ca5c20b6 | 1853 | 2010-08-11 Tom Tromey <tromey@redhat.com> |
889bf7c5 | 1854 | Phil Muldoon <pmuldoon@redhat.com> |
ca5c20b6 PM |
1855 | |
1856 | * python/python.c (gdbpy_run_events): New function. | |
1857 | (gdbpy_post_event): Likewise. | |
1858 | (gdbpy_initialize_events): Likewise. | |
1859 | (_initialize_python): Call gdbpy_initialize_events. | |
1860 | ||
7346b668 KW |
1861 | 2010-08-11 Ken Werner <ken.werner@de.ibm.com> |
1862 | ||
1863 | * gdb/valarith.c (vector_binop): New function. | |
1864 | (scalar_binop): Likewise. | |
1865 | (value_binop): Call scalar_binop or vector_binop depending on the types. | |
1866 | * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR. | |
1867 | (evaluate_subexp_with_coercion): Add vector check to not convert vectors | |
1868 | to pointers. | |
1869 | * gdb/value.c (coerce_array): Add vector check to not coerce vectors. | |
1870 | ||
62183e15 TT |
1871 | 2010-08-11 Brad Roberts <braddr@puremagic.com> |
1872 | ||
1873 | * d-lang.c (extract_identifiers): Handle multiple digits. | |
1874 | ||
39d7b0e2 JK |
1875 | 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1876 | ||
1877 | Code cleanup. | |
1878 | * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier. | |
1879 | Rename to dummy_frame_unwind. | |
1880 | (dummy_frame_unwind): Remove. | |
1881 | * dummy-frame.h (dummy_frame_unwind): Reference directly the struct. | |
1882 | * frame-unwind.c (frame_unwind_init): Use address of | |
1883 | dummy_frame_unwind and inline_frame_unwind. | |
1884 | * frame.c (create_sentinel_frame): Use address of | |
1885 | sentinel_frame_unwind. | |
1886 | * inline-frame.c (inline_frame_unwinder): Rename to | |
1887 | inline_frame_unwind. | |
1888 | (inline_frame_unwind): Remove. | |
1889 | * inline-frame.h (inline_frame_unwind): Reference directly the struct. | |
1890 | * sentinel-frame.c (sentinel_frame_unwinder): Rename to | |
1891 | sentinel_frame_unwind. | |
1892 | (sentinel_frame_unwind): Remove. | |
1893 | * sentinel-frame.h (sentinel_frame_unwind): Reference directly the | |
1894 | struct. | |
1895 | ||
9f9a8002 JK |
1896 | 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1897 | ||
1898 | Code cleanup. | |
1899 | * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type | |
1900 | and returned value. New comment from frame-unwind.h. | |
1901 | * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type. | |
1902 | Extend the comment. | |
1903 | * frame.c (get_frame_id, frame_unwind_register_value) | |
1904 | (create_new_frame, get_prev_frame_1, frame_unwinder_is) | |
1905 | (get_frame_type, frame_unwind_arch): Do not use the return value of | |
1906 | frame_unwind_find_by_frame. | |
1907 | ||
cb2e07a6 | 1908 | 2010-08-11 Phil Muldoon <pmuldoon@redhat.com> |
889bf7c5 | 1909 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
cb2e07a6 PM |
1910 | Tom Tromey <tromey@redhat.com> |
1911 | ||
1912 | * python/python.c (gdbpy_solib_address): New function. | |
1913 | (gdbpy_decode_line): Likewise. | |
1914 | ||
c29c521f TT |
1915 | 2010-08-10 Tom Tromey <tromey@redhat.com> |
1916 | ||
1917 | Revert gdb-add-index addition: | |
1918 | * Makefile.in (install-only): Don't install gdb-add-index. | |
1919 | * gdb-add-index.sh: Remove. | |
1920 | ||
0c012db1 KB |
1921 | 2010-08-09 Kevin Buettner <kevinb@redhat.com> |
1922 | ||
1923 | * remote-sim.c (gdbsim_xfer_inferior_memory): Replace | |
1924 | `target_has_execution' check with `to_has_memory' check. | |
1925 | (gdbsim_has_all_memory, gdbsim_has_memory): New functions. | |
1926 | (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops' | |
1927 | with `gdbsim_has_all_memory' and `gdbsim_has_memory'. | |
1928 | ||
db04efe6 KB |
1929 | 2010-08-09 Kevin Buettner <kevinb@redhat.com> |
1930 | ||
1931 | * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid) | |
1932 | (resume_siggnal, resume_step): Move these static globals... | |
1933 | (struct sim_inferior_data): ...into this new struct. | |
1934 | (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open): | |
1935 | New static globals. | |
1936 | (gdb_callback, callbacks_initialized): Move these globals to | |
1937 | a point earlier in the file. | |
1938 | (check_for_duplicate_sim_descriptor, get_sim_inferior_data) | |
1939 | (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup) | |
1940 | (gdbsim_close_inferior, gdbsim_resume_inferior) | |
1941 | (gdbsim_stop_inferior): New functions. | |
1942 | (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID): | |
1943 | New constants. | |
1944 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load) | |
1945 | (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume) | |
1946 | (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait) | |
1947 | (gdbsim_xfer_inferior_memory, gdbsim_files_info) | |
1948 | (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive, | |
1949 | (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set | |
1950 | new local variable `sim_data' in each of these functions. Use | |
1951 | `sim_data' to reference former globals `program_loaded', | |
1952 | `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and | |
1953 | `resume_step'. | |
1954 | (gdbsim_open): Remove local variable `argv'. Put results of call | |
1955 | to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't | |
1956 | make a cleanup for it. Free it though when a sim instance cannot | |
1957 | be obtained. | |
1958 | (gdbsim_close): Free sim_argv and null it out as appropriate. | |
1959 | Close sim instances in all inferiors. | |
1960 | (gdbsim_cntrl_c): Stop all inferiors. | |
1961 | (gdbsim_wait): | |
1962 | (_initialize_remote_sim): Initialize `sim_inferior_data_key'. | |
1963 | ||
e37fd15a SW |
1964 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
1965 | ||
1966 | * dwarf2read.c (new_symbol): Add symbol to variable list at end of | |
1967 | function after symbol construction is complete. | |
1968 | Do the same for template symbol addition to template_symbols list. | |
1969 | ||
45c58896 SW |
1970 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
1971 | ||
1972 | * symtab.c (symbol_get_demangled_name): Remove assertion and | |
1973 | return NULL when language_specific.cplus_specific is not initialized. | |
1974 | * stabsread.c (define_symbol): Set the name before calling | |
1975 | cp_scan_for_anonymous_namespaces. | |
1976 | ||
33e5013e SW |
1977 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
1978 | ||
1979 | * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to | |
1980 | SYMBOL_SET_LANGUAGE. | |
1981 | (symbol_init_language_specific): Renamed to symbol_set_language. | |
1982 | * symtab.c (symbol_init_language_specific): Removed redundant check | |
1983 | for language_cplus. | |
1984 | Renamed to symbol_set_language. | |
1985 | * stabsread.c (define_symbol): Updated. | |
1986 | (read_enum_type): Updated | |
1987 | * psymtab.c (add_psymbol_to_bcache): Updated. | |
1988 | * minsyms.c (install_minimal_symbols): Updated. | |
1989 | * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of | |
1990 | SYMBOL_LANGUAGE to set the language. | |
1991 | * minsyms.c (prim_record_minimal_symbol_full): Ditto. | |
1992 | * mdebugread.c (new_symbol): Ditto. | |
1993 | * cp-namespace.c (check_one_possible_namespace_symbol): Ditto. | |
1994 | * dwarf2read.c (new_symbol_full): Ditto. | |
1995 | * jv-lang.c (add_class_symbol): Ditto. | |
1996 | ||
5da1313b JK |
1997 | 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
1998 | ||
1999 | * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file) | |
2000 | (make_cleanup_restore_page_info) | |
2001 | (set_batch_flag_and_make_cleanup_restore_page_info): New declarations. | |
2002 | * gdbcmd.h (execute_command_to_string): New declaration. | |
2003 | * python/python.c (struct restore_ui_file_closure, restore_ui_file) | |
2004 | (make_cleanup_restore_ui_file): Move to utils.c | |
2005 | (execute_gdb_command) <to_string>: Move ... | |
2006 | * top.c (execute_command_to_string): ... here. Call | |
2007 | set_batch_flag_and_make_cleanup_restore_page_info. | |
2008 | * utils.c (make_cleanup_restore_integer): New source file blank line. | |
2009 | (make_cleanup_restore_uinteger): New. | |
2010 | (struct restore_ui_file_closure, do_restore_ui_file) | |
2011 | (make_cleanup_restore_ui_file): Move here from python/python.c. | |
2012 | (init_page_info) <batch_flag> | |
2013 | (do_restore_page_info_cleanup, make_cleanup_restore_page_info) | |
2014 | (set_batch_flag_and_make_cleanup_restore_page_info): New. | |
2015 | ||
c820c52a PA |
2016 | 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com> |
2017 | ||
2018 | * thread.c (add_thread_silent): Use null_ptid instead of | |
2019 | minus_one_ptid while getting rid of stale inferior_ptid. | |
2020 | ||
8da614df CV |
2021 | 2010-08-06 Corinna Vinschen <vinschen@redhat.com> |
2022 | ||
2023 | * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member. | |
2024 | Throughout, call read_encoded_value with ptr_size rather than addr_size. | |
2025 | (decode_frame_entry_1): Remove redundant setting of | |
2026 | addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit | |
2027 | to determine addr_size in Dwarf versions < 4. Set ptr_size dependent | |
2028 | on examined frame section. Add comment to explain why. | |
2029 | * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy | |
2030 | comment to explain usage. | |
2031 | * gdbarch.c: Regenerate. | |
2032 | * gdbarch.h: Regenerate. | |
2033 | ||
2034 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4. | |
2035 | ||
e4195b40 JK |
2036 | 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2037 | ||
2038 | Code cleanup. | |
2039 | * varobj.c (varobj_create): Move variables fi, old_fi and block to | |
2040 | a more inner block. | |
2041 | ||
a3217aa0 PA |
2042 | 2010-08-05 Pedro Alves <pedro@codesourcery.com> |
2043 | ||
2044 | * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*) | |
2045 | (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) | |
2046 | (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*) | |
2047 | (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add | |
2048 | linux-tdep.o to gdb_target_obs. | |
2049 | ||
e2b4a699 | 2050 | 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com> |
889bf7c5 PA |
2051 | |
2052 | * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first | |
e2b4a699 | 2053 | argument. |
889bf7c5 | 2054 | |
50e8a0d5 HZ |
2055 | 2010-08-05 Hui Zhu <teawater@gmail.com> |
2056 | ||
2057 | * mips-linux-tdep.c(regset.h): New include. | |
2058 | (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper, | |
2059 | mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper, | |
2060 | mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper, | |
2061 | mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper, | |
2062 | mips_linux_regset_from_core_section): New functions. | |
2063 | (fetch_core_registers, regset_core_fns): Deleted. | |
2064 | (mips_linux_init_abi): Add mips_linux_regset_from_core_section. | |
2065 | Deleted regset_core_fns. | |
2066 | * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset, | |
2067 | tdep->gregset64, tdep->fpregset and tdep->fpregset64. | |
2068 | * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset | |
2069 | and fpregset64. | |
2070 | ||
70728992 PA |
2071 | 2010-08-04 Pedro Alves <pedro@codesourcery.com> |
2072 | ||
2073 | * s390-tdep.c: Include linux-tdep.h. | |
2074 | (s390_gdbarch_init): Call linux_init_abi. | |
2075 | ||
a5ee0f0c PA |
2076 | 2010-08-04 Pedro Alves <pedro@codesourcery.com> |
2077 | ||
2078 | * corelow.c (core_pid_to_str): Default to using normal_pid_to_str | |
2079 | instead of printing "Thread" here. | |
2080 | * linux-tdep.c: Include inferior.h. | |
2081 | (linux_core_pid_to_str): New. | |
2082 | (linux_init_abi): New. | |
2083 | * linux-tdep.h (linux_init_abi): Declare. | |
2084 | * alpha-linux-tdep.c: Include linux-tdep.h. | |
2085 | (alpha_linux_init_abi): Call linux_init_abi. | |
2086 | * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi. | |
2087 | * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi. | |
2088 | * frv-linux-tdep.c: Include linux-tdep.h | |
2089 | (frv_linux_init_abi): Call linux_init_abi. | |
2090 | * hppa-linux-tdep.c: Include linux-tdep.h | |
2091 | (hppa_linux_init_abi): Call linux_init_abi. | |
2092 | * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi. | |
2093 | * ia64-linux-tdep.c: Include linux-tdep.h. | |
2094 | (ia64_linux_init_abi): Call linux_init_abi. | |
2095 | * m32r-linux-tdep.c: Include linux-tdep.h. | |
2096 | (m32r_linux_init_abi): Call linux_init_abi. | |
2097 | * m68klinux-tdep.c: Include linux-tdep.h. | |
2098 | (m68k_linux_init_abi): Call linux_init_abi. | |
2099 | * microblaze-linux-tdep.c: Include linux-tdep.h. | |
2100 | (microblaze_linux_init_abi): Call linux_init_abi. | |
2101 | * mips-linux-tdep.c: Include linux-tdep.h. | |
2102 | (mips_linux_init_abi): Call linux_init_abi. | |
2103 | * mn10300-linux-tdep.c: Include linux-tdep.h. | |
2104 | (am33_linux_init_osabi): Call linux_init_abi. Rename the | |
2105 | 'gdbinfo' parameter to 'info'. | |
2106 | * ppc-linux-tdep.c: Include linux-tdep.h. | |
2107 | (ppc_linux_init_abi): Call linux_init_abi. | |
2108 | * sh-linux-tdep.c: Include linux-tdep.h. | |
2109 | (sh_linux_init_abi): Call linux_init_abi. | |
2110 | * sparc-linux-tdep.c: Include linux-tdep.h. | |
2111 | (sparc32_linux_init_abi): Call linux_init_abi. | |
2112 | * sparc64-linux-tdep.c: Include linux-tdep.h. | |
2113 | (sparc64_linux_init_abi): Call linux_init_abi. | |
2114 | * xtensa-linux-tdep.c: Include linux-tdep.h. | |
2115 | (xtensa_linux_init_abi): Call linux_init_abi. | |
2116 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New. | |
2117 | (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str | |
2118 | callback. | |
2119 | ||
bc043ef3 DE |
2120 | 2010-08-03 Doug Evans <dje@google.com> |
2121 | ||
2122 | * breakpoint.c (bpdisp_text): Constify bpdisps. | |
2123 | * solib-svr4.c (solib_break_names): Constify. | |
2124 | (bkpt_names, main_name_list): Constify. | |
2125 | (match_main): Constify soname arg. | |
63cdd227 DE |
2126 | (bfd_lookup_symbol): Remove unnecessary forward decl. |
2127 | Constify symname arg. | |
bc043ef3 DE |
2128 | (enable_break): Constify bkpt_namep. |
2129 | * symtab.c (search_symbols): Constify types, types2, types3, types4. | |
2130 | (symtab_symbol_info): Constify classnames. | |
2131 | ||
585d1eb8 PM |
2132 | 2010-08-03 Phil Muldoon <pmuldoon@redhat.com> |
2133 | ||
2134 | * NEWS: Document Python value inferior function calls. | |
2135 | ||
2de00c64 DE |
2136 | 2010-08-02 Doug Evans <dje@google.com> |
2137 | ||
2138 | * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature. | |
2139 | ||
02d868e8 PP |
2140 | 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
2141 | ||
2142 | * linux-thread-db.c (libthread_db_debug): New variable. | |
2143 | (thread_db_find_new_threads_silently): Control verbosity with it. | |
2144 | (try_thread_db_load_1, try_thread_db_load): Likewise. | |
2145 | (find_new_threads_once): Likewise. | |
2146 | (_initialize_thread_db): Set/show it. | |
2147 | ||
a19cae16 JK |
2148 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
2149 | ||
2150 | * common/signals.c (signals): Move the content to signals.def. | |
2151 | Include it. Remove the INDENT comments. | |
2152 | ||
c2bbed2a TT |
2153 | 2010-07-30 Tom Tromey <tromey@redhat.com> |
2154 | ||
2155 | * Makefile.in (install-only): Install gdb-add-index. | |
2156 | * gdb-add-index.sh: New file. | |
2157 | ||
f32b2f09 CR |
2158 | 2010-07-31 Renquan Cheng <crq@gcc.gnu.org> |
2159 | ||
2160 | * MAINTAINERS: Add myself for write after approval privileges. | |
2161 | ||
1276c759 JK |
2162 | 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
2163 | ||
2164 | * symfile.c (addr_section_name): New function. | |
2165 | (addrs_section_compar): Use it. | |
2166 | (addr_info_make_relative): Use it. Move variable sect_name into a more | |
2167 | inner block. Make ".dynbss" and ".sdynbss" checks more strict. | |
2168 | ||
420697bb TT |
2169 | 2010-07-30 Tom Tromey <tromey@redhat.com> |
2170 | ||
2171 | * configure: Rebuild. | |
2172 | * configure.ac: Add missing case for Python 2.7. | |
2173 | ||
d0d99561 DD |
2174 | 2010-07-29 DJ Delorie <dj@redhat.com> |
2175 | ||
2176 | * rx-tdep.c (rx_analyze_prologue): Don't require branches to have | |
2177 | conditions. | |
2178 | ||
0b29bdde PA |
2179 | 2010-07-29 Pedro Alves <pedro@codesourcery.com> |
2180 | ||
2181 | * PROBLEMS: Remove mention of all problems. | |
2182 | ||
110ed339 PA |
2183 | 2010-07-28 Pedro Alves <pedro@codesourcery.com> |
2184 | ||
2185 | PR build/11848 | |
2186 | * configure.ac: Check for wresize. | |
2187 | * configure, config.in: Regenerate. | |
2188 | * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call | |
2189 | with HAVE_WRESIZE. | |
2190 | ||
326fd672 TT |
2191 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2192 | ||
2193 | PR python/11060: | |
2194 | * python/py-type.c (typy_legacy_template_argument): New function, | |
2195 | extracted from typy_template_argument. | |
2196 | (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a | |
2197 | value when needed. | |
2198 | ||
4ac8c4da TT |
2199 | 2010-07-28 Oleg Nesterov <oleg@redhat.com> |
2200 | ||
2201 | * remote.c (readchar): Call pop_target in case of SERIAL_ERROR. | |
2202 | ||
053315c2 TT |
2203 | 2010-07-27 Tom Tromey <tromey@redhat.com> |
2204 | ||
2205 | * dwarf2read.c (dwarf2_const_value_data): Never sign extend. | |
2206 | ||
3ce3b1ba PA |
2207 | 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
2208 | ||
2209 | * dwarf2read.c (read_subroutine_type): Improve THIS detection, | |
2210 | handling DW_AT_object_pointer, and workaround GCC PR 43053. | |
2211 | ||
2bb4f988 TT |
2212 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2213 | ||
2214 | * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h. | |
2215 | ||
74232302 JB |
2216 | 2010-07-28 Joel Brobecker <brobecker@adacore.com> |
2217 | ||
2218 | * remote.c (remote_download_tracepoint): Add missing gettext markup. | |
2219 | * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise. | |
2220 | ||
385d04dc JB |
2221 | 2010-07-28 Joel Brobecker <brobecker@adacore.com> |
2222 | ||
2223 | * breakpoint.c (breakpoint_re_set_one): Move call to set_language | |
2224 | down, just before the block that parse the breakpoint addr_string. | |
2225 | ||
34eaf542 TT |
2226 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2227 | ||
2228 | PR c++/9946: | |
2229 | * symfile.c (reread_symbols): Clear template_symbols. | |
2230 | * symtab.h (struct symbol) <is_cplus_template_function>: New | |
2231 | field. | |
2232 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. | |
2233 | (struct template_symbol): New. | |
2234 | * symtab.c (lookup_symbol_aux_local): Use | |
2235 | cp_lookup_symbol_imports_or_template. | |
2236 | * objfiles.h (struct objfile) <template_symbols>: New field. | |
2237 | * objfiles.c (relocate_one_symbol): New function. | |
2238 | (objfile_relocate1): Use it. Relocate isolated symbols. | |
2239 | * gdbtypes.h (struct cplus_struct_type) <n_template_arguments, | |
2240 | template_arguments>: New fields. | |
2241 | (TYPE_N_TEMPLATE_ARGUMENTS): New macro. | |
2242 | (TYPE_TEMPLATE_ARGUMENTS): Likewise. | |
2243 | (TYPE_TEMPLATE_ARGUMENT): Likewise. | |
2244 | (lookup_typename): Update. | |
2245 | * gdbtypes.c (lookup_typename): Constify "block" argument. | |
2246 | * dwarf2read.c: Include vec.h. | |
2247 | (symbolp): New typedef. | |
2248 | (read_func_scope): Read template arguments. Allocate a | |
2249 | template_symbol when needed. | |
2250 | (read_structure_type): Read template arguments. | |
2251 | (new_symbol_full): New function, from new_symbol. Handle | |
2252 | DW_TAG_template_type_param and DW_TAG_template_value_param. | |
2253 | (new_symbol): Rewrite as wrapper. | |
2254 | * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. | |
2255 | * cp-namespace.c: Include language.h. | |
2256 | (search_symbol_list): New function. | |
2257 | (cp_lookup_symbol_imports_or_template): Likewise. | |
2258 | ||
d27b3be4 PA |
2259 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
2260 | ||
2261 | * tui/tui-win.c (make_visible_with_new_height): Resize and move | |
2262 | the command window to the new size and position. | |
2263 | ||
0036e657 PA |
2264 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
2265 | ||
a782f43e | 2266 | * tui/tui-win.c (tui_resize_all): Update the locator's origin's |
0036e657 PA |
2267 | coordinates. |
2268 | ||
36900355 PA |
2269 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
2270 | ||
a782f43e | 2271 | * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all |
36900355 | 2272 | after a detecting a resize. |
a782f43e | 2273 | * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to |
36900355 PA |
2274 | call. |
2275 | ||
db5e03ae PA |
2276 | 2010-07-28 Pedro Alves <pedro@codesourcery.com> |
2277 | ||
2278 | * configure.ac: Check for resize_term. | |
2279 | * configure, config.in: Regenerate. | |
2280 | ||
b71fff68 JB |
2281 | 2010-07-27 Joel Brobecker <brobecker@adacore.com> |
2282 | ||
2283 | * MAINTAINERS (Write After Approval): Reorder a couple of entries. | |
2284 | ||
9b1c24c8 PA |
2285 | 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com> |
2286 | ||
2287 | * dwarf2read.c (read_string): Rename to ... | |
2288 | (read_direct_string): ... this. | |
2289 | (skip_one_die, read_attribute_value, dwarf_decode_line_header) | |
2290 | (dwarf_decode_lines, dwarf_decode_macros): Adjust. | |
2291 | ||
00390b84 JK |
2292 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
2293 | ||
2294 | * linux-nat.c (linux_nat_lp_status_is_event): New function. | |
2295 | (count_events_callback, select_event_lwp_callback) | |
2296 | (cancel_breakpoints_callback, linux_nat_wait_1): Use it. | |
2297 | ||
26ab7092 JK |
2298 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
2299 | ||
2300 | * ia64-linux-nat.c (ia64_linux_status_is_event): New function. | |
2301 | (_initialize_ia64_linux_nat): Install it. | |
2302 | * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event) | |
2303 | (linux_nat_set_status_is_event): New. | |
2304 | (stop_wait_callback, count_events_callback, select_event_lwp_callback) | |
2305 | cancel_breakpoints_callback, linux_nat_filter_event) | |
2306 | (linux_nat_wait_1): Use linux_nat_status_is_event. | |
2307 | * linux-nat.h (linux_nat_set_status_is_event): New prototype. | |
2308 | ||
283e6a52 TT |
2309 | 2010-07-27 Tom Tromey <tromey@redhat.com> |
2310 | ||
2311 | * NEWS: Mention labels, .gdb_index. | |
2312 | ||
53a71c06 CR |
2313 | 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg> |
2314 | ||
2315 | * cli/cli-cmds.c (disassemble_command): Add support of disassemble | |
3422f666 | 2316 | "start,+length" form of arguments. |
53a71c06 CR |
2317 | * NEWS: Add "Changed commands" (disassemble) section for "Changes |
2318 | since GDB 7.1"; and merge two separated paragraphs of disassemble | |
2319 | description in "Changes in GDB 7.0". | |
2320 | ||
c63a1f86 JK |
2321 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
2322 | ||
2323 | * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. | |
2324 | * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. | |
2325 | (fputs_maybe_filtered): Do not do filtering also on | |
2326 | ! INPUT_FROM_TERMINAL_P. | |
2327 | ||
abebb8b0 JB |
2328 | 2010-07-27 Joel Brobecker <brobecker@adacore.com> |
2329 | ||
2330 | * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline | |
2331 | in warning message. | |
2332 | ||
5374244e PM |
2333 | 2010-07-27 Phil Muldoon <pmuldoon@redhat.com> |
2334 | ||
2335 | * python/py-value.c (valpy_call): New Function. | |
2336 | ||
ac0b195c KW |
2337 | 2010-07-27 Ken Werner <ken.werner@de.ibm.com> |
2338 | ||
889bf7c5 | 2339 | * dwarf2read.c (dwarf2_read_index): Initialize the types_list and |
ac0b195c KW |
2340 | types_list_elements variables. |
2341 | ||
09d8bd00 TT |
2342 | 2010-07-26 Tom Tromey <tromey@redhat.com> |
2343 | ||
2344 | * dwarf2loc.c (locexpr_describe_location_piece): Also recognize | |
2345 | TLS with DW_OP_const4u or DW_OP_const8u. | |
2346 | ||
9fe70b4f TJB |
2347 | 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2348 | ||
2349 | * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get | |
2350 | VSX registers contents. | |
2351 | ||
caac4577 JG |
2352 | 2010-07-26 Jerome Guitton <guitton@adacore.com> |
2353 | ||
2354 | * dwarf2read.c (add_partial_symbol): Do not add a global variable if | |
2355 | its adress is null. Add comment to explain why. | |
2356 | (new_symbol): Ditto. | |
2357 | ||
857d11d0 JK |
2358 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
2359 | ||
2360 | * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to | |
2361 | the host signal first. | |
2362 | ||
1fd400ff TT |
2363 | 2010-07-23 Tom Tromey <tromey@redhat.com> |
2364 | ||
2365 | * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units, | |
2366 | type_comp_units>: New fields. | |
2367 | (dw2_get_cu): New function. | |
2368 | (create_cus_from_index): Remove unused argument. | |
2369 | (create_signatured_type_hash_from_index): New function. | |
2370 | (create_addrmap_from_index): Update. | |
2371 | (dwarf2_read_index): Handle version 2. | |
2372 | (dw2_find_last_source_symtab, dw2_forget_cached_source_info) | |
2373 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching) | |
2374 | (dw2_print_stats, dw2_expand_all_symtabs) | |
2375 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file) | |
2376 | (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update. | |
2377 | (dwarf2_initialize_objfile): Call create_debug_types_hash_table. | |
2378 | (allocate_signatured_type_hash_table): New function. | |
2379 | (add_signatured_type_cu_to_list): Likewise. | |
2380 | (create_debug_types_hash_table): Use them. Set type_comp_units. | |
2381 | (read_signatured_type): Ensure section data is available. | |
2382 | (add_address_entry): Don't record empty ranges. | |
2383 | (struct signatured_type_index_data): New. | |
2384 | (write_one_signatured_type): New function. | |
2385 | (write_psymtabs_to_index): Write type CUs. | |
2386 | (save_gdb_index_command): Update comment. | |
2387 | (process_type_comp_unit): Move inititalization of | |
2388 | from_debug_types... | |
2389 | (create_debug_types_hash_table): ... here. | |
2390 | ||
3a674486 JK |
2391 | 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
2392 | ||
2393 | * gdb_gcore.sh (tmpfile): Remove the variable, its initialization, | |
2394 | cleanup and generating of gdb script to it. | |
2395 | (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination | |
2396 | and terminal size. Convert $tmpfile to a series of -ex-es. | |
2397 | ||
54ec275a KS |
2398 | 2010-07-23 Keith Seitz <keiths@redhat.com> |
2399 | ||
2400 | * symtab.c (basic_lookup_transparent_type): Call pre-expand | |
2401 | hook for STATIC_BLOCK types, too. | |
2402 | ||
8fd447e6 KS |
2403 | 2010-07-23 Keith Seitz <keiths@redhat.com> |
2404 | ||
2405 | * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr | |
2406 | and vector definition. | |
2407 | ||
25b72dde JK |
2408 | 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
2409 | ||
2410 | * linux-nat.c (cancel_breakpoint): Remove unused forward declaration. | |
2411 | ||
96d19272 JK |
2412 | 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
2413 | ||
2414 | * dwarf2read.c: Include completer.h. | |
2415 | (save_gdb_index_command): Use matching usage command name. | |
2416 | (_initialize_dwarf2_read): New variable c, initialize it by add_cmd. | |
2417 | Set filename_completer for it. | |
2418 | ||
ca1f3406 TT |
2419 | 2010-07-22 Tom Tromey <tromey@redhat.com> |
2420 | ||
2421 | * dwarf2read.c (create_debug_types_hash_table): Set objfile on | |
2422 | type signature's per-CU data. | |
2423 | ||
ba25b921 PA |
2424 | 2010-07-22 Pedro Alves <pedro@codesourcery.com> |
2425 | ||
2426 | * NEWS: Mention target reported shared libraries support by | |
2427 | default. | |
2428 | ||
23bd0f7c PA |
2429 | 2010-07-21 Pedro Alves <pedro@codesourcery.com> |
2430 | ||
2431 | PR symtab/11827 | |
2432 | ||
2433 | Revert: | |
2434 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> | |
2435 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
2436 | and DW_TAG_volatile_type. | |
2437 | (new_symbol): Likewise. | |
2438 | ||
883df6dd SW |
2439 | 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com> |
2440 | ||
2441 | * eval.c (evaluate_subexp_standard): Disabled evaluation of C++ | |
2442 | function symbols before overload resolution. | |
2443 | ||
269b11a2 PA |
2444 | 2010-07-21 Pedro Alves <pedro@codesourcery.com> |
2445 | ||
2446 | * breakpoint.c (bptype_string): New, abstracted out from | |
2447 | print_one_breakpoint_location. | |
2448 | (print_one_breakpoint_location): Adjust. | |
2449 | (breakpoint_1): Adjust the type column width dynamically. | |
2450 | ||
569b05a5 JK |
2451 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2452 | ||
2453 | * symfile.c (find_separate_debug_file_by_debuglink): Remove | |
2454 | a gdb_assert call, new comment. | |
2455 | ||
ad34eb2f JK |
2456 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2457 | ||
2458 | * linux-nat.c (linux_handle_extended_wait): Handle case when | |
2459 | event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP. | |
2460 | ||
33355866 JK |
2461 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2462 | ||
2463 | Code cleanup. | |
2464 | * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling | |
2465 | linux_nat_wait_1. Use always LP->STATUS afterwards. | |
2466 | ||
26590820 HZ |
2467 | 2010-07-20 Hui Zhu <teawater@gmail.com> |
2468 | ||
2469 | * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. | |
2470 | (inf_ptrace_attach): Ditto. | |
2471 | ||
c0edd9ed JK |
2472 | 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
2473 | ||
2474 | Make core files the process_stratum. | |
2475 | * corefile.c (core_target): New variable. | |
2476 | (core_file_command): Remove variable t, use core_target. | |
2477 | * corelow.c (core_ops): Make it static. | |
2478 | (init_core_ops): Change to process_stratum. Initialize CORE_TARGET. | |
2479 | * defs.h (make_cleanup_unpush_target): New prototype. | |
2480 | * gdbarch.h: Regenerate. | |
2481 | * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment. | |
2482 | * gdbcore.h (core_target): New declaration. | |
2483 | * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New | |
2484 | variables ops_already_pushed and back_to. Use push_target, | |
2485 | make_cleanup_unpush_target and discard_cleanups calls. | |
2486 | * record.c (record_open): Replace core_stratum by a core_bfd check. | |
2487 | * target.c (target_is_pushed): New function. | |
2488 | (find_core_target): Remove. | |
2489 | * target.h (enum strata) <core_stratum>: Remove. | |
2490 | (target_is_pushed): New declaration. | |
2491 | (find_core_target): Remove declaration. | |
2492 | * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment. | |
2493 | * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. | |
2494 | ||
f02253f1 HZ |
2495 | 2010-07-19 Hui Zhu <teawater@gmail.com> |
2496 | ||
2497 | * breakpoint.c (single_step_breakpoints_inserted): New | |
2498 | function. | |
2499 | * breakpoint.h (single_step_breakpoints_inserted): Extern. | |
2500 | * infrun.c (maybe_software_singlestep): Add check code. | |
2501 | * record.c (record_resume): Add code for software single step. | |
2502 | (record_wait): Ditto. | |
2503 | ||
78768c4a JK |
2504 | 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
2505 | ||
2506 | * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into | |
2507 | a more inner block. Remove its unused declaration initializer. | |
2508 | ||
431e49aa TJB |
2509 | 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2510 | ||
2511 | * NEWS: Mention support for the new ptrace interface and hardware | |
2512 | accelerated watchpoint conditions on powerpc-linux. | |
2513 | ||
bd91e7ae OS |
2514 | 2010-07-16 Ozkan Sezer <sezeroz@gmail.com> |
2515 | ||
2516 | * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned | |
2517 | long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars | |
2518 | and host_address_to_string() and %s for pointers. | |
2519 | (debug_to_remove_breakpoint): Likewise. | |
2520 | (debug_to_region_ok_for_hw_watchpoint): Likewise. | |
2521 | (debug_to_can_accel_watchpoint_condition): Likewise. | |
2522 | (debug_to_stopped_data_address): Likewise. | |
2523 | (debug_to_watchpoint_addr_within_range): Likewise. | |
2524 | (debug_to_insert_hw_breakpoint): Likewise. | |
2525 | (debug_to_remove_hw_breakpoint): Likewise. | |
2526 | (debug_to_insert_watchpoint): Likewise. | |
2527 | (debug_to_remove_watchpoint): Likewise. | |
2528 | ||
29df156d SW |
2529 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
2530 | ||
2531 | * symtab.h (symbol_set_demangled_name): Now takes an optional objfile* | |
2532 | argument. | |
2533 | (cplus_specific): New struct. | |
2534 | * symtab.c (symbol_set_demangled_name): Updated. | |
2535 | Use cplus_specific for cplus symbols. | |
2536 | (symbol_get_demangled_name): Retrive the name from the cplus_specific | |
2537 | struct for cplus symbols. | |
2538 | (symbol_init_language_specific): Set cplus_specific for cplus symbols. | |
2539 | (symbol_set_names): Pass objfile to symbol_set_demangled_name. | |
2540 | * symtab.c (symbol_init_cplus_specific): New function. | |
2541 | ||
b250c185 SW |
2542 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
2543 | ||
2544 | * symtab.h (symbol_set_demangled_name): New function. | |
2545 | (symbol_get_demangled_name): New function. | |
2546 | * symtab.c (symbol_set_demangled_name): New function. | |
2547 | (symbol_get_demangled_name): New function. | |
2548 | (symbol_init_language_specific): Use demangled_name setter and getter. | |
2549 | (symbol_set_names): Ditto. | |
2550 | (symbol_natural_name): Ditto. | |
2551 | (symbol_demangled_name): Ditto. | |
2552 | * dwarf2read.c (new_symbol): Ditto. | |
2553 | ||
afa16725 SW |
2554 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
2555 | ||
2556 | * symtab.h: Renamed cplus_specific to mangled_lang. | |
2557 | * symtab.c (symbol_init_language_specific): Updated. | |
2558 | (symbol_set_names): Updated. | |
2559 | (symbol_natural_name): Updated. | |
2560 | (symbol_demangled_name): Updated. | |
2561 | * ada-lang.c (ada_decode_symbol): Updated. | |
2562 | * dwarf2read.c (new_symbol): Updated. | |
2563 | ||
3cbaedff KW |
2564 | 2010-07-14 Ken Werner <ken.werner@de.ibm.com> |
2565 | ||
2566 | * valops.c (value_assign): Do not call to value_coerce_to_target. | |
2567 | (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR. | |
2568 | ||
c932f1be KW |
2569 | 2010-07-14 Ken Werner <ken.werner@de.ibm.com> |
2570 | ||
2571 | * MAINTAINERS: Add myself for write after approval privileges. | |
2572 | ||
91158a56 TT |
2573 | 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com> |
2574 | ||
2575 | * c-valprint.c (c_val_print): Add embedded_offset to address in | |
2576 | call to val_print_array_elements. | |
2577 | ||
b3b272e1 TT |
2578 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2579 | ||
2580 | * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'. | |
2581 | ||
bb3fa9d0 TT |
2582 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2583 | ||
2584 | * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to | |
2585 | objfile. | |
2586 | ||
dd786858 TT |
2587 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2588 | ||
2589 | * symfile.c (set_initial_language): Update. | |
2590 | (deduce_language_from_filename): Argument type now const. | |
2591 | * symtab.h (find_main_filename): Update. | |
2592 | (deduce_language_from_filename): Update. | |
2593 | * symtab.c (find_main_filename): Make result const. | |
2594 | * dwarf2read.c (dw2_find_symbol_file): Change return type. | |
2595 | * psymtab.c (find_symbol_file_from_partial): Change return type. | |
2596 | * symfile.h (struct quick_symbol_functions) <find_symbol_file>: | |
2597 | Make result const. | |
2598 | ||
9291a0cd TT |
2599 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2600 | ||
2601 | * breakpoint.c (save_cmdlist): No longer static. | |
2602 | * gdbcmd.h (save_cmdlist): Declare. | |
2603 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Set | |
2604 | OBJF_READNOW on objfile if readnow_symbol_files. | |
2605 | * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile. | |
2606 | (elf_sym_fns_gdb_index): New global. | |
2607 | * dwarf2read.c: Include exceptions.h. | |
2608 | (offset_type): New. | |
2609 | (struct mapped_index): New. | |
2610 | (dwarf2_per_cu_data_ptr): New typedef. | |
2611 | (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>: | |
2612 | New fields. | |
2613 | (GDB_INDEX_SECTION): New define. | |
2614 | (struct dwarf2_per_cu_quick_data): New. | |
2615 | (struct dwarf2_per_cu_data) <objfile>: New field. | |
2616 | <psymtab>: Removed. | |
2617 | <v>: New field. | |
2618 | (byte_swap): New function. | |
2619 | (MAYBE_SWAP): New macro. | |
2620 | (INDEX_SUFFIX): New macro. | |
2621 | (dw2_do_instantiate_symtab): New function. | |
2622 | (dw2_instantiate_symtab): Likewise. | |
2623 | (create_cus_from_index): Likewise. | |
2624 | (create_addrmap_from_index): Likewise. | |
2625 | (mapped_index_string_hash): Likewise. | |
2626 | (find_slot_in_mapped_hash): Likewise. | |
2627 | (dwarf2_read_index): Likewise. | |
2628 | (dw2_setup): Likewise. | |
2629 | (dw2_require_line_header): Likewise. | |
2630 | (dw2_require_full_path): Likewise. | |
2631 | (dw2_find_last_source_symtab): Likewise. | |
2632 | (dw2_forget_cached_source_info): Likewise. | |
2633 | (dw2_lookup_symtab): Likewise. | |
2634 | (dw2_lookup_symbol): Likewise. | |
2635 | (dw2_do_expand_symtabs_matching): Likewise. | |
2636 | (dw2_pre_expand_symtabs_matching): Likewise. | |
2637 | (dw2_print_stats): Likewise. | |
2638 | (dw2_dump): Likewise. | |
2639 | (dw2_relocate): Likewise. | |
2640 | (dw2_expand_symtabs_for_function): Likewise. | |
2641 | (dw2_expand_all_symtabs): Likewise. | |
2642 | (dw2_expand_symtabs_with_filename): Likewise. | |
2643 | (dw2_find_symbol_file): Likewise. | |
2644 | (dw2_map_ada_symtabs): Likewise. | |
2645 | (dw2_expand_symtabs_matching): Likewise. | |
2646 | (dw2_find_pc_sect_symtab): Likewise. | |
2647 | (dw2_map_symbol_names): Likewise. | |
2648 | (dw2_map_symbol_filenames): Likewise. | |
2649 | (dw2_has_symbols): Likewise. | |
2650 | (dwarf2_gdb_index_functions): New global. | |
2651 | (dwarf2_initialize_objfile): New function. | |
2652 | (process_psymtab_comp_unit): Update. | |
2653 | (add_partial_subprogram): Likewise. | |
2654 | (dwarf2_psymtab_to_symtab): Likewise. | |
2655 | (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab. | |
2656 | (process_full_comp_unit): Update. | |
2657 | (find_file_and_directory): New function. | |
2658 | (read_file_scope): Use find_file_and_directory. | |
2659 | (dwarf2_per_cu_objfile): Update. | |
2660 | (dwarf2_per_cu_addr_size): Update. | |
2661 | (dwarf2_per_cu_offset_size): Update. | |
2662 | (dwarf2_free_objfile): Free the index, if needed. | |
2663 | (dwarf2_per_objfile_free): Unmap the index, if needed. | |
2664 | (struct strtab_entry): New. | |
2665 | (hash_strtab_entry): New function. | |
2666 | (eq_strtab_entry): Likewise. | |
2667 | (create_strtab): Likewise. | |
2668 | (add_string): Likewise. | |
2669 | (struct symtab_index_entry): New. | |
2670 | (struct mapped_symtab): New. | |
2671 | (hash_symtab_entry): New function. | |
2672 | (eq_symtab_entry): Likewise. | |
2673 | (delete_symtab_entry): Likewise. | |
2674 | (create_index_table): Likewise. | |
2675 | (create_mapped_symtab): Likewise. | |
2676 | (cleanup_mapped_symtab): Likewise. | |
2677 | (find_slot): Likewise. | |
2678 | (hash_expand): Likewise. | |
2679 | (add_index_entry): Likewise. | |
2680 | (add_indices_to_cpool): Likewise. | |
2681 | (write_hash_table): Likewise. | |
2682 | (add_address_entry): Likewise. | |
2683 | (write_psymbols): Likewise. | |
2684 | (write_obstack): Likewise. | |
2685 | (unlink_if_set): Likewise. | |
2686 | (write_psymtabs_to_index): Likewise. | |
2687 | (save_gdb_index_command): Likewise. | |
2688 | (_initialize_dwarf2_read): Install "save gdb-index" | |
2689 | command. | |
2690 | (create_all_comp_units): Initialize 'objfile' field of CU. | |
2691 | (dwarf2_locate_sections): Check for .gdb_index. | |
2692 | * psymtab.h (dwarf2_gdb_index_functions): Declare. | |
2693 | * symfile.h (dwarf2_initialize_objfile): Declare. | |
2694 | ||
58b6ab13 TT |
2695 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2696 | ||
2697 | * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook. | |
2698 | (basic_lookup_transparent_type): Likewise. | |
2699 | * symfile.h (struct quick_symbol_functions) | |
2700 | <pre_expand_symtabs_matching>: New field. | |
2701 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function. | |
2702 | (psym_functions): Update. | |
2703 | ||
0f5238ed TT |
2704 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2705 | ||
2706 | PR breakpoints/8357: | |
2707 | * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment. | |
2708 | * linespec.c (decode_line_1): Update comment. Call decode_label. | |
2709 | (decode_label): New function. | |
2710 | (symbol_found): Handle LOC_LABEL. | |
2711 | * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and | |
2712 | domain. Call add_symbol_to_list. | |
2713 | ||
9aa1f1e3 TT |
2714 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
2715 | ||
2716 | * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare. | |
2717 | * dwarf2loc.c (find_location_expression): Use | |
2718 | dwarf2_per_cu_text_offset. | |
2719 | (dwarf2_evaluate_loc_desc): Likewise. | |
2720 | (dwarf2_loc_desc_needs_frame): Likewise. | |
2721 | (compile_dwarf_to_ax): Likewise. | |
2722 | (loclist_describe_location): Likewise. | |
2723 | * dwarf2read.c (dwarf2_per_cu_text_offset): New function. | |
2724 | (dwarf2_per_cu_objfile): Update comment. | |
2725 | ||
953ac07e JK |
2726 | 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
2727 | ||
2728 | * dwarf2read.c (read_subrange_type): Call read_subrange_type. | |
2729 | * p-lang.c (pascal_printstr): Likewise. | |
2730 | ||
f04e4012 TT |
2731 | 2010-07-09 Tom Tromey <tromey@redhat.com> |
2732 | ||
2733 | * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use | |
2734 | 'hint' if it is NULL. | |
2735 | ||
f4dfd9c0 HZ |
2736 | 2010-07-09 Hui Zhu <teawater@gmail.com> |
2737 | ||
2738 | * source.c (print_source_lines_base): Add check for noprint. | |
2739 | ||
7e6e39e5 JB |
2740 | 2010-07-08 Joel Brobecker <brobecker@adacore.com> |
2741 | ||
2742 | * python/python-config.py: Resync with Python 2.7 version of this | |
2743 | script. | |
2744 | ||
76b8507d JB |
2745 | 2010-07-08 Joel Brobecker <brobecker@adacore.com> |
2746 | ||
2747 | * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2). | |
2748 | ||
797054e6 JB |
2749 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
2750 | ||
2751 | * NEWS: Create a new section for the next release branch. | |
2752 | Rename the section of the current branch, now that it has | |
2753 | been cut. | |
2754 | ||
c80befee | 2755 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
2756 | ||
2757 | GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC) | |
2758 | * version.in: Bump version to 7.2.50.20100707-cvs. | |
2759 | ||
ac56253d TT |
2760 | 2010-07-07 Tom Tromey <tromey@redhat.com> |
2761 | ||
2762 | * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a | |
2763 | LOC_COMPUTED symbol. | |
2764 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field. | |
2765 | (dwarf2_loc_desc_needs_frame): Likewise. | |
2766 | (compile_dwarf_to_ax) <DW_OP_addr>: Use offset. | |
2767 | * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field. | |
2768 | * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset. | |
2769 | * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add | |
2770 | 'offset' argument. | |
2771 | (struct dwarf2_frame_cache) <text_offset>: New field. | |
2772 | (dwarf2_frame_cache): Set new field. | |
2773 | (dwarf2_frame_prev_register): Update. | |
2774 | (dwarf2_frame_sniffer): Update. | |
2775 | (dwarf2_frame_base_sniffer): Update. | |
2776 | (dwarf2_frame_find_fde): Add 'out_offset' argument. | |
2777 | ||
0cf6dd15 TJB |
2778 | 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
2779 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
2780 | ||
2781 | Support for hw accelerated condition watchpoints in booke powerpc. | |
2782 | ||
2783 | * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value | |
2784 | and move to eval.c. Change callers. | |
2785 | (insert_bp_location): Pass watchpoint condition in | |
2786 | target_insert_watchpoint. | |
2787 | (remove_breakpoint_1) Pass watchpoint condition in | |
2788 | target_remove_watchpoint. | |
2789 | (watchpoint_locations_match): Call | |
2790 | target_can_accel_watchpoint_condition. | |
2791 | * eval.c: Include wrapper.h. | |
2792 | (fetch_subexp_value): Moved from breakpoint.c. | |
2793 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): | |
2794 | Formatting fix. | |
2795 | (can_use_watchpoint_cond_accel): New function. | |
2796 | (calculate_dvc): Likewise. | |
2797 | (num_memory_accesses): Likewise. | |
2798 | (check_condition): Likewise. | |
2799 | (ppc_linux_can_accel_watchpoint_condition): Likewise | |
2800 | (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel, | |
2801 | check_condition and calculate_dvc. | |
2802 | (ppc_linux_remove_watchpoint): Likewise. | |
2803 | (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to | |
2804 | ppc_linux_can_accel_watchpoint_condition | |
2805 | * target.c (debug_to_insert_watchpoint): Add argument for watchpoint | |
2806 | condition. | |
2807 | (debug_to_remove_watchpoint): Likewise. | |
2808 | (debug_to_can_accel_watchpoint_condition): New function. | |
2809 | (update_current_target): Set to_can_accel_watchpoint_condition. | |
2810 | (setup_target_debug): Set to_can_accel_watchpoint_condition. | |
2811 | * target.h: Add opaque declaration for struct expression. | |
2812 | (struct target_ops) <to_insert_watchpoint>, | |
2813 | <to_remove_watchpoint>: Add new arguments to pass the watchpoint | |
2814 | <to_can_accel_watchpoint_condition>: New member. | |
2815 | condition. Update all callers and implementations. | |
2816 | (target_can_accel_watchpoint_condition): New macro. | |
2817 | * value.c (free_value_chain): New function. | |
2818 | * value.h (fetch_subexp_value): New prototype. | |
2819 | (free_value_chain): Likewise. | |
2820 | ||
2f2241f1 UW |
2821 | 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com> |
2822 | ||
2823 | * linux-nat.c (linux_nat_do_thread_registers): Use section size | |
2824 | from gdbarch_core_regset_sections also for .reg if present. | |
2825 | ||
2826 | * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect | |
2827 | section size for .reg. | |
2828 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
2829 | (ppc_linux_vmx_regset_sections): Likewise. | |
2830 | (ppc_linux_fp_regset_sections): Likewise. | |
2831 | (ppc64_linux_vsx_regset_sections): New variable. | |
2832 | (ppc64_linux_vmx_regset_sections): Likewise. | |
2833 | (ppc64_linux_fp_regset_sections): Likewise. | |
2834 | (ppc_linux_init_abi): Install core_regset_section lists appropriate | |
2835 | for current word size. | |
2836 | ||
1fd7cdc2 JB |
2837 | 2010-07-06 Joel Brobecker <brobecker@adacore.com> |
2838 | ||
2839 | * server.c (myresume): Make static. | |
2840 | ||
11763c18 TT |
2841 | 2010-07-06 Tom Tromey <tromey@redhat.com> |
2842 | ||
2843 | * configure, config.in: Rebuild. | |
2844 | * configure.ac (HAVE_LIBPYTHON2_7): New define. | |
2845 | * python/python-internal.h: Handle HAVE_LIBPYTHON2_7. | |
2846 | ||
a6cc4789 AS |
2847 | 2010-07-06 Andreas Schwab <schwab@linux-m68k.org> |
2848 | ||
2849 | * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for | |
2850 | "clear". | |
2851 | ||
f9e9243a UW |
2852 | 2010-07-06 Ken Werner <ken.werner@de.ibm.com> |
2853 | ||
2854 | * gdbtypes.h (floatformats_ieee_half): Add declaration. | |
2855 | * gdbtypes.c (floatformats_ieee_half): New variable. | |
2856 | * doublest.c (floatformat_from_length): Set format to | |
2857 | gdbarch_half_format if length matches. | |
2858 | * gdbarch.sh (half_bit): New architecture method. | |
2859 | (half_format): Likewise. | |
2860 | * gdbarch.h: Regenerate. | |
2861 | * gdbarch.c: Likewise. | |
2862 | ||
4e5799b6 JK |
2863 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2864 | Joel Brobecker <brobecker@adacore.com> | |
2865 | ||
2866 | Fix re-run of PIE executable, PR shlibs/11776. | |
2867 | * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove | |
2868 | the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS. | |
2869 | ||
86e4bafc JK |
2870 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2871 | Joel Brobecker <brobecker@adacore.com> | |
2872 | ||
2873 | * auxv.c (memory_xfer_auxv): Update attach comment. | |
2874 | * solib-svr4.c (svr4_special_symbol_handling): Remove the call to | |
2875 | svr4_relocate_main_executable. | |
2876 | (svr4_solib_create_inferior_hook): Make the call to | |
2877 | svr4_relocate_main_executable unconditional. | |
2878 | ||
3cd07d20 JK |
2879 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2880 | Joel Brobecker <brobecker@adacore.com> | |
2881 | ||
2882 | * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address. | |
2883 | ||
0a1e94c7 JK |
2884 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2885 | Joel Brobecker <brobecker@adacore.com> | |
2886 | ||
2887 | Fix attaching to PIEs prelinked on the disk after the process was | |
2888 | started. | |
2889 | * solib-svr4.c (svr4_exec_displacement): New variable arch_size. | |
2890 | Verify it against bfd_get_arch_size. Try to match arbitrary | |
2891 | displacement for the phdrs comparison. | |
2892 | ||
5387647f TT |
2893 | 2010-07-02 Tom Tromey <tromey@redhat.com> |
2894 | ||
2895 | PR exp/11780: | |
2896 | * libunwind-frame.c (libunwind_frame_prev_register): Don't set | |
2897 | value as optimized-out. | |
2898 | ||
38b6c3b3 TJB |
2899 | 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com> |
2900 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
2901 | ||
2902 | * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this | |
2903 | represent?" question in comment. Change comment to a proper sentence. | |
2904 | ||
a17ac5b0 TT |
2905 | 2010-07-02 Ken Werner <ken.werner@de.ibm.com> |
2906 | ||
2907 | * c-valprint.c (c_val_print): Fix printing of character vectors. | |
2908 | ||
bddaafad JK |
2909 | 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
2910 | ||
2911 | * spu-tdep.c (spu_catch_start): Adjust the caller of changed | |
2912 | create_breakpoint prototype. | |
2913 | ||
d41c0fc8 PA |
2914 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2915 | ||
2916 | * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify | |
2917 | usefulness suggestion of multiple breakpoints at same location. | |
2918 | ||
dc10affe PA |
2919 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2920 | ||
2921 | * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'. | |
2922 | ||
cabe9ab6 PA |
2923 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2924 | ||
2925 | * dwarf2loc.c (locexpr_tracepoint_var_ref) | |
2926 | (loclist_tracepoint_var_ref): Handle optimized out values. | |
2927 | ||
cce7e648 PA |
2928 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2929 | ||
2930 | * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove | |
2931 | unnecessary space in string. | |
2932 | * filesystem.c (_initialize_filesystem): Ditto. | |
2933 | * frame.c (_initialize_frame): Ditto. | |
2934 | * infcmd.c (step_once): Ditto. | |
2935 | * infrun.c (_initialize_infrun): Ditto. | |
2936 | * linux-nat.c (linux_child_follow_fork): Ditto. | |
2937 | * maint.c (maintenance_deprecate): Ditto. | |
2938 | * memattr.c (_initialize_mem): Ditto. | |
2939 | * mips-tdep.c (_initialize_mips_tdep): Ditto. | |
2940 | * monitor.c (monitor_open): Ditto. | |
2941 | * procfs.c (procfs_xfer_memory): Ditto. | |
2942 | * reverse.c (bookmarks_info): Ditto. | |
2943 | * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto. | |
2944 | * stack.c (_initialize_stack): Ditto. | |
2945 | * tracepoint.c (_initialize_tracepoint): Ditto. | |
2946 | * xtensa-tdep.c (xtensa_supply_gregset, | |
2947 | xtensa_regset_from_core_section): Ditto. | |
2948 | ||
b65c7efe TT |
2949 | 2010-07-01 Tom Tromey <tromey@redhat.com> |
2950 | ||
2951 | * value.h (struct lval_funcs) <check_any_valid>: Rename from | |
2952 | check_all_valid. | |
2953 | * value.c (value_entirely_optimized_out): Invert result. Update | |
2954 | for new function name. | |
2955 | ||
0fb4aa4b PA |
2956 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
2957 | ||
2958 | Static tracepoints support. | |
2959 | ||
2960 | * NEWS: Mention new support for static tracepoints. | |
2961 | (New packets): Mention qTfSTM, qTsSTM, qTSTMat and | |
2962 | qXfer:statictrace:read. | |
2963 | (New features in the GDB remote stub, GDBserver): Mention static | |
2964 | tracepoints support using an UST based backend. | |
2965 | (New commands): Mention "info static-tracepoint-markers" and | |
2966 | "strace". | |
2967 | * breakpoint.c (is_marker_spec): New. | |
2968 | (is_tracepoint): Handle static tracepoints. | |
2969 | (validate_commands_for_breakpoint): Static tracepoints can't do | |
2970 | while-stepping. | |
2971 | (static_tracepoints_here): New. | |
2972 | (bpstat_what): Handle static tracepoints. | |
2973 | (print_one_breakpoint_location, allocate_bp_location, mention): | |
2974 | Ditto. | |
2975 | (create_breakpoint_sal): Ditto. | |
2976 | (decode_static_tracepoint_spec): New. | |
2977 | (create_breakpoint): Replace `hardwareflag', and `traceflag' with | |
2978 | `type_wanted'. Adjust. Handle static tracepoint marker | |
2979 | locations. | |
2980 | (break_command_1): Adjust. | |
2981 | (update_static_tracepoint): New. | |
2982 | (update_breakpoint_locations): Handle static tracepoints. | |
2983 | (breakpoint_re_set_one): Handle static tracepoint marker | |
2984 | locations. | |
2985 | (disable_command, enable_command): Handle static tracepoints. | |
2986 | (trace_command, ftrace_command): Adjust. | |
2987 | (strace_command): New. | |
2988 | (create_tracepoint_from_upload): Adjust. | |
2989 | (save_breakpoints): Handle static tracepoints. | |
2990 | (_initialize_breakpoint): Install the "strace" command. | |
2991 | * breakpoint.h (enum bptype): New bp_static_tracepoint type. | |
2992 | (struct breakpoint): New fields static_trace_marker_id and | |
2993 | static_trace_marker_id_idx. | |
2994 | (breakpoints_here_p): Declare. | |
2995 | (create_breakpoint): Adjust. | |
2996 | (static_tracepoints_here): Declare. | |
2997 | * remote.c (struct remote_state) <static_tracepoints>: New field. | |
2998 | (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New. | |
2999 | (remote_static_tracepoint_marker_at): New. | |
3000 | (remote_static_tracepoint_markers_by_strid): New. | |
3001 | (remote_static_tracepoint_feature): New. | |
3002 | (remote_disconnected_tracing_feature): Handle "StaticTracepoints". | |
3003 | (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA. | |
3004 | (remote_supports_static_tracepoints): New. | |
3005 | (remote_download_tracepoint): Download static tracepoints. | |
3006 | (init_remote_ops): Install remote_static_tracepoint_marker_at and | |
3007 | remote_static_tracepoint_markers_by_strid. | |
3008 | (_initialize_remote): Install set|show remote static-tracepoints, | |
3009 | and set|show remote read-sdata-object commands. | |
3010 | * target.c (update_current_target): Inherit and default | |
3011 | to_static_tracepoint_marker_at, and | |
3012 | to_static_tracepoint_markers_by_strid. | |
3013 | * target.h (static_tracepoint_marker): Forward declare. | |
3014 | (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA. | |
889bf7c5 | 3015 | (static_tracepoint_marker_p): New typedef. |
0fb4aa4b PA |
3016 | (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type. |
3017 | (struct target_ops): New fields to_static_tracepoint_marker_at and | |
3018 | to_static_tracepoint_markers_by_strid. | |
3019 | (target_static_tracepoint_marker_at) | |
3020 | (target_static_tracepoint_markers_by_strid): New. | |
3021 | * tracepoint.c: Include source.h. | |
3022 | (validate_actionline): Handle $_sdata. | |
3023 | (struct collection_list): New field strace_data. | |
3024 | (add_static_trace_data): New. | |
3025 | (clear_collection_list): Clear strace_data. | |
3026 | (stringify_collection_list): Account for a possible static trace | |
3027 | data collection. | |
3028 | (encode_actions_1): Encode an $_sdata collection. | |
3029 | (parse_tracepoint_definition): Handle static tracepoints. | |
3030 | (parse_static_tracepoint_marker_definition): New. | |
3031 | (release_static_tracepoint_marker): New. | |
3032 | (print_one_static_tracepoint_marker): New. | |
3033 | (info_static_tracepoint_markers_command): New. | |
3034 | (sdata_make_value): New. | |
3035 | (_initialize_tracepoint): Create the $_sdata convenience variable. | |
3036 | Add the "info static-tracepoint-markers" command. | |
3037 | Mention $_sdata in the "collect" command's help output. | |
3038 | * tracepoint.h (struct static_tracepoint_marker): New. | |
3039 | (parse_static_tracepoint_marker_definition) | |
3040 | (release_static_tracepoint_marker): Declare. | |
3041 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust. | |
3042 | * python/py-breakpoint.c (bppy_new): Adjust. | |
3043 | ||
aac63f0f JB |
3044 | 2010-06-30 Joel Brobecker <brobecker@adacore.com> |
3045 | ||
3046 | * python/python-internal.h (_XOPEN_SOURCE): Undefine before | |
3047 | including Python.h. | |
3048 | ||
e68994a7 DE |
3049 | 2010-06-29 Doug Evans <dje@google.com> |
3050 | ||
3863f96c DE |
3051 | PR gdb/11702 |
3052 | * dwarf2read.c (dwarf2_add_field): Only create a symbol if | |
3053 | DW_AT_external is present. | |
3054 | ||
254e6b9e DE |
3055 | PR gdb/11702 |
3056 | * NEWS: Add entry. | |
3057 | * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present, | |
3058 | create a symbol for the field and record the value. | |
3059 | (new_symbol): Handle DW_TAG_member. | |
3060 | * gdbtypes.c (field_is_static): Remove FIXME. | |
3061 | * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN, | |
3062 | only ignore LOC_CONST symbols that are enums. | |
3063 | ||
6e70227d DE |
3064 | * dwarf2read.c: Remove trailing whitespace. |
3065 | ||
e68994a7 DE |
3066 | Delete FIELD_LOC_KIND_DWARF_BLOCK, unused. |
3067 | * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK. | |
3068 | (struct main_type, field loc): Delete dwarf_block. | |
3069 | (FIELD_DWARF_BLOCK): Delete. | |
3070 | (SET_FIELD_DWARF_BLOCK): Delete. | |
3071 | (TYPE_FIELD_DWARF_BLOCK): Delete. | |
3072 | * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img): | |
3073 | Update. | |
3074 | ||
a480d2f6 HZ |
3075 | 2010-06-29 Hui Zhu <teawater@gmail.com> |
3076 | ||
3077 | * record.c (set_record_pic_cmdlist, | |
3078 | show_record_pic_cmdlist): New variables. | |
3079 | (set_record_pic_command, | |
3080 | show_record_pic_command): New functions. | |
3081 | (record_pic_function, record_pic_line, record_pic_enum, | |
3082 | set_record_pic_type, record_pic_hide_nofunction, | |
3083 | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
3084 | (record_pic_fputs): New function. | |
3085 | (function_list, node_list, edge_list): New struct. | |
3086 | (function_list, node_list, edge_list): New variables. | |
3087 | (record_pic_cleanups, record_pic_node, | |
3088 | record_pic_edge, cmd_record_pic): New functions. | |
3089 | (_initialize_record): Add new commands for record pic. | |
3090 | ||
a0d7a4ff JK |
3091 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3092 | ||
3093 | * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call | |
3094 | ALLOCATE_CPLUS_STRUCT_TYPE. | |
3095 | ||
595939de | 3096 | 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> |
889bf7c5 PA |
3097 | Tom Tromey <tromey@redhat.com> |
3098 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
595939de PM |
3099 | |
3100 | * value.c (pack_unsigned_long): New function. | |
3101 | (value_from_ulongest): New function. | |
3102 | * value.h (value_from_ulongest): Declare. | |
3103 | * python/python.c (_initialize_python): Call | |
3104 | gdbpy_initialize_thread and gdbpy_initialize_inferior. | |
3105 | * python/python-internal.h: Define thread_object. | |
3106 | (gdbpy_inferiors, gdbpy_selected_thread) | |
3107 | (frame_info_to_frame_object, create_thread_object) | |
3108 | (find_thread_object, find_inferior_object) | |
3109 | (gdbpy_initialize_thread, gdbpy_initialize_inferiors) | |
3110 | (gdbpy_is_value_object, get_addr_from_python): Declare. | |
3111 | * python/py-value.c (builtin_type_upylong): Define. | |
3112 | (convert_value_from_python): Add logic for ulongest. | |
3113 | (gdbpy_is_value_object): New function. | |
3114 | * python/py-utils.c (get_addr_from_python): New function. | |
3115 | * python/py-frame.c (frame_info_to_frame_object): Return a PyObject. | |
3116 | (gdbpy_selected_frame): Use PyObject over frame_info. | |
3117 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and | |
3118 | py-infthread. | |
3119 | (SUBDIR_PYTHON_SRCS): Likewise. | |
3120 | (py-inferior.o): New Rule. | |
3121 | (py-infthread.o): New Rule. | |
3122 | * python/py-inferior.c: New File. | |
3123 | * python/py-infthread.c: New File. | |
3124 | ||
98751a41 JK |
3125 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3126 | ||
3127 | * c-typeprint.c (c_type_print_base): For no fields check include also | |
3128 | TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section. | |
3129 | * dwarf2read.c (struct typedef_field_list) | |
3130 | (struct field_info) <typedef_field_list, typedef_field_list_count>: New. | |
3131 | (dwarf2_add_typedef): New. | |
3132 | (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef. | |
3133 | Copy also FI.TYPEDEF_FIELD_LIST. | |
3134 | * gdbtypes.h (struct typedef_field) | |
3135 | (struct cplus_struct_type) <typedef_field, typedef_field_count> | |
3136 | (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME) | |
3137 | (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New. | |
3138 | ||
41f62f39 JK |
3139 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3140 | ||
3141 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
3142 | concatenated_name. Turn the current return condition into a reverse | |
3143 | one. Call also lookup_static_symbol_aux on the constructed qualified | |
3144 | name. | |
3145 | * symtab.c (lookup_symbol_aux): Move variable objfile and searching in | |
3146 | other files into a called ... | |
3147 | (lookup_static_symbol_aux): ... new function here. | |
3148 | * symtab.h (lookup_static_symbol_aux): New prototype. | |
3149 | * valops.c (value_maybe_namespace_elt): Call also | |
3150 | lookup_static_symbol_aux if we failed otherwise. | |
3151 | ||
af53d231 JK |
3152 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3153 | ||
3154 | Fix PR c++/11703 and PR gdb/1448. | |
3155 | * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add | |
3156 | FIRST_ITER check. | |
3157 | ||
9655fd1a JK |
3158 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3159 | ||
3160 | Fix modification of cplus_struct_default. | |
3161 | * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>: | |
3162 | Call ALLOCATE_CPLUS_STRUCT_TYPE. | |
3163 | * gdbtypes.c (cplus_struct_default): New empty initializer, comment it. | |
3164 | ||
9279c692 JB |
3165 | 2010-06-28 Joel Brobecker <brobecker@adacore.com> |
3166 | ||
3167 | * NEWS: Add entry announcing the python directory. | |
3168 | ||
d3f41bb1 TT |
3169 | 2010-06-28 Tom Tromey <tromey@redhat.com> |
3170 | ||
3171 | * dwarf2read.c (read_structure_type): Allocate null cleanup later. | |
3172 | ||
23e7acfb DE |
3173 | 2010-06-28 Doug Evans <dje@google.com> |
3174 | ||
3175 | * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused. | |
3176 | All callers updated. | |
3177 | ||
6036c742 JK |
3178 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3179 | ||
3180 | * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call | |
3181 | obstack_begin after each obstack_free. | |
3182 | ||
9f18a3b3 DE |
3183 | 2010-06-27 Doug Evans <dje@google.com> |
3184 | ||
1596cb5d DE |
3185 | * value.c (value_static_field): Use `switch' instead of `if'. |
3186 | Assert-fail if passed invalid TYPE_FIELD_LOC_KIND. | |
3187 | ||
9f18a3b3 DE |
3188 | * valops.c (search_struct_field): Fix typo in error message. |
3189 | ||
43dabe42 UW |
3190 | 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com> |
3191 | ||
3192 | * dwarf2expr.c (execute_stack_op): Place preprocessor | |
3193 | directives at the start of the source line. | |
3194 | ||
0f3bb72e PH |
3195 | 2010-06-25 Paul Hilfinger <hilfinger@adacore.com> |
3196 | ||
6036c742 JK |
3197 | * defs.h (make_command_stats_cleanup): Declare. |
3198 | (set_display_time): Declare. | |
3199 | (set_display_space): Declare. | |
3200 | * event-top.c (command_handler): Use make_command_stats_cleanup. | |
3201 | * main.c (display_time, display_space): Move definitions to utils.c. | |
3202 | (captured_main): Use make_command_stats_cleanup to get start-up | |
3203 | statistics. | |
3204 | Use set_display_time and set_display_space for processing OPT_STATISTICS | |
3205 | case. | |
3206 | * maint.c (maintenance_time_display): Use set_display_time. | |
3207 | (maintenance_space_display): Use set_display_space. | |
3208 | * top.c (execute_command): Remove obsolete 'maint time' code. | |
3209 | (command_loop): Use make_command_stats_cleanup. | |
3210 | * utils.c (struct cmd_stats): Structure for storing initial time | |
3211 | and space usage. | |
3212 | (display_time, display_space): Move definitions here from utils.c. | |
3213 | (set_display_time): New function. | |
3214 | (set_display_space): New function. | |
3215 | (make_command_stats_cleanup): New function. | |
3216 | (report_command_stats): New auxiliary function for | |
3217 | make_command_stats_cleanup. | |
0f3bb72e | 3218 | |
070c8028 UW |
3219 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3220 | ||
3221 | * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for | |
3222 | hosts where CORE_ADDR is long long. | |
3223 | ||
bc9f0842 TT |
3224 | 2010-06-25 Tom Tromey <tromey@redhat.com> |
3225 | ||
3226 | PR python/10808: | |
3227 | * python/python.c (execute_gdb_command): Add keywords. Accept | |
3228 | "to_string" argument. | |
3229 | (struct restore_ui_file_closure): New. | |
3230 | (restore_ui_file): New function. | |
3231 | (make_cleanup_restore_ui_file): Likewise. | |
3232 | (GdbMethods) <execute>: Update. | |
3233 | ||
c0cc4c83 UW |
3234 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3235 | ||
3236 | * s390-tdep.c (s390_push_dummy_call): Error on stack overflow | |
3237 | during inferior call stack frame setup. | |
3238 | ||
f1d8ee66 UW |
3239 | 2010-06-25 Ken Werner <ken.werner@de.ibm.com> |
3240 | ||
3241 | * solib-spu.c: Include "exception.h". | |
3242 | (ocl_program_data_key): New variable. | |
3243 | (append_ocl_sos): New function. | |
3244 | (ocl_enable_break): Likewise. | |
3245 | (spu_current_sos): Call append_ocl_sos. | |
3246 | (spu_solib_loaded): Call ocl_enable_break. | |
3247 | (_initialize_spu_solib): Register ocl_program_data_key. | |
3248 | ||
19c0c0f8 UW |
3249 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3250 | ||
3251 | * cp-support.c (reset_directive_searched): New function. | |
3252 | (make_symbol_overload_list_using): Prevent recursive calls. | |
3253 | ||
0f6a939d PM |
3254 | 2010-06-25 Phil Muldoon <pmuldoon@redhat.com> |
3255 | ||
3256 | * printcmd.c (print_variable_and_value): Print error message on | |
3257 | caught exception. | |
3258 | ||
f2c7657e UW |
3259 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3260 | ||
3261 | * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type | |
3262 | of stack values. | |
3263 | (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new | |
3264 | "value" member. | |
3265 | (dwarf_expr_push): Change input type to ULONGEST. | |
3266 | (dwarf_expr_fetch): Change return type to ULONGEST. | |
3267 | (dwarf_expr_fetch_address): Add prototype. | |
3268 | (dwarf2_read_address): Remove prototype. | |
3269 | * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values. | |
3270 | Truncate stack values to ctx->addr_size bytes. | |
3271 | (dwarf_expr_fetch): Change return value to ULONGEST. | |
3272 | (dwarf_expr_fetch_address): New function. | |
3273 | (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch | |
3274 | when appropriate. Update for struct dwarf_expr_piece changes. | |
3275 | (dwarf2_read_address): Remove. | |
3276 | (unsigned_address_type): Remove. | |
3277 | (signed_address_type): Remove. | |
3278 | (execute_stack_op): Use dwarf_expr_fetch_address instead of | |
3279 | dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack | |
3280 | values. Perform operations on ULONGEST instead of on GDB values, | |
3281 | sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr | |
3282 | values and DW_OP_deref results as unsigned integers. | |
3283 | * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece | |
3284 | changes. | |
3285 | (write_pieced_value): Likewise. | |
3286 | (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of | |
3287 | dwarf_expr_fetch when appropriate. | |
3288 | (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers. | |
3289 | * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address | |
3290 | instead of dwarf_expr_fetch when appropriate. | |
3291 | ||
b1d61bc9 PM |
3292 | 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr> |
3293 | ||
3294 | * c-typeprint.c (c_print_typedef): Append new type name for typedefs. | |
3295 | ||
b14285f6 JB |
3296 | 2010-06-24 Joel Brobecker <brobecker@adacore.com> |
3297 | ||
3298 | * python/python.c (_initialize_python): Add new "constant" | |
3299 | PYTHONDIR in gdb module. Insert this path at the head of | |
3300 | sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and | |
3301 | exec its __init__.py script if it exists in that directory. | |
3302 | ||
fd60dc69 KB |
3303 | 2010-06-24 Kevin Buettner <kevinb@redhat.com> |
3304 | ||
3305 | * rx-tdep.c (RX_ACC_REGNUM): Define. | |
3306 | (RX_NUM_REGS): Redefine to 26. | |
3307 | (rx_register_name): Add register "acc". Change order of several | |
3308 | registers. Change name of "vct" register to "fintv" to match RX | |
3309 | documentation. | |
3310 | (rx_register_type): Add case for RX_ACC_REGNUM. | |
3311 | ||
18430289 TT |
3312 | 2010-06-24 Tom Tromey <tromey@redhat.com> |
3313 | ||
3314 | * psymtab.c (lookup_partial_symbol): Mark definition as static. | |
3315 | ||
40618926 JK |
3316 | 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
3317 | Tom Tromey <tromey@redhat.com> | |
3318 | ||
3319 | Fix GDB startup on readonly filesystem. | |
3320 | * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init. | |
3321 | ||
628fe4e4 JK |
3322 | 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
3323 | Pedro Alves <pedro@codesourcery.com> | |
3324 | ||
3325 | Fix PR 9436. | |
3326 | * breakpoint.c (handle_jit_event): New function. | |
3327 | (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl, | |
3328 | jit, err, table and bs_class. New variables shlib_event, jit_event, | |
3329 | this_action and bptype. Change bs_class assignments to this_action | |
3330 | assignments. new unhandled bptype internal error. Move here | |
3331 | shlib_event and jit_event handling from handle_inferior_event. | |
3332 | * breakpoint.h (enum bpstat_what_main_action): Extend the comment. | |
3333 | Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and | |
3334 | BPSTAT_WHAT_CHECK_JIT. | |
3335 | * inferior.h (debug_infrun, stop_on_solib_events): New declarations. | |
3336 | * infrun.c (debug_infrun, stop_on_solib_events): Remove static. | |
3337 | (handle_inferior_event): Reinitialize frame and gdbarch after | |
3338 | bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and | |
3339 | BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even | |
3340 | gdbarch when frame gets reinitialized. | |
3341 | ||
f1421989 HZ |
3342 | 2010-06-24 Hui Zhu <teawater@gmail.com> |
3343 | ||
3344 | * printcmd.c (ui_printf): New function. | |
3345 | (printf_command): Call ui_printf. | |
3346 | (_initialize_printcmd): New command "eval". | |
3347 | ||
d03285ec UW |
3348 | 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com> |
3349 | ||
3350 | * infrun.c (handle_inferior_event): Handle presence of single-step | |
3351 | breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED. | |
3352 | Cancel single-step breakpoints for TARGET_WAITKIND_EXITED, | |
3353 | TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD. | |
3354 | * breakpoint.c (detach_single_step_breakpoints): New function. | |
3355 | (detach_breakpoints): Call it. | |
3356 | (cancel_single_step_breakpoints): New function. | |
3357 | * breakpoint.h (cancel_single_step_breakpoints): Add prototype. | |
3358 | ||
3359 | * spu-tdep.c (spu_memory_remove_breakpoint): New function. | |
3360 | (spu_gdbarch_init): Install it. | |
3361 | ||
38f6b338 JK |
3362 | 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
3363 | ||
3364 | * configure.ac: Always set RDYNAMIC at least as `-rdynamic'. | |
3365 | * configure: Regenerate. | |
3366 | ||
bb08c432 HZ |
3367 | 2010-06-22 Hui Zhu <teawater@gmail.com> |
3368 | ||
3369 | * i386-tdep.c (i386_record_lea_modrm): Change warning to query. | |
3370 | (i386_process_record): Ditto. | |
3371 | * record.c (record_memory_query): New variable. | |
3372 | (_initialize_record): New command "set record memory-query". | |
3373 | * record.h (record_memory_query): New extern. | |
3374 | ||
b55078be DE |
3375 | 2010-06-21 Doug Evans <dje@google.com> |
3376 | ||
3377 | * i386-tdep.h (i386_displaced_step_copy_insn): Declare. | |
3378 | * i386-tdep.c (i386_displaced_step_copy_insn): New function. | |
3379 | (i386_syscall_p): Change type of lengthp to int. | |
3380 | (i386_displaced_step_fixup): Handle kernels that run one past a | |
3381 | syscall insn. | |
3382 | * i386-linux-tdep.c (i386_linux_init_abi): Use | |
3383 | i386_displaced_step_copy_insn instead of | |
3384 | simple_displaced_step_copy_insn. | |
3385 | ||
75079b2b TT |
3386 | 2010-06-21 Tom Tromey <tromey@redhat.com> |
3387 | ||
3388 | * dwarf2read.c (read_base_type): Handle DW_ATE_UTF. | |
3389 | (dwarf_type_encoding_name): Likewise. | |
3390 | ||
b00fdb78 TT |
3391 | 2010-06-21 Tom Tromey <tromey@redhat.com> |
3392 | ||
3393 | * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME. | |
3394 | * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME. | |
3395 | * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME. | |
3396 | * gdbtypes.h (TYPE_ERROR_NAME): New macro. | |
3397 | * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME. | |
3398 | * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME. | |
3399 | * dwarf2read.c (tag_type_to_type): Create a new error type on | |
3400 | failure. | |
3401 | * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME. | |
3402 | * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME. | |
3403 | ||
84951ab5 MS |
3404 | 2010-06-21 Michael Snyder <msnyder@vmware.com> |
3405 | ||
889bf7c5 | 3406 | * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd, |
84951ab5 MS |
3407 | not add_abbrev_prefix_cmd, for "enable breakpoints". |
3408 | ||
d4a087c7 UW |
3409 | 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com> |
3410 | ||
3411 | * dwarf2loc.c (find_location_expression): Add relocation offset | |
3412 | to base-address-selection entry base addresses. Read addresses | |
3413 | (and offsets) as signed/unsigned integers, depending on the | |
3414 | BFD's sign_extend_vma flag. Do not call dwarf2_read_address. | |
3415 | (loclist_describe_location): Likewise. | |
3416 | (disassemble_dwarf_expression): Read DW_OP_addr operand as | |
3417 | unsigned integer. Do not call dwarf2_read_address. | |
3418 | (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address. | |
3419 | ||
13def385 UW |
3420 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
3421 | ||
3422 | * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register | |
3423 | value instead of hard-coded SPU_LS_SIZE. | |
3424 | (spu_software_single_step): Likewise. | |
3425 | * spu-tdep.h (SPU_LS_SIZE): Remove. | |
3426 | ||
d2ed6730 UW |
3427 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
3428 | ||
3429 | * spu-multiarch.c (spu_xfer_partial): Wrap around local store | |
3430 | limit on local store memory accesses. | |
3431 | * spu-linux-nat.c (spu_xfer_partial): Likewise. | |
3432 | * spu-tdep.c (spu_lslr): Remove. | |
3433 | (spu_pointer_to_address): Do not truncate addresses. | |
3434 | (spu_integer_to_address): Likewise. | |
3435 | (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA. | |
3436 | * spu-tdep.h: Add comments. | |
3437 | (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit. | |
3438 | (SPU_OVERLAY_LMA): Define. | |
3439 | ||
6aed2dbc SS |
3440 | 2010-06-18 Stan Shebs <stan@codesourcery.com> |
3441 | ||
a61408f8 SS |
3442 | * osdata.c (get_osdata): Warn separately if target does not report |
3443 | type list. | |
3444 | (info_osdata_command): Allow empty type, report error if target | |
3445 | does not return available types of OS data. | |
3446 | * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data | |
3447 | types if no annex supplied. | |
3448 | ||
6aed2dbc SS |
3449 | * thread.c (thread_id_make_value): Make a value representing the |
3450 | current thread. | |
3451 | (_initialize_thread): Create $_thread. | |
3452 | ||
ec61707d JB |
3453 | 2010-06-17 Joel Brobecker <brobecker@adacore.com> |
3454 | ||
3455 | * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after | |
3456 | last local variable declaration. No real code change. | |
3457 | ||
60606b2c TT |
3458 | 2010-06-17 Tom Tromey <tromey@redhat.com> |
3459 | ||
3460 | * dwarf2read.c (psymtabs_addrmap_cleanup): New function. | |
3461 | (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a | |
3462 | temporary obstack. | |
3463 | ||
65d79d4b SDJ |
3464 | 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com> |
3465 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
3466 | ||
3467 | * breakpoint.c: Include parser-defs.h. | |
3468 | (watchpoint_exp_is_const): New function. | |
3469 | (watch_command_1): Call watchpoint_exp_is_const to check | |
3470 | if the expression is constant. | |
3471 | ||
0407b3f1 AS |
3472 | 2010-06-15 Andreas Schwab <schwab@linux-m68k.org> |
3473 | ||
3474 | * configure.ac: Check for RDYNAMIC also for cross builds. | |
3475 | * configure: Regenerate. | |
3476 | ||
98d64339 PA |
3477 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
3478 | ||
3479 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
3480 | (SFILES): Remove solib-null.c, add solib-target.c. | |
3481 | (COMMON_OBS): Remove solib-null.o, add solib-target.o. | |
3482 | (ALLDEPFILES): Remove solib-target.c. | |
3483 | * solib-target.c (_initialize_solib_target): Set | |
3484 | current_target_so_ops to solib_target_so_ops if not already set. | |
3485 | * solib-null.c: Delete. | |
3486 | ||
6a271cae PA |
3487 | 2010-06-14 Pedro Alves <pedro@codesourcery.com> |
3488 | ||
3489 | * NEWS: Mention GDBserver's JIT compilation of tracepoint | |
3490 | bytecode. | |
3491 | ||
1e9beacb UW |
3492 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
3493 | ||
3494 | * cp-valprint.c (cp_print_static_field): Members of | |
3495 | dont_print_stat_array_obstack are of type "struct type *". | |
3496 | (_initialize_cp_valprint): Likewise. | |
3497 | ||
21a176fb UW |
3498 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
3499 | ||
3500 | * frame.c (frame_register_unwind): Do not access contents | |
3501 | of "optimized out" unwound register value. | |
3502 | ||
25b524e8 JK |
3503 | 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
3504 | ||
3505 | * ada-lang.h (ada_print_type): Make varstring const. | |
3506 | * ada-typeprint.c (print_func_type): Make name const. | |
3507 | (ada_print_type): Make varstring const. | |
3508 | * c-lang.h (c_print_type): Make varstring const. | |
3509 | * c-typeprint.c (c_print_type): Likewise. | |
3510 | * f-lang.h (f_print_type): Likewise. | |
3511 | * f-typeprint.c (f_print_type): Likewise. | |
3512 | * jv-lang.h (java_print_type): Likewise. | |
3513 | * jv-typeprint.c (java_print_type): Likewise. | |
3514 | * language.c (unk_lang_print_type): Likewise. | |
3515 | * language.h (struct language_defn) <la_print_type>: Likewise. | |
3516 | * m2-lang.h (m2_print_type): Likewise. | |
3517 | * m2-typeprint.c (m2_print_type): Likewise. | |
3518 | * p-lang.h (pascal_print_type): Likewise. | |
3519 | * p-typeprint.c (pascal_print_type): Likewise. | |
3520 | ||
d914c394 SS |
3521 | 2010-06-11 Stan Shebs <stan@codesourcery.com> |
3522 | ||
3523 | Add per-operation permission flags. | |
3524 | ||
3525 | * target.h (struct target_ops): New method to_set_permissions. | |
3526 | (target_set_permissions): New macro. | |
3527 | (target_insert_breakpoint): Change macro to function. | |
3528 | (target_remove_breakpoint): Ditto. | |
3529 | (target_stop): Ditto. | |
3530 | (may_write_registers): Declare. | |
3531 | (may_write_memory): Declare. | |
3532 | (may_insert_breakpoints): Declare. | |
3533 | (may_insert_tracepoints): Declare. | |
3534 | (may_insert_fast_tracepoints): Declare. | |
3535 | (may_stop): Declare. | |
3536 | * target.c (may_write_registers, may_write_registers_1): New globals. | |
3537 | (may_write_memory, may_write_memory_1): New globals. | |
3538 | (may_insert_breakpoints, may_insert_breakpoints_1): New globals. | |
3539 | (may_insert_tracepoints, may_insert_tracepoints_1): New globals. | |
3540 | (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New | |
3541 | globals. | |
3542 | (may_stop, may_stop_1): New global. | |
3543 | (target_xfer_partial): Test for write permission. | |
3544 | (target_store_registers): Ditto. | |
3545 | (target_insert_breakpoint): New function. | |
3546 | (target_remove_breakpoint): New function. | |
3547 | (target_stop): New function. | |
3548 | (_initialize_targets): Add new set/show variables. | |
3549 | (set_write_memory_permission): New function. | |
3550 | (update_target_permissions): New function. | |
3551 | (set_target_permissions): New function. | |
3552 | (update_current_target): Default to_set_permissions. | |
3553 | (_initialize_targets): Use new globals and setter function. | |
3554 | * tracepoint.c (start_tracing): Test for permission. | |
3555 | * inferior.h (update_observer_mode): Declare. | |
3556 | * infrun.c (non_stop_1): Define earlier. | |
3557 | (observer_mode, observer_mode_1): New globals. | |
3558 | (set_observer_mode, show_observer_mode): New functions. | |
3559 | (update_observer_mode): New function. | |
3560 | (_initialize_infrun): Define "set observer" command. | |
3561 | * remote.c (PACKET_QAllow): New optional packet. | |
3562 | (remote_protocol_features): Add QAllow. | |
3563 | (remote_set_permissions): New function. | |
3564 | (remote_start_remote): Call it. | |
3565 | (init_remote_ops): Add it to target vector. | |
3566 | (_initialize_remote): Add config command for QAllow. | |
3567 | ||
aec5aa8b TT |
3568 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
3569 | ||
3570 | * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of | |
3571 | DW_AT_vtable_elem_location even when GCC extension is seen. | |
3572 | ||
0e03807e TT |
3573 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
3574 | ||
3575 | PR gdb/9977, PR exp/11636: | |
3576 | * value.h (value_offset): Update. | |
3577 | (struct lval_funcs) <check_validity>: New field. | |
3578 | <copy_closure>: Make argument const. | |
3579 | (value_computed_closure): Update. | |
3580 | (value_contents_for_printing): Declare. | |
3581 | (value_bits_valid): Likewise. | |
3582 | (val_print): Likewise. | |
3583 | (set_value_component_location): Update. | |
3584 | (value_entirely_optimized_out): Declare. | |
3585 | * value.c (value_offset): Argument now const. | |
3586 | (require_not_optimized_out): New function. | |
3587 | (value_contents_for_printing): New function. | |
3588 | (value_contents_all): Call require_not_optimized_out. | |
3589 | (value_contents): Likewise. | |
3590 | (value_bits_valid): New function. | |
3591 | (value_computed_closure): Argument now const. | |
3592 | (set_value_component_location): Make 'whole' argument const. | |
3593 | (value_entirely_optimized_out): New function. | |
3594 | (value_bitsize): Argument now 'const'. | |
3595 | (value_bitpos): Likewise. | |
3596 | (value_type): Likewise. | |
3597 | * valprint.h (val_print_array_elements): Update. | |
3598 | * valprint.c (val_print): Add 'val' argument. Use | |
3599 | valprint_check_validity. | |
3600 | (valprint_check_validity): New function. | |
3601 | (value_check_printable): Use value_entirely_optimized_out. | |
3602 | (common_val_print): Update. | |
3603 | (value_print): Likewise. | |
3604 | (val_print_array_elements): Add 'val' argument. | |
3605 | * valops.c (value_fetch_lazy): Use value_contents_for_printing, | |
3606 | value_bits_valid. Reinit frame cache for lval_computed. | |
3607 | * sh64-tdep.c (sh64_do_register): Update. | |
3608 | * scm-valprint.c (scm_val_print): Add 'val' argument. | |
3609 | * scm-lang.h (scm_val_print): Update. | |
3610 | * python/python.h (apply_val_pretty_printer): Update. | |
3611 | * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val' | |
3612 | argument. Call set_value_component_location. | |
3613 | * printcmd.c (print_scalar_formatted): Update. | |
3614 | * p-valprint.c (pascal_val_print): Add 'val' argument. | |
3615 | (pascal_object_print_value_fields): Likewise. | |
3616 | (pascal_object_print_value): Likewise. | |
3617 | (pascal_object_print_static_field): Update. | |
3618 | * p-lang.h (pascal_val_print): Update. | |
3619 | (pascal_object_print_value_fields): Update. | |
3620 | * mt-tdep.c (mt_registers_info): Update. | |
3621 | * mi/mi-main.c (get_register): Update. | |
3622 | (mi_cmd_data_evaluate_expression): Use common_val_print. | |
3623 | * m2-valprint.c (m2_print_array_contents): Add 'val' argument. | |
3624 | (m2_print_unbounded_array): Likewise. | |
3625 | (m2_val_print): Likewise. | |
3626 | * m2-lang.h (m2_val_print): Update. | |
3627 | * language.h (struct language_defn) <la_val_print>: Add 'val' | |
3628 | argument. | |
3629 | (LA_VAL_PRINT): Likewise. | |
3630 | * language.c (unk_lang_val_print): Add 'val' argument. | |
3631 | * jv-valprint.c (java_print_value_fields): Add 'val' argument. | |
3632 | (java_val_print): Likewise. | |
3633 | * jv-lang.h (java_val_print): Add 'val' argument. | |
3634 | * infcmd.c (default_print_registers_info): Update. | |
3635 | * f-valprint.c (f77_print_array_1): Add 'val' argument. | |
3636 | (f77_print_array): Likewise. | |
3637 | (f_val_print): Likewise. | |
3638 | * f-lang.h (f_val_print): Add 'val' argument. | |
3639 | * dwarf2loc.c (read_pieced_value): Use value_bitsize and | |
3640 | value_bitpos. | |
3641 | <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call | |
3642 | set_value_optimized_out. | |
3643 | (write_pieced_value): Use value_bitsize and value_bitpos. | |
3644 | <default>: Don't exit loop. | |
3645 | (check_pieced_value_validity): New function. | |
3646 | (pieced_value_funcs): Reference check_pieced_value_validity, | |
3647 | check_pieced_value_invalid. | |
3648 | (copy_pieced_value_closure): Update. | |
3649 | (check_pieced_value_bits): New function. | |
3650 | (check_pieced_value_invalid): New function. | |
3651 | * d-valprint.c (dynamic_array_type): Add 'val' argument. | |
3652 | (d_val_print): Likewise. | |
3653 | * d-lang.h (d_val_print): Update. | |
3654 | * cp-valprint.c (cp_print_value_fields): Add 'val' argument. | |
3655 | (cp_print_value_fields_rtti): Likewise. | |
3656 | (cp_print_value): Likewise. | |
3657 | (cp_print_static_field): Update. | |
3658 | * c-valprint.c (c_val_print): Add 'val' argument. | |
3659 | (c_value_print): Update. | |
3660 | * c-lang.h (c_val_print): Update. | |
3661 | (cp_print_value_fields): Likewise. | |
3662 | (cp_print_value_fields_rtti): Likewise. | |
3663 | * ada-valprint.c (struct ada_val_print_args): Remove. | |
3664 | (val_print_packed_array_elements): Add 'val' argument. | |
3665 | (ada_val_print): Likewise. Rewrite. | |
3666 | (ada_val_print_stub): Remove. | |
3667 | (ada_val_print_array): Add 'val' argument. | |
3668 | (ada_val_print_1): Likewise. | |
3669 | (print_variant_part): Likewise. | |
3670 | (ada_value_print): Update. | |
3671 | (print_record): Add 'val' argument. | |
3672 | (print_field_values): Likewise. | |
3673 | * ada-lang.h (ada_val_print): Update. | |
3674 | ||
3cf03773 TT |
3675 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
3676 | ||
3677 | * vec.h (VEC_cleanup): New macro. | |
3678 | (DEF_VEC_ALLOC_FUNC_I): Update. | |
3679 | (DEF_VEC_ALLOC_FUNC_P): Likewise. | |
3680 | (DEF_VEC_ALLOC_FUNC_O): Likewise. | |
3681 | * dwarf2loc.c (struct axs_var_loc): Remove. | |
3682 | (unimplemented): New function. | |
3683 | (translate_register): Likewise. | |
3684 | (access_memory): Likewise. | |
3685 | (compile_dwarf_to_ax): Likewise. | |
3686 | (dwarf2_tracepoint_var_loc): Remove. | |
3687 | (dwarf2_tracepoint_var_access): Likewise. | |
3688 | (dwarf2_tracepoint_var_ref): Likewise. | |
3689 | (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax. | |
3690 | (loclist_tracepoint_var_ref): Likewise. | |
3691 | * dwarf2expr.h (dwarf_expr_require_composition): Declare. | |
3692 | * dwarf2expr.c (dwarf_expr_require_composition): Rename from | |
3693 | require_composition. No longer static. | |
3694 | (execute_stack_op): Update. | |
3695 | * ax-gdb.h (trace_kludge): Declare. | |
3696 | ||
2bdf28a0 JK |
3697 | 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
3698 | ||
3699 | * breakpoint.c (breakpoint_restore_shadows): New OWNER comment. | |
3700 | (should_be_inserted): Return zero also on NULL OWNER. | |
3701 | (breakpoint_program_space_exit): New OWNER comment. | |
3702 | (insert_breakpoint_locations): Extend comment for OWNER. | |
3703 | (remove_breakpoint_1, remove_breakpoint): Assert on OWNER. | |
3704 | (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match): | |
3705 | New OWNER comment. | |
3706 | (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER. | |
3707 | (watchpoint_check): New assert on BREAKPOINT_AT and OWNER. | |
3708 | (bpstat_check_location): New assert on OWNER. | |
3709 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL | |
3710 | and B initializations to the code block. New assert on them. | |
3711 | (print_one_breakpoint_location): New OWNER comment. | |
3712 | (watchpoint_locations_match): Assert on OWNER. | |
3713 | (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2 | |
3714 | initializations to the code block. New assert on OWNER. | |
3715 | (set_breakpoint_location_function): New assert on OWNER. | |
3716 | (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib) | |
3717 | (bp_location_compare, update_global_location_list) | |
3718 | (update_global_location_list): New OWNER comment. | |
3719 | ||
5b9a19af UW |
3720 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
3721 | ||
3722 | * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h | |
3723 | ||
669211f5 UW |
3724 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
3725 | ||
3726 | * config/nm-linux.h (struct target_ops): Remove forward declaration. | |
3727 | (lin_thread_get_thread_signals): Remove prototype. | |
3728 | (GET_THREAD_SIGNALS): Remove. | |
3729 | * linux-nat.h (lin_thread_get_thread_signals): Add prototype. | |
3730 | * linux-thread-db.c (check_thread_signals): Directly call | |
3731 | lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS. | |
3732 | ||
b7a8b4ef UW |
3733 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
3734 | ||
3735 | * gregset.h (GDB_FPXREGSET_T): Remove. | |
3736 | (gdb_fpxregset_t): Likewise. | |
3737 | (supply_fpxregset): Remove prototype. | |
3738 | (fill_fpxregset): Likewise. | |
3739 | * i386-linux-nat.c (supply_fpxregset): Remove. | |
3740 | (fill_fpxregset): Likewise. | |
3741 | (fetch_fpxregs): Inline supply_fpxregset call. | |
3742 | (store_fpxregs): Inline fill_fpxregset call. | |
3743 | ||
3744 | * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h. | |
3745 | * config/i386/nm-linux.h: Remove file. | |
3746 | ||
82892036 MS |
3747 | 2010-06-09 Michael Snyder <msnyder@vmware.com> |
3748 | ||
3749 | * target.c (update_current_target): Fix spelling error in comment. | |
3750 | (target_mourn_inferior): Fix spelling error in error message. | |
3751 | ||
5ddb52fa PH |
3752 | 2010-06-08 Paul Hilfinger <hilfingr@adacore.com> |
3753 | ||
3754 | * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to | |
3755 | SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments. | |
3756 | ||
0f2caa1b MS |
3757 | 2010-06-08 Michael Snyder <msnyder@vmware.com> |
3758 | ||
3759 | * remote.c (remote_close): Set inferior_ptid to null_ptid. | |
3760 | ||
3bebe2f2 JK |
3761 | 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
3762 | ||
3763 | * configure.ac <"${have_libpython}" != no>: New workaround of | |
3764 | python#4434. | |
3765 | * configure: Regenerate. | |
3766 | ||
eaaffdf4 HZ |
3767 | 2010-06-08 Hui Zhu <teawater@gmail.com> |
3768 | ||
3769 | * record.c (record_wait): Move signal out of replay code. | |
3770 | ||
5c631832 JK |
3771 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3772 | ||
3773 | Fix PR 10640. | |
3774 | * dwarf2-frame.c (no_dwarf_call): New function. | |
3775 | (execute_stack_op): Set CTX->DWARF_CALL. | |
3776 | * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New. | |
3777 | * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New. | |
3778 | (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field. | |
3779 | * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions. | |
3780 | (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL. | |
3781 | (needs_frame_dwarf_call): New function. | |
3782 | (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL. | |
3783 | * dwarf2read.c (follow_die_offset): Based on former follow_die_ref. | |
3784 | Update the comment. Move variables die, offset and error call to ... | |
3785 | (follow_die_ref): ... a new function. | |
3786 | (dwarf2_fetch_die_location_block): New function. | |
3787 | * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype. | |
3788 | ||
17ea53c3 JK |
3789 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3790 | ||
3791 | * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. | |
3792 | (dwarf_expr_tls_address): Use per_cu instead of objfile. | |
3793 | (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. | |
3794 | Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for | |
3795 | this change. | |
3796 | (struct needs_frame_baton): New field per_cu. | |
3797 | (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. | |
3798 | * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment. | |
3799 | ||
245040d7 SW |
3800 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
3801 | ||
3802 | * cp-support.c (make_symbol_overload_list_namespace): Only search | |
3803 | static and global blocks. | |
3804 | (make_symbol_overload_list_block): New function. | |
3805 | (make_symbol_overload_list): Separate namespace search from block | |
3806 | search. | |
3807 | (make_symbol_overload_list_qualified): Use | |
3808 | make_symbol_overload_list_block. | |
3809 | ||
4c3376c8 SW |
3810 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
3811 | ||
3812 | * value.h: Created oload_search_type enum. | |
3813 | (find_overload_match): Use oload_search_type enum. | |
3814 | * valops.c (find_overload_match): Support combined member and | |
3815 | non-member search. | |
3816 | * eval.c (evaluate_subexp_standard): Calls to | |
3817 | find_overload_match now use oload_search_type enum. | |
3818 | (oload_method_static): Verify index is a proper value. | |
3819 | * valarith.c (value_user_defined_cpp_op): Search for and handle | |
3820 | both member and non-member operators. | |
3821 | (value_user_defined_cpp_op): New function. | |
3822 | (value_user_defined_op): New function. | |
3823 | (value_x_unop): Use value_user_defined_op. | |
3824 | (value_x_binop): Ditto. | |
3825 | * cp-support.c (make_symbol_overload_list_using): Added block | |
3826 | iteration. | |
3827 | Add check for namespace aliases and imported declarations. | |
3828 | ||
ee55da67 JK |
3829 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3830 | ||
3831 | * breakpoint.h (owner): Extend the comment. | |
3832 | ||
1a2ab13a JK |
3833 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
3834 | ||
3835 | Clear stale specific bp_location from former whole breakpoint. | |
3836 | * breakpoint.c (delete_breakpoint): Move the stale referencing clear | |
3837 | code ... | |
3838 | (free_bp_location): ... here. Rename there the called function to | |
3839 | bpstat_remove_bp_location_callback. | |
3840 | (bpstat_remove_breakpoint_callback): Rename to ... | |
3841 | (bpstat_remove_bp_location_callback): ... here, change DATA resolution | |
3842 | to struct bp_location. Change the called function to | |
3843 | bpstat_remove_bp_location. Create new declaration for the function. | |
3844 | (bpstat_remove_breakpoint): Rename to ... | |
3845 | (bpstat_remove_bp_location): ..., change the parameter to loc, adjust | |
3846 | code for the new parameter type. | |
3847 | ||
16d6b4b7 NS |
3848 | 2010-06-07 Nathan Sidwell <nathan@codesourcery.com> |
3849 | ||
3850 | * README: Make version-agnostic. | |
3851 | ||
7e314c57 JK |
3852 | 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
3853 | ||
3854 | Fix duplicate types for single DIE. | |
3855 | * dwarf2read.c (read_structure_type): Move set_descriptive_type after | |
3856 | set_die_type. | |
3857 | (read_array_type): Remove type initialization. Recheck get_die_type | |
3858 | after initial die_type. Move set_die_type before set_descriptive_type. | |
3859 | (read_set_type): New variable domain_type. Recheck get_die_type after | |
3860 | initial die_type. Move attr initialization later. | |
3861 | (read_tag_pointer_type, read_tag_reference_type): New variable | |
3862 | target_type. Recheck get_die_type after initial die_type. | |
3863 | (read_tag_ptr_to_member_type): Recheck get_die_type after initial | |
3864 | die_type and die_containing_type. | |
3865 | (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): | |
3866 | Recheck get_die_type after initial die_type. | |
3867 | (read_subrange_type): Recheck get_die_type after initial die_type. | |
3868 | Move set_die_type before set_descriptive_type. | |
3869 | (set_die_type): Extend the function comment. Call complaint if DIE has | |
3870 | some type already set. | |
3871 | ||
2f296114 VP |
3872 | 2010-06-05 Vladimir Prus <vladimir@codesourcery.com> |
3873 | ||
3874 | * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust | |
3875 | for current naming of thread groups (iN, not N). | |
3876 | ||
554794dc SDJ |
3877 | 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com> |
3878 | ||
3879 | * ada-lang.c (ada_operator_length): Constify `struct expression'. | |
3880 | * parse.c (operator_length): Likewise. | |
3881 | (operator_length_standard): Likewise. | |
3882 | * parser-defs.h (operator_length): Likewise. | |
3883 | (operator_length_standard): Likewise. | |
3884 | (struct exp_descriptor <operator_length>): Likewise. | |
3885 | ||
967cf477 DE |
3886 | 2010-06-04 Doug Evans <dje@google.com> |
3887 | ||
bddaacb9 | 3888 | Add support for enabling/disabling individual pretty-printers. |
967cf477 DE |
3889 | * python/py-prettyprint.c (search_pp_list): Skip disabled printers. |
3890 | * python/python-internal.h (gdbpy_enabled_cst): Declare. | |
3891 | * python/python.c (gdbpy_enabled_cst): Define. | |
3892 | (_initialize_python): Initialize gdbpy_enabled_cst. | |
3893 | * NEWS: Add entry. | |
3894 | ||
2dec564e JK |
3895 | 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
3896 | ||
3897 | * breakpoint.c (update_global_location_list): Fix comment typo. | |
3898 | ||
44b5680a HZ |
3899 | 2010-06-04 Hui Zhu <teawater@gmail.com> |
3900 | ||
3901 | * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. | |
3902 | ||
e7a30f46 DE |
3903 | 2010-06-03 Doug Evans <dje@google.com> |
3904 | ||
3905 | * configure.ac: Don't fail if python is unusable when | |
3906 | configured with --with-python=auto. | |
3907 | * configure: Regenerate. | |
3908 | ||
84b4420f SW |
3909 | 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> |
3910 | ||
889bf7c5 | 3911 | * dwarf2read.c (new_symbol): Remove redundant naming of symbol. |
84b4420f | 3912 | |
df178451 PM |
3913 | 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr> |
3914 | ||
3915 | * valprint.h (get_array_bounds): Change low and high parameter types | |
3916 | to LONGEST *. | |
0407b3f1 | 3917 | * valprint.c (get_array_bounds): Use get_discrete_bounds call to |
df178451 PM |
3918 | compute bounds. |
3919 | (val_print_array_elements): Adapt to change above. | |
3920 | * ada-valprint.c (print_optional_low_bound): Adapt to change above. | |
3921 | * p-valprint.c (pascal_val_print): Likewise. | |
3922 | ||
fd5700c7 JK |
3923 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3924 | ||
3925 | * symfile.c (init_filename_language_table): New extensions .for, .FOR, | |
3926 | .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and | |
3927 | .F08. | |
3928 | ||
f55ee35c JK |
3929 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3930 | ||
3931 | Support DW_TAG_module as separate namespaces. | |
3932 | * dwarf2read.c (typename_concat): New parameter physname. | |
3933 | (read_module_type): New function and declaration. | |
3934 | (scan_partial_symbols): Scan also DW_TAG_module children. | |
3935 | (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass | |
3936 | to typename_concat backward compatible physname value 0. | |
3937 | (partial_die_full_name, read_namespace_type): Pass to typename_concat | |
3938 | backward compatible physname value 0. | |
3939 | (add_partial_module, read_module): Remove FIXME comment. | |
3940 | (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. | |
3941 | (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for | |
3942 | DIEs under DW_TAG_module. | |
3943 | (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and | |
3944 | DW_AT_MIPS_linkage_name first, extend it for language_fortran | |
3945 | && physname and return there instead of just setting NAME. Extend | |
3946 | the main block for language_fortran. Pass physname parameter to the | |
3947 | typename_concat call. | |
3948 | (read_import_statement, read_func_scope, get_scope_pc_bounds) | |
3949 | (load_partial_dies, determine_prefix): Support also DW_TAG_module. | |
3950 | (new_symbol): Fill in cplus_specific.demangled_name if it is still | |
3951 | missing from SYMBOL_SET_NAMES in the language_fortran case. | |
3952 | (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module | |
3953 | variables. | |
3954 | (read_type_die) <DW_TAG_module>: New. | |
3955 | (MAX_SEP_LEN): Increase to 7. | |
3956 | (typename_concat): New parameter physname. New variable lead. Support | |
3957 | also language_fortran. | |
3958 | * f-exp.y (yylex): Consider : also as a symbol name character class. | |
3959 | * f-lang.c: Include cp-support.h. | |
3960 | (f_word_break_characters, f_make_symbol_completion_list): New functions. | |
3961 | (f_language_defn): Use cp_lookup_symbol_nonlocal, | |
3962 | f_word_break_characters and f_make_symbol_completion_list. | |
3963 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. | |
3964 | * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. | |
3965 | * symtab.c (symbol_init_language_specific): Support language_fortran. | |
3966 | (symbol_find_demangled_name): New comment on language_fortran. | |
3967 | (symbol_natural_name, symbol_demangled_name): Use demangled_name even | |
3968 | for language_fortran. | |
3969 | (lookup_symbol_aux_local): Check imports also for language_fortran. | |
3970 | (default_make_symbol_completion_list): Rename to ... | |
3971 | (default_make_symbol_completion_list_break_on): ... this name. New | |
3972 | parameter break_on, use it. | |
3973 | (default_make_symbol_completion_list): New stub. | |
3974 | * symtab.h (default_make_symbol_completion_list_break_on): New | |
3975 | prototype. | |
3976 | ||
cb91c06a JB |
3977 | 2010-06-02 Joel Brobecker <brobecker@adacore.com> |
3978 | ||
3979 | * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call | |
3980 | to error. | |
3981 | ||
5c315b68 JK |
3982 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3983 | ||
3984 | * dwarf2read.c (typename_concat): Add const to the variable sep. | |
3985 | ||
9eae7c52 TT |
3986 | 2010-06-02 Tom Tromey <tromey@redhat.com> |
3987 | ||
3988 | * dwarf2loc.h (dwarf2_per_cu_data): Declare. | |
3989 | * dwarf2read.c (dwarf_stack_op_name): No longer static. Return | |
3990 | type is const. Add 'def' argument. Add missing operators, remove | |
3991 | unhandled ones. | |
3992 | (decode_locdesc): Update. | |
3993 | (dwarf2_always_disassemble): New global. | |
3994 | (show_dwarf2_always_disassemble): New function. | |
3995 | (_initialize_dwarf2_read): Add always-disassemble. | |
3996 | (dwarf2_per_cu_offset_size): New function. | |
3997 | * dwarf2loc.c (dwarf2_always_disassemble): Declare. | |
3998 | (piece_end_p): New function. | |
3999 | (locexpr_describe_location_piece): Replace 'size' argument with | |
4000 | 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize | |
4001 | some constants. Remove errors. | |
4002 | (disassemble_dwarf_expression): New function. | |
4003 | (locexpr_describe_location_1): Use disassemble_dwarf_expression. | |
4004 | Add 'offset_size' argument. | |
4005 | (loclist_describe_location): Change output formatting. | |
4006 | * dwarf2expr.h (dwarf_stack_op_name): Declare. | |
4007 | ||
7d3fe98e SW |
4008 | 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> |
4009 | ||
4010 | * cp-support.c (make_symbol_overload_list_adl_namespace): Handle | |
4011 | anonymous type case. | |
4012 | ||
e77813c8 PM |
4013 | 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr> |
4014 | ||
4015 | * dwarf2read.c (read_subrange_type): Handle missing base type | |
4016 | according to Dwarf-2 specifications. | |
4017 | ||
7cf3118a SDJ |
4018 | 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com> |
4019 | ||
4020 | * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL, | |
4021 | BINOP_EXCL. | |
4022 | (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL, | |
4023 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH. | |
4024 | (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL, | |
4025 | BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, | |
4026 | UNOP_CHMAX, UNOP_CHMIN. | |
4027 | * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL, | |
4028 | UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX, | |
4029 | UNOP_CHMIN>: Remove opcodes. | |
4030 | ||
ae4d0c03 PM |
4031 | 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr> |
4032 | ||
4033 | * dwarf2read.c (read_func_scope): Do not complain for | |
4034 | external function if bounds are not found. | |
4035 | ||
fa593d66 PA |
4036 | 2010-06-01 Pedro Alves <pedro@codesourcery.com> |
4037 | ||
4038 | * NEWS: Mention gdbserver fast tracepoints support. | |
4039 | ||
cd44747c PM |
4040 | 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr> |
4041 | ||
4042 | * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont): | |
4043 | New macros. | |
4044 | (windows_set_console_info): New function. | |
4045 | (windows_create_inferior): Call windows_set_console_info | |
4046 | if NEW_CONSOLE is true. | |
4047 | (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions. | |
4048 | (_initialize_loadable): Initialize GetConsoleFontSize and | |
4049 | GetCurrentConsoleFont. | |
4050 | ||
f6528abd JK |
4051 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4052 | ||
4053 | * Makefile.in (RDYNAMIC): New. | |
4054 | (SFILES): Add proc-service.list. | |
4055 | * config/alpha/alpha-linux.mh (NAT_CDEPS): New. | |
4056 | (LOADLIBES): Replace -rdynamic by $(RDYNAMIC). | |
4057 | * config/arm/linux.mh: Likewise. | |
4058 | * config/i386/linux.mh: Likewise. | |
4059 | * config/i386/linux64.mh: Likewise. | |
4060 | * config/ia64/linux.mh: Likewise. | |
4061 | * config/m32r/linux.mh: Likewise. | |
4062 | * config/m68k/linux.mh: Likewise. | |
4063 | * config/mips/linux.mh: Likewise. | |
4064 | * config/pa/linux.mh: Likewise. | |
4065 | * config/powerpc/linux.mh: Likewise. | |
4066 | * config/powerpc/ppc64-linux.mh: Likewise. | |
4067 | * config/s390/s390.mh: Likewise. | |
4068 | * config/sparc/linux.mh: Likewise. | |
4069 | * config/sparc/linux64.mh: Likewise. | |
4070 | * config/xtensa/linux.mh: Likewise. | |
4071 | * configure.ac: New RDYNAMIC on native host and GCC. | |
4072 | (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC. | |
4073 | * configure: Regenerate. | |
4074 | * proc-service.list: New. | |
4075 | ||
ca2a87a0 JK |
4076 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4077 | ||
4078 | * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid | |
4079 | CONTENT. | |
4080 | ||
1e225492 JK |
4081 | 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4082 | ||
4083 | * linux-nat.c (linux_nat_wait_1): Do not call | |
4084 | linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or | |
4085 | TARGET_WAITKIND_SIGNALLED. | |
4086 | ||
e802dbe0 JB |
4087 | 2010-05-27 Joel Brobecker <brobecker@adacore.com> |
4088 | ||
4089 | * ada-lang.c (ada_inferior_data): New struct. | |
4090 | (ada_inferior_data): New static global. | |
4091 | (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit) | |
4092 | (ada_get_tsd_type): New functions. | |
4093 | (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type | |
4094 | to look the tsd type up. | |
4095 | (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit | |
4096 | event. Set ada_inferior_data. | |
4097 | ||
176a6961 PA |
4098 | 2010-05-27 Pedro Alves <pedro@codesourcery.com> |
4099 | ||
4100 | * remote.c (unpack_varlen_hex): Remove forward declaration. | |
4101 | (remote_console_output): Make static, and add forward declaration. | |
4102 | * remote.h: Drop FIXME comment. | |
4103 | (unpack_varlen_hex): Declare. | |
4104 | (remote_console_output, remote_cisco_objfile_relocate) | |
4105 | (deprecated_target_resume_hook, deprecated_target_wait_loop_hook): | |
4106 | Delete declarations. | |
4107 | * tracepoint.c: Include "remote.h". | |
4108 | (unpack_varlen_hex): Delete declaration. | |
4109 | ||
88bfdde4 TT |
4110 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
4111 | ||
4112 | * dwarf2loc.c (struct piece_closure) <refc>: New field. | |
4113 | (allocate_piece_closure): Initialize refc. | |
4114 | (copy_pieced_value_closure): Use refc. | |
4115 | (free_pieced_value_closure): Likewise. | |
4116 | ||
8c6363cf TT |
4117 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
4118 | ||
4119 | * arm-tdep.c (push_stack_item): 'contents' now const. | |
4120 | (arm_push_dummy_call): Make 'val' const. Use value_contents, not | |
4121 | value_contents_writeable. Introduce new temporary. | |
4122 | ||
7ecb917e TT |
4123 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
4124 | ||
4125 | * findcmd.c (parse_find_args): Use value_contents, not | |
4126 | value_contents_raw. | |
4127 | ||
f42a0a33 TT |
4128 | 2010-05-27 Tom Tromey <tromey@redhat.com> |
4129 | ||
4130 | * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents | |
4131 | const. Use value_contents, not value_contents_writeable. | |
4132 | ||
12b795ad JB |
4133 | 2010-05-27 Joel Brobecker <brobecker@adacore.com> |
4134 | ||
4135 | * ada-lang.c (ensure_lval): Replace call to value_contents_raw | |
4136 | by call to value_contents. | |
4137 | ||
5a2e11c7 OS |
4138 | 2010-05-27 Ozkan Sezer <sezeroz@gmail.com> |
4139 | ||
4140 | * MAINTAINERS: Add myself for write after approval privileges. | |
4141 | ||
ec685c5e DE |
4142 | 2010-05-26 Doug Evans <dje@google.com> |
4143 | ||
0c4a4063 DE |
4144 | Allow python to find its files if moved from original location. |
4145 | * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function. | |
4146 | (GDB_AC_WITH_DIR): Call it. | |
4147 | * configure.ac: Define WITH_PYTHON_PATH if we can find the | |
4148 | python installation directory. | |
4149 | * config.in: Regenerate. | |
4150 | * configure: Regenerate. | |
4151 | * defs.h (python_libdir): Declare. | |
4152 | * main.c (python_libdir): Define. | |
4153 | (captured_main): Initialize python_libdir. | |
4154 | * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH, | |
4155 | call Py_SetProgramName to make sure python can find its libraries | |
4156 | and modules. | |
4157 | ||
ec685c5e DE |
4158 | * configure.ac: Try to use python's distutils to fetch compilation |
4159 | parameters. | |
4160 | * configure: Regenerate. | |
4161 | * python/python-config.py: New file. | |
4162 | ||
363a6e9f OS |
4163 | 2010-05-26 Ozkan Sezer <sezeroz@gmail.com> |
4164 | ||
4165 | * ser-tcp.c (net_open): Check error return from socket() call by its | |
4166 | equality to -1 not by it being negative. | |
4167 | (net_close): Likewise. | |
4168 | ||
dde08ee1 PA |
4169 | 2010-05-26 Pedro Alves <pedro@codesourcery.com> |
4170 | ||
4171 | * NEWS: Mention the `qRelocInsn' feature. | |
4172 | * gdbarch.sh (relocate_instruction): New. | |
4173 | * amd64-tdep.c (rip_relative_offset): New. | |
4174 | (append_insns): New. | |
4175 | (amd64_relocate_instruction): New. | |
4176 | (amd64_init_abi): Install it. | |
4177 | * i386-tdep.c (append_insns): New. | |
4178 | (i386_relocate_instruction): New. | |
4179 | (i386_gdbarch_init): Install it. | |
4180 | * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests. | |
4181 | * gdbarch.h, gdbarch.c: Regenerate. | |
4182 | ||
947bb88f TT |
4183 | 2010-05-26 Tom Tromey <tromey@redhat.com> |
4184 | ||
4185 | * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const. | |
4186 | (struct dwarf2_loclist_baton) <data>: Likewise. | |
4187 | * dwarf2loc.c (find_location_expression): Constify return type. | |
4188 | (dwarf2_evaluate_loc_desc): Make 'data' argument const. | |
4189 | (dwarf2_loc_desc_needs_frame): Likewise. | |
4190 | (loclist_read_variable): Constify. | |
4191 | (loclist_describe_location): Likewise. | |
4192 | (loclist_tracepoint_var_ref): Likewise. | |
4193 | ||
0d45f56e TT |
4194 | 2010-05-25 Tom Tromey <tromey@redhat.com> |
4195 | ||
4196 | * dwarf2loc.c (dwarf_expr_frame_base): Constify. | |
4197 | (dwarf_expr_frame_base_1): Likewise. | |
4198 | (read_pieced_value): Update. | |
4199 | (needs_frame_frame_base): Constify. | |
4200 | (dwarf2_tracepoint_var_loc): Likewise. | |
4201 | (dwarf2_tracepoint_var_access): Likewise. | |
4202 | (locexpr_describe_location_piece): Likewise. | |
4203 | (locexpr_describe_location_1): Likewise. | |
4204 | * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>: | |
4205 | Constify. | |
4206 | (data): Now const. | |
4207 | (struct dwarf_expr_piece) <v.literal.data>: Likewise. | |
4208 | (dwarf_expr_eval, read_uleb128, read_sleb128) | |
4209 | (dwarf2_read_address): Update. | |
4210 | * dwarf2expr.c (dwarf_expr_eval): Constify. | |
4211 | (read_uleb128): Likewise. | |
4212 | (read_sleb128): Likewise. | |
4213 | (dwarf2_read_address): Likewise. | |
4214 | (require_composition): Likewise. | |
4215 | (execute_stack_op): Likewise. | |
4216 | * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a | |
4217 | "const gdb_byte *". | |
4218 | * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>: | |
4219 | Now const. | |
4220 | (no_get_frame_base): Constify. | |
4221 | (execute_stack_op): Likewise. | |
4222 | (execute_cfa_program): Likewise. | |
4223 | (read_encoded_value): Likewise. | |
4224 | ||
07ca107c DE |
4225 | 2010-05-25 Doug Evans <dje@google.com> |
4226 | ||
e34838f0 DE |
4227 | * ser-pipe.c (pipe_open): Ignore SIGINTs in child. |
4228 | ||
01f69b38 DE |
4229 | * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ... |
4230 | * event-loop.c: ... here. | |
4231 | * tui/tui-io.c (tui_readline_output): Rename parameter `code' to | |
4232 | `error' for clarity. | |
4233 | (tui_getc): Pass correct value for `error' parameter to | |
4234 | tui_readline_output. | |
4235 | ||
07ca107c DE |
4236 | Add python gdb.GdbError and gdb.string_to_argv. |
4237 | * NEWS: Document them. | |
4238 | * python/py-cmd.c (cmdpy_function): Don't print a traceback if | |
4239 | the exception is gdb.GdbError. Print a second traceback if there's | |
4240 | an error computing the error message. | |
4241 | (gdbpy_string_to_argv): New function. | |
4242 | * python/py-utils.c (gdbpy_obj_to_string): New function. | |
4243 | (gdbpy_exception_to_string): New function. | |
4244 | * python/python-internal.h (gdbpy_string_to_argv): Declare. | |
4245 | (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare. | |
4246 | (gdbpy_gdberror_exc): Declare. | |
4247 | * python/python.c (gdbpy_gdberror_exc): New global. | |
4248 | (_initialize_python): Initialize gdbpy_gdberror_exc and create | |
4249 | gdb.GdbError. | |
4250 | (GdbMethods): Add string_to_argv. | |
4251 | ||
5572ce1f PM |
4252 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4253 | ||
4254 | * windows-nat.c (display_selector): Call GetLastError to give better | |
4255 | failure explanation. | |
4256 | ||
acd5838a PA |
4257 | 2010-05-24 Pedro Alves <pedro@codesourcery.com> |
4258 | ||
4259 | * config.in: Regenerate. | |
4260 | ||
b26a4dcb JK |
4261 | 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
4262 | ||
4263 | Code cleanup. | |
4264 | * target.c (push_target): Return only void. Remove the return value | |
4265 | comment. | |
4266 | * target.h (push_target): Return only void. | |
4267 | ||
f434ba03 PA |
4268 | 2010-05-23 Pedro Alves <pedro@codesourcery.com> |
4269 | ||
4270 | Update gnulib from latest git. | |
4271 | (250b80067c1e1d8faa0c42fb572f721975b929c5) | |
4272 | ||
4273 | * gnulib/memcmp.c: Removed. | |
4274 | * gnulib/memchr.valgrind: New. | |
4275 | * gnulib/stddef.in.h: New. | |
4276 | * gnulib/Makefile.am: Updated. | |
4277 | * gnulib/memchr.c: Updated. | |
4278 | * gnulib/memmem.c: Updated. | |
4279 | * gnulib/stdint.in.h: Updated. | |
4280 | * gnulib/str-two-way.h: Updated. | |
4281 | * gnulib/string.in.h: Updated. | |
4282 | * gnulib/wchar.in.h: Updated. | |
4283 | ||
4284 | * gnulib/extra/link-warning.h: Removed. | |
4285 | * gnulib/extra/c++defs.h: New. | |
4286 | * gnulib/extra/warn-on-use.h: New. | |
4287 | * gnulib/extra/arg-nonnull.h: Updated. | |
4288 | ||
4289 | * gnulib/m4/extensions.m4: Updated. | |
4290 | * gnulib/m4/gnulib-cache.m4: Updated. | |
4291 | * gnulib/m4/gnulib-common.m4: Updated. | |
4292 | * gnulib/m4/gnulib-comp.m4: Updated. | |
4293 | * gnulib/m4/gnulib-tool.m4: Updated. | |
4294 | * gnulib/m4/include_next.m4: Updated. | |
4295 | * gnulib/m4/longlong.m4: Updated. | |
4296 | * gnulib/m4/memchr.m4: Updated. | |
4297 | * gnulib/m4/memmem.m4: Updated. | |
4298 | * gnulib/m4/stdint.m4: Updated. | |
4299 | * gnulib/m4/string_h.m4: Updated. | |
4300 | * gnulib/m4/memcmp.m4: Removed. | |
4301 | * gnulib/m4/onceonly_2_57.m4: Removed. | |
4302 | * gnulib/m4/00gnulib.m4: New. | |
4303 | * gnulib/m4/mmap-anon.m4: New. | |
4304 | * gnulib/m4/multiarch.m4: New. | |
4305 | * gnulib/m4/onceonly.m4: New. | |
4306 | * gnulib/m4/stddef_h.m4: New. | |
4307 | * gnulib/m4/warn-on-use.m4: New. | |
4308 | * gnulib/m4/wchar.m4: Removed. | |
4309 | * gnulib/m4/wchar_h.m4: New. | |
4310 | * gnulib/m4/wchar_t.m4: New. | |
4311 | * gnulib/m4/wint_t.m4: New. | |
4312 | ||
4313 | * aclocal.m4: Regenerate. | |
4314 | * config.in: Likewise. | |
4315 | * configure: Likewise. | |
4316 | * gnulib/Makefile.in: Likewise. | |
4317 | ||
d3b1e874 TT |
4318 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
4319 | ||
4320 | * dwarf2loc.c (extract_bits_primitive): New function. | |
4321 | (extract_bits): Likewise. | |
4322 | (insert_bits): Likewise. | |
4323 | (copy_bitwise): Likewise. | |
4324 | (read_pieced_value): Do all operations in bits. | |
4325 | (write_pieced_value): Likewise. | |
4326 | * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field. | |
4327 | * dwarf2expr.c (add_piece): New arguments bit_piece, offset. | |
4328 | Always use xrealloc to resize piece array. | |
4329 | (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece. | |
4330 | <DW_OP_piece>: Update. | |
4331 | <DW_OP_bit_piece>: New case. | |
4332 | ||
cb826367 TT |
4333 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
4334 | ||
4335 | * dwarf2loc.c (read_pieced_value): Exit loop when result is full. | |
4336 | <DWARF_VALUE_OPTIMIZED_OUT>: New case. | |
4337 | * dwarf2expr.h (enum dwarf_value_location) | |
4338 | <DWARF_VALUE_OPTIMIZED_OUT>: New constant. | |
4339 | * dwarf2expr.c (dwarf_expr_stack_empty_p): New function. | |
4340 | (add_piece): Handle empty piece. | |
4341 | (execute_stack_op) <DW_OP_piece>: Handle | |
4342 | DWARF_VALUE_OPTIMIZED_OUT. | |
4343 | ||
74de6778 TT |
4344 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
4345 | ||
4346 | * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call | |
4347 | evaluate_subexp, not evaluate_subexp_with_coercion. | |
4348 | ||
f346a30d PM |
4349 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4350 | ||
4351 | * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter | |
4352 | attribute. | |
4353 | ||
afd74c5f TT |
4354 | 2010-05-21 Tom Tromey <tromey@redhat.com> |
4355 | ||
4356 | * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an | |
4357 | offset. | |
4358 | (write_pieced_value): Likewise. | |
4359 | ||
90e7c2c5 PM |
4360 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4361 | ||
4362 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
4363 | and DW_TAG_volatile_type. | |
4364 | (new_symbol): Likewise. | |
4365 | ||
8148cf8d PM |
4366 | 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr> |
4367 | ||
4368 | * p-valprint.c (pascal_val_print): Call get_array_bounds | |
4369 | to obtain the number of elements in an array. | |
4370 | ||
3a1d4620 DE |
4371 | 2010-05-19 Doug Evans <dje@google.com> |
4372 | ||
0bf0f8c4 DE |
4373 | * python.c (gdbpy_print_stack): Ensure output ends with a newline. |
4374 | ||
3a1d4620 DE |
4375 | * python.c (source_python_script): Add comment. |
4376 | (source_python_script_for_objfile): Remove unnecessary call to | |
4377 | gdbpy_print_stack. | |
4378 | ||
dc21167c JK |
4379 | 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
4380 | Sergio Durigan Junior <sergiodj@redhat.com> | |
4381 | ||
4382 | Code cleanup. | |
4383 | * parse.c (exp_iterate): Use operator_length wrapper function. | |
4384 | ||
5b4ee69b MS |
4385 | 2010-05-18 Michael Snyder <msnyder@vmware.com> |
4386 | ||
4387 | * ada-lang.c: White space. | |
4388 | * ada-typeprint.c: White space. | |
4389 | * ada-valprint.c: White space. | |
4390 | * addrmap.c: White space. | |
4391 | * auxv.c: White space. | |
4392 | * ax-gdb.c: White space. | |
4393 | ||
e17c9e56 HZ |
4394 | 2010-05-18 Hui Zhu <teawater@gmail.com> |
4395 | ||
4396 | * linux-fork.c (inferior_call_waitpid_cleanup): Add check | |
4397 | for oldfp. | |
4398 | (inferior_call_waitpid): Move make_cleanup out of check. | |
4399 | Check the return of waitpid. | |
4400 | (delete_checkpoint_command): Add pptid to save fi->parent_ptid. | |
4401 | ||
a109c7c1 MS |
4402 | 2010-05-17 Michael Snyder <msnyder@vmware.com> |
4403 | ||
1c5313c5 MS |
4404 | * tui/tui.c: White space. |
4405 | * tui/tui-data.c: White space. | |
4406 | * tui/tui-disasm.c: White space. | |
4407 | * tui/tui-file.c: White space. | |
4408 | * tui/tui-interp.c: White space. | |
4409 | * tui/tui-main.c: White space. | |
4410 | * tui/tui-out.c: White space. | |
4411 | * tui/tui-regs.c: White space. | |
4412 | * tui/tui-source.c: White space. | |
4413 | * tui/tui-stack.c: White space. | |
4414 | * tui/tui-win.c: White space. | |
4415 | * tui/tui-winsource.c: White space. | |
4416 | ||
f4a14ae6 MS |
4417 | * procfs.c: White space. |
4418 | ||
d59b6f6c MS |
4419 | * python/py-auto-load.c: White space. |
4420 | * python/py-block.c: White space. | |
4421 | * python/py-breakpoint.c: White space. | |
4422 | * python/py-cmd.c: White space. | |
4423 | * python/py-function.c: White space. | |
4424 | * python/py-lazy-string.c: White space. | |
4425 | * python/py-objfile.c: White space. | |
4426 | * python/py-param.c: White space. | |
4427 | * python/py-prettyprint.c: White space. | |
4428 | * python/py-progspace.c: White space. | |
4429 | * python/py-symtab.c: White space. | |
4430 | * python/python.c: White space. | |
4431 | * python/py-type.c: White space. | |
4432 | * python/py-utils.c: White space. | |
4433 | * python/py-value.c: White space. | |
4434 | ||
102040f0 MS |
4435 | * mi/mi-cmd-break.c: White space. |
4436 | * mi/mi-cmd-env.c: White space. | |
4437 | * mi/mi-cmds.c: White space. | |
4438 | * mi/mi-cmd-stack.c: White space. | |
4439 | * mi/mi-cmd-var.c: White space. | |
4440 | * mi/mi-console.c: White space. | |
4441 | * mi/mi-getopt.c: White space. | |
4442 | * mi/mi-interp.c: White space. | |
4443 | * mi/mi-main.c: White space. | |
4444 | * mi/mi-out.c: White space. | |
4445 | * mi/mi-parse.c: White space. | |
4446 | ||
cdb27c12 MS |
4447 | * cli/cli-cmds.c: White space. |
4448 | * cli/cli-decode.c: White space. | |
4449 | * cli/cli-dump.c: White space. | |
4450 | * cli/cli-interp.c: White space. | |
4451 | * cli/cli-logging.c: White space. | |
4452 | * cli/cli-script.c: White space. | |
4453 | * cli/cli-setshow.c: White space. | |
4454 | ||
a109c7c1 MS |
4455 | * valarith.c: White space. |
4456 | * valops.c: White space. | |
4457 | * valprint.c: White space. | |
4458 | * value.c: White space. | |
4459 | * varobj.c: White space. | |
4460 | * xcoffread.c: White space. | |
4461 | * xml-support.c: White space. | |
4462 | * xml-tdesc.c: White space. | |
4463 | ||
3872d37d AS |
4464 | 2010-05-17 Andreas Schwab <schwab@redhat.com> |
4465 | ||
4466 | PR gdb/11092 | |
4467 | * c-lang.c (c_printstr): Compute real length of NUL terminated | |
4468 | string at first. | |
4469 | ||
0cce5bd9 JB |
4470 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
4471 | ||
4472 | * parse.c (parse_exp_in_context): When block is not NULL, use | |
4473 | its associated language to parse the expression instead of | |
4474 | the current_language. | |
4475 | ||
5f19d646 JB |
4476 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
4477 | ||
4478 | * jv-lang.c (java_lookup_class): Remove commented out code. | |
4479 | (type_from_class): Likewise. | |
4480 | (java_op_print_tab): Remove commented-out elements. | |
4481 | ||
28c85d6c JB |
4482 | 2010-05-17 Joel Brobecker <brobecker@adacore.com> |
4483 | ||
4484 | * ada-lang.c (to_fixed_range_type): The the raw index type as | |
4485 | argument instead of the raw type name. Remove orig_type parameter. | |
4486 | Update calls throughout. | |
4487 | (ada_fixup_array_indexes_type): New function. | |
4488 | (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type. | |
4489 | * ada-lang.h (ada_fixup_array_indexes_type): Add declaration. | |
4490 | * ada-typeprint.c (print_range_type): Renames print_range_type_named. | |
4491 | Remove name parameter. | |
4492 | (print_array_type): Add call to ada_fixup_array_indexes_type. | |
4493 | Update calls to print_range_type. | |
4494 | (ada_print_type): Update calls to print_range_type. | |
4495 | ||
d09039dd PM |
4496 | 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr> |
4497 | ||
4498 | * dwarf2read.c (read_set_type): Set type length if | |
4499 | DW_AT_byte_size attribute is present. | |
4500 | ||
7a081a30 PM |
4501 | 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr> |
4502 | ||
4503 | * p-valprint.c (pascal_val_print): Handle set type if range limits | |
4504 | are undefined but size is known. | |
4505 | ||
77382aee PA |
4506 | 2010-05-17 Pedro Alves <pedro@codesourcery.com> |
4507 | ||
4508 | * procfs.c: Reformat. | |
4509 | ||
433759f7 MS |
4510 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
4511 | ||
5d502164 MS |
4512 | * target.c: White space. |
4513 | * target-descriptions.c: White space. | |
4514 | * target-memory.c: White space. | |
4515 | * thread.c: White space. | |
4516 | * top.c: White space. | |
4517 | * tracepoint.c: White space. | |
4518 | * trad-frame.c: White space. | |
4519 | * tramp-frame.c: White space. | |
4520 | * ui-file.c: White space. | |
4521 | * ui-out.c: White space. | |
4522 | * user-regs.c: White space. | |
4523 | * utils.c: White space. | |
4524 | ||
433759f7 MS |
4525 | * scm-exp.c: White space. |
4526 | * scm-lang.c: White space. | |
4527 | * scm-valprint.c: White space. | |
4528 | * sentinel-frame.c: White space. | |
4529 | * ser-base.c: White space. | |
4530 | * ser-go32.c: White space. | |
4531 | * serial.c: White space. | |
4532 | * ser-mingw.c: White space. | |
4533 | * ser-pipe.c: White space. | |
4534 | * ser-tcp.c: White space. | |
4535 | * ser-unix.c: White space. | |
4536 | * solib.c: White space. | |
4537 | * solib-darwin.c: White space. | |
4538 | * solib-frv.c: White space. | |
4539 | * solib-irix.c: White space. | |
4540 | * solib-osf.c: White space. | |
4541 | * solib-pa64.c: White space. | |
4542 | * solib-som.c: White space. | |
4543 | * solib-spu.c: White space. | |
4544 | * solib-svr4.c: White space. | |
4545 | * solib-target.c: White space. | |
4546 | * source.c: White space. | |
4547 | * stabsread.c: White space. | |
4548 | * stack.c: White space. | |
4549 | * std-regs.c: White space. | |
4550 | * symfile.c: White space. | |
4551 | * symmisc.c: White space. | |
4552 | * symtab.c: White space. | |
4553 | ||
dd304d53 MS |
4554 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
4555 | ||
4556 | * source.c (_initialize_source): Add "rev" as an abbreviation | |
4557 | for the "reverse-search" command. | |
4558 | ||
a744cf53 MS |
4559 | 2010-05-16 Michael Snyder <msnyder@vmware.com> |
4560 | ||
123f5f96 MS |
4561 | * record.c: White space. |
4562 | * regcache.c: White space. | |
4563 | * reggroups.c: White space. | |
4564 | * remote-fileio.c: White space. | |
4565 | * remote-m32r-sdi.c: White space. | |
4566 | * remote-mips.c: White space. | |
4567 | * remote-sim.c: White space. | |
a744cf53 MS |
4568 | * remote.c: White space. |
4569 | (process_g_packet): Remove orphan braces. | |
4570 | ||
b8d56208 MS |
4571 | 2010-05-15 Michael Snyder <msnyder@vmware.com> |
4572 | ||
ad3bbd48 MS |
4573 | * parse.c: White space. |
4574 | * p-lang.c: White space. | |
4575 | * posix-hdep.c: White space. | |
4576 | * printcmd.c: White space. | |
4577 | * progspace.c: White space. | |
4578 | * prologue-value.c: White space. | |
4579 | * psymtab.c: White space. | |
4580 | * p-typeprint.c: White space. | |
4581 | * p-valprint.c: White space. | |
4582 | ||
5cc80db3 MS |
4583 | * objc-lang.c: White space. |
4584 | * objfiles.c: White space. | |
4585 | * observer.c: White space. | |
4586 | * osabi.c: White space. | |
4587 | * osdata.c: White space. | |
4588 | ||
b8d56208 MS |
4589 | * m2-lang.c: White space. |
4590 | * m2-valprint.c: White space. | |
4591 | * macrocmd.c: White space. | |
4592 | * macroexp.c: White space. | |
4593 | * macroscope.c: White space. | |
4594 | * macrotab.c: White space. | |
4595 | * main.c: White space. | |
4596 | * maint.c: White space. | |
4597 | * mdebugread.c: White space. | |
4598 | * memattr.c: White space. | |
4599 | * minsyms.c: White space. | |
4600 | * monitor.c: White space. | |
4601 | ||
9a619af0 MS |
4602 | 2010-05-14 Michael Snyder <msnyder@vmware.com> |
4603 | ||
e0881a8e MS |
4604 | * jv-lang.c: White space. |
4605 | * jv-typeprint.c: White space. | |
4606 | * jv-valprint.c: White space. | |
4607 | * language.c: White space. | |
4608 | * libunwind-frame.c: White space. | |
4609 | * linespec.c: White space. | |
4610 | * linux-nat.c: White space. | |
4611 | * linux-record.c: White space. | |
4612 | * linux-thread-db.c: White space. | |
4613 | ||
abbb1732 MS |
4614 | * infcall.c: White space. |
4615 | * inf-child.c: White space. | |
4616 | * infcmd.c: White space. | |
4617 | * inferior.c: White space. | |
4618 | * inf-loop.c: White space. | |
4619 | * inflow.c: White space. | |
4620 | * inline-frame.c: White space. | |
4621 | * interps.c: White space. | |
4622 | ||
d8734c88 MS |
4623 | * gcore.c: White space. |
4624 | * gdb.c: White space. | |
4625 | * gdbtypes.c: White space. | |
4626 | * gnu-nat.c: White space. | |
4627 | * gnu-v2-abi.c: White space. | |
4628 | * gnu-v3-abi.c: White space. | |
4629 | ||
bb9bcb69 MS |
4630 | * findcmd.c: White space. |
4631 | * findvar.c: White space. | |
4632 | * fork-child.c: White space. | |
4633 | * frame-base.c: White space. | |
4634 | * frame.c: White space. | |
4635 | * frame-unwind.c: White space. | |
4636 | * f-valprint.c: White space. | |
4637 | ||
d7f9d729 MS |
4638 | * elfread.c: White space. |
4639 | * environ.c: White space. | |
4640 | * eval.c: White space. | |
4641 | * event-loop.c: White space. | |
4642 | * event-top.c: White space. | |
4643 | * exceptions.c: White space. | |
4644 | * exec.c: White space. | |
4645 | * expprint.c: White space. | |
4646 | ||
9a619af0 MS |
4647 | * dbxread.c: White space. |
4648 | * dcache.c: White space. | |
4649 | * disasm.c: White space. | |
4650 | * doublest.c: White space. | |
4651 | * dsrec.c: White space. | |
4652 | * dummy-frame.c: White space. | |
4653 | * dwarf2expr.c: White space. | |
4654 | * dwarf2-frame.c: White space. | |
4655 | * dwarf2loc.c: White space. | |
4656 | * dwarf2read.c: White space. | |
4657 | ||
88d4aea7 PM |
4658 | 2010-05-14 Phil Muldoon <pmuldoon@redhat.com> |
4659 | ||
889bf7c5 | 4660 | PR python/11482 |
88d4aea7 PM |
4661 | |
4662 | * python/py-value.c (valpy_hash): New function. | |
4663 | (value_object_type): Register valpy_hash. | |
4664 | ||
7a298875 | 4665 | 2010-05-14 Hui Zhu <teawater@gmail.com> |
0407b3f1 | 4666 | Michael Snyder <msnyder@vmware.com> |
7a298875 HZ |
4667 | |
4668 | * linux-fork.c (gdbthread.h): New include. | |
4669 | (fork_info): Add parent_ptid. | |
4670 | (inferior_call_waitpid_cleanup, inferior_call_waitpid): New | |
4671 | functions. | |
4672 | (delete_checkpoint_command): Call inferior_call_waitpid. | |
4673 | (checkpoint_command): Set parent_ptid. | |
4674 | ||
c14feecc MS |
4675 | 2010-05-13 Michael Snyder <msnyder@vmware.com> |
4676 | ||
6595d32b MS |
4677 | * dictionary.c: Re-indent to GNU coding standard. |
4678 | ||
c5504eaf MS |
4679 | * charset.c: White space. |
4680 | * c-lang.c: White space. | |
4681 | * cli-out.c: White space. | |
4682 | * coffread.c: White space. | |
4683 | * complaints.c: White space. | |
4684 | * completer.c: White space. | |
4685 | * corefile.c: White space. | |
4686 | * corelow.c: White space. | |
4687 | * cp-abi.c: White space. | |
4688 | * cp-namespace.c: White space. | |
4689 | * cp-support.c: White space. | |
4690 | * cp-valprint.c: White space. | |
4691 | * c-typeprint.c: White space. | |
4692 | * c-valprint.c: White space. | |
cc59ec59 MS |
4693 | * blockframe.c: White space. |
4694 | * breakpoint.c: White space. | |
4695 | * buildsym.c: White space. | |
4696 | * blockframe.c: White space. | |
b6de9da4 | 4697 | * bcache.c: White space. |
05c547f6 MS |
4698 | * gdbarch.sh: White space, add blank lines. |
4699 | * arch-utils.c: Ditto. | |
4700 | * gdbarch.c: Regenerate. | |
1c4d3f96 | 4701 | * frame.c: White space, add blank lines. |
f89b749f MS |
4702 | * stack.c: White space, add blank lines. |
4703 | (initialize_stack): Remove long-dead code. | |
c14feecc | 4704 | |
a2d33775 JK |
4705 | 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4706 | ||
4707 | Code cleanup. | |
4708 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type. | |
4709 | (locexpr_read_variable, loclist_read_variable): Update the callers. | |
4710 | ||
33ac96f0 JK |
4711 | 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
4712 | ||
4713 | Code cleanup. | |
4714 | * dwarf2read.c (die_type, die_descriptive_type): Remove variable type. | |
4715 | Remove check of NULL returned by tag_type_to_type. | |
4716 | (die_containing_type): Remove variable type. Remove type_die variable | |
4717 | initialization. Remove check of NULL returned by tag_type_to_type. | |
4718 | ||
f5a010c0 PM |
4719 | 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr> |
4720 | ||
4721 | PR exp/11530. | |
4722 | * gdbtypes.c (lookup_struct_elt_type): Also lookup | |
4723 | names of unnamed structures or unions. | |
4724 | ||
bf701c2c PM |
4725 | 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr> |
4726 | ||
4727 | * procfs.c (proc_watchpoint_address): New function. | |
0407b3f1 | 4728 | (procfs_stopped_by_watchpoint): Remove useless check after |
bf701c2c PM |
4729 | find_procinfo_or_die call. |
4730 | (procfs_stopped_data_address): New function. | |
4731 | (procfs_use_watchpoints): Register new watchpoint related function. | |
4732 | ||
d02691ef TT |
4733 | 2010-05-11 Tom Tromey <tromey@redhat.com> |
4734 | ||
4735 | * eval.c (evaluate_subexp_standard): Revert inadvertent change. | |
4736 | ||
e0627e85 MS |
4737 | 2010-05-10 Michael Snyder <msnyder@vmware.com> |
4738 | ||
4739 | * utils.c: White space cleanup. | |
4740 | ||
cc73bb8c TT |
4741 | 2010-05-10 Tom Tromey <tromey@redhat.com> |
4742 | ||
4743 | * eval.c (ptrmath_type_p): Add 'lang' argument. | |
4744 | (evaluate_subexp_standard): Update. | |
4745 | (evaluate_subexp_with_coercion): Update. | |
4746 | * language.h (CAST_IS_CONVERSION): Add 'LANG' argument. | |
4747 | ||
c02866a0 MS |
4748 | 2010-05-10 Michael Snyder <msnyder@vmware.com> |
4749 | ||
4750 | * utils.c (do_fclose_cleanup) Restore local variable. | |
4751 | ||
06280d23 DE |
4752 | 2010-05-09 Doug Evans <dje@google.com> |
4753 | ||
4754 | * record.c (init_record_core_ops): Rename record_core to record-core. | |
4755 | ||
fa07e785 JB |
4756 | 2010-05-08 Joel Brobecker <brobecker@adacore.com> |
4757 | ||
4758 | Implement task switching on pa-hpux. | |
4759 | * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function. | |
4760 | (inf_ttrace_target): Set t->to_get_ada_task_ptid. | |
4761 | ||
4c680d1d PM |
4762 | 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr> |
4763 | ||
4764 | * valops.c (find_overload_match): Add missing i18n markup. | |
4765 | ||
28e176a6 PM |
4766 | 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr> |
4767 | ||
4768 | * p-exp.y (exp : SIZEOF '(' exp ')'): New rule. | |
4769 | ||
48cb83fd JK |
4770 | 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4771 | ||
4772 | * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg | |
4773 | list for the obconcat call. | |
4774 | * mdebugread.c (parse_symbol): Likewise. | |
4775 | * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev): | |
4776 | Likewise. | |
4777 | * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'. | |
4778 | New variable ap. Remove variables len and val. | |
4779 | * symfile.h (obconcat): Likewise for the prototype. | |
4780 | ||
f92adf3c MS |
4781 | 2010-05-07 Michael Snyder <msnyder@vmware.com> |
4782 | ||
4783 | * python/python.c (execute_gdb_command): Remove unused variables. | |
4784 | * python/py-block.c (gdbpy_block_for_pc): Remove unused variable. | |
0407b3f1 | 4785 | * python/py-breakpoint.c (gdbpy_breakpoint_created): |
f92adf3c MS |
4786 | Remove unused variable. |
4787 | * python/py-cmd.c (cmdpy_function): Remove unused variable. | |
4788 | (cmdpy_completer): Remove unused variable. | |
4789 | * python/py-frame.c (frapy_find_sal): Remove unused variable. | |
4790 | * python/py-function.c (fnpy_call): Remove unused variable. | |
4791 | * python/py-objfile.c (objfile_to_objfile_object): | |
4792 | Remove unused variable. | |
4793 | * python/py-param.c (parmpy_init): Remove unused variable. | |
0407b3f1 | 4794 | * python/py-prettyprint.c (apply_varobj_pretty_printer): |
f92adf3c MS |
4795 | Remove unused variable. |
4796 | (gdbpy_default_visualizer): Remove unused variable. | |
4797 | * python/py-progspace.c (pspace_to_pspace_object): | |
4798 | Remove unused variable. | |
0407b3f1 | 4799 | * python/py-symtab.c (symtab_and_line_to_sal_object): |
f92adf3c | 4800 | Remove unused variable. |
0407b3f1 | 4801 | * python/py-type.c (typy_template_argument): |
f92adf3c MS |
4802 | Remove unused variable. |
4803 | * python/py-value.c (valpy_string): Remove unused variable. | |
4804 | (convert_value_from_python): Remove unused variables. | |
4805 | ||
d160942f MS |
4806 | 2010-05-07 Michael Snyder <msnyder@vmware.com> |
4807 | ||
4808 | * valops.c (value_cast_pointers): Restore unused variable 'type1', | |
4809 | and use it to compute variable 't1'. | |
4810 | ||
587542ab JB |
4811 | 2010-05-07 Joel Brobecker <brobecker@adacore.com> |
4812 | ||
4813 | * ada-lang.c (assign_aggregate): Remove unused variable. | |
4814 | ||
7322dca9 SW |
4815 | 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com> |
4816 | ||
4817 | PR C++/7943: | |
4818 | * valops.c (find_overload_match): Handle fsym == NULL case. | |
4819 | Add int no_adl argument. | |
4820 | (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl | |
4821 | when appropriate. | |
4822 | Add int no_adl argument. | |
4823 | (find_oload_champ_namespace): Add int no_adl argument. | |
4824 | * parse.c (operator_length_standard): Return length for OP_ADL_FUNC | |
4825 | expression. | |
4826 | * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case. | |
4827 | * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case. | |
4828 | Evaluate arguments and use them to perform ADL lookup. | |
4829 | Pass no_adl argument to find_overload_match. | |
4830 | Disable adl lookup when evaluating a fully qualified OP_FUNCALL. | |
4831 | * cp-support.h: Added prototype for | |
4832 | make_symbol_overload_list_namespace. | |
4833 | * cp-support.c (make_symbol_overload_list_namespace): New function. | |
4834 | (make_symbol_overload_list_adl_namespace): New function. | |
4835 | (make_symbol_overload_list_adl): New function. | |
4836 | (make_symbol_overload_list_using): Moved code to add function to | |
4837 | overload set to make_symbol_overload_list_namespace. | |
4838 | * c-exp.y: create UNKNOWN_CPP_NAME token. | |
4839 | Add parse rule for ADL functions. | |
4840 | (classify_name): Recognize an UNKNOWN_CPP_NAME. | |
4841 | ||
3f1f6884 JK |
4842 | 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4843 | ||
4844 | * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as | |
4845 | sentinel. | |
4846 | ||
3caf13b4 JB |
4847 | 2010-05-07 Joel Brobecker <brobecker@adacore.com> |
4848 | ||
4849 | Implement task switching on solaris targets. | |
4850 | * sol-thread.c (thread_db_find_thread_from_tid) | |
4851 | (sol_get_ada_task_ptid): New functions. | |
4852 | (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid. | |
4853 | ||
94b0dee1 PA |
4854 | 2010-05-07 Pedro Alves <pedro@codesourcery.com> |
4855 | ||
4856 | * remote.c (remote_query_supported_append): Use reconcat. | |
4857 | (remote_query_supported): Install a cleanup. Use reconcat. | |
4858 | ||
1408c251 PA |
4859 | 2010-05-07 Pedro Alves <pedro@codesourcery.com> |
4860 | ||
4861 | * gdbarch.sh (qsupported): Delete. | |
4862 | * gdbarch.h, gdbarch.c: Regenerate. | |
4863 | * remote.c (remote_query_supported): Remove use of | |
4864 | gdbarch_qsupported. | |
4865 | ||
f8e50cfe SDJ |
4866 | 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com> |
4867 | ||
4868 | * xml-syscall.c (syscall_start_syscalls_info): Remove unused | |
4869 | function. | |
4870 | ||
8ea13695 MS |
4871 | 2010-05-06 Michael Snyder <msnyder@vmware.com> |
4872 | ||
c6913b7d MS |
4873 | * xml-support.c (xinclude_start_include): Delete unused variable. |
4874 | (xml_process_xincludes): Delete unused variable. | |
4875 | * xml-syscall.c (syscall_parse_xml): Delete unused variable. | |
4876 | * target-descriptions.c (tdesc_gdb_type): Delete unused variable. | |
4877 | (tdesc_find_arch_register): Delete unused variable. | |
4878 | (tdesc_use_registers): Delete unused variable. | |
4879 | * xml-tdesc.c (tdesc_start_target): Delete unused variable. | |
4880 | * inferior.c (print_inferior): Delete unused variable. | |
4881 | * record.c (record_open_1): Delete unused variable. | |
4882 | (record_restore): Delete unused variable. | |
4883 | (cmd_record_save): Delete unused variable. | |
4884 | * gcore.c (derive_heap_segment): Delete unused variable. | |
4885 | (objfile_find_memory_regions): Use unused variable. | |
4886 | * jit.c (jit_inferior_init): Delete unused variable. | |
4887 | * progspace.c (clone_program_space): Delete unused variable. | |
4888 | (pspace_empty_p): Delete unused variable. | |
0407b3f1 AS |
4889 | |
4890 | * frame-unwind.c (frame_unwind_find_by_frame): | |
1c5465ac MS |
4891 | Delete unused variable. |
4892 | * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. | |
4893 | * cp-support.c (mangled_name_to_comp): Delete unused variable. | |
4894 | (method_name_from_physname): Delete unused variable. | |
4895 | (cp_func_name): Delete unused variable. | |
4896 | (cp_validate_operator): Delete unused variable. | |
0407b3f1 | 4897 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): |
1c5465ac | 4898 | Delete unused variable. |
0407b3f1 | 4899 | * trad-frame.c (trad_frame_get_prev_register): |
1c5465ac MS |
4900 | Delete unused variable. |
4901 | * tramp-frame.c (tramp_frame_cache): Delete unused variable. | |
4902 | ||
1be757cf MS |
4903 | * serial.c (serial_for_fd): Delete unused variable. |
4904 | * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. | |
4905 | * top.c (execute_command): Delete unused variable. | |
4906 | (init_main): Delete unused variable. | |
4907 | * utils.c (do_fclose_cleanup): Delete unused variable. | |
4908 | (do_all_inferior_continuations): Delete unused variable. | |
4909 | (initialize_utils): Delete unused variable. | |
4910 | (internal_problem_mode): Delete unused global. | |
4911 | * frame.c (get_prev_frame): Delete unused global. | |
4912 | (get_frame_locals_address): Delete unused global. | |
4913 | (get_frame_args_address): Delete unused global. | |
4914 | ||
9216103f MS |
4915 | * p-typeprint.c (pascal_type_print_base): Delete unused variable. |
4916 | (pascal_type_print_varspec_prefix): Delete unused variable. | |
4917 | * f-typeprint.c (f_type_print_base): Delete unused variable. | |
4918 | (f_type_print_varspec_suffix): Delete unused variable. | |
4919 | * m2-typeprint.c (m2_print_type): Delete unused variable. | |
4920 | (m2_long_set): Delete unused variable. | |
4921 | * ada-valprint.c (ada_val_print_1): Delete unused variable. | |
4922 | * d-valprint.c (dynamic_array_type): Delete unused variable. | |
0407b3f1 | 4923 | * f-valprint.c (f77_get_dynamic_length_of_aggregate): |
9216103f MS |
4924 | Delete unused variable. |
4925 | (f77_create_arrayprint_offset_tbl): Delete unused variable. | |
4926 | * m2-valprint.c (m2_val_print): Delete unused variable. | |
4927 | ||
34fa1d9d MS |
4928 | * ui-out.c (ui_out_field_int): Delete unused variable. |
4929 | (ui_out_field_fmt_int): Delete unused variable. | |
4930 | * varobj.c (varobj_list_children): Delete unused variable. | |
4931 | (varobj_set_value): Delete unused variable. | |
4932 | (install_new_value_visualizer): Delete unused variable. | |
4933 | (varobj_set_visualizer): Delete unused variable. | |
4934 | (varobj_update): Delete unused variable. | |
4935 | (varobj_editable_p): Delete unused variable. | |
4936 | (c_value_of_root): Delete unused variable. | |
4937 | (cplus_describe_child): Delete unused variable. | |
4938 | ||
b5385fc0 MS |
4939 | * ada-lang.c (add_defn_to_vec): Delete unused variable. |
4940 | (decode_constrained_packed_array_type): Delete unused variable. | |
4941 | (add_defn_to_vec): Delete unused variable. | |
4942 | (symbol_completion_match): Delete unused variable. | |
4943 | (value_tag_from_contents_and_address): Delete unused variable. | |
4944 | (ada_evaluate_subexp): Delete unused variable. | |
4945 | * c-lang.c (classify_type): Delete unused variable. | |
4946 | * f-lang.c (f_printstr): Delete unused variable. | |
4947 | * objc-lang.c (objc_printstr): Delete unused variable. | |
4948 | * ada-tasks.c (get_known_tasks_addr): Delete unused variable. | |
4949 | * jv-lang.c (type_from_class): ifdef unused variable. | |
4950 | (java_class_name_from_physname): Delete unused variable. | |
4951 | * m2-lang.c (m2_printstr): Delete unused variable. | |
4952 | ||
4fc06681 MS |
4953 | * objfiles.c (objfile_relocate): Delete unused variable. |
4954 | * maint.c (_initialize_maint_cmds): Delete unused variable. | |
4955 | * demangle.c (_initialize_demangler): Delete unused variable. | |
4956 | * corefile.c (reopen_exec_file): Delete unused variable. | |
4957 | * dwarf2expr.c (dwarf2_read_address): Delete unused variable. | |
4958 | * dwarf2-frame.c (decode_frame_entry): Delete unused variable. | |
4959 | ||
6b4398f7 MS |
4960 | * osabi.c (_initialize_gdb_osabi): Delete unused variable. |
4961 | * memattr.c (mem_delete): Delete unused variable. | |
4962 | (invalidate_target_mem_regions): Delete unused variable. | |
4963 | * mem-break.c (default_memory_insert_breakpoint): | |
4964 | Delete unused variable. | |
4965 | * target.c (target_get_osdata): Delete unused variable. | |
4966 | * parse.c (length_of_subexp): Delete unused variable. | |
4967 | (prefixify_subexp): Delete unused variable. | |
4968 | (exp_iterate): Delete unused variable. | |
4969 | * reverse.c (delete_bookmark_command): Delete unused variable. | |
4970 | ||
308d96ed MS |
4971 | * macrocmd.c (_initialize_macrocmd): Delete unused variable. |
4972 | * macroexp.c (gather_arguments): Delete unused variable. | |
4973 | (substitute_args): Delete unused variable. | |
4974 | * completer.c (gdb_completer_loc_break_characters): Unused, delete. | |
4975 | * gdbarch.sh (gdbarch_printable_names): Delete unused variable. | |
4976 | (_initialize_gdbarch): Delete unused variable. | |
4977 | * gdbarch.c, gdbarch.h: Regenerate. | |
0407b3f1 | 4978 | * arch-utils.c (initialize_current_architecture): |
308d96ed MS |
4979 | Delete unused variable. |
4980 | (_initialize_gdbarch_utils): Delete unused variable. | |
4981 | * gdbtypes.c (make_cv_type): Delete unused variable. | |
4982 | (make_type_with_address_space): Delete unused variable. | |
4983 | ||
167e4384 MS |
4984 | * linespec.c (decode_compound): Delete unused variable. |
4985 | * dictionary.c (iterator_next_hashed): Delete unused variable. | |
4986 | * infcall.c (call_function_by_hand): Delete unused variable. | |
4987 | * infcmd.c (step_1): Delete unused variable. | |
4988 | (registers_info): Delete unused variable. | |
4989 | (attach_command): Delete unused variable. | |
4990 | * infrun.c (follow_exec): Delete unused variable. | |
4991 | (handle_step_into_function_backwards): Delete unused variable. | |
4992 | (_initialize_infrun): Delete unused variable. | |
4993 | * stack.c (parse_frame_specification_1): Delete unused variable. | |
4994 | (frame_info): Delete unused variable. | |
4995 | (backtrace_command_1): Delete unused variable. | |
4996 | (catch_info): Delete unused variable. | |
4997 | ||
8f78b329 MS |
4998 | * eval.c (evaluate_subexp_standard): Delete unused variable. |
4999 | * valops.c (value_cast_pointers): Delete unused variable. | |
5000 | (value_dynamic_cast): Delete unused variable. | |
5001 | (value_array): Delete unused variable. | |
5002 | (find_overload_match): Delete unused variable. | |
5003 | * valarith.c (value_subscript): Delete unused variable. | |
5004 | (value_binop): Delete unused variable. | |
5005 | * valprint.c (_initialize_valprint): Delete unused variable. | |
5006 | * printcmd.c (print_command_1): Delete unused variable. | |
5007 | (address_info): Delete unused variable. | |
5008 | (printf_command): Delete unused variable. | |
5009 | ||
8ea13695 MS |
5010 | * auxv.c (target_auxv_search): Delete unused variable. |
5011 | * blockframe.c (get_frame_block): Delete unused variable. | |
5012 | * regcache.c (regcache_cpy): Delete unused variable. | |
5013 | (regcache_cpy_no_passthrough): Delete unused variable. | |
5014 | * charset.c (wchar_iterate): Delete unused variable. | |
5015 | (find_charset_names): Delete unused variable. | |
5016 | (_initialize_charset): Delete unused variable. | |
0407b3f1 | 5017 | * disasm.c (do_mixed_source_and_assembly): |
8ea13695 | 5018 | Delete unused variable. |
0407b3f1 | 5019 | * source.c (set_default_source_symtab_and_line): |
8ea13695 MS |
5020 | Delete unused variable. |
5021 | (set_substitute_path_command): Delete unused variable. | |
5022 | * value.c (preserve_values): Delete unused variable. | |
5023 | (value_from_double): Delete unused variable. | |
5024 | ||
afe38095 MS |
5025 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
5026 | ||
952a6d41 MS |
5027 | * psymtab.c (lookup_partial_symbol): Delete unused variable. |
5028 | (find_last_source_symtab_from_partial): Delete unused variable. | |
5029 | * symfile.c (place_section): Delete unused variable. | |
5030 | (default_symfile_offsets): Delete unused variable. | |
5031 | (get_debug_link_info): Delete unused variable. | |
5032 | (find_separate_debug_file_by_debuglink): Delete unused variable. | |
5033 | (add_symbol_file_command): Delete unused variable. | |
5034 | (symfile_find_segment_sections): Delete unused variable. | |
5035 | * symmisc.c (free_symtab): Delete unused variable. | |
5036 | (dump_symtab_1): Delete unused variable. | |
5037 | * symtab.c (lookup_symbil_aux_quick): Delete unused variable. | |
5038 | (find_pc_sect_symtab): Delete unused variable. | |
5039 | (skip_prologue_using_lineinfo): Delete unused variable. | |
5040 | (sources_info): Delete unused variable. | |
5041 | (completion_list_add_name): Delete unused variable. | |
5042 | (expand_line_sal): Delete unused variable. | |
5043 | ||
0407b3f1 | 5044 | * breakpoint.c (validate_commands_for_breakpoint): |
afe38095 MS |
5045 | Delete unused variables. |
5046 | (insert_catchpoint): Delete unused variable. | |
5047 | (update_watchpoint): Delete unused variable. | |
5048 | (insert_bp_location): Delete unused variable. | |
5049 | (insert_breakpoint_locations): Delete unused variable. | |
5050 | (remove_breakpoint_1): Delete unused variable. | |
5051 | (software_breakpoint_inserted_here_p): Delete unused variable. | |
5052 | (watchpoints_triggered): Delete unused variable. | |
5053 | (bpstat_check_watchpoint): Delete unused variable. | |
5054 | (bpstat_stop_status): Delete unused variable. | |
5055 | (print_one_breakpoint_location): Delete unused variable. | |
5056 | (allocate_bp_location): Delete unused variable. | |
5057 | (create_breakpoint): Delete unused variable. | |
5058 | (watch_command_1): Delete unused variable. | |
5059 | (catch_exception_command_1): Delete unused variable. | |
5060 | (catch_ada_exception_command): Delete unused variable. | |
5061 | (delete_breakpoint): Delete unused variable. | |
5062 | (breakpoint_re_set_one): Delete unused variable. | |
5063 | (do_enable_breakpoint): Delete unused variable. | |
5064 | ||
eda5a4d7 PA |
5065 | 2010-05-06 Pedro Alves <pedro@codesourcery.com> |
5066 | ||
5067 | * amd64-tdep.c: Include disasm.h. | |
5068 | (amd64_insn_length_fprintf, amd64_insn_length_init_dis) | |
5069 | (amd64_insn_length): Moved to disasm.c and renamed. | |
5070 | (fixup_riprel): Adjust. | |
5071 | * disasm.c (do_ui_file_delete): New. | |
5072 | (gdb_insn_length): New. | |
5073 | (gdb_buffered_insn_length_fprintf) | |
5074 | (gdb_buffered_insn_length_init_dis) | |
5075 | (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and | |
5076 | renamed. | |
5077 | * disasm.h (gdb_insn_length): Declare. | |
5078 | (gdb_buffered_insn_length): Declare. | |
5079 | ||
02357a4a PA |
5080 | 2010-05-06 Pedro Alves <pedro@codesourcery.com> |
5081 | ||
5082 | * remote.c (clear_threads_parsing_context): New. | |
5083 | (remote_threads_info): Delete unused null_cleanup. Install a | |
5084 | cleanup to clear the threads_parsing_context in case parsing | |
5085 | throws. | |
5086 | ||
8c5630cb MS |
5087 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
5088 | ||
5089 | * c-exp.y (parse_string_or_char): Delete unused variable. | |
5090 | (c_lex): Delete unused variable. | |
5091 | * cp-name-parser.y (cpname_lex): Delete unused variable. | |
5092 | * ada-exp.y (find_primitive_type): Delete unused variable. | |
5093 | (write_var_or_type): Delete unused variable. | |
5094 | * jv-exp.y (java_parse): Delete unused variable. | |
5095 | (push_expression_name): Delete unused variable. | |
5096 | * p-exp.y (pascal_lex): Delete unused variable. | |
5097 | ||
46c162d4 PA |
5098 | 2010-05-05 Pedro Alves <pedro@codesourcery.com> |
5099 | ||
5100 | * remote.c (remote_threads_info): Really revert previous previous | |
5101 | change. | |
5102 | ||
0043e6a5 MS |
5103 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
5104 | ||
fa238c03 MS |
5105 | * elfread.c (elf_symtab_read): Delete unused variable. |
5106 | (find_separate_debug_file_by_buildid): Delete unused variables. | |
5107 | (elf_symfile_read): Delete unused variable. | |
5108 | ||
5109 | * coffread.c (coff_symfile_read): Delete unused variables. | |
5110 | ||
5111 | * coff-pe-read.c (add_pe_exported_sym): Delete unused variable. | |
5112 | (read_pe_exported_syms): Delete unused variable. | |
5113 | ||
5114 | * stabsread.c (define_symbol): Delete unused variable. | |
5115 | ||
5116 | * dwarf2read.c (read_type_comp_unit_head): Delete unused variable. | |
5117 | (process_psymtab_comp_unit): Delete unused variable. | |
5118 | (dwarf2_build_psymtabs_hard): Delete unused variable. | |
5119 | (load_partial_comp_unit): Delete unused variable. | |
5120 | (create_all_comp_units): Delete unused variable. | |
5121 | (scan_partial_symbols): Delete unused variable. | |
5122 | (add_partial_symbol): Delete unused variable. | |
5123 | (add_partial_namespace): Delete unused variable. | |
5124 | (add_partial_enumeration): Delete unused variable. | |
5125 | (load_full_comp_unit): Delete unused variable. | |
5126 | (process_full_comp_unit): Delete unused variable. | |
5127 | (read_file_scope): Delete unused variable. | |
5128 | (read_type_unit_scope): Delete unused variable. | |
5129 | (process_structure_scope): Delete unused variable. | |
5130 | (process_enumeration_scope): Delete unused variable. | |
5131 | (read_tag_ptr_to_member_type): Delete unused variable. | |
5132 | (read_typedef): Delete unused variable. | |
5133 | (read_partial_die): Delete unused variable. | |
5134 | (decode_locdesc): Delete unused variable. | |
5135 | (zeroed_partial_die): Delete unused global variable. | |
5136 | ||
0407b3f1 | 5137 | * tui/tui-interp.c (_initialize_tui_interp): |
0043e6a5 | 5138 | Delete unused variable. |
0407b3f1 | 5139 | * tui/tui-regs.c tui_display_registers_from): |
0043e6a5 MS |
5140 | Delete unused variable. |
5141 | (tui_check_register_values): Delete unused variable. | |
5142 | (tui_register_format): Delete unused variable. | |
5143 | * tui/tui-win.c (_initialize_tui_win): Delete unused variable. | |
0407b3f1 | 5144 | * tui/tui-windata.c (tui_display_data_from_line): |
0043e6a5 MS |
5145 | Delete unused variables. |
5146 | (tui_vertical_data_scroll): Delete unused variables. | |
5147 | ||
75721c66 MS |
5148 | 2010-05-05 Michael Snyder <msnyder@vmware.com> |
5149 | ||
c31a71f4 MS |
5150 | * remote.c (remote_threads_info): Revert questionable part of |
5151 | the previous change. | |
5152 | ||
5153 | 2010-05-05 Michael Snyder <msnyder@vmware.com> | |
5154 | ||
5155 | * mi/mi-out.c (mi_table_begin): Delete unused variable. | |
5156 | * mi/mi-cmd-var.c (print_varobj): Delete unused variable. | |
5157 | (mi_cmd_var_list_children): Delete unused variable. | |
5158 | (varobj_update_one): Delete unused variable. | |
5159 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables. | |
0407b3f1 | 5160 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): |
c31a71f4 MS |
5161 | Delete unused variable. |
5162 | (mi_cmd_stack_list_variables): Delete unused variable. | |
5163 | (list_args_or_locals): Delete unused variable. | |
0407b3f1 | 5164 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): |
c31a71f4 MS |
5165 | Delete unused variables. |
5166 | (mi_cmd_file_list_exec_source_files): Delete unused variable. | |
0407b3f1 | 5167 | * mi/mi-cmd-target.c (mi_cmd_target_file_delete): |
c31a71f4 MS |
5168 | Delete unused variable. |
5169 | * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable. | |
5170 | (mi_cmd_interpreter_exec): Delete unused variable. | |
5171 | (mi_on_normal_stop): Delete unused variable. | |
5172 | * mi/mi-main.c (run_one_inferior): Delete unused variable. | |
5173 | (print_one_inferior): Delete unused variables. | |
5174 | (mi_execute_command): Delete unused variable. | |
5175 | (mi_cmd_execute): Delete unused variable. | |
5176 | (timestamp): Delete unused variable. | |
5177 | ||
5178 | * cli/cli-dump.c (dump_memory_to_file): Delete unused variable. | |
d36fc00b | 5179 | (restore_binary_file): Delete unused variable. |
c31a71f4 MS |
5180 | * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables. |
5181 | * cli/cli-script.c (define_command): Delete unused variables. | |
d36fc00b MS |
5182 | (recurse_read_control_structure): Delete unused variable. |
5183 | (script_from_file): Delete unused variable. | |
c31a71f4 | 5184 | * cli/cli-cmds.c (complete_command): Delete unused variable. |
d36fc00b MS |
5185 | (disassemble_command): Delete unused variable. |
5186 | ||
5187 | * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables. | |
0407b3f1 | 5188 | * tracepoint.c (delete_trace_variable_command): |
d36fc00b MS |
5189 | Delete unused variables. |
5190 | (encode_actions_1): Delete unused variables. | |
5191 | (start_tracing): Delete unused variable. | |
5192 | (trace_status_mi): Delete unused variable. | |
5193 | (tfind_1): Delete unused variable. | |
5194 | (trace_find_pc_command): Delete unused variable. | |
5195 | (trace_find_line_command): Delete unused variables. | |
5196 | (trace_find_range_command): Delete unused variables. | |
5197 | (trace_find_outside_command): Delete unused variables. | |
5198 | (parse_tracepoint_definition): Delete unused variables. | |
5199 | (tfile_fetch_registers): Delete unused variable. | |
5200 | ||
9128a503 MS |
5201 | * dcache.c (dcache_init): Delete unused variable. |
5202 | (dcache_info): Delete unused variable. | |
5203 | ||
aa369b55 | 5204 | * remote.c (remote_threads_info): Delete unused variable. |
9128a503 | 5205 | (process_stop_reply) :Delete unused variable. |
aa369b55 MS |
5206 | (remote_get_trace_status): Delete unused variables. |
5207 | ||
9e9547e4 MS |
5208 | * linux-thread-db.c (add_thread_db_info): Delete unused variable. |
5209 | (thread_from_lwp): Delete unused variable. | |
5210 | (enable_thread_event_reporting): Delete unused variable. | |
5211 | (check_for_thread_db): Delete unused variables. | |
5212 | (thread_db_find_new_threads_2): Delete unused variable. | |
0407b3f1 | 5213 | |
9e9547e4 MS |
5214 | * linux-fork.c (info_checkpoints_command): Delete unused variables. |
5215 | (checkpoint_command): Delete unused variable. | |
5216 | (linux_fork_context): Delete unused variables. | |
5217 | ||
fa238c03 | 5218 | * linux-nat.c (linux_parent_pid): Delete unused global variable. |
75083f7e MS |
5219 | (linux_tracefork_child): Delete unused variable. |
5220 | (linux_child_follow_fork): Delete unused variable. | |
5221 | (linux_nat_detach): Delete unused variable. | |
5222 | (linux_handle_extended_wait): Delete unused variable. | |
5223 | (linux_nat_has_pending_sigint): Delete unused variable. | |
5224 | (linux_nat_find_memory_regions): Delete unused variable. | |
5225 | (linux_nat_make_corefile_notes): Delete unused variables. | |
5226 | (linux_nat_info_proc_cmd): Delete unused variable. | |
5227 | (linux_proc_pending_signals): Delete unused variable. | |
5228 | (linux_nat_stop_lwp): Delete unused variables. | |
5229 | (_initialize_linux_nat): Delete unused variable. | |
5230 | ||
fa238c03 | 5231 | * ser-pipe.c (pipe_ops): Delete unused global variable. |
2d148b94 | 5232 | |
0407b3f1 | 5233 | * linux-record.c (record_linux_system_call): |
e0f069a3 MS |
5234 | Delete unused variables. |
5235 | ||
789d24f0 MS |
5236 | * corelow.c (core_xfer_partial): Delete unused variables. |
5237 | ||
1cd337a5 | 5238 | * solib-svr4.c (find_program_interpreter): Delete unused variable. |
0407b3f1 | 5239 | (svr4_solib_create_inferior_hook): Add ifdef around |
1cd337a5 MS |
5240 | conditionally-used variable declarations. |
5241 | ||
b00e3f56 MS |
5242 | * solib.c (solib_find): Delete unused variable. |
5243 | (free_so_symbols): Delete unused variable. | |
5244 | (info_sharedlibrary_command): Delete unused variable. | |
5245 | (reload_shared_libraries_1): Delete unused variable. | |
5246 | (_initialize_solib): Delete unused variable. | |
5247 | ||
90f62196 MS |
5248 | * i386-tdep.c (i386_supply_xstateregset) Delete unused variable. |
5249 | (i386_collect_xstateregset): Delete unused variable. | |
5250 | * i387-tdep.c (i387_print_float_info): Delete unused variable. | |
5251 | ||
75721c66 MS |
5252 | * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx): |
5253 | Delete unused variable 'type'. | |
5254 | ||
af33db37 JB |
5255 | 2010-05-05 Joel Brobecker <brobecker@adacore.com> |
5256 | ||
90f62196 | 5257 | * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. * |
63db82b2 JB |
5258 | ada-lang.c: Remove comment mentioning these macros. |
5259 | * m2-exp.y: Delete commented out code. | |
af33db37 | 5260 | |
0497f5b0 JB |
5261 | 2010-05-05 Joel Brobecker <brobecker@adacore.com> |
5262 | ||
5263 | * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero | |
5264 | for array types. | |
5265 | * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise. | |
5266 | ||
6e39997a PM |
5267 | 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr> |
5268 | ||
5269 | ARI fix: Remove ATTRIBUTE_UNUSED throughout. | |
0407b3f1 | 5270 | * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove |
6e39997a PM |
5271 | ATTRIBUTE_UNUSED. |
5272 | (cleanup_kernel_helper_return): Likewise. | |
5273 | * arm-tdep.c (copy_unmodified): Likewise. | |
5274 | (copy_preload): Likewise. | |
5275 | (copy_copro_load_store): Likewise. | |
5276 | (cleanup_branch): Likewise. | |
5277 | (copy_b_bl_blx): Likewise. | |
5278 | (copy_bx_blx_reg): Likewise. | |
5279 | (copy_alu_imm): Likewise. | |
5280 | (copy_alu_reg): Likewise. | |
5281 | (copy_alu_shifted_reg): Likewise. | |
5282 | (cleanup_load): Likewise. | |
5283 | (cleanup_store): Likewise. | |
5284 | (cleanup_block_load_pc): Likewise. | |
5285 | (cleanup_svc): Likewise. | |
5286 | (copy_undef): Likewise. | |
5287 | (copy_unpred): Likewise. | |
5288 | * remote.c (register_remote_support_xml): Likewise. | |
5289 | ||
1412f70b HZ |
5290 | 2010-05-05 Hui Zhu <teawater@gmail.com> |
5291 | ||
5292 | * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment. | |
5293 | ||
c4f7c687 MK |
5294 | 2010-05-04 Mark Kettenis <kettenis@gnu.org> |
5295 | ||
5296 | * remote.c (register_remote_support_xml) | |
5297 | (remote_query_supported_append, remote_query_supported): Add cast | |
5298 | to NULL used as sentinel. | |
5299 | * tracepoint.c (tvariables_info_1): Likewise. | |
5300 | * utils.c (add_internal_problem_command): Likewise. | |
5301 | ||
63b4f126 MGD |
5302 | 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
5303 | ||
5304 | * dwarf2loc.c (read_pieced_value, write_pieced_value, | |
5305 | dwarf2_evaluate_loc_desc): Handle not being able to access DWARF | |
5306 | registers gracefully. | |
5307 | ||
2f1bdd26 MGD |
5308 | 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
5309 | ||
0407b3f1 | 5310 | * exec.c (print_section_info): Display entry point without arch |
2f1bdd26 MGD |
5311 | specific parts. |
5312 | ||
e1c34c5d PM |
5313 | 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr> |
5314 | ||
5315 | PR exp/11349. | |
5316 | * printcmd.c (x_command): Only dereference once implicitly for | |
5317 | TYPE_CODE_REF. | |
5318 | ||
ae462839 DE |
5319 | 2010-05-03 Doug Evans <dje@google.com> |
5320 | ||
5321 | * event-loop.c (gdb_timer): Delete unused global. | |
5322 | (create_timer): Update. | |
5323 | ||
1ac77ea1 JK |
5324 | 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
5325 | ||
5326 | * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the | |
5327 | CURRENT->DECLARATION case. | |
5328 | * cp-support.h (struct using_direct): Provide extended comment. | |
5329 | ||
7c54a108 MK |
5330 | 2010-05-03 Mark Kettenis <kettenis@gnu.org> |
5331 | ||
5332 | * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from | |
5333 | HPPABSD_SIZEOF_GREGS. | |
5334 | (HPPAOBSD_SIZEOF_FPREGS): New define. | |
5335 | (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset. | |
5336 | (hppaobsd_supply_fpregset): New function. | |
5337 | (hppaobsd_gregset): Renamed from hppabsd_gregset. | |
5338 | (hppaobsd_fpregset): New variable. | |
5339 | (hppaobsd_regset_from_core_section): Handle floating-point registers. | |
5340 | (_initialize_hppabsd_tdep): Remove spurious blank line. | |
5341 | ||
278582cb PM |
5342 | 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
5343 | ||
5344 | PR pascal/11349. | |
5345 | * p-valprint.c (pascal_value_print): Always dereference a value with | |
5346 | type code TYPE_CODE_REF. | |
0407b3f1 | 5347 | |
f0223081 PA |
5348 | 2010-05-03 Pedro Alves <pedro@codesourcery.com> |
5349 | ||
5350 | * remote.c (remote_notice_signals): New. | |
5351 | (remote_start_remote): In non-stop mode, update the remote end on | |
5352 | which signals it can silently pass. | |
5353 | (init_remote_ops): Install remote_notice_signals. | |
5354 | ||
c25c4a8b JK |
5355 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
5356 | ||
5357 | * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ... | |
5358 | * command.h (error_no_arg): ... here. Remove NORETURN, change | |
5359 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
5360 | * defs.h (NORETURN, ATTR_NORETURN): Remove. | |
5361 | (perror_with_name, verror, error, error_stream, vfatal, fatal) | |
5362 | (internal_verror, internal_error, nomem): Remove NORETURN, change | |
5363 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
5364 | * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror) | |
5365 | (throw_vfatal, throw_error): Remove NORETURN. | |
5366 | (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
5367 | * exceptions.h (throw_exception, throw_verror, throw_vfatal) | |
5368 | (throw_error, deprecated_throw_reason): Remove NORETURN, change | |
5369 | ATTR_NORETURN to ATTRIBUTE_NORETURN. | |
5370 | * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN | |
5371 | to ATTRIBUTE_NORETURN for prototype, for the definition only remove | |
5372 | NORETURN. | |
5373 | * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN. | |
5374 | * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to | |
5375 | ATTRIBUTE_NORETURN. | |
5376 | * target.c (tcomplain): Likewise. | |
5377 | * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to | |
5378 | ATTRIBUTE_NORETURN. | |
5379 | * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror) | |
5380 | (internal_error, perror_with_name, nomem): Remove NORETURN. | |
5381 | * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to | |
5382 | ATTRIBUTE_NORETURN. | |
5383 | ||
a0b31db1 JK |
5384 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
5385 | ||
5386 | * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
5387 | * amd64-tdep.c (amd64_insn_length_fprintf): Likewise. | |
5388 | * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF. | |
5389 | (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
5390 | * complaints.c (find_complaint): New ATTRIBUTE_PRINTF. | |
5391 | (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
5392 | * complaints.h (complaint, internal_complaint): Likewise. | |
5393 | * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment. | |
5394 | (ATTR_FORMAT): Remove. | |
5395 | (query, nquery, yquery, vprintf_filtered, vfprintf_filtered) | |
5396 | (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered) | |
5397 | (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered) | |
5398 | (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf) | |
5399 | (xsnprintf, verror, error, vfatal, fatal, internal_verror) | |
5400 | (internal_error, internal_vwarning, internal_warning, warning) | |
5401 | (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF. | |
5402 | * disasm.c (fprintf_disasm): Likewise. | |
5403 | * exceptions.c (throw_it): Likewise. | |
5404 | * exceptions.h (exception_fprintf, throw_verror, throw_vfatal) | |
5405 | (throw_error): Likewise. | |
5406 | * language.h (type_error, range_error): Likewise. | |
5407 | * linespec.c (cplusplus_error): Likewise. | |
5408 | * mi/mi-interp.c (mi_interp_query_hook): Likewise. | |
5409 | * mi/mi-out.c (mi_field_fmt, mi_message): Likewise. | |
5410 | * monitor.c (monitor_debug): Likewise. | |
5411 | * parser-defs.h (parser_fprintf): Likewise. | |
5412 | * serial.h (serial_printf): Likewise. | |
5413 | * tui/tui-hooks.c (tui_query_hook): Likewise. | |
5414 | * ui-out.c (default_field_fmt, default_message, uo_field_fmt) | |
5415 | (uo_message): Likewise. | |
5416 | * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise. | |
5417 | * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query): | |
5418 | Likewise. | |
5419 | * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise. | |
5420 | ||
02a45ac0 PA |
5421 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
5422 | ||
5423 | * cli-out.c (cli_table_begin, cli_table_body, cli_table_end) | |
5424 | (cli_table_header, cli_begin, cli_end, cli_field_int) | |
5425 | (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces) | |
5426 | (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect): | |
5427 | Delete forward declarations. | |
5428 | (cli_ui_out_impl): Move below the callbacks. | |
5429 | (_initialize_cli_out): Delete. | |
5430 | ||
1915ef4f PA |
5431 | 2010-05-02 Pedro Alves <pedro@codesourcery.com> |
5432 | ||
5433 | * README: Use consistent `GDB' and `GDBserver' spellings. | |
5434 | ||
0dfb946f JK |
5435 | 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
5436 | ||
5437 | * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration. | |
5438 | ||
4d533103 PA |
5439 | 2010-05-01 Pedro Alves <pedro@codesourcery.com> |
5440 | ||
5441 | * infrun.c (prepare_for_detach): In non-stop, context switch to | |
5442 | the thread that got the event before handling the event. | |
5443 | ||
705b5767 TT |
5444 | 2010-04-30 Tom Tromey <tromey@redhat.com> |
5445 | ||
5446 | * symtab.c (symbol_set_names): Fix typo. | |
5447 | ||
3c0ee1a4 PM |
5448 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
5449 | ||
5450 | * python/py-param.c (parm_constants): Avoid ARI warning | |
5451 | by adding ARI comment. | |
5452 | (parmpy_init): Likewise. | |
5453 | ||
ea1fae46 PM |
5454 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
5455 | ||
5456 | * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH | |
5457 | and created type for re-use. | |
5458 | ||
c24d0242 PM |
5459 | 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr> |
5460 | ||
5461 | * NEWS: Mention gdbserver support for x86_64 Windows 64-bit. | |
5462 | ||
a26d8d11 DE |
5463 | 2010-04-29 Doug Evans <dje@google.com> |
5464 | ||
5465 | * ser-base.h (reschedule): Delete prototype. | |
5466 | * ser-base.c (reschedule): Make static. | |
5467 | ||
f8624c62 MGD |
5468 | 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
5469 | ||
5470 | * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove. | |
5471 | (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA. | |
0407b3f1 | 5472 | (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for |
f8624c62 | 5473 | EABI. |
0407b3f1 | 5474 | (arm_linux_init_abi): Set up JB_PC field dependent on FP model in |
f8624c62 MGD |
5475 | use. |
5476 | ||
e66408ed PA |
5477 | 2010-04-29 Pedro Alves <pedro@codesourcery.com> |
5478 | ||
5479 | PR gdb/11557 | |
5480 | ||
5481 | * regcache.c (registers_changed): Rename to ... | |
5482 | (registers_changed_ptid): ... this, and only delete register cache | |
5483 | entries matching the ptid filter argument. | |
5484 | (registers_changed): Reimplement on top of registers_changed_ptid. | |
5485 | * regcache.h (registers_changed_ptid): Declare. | |
5486 | * target.c (target_resume): Flush register caches. | |
5487 | ||
d7b32ed3 | 5488 | 2010-04-29 Phil Muldoon <pmuldoon@redhat.com> |
0407b3f1 AS |
5489 | Tom Tromey <tromey@redhat.com> |
5490 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
5491 | ||
5492 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter. | |
5493 | (SUBDIR_PYTHON_SRCS): Likewise. | |
5494 | (py-parameter.o): New rule. | |
5495 | * python/py-parameter.c: New file. | |
5496 | * python/python-internal.h (gdbpy_initialize_parameter) | |
5497 | (gdbpy_parameter, gdbpy_parameter_value) | |
5498 | (gdbpy_parse_command_name): Declare. | |
5499 | * python/py-cmd.c (parse_command_name): Rename to | |
5500 | gdbpy_parse_command_name. | |
5501 | (gdbpy_parse_command_name): Accept a starting list parameter and | |
5502 | use over cmdlist. | |
5503 | (cmdpy_init): Use gdbpy_parse_command_name. | |
5504 | * python/python.c (parameter_to_python): Rename to | |
5505 | gdbpy_parameter_to_python. Accept enum var_types and value. | |
5506 | (gdbpy_parameter): Use gdbpy_parameter_value. | |
5507 | (_initialize_python): Call gdbpy_initialize_parameters. | |
d7b32ed3 | 5508 | |
ce72ce41 MGD |
5509 | 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
5510 | ||
5511 | * MAINTAINERS: Add myself for write after approval privileges. | |
5512 | ||
6aecb9c2 JB |
5513 | 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com> |
5514 | ||
5515 | D language support. | |
5516 | * Makefile.in (SFILES): Add d-lang.c d-valprint.c. | |
5517 | (COMMON_OBS): Add d-lang.o d-valprint.o. | |
5518 | (HFILES_NO_SRCDIR): Add d-lang.h. | |
5519 | * NEWS: Mention D language support. | |
5520 | * c-lang.c (c_emit_char, exp_descriptor_c): Make public. | |
5521 | * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration. | |
5522 | * d-lang.c: New file. | |
5523 | * d-lang.h: New file. | |
5524 | * d-valprint.c: New file. | |
5525 | * defs.h (enum language): Add language_d. | |
5526 | * dwarf2read.c (set_cu_language): Add DW_LANG_D. | |
5527 | * language.c (binop_result_type, integral_type, character_type) | |
5528 | (string_type, boolean_type, structured_type): Add language_d. | |
5529 | * symfile.c (init_filename_language_table): Add language_d. | |
5530 | * symtab.c: Include d-lang.h. | |
5531 | (symbol_init_language_specific, symbol_find_demangled_name) | |
5532 | (symbol_natural_name, lookup_symbol_in_language) | |
5533 | (symbol_demangled_name, symbol_matches_domain): Add language_d. | |
5534 | ||
6f992fbf JB |
5535 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5536 | ||
5537 | * solib-svr4.c (solib_svr4_r_map): Expand function description. | |
5538 | ||
dde59185 JB |
5539 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5540 | ||
5541 | * symfile.c (init_filename_language_table): Register .dg files | |
5542 | with language_ada. | |
5543 | ||
d09ce91e JB |
5544 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5545 | ||
5546 | * gdbtypes.h (struct main_type): Expand comment about target_type | |
5547 | field. | |
5548 | ||
67f1675e JB |
5549 | 2010-04-27 Pedro Alves <pedro@codesourcery.com> |
5550 | Tristan Gingold <gingold@adacore.com> | |
02aeec7b JB |
5551 | |
5552 | * symfile.c (reread_symbols): Also search for file in libraries. | |
5553 | Update comment. | |
5554 | ||
dfd0fe27 JB |
5555 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5556 | ||
5557 | * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets | |
5558 | in terms of configuration. | |
5559 | ||
0133421a JK |
5560 | 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
5561 | ||
5562 | * objfiles.c: Include solist.h. | |
5563 | (free_all_objfiles): New variable so. Check stale solist objfiles. | |
5564 | * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles | |
5565 | and no_shared_libraries. | |
5566 | ||
e78f4312 JB |
5567 | 2010-04-27 Joel Brobecker <brobecker@adacore.com> |
5568 | ||
5569 | ARI warning fix. | |
5570 | * python/py-auto-load.c (source_section_scripts): Remove trailing | |
5571 | new-line in i18n string. | |
5572 | ||
9214d371 DE |
5573 | 2010-04-26 Doug Evans <dje@google.com> |
5574 | ||
5575 | * serial.c (serial_write): Handle serial_debug_p akin to serial_read. | |
5576 | ||
3f172e24 TT |
5577 | 2010-04-26 Tom Tromey <tromey@redhat.com> |
5578 | ||
5579 | * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the | |
5580 | command list. | |
5581 | ||
e790e06e PM |
5582 | 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr> |
5583 | ||
5584 | Removal of config/i386/nm-i386sol2.h native configuration file. | |
5585 | * config/i386/nm-i386sol2.h: Remove file. | |
5586 | * config/i386/i386sol2.mh: Remove NAT_FILE definition. | |
5587 | * config/i386/sol2-64.mh: Idem. | |
88562582 PM |
5588 | * config/djgpp/fnchange.lst: Remove reference to that file. |
5589 | * Makefile.in (HFILES_NO_SRCDIR): Idem. | |
e790e06e | 5590 | |
b7da9e9f PM |
5591 | 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr> |
5592 | ||
5593 | PR breakpoints/11531. | |
5594 | * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove | |
5595 | macro definition and related comment. | |
5596 | * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro. | |
5597 | (resume): Remove code and comment related to this macro. | |
5598 | ||
72f6eb52 JK |
5599 | 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
5600 | ||
5601 | * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size. | |
5602 | Fix whitespace. | |
5603 | ||
ab38a727 PA |
5604 | 2010-04-24 Pedro Alves <pedro@codesourcery.com> |
5605 | ||
5606 | * defs.h: Adjust comment. | |
5607 | * filesystem.h, filesystem.c: New files. | |
5608 | * Makefile.in (SFILES): Add filesystem.c. | |
5609 | (COMMON_OBS): Add filesystem.o. | |
5610 | * solib.c (solib_find): Handle DOS-based filesystems. Handle | |
5611 | different target and host path flavours. | |
5612 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
5613 | has_dos_based_file_system on the gdbarch. | |
5614 | * arm-wince-tdep.c (arm_wince_init_abi): Ditto. | |
5615 | * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. | |
5616 | * i386-tdep.c (i386_go32_init_abi): Ditto. | |
5617 | * gdbarch.sh (has_dos_based_file_system): New. | |
5618 | * gdbarch.h, gdbarch.c: Regenerate. | |
5619 | * NEWS: Mention improved support for remote targets with DOS-based | |
5620 | filesystems. Mention new `set/show target-file-system-kind' | |
5621 | commands. | |
5622 | ||
35c9c7ba SS |
5623 | 2010-04-23 Stan Shebs <stan@codesourcery.com> |
5624 | ||
5625 | * ax.h (struct agent_expr): Merge in agent_reqs fields, add some | |
5626 | comments. | |
5627 | (struct agent_reqs): Remove. | |
5628 | (ax_reg_mask): Declare. | |
5629 | * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. | |
5630 | (free_agent_expr): Free reg_mask. | |
5631 | (ax_print): Add scope and register mask info. | |
5632 | (ax_reqs): Remove agent_reqs argument, use agent expression | |
5633 | fields, and move part of register mask computation to... | |
5634 | (ax_reg_mask): New function. | |
5635 | * ax-gdb.c (gen_trace_static_fields): Call it. | |
5636 | (gen_traced_pop): Ditto. | |
5637 | (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. | |
5638 | (gen_trace_for_var): Pass gdbarch to new_agent_expr. | |
5639 | (gen_trace_for_expr): Ditto, and clear optimized_out flag. | |
5640 | (gen_eval_for_expr): Ditto, and require an rvalue. | |
5641 | (agent_command): Call ax_reqs. | |
5642 | (agent_eval_command): Ditto. | |
5643 | * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. | |
5644 | (validate_action_line): Ditto. | |
5645 | (collect_symbol): Ditto. | |
5646 | (encode_actions_1): Ditto. | |
5647 | ||
492928e4 JK |
5648 | 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com> |
5649 | Paul Pluzhnikov <ppluzhnikov@google.com> | |
5650 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5651 | ||
5652 | Fix deadlock on looped list of loaded shared objects. | |
5653 | * solib-svr4.c (LM_PREV): New function. | |
5654 | (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. | |
5655 | (svr4_current_sos): Check for correct l_prev. New variables prev_lm | |
5656 | and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. | |
5657 | * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. | |
5658 | ||
66d09542 DE |
5659 | 2010-04-23 Doug Evans <dje@google.com> |
5660 | ||
88a1906b DE |
5661 | * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using |
5662 | python. | |
5663 | * configure: Regenerate. | |
5664 | * main.c: #include "python/python.h". | |
5665 | (captured_main): Defer loading auto-loaded scripts until after | |
5666 | local_gdbinit has been sourced. | |
5667 | * python/py-auto-load.c (gdbpy_global_auto_load): New global. | |
5668 | (load_auto_scripts_for_objfile): New function. | |
5669 | (auto_load_new_objfile): Call it. | |
5670 | * python/python.h (gdbpy_global_auto_load): Declare. | |
5671 | (load_auto_scripts_for_objfile): Declare. | |
5672 | ||
66d09542 DE |
5673 | Add support for auto-loading scripts from .debug_gdb_scripts section. |
5674 | * NEWS: Add entry for .debug_gdb_scripts. | |
5675 | * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. | |
5676 | (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. | |
5677 | (py-auto-load.o): New rule. | |
5678 | * cli/cli-cmds.c (find_and_open_script): Make externally visible. | |
5679 | * cli/cli-cmds.h (find_and_open_script): Update prototype. | |
5680 | * python/py-auto-load.c: New file. | |
5681 | * python/python-internal.h: #include <stdio.h>. | |
5682 | (set_python_list, show_python_list): Declare. | |
5683 | (gdbpy_initialize_auto_load): Declare. | |
5684 | (source_python_script_for_objfile): Declare. | |
5685 | * python/python.c: Remove #include of observer.h. | |
5686 | (gdbpy_auto_load): Moved to py-auto-load.c. | |
5687 | (GDBPY_AUTO_FILENAME): Ditto. | |
5688 | (gdbpy_new_objfile): Delete. | |
5689 | (source_python_script_for_objfile): New function. | |
5690 | (set_python_list, show_python_list): Make externally visible. | |
5691 | (_initialize_python): Move "auto-load" command to py-auto-load.c | |
5692 | and observer_attach_new_objfile to py-auto-load.c. | |
5693 | ||
3a48e6ff | 5694 | 2010-04-23 Jerome Guitton <guitton@adacore.com> |
0407b3f1 | 5695 | |
3a48e6ff JG |
5696 | * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA) |
5697 | (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. | |
5698 | (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): | |
5699 | New constants. | |
5700 | (alpha_heuristic_analyze_probing_loop): New function. | |
5701 | (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect | |
5702 | and handle cases when a stack probe loop is generated. | |
5703 | * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. | |
5704 | (alpha_mdebug_max_frame_size_exceeded): New function. | |
5705 | (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. | |
5706 | (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): | |
5707 | Return 0 when the maximum debuggable frame size has been exceeded. | |
5708 | ||
e4166a49 JB |
5709 | 2010-04-23 Joel Brobecker <brobecker@adacore.com> |
5710 | ||
5711 | Fix ARI warning. | |
5712 | * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline. | |
5713 | ||
8bd10a10 CM |
5714 | 2010-04-20 Chris Moller <cmoller@redhat.com> |
5715 | ||
5716 | PR 10179 | |
5717 | ||
5718 | * symtab.c (rbreak_command): Added code to include a filename | |
5719 | specification in the rbreak argument. | |
5720 | * NEWS: Added a brief description of filename-qualified rbreak. | |
5721 | ||
c0201579 JK |
5722 | 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
5723 | ||
5724 | Fix crashes on dangling display expressions. | |
5725 | * ada-lang.c (ada_operator_check): New function. | |
5726 | (ada_exp_descriptor): Fill-in the field operator_check. | |
5727 | * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. | |
5728 | * jv-lang.c (exp_descriptor_java): Likewise. | |
5729 | * m2-lang.c (exp_descriptor_modula2): Likewise. | |
5730 | * scm-lang.c (exp_descriptor_scm): Likewise. | |
5731 | * parse.c (exp_descriptor_standard): Likewise. | |
5732 | (operator_check_standard): New function. | |
5733 | (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. | |
5734 | * parser-defs.h (struct exp_descriptor): New field operator_check. | |
5735 | (operator_check_standard, exp_uses_objfile): New declarations. | |
5736 | * printcmd.c: Remove the inclusion of solib.h. | |
5737 | (display_uses_solib_p): Remove the function. | |
5738 | (clear_dangling_display_expressions): Call lookup_objfile_from_block | |
5739 | and exp_uses_objfile instead of display_uses_solib_p. | |
5740 | * solist.h (struct so_list) <objfile>: New comment. | |
5741 | * symtab.c (lookup_objfile_from_block): Remove the static qualifier. | |
5742 | * symtab.h (lookup_objfile_from_block): New declaration. | |
5743 | (struct general_symbol_info) <obj_section>: Extend the comment. | |
5744 | ||
6ffbb7ab TJB |
5745 | 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
5746 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
5747 | ||
5748 | * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. | |
5749 | (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, | |
5750 | ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, | |
5751 | PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, | |
5752 | PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, | |
5753 | PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, | |
5754 | PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, | |
5755 | PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, | |
5756 | PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, | |
5757 | PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, | |
5758 | PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, | |
5759 | PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, | |
5760 | PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): | |
5761 | Define, in case <ptrace.h> doesn't provide it. | |
5762 | (booke_debug_info): New variable. | |
5763 | (max_slots_number): Ditto. | |
5764 | (hw_break_tuple): New struct. | |
5765 | (thread_points): Ditto. | |
5766 | (ppc_threads): New variable. | |
5767 | (PPC_DEBUG_CURRENT_VERSION): New define. | |
5768 | (have_ptrace_new_debug_booke): New function. | |
5769 | (ppc_linux_check_watch_resources): Renamed to ... | |
5770 | (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. | |
5771 | (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. | |
5772 | (booke_cmp_hw_point): New function. | |
5773 | (booke_find_thread_points_by_tid): Ditto. | |
5774 | (booke_insert_point): Ditto. | |
5775 | (booke_remove_point): Ditto. | |
5776 | (ppc_linux_insert_hw_breakpoint): Ditto. | |
5777 | (ppc_linux_remove_hw_breakpoint): Ditto. | |
5778 | (get_trigger_type): Ditto. | |
5779 | (ppc_linux_insert_watchpoint): Handle BookE processors. | |
5780 | (ppc_linux_remove_watchpoint): Ditto. | |
5781 | (ppc_linux_new_thread): Ditto. | |
5782 | (ppc_linux_thread_exit): New function.. | |
5783 | (ppc_linux_stopped_data_address): Handle BookE processors. | |
5784 | (ppc_linux_watchpoint_addr_within_range): Ditto. | |
5785 | (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and | |
5786 | to_remove_hw_breakpoint fields of the target operations struct. | |
5787 | Add observe for the thread_exit event. | |
5788 | ||
be0d2954 L |
5789 | 2010-04-22 H.J. Lu <hongjiu.lu@intel.com> |
5790 | ||
5791 | * i386-linux-nat.c (regmap): Removed. | |
5792 | (fetch_register): Replace regmap with | |
5793 | i386_linux_gregset_reg_offset. | |
5794 | (store_register): Likewise. | |
5795 | (supply_gregset): Likewise. | |
5796 | (fill_gregset): Likewise. | |
5797 | ||
5798 | * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it | |
5799 | global. | |
5800 | ||
5801 | * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New. | |
5802 | ||
f56dcb88 CM |
5803 | 2010-04-22 Chris Moller <cmoller@redhat.com> |
5804 | ||
5805 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
758afad7 L |
5806 | method of popping recursion-detection stack with a method based on |
5807 | obstack_object_size(). (Similar to the PR9167 patch below, but for | |
f56dcb88 CM |
5808 | the static array obstack rather than the static member obstack.) |
5809 | ||
6cd6a2ae L |
5810 | 2010-04-22 H.J. Lu <hongjiu.lu@intel.com> |
5811 | ||
5812 | * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. | |
5813 | (_initialize_amd64_linux_nat): Replace | |
5814 | amd64_linux_gregset64_reg_offset with | |
5815 | amd64_linux_gregset_reg_offset. | |
5816 | ||
5817 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it | |
5818 | global. | |
5819 | ||
5820 | * amd64-tdep.h (amd64_linux_gregset_reg_offset): New. | |
5821 | ||
621791b8 PM |
5822 | 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> |
5823 | ||
5824 | PR stabs/11479. | |
5825 | * stabsread.c (set_length_in_type_chain): New function. | |
5826 | (read_struct_type): Call set_length_in_type_chain function. | |
5827 | (read_enum_type): Idem. | |
5828 | ||
105c2d85 SS |
5829 | 2010-04-21 Stan Shebs <stan@codesourcery.com> |
5830 | Nathan Sidwell <nathan@codesourcery.com> | |
5831 | ||
5832 | * tracepoint.c (trace_save): Open in binary mode. | |
5833 | ||
9a22f0d0 PM |
5834 | 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> |
5835 | ||
5836 | * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 | |
5837 | fields. | |
0407b3f1 | 5838 | * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and |
9a22f0d0 PM |
5839 | builtin_char32 fields. |
5840 | * printcmd.c (decode_format): Set char size to '\0' | |
5841 | for strings unless explicit size is given. | |
5842 | (print_formatted): Correct calculation of NEXT_ADDRESS | |
5843 | for 16 or 32 bit strings. | |
5844 | (do_examine): Do not force byte size for strings. | |
5845 | Use builtin_char16 and builtin_char32 types to display | |
0407b3f1 | 5846 | 16 or 32 bit-wide strings. |
9a22f0d0 PM |
5847 | (x_command): Set LAST_SIZE to 'b' for string type. |
5848 | ||
f335d1b3 L |
5849 | 2010-04-21 H.J. Lu <hongjiu.lu@intel.com> |
5850 | ||
5851 | PR corefiles/11523 | |
5852 | * amd64-linux-tdep.c (amd64_linux_core_read_description): Check | |
5853 | XCR0 first. | |
5854 | ||
5855 | * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if | |
5856 | there is no .reg-xstate section. | |
5857 | (i386_linux_core_read_description): Check XCR0 first. | |
5858 | ||
a9789a6b MF |
5859 | 2010-04-21 Mike Frysinger <vapier@gentoo.org> |
5860 | ||
5861 | * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert () | |
5862 | for len <= 8. | |
5863 | ||
0b66f317 CM |
5864 | 2010-04-21 Chris Moller <cmoller@redhat.com> |
5865 | ||
5866 | PR 9167 | |
5867 | * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() | |
32d7376d L |
5868 | method of popping recursion-detection stack with a method based on |
5869 | obstack_object_size(). | |
0b66f317 | 5870 | |
6e354e5e PM |
5871 | 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
5872 | ||
5873 | PR pascal/11492. | |
5874 | * p-valprint.c (pascal_val_print): Fix default printing of integer | |
5875 | arrays. | |
5876 | ||
57174f31 PM |
5877 | 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
5878 | ||
5879 | Fix compilation warning on gcc-4.1.2. | |
5880 | * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize | |
5881 | local variable`pc' to zero. | |
5882 | ||
6fbc7cd8 JB |
5883 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5884 | ||
5885 | Implement thread support with core files on alpha-tru64. | |
5886 | * dec-thread.c (dec_thread_find_new_threads): New function, | |
5887 | extracted from resync_thread_list. | |
5888 | (resync_thread_list): Add OPS parameter. Replace extracted-out | |
5889 | code by call to dec_thread_find_new_threads. | |
5890 | (dec_thread_wait): Update call to resync_thread_list. | |
5891 | (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads. | |
5892 | ||
438c98a1 JB |
5893 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5894 | ||
5895 | * ada-lang.c (value_pointer): New function. | |
5896 | (make_array_descriptor): Call value_pointer to convert addresses to | |
5897 | pointers. | |
5898 | ||
2971b56b JB |
5899 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5900 | ||
5901 | * rs6000-aix-tdep.c: #include exceptions.h. | |
5902 | (rs6000_convert_from_func_ptr_addr): If an exception is thrown | |
5903 | while reading the memory at ADDR, then ADDR cannot be a function | |
5904 | descriptor. | |
5905 | ||
be942545 JB |
5906 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5907 | ||
5908 | * ada-typeprint.c (ada_print_typedef): New function. | |
5909 | * ada-lang.h (ada_print_typedef): Add declaration. | |
5910 | * ada-lang.c (ada_language_defn): set la_print_typdef field | |
5911 | to ada_print_typedef. | |
5912 | ||
1ca8fce0 JB |
5913 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5914 | ||
5915 | * procfs.c (procfs_address_to_host_pointer): Only define when used. | |
5916 | ||
e9ef4f39 JB |
5917 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5918 | ||
5919 | * procfs.c (iterate_over_mappings_cb_ftype): New typedef. | |
5920 | (iterate_over_mappings): Adjust function profile. Add declaration. | |
5921 | (insert_dbx_link_bpt_in_region, info_mappings_callback): | |
5922 | Adjust accordingly. | |
5923 | ||
e294797a JB |
5924 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5925 | ||
5926 | * procfs.c (solib_mappings_callback): Move function up to avoid | |
5927 | a compiler warning. | |
5928 | ||
a223f1e7 JB |
5929 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5930 | ||
5931 | * procfs.c (find_signalled_thread, find_stop_signal): Move | |
5932 | these functions down to define them only when used. | |
5933 | ||
0c3acc09 JB |
5934 | 2010-04-20 Joel Brobecker <brobecker@adacore.com> |
5935 | ||
5936 | * valprint.c (common_val_print): Fix the value before extracting | |
5937 | its contents. | |
5938 | * ada-lang.c (ada_to_fixed_value): Make this function extern. | |
5939 | * ada-lang.h (ada_to_fixed_value): New function declaration. | |
5940 | * ada-valprint.c (ada_value_print): Use ada_to_fixed_value | |
5941 | to avoid code duplication and fix a bug in the handling of | |
5942 | fixed types contents. | |
5943 | ||
31ef98ae TT |
5944 | 2010-04-20 Tom Tromey <tromey@redhat.com> |
5945 | ||
5946 | * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name. | |
5947 | (read_partial_die): Likewise. | |
5948 | (dwarf_attr_name): Likewise. | |
5949 | ||
ec31cde5 | 5950 | 2010-04-20 Chris Moller <cmoller@redhat.com> |
0407b3f1 | 5951 | |
ec31cde5 CM |
5952 | PR 10867 |
5953 | ||
5954 | * cp-valprint.c (global): Adding new static array recursion | |
5955 | detection obstack. | |
5956 | (cp_print_value_fields, cp_print_static_field): Added new static | |
5957 | array recursion detection code. | |
5958 | ||
e0e0e543 MK |
5959 | 2010-04-20 Mark Kettenis <kettenis@gnu.org> |
5960 | ||
5961 | * i386-linux-tdep.c (i386_linux_regset_sections): Size of the | |
5962 | general-purpose register set should be 68 instead of 144. | |
5963 | (i386_linux_sse_regset_sections): Likewise. | |
5964 | (i386_linux_avx_regset_sections): Likewise. | |
5965 | ||
08922a10 SS |
5966 | 2010-04-20 Stan Shebs <stan@codesourcery.com> |
5967 | Nathan Sidwell <nathan@codesourcery.com> | |
5968 | ||
5969 | * dwarf2loc.c (struct axs_var_loc): New struct. | |
5970 | (dwarf2_tracepoint_var_loc): New function. | |
5971 | (dwarf2_tracepoint_var_access): New function. | |
5972 | (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal | |
5973 | with DW_OP_piece. | |
5974 | (locexpr_describe_location_piece): New function. | |
5975 | (locexpr_describe_location_1): New function. | |
5976 | (locexpr_describe_location): Call it, update signature. | |
5977 | (loclist_describe_location): Rewrite to loop over locations, | |
5978 | update signature. | |
5979 | * symtab.h (struct symbol_computed_ops): Add address to | |
5980 | describe_location arguments, return void. | |
5981 | * printcmd.c (address_info): Get context PC, pass to computed | |
5982 | location description. | |
5983 | * tracepoint.c (scope_info): Ditto. | |
5984 | * ax-gdb.c (trace_kludge): Export. | |
5985 | ||
2dc7f7b3 TT |
5986 | 2010-04-20 Tom Tromey <tromey@redhat.com> |
5987 | ||
5988 | * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4. | |
5989 | (struct dwarf2_cie) <segment_size>: New field. | |
5990 | * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4. | |
5991 | (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset, | |
5992 | DW_FORM_exprloc. | |
5993 | (read_attribute_value): Handle DW_FORM_flag_present, | |
5994 | DW_FORM_sec_offset, DW_FORM_exprloc. | |
5995 | (dump_die_shallow): Likewise. | |
5996 | (attr_form_is_section_offset): Handle DW_FORM_sec_offset. | |
5997 | (dwarf2_const_value): Handle DW_FORM_exprloc. | |
5998 | (attr_form_is_block): Likewise. | |
5999 | (struct line_header) <maximum_ops_per_instruction>: New field. | |
6000 | (dwarf_decode_line_header): Set new field. | |
6001 | (dwarf_decode_lines): Handle new field. | |
6002 | ||
ce4b0682 SDJ |
6003 | 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
6004 | ||
6005 | * f-exp.y: Add new production to recognize the `logical*8' type. | |
6006 | (LOGICAL_S8_KEYWORD): New token. | |
6007 | * f-lang.c (enum f_primitive_types) | |
6008 | <f_primitive_type_logical_s8>: New field. | |
6009 | (f_language_arch_info): Handling `logical*8' type. | |
6010 | (build_fortran_types): Building `logical*8' type. | |
6011 | * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field. | |
6012 | ||
ff9f22f1 DE |
6013 | 2010-04-19 Doug Evans <dje@google.com> |
6014 | ||
6015 | * ser-base.c (generic_readchar): Watch for EOF in read of error_fd. | |
6016 | * ser-pipe.c (pipe_open): Fix file descriptor leaks. | |
6017 | (pipe_close): Ditto. | |
6018 | ||
437125bd PM |
6019 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6020 | ||
6021 | * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes. | |
6022 | ||
e8e6c82e PM |
6023 | 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
6024 | ||
6025 | * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle | |
6026 | type to void function. | |
6027 | ||
4136fdd2 SS |
6028 | 2010-04-19 Stan Shebs <stan@codesourcery.com> |
6029 | Vladimir Prus <vladimir@codesourcery.com> | |
6030 | ||
6031 | * tracepoint.c (tfind_1): Add missing newline, report exit from | |
6032 | tfind mode as such. | |
6033 | * target.c (update_current_target): Make default | |
6034 | to_trace_find return -1. | |
6035 | ||
0c4b2e63 MF |
6036 | 2010-04-19 Mike Frysinger <vapier@gentoo.org> |
6037 | ||
6038 | * objc-lang.c (find_methods): Move symname check up. | |
6039 | ||
78076abc PA |
6040 | 2010-04-19 Pedro Alves <pedro@codesourcery.com> |
6041 | ||
6042 | * ada-lang.c (print_recreate_exception) | |
6043 | <ex_catch_exception_unhandled>: It's "catch exception unhandled", | |
6044 | not "catch unhandled". | |
6045 | ||
6149aea9 PA |
6046 | 2010-04-19 Pedro Alves <pedro@codesourcery.com> |
6047 | ||
6048 | PR breakpoints/8554. | |
6049 | ||
6050 | Implement `save-breakpoints'. | |
6051 | ||
6052 | * breakpoint.c (save_cmdlist): New. | |
6053 | (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close | |
6054 | to save_cmdlist. | |
6055 | (print_recreate_catch_fork): New. | |
6056 | (catch_fork_breakpoint_ops): Install it. | |
6057 | (print_recreate_catch_vfork): New. | |
6058 | (catch_vfork_breakpoint_ops): Install it. | |
6059 | (print_recreate_catch_syscall): New. | |
6060 | (catch_syscall_breakpoint_ops): Install it. | |
6061 | (print_recreate_catch_exec): New. | |
6062 | (catch_exec_breakpoint_ops): Install it. | |
6063 | (print_recreate_exception_catchpoint): New. | |
6064 | (gnu_v3_exception_catchpoint_ops): Install it. | |
6065 | (save_breakpoints): New, based on tracepoint_save_command, but | |
6066 | handle all breakpoint types. | |
6067 | (save_breakpoints_command): New. | |
6068 | (tracepoint_save_command): Rename to... | |
6069 | (save_tracepoints_command): ... this, and reimplement using | |
6070 | save_breakpoints. | |
6071 | (save_command): New. | |
6072 | (_initialize_breakpoints): Install the "save" command prefix. | |
6073 | Install the "save breakpoints" command. Make "save-tracepoints" a | |
6074 | deprecated alias for "save tracepoints". | |
6075 | * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. | |
6076 | * ada-lang.c (print_recreate_exception): New. | |
6077 | (print_recreate_catch_exception): New. | |
6078 | (catch_exception_breakpoint_ops): Install it. | |
6079 | (print_recreate_catch_exception_unhandled): New. | |
6080 | (catch_exception_unhandled_breakpoint_ops): Install it. | |
6081 | (print_recreate_catch_assert): New. | |
6082 | (catch_assert_breakpoint_ops): Install it. | |
6083 | ||
6084 | * NEWS: Mention the new `save breakpoints' command. Mention the | |
6085 | new `save tracepoints' alias and that `save-tracepoints' is now | |
6086 | deprecated. | |
6087 | ||
0a8fce9a PA |
6088 | 2010-04-18 Pedro Alves <pedro@codesourcery.com> |
6089 | ||
6090 | PR tui/9217 | |
6091 | ||
6092 | * tui/tui-out.c: Include cli-out.h. | |
6093 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
6094 | (tui_begin, tui_end, tui_field_int, tui_field_skip) | |
6095 | (tui_field_string, tui_field_fmt, tui_spaces, tui_text) | |
6096 | (tui_message, tui_wrap_hint, tui_flush): Delete forward | |
6097 | declarations. | |
6098 | (struct ui_out_data): Rename to... | |
6099 | (struct tui_ui_out_data): ... this. Remove `stream' and | |
6100 | `suppress_output' fields, and inherit cli_ui_out_data. | |
6101 | (tui_out_data): New typedef. | |
6102 | (tui_ui_out_impl): Don't initialize fields staticaly. | |
6103 | (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) | |
6104 | (tui_begin, tui_end): Delete. | |
6105 | (tui_field_int): Adjust to delegate most work to the base type. | |
6106 | (tui_field_skip): Delete. | |
6107 | (tui_field_string, tui_field_fmt): Adjust comment. Adjust to | |
6108 | delegate most work to the base type. | |
6109 | (tui_spaces): Delete. | |
6110 | (tui_text): Adjust to delegate most work to the base type. | |
6111 | (tui_message): Delete. | |
6112 | (tui_wrap_hint): Delete. | |
6113 | (tui_flush): Delete. | |
6114 | (out_field_fmt): Delete. | |
6115 | (field_separator): Delete. | |
6116 | (tui_out_new): Adjust to initialize the base type. | |
6117 | (_initialize_tui_out): Initialize tui_ui_out_impl. | |
6118 | * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed | |
6119 | cli_ui_out_data. | |
6120 | (cli_out_data): Adjust. | |
6121 | (cli_ui_out_impl): Make extern. | |
6122 | (cli_table_header, cli_field_int, cli_field_skip): Use | |
6123 | uo_field_string instead of cli_field_string. | |
6124 | (cli_redirect): Adjust to use cli_out_data. | |
6125 | (cli_out_data_ctor): New. | |
6126 | (cli_out_new): Use it. | |
6127 | * cli-out.h (struct ui_file): Remove forward declaration. | |
6128 | (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. | |
6129 | (cli_ui_out_impl): Declare. | |
6130 | (cli_out_data_ctor): Declare. | |
6131 | * ui-out.c (struct ui_out) <data>: Change type to void pointer. | |
6132 | (uo_field_string): No longer static. | |
6133 | (ui_out_data): Change return type to void pointer. | |
6134 | (ui_out_new): Change `data' parameter type to void pointer. | |
6135 | * ui-out.h (struct ui_out_data): Don't forward declare. | |
6136 | (ui_out_data): Change return type to void pointer. | |
6137 | (ui_out_new): Change `data' parameter type to void pointer. | |
6138 | (uo_field_string): Declare. | |
6139 | ||
172240dd PA |
6140 | 2010-04-17 Pedro Alves <pedro@codesourcery.com> |
6141 | ||
6142 | * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, | |
6143 | instead of always false. | |
6144 | ||
ed41462c L |
6145 | 2010-04-17 H.J. Lu <hongjiu.lu@intel.com> |
6146 | ||
6147 | PR corefiles/11511 | |
6148 | * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support | |
6149 | orig_rax. | |
6150 | ||
cc60f2e3 PA |
6151 | 2010-04-17 Pedro Alves <pedro@codesourcery.com> |
6152 | ||
6153 | * breakpoint.c (watchpoints_triggered): Use | |
6154 | is_hardware_watchpoint. | |
6155 | (watchpoints_triggered): Ditto. | |
6156 | (bpstat_check_location): Use is_watchpoint and | |
6157 | is_hardware_watchpoint. | |
6158 | (bpstat_check_watchpoint): Use is_watchpoint and | |
6159 | is_hardware_watchpoint. | |
6160 | (bpstat_stop_status): Fix comment. | |
6161 | (user_settable_breakpoint): Use is_watchpoint. | |
6162 | (hw_watchpoint_used_count): Use is_hardware_watchpoint. | |
6163 | (disable_watchpoints_before_interactive_call_start): Use | |
6164 | is_watchpoint. | |
6165 | (enable_watchpoints_after_interactive_call_stop): Use | |
6166 | is_watchpoint. | |
6167 | (clear_command): Use is_watchpoint. | |
6168 | (do_enable_breakpoint): Use is_watchpoint. | |
6169 | ||
cb7db0f2 MF |
6170 | 2010-04-16 Mike Frysinger <vapier@gentoo.org> |
6171 | ||
6172 | * solib-frv.c (enable_break1_done): Delete. | |
6173 | (enable_break2): Do not check enable_break1_done. Move the | |
6174 | enable_break2_done setting and call to | |
6175 | remove_solib_event_breakpoints() to the end. Return without | |
6176 | warning when the contents of _dl_debug_addr are 0. | |
6177 | (enable_break): Do not set enable_break1_done. | |
6178 | (frv_clear_solib): Likewise. | |
6179 | ||
d77b48cf KB |
6180 | 2010-04-16 Kevin Buettner <kevinb@redhat.com> |
6181 | ||
6182 | * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning | |
6183 | instead of an error if no PLT entry is found. Return a | |
6184 | potentially useful result. | |
6185 | (m32c_m16c_pointer_to_address): Add code to search for function | |
6186 | address when no .plt entry is found. | |
6187 | ||
f90824dc SS |
6188 | 2010-04-16 Stan Shebs <stan@codesourcery.com> |
6189 | ||
6190 | * tracepoint.c (trace_variable_command): Run a cleanup. | |
6191 | ||
9b79b476 PM |
6192 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
6193 | ||
6194 | * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range. | |
6195 | ||
711e434b PM |
6196 | 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr> |
6197 | ||
6198 | Support for Windows OS Thread Information Block. | |
6199 | * NEWS: Document new feature. | |
6200 | * remote.c (PACKET_qGetTIBAddr): New enum element. | |
6201 | (remote_get_tib_address): New function. | |
6202 | (init_remote_ops): Set to_get_tib_address field | |
6203 | to remote_get_tib_address. | |
6204 | (_initialize_remote): Add add_packet_config_cmd | |
6205 | for PACKET_qGetTIBAddr. | |
6206 | * target.c (update_current_target): Set default value for | |
6207 | new to_get_tib_address field. | |
6208 | * target.h (target_ops): New field to_get_tib_address. | |
6209 | (target_get_tib_address): New macro. | |
6210 | * windows-nat.c (thread_info): Add thread_local_base field. | |
6211 | (windows_add_thread): Add tlb argument of type 'void *'. | |
6212 | (fake_create_process): Adapt windows_add_thread call. | |
6213 | (get_windows_debug_event): Idem. | |
6214 | (windows_get_tib_address): New function. | |
6215 | (init_windows_ops): Set to_get_tib_address field | |
6216 | to remote_get_tib_address. | |
6217 | (_initialize_windows_nat): Replace info_w32_cmdlist | |
6218 | initialization by a call to init_w32_command_list. | |
6219 | (info_w32_command, info_w32_cmdlist): Removed from here... | |
6220 | to windows-tdep.c file. | |
6221 | * windows-tdep.h (info_w32_cmdlist): Declare. | |
0407b3f1 | 6222 | (init_w32_command_list): New external function |
711e434b PM |
6223 | declaration. |
6224 | * windows-tdep.c: Add several headers. | |
6225 | (info_w32_cmdlist): to here, made global. | |
6226 | (thread_information_32): New struct. | |
6227 | (thread_information_64): New struct. | |
6228 | (TIB_NAME): New char array. | |
6229 | (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants. | |
6230 | (maint_display_all_tib): New static variable. | |
6231 | (windows_get_tlb_type): New function. | |
6232 | (tlb_value_read, tlb_value_write): New functions. | |
6233 | (tlb_value_funcs): New static struct. | |
6234 | (tlb_make_value): New function. | |
6235 | (display_one_tib): New function. | |
6236 | (display_tib): New function. | |
6237 | (show_maint_show_all_tib):New function. | |
6238 | (info_w32_command): Moved from windows-nat.c. | |
6239 | (init_w32_command_list): New function. | |
6240 | (_initialize_windows_tdep): New function. | |
6241 | New "maint set/show show-all-tib" command | |
6242 | New "$_tlb" internal variable. | |
6243 | ||
cae3f17b JB |
6244 | 2010-04-16 Joel Brobecker <brobecker@adacore.com> |
6245 | ||
6246 | * tui/tui-regs.c (tui_display_register): Add comment about | |
6247 | a couple of casts. | |
6248 | * tui/tui-stack.c (tui_show_locator_content): Ditto. | |
6249 | ||
2ce6d6bf SS |
6250 | 2010-04-15 Stan Shebs <stan@codesourcery.com> |
6251 | ||
6252 | * frame.c: Include tracepoint.h. | |
6253 | (get_current_frame): Allow a trace frame to be an alternate source | |
6254 | of stack frame data. | |
6255 | * tracepoint.c (tfind_1): Don't try to get current stack frame if | |
6256 | it won't succeed. | |
6257 | ||
7e559477 PA |
6258 | 2010-04-15 Pedro Alves <pedro@codesourcery.com> |
6259 | ||
6260 | * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for | |
6261 | flags. | |
6262 | * solib-spu.c (spu_solib_loaded): Always pass 0 for flags. | |
6263 | ||
3f7b2faa DE |
6264 | 2010-04-15 Doug Evans <dje@google.com> |
6265 | ||
fa33c3cd DE |
6266 | * NEWS: Add entry for python program space support. |
6267 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o. | |
6268 | (SUBDIR_PYTHON_SRCS): Add py-progspace.c. | |
6269 | (py-progspace.o): New rule. | |
6270 | * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New | |
6271 | function. | |
6272 | (find_pretty_printer_from_progspace): New function. | |
6273 | (find_pretty_printer_from_gdb): New function. | |
6274 | (find_pretty_printer): Rewrite. | |
6275 | * python/py-progspace.c: New file. | |
6276 | * python/python-internal.h (program_space): Add forward decl. | |
6277 | (pspace_to_pspace_object, pspy_get_printers): Declare. | |
6278 | (gdbpy_initialize_pspace): Declare. | |
6279 | * python/python.c: #include "progspace.h". | |
6280 | (gdbpy_get_current_progspace, gdbpy_progspaces): New functions. | |
6281 | (_initialize_python): Call gdbpy_initialize_pspace. | |
6282 | (GdbMethods): Add current_progspace, progspaces. | |
6283 | ||
3f7b2faa DE |
6284 | Add -s option to source command. |
6285 | * NEWS: Document new option. | |
6286 | * cli/cli-cmds.c (find_and_open_script): Add function comment. | |
6287 | Delete from_tty and cleanupp args. Split filep arg into file and | |
6288 | full_pathp. New arg search_path. | |
6289 | (source_script_from_stream): New function. | |
6290 | (source_script_with_search): New function. | |
6291 | (source_script): Rewrite. | |
6292 | (source_command): Parse "-s" option. | |
6293 | (init_cli_cmds): Add "-s" docs to source command help, and reformat. | |
6294 | * python/python.c (source_python_script): Make file arg a const char *. | |
6295 | Don't call fclose, leave for caller. | |
6296 | * python/python.h (source_python_script): Update. | |
6297 | ||
a86988f2 PA |
6298 | 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
6299 | Pedro Alves <pedro@codesourcery.com> | |
6300 | ||
6301 | Avoid rereading shared libraries that haven't changed. | |
6302 | ||
6303 | * solib.c (free_so_symbols): New function, from ... | |
6304 | (free_so): ... here. Call it. | |
6305 | (solib_read_symbols): Don't warn here if symbols have already been | |
6306 | loaded. | |
6307 | (solib_add): Warn here instead, if a pattern was specified. | |
6308 | (reload_shared_libraries_1): New. | |
6309 | (reload_shared_libraries): Rewrite to not fetch the library list. | |
6310 | ||
e6d9b9c2 DE |
6311 | 2010-04-14 Doug Evans <dje@google.com> |
6312 | ||
589390d6 | 6313 | * source.c (openp): Strip DOS drive letter if present before |
e6d9b9c2 DE |
6314 | concatenating string to search path. |
6315 | ||
516ba659 PA |
6316 | 2010-04-14 Pedro Alves <pedro@codesourcery.com> |
6317 | ||
6318 | * objfiles.h (gdb_bfd_close_or_warn): Declare. | |
6319 | * objfiles.c (gdb_bfd_close_or_warn): New. | |
6320 | * corelow.c: Include objfiles.h | |
6321 | (core_close): Use gdb_bfd_close_or_warn. | |
6322 | * elfread.c (build_id_verify): Ditto. | |
6323 | * exec.c (exec_close, exec_close_1): Ditto. | |
6324 | ||
048d532d PA |
6325 | 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com> |
6326 | Pedro Alves <pedro@codesourcery.com> | |
6327 | ||
6328 | Group errors for many missing shared libraries. | |
6329 | ||
6330 | * solist.h (struct so_list): Remove from_tty. | |
6331 | * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD. | |
6332 | (solib_map_sections): Take so_list argument. Return 0 if we | |
6333 | failed to open a BFD. Add target sections here. | |
6334 | (symbol_add_stub): Delete. | |
6335 | (solib_read_symbols): Inline symbol_add_stub. Use current flags, | |
6336 | not from_tty copied from the so_list. Don't warn a second time | |
6337 | for a missing library. | |
6338 | (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not | |
6339 | add to the section table here. Print out a single warning for all | |
6340 | missing libraries. | |
6341 | * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for | |
6342 | flags. | |
6343 | ||
044c0f87 PM |
6344 | 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> |
6345 | ||
6346 | * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass | |
6347 | error/warning messages. Capitalize and use complete sentences. | |
6348 | (blpy_block_syms_iternext): Likewise. | |
6349 | * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. | |
6350 | * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) | |
6351 | (frame_info_to_frame_object, frapy_read_var) | |
6352 | (gdbpy_frame_stop_reason_string): Likewise. | |
6353 | * python/py-lazy-string.c (stpy_convert_to_value) | |
6354 | (gdbpy_create_lazy_string_object): Likewise. | |
6355 | * python/py-objfile.c (objfpy_set_printers): Likewise. | |
6356 | * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. | |
6357 | * python/python.c (parameter_to_python): Likewise. | |
6358 | * python/py-type.c (typy_range, typy_target): Likewise. | |
6359 | * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) | |
6360 | (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. | |
6361 | ||
6362 | ||
79f283fe PM |
6363 | 2010-04-14 Phil Muldoon <pmuldoon@redhat.com> |
6364 | ||
6365 | PR python/11381 | |
6366 | ||
6367 | * python/py-prettyprint.c (pretty_print_one_value): Test for | |
6368 | Py_None. | |
6369 | (print_string_repr): Test for Py_None. Set flags accordingly. | |
6370 | Return value depending on return type. | |
6371 | (print_children): Take a value indicating whether data was printed | |
6372 | before this function was called. Alter output accordingly. | |
6373 | (apply_val_pretty_printer): Capture return value from | |
6374 | print_string_repr and pass to print_children. | |
6375 | ||
4ac5d44e MK |
6376 | 2010-04-13 Mark Kettenis <kettenis@gnu.org> |
6377 | ||
e1caee70 | 6378 | PR corefiles/11481 |
4ac5d44e MK |
6379 | * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended |
6380 | register note sections. | |
6381 | (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections): | |
6382 | New variables. | |
6383 | (i386_linux_init_abi): Install list of supported register note | |
6384 | sections that matches the target description. | |
6385 | ||
ad91cd99 PA |
6386 | 2010-04-13 Pedro Alves <pedro@codesourcery.com> |
6387 | ||
6388 | * remote.c (remote_get_noisy_reply): Don't error out on empty | |
6389 | replies. | |
6390 | (remote_start_remote): Update and merge tracepoints and trace | |
6391 | state variables as long as the target supports tracepoints. | |
6392 | (remote_trace_init): Fix prototype. | |
6393 | (remote_download_trace_state_variable): Validate reply. | |
6394 | (remote_trace_set_readonly_regions): Fix prototype. | |
6395 | (remote_trace_start): Fix prototype. Check for empty reply. | |
6396 | (remote_get_trace_status): Small cleanup. | |
6397 | (remote_trace_stop): Fix prototype. Check for empty reply. | |
6398 | (remote_trace_find): Check for empty reply. | |
6399 | (remote_save_trace_data): Validate reply. | |
6400 | (remote_set_disconnected_tracing): Check for empty reply, and | |
6401 | validate reply. | |
6402 | (remote_set_circular_trace_buffer): Ditto. | |
6403 | ||
ae3bccd4 PM |
6404 | 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr> |
6405 | ||
6406 | Suppress unused value warning during compilation. | |
6407 | * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend | |
6408 | calls to void. | |
6409 | * tui/tui-stack.c (tui_show_locator_content): Likewise. | |
6410 | ||
523136f2 SS |
6411 | 2010-04-12 Stan Shebs <stan@codesourcery.com> |
6412 | ||
6413 | * tracepoint.c (tfile_xfer_partial): Check read result. | |
6414 | ||
0d18d720 MF |
6415 | 2010-04-12 Mike Frysinger <vapier@gentoo.org> |
6416 | ||
6417 | * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var. | |
6418 | * remote-sim.c (gdbsim_files_info): Likewise. | |
6419 | ||
3b273a55 RE |
6420 | 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
6421 | ||
6422 | * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM | |
6423 | * arm-linux-nat.c (arm_linux_vfp_register_count): New | |
6424 | variable. | |
6425 | (fetch_vfp_registers): New function to fetch VFP registers. | |
6426 | (store_vfp_registers): New function to store VFP registers. | |
6427 | (arm_linux_fetch_inferior_registers): Add support for VFP | |
6428 | registers. | |
6429 | (arm_linux_store_inferior_registers): Likewise. | |
6430 | (arm_linux_read_description): Likewise. | |
6431 | (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc | |
6432 | until we need it. | |
6433 | ||
778c7095 L |
6434 | 2010-04-11 H.J. Lu <hongjiu.lu@intel.com> |
6435 | ||
6436 | * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused | |
6437 | tdep. | |
6438 | (amd64_collect_xstateregset): Likewise. | |
6439 | ||
2114d44c SS |
6440 | 2010-04-09 Stan Shebs <stan@codesourcery.com> |
6441 | ||
87290684 SS |
6442 | * tracepoint.c (trace_status_mi): Report frames created. |
6443 | ||
2114d44c SS |
6444 | * tracepoint.c (trace_dump_command): Include default-collect |
6445 | expressions. | |
6446 | ||
86da934b UW |
6447 | 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com> |
6448 | ||
6449 | * symtab.c (find_function_start_sal): Never return SAL pointing | |
6450 | before function start address, even if line info is missing. | |
6451 | ||
2d6e647a | 6452 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
d337e9f0 PA |
6453 | |
6454 | * NEWS: Mention tracepoints support. | |
6455 | ||
a97153c7 PA |
6456 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
6457 | ||
6458 | * tracepoint.c (trace_status_mi): Report disconnected tracing and | |
6459 | circular trace buffer statuses. | |
6460 | ||
7a66d603 JK |
6461 | 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
6462 | ||
6463 | * config/djgpp/fnchange.lst: Fix typo in translations for | |
6464 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
6465 | ||
2566ad2d PA |
6466 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
6467 | ||
6468 | * breakpoint.c (condition_command): Pass condition expression to | |
6469 | set_breakpoint_condition stripped from breakpoint number. | |
6470 | ||
adc36818 PM |
6471 | 2010-04-09 Phil Muldoon <pmuldoon@redhat.com> |
6472 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
2566ad2d | 6473 | Tom Tromey <tromey@redhat.com> |
adc36818 PM |
6474 | |
6475 | * breakpoint.c (condition_command): Simplify. Move condition | |
6476 | setting code to ... | |
6477 | (set_breakpoint_condition): ... here. New function. | |
6478 | * breakpoint.h (set_breakpoint_condition): Declare. | |
6479 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint. | |
6480 | (SUBDIR_PYTHON_SRCS): Likewise. | |
6481 | (py-breakpoint.o): New rule. | |
6482 | * python/py-breakpoint.c: New file. | |
6483 | * python/python-internal.h (gdbpy_breakpoints) | |
6484 | (gdbpy_initialize_breakpoints): Declare. | |
6485 | (GDB_PY_SET_HANDLE_EXCEPTION) Define. | |
6486 | ||
219f2f23 PA |
6487 | 2010-04-09 Pedro Alves <pedro@codesourcery.com> |
6488 | ||
6489 | * regformats/regdat.sh: Include server.h. Don't include | |
6490 | regcache.h. | |
6491 | ||
33da3f1c SS |
6492 | 2010-04-08 Stan Shebs <stan@codesourcery.com> |
6493 | Pedro Alves <pedro@codesourcery.com> | |
6494 | ||
6495 | * tracepoint.h (struct trace_status): New fields disconnected_tracing | |
6496 | and circular_buffer. | |
6497 | (disconnect_tracing): Rename from disconnect_or_stop_tracing. | |
6498 | * tracepoint.c (trace_status_command): Display target's status for | |
6499 | disconnected tracing and circular buffer. | |
6500 | (disconnect_tracing): Rename from disconnect_or_stop_tracing, add | |
6501 | query for non-disconnected-tracing case, remove the stop_tracing | |
6502 | call. | |
6503 | (tfile_open): Clear disconnected and circular buffer status. | |
6504 | (trace_save): Save disconnected and circular buffer status. | |
6505 | (parse_trace_status): Parse disconnected and circular buffer status, | |
6506 | also recognize disconnected as a stop reason. | |
6507 | * remote.c (remote_set_disconnected_tracing): Only set | |
6508 | QTDisconnected if the remote end supports disconnected tracing. | |
6509 | Warn otherwise, if trying to enable disconnected tracing. | |
6510 | * infcmd.c (detach_command): Update disconnect_tracing call. | |
6511 | * cli/cli-cmds.c (quit_command): Ditto. | |
6512 | ||
4e4d8374 L |
6513 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
6514 | ||
6515 | * i387-tdep.c (i387_collect_xsave): Replace abort with | |
6516 | internal_error. | |
6517 | ||
ad443146 SS |
6518 | 2010-04-08 Stan Shebs <stan@codesourcery.com> |
6519 | ||
6520 | * breakpoint.c (default_collect_info): New function. | |
6521 | (breakpoints_info): Call it. | |
6522 | (maintenance_info_breakpoints): Ditto. | |
6523 | (tracepoints_info): Ditto. | |
6524 | ||
40936b0d L |
6525 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
6526 | ||
6527 | * i387-tdep.c (i387_collect_xsave): Re-indent. | |
6528 | ||
3a13a53b L |
6529 | 2010-04-08 H.J. Lu <hongjiu.lu@intel.com> |
6530 | ||
6531 | * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1 | |
6532 | if HAVE_PTRACE_GETFPXREGS is defined. | |
6533 | (i386_linux_read_description): Set have_ptrace_getfpxregs and | |
6534 | have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed. | |
6535 | ||
6536 | * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c" | |
6537 | (i386_linux_core_read_description): Return tdesc_i386_mmx_linux | |
6538 | if .reg-xfp section doesn't exist. | |
6539 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux. | |
6540 | ||
6541 | * i386-linux-tdep.h (tdesc_i386_mmx_linux): New. | |
6542 | ||
6543 | * i386-tdep.c: Include "features/i386/i386-mmx.c". | |
6544 | (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx. | |
6545 | (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set | |
6546 | xcr0 to I386_XSTATE_X87_MASK if SSE isn't available. | |
6547 | (i386_gdbarch_init): Update comments. | |
6548 | (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx. | |
6549 | ||
6550 | * common/i386-xstate.h (I386_XSTATE_X87_MASK): New. | |
6551 | ||
6552 | * config/djgpp/fnchange.lst: Add i386 MMX XML files. | |
6553 | ||
6554 | * features/Makefile (i386/i386-mmx-expedite): New. | |
6555 | (i386/i386-mmx-linux-expedite): Likewise. | |
6556 | ($(outdir)/i386/i386-mmx.dat): Likewise. | |
6557 | ($(outdir)/i386/i386-mmx-linux.dat): Likewise. | |
6558 | ||
6559 | * features/i386/i386-mmx-linux.c: New. | |
6560 | * features/i386/i386-mmx-linux.xml: Likewise. | |
6561 | * features/i386/i386-mmx.c: Likewise. | |
6562 | * features/i386/i386-mmx.xml: Likewise. | |
6563 | * regformats/i386/i386-mmx-linux.dat: Likewise. | |
6564 | * regformats/i386/i386-mmx.dat: Likewise. | |
6565 | ||
6566 | * features/Makefile (WHICH): Add i386/i386-mmx and | |
6567 | i386/i386-mmx-linux. | |
6568 | ||
08001717 DE |
6569 | 2010-04-08 Doug Evans <dje@google.com> |
6570 | ||
6571 | * source.c (openp): Skip $cdir in PATH. | |
6572 | ||
fff5cc64 PM |
6573 | 2010-04-08 Phil Muldoon <pmuldoon@redhat.com> |
6574 | ||
6575 | PR python/11417 | |
fff5cc64 | 6576 | * python/py-lazy-string.c (stpy_convert_to_value): Check for |
3a13a53b L |
6577 | a NULL address. |
6578 | (gdbpy_create_lazy_string_object): Allow strings with a NULL | |
6579 | address and a zero length. | |
fff5cc64 | 6580 | |
f8c4f480 HZ |
6581 | 2010-04-08 Hui Zhu <teawater@gmail.com> |
6582 | ||
6583 | * i386-tdep.c (i386_process_record): Add support for insn | |
6584 | rdtsc. | |
6585 | ||
eb5cda86 DE |
6586 | 2010-04-07 Doug Evans <dje@google.com> |
6587 | ||
6588 | * python/python.c (source_python_script): Use ensure_python_env | |
6589 | to prepare environment for script. | |
6590 | ||
a055a187 L |
6591 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6592 | ||
6593 | * amd64-linux-nat.c: Include "regset.h", "elf/common.h", | |
6594 | <sys/uio.h> and "i386-xstate.h". | |
6595 | (PTRACE_GETREGSET): New. | |
6596 | (PTRACE_SETREGSET): Likewise. | |
6597 | (have_ptrace_getregset): Likewise. | |
6598 | (amd64_linux_gregset64_reg_offset): Include 16 upper YMM | |
6599 | registers. | |
6600 | (amd64_linux_gregset32_reg_offset): Include 8 upper YMM | |
6601 | registers. | |
6602 | (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS. | |
6603 | (amd64_linux_store_inferior_registers): Likewise. | |
6604 | (amd64_linux_read_description): Check and enable AVX target | |
6605 | descriptions. | |
6606 | ||
6607 | * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h" | |
6608 | and "features/i386/amd64-avx-linux.c". | |
6609 | (amd64_linux_regset_sections): New. | |
6610 | (amd64_linux_core_read_description): Check and enable AVX | |
6611 | target description. | |
6612 | (amd64_linux_init_abi): Set xsave_xcr0_offset. Call | |
6613 | set_gdbarch_core_regset_sections. | |
6614 | (_initialize_amd64_linux_tdep): Call | |
6615 | initialize_tdesc_amd64_avx_linux. | |
6616 | ||
6617 | * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace | |
6618 | AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM. | |
6619 | (tdesc_amd64_avx_linux): New. | |
6620 | (amd64_linux_update_xstateregset): Likewise. | |
6621 | ||
6622 | * amd64-tdep.c: Include "features/i386/amd64-avx.c". | |
6623 | (amd64_ymm_names): New. | |
6624 | (amd64_ymmh_names): Likewise. | |
6625 | (amd64_register_name): Likewise. | |
6626 | (amd64_supply_xstateregset): Likewise. | |
6627 | (amd64_collect_xstateregset): Likewise. | |
6628 | (amd64_supply_xsave): Likewise. | |
6629 | (amd64_collect_xsave): Likewise. | |
6630 | (AMD64_NUM_REGS): Removed. | |
6631 | (amd64_dwarf_reg_to_regnum): Return %ymmN register number for | |
6632 | %xmmN if AVX is available. | |
6633 | (amd64_pseudo_register_name): Support pseudo YMM registers. | |
6634 | (amd64_regset_from_core_section): Support .reg-xstate section. | |
6635 | (amd64_init_abi): Set ymmh_register_names, num_ymm_regs | |
6636 | and ymm0h_regnum. Call set_gdbarch_register_name. | |
6637 | (amd64_init_abi): Call initialize_tdesc_amd64_avx. | |
6638 | ||
6639 | * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and | |
6640 | AMD64_YMM15H_REGNUM. | |
6641 | (AMD64_NUM_REGS): New. | |
6642 | (amd64_supply_xsave): Likewise. | |
6643 | (amd64_collect_xsave): Likewise. | |
6644 | (amd64_register_name): Removed. | |
6645 | (amd64_register_type): Likewise. | |
6646 | ||
31aeac78 L |
6647 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6648 | ||
6649 | * i387-tdep.c: Include "i386-xstate.h". | |
6650 | (XSAVE_XSTATE_BV_ADDR): New. | |
6651 | (xsave_avxh_offset): Likewise. | |
6652 | (XSAVE_AVXH_ADDR): Likewise. | |
6653 | (i387_supply_xsave): Likewise. | |
6654 | (i387_collect_xsave): Likewise. | |
6655 | ||
6656 | * i387-tdep.h (I387_NUM_YMM_REGS): New. | |
6657 | (I387_YMM0H_REGNUM): Likewise. | |
6658 | (I387_YMMENDH_REGNUM): Likewise. | |
6659 | (i387_supply_xsave): Likewise. | |
6660 | (i387_collect_xsave): Likewise. | |
6661 | ||
c131fcee L |
6662 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6663 | ||
6664 | * i386-linux-nat.c: Include "regset.h", "elf/common.h", | |
6665 | <sys/uio.h> and "i386-xstate.h". | |
6666 | (PTRACE_GETREGSET): New. | |
6667 | (PTRACE_SETREGSET): Likewise. | |
6668 | (fetch_xstateregs): Likewise. | |
6669 | (store_xstateregs): Likewise. | |
6670 | (GETXSTATEREGS_SUPPLIES): Likewise. | |
6671 | (regmap): Include 8 upper YMM registers. | |
6672 | (i386_linux_fetch_inferior_registers): Support XSAVE extended | |
6673 | state. | |
6674 | (i386_linux_store_inferior_registers): Likewise. | |
6675 | (i386_linux_read_description): Check and enable AVX target | |
6676 | descriptions. | |
6677 | ||
6678 | * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h", | |
6679 | "i386-xstate.h" and "features/i386/i386-avx-linux.c". | |
6680 | (i386_linux_regset_sections): Add ".reg-xstate". | |
6681 | (i386_linux_gregset_reg_offset): Include 8 upper YMM registers. | |
6682 | (i386_linux_core_read_xcr0): New. | |
6683 | (i386_linux_core_read_description): Check and enable AVX target | |
6684 | description. | |
6685 | (i386_linux_init_abi): Set xsave_xcr0_offset. | |
6686 | (_initialize_i386_linux_tdep): Call | |
6687 | initialize_tdesc_i386_avx_linux. | |
6688 | ||
6689 | * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace | |
6690 | I386_SSE_NUM_REGS with I386_AVX_NUM_REGS. | |
6691 | (i386_linux_core_read_xcr0): New. | |
6692 | (tdesc_i386_avx_linux): Likewise. | |
6693 | (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise. | |
6694 | ||
6695 | * i386-tdep.c: Include "i386-xstate.h" and | |
6696 | "features/i386/i386-avx.c". | |
6697 | (i386_ymm_names): New. | |
6698 | (i386_ymmh_names): Likewise. | |
6699 | (i386_ymmh_regnum_p): Likewise. | |
6700 | (i386_ymm_regnum_p): Likewise. | |
6701 | (i386_xmm_regnum_p): Likewise. | |
6702 | (i386_register_name): Likewise. | |
6703 | (i386_ymm_type): Likewise. | |
6704 | (i386_supply_xstateregset): Likewise. | |
6705 | (i386_collect_xstateregset): Likewise. | |
6706 | (i386_sse_regnum_p): Removed. | |
6707 | (i386_pseudo_register_name): Support pseudo YMM registers. | |
6708 | (i386_pseudo_register_type): Likewise. | |
6709 | (i386_pseudo_register_read): Likewise. | |
6710 | (i386_pseudo_register_write): Likewise. | |
6711 | (i386_dbx_reg_to_regnum): Return %ymmN register number for | |
6712 | %xmmN if AVX is available. | |
6713 | (i386_regset_from_core_section): Support .reg-xstate section. | |
6714 | (i386_register_reggroup_p): Supper upper YMM and YMM registers. | |
6715 | (i386_process_record): Replace i386_sse_regnum_p with | |
6716 | i386_xmm_regnum_p. | |
6717 | (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature. | |
6718 | Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0. | |
8d95cc3b | 6719 | (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset. |
c131fcee L |
6720 | Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with |
6721 | I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and | |
6722 | num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs. | |
6723 | Set ymm0_regnum. | |
6724 | (_initialize_i386_tdep): Call initialize_tdesc_i386_avx. | |
6725 | ||
6726 | * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum, | |
6727 | xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and | |
6728 | i386_ymm_type. | |
6729 | (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM. | |
6730 | (I386_AVX_NUM_REGS): New. | |
6731 | (i386_xmm_regnum_p): Likewise. | |
6732 | (i386_ymm_regnum_p): Likewise. | |
6733 | (i386_ymmh_regnum_p): Likewise. | |
6734 | ||
6735 | * common/i386-xstate.h: New. | |
6736 | ||
98adf0f3 L |
6737 | 2010-04-07 H.J. Lu <hongjiu.lu@intel.com> |
6738 | ||
6739 | * config/djgpp/fnchange.lst: Add x86 AVX XML files. | |
6740 | ||
6741 | * features/Makefile (WHICH): Add i386/i386-avx, | |
6742 | i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux. | |
6743 | (i386/i386-avx-expedite): New. | |
6744 | (i386/i386-avx-linux-expedite): Likewise. | |
6745 | (i386/x86-64-avx-expedite):Likewise. | |
6746 | (i386/x86-64-avx-linux-expedite): Likewise. | |
6747 | ($(outdir)/i386/i386-avx.dat): New dependency. | |
6748 | ($(outdir)/i386/i386-avx-linux.dat): Likewise. | |
6749 | ($(outdir)/i386/x86-avx-64.dat): Likewise. | |
6750 | ($(outdir)/i386/x86-64-avx-linux.dat): Likewise. | |
6751 | ||
6752 | * features/i386/32bit-avx.xml: New. | |
6753 | * features/i386/64bit-avx.xml: Likewise. | |
6754 | * features/i386/i386-avx-linux.c: Likewise. | |
6755 | * features/i386/i386-avx-linux.xml: Likewise. | |
6756 | * features/i386/i386-avx.c: Likewise. | |
6757 | * features/i386/i386-avx.xml: Likewise. | |
6758 | * features/i386/x86-64-avx-linux.c: Likewise. | |
6759 | * features/i386/x86-64-avx-linux.xml: Likewise. | |
6760 | * features/i386/x86-64-avx.c: Likewise. | |
6761 | * features/i386/x86-64-avx.xml: Likewise. | |
6762 | * regformats/i386/i386-avx-linux.dat: Likewise. | |
6763 | * regformats/i386/i386-avx.dat: Likewise. | |
6764 | * regformats/i386/x86-64-avx-linux.dat: Likewise. | |
6765 | * regformats/i386/x86-64-avx.dat: Likewise. | |
6766 | ||
05159abe DE |
6767 | 2010-04-07 Doug Evans <dje@google.com> |
6768 | ||
6769 | * top.c (source_file_name): Make const char *. | |
6770 | * top.h (source_file_name): Update. | |
6771 | * cli/cli-script.c (source_cleanup_lines_args): Make old_file | |
6772 | const char *. | |
6773 | (script_from_file): Change `file' arg to const char *. | |
6774 | * cli/cli-script.h (script_from_file): Update. | |
6775 | ||
96e39866 DE |
6776 | 2010-04-06 Doug Evans <dje@google.com> |
6777 | ||
6778 | * cli/cli-cmds.c (source_command): Run cleanups. | |
6779 | ||
3149d8c1 SS |
6780 | 2010-04-06 Stan Shebs <stan@codesourcery.com> |
6781 | ||
6782 | * defs.h (char_ptr): Move typedef here from... | |
6783 | * ada-lang.c (char_ptr): Remove. | |
6784 | * charset.c (char_ptr): Remove. | |
6785 | * tracepoint.h (struct uploaded_string): Remove. | |
6786 | (struct uploaded_tp): Use vectors for string arrays. | |
6787 | * tracepoint.c (trace_save): Use vectors of actions. | |
6788 | (parse_tracepoint_definition): Ditto. | |
6789 | (get_uploaded_tp): Clear vectors. | |
6790 | * breakpoint.c (create_tracepoint_from_upload): Use vectors. | |
6791 | (next_cmd): Change to an int. | |
6792 | (read_next_cmd): Use vector of command strings. | |
6793 | ||
4cc23ede DE |
6794 | 2010-04-06 Doug Evans <dje@google.com> |
6795 | ||
6796 | * top.h (source_script, cd_command): Delete. | |
6797 | * main.c: #include "cli/cli-cmds.h" | |
6798 | ||
bd333fb7 KB |
6799 | 2010-04-06 Kevin Buettner <kevinb@redhat.com> |
6800 | ||
6801 | * m32c-tdep.c (make_types): When calling `arch_type', pass size of | |
6802 | type in bytes, not bits. | |
6803 | ||
ec8a089a PM |
6804 | 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr> |
6805 | ||
6806 | * stabsread.c (define_symbol): Add support for char | |
6807 | and string constants. | |
6808 | ||
2244ba2e PM |
6809 | 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr> |
6810 | ||
6811 | Remove remaining "%ll" uses. | |
6812 | * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using | |
6813 | hex_string call. | |
6814 | * rs6000-nat.c (rs6000_ptrace64): Idem. | |
6815 | * solib-pa64.c (pa64_current_sos): Idem. | |
6816 | * solib-spu.c (spu_current_sos): Idem. | |
6817 | * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using | |
6818 | plongest call. | |
6819 | * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using | |
6820 | phex (VAR, 8) call. | |
6821 | * sh64-tdep.c (sh64_show_media_regs): Idem. | |
6822 | ||
fce3c1f0 SS |
6823 | 2010-04-05 Stan Shebs <stan@codesourcery.com> |
6824 | ||
6825 | * tracepoint.c: Include gdbcore.h. | |
6826 | (tfile_xfer_partial): Return partial results, also try reading | |
6827 | from executable. | |
6828 | (tfile_has_all_memory): New function. | |
6829 | (init_tfile_ops): Use it. | |
6830 | ||
626ea16d SDJ |
6831 | 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com> |
6832 | ||
6833 | PR gdb/10736: | |
6834 | * xml-syscall.c (my_gdb_datadir): New variable to keep track of | |
6835 | the changes in data-directory. | |
6836 | (init_sysinfo): Reload the syscall XML file if the data-directory | |
6837 | has changed. | |
6838 | ||
1f7ccab2 JK |
6839 | 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
6840 | ||
6841 | Code cleanup. | |
6842 | * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop. | |
6843 | ||
d77f58be SS |
6844 | 2010-04-04 Stan Shebs <stan@codesourcery.com> |
6845 | Nathan Sidwell <nathan@codesourcery.com> | |
6846 | ||
6847 | * breakpoint.c (breakpoint_1): Add filter argument, return number of | |
6848 | breakpoints printed. | |
6849 | (is_hardware_watchpoint): Make argument const. | |
6850 | (is_watchpoint): Ditto. | |
6851 | (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint, | |
6852 | use it everywhere. | |
6853 | (breakpoints_info): Pass NULL to breakpoint_1. | |
6854 | (maintenance_info_breakpoints): Ditto. | |
6855 | (watchpoints_info): New function. | |
6856 | (tracepoints_info): Use breakpoint_1 filter. | |
6857 | (set_ignore_count): Warn that tracepoint ignore count will be ignored. | |
6858 | (_initialize_breakpoint): Make "info watchpoints" its own command. | |
6859 | * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint. | |
6860 | * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint. | |
6861 | ||
af54718e SS |
6862 | 2010-04-04 Stan Shebs <stan@codesourcery.com> |
6863 | ||
6864 | * tracepoint.c (tfile_fetch_registers): Add fallback case. | |
6865 | ||
74d1f91e JK |
6866 | 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
6867 | ||
6868 | * infcmd.c (run_command_1): Call proceed with regcache_read_pc address. | |
6869 | * config/djgpp/fnchange.lst: Add translation for break-entry.exp. | |
6870 | ||
91d91ceb JK |
6871 | 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
6872 | ||
6873 | * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove. | |
6874 | * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove. | |
6875 | ||
60531b24 JK |
6876 | 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
6877 | ||
6878 | * dwarf2read.c (read_namespace_type): Use common "return set_die_type" | |
6879 | code form. | |
6880 | ||
a3c4230a HZ |
6881 | 2010-04-02 Hui Zhu <teawater@gmail.com> |
6882 | ||
6883 | * i386-tdep.c (OT_DQUAD): New enum. | |
6884 | (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2, | |
6885 | SSE3, SSSE3 and SSE4. | |
6886 | ||
b15758fe HZ |
6887 | 2010-04-02 Hui Zhu <teawater@gmail.com> |
6888 | ||
6889 | * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless | |
6890 | "*addr = 0". | |
6891 | ||
afd02f27 PA |
6892 | 2010-04-02 Pedro Alves <pedro@codesourcery.com> |
6893 | ||
6894 | * tracepoint.c (trace_dump_actions): New, factored out from | |
6895 | trace_dump_command, and adjusted to recurse into while-stepping's | |
6896 | action list. | |
6897 | (trace_dump_command): Use it. | |
6898 | ||
5cea2a26 PA |
6899 | 2010-04-02 Pedro Alves <pedro@codesourcery.com> |
6900 | ||
6901 | * breakpoint.h (struct counted_command_line): Moved definition to | |
6902 | breakpoint.c, and forward declare. | |
6903 | (breakpoint_commands): Declare. | |
6904 | * breakpoint.c (struct counted_command_line): Moved here. | |
6905 | (breakpoint_commands): New. | |
6906 | * tracepoint.c (encode_actions): Use breakpoint_commands. | |
6907 | * remote.c (remote_download_tracepoint): Ditto. | |
6908 | ||
7c47795c L |
6909 | 2010-04-01 H.J. Lu <hongjiu.lu@intel.com> |
6910 | ||
6911 | * remote.c (remote_parse_stop_reply): Use hex_string instead | |
6912 | of phex_nz for error. | |
6913 | ||
fff87407 SS |
6914 | 2010-04-01 Stan Shebs <stan@codesourcery.com> |
6915 | Nathan Sidwell <nathan@codesourcery.com> | |
6916 | ||
6917 | * tracepoint.h (enum actionline_type): Remove. | |
6918 | (validate_actionline): Change return to void. | |
6919 | * tracepoint.c (report_agent_reqs_errors): New function. | |
6920 | (validate_actionline): Call it, change return to void, report errors | |
6921 | more consistently. | |
6922 | (collect_symbol): Call report_agent_reqs_errors. | |
6923 | (encode_actions_1): Ditto. | |
6924 | (encode_actions): Don't expect a result from validate_actionline. | |
6925 | ||
615bcdef SS |
6926 | 2010-04-01 Stan Shebs <stan@codesourcery.com> |
6927 | ||
6928 | * tracepoint.c (trace_start_command): Confirm if trace is running. | |
6929 | (trace_stop_command): Error if trace not running. | |
6930 | ||
fe01d668 L |
6931 | 2010-04-01 H.J. Lu <hongjiu.lu@intel.com> |
6932 | ||
6933 | * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh". | |
6934 | (AMD64_NUM_LOWER_BYTE_REGS): New. | |
6935 | (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh". | |
6936 | (amd64_pseudo_register_write): Likewise. | |
6937 | (amd64_init_abi): Set num_byte_regs to 20. | |
6938 | ||
86b17b60 PA |
6939 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
6940 | ||
6941 | * breakpoint.c (multi_start, multi_end, last_was_multi): Delete. | |
6942 | (prev_breakpoint_count): New. | |
6943 | (set_breakpoint_count): Adjust. | |
6944 | (rbreak_start_breakpoint_count): New. | |
6945 | (start_rbreak_breakpoints): Adjust. | |
6946 | (end_rbreak_breakpoints): Adjust. | |
6947 | (struct commands_info) <arg>: New field. | |
6948 | (do_map_commands_command): Tweak output to include breakpoint spec | |
6949 | range. | |
6950 | (commands_command_1): Adjust. Avoid setting an xfree cleanup if | |
6951 | ARG was empty on entry. Set INFO's arg. | |
6952 | (create_breakpoint): Adjust. | |
6953 | ||
6954 | * NEWS: Clarify `commands' changes. | |
6955 | ||
2c58c0a9 PA |
6956 | 2010-04-01 Pedro Alves <pedro@codesourcery.com> |
6957 | ||
6958 | * tracepoint.c: Include stack.h. | |
6959 | (struct add_local_symbols_data): New. | |
6960 | (do_collect_symbol): New. | |
6961 | (add_local_symbols): Rewrite using iterate_over_block_arg_vars and | |
6962 | iterate_over_block_local_vars. | |
6963 | * stack.c (print_block_frame_locals): Rewrite as ... | |
6964 | (iterate_over_block_locals): ... this. Take a callback function | |
6965 | pointer and generic data pointer, and call that instead of | |
6966 | print_variable_and_value. | |
6967 | (struct print_variable_and_value_data): New. | |
6968 | (do_print_variable_and_value): New. | |
6969 | (iterate_over_block_local_vars): New, abstracted out from | |
6970 | print_frame_local_vars. | |
6971 | (print_frame_local_vars): Rewrite using | |
6972 | iterate_over_block_local_vars. | |
6973 | (iterate_over_block_arg_vars): New, abstracted out from | |
6974 | print_frame_arg_vars. | |
6975 | (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars. | |
6976 | * stack.h (iterate_over_block_arg_local_vars_cb): New typedef. | |
6977 | (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare. | |
6978 | ||
d476da0e RE |
6979 | 2010-03-31 Richard Earnshaw <rearnsha@arm.com> |
6980 | ||
6981 | * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH | |
8d95cc3b | 6982 | instructions. Use the PC+4 if the base of the TBB or TBH is the |
d476da0e RE |
6983 | PC register. |
6984 | ||
8072405b JK |
6985 | 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
6986 | ||
6987 | Fix crash on reading wrong function declaration DWARF. | |
6988 | * dwarf2read.c (read_subroutine_type): New variable void_type. | |
6989 | Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization | |
6990 | more close to their use. | |
6991 | ||
8bf6485c SS |
6992 | 2010-03-31 Stan Shebs <stan@codesourcery.com> |
6993 | ||
6994 | * breakpoint.c (tracepoint_save_command): Include variables, | |
8d95cc3b | 6995 | conditionals, tracepoint types, and default-collect. |
8bf6485c SS |
6996 | * tracepoint.c (save_trace_state_variables): New function. |
6997 | * tracepoint.h (save_trace_state_variables): Declare it. | |
6998 | ||
2ae2a0b7 PM |
6999 | 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr> |
7000 | ||
1a161f72 | 7001 | * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup. |
2ae2a0b7 | 7002 | |
86ffb506 KS |
7003 | 2010-03-30 Keith Seitz <keiths@redhat.com> |
7004 | ||
7005 | * c-typeprint.c (c_type_print_args): Don't print "void" | |
7006 | for java, regardless of whether it is TYPE_PROTOTYPED. | |
7007 | Use the passed-in language instead of current_language. | |
7008 | (c_type_print_varspec_suffix): Use current_language instead | |
7009 | of assuming language_c. | |
7010 | * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off | |
7011 | any return type specifier from the physname. | |
7012 | ||
956c2c8b PA |
7013 | 2010-03-30 Pedro Alves <pedro@codesourcery.com> |
7014 | ||
7015 | * tui/tui-interp.c (tui_is_toplevel): New. | |
7016 | (tui_init): Set it. | |
7017 | (tui_allowed_p): New. | |
7018 | * tui/tui.c (tui_enable): Check if the TUI is allowed before | |
7019 | enabling it. | |
7020 | * tui/tui.h (tui_allowed_p): Declare. | |
7021 | ||
98e5a990 TT |
7022 | 2010-03-30 Ozkan Sezer <sezeroz@gmail.com> |
7023 | ||
7024 | * serial.h: Include winsock2.h before windows.h. | |
7025 | ||
c8d5aac9 L |
7026 | 2010-03-30 H.J. Lu <hongjiu.lu@intel.com> |
7027 | ||
7028 | * NEWS: Mention xmlRegisters= in qSupported packet. | |
7029 | ||
7030 | * i386-tdep.c: Include "remote.h". | |
7031 | (_initialize_i386_tdep): Call register_remote_support_xml. | |
7032 | ||
7033 | * remote.c (remote_support_xml): New. | |
7034 | (register_remote_support_xml): Likewise. | |
7035 | (remote_query_supported_append): Likewise. | |
7036 | (remote_query_supported): Support remote_support_xml. | |
7037 | ||
7038 | * remote.h (register_remote_support_xml): New. | |
7039 | ||
76a2b958 SS |
7040 | 2010-03-29 Stan Shebs <stan@codesourcery.com> |
7041 | ||
42e08e69 SS |
7042 | * tracepoint.c (trace_find_line_command): Remove dead code. |
7043 | ||
409873ef SS |
7044 | * tracepoint.h (struct uploaded_string): New struct. |
7045 | (struct uploaded_tp): New fields for source strings. | |
7046 | * breakpoint.c (this_utp, next_cmd): New globals. | |
7047 | (read_uploaded_action): New function. | |
7048 | (create_tracepoint_from_upload): Fill in more parts | |
7049 | of a tracepoint. | |
7050 | * tracepoint.c (encode_source_string): New function. | |
7051 | (trace_save): Write out source strings, fix error checks. | |
7052 | (parse_tracepoint_definition): Add source string parsing. | |
7053 | * remote.c (PACKET_TracepointSource): New packet type. | |
7054 | (remote_download_command_source): New function. | |
7055 | (remote_download_tracepoint): Download source pieces also. | |
7056 | (_initialize_remote): Add packet config command. | |
7057 | ||
a0405854 SS |
7058 | * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to |
7059 | expression handler. | |
7060 | ||
76a2b958 SS |
7061 | * tracepoint.c (start_tracing): Check tracepoints before sending |
7062 | commands to target, don't start if all tracepoints disabled. | |
7063 | ||
d350db38 PA |
7064 | 2010-03-28 Pedro Alves <pedro@codesourcery.com> |
7065 | ||
12f2d601 | 7066 | * cli/cli-script.c (process_next_line): Handle 'stepping'. |
d350db38 | 7067 | |
8b9b7ef8 SS |
7068 | 2010-03-26 Stan Shebs <stan@codesourcery.com> |
7069 | ||
7070 | * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode. | |
7071 | ||
9766ced4 SS |
7072 | 2010-03-26 Tom Tromey <tromey@redhat.com> |
7073 | ||
7074 | * breakpoint.c (commands_command_1): Duplicate 'arg'. | |
7075 | ||
059acae7 UW |
7076 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
7077 | ||
7078 | * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal. | |
7079 | (skip_prologue_sal): Remove local definition. | |
7080 | (resolve_sal_pc): Remove now unnecessary code. | |
7081 | * linespec.c (minsym_found): Call skip_prologue_sal. | |
7082 | * symtab.c (find_function_start_pc): Remove. | |
7083 | (find_function_start_sal): Extract prologue skipping into ... | |
7084 | (skip_prologue_sal): ... this new function. Handle code both | |
7085 | with and without debug info. Respect SAL's explicit_pc and | |
7086 | explicit_line flags. Inline old find_function_start_pc. | |
7087 | * symtab.h (find_function_start_pc): Remove. | |
7088 | (skip_prologue_sal): Add prototype. | |
7089 | ||
4a811a97 UW |
7090 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
7091 | ||
7092 | * dwarf2read.c (read_func_scope): Also scan specification DIEs | |
7093 | for DW_TAG_imported_module children. | |
7094 | ||
907af001 UW |
7095 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
7096 | ||
7097 | * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by | |
7098 | ignoring spurious DW_AT_name attributes for unnamed structs or unions. | |
7099 | * completer.c (add_struct_fields): Fix inverted logic. | |
7100 | ||
dde2d684 UW |
7101 | 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com> |
7102 | ||
7103 | * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left. | |
7104 | ||
a609a0c8 PA |
7105 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
7106 | ||
7107 | * tracepoint.c (current_trace_status): Don't make sure error_desc | |
7108 | is non-NULL here. | |
7109 | (parse_trace_status): Release a previous error_desc string, and | |
7110 | set it to NULL by default. If stop reason is tracepoint_error, | |
7111 | make sure error_desc is not left NULL. | |
7112 | ||
610197fd PA |
7113 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
7114 | ||
7115 | * tracepoint.c (trace_save): Remove X from tracepoint error | |
7116 | description. | |
7117 | ||
99b5e152 PA |
7118 | 2010-03-26 Pedro Alves <pedro@codesourcery.com> |
7119 | ||
7120 | * tracepoint.c (parse_trace_status): Don't allow plain strings in | |
7121 | the terror description. Don't expect an X prefix. | |
7122 | ||
6c28cbf2 SS |
7123 | 2010-03-25 Stan Shebs <stan@codesourcery.com> |
7124 | ||
7125 | * tracepoint.h (trace_stop_reason): Add tracepoint_error. | |
7126 | (struct trace_status): New field error_desc. | |
7127 | * tracepoint.c (stop_reason_names): Add terror. | |
7128 | (current_trace_status): Ensure non-NULL error description. | |
7129 | (trace_status_command): Add error report. | |
7130 | (trace_status_mi): Ditto. | |
7131 | (trace_save): Add special case for error description. | |
7132 | (parse_trace_status): Add case for errors. | |
7133 | ||
418835cc KS |
7134 | 2010-03-25 Keith Seitz <keiths@redhat.com> |
7135 | ||
7136 | * dwarf2read.c (read_subroutine_type): If the compilation unit | |
7137 | language is Java, mark any formal parameter named "this" as | |
7138 | artificial (GCC/43521). | |
7139 | (dwarf2_name): Add special handling for Java constructors. | |
7140 | ||
aa7d318d TT |
7141 | 2010-03-25 Tom Tromey <tromey@redhat.com> |
7142 | ||
7143 | PR gdb/11327, PR gdb/11328, PR breakpoints/11368: | |
7144 | * infrun.c (handle_inferior_event): Change initialization of | |
7145 | stop_stack_dummy. | |
7146 | (handle_inferior_event): Change assignment to stop_stack_dummy. | |
7147 | (normal_stop): Update use of stop_stack_dummy. | |
7148 | (struct inferior_status) <stop_stack_dummy>: Change type. | |
7149 | * inferior.h (stop_stack_dummy): Update. | |
7150 | * infcmd.c (stop_stack_dummy): Change type. | |
7151 | * infcall.c (cleanup_delete_std_terminate_breakpoint): New | |
7152 | function. | |
7153 | (call_function_by_hand): Call set_std_terminate_breakpoint. | |
7154 | Rewrite std::terminate handling. | |
7155 | * breakpoint.h (enum bptype) <bp_std_terminate, | |
7156 | bp_std_terminate_master>: New. | |
7157 | (enum stop_stack_kind): New. | |
7158 | (struct bpstat_what) <call_dummy>: Change type. | |
7159 | (set_std_terminate_breakpoint, delete_std_terminate_breakpoint): | |
7160 | Declare. | |
7161 | * breakpoint.c (create_std_terminate_master_breakpoint): New | |
7162 | function. | |
7163 | (update_breakpoints_after_exec): Handle bp_std_terminate_master. | |
7164 | Call create_std_terminate_master_breakpoint. | |
7165 | (print_it_typical): Handle new breakpoint kinds. | |
7166 | (bpstat_stop_status): Handle bp_std_terminate_master. | |
7167 | (bpstat_what): Correctly set call_dummy field. Handle | |
7168 | bp_std_terminate_master and bp_std_terminate. | |
7169 | (print_one_breakpoint_location): Update. | |
7170 | (allocate_bp_location): Update. | |
7171 | (set_std_terminate_breakpoint): New function. | |
7172 | (delete_std_terminate_breakpoint): Likewise. | |
7173 | (create_thread_event_breakpoint): Update. | |
7174 | (delete_command): Update. | |
7175 | (breakpoint_re_set_one): Update. | |
7176 | (breakpoint_re_set): Call create_std_terminate_master_breakpoint. | |
7177 | ||
82ccf5a5 JK |
7178 | 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
7179 | ||
7180 | * symfile.c (build_section_addr_info_from_bfd): New. | |
7181 | (build_section_addr_info_from_objfile): Base it on | |
7182 | build_section_addr_info_from_bfd. | |
7183 | (addrs_section_compar, addrs_section_sort): New. | |
7184 | (addr_info_make_relative): New variables my_cleanup, abfd_addrs, | |
7185 | addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build | |
7186 | addrs_to_abfd_addrs. Use it for recalculating ADDRS. | |
7187 | ||
737c4c52 MS |
7188 | 2010-03-24 Michael Snyder <msnyder@localhost.localdomain> |
7189 | ||
8d95cc3b | 7190 | * elfread.c (find_separate_debug_file_by_buildid): |
737c4c52 MS |
7191 | Remove unused local variable. |
7192 | ||
95a42b64 TT |
7193 | 2010-03-24 Tom Tromey <tromey@redhat.com> |
7194 | ||
7195 | PR breakpoints/9352: | |
7196 | * NEWS: Mention changes to `commands' and `rbreak'. | |
7197 | * symtab.c (do_end_rbreak_breakpoints): New function. | |
7198 | (rbreak_command): Call start_rbreak_breakpoints; arrange to call | |
7199 | end_rbreak_breakpoints. | |
7200 | * breakpoint.c (breakpoint_count, tracepoint_count): Now static. | |
7201 | (set_breakpoint_count): Likewise. Clear last_was_multi. | |
7202 | (multi_start, multi_end, last_was_multi): New globals. | |
7203 | (start_rbreak_breakpoints, end_rbreak_breakpoints): New | |
7204 | functions. | |
7205 | (struct commands_info): New | |
7206 | (do_map_commands_command): New function. | |
7207 | (commands_command_1): New function. | |
7208 | (commands_command): Use it. | |
7209 | (commands_from_control_command): Likewise. | |
7210 | (do_delete_breakpoint): New function. | |
7211 | (delete_command): Use it. | |
7212 | (map_breakpoint_numbers): Add 'data' argument. Pass to callback. | |
7213 | (do_map_disable_breakpoint): New function. | |
7214 | (disable_command): Use it. | |
7215 | (do_map_enable_breakpoint): New function. | |
7216 | (enable_command): Use it. | |
7217 | (enable_once_breakpoint): Add argument. | |
7218 | (enable_once_command): Update. | |
7219 | (enable_delete_breakpoint): Add argument. | |
7220 | (enable_delete_command): Update. | |
7221 | (break_command_really): Set last_was_multi when needed. | |
7222 | (check_tracepoint_command): Fix formatting. | |
7223 | (validate_commands_for_breakpoint): New function. | |
7224 | (breakpoint_set_commands): Use it. | |
7225 | (tracepoint_save_command): Update. | |
7226 | * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints): | |
7227 | Declare. | |
7228 | ||
9add0f1b TT |
7229 | 2010-03-24 Tom Tromey <tromey@redhat.com> |
7230 | ||
7231 | * breakpoint.h (struct counted_command_line): New struct. | |
7232 | (struct breakpoint) <commands>: Change type. | |
7233 | (struct bpstats) <commands>: Change type. | |
7234 | <commands_left>: New field. | |
7235 | * breakpoint.c (alloc_counted_command_line): New function. | |
7236 | (incref_counted_command_line): Likewise. | |
7237 | (decref_counted_command_line): Likewise. | |
7238 | (do_cleanup_counted_command_line): Likewise. | |
7239 | (make_cleanup_decref_counted_command_line): Likewise. | |
7240 | (breakpoint_set_commands): Use decref_counted_command_line and | |
7241 | alloc_counted_command_line. | |
7242 | (commands_command): Don't error if breakpoint commands are | |
7243 | executing. | |
7244 | (commands_from_control_command): Likewise. | |
7245 | (bpstat_free): Update. | |
7246 | (bpstat_copy): Likewise. | |
7247 | (bpstat_clear_actions): Likewise. | |
7248 | (bpstat_do_actions_1): Likewise. | |
7249 | (bpstat_stop_status): Likewise. | |
7250 | (print_one_breakpoint_location): Likewise. | |
7251 | (delete_breakpoint): Likewise. | |
7252 | (bpstat_alloc): Initialize new field. | |
7253 | (tracepoint_save_command): Update. | |
7254 | * tracepoint.c (encode_actions): Update. | |
7255 | (trace_dump_command): Update. | |
7256 | ||
a6c727b2 DJ |
7257 | 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
7258 | ||
7259 | * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview. | |
7260 | * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer. | |
7261 | (read_structure_type): For RealView, set TYPE_STUB on structures with | |
7262 | no byte size and no children. | |
7263 | (read_subroutine_type): Mark functions as prototyped by default. | |
7264 | * symtab.c (producer_is_realview): New function. | |
7265 | * symtab.h (expand_line_sal): Fix declaration formatting. | |
7266 | (producer_is_realview): Declare. | |
7267 | ||
0d39a070 DJ |
7268 | 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com> |
7269 | ||
7270 | * arm-tdep.c (skip_prologue_function): New function. | |
7271 | (submask, bit, bits, sbits, BranchDest): Move higher in the file. | |
7272 | (thumb_analyze_prologue): Document return value. Recognize more | |
7273 | Thumb instructions, skippable calls, and some Thumb-2 instructions. | |
7274 | Add debug output. | |
7275 | (arm_skip_prologue): Remove call dummy check. Check the prologue | |
7276 | for non-GNU compilers. | |
7277 | (arm_instruction_changes_pc): New function. | |
7278 | (arm_analyze_prologue): New function, broken out from | |
7279 | arm_scan_prologue. Recognize more ARM instructions and skippable | |
7280 | calls. Update comments. Handle NULL cache. Return the address | |
7281 | of the first unrecognized instruction. Do not skip past other | |
7282 | instructions which change control flow. Add debug output. | |
7283 | (arm_scan_prologue): Use arm_analyze_prologue. | |
7284 | (ARM_PC_32): Delete. | |
7285 | (shifted_reg_val): Simplify ARM_PC_32 check. | |
7286 | ||
4baf5cf4 VP |
7287 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7288 | ||
7289 | * tracepoint.c (tvariables_info_1): Actually compute | |
7290 | the number of rows in the result. | |
7291 | ||
4a5e7a5b PA |
7292 | 2010-03-24 Pedro Alves <pedro@codesourcery.com> |
7293 | ||
7294 | * remote.c (crc32): Constify `buf' parameter. | |
7295 | (remote_verify_memory): New, abstracted out from... | |
7296 | (compare_sections_command): ... this. Remove hardcoded target | |
7297 | checks. | |
7298 | (init_remote_ops): Install remote_verify_memory. | |
7299 | * target.c (target_verify_memory): New. | |
7300 | * target.h (struct target_ops) <to_verify_memory>: New field. | |
7301 | (target_verify_memory): Declare. | |
7302 | ||
011aacb0 VP |
7303 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7304 | ||
7305 | Implement -trace-save. | |
7306 | ||
7307 | * mi-cmds.h (mi_cmds_trace_save): Declare. | |
7308 | * mi-cmds.c (mi_cmds): Register -trace-save. | |
7309 | * mi/mi-main.c (mi_cmd_trace_save): New. | |
7310 | * remote.c (remote_save_trace_data): Take const parameter. | |
7311 | * target.h (struct target_ops::to_save_trace_data): Take | |
7312 | const parameter. | |
7313 | * target.c (update_current_target): Adjust to the above. | |
7314 | * tracepoint.c (trave_save): New, extracted from | |
7315 | (trace_save_command): ...this. | |
7316 | (tfile_trace_find): Remove message that is unnecessary now | |
7317 | that 'tfind' reports found frame. | |
7318 | * tracepoint.h (trace_save): Declare. | |
7319 | ||
f197e0f1 VP |
7320 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7321 | ||
7322 | Implement -trace-find. | |
7323 | ||
7324 | * mi/mi-cmds.c (mi_cmds): Register -trace-find. | |
7325 | * mi/mi-cmds.h (mi_cmd_trace_find): Declare. | |
7326 | * mi/mi-main.c (mi_cmd_trace_find): New. | |
7327 | * target.h (struct target_ops): Document to_trace_find. | |
7328 | * tracepoint.h (tfind_1): Declare. | |
7329 | * tracepoint.c (finish_tfind_command): Rename to... | |
7330 | (tfind_1): ...this. | |
7331 | * remote.c (remote_trace_find): Return -1 if target say | |
7332 | there's no frame. Improve error diagnostics. | |
7333 | ||
40e1c229 VP |
7334 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7335 | ||
7336 | -trace-define-variable and -trace-list-variables. | |
7337 | ||
7338 | * tracepoint.c (create_trace_state_variable): Make | |
7339 | private copy of name, as opposed to assuming the | |
7340 | pointer lives forever. | |
7341 | (tvariables_info_1): New. | |
7342 | (tvariables_info): Use the above. | |
7343 | * tracepoint.h (create_trace_state_variable, tvariables_info_1): | |
7344 | Declare. | |
7345 | * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable | |
7346 | and -trace-list-variables. | |
7347 | * mi/mi-cmds.h (mi_cmd_trace_define_variable) | |
7348 | (mi_cmd_trace_list_variables): New. | |
7349 | * mi/mi-main.c (mi_cmd_trace_define_variable) | |
7350 | (mi_cmd_trace_list_variables): New. | |
7351 | ||
9b4c786c VP |
7352 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7353 | ||
7354 | Implement -break-passcount. | |
7355 | ||
7356 | * mi/mi-cmd-break.c (mi_cmd_break_passcount): New. | |
7357 | * mi/mi-cmds.c (mi_cmds): Register -break-passcount. | |
7358 | * mi/mi-cmds.h (mi_cmd_break_passcount): Declare. | |
7359 | ||
f224b49d VP |
7360 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7361 | ||
7362 | -trace-start/-trace-end/-trace-status. | |
7363 | ||
7364 | * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status | |
7365 | and -trace-stop. | |
7366 | * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status) | |
7367 | (mi_cmd_trace_stop): Declare. | |
7368 | * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status) | |
7369 | (mi_cmd_trace_stop): New. | |
7370 | * tracepoint.c (start_tracing): New, extracted from... | |
7371 | (trace_start_command): ...this. | |
7372 | (trace_status_mi): New. | |
7373 | * tracepoint.h (struct trace_status): Document | |
7374 | stopping_tracepoint. | |
7375 | (start_tracing, stop_tracing, trace_status_mi): Declare. | |
7376 | ||
6534d786 VP |
7377 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7378 | ||
7379 | Implement creating tracepoints with -break-insert. | |
7380 | ||
7381 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a | |
7382 | to mean that tracepoint should be created. | |
7383 | ||
51661e93 VP |
7384 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7385 | ||
7386 | * breakpoint.c (check_no_tracepoint_commands): Use | |
7387 | current spelling of 'teval'. | |
7388 | ||
a7bdde9e VP |
7389 | 2010-03-24 Vladimir Prus <vladimir@codesourcery.com> |
7390 | ||
7391 | Unify actions and commands | |
7392 | ||
7393 | * defs.h (read_command_lines, read_command_lines_1): New | |
7394 | parameters validator and closure. | |
7395 | * tracepoint.h (struct action_line): Remove. | |
7396 | * breakpoint.h (struct breakpoint): Remove the 'actions' | |
7397 | field. | |
7398 | * defs.h (enum command_control_type): New value | |
7399 | while_stepping_control. | |
7400 | (struct command_line): Add comments. | |
7401 | * breakpoint.c (breakoint_is_tracepoint): New. | |
7402 | (breakpoint_set_commands): For tracepoints, | |
7403 | verify the commands are permissible. | |
7404 | (check_tracepoint_commands): New. | |
7405 | (commands_command): Require that each new line is validated using | |
7406 | check_tracepoint_command, if we set commands for a tracepoint. | |
7407 | (create_tracepoint_from_upload): Likewise. | |
7408 | (print_one_breakpoint_location): Remove the code to print | |
7409 | actions specifically. | |
7410 | (tracepoint_save_command): Relay to print_command_lines. | |
7411 | * cli/cli-script.c (process_next_line): New parameters validator | |
7412 | and closure. Handle 'while-stepping'. Call validator if not null. | |
7413 | (read_command_lines, read_command_lines1): Likewise. | |
7414 | (recurse_read_control_structure): New parameters validator and | |
7415 | closure. Handle while_stepping_control. | |
7416 | (print_command_lines): Handle while-stepping. | |
7417 | (get_command_line, define_command, document_command): Adjust. | |
7418 | * remote.c (remote_download_tracepoint): Adjust. | |
7419 | * tracepoint.c (make_cleanup_free_actions, read_actions) | |
7420 | (free_actions, do_free_actions_cleanup): Remove. | |
7421 | (trace_actions_command): Use read_command_lines. | |
7422 | (validate_actionline): Use error in one place. | |
7423 | (encode_actions_1): New, extracted from... | |
7424 | (encode_actions): ...this. Also use cleanups for exception | |
7425 | safety. | |
7426 | (trace_dump_command): Adjust. | |
7427 | * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if | |
7428 | it's tracepoint. | |
7429 | ||
64e3cf3d MF |
7430 | 2010-03-23 Mike Frysinger <vapier@gentoo.org> |
7431 | ||
7432 | * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/.. | |
7433 | ||
52e9fde8 SS |
7434 | 2010-03-22 Stan Shebs <stan@codesourcery.com> |
7435 | ||
7436 | * value.c (value_static_field): Be lazy about the field's value. | |
7437 | ||
508ccb1f TT |
7438 | 2010-03-22 Reid Kleckner <reid@kleckner.net> |
7439 | ||
7440 | PR gdb/11094 | |
7441 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add | |
7442 | bp_jit_event. | |
7443 | (disable_breakpoints_in_shlibs): Likewise. | |
7444 | ||
acebe513 UW |
7445 | 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com> |
7446 | ||
7447 | * dwarf2read.c (partial_die_parent_scope): Work around buggy | |
7448 | GCC 4.1 debug info generation (GCC PR c++/28460). | |
7449 | (determine_prefix): Likewise. | |
7450 | ||
957b8b5a DJ |
7451 | 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com> |
7452 | ||
7453 | * tui/tui-disasm.c (tui_get_begin_asm_address): Default to | |
7454 | get_current_arch. | |
7455 | * tui/tui-layout.c (extract_display_start_addr): Likewise. | |
7456 | ||
3b11a015 SS |
7457 | 2010-03-19 Stan Shebs <stan@codesourcery.com> |
7458 | ||
7459 | * ax-gdb.c (gen_fetch): Handle bool. | |
7460 | (gen_usual_unary): Ditto. | |
7461 | (gen_cast): Ditto. | |
7462 | (gen_equal): New function. | |
7463 | (gen_less): New function. | |
7464 | (gen_expr_binop_rest): Call them, also return integer type from | |
7465 | logical operations. | |
7466 | (gen_expr): Ditto. | |
7467 | ||
20781792 TT |
7468 | 2010-03-19 Tom Tromey <tromey@redhat.com> |
7469 | ||
7470 | * jv-lang.c (jv_dynamics_objfile_data_key) | |
7471 | (jv_type_objfile_data_key): New globals. | |
7472 | (class_symtab): Move earlier. | |
7473 | (jv_per_objfile_free): New function. | |
7474 | (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch' | |
7475 | parameter. | |
7476 | Remove ancient #if 1. | |
7477 | (add_class_symbol): Remove redundant declaration. | |
7478 | (java_lookup_class): Use alloc_type, not alloc_type_arch. | |
7479 | (java_link_class_type): Mark as static. Update. | |
7480 | (jv_clear_object_type): New function. | |
7481 | (set_java_object_type): Likewise. | |
7482 | (get_java_object_type): Use set_java_object_type. | |
7483 | (is_object_type): Likewise. | |
7484 | (_initialize_java_language): Register new objfile keys. | |
7485 | (get_java_class_symtab): Add 'gdbarch' parameter. | |
7486 | (add_class_symtab_symbol): Update. | |
7487 | (type_from_class): Update. | |
7488 | ||
cf3e25ca SS |
7489 | 2010-03-19 Stan Shebs <stan@codesourcery.com> |
7490 | ||
8d95cc3b | 7491 | * ax-general.c (ax_const_l): Fix a sizing bug. |
cf3e25ca | 7492 | |
f1ae44c9 | 7493 | 2010-03-18 Joel Brobecker <brobecker@adacore.com> |
7494 | ||
7495 | GDB 7.1 released. | |
7496 | ||
4daf5ac0 SS |
7497 | 2010-03-18 Stan Shebs <stan@codesourcery.com> |
7498 | Pedro Alves <pedro@codesourcery.com> | |
7499 | ||
7500 | * target.h (struct target_ops): New method | |
7501 | to_set_circular_trace_buffer. | |
7502 | (target_set_circular_trace_buffer): New macro. | |
7503 | * target.c (update_current_target): Add | |
7504 | to_set_circular_trace_buffer, fix to_set_disconnected_tracing | |
7505 | default behavior. | |
7506 | * remote.c (remote_set_circular_trace_buffer): New function. | |
7507 | (init_remote_ops): Add it to vector. | |
7508 | * tracepoint.h (struct trace_status): New field traceframes_created, | |
7509 | change buffer_size and buffer_free to int. | |
7510 | * tracepoint.c (circular_trace_buffer): New global. | |
7511 | (start_tracing): Send values of disconnected tracing and circular | |
7512 | trace buffer settings. | |
7513 | (set_circular_trace_buffer): New function. | |
7514 | (parse_trace_state): Handle total space and frames created. | |
7515 | (trace_status_command): Display total space and total frames | |
7516 | created. | |
7517 | (trace_save): Write out new status values. | |
7518 | (parse_trace_status): Set traceframe_count, traceframes_created, | |
7519 | buffer_free and buffer_size to -1 by default. | |
7520 | (_initialize_tracepoint): New setshow for circular-trace-buffer. | |
7521 | * NEWS: Mention the circular trace buffer option. | |
7522 | ||
40c549d6 TT |
7523 | 2010-03-18 Tom Tromey <tromey@redhat.com> |
7524 | ||
7525 | * infcmd.c (finish_command_continuation): Wrap print_return_value | |
7526 | in TRY_CATCH. | |
7527 | ||
e8d05480 JB |
7528 | 2010-03-18 Joel Brobecker <brobecker@adacore.com> |
7529 | ||
7530 | * dwarf2read.c (add_partial_subprogram): Make sure the subprogram | |
7531 | DIE has a name before creating the associated partial symbol. | |
7532 | (read_func_scope): Emit a complaint if the subprogram does not | |
7533 | have a name or when we can't extract the subprogram PC bounds. | |
7534 | ||
441b986a UW |
7535 | 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com> |
7536 | ||
7537 | * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch | |
7538 | instead of selected frame architecture. | |
7539 | ||
4247603b PA |
7540 | 2010-03-18 Pedro Alves <pedro@codesourcery.com> |
7541 | ||
7542 | * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's | |
7543 | a valid selected thread, and that it is not running. | |
7544 | (advance_command): Ditto. | |
7545 | (finish_command): Ditto. | |
7546 | ||
400c6af0 SS |
7547 | 2010-03-17 Stan Shebs <stan@codesourcery.com> |
7548 | ||
3a96536b SS |
7549 | * ax-gdb.c (require_rvalue): Disallow non-scalars. |
7550 | ||
573cda03 SS |
7551 | * infcall.c: Include tracepoint.h. |
7552 | (call_function_by_hand): Disallow calls in tfind mode. | |
7553 | * infcmd.c: Include tracepoint.h. | |
7554 | (ensure_not_tfind_mode): New function. | |
7555 | (continue_1): Call it. | |
7556 | (step_1) Ditto. | |
7557 | (jump_command): Ditto. | |
7558 | (signal_command): Ditto. | |
7559 | (advance_command): Ditto. | |
7560 | (until_command): Ditto. | |
7561 | (finish_command): Ditto. | |
7562 | * tracepoint.h (disconnect_or_stop_tracing): Declare. | |
7563 | ||
400c6af0 SS |
7564 | * ax-gdb.h (struct axs_value): New field optimized_out. |
7565 | (gen_trace_for_var): Add gdbarch argument. | |
7566 | * ax-gdb.c (gen_trace_static_fields): New function. | |
7567 | (gen_traced_pop): Call it, add gdbarch argument. | |
7568 | (gen_trace_for_expr): Update call to it. | |
7569 | (gen_trace_for_var): Ditto, and report optimized-out variables. | |
7570 | (gen_struct_ref_recursive): Check for optimized-out value. | |
7571 | (gen_struct_elt_for_reference): Ditto. | |
7572 | (gen_static_field): Pass gdbarch instead of expression, assume | |
7573 | optimization if field not found. | |
7574 | (gen_var_ref): Set the optimized_out flag. | |
7575 | (gen_expr): Error on optimized-out variable. | |
7576 | * tracepoint.c (collect_symbol): Handle struct-valued vars as | |
7577 | expressions, skip optimized-out variables with computed locations. | |
7578 | * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of | |
7579 | erroring out if location expression missing. | |
7580 | (loclist_tracepoint_var_ref): Don't error out here. | |
7581 | ||
a3b2a86b TT |
7582 | 2010-03-17 Tom Tromey <tromey@redhat.com> |
7583 | ||
7584 | * dwarf2read.c (dwarf2_get_section_info): Handle case where no | |
7585 | DWARF data is available. | |
7586 | ||
38963c97 DJ |
7587 | 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
7588 | ||
7589 | * symfile.c (generic_load): Reset breakpoints after loading. | |
7590 | ||
ddabfc73 TT |
7591 | 2010-03-17 Tom Tromey <tromey@redhat.com> |
7592 | ||
7593 | * linux-nat.c (linux_nat_detach): Check debug_linux_nat. | |
7594 | ||
d8c09fb5 JK |
7595 | 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
7596 | ||
7597 | * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the | |
7598 | create_breakpoint call, adjust the parameters. | |
7599 | ||
bbb0eef6 JK |
7600 | 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
7601 | Chandru <chandru@in.ibm.com> | |
7602 | ||
7603 | * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED. | |
7604 | * valarith.c (value_subscripted_rvalue): Suppress error if | |
7605 | TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED. | |
7606 | ||
46956e39 HZ |
7607 | 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org> |
7608 | ||
7609 | * linux-record.c (record_linux_msghdr): Remove unintended semicolons. | |
7610 | ||
b8d088ac JB |
7611 | 2010-03-16 Joel Brobecker <brobecker@adacore.com> |
7612 | ||
7613 | * ada-tasks.c (task_command_1): Check that the task ptid is valid | |
7614 | before doing the associated thread switch. | |
7615 | ||
322be962 DJ |
7616 | 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com> |
7617 | ||
7618 | * MAINTAINERS: Update my email address. | |
7619 | ||
8cdf0e15 VP |
7620 | 2010-03-16 Vladimir Prus <vladimir@codesourcery.com> |
7621 | ||
7622 | Simplify MI breakpoint setting. | |
7623 | ||
7624 | * breakpoint.c (break_command_really): Make nonstatic and | |
7625 | rename to... | |
7626 | (create_breakpoint): ...this. Rename prior function by this name | |
7627 | to... | |
7628 | (create_breakpoint_sal): ...this. | |
7629 | (create_breakpoints): Rename to... | |
7630 | (create_breakpoints_sal): ...this. | |
7631 | (set_breakpoint): Remove. | |
7632 | * breakpoint.h: Adjust to above changes. | |
7633 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify. | |
7634 | ||
b6e7192f SS |
7635 | 2010-03-15 Stan Shebs <stan@codesourcery.com> |
7636 | ||
7637 | * ax-gdb.c: Include cp-support.h. | |
7638 | (find_field): Remove. | |
7639 | (gen_primitive_field): New function. | |
7640 | (gen_struct_ref_recursive): New function. | |
7641 | (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead | |
7642 | of find_field. | |
7643 | (gen_static_field): New function. | |
7644 | (gen_struct_elt_for_reference): New. | |
7645 | (gen_namespace_elt): New. | |
7646 | (gen_maybe_namespace_elt): New. | |
7647 | (gen_aggregate_elt_ref): New. | |
7648 | (gen_expr): Add OP_SCOPE, display opcode name in error message. | |
7649 | ||
1054b214 TT |
7650 | 2010-03-15 Tom Tromey <tromey@redhat.com> |
7651 | ||
7652 | * dwarf2read.c (die_needs_namespace): Also return 0 for | |
7653 | DW_TAG_subprogram. | |
7654 | ||
13387711 SW |
7655 | 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com> |
7656 | ||
7657 | PR c++/7936: | |
7658 | * cp-support.h: Added char *declaration element to using_direct | |
7659 | data struct. | |
7660 | (cp_add_using): Added char *declaration argument. | |
7661 | (cp_add_using_directive): Ditto. | |
7662 | (cp_lookup_symbol_imports): made extern. | |
7663 | * cp-namespace.c: Updated with the above changes. | |
7664 | * dwarf2read.c (read_import_statement): Ditto. | |
7665 | (read_namespace): Ditto. | |
7666 | (read_import_statement): Support import declarations. | |
7667 | * cp-namespace.c (cp_lookup_symbol_imports): Check for imported | |
7668 | declarations. | |
7669 | Added support for 'declaration_only' search. | |
7670 | (cp_lookup_symbol_namespace): Attempt to search for the name as | |
7671 | is before consideration of imports. | |
7672 | * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only' | |
7673 | search at every block level search. | |
7674 | Now takes language argument. | |
7675 | (lookup_symbol_aux): Updated. | |
7676 | ||
6e31430b TT |
7677 | 2010-03-15 Tom Tromey <tromey@redhat.com> |
7678 | ||
7679 | * c-exp.y (name_not_typename): Add 'operator' clause. | |
7680 | ||
4dea3bb7 | 7681 | 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change) |
bf307134 JB |
7682 | |
7683 | * configure.ac: Exit if ${gdb_target_obs}" is not set. | |
7684 | * configure: Regenerate. | |
7685 | ||
4d9743af JK |
7686 | 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
7687 | ||
7688 | * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss" | |
7689 | and ".sdynbss". Update the comment. | |
7690 | ||
f75150fe JZ |
7691 | 2010-03-15 Jie Zhang <jie@codesourcery.com> |
7692 | ||
7693 | * MAINTAINERS: Update my email address. | |
7694 | ||
3c13bc11 DJ |
7695 | 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
7696 | ||
7697 | * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check. | |
7698 | ||
43484f03 DJ |
7699 | 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
7700 | ||
7701 | * charset.c [USE_WIN32API]: Include <windows.h>. | |
7702 | (_initialize_charset): Correct type of w32_host_default_charset. | |
7703 | ||
5f25d77d PA |
7704 | 2010-03-14 Pedro Alves <pedro@codesourcery.com> |
7705 | ||
7706 | * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid. | |
7707 | ||
1c809c68 TT |
7708 | 2010-03-12 Tom Tromey <tromey@redhat.com> |
7709 | ||
7710 | PR c++/9708: | |
7711 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable | |
7712 | in a lexical block does not need a namespace. | |
7713 | (new_symbol) <DW_TAG_variable>: Put extern variables on | |
7714 | list_in_scope in all cases. | |
7715 | ||
948103cf SS |
7716 | 2010-03-12 Stan Shebs <stan@codesourcery.com> |
7717 | ||
7718 | * ax-gdb.c (gen_expr): Add shift expressions. | |
7719 | (gen_expr_binop_rest): Ditto. | |
7720 | ||
00ae8fef SW |
7721 | 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com> |
7722 | ||
7723 | * buildsym.c (finish_block): Reset using_directives pointer | |
7724 | after block initialization. | |
7725 | ||
9cad29ac L |
7726 | 2010-03-12 H.J. Lu <hongjiu.lu@intel.com> |
7727 | ||
7728 | * amd64-tdep.c (amd64_word_names): Replace "sp" with "". | |
7729 | * i386-tdep.c (i386_word_names): Likewise. | |
7730 | ||
2f4d8875 PA |
7731 | 2010-03-12 Pedro Alves <pedro@codesourcery.com> |
7732 | ||
7733 | * target.c (memory_xfer_partial): Don't use the stack cache if | |
7734 | inspecting trace frames. | |
7735 | * tracepoint.c (finish_tfind_command): Invalidate the target | |
7736 | dcache. | |
7737 | ||
ccf26247 JK |
7738 | 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
7739 | ||
7740 | * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered | |
7741 | for the PIC displacement, print also the displacement value. | |
7742 | (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE. | |
7743 | ||
477c84a7 KB |
7744 | 2010-03-10 Kevin Buettner <kevinb@redhat.com> |
7745 | ||
7746 | * remote-mips.c (close_ports, mips_initialize_cleanups) | |
7747 | (mips_exit_cleanups, mips_send_command, mips_open, pmon_open) | |
7748 | (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint) | |
7749 | (mips_stopped_by_watchpoint, send_srec, pmon_checkset) | |
7750 | (pmon_make_fastrec, pmon_check_ack, mips_expect_download) | |
7751 | (pmon_check_entry_address, pmon_check_total, pmon_end_download) | |
7752 | (pmon_download, pmon_load_fast, _initialize_remote_mips): Add | |
7753 | comments describing each of these functions. | |
7754 | (mips_enter_debug, mips_exit_debug, common_open) | |
7755 | (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add | |
7756 | blank line after the comment describing the function. | |
7757 | ||
01c30d6e JK |
7758 | 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
7759 | ||
7760 | * solib-svr4.c (svr4_exec_displacement): Return now success, new | |
7761 | parameter displacementp. Update comment. | |
7762 | (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS | |
7763 | element exists. Return if svr4_exec_displacement was not successful. | |
7764 | Update comment. | |
7765 | ||
09919ac2 JK |
7766 | 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
7767 | Daniel Jacobowitz <dan@codesourcery.com> | |
7768 | ||
7769 | * solib-svr4.c (read_program_header): Support type == -1 to read | |
7770 | all program headers. | |
7771 | (read_program_headers_from_bfd): New function. | |
7772 | (svr4_static_exec_displacement): Remove and move the comment ... | |
7773 | (svr4_exec_displacement): ... here. Remove variable found. New | |
7774 | variable displacement. Check also DYNAMIC. Verify DISPLACEMENT | |
7775 | alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF | |
7776 | targets using read_program_headers_from_bfd. Remove the call of | |
7777 | svr4_static_exec_displacement. | |
7778 | ||
d146bf1e TT |
7779 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
7780 | ||
7781 | * dwarf2read.c (struct pubnames_header): Remove. | |
7782 | (_PUBNAMES_HEADER): Remove. | |
7783 | (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove. | |
7784 | (struct aranges_header): Remove. | |
7785 | (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove. | |
7786 | (struct dwarf2_per_objfile) <pubnames, aranges>: Remove. | |
7787 | (PUBNAMES_SECTION): Remove. | |
7788 | (ARANGES_SECTION): Remove. | |
7789 | (dwarf2_locate_sections): Don't handle pubnames or aranges. | |
7790 | (dwarf2_build_psymtabs): Remove dead code. | |
7791 | (dwarf2_build_psymtabs_easy): Remove. | |
7792 | ||
be391dca TT |
7793 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
7794 | ||
7795 | * elfread.c (elf_symfile_read): Don't call | |
7796 | dwarf2_build_frame_info. | |
7797 | * dwarf2read.c (struct dwarf2_section_info) <readin>: New field. | |
7798 | (struct dwarf2_per_objfile) <objfile>: New field. | |
7799 | (dwarf2_has_info): Now idempotent. Set objfile field. | |
7800 | (dwarf2_read_section): Check and set readin field. Call | |
7801 | posix_madvise. | |
7802 | (dwarf2_build_psymtabs): Don't read all sections. | |
7803 | (read_type_comp_unit_head): Read types section. | |
7804 | (create_debug_types_hash_table): Likewise. | |
7805 | (init_cu_die_reader): Add asserts. | |
7806 | (process_type_comp_unit): Add assert. | |
7807 | (dwarf2_build_psymtabs_hard): Read info section. | |
7808 | (load_partial_comp_unit): Add assert. | |
7809 | (create_all_comp_units): Read info section. | |
7810 | (load_full_comp_unit): Likewise. | |
7811 | (dwarf2_ranges_read): Read ranges section. | |
7812 | (dwarf2_record_block_ranges): Add assert. | |
7813 | (dwarf2_read_abbrevs): Read abbrev section. | |
7814 | (read_indirect_string): Read str section. | |
7815 | (dwarf_decode_line_header): Read line section. | |
7816 | (read_signatured_type_at_offset): Read types section. | |
7817 | (dwarf_decode_macros): Read macinfo section. | |
7818 | (dwarf2_symbol_mark_computed): Read loc section. | |
7819 | * dwarf2-frame.c (dwarf2_frame_find_fde): Call | |
7820 | dwarf2_build_frame_info. | |
7821 | (dwarf2_build_frame_info): Unconditionally set | |
7822 | dwarf2_frame_objfile_data on the objfile. | |
7823 | * configure.ac: Check for posix_madvise. | |
7824 | * config.in, configure: Rebuild. | |
7825 | ||
ccefe4c4 TT |
7826 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
7827 | ||
e38df1d0 TT |
7828 | * xcoffread.c (xcoff_start_psymtab): Update. |
7829 | (xcoff_end_psymtab): Update. | |
7830 | * psymtab.c (allocate_psymtab): Remove dead code. | |
7831 | * psympriv.h (struct partial_symtab) <read_symtab_private>: Now | |
7832 | void*. | |
7833 | * mdebugread.c (parse_partial_symbols): Update. | |
7834 | (new_psymtab): Likewise. | |
7835 | * dwarf2read.c (process_psymtab_comp_unit): Update. | |
7836 | (psymtab_to_symtab_1): Update. | |
7837 | * dbxread.c (start_psymtab): Update. | |
7838 | (end_psymtab): Likewise. | |
7839 | ||
be391dca | 7840 | 2010-03-10 Tom Tromey <tromey@redhat.com> |
e38df1d0 | 7841 | |
ccefe4c4 TT |
7842 | * xcoffread.c: Include psymtab.h. |
7843 | (xcoff_sym_fns): Update. | |
7844 | * symtab.h (struct partial_symbol): Remove. | |
7845 | (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove. | |
7846 | (struct partial_symtab): Remove. | |
7847 | (PSYMTAB_TO_SYMTAB): Remove. | |
7848 | (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab) | |
7849 | (find_pc_sect_psymtab): Remove. | |
7850 | (find_pc_sect_symtab_via_partial): Declare. | |
7851 | (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab) | |
7852 | (find_main_psymtab): Remove. | |
7853 | (find_main_filename): Declare. | |
7854 | (fixup_psymbol_section): Remove. | |
7855 | (fixup_section): Declare. | |
7856 | * symtab.c: Include psymtab.h. | |
7857 | (lookup_symtab): Use lookup_symtab method. | |
7858 | (lookup_partial_symtab): Remove. | |
7859 | (find_pc_sect_psymtab_closer): Remove. | |
7860 | (find_pc_sect_psymtab): Remove. | |
7861 | (find_pc_sect_symtab_via_partial): New function. | |
7862 | (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove. | |
7863 | (fixup_section): No longer static. | |
7864 | (fixup_psymbol_section): Remove. | |
7865 | (lookup_symbol_aux): Use lookup_symbol_aux_quick. | |
7866 | (lookup_global_symbol_from_objfile): Likewise. | |
7867 | (lookup_symbol_aux_psymtabs): Remove. | |
7868 | (lookup_symbol_aux_quick): New function. | |
7869 | (lookup_symbol_global): Use lookup_symbol_aux_quick. | |
7870 | (lookup_partial_symbol): Remove. | |
7871 | (basic_lookup_transparent_type_quick): New function. | |
7872 | (basic_lookup_transparent_type): Use it. | |
7873 | (find_main_psymtab): Remove. | |
7874 | (find_main_filename): New function. | |
7875 | (find_pc_sect_symtab): Use find_pc_sect_symtab method. | |
7876 | (find_line_symtab): Use expand_symtabs_with_filename method. | |
7877 | (output_partial_symbol_filename): New function. | |
7878 | (sources_info): Use map_partial_symbol_filenames. | |
7879 | (struct search_symbols_data): New type. | |
7880 | (search_symbols_file_matches): New function. | |
7881 | (search_symbols_name_matches): Likewise. | |
7882 | (search_symbols): Use expand_symtabs_matching method. | |
7883 | (struct add_name_data): Rename from add_macro_name_data. | |
7884 | (add_macro_name): Update. | |
7885 | (add_partial_symbol_name): New function. | |
7886 | (default_make_symbol_completion_list): Use | |
7887 | map_partial_symbol_names. | |
7888 | (struct add_partial_symbol_name): New type. | |
7889 | (maybe_add_partial_symtab_filename): New function. | |
7890 | (make_source_files_completion_list): Use | |
7891 | map_partial_symbol_filenames. | |
7892 | (expand_line_sal): Use expand_symtabs_with_filename method. | |
7893 | * symmisc.c: Include psymtab.h. | |
7894 | (print_objfile_statistics): Use print_stats method. | |
7895 | (dump_objfile): Use dump method. | |
7896 | (dump_psymtab, maintenance_print_psymbols) | |
7897 | (maintenance_info_psymtabs, maintenance_check_symtabs) | |
7898 | (extend_psymbol_list): Remove. | |
7899 | * symfile.h (struct quick_symbol_functions): New struct. | |
7900 | (struct sym_fns) <qf>: New field. | |
7901 | (sort_pst_symbols): Remove. | |
7902 | (increment_reading_symtab): Declare. | |
7903 | * symfile.c: Include psymtab.h. | |
7904 | (compare_psymbols, sort_pst_symbols): Remove. | |
7905 | (psymtab_to_symtab): Remove. | |
7906 | (increment_reading_symtab): New function. | |
7907 | (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs | |
7908 | method. | |
7909 | (set_initial_language): Use find_main_filename. | |
7910 | (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove. | |
7911 | (free_named_symtabs): Remove unused code. | |
7912 | (start_psymtab_common, add_psymbol_to_bcache) | |
7913 | (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list): | |
7914 | Remove. | |
7915 | * stack.c: Include psymtab.h, symfile.h. | |
7916 | (backtrace_command_1): Use find_pc_sect_symtab_via_partial. | |
7917 | * source.h (psymtab_to_fullname): Don't declare. | |
7918 | * source.c: Include psymtab.h. | |
7919 | (select_source_symtab): Use find_last_source_symtab method. | |
7920 | (forget_cached_source_info): Use forget_cached_source_info | |
7921 | method. | |
7922 | (find_and_open_source): No longer static. | |
7923 | (psymtab_to_fullname): Remove. | |
7924 | * somread.c: Include psymtab.h. | |
7925 | (som_sym_fns): Update. | |
7926 | * psympriv.h: New file. | |
7927 | * psymtab.h: New file. | |
7928 | * psymtab.c: New file. | |
7929 | * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove. | |
7930 | (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise. | |
7931 | * objfiles.c: Include psymtab.h. | |
7932 | (objfile_relocate1): Use relocate method. | |
7933 | (objfile_has_partial_symbols): Use has_symbols method. | |
7934 | * mipsread.c: Include psymtab.h. | |
7935 | (ecoff_sym_fns): Update. | |
7936 | * mi/mi-cmd-file.c: Include psymtab.h. | |
7937 | (print_partial_file_name): New function. | |
7938 | (mi_cmd_file_list_exec_source_files): Use | |
7939 | map_partial_symbol_filenames. | |
7940 | * mdebugread.c: Include psympriv.h. | |
7941 | * machoread.c: Include psympriv.h. | |
7942 | (macho_sym_fns): Update. | |
7943 | * m2-exp.y (yylex): Use lookup_symtab. | |
7944 | * elfread.c: Include psympriv.h. | |
7945 | (elf_sym_fns): Update. | |
7946 | * dwarf2read.c: Include psympriv.h. | |
7947 | * dbxread.c: Include psympriv.h. | |
7948 | (aout_sym_fns): Update. | |
7949 | * cp-support.c: Include psymtab.h. | |
7950 | (read_in_psymtabs): Remove. | |
7951 | (make_symbol_overload_list_qualified): Use | |
7952 | expand_symtabs_for_function method. | |
7953 | * coffread.c: Include psympriv.h. | |
7954 | (coff_sym_fns): Update. | |
7955 | * blockframe.c: Include psymtab.h. | |
7956 | (find_pc_partial_function): Use find_pc_sect_symtab method. | |
7957 | * ada-lang.h (ada_update_initial_language): Update. | |
7958 | * ada-lang.c: Include psymtab.h. | |
7959 | (ada_update_initial_language): Remove 'main_pst' argument. | |
7960 | (ada_lookup_partial_symbol): Remove. | |
7961 | (struct ada_psym_data): New type. | |
7962 | (ada_add_psyms): New function. | |
7963 | (ada_add_non_local_symbols): Use map_ada_symtabs method. | |
7964 | (struct add_partial_datum): New type. | |
7965 | (ada_add_partial_symbol_completions): New function. | |
7966 | (ada_make_symbol_completion_list): Use map_partial_symbol_names. | |
7967 | (ada_exception_support_info_sniffer): Update. | |
7968 | * Makefile.in (SFILES): Add psymtab.c. | |
7969 | (COMMON_OBS): Add psymtab.o. | |
7970 | (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h. | |
7971 | ||
7d8500b7 PM |
7972 | 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr> |
7973 | ||
7974 | * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API. | |
7975 | ||
c0cc3a76 SW |
7976 | 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com> |
7977 | ||
7978 | PR C++/11236: | |
7979 | * cp-namespace.c (cp_add_using): Deleted. | |
7980 | (cp_add_using_directive): Use obstack allocations. | |
7981 | Merged the function cp_add_using into this one. | |
7982 | Added 'struct obstack *' argument. | |
7983 | (cp_scan_for_anonymous_namespaces): Updated. | |
7984 | * cp-support.h: Updated. | |
7985 | * dwarf2read.c (read_import_statement): Updated. | |
7986 | (read_namespace): Updated. | |
7987 | ||
452fa064 CF |
7988 | 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr> |
7989 | ||
7990 | * windows-nat.c (cygwin_conv_path): Remove old macro. | |
7991 | ||
60e1c644 PA |
7992 | 2010-03-10 Pedro Alves <pedro@codesourcery.com> |
7993 | ||
7994 | * breakpoint.c (condition_command): Handle watchpoint conditions. | |
7995 | (is_hardware_watchpoint): Add comment. | |
7996 | (is_watchpoint): New. | |
7997 | (update_watchpoint): Don't reparse the watchpoint's condition | |
7998 | unless necessary. | |
7999 | (WP_IGNORE): New. | |
8000 | (watchpoint_check): Use it. | |
8001 | (bpstat_check_watchpoint): Handle it. | |
8002 | (bpstat_check_breakpoint_conditions): Evaluate watchpoint local | |
8003 | conditions in a frame where it makes sense. | |
8004 | (watch_command_1): Store the innermost block of the condition | |
8005 | expression. | |
8006 | (delete_breakpoint): Delete the watchpoint condition expression. | |
8007 | * breakpoint.h (struct bp_location) <cond>: Update comment. | |
8008 | (struct breakpoint): New field `cond_exp_valid_block'. | |
8009 | ||
af6b7be1 JB |
8010 | 2010-03-09 Joel Brobecker <brobecker@adacore.com> |
8011 | ||
8012 | Adjust handling of Ada DIEs after dwarf2_physname patch. | |
8013 | * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs. | |
8014 | ||
60c5c021 CF |
8015 | 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx> |
8016 | Pierre Muller <muller@ics.u-strasbg.fr> | |
8017 | ||
8018 | * windows-nat.c (cygwin_conv_path): Redefine to properly convert | |
8019 | from/to posix/win32. | |
8020 | (windows_make_so): Use non-Cygwin 1.7 specific function. | |
8021 | (windows_create_inferior): Make sure that cygallargs points to | |
8022 | original args in non Cygwin 1.7. case. | |
8023 | ||
60a1502a MS |
8024 | 2010-03-09 Michael Snyder <msnyder@vmware.com> |
8025 | ||
8026 | * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int | |
8027 | after target_read_memory to get host byte order. | |
8028 | (i386_process_record): Ditto. | |
8029 | ||
94af9270 KS |
8030 | 2010-03-09 Keith Seitz <keiths@redhat.com> |
8031 | ||
8032 | Based on work from Daniel Jacobowitz <dan@codesourcery.com> | |
8033 | * c-typeprint.c (cp_type_print_method_args): For non-static methods, | |
8034 | print out const or volatile qualifiers, too. | |
8035 | (c_type_print_args): Add parameters show_artificial and language. | |
8036 | Skip artificial parameters when requested. | |
8037 | Use the appropriate language printer. | |
8038 | (c_type_print_varspec): Tell c_type_print_args to skip artificial | |
8039 | parameters and pass language_c. | |
8040 | * dwarf2read.c (die_list): New file global. | |
8041 | (struct partial_die_info): Update comments for name field. | |
8042 | (pdi_needs_namespace): Renamed to ... | |
8043 | (die_needs_namespace): ... this. Rewrite. | |
8044 | (dwarf2_linkage_name): Remove. | |
8045 | (add_partial_symbol): Do not predicate the call to | |
8046 | partial_die_full_name based on pdi_needs_namespace. | |
8047 | Remove call to cp_check_possible_namespace_symbols and associated | |
8048 | outdated comments. | |
8049 | (guess_structure_name): Do not inspect child subprogram DIEs. | |
8050 | (dwarf2_fullname): Update comments. | |
8051 | Use die_needs_namespace to assist in computing the name. | |
8052 | (read_func_scope): Use dwarf2_name to get the DIE's name. | |
8053 | Use dwarf2_physname to get the "linkage name" of the DIE. | |
8054 | (dwarf2_add_member_field): Use dwarf2_physname instead of | |
8055 | dwarf2_linkage_name. | |
8056 | (read_structure_type): For structs and classes, set TYPE_NAME, too. | |
8057 | (determine_class): Remove. | |
8058 | (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages | |
8059 | except Ada. | |
8060 | (new_symbol): Unconditionally call dwarf2_name. | |
8061 | Compute the "linkage name" using dwarf2_physname. | |
8062 | Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs. | |
8063 | When determining to scan for anonymous C++ namespaces, ignore | |
8064 | the linkage name. | |
8065 | (dwarf2_physname): New function. | |
8066 | (dwarf2_full_name): Move content to new function and call | |
8067 | that. | |
8068 | (dwarf2_compute_name): "New" function. | |
8069 | (_initialize_dwarf2_read): Initialize die_list. | |
8070 | * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable | |
8071 | physname. | |
8072 | (gnu_v3_print_method_ptr): Use the physname for virtual methods | |
8073 | without a demangled name. | |
8074 | Print out type information for non-virtual methods. | |
c8d5aac9 | 8075 | * linespec.c (decode_line_1): Force ANY string using "::" (or |
94af9270 | 8076 | "." for java) to use decode_compound, and clean up any stray quoting. |
c8d5aac9 L |
8077 | If we found a file symtab, re-evaluate whether the remainder is_quoted. |
8078 | (decode_compound): Stop consuming at an open parenthesis. | |
8079 | Keep template parameters. | |
8080 | Keep any overload information. | |
8081 | Keep keywords like "const". | |
8082 | Remove paren_pointer. | |
8083 | Move is_quoted check from set_flags to here. | |
8084 | Remove #if 0 code from 2000. Ten years is long enough. | |
8085 | (find_method): Before comparing symbol names, canonicalize the string | |
8086 | from the user. | |
8087 | If a specific overload is requested, find it. Otherwise throw an error. | |
94af9270 KS |
8088 | (find_method_overload_end): New function. |
8089 | (set_flags): Remove. | |
c8d5aac9 L |
8090 | (decode_compound): Assume that parentheses are matched. |
8091 | It's a lot easier. | |
94af9270 KS |
8092 | * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag |
8093 | to cplus_demangle. | |
8094 | * linespec.c (decode_line_1): Keep important keywords like | |
8095 | "const" and "volatile". | |
8096 | * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove. | |
8097 | * typeprint.h (c_type_print_args): Add declaration. | |
8098 | * ui-file.c (do_ui_file_obsavestring): New function. | |
8099 | (ui_file_obsavestring): New function. | |
8100 | * ui-file.h (ui_file_obsavestring): Add declaration. | |
8101 | * valops.c (find_overload_match): Resolve the object to | |
8102 | a non-pointer type. | |
8103 | If the object is a data member, search the object for the member | |
8104 | and return with staticp set. | |
8105 | Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME. | |
8106 | Do not attempt to extract a function name from non-function types. | |
8107 | If the extracted function name and the original name are the same, | |
8108 | we don't have a C++ method. | |
8109 | ||
8d95cc3b PA |
8110 | From Jan Kratochvil <jan.kratochvil@redhat.com>: |
8111 | * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name. | |
94af9270 KS |
8112 | |
8113 | * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters | |
8114 | and arguments from symbol lookups. | |
8115 | * ax-gdb.c (gen_expr): Likewise. | |
8116 | * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope, | |
8117 | cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type, | |
8118 | lookup_possible_namespace_symbol): Likewise. | |
8119 | * cp-support.c (read_in_psymtabs): Likewise. | |
8120 | * cp-support.h (cp_lookup_symbol_nonlocal): Likewise. | |
8121 | * language.h (la_lookup_symbol_nonlocal): Likewise. | |
8122 | * scm-valprint.c (scm_inferior_print): Likewise. | |
8123 | * solib-darwin.c (darwin_relocate_section_addresses): Likewise. | |
8124 | * solib-svr.c (elf_lookup_lib): Likewise. | |
8125 | * solib.c (show_auto_solib_add): Likewise. | |
8126 | * solist.h (lookup_lib_global, solib_global_lookup): Likewise. | |
8127 | * symmisc.c (maintenance_check_symtabs): Likewise. | |
8128 | * symtab.c (lookup_symbol_in_language, lookup_symbol_aux, | |
8129 | lookup_symbol_aux_local, lookup_symbol_aux_block, | |
8130 | lookup_symbol_from_objfile, lookup_symbol_aux_symtabs, | |
8131 | lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal, | |
8132 | lookup_symbol_static, lookup_symbol_global, symbol_matches_domain, | |
8133 | basic_lookup_transparent_type, find_main_psymtab, | |
8134 | lookup_block_symbol): Likewise. | |
8135 | * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static, | |
8136 | lookup_symbol_global, lookup_symbol_aux_block, | |
8137 | lookup_symbol_partial_symbol, lookup_block_symbol, | |
8138 | lookup_global_symbol, value_maybe_namespace_elt): Likewise. | |
8139 | ||
9cb74f47 PM |
8140 | 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr> |
8141 | ||
8142 | * python/python-internal.h: Include symtab.h. | |
8143 | ||
af6b7be1 JB |
8144 | 2010-03-09 Joel Brobecker <brobecker@adacore.com> |
8145 | Pierre Muller <muller@ics.u-strasbg.fr> | |
e13eedd5 PM |
8146 | |
8147 | * p-lang.c (is_pascal_string_type): Remove unneeded parentheses. | |
8148 | * p-valprint.c (pascal_val_print): Remove undeed block and fix | |
8149 | indentation. | |
8150 | ||
bad56014 TT |
8151 | 2010-03-08 Tom Tromey <tromey@redhat.com> |
8152 | ||
8153 | * breakpoint.c (breakpoint_1): Add "QUIT". | |
8154 | ||
08105857 PA |
8155 | 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com> |
8156 | Pedro Alves <pedro@codesourcery.com> | |
8157 | ||
8158 | * solib.c (solib_find): Replace extension if | |
8159 | solib_symbols_extension is set in the target gdbarch. | |
8160 | * arm-symbian-tdep.c (arm_symbian_init_abi): Set | |
8161 | solib_symbols_extension to "sym". | |
8162 | * gdbarch.sh (solib_symbols_extension): New variable. | |
8163 | (pstring): New function. | |
8164 | * gdbarch.h, gdbarch.c: Regenerate. | |
8165 | ||
7c953934 TT |
8166 | 2010-03-08 Tom Tromey <tromey@redhat.com> |
8167 | ||
8168 | PR cli/9591: | |
8169 | * NEWS: Update. | |
8170 | * utils.c: Include main.h. | |
8171 | (fputs_maybe_filtered): Don't paginate if `batch_flag'. | |
8172 | (defaulted_query): Use default answer if `batch_flag'. | |
8173 | * main.h (batch_flag): Declare. | |
8174 | * main.c (batch_flag): New global. | |
8175 | (captured_main): Remove 'batch'. Update. | |
8176 | ||
bbd2783e KB |
8177 | 2010-03-08 Kevin Buettner <kevinb@redhat.com> |
8178 | ||
8179 | From Richard Sandiford, Martin M. Hunt, Corinna Vinschen, | |
8180 | and Kevin Buettner: | |
8181 | ||
8182 | * remote-mips.c (rockhopper_ops): New target_ops struct. | |
8183 | (MON_ROCKHOPPER): New mips_monitor_type. | |
8184 | (read_hex_value): New function. | |
8185 | (mips_request): Send 8-byte values with a 'T' packet. Read the | |
8d95cc3b | 8186 | packet argument as a string and use read_hex_value to parse it. |
bbd2783e KB |
8187 | (mips_exit_debug): Wait for response when using MON_ROCKHOPPER. |
8188 | (rockhopper_open): New function. | |
8189 | (mips_wait): Read the PC, FP and SP fields as strings. Use | |
8190 | read_hex_value to parse them and mips_set_register to commit them. | |
8191 | (mips_set_register): New function. | |
8192 | (mips_fetch_registers): Do not cast register value to "unsigned" | |
8193 | when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register. | |
8194 | (mips_store_registers): Use a 'T' packet to set registers when | |
8195 | using MON_ROCKHOPPER. | |
8196 | (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER | |
8197 | and expect the total to be printed before the entry address. | |
8198 | (_initialize_remote_mips): Initialize and add rockhopper_ops. | |
8199 | ||
566f3d17 KB |
8200 | 2010-03-08 Kevin Buettner <kevinb@redhat.com> |
8201 | ||
8202 | * remote-mips.c (mips_fetch_word): Add new parameter, `valp'. | |
8203 | Change return value to int. Store value fetched in location | |
8204 | addressed by `val'. Use function's return value as success | |
8205 | or failure indicator. Adjust all callers. | |
8206 | ||
9c8ee2ab | 8207 | 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr> |
f72d4b77 PM |
8208 | |
8209 | * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL. | |
8210 | ||
7155de5a HZ |
8211 | 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
8212 | Hui Zhu <teawater@gmail.com> | |
8213 | ||
8214 | * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and | |
8215 | tmp_to_stopped_data_address. | |
8216 | (record_open): Reset tmp_to_stopped_by_watchpoint and | |
8217 | tmp_to_stopped_data_address. | |
8218 | * target.c (init_dummy_target): Add to_stopped_by_watchpoint and | |
8219 | to_stopped_data_address. | |
8220 | ||
580879fc HZ |
8221 | 2010-03-08 Hui Zhu <teawater@gmail.com> |
8222 | ||
8223 | * i386-tdep.c (i386_process_record): Initialize regnum. | |
8224 | ||
b0fcb67f JK |
8225 | 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
8226 | ||
8227 | * symfile.c (addr_info_make_relative): New variable sect_name, use it. | |
8228 | Do not warn on ".gnu.liblist" and ".gnu.conflict". | |
8229 | ||
08597104 JB |
8230 | 2010-03-08 Joel Brobecker <brobecker@adacore.com> |
8231 | ||
8232 | Memory error when reading wrong core file. | |
8233 | * solib-svr4.c (solib_svr4_r_map): catch and print all exception | |
8234 | errors while reading the inferior memory, and return zero if | |
8235 | an exception was raised. | |
8236 | ||
425b824a MS |
8237 | 2010-03-07 Michael Snyder <msnyder@vmware.com> |
8238 | ||
ec6dbf37 MS |
8239 | * record.c (record_restore): Rename tmpu8 to rectype. |
8240 | ||
648d0c8b MS |
8241 | * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables |
8242 | tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64. | |
8243 | ||
8244 | (i386_record_push): Rename local tmpulongest to addr. | |
8245 | ||
8246 | (i386_process_record): Rename local tmpulongest to addr. | |
8247 | ||
8248 | Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32, | |
8249 | addr64. | |
955db0c0 MS |
8250 | |
8251 | Rename local variable tmpu8 to opcode8 and regnum. | |
425b824a | 8252 | |
10760264 JB |
8253 | 2010-03-07 Joel Brobecker <brobecker@adacore.com> |
8254 | ||
8255 | * remote.c (remote_get_ada_task_ptid): New function. | |
c8d5aac9 | 8256 | (init_remote_ops): Set remote_ops.to_get_ada_task_ptid. |
10760264 | 8257 | |
b3c613f2 CF |
8258 | 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx> |
8259 | ||
8260 | * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one | |
8261 | block. Define helper macros to reduce ifdefs in code. | |
8262 | (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer | |
8263 | size. Call unadorned GetModuleFileNameEx rather than | |
8264 | GetModuleFileNameEx*. | |
8265 | (windows_make_so): Use __PMAX to denote maximum buffer size and | |
8266 | cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as | |
8267 | appropriate. | |
8268 | (get_image_name): Use __PMAX to denote maximum buffer size. | |
8269 | (handle_load_dll): Likewise. | |
8270 | (windows_pid_to_exec_file): Likewise. | |
8271 | (windows_create_inferior): Add many accommodations for older Cygwin and | |
8272 | non-Cygwin. | |
8273 | (bad_GetModuleFileNameExW): Control inclusion of this function based on | |
8274 | __USEWIDE conditional. | |
8275 | (bad_GetModuleFileNameExA): Likewise. | |
8276 | (_initialize_loadable): Just use real function names without the dyn_ | |
8277 | part since they are defined earlier. | |
8278 | ||
f870a310 TT |
8279 | 2010-03-05 Corinna Vinschen <vinschen@redhat.com> |
8280 | Tom Tromey <tromey@redhat.com> | |
8281 | ||
8282 | * utils.c (host_char_to_target): Add 'gdbarch' argument. | |
8283 | (parse_escape): Likewise. | |
8284 | * python/py-utils.c (unicode_to_target_string): Update. | |
8285 | (unicode_to_target_python_string): Update. | |
8286 | (target_string_to_unicode): Update. | |
8287 | * printcmd.c (printf_command): Update. | |
8288 | * p-exp.y (yylex): Update. | |
8289 | * objc-exp.y (yylex): Update. | |
8290 | * mi/mi-parse.c: Include charset.h. | |
8291 | (mi_parse_escape): New function. | |
8292 | (mi_parse_argv): Use it. | |
8293 | * jv-exp.y (yylex): Update. | |
8294 | * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New | |
8295 | function. | |
8296 | (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset. | |
8297 | * gdbarch.sh (auto_charset, auto_wide_charset): New. | |
8298 | * gdbarch.c: Rebuild. | |
8299 | * gdbarch.h: Rebuild. | |
8300 | * defs.h (parse_escape): Update. | |
8301 | * cli/cli-setshow.c: Include arch-utils.h. | |
8302 | (do_setshow_command): Update. | |
8303 | * cli/cli-cmds.c (echo_command): Update. | |
8304 | * charset.h (target_charset, target_wide_charset): Update. | |
8305 | * charset.c: Include arch-utils.h. | |
8306 | (target_charset_name): Default to "auto". | |
8307 | (target_wide_charset_name): Likewise. | |
8308 | (show_target_charset_name): Handle "auto". | |
8309 | (show_target_wide_charset_name): Likewise. | |
8310 | (be_le_arch): New global. | |
8311 | (set_be_le_names): Add 'gdbarch' argument. | |
8312 | (validate): Likewise. Don't call set_be_le_names. | |
8313 | (set_charset_sfunc, set_host_charset_sfunc) | |
8314 | (set_target_charset_sfunc, set_target_wide_charset_sfunc): | |
8315 | Update. | |
8316 | (target_charset): Add 'gdbarch' argument. | |
8317 | (target_wide_charset): Likewise. Remove 'byte_order' argument. | |
8318 | (auto_target_charset_name): New global. | |
8319 | (default_auto_charset, default_auto_wide_charset): New functions. | |
8320 | (_initialize_charset): Set auto_target_charset_name. Allow "auto" | |
8321 | for target charsets. Copy result of nl_langinfo. Use GetACP if | |
8322 | USE_WIN32API. | |
8323 | * c-lang.c (charset_for_string_type): Add 'gdbarch' argument, | |
8324 | remove 'byte_order' argument. Update. | |
8325 | (classify_type): Likewise. | |
8326 | (c_emit_char): Update. | |
8327 | (c_printchar): Update. | |
8328 | (c_printstr): Update. | |
8329 | (c_get_string): Update. | |
8330 | (evaluate_subexp_c): Update. | |
8331 | * arch-utils.h (default_auto_charset, default_auto_wide_charset): | |
8332 | Declare. | |
8333 | * python/python.c (gdbpy_target_charset): New function. | |
8334 | (gdbpy_target_wide_charset): Likewise. | |
8335 | (GdbMethods): Update. | |
8336 | * NEWS: Update. | |
8337 | ||
4e7386b0 UW |
8338 | 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> |
8339 | ||
8340 | * symfile.c (build_section_addr_info_from_objfile): Do not mask | |
8341 | off high address bits. | |
8342 | ||
aab48ede UW |
8343 | 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> |
8344 | ||
8345 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract | |
8346 | address as UnsignedLongLong, not LongLong. | |
8347 | ||
8eeafb51 | 8348 | 2010-03-05 Kevin Buettner <kevinb@redhat.com> |
c8d5aac9 | 8349 | Pedro Alves <pedro@codesourcery.com> |
8eeafb51 KB |
8350 | |
8351 | * remote-mips.c (gdbthread.h): Include. | |
8352 | (remote_mips_ptid): Declare. | |
8353 | (mips_error): Only mourn the inferior when inferior_ptid is non-null. | |
8354 | (common_open): Set inferior_ptid, add it as an inferior, and | |
8355 | as a thread too. Delete FIXME comment regarding start_remote(). | |
8356 | (mips_close): Invoke generic_mourn_inferior(). | |
8357 | (mips_kill): Make sure that target_mourn_inferior is invoked. | |
8358 | (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as | |
8359 | it's now invoked from mips_close(). | |
8360 | (mips_load): Don't null out inferior_ptid. Don't call | |
8361 | clear_symtab_users(). | |
8362 | (mips_thread_alive, mips_pid_to_str): New functions. | |
8363 | (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize | |
8364 | to_thread_alive and to_pid_to_str operations. | |
8365 | ||
ae411497 TT |
8366 | 2010-03-04 Tom Tromey <tromey@redhat.com> |
8367 | ||
8368 | * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size | |
8369 | in DWARF 3 and later. | |
8370 | (read_attribute_value) <DW_FORM_ref_addr>: Likewise. | |
8371 | ||
0e0b460e KS |
8372 | 2010-03-04 Keith Seitz <keiths@redhat.com> |
8373 | ||
8374 | * linespec.c (decode_line_1): Update comments for is_quote_enclosed. | |
8375 | If the filename portion of the linespec was quoted, recheck the | |
8376 | remainder for additional quoting. | |
8377 | (locate_first_half): Skip over completer chars, too. | |
8378 | ||
1b93ff13 TT |
8379 | 2010-03-04 Tom Tromey <tromey@redhat.com> |
8380 | ||
8381 | * printcmd.c (printf_command): Pass dummy argument to | |
8382 | printf_filtered. | |
8383 | ||
fc36e839 DE |
8384 | 2010-03-04 Doug Evans <dje@google.com> |
8385 | ||
111f853c DE |
8386 | * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg, |
8387 | unwound_fp. | |
8388 | ||
fc36e839 DE |
8389 | * arm-tdep.c (arm_stub_unwind_sniffer): Add comment. |
8390 | ||
c7437ca6 PA |
8391 | 2010-03-04 Pedro Alves <pedro@codesourcery.com> |
8392 | ||
8393 | * breakpoint.c (update_watchpoint): Create a sentinel location if | |
8394 | the software watchpoint isn't watching any memory. | |
8395 | (breakpoint_address_bits): Skip dummy software watchpoint locations. | |
8396 | ||
58dadb1b PA |
8397 | 2010-03-04 Pedro Alves <pedro@codesourcery.com> |
8398 | ||
8399 | * utils.c (fputs_maybe_filtered): Check if there's already a top | |
8400 | level interpreter before dereferencing it. If there isn't one, | |
8401 | don't paginate either. | |
8402 | ||
50e98be4 DJ |
8403 | 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
8404 | ||
8405 | * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get | |
8406 | the state right when single stepping. | |
8407 | (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions. | |
8408 | Get the next PC along with the instruction state. | |
8409 | (thumb_get_next_pc): Remove. | |
8410 | (arm_get_next_pc): Modified to use arm_get_next_pc_raw. | |
8411 | ||
2e3ceee9 HZ |
8412 | 2010-03-04 Hui Zhu <teawater@gmail.com> |
8413 | ||
8414 | * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64". | |
8415 | ||
390a8aca PA |
8416 | 2010-03-03 Pedro Alves <pedro@codesourcery.com> |
8417 | ||
8418 | * utils.c (fputs_maybe_filtered): Always disable pagination if the | |
8419 | top level interpreter is MI. | |
8420 | ||
9355b391 SS |
8421 | 2010-03-03 Stan Shebs <stan@codesourcery.com> |
8422 | ||
8423 | * remote.c (remote_download_tracepoint): Iterate over locations. | |
8424 | * tracepoint.c (validate_actionline): Ditto. | |
8425 | (encode_actions): Add location argument. | |
8426 | (trace_dump_command): Check all locations to see if stepping | |
8427 | frame. | |
390a8aca | 8428 | |
8685c86f L |
8429 | 2010-03-03 H.J. Lu <hongjiu.lu@intel.com> |
8430 | Eli Zaretskii <eliz@gnu.org> | |
8431 | ||
8432 | * NEWS: Add X86 general purpose registers section. | |
8433 | ||
e8f781e2 TT |
8434 | 2010-03-03 Tom Tromey <tromey@redhat.com> |
8435 | ||
8436 | PR mi/11098: | |
8437 | * varobj.c (install_new_value): Handle case where new print_value | |
8438 | is NULL. | |
8439 | ||
a0e0ef55 TT |
8440 | 2010-03-03 Dainis Jonitis <jonitis@gmail.com> |
8441 | ||
8442 | PR gdb/11345: | |
8443 | * printcmd.c (printf_command): Print end of format string using | |
8444 | printf_filtered. | |
8445 | ||
a58d7472 TT |
8446 | 2010-03-02 Tom Tromey <tromey@redhat.com> |
8447 | ||
8448 | * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'. | |
8449 | * defs.h (read_command_lines_1): Add missing 'void'. | |
8450 | * cli/cli-script.c (recurse_read_control_structure): Add missing | |
8451 | 'void'. | |
8452 | (read_next_line): Likewise. | |
8453 | (read_command_lines_1): Likewise. | |
8454 | ||
ce50d78b UW |
8455 | 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com> |
8456 | ||
8457 | * spu-tdep.c (spu_analyze_prologue): Track instruction to | |
8458 | store backchain as part of prologue. | |
8459 | ||
7e9af34a DJ |
8460 | 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com> |
8461 | ||
8462 | * progspace.c (update_address_spaces): Update inferior address spaces | |
8463 | also. | |
8464 | ||
01637564 DE |
8465 | 2010-03-02 Doug Evans <dje@google.com> |
8466 | ||
8467 | * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to | |
8468 | lowpc,highpc args to addrmap_set_empty. | |
8469 | ||
1ba53b71 L |
8470 | 2010-03-02 H.J. Lu <hongjiu.lu@intel.com> |
8471 | ||
8472 | * amd64-tdep.c (amd64_byte_names): New. | |
8473 | (amd64_word_names): Likewise. | |
8474 | (amd64_dword_names): Likewise. | |
8475 | (amd64_pseudo_register_name): Likewise. | |
8476 | (amd64_pseudo_register_read): Likewise. | |
8477 | (amd64_pseudo_register_write): Likewise. | |
8478 | (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs | |
8479 | and num_mmx_regs. Call set_gdbarch_pseudo_register_read, | |
8480 | set_gdbarch_pseudo_register_write and | |
8481 | set_tdesc_pseudo_register_name. Don't call | |
8482 | set_gdbarch_num_pseudo_regs. Don't set mm0_regnum. | |
8483 | ||
8484 | * i386-tdep.c (i386_num_mmx_regs): Removed. | |
8485 | (i386_num_pseudo_regs): Likewise. | |
8486 | (i386_byte_names): New. | |
8487 | (i386_word_names): Likewise. | |
8488 | (i386_byte_regnum_p): Likewise. | |
8489 | (i386_word_regnum_p): Likewise. | |
8490 | (i386_mmx_regnum_p): Updated. | |
8491 | (i386_pseudo_register_name): Make it global. Handle byte and | |
8492 | word pseudo-registers. | |
8493 | (i386_pseudo_register_read): Likewise. | |
8494 | (i386_pseudo_register_write): Likewise. | |
8495 | (i386_pseudo_register_type): Handle byte, word and dword | |
8496 | pseudo-registers | |
8497 | (i386_register_reggroup_p): Don't include pseudo | |
8498 | registers, except for MXX, in any register groups. Don't | |
8499 | include pseudo byte, word, dword registers in general_reggroup. | |
8500 | (i386_gdbarch_init): Set num_byte_regs, num_word_regs, | |
8501 | num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX | |
8502 | pseudo-registers after word pseudo-registers. Call | |
8503 | set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi. | |
8504 | ||
8505 | * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs, | |
8506 | al_regnum, num_word_regs, ax_regnum, num_dword_regs and | |
8507 | eax_regnum. | |
8508 | (i386_byte_regnum_p): New. | |
8509 | (i386_word_regnum_p): Likewise. | |
8510 | (i386_dword_regnum_p): Likewise. | |
8511 | (i386_pseudo_register_name): Likewise. | |
8512 | (i386_pseudo_register_read): Likewise. | |
8513 | (i386_pseudo_register_write): Likewise. | |
8514 | ||
a6f5ef51 L |
8515 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
8516 | ||
8517 | * target-descriptions.c (tdesc_type): Remove | |
8518 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
8519 | (tdesc_predefined_types): Likewise. | |
8520 | (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag | |
8521 | if flag name is empty. | |
8522 | (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS. | |
8523 | ||
8524 | * features/i386/32bit-core.xml: Define i386_eflags. | |
8525 | * features/i386/64bit-core.xml: Likewise. | |
8526 | ||
8527 | * features/i386/32bit-sse.xml: Define i386_mxcsr. | |
8528 | * features/i386/64bit-sse.xml: Likewise. | |
8529 | ||
8530 | * features/i386/amd64-linux.c: Regenerated. | |
8531 | * features/i386/amd64.c: Likewise. | |
8532 | * features/i386/i386-linux.c: Likewise. | |
8533 | * features/i386/i386.c: Likewise. | |
8534 | ||
f5dff777 DJ |
8535 | 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com> |
8536 | ||
8537 | * gdbtypes.c (append_composite_type_field_raw): New. | |
8538 | (append_composite_type_field_aligned): Use the new function. | |
8539 | * gdbtypes.h (append_composite_type_field_raw): Declare. | |
8540 | * target-descriptions.c (struct tdesc_type_field): Add start and end. | |
8541 | (struct tdesc_type_flag): New type. | |
8542 | (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to | |
8543 | kind. Add size to u.u. Add u.f for flags. | |
8544 | (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS. | |
8545 | (tdesc_free_type): Likewise. | |
8546 | (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New. | |
8547 | (tdesc_add_field): Handle TDESC_TYPE_STRUCT. | |
8548 | (tdesc_add_bitfield, tdesc_add_flag): New. | |
8549 | * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size) | |
8550 | (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare. | |
8551 | * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to | |
8552 | current_type. Add current_type_size and current_type_is_flags. | |
8553 | (tdesc_start_union): Clear the new fields. | |
8554 | (tdesc_start_struct, tdesc_start_flags): New. | |
8555 | (tdesc_start_field): Handle struct fields, including bitfields. | |
8556 | (field_attributes): Make type optional. Add start and end. | |
8557 | (union_children): Rename to struct_union_children. | |
8558 | (union_attributes): Rename to struct_union_attributes. Add optional | |
8559 | size. | |
8560 | (flags_attributes): New. | |
8561 | (feature_children): Add struct and flags. | |
8562 | * features/gdb-target.dtd: Add flags and struct to features. | |
8563 | Make field type optional. Add field start and end. | |
8564 | ||
90884b2b L |
8565 | 2010-03-01 H.J. Lu <hongjiu.lu@intel.com> |
8566 | ||
8567 | * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New. | |
8568 | (amd64_linux_read_description): Likewise. | |
8569 | (_initialize_amd64_linux_nat): Set to_read_description to | |
8570 | amd64_linux_read_description. | |
8571 | ||
8572 | * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c". | |
8573 | (amd64_linux_register_name): Removed. | |
8574 | (amd64_linux_register_type): Likewise. | |
8575 | (amd64_linux_core_read_description): New. | |
8576 | (amd64_linux_init_abi): Set target description to | |
8577 | tdesc_amd64_linux if needed. Support orig_rax in target | |
8578 | description. Don't call set_gdbarch_register_name nor | |
8579 | set_gdbarch_register_type. Call | |
8580 | set_gdbarch_core_read_description. | |
8581 | (_initialize_amd64_linux_tdep): Call | |
8582 | initialize_tdesc_amd64_linux. | |
8583 | ||
8584 | * amd64-linux-tdep.h (tdesc_amd64_linux): New. | |
8585 | ||
8586 | * amd64-tdep.c: Include "features/i386/amd64.c". | |
8587 | (amd64_register_names): Removed. | |
8588 | (amd64_register_name): Likewise. | |
8589 | (amd64_register_type): Likewise. | |
8590 | (amd64_init_abi): Set num_core_regs and register_names. Set | |
8d95cc3b | 8591 | target description to tdesc_amd64 if needed. Don't call |
90884b2b L |
8592 | set_gdbarch_register_name nor set_gdbarch_register_type. |
8593 | (_initialize_amd64_tdep): New. | |
8594 | ||
8595 | * i386-linux-nat.c (i386_linux_read_description): New. | |
8596 | (_initialize_i386_linux_nat): Set to_read_description to | |
8597 | i386_linux_read_description. | |
8598 | ||
8599 | * i386-linux-tdep.c: Include "features/i386/i386-linux.c". | |
8600 | (i386_linux_register_name): Removed. | |
8601 | (i386_linux_core_read_description): New. | |
8602 | (i386_linux_read_description): Likewise. | |
8603 | (i386_linux_init_abi): Don't call set_gdbarch_register_name. | |
8604 | Set target description to tdesc_i386_linux if needed. Support | |
8605 | orig_eax. Set register_reggroup_p. Call | |
8606 | set_gdbarch_core_read_description. | |
8607 | (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux. | |
8608 | ||
8609 | * i386-linux-tdep.h (tdesc_i386_linux): New. | |
8610 | ||
8611 | * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS | |
8612 | with I387_NUM_REGS. | |
8613 | ||
8614 | * i386-tdep.c: Include "features/i386/i386.c". | |
8615 | (i386_register_names): Make it const. | |
8616 | (i386_mmx_names): Likewise. | |
8617 | (i386_num_register_names): Removed. | |
8618 | (i386_register_name): Likewise. | |
8619 | (i386_eflags_type): Likewise. | |
8620 | (i386_mxcsr_type): Likewise. | |
8621 | (i386_sse_type): Likewise. | |
8622 | (i386_register_type): Likewise. | |
8623 | (i387_ext_type): Call tdesc_find_type instead of arch_float_type. | |
8624 | (i386_pseudo_register_name): New. | |
8625 | (i386_pseudo_register_type): Likewise. | |
8626 | (i386_mmx_type): Make it static. | |
8627 | (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with | |
8628 | I387_NUM_REGS. Set num_core_regs and register_names. Don't | |
8629 | call set_gdbarch_register_name nor set_gdbarch_register_type. | |
8630 | Set register_reggroup_p. Set target description to tdesc_i386 | |
8631 | if needed. Call set_tdesc_pseudo_register_type, | |
8632 | set_tdesc_pseudo_register_name and tdesc_use_registers. | |
8633 | (_initialize_i386_tdep): Call initialize_tdesc_i386. | |
8634 | initialize_tdesc_x86_64. | |
8635 | ||
8636 | * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type, | |
8637 | i386_mxcsr_type and i386_sse_type. Add num_core_regs, | |
8638 | register_names, tdesc and register_reggroup_p. | |
8639 | (I386_NUM_FREGS): Removed. | |
8640 | (i386_eflags_type): Likewise. | |
8641 | (i386_mxcsr_type): Likewise. | |
8642 | (i386_mmx_type): Likewise. | |
8643 | (i386_sse_type): Likewise. | |
8644 | (i386_register_name): Likewise. | |
8645 | (i386_regnum): Add I386_MXCSR_REGNUM. | |
8646 | (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM. | |
8647 | ||
8648 | * i387-tdep.h (I387_NUM_REGS): New. | |
8649 | ||
8650 | * regformats/i386/i386-linux.dat: Generated. | |
8651 | * regformats/i386/i386.dat: Likewise. | |
8652 | * regformats/i386/amd64-linux.dat: Likewise. | |
8653 | * regformats/i386/amd64.dat: Likewise. | |
8654 | ||
8655 | * regformats/reg-i386-linux.dat: Removed. | |
8656 | * regformats/reg-i386.dat: Likewise. | |
8657 | * regformats/reg-x86-64-linux.dat: Likewise. | |
8658 | * regformats/reg-x86-64.dat: Likewise. | |
8659 | ||
d0d0ab16 CV |
8660 | 2010-03-01 Corinna Vinschen <vinschen@redhat.com> |
8661 | ||
8662 | * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7 | |
8663 | cygwin_conv_path API rather than the deprecated | |
8664 | cygwin_conv_to_full_posix_path. | |
8665 | * windows-nat.c: | |
8666 | (GetModuleFileNameExA): Undefine for Cygwin. | |
8667 | (GetModuleFileNameExW): Define for Cygwin. | |
8668 | (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin. | |
8669 | Call GetModuleFileNameExW and convert path to POSIX using | |
8670 | cygwin_conv_path. | |
8671 | (windows_make_so): Always define p. Drop unused variable m. | |
8672 | Don't use Win32 functions to check file existance, rather use | |
8673 | access on Cygwin. Fetch system directory using GetSystemDirectoryW. | |
8674 | Use canonicalize_file_name to get full path. | |
8675 | (get_image_name): Use wcstombs, rather than WideCharToMultiByte | |
8676 | to convert Unicode pathname to multibyte on Cygwin. Otherwise, | |
8677 | use correct target buffer size in call to WideCharToMultiByte. | |
8678 | (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin. | |
8679 | (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin. | |
8680 | (windows_create_inferior): Convert all paths and arguments to wchar_t | |
8681 | and use CreateProcessW on Cygwin. | |
8682 | (_initialize_windows_nat): Disable DOS-style path warning on Cygwin. | |
8683 | (bad_GetModuleFileNameExA): Undefine for Cygwin. | |
8684 | (bad_GetModuleFileNameExW): Define for Cygwin. | |
8685 | (_initialize_loadable): Load GetModuleFileNameExW into | |
8686 | dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin. | |
8687 | ||
dc00d89f PM |
8688 | 2010-02-28 Phil Muldoon <pmuldoon@redhat.com> |
8689 | ||
8690 | PR python/11036 | |
8691 | * python/py-frame.c (frapy_read_var): Add block argument and logic | |
8692 | to cope with user provided blocks. | |
8693 | ||
0e095b7e JK |
8694 | 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
8695 | ||
8696 | * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp. | |
8697 | New comment. | |
8698 | ||
2f9e05b4 CV |
8699 | 2010-02-28 Corinna Vinschen <vinschen@redhat.com> |
8700 | ||
8701 | * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here... | |
8702 | (COMMON_OBS): ... to here since it's used unconditionally. | |
8703 | (SUBDIR_MI_SRCS): Move mi/mi-common.c from here... | |
8704 | (SFILES): To here. | |
8705 | ||
eb195664 DD |
8706 | 2010-02-26 David Daney <ddaney@caviumnetworks.com> |
8707 | ||
8708 | * mips-linux-tdep.c: Update struct sigframe comments. | |
8709 | (SIGFRAME_CODE_OFFSET): Delete macro. | |
8710 | (mips_linux_o32_sigframe_init): Calculate sigcontext_base using | |
8711 | this_frame's sp. | |
8712 | (mips_linux_n32n64_sigframe_init): Same. | |
8713 | ||
97b0f3e2 KB |
8714 | 2010-02-26 Kevin Buettner <kevinb@redhat.com> |
8715 | ||
8716 | * remote-mips.c (mips_load): Don't use pseudo-register when | |
8717 | invalidating regcache. | |
8718 | ||
4069ebbe DJ |
8719 | 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com> |
8720 | ||
8721 | * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode. | |
8722 | ||
05071a4d PA |
8723 | 2010-02-26 Pedro Alves <pedro@codesourcery.com> |
8724 | ||
8725 | * NEWS: Add "New targets" section, and mention ARM Symbian | |
8726 | support. | |
8727 | ||
6063c216 UW |
8728 | 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com> |
8729 | ||
8730 | * dwarf2loc.c (struct piece_closure): Remove ARCH member, | |
8731 | add ADDR_SIZE member. | |
8732 | (allocate_piece_closure): Update. | |
8733 | (copy_pieced_value_closure): Likewise. | |
8734 | (dwarf2_evaluate_loc_desc): Likewise. | |
8735 | (read_pieced_value): Use DWARF address size instead of | |
8736 | GDB's gdbarch_addr_bit as size of values on the DWARF stack. | |
8737 | ||
5107b149 | 8738 | 2010-02-26 Phil Muldoon <pmuldoon@redhat.com> |
c8d5aac9 | 8739 | Tom Tromey <tromey@redhat.com> |
5107b149 PM |
8740 | |
8741 | * python/py-type.c (typy_lookup_typename): Add in block argument. | |
8742 | If provided restrict lookup to specified blocks. | |
8743 | (gdbpy_lookup_type): Likewise. | |
8744 | (typy_lookup_type): Likewise. | |
8745 | ||
78664fa3 | 8746 | 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com> |
8d95cc3b | 8747 | |
78664fa3 PA |
8748 | Symbian config |
8749 | ||
8750 | gdb/ | |
8751 | * arm-symbian-tdep.c: New. | |
8752 | * configure.tgt (arm*-*-symbianelf*): New target. | |
8753 | (*-*-symbianelf*): New OS. | |
8754 | * osabi.c (gdb_osabi_names): Add Symbian. | |
8755 | * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN. | |
8756 | * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o. | |
8757 | (ALLDEPFILES): Add arm-symbian-tdep.c. | |
8758 | ||
eb73e134 DJ |
8759 | 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com> |
8760 | ||
8761 | * symfile.c (find_lowest_section): Include SEC_ALLOC sections. | |
8762 | ||
46ef47e5 PA |
8763 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8764 | ||
8765 | * mi/mi-main.c (mi_cmd_execute): Fix typo. | |
8766 | ||
f3e9a817 | 8767 | 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> |
8d95cc3b | 8768 | Tom Tromey <tromey@redhat.com> |
f3e9a817 PM |
8769 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
8770 | ||
8771 | * python/python.c (_initialize_python): Call | |
8772 | gdbpy_initialize_symtabs, gdbpy_initialize_symbols and | |
8773 | gdbpy_initialize_blocks. | |
8774 | * python/python-internal.h: Declare struct symbol, block and | |
8775 | symtab_and_line. Declare block_object_type and | |
8776 | symbol_object_type | |
8777 | (gdbpy_lookup_symbol gdbpy_block_for_pc) | |
8778 | (symtab_and_line_to_sal_object, symtab_to_symtab_object) | |
8779 | (symbol_to_symbol_object, block_to_block_object) | |
8780 | (gdbpy_initialize_symtabs,gdbpy_initialize_symbols) | |
8781 | (gdbpy_initialize_blocks ): Declare. | |
8782 | * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal) | |
8783 | (frapy_select): Add methods. | |
8784 | (frapy_read_var): Add symbol branch. | |
8785 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab, | |
8786 | py-block. | |
8787 | (SUBDIR_PYTHON_SRCS): Likewise. | |
8788 | (py-symbol.o): New rule. | |
8789 | (py-symtab.o): Likewise. | |
8790 | (py-block.o): Likewise. | |
8791 | * python/py-symbol.c: New file. | |
8792 | * python/py-symtab.c: Likewise. | |
8793 | * python/py-block.c: Likewise. | |
8794 | ||
24291992 PA |
8795 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8796 | ||
8797 | PR gdb/11321 | |
8798 | ||
8799 | * inferior.h (prepare_for_detach): Declare. | |
8800 | (struct inferior) <detaching>: New field. | |
8801 | * infrun.c (prepare_for_detach): New. | |
8802 | (handle_inferior_event) <random signal>: Don't stop if detaching. | |
8803 | * target.c (target_detach): Call prepare_for_detach. | |
8804 | ||
fc1cf338 PA |
8805 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8806 | ||
8807 | Per-process displaced stepping queue. | |
8808 | ||
8809 | * infrun.c (displaced_step_ptid, displaced_step_request_queue) | |
8810 | (displaced_step_gdbarch, displaced_step_closure, | |
8811 | (displaced_step_original, displaced_step_copy): Move globals to | |
8812 | this... | |
8813 | (struct displaced_step_inferior_state): ... new structure. | |
8814 | (displaced_step_inferior_states): New global. | |
8815 | (get_displaced_stepping_state, add_displaced_stepping_state) | |
8816 | (remove_displaced_stepping_state, infrun_inferior_exit): New | |
8817 | functions. | |
8818 | (displaced_step_clear): Add displaced_step_inferior_state | |
8819 | parameter, and adjust to handle it. | |
8820 | (displaced_step_clear_cleanup): Parameter is now a | |
8821 | displaced_step_inferior_state. Adjust. | |
8822 | (displaced_step_prepare): Adjust. | |
8823 | (displaced_step_fixup, displaced_step_fixup) | |
8824 | (infrun_thread_ptid_changed, resume): Adjust. | |
8825 | (init_wait_for_inferior): Don't call displaced_step_clear. | |
8826 | (infrun_thread_stop_requested): Rewrite. | |
8827 | (_initialize_infrun): Install infrun_inferior_exit as | |
8828 | inferior_exit observer. | |
8829 | ||
0723dbf5 PA |
8830 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8831 | ||
8832 | * inferior.h (ptid_match): Declare. | |
8833 | * infrun.c (ptid_match): New. | |
8834 | * remote.c (queued_stop_reply): Rewrite and use ptid_match. | |
8835 | (handle_notification): Add debug output. | |
8836 | * linux-nat.c (ptid_match): Delete. | |
8837 | ||
09de9781 DM |
8838 | 2010-02-24 David S. Miller <davem@davemloft.net> |
8839 | ||
8840 | * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. | |
8841 | * syscalls/sparc-linux.xml: New. | |
8842 | * syscalls/sparc64-linux.xml: New. | |
8843 | * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. | |
8844 | * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. | |
8845 | (sparc32_linux_get_syscall_number): New function. | |
8846 | (sparc32_linux_init_abi): Set syscall XML file name and hook up | |
8847 | syscall number fetcher. | |
8848 | * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. | |
8849 | (sparc64_linux_get_syscall_number): New function. | |
8850 | (sparc64_linux_init_abi): Set syscall XML file name and hook up | |
8851 | syscall number fetcher. | |
8852 | ||
a79b8f6e VP |
8853 | 2010-02-24 Vladimir Prus <vladimir@codesourcery.com> |
8854 | ||
8855 | Multiexec MI | |
8856 | ||
8857 | * breakpoint.c (clear_syscall_counts): Take struct inferior*. | |
8858 | * inferior.c (add_inferior_silent): Notify inferior_added | |
8859 | observer. | |
8860 | (delete_inferior_1): Notify inferior_removed observer. | |
8861 | (exit_inferior_1): Pass inferior, not pid, to observer. | |
8862 | (inferior_appeared): Likewise. | |
8863 | (add_inferior_with_spaces): New. | |
8864 | (add_inferior_command): Use the above. | |
8865 | * inferior.h (delete_inferior_1, add_inferior_with_spaces): | |
8866 | Declare. | |
8867 | ||
8868 | * inflow.c (inflow_inferior_exit): Likewise. | |
8869 | * jit.c (jit_inferior_exit_hook): Likewise. | |
8870 | ||
8871 | * mi/mi-cmds.c (mi_cmds): Register add-inferior and | |
8872 | remove-inferior. | |
8873 | * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
8874 | * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New. | |
8875 | (report_initial_inferior): New. | |
8876 | (mi_inferior_removed): Register the above. Make sure | |
8877 | inferior_added observer is called on the first inferior. | |
8878 | (mi_new_thread, mi_thread_exit): Thread group is now identified by | |
8879 | inferior number, not pid. | |
8880 | (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are | |
8881 | affected. | |
8882 | * mi/mi-main.c (current_context): New. | |
8883 | (proceed_thread_callback): Use typed closure. | |
8884 | Proceed everything if pid is 0. Most implementation split into | |
8885 | (proceed_thread): ... this. | |
8886 | (run_one_inferior): New. | |
8887 | (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run): | |
8888 | Adjust for multiexec behaviour. | |
8889 | (mi_cmd_add_inferior, mi_cmd_remove_inferior): New. | |
8890 | (mi_cmd_execute): Handle the 'thread-group' option here. | |
8891 | Do some extra checks. | |
8892 | * mi-parse.c (mi_parse): Handle the --all and --thread-group | |
8893 | options. | |
8894 | * mi-parse.h (struct mi_parse): New fields all and thread_group. | |
8895 | ||
115d30f9 VP |
8896 | 2010-02-24 Vladimir Prus <vladimir@codesourcery.com> |
8897 | ||
8898 | Make -exec-run a proper MI commands. | |
8899 | ||
8900 | * mi/mi-cmds.h (mi_cmd_exec_run): Declare. | |
8901 | * mi/mi-cmds.c (mi_cmds): Adjust. | |
8902 | * mi/mi-main.c (mi_cmd_exec_run): New. | |
8903 | ||
06cd862c PA |
8904 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8905 | Stan Shebs <stan@codesourcery.com> | |
8906 | ||
8907 | * tracepoint.h (set_traceframe_number) | |
8908 | (cleanup_restore_current_traceframe): Declare. | |
8909 | * tracepoint.c (set_traceframe_number): New. | |
8910 | (struct current_traceframe_cleanup): New. | |
8911 | (do_restore_current_traceframe_cleanup) | |
8912 | (restore_current_traceframe_cleanup_dtor) | |
8913 | (make_cleanup_restore_current_traceframe): New. | |
8914 | * infrun.c: Include tracepoint.h. | |
8915 | (fetch_inferior_event): Switch out and in of tfind mode. | |
8916 | ||
ab92d69b PA |
8917 | 2010-02-24 Pedro Alves <pedro@codesourcery.com> |
8918 | ||
8919 | * breakpoint.c (breakpoint_init_inferior): Also delete | |
8920 | bp_shlib_event breakpoints. | |
8921 | * solib-frv.c (enable_break): Remove call to | |
8922 | remove_solib_event_breakpoints. | |
8923 | * solib-svr4.c (enable_break): Ditto. | |
8924 | * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto. | |
8925 | * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto. | |
8926 | * solib-som.c (som_solib_create_inferior_hook): Ditto. | |
8927 | * solib-spu.c (spu_enable_break): Ditto. | |
8928 | ||
e707a91d PA |
8929 | 2010-02-23 Harald Koenig <H.Koenig@science-computing.de> |
8930 | ||
8931 | * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE. | |
8932 | ||
cfce2ea2 PA |
8933 | 2010-02-23 Harald Koenig <H.Koenig@science-computing.de> |
8934 | ||
8935 | * varobj.c (varobj_update): Avoid non-constants in initializers. | |
8936 | ||
05566b3b TT |
8937 | 2010-02-23 Tom Tromey <tromey@redhat.com> |
8938 | ||
8939 | * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly | |
8940 | handle big-endian values. | |
8941 | (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise. | |
8942 | ||
85d721b8 PA |
8943 | 2010-02-22 Pedro Alves <pedro@codesourcery.com> |
8944 | ||
8945 | PR9605 | |
8946 | ||
8947 | gdb/ | |
8948 | * breakpoint.c (insert_bp_location): If inserting the read | |
8949 | watchpoint failed, fallback to an access watchpoint. | |
8950 | (bpstat_check_watchpoint): Stop for read watchpoint triggers even | |
8951 | if the value changed, if not watching the same memory for writes. | |
8952 | (watchpoint_locations_match): Add comment. | |
8953 | (update_global_location_list): Copy the location's watchpoint type. | |
8954 | * i386-nat.c (i386_length_and_rw_bits): It's an internal error to | |
8955 | handle read watchpoints here. | |
8956 | (i386_insert_watchpoint): Read watchpoints aren't supported. | |
8957 | * remote.c (remote_insert_watchpoint): Return 1 for unsupported | |
8958 | packets. | |
8959 | * target.h (target_insert_watchpoint): Update description. | |
8960 | ||
48ea67a7 TT |
8961 | 2010-02-19 Tom Tromey <tromey@redhat.com> |
8962 | ||
8963 | * p-typeprint.c (pascal_type_print_varspec_prefix): Update. | |
8964 | * m2-typeprint.c (m2_print_type): Update. | |
8965 | * gdbtypes.c (recursive_dump_type): Update. | |
8966 | (copy_type_recursive): Update. | |
8967 | * c-typeprint.c (c_type_print_varspec_prefix): Update. | |
8968 | (c_type_print_base): Update. | |
8969 | * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG): | |
8970 | Remove. | |
8971 | (struct cplus_struct_type) <ntemplate_args>: Remove. | |
8972 | <struct template_arg>: Remove. | |
8973 | <is_dynamic>: Move earlier. | |
8974 | (TYPE_TEMPLATE_ARGS): Remove. | |
8975 | (TYPE_NTEMPLATE_ARGS): Remove. | |
8976 | (TYPE_TEMPLATE_ARG): Remove. | |
8977 | ||
48e32051 TT |
8978 | 2010-02-19 Tom Tromey <tromey@redhat.com> |
8979 | ||
8980 | PR c++/8693, PR c++/9496: | |
8981 | * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION. | |
8982 | * c-exp.y (lex_one_token): Rename from yylex. Don't call | |
8983 | write_dollar_variable. Don't try to classify NAME tokens. | |
8984 | (token_and_value): New type. | |
8985 | (token_fifo, popping, name_obstack): New globals. | |
8986 | (classify_name): New function. | |
8987 | (classify_inner_name): Likewise. | |
8988 | (yylex): Likewise. | |
8989 | (VARIABLE): Now has type sval. | |
8990 | (exp : VARIABLE): Call write_dollar_variable. | |
8991 | (qualified_name): Use TYPENAME, not typebase. Add production for | |
8992 | multiple "::" instances. | |
8993 | (variable): Use name_not_typename. | |
8994 | (qualified_type): Remove. | |
8995 | (typebase): Update. | |
8996 | ||
672d9c23 JK |
8997 | 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
8998 | ||
8999 | * symfile.c (addr_info_make_relative): Extend comment. Move SECT to | |
9000 | a more inner block. Initialize ADDR by LOWER_OFFSET only if it was | |
9001 | found by bfd_get_section_by_name. | |
9002 | * symfile.h (struct section_addr_info) <sectindex>: New comment. | |
9003 | ||
bfbf3774 JB |
9004 | 2010-02-19 Joel Brobecker <brobecker@adacore.com> |
9005 | ||
9006 | * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since | |
9007 | 7.0 section" into "Changes in 7.1". | |
9008 | ||
6756b09b | 9009 | 2010-02-19 Joel Brobecker <brobecker@adacore.com> |
9010 | ||
9011 | GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC) | |
9012 | * version.in: Bump version to 7.1.50.20100219-cvs. | |
9013 | ||
202b96c1 PA |
9014 | 2010-02-18 Harald Koenig <H.Koenig@science-computing.de> |
9015 | ||
9016 | * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'. | |
9017 | * symfile.c (symfile_map_offsets_to_segments): Fix assertion. | |
9018 | ||
de2e5182 TT |
9019 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
9020 | ||
9021 | * NEWS: Add Python API Improvements section. | |
9022 | ||
7280022e DJ |
9023 | 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com> |
9024 | ||
9025 | * NEWS: Correct typo. | |
9026 | ||
6f451e5e TT |
9027 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
9028 | ||
9029 | * objfiles.c (gdb_bfd_ref): Handle abfd==NULL. | |
9030 | ||
012836ea JK |
9031 | 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
9032 | ||
9033 | * symfile.c (build_section_addr_info_from_objfile): Include sections | |
9034 | only if they are SEC_ALLOC or SEC_LOAD. | |
9035 | ||
d182d057 L |
9036 | 2010-02-17 H.J. Lu <hongjiu.lu@intel.com> |
9037 | ||
9038 | PR shlibs/11293 | |
9039 | * solib-svr4.c (enable_break): Check size of CORE_ADDR instead | |
9040 | of ULONGEST for address size. | |
9041 | ||
4eef138c TT |
9042 | 2010-02-17 Tom Tromey <tromey@redhat.com> |
9043 | ||
9044 | * NEWS: Add C++ improvements section. | |
9045 | ||
548a926a UW |
9046 | 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
9047 | ||
9048 | * python/python-internal.h [!WITH_THREAD] (PyGILState_Release, | |
9049 | PyThreadState_Swap): Avoid "statement with no effect" warning. | |
9050 | ||
ad3a0e5b JK |
9051 | 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
9052 | ||
9053 | * solib-svr4.c (enable_break <target_auxv_search>): New variable | |
9054 | addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors. | |
9055 | ||
243e2c5d | 9056 | 2010-02-17 Tristan Gingold <gingold@adacore.com> |
b2319725 | 9057 | Petr Hluzin <petr.hluzin@gmail.com> |
243e2c5d TG |
9058 | |
9059 | * avr-tdep.c (avr_scan_prologue): Convert an if statement to a | |
9060 | gdb_assert. Fix info->size for SIG prologue. | |
9061 | ||
275f2e57 DJ |
9062 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
9063 | ||
9064 | * infcmd.c (show_inferior_tty_command): Check for NULL. | |
9065 | Correct output message. | |
9066 | ||
791dfb64 DJ |
9067 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
9068 | ||
9069 | * linespec.c (decode_line_1): Handle FILE:FUNCTION even if | |
9070 | FUNCTION contains parentheses. Improve removal of a trailing | |
9071 | single quote. | |
9072 | ||
14d1346b DJ |
9073 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
9074 | ||
9075 | * gcore.c (do_bfd_delete_cleanup): New function. | |
9076 | (gcore_command): Use it. Discard the cleanup after success. | |
9077 | (gcore_copy_callback): Delete dead code. | |
9078 | ||
e76ab67f DJ |
9079 | 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com> |
9080 | ||
9081 | * symfile.c (addr_info_make_relative): Always use | |
9082 | find_lowest_section. | |
9083 | ||
71dee663 SW |
9084 | 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com> |
9085 | ||
9086 | * NEWS: Added entry for namespace fixes. | |
9087 | ||
a9854bd5 TT |
9088 | 2010-02-15 Tom Tromey <tromey@redhat.com> |
9089 | ||
9090 | * dwarf2read.c (guess_structure_name): Allocate name on the | |
9091 | objfile obstack. | |
9092 | ||
fd9e29b5 TT |
9093 | 2010-02-15 Tom Tromey <tromey@redhat.com> |
9094 | ||
9095 | * c-typeprint.c (c_type_print_base): Reverse order of test. | |
9096 | ||
4e1fc9c9 JK |
9097 | 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
9098 | ||
9099 | * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally | |
9100 | initialize it from ELF BFD. Extend the prelink condition by it. | |
9101 | ||
74164c56 JK |
9102 | 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
9103 | ||
9104 | * defs.h (parse_pid_to_attach): New. | |
9105 | * utils.c (parse_pid_to_attach): New. | |
9106 | * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid. | |
9107 | * gnu-nat.c (gnu_attach): Likewise. | |
9108 | * nto-procfs.c (procfs_attach): Likewise. | |
9109 | * procfs.c (procfs_attach): Likewise. | |
9110 | * windows-nat.c (windows_attach): Likewise. | |
9111 | * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy. | |
9112 | * inf-ttrace.c (inf_ttrace_attach): Likewise. | |
9113 | * remote.c (extended_remote_attach_1): Likewise. New comment on getpid | |
9114 | check. | |
9115 | ||
bf6adea8 MM |
9116 | 2010-02-14 Masaki Muranaka <monaka@monami-software.com> |
9117 | ||
9118 | * MAINTAINERS: Add myself for write after approval privileges. | |
9119 | ||
28f34a8f JK |
9120 | 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
9121 | ||
9122 | * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner | |
9123 | block. | |
9124 | ||
701ed6dc JK |
9125 | 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
9126 | ||
9127 | * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment | |
9128 | only if INFO_VERBOSE. | |
9129 | ||
e5829bee MS |
9130 | 2010-02-12 Tomas Holmberg <th@virtutech.com> |
9131 | ||
9132 | * mi/mi-main.c: Added the --reverse flag to the following MI | |
9133 | commands: exec-continue, exec-finish, exec-next, exec-step, | |
9134 | exec-next-instruction, exec-step-instruction. This is to | |
9135 | support reverse execution over the MI interface to gdb. | |
9136 | ||
081dfbf7 PA |
9137 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
9138 | ||
9139 | * tracepoint.c (_initialize_tracepoint): Specify that the address | |
9140 | range of `tfind outsize' is exclusive, and that the address range | |
9141 | of `tfind range' is inclusive, in the commands' help strings. | |
9142 | ||
ecc13e53 JB |
9143 | 2010-02-12 Joel Brobecker <brobecker@adacore.com> |
9144 | ||
9145 | Spurious "dll not found" error messages on x64-windows. | |
9146 | * windows-nat.c: Add include of complaints.h. | |
9147 | (handle_unload_dll): Change dll-not-found error into a complaint. | |
9148 | ||
15c3d785 PA |
9149 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
9150 | ||
9151 | * breakpoint.c (allocate_bp_location): Use bp_loc_other for | |
9152 | bp_tracepoint and bp_fast_tracepoint, not | |
9153 | bp_loc_software_breakpoint. | |
9154 | (update_global_location_list): Tracepoints are never duplicates of | |
9155 | anything. | |
9156 | ||
fd9b8c24 PA |
9157 | 2010-02-12 Pedro Alves <pedro@codesourcery.com> |
9158 | ||
9159 | * breakpoint.c (break_command_really): Change return type to int. | |
9160 | Return false if no breakpoint was created, true otherwise. | |
9161 | (trace_command): Don't set the tracepoint count if no tracepoint | |
9162 | was created. | |
9163 | (ftrace_command): Ditto. | |
9164 | (create_tracepoint_from_upload): Bail out if the tracepoint wasn't | |
9165 | created in the breakpoints table. | |
9166 | ||
5c0d192f JK |
9167 | 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
9168 | Ulrich Weigand <uweigand@de.ibm.com> | |
9169 | ||
9170 | * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition. | |
9171 | ||
5d5b640e PA |
9172 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
9173 | ||
9174 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if | |
9175 | the offset value isn't of integral type. | |
9176 | ||
e5a0a904 JK |
9177 | 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
9178 | ||
9179 | * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>: | |
9180 | New. | |
9181 | ||
be636754 PA |
9182 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
9183 | ||
9184 | * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on | |
9185 | non-subscriptable types. | |
9186 | * valarith.c (binop_types_user_defined_p): New, abstracted out | |
9187 | from ... | |
9188 | (binop_user_defined_p): ... this. | |
9189 | * value.h (binop_types_user_defined_p): Declare. | |
9190 | ||
10ef8d6a PA |
9191 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
9192 | ||
9193 | * tracepoint.c (tfile_open): Remove spurious discard_cleanups. | |
9194 | Merge uploaded TSVs before merging uploaded tracepoints. | |
9195 | ||
b1028c8e PA |
9196 | 2010-02-11 Pedro Alves <pedro@codesourcery.com> |
9197 | ||
9198 | * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers. | |
9199 | ||
7a93fb82 | 9200 | 2010-02-11 Vladimir Prus <vladimir@codesourcery.com> |
84d90c10 | 9201 | |
7a93fb82 VP |
9202 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra |
9203 | whitespace character after a dot in comment. | |
9204 | (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): | |
9205 | Likewise. | |
9206 | (list_args_or_locals): For the 'all' (that is | |
9207 | -stack-list-variables) case, always output list of tuples. | |
9208 | Output 'arg' field if variable is argument. | |
84d90c10 | 9209 | |
92981e24 TT |
9210 | 2010-02-10 Tom Tromey <tromey@redhat.com> |
9211 | ||
9212 | * parser-defs.h (parser_debug): Declare. | |
9213 | * parse.c (_initialize_parse): Install "debug parser" set/show | |
9214 | command. | |
9215 | (parser_debug): New global. | |
9216 | (show_parserdebug): New function. | |
9217 | * c-exp.y (c_parse): Set yydebug. | |
9218 | ||
9fd3625f L |
9219 | 2010-02-10 H.J. Lu <hongjiu.lu@intel.com> |
9220 | ||
9221 | * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, | |
9222 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
9223 | (tdesc_predefined_types): Add i387_ext, i386_eflags and | |
9224 | i386_mxcsr. | |
9225 | (tdesc_find_type): New. | |
9226 | (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, | |
9227 | TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. | |
9228 | ||
9229 | * target-descriptions.h (tdesc_find_type): New. | |
9230 | ||
2fe842e5 MS |
9231 | 2010-02-10 Michael Snyder <msnyder@vmware.com> |
9232 | ||
9233 | * gdb-gdb.py: Comment fix. | |
9234 | ||
f18b4cab TG |
9235 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
9236 | ||
9237 | * machoread.c (macho_symfile_relocate): New function. | |
9238 | (macho_sym_fns): Use macho_symfile_relocate instead of | |
9239 | default_symfile_relocate. | |
9240 | (macho_oso_data): New type. | |
9241 | (current_oso): New variable. | |
9242 | (macho_add_oso_symfile): Do not compute section_addr_info, but | |
9243 | instead set vma of sections. | |
9244 | Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. | |
9245 | Set and clear current_oso. | |
9246 | ||
31dbc1c5 JB |
9247 | 2010-02-09 Joel Brobecker <brobecker@adacore.com> |
9248 | ||
9249 | Wrong type description for tagged type parameter. | |
9250 | * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is | |
9251 | EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a | |
9252 | reference to a tagged type. | |
9253 | ||
399f313b TG |
9254 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
9255 | ||
9256 | * objfiles.c (objfile_separate_debug_iterate): Do not iterate on | |
9257 | brothers of the parent. | |
9258 | ||
714f19d5 TT |
9259 | 2010-02-08 Tom Tromey <tromey@redhat.com> |
9260 | ||
9261 | PR c++/8017: | |
9262 | * value.h: Update. | |
9263 | * valops.c (search_struct_field): Make 'name' const. | |
9264 | (search_struct_method): Likewise. | |
9265 | (find_method_list): Make 'method' const. | |
9266 | (value_struct_elt): Make 'name' and 'err' const. | |
9267 | (value_find_oload_method_list): Make 'method' const. | |
9268 | (find_overload_match): Make 'name' const. | |
9269 | * eval.c (evaluate_subexp_standard): New locals function, | |
9270 | function_name. | |
9271 | <OP_FUNCALL>: Handle OP_SCOPE specially. | |
9272 | ||
de0a0249 UW |
9273 | 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
9274 | ||
9275 | * infrun.c (handle_inferior_event): Do not look up regcache | |
9276 | for exited processes. | |
9277 | ||
8d95cc3b | 9278 | 2010-02-08 Chris Moller <moller@mollerware.com> |
83b10087 CM |
9279 | |
9280 | PR gdb/10728 | |
9281 | * valarith.c (value_ptrdiff): Added a test for a zero type length, | |
8d95cc3b | 9282 | warn if found, and assume length = 1. |
83b10087 | 9283 | |
99903ae3 CM |
9284 | 2010-02-08 Chris Moller <cmoller@redhat.com> |
9285 | ||
9286 | PR gdb/9067 | |
9287 | * cp-valprint.c (cp_print_value_fields) Fix use of obstacks. | |
6036c742 | 9288 | (cp_print_static_field) Fix use of obstacks. |
8d95cc3b | 9289 | |
e3e9f5a2 PA |
9290 | 2010-02-08 Pedro Alves <pedro@codesourcery.com> |
9291 | ||
9292 | * linux-nat.c (linux_nat_resume): In non-stop, also only tag | |
9293 | resumed LWPs as resumed. | |
9294 | (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs | |
9295 | we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead | |
9296 | of throwing an internal error. If an LWP of a process we're not | |
9297 | waiting for reports a signal, don't force collecting a SIGSTOP, | |
9298 | and if it was breakpoint hit in non-stop mode, cancel it. Don't | |
9299 | go through all LWPs cancelling breakpoints in non-stop mode. | |
9300 | (resume_stopped_resumed_lwps): New. | |
9301 | (linux_nat_wait): Use it. | |
9302 | ||
46763423 L |
9303 | 2010-02-07 H.J. Lu <hongjiu.lu@intel.com> |
9304 | ||
9305 | * features/Makefile (WHICH): Add i386/i386, i386/i386-linux, | |
9306 | i386/amd64 and i386/amd64-linux. | |
9307 | (i386/i386-expedite): New. | |
9308 | (i386/i386-linux-expedite): Likewise. | |
9309 | (i386/amd64-expedite):Likewise. | |
9310 | (i386/amd64-linux-expedite): Likewise. | |
9311 | ($(outdir)/i386/i386-linux.dat): Likewise. | |
9312 | ($(outdir)/i386/amd64.dat): Likewise. | |
9313 | ($(outdir)/i386/amd64-linux.dat): Likewise. | |
9314 | ||
9315 | * features/i386/32bit-core.xml: New. | |
9316 | * features/i386/32bit-linux.xml: Likewise. | |
9317 | * features/i386/32bit-sse.xml: Likewise. | |
9318 | * features/i386/64bit-core.xml: Likewise. | |
9319 | * features/i386/64bit-linux.xml: Likewise. | |
9320 | * features/i386/64bit-sse.xml: Likewise. | |
9321 | * features/i386/i386-linux.xml: Likewise. | |
9322 | * features/i386/i386.xml: Likewise. | |
9323 | * features/i386/amd64-linux.xml: Likewise. | |
9324 | * features/i386/amd64.xml: Likewise. | |
9325 | * features/i386/i386-linux.c: Likewise. | |
9326 | * features/i386/i386.c: Likewise. | |
9327 | * features/i386/amd64-linux.c: Likewise. | |
9328 | * features/i386/amd64.c: Likewise. | |
9329 | ||
82856980 SW |
9330 | 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com> |
9331 | ||
9332 | PR c++/7935: | |
9333 | * cp-support.h: Added char* alias element to using_direct data | |
9334 | struct. | |
9335 | (cp_add_using): Added char* alias argument. | |
9336 | (cp_add_using_directive): Ditto. | |
9337 | * cp-namespace.c: Updated with the above changes. | |
9338 | (cp_lookup_symbol_imports): Check for aliases. | |
9339 | * dwarf2read.c (read_import_statement): Figure out local alias | |
9340 | for the import and pass it on to cp_add_using. | |
9341 | (read_namespace): Pass alias argument to cp_add_using. | |
9342 | ||
d18b8b7a HZ |
9343 | 2010-02-05 Hui Zhu <teawater@gmail.com> |
9344 | ||
9345 | * defs.h (gdb_bfd_errmsg): New extern. | |
9346 | * exec.c (exec_file_attach): Change bfd_errmsg to | |
9347 | gdb_bfd_errmsg. | |
9348 | * utils.c (AMBIGUOUS_MESS1): New macro. | |
9349 | (AMBIGUOUS_MESS2): New macro. | |
9350 | (gdb_bfd_errmsg): New function. | |
9351 | ||
48379de6 DE |
9352 | 2010-02-04 Doug Evans <dje@google.com> |
9353 | ||
9354 | * solib-svr4.c (enable_break): Add comment. | |
9355 | ||
4ee73e90 AG |
9356 | 2010-02-04 Anthony Green <green@moxielogic.com> |
9357 | ||
9358 | * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis | |
9359 | gracefully. | |
9360 | ||
1a334831 TT |
9361 | 2010-02-04 Tom Tromey <tromey@redhat.com> |
9362 | ||
9363 | * valops.c (search_struct_field): Account for | |
9364 | value_embedded_offset. Fix check for virtual base past the end of | |
9365 | the object. Use value_copy when making a slice of the value. | |
9366 | ||
1180b2c8 L |
9367 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
9368 | ||
9369 | PR tui/9622 | |
9370 | * tui/tui-interp.c (tui_init): Call tui_initialize_readline | |
9371 | only if gdb_stdout is a tty. | |
9372 | ||
c3f08eb7 L |
9373 | 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> |
9374 | ||
9375 | * target-descriptions.c: Include "osabi.h". | |
9376 | (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid | |
9377 | OSABI. | |
9378 | ||
2d33f7b8 TG |
9379 | 2010-02-04 Tristan Gingold <gingold@adacore.com> |
9380 | ||
9381 | * machoread.c (macho_add_oso): Renamed to macho_register_oso. | |
9382 | (macho_symtab_read): Adjust calls to macho_add_oso. | |
9383 | (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. | |
9384 | (macho_symfile_read): Adjust call to macho_oso_symfile. | |
9385 | (macho_new_init): Move this function after declarations. | |
9386 | (macho_symfile_init): Ditto. | |
9387 | * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. | |
9388 | * darwin-nat.c (darwin_lookup_task): Remove unused prototype. | |
9389 | ||
11334b82 VP |
9390 | 2010-02-04 Vladimir Prus <vladimir@codesourcery.com> |
9391 | ||
9392 | Include MI command in remotelog. | |
9393 | ||
9394 | * mi/mi-main.c (mi_execute_command): Call target_log_command. | |
9395 | ||
ff97be06 L |
9396 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
9397 | ||
9398 | * remote.c (remote_state): Remove gdbarch. | |
9399 | (init_remote_state): Don't set gdbarch. | |
9400 | (remote_query_supported): Pass target_gdbarch instead of | |
9401 | rs->gdbarch to gdbarch_qsupported. | |
9402 | ||
75cebea9 L |
9403 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
9404 | ||
9405 | * gdbarch.sh: Add qsupported. | |
9406 | ||
9407 | * gdbarch.c: Regenerated. | |
9408 | * gdbarch.h: Likewise. | |
9409 | ||
9410 | * remote.c (remote_state): Add gdbarch. | |
9411 | (init_remote_state): Set gdbarch. | |
9412 | (remote_query_supported): Support gdbarch_qsupported. | |
9413 | ||
c1dec97b DJ |
9414 | 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com> |
9415 | ||
9416 | * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for | |
9417 | __FreeBSD_kernel_version. | |
9418 | ||
ac8035ab TG |
9419 | 2010-02-03 Tristan Gingold <gingold@adacore.com> |
9420 | ||
9421 | * symfile.h (struct sym_fns): Add sym_relocate field. | |
9422 | (default_symfile_relocate): New prototype. | |
9423 | (symfile_relocate_debug_section): First argument is now an objfile. | |
9424 | * symfile.c (default_symfile_relocate): Rename from | |
9425 | symfile_relocate_debug_section, first argument is now an objfile. | |
9426 | (symfile_relocate_debug_section): New function. | |
9427 | * coffread.c (coff_sym_fns): Set sym_relocate field. | |
9428 | * somread.c (som_sym_fns): Ditto. | |
9429 | * mipsread.c (ecoff_sym_fns): Ditto. | |
9430 | * machoread.c (macho_sym_fns): Ditto. | |
9431 | * elfread.c (elf_sym_fns): Ditto. | |
9432 | * dwarf2read.c (dwarf2_read_section): Ditto. | |
9433 | * xcoffread.c (xcoff_sym_fns): Ditto. | |
9434 | * dbxread.c (aout_sym_fns): Ditto. | |
9435 | (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. | |
9436 | (elfstab_build_psymtabs): Ditto. | |
9437 | ||
be52b756 L |
9438 | 2010-02-03 H.J. Lu <hongjiu.lu@intel.com> |
9439 | ||
9440 | * defs.h (MAX_REGISTER_SIZE): Increase to 32. | |
9441 | ||
9c3c02fd TT |
9442 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
9443 | ||
9444 | * valops.c (value_cast_structs): Try downcasting using the RTTI | |
9445 | type. | |
9446 | ||
f23f4c59 TT |
9447 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
9448 | ||
9449 | * gnu-v2-abi.c: Don't include gnu-v2-abi.h. | |
9450 | (gnuv2_baseclass_offset): Now static. | |
9451 | * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. | |
9452 | * gnu-v2-abi.h: Remove. | |
9453 | ||
0cc2414c TT |
9454 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
9455 | ||
9456 | * m2-typeprint.c (m2_record_fields): Don't use | |
9457 | TYPE_DECLARED_TYPE. | |
9458 | * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. | |
9459 | (struct main_type) <flag_declared_class>: New field. | |
9460 | (struct cplus_struct_type) <declared_type>: Remove. | |
9461 | <ntemplate_args>: Move earlier. | |
9462 | (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) | |
9463 | (DECLARED_TYPE_TEMPLATE): Remove. | |
9464 | (TYPE_DECLARED_TYPE): Remove. | |
9465 | * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. | |
9466 | * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. | |
9467 | * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not | |
9468 | TYPE_DECLARED_TYPE. | |
9469 | ||
edf3d5f3 TT |
9470 | 2010-02-02 Tom Tromey <tromey@redhat.com> |
9471 | ||
9472 | PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: | |
9473 | * valops.c (search_struct_field): Compute nbases after calling | |
9474 | CHECK_TYPEDEF. | |
9475 | (check_field): Call CHECK_TYPEDEF. | |
9476 | * cp-valprint.c (cp_print_value): Pass correct address to | |
9477 | baseclass_offset. Fix check for virtual base past the end of the | |
9478 | object. Don't offset address passed to cp_print_value_fields or | |
9479 | apply_val_pretty_printer. | |
9480 | (cp_print_value_fields): Fix call to val_print. | |
9481 | (cp_print_value_fields_rtti): New function. | |
9482 | * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. | |
9483 | * p-valprint.c (pascal_object_print_value_fields): Fix call to | |
9484 | val_print. | |
9485 | * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded | |
9486 | offset to address. | |
9487 | * language.h (struct language_defn) <la_val_print>: Document. | |
9488 | * c-lang.h (cp_print_value_fields_rtti): Declare. | |
9489 | ||
e4b7f41c JK |
9490 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9491 | ||
9492 | PR libc/11214: | |
9493 | * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
9494 | (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. | |
9495 | (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. | |
9496 | ||
7618e12b DJ |
9497 | 2010-02-01 Michael Matz <matz@suse.de> |
9498 | Daniel Jacobowitz <dan@codesourcery.com> | |
9499 | ||
e4b7f41c | 9500 | * i386-tdep.c (i386_frame_cache): Assume valid anonymous |
7618e12b DJ |
9501 | functions use a frame pointer. |
9502 | ||
b381ea14 JK |
9503 | 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
9504 | ||
9505 | * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert | |
9506 | by a conditional setting DYN_ADDR. Use DYN_ADDR. | |
9507 | * config/djgpp/fnchange.lst: Add translations for | |
9508 | symbol-without-target_section.exp and symbol-without-target_section.c. | |
9509 | ||
0e05dfcb DJ |
9510 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9511 | ||
9512 | * gdbarch.sh: Set LANG and LC_ALL to C, not c. | |
9513 | (remote_breakpoint_for_pc): Correct invalid_p check. | |
9514 | * gdbarch.c: Regenerated. | |
9515 | ||
f9d67f43 DJ |
9516 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9517 | ||
9518 | * arm-tdep.c (arm_find_mapping_symbol): New function, from | |
9519 | arm_pc_is_thumb. | |
9520 | (arm_pc_is_thumb): Use arm_find_mapping_symbol. | |
9521 | (extend_buffer_earlier): New function. | |
9522 | (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. | |
9523 | (arm_adjust_breakpoint_address): New function. | |
9524 | (arm_gdbarch_init): Register arm_adjust_breakpoint_address. | |
9525 | ||
177321bd DJ |
9526 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9527 | ||
9528 | * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint) | |
9529 | (arm_linux_thumb2_le_breakpoint): New constants. | |
9530 | (arm_linux_init_abi): Set thumb2_breakpoint and | |
9531 | thumb2_breakpoint_size. | |
9532 | * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. | |
9533 | (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. | |
9534 | Implement support for single stepping through IT blocks if | |
9535 | a 32-bit Thumb breakpoint instruction is available. | |
9536 | (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction | |
9537 | is available, use it when needed. | |
9538 | (arm_remote_breakpoint_from_pc): New function. | |
9539 | (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. | |
9540 | * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint | |
9541 | comment. Add thumb2_breakpoint and thumb2_breakpoint_size. | |
9542 | ||
a1dcb23a DJ |
9543 | 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com> |
9544 | ||
9545 | * arch-utils.c (default_remote_breakpoint_from_pc): New function. | |
9546 | * arch-utils.h (default_remote_breakpoint_from_pc): Declare. | |
9547 | * gdbarch.c, gdbarch.h: Regenerated. | |
9548 | * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. | |
9549 | * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use | |
9550 | gdbarch_remote_breakpoint_from_pc. | |
9551 | ||
2b009048 DJ |
9552 | 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
9553 | ||
9554 | * infrun.c (prepare_to_proceed): Handle other signals which might | |
9555 | match a breakpoint. | |
9556 | (handle_inferior_event): Move the check for unusual breakpoint | |
9557 | signals earlier. | |
9558 | ||
e4e2711a JB |
9559 | 2010-01-29 Paul Hilfinger <hilfinger@adacore.com> |
9560 | ||
9561 | amd64 - function returning record with field straddling 2 registers. | |
9562 | * amd64-tdep.c (amd_classify_aggregate): Handle the case of | |
9563 | a record of length <= 16 in which a field straddles the two | |
9564 | eightbytes. | |
9565 | ||
cba6fab5 JB |
9566 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
9567 | ||
9568 | Implement return values on amd64-windows. | |
9569 | * amd64-windows-tdep.c: #include gdbcore.h and regcache.h. | |
9570 | (amd64_windows_return_value): New function. | |
9571 | (amd64_windows_init_abi): Call set_gdbarch_return_value with | |
9572 | amd64_windows_return_value. | |
9573 | ||
3af6ddfe JB |
9574 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
9575 | ||
9576 | amd64-windows: 32 bytes allocated on stack by caller for integer | |
cba6fab5 | 9577 | parameter registers. |
3af6ddfe JB |
9578 | * i386-tdep.h (struct gdbarch_tdep): Add new field |
9579 | integer_param_regs_saved_in_caller_frame. | |
9580 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
9581 | tdep->integer_param_regs_saved_in_caller_frame to 1. | |
9582 | * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on | |
9583 | stack if tdep->integer_param_regs_saved_in_caller_frame is set. | |
9584 | ||
80d19a06 JB |
9585 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
9586 | ||
9587 | amd64-windows: memory args passed by pointer during function calls. | |
9588 | * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. | |
9589 | * amd64-tdep.c (amd64_push_arguments): Add handling of architectures | |
9590 | where tdep->memory_args_by_pointer is non-zero. | |
9591 | * amd64-windows-tdep.c (amd64_windows_init_abi): Set | |
9592 | tdep->memory_args_by_pointer to 1. | |
9593 | ||
ba581dc1 JB |
9594 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
9595 | ||
4966b6c2 | 9596 | amd64-windows: Integer parameters in function calls. |
ba581dc1 JB |
9597 | * i386-tdep.h (enum amd64_reg_class): New, moved here from |
9598 | amd64-tdep.c. | |
9599 | (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, | |
9600 | call_dummy_integer_regs, and classify. | |
9601 | * amd64-tdep.h (amd64_classify): Add declaration. | |
9602 | * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. | |
9603 | (amd64_reg_class): Delete, moved to i386-tdep.h. | |
9604 | (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. | |
9605 | Replace call to amd64_classify by call to tdep->classify. | |
9606 | (amd64_push_arguments): Get the list of registers to use for | |
9607 | passing integer parameters from the gdbarch tdep structure, | |
9608 | rather than using a hardcoded one. Replace calls to amd64_classify | |
9609 | by calls to tdep->classify. | |
9610 | (amd64_push_dummy_call): Get the register number used for | |
9611 | the "hidden" argument from tdep->call_dummy_integer_regs. | |
9612 | (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
9613 | and tdep->call_dummy_integer_regs. Set tdep->classify. | |
9614 | * amd64-windows-tdep.c: Add include of gdbtypes.h. | |
9615 | (amd64_windows_dummy_call_integer_regs): New static global. | |
9616 | (amd64_windows_classify): New function. | |
9617 | (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs | |
9618 | tdep->call_dummy_integer_regs and tdep->classify. | |
9619 | ||
d37346f0 DJ |
9620 | 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com> |
9621 | ||
9622 | * regcache.c (regcache_xmalloc): Add aspace argument. Use it | |
9623 | for the new regcache. All callers updated. | |
9624 | (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. | |
9625 | (get_thread_arch_regcache): Do not set aspace here. | |
9626 | * regcache.h (regcache_xmalloc): Update declaration. | |
9627 | ||
9628 | * frame.c, infcall.c, ppc-linux-tdep.c: Calls to | |
9629 | regcache_xmalloc updated. | |
9630 | ||
7434dadd JB |
9631 | 2010-01-28 Joel Brobecker <brobecker@adacore.com> |
9632 | ||
9633 | Another -Wunused-function error in procfs.c (sparc-solaris) | |
9634 | * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up. | |
9635 | Only define if SYS_syssgi is defined. | |
9636 | (remove_dbx_link_breakpoint): Delete declaration. Move up. | |
9637 | (dbx_link_addr, insert_dbx_link_bpt_in_file) | |
9638 | (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi | |
9639 | is itself defined. | |
9640 | ||
16d905e2 CF |
9641 | 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx> |
9642 | ||
9643 | * windows-nat.c (windows_initialization_done): New variable. | |
9644 | (get_windows_debug_event): Issue error when process dies before | |
9645 | completely initializing. | |
9646 | (do_initial_windows_stuff): Set flag to indicate when we are done with | |
9647 | the initial steps of attaching to the child. | |
9648 | ||
cd55e50f JK |
9649 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
9650 | ||
9651 | * symtab.h (struct symbol <symtab>): New comment on NULL values. | |
9652 | ||
99cc78aa DE |
9653 | 2010-01-27 Doug Evans <dje@google.com> |
9654 | ||
4c7dcb84 DE |
9655 | * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity. |
9656 | ||
99cc78aa DE |
9657 | * breakpoint.c (bpstat_stop_status): Delete useless code. |
9658 | ||
52334bf5 JK |
9659 | 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
9660 | ||
9661 | * printcmd.c (display_uses_solib_p): Remove variable section. Access | |
9662 | objfile via SYMBOL_SYMTAB. | |
9663 | ||
708ead4e TT |
9664 | 2010-01-26 Tom Tromey <tromey@redhat.com> |
9665 | ||
9666 | PR exp/7643: | |
9667 | * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call | |
9668 | coerce_array on result. | |
9669 | ||
b14e635e SW |
9670 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
9671 | ||
9672 | * cp-namespace.c (cp_lookup_symbol_namespace): Added | |
9673 | search_parent argument. | |
9674 | (cp_add_using): Initialize 'searched' field. | |
9675 | (reset_directive_searched): New function. | |
9676 | * cp-support.h: Add 'searched' field to using_direct struct. | |
9677 | (cp_lookup_symbol_imports): Ditto. | |
9678 | * cp-namespace.c (cp_lookup_symbol_imports): Ditto. | |
9679 | Perform recursive search. | |
9680 | Implement non parent search. | |
9681 | * valops.c (value_maybe_namespace_elt): Updated. | |
9682 | ||
8540c487 SW |
9683 | 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> |
9684 | ||
9685 | PR gdb/10929: | |
9686 | * dwarf2read.c (read_lexical_block_scope): Create blocks for | |
9687 | scopes which contain using directives even if they contain no | |
9688 | declarations. | |
9689 | * symtab.c (lookup_symbol_aux): Pass lowest level block to | |
9690 | la_lookup_symbol_nonlocal. | |
9691 | * cp-namespace.c (cp_lookup_symbol_nonlocal): call | |
9692 | cp_lookup_symbol_namespace. | |
9693 | (cp_lookup_symbol_namespace): Perform an import lookup at every | |
9694 | block level. | |
9695 | (cp_lookup_symbol_imports): New function. | |
9696 | (cp_lookup_symbol_in_namespace): New function. | |
9697 | ||
421d5d99 TT |
9698 | 2010-01-25 Tom Tromey <tromey@redhat.com> |
9699 | ||
9700 | PR gdb/11049: | |
9701 | * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer | |
9702 | result. | |
9703 | ||
6bcc772d RO |
9704 | 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
9705 | ||
9706 | * configure.ac: Only use host_os part when disabling TUI on osf. | |
9707 | Use test to check variables, prefix strings with x. | |
9708 | * configure: Regenerate. | |
9709 | ||
9710 | * solib-osf.c (osf_current_sos): Initialize tail. | |
9711 | ||
1c1238a5 TG |
9712 | 2010-01-25 gingold <gingold@adacore.com> |
9713 | ||
c8d5aac9 L |
9714 | * windows-nat.c (windows_continue): Use %x to print thread id. |
9715 | (get_windows_debug_event): Ditto. | |
1c1238a5 | 9716 | |
0b92b5bb TT |
9717 | 2010-01-22 Tom Tromey <tromey@redhat.com> |
9718 | ||
9719 | PR symtab/11199: | |
9720 | * dwarf2read.c (quirk_gcc_member_function_pointer): Change return | |
9721 | type and arguments. Use smash_to_methodptr_type. | |
9722 | (read_structure_type): Call quirk_gcc_member_function_pointer | |
9723 | later. | |
9724 | * gdbtypes.h (smash_to_methodptr_type): Declare. | |
9725 | * gdbtypes.c (smash_to_methodptr_type): New function. | |
9726 | (lookup_methodptr_type): Use it. | |
9727 | ||
0d5392b8 TT |
9728 | 2010-01-21 Tom Tromey <tromey@redhat.com> |
9729 | ||
9730 | PR symtab/11198: | |
9731 | * symtab.h (lookup_minimal_symbol_and_objfile): Declare. | |
9732 | * minsyms.c (lookup_minimal_symbol_and_objfile): New function. | |
9733 | * glibc-tdep.c (find_minsym_and_objfile): Remove. | |
9734 | (glibc_skip_solib_resolver): Use | |
9735 | lookup_minimal_symbol_and_objfile. | |
9736 | ||
e6d088ec KT |
9737 | 2010-01-21 Kai Tietz <kai.tietz@onevision.com> |
9738 | ||
9739 | * inflow.c (check_syscall): Guard by #if clause for GO32 and | |
9740 | WIN32 targets. | |
9741 | ||
b966cb8a TT |
9742 | 2010-01-20 Tom Tromey <tromey@redhat.com> |
9743 | ||
9744 | PR backtrace/10770: | |
9745 | * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and | |
9746 | BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. | |
9747 | * dwarf2expr.c (new_dwarf_expr_context): Allocate | |
9748 | dwarf_stack_values, not CORE_ADDRs. | |
9749 | (execute_stack_op): Change DW_OP_div and comparison operators to | |
9750 | use signed operands. | |
9751 | ||
3f81c18a VP |
9752 | 2010-01-20 Vladimir Prus <vladimir@codesourcery.com> |
9753 | ||
9754 | Per-inferior args and tty and environment. | |
9755 | ||
9756 | * infcmd.c (inferior_args): Rename to ... | |
9757 | (inferior_args_scratch): ... this. | |
9758 | (inferior_io_terminal): Rename to ... | |
9759 | (inferior_io_terminal_scratch): ... this. | |
9760 | (inferior_argc, inferior_argv): Remove. | |
9761 | (set_inferior_io_terminal, get_inferior_io_terminal): Store | |
9762 | inside current_inferior(). | |
9763 | (set_inferior_tty_command, show_inferior_tty_command): New. | |
9764 | (get_inferior_args, set_inferior_args): Store inside | |
9765 | current_inferior(). | |
9766 | (notice_args_set): Likewise and rename to... | |
9767 | (set_args_command): ... this. | |
9768 | (set_inferior_args_vector): Likewise. | |
9769 | (notice_args_read): Rename to... | |
9770 | (show_args_command): ...new. | |
9771 | (tty_command): Remove. | |
9772 | (run_command_1): Don't free old args, as they are freed by | |
9773 | set_inferior_arg now. | |
9774 | (run_no_args_command): Likewise. | |
9775 | (inferior_environ): Remove. | |
9776 | (run_command_1): Use environment of the current inferior. | |
9777 | (environment_info, set_environment_command) | |
9778 | (unset_environment_command, path_info, path_command): Likewise. | |
9779 | (_initialize_infcmd): Adjust for function and variable renames. | |
9780 | Do not init inferior_environ. | |
9781 | * inferior.h (set_inferior_arg): Adjust prototype. | |
9782 | (struct inferior): New fields args, argc, argv, terminal, environment. | |
9783 | (inferior_environ): Remove declaration. | |
9784 | * inferior.c (free_inferior): Free new fields. | |
9785 | (add_inferior_silent): Initialize 'environment' field. | |
9786 | * main.c (captured_main): Set arguments only after the initial | |
9787 | inferior has been created. Set set_inferior_io_terminal, | |
9788 | not tty_command. | |
9789 | * mi/mi-main.c (mi_cmd_env_path): Use environment of the current | |
9790 | inferior. | |
9791 | (_initialize_mi_cmd_env): Adjust for disappearance of global | |
9792 | inferior_environ. | |
9793 | * solib.c (solib_find): Use environment of the current inferior. | |
9794 | ||
d8b65138 JK |
9795 | 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
9796 | ||
9797 | * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if | |
9798 | HAVE_PYTHON. | |
9799 | (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function. | |
9800 | ||
692465f1 JB |
9801 | 2010-01-20 Joel Brobecker <brobecker@adacore.com> |
9802 | ||
9803 | Get rid of ada-lang.c:function_name_from_pc. | |
9804 | * ada-lang.c: Add "stack.h" #include. | |
9805 | (function_name_from_pc): Delete. | |
9806 | (is_known_support_routine): Replace call to function_name_from_pc | |
9807 | by call to find_frame_funname. | |
9808 | (ada_unhandled_exception_name_addr_from_raise): Likewise. | |
9809 | ||
95519e0e TT |
9810 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
9811 | ||
9812 | PR c++/11026: | |
9813 | * dwarf2read.c (read_partial_die): Allocate partial DIE's name on | |
9814 | objfile obstack. | |
9815 | ||
95c11dc7 TT |
9816 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
9817 | ||
9818 | * top.c (stop_sig, float_handler, do_nothing): Remove. | |
9819 | ||
a0f49112 JK |
9820 | 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
9821 | ||
9822 | * breakpoint.c (watchpoint_check): Check the call | |
9823 | gdbarch_in_function_epilogue_p before calling frame_find_by_id. | |
9824 | Extend the comment. | |
8d95cc3b | 9825 | * config/djgpp/fnchange.lst: Add translations for |
a0f49112 JK |
9826 | watchpoint-cond-gone.exp, watchpoint-cond-gone.c and |
9827 | watchpoint-cond-gone-stripped.c. | |
9828 | ||
ceeb3d5a TT |
9829 | 2010-01-19 Tom Tromey <tromey@redhat.com> |
9830 | ||
9831 | PR c++/8000: | |
9832 | * dwarf2read.c (partial_die_parent_scope): Put enumeration type | |
9833 | into parent scope, and enumerator into grandparent scope. | |
9834 | ||
2b71fc8e JB |
9835 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9836 | ||
9837 | * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands. | |
9838 | ||
03564ed9 JB |
9839 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9840 | ||
9841 | * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of | |
9842 | i[34567]86-*-solaris2.1[0-9]*. | |
9843 | * configure.tgt: Likewise. | |
9844 | ||
fb2e7cb4 JB |
9845 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9846 | ||
9847 | * NEWS: Document the source command enhancement allowing it | |
9848 | to load Python scripts. Document the "set/show script-extension" | |
9849 | commands. | |
9850 | ||
1cb5e2a4 JB |
9851 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9852 | ||
9853 | Add -Wunused-function to compile flags. | |
9854 | * configure.ac: Add -Wunused-function to build_warnings. | |
9855 | * configure: Regenerate. | |
9856 | ||
0ec6cd0c JB |
9857 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9858 | ||
9859 | "delete" ada-lex.c:input function, not used. | |
9860 | * ada-lex.l: #define YY_NO_INPUT. | |
9861 | ||
b74845da JB |
9862 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9863 | ||
9864 | Delete free_named_symtabs and associated cleanup. | |
9865 | * symfile.h (free_named_symtabs): Delete declaration. | |
9866 | * symfile.c: Remove some commented out code (clear_symtab_users_once). | |
9867 | (cashier_psymtab): Comment function out. | |
9868 | Delete declaration. | |
9869 | (free_named_symtabs): Delete. | |
9870 | * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. | |
9871 | * dbxread.c (end_psymtab): Likewise. | |
9872 | * dwarf2read.c (process_psymtab_comp_unit): Ditto. | |
9873 | * exec.c (exec_close_1): Ditto. | |
9874 | * xcoffread.c (xcoff_end_psymtab): Likewise. | |
9875 | ||
65c06092 JB |
9876 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9877 | ||
9878 | * stack.c (print_block_frame_labels): Comment function out. | |
9879 | ||
d5cd6034 JB |
9880 | 2010-01-19 Joel Brobecker <brobecker@adacore.com> |
9881 | ||
9882 | Delete unused or undefined functions. | |
9883 | * breakpoint.c (ep_parse_optional_filename): Delete. | |
9884 | * dcache.c (dcache_write_line): Remove declaration. | |
9885 | * infrun.c (build_infrun): Remove declaration. | |
9886 | * tracepoint.c (tracepoint_save_command): Remove declaration. | |
9887 | * linux-nat.c (init_lwp_list): Delete. No longer used. | |
9888 | * event-loop.c (check_async_signal_handlers): Delete declaration. | |
9889 | * infrun.c (init_execution_control_state): Delete. | |
9890 | (proceed): Update comment to avoid mentioning | |
9891 | init_execution_control_state. | |
9892 | * target.c (kill_or_be_killed, nosupport_runtime): Delete. | |
9893 | * ada-lang.c (ada_to_static_fixed_value): Delete. | |
9894 | * scm-lang.c (evaluate_subexp_scm): Delete declaration. | |
9895 | * cp-namespace.c (cp_copy_usings): Delete. | |
9896 | * xml-syscall.c (xml_number_of_syscalls): Delete. | |
9897 | * progspace.c (find_program_space_by_num): Delete. | |
9898 | * inflow.c (handle_sigio): Delete declaration. | |
9899 | * hppa-tdep.c (hppa_alignof): Delete. | |
9900 | * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) | |
9901 | (mipsnbsd_core_osabi_sniffer): Delete. | |
9902 | ||
4e8f195d TT |
9903 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
9904 | ||
9905 | PR c++/9680: | |
9906 | * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) | |
9907 | (CONST_CAST): New tokens. | |
9908 | (exp): Add new productions. | |
9909 | (ident_tokens): Add const_cast, dynamic_cast, static_cast, and | |
9910 | reinterpret_cast. | |
9911 | (is_cast_operator): New function. | |
9912 | (yylex): Handle cast operators specially. | |
9913 | * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, | |
9914 | UNOP_REINTERPRET_CAST>: New cases. | |
9915 | * expprint.c (print_subexp_standard): Likewise. | |
9916 | (op_name_standard): Likewise. | |
9917 | (dump_subexp_body_standard): Likewise. | |
9918 | * parse.c (operator_length_standard): Likewise. | |
9919 | * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, | |
9920 | UNOP_REINTERPRET_CAST. | |
9921 | * gdbtypes.c (class_types_same_p): New function. | |
9922 | (is_ancestor): Use it. | |
9923 | (is_public_ancestor): New function. | |
9924 | (is_unique_ancestor_worker): Likewise. | |
9925 | (is_unique_ancestor): Likewise. | |
9926 | * gdbtypes.h (class_types_same_p, is_public_ancestor) | |
9927 | (is_unique_ancestor): Declare. | |
9928 | * valops.c (value_reinterpret_cast): New function. | |
9929 | (dynamic_cast_check_1): Likewise. | |
9930 | (dynamic_cast_check_2): Likewise. | |
9931 | (value_dynamic_cast): Likewise. | |
9932 | * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. | |
9933 | ||
d9c57d9f JB |
9934 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
9935 | ||
9936 | Fix build failure when building without Python support. | |
9937 | * python/python.c: Always include exceptions.h, even when HAVE_PYTHON | |
9938 | is not defined. | |
9939 | ||
f80d3ff2 JB |
9940 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
9941 | ||
9942 | Use XVS field type instead of doing a parallel lookup. | |
9943 | * ada-lang.c (ada_get_base_type): Follow the XVS field type | |
9944 | if it is a reference type instead of doing a type lookup using | |
9945 | the XVS field name. | |
9946 | ||
5bf03f13 JB |
9947 | 2010-01-18 Joel Brobecker <brobecker@adacore.com> |
9948 | ||
9949 | Trust PAD types instead of using PAD___XVS. | |
9950 | * ada-lang.c (trust_pad_over_xvs): New static variable. | |
9951 | (ada_is_aligner_type): If !trust_pad_over_xvs and there is a | |
9952 | parallel XVS type, follow the XVS type instead of the PAD type. | |
9953 | (unwrap_value): Make sure that there is no parallel XVE type | |
9954 | before returning the value as is. | |
9955 | (set_ada_list, show_ada_list): New static variables. | |
9956 | (set_ada_command, show_ada_command): New functions. | |
9957 | (_initialize_ada_language): Add new "set/show ada" prefix commands. | |
9958 | Add new "set/show ada trust-PAD-over-XVS" setting. | |
9959 | ||
973817a3 JB |
9960 | 2010-01-18 Tom Tromey <tromey@redhat.com> |
9961 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
9962 | ||
9963 | Allow "source" to load python scripts. | |
9964 | * exceptions.h (enum errors): Add UNSUPPORTED_ERROR. | |
9965 | * python/python.c (source_python_script): New function. | |
9966 | * python/python.h (source_python_script): Add declaration. | |
9967 | * cli/cli-cmds.c: #include exceptions.h and python/python.h. | |
9968 | (script_ext_off, script_ext_soft, script_ext_strict) | |
9969 | (script_ext_enums, script_ext_mode): New static constants. | |
9970 | (show_script_ext_mode, find_and_open_script): New functions. | |
9971 | (source_script): Enhance to handle Python scripts. | |
9972 | (init_cli_cmds): Add set/show script-extension commands. | |
9973 | ||
98e03262 SS |
9974 | 2010-01-16 Stan Shebs <stan@codesourcery.com> |
9975 | ||
9976 | * tracepoint.h (struct trace_status): Use unsigned long long | |
9977 | instead of size_t. | |
9978 | * tracepoint.c (trace_status_command): Fix printf directive. | |
9979 | (trace_save_command): Check fwrite returns, fix printf directive. | |
9980 | (trace_filename): New global. | |
9981 | (tfile_open): Set it, check read returns. | |
9982 | (tfile_close): Free trace_filename. | |
9983 | (tfile_get_traceframe_address): Check read returns. | |
9984 | (tfile_trace_find): Ditto. | |
9985 | (tfile_fetch_registers): Ditto. | |
9986 | (tfile_xfer_partial): Ditto. | |
9987 | (tfile_get_trace_state_variable_value): Ditto. | |
9988 | ||
00bf0b85 SS |
9989 | 2010-01-15 Stan Shebs <stan@codesourcery.com> |
9990 | ||
9991 | Add trace file support. | |
9992 | * tracepoint.h (enum trace_stop_reason): New enum. | |
9993 | (struct trace_status): New struct. | |
9994 | (parse_trace_status): Declare. | |
9995 | (struct uploaded_tp): Move here from remote.c, | |
9996 | add fields for actions. | |
9997 | (struct uploaded_tsv): New struct. | |
9998 | * tracepoint.c (tfile_ops): New target vector. | |
9999 | (trace_fd): New global. | |
10000 | (tfile_open): New function. | |
10001 | (tfile_close): New function. | |
10002 | (tfile_files_info): New function. | |
10003 | (tfile_get_trace_status): New function. | |
10004 | (tfile_get_traceframe_address): New function. | |
10005 | (tfile_trace_find): New function. | |
10006 | (tfile_fetch_registers): New function. | |
10007 | (tfile_xfer_partial): New function. | |
10008 | (tfile_get_trace_state_variable_value): New function. | |
10009 | (init_tfile_ops): New function. | |
10010 | (_initialize_tracepoint): Call it, add tfile target. | |
10011 | (trace_status): New global. | |
10012 | (current_trace_status): New function. | |
10013 | (trace_running_p): Remove, change all users to get from | |
10014 | current_trace_status()->running. | |
10015 | (get_trace_status): Remove. | |
10016 | (trace_status_command): Call target_get_trace_status directly, | |
10017 | report more detail including tracing stop reasons. | |
10018 | (trace_find_command): Always allow tfind on a file. | |
10019 | (trace_find_pc_command): Ditto. | |
10020 | (trace_find_tracepoint_command): Ditto. | |
10021 | (trace_find_line_command): Ditto. | |
10022 | (trace_find_range_command): Ditto. | |
10023 | (trace_find_outside_command): Ditto. | |
10024 | (trace_frames_offset, cur_offset): Declare as off_t. | |
10025 | (trace_regblock_size): Rename from reg_size, update users. | |
10026 | (parse_trace_status): New function. | |
10027 | (tfile_interp_line): New function. | |
10028 | (disconnect_or_stop_tracing): Ensure current trace | |
10029 | status before asking what to do. | |
10030 | (stop_reason_names): New global. | |
10031 | (trace_save_command): New command. | |
10032 | (get_uploaded_tp): Move here from remote.c. | |
10033 | (find_matching_tracepoint): Ditto. | |
10034 | (merge_uploaded_tracepoints): New function. | |
10035 | (parse_trace_status): Use stop_reason_names. | |
10036 | (_initialize_tracepoint): Define tsave command. | |
10037 | * target.h (target_ops): New fields to_save_trace_data, | |
10038 | to_upload_tracepoints, to_upload_trace_state_variables, | |
10039 | to_get_raw_trace_data, change to_get_trace_status | |
10040 | to take a pointer to a status struct. | |
10041 | (target_save_trace_data): New macro. | |
10042 | (target_upload_tracepoints): New macro. | |
10043 | (target_upload_trace_state_variables): New macro. | |
10044 | (target_get_raw_trace_data): New macro. | |
10045 | * target.c (update_current_target): Add new methods, change | |
10046 | signature of to_get_trace_status. | |
10047 | * remote.c (hex2bin): Make globally visible. | |
10048 | (bin2hex): Ditto. | |
10049 | (remote_download_trace_state_variable): Download name also. | |
10050 | (remote_get_trace_status): Update parameter, use | |
10051 | parse_trace_status. | |
10052 | (remote_save_trace_data): New function. | |
10053 | (remote_upload_tracepoints): New function. | |
10054 | (remote_upload_trace_state_variables): New function. | |
10055 | (remote_get_raw_trace_data): New function. | |
10056 | (remote_start_remote): Use them. | |
10057 | (_initialize_remote_ops): Add operations. | |
10058 | * ax-gdb.c: Include breakpoint.h. | |
10059 | * breakpoint.c (create_tracepoint_from_upload): Use | |
10060 | break_command_really, return tracepoint, warn about unimplemented | |
10061 | parts. | |
10062 | * NEWS: Mention trace file addition. | |
10063 | ||
d904de5b JK |
10064 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
10065 | ||
10066 | Fix compilation warning on gcc-3.4. | |
10067 | * exec.c (print_section_info): Move the `displacement' variable | |
10068 | initialization to its declaration. | |
10069 | ||
64aa9731 JK |
10070 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
10071 | ||
10072 | * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE | |
10073 | comparison. | |
10074 | ||
ca1f5def | 10075 | 2010-01-15 Eric Botcazou <botcazou@adacore.com> |
9f0dec2d JB |
10076 | |
10077 | "info tasks" broken by typedefs in ATCB type definitions. | |
10078 | * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to | |
10079 | ada_check_typedef before retrieving the length of the type for | |
10080 | regular fields. | |
10081 | ||
12ab9e09 JB |
10082 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
10083 | ||
10084 | Do not use name-based lookup for unconstrained packed arrays. | |
10085 | * ada-lang.c (find_parallel_type_by_descriptive_type): | |
10086 | Limit the fallback to name-based lookups to the case where | |
10087 | the type is a constrained packed array. | |
10088 | ||
c389c3dc JB |
10089 | 2010-01-15 Joel Brobecker <brobecker@adacore.com> |
10090 | ||
10091 | Enhance gdb-gdb.py to handle main_type.type_specific. | |
10092 | * gdb-gdb.py: Print the type-specific part of struct main_type. | |
10093 | ||
7991dee7 JK |
10094 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
10095 | ||
10096 | * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit. | |
10097 | * configure: Regenerate. | |
10098 | * config.in: Regenerate. | |
10099 | * utils.c: Include sys/resource.h. | |
10100 | (dump_core, can_dump_core): New. | |
10101 | (internal_vproblem): Update the comment. Check can_dump_core while | |
10102 | setting dump_core_p. Replace two abort calls by dump_core calls. | |
10103 | ||
93c26624 JK |
10104 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
10105 | Eli Zaretskii <eliz@gnu.org> | |
10106 | ||
10107 | * NEWS: Document the PIE support. | |
10108 | ||
55235ad7 JK |
10109 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
10110 | ||
10111 | * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h. | |
10112 | (check_is_pie_binary, _initialize_linux_tdep): Remove. | |
10113 | ||
41752192 JK |
10114 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
10115 | ||
10116 | * solib-svr4.c (svr4_exec_displacement): New comment for entry_point. | |
10117 | Replace exec_entry_point call by bfd_get_start_address. | |
10118 | ||
9f2982ff JK |
10119 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
10120 | ||
10121 | Support Valgrind attachments broken by the PIE support. | |
10122 | * auxv.c: Include gdbcore.h. | |
10123 | (procfs_xfer_auxv): Make static. Reduce its comment. Drop its | |
10124 | parameters ops, object and annex. Remove their assertions. | |
10125 | (ld_so_xfer_auxv, memory_xfer_auxv): New function. | |
10126 | * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... | |
10127 | (memory_xfer_auxv): ... here. | |
10128 | * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to | |
10129 | memory_xfer_auxv. | |
10130 | * procfs.c (procfs_xfer_partial): Likewise. | |
10131 | * solib-svr4.c (svr4_relocate_main_executable): New prototype. | |
10132 | (svr4_special_symbol_handling): Call svr4_relocate_main_executable. | |
10133 | (svr4_solib_create_inferior_hook): Conditionalize the | |
10134 | svr4_relocate_main_executable call. | |
10135 | ||
61f0d762 JK |
10136 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
10137 | ||
10138 | * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable | |
10139 | target_section. Find SECT in current_target_sections, gdb_assert it. | |
10140 | (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile. | |
10141 | New variable abfd. | |
10142 | * symtab.c (lookup_objfile_from_block): Return the binary file instead | |
10143 | of separate debug info file. | |
10144 | ||
51bee8e9 JK |
10145 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
10146 | ||
10147 | Support PIEs with no symfile_objfile. | |
10148 | * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point. | |
10149 | * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block. | |
10150 | ||
b8040f19 JK |
10151 | 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
10152 | ||
10153 | * solib-svr4.c (svr4_relocate_main_executable): Move the static exec | |
10154 | code part to ... | |
10155 | (svr4_static_exec_displacement): ... a new function. | |
10156 | (svr4_exec_displacement): New function. | |
10157 | (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate | |
10158 | new_offsets using alloca now. Remove variable old_chain and changed. | |
10159 | Call objfile_relocate unconditionally now. | |
10160 | ||
eb90ce83 DE |
10161 | 2010-01-14 Doug Evans <dje@google.com> |
10162 | ||
10163 | * gdbtypes.c (arch_flags_type): Fix comment. | |
10164 | * gdbtypes.h (arch_composite_type): Fix comment. | |
10165 | ||
bdfed3bc TG |
10166 | 2009-01-14 Tristan Gingold <gingold@adacore.com> |
10167 | ||
10168 | * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter. | |
10169 | Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags | |
10170 | to symbol_file_add_from_bfd. Add OSO as separate objfile. | |
10171 | (macho_oso_symfile): Add symfile_flags parameter. Pass it to | |
10172 | macho_add_oso_symfile. | |
10173 | (macho_symfile_read): Pass symfile_flags to macho_oso_symfile. | |
10174 | ||
1596ad23 JB |
10175 | 2010-01-14 Joel Brobecker <brobecker@adacore.com> |
10176 | ||
10177 | Tru64: Dead threads are never deleted. | |
10178 | * dec-thread.c (dec_thread_ptid_is_alive): New function. | |
10179 | (dec_thread_count_gdb_threads): Fix counter increment. | |
10180 | (dec_thread_add_gdb_thread): Fix *listp increment. | |
10181 | (resync_thread_list): Fix bug in deletion of dead threads that | |
10182 | caused all threads to be deleted, instead of just the dead ones. | |
10183 | ||
be759fcf PM |
10184 | 2010-01-13 Phil Muldoon <pmuldoon@redhat.com> |
10185 | ||
10186 | PR python/10705 | |
10187 | ||
10188 | * python/python-internal.h: Add lazy_string_object_type | |
10189 | definition. | |
10190 | (create_lazy_string_object, gdbpy_initialize_lazy_string) | |
10191 | (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define. | |
10192 | * python/py-value.c (valpy_lazy_string): New function. | |
10193 | (convert_value_from_python): Add lazy string conversion. | |
10194 | * python/py-prettyprint.c (pretty_print_one_value): Check if | |
10195 | return is also a lazy string. | |
10196 | (print_string_repr): Add lazy string printing branch. | |
10197 | (print_children): Likewise. | |
10198 | * python/py-lazy-string.c: New file. Implement lazy strings. | |
10199 | * python/python.c (_initialize_python): Call | |
10200 | gdbpy_initialize_lazy_string. | |
10201 | * varobj.c (value_get_print_value): Add lazy string printing | |
10202 | branch. Account for encoding. | |
10203 | * c-lang.c (c_printstr): Account for new encoding argument. If | |
10204 | encoding is NULL, find encoding suited for type, otherwise use | |
10205 | user encoding. | |
10206 | * language.h (language_defn): Add encoding argument. | |
10207 | (LA_PRINT_STRING): Likewise. | |
10208 | * language.c (unk_lang_printstr): Update to reflect new encoding | |
10209 | argument to language_defn. | |
10210 | * ada-lang.h (ada_printstr): Likewise. | |
10211 | * c-lang.h (c_printstr): Likewise. | |
10212 | * p-lang.h (pascal_printstr); | |
10213 | * f-lang.c (f_printstr): Likewise. | |
10214 | * m2-lang.c (m2_printstr): Likewise. | |
10215 | * objc-lang.c (objc_printstr): Likewise. | |
10216 | * p-lang.c (pascal_printstr): Likewise. | |
10217 | * scm-lang.c (scm_printstr): Likewise. | |
10218 | * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for | |
10219 | encoding argument. | |
10220 | * ada-valprint.c (ada_printstr): Likewise. | |
10221 | * f-valprint.c (f_val_print): Likewise | |
10222 | * m2-valprint.c (m2_val_print): Likewise. | |
10223 | * p-valprint.c (pascal_val_print): Likewise. | |
10224 | * expprint.c (print_subexp_standard): Likewise. | |
10225 | * valprint.c (val_print_string): Likewise. | |
10226 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string. | |
10227 | (SUBDIR_PYTHON_SRCS): Likewise. | |
10228 | (py-lazy-string.o): New rule. | |
10229 | ||
1fe72117 | 10230 | 2010-01-13 Doug Evans <dje@google.com> |
8eee9c5a DE |
10231 | |
10232 | * mi/mi-main.c (list_available_thread_groups): Avoid "may be used | |
10233 | uninitialized" warning from gcc on local `tree'. | |
10234 | ||
dc146f7c VP |
10235 | 2010-01-13 Vladimir Prus <vladimir@codesourcery.com> |
10236 | ||
10237 | Implement core awareness. | |
10238 | ||
10239 | * bcache.c (compare_ints): Remove | |
10240 | (print_percentage): Use compare_positive_ints. | |
10241 | * defs.h (compare_positive_ints): Declare. | |
10242 | * linux-nat.h (struct lin_lwp): New field core. | |
10243 | (linux_nat_core_of_thread_1): Declare. | |
10244 | * linux-nat.c (add_lwp): Init the 'core' field. | |
10245 | (linux_nat_wait_1): Record the core. | |
10246 | (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New. | |
10247 | (linux_nat_add_target): Register the above. | |
10248 | * linux-thread-db.c (update_thread_core): New. | |
10249 | (thread_db_find_new_threads): Update core information for | |
10250 | every thread. | |
10251 | * remote.c (struct private_thread_info): New. | |
10252 | (free_private_thread_info, demand_private_info): New. | |
10253 | (PACKET_qXfer_threads, use_osdata_threads): New. | |
10254 | (struct thread_item, threads_parsing_context | |
10255 | (start_thread, end_thread, thread_attributes) | |
10256 | (thread_children, threads_children, threads_elements): New. | |
10257 | (remote_threads_info): Try qXfer:threads before anything | |
10258 | else. | |
10259 | (remote_protocol_packets): Register qXfer:threads. | |
10260 | (remote_open_1): Init use_osdata_threads. | |
10261 | (struct stop_reply): New field 'core'. | |
10262 | (remote_parse_stop_reply): Parse core number. | |
10263 | (process_stop_reply): Record core number. | |
10264 | (remote_xfer_partial): Handle qXfer:threads. | |
10265 | (remote_core_of_thread): New. | |
10266 | (init_remote_ops): Register remote_core_of_thread. | |
10267 | (_initialize_remote): Register qXfer:read. | |
10268 | * target.c (target_core_of_thread): New | |
10269 | * target.h (enum target_object): New value TARGET_OBJECT_THREADS. | |
10270 | (struct target_ops): New field to_core_of_threads. | |
10271 | (target_core_of_thread): Declare. | |
10272 | * gdbthread.h (struct thread_info): New field private_dtor. | |
10273 | * thread.c (print_thread_info): Report the core. | |
10274 | * ui-out.c (MAX_UI_OUT_LEVELS): Increase. | |
10275 | * utils.c (compare_positive_ints): New. | |
10276 | * features/threads.dtd: New. | |
10277 | * mi/mi-interp.c (mi_on_normal_stop): Report the core. | |
10278 | * mi/mi-main.c (struct collect_cores_data, collect_cores) | |
10279 | (do_nothing, free_vector_of_osdata_items) | |
10280 | (splay_tree_int_comparator, free_splay_tree): New. | |
10281 | (print_one_inferior_data): Implemented printing of selected | |
10282 | inferiors. Collect and print cores. | |
10283 | (output_cores): New. | |
10284 | (mi_cmd_list_thread_groups): Support --recurse. Permit specifying | |
10285 | thread groups together with --available. | |
10286 | ||
d30c5336 JK |
10287 | 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
10288 | ||
10289 | * configure: Regenerate (for _STRUCTURED_PROC). | |
10290 | ||
02893727 JB |
10291 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
10292 | ||
10293 | Delete dead function. | |
10294 | * ada-lang.c (extract_string): Delete. No longer used. | |
10295 | ||
46ed2d6f JB |
10296 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
10297 | ||
10298 | Fix -Wunused warning in dec-thread.c. | |
10299 | * dec-thread.c (dec_thread_count_gdb_threads) | |
10300 | (dec_thread_add_gdb_thread): Prevent -Wunused warning. | |
10301 | ||
606b8d1a JB |
10302 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
10303 | ||
10304 | * ada-valprint.c (ada_print_floating): Remove trailing space. | |
10305 | ||
b4ba55a1 JB |
10306 | 2010-01-12 Joel Brobecker <brobecker@adacore.com> |
10307 | ||
10308 | Add support for DW_AT_GNAT_descriptive_type. | |
10309 | * gdbtypes.h (enum type_specific_kind): New enum. | |
10310 | (struct main_type) [type_specific_field]: New component. | |
10311 | [type_specific]: Add new component "gnat_stuff". | |
10312 | (struct gnat_aux_type): New type. | |
10313 | (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). | |
10314 | (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). | |
10315 | (gnat_aux_default, allocate_gnat_aux_type): Add declaration. | |
10316 | (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) | |
10317 | (TYPE_SPECIFIC_FIELD): New macros. | |
10318 | (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given | |
10319 | type does not hold any cplus-specific data. | |
10320 | (TYPE_RAW_CPLUS_SPECIFIC): New macro. | |
10321 | (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. | |
10322 | (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has | |
10323 | cplus-specific data. | |
10324 | * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. | |
10325 | Set new component TYPE_SPECIFIC_FIELD (type). | |
10326 | (gnat_aux_default): New constant. | |
10327 | (allocate_gnat_aux_type): New function. | |
10328 | (init_type): Add initialization the type-specific stuff for | |
10329 | TYPE_CODE_FLT and TYPE_CODE_FUNC types. | |
10330 | (print_gnat_stuff): New function. | |
10331 | (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- | |
10332 | specific data. Adjust code that prints the contents of the | |
10333 | type-specific union using the TYPE_SPECIFIC_FIELD value. | |
10334 | * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate | |
10335 | the type cplus stuff for Ada types. | |
10336 | (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): | |
10337 | Error out if these routines are called with an Ada type. | |
10338 | (read_structure_type, read_array_type, read_subrange_type): | |
10339 | Add call to set_descriptive_type. | |
10340 | (set_die_type): Initialize the gnat-specific data if necessary. | |
10341 | (need_gnat_info, die_descriptive_type, set_descriptive_type): | |
10342 | New functions. | |
10343 | * ada-lang.c (decode_constrained_packed_array_type): Use | |
10344 | decode_constrained_packed_array_type instead of doing a standard | |
10345 | lookup to locate a parallel type. | |
10346 | (find_parallel_type_by_descriptive_type): New function. | |
10347 | (ada_find_parallel_type_with_name): New function. | |
10348 | (ada_find_parallel_type): Reimplement using | |
10349 | ada_find_parallel_type_with_name. | |
10350 | * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT | |
10351 | to check if type has a cplus stuff. | |
10352 | * linespec.c (total_number_of_methods): Likewise. | |
10353 | * mdebugread.c (new_type): Likewise. | |
10354 | ||
b0f02ee9 JK |
10355 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
10356 | ||
10357 | * NEWS: Document the 0b binary number prefix parsing. | |
10358 | ||
b260e109 JK |
10359 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
10360 | ||
10361 | * objfiles.c (objfile_relocate1): Change the return type to int. | |
10362 | Describe the new return value. Return non-zero if data changed. | |
10363 | (objfile_relocate): New variable changed. Set it. Call | |
10364 | breakpoint_re_set depending on CHANGED. | |
10365 | ||
b5cfddf5 JK |
10366 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
10367 | ||
10368 | Implement binary numbers parsing. | |
10369 | * c-exp.y (parse_number): New case 'b' and 'B'. | |
10370 | ||
e0ae4240 JK |
10371 | 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
10372 | Tristan Gingold <gingold@adacore.com> | |
10373 | ||
10374 | * solib.c (info_sharedlibrary_command): Replace | |
10375 | objfile_has_partial_symbols and objfile_has_full_symbols calls by | |
10376 | objfile_has_symbols. | |
10377 | ||
6e0e5977 JB |
10378 | 2010-01-10 Joel Brobecker <brobecker@adacore.com> |
10379 | ||
10380 | * NEWS: Document the improvements made to the mips-irix port. | |
10381 | ||
7348c5e1 JB |
10382 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10383 | ||
10384 | Fix the documentation of valprint.c:value_print. | |
10385 | * valprint.c (value_print): Update the function description to | |
10386 | mention that the syntax of the output follows the current_language, | |
10387 | not necessarily C. | |
10388 | ||
567995e1 JK |
10389 | 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
10390 | ||
10391 | Fix displacement of separate debug info files. | |
10392 | * objfiles.c (objfile_relocate): Rename to ... | |
10393 | (objfile_relocate1): ... here and make it static. Extend the comment. | |
10394 | (objfile_relocate): New function. | |
10395 | * solib-spu.c (spu_relocate_main_executable): Explicitly check if | |
10396 | SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. | |
10397 | Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now | |
10398 | allocated using alloca. | |
10399 | * symfile.c (copy_section_addr_info): Remove. | |
10400 | (build_section_addr_info_from_objfile): Make it global. New variables | |
10401 | addr_bit and mask, use them. | |
10402 | * symfile.h (build_section_addr_info_from_objfile): New prototype. | |
10403 | (copy_section_addr_info): Remove. | |
10404 | ||
6d8eadbd JB |
10405 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10406 | ||
10407 | Signal unwinder for mips-irix N32. | |
10408 | * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and | |
10409 | tramp-frame.h. | |
10410 | (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) | |
10411 | (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) | |
8d95cc3b PA |
10412 | (SIGCONTEXT_LO_OFF): New macros. |
10413 | (mips_irix_n32_tramp_frame_init): New function. | |
6d8eadbd JB |
10414 | (mips_irix_n32_tramp_frame): New static constant. |
10415 | (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder. | |
10416 | ||
27087a3d JB |
10417 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10418 | ||
10419 | Breakpoint in shared library does not work on mips-irix. | |
10420 | * procfs.c: #include "observer.h". | |
10421 | (procfs_inferior_created): New function, moving here the code | |
10422 | which unsets the syssgi syscall-exit notifications. | |
10423 | (procfs_create_inferior): Remove the code which unsets the syssgi | |
10424 | syscall-exit notifications. It is too early to do this here. | |
10425 | (_initialize_procfs): Attach the procfs_inferior_created observer. | |
10426 | ||
f08877ba JB |
10427 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10428 | ||
10429 | Wrong return convention for arrays (mips-irix). | |
10430 | * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is | |
10431 | 128 bits or smaller are returned the same way as structs | |
10432 | and unions of the the same size. | |
10433 | ||
e4b97d48 JB |
10434 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10435 | ||
10436 | Cannot set the PC on mips-irix. | |
10437 | * irix5-nat.c (fill_gregset): Check regno against the raw PC | |
10438 | register number, no the cooked one. | |
10439 | ||
11377e68 JB |
10440 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10441 | ||
10442 | Error while loading core file on mips-irix. | |
10443 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing | |
10444 | if debugging from a core file. | |
10445 | ||
b2391021 JB |
10446 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10447 | ||
10448 | GDB hangs when attaching to process on mips-irix. | |
10449 | * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if | |
10450 | attaching to a process. | |
10451 | ||
f2ec0ecf JB |
10452 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10453 | ||
10454 | Use the correct breakpoint instruction on mips-irix. | |
10455 | * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable | |
10456 | containing the correct breakpoint instruction to use on mips-irix. | |
10457 | Use it when the osabi is GDB_OSABI_IRIX. | |
10458 | ||
3c95f01c JB |
10459 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10460 | ||
10461 | -Wunused warning in procfs.c (mips-irix only). | |
10462 | * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them | |
10463 | throughout instead of using praddset and prdelset respectively. | |
10464 | ||
4b7703ad JB |
10465 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10466 | ||
10467 | GDB crash while stepping into function. | |
10468 | * infrun.c (handle_inferior_event): Refetch the current frame | |
10469 | after handling what.main_action, in case that pointer became | |
10470 | dangling. | |
10471 | ||
12c89474 JB |
10472 | 2010-01-09 Joel Brobecker <brobecker@adacore.com> |
10473 | ||
10474 | Fix build failure of solaris-hosted cross debuggers. | |
10475 | * ada-valprint.c, parse.c: Include defs.h before including ctype.h. | |
10476 | ||
1a3fd262 | 10477 | 2010-01-09 Daniel Gutson <dgutson@codesourcery.com> |
4c490650 JB |
10478 | |
10479 | Fix build failure on sparc-solaris. | |
10480 | * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. | |
10481 | ||
75242ef4 JK |
10482 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
10483 | ||
10484 | Move some symfile code into subroutines. | |
10485 | * symfile.h (relative_addr_info_to_section_offsets) | |
10486 | (addr_info_make_relative): New prototypes. | |
10487 | * symfile.c (default_symfile_offsets): Move a part to ... | |
10488 | (relative_addr_info_to_section_offsets): ... this new function. | |
10489 | (default_symfile_offsets): Call it. | |
10490 | (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move | |
10491 | this part to ... | |
10492 | (addr_info_make_relative): ... this new function. | |
10493 | ||
268a4a75 JK |
10494 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
10495 | ||
10496 | Add from_tty to solib_create_inferior_hook. | |
10497 | * infcmd.c (post_create_inferior): Move solib_add after | |
10498 | solib_create_inferior_hook. Pass from_tty to | |
10499 | solib_create_inferior_hook. Call solib_add and SOLIB_ADD with | |
10500 | 0 from_tty and comment why. | |
10501 | * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0. | |
10502 | * linux-nat.c (linux_child_follow_fork): Likewise. | |
10503 | * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise. | |
10504 | * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter | |
10505 | from_tty. | |
10506 | * solib-frv.c (frv_solib_create_inferior_hook): Likewise. | |
10507 | * solib-irix.c (irix_solib_create_inferior_hook): Likewise. | |
10508 | * solib-null.c (null_solib_create_inferior_hook): Likewise. | |
10509 | * solib-osf.c (osf_solib_create_inferior_hook): Likewise. | |
10510 | * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise. | |
10511 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
10512 | * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty. | |
10513 | Pass it to svr4_so_ops.solib_create_inferior_hook. | |
10514 | * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter | |
10515 | from_tty. | |
10516 | * solib-svr4.c (enable_break): New parameter from_tty. Pass it to | |
10517 | solib_add. | |
10518 | (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to | |
10519 | enable_break. | |
10520 | * solib-target.c (solib_target_solib_create_inferior_hook): New | |
10521 | parameter from_tty. | |
10522 | * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass | |
10523 | it to ops->solib_create_inferior_hook. | |
10524 | (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook. | |
10525 | Move solib_add after solib_create_inferior_hook, call it now with | |
10526 | from_tty as 0. New comment there. | |
10527 | * solib.h (solib_create_inferior_hook): New parameter from_tty. | |
10528 | * solist.h (struct target_so_ops <solib_create_inferior_hook>): | |
10529 | Likewise. | |
10530 | ||
cf00dfa7 VP |
10531 | 2010-01-08 Vladimir Prus <vladimir@codesourcery.com> |
10532 | ||
10533 | Fix multiexec race. | |
10534 | * infrun.c (handle_inferior_event): Use get_thread_regcache | |
10535 | with events ptid, not get_current_regcache. | |
10536 | ||
f91e5ac3 JB |
10537 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
10538 | ||
10539 | GDB crash with empty executable name (MinGW). | |
10540 | * source.c (openp): Add assert that parameter string is not NULL. | |
10541 | if parameter string is an empty string, then return with a failure | |
10542 | immediately. | |
10543 | ||
92b9ce5b JB |
10544 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
10545 | ||
10546 | Get rid of support for VAX Floats. | |
10547 | * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
10548 | (ada_vax_float_print_function): Delete. | |
10549 | * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix) | |
10550 | (ada_vax_float_print_function): Delete. | |
10551 | * ada-typeprint.c (print_vax_floating_point_type): Delete. | |
10552 | (ada_print_type): Remove support for VAX floats. | |
10553 | * ada-valprint.c (ada_val_print_1): Remove support for VAX floats. | |
10554 | ||
268a4a75 | 10555 | 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
d24d8548 JK |
10556 | |
10557 | * stabsread.c (read_args): Handle zero arguments. | |
10558 | ||
f0f20949 JB |
10559 | 2009-01-08 Joel Brobecker <brobecker@adacore.com> |
10560 | ||
10561 | Cannot find in-tree libiconv.a after reconfigure. | |
10562 | * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a | |
10563 | that we can use, then cache the path to this archive. | |
10564 | * configure: Regenerate. | |
10565 | ||
6b6218c5 SS |
10566 | 2010-01-07 Stan Shebs <stan@codesourcery.com> |
10567 | ||
35b1e5cc SS |
10568 | Make tracepoint operations go through target vector. |
10569 | * target.h (enum trace_find_type): New enum. | |
10570 | (struct target_ops): New fields to_trace_init, | |
10571 | to_download_tracepoint, to_download_trace_state_variable, | |
10572 | to_trace_set_readonly_regions, to_trace_start, to_get_trace_status, | |
10573 | to_trace_stop, to_trace_find, to_get_trace_state_variable_value, | |
10574 | to_set_disconnected_tracing. | |
10575 | (target_trace_init): New macro. | |
10576 | (target_download_tracepoint): New macro. | |
10577 | (target_download_trace_state_variable): New macro. | |
10578 | (target_trace_start): New macro. | |
10579 | (target_trace_set_readonly_regions): New macro. | |
10580 | (target_get_trace_status): New macro. | |
10581 | (target_trace_stop): New macro. | |
10582 | (target_trace_find): New macro. | |
10583 | (target_get_trace_state_variable_value): New macro. | |
10584 | (target_set_disconnected_tracing): New macro. | |
10585 | * target.c (update_current_target): Inherit and set defaults for | |
10586 | tracepoint operations. | |
10587 | * tracepoint.c (default_collect): Make globally visible. | |
10588 | (target_is_remote): Remove, along with all calls. | |
10589 | (tvariables_info): Call target_get_trace_state_variable_value. | |
10590 | (remote_set_transparent_ranges): Remove. | |
10591 | (trace_start_command): Call target_trace_init, | |
10592 | target_download_tracepoint, etc. | |
10593 | (download_tracepoint): Remove. | |
10594 | (trace_stop_command): Simplify. | |
10595 | (stop_tracing): Call target_trace_stop. | |
10596 | (get_trace_status): Call target_get_trace_status. | |
10597 | (trace_status_command): Add case for targets that cannot trace. | |
10598 | (finish_tfind_command): Change to take numerical arguments, call | |
10599 | target_trace_find. | |
10600 | (trace_find_command): Update call to finish_tfind_command. | |
10601 | (trace_find_pc_command): Ditto. | |
10602 | (trace_find_tracepoint_command): Ditto. | |
10603 | (trace_find_line_command): Ditto. | |
10604 | (trace_find_range_command): Ditto. | |
10605 | (trace_find_outside_command): Ditto. | |
10606 | (set_disconnected_tracing_value): Call | |
10607 | target_set_disconnected_tracing. | |
10608 | * remote.c: Add protocol encoding bits from tracepoint.c. | |
10609 | (trace_error): Move from tracepoint.c. | |
10610 | (remote_get_noisy_reply): Ditto. | |
10611 | (free_actions_list_cleanup_wrapper): Ditto. | |
10612 | (free_actions_list): Ditto. | |
10613 | (remote_trace_init): New function. | |
10614 | (remote_download_tracepoint): New function. | |
10615 | (remote_download_trace_state_variable): New function. | |
10616 | (remote_trace_set_readonly_regions): New function. | |
10617 | (remote_trace_start): New function. | |
10618 | (remote_get_trace_status): New function. | |
10619 | (remote_trace_stop): New function. | |
10620 | (remote_trace_find): New function. | |
10621 | (remote_download_trace_state_variable): New function. | |
10622 | (remote_set_disconnected_tracing): New function. | |
10623 | (init_remote_ops): Add tracepoint operations. | |
10624 | ||
6b6218c5 SS |
10625 | * tracepoint.c (trace_dump_command): Don't decr_pc_after_break. |
10626 | ||
089b4803 TG |
10627 | 2010-01-07 Tristan Gingold <gingold@adacore.com> |
10628 | ||
10629 | * symfile.c (build_section_addr_info_from_objfile): New function. | |
10630 | (symbol_file_add_separate): Don't use offsets from objfile but | |
10631 | built an addr info. | |
10632 | ||
d5551862 SS |
10633 | 2010-01-06 Stan Shebs <stan@codesourcery.com> |
10634 | ||
10635 | Support disconnected tracing. | |
10636 | * infcmd.c (detach_command): Ask whether to stop tracing. | |
10637 | * cli/cli-cmds.c (quit_command): Ditto. | |
10638 | * breakpoint.h (struct breakpoint): New field number_on_target. | |
10639 | * breakpoint.c (create_tracepoint_from_upload): New function. | |
10640 | (get_tracepoint_by_number_on_target): New function. | |
10641 | * remote.c (struct remote): New field disconnected_tracing. | |
10642 | (remote_disconnected_tracing_feature): New function. | |
10643 | (remote_protocol_features): Add DisconnectedTracing. | |
10644 | (struct uploaded_tp): New struct. | |
10645 | (uploaded_tps): New global. | |
10646 | (get_uploaded_tp): New function. | |
10647 | (find_matching_tracepoint): New function. | |
10648 | (remote_get_tracing_state): New function. | |
10649 | (remote_start_remote): Call it. | |
10650 | * tracepoint.c (disconnected_tracing): New global. | |
10651 | (trace_start_command): Initialize number_on_target. | |
10652 | (stop_tracing): New function, split out from... | |
10653 | (trace_stop_command): Call stop_tracing. | |
10654 | (get_trace_status): New function, split out from... | |
10655 | (trace_status_command): Call get_trace_status, add info on | |
10656 | disconnection behavior. | |
10657 | (disconnect_or_stop_tracing): New function. | |
10658 | (finish_tfind_command): Translate from number on target. | |
10659 | (trace_find_tracepoint_command): Translate to number on target. | |
10660 | (send_disconnected_tracing_value): New function. | |
10661 | (set_disconnected_tracing): New function. | |
10662 | (_initialize_tracepoint): Add disconnected-tracing variable. | |
10663 | * NEWS: Mention disconnected tracing. | |
10664 | ||
15d123c9 TG |
10665 | 2010-01-06 Tristan Gingold <gingold@adacore.com> |
10666 | ||
10667 | * symtab.c (lookup_global_symbol_from_objfile): Rename objfile | |
10668 | parameter to main_objfile. Iterate on all separate debug objfiles. | |
10669 | * symfile.h (symbol_file_add_separate) | |
10670 | (find_separate_debug_file_by_debuglink): Remove parameter names. | |
10671 | * symfile.c (symbol_file_add_separate): Use add_separate_objfile. | |
10672 | (reread_symbols): Use free_objfile_separate_debug. | |
10673 | * objfiles.h (struct objfile): Add separate_debug_objfile_link. | |
10674 | Adjust comment. | |
10675 | (objfile_separate_debug_iterate, add_separate_debug_objfile) | |
10676 | (free_objfile_separate_debug): New prototypes. | |
10677 | * objfiles.c (objfile_separate_debug_iterate): New function. | |
10678 | (add_separate_debug_objfile, free_objfile_separate_debug): New | |
10679 | functions. | |
10680 | (free_objfile): Use free_objfile_separate_debug. Adjust for | |
10681 | multiple separate debug objfile. | |
10682 | (objfile_has_symbols): Adjust comment. Iterate on all separate | |
10683 | debug objfiles. | |
10684 | * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate | |
10685 | debug objfile. | |
10686 | (lookup_minimal_symbol_text): Ditto. | |
10687 | (lookup_minimal_symbol_by_pc_name): Ditto. | |
10688 | (lookup_minimal_symbol_solib_trampoline): Ditto. | |
10689 | (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate | |
10690 | debug objfiles. | |
10691 | ||
7a697b8d SS |
10692 | 2010-01-05 Stan Shebs <stan@codesourcery.com> |
10693 | ||
10694 | Add fast tracepoints. | |
10695 | * arch-utils.h (default_fast_tracepoint_valid_at): Declare. | |
10696 | * arch-utils.c (default_fast_tracepoint_valid_at): New function. | |
10697 | * breakpoint.h (enum bptype): Add bp_fast_tracepoint. | |
10698 | * breakpoint.c (tracepoint_type): New function. | |
10699 | (ALL_TRACEPOINTS): Use it. | |
10700 | (should_be_inserted): Ditto. | |
10701 | (bpstat_check_location): Ditto. | |
10702 | (print_one_breakpoint_location): Ditto. | |
10703 | (user_settable_breakpoint): Ditto. | |
10704 | (set_breakpoint_location_function): Ditto. | |
10705 | (disable_breakpoints_in_shlibs): Ditto. | |
10706 | (delete_trace_command): Ditto. | |
10707 | (print_it_typical): Add bp_fast_tracepoint case. | |
10708 | (bpstat_what): Ditto. | |
10709 | (print_one_breakpoint_location): Ditto. | |
10710 | (allocate_bp_location): Ditto. | |
10711 | (mention): Ditto. | |
10712 | (breakpoint_re_set_one): Ditto. | |
10713 | (disable_command): Ditto. | |
10714 | (enable_command): Ditto. | |
10715 | (check_fast_tracepoint_sals): New function. | |
10716 | (break_command_really): Call it. | |
10717 | (ftrace_command): New function. | |
10718 | (_initialize_breakpoint): Add ftrace command. | |
10719 | * gdbarch.sh (fast_tracepoint_valid_at): New. | |
10720 | * gdbarch.h, gdbarch.c: Regenerate. | |
10721 | * i386-tdep.c (i386_fast_tracepoint_valid_at): New function. | |
10722 | (i386_gdbarch_init): Use it. | |
10723 | * remote.c (struct remote_state): New field fast_tracepoints. | |
10724 | (PACKET_FastTracepoints): New packet config type. | |
10725 | (remote_fast_tracepoint_feature): New function. | |
10726 | (remote_protocol_features): Add FastTracepoints. | |
10727 | (remote_supports_fast_tracepoints): New function. | |
10728 | (_initialize_remote): Add FastTracepoints. | |
10729 | * tracepoint.c (download_tracepoint): Add fast tracepoint option. | |
10730 | * NEWS: Mention fast tracepoints. | |
10731 | ||
737a160e JB |
10732 | 2010-01-06 Joel Brobecker <brobecker@adacore.com> |
10733 | ||
10734 | * gdb-gdb.py: New file. | |
10735 | ||
ce6cca6d MS |
10736 | 2010-01-05 Michael Snyder <msnyder@vmware.com> |
10737 | ||
10738 | * infrun.c (handle_inferior_event): Fix typo in comment. | |
10739 | ||
0d15807d JK |
10740 | 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
10741 | ||
10742 | * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional. | |
10743 | ||
7803799a UW |
10744 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
10745 | ||
c8d5aac9 | 10746 | * features/Makefile (WHICH): Add s390-linux32, s390-linux64, |
7803799a UW |
10747 | and s390x-linux64. |
10748 | (s390-linux32-expedite): Define. | |
10749 | (s390-linux64-expedite): Define. | |
10750 | (s390x-linux64-expedite): Define. | |
10751 | * features/s390-acr.xml: New file. | |
10752 | * features/s390-fpr.xml: New file. | |
10753 | * features/s390-core32.xml: New file. | |
10754 | * features/s390-core64.xml: New file. | |
10755 | * features/s390x-core64.xml: New file. | |
10756 | * features/s390-linux32.xml: New file. | |
10757 | * features/s390-linux64.xml: New file. | |
10758 | * features/s390x-linux64.xml: New file. | |
10759 | * features/s390-linux32.c: New generated file. | |
10760 | * features/s390-linux64.c: New generated file. | |
10761 | * features/s390x-linux64.c: New generated file. | |
10762 | ||
10763 | * regformats/s390-linux32.dat: New generated file. | |
10764 | * regformats/s390-linux64.dat: New generated file. | |
10765 | * regformats/s390x-linux64.dat: New generated file. | |
10766 | * regformats/reg-s390.dat: Remove. | |
10767 | * regformats/reg-s390x.dat: Remove. | |
10768 | ||
10769 | * s390-nat.c: Include "auxv.h" and <elf.h>. | |
10770 | (HWCAP_S390_HIGH_GPRS): Define if undefined. | |
10771 | (s390_target_wordsize): New function. | |
10772 | (s390_auxv_parse): Likewise. | |
10773 | (s390_get_hwcap): Likewise. | |
10774 | (s390_read_description): Likewise. | |
10775 | (_initialize_s390_nat): Install s390_auxv_parse and | |
10776 | s390_read_description. | |
10777 | ||
10778 | * s390-tdep.c: Include "features/s390-linux32.c", | |
10779 | "features/s390-linux64.c", and "features/s390x-linux64.c". | |
10780 | (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum. | |
10781 | (s390_register_call_saved): New function. | |
10782 | (s390_register_name): Remove. | |
10783 | (s390_register_type): Remove. | |
10784 | (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums. | |
10785 | (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs. | |
10786 | (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI. | |
10787 | (s390_pseudo_register_name): New function. | |
10788 | (s390_pseudo_register_type): New function. | |
10789 | (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases. | |
10790 | Handle full GPR pesudos and varying pseudo register numbers. | |
10791 | (s390_pseudo_register_write): Likewise | |
10792 | (s390x_pseudo_register_read): Remove. | |
10793 | (s390x_pseudo_register_write): Likewise. | |
10794 | (s390_register_group): Remove. | |
10795 | (s390_pseudo_register_group): New function. | |
10796 | (s390_regmap_gregset): Add GPR upper halves. | |
10797 | (s390x_regmap_gregset): Likewise. | |
10798 | (s390_regmap_fpregset): Likewise. | |
10799 | (s390_regmap_upper): New global variable. | |
10800 | (s390_upper_regset): New global variable. | |
10801 | (s390_upper_regset_sections): New global variable. | |
10802 | (s390_regset_from_core_section): Handle GPR upper halves. | |
10803 | (s390_core_read_description): New function. | |
10804 | (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered | |
10805 | register information. Handle varying pseudo register numbers. | |
10806 | (s390_backchain_frame_unwind_cache): Likewise. | |
10807 | (s390_frame_prev_register): Unwind full GPRs to show lower halves. | |
10808 | (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers. | |
10809 | (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as | |
10810 | PC and CC pseudos. Unwind upper halves and full GPRs as appropriate. | |
10811 | Handle varying pseudo register numbers. | |
10812 | (s390_unwind_pc): Handle varying pseudo register numbers. | |
10813 | (s390_dwarf2_prev_register): New function. | |
10814 | (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered | |
10815 | register information. Handle varying pseudo register numbers. | |
10816 | Install s390_dwarf2_prev_register to unwind full GPRs. | |
10817 | (s390_gdbarch_init): Handle target descriptions. Assign varying | |
10818 | pseudo register numbers. Install s390_adjust_frame_regnum. | |
10819 | (_initialize_s390_tdep): Initialize target descriptions. | |
10820 | ||
10821 | * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define. | |
10822 | (S390_NUM_REGS): Redefine to include upper half registers. | |
10823 | (S390_PC_REGNUM, S390_CC_REGNUM): Remove. | |
10824 | (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise. | |
10825 | (tdesc_s390_linux32): Add declaration. | |
10826 | (tdesc_s390_linux64): Likewise. | |
10827 | (tdesc_s390x_linux64): Likewise. | |
10828 | ||
1b1818e4 UW |
10829 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
10830 | ||
10831 | * regset.h (struct core_regset_section): Add HUMAN_NAME. | |
10832 | * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME. | |
10833 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
10834 | (ppc_linux_vmx_regset_sections): Likewise. | |
10835 | (ppc_linux_fp_regset_sections): Likewise. | |
10836 | ||
10837 | * corelow.c (get_core_register_section): Constify arguments. | |
10838 | (get_core_registers): Use gdbarch_core_regset_sections instead | |
10839 | of hard-coded platform-specific register section names. | |
10840 | ||
dcbf108f UW |
10841 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
10842 | ||
10843 | * dwarf2loc.c (read_pieced_value): If a piece occupies part of | |
b3f41522 | 10844 | a register, assume the least-significant part is used. |
dcbf108f UW |
10845 | (write_pieced_value): Likewise. |
10846 | ||
704e9165 UW |
10847 | 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com> |
10848 | ||
10849 | * printcmd.c: Include "arch-utils.h". | |
10850 | (do_one_display): Re-parse expression if current architecture changed. | |
10851 | ||
c54eabfa JK |
10852 | 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
10853 | Joel Brobecker <brobecker@adacore.com> | |
10854 | ||
10855 | * gdbtypes.c (check_typedef): New comment on type length. | |
10856 | * value.c (allocate_value_lazy): Remove the unused atype variable. New | |
10857 | comment on type length. | |
10858 | (value_primitive_field): Keep the original TYPE value, new comment. | |
10859 | ||
50cb2941 JK |
10860 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
10861 | ||
10862 | * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as | |
10863 | p_start. Change != comparisons to > and < comparisons. | |
10864 | ||
be66db07 JK |
10865 | 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
10866 | ||
10867 | * cli/cli-script.c (process_next_line): Check P2 overrun. | |
10868 | ||
abd775ce JB |
10869 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
10870 | ||
10871 | Update the copyright hearder to add year 2010 for most GDB files. | |
10872 | ||
6479260d JB |
10873 | 2009-01-01 Joel Brobecker <brobecker@adacore.com> |
10874 | ||
10875 | Fix build failure in inf-ptrace.c. | |
10876 | * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo. | |
10877 | ||
4a70f654 JB |
10878 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
10879 | ||
10880 | * top.c (print_gdb_version): Update copyright year. | |
10881 | ||
595939de | 10882 | 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com> |
b9ee2233 JB |
10883 | |
10884 | Fix break *FUN'address thread NUM. | |
10885 | * ada-lex.l (task): Expand rule to also match the thread keyword. | |
10886 | ||
70575d34 JB |
10887 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
10888 | ||
10889 | Fix break *FUN'address task NUM. | |
10890 | * ada-lex.l (task): New rule. | |
10891 | * ada-lang.c (valid_task_id): Make sure the Ada task list has | |
10892 | been built before using it. | |
10893 | ||
e1e4d4a4 | 10894 | For older changes see ChangeLog-2009. |
c906108c SS |
10895 | \f |
10896 | Local Variables: | |
10897 | mode: change-log | |
10898 | left-margin: 8 | |
10899 | fill-column: 74 | |
10900 | version-control: never | |
57da7796 | 10901 | coding: utf-8 |
c906108c | 10902 | End: |