Commit | Line | Data |
---|---|---|
8bdf35dc KB |
1 | 2010-12-15 Kevin Buettner <kevinb@redhat.com> |
2 | ||
3 | * mips-tdep.c (mips_pseudo_register_write): Sign extend 32-bit | |
4 | cooked values that are being transferred to 64-bit raw registers. | |
5 | (mips_pseudo_register_read): Revise to preserve symmetry with | |
6 | mips_pseudo_register_write(). | |
7 | ||
45ccdddc TT |
8 | 2010-12-15 Greg Watson <g.watson@computer.org> |
9 | ||
10 | * f-exp.y (yylex): Check entire token against keywords. | |
11 | ||
a86caf66 DE |
12 | 2010-12-15 Doug Evans <dje@google.com> |
13 | ||
14 | Rename "maint set python auto-load" to "set auto-load-scripts". | |
15 | * NEWS: Mention it. | |
16 | * python/py-auto-load.c (auto_load_scripts): Renamed from | |
17 | gdbpy_auto_load. | |
18 | (load_auto_scripts_for_objfile): Update. | |
19 | (gdbpy_initialize_auto_load): Rename "maint set python auto-load" to | |
20 | "set auto-load-scripts". | |
21 | ||
a8852dc5 KB |
22 | 2010-12-14 Kevin Buettner <kevinb@redhat.com> |
23 | ||
24 | * mips-tdep.c (mips_eabi_push_dummy_call): Place signed, rather | |
25 | than unsigned, values in registers. | |
26 | ||
b6c882c7 L |
27 | 2010-12-14 Ken Werner <ken.werner@de.ibm.com> |
28 | ||
29 | * valops.c (value_one): Use get_array_bounds to compute the number | |
30 | of array elements instead of dividing the length of the array by the | |
31 | length of the element types. | |
32 | * valarith.c (value_complement, value_neg): Likewise. | |
33 | ||
043b6510 JB |
34 | 2010-12-14 Joel Brobecker <brobecker@adacore.com> |
35 | ||
36 | * irix5-nat.c: Replace fp_r, fp_regs and fp_scr by __fp_r, __fp_regs | |
37 | and __fp_scr respectively throughout. | |
38 | * configure.ac: Compile with -Dsiginfo=__siginfo if building with | |
39 | Python using GCC on IRIX. | |
40 | * configure: Regenerate. | |
41 | ||
c6490bf2 KB |
42 | 2010-12-13 Kevin Buettner <kevinb@redhat.com> |
43 | ||
44 | * solib-svr4.c (enable_break): Don't attempt to place breakpoints, | |
45 | when attaching, on the names in bkpt_names: _start, __start, and | |
46 | main. | |
47 | ||
0914bcdb SS |
48 | 2010-12-12 Stan Shebs <stan@codesourcery.com> |
49 | ||
50 | * value.c (value_of_internalvar): Add case for trace state | |
51 | variables. | |
52 | ||
7b9f3c50 DE |
53 | 2010-12-12 Doug Evans <dje@google.com> |
54 | ||
55 | * dwarf2read.c (dwarf2_per_objfile): New member quick_file_names_table. | |
56 | (dwarf2_per_cu_quick_data): Move definition down to "quick functions" | |
57 | section. Delete members lines full_names. Rename read_lines to | |
58 | no_file_data. | |
59 | (quick_file_names): New struct. | |
60 | (hash_file_name_entry, eq_file_name_entry): New functions. | |
61 | (delete_file_name_entry, create_quick_file_names_table): New functions. | |
62 | (dwarf2_read_index): Initialize quick_file_names_table. | |
63 | (dw2_get_file_names): Renamed from dw2_require_line_header. | |
64 | Return pointer to quick_file_names entry. All callers updated. | |
65 | (dw2_get_real_path): Renamed from dw2_require_full_path. | |
66 | Replace per_cu arg with pointer to quick_file_names entry. | |
67 | All callers updated. | |
68 | (dw2_free_cached_file_names): New function. | |
69 | (dw2_forget_cached_source_info): Call it (via htab_traverse_noresize). | |
70 | (dwarf2_initialize_objfile): Initialize quick_file_names_table in | |
71 | the OBJF_READNOW case. | |
72 | (dwarf2_free_objfile): Rewrite freeing of quick file names tables. | |
73 | ||
1583e7ea | 74 | 2010-12-12 Mark Kettenis <kettenis@gnu.org> |
89fa5cc8 MK |
75 | |
76 | * mips64obsd-tdep.c (floatformats_mips64_quad): New define. | |
77 | (mips64obsd_init_abi): Set long_double_bit and long_double_format. | |
78 | ||
7a58cce8 MK |
79 | 2010-12-12 Mark Kettenis <kettenis@gnu.org> |
80 | ||
81 | * sparc-tdep.c: Fix typo in comment. | |
82 | ||
ae2de4f8 DE |
83 | 2010-12-10 Doug Evans <dje@google.com> |
84 | ||
85 | * dwarf2read.c: Whitespace cleanup, plus comment additions. | |
86 | No code changes. | |
87 | ||
66cb8159 TT |
88 | 2010-12-10 Tom Tromey <tromey@redhat.com> |
89 | ||
90 | * NEWS: Document exception-handling change. | |
91 | ||
30a7f059 MK |
92 | 2010-12-09 Marc Khouzam <marc.khouzam@ericsson.com> |
93 | ||
94 | * mi/mi-parse.c (mi_parse): Wrong error message. | |
95 | ||
ad727bb2 DE |
96 | 2010-12-09 Doug Evans <dje@google.com> |
97 | ||
98 | * symfile.h (quick_symbol_functions): Clarify usage of | |
99 | map_symbol_filenames. | |
100 | ||
305aeedc TT |
101 | 2010-12-09 Tom Tromey <tromey@redhat.com> |
102 | ||
103 | * mi/mi-parse.h (mi_parse): Update. | |
104 | * mi/mi-parse.c (mi_parse_cleanup): New function. | |
105 | (mi_parse): Add 'token' argument. Throw exception on error. | |
106 | * mi/mi-main.c (mi_print_exception): New function. | |
107 | (mi_execute_command): Use mi_print_exception. Catch exceptions | |
108 | from mi_parse. | |
109 | ||
186c406b TT |
110 | 2010-12-09 Tom Tromey <tromey@redhat.com> |
111 | ||
112 | PR c++/9593: | |
113 | * thread.c (clear_thread_inferior_resources): Call | |
114 | delete_longjmp_breakpoint. | |
115 | * infrun.c (handle_inferior_event): Handle exception breakpoints. | |
116 | (handle_inferior_event): Likewise. | |
117 | (insert_exception_resume_breakpoint): New function. | |
118 | (check_exception_resume): Likewise. | |
119 | * inferior.h (delete_longjmp_breakpoint_cleanup): Declare. | |
120 | * infcmd.c (delete_longjmp_breakpoint_cleanup): No longer static. | |
121 | (step_1): Set thread's initiating frame. | |
122 | (until_next_continuation): New function. | |
123 | (until_next_command): Support exception breakpoints. | |
124 | (finish_command_continuation): Delete longjmp breakpoint. | |
125 | (finish_forward): Support exception breakpoints. | |
126 | * gdbthread.h (struct thread_info) <initiating_frame>: New field. | |
127 | * breakpoint.h (enum bptype) <bp_exception, bp_exception_resume, | |
128 | bp_exception_master>: New constants. | |
129 | (struct bpstat_what) <is_longjmp>: New field. | |
130 | (set_longjmp_breakpoint): Update. | |
131 | * breakpoint.c (create_exception_master_breakpoint): New function. | |
132 | (update_breakpoints_after_exec): Handle bp_exception_master. Call | |
133 | create_exception_master_breakpoint. | |
134 | (print_it_typical): Handle bp_exception_master, bp_exception. | |
135 | (bpstat_stop_status): Handle bp_exception_master. | |
136 | (bpstat_what): Handle bp_exception_master, bp_exception, | |
137 | bp_exception_resume. | |
138 | (bptype_string): Likewise. | |
139 | (print_one_breakpoint_location): Likewise. | |
140 | (allocate_bp_location): Likewise. | |
141 | (set_longjmp_breakpoint): Handle exception breakpoints. Change | |
142 | interface. | |
143 | (delete_longjmp_breakpoint): Handle exception breakpoints. | |
144 | (mention): Likewise. | |
145 | (struct until_break_command_continuation_args) <thread_num>: New | |
146 | field. | |
147 | (until_break_command_continuation): Call | |
148 | delete_longjmp_breakpoint. | |
149 | (until_break_command): Support exception breakpoints. | |
150 | (delete_command): Likewise. | |
151 | (breakpoint_re_set_one): Likewise. | |
152 | (breakpoint_re_set): Likewise. | |
153 | ||
1ef75ecc DE |
154 | 2010-12-08 Doug Evans <dje@google.com> |
155 | ||
4e4666e6 DE |
156 | * gdbtypes.h (TYPE_IS_OPAQUE): Reformat. |
157 | ||
73e2eb35 DE |
158 | * gdbtypes.c (check_typedef): Tweak comment. |
159 | ||
0a5429f6 DE |
160 | PR symtab/12302 |
161 | * dwarf2read.c (struct psymtab_cu_index_map): New struct. | |
162 | (hash_psymtab_cu_index, eq_psymtab_cu_index): New functions. | |
163 | (struct addrmap_index_data): New struct. | |
164 | (add_address_entry): Remove arg `pst', new args `start', `end'. | |
165 | (add_address_entry_worker, write_address_map): New functions. | |
166 | (write_psymtabs_to_index): Address table generation moved to | |
167 | write_address_map. Build a table mapping psymtab to CU index | |
168 | to pass to it. | |
169 | ||
7e17e088 DE |
170 | * dwarf2read.c (write_psymtabs_to_index): When stat fails, pass file |
171 | name to perror. | |
172 | ||
d4637a04 DE |
173 | * symfile.h (quick_symbol_functions): Clarify usage of |
174 | expand_symtabs_with_filename. | |
175 | * dwarf2read.c (dw2_expand_symtabs_with_filename): Only iterate over | |
176 | comp units, ignore type units. | |
177 | ||
1ef75ecc DE |
178 | * dwarf2read.c (dw2_expand_symtabs_with_filename): Use FILENAME_CMP. |
179 | ||
aae1c79a DE |
180 | 2010-12-07 Doug Evans <dje@google.com> |
181 | ||
74dd2ca6 DE |
182 | * dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to |
183 | gdb_realpath. | |
184 | ||
aae1c79a DE |
185 | PR python/12227 |
186 | * NEWS: Mention -data-directory. | |
187 | * main.c (captured_main): Recognize -data-directory. | |
188 | ||
8e0e408a MK |
189 | 2010-12-06 Marc Khouzam <marc.khouzam@ericsson.com> |
190 | ||
191 | * mi/mi-parse.c (mi_parse): Missing else. | |
192 | ||
97fc68fe MM |
193 | 2010-12-04 Masaki Muranaka <monaka@monami-software.com> |
194 | ||
195 | * configure.tgt: Accept microblaze*-*-linux* for linux target | |
196 | and microblaze*-*-* for as target. | |
197 | ||
d03a3acf KS |
198 | 2010-12-02 Keith Seitz <keiths@redhat.com> |
199 | ||
200 | * linespec.c (find_method): Move name canonicalization outside | |
201 | the loop. | |
202 | Be paranoid and use a cleanup. | |
203 | ||
148c11bf DE |
204 | 2010-12-01 Doug Evans <dje@google.com> |
205 | ||
206 | * dwarf2read.c (save_gdb_index_command): Add comment. | |
207 | ||
4aac0db7 UW |
208 | 2010-12-01 Ulrich Weigand <uweigand@de.ibm.com> |
209 | ||
210 | * valops.c (value_assign): Returned value is never lazy. If a | |
211 | C++ class type is returned, fix incorrect enclosing type / embedded | |
212 | offset. If internal variable is returned, allocate new internalvar | |
213 | value using value_of_internalvar. | |
214 | ||
215 | * NEWS: Document changes in behavior of "print x = 0" and similar | |
216 | expressions. | |
217 | ||
4e04c971 DE |
218 | 2010-11-29 Doug Evans <dje@google.com> |
219 | ||
220 | * python/lib/gdb/printing.py (register_pretty_printer): Change | |
221 | printer-name:subprinter-name to printer-name;subprinter-name. | |
222 | * python/lib/gdb/command/pretty_printers.py (parse_printer_regexps): | |
223 | Ditto. | |
224 | (InfoPrettyPrinter, EnablePrettyPrinter, DisablePrettyPrinter): Ditto. | |
225 | ||
8cf6f0b1 TT |
226 | 2010-11-29 Tom Tromey <tromey@redhat.com> |
227 | ||
228 | * opencl-lang.c (lval_func_check_synthetic_pointer): New | |
229 | function. | |
230 | * value.h (struct lval_funcs) <indirect, check_synthetic_pointer>: | |
231 | New fields. | |
232 | (value_bits_synthetic_pointer): Declare. | |
233 | * value.c (value_bits_synthetic_pointer): New function. | |
234 | * valprint.c (valprint_check_validity): Handle synthetic | |
235 | pointers. | |
236 | * valops.c (value_ind): Use new 'indirect' lval_funcs method. | |
237 | * valarith.c (value_ptradd): Use set_value_component_location. | |
238 | * p-valprint.c (pascal_object_print_value_fields): Handle | |
239 | synthetic pointers. | |
240 | * jv-valprint.c (java_print_value_fields): Handle synthetic | |
241 | pointers. | |
242 | * dwarf2read.c (dwarf_stack_op_name): Add | |
243 | DW_OP_GNU_implicit_pointer. | |
244 | (dwarf2_fetch_die_location_block): Add get_frame_pc, baton | |
245 | arguments. Handle location lists. | |
246 | (fill_in_loclist_baton): New function. | |
247 | (dwarf2_symbol_mark_computed): Use it. | |
248 | * dwarf2loc.h (dwarf2_find_location_expression): Declare. | |
249 | (dwarf2_fetch_die_location_block): Add get_frame_pc, baton | |
250 | arguments. | |
251 | * dwarf2loc.c (dwarf2_find_location_expression): Rename from | |
252 | find_location_expression. No longer static. Update all callers. | |
253 | (dwarf_expr_frame_pc): New function. | |
254 | (per_cu_dwarf_call): Add get_frame_pc, baton arguments. Update | |
255 | all callers. | |
256 | (struct piece_closure) <per_cu>: New field. | |
257 | (allocate_piece_closure): Add per_cu argument. | |
258 | (read_pieced_value): Handle DWARF_VALUE_IMPLICIT_POINTER. | |
259 | (check_pieced_value_bits): Remove validity argument, add check_for | |
260 | argument. Handle DWARF_VALUE_IMPLICIT_POINTER. | |
261 | (check_pieced_value_validity, check_pieced_value_invalid): | |
262 | Update. | |
263 | (check_pieced_synthetic_pointer): New function. | |
264 | (get_frame_address_in_block_wrapper): New function. | |
265 | (indirect_pieced_value): New function. | |
266 | (pieced_value_funcs): Update. | |
267 | (invalid_synthetic_pointer): New function. | |
268 | (dwarf2_evaluate_loc_desc_full): Rename from | |
269 | dwarf2_evaluate_loc_desc. Add byte_offset argument. | |
270 | (dwarf2_evaluate_loc_desc): Rewrite. | |
271 | (dwarf2_loc_desc_needs_frame): Set new field on context. | |
272 | (get_ax_pc): New function. | |
273 | (disassemble_dwarf_expression): Handle | |
274 | DW_OP_GNU_implicit_pointer. | |
275 | * dwarf2expr.h (enum dwarf_value_location) | |
276 | <DWARF_VALUE_IMPLICIT_POINTER>: New constant. | |
277 | (struct dwarf_expr_context) <get_frame_pc>: New field. | |
278 | (struct dwarf_expr_piece) <v.ptr>: New field. | |
279 | * dwarf2expr.c (add_piece): Handle DWARF_VALUE_IMPLICIT_POINTER. | |
280 | (execute_stack_op): Handle DW_OP_GNU_implicit_pointer. | |
281 | * dwarf2-frame.c (no_get_frame_pc): New function. | |
282 | (execute_stack_op): Set new field on context. | |
283 | * cp-valprint.c (cp_print_value_fields): Handle synthetic | |
284 | pointers. | |
285 | ||
94b6973e PM |
286 | 2010-11-29 Phil Muldoon <pmuldoon@redhat.com> |
287 | ||
288 | PR python/12199 | |
289 | ||
290 | * python/py-breakpoint.c (bppy_delete_breakpoint): New function. | |
291 | ||
8358c15c JK |
292 | 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
293 | ||
294 | Fix step_resume_breakpoint unsaved during an infcall. | |
295 | * gdbthread.h (struct thread_control_state): Move here field | |
296 | step_resume_breakpoint ... | |
297 | (struct thread_info): ... from here. | |
298 | * infrun.c (save_infcall_control_state): Reset | |
299 | control.step_resume_breakpoint to NULL. | |
300 | (restore_infcall_control_state, discard_infcall_control_state): Delete | |
301 | control.step_resume_breakpoint. | |
302 | * arm-linux-tdep.c, infrun.c, thread.c: Update all the references to | |
303 | the moved field. | |
304 | ||
16c381f0 JK |
305 | 2010-11-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
306 | ||
307 | Rename and move inferior_thread_state and inferior_status. | |
308 | * gdbthread.h (struct thread_control_state): New struct, move fields | |
309 | step_range_start, step_range_end, step_frame_id, step_stack_frame_id, | |
310 | trap_expected, proceed_to_finish, in_infcall, step_over_calls, | |
311 | stop_step and stop_bpstat here from struct thread_info. | |
312 | (struct thread_suspend_state): New struct, move field stop_signal here | |
313 | from struct thread_info. | |
314 | (struct thread_info): Move the fields above from this struct. | |
315 | * inferior.h: Move the inferior_thread_state and inferior_status | |
316 | declarations comment to their definitions at infrun.c. | |
317 | (struct inferior_control_state): New struct, move field stop_soon from | |
318 | struct inferior here. | |
319 | (struct inferior_suspend_state): New empty struct. | |
320 | (struct inferior): New fields control and suspend. Move out field | |
321 | stop_soon. | |
322 | * infrun.c (struct inferior_thread_state): Rename to ... | |
323 | (infcall_suspend_state): ... here. Replace field stop_signal by | |
324 | fields thread_suspend and inferior_suspend. | |
325 | (save_inferior_thread_state): Rename to ... | |
326 | (save_infcall_suspend_state): ... here. New variable inf. Update the | |
327 | code for new fields. | |
328 | (restore_inferior_thread_state): Rename to ... | |
329 | (restore_infcall_suspend_state): ... here. New variable inf. Update | |
330 | the code for new fields. | |
331 | (do_restore_inferior_thread_state_cleanup): Rename to ... | |
332 | (do_restore_infcall_suspend_state_cleanup): ... here. | |
333 | (make_cleanup_restore_inferior_thread_state): Rename to ... | |
334 | (make_cleanup_restore_infcall_suspend_state): ... here. | |
335 | (discard_inferior_thread_state): Rename to ... | |
336 | (discard_infcall_suspend_state): ... here. | |
337 | (get_inferior_thread_state_regcache): Rename to ... | |
338 | (get_infcall_suspend_state_regcache): ... here. | |
339 | (struct inferior_status): Rename to ... | |
340 | (struct infcall_control_state): ... here. Replace fields | |
341 | step_range_start, step_range_end, step_frame_id, step_stack_frame_id, | |
342 | trap_expected, proceed_to_finish, in_infcall, step_over_calls, | |
343 | stop_step, stop_bpstat and stop_soon by fields thread_control and | |
344 | inferior_control. | |
345 | (save_inferior_status): Rename to ... | |
346 | (save_infcall_control_state): ... here. Update the code for new | |
347 | fields. | |
348 | (restore_inferior_status): Rename to ... | |
349 | (restore_infcall_control_state): ... here. Update the code for new | |
350 | fields. | |
351 | (do_restore_inferior_status_cleanup): Rename to ... | |
352 | (do_restore_infcall_control_state_cleanup): ... here. | |
353 | (make_cleanup_restore_inferior_status): Rename to ... | |
354 | (make_cleanup_restore_infcall_control_state): ... here. | |
355 | (discard_inferior_status): Rename to ... | |
356 | (discard_infcall_control_state): ... here. | |
357 | * alpha-tdep.c, breakpoint.c, dummy-frame.c, dummy-frame.h, | |
358 | exceptions.c, fbsd-nat.c, gdbthread.h, infcall.c, infcmd.c, | |
359 | inferior.c, inferior.h, infrun.c, linux-nat.c, mi/mi-interp.c, | |
360 | mips-tdep.c, procfs.c, solib-irix.c, solib-osf.c, solib-spu.c, | |
361 | solib-sunos.c, solib-svr4.c, thread.c, windows-nat.c: Update all the | |
362 | references to the moved fields and renamed functions. | |
363 | ||
35515841 JK |
364 | 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
365 | ||
366 | * infcall.c (struct inferior_thread_state) <siginfo_gdbarch>: Fix up | |
367 | the comment. | |
368 | (save_inferior_thread_state): Reset tp->stop_signal. | |
369 | ||
fef8420a JK |
370 | 2010-11-26 Jan Kratochvil <jan.kratochvil@redhat.com> |
371 | ||
7ea14533 JK |
372 | * infcall.c (call_function_by_hand): Remove variable |
373 | caller_state_cleanup. | |
fef8420a | 374 | |
f5a8e22b MK |
375 | 2010-11-25 Marc Khouzam <marc.khouzam@ericsson.com> |
376 | ||
377 | PR breakpoints/12217 | |
378 | ||
379 | * breakpoint.c (is_marker_spec): Check for NULL. | |
380 | ||
50389644 PA |
381 | 2010-11-25 Pedro Alves <pedro@codesourcery.com> |
382 | ||
383 | * breakpoint.h: No longer include python.h or python-internal.h. | |
384 | (struct breakpoint_object): Forward declare. | |
385 | * defs.h (PyObject) [!HAVE_PYTHON]: Don't define. | |
386 | * varobj.c (PyObject) [!HAVE_PYTHON]: Define. | |
387 | * python/py-breakpoint.c (build_bp_list): Cast py_bp_object to | |
388 | PyObject pointer. | |
389 | (gdbpy_breakpoint_created): Remove casts around py_bp_object | |
390 | accesses. | |
391 | ||
50a99728 JB |
392 | 2010-11-24 Joel Brobecker <brobecker@adacore.com> |
393 | ||
394 | * rs6000-tdep.c (bfd_uses_spe_extensions): Use bfd_elf_get_obj_attr_int | |
395 | only if HAVE_ELF is defined. | |
396 | ||
d82142e2 JK |
397 | 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
398 | ||
a418ecb5 JK |
399 | Code cleanup. |
400 | * infrun.c (struct inferior_status) <stepping_over_breakpoint> | |
401 | (save_inferior_status) <stepping_over_breakpoint> | |
402 | (restore_inferior_status) <stepping_over_breakpoint>: Rename to | |
403 | trap_expected. | |
404 | (struct inferior_status) <step_resume_break_address>: Remove. | |
405 | ||
406 | 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com> | |
407 | ||
408 | Code cleanup. | |
d82142e2 JK |
409 | * infrun.c (struct inferior_status, save_inferior_status) |
410 | (restore_inferior_status): Group and reorder the fields, comment their | |
411 | groups. | |
412 | ||
2edb89d3 JK |
413 | 2010-11-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
414 | ||
415 | Code cleanup. | |
416 | * dictionary.c | |
417 | (struct dict_vector) <iter_match_first, iter_match_next> | |
418 | (iter_match_first_hashed, iter_match_next_hashed) | |
419 | (iter_match_first_linear, iter_match_next_linear) | |
420 | (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed) | |
421 | (iter_match_next_hashed, iter_match_first_linear) | |
422 | (iter_match_next_linear): Use symbol_compare_ftype. | |
423 | * dictionary.h: Include symfile.h. | |
424 | (dict_iter_match_first, dict_iter_match_next): Use | |
425 | symbol_compare_ftype. | |
426 | * dwarf2read.c (dw2_map_matching_symbols): Likewise. | |
427 | * psymtab.c (match_partial_symbol, match_partial_symbol, map_block) | |
428 | (map_matching_symbols_psymtab): Likewise. | |
429 | * symfile.h (symbol_compare_ftype): New typedef. | |
430 | (struct quick_symbol_functions) <map_matching_symbols): Use | |
431 | symbol_compare_ftype. | |
432 | ||
5ae98d25 TT |
433 | 2010-11-23 Tom Tromey <tromey@redhat.com> |
434 | ||
39037522 TT |
435 | * configure: Rebuild. |
436 | * configure.ac (READLINE_TEXI_INCFLAG): New subst. | |
437 | ||
438 | 2010-11-19 Tom Tromey <tromey@redhat.com> | |
439 | ||
5ae98d25 TT |
440 | * Makefile.in (SUBDIRS): Add doc. |
441 | * configure: Rebuild. | |
442 | * configure.ac: Don't configure in doc. Create doc/Makefile. | |
443 | ||
ea976c60 PM |
444 | 2010-11-23 Phil Muldoon <pmuldoon@redhat.com> |
445 | ||
446 | PR python/12212 | |
447 | ||
448 | * python/py-inferior.c (find_thread_object): Check if PIDGET | |
449 | returns 0. | |
450 | ||
451 | 010-11-22 Joel Brobecker <brobecker@adacore.com> | |
d94e4f4f JB |
452 | |
453 | * ada-lang.c (ada_template_to_fixed_record_type_1): Delete bit_incr. | |
454 | ||
96dbd2c1 JB |
455 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
456 | ||
457 | * ada-lang.c (ada_to_fixed_type): Expand function documentation. | |
458 | Return the original type if the main type portions match rather | |
459 | than when the type themselves match. | |
460 | ||
27f2a97b JB |
461 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
462 | ||
463 | * ada-lang.c (ada_template_to_fixed_record_type_1): | |
464 | For dynamic fields, check the field size against the maximum | |
465 | object size. | |
466 | ||
1324a0d9 JB |
467 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
468 | ||
469 | * mips-irix-tdep.c (mips_irix_n32_stack_tramp_frame_init): New | |
470 | function. | |
471 | (mips_irix_n32_stack_tramp_frame): New static global. | |
472 | (mips_irix_init_abi): Add mips_irix_n32_stack_tramp_frame to | |
473 | list of unwinder. | |
474 | ||
09e7f15b JB |
475 | 2010-11-22 Jerome Guitton <guitton@adacore.com> |
476 | ||
477 | * ada-tasks.c (get_tcb_types_info): Use C lookups to get | |
478 | ATCB symbols. | |
479 | ||
3a867c22 JB |
480 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
481 | ||
482 | * ada-lang.c (ada_check_typedef): Call ada_check_typedef only | |
483 | if type1 is a typedef. | |
484 | ||
df30368d JB |
485 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
486 | ||
487 | * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Add | |
488 | "_finalizer" to the list. | |
489 | ||
4889bbbc JB |
490 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
491 | ||
492 | * symfile.c: Remove all "#if 0"/"#endif" blocks. | |
493 | ||
0d14a781 JB |
494 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
495 | ||
496 | * symfile.c: Add missing second space after period in various comments. | |
497 | ||
feb864b7 JB |
498 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
499 | ||
500 | * ada-typeprint.c (print_array_type): Fix formatting in comment. | |
501 | (print_selected_record_field_types): Fix formatting in function | |
502 | documentation. | |
503 | ||
04f9d4d0 JB |
504 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
505 | ||
506 | * ravenscar-thread.c (_initialize_ravenscar): Fix copy/paste typo | |
507 | in name of "show ravenscar" prefix command name. | |
508 | ||
b64edec4 JB |
509 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
510 | ||
511 | * ravenscar-thread.c (show_ravenscar_task_switching_command): | |
512 | Add missing '\n' in output. | |
513 | ||
7f39f34a JB |
514 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
515 | ||
516 | * ravenscar-thread.c (running_thread_name): Change value. | |
517 | (read_thread_id): Remove advance declaration. | |
518 | (get_running_thread_msymbol): New function. | |
519 | (has_ravenscar_runtime): Use get_running_thread_msymbol to | |
520 | compute msym_running_thread. | |
521 | (get_running_thread_id): Renames read_thread_id. Slight modifications | |
522 | to not take any argument anymore, using get_running_thread_msymbol | |
523 | to determine which symbol to use instead. | |
524 | (ravenscar_running_thread): Use get_running_thread_id instead of | |
525 | read_thread_id. | |
526 | ||
f3890d59 JB |
527 | 2010-11-22 Joel Brobecker <brobecker@adacore.com> |
528 | ||
529 | * ravenscar-sparc-thread.c (supply_register_at_address): | |
530 | Fix passing of buf in call to regcache_raw_supply. | |
531 | ||
594e8718 JK |
532 | 2010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
533 | ||
534 | * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions. | |
535 | ||
7ba86c9e TT |
536 | 2010-11-22 Tom Tromey <tromey@redhat.com> |
537 | ||
538 | * Makefile.in (.PRECIOUS): Reference ada-lex.c. | |
539 | ||
1bfda48e KS |
540 | 2010-11-19 Keith Seitz <keiths@redhat.com> |
541 | ||
542 | * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR): | |
543 | Remove extraneous '/' after $(DESTDIR). | |
544 | (PYTHON_INSTALL_DIR): Likewise. | |
545 | ||
3f1eff0a JK |
546 | 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
547 | ||
548 | Fix stale memory references. | |
549 | * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop | |
550 | xfree, new comment. | |
551 | ||
954d8cae TT |
552 | 2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
553 | Tom Tromey <tromey@redhat.com> | |
554 | ||
555 | * Makefile.in (.y.c): Directly create $@ from YLWRAP. | |
556 | (.PHONY): Remove for .y outputs. | |
557 | ||
d53d4ac5 TT |
558 | 2010-11-19 Will Drewry <wad@google.com> |
559 | Tavis Ormandy <taviso@google.com> | |
560 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
561 | ||
562 | * dwarf2read.c (decode_locdesc): Enforce location description stack | |
563 | boundaries. | |
564 | ||
77bc0675 PM |
565 | 2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr> |
566 | ||
567 | * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP" | |
568 | instruction is found. | |
569 | ||
ba19bb4d TT |
570 | 2010-11-17 Tom Tromey <tromey@redhat.com> |
571 | ||
572 | * value.c (value_entirely_optimized_out): Check the | |
573 | 'check_any_valid' field. | |
574 | ||
19f220c3 JK |
575 | 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
576 | ||
577 | * ada-lang.c (modify_general_field): Remove. | |
578 | (make_array_descriptor): Replace all modify_general_field calls by | |
579 | modify_field. | |
580 | * value.c (modify_field): Update comment. New variable bytesize. | |
581 | Normalize BITPOS. Initialize BYTESIZE, use it. | |
582 | ||
87df528e JK |
583 | 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
584 | ||
585 | * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES | |
586 | elements after xfree. | |
587 | ||
97924a97 TT |
588 | 2010-11-16 Tom Tromey <tromey@redhat.com> |
589 | ||
590 | * gdb-add-index.sh: Really remove. | |
591 | ||
9816fde3 JK |
592 | 2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
593 | ||
594 | Code cleanup. | |
595 | * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ... | |
596 | (init_one_comp_unit): ... this one. | |
597 | (prepare_one_comp_unit): New prototype. | |
598 | (dw2_require_line_header, process_psymtab_comp_unit): Use | |
599 | init_one_comp_unit. | |
600 | (process_psymtab_comp_unit): Use prepare_one_comp_unit. | |
601 | (load_partial_comp_unit): Remove variable attr. Use | |
602 | init_one_comp_unit with xmalloc. Use prepare_one_comp_unit. | |
603 | (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use | |
604 | prepare_one_comp_unit. | |
605 | (read_signatured_type): Remove variable attr. Use init_one_comp_unit. | |
606 | Use prepare_one_comp_unit. | |
607 | (alloc_one_comp_unit): Rename to ... | |
608 | (init_one_comp_unit): ... here and remove there calloc, new parameter | |
609 | cu. | |
610 | (prepare_one_comp_unit): New function. | |
611 | ||
73c964d6 PM |
612 | 2010-11-14 Pierre Muller <muller@ics.u-strasbg.fr> |
613 | ||
614 | * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid | |
615 | possible used of uninitialized variable. | |
616 | ||
74af9197 NF |
617 | 2010-11-12 Nathan Froyd <froydnj@codesourcery.com> |
618 | ||
619 | * rs6000-tdep.c (bfd_uses_spe_extensions): New function. | |
620 | (rs6000_gdbarch_init): Call it. | |
621 | ||
e52d5016 NF |
622 | 2010-11-12 Nathan Froyd <froydnj@codesourcery.com> |
623 | ||
624 | * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500 | |
625 | instructions if debugging an E500 binary. | |
626 | ||
621c8364 TT |
627 | 2010-11-12 Tom Tromey <tromey@redhat.com> |
628 | ||
629 | * varobj.c (value_get_print_value): Rearrange. Pass stream to | |
630 | apply_varobj_pretty_printer. | |
631 | * c-lang.c: Include exceptions.h. | |
632 | (c_get_string): Throw MEMORY_ERROR when appropriate. | |
633 | * python/py-prettyprint.c (enum string_repr_result): New. | |
634 | (print_stack_unless_memory_error): New function. | |
635 | (print_string_repr): Change return type. Use | |
636 | print_stack_unless_memory_error. | |
637 | (print_children): Use print_stack_unless_memory_error. | |
638 | (apply_val_pretty_printer): Update. Don't print children if | |
639 | string representation threw an exception. | |
640 | (apply_varobj_pretty_printer): Add 'stream' argument. Use | |
641 | print_stack_unless_memory_error. | |
642 | * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New | |
643 | globals. | |
644 | (_initialize_python): Initialize them. | |
645 | * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use | |
646 | gdbpy_convert_exception. | |
647 | (GDB_PY_SET_HANDLE_EXCEPTION): Likewise. | |
648 | (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare. | |
649 | (gdbpy_convert_exception): Declare. | |
650 | (apply_varobj_pretty_printer): Update. | |
651 | * python/py-utils.c (gdbpy_convert_exception): New function. | |
652 | ||
f1b9e6e7 MK |
653 | 2010-11-12 Marc Khouzam <marc.khouzam@ericsson.com> |
654 | ||
655 | * mi/mi-main.c (mi_cmd_target_detach): Accept new | |
656 | thread-group id format. | |
657 | ||
74884f7b JK |
658 | 2010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
659 | ||
660 | * spu-tdep.c (spu_catch_start): Fix compilation error typo. | |
661 | ||
84f4c1fe PM |
662 | 2010-11-11 Phil Muldoon <pmuldoon@redhat.com> |
663 | ||
664 | * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is | |
665 | NULL. | |
666 | (BPPY_SET_REQUIRE_VALID): Ditto. | |
667 | (bpnum_is_valid): Delete function. | |
668 | (bppy_get_visibility): New function. | |
669 | (bppy_new): Parse for, and validate internal keyword. Pass | |
670 | internal keyword to breakpoint or watchpoint functions. | |
671 | (build_bp_list): New function. | |
672 | (gdbpy_breakpoints): Rewrite. Use build_bp_list and | |
673 | iterate_over_breakpoints. | |
674 | (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a | |
675 | look-aside vector. | |
676 | (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management | |
677 | to internal breakpoint chain. | |
678 | ||
679 | * breakpoint.c (set_breakpoint_number): New function. | |
680 | (breakpoint_1): Check if breakpoint number is more than zero. | |
681 | (set_raw_breakpoint_without_location): Set py_bp_object to NULL. | |
682 | (create_breakpoint_sal): Take a new parameter called internal. | |
683 | Call set_breakpoint_number with internal parameter. Do not | |
684 | mention internal breakpoints. All callers updated. | |
685 | (create_breakpoint): Ditto. | |
686 | (create_breakpoints_sal): Ditto. | |
687 | (watch_command_1): Ditto. | |
688 | (watch_command_wrapper): Take a new parameter called internal. | |
689 | All callers updated. | |
690 | (rwatch_command_wrapper): Ditto. | |
691 | (awatch_command_wrapper): Ditto. | |
692 | (save_breakpoints): Update breakpoint save condition check. | |
693 | (iterate_over_breakpoints): New function. | |
694 | * breakpoint.h: Add conditional python includes. Add py_bp_object | |
695 | and comment to struct breakpoint. Update all callers. | |
696 | * defs.h: Add PyObject definition for GDB builds without Python. | |
697 | ||
4dfea560 DE |
698 | 2010-11-10 Doug Evans <dje@google.com> |
699 | ||
f61a2da7 DE |
700 | * python/lib/gdb/command/pretty_printers.py |
701 | (do_enable_pretty_printer_1): Handle printer.subprinters is None. | |
702 | ||
4dfea560 DE |
703 | * value.c (set_value_enclosing_type): Renamed from |
704 | value_change_enclosing_type. All callers updated. | |
705 | * value.h (set_value_enclosing_type): Update. | |
706 | * valops.c (value_full_object): Always return a copy if we need to | |
707 | make changes to the input value. | |
708 | ||
a1442452 PA |
709 | 2010-11-09 Pedro Alves <pedro@codesourcery.com> |
710 | ||
711 | * breakpoint.c (watch_command_1): Get a pointer of the lazy | |
712 | version of the expression's value, even if reading the value from | |
713 | memory fails. When creating a -location watchpoint, get the | |
714 | value's address from the lazy value pointer. | |
715 | ||
803b5f95 JK |
716 | 2010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
717 | ||
718 | * infrun.c (restore_inferior_thread_state): Use | |
719 | discard_inferior_thread_state to free the data. | |
720 | (discard_inferior_thread_state): xfree also siginfo_data. | |
721 | ||
99e7ae30 DE |
722 | 2010-11-05 Doug Evans <dje@google.com> |
723 | ||
724 | Make gdb.parameter("directories") work. | |
725 | New command "set directories". | |
726 | * NEWS: Document them. | |
727 | * source.c (set_directories_command): New function. | |
728 | (show_directories_1): Renamed from show_directories. | |
729 | All callers updated. | |
730 | (show_directories_command): New function. | |
731 | (_initialize_source): Install "directories" as a set/show | |
732 | variable instead of just a show command. | |
733 | ||
f4b8a18d KW |
734 | 2010-11-05 Ken Werner <ken.werner@de.ibm.com> |
735 | ||
736 | * NEWS: Mention OpenCL C language support. | |
737 | * Makefile.in (SFILES): Add opencl-lang.c. | |
738 | (COMMON_OBS): Add opencl-lang.o. | |
739 | * opencl-lang.c: New File | |
740 | * defs.h (enum language): Add language_opencl. | |
741 | * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the | |
742 | IBM XL C OpenCL compiler. | |
743 | * c-lang.h: Include "parser-defs.h". | |
744 | (evaluate_subexp_c): Declare. | |
745 | * c-lang.c (evaluate_subexp_c): Remove the static qualifier. | |
746 | (c_op_print_tab): Add declaration. | |
747 | * eval.c (binop_promote): Handle language_opencl. | |
748 | * c-exp.y: Lookup the primitive types instead of referring to the | |
749 | builtins. | |
750 | ||
075ff26d JK |
751 | 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
752 | ||
753 | Fix configure --enable-plugins --without-python. | |
754 | * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New. | |
755 | * configure: Regenerate. | |
756 | ||
14ad3217 JK |
757 | 2010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
758 | ||
759 | * solib.c (solib_read_symbols): Call exception_fprintf even without | |
760 | FROM_TTY. Print also so->so_name. | |
761 | ||
a9d5ef47 SW |
762 | 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com> |
763 | ||
764 | * gdbtypes.h (struct rank): Created subrank. | |
765 | * gdbtypes.c: Initialized subrank for all | |
766 | 'BADNESS' constants. | |
767 | (distance_to_ancestor): New function. | |
768 | (is_ancestor): Use distance_to_ancestor. | |
769 | (is_public_ancestor): Ditto. | |
770 | (sum_ranks): Handle subrank. | |
771 | (compare_ranks): Ditto. | |
772 | (rank_one_type): Subrank base conversions. | |
773 | ||
6403aeea SW |
774 | 2010-11-04 Sami Wagiaalla <swagiaal@redhat.com> |
775 | ||
776 | * gdbtypes.h: Create struct rank. | |
777 | Convert all 'BADNESS' macros to const struct rank declarations. | |
778 | (sum_ranks): New function. | |
779 | (compare_ranks): New function. | |
780 | * valops.c (find_oload_champ): Updated. | |
781 | (classify_oload_match): Use compare_ranks. | |
782 | Improved comments. | |
783 | (compare_parameters): Use compare_ranks. | |
784 | * gdbtypes.c: Initialize 'BADNESS' constants. | |
785 | (sum_ranks): New function. | |
786 | (compare_ranks): New function. | |
787 | (compare_badness): Use compare_ranks. | |
788 | (rank_function): Use global constants instead of literals. | |
789 | (rank_one_type): Ditto. | |
790 | Return struct rank. | |
791 | Use sum_ranks. | |
792 | ||
23fa7f66 DE |
793 | 2010-11-04 Doug Evans <dje@google.com> |
794 | ||
795 | * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment. | |
796 | (find_pretty_printer): Fix comments. | |
797 | ||
608bcef2 HZ |
798 | 2010-11-04 Hui Zhu <teawater@gmail.com> |
799 | ||
800 | * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma. | |
801 | ||
9addb3b9 JB |
802 | 2010-11-03 Joel Brobecker <brobecker@adacore.com> |
803 | ||
804 | * ada-valprint.c (ada_val_print_array): Move variables `eltlen' | |
805 | and `len' declaration and computation inside block where they | |
806 | are being used. | |
807 | ||
75be741b JB |
808 | 2010-11-03 Joel Brobecker <brobecker@adacore.com> |
809 | ||
810 | * valprint.c (val_print_array_elements): Put back handling of | |
811 | empty arrays. | |
812 | ||
dbc98a8b KW |
813 | 2010-11-03 Ken Werner <ken.werner@de.ibm.com> |
814 | ||
815 | * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the | |
816 | DIE and set the length of the type. | |
817 | * gdbtypes.h (get_array_bounds): Move here from valprint.h. | |
818 | * gdbtypes.c (get_array_bounds): Move here from valprint.c and | |
819 | return 0 if the corresponding bounds of the type are undefined. | |
820 | * valprint.h (get_array_bounds): Move declaration to gdbtypes.h. | |
821 | * valprint.c (get_array_bounds): Move implementation to gdbtypes.c. | |
822 | (val_print_array_elements): Use get_array_bounds to compute the number | |
823 | of array elements instead of dividing the length of the array by the | |
824 | length of the element types. | |
825 | * valarith.c (vector_binop): Likewise. | |
826 | * valops.c (value_cast): Likewise. | |
827 | * c-valprint.c (c_val_print): Likewise. | |
828 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. | |
829 | ||
120bd360 KW |
830 | 2010-11-03 Ken Werner <ken.werner@de.ibm.com> |
831 | ||
832 | * valarith.c (value_pos, value_neg, value_complement): Handle | |
833 | vector types. | |
834 | * valops.c (value_one): Likewise. | |
835 | ||
c37f7098 KW |
836 | 2010-11-03 Ken Werner <ken.werner@de.ibm.com> |
837 | ||
838 | * value.h (value_non_lval): Declare. | |
839 | * value.c (value_non_lval): New function. | |
840 | * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT, | |
841 | UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a | |
842 | non-lvalue. | |
843 | ||
7b51bc51 DE |
844 | 2010-11-02 Doug Evans <dje@google.com> |
845 | ||
846 | New python module gdb.printing, and new commands info pretty-printer, | |
847 | enable pretty-printer, disable pretty-printer. | |
848 | * NEWS: Mention them. | |
849 | * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py, | |
850 | gdb/command/__init__.py, gdb/command/pretty_printers.py. | |
851 | * python/lib/gdb/__init__.py: Install pretty-printer commands. | |
852 | * python/lib/gdb/printing.py: New file. | |
853 | * python/lib/gdb/command/__init__.py: New file. | |
854 | * python/lib/gdb/command/pretty_printers.py: New file. | |
855 | ||
50c97f38 TT |
856 | 2010-11-02 Tom Tromey <tromey@redhat.com> |
857 | ||
858 | * NEWS: Mention Guile removal. | |
859 | * defs.h (enum language) <language_scm>: Remove. | |
860 | * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c, | |
861 | scm-valprint.c. | |
862 | (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h. | |
863 | (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o. | |
864 | * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h: | |
865 | Remove. | |
866 | ||
9dea9163 DE |
867 | 2010-11-02 Doug Evans <dje@google.com> |
868 | ||
869 | * top.c: #include "python/python.h". | |
870 | (gdb_init): Add a comment regarding initialize_all_files. | |
871 | Call finish_python_initialization at the end. | |
872 | * python/python.h (finish_python_initialization): Declare. | |
873 | * python/python.c (finish_python_initialization): New function. | |
874 | (_initialize_python): Move python-implemented initialization there | |
875 | and call it. | |
876 | (GdbMethods): Use #ifdef HAVE_PYTHON for consistency. | |
877 | ||
a289b8f6 JK |
878 | 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
879 | ||
880 | Revert: | |
881 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> | |
882 | Pedro Alves <pedro@codesourcery.com> | |
883 | * gdbthread.h (currently_stepping): New declaration. | |
884 | * infrun.c (currently_stepping): Remove the forward declaration. | |
885 | (currently_stepping): Make it global. | |
886 | * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New | |
887 | variables tp and step, initialized them. Pass STEP to to_resume. | |
888 | Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP. | |
889 | * remote.c (currently_stepping_callback): New. | |
890 | (remote_vcont_resume) | |
891 | <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>: | |
892 | New variable tp. Call currently_stepping_callback and step such | |
893 | thread. | |
894 | ||
2209c807 HZ |
895 | 2010-11-01 Hui Zhu <teawater@gmail.com> |
896 | ||
897 | * tracepoint.c (tfile_xfer_partial): Change lma to vma. | |
898 | ||
0a2a54b8 HZ |
899 | 2010-10-28 Hui Zhu <teawater@gmail.com> |
900 | ||
901 | * tracepoint.c (trace_save): Change utp->actions to | |
902 | utp->step_actions. | |
903 | ||
284a3db3 JB |
904 | 2010-10-26 Joel Brobecker <brobecker@adacore.com> |
905 | ||
906 | * (_FILE_OFFSET_BITS): Fix typo in comment. | |
907 | ||
aed1781d JB |
908 | 2010-10-26 Joel Brobecker <brobecker@adacore.com> |
909 | ||
910 | * python/python-internal.h (_FILE_OFFSET_BITS): Undefine. | |
911 | (PyEval_InitThreads): Remove duplicate. Define as nothing. | |
912 | (PyEval_ReleaseLock): Define as nothing. | |
913 | ||
1e3fad37 JB |
914 | 2010-10-26 Joel Brobecker <brobecker@adacore.com> |
915 | ||
916 | * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp | |
917 | by call to FILENAME_CMP. | |
918 | ||
558b1900 JB |
919 | 2010-10-26 Joel Brobecker <brobecker@adacore.com> |
920 | ||
921 | * dictionary.c (dict_hash): Move assignment out of if condition. | |
922 | ||
f474844c JZ |
923 | 2010-10-22 Jie Zhang <jie@codesourcery.com> |
924 | ||
925 | * Makefile.in (install): Remove dependency of install-only and | |
926 | recursively invoke make for install-only. | |
927 | * data-directory/Makefile.in: Add FLAGS_TO_PASS variable. | |
928 | (install): Pass FLAGS_TO_PASS when recursively make install-only. | |
929 | ||
8991e9fa HZ |
930 | 2010-10-20 Hui Zhu <teawater@gmail.com> |
931 | ||
932 | * tracepoint.c (tfile_get_traceframe_address): Call | |
933 | extract_signed_integer. | |
934 | (tfile_trace_find): Call extract_signed_integer and | |
935 | extract_unsigned_integer. Change data_size to unsigned int. | |
936 | (tfile_fetch_registers): Call extract_unsigned_integer. | |
937 | (tfile_xfer_partial): Ditto. | |
938 | (tfile_get_trace_state_variable_value): Call | |
939 | extract_signed_integer and extract_unsigned_integer. | |
940 | ||
21bce120 VP |
941 | 2010-10-20 Vladimir Prus <vladimir@codesourcery.com> |
942 | ||
943 | * remote.c (remote_get_threadlist): If we got empty | |
944 | response, bail out immediately, and don't emit any | |
945 | warnings. | |
946 | ||
ad8b5167 UW |
947 | 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com> |
948 | ||
949 | * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding | |
950 | for "mov pc, REG" as well. | |
951 | (thumb_instruction_changes_pc): Likewise. | |
952 | ||
79afc5ef SW |
953 | 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> |
954 | ||
955 | PR C++/11500: | |
956 | * valarith.c (value_x_unop): Handle STRUCTOP_PTR. | |
957 | * eval.c (evaluate_subexp_standard): Check for overload of | |
958 | 'operator->'. | |
959 | * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR. | |
960 | (value_x_unop): Ditto. | |
961 | * valops.c: Include "exceptions.h". | |
962 | (find_overload_match): Throw NOT_FOUND_ERROR. | |
963 | (value_struct_elt): Ditto. | |
964 | ||
cca56ac7 TT |
965 | 2010-10-19 Tom Tromey <tromey@redhat.com> |
966 | ||
967 | * python/py-cmd.c (cmdpy_function): Unreference exception state. | |
968 | ||
026ffab7 SW |
969 | 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com> |
970 | ||
971 | * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS. | |
972 | * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS | |
973 | for conversion. | |
974 | Make all other conversions illegal. | |
975 | ||
8c540a24 DE |
976 | 2010-10-18 Doug Evans <dje@google.com> |
977 | ||
978 | * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify | |
979 | assumptions of when this case happens. Print "<unnamed typedef>". | |
980 | ||
3a772aa4 TT |
981 | 2010-10-18 Tom Tromey <tromey@redhat.com> |
982 | ||
983 | * valprint.c (val_print_string): Pass 'encoding' to | |
984 | LA_PRINT_STRING. | |
985 | ||
01f8c46d JK |
986 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
987 | ||
988 | Fix the `stopped language detection' testcase for gcc-4.5. | |
989 | * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN. | |
990 | * symfile.c (set_initial_language): Move variable filename to a more | |
991 | inner block. Prefer LANGUAGE_OF_MAIN. | |
992 | * symtab.c (language_of_main): New variable. | |
993 | (set_main_name): Always reset LANGUAGE_OF_MAIN. | |
994 | * symtab.h (language_of_main): New declaration. | |
995 | ||
8aeb23f3 JK |
996 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
997 | Pedro Alves <pedro@codesourcery.com> | |
998 | ||
999 | * gdbthread.h (currently_stepping): New declaration. | |
1000 | * infrun.c (currently_stepping): Remove the forward declaration. | |
1001 | (currently_stepping): Make it global. | |
1002 | * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New | |
1003 | variables tp and step, initialized them. Pass STEP to to_resume. | |
1004 | Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP. | |
1005 | * remote.c (currently_stepping_callback): New. | |
1006 | (remote_vcont_resume) | |
1007 | <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>: | |
1008 | New variable tp. Call currently_stepping_callback and step such | |
1009 | thread. | |
1010 | ||
c1e56572 JK |
1011 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1012 | ||
1013 | * infrun.c (follow_exec): Replace symbol_file_add_main by | |
1014 | symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and | |
1015 | breakpoint_re_set. | |
1016 | * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for | |
1017 | clear_symtab_users. | |
1018 | * objfiles.c (free_all_objfiles): Likewise. | |
1019 | * remote-m32r-sdi.c (m32r_load): Likewise. | |
1020 | * solib-som.c (som_solib_create_inferior_hook): Likewise. | |
1021 | * symfile.c (new_symfile_objfile): New comment for add_flags. Call | |
1022 | clear_symtab_users with ADD_FLAGS. | |
1023 | (reread_symbols): Use parameter 0 for clear_symtab_users. | |
1024 | (clear_symtab_users): New parameter add_flags. Do not call | |
1025 | breakpoint_re_set if SYMFILE_DEFER_BP_RESET. | |
1026 | (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users. | |
1027 | * symtab.h (clear_symtab_users): New parameter add_flags. | |
1028 | ||
3a182a69 JK |
1029 | 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1030 | ||
1031 | Fix GCC false warning. | |
1032 | * varobj.c (value_get_print_value) <str_addr>: Initialize it. | |
1033 | ||
3a9d7214 PM |
1034 | 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr> |
1035 | ||
1036 | * p-typeprint.c (pascal_type_print_method_args): Fix problem in | |
1037 | display of type of method arguments. | |
1038 | ||
09ca9e2e TT |
1039 | 2010-10-15 Tom Tromey <tromey@redhat.com> |
1040 | ||
1041 | PR python/11948: | |
1042 | * varobj.c (value_get_print_value): Use val_print_string to print | |
1043 | lazy strings. | |
1044 | * python/py-prettyprint.c (print_string_repr): Use | |
1045 | val_print_string to print lazy strings. Fix cleanup logic. | |
1046 | (print_children): Likewise. | |
1047 | * python/python-internal.h (gdbpy_extract_lazy_string): Update. | |
1048 | * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite. | |
1049 | Change return type to 'void', add 'addr' argument. | |
1050 | * value.h (val_print_string): Update. | |
1051 | * valprint.c (val_print_string): Add 'encoding' argument. | |
1052 | * printcmd.c (print_formatted): Update. | |
1053 | * p-valprint.c (pascal_val_print): Update. | |
1054 | * m2-valprint.c (print_unpacked_pointer): Update. | |
1055 | (m2_print_array_contents): Likewise. | |
1056 | * jv-valprint.c (java_value_print): Update. | |
1057 | * f-valprint.c (f_val_print): Update. | |
1058 | * c-valprint.c (c_val_print): Update. | |
1059 | * auxv.c (fprint_target_auxv): Update. | |
1060 | ||
92163a10 JK |
1061 | 2010-10-15 Doug Evans <dje@google.com> |
1062 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1063 | ||
1064 | PR exp/12117 | |
1065 | * gdbtypes.c (check_typedef): Clean up function comment. | |
1066 | Keep track of instance flags as we strip typedefs and create a new | |
1067 | type to preserve them if necessary. | |
1068 | * gdbtypes.h (type) <instance_flags>: Extend the comment. | |
1069 | ||
dae71413 PM |
1070 | 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr> |
1071 | ||
1072 | * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor. | |
1073 | ||
7062b0a0 SW |
1074 | 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com> |
1075 | ||
1076 | * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS. | |
1077 | * gdbtypes.c (rank_one_type): Move type comparison code out of here | |
1078 | to... | |
1079 | (types_equal): ...here. And changed it as follows: | |
1080 | Outside of typedefs type must be of the same TYPE_CODE. | |
1081 | When compairing two pointers or references they are equal if their | |
1082 | targets are equal. | |
1083 | Correct pointer conversions. | |
1084 | ||
5c3da5ea PM |
1085 | 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr> |
1086 | ||
1087 | * p-lang.c (is_pascal_string_type): Avoid crashes on structures | |
1088 | having fields without names. | |
1089 | ||
577ce03a TT |
1090 | 2010-10-13 Tom Tromey <tromey@redhat.com> |
1091 | ||
1092 | * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name. | |
1093 | ||
a737a51b DE |
1094 | 2010-10-13 Doug Evans <dje@google.com> |
1095 | ||
0e3509db DE |
1096 | New python module gdb.types. |
1097 | * NEWS: Document it. | |
1098 | * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py. | |
1099 | * python/lib/gdb/types.py: New file. | |
1100 | ||
a737a51b DE |
1101 | * c-typeprint.c: Whitespace cleanup. |
1102 | (cp_type_print_method_args): Remove unnecessary forward decl. | |
1103 | (cp_type_print_derivation_info): Ditto. | |
1104 | (c_type_print_varspec_prefix): Mark as static at definition. | |
1105 | (c_type_print_modifier): Fix arg descriptions. | |
1106 | ||
8dc78533 JK |
1107 | 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
1108 | ||
1109 | * python/py-breakpoint.c (bppy_set_condition): New comment. | |
1110 | * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for | |
1111 | failed PyUnicode_Decode. | |
1112 | (cmdpy_completer): Skip element for failed | |
1113 | python_string_to_host_string. | |
1114 | (cmdpy_init): Return -1 on failed python_string_to_host_string. | |
1115 | * python/py-frame.c (frapy_read_var): Extend the function comment. | |
1116 | * python/py-function.c (fnpy_init): Return -1 on failed | |
1117 | python_string_to_host_string. | |
1118 | * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend | |
1119 | the function comment. | |
1120 | (infpy_search_memory): Extend the function comment. Remove the | |
1121 | PyErr_SetString call on already set error state. | |
1122 | * python/py-param.c (set_parameter_value): Extend the function | |
1123 | comment. Return -1 on failed python_string_to_host_string, twice. | |
1124 | (set_attr): Extend the function comment. | |
1125 | (compute_enum_values): Extend the function comment. New variable | |
1126 | back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on | |
1127 | failed python_string_to_host_string. | |
1128 | (get_doc_string): Call gdbpy_print_stack on failed | |
1129 | python_string_to_host_string. | |
1130 | (parmpy_init): Extend the function comment. | |
1131 | * python/py-prettyprint.c (pretty_print_one_value): Likewise. | |
1132 | (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on | |
1133 | failed python_string_to_host_string. | |
1134 | * python/py-value.c (valpy_new, valpy_getitem, valpy_call) | |
1135 | (valpy_binop, valpy_richcompare): Extend the function comment. | |
1136 | * python/python.c | |
1137 | (struct python_env) <error_type, error_value, error_traceback>: New | |
1138 | fields. | |
1139 | (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore. | |
1140 | (ensure_python_env): Call PyErr_Fetch. | |
1141 | * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on | |
1142 | failed convert_value_from_python. | |
1143 | (value_get_print_value): Call gdbpy_print_stack on failed | |
1144 | python_string_to_target_python_string. | |
1145 | ||
1bdb0c54 TT |
1146 | 2010-10-12 Tom Tromey <tromey@redhat.com> |
1147 | ||
1148 | * python/py-prettyprint.c (search_pp_list): Fix error checking. | |
1149 | ||
0526b37a SW |
1150 | 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com> |
1151 | ||
1152 | * gdbtypes.c (do_is_ancestor): New function. | |
1153 | (is_ancestor): Use do_is_ancestor. | |
1154 | (is_public_ancestor): Use do_is_ancestor. | |
1155 | ||
c1b5be38 PM |
1156 | 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr> |
1157 | ||
1158 | * ser-go32.c (struct dos_ops): Add missing fdopen field. | |
1159 | ||
68770265 MGD |
1160 | 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
1161 | ||
1162 | * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array. | |
1163 | ||
64b00020 DE |
1164 | 2010-10-11 Doug Evans <dje@google.com> |
1165 | ||
1166 | * c-typeprint.c (c_type_print_modifier): Add note that this prints | |
1167 | the address space id too. | |
1168 | ||
43b8e241 JK |
1169 | 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1170 | ||
1171 | Fix attaching to re-prelinked executables on ppc64. | |
1172 | * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect, | |
1173 | initialize it, try to adjust FILESZ field by it. | |
1174 | ||
417b5110 DJ |
1175 | 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com> |
1176 | ||
1177 | * tracepoint.c (merge_uploaded_trace_state_variables): Only print | |
1178 | messages if info_verbose. | |
1179 | ||
3bdf2bbd KW |
1180 | 2010-10-08 Ken Werner <ken.werner@de.ibm.com> |
1181 | ||
1182 | * valops.c (value_cast): Handle vector types. | |
1183 | * valarith.c (value_binop): Widen scalar to vector if appropriate. | |
1184 | ||
ec3d575a UW |
1185 | 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com> |
1186 | ||
1187 | * arm-tdep.c (thumb_expand_immediate): New function. | |
1188 | (thumb_instruction_changes_pc): Likewise. | |
1189 | (thumb2_instruction_changes_pc): Likewise. | |
1190 | (thumb_analyze_prologue): Handle 32-bit Thumb instructions during | |
1191 | prologue parsing. Improved support for optimized code. | |
1192 | (thumb_scan_prologue): Do not reply on line-number information, | |
1193 | use same heuristics as arm_scan_prologue insead. | |
1194 | (skip_prologue_function): Accept functions | |
1195 | "__tls_get_addr" and "__aeabi_read_tp". | |
1196 | ||
4024ca99 UW |
1197 | 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com> |
1198 | Daniel Jacobowitz <dan@codesourcery.com> | |
1199 | ||
1200 | * arm-tdep.c (thumb_in_function_epilogue_p) | |
1201 | (arm_in_function_epilogue_p): New. | |
1202 | (arm_gdbarch_init): Install arm_in_function_epilogue_p as | |
1203 | gdbarch_in_function_epilogue_p callback. | |
1204 | ||
855c153f DE |
1205 | 2010-10-07 Doug Evans <dje@google.com> |
1206 | ||
00e14314 DE |
1207 | * cc-with-index.sh (output_file): Default to a.out. |
1208 | ||
3876f04e DE |
1209 | * dwarf2read.c (mapped_index): Rename member index_table to |
1210 | symbol_table and index_table_slots to symbol_table_slots. | |
1211 | All uses updated. | |
1212 | (create_symbol_hash_table): Renamed from create_index_table. | |
1213 | All callers updated. | |
1214 | (add_indices_to_cpool): Rename arg index_table to symbol_hash_table. | |
1215 | (write_hash_table): Rename local index_table to symbol_hash_table. | |
1216 | ||
855c153f DE |
1217 | * addrmap.h (addrmap_foreach_fn): New typedef. |
1218 | (addrmap_foreach): Declare. | |
1219 | * addrmap.c (struct addrmap_funcs): New member foreach. | |
1220 | (addrmap_foreach): New function. | |
1221 | (addrmap_fixed_foreach): New function. | |
1222 | (addrmap_fixed_funcs): Update. | |
1223 | (struct mutable_foreach_data): New struct. | |
1224 | (addrmap_mutable_foreach_worker): New function. | |
1225 | (addrmap_mutable_foreach): New function. | |
1226 | (addrmap_mutable_funcs): Update. | |
1227 | ||
1d2a4540 PH |
1228 | 2010-10-07 Paul Hilfinger <hilfinger@adacore.com> |
1229 | ||
1230 | * dictionary.c (dict_hash): Revert to msymbol_hash_iw in | |
1231 | more cases. | |
1232 | ||
40658b94 PH |
1233 | 2010-10-07 Paul Hilfinger <hilfinger@adacore.com> |
1234 | ||
1235 | * ada-lang.c (full_match): Declare. | |
1236 | (ada_match_name): Rename to match_name (we should avoid prefixing static | |
1237 | symbols with "ada_"). | |
1238 | (match_name): New name for ada_match_name. | |
1239 | (struct ada_psym_data): Remove and replace with... | |
1240 | (struct match_data): User data for map_matching_symbols. | |
1241 | (ada_add_psyms): Remove. | |
1242 | (aux_add_nonlocal_symbols): New function, used as callback for | |
1243 | map_matching_symbols. | |
1244 | (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded | |
1245 | symbols. | |
1246 | (ada_add_non_local_symbols): Rename to add_nonlocal_symbols. | |
1247 | (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols. | |
1248 | Rework to use map_matching_symbols instead of map_ada_symtabs. | |
1249 | (ada_lookup_symbol_list): Use add_nonlocal_symbols. | |
1250 | * psymtab.c: Include dependency on dictionary.h. | |
1251 | (match_partial_symbol): New function. | |
1252 | (ada_lookup_partial_symbol): Remove. | |
1253 | (map_block): New function, auxiliary to map_matching_symbols_psymtab. | |
1254 | (map_matching_symbols_psymtab): New function. | |
1255 | (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab. | |
1256 | * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols. | |
1257 | ||
c4d840bd PH |
1258 | 2010-10-06 Paul Hilfinger <hilfinger@adacore.com> |
1259 | ||
1260 | * ada-lang.c (ada_match_name): Use new API for wild_match. | |
40658b94 PH |
1261 | (wild_match): Change API to be consistent with that of strcmp_iw; |
1262 | return 0 for a match, and switch operand order. | |
1263 | (full_match): New function. | |
1264 | (ada_add_block_symbols): Use dict_iter_match_{first,next} for | |
1265 | matching to allow use of hashing. | |
1266 | * dictionary.c (struct dict_vector): Generalize iter_name_first, | |
1267 | iter_name_next ot iter_match_first, iter_match_next. | |
1268 | (iter_name_first_hashed): Replace with iter_match_first_hashed. | |
1269 | (iter_name_next_hashed): Replace with iter_match_next_hashed. | |
1270 | (iter_name_first_linear): Replace with iter_match_first_linear. | |
1271 | (iter_name_next_linear): Replace with iter_match_next_linear. | |
1272 | (dict_iter_name_first): Re-implement to use dict_iter_match_first. | |
1273 | (dict_iter_name_next): Re-implement to use dict_iter_match_next. | |
1274 | (dict_iter_match_first): New function. | |
1275 | (dict_iter_match_next): New function. | |
1276 | (dict_hash): New function. | |
1277 | * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare. | |
1278 | * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API. | |
c4d840bd | 1279 | |
543ecec7 DE |
1280 | 2010-10-06 Doug Evans <dje@google.com> |
1281 | ||
1282 | * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@. | |
1283 | ||
2f608a3a KW |
1284 | 2010-10-06 Ken Werner <ken.werner@de.ibm.com> |
1285 | ||
1286 | * dwarf2read.c (read_tag_const_type): Handle const arrays. | |
1287 | ||
aa2e2d8d DE |
1288 | 2010-10-06 Doug Evans <dje@google.com> |
1289 | ||
9c9606fb DE |
1290 | * Makefile.in (REQUIRED_SUBDIRS): New var. |
1291 | (subdir_do): Verify required subdir Makefiles exist. | |
1292 | ||
aa2e2d8d DE |
1293 | Create subdir data-directory. |
1294 | * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to | |
1295 | data-directory/Makefile.in. | |
1296 | (SUBDIRS): Add data-directory. | |
1297 | (all): Remove xml-syscall-copy dependency. | |
1298 | (xml-syscall-copy): Moved to data-directory/Makefile.in as | |
1299 | stamp-syscalls. | |
1300 | (xml-syscall-install): Moved to data-directory/Makefile.in as | |
1301 | install-syscalls. | |
1302 | (install-only): Remove xml-syscall-install dependency. | |
1303 | (all-data-directory): New rule. | |
1304 | (data-directory/Makefile): New rule. | |
1305 | * configure.ac (AC_OUTPUT): Add data-directory/Makefile. | |
1306 | * configure: Regenerate. | |
1307 | * data-directory/Makefile.in: New file. | |
1308 | * python/lib/gdb/__init__.py: New file. | |
1309 | ||
aa27d0b3 JB |
1310 | 2010-10-06 Joel Brobecker <brobecker@adacore.com> |
1311 | ||
1312 | Fix ARI warnings in advance_wild_match. | |
1313 | * ada-lang.c (advance_wild_match): Delete local variable t2. | |
1314 | Adjust code accordingly. Minor reformatting. | |
1315 | ||
2844d6b5 KW |
1316 | 2010-10-06 Ken Werner <ken.werner@de.ibm.com> |
1317 | ||
1318 | * gdbtypes.h (struct main_type): Remove flag_nottext. | |
1319 | (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT. | |
1320 | (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT. | |
1321 | (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext. | |
1322 | * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead | |
1323 | of TYPE_FLAG_NOTTEXT. | |
1324 | (init_type): Remove the initialization of the flag_nottext field. | |
1325 | (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of | |
1326 | TYPE_FLAG_NOTTEXT. | |
1327 | * c-valprint.c (c_val_print): Remove TYPE_VECTOR check. | |
1328 | ||
2fdf6df6 DE |
1329 | 2010-10-04 Doug Evans <dje@google.com> |
1330 | ||
ea65fe05 DE |
1331 | * cc-with-index.sh: New file. |
1332 | ||
2fdf6df6 DE |
1333 | * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after |
1334 | function comment. | |
1335 | (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto. | |
1336 | (create_cus_from_index, create_addrmap_from_index): Ditto. | |
1337 | (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto. | |
1338 | (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto. | |
1339 | (dw2_do_expand_symtabs_matching): Ditto. | |
b89be57b DE |
1340 | (eq_strtab_entry, create_strtab, add_string): Ditto. |
1341 | (hash_strtab_entry): Ditto. | |
1342 | (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto. | |
1343 | (create_index_table, create_mapped_symtab, find_slot): Ditto. | |
1344 | (hash_expand, add_index_entry, add_indices_to_cpool): Ditto. | |
1345 | (write_hash_table, add_address_entry, write_psymbols): Ditto. | |
1346 | (write_obstack, unlink_if_set, write_one_signatured_type): Ditto. | |
1347 | (write_psymtabs_to_index): Ditto. | |
2fdf6df6 | 1348 | |
40bc484c JB |
1349 | 2010-10-04 Joel Brobecker <brobecker@adacore.com> |
1350 | ||
1351 | * ada-lang.c: #include "value.h". | |
1352 | (ensure_lval): Delete advance declaration. Remove gdbarch and sp | |
1353 | arguments. Implement using value_allocate_space_in_inferior | |
1354 | instead of allocating memory from the stack. | |
1355 | (make_array_descriptor): Remove gdbarch and sp parameters. Update | |
1356 | calls to ensure_lval. | |
1357 | (ada_convert_actual): Remove gdbarch and sp parameters. Update | |
1358 | calls to make_array_descriptor and ensure_lval. | |
1359 | * ada-lang.h (ada_convert_actual): Update declaration. | |
1360 | * infcall.c (value_arg_coerce): Update call to ada_convert_actual. | |
1361 | ||
f17618ea DE |
1362 | 2010-10-04 Doug Evans <dje@google.com> |
1363 | ||
1364 | * python/python.c (_initialize_python): Define new function | |
1365 | GdbSetPythonDirectory in python. Use it to update sys.path and | |
1366 | gdb.__path__. | |
1367 | ||
83e3a93c PH |
1368 | 2010-10-03 Paul Hilfinger <hilfinger@adacore.com> |
1369 | ||
1370 | * gdb/ada-typeprint.c (print_selected_record_field_types): New function, | |
1371 | incorporating and generalizing print_record_field_types. | |
1372 | (print_record_field_types): Change return value and update comment. | |
1373 | Re-implement using print_selected_record_field_types. | |
1374 | (print_choices): Print "=>" here. | |
1375 | Handle case of unencoded variant branch. | |
1376 | (print_variant_clauses): Reformat comment. | |
1377 | Special-case unencoded variant branch. | |
1378 | ||
1379 | 2010-10-03 Paul Hilfinger <hilfinger@adacore.com> | |
73589123 PH |
1380 | |
1381 | * ada-lang.c (wild_match): Reimplement. | |
1382 | Change API to eliminate unused length argument, reverse arguments and | |
1383 | make 0 the 'true' return value. | |
1384 | (advance_wild_match): New auxiliary function for wild_match to improve | |
1385 | readability. | |
1386 | (ada_match_name, ada_add_block_symbols): Use new API for wild_match. | |
1387 | * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new | |
1388 | API for wild_match. | |
1389 | * symfile.h (map_ada_symtabs): Modify declaration to use new API for | |
1390 | wild_match. | |
1391 | * dwarf2read.c (dw2_map_ada_symtabs): Ditto. | |
1392 | ||
11570e71 DE |
1393 | 2010-10-01 Doug Evans <dje@google.com> |
1394 | ||
1395 | * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text | |
1396 | for `save gdb-index' command. | |
1397 | ||
72b9f47f TT |
1398 | 2010-10-01 Tom Tromey <tromey@redhat.com> |
1399 | ||
1400 | * symfile.h (allocate_symtab): Update. | |
1401 | * symfile.c (allocate_symtab): Make 'filename' const. | |
1402 | * psymtab.c (add_psymbol_to_bcache): Make 'name' const. | |
1403 | (add_psymbol_to_list): Likewise. | |
1404 | * psympriv.h (struct partial_symtab) <filename, dirname>: Now | |
1405 | const. | |
1406 | (add_psymbol_to_list): Update. | |
1407 | * mdebugread.c (new_symtab): Make 'name' const. | |
1408 | (psymtab_to_symtab_1): Make 'filename' const. | |
1409 | * elfread.c (elfstab_offset_sections): Update. | |
1410 | * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const. | |
1411 | (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const. | |
1412 | (psymtab_include_file_name): Update. | |
1413 | * dbxread.c (find_stab_function_addr): Make 'filename' const. | |
1414 | * buildsym.h (start_subfile): Update. | |
1415 | * buildsym.c (start_subfile): Make arguments const. | |
1416 | ||
55e39473 MS |
1417 | 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net> |
1418 | ||
1419 | * fork-child.c (breakup_args): Fix crash if shell forking is | |
1420 | disabled at compile time. | |
1421 | ||
05e522ef JB |
1422 | 2010-10-01 Joel Brobecker <brobecker@adacore.com> |
1423 | ||
1424 | * ada-lang.c (desc_bounds): Add handling of the case where | |
1425 | the P_BOUNDS field is a pointer to a stub. | |
1426 | (desc_data_target_type): Same for P_ARRAY field. | |
1427 | (ada_check_typedef): Strip the typedef layers from the type | |
1428 | found by ada_find_any_type. | |
1429 | ||
49a45ecf JB |
1430 | 2010-10-01 Joel Brobecker <brobecker@adacore.com> |
1431 | ||
1432 | * sparc-tdep.c (sparc32_frame_align): New function. | |
1433 | (sparc32_gdbarch_init): Set the frame_align gdbarch method. | |
1434 | * sparc64-tdep.c (sparc64_frame_align): New function. | |
1435 | (sparc64_gdbarch_init): Set the frame_align gdbarch method. | |
1436 | ||
a5916a62 L |
1437 | 2010-09-30 H.J. Lu <hongjiu.lu@intel.com> |
1438 | ||
1439 | * defs.h (MAX_REGISTER_SIZE): Set to 64. | |
1440 | ||
00b5771c TT |
1441 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
1442 | ||
1443 | * symfile.h (struct sym_fns) <next>: Remove. | |
1444 | (add_symtab_fns): Update. | |
1445 | * symfile.c (sym_fns_ptr): New typedef. | |
1446 | (symtab_fns): Now a VEC. | |
1447 | (add_symtab_fns): Update. Change argument type. | |
1448 | (find_sym_fns): Update. Change return type. | |
1449 | (get_symfile_segment_data): Update. | |
1450 | * objfiles.h (struct objfile) <sf>: Now const. | |
1451 | * somread.c (som_sym_fns): Now const. Update. | |
1452 | * xcoffread.c (xcoff_sym_fns): Now const. Update. | |
1453 | * mipsread.c (ecoff_sym_fns): Now const. Update. | |
1454 | * machoread.c (macho_sym_fns): Now const. Update. | |
1455 | * elfread.c (elf_sym_fns): Now const. Update. | |
1456 | (elf_sym_fns_gdb_index): Likewise. | |
1457 | * dbxread.c (aout_sym_fns): Now const. Update. | |
1458 | * coffread.c (coff_sym_fns): Now const. Update. | |
1459 | ||
38f12cfc TT |
1460 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
1461 | ||
1462 | * value.c (value_primitive_field): Take 'offset' into account for | |
1463 | packed field. | |
1464 | ||
9ae8282d TT |
1465 | 2010-09-30 Tom Tromey <tromey@redhat.com> |
1466 | ||
1467 | * completer.c (count_struct_fields): Handle anonymous structs and | |
1468 | unions. | |
1469 | (add_struct_fields): Likewise. | |
1470 | ||
e9e07ba6 JK |
1471 | 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
1472 | ||
1473 | Fix printing parameters of inlined functions. | |
1474 | * ada-lang.c (is_known_support_routine) | |
1475 | (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter | |
1476 | for find_frame_funname. | |
1477 | * python/py-frame.c (frapy_name): Likewise. | |
1478 | * stack.c (find_frame_funname): New parameter funcp. Update the | |
1479 | function comment. Fill it in. | |
1480 | (print_frame): New variable func. Initialize it by | |
1481 | find_frame_funname. Print arguments only if FUNC is not NULL. Use | |
1482 | FUNC as the parameter of print_args_stub. | |
1483 | * stack.h (find_frame_funname): New parameter funcp. Remove the | |
1484 | function declaration comment. | |
1485 | ||
cd2effb2 JK |
1486 | 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
1487 | ||
1488 | PR corefiles/12071. | |
1489 | * inferior.c (have_live_inferiors): New variables old_chain, inf and | |
1490 | tp. Iterate INFERIOR_LIST and call target_has_execution. | |
1491 | ||
bceffbf3 JK |
1492 | 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
1493 | ||
1494 | Fix GDB crash on inferior calls with self-referencing classes. | |
1495 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static | |
1496 | member fields. | |
1497 | ||
abc72ce4 DE |
1498 | 2010-09-29 Doug Evans <dje@google.com> |
1499 | ||
1500 | Workaround for gcc/45682. | |
1501 | * dwarf2read.c (partial_die_info): New fields fixup_called, | |
1502 | linkage_name. | |
1503 | (guess_partial_die_structure_name): Renamed from guess_structure_name. | |
1504 | Move definition next to use. Use linkage_name to determine if class | |
1505 | is in a namespace. All callers updated. | |
1506 | (fixup_partial_die): Return early if already called. | |
1507 | Set fixup_called when done. | |
1508 | (guess_full_die_structure_name): New function. | |
1509 | (determine_prefix): Call it for class/struct/union dies if c++ and | |
1510 | .debug_types section is present and parent is DW_TAG_compile_unit. | |
1511 | ||
0ac7be25 JB |
1512 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
1513 | ||
1514 | * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a. | |
1515 | (sparc-*-rtems*): Delete. Now redundant with sparc-*-*. | |
1516 | ||
6e1bb179 JB |
1517 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
1518 | ||
1519 | * NEWS: Announce Ravenscar Profile support. | |
1520 | ||
036b1ba8 JB |
1521 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
1522 | Jerome Guitton <guitton@adacore.com> | |
1523 | ||
1524 | * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c: | |
1525 | New files. | |
1526 | * configure.tgt (sparc-*-*): Add ravenscar-thread.o and | |
1527 | ravenscar-sparc-thread.o to gdb_target_obs. | |
1528 | ||
474011fb JB |
1529 | 2010-09-28 Joel Brobecker <brobecker@adacore.com> |
1530 | ||
1531 | * ada-tasks.c (iterate_over_live_ada_tasks): New function. | |
1532 | * ada-lang.h (iterate_over_live_ada_tasks): Declare. | |
1533 | ||
99e24b90 PM |
1534 | 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr> |
1535 | ||
1536 | * amd64-windows-tdep.c (amd64_skip_main_prologue): New function. | |
1537 | (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch | |
1538 | skip_main_prologue method. | |
1539 | ||
987d643c TT |
1540 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
1541 | ||
1542 | * dwarf2read.c (dwarf2_read_index): Only allow version 3. | |
1543 | (write_psymbols): Add 'psyms_seen' and 'is_static' arguments. | |
1544 | Only emit a given psymbol once. | |
1545 | (struct signatured_type_index_data) <psyms_seen>: New field. | |
1546 | (write_one_signatured_type): Update. | |
1547 | (cleanup_htab): New function. | |
1548 | (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump | |
1549 | version to 3. | |
1550 | (save_gdb_index_command): Update index documentation. | |
1551 | ||
d3aff959 TT |
1552 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
1553 | ||
1554 | * bcache.c (expand_hash_table): Use hash_function, not hash. | |
1555 | ||
716b65bf TT |
1556 | 2010-09-27 Tom Tromey <tromey@redhat.com> |
1557 | ||
1558 | * gdb_wchar.h: Change minimum libiconv to 0x108. | |
1559 | ||
1736ad11 JK |
1560 | 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
1561 | ||
1562 | Fix lost siginfo_t for inferior calls. | |
1563 | * infrun.c | |
1564 | (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New. | |
1565 | (save_inferior_thread_state): New variables regcache, gdbarch and | |
1566 | siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p. | |
1567 | Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS | |
1568 | using REGCACHE. | |
1569 | (restore_inferior_thread_state): New variables regcache and gdbarch. | |
1570 | Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using | |
1571 | REGCACHE. Free also SIGINFO_DATA. | |
1572 | ||
4b5246aa TT |
1573 | 2010-09-24 Tom Tromey <tromey@redhat.com> |
1574 | ||
1575 | * dwarf2read.c (dw2_expand_symtabs_matching): Add missing | |
1576 | MAYBE_SWAPs. | |
1577 | (dw2_map_symbol_names): Likewise. | |
1578 | ||
2a7d6a25 SW |
1579 | 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com> |
1580 | ||
1581 | * valops.c (find_oload_champ_namespace_loop): replace incorrect | |
1582 | discard_cleanups do_cleanups. | |
1583 | ||
b53a1623 PA |
1584 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
1585 | ||
e6ee044d PA |
1586 | PR gdb/11842 |
1587 | ||
b53a1623 PA |
1588 | * amd64-linux-nat.c (compat_siginfo_from_siginfo) |
1589 | (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when | |
1590 | si_code is < 0. Check for si_code == SI_TIMER before checking for | |
1591 | si_code < 0. | |
1592 | ||
96a8853a PA |
1593 | 2010-09-24 Pedro Alves <pedro@codesourcery.com> |
1594 | ||
1595 | * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop. | |
1596 | ||
39383a48 JB |
1597 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
1598 | ||
1599 | * ada-tasks.c (read_atcb): Do not compute the task ptid when | |
1600 | debugging a core file. | |
1601 | ||
d31d2fc3 JK |
1602 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
1603 | ||
1604 | Code cleanup. | |
1605 | * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove. | |
1606 | (free_objfile) <objfile->name != NULL>: Remove the conditional around | |
1607 | xfree. | |
1608 | * objfiles.h (struct objfile) <name>: New comment it is never NULL. | |
1609 | * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>: | |
1610 | Remove. | |
1611 | * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name> | |
1612 | Remove the conditional. | |
1613 | * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise. | |
1614 | ||
7f6130ff JK |
1615 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
1616 | ||
1617 | * main.c: Include objfiles.h. | |
1618 | (captured_main): New variable objfile. Call | |
1619 | load_auto_scripts_for_objfile for ALL_OBJFILES. | |
1620 | ||
c2b0a229 JK |
1621 | 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
1622 | ||
1623 | * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also | |
1624 | DW_TAG_constant. | |
1625 | ||
72929c62 JB |
1626 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
1627 | ||
1628 | * dwarf2read.c (scan_partial_symbols): Add handling of | |
1629 | DW_TAG_constant DIEs. | |
1630 | (add_partial_symbol, load_partial_dies, new_symbol): Likewise. | |
1631 | ||
496c0e1b JB |
1632 | 2010-09-22 Joel Brobecker <brobecker@adacore.com> |
1633 | ||
1634 | * configure.ac: Add support for --enable-gdbserver. | |
1635 | * configure: Regenerate. | |
1636 | ||
ec322823 SW |
1637 | 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com> |
1638 | ||
1639 | PR C++/12028 | |
1640 | * valops.c (find_oload_champ_namespace_loop): removed incorrect | |
1641 | 'old_cleanups' reassignment. | |
1642 | ||
1558ab4c JK |
1643 | 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
1644 | ||
1645 | * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted | |
1646 | characters. | |
1647 | ||
875b4ff5 PM |
1648 | 2010-09-16 Phil Muldoon <pmuldoon@redhat.com> |
1649 | ||
1650 | PR mi/11407 | |
1651 | * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from | |
1652 | read_var_value and common_val_print and print a warning. | |
1653 | ||
65dedcb2 JK |
1654 | 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
1655 | ||
1656 | * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to | |
1657 | keep the list in alphabetical order. Use longer e-mail address. | |
1658 | ||
0e780a22 TT |
1659 | 2010-09-15 Tom Tromey <tromey@redhat.com> |
1660 | ||
1661 | * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil. | |
1662 | ||
62234ccc TT |
1663 | 2010-09-15 Tom Tromey <tromey@redhat.com> |
1664 | ||
1665 | * charset.c (iconv_open): New define. | |
1666 | (iconv): Likewise. | |
1667 | (iconv_close): Likewise. | |
1668 | (phony_iconv_open): Add "phony_" prefix. | |
1669 | (phony_iconv_close): Likewise. | |
1670 | (phony_iconv): Likewise. | |
1671 | * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__. | |
1672 | Change how INTERMEDIATE_ENCODING is defined. | |
1673 | ||
4950bc1c DE |
1674 | 2010-09-15 Doug Evans <dje@google.com> |
1675 | ||
1676 | * dwarf2read.c (struct die_info): Fix comment. | |
1677 | ||
349126ea AM |
1678 | 2010-09-15 Alan Modra <amodra@gmail.com> |
1679 | ||
1680 | PR 4606 | |
1681 | * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather | |
1682 | than setting SEC_NEVER_LOAD on sections that need not be copied. | |
1683 | ||
923c6a3d TT |
1684 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
1685 | ||
1686 | * psympriv.h (add_psymbol_to_list, init_psymbol_list) | |
1687 | (start_psymtab_common, allocate_psymtab, discard_psymtab): | |
1688 | Declare. | |
1689 | * symfile.h (extend_psymbol_list): Remove. | |
1690 | (add_psymbol_to_list, init_psymbol_list, start_psymtab_common) | |
1691 | (allocate_psymtab, discard_psymtab): Move to psympriv.h. | |
1692 | * psymtab.c (extend_psymbol_list): Move earlier. Now static. | |
1693 | ||
a9e6a4bb JK |
1694 | 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
1695 | ||
1696 | * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error. | |
1697 | Update the comment. | |
1698 | ||
7155d578 TT |
1699 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
1700 | ||
1701 | PR symtab/8399: | |
1702 | * dwarf2loc.c (locexpr_describe_location_piece): Don't call error | |
1703 | for unrecognized frame base expression. | |
1704 | ||
515ed532 TT |
1705 | 2010-09-14 Tom Tromey <tromey@redhat.com> |
1706 | ||
1707 | PR exp/11803: | |
1708 | * value.c (value_static_field): Use value_of_variable. | |
1709 | ||
b467f580 PM |
1710 | 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr> |
1711 | ||
1712 | * m32r-rom.c: Replace winsock.h with winsock2.h header. | |
1713 | * remote-m32r-sdi.c: Replace winsock.h by winsock2.h. | |
1714 | ||
450ca57c SW |
1715 | 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com> |
1716 | ||
1717 | PR symtab/11992: | |
1718 | * c-exp.y (classify_name): Check is_a_member_of_this before returning | |
1719 | UNKNOWN_CPP_NAME. | |
1720 | ||
1aee7009 JB |
1721 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
1722 | ||
1723 | * NEWS: Add x86-lynxos to the list of platforms supported by | |
1724 | gdbserver. | |
1725 | ||
5ec6ebf9 JB |
1726 | 2010-09-13 Joel Brobecker <brobecker@adacore.com> |
1727 | ||
1728 | * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos. | |
1729 | ||
1863c96c TT |
1730 | 2010-09-13 Tom Tromey <tromey@redhat.com> |
1731 | ||
1732 | * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h. | |
1733 | ||
0c5acf93 L |
1734 | 2010-09-13 H.J. Lu <hongjiu.lu@intel.com> |
1735 | ||
1736 | * i386-tdep.c (i386_ymm_type): Set type name to | |
1737 | builtin_type_vec256i. | |
1738 | ||
1c6272a6 MS |
1739 | 2010-09-12 Michael Snyder <msnyder@vmware.com> |
1740 | ||
1741 | * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. | |
1742 | ||
e866c497 L |
1743 | 2010-09-12 H.J. Lu <hongjiu.lu@intel.com> |
1744 | ||
1745 | * i386-tdep.c (i386_gdbarch_init): Fix typo in comments. | |
1746 | ||
9191d390 L |
1747 | 2010-09-11 H.J. Lu <hongjiu.lu@intel.com> |
1748 | ||
1749 | * amd64-tdep.c (amd64_register_name): Removed. | |
1750 | (amd64_init_abi): Don't call set_gdbarch_register_name. | |
1751 | ||
1752 | * i386-tdep.c (i386_ymmh_regnum_p): Make it static. | |
1753 | ||
1754 | * i386-tdep.h (i386_ymmh_regnum_p): Removed. | |
1755 | ||
8d4d924b JK |
1756 | 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1757 | Paul Bolle <pebolle@tiscali.nl> | |
1758 | ||
1759 | Redirect also uiout and stdtarg{,err} in execute_command_to_string. | |
1760 | * cli-logging.c (struct saved_output_files) <targerr>: New. | |
1761 | (set_logging_redirect, pop_output_files, handle_redirections): | |
1762 | Redirect also gdb_stdtargerr. | |
1763 | * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New | |
1764 | declarations. | |
1765 | * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect | |
1766 | also gdb_stdtargerr. | |
1767 | * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete | |
1768 | to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr. | |
1769 | Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop. | |
1770 | * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr. | |
1771 | * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop): | |
1772 | New functions. | |
1773 | ||
3329c4b5 PM |
1774 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
1775 | ||
1776 | * hppa-tdep.c (unwind_command): Use host_address_to_string function | |
1777 | to display a host address. | |
1778 | * monitor.c (monitor_read_memory): Likewise. | |
1779 | * xtensa-tdep.c (xtensa_push_dummy_call): Likewise. | |
1780 | ||
5e8db398 PM |
1781 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
1782 | ||
1783 | * coffread.c (struct coff_symbol): Change c_value type from `long' to | |
1784 | `CORE_ADDRESS' as it might contain target addresses. | |
1785 | ||
37049e31 PM |
1786 | 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr> |
1787 | ||
1788 | * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro | |
1789 | before cast to pointer to avoid warning. | |
1790 | ||
351a3e56 KB |
1791 | 2010-09-09 Kevin Buettner <kevinb@redhat.com> |
1792 | ||
1793 | * v850-tdep.c (v850_gdbarch_init): Change the v850's `char' | |
1794 | type to be signed. | |
349126ea | 1795 | |
6afafb54 UW |
1796 | 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com> |
1797 | ||
1798 | * dwarf2read.c (fixup_partial_die): Do not set dummy name for | |
1799 | anonymous class partial DIEs. | |
1800 | ||
60430eff DJ |
1801 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
1802 | ||
1803 | * dwarf2read.c (dwarf2_compute_name): Check that the first | |
1804 | argument is a pointer. | |
1805 | ||
f1078f66 DJ |
1806 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
1807 | ||
1808 | * dwarf2read.c (read_func_scope, read_structure_type) | |
1809 | (read_common_block): Check for a NULL return from new_symbol. | |
1810 | ||
82430852 JK |
1811 | 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
1812 | ||
1813 | * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS. | |
1814 | ||
c767944b DJ |
1815 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
1816 | ||
1817 | * dwarf2read.c (read_structure_type): Move processing of | |
1818 | fields and member functions from here... | |
1819 | (process_structure_scope): ... to here. | |
1820 | ||
561d3825 DJ |
1821 | 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com> |
1822 | ||
1823 | * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use | |
1824 | the domain type. | |
1825 | (gnuv3_make_method_ptr): Likewise. | |
1826 | ||
9bd89d67 TT |
1827 | 2010-09-08 Tom Tromey <tromey@redhat.com> |
1828 | ||
1829 | * breakpoint.c (create_breakpoint): Add missing _(). | |
1830 | ||
1d040b0d DE |
1831 | 2010-09-08 Doug Evans <dje@google.com> |
1832 | ||
1833 | * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused. | |
1834 | ||
774b6a14 TT |
1835 | 2010-09-08 Tom Tromey <tromey@redhat.com> |
1836 | ||
1837 | Revert: | |
1838 | 2010-09-01 Tom Tromey <tromey@redhat.com> | |
1839 | * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c, | |
1840 | symtab.h: Revert earlier change. | |
1841 | ||
fc956729 SW |
1842 | 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com> |
1843 | ||
1844 | * psymtab.c (add_psymbol_to_bcache): Initialize | |
1845 | obj_section. | |
1846 | memset psymbol.ginfo.value to 0. | |
1847 | ||
48f9886d PA |
1848 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
1849 | ||
1850 | * infrun.c (resume): Extend comment on ignoring single-step | |
1851 | requests on vfork parents waiting for a vfork-done. | |
1852 | ||
423ec54c JK |
1853 | 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1854 | Pedro Alves <pedro@codesourcery.com> | |
1855 | ||
1856 | * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH | |
1857 | is NULL. | |
1858 | * fork-child.c (startup_inferior) <resume_signal>: Use enum | |
1859 | target_signal type. | |
1860 | * linux-nat.c (linux_nat_resume): Use target_signal_to_host before | |
1861 | calling strsignal. Use enum target_signal type for saved_signo. | |
1862 | (linux_handle_extended_wait) <signo>: Use enum target_signal type. | |
1863 | (linux_nat_wait_1): Use enum target_signal type for signo. Use | |
1864 | target_signal_to_host before calling strsignal. | |
1865 | * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by | |
1866 | TARGET_SIGNAL_0. | |
1867 | ||
a6eb9bc8 JK |
1868 | 2010-09-06 Pedro Alves <pedro@codesourcery.com> |
1869 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
1870 | ||
1871 | * common/signals.c (ANY): Remove. | |
1872 | (SET): No longer use ANY. | |
1873 | ||
74609e71 YQ |
1874 | 2010-09-06 Yao Qi <yao@codesourcery.com> |
1875 | ||
1876 | * infrunc(resume): When inferior is waiting_for_vfork_done, | |
1877 | clear step and don't use displaced stepping. | |
1878 | ||
8464be76 DJ |
1879 | 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com> |
1880 | ||
1881 | * breakpoint.c (can_use_hardware_watchpoint): Handle the first | |
1882 | value specially. | |
1883 | ||
33d62d64 JK |
1884 | 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
1885 | ||
1886 | Code cleanup - split print_stop_reason. | |
1887 | * infrun.c (enum inferior_stop_reason): Remove. | |
1888 | (print_stop_reason): Remove by splitting into ... | |
1889 | (print_exited_reason, print_signal_exited_reason) | |
1890 | (print_no_history_reason, print_signal_received_reason) | |
1891 | (print_end_stepping_range_reason): ... these new functions. Update | |
1892 | the preceding comment. | |
1893 | (handle_inferior_event): Change the calls to print_exited_reason, | |
1894 | print_signal_exited_reason, print_no_history_reason, | |
1895 | print_signal_received_reason, print_end_stepping_range_reason. | |
1896 | (handle_step_into_function, handle_step_into_function_backward): | |
1897 | Change the calls to print_end_stepping_range_reason. | |
1898 | ||
14dba4b4 JK |
1899 | 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
1900 | ||
1901 | * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL. | |
1902 | * cli-out.c: Include vec.h. | |
1903 | (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New | |
1904 | variable stream, initialize it, use it. | |
1905 | (cli_redirect): New function comment. Replace the stream and | |
1906 | original_stream fields by the new streams field. Remove the | |
1907 | original_stream != NULL conditional, assert error on NULL instead. | |
1908 | (out_field_fmt, field_separator): New variable stream, initialize it, use it. | |
1909 | (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and | |
1910 | original_stream fields by the new streams field. | |
1911 | (cli_out_set_stream): Replace the stream field by the new streams | |
1912 | field. | |
1913 | * cli-out.h: Include vec.h. | |
1914 | (ui_filep): New typedef, call DEF_VEC_P for it. | |
1915 | (struct cli_ui_out_data): Replace the stream and original_stream | |
1916 | fields by the new streams field. | |
1917 | * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with | |
1918 | NULL first. Extend the comment. | |
1919 | (handle_redirections): Call ui_out_redirect with output. | |
1920 | * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect | |
1921 | calls outside of the TRY_CATCH block. | |
1922 | ||
b04bc5d4 | 1923 | 2010-09-03 Joel Brobecker <brobecker@adacore.com> |
1924 | ||
1925 | GDB 7.2 released. | |
1926 | ||
080db4e0 JB |
1927 | 2010-09-02 Joel Brobecker <brobecker@adacore.com> |
1928 | ||
1929 | Back out the following change: | |
1930 | | 2010-06-29 Hui Zhu <teawater@gmail.com> | |
1931 | | * record.c (set_record_pic_cmdlist, | |
1932 | | show_record_pic_cmdlist): New variables. | |
1933 | | (set_record_pic_command, | |
1934 | | show_record_pic_command): New functions. | |
1935 | | (record_pic_function, record_pic_line, record_pic_enum, | |
1936 | | set_record_pic_type, record_pic_hide_nofunction, | |
1937 | | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
1938 | | (record_pic_fputs): New function. | |
1939 | | (function_list, node_list, edge_list): New struct. | |
1940 | | (function_list, node_list, edge_list): New variables. | |
1941 | | (record_pic_cleanups, record_pic_node, | |
1942 | | record_pic_edge, cmd_record_pic): New functions. | |
1943 | | (_initialize_record): Add new commands for record pic. | |
1944 | ||
0a4f61e3 DJ |
1945 | 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com> |
1946 | ||
1947 | * config.in, configure: Regenerated. | |
1948 | * configure.ac: Check for waitpid. | |
1949 | * ser-pipe.c (pipe_close): Wait for the program to exit. | |
1950 | ||
58b61394 JK |
1951 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1952 | ||
ba720883 | 1953 | * cli/cli-logging.c: Include gdb_assert.h. |
58b61394 JK |
1954 | (set_logging_overwrite): New function. |
1955 | (logging_redirect): New comment. | |
1956 | (logging_no_redirect_file, set_logging_redirect) | |
1957 | (pop_output_files) <logging_no_redirect_file>: New. | |
1958 | (handle_redirections) <!logging_redirect>: New variable | |
1959 | no_redirect_file. Remove file autoclose for tee_file_new. No longer | |
1960 | discard cleanup for the close of former OUTPUT. Set | |
1961 | LOGGING_NO_REDIRECT_FILE. | |
1962 | (handle_redirections) <logging_redirect>: gdb_assert | |
1963 | LOGGING_NO_REDIRECT_FILE. | |
1964 | (show_logging_command) <logging_redirect handling>: Adjust messages | |
1965 | for SAVED_FILENAME not NULL. | |
1966 | (_initialize_cli_logging): Install set_logging_overwrite and | |
1967 | set_logging_redirect. | |
1968 | ||
706774f2 JK |
1969 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1970 | ||
1971 | * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END. | |
1972 | ||
9a35ccf7 JK |
1973 | 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
1974 | ||
1975 | * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form. | |
1976 | (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and | |
1977 | add $(GDB_WARN_CFLAGS_NO_FORMAT). | |
1978 | (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS). | |
1979 | ||
ba9b2ec3 YQ |
1980 | 2010-09-02 Yao Qi <yao@codesourcery.com> |
1981 | ||
1982 | * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal | |
1983 | number from a WIFSIGNALED status. | |
1984 | ||
faf68db7 TT |
1985 | 2010-09-01 Tom Tromey <tromey@redhat.com> |
1986 | ||
1987 | * symtab.h (lookup_type_symbol): Declare. | |
1988 | * symtab.c (lookup_symbol_in_language_full): Rename from | |
1989 | lookup_symbol_in_language. Add 'for_type' argument. | |
1990 | (lookup_symbol_in_language): New function. | |
1991 | (lookup_type_symbol): Likewise. | |
1992 | (lookup_symbol_aux): Add 'for_type' argument. | |
1993 | (match_symbol_aux): New function. | |
1994 | (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching. | |
1995 | (match_transparent_type): New function. | |
1996 | (basic_lookup_transparent_type): Use expand_one_symtab_matching. | |
1997 | * symfile.h (struct quick_symbol_functions) | |
1998 | <pre_expand_symtabs_matching>: Remove. | |
1999 | <expand_one_symtab_matching>: New field. | |
2000 | * psymtab.c (expand_one_symtab_matching_psymtabs): New function. | |
2001 | (pre_expand_symtabs_matching_psymtabs): Remove. | |
2002 | (psym_functions): Update. | |
2003 | * gdbtypes.c (lookup_typename): Use lookup_type_symbol. | |
2004 | * dwarf2read.c (dw2_lookup_symbol): Update comment. | |
2005 | (dw2_pre_expand_symtabs_matching): Remove. | |
2006 | (dw2_expand_one_symtab_matching): New function. | |
2007 | (dwarf2_gdb_index_functions): Update. | |
2008 | ||
248c9dbc JB |
2009 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
2010 | ||
2011 | * NEWS: Add entry announcing GDBserver support on powerpc-lynxos. | |
2012 | ||
f75d858b MK |
2013 | 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com> |
2014 | ||
2015 | * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse' | |
2016 | as a feature reported by -list-target-features. | |
2017 | ||
0482b03b JB |
2018 | 2010-09-01 Joel Brobecker <brobecker@adacore.com> |
2019 | ||
2020 | * features/Makefile (WHICH): Add rs6000/powerpc-32. | |
2021 | (powerpc-32.o, powerpc-32.c): New rules. | |
2022 | (clean): Also remove powerpc-32.c. | |
2023 | * regformats/rs6000/powerpc-32.dat: Generate. | |
2024 | ||
710e1a31 SW |
2025 | 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com> |
2026 | ||
2027 | * symfile.c (reread_symbols): Use psymbol_bcache_free, and | |
2028 | psymbol_bcache_init. | |
2029 | * psymtab.h (psymbol_bcache_init): New function prototype. | |
2030 | (psymbol_bcache_free): New function prototype. | |
2031 | (psymbol_bcache_get_bcache): New function prototype. | |
2032 | * psymtab.c (psymbol_bcache_init): New function. | |
2033 | (psymbol_bcache_free): New function. | |
2034 | (psymbol_bcache_full): New function. | |
2035 | (psymbol_bcache_get_bcache): New function. | |
2036 | (add_psymbol_to_bcache): use psymbol_bcache_full. | |
2037 | * objfiles.h (psymbol_cache): Change type of psymbol_cache to | |
2038 | psymbol_bcache. | |
2039 | * symmisc.c (print_symbol_bcache_statistics): Updated. | |
2040 | (print_objfile_statistics): Updated. | |
2041 | * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize | |
2042 | psymbol_cache. | |
2043 | (free_objfile): Use psymbol_bcache_free. | |
2044 | ||
64382290 TT |
2045 | 2010-08-31 Tom Tromey <tromey@redhat.com> |
2046 | ||
2047 | PR c++/11961: | |
2048 | * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>: | |
2049 | Don't set TYPE_NAME on the type. | |
2050 | ||
8bbed405 MS |
2051 | 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
2052 | ||
2053 | * infrun.c (set_exec_direction_func): Error out if target does not | |
2054 | support reverse execution. | |
2055 | ||
06253dd3 JK |
2056 | 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
2057 | ||
2058 | Make linux_get_siginfo_type `type *' unique. | |
2059 | * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data) | |
2060 | (init_linux_gdbarch_data, get_linux_gdbarch_data): New. | |
2061 | (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize | |
2062 | it. Use linux_gdbarch_data->siginfo_type as a persistent storage. | |
2063 | (_initialize_linux_tdep): New. | |
2064 | ||
b8edc417 JK |
2065 | 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
2066 | ||
2067 | Code cleanup. | |
2068 | * defs.h (find_memory_region_ftype): New typedef. | |
2069 | (exec_set_find_memory_regions): Use it. | |
2070 | * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype. | |
2071 | * fbsd-nat.c (fbsd_find_memory_regions): Likewise. | |
2072 | * gcore.c (objfile_find_memory_regions): Likewise. | |
2073 | * gnu-nat.c (gnu_find_memory_regions): Likewise. | |
2074 | * linux-nat.c (linux_nat_find_memory_regions): Likewise. | |
2075 | * procfs.c (iterate_over_mappings_cb_ftype): Remove. | |
2076 | (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to | |
2077 | find_memory_region_ftype. | |
2078 | (insert_dbx_link_bpt_in_region): Likewise. | |
2079 | (iterate_over_mappings): Likewise. Drop the comment part about the | |
2080 | function prototype. | |
2081 | (find_memory_regions_callback): Use find_memory_region_ftype. | |
2082 | (proc_find_memory_regions): Likewise. | |
2083 | (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to | |
2084 | find_memory_region_ftype. | |
2085 | * target.c (dummy_find_memory_regions): Use find_memory_region_ftype. | |
2086 | * target.h (struct target_ops) <to_find_memory_regions>: Likewise. | |
2087 | ||
cbd70537 SW |
2088 | 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com> |
2089 | ||
2090 | * psymtab.c (add_psymbol_to_bcache): Remove 'static' from | |
2091 | 'static partial_symbol psymbol'. | |
2092 | (psymbol_hash): New function. | |
2093 | (psymbol_compare): New function. | |
2094 | * bcache.c (hash_continue): New. | |
2095 | (hash): Use hash_continue. | |
2096 | * bcache.c: Add hash_function and compare_function | |
2097 | pointers to bcache struct. | |
2098 | (bcache_full): Use bcache->hash_function, and | |
2099 | bcache->compare_function. | |
2100 | (bcache_compare): New function. | |
2101 | (bcache_xmalloc): Take hash_function and | |
2102 | compare_function arguments and initialize the | |
2103 | bcach's pointers. | |
2104 | Updated comment. | |
2105 | * objfiles.c (allocate_objfile): Updated. | |
2106 | * symfile.c (reread_symbols): Updated. | |
2107 | * python/py-type.c (typy_richcompare): Updated. | |
2108 | ||
03f17ccf TT |
2109 | 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com> |
2110 | Tom Tromey <tromey@redhat.com> | |
2111 | ||
2112 | PR python/11792: | |
2113 | * python/py-value.c (valpy_get_dynamic_type): New function. | |
2114 | (value_object_getset): Add "dynamic_type". | |
2115 | (valpy_get_type): Fail on error. | |
2116 | ||
25b41d01 YQ |
2117 | 2010-08-30 Yao Qi <yao@codesourcery.com> |
2118 | ||
2119 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New. | |
2120 | (arm_linux_syscall_next_pc): New. | |
2121 | (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead. | |
2122 | (arm_linux_init_abi): Initialize syscall_next_pc. | |
2123 | * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode. | |
2124 | (arm_get_next_pc_raw): Get next pc of SWI in ARM mode. | |
2125 | * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc. | |
2126 | Declare arm_frame_is_thumb. | |
2127 | ||
5760d0ab JK |
2128 | 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
2129 | ||
2130 | Code cleanup. | |
2131 | * breakpoint.c (bpstat_alloc): Remove unused prototype. | |
2132 | (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the | |
2133 | code. | |
2134 | (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust | |
2135 | calls of bpstat_alloc. Remove explicit bs chain termination. | |
2136 | ||
46a96992 JK |
2137 | 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2138 | ||
2139 | Code cleanup. | |
2140 | * linux-nat.c (pull_pid_from_list): Rename status to statusp. | |
2141 | (my_waitpid): Likewise. | |
2142 | ||
36374493 DE |
2143 | 2010-08-27 Doug Evans <dje@google.com> |
2144 | ||
2145 | * dwarf2read.c (dw2_require_line_header): Read from .debug_types | |
2146 | as appropriate. | |
2147 | ||
8b93c54c TT |
2148 | 2010-08-27 Tom Tromey <tromey@redhat.com> |
2149 | ||
2150 | * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set | |
2151 | TYPE_FIELD_IGNORE_BITS. | |
2152 | ||
16be1145 DE |
2153 | 2010-08-27 Doug Evans <dje@google.com> |
2154 | ||
2155 | * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match | |
2156 | the order they're defined in. munmap .debug_types buffer. | |
2157 | ||
e254ef6a DE |
2158 | 2010-08-26 Doug Evans <dje@google.com> |
2159 | ||
2160 | * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu. | |
2161 | (dw2_forget_cached_source_info): Rename local cu to per_cu. | |
2162 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto. | |
2163 | (dw2_print_stats, dw2_expand_all_symtabs): Ditto. | |
2164 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto. | |
2165 | (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto. | |
2166 | (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto. | |
2167 | (dwarf2_free_objfile, write_one_signatured_type): Ditto. | |
2168 | (write_psymtabs_to_index): Ditto. | |
2169 | ||
ae53ffa4 PA |
2170 | 2010-08-26 Pedro Alves <pedro@codesourcery.com> |
2171 | ||
2172 | * NEWS: Mention libthread_db debugging with core files. | |
2173 | ||
c6da4cef DE |
2174 | 2010-08-26 Doug Evans <dje@google.com> |
2175 | ||
2176 | * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary | |
2177 | forward decl. Pass pst->dirname to dwarf_decode_lines. | |
2178 | (psymtab_include_file_name): New function. | |
2179 | (dwarf_decode_lines): Call it. Update comments. | |
2180 | ||
cd02d79d PA |
2181 | 2010-08-25 Pedro Alves <pedro@codesourcery.com> |
2182 | ||
2183 | * dwarf2read.c (inherit_abstract_dies): Handle origin die's | |
2184 | compilation unit being different from target die's. | |
2185 | ||
673bfd45 DE |
2186 | 2010-08-24 Doug Evans <dje@google.com> |
2187 | ||
2188 | PR symtab/11942 | |
2189 | * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash, | |
2190 | debug_types_type_hash. | |
2191 | (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash. | |
2192 | All uses updated. | |
2193 | (lookup_die_type): Renamed from tag_type_to_tag. First look in | |
2194 | appropriate type_hash table. All callers updated. | |
2195 | (allocate_signatured_type_table): Renamed from | |
2196 | allocate_signatured_type_hash_table. All callers updated. | |
2197 | (create_signatured_type_table_from_index): Renamed from | |
2198 | create_signatured_type_hash_from_index. All callers updated. | |
2199 | (read_die_type): Add comment. Move actual reading to ... | |
2200 | (read_die_type_1): ... here. New function. | |
2201 | (follow_die_ref_or_sig): Tweak comment. | |
2202 | (set_die_type): Rewrite to use appropriate choice of | |
2203 | debug_info_type_hash or debug_types_type_hash. | |
2204 | (get_die_type_at_offset): New function. | |
2205 | (get_die_type): Call it. | |
2206 | ||
e8fd65ef JK |
2207 | 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
2208 | ||
2209 | * python/py-type.c (typy_richcompare): Initialize worklist. | |
2210 | ||
9779414d DJ |
2211 | 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com> |
2212 | Kazu Hirata <kazu@codesourcery.com> | |
2213 | Jonathan Larmour <jifl@eCosCentric.com> | |
2214 | ||
2215 | * arm-tdep.c: Include features/arm-with-m.c. | |
2216 | (arm_psr_thumb_bit): New. Update all uses of CPSR_T to | |
2217 | call this function. | |
2218 | (arm_pc_is_thumb): Add a gdbarch argument. Update all callers. | |
2219 | Check is_m after force-mode. | |
2220 | (arm_gdbarch_init): Check the binary before the target description. | |
2221 | Add check for M profile attribute. If we have an M-profile device, | |
2222 | but no target register description, use arm-with-m. Recognize the | |
2223 | new org.gnu.gdb.arm.m-profile feature and its xpsr register. | |
2224 | (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m. | |
2225 | * arm-tdep.h (XPSR_T): Define. | |
2226 | (struct gdbarch_tdep): Add is_m member. | |
2227 | * features/arm-m-profile.xml, features/arm-with-m.c, | |
2228 | features/arm-with-m.xml: New files. | |
2229 | ||
9dc481d3 DE |
2230 | 2010-08-23 Doug Evans <dje@google.com> |
2231 | ||
2232 | * dwarf2read.c (read_structure_type): Add comment. | |
2233 | (read_enumeration_type): Add comment. | |
2234 | (process_enumeration_scope): Move definition of some locals | |
2235 | closer to their use. | |
2236 | (read_namespace_type): Add comment. | |
e71ec853 | 2237 | (set_die_type): Fix typo in comment. |
9dc481d3 | 2238 | |
f9ffd4bb TT |
2239 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
2240 | ||
2241 | PR python/11145: | |
2242 | * python/py-value.c: Include expression.h. | |
2243 | (valpy_do_cast): New function. | |
2244 | (valpy_cast): Use it. | |
2245 | (valpy_dynamic_cast): New function. | |
2246 | (valpy_reinterpret_cast): Likewise. | |
2247 | (value_object_methods): Add dynamic_cast, reinterpret_cast. | |
2248 | ||
96f73ba5 TT |
2249 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
2250 | ||
2251 | PR python/11391: | |
2252 | * python/py-value.c (valpy_nonzero): Don't throw error for other | |
2253 | Value types. | |
2254 | ||
d839c8a4 TT |
2255 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
2256 | ||
2257 | PR python/10676: | |
2258 | * python/py-type.c: Include bcache.h, vec.h. | |
2259 | (struct type_equality_entry): New. | |
2260 | (compare_strings): New function. | |
2261 | (check_types_equal): Likewise. | |
2262 | (check_types_worklist): Likewise. | |
2263 | (typy_richcompare): Likewise. | |
2264 | (type_object_type): Set tp_richcompare field. | |
2265 | ||
05d0e1e7 TT |
2266 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
2267 | ||
2268 | PR python/10953: | |
2269 | * python/py-type.c (typy_fields): Call check_typedef. | |
2270 | (typy_template_argument): Add TRY_CATCH. | |
2271 | ||
702c2711 TT |
2272 | 2010-08-23 Tom Tromey <tromey@redhat.com> |
2273 | ||
2274 | PR python/11915: | |
2275 | * python/py-type.c (typy_array): New function. | |
2276 | (type_object_methods): Add "array". | |
2277 | ||
4a532131 PA |
2278 | 2010-08-20 Pedro Alves <pedro@codesourcery.com> |
2279 | ||
2280 | * python/python.c: Include "serial.h". | |
2281 | (gdbpy_event_fds): Change type to `struct serial *' a array from | |
2282 | int array. | |
2283 | (gdbpy_run_events): Change parameters. Use serial_readchar in | |
2284 | place of read. | |
2285 | (gdbpy_post_event): Use serial_write in place of write. | |
2286 | (gdbpy_initialize_events): Use serial_pipe instead of pipe, and | |
2287 | serial_async in place of add_file_handler. | |
2288 | ||
58f07bae PA |
2289 | 2010-08-20 Pedro Alves <pedro@codesourcery.com> |
2290 | ||
2291 | * serial.h (gdb_pipe, serial_pipe): Declare. | |
2292 | * serial.c (serial_interface_lookup): Take a const char pointer. | |
2293 | (serial_fdopen): Rename to ... | |
2294 | (serial_fdopen_ops): ... this. Add an OPS parameter and use it. | |
2295 | Call the OPS' fdopen function if there is one. | |
2296 | (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops. | |
2297 | (serial_pipe): New. | |
2298 | (struct serial_ops) <fdopen>: New field. | |
2299 | ||
2300 | * ser-mingw.c (free_pipe_state): | |
2301 | (free_pipe_state): Close output on non-pex pipes. | |
2302 | (pipe_windows_fdopen): New. | |
2303 | (gdb_pipe): New. | |
2304 | (_initialize_ser_windows): Register pipe_windows_fdopen. | |
2305 | * ser-go32.c (gdb_pipe): New. | |
2306 | * ser-pipe.c (pipe_close): Close file descriptor even if there's | |
2307 | no state pointer. | |
2308 | (pipe_ops): Delete. | |
2309 | (gdb_pipe): New. | |
2310 | ||
3da10d80 KS |
2311 | 2010-08-20 Keith Seitz <keiths@redhat.com> |
2312 | ||
2313 | PR symtab/11465: | |
889bf7c5 | 2314 | * dwarf2read.c (struct delayed_method_info): New struct. |
3da10d80 KS |
2315 | (struct dwarf2_cu): Add vector method_list. |
2316 | (scan_partial_symbols): Count methods for union, class, structure, | |
2317 | and interface types. | |
2318 | (add_to_method_list): New function. | |
2319 | (free_delayed_list): New function. | |
2320 | (compute_delayed_physnames): New function. | |
2321 | (process_full_comp_unit): Make a cleanup for the CU's delayed | |
2322 | physname list, compute the delayed physnames, and free the | |
2323 | the list. | |
2324 | (dwarf2_add_member_fn): For C++ and Java, delay the computation | |
2325 | of the physname until after the CU is read. | |
2326 | ||
2327 | * dwarf2read.c (read_structure_type): Check if the current | |
2328 | DIE's type was already completed after dwarf2_full_name | |
2329 | was called. | |
889bf7c5 | 2330 | |
ca11e899 SS |
2331 | 2010-08-19 Stan Shebs <stan@codesourcery.com> |
2332 | ||
2333 | * NEWS: Mention some additional changes. | |
2334 | ||
4d2dc20a TT |
2335 | 2010-08-19 Tom Tromey <tromey@redhat.com> |
2336 | ||
2337 | * Makefile.in (install-python): Add DESTDIR. | |
2338 | ||
d30f5e1f DE |
2339 | 2010-08-19 Doug Evans <dje@google.com> |
2340 | ||
2341 | PR exp/11926 | |
2342 | * parser-defs.h (parse_float, parse_c_float): Declare. | |
2343 | * parse.c (parse_float, parse_c_float): New function. | |
2344 | * c-exp.y (parse_number): Call parse_c_float. | |
2345 | * objc-exp.y (parse_number): Ditto. | |
2346 | * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition. | |
2347 | * jv-exp.y (parse_number): Call parse_float, fix suffix handling. | |
2348 | ||
2837d59e JB |
2349 | 2010-08-19 Joel Brobecker <brobecker@adacore.com> |
2350 | ||
2351 | * psymtab.c (map_symbol_filenames_psymtab): Call FUN with | |
2352 | the arguments in the correct order. | |
2353 | * symtab.c (maybe_add_partial_symtab_filename): Declare | |
2354 | the arguments in the correct order. | |
2355 | ||
35633fef JK |
2356 | 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
2357 | ||
2358 | * varobj.c (varobj_create): Replace variable old_fi with old_id, | |
2359 | initialize it by null_frame_id, wrap its usage by get_frame_id, | |
2360 | frame_id_p and frame_find_by_id. | |
2361 | ||
94f7449c TT |
2362 | 2010-08-18 Tom Tromey <tromey@redhat.com> |
2363 | ||
2364 | PR python/11900: | |
2365 | * configure: Rebuild. | |
2366 | * configure.ac: Add install-python to CONFIG_INSTALL. | |
2367 | * Makefile.in (install-python): New. | |
2368 | ||
f3574227 DE |
2369 | 2010-08-18 Doug Evans <dje@google.com> |
2370 | ||
2371 | * gdb_assert.h (gdb_assert_not_reached): New macro. | |
2372 | (gdb_assert_fail): Fix typo in comment. | |
2373 | * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of | |
2374 | gdb_assert (0). | |
2375 | * darwin-nat.c (darwin_check_new_threads): Ditto. | |
2376 | * dwarf2read.c (dwarf2_get_section_info): Ditto. | |
2377 | (munmap_section_buffer): Ditto. | |
2378 | * m32c-tdep.c (make_types): Ditto. | |
2379 | (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto. | |
2380 | * macroexp.c (get_character_constant): Ditto. | |
2381 | (get_string_literal): Ditto. | |
2382 | * mep-tdep.c (mep_pseudo_cr_size): Ditto. | |
2383 | (mep_pseudo_cr_index, mep_register_type): Ditto. | |
2384 | (mep_pseudo_register_read, mep_pseudo_register_write): Ditto. | |
2385 | (mep_get_insn, mep_analyze_prologue): Ditto. | |
2386 | * objfiles.c (qsort_cmp): Ditto. | |
2387 | * prologue-value.c (pv_is_identical): Ditto. | |
2388 | * record.c (record_get_loc): Ditto. | |
2389 | * value.c (value_static_field): Ditto. | |
2390 | * xtensa-tdep.c (call0_track_op): Ditto. | |
2391 | ||
c92817ce TT |
2392 | 2010-08-18 Tom Tromey <tromey@redhat.com> |
2393 | ||
2394 | PR symtab/11919: | |
2395 | * gdbtypes.c (lookup_struct_elt_type): Clean up error emission. | |
2396 | * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move | |
2397 | name-copying lower. Document exception behavior. | |
2398 | * completer.c (expression_completer): Catch exceptions from | |
2399 | parse_field_expression. | |
2400 | ||
856d6f99 PA |
2401 | 2010-08-18 Pedro Alves <pedro@codesourcery.com> |
2402 | ||
2403 | PR corefile/8210 | |
2404 | ||
2405 | * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983 | |
2406 | workaround on core files. | |
2407 | (try_thread_db_load_1): Don't try enabling thread event reporting | |
2408 | on core files. | |
2409 | (thread_db_load): Allow thread_db on core files. | |
2410 | (attach_thread): Don't check thread signals on core files, nor try | |
2411 | really attaching to the thread, nor enabling thread event event | |
2412 | reporting. | |
2413 | (thread_db_detach): Don't try disabing thread event reporting or | |
2414 | removing thread event breakpoints when debugging a core file. | |
2415 | (find_new_threads_callback): Don't try enabling thread event | |
2416 | reporting on core files. | |
2417 | (thread_db_find_new_threads_2): Don't look for a stopped lwp when | |
2418 | debugging a core file. | |
2419 | (thread_db_find_new_threads): Don't update thread | |
2420 | cores (processors) when debugging a core (dump). | |
2421 | ||
261b8d08 PA |
2422 | 2010-08-18 Pedro Alves <pedro@codesourcery.com> |
2423 | ||
2424 | PR corefile/8210 | |
2425 | ||
2426 | * corelow.c (add_to_thread_list): Don't use | |
2427 | gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid. | |
2428 | (get_core_register_section): Don't use | |
2429 | gdbarch_core_reg_section_encodes_pid. | |
2430 | ||
2431 | * gdbarch.sh (core_reg_section_encodes_pid): Delete. | |
2432 | * gdbarch.h, gdbarch.c: Regenerate. | |
2433 | * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set | |
2434 | gdbarch_core_reg_section_encodes_pid. | |
2435 | * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto. | |
2436 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto. | |
2437 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto. | |
2438 | ||
f9b42018 YQ |
2439 | 2010-08-18 Yao Qi <yao@codesourcery.com> |
2440 | ||
2441 | * MAINTAINERS : Add myself under Write After Approval. | |
2442 | ||
def98928 TT |
2443 | 2010-08-17 Tom Tromey <tromey@redhat.com> |
2444 | ||
2445 | * NEWS: Mention template parameter support. | |
2446 | ||
0807b50c PA |
2447 | 2010-08-17 Pedro Alves <pedro@codesourcery.com> |
2448 | ||
2449 | PR breakpoints/11371 | |
2450 | ||
2451 | * breakpoint.c (decref_bp_location): Assert the reference count is | |
2452 | sane. | |
2453 | ||
f431efe5 PA |
2454 | 2010-08-17 Pedro Alves <pedro@codesourcery.com> |
2455 | ||
2456 | PR breakpoints/11371 | |
2457 | ||
2458 | * breakpoint.c (breakpoint_init_inferior): Decrement the | |
2459 | location's reference count instead of deleting right away. | |
2460 | (bpstat_free): Decrement the location's reference count. Make | |
2461 | static. | |
2462 | (bpstat_copy): Increment the location's reference count. | |
2463 | (bpstat_find_breakpoint): Adjust. | |
2464 | (bpstat_num): Adjust. | |
2465 | (print_it_typical): Adjust. Use the breakpoint pointer in the | |
2466 | bpstat instead of the location's owner. | |
2467 | (bpstat_alloc): Remove const qualifier from the 'bl' parameter. | |
2468 | Adjust to record the location's owner in the bpstat. | |
2469 | (watchpoint_check): Use the breakpoint pointer in the bpstat | |
2470 | instead of the location's owner. | |
2471 | (bpstat_check_breakpoint_conditions): Don't handle | |
2472 | bp_watchpoint_scope here. Use the breakpoint pointer in the | |
2473 | bpstat instead of the location's owner. | |
2474 | (bpstat_stop_status): Defer inferior function calls to after | |
2475 | building the bpstat list. Handle bp_watchpoint_scope here. Use | |
2476 | the breakpoint pointer in the bpstat instead of the location's | |
2477 | owner. | |
2478 | (bpstat_what): Use the breakpoint pointer in the bpstat instead of | |
2479 | the location's owner. | |
2480 | (free_bp_location): Don't walk bpstats clearing locations. | |
2481 | (incref_bp_location): New. | |
2482 | (decref_bp_location): New. | |
2483 | (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat | |
2484 | instead of the location's owner. | |
2485 | (update_global_location_list): Clear the location's owner, and | |
2486 | decrement the location's reference count instead of deleting it | |
2487 | right away. | |
2488 | (breakpoint_retire_moribund): Decrement the location's reference | |
2489 | count instead of deleting it right away. | |
2490 | (bpstat_remove_bp_location): Delete. | |
2491 | (bpstat_remove_breakpoint): New. | |
2492 | (bpstat_remove_bp_location_callback): Delete. | |
2493 | (bpstat_remove_breakpoint_callback): New. | |
2494 | (delete_breakpoint): Iterate over all threads' stop_bpstat's | |
2495 | clearing references to the breakpoint that is being deleted. | |
2496 | ||
2497 | * breakpoint.h (struct bp_location) <refc>: New field. | |
2498 | <owner>: Update comments. | |
2499 | (bpstat_free): Delete declaration. | |
2500 | (struct bpstats): Change the type of the breakpoint_at field to | |
2501 | struct breakpoint point, from struct bp_location pointer. Add new | |
2502 | field bp_location_at. | |
2503 | ||
14c0d4e1 TT |
2504 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
2505 | ||
2506 | * NEWS: Fix typo. | |
2507 | ||
b56df873 TT |
2508 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
2509 | ||
2510 | * NEWS: Mention watch -location. | |
2511 | ||
d63d0675 JK |
2512 | 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
2513 | ||
2514 | * breakpoint.c (update_watchpoint): Add source empty line. Prefer | |
2515 | EXP_STRING_REPARSE to EXP_STRING. | |
2516 | (watch_command_1): Set also EXP_STRING_REPARSE. | |
2517 | (delete_breakpoint): Free also EXP_STRING_REPARSE. | |
2518 | * breakpoint.h (struct breakpoint): New field exp_string_reparse. | |
2519 | Update comment for exp_string. | |
2520 | ||
06a64a0b TT |
2521 | 2010-08-16 Tom Tromey <tromey@redhat.com> |
2522 | ||
2523 | * value.c (release_value): Clear 'next' pointer. | |
2524 | * breakpoint.c (watch_command_1): Add 'just_location' argument. | |
2525 | (watch_command_wrapper): Update. | |
2526 | (watch_maybe_just_location): New function. | |
2527 | (watch_command): Update. | |
2528 | (rwatch_command_wrapper): Update. | |
2529 | (rwatch_command): Update. | |
2530 | (awatch_command_wrapper): Update. | |
2531 | (awatch_command): Update. | |
2532 | (check_for_argument): New function. | |
2533 | (_initialize_breakpoint): Update help text. | |
2534 | ||
f96b8fa0 UW |
2535 | 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com> |
2536 | ||
2537 | * arm-tdep.c (arm_push_dummy_call): Handle pointers to | |
2538 | typedef'ed function types correctly. | |
2539 | ||
4eb54052 TT |
2540 | 2010-08-13 Tom Tromey <tromey@redhat.com> |
2541 | ||
2542 | * python/python-internal.h (gdbpy_get_hook_function): Don't | |
2543 | declare. | |
2544 | ||
44be957e JK |
2545 | 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
2546 | ||
ba720883 | 2547 | * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them |
44be957e JK |
2548 | static. |
2549 | ||
76d8b686 KW |
2550 | 2010-08-13 Ken Werner <ken.werner@de.ibm.com> |
2551 | ||
2552 | * python/python.c (gdbpy_solib_name): Remove the const qualifier of | |
2553 | the format strings to be compatible with Python 2.4. | |
2554 | ||
8dedea02 VP |
2555 | 2010-08-13 Vladimir Prus <vladimir@codesourcery.com> |
2556 | ||
2557 | Easier and more stubborn MI memory read commands. | |
2558 | ||
2559 | * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes | |
2560 | and data-write-memory-bytes. | |
2561 | * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes) | |
2562 | (mi_cmd_data_write_memory_bytes): New. | |
2563 | * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read. | |
2564 | (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes): | |
2565 | New. | |
2566 | (mi_cmd_list_features): Add "data-read-memory-bytes" feature. | |
2567 | * target.c (target_read_until_error): Remove. | |
2568 | (read_whatever_is_readable, free_memory_read_result_vector) | |
2569 | (read_memory_robust): New. | |
2570 | * target.h (target_read_until_error): Remove. | |
2571 | (struct memory_read_result, free_memory_read_result_vector) | |
2572 | (read_memory_robust): New. | |
2573 | ||
1d9ec526 HZ |
2574 | 2010-08-13 Hui Zhu <teawater@gmail.com> |
2575 | ||
2576 | * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup. | |
2577 | (read_comp_unit): Initialize back_to. | |
2578 | ||
98bfdba5 PA |
2579 | 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com> |
2580 | Pedro Alves <pedro@codesourcery.com> | |
2581 | ||
2582 | * dwarf2read.c: Include "c-lang.h" and "valprint.h". | |
2583 | (struct dwarf2_per_objfile) <reading_partial_symbols>: New field. | |
2584 | (struct partial_die_info) <has_template_arguments>: New field. | |
2585 | <num_attrs>: Change type to unsigned char. | |
2586 | <building_fullname>: New field. | |
2587 | (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only | |
2588 | allocate a CU if we don't have one already. Add a cleanup for the | |
2589 | CU. | |
2590 | (partial_die_full_name): Handle template arguments not in | |
2591 | DW_AT_name. | |
2592 | (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols. | |
2593 | (load_full_comp_unit): Only allocate a CU if we don't have one | |
2594 | already. | |
2595 | (do_ui_file_peek_last): New. | |
2596 | (dwarf2_compute_name): Handle template parameters not in | |
2597 | DW_AT_name. | |
2598 | (read_comp_unit): Read and free abbrevs if not read yet. | |
2599 | (load_partial_dies): Handle template arguments not in DW_AT_name. | |
2600 | (find_partial_die): If we have a CU, but no a partial dies yet, | |
2601 | also read in the CU. | |
2602 | (dwarf2_const_value_attr): New, abstracted out from | |
2603 | dwarf2_const_value. | |
2604 | (dwarf2_const_value, dwarf2_const_value_data): Adjust to use | |
2605 | dwarf2_const_value_attr. | |
2606 | (determine_prefix): Detect and break loops created by RCVT's debug | |
2607 | info. | |
2608 | (maybe_queue_comp_unit): Bail out early if reading partial | |
2609 | symbols. | |
2610 | (follow_die_offset): Load full CU if we have no dies. | |
2611 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public. | |
2612 | * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare. | |
2613 | ||
ca5c20b6 | 2614 | 2010-08-11 Tom Tromey <tromey@redhat.com> |
889bf7c5 | 2615 | Phil Muldoon <pmuldoon@redhat.com> |
ca5c20b6 PM |
2616 | |
2617 | * python/python.c (gdbpy_run_events): New function. | |
2618 | (gdbpy_post_event): Likewise. | |
2619 | (gdbpy_initialize_events): Likewise. | |
2620 | (_initialize_python): Call gdbpy_initialize_events. | |
2621 | ||
7346b668 KW |
2622 | 2010-08-11 Ken Werner <ken.werner@de.ibm.com> |
2623 | ||
2624 | * gdb/valarith.c (vector_binop): New function. | |
2625 | (scalar_binop): Likewise. | |
2626 | (value_binop): Call scalar_binop or vector_binop depending on the types. | |
2627 | * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR. | |
2628 | (evaluate_subexp_with_coercion): Add vector check to not convert vectors | |
2629 | to pointers. | |
2630 | * gdb/value.c (coerce_array): Add vector check to not coerce vectors. | |
2631 | ||
62183e15 TT |
2632 | 2010-08-11 Brad Roberts <braddr@puremagic.com> |
2633 | ||
2634 | * d-lang.c (extract_identifiers): Handle multiple digits. | |
2635 | ||
39d7b0e2 JK |
2636 | 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2637 | ||
2638 | Code cleanup. | |
2639 | * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier. | |
2640 | Rename to dummy_frame_unwind. | |
2641 | (dummy_frame_unwind): Remove. | |
2642 | * dummy-frame.h (dummy_frame_unwind): Reference directly the struct. | |
2643 | * frame-unwind.c (frame_unwind_init): Use address of | |
2644 | dummy_frame_unwind and inline_frame_unwind. | |
2645 | * frame.c (create_sentinel_frame): Use address of | |
2646 | sentinel_frame_unwind. | |
2647 | * inline-frame.c (inline_frame_unwinder): Rename to | |
2648 | inline_frame_unwind. | |
2649 | (inline_frame_unwind): Remove. | |
2650 | * inline-frame.h (inline_frame_unwind): Reference directly the struct. | |
2651 | * sentinel-frame.c (sentinel_frame_unwinder): Rename to | |
2652 | sentinel_frame_unwind. | |
2653 | (sentinel_frame_unwind): Remove. | |
2654 | * sentinel-frame.h (sentinel_frame_unwind): Reference directly the | |
2655 | struct. | |
2656 | ||
9f9a8002 JK |
2657 | 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
2658 | ||
2659 | Code cleanup. | |
2660 | * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type | |
2661 | and returned value. New comment from frame-unwind.h. | |
2662 | * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type. | |
2663 | Extend the comment. | |
2664 | * frame.c (get_frame_id, frame_unwind_register_value) | |
2665 | (create_new_frame, get_prev_frame_1, frame_unwinder_is) | |
2666 | (get_frame_type, frame_unwind_arch): Do not use the return value of | |
2667 | frame_unwind_find_by_frame. | |
2668 | ||
cb2e07a6 | 2669 | 2010-08-11 Phil Muldoon <pmuldoon@redhat.com> |
889bf7c5 | 2670 | Thiago Jung Bauermann <bauerman@br.ibm.com> |
cb2e07a6 PM |
2671 | Tom Tromey <tromey@redhat.com> |
2672 | ||
2673 | * python/python.c (gdbpy_solib_address): New function. | |
2674 | (gdbpy_decode_line): Likewise. | |
2675 | ||
c29c521f TT |
2676 | 2010-08-10 Tom Tromey <tromey@redhat.com> |
2677 | ||
2678 | Revert gdb-add-index addition: | |
2679 | * Makefile.in (install-only): Don't install gdb-add-index. | |
2680 | * gdb-add-index.sh: Remove. | |
2681 | ||
0c012db1 KB |
2682 | 2010-08-09 Kevin Buettner <kevinb@redhat.com> |
2683 | ||
2684 | * remote-sim.c (gdbsim_xfer_inferior_memory): Replace | |
2685 | `target_has_execution' check with `to_has_memory' check. | |
2686 | (gdbsim_has_all_memory, gdbsim_has_memory): New functions. | |
2687 | (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops' | |
2688 | with `gdbsim_has_all_memory' and `gdbsim_has_memory'. | |
2689 | ||
db04efe6 KB |
2690 | 2010-08-09 Kevin Buettner <kevinb@redhat.com> |
2691 | ||
2692 | * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid) | |
2693 | (resume_siggnal, resume_step): Move these static globals... | |
2694 | (struct sim_inferior_data): ...into this new struct. | |
2695 | (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open): | |
2696 | New static globals. | |
2697 | (gdb_callback, callbacks_initialized): Move these globals to | |
2698 | a point earlier in the file. | |
2699 | (check_for_duplicate_sim_descriptor, get_sim_inferior_data) | |
2700 | (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup) | |
2701 | (gdbsim_close_inferior, gdbsim_resume_inferior) | |
2702 | (gdbsim_stop_inferior): New functions. | |
2703 | (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID): | |
2704 | New constants. | |
2705 | (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load) | |
2706 | (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume) | |
2707 | (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait) | |
2708 | (gdbsim_xfer_inferior_memory, gdbsim_files_info) | |
2709 | (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive, | |
2710 | (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set | |
2711 | new local variable `sim_data' in each of these functions. Use | |
2712 | `sim_data' to reference former globals `program_loaded', | |
2713 | `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and | |
2714 | `resume_step'. | |
2715 | (gdbsim_open): Remove local variable `argv'. Put results of call | |
2716 | to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't | |
2717 | make a cleanup for it. Free it though when a sim instance cannot | |
2718 | be obtained. | |
2719 | (gdbsim_close): Free sim_argv and null it out as appropriate. | |
2720 | Close sim instances in all inferiors. | |
2721 | (gdbsim_cntrl_c): Stop all inferiors. | |
2722 | (gdbsim_wait): | |
2723 | (_initialize_remote_sim): Initialize `sim_inferior_data_key'. | |
2724 | ||
e37fd15a SW |
2725 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
2726 | ||
2727 | * dwarf2read.c (new_symbol): Add symbol to variable list at end of | |
2728 | function after symbol construction is complete. | |
2729 | Do the same for template symbol addition to template_symbols list. | |
2730 | ||
45c58896 SW |
2731 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
2732 | ||
2733 | * symtab.c (symbol_get_demangled_name): Remove assertion and | |
2734 | return NULL when language_specific.cplus_specific is not initialized. | |
2735 | * stabsread.c (define_symbol): Set the name before calling | |
2736 | cp_scan_for_anonymous_namespaces. | |
2737 | ||
33e5013e SW |
2738 | 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com> |
2739 | ||
2740 | * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to | |
2741 | SYMBOL_SET_LANGUAGE. | |
2742 | (symbol_init_language_specific): Renamed to symbol_set_language. | |
2743 | * symtab.c (symbol_init_language_specific): Removed redundant check | |
2744 | for language_cplus. | |
2745 | Renamed to symbol_set_language. | |
2746 | * stabsread.c (define_symbol): Updated. | |
2747 | (read_enum_type): Updated | |
2748 | * psymtab.c (add_psymbol_to_bcache): Updated. | |
2749 | * minsyms.c (install_minimal_symbols): Updated. | |
2750 | * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of | |
2751 | SYMBOL_LANGUAGE to set the language. | |
2752 | * minsyms.c (prim_record_minimal_symbol_full): Ditto. | |
2753 | * mdebugread.c (new_symbol): Ditto. | |
2754 | * cp-namespace.c (check_one_possible_namespace_symbol): Ditto. | |
2755 | * dwarf2read.c (new_symbol_full): Ditto. | |
2756 | * jv-lang.c (add_class_symbol): Ditto. | |
2757 | ||
5da1313b JK |
2758 | 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
2759 | ||
2760 | * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file) | |
2761 | (make_cleanup_restore_page_info) | |
2762 | (set_batch_flag_and_make_cleanup_restore_page_info): New declarations. | |
2763 | * gdbcmd.h (execute_command_to_string): New declaration. | |
2764 | * python/python.c (struct restore_ui_file_closure, restore_ui_file) | |
2765 | (make_cleanup_restore_ui_file): Move to utils.c | |
2766 | (execute_gdb_command) <to_string>: Move ... | |
2767 | * top.c (execute_command_to_string): ... here. Call | |
2768 | set_batch_flag_and_make_cleanup_restore_page_info. | |
2769 | * utils.c (make_cleanup_restore_integer): New source file blank line. | |
2770 | (make_cleanup_restore_uinteger): New. | |
2771 | (struct restore_ui_file_closure, do_restore_ui_file) | |
2772 | (make_cleanup_restore_ui_file): Move here from python/python.c. | |
2773 | (init_page_info) <batch_flag> | |
2774 | (do_restore_page_info_cleanup, make_cleanup_restore_page_info) | |
2775 | (set_batch_flag_and_make_cleanup_restore_page_info): New. | |
2776 | ||
c820c52a PA |
2777 | 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com> |
2778 | ||
2779 | * thread.c (add_thread_silent): Use null_ptid instead of | |
2780 | minus_one_ptid while getting rid of stale inferior_ptid. | |
2781 | ||
8da614df CV |
2782 | 2010-08-06 Corinna Vinschen <vinschen@redhat.com> |
2783 | ||
2784 | * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member. | |
2785 | Throughout, call read_encoded_value with ptr_size rather than addr_size. | |
2786 | (decode_frame_entry_1): Remove redundant setting of | |
2787 | addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit | |
2788 | to determine addr_size in Dwarf versions < 4. Set ptr_size dependent | |
2789 | on examined frame section. Add comment to explain why. | |
2790 | * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy | |
2791 | comment to explain usage. | |
2792 | * gdbarch.c: Regenerate. | |
2793 | * gdbarch.h: Regenerate. | |
2794 | ||
2795 | * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4. | |
2796 | ||
e4195b40 JK |
2797 | 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2798 | ||
2799 | Code cleanup. | |
2800 | * varobj.c (varobj_create): Move variables fi, old_fi and block to | |
2801 | a more inner block. | |
2802 | ||
a3217aa0 PA |
2803 | 2010-08-05 Pedro Alves <pedro@codesourcery.com> |
2804 | ||
2805 | * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*) | |
2806 | (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) | |
2807 | (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*) | |
2808 | (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add | |
2809 | linux-tdep.o to gdb_target_obs. | |
2810 | ||
e2b4a699 | 2811 | 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com> |
889bf7c5 PA |
2812 | |
2813 | * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first | |
e2b4a699 | 2814 | argument. |
889bf7c5 | 2815 | |
50e8a0d5 HZ |
2816 | 2010-08-05 Hui Zhu <teawater@gmail.com> |
2817 | ||
2818 | * mips-linux-tdep.c(regset.h): New include. | |
2819 | (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper, | |
2820 | mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper, | |
2821 | mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper, | |
2822 | mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper, | |
2823 | mips_linux_regset_from_core_section): New functions. | |
2824 | (fetch_core_registers, regset_core_fns): Deleted. | |
2825 | (mips_linux_init_abi): Add mips_linux_regset_from_core_section. | |
2826 | Deleted regset_core_fns. | |
2827 | * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset, | |
2828 | tdep->gregset64, tdep->fpregset and tdep->fpregset64. | |
2829 | * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset | |
2830 | and fpregset64. | |
2831 | ||
70728992 PA |
2832 | 2010-08-04 Pedro Alves <pedro@codesourcery.com> |
2833 | ||
2834 | * s390-tdep.c: Include linux-tdep.h. | |
2835 | (s390_gdbarch_init): Call linux_init_abi. | |
2836 | ||
a5ee0f0c PA |
2837 | 2010-08-04 Pedro Alves <pedro@codesourcery.com> |
2838 | ||
2839 | * corelow.c (core_pid_to_str): Default to using normal_pid_to_str | |
2840 | instead of printing "Thread" here. | |
2841 | * linux-tdep.c: Include inferior.h. | |
2842 | (linux_core_pid_to_str): New. | |
2843 | (linux_init_abi): New. | |
2844 | * linux-tdep.h (linux_init_abi): Declare. | |
2845 | * alpha-linux-tdep.c: Include linux-tdep.h. | |
2846 | (alpha_linux_init_abi): Call linux_init_abi. | |
2847 | * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi. | |
2848 | * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi. | |
2849 | * frv-linux-tdep.c: Include linux-tdep.h | |
2850 | (frv_linux_init_abi): Call linux_init_abi. | |
2851 | * hppa-linux-tdep.c: Include linux-tdep.h | |
2852 | (hppa_linux_init_abi): Call linux_init_abi. | |
2853 | * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi. | |
2854 | * ia64-linux-tdep.c: Include linux-tdep.h. | |
2855 | (ia64_linux_init_abi): Call linux_init_abi. | |
2856 | * m32r-linux-tdep.c: Include linux-tdep.h. | |
2857 | (m32r_linux_init_abi): Call linux_init_abi. | |
2858 | * m68klinux-tdep.c: Include linux-tdep.h. | |
2859 | (m68k_linux_init_abi): Call linux_init_abi. | |
2860 | * microblaze-linux-tdep.c: Include linux-tdep.h. | |
2861 | (microblaze_linux_init_abi): Call linux_init_abi. | |
2862 | * mips-linux-tdep.c: Include linux-tdep.h. | |
2863 | (mips_linux_init_abi): Call linux_init_abi. | |
2864 | * mn10300-linux-tdep.c: Include linux-tdep.h. | |
2865 | (am33_linux_init_osabi): Call linux_init_abi. Rename the | |
2866 | 'gdbinfo' parameter to 'info'. | |
2867 | * ppc-linux-tdep.c: Include linux-tdep.h. | |
2868 | (ppc_linux_init_abi): Call linux_init_abi. | |
2869 | * sh-linux-tdep.c: Include linux-tdep.h. | |
2870 | (sh_linux_init_abi): Call linux_init_abi. | |
2871 | * sparc-linux-tdep.c: Include linux-tdep.h. | |
2872 | (sparc32_linux_init_abi): Call linux_init_abi. | |
2873 | * sparc64-linux-tdep.c: Include linux-tdep.h. | |
2874 | (sparc64_linux_init_abi): Call linux_init_abi. | |
2875 | * xtensa-linux-tdep.c: Include linux-tdep.h. | |
2876 | (xtensa_linux_init_abi): Call linux_init_abi. | |
2877 | * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New. | |
2878 | (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str | |
2879 | callback. | |
2880 | ||
bc043ef3 DE |
2881 | 2010-08-03 Doug Evans <dje@google.com> |
2882 | ||
2883 | * breakpoint.c (bpdisp_text): Constify bpdisps. | |
2884 | * solib-svr4.c (solib_break_names): Constify. | |
2885 | (bkpt_names, main_name_list): Constify. | |
2886 | (match_main): Constify soname arg. | |
63cdd227 DE |
2887 | (bfd_lookup_symbol): Remove unnecessary forward decl. |
2888 | Constify symname arg. | |
bc043ef3 DE |
2889 | (enable_break): Constify bkpt_namep. |
2890 | * symtab.c (search_symbols): Constify types, types2, types3, types4. | |
2891 | (symtab_symbol_info): Constify classnames. | |
2892 | ||
585d1eb8 PM |
2893 | 2010-08-03 Phil Muldoon <pmuldoon@redhat.com> |
2894 | ||
2895 | * NEWS: Document Python value inferior function calls. | |
2896 | ||
2de00c64 DE |
2897 | 2010-08-02 Doug Evans <dje@google.com> |
2898 | ||
2899 | * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature. | |
2900 | ||
02d868e8 PP |
2901 | 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
2902 | ||
2903 | * linux-thread-db.c (libthread_db_debug): New variable. | |
2904 | (thread_db_find_new_threads_silently): Control verbosity with it. | |
2905 | (try_thread_db_load_1, try_thread_db_load): Likewise. | |
2906 | (find_new_threads_once): Likewise. | |
2907 | (_initialize_thread_db): Set/show it. | |
2908 | ||
a19cae16 JK |
2909 | 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
2910 | ||
2911 | * common/signals.c (signals): Move the content to signals.def. | |
2912 | Include it. Remove the INDENT comments. | |
2913 | ||
c2bbed2a TT |
2914 | 2010-07-30 Tom Tromey <tromey@redhat.com> |
2915 | ||
2916 | * Makefile.in (install-only): Install gdb-add-index. | |
2917 | * gdb-add-index.sh: New file. | |
2918 | ||
f32b2f09 CR |
2919 | 2010-07-31 Renquan Cheng <crq@gcc.gnu.org> |
2920 | ||
2921 | * MAINTAINERS: Add myself for write after approval privileges. | |
2922 | ||
1276c759 JK |
2923 | 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
2924 | ||
2925 | * symfile.c (addr_section_name): New function. | |
2926 | (addrs_section_compar): Use it. | |
2927 | (addr_info_make_relative): Use it. Move variable sect_name into a more | |
2928 | inner block. Make ".dynbss" and ".sdynbss" checks more strict. | |
2929 | ||
420697bb TT |
2930 | 2010-07-30 Tom Tromey <tromey@redhat.com> |
2931 | ||
2932 | * configure: Rebuild. | |
2933 | * configure.ac: Add missing case for Python 2.7. | |
2934 | ||
d0d99561 DD |
2935 | 2010-07-29 DJ Delorie <dj@redhat.com> |
2936 | ||
2937 | * rx-tdep.c (rx_analyze_prologue): Don't require branches to have | |
2938 | conditions. | |
2939 | ||
0b29bdde PA |
2940 | 2010-07-29 Pedro Alves <pedro@codesourcery.com> |
2941 | ||
2942 | * PROBLEMS: Remove mention of all problems. | |
2943 | ||
110ed339 PA |
2944 | 2010-07-28 Pedro Alves <pedro@codesourcery.com> |
2945 | ||
2946 | PR build/11848 | |
2947 | * configure.ac: Check for wresize. | |
2948 | * configure, config.in: Regenerate. | |
2949 | * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call | |
2950 | with HAVE_WRESIZE. | |
2951 | ||
326fd672 TT |
2952 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2953 | ||
2954 | PR python/11060: | |
2955 | * python/py-type.c (typy_legacy_template_argument): New function, | |
2956 | extracted from typy_template_argument. | |
2957 | (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a | |
2958 | value when needed. | |
2959 | ||
4ac8c4da TT |
2960 | 2010-07-28 Oleg Nesterov <oleg@redhat.com> |
2961 | ||
2962 | * remote.c (readchar): Call pop_target in case of SERIAL_ERROR. | |
2963 | ||
053315c2 TT |
2964 | 2010-07-27 Tom Tromey <tromey@redhat.com> |
2965 | ||
2966 | * dwarf2read.c (dwarf2_const_value_data): Never sign extend. | |
2967 | ||
3ce3b1ba PA |
2968 | 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
2969 | ||
2970 | * dwarf2read.c (read_subroutine_type): Improve THIS detection, | |
2971 | handling DW_AT_object_pointer, and workaround GCC PR 43053. | |
2972 | ||
2bb4f988 TT |
2973 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2974 | ||
2975 | * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h. | |
2976 | ||
74232302 JB |
2977 | 2010-07-28 Joel Brobecker <brobecker@adacore.com> |
2978 | ||
2979 | * remote.c (remote_download_tracepoint): Add missing gettext markup. | |
2980 | * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise. | |
2981 | ||
385d04dc JB |
2982 | 2010-07-28 Joel Brobecker <brobecker@adacore.com> |
2983 | ||
2984 | * breakpoint.c (breakpoint_re_set_one): Move call to set_language | |
2985 | down, just before the block that parse the breakpoint addr_string. | |
2986 | ||
34eaf542 TT |
2987 | 2010-07-28 Tom Tromey <tromey@redhat.com> |
2988 | ||
2989 | PR c++/9946: | |
2990 | * symfile.c (reread_symbols): Clear template_symbols. | |
2991 | * symtab.h (struct symbol) <is_cplus_template_function>: New | |
2992 | field. | |
2993 | (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. | |
2994 | (struct template_symbol): New. | |
2995 | * symtab.c (lookup_symbol_aux_local): Use | |
2996 | cp_lookup_symbol_imports_or_template. | |
2997 | * objfiles.h (struct objfile) <template_symbols>: New field. | |
2998 | * objfiles.c (relocate_one_symbol): New function. | |
2999 | (objfile_relocate1): Use it. Relocate isolated symbols. | |
3000 | * gdbtypes.h (struct cplus_struct_type) <n_template_arguments, | |
3001 | template_arguments>: New fields. | |
3002 | (TYPE_N_TEMPLATE_ARGUMENTS): New macro. | |
3003 | (TYPE_TEMPLATE_ARGUMENTS): Likewise. | |
3004 | (TYPE_TEMPLATE_ARGUMENT): Likewise. | |
3005 | (lookup_typename): Update. | |
3006 | * gdbtypes.c (lookup_typename): Constify "block" argument. | |
3007 | * dwarf2read.c: Include vec.h. | |
3008 | (symbolp): New typedef. | |
3009 | (read_func_scope): Read template arguments. Allocate a | |
3010 | template_symbol when needed. | |
3011 | (read_structure_type): Read template arguments. | |
3012 | (new_symbol_full): New function, from new_symbol. Handle | |
3013 | DW_TAG_template_type_param and DW_TAG_template_value_param. | |
3014 | (new_symbol): Rewrite as wrapper. | |
3015 | * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. | |
3016 | * cp-namespace.c: Include language.h. | |
3017 | (search_symbol_list): New function. | |
3018 | (cp_lookup_symbol_imports_or_template): Likewise. | |
3019 | ||
d27b3be4 PA |
3020 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
3021 | ||
3022 | * tui/tui-win.c (make_visible_with_new_height): Resize and move | |
3023 | the command window to the new size and position. | |
3024 | ||
0036e657 PA |
3025 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
3026 | ||
a782f43e | 3027 | * tui/tui-win.c (tui_resize_all): Update the locator's origin's |
0036e657 PA |
3028 | coordinates. |
3029 | ||
36900355 PA |
3030 | 2010-07-28 Balazs Kezes <rlblaster@gmail.com> |
3031 | ||
a782f43e | 3032 | * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all |
36900355 | 3033 | after a detecting a resize. |
a782f43e | 3034 | * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to |
36900355 PA |
3035 | call. |
3036 | ||
db5e03ae PA |
3037 | 2010-07-28 Pedro Alves <pedro@codesourcery.com> |
3038 | ||
3039 | * configure.ac: Check for resize_term. | |
3040 | * configure, config.in: Regenerate. | |
3041 | ||
b71fff68 JB |
3042 | 2010-07-27 Joel Brobecker <brobecker@adacore.com> |
3043 | ||
3044 | * MAINTAINERS (Write After Approval): Reorder a couple of entries. | |
3045 | ||
9b1c24c8 PA |
3046 | 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com> |
3047 | ||
3048 | * dwarf2read.c (read_string): Rename to ... | |
3049 | (read_direct_string): ... this. | |
3050 | (skip_one_die, read_attribute_value, dwarf_decode_line_header) | |
3051 | (dwarf_decode_lines, dwarf_decode_macros): Adjust. | |
3052 | ||
00390b84 JK |
3053 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3054 | ||
3055 | * linux-nat.c (linux_nat_lp_status_is_event): New function. | |
3056 | (count_events_callback, select_event_lwp_callback) | |
3057 | (cancel_breakpoints_callback, linux_nat_wait_1): Use it. | |
3058 | ||
26ab7092 JK |
3059 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3060 | ||
3061 | * ia64-linux-nat.c (ia64_linux_status_is_event): New function. | |
3062 | (_initialize_ia64_linux_nat): Install it. | |
3063 | * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event) | |
3064 | (linux_nat_set_status_is_event): New. | |
3065 | (stop_wait_callback, count_events_callback, select_event_lwp_callback) | |
3066 | cancel_breakpoints_callback, linux_nat_filter_event) | |
3067 | (linux_nat_wait_1): Use linux_nat_status_is_event. | |
3068 | * linux-nat.h (linux_nat_set_status_is_event): New prototype. | |
3069 | ||
283e6a52 TT |
3070 | 2010-07-27 Tom Tromey <tromey@redhat.com> |
3071 | ||
3072 | * NEWS: Mention labels, .gdb_index. | |
3073 | ||
53a71c06 CR |
3074 | 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg> |
3075 | ||
3076 | * cli/cli-cmds.c (disassemble_command): Add support of disassemble | |
3422f666 | 3077 | "start,+length" form of arguments. |
53a71c06 CR |
3078 | * NEWS: Add "Changed commands" (disassemble) section for "Changes |
3079 | since GDB 7.1"; and merge two separated paragraphs of disassemble | |
3080 | description in "Changes in GDB 7.0". | |
3081 | ||
c63a1f86 JK |
3082 | 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
3083 | ||
3084 | * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. | |
3085 | * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. | |
3086 | (fputs_maybe_filtered): Do not do filtering also on | |
3087 | ! INPUT_FROM_TERMINAL_P. | |
3088 | ||
abebb8b0 JB |
3089 | 2010-07-27 Joel Brobecker <brobecker@adacore.com> |
3090 | ||
3091 | * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline | |
3092 | in warning message. | |
3093 | ||
5374244e PM |
3094 | 2010-07-27 Phil Muldoon <pmuldoon@redhat.com> |
3095 | ||
3096 | * python/py-value.c (valpy_call): New Function. | |
3097 | ||
ac0b195c KW |
3098 | 2010-07-27 Ken Werner <ken.werner@de.ibm.com> |
3099 | ||
889bf7c5 | 3100 | * dwarf2read.c (dwarf2_read_index): Initialize the types_list and |
ac0b195c KW |
3101 | types_list_elements variables. |
3102 | ||
09d8bd00 TT |
3103 | 2010-07-26 Tom Tromey <tromey@redhat.com> |
3104 | ||
3105 | * dwarf2loc.c (locexpr_describe_location_piece): Also recognize | |
3106 | TLS with DW_OP_const4u or DW_OP_const8u. | |
3107 | ||
9fe70b4f TJB |
3108 | 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3109 | ||
3110 | * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get | |
3111 | VSX registers contents. | |
3112 | ||
caac4577 JG |
3113 | 2010-07-26 Jerome Guitton <guitton@adacore.com> |
3114 | ||
3115 | * dwarf2read.c (add_partial_symbol): Do not add a global variable if | |
3116 | its adress is null. Add comment to explain why. | |
3117 | (new_symbol): Ditto. | |
3118 | ||
857d11d0 JK |
3119 | 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
3120 | ||
3121 | * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to | |
3122 | the host signal first. | |
3123 | ||
1fd400ff TT |
3124 | 2010-07-23 Tom Tromey <tromey@redhat.com> |
3125 | ||
3126 | * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units, | |
3127 | type_comp_units>: New fields. | |
3128 | (dw2_get_cu): New function. | |
3129 | (create_cus_from_index): Remove unused argument. | |
3130 | (create_signatured_type_hash_from_index): New function. | |
3131 | (create_addrmap_from_index): Update. | |
3132 | (dwarf2_read_index): Handle version 2. | |
3133 | (dw2_find_last_source_symtab, dw2_forget_cached_source_info) | |
3134 | (dw2_lookup_symtab, dw2_do_expand_symtabs_matching) | |
3135 | (dw2_print_stats, dw2_expand_all_symtabs) | |
3136 | (dw2_expand_symtabs_with_filename, dw2_find_symbol_file) | |
3137 | (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update. | |
3138 | (dwarf2_initialize_objfile): Call create_debug_types_hash_table. | |
3139 | (allocate_signatured_type_hash_table): New function. | |
3140 | (add_signatured_type_cu_to_list): Likewise. | |
3141 | (create_debug_types_hash_table): Use them. Set type_comp_units. | |
3142 | (read_signatured_type): Ensure section data is available. | |
3143 | (add_address_entry): Don't record empty ranges. | |
3144 | (struct signatured_type_index_data): New. | |
3145 | (write_one_signatured_type): New function. | |
3146 | (write_psymtabs_to_index): Write type CUs. | |
3147 | (save_gdb_index_command): Update comment. | |
3148 | (process_type_comp_unit): Move inititalization of | |
3149 | from_debug_types... | |
3150 | (create_debug_types_hash_table): ... here. | |
3151 | ||
3a674486 JK |
3152 | 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
3153 | ||
3154 | * gdb_gcore.sh (tmpfile): Remove the variable, its initialization, | |
3155 | cleanup and generating of gdb script to it. | |
3156 | (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination | |
3157 | and terminal size. Convert $tmpfile to a series of -ex-es. | |
3158 | ||
54ec275a KS |
3159 | 2010-07-23 Keith Seitz <keiths@redhat.com> |
3160 | ||
3161 | * symtab.c (basic_lookup_transparent_type): Call pre-expand | |
3162 | hook for STATIC_BLOCK types, too. | |
3163 | ||
8fd447e6 KS |
3164 | 2010-07-23 Keith Seitz <keiths@redhat.com> |
3165 | ||
3166 | * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr | |
3167 | and vector definition. | |
3168 | ||
25b72dde JK |
3169 | 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
3170 | ||
3171 | * linux-nat.c (cancel_breakpoint): Remove unused forward declaration. | |
3172 | ||
96d19272 JK |
3173 | 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
3174 | ||
3175 | * dwarf2read.c: Include completer.h. | |
3176 | (save_gdb_index_command): Use matching usage command name. | |
3177 | (_initialize_dwarf2_read): New variable c, initialize it by add_cmd. | |
3178 | Set filename_completer for it. | |
3179 | ||
ca1f3406 TT |
3180 | 2010-07-22 Tom Tromey <tromey@redhat.com> |
3181 | ||
3182 | * dwarf2read.c (create_debug_types_hash_table): Set objfile on | |
3183 | type signature's per-CU data. | |
3184 | ||
ba25b921 PA |
3185 | 2010-07-22 Pedro Alves <pedro@codesourcery.com> |
3186 | ||
3187 | * NEWS: Mention target reported shared libraries support by | |
3188 | default. | |
3189 | ||
23bd0f7c PA |
3190 | 2010-07-21 Pedro Alves <pedro@codesourcery.com> |
3191 | ||
3192 | PR symtab/11827 | |
3193 | ||
3194 | Revert: | |
3195 | 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> | |
3196 | * dwarf2read.c (process_die): Also allow DW_TAG_const_type | |
3197 | and DW_TAG_volatile_type. | |
3198 | (new_symbol): Likewise. | |
3199 | ||
883df6dd SW |
3200 | 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com> |
3201 | ||
3202 | * eval.c (evaluate_subexp_standard): Disabled evaluation of C++ | |
3203 | function symbols before overload resolution. | |
3204 | ||
269b11a2 PA |
3205 | 2010-07-21 Pedro Alves <pedro@codesourcery.com> |
3206 | ||
3207 | * breakpoint.c (bptype_string): New, abstracted out from | |
3208 | print_one_breakpoint_location. | |
3209 | (print_one_breakpoint_location): Adjust. | |
3210 | (breakpoint_1): Adjust the type column width dynamically. | |
3211 | ||
569b05a5 JK |
3212 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
3213 | ||
3214 | * symfile.c (find_separate_debug_file_by_debuglink): Remove | |
3215 | a gdb_assert call, new comment. | |
3216 | ||
ad34eb2f JK |
3217 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
3218 | ||
3219 | * linux-nat.c (linux_handle_extended_wait): Handle case when | |
3220 | event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP. | |
3221 | ||
33355866 JK |
3222 | 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
3223 | ||
3224 | Code cleanup. | |
3225 | * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling | |
3226 | linux_nat_wait_1. Use always LP->STATUS afterwards. | |
3227 | ||
26590820 HZ |
3228 | 2010-07-20 Hui Zhu <teawater@gmail.com> |
3229 | ||
3230 | * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. | |
3231 | (inf_ptrace_attach): Ditto. | |
3232 | ||
c0edd9ed JK |
3233 | 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com> |
3234 | ||
3235 | Make core files the process_stratum. | |
3236 | * corefile.c (core_target): New variable. | |
3237 | (core_file_command): Remove variable t, use core_target. | |
3238 | * corelow.c (core_ops): Make it static. | |
3239 | (init_core_ops): Change to process_stratum. Initialize CORE_TARGET. | |
3240 | * defs.h (make_cleanup_unpush_target): New prototype. | |
3241 | * gdbarch.h: Regenerate. | |
3242 | * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment. | |
3243 | * gdbcore.h (core_target): New declaration. | |
3244 | * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New | |
3245 | variables ops_already_pushed and back_to. Use push_target, | |
3246 | make_cleanup_unpush_target and discard_cleanups calls. | |
3247 | * record.c (record_open): Replace core_stratum by a core_bfd check. | |
3248 | * target.c (target_is_pushed): New function. | |
3249 | (find_core_target): Remove. | |
3250 | * target.h (enum strata) <core_stratum>: Remove. | |
3251 | (target_is_pushed): New declaration. | |
3252 | (find_core_target): Remove declaration. | |
3253 | * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment. | |
3254 | * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. | |
3255 | ||
f02253f1 HZ |
3256 | 2010-07-19 Hui Zhu <teawater@gmail.com> |
3257 | ||
3258 | * breakpoint.c (single_step_breakpoints_inserted): New | |
3259 | function. | |
3260 | * breakpoint.h (single_step_breakpoints_inserted): Extern. | |
3261 | * infrun.c (maybe_software_singlestep): Add check code. | |
3262 | * record.c (record_resume): Add code for software single step. | |
3263 | (record_wait): Ditto. | |
3264 | ||
78768c4a JK |
3265 | 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
3266 | ||
3267 | * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into | |
3268 | a more inner block. Remove its unused declaration initializer. | |
3269 | ||
431e49aa TJB |
3270 | 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com> |
3271 | ||
3272 | * NEWS: Mention support for the new ptrace interface and hardware | |
3273 | accelerated watchpoint conditions on powerpc-linux. | |
3274 | ||
bd91e7ae OS |
3275 | 2010-07-16 Ozkan Sezer <sezeroz@gmail.com> |
3276 | ||
3277 | * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned | |
3278 | long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars | |
3279 | and host_address_to_string() and %s for pointers. | |
3280 | (debug_to_remove_breakpoint): Likewise. | |
3281 | (debug_to_region_ok_for_hw_watchpoint): Likewise. | |
3282 | (debug_to_can_accel_watchpoint_condition): Likewise. | |
3283 | (debug_to_stopped_data_address): Likewise. | |
3284 | (debug_to_watchpoint_addr_within_range): Likewise. | |
3285 | (debug_to_insert_hw_breakpoint): Likewise. | |
3286 | (debug_to_remove_hw_breakpoint): Likewise. | |
3287 | (debug_to_insert_watchpoint): Likewise. | |
3288 | (debug_to_remove_watchpoint): Likewise. | |
3289 | ||
29df156d SW |
3290 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
3291 | ||
3292 | * symtab.h (symbol_set_demangled_name): Now takes an optional objfile* | |
3293 | argument. | |
3294 | (cplus_specific): New struct. | |
3295 | * symtab.c (symbol_set_demangled_name): Updated. | |
3296 | Use cplus_specific for cplus symbols. | |
3297 | (symbol_get_demangled_name): Retrive the name from the cplus_specific | |
3298 | struct for cplus symbols. | |
3299 | (symbol_init_language_specific): Set cplus_specific for cplus symbols. | |
3300 | (symbol_set_names): Pass objfile to symbol_set_demangled_name. | |
3301 | * symtab.c (symbol_init_cplus_specific): New function. | |
3302 | ||
b250c185 SW |
3303 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
3304 | ||
3305 | * symtab.h (symbol_set_demangled_name): New function. | |
3306 | (symbol_get_demangled_name): New function. | |
3307 | * symtab.c (symbol_set_demangled_name): New function. | |
3308 | (symbol_get_demangled_name): New function. | |
3309 | (symbol_init_language_specific): Use demangled_name setter and getter. | |
3310 | (symbol_set_names): Ditto. | |
3311 | (symbol_natural_name): Ditto. | |
3312 | (symbol_demangled_name): Ditto. | |
3313 | * dwarf2read.c (new_symbol): Ditto. | |
3314 | ||
afa16725 SW |
3315 | 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> |
3316 | ||
3317 | * symtab.h: Renamed cplus_specific to mangled_lang. | |
3318 | * symtab.c (symbol_init_language_specific): Updated. | |
3319 | (symbol_set_names): Updated. | |
3320 | (symbol_natural_name): Updated. | |
3321 | (symbol_demangled_name): Updated. | |
3322 | * ada-lang.c (ada_decode_symbol): Updated. | |
3323 | * dwarf2read.c (new_symbol): Updated. | |
3324 | ||
3cbaedff KW |
3325 | 2010-07-14 Ken Werner <ken.werner@de.ibm.com> |
3326 | ||
3327 | * valops.c (value_assign): Do not call to value_coerce_to_target. | |
3328 | (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR. | |
3329 | ||
c932f1be KW |
3330 | 2010-07-14 Ken Werner <ken.werner@de.ibm.com> |
3331 | ||
3332 | * MAINTAINERS: Add myself for write after approval privileges. | |
3333 | ||
91158a56 TT |
3334 | 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com> |
3335 | ||
3336 | * c-valprint.c (c_val_print): Add embedded_offset to address in | |
3337 | call to val_print_array_elements. | |
3338 | ||
b3b272e1 TT |
3339 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
3340 | ||
3341 | * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'. | |
3342 | ||
bb3fa9d0 TT |
3343 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
3344 | ||
3345 | * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to | |
3346 | objfile. | |
3347 | ||
dd786858 TT |
3348 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
3349 | ||
3350 | * symfile.c (set_initial_language): Update. | |
3351 | (deduce_language_from_filename): Argument type now const. | |
3352 | * symtab.h (find_main_filename): Update. | |
3353 | (deduce_language_from_filename): Update. | |
3354 | * symtab.c (find_main_filename): Make result const. | |
3355 | * dwarf2read.c (dw2_find_symbol_file): Change return type. | |
3356 | * psymtab.c (find_symbol_file_from_partial): Change return type. | |
3357 | * symfile.h (struct quick_symbol_functions) <find_symbol_file>: | |
3358 | Make result const. | |
3359 | ||
9291a0cd TT |
3360 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
3361 | ||
3362 | * breakpoint.c (save_cmdlist): No longer static. | |
3363 | * gdbcmd.h (save_cmdlist): Declare. | |
3364 | * symfile.c (symbol_file_add_with_addrs_or_offsets): Set | |
3365 | OBJF_READNOW on objfile if readnow_symbol_files. | |
3366 | * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile. | |
3367 | (elf_sym_fns_gdb_index): New global. | |
3368 | * dwarf2read.c: Include exceptions.h. | |
3369 | (offset_type): New. | |
3370 | (struct mapped_index): New. | |
3371 | (dwarf2_per_cu_data_ptr): New typedef. | |
3372 | (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>: | |
3373 | New fields. | |
3374 | (GDB_INDEX_SECTION): New define. | |
3375 | (struct dwarf2_per_cu_quick_data): New. | |
3376 | (struct dwarf2_per_cu_data) <objfile>: New field. | |
3377 | <psymtab>: Removed. | |
3378 | <v>: New field. | |
3379 | (byte_swap): New function. | |
3380 | (MAYBE_SWAP): New macro. | |
3381 | (INDEX_SUFFIX): New macro. | |
3382 | (dw2_do_instantiate_symtab): New function. | |
3383 | (dw2_instantiate_symtab): Likewise. | |
3384 | (create_cus_from_index): Likewise. | |
3385 | (create_addrmap_from_index): Likewise. | |
3386 | (mapped_index_string_hash): Likewise. | |
3387 | (find_slot_in_mapped_hash): Likewise. | |
3388 | (dwarf2_read_index): Likewise. | |
3389 | (dw2_setup): Likewise. | |
3390 | (dw2_require_line_header): Likewise. | |
3391 | (dw2_require_full_path): Likewise. | |
3392 | (dw2_find_last_source_symtab): Likewise. | |
3393 | (dw2_forget_cached_source_info): Likewise. | |
3394 | (dw2_lookup_symtab): Likewise. | |
3395 | (dw2_lookup_symbol): Likewise. | |
3396 | (dw2_do_expand_symtabs_matching): Likewise. | |
3397 | (dw2_pre_expand_symtabs_matching): Likewise. | |
3398 | (dw2_print_stats): Likewise. | |
3399 | (dw2_dump): Likewise. | |
3400 | (dw2_relocate): Likewise. | |
3401 | (dw2_expand_symtabs_for_function): Likewise. | |
3402 | (dw2_expand_all_symtabs): Likewise. | |
3403 | (dw2_expand_symtabs_with_filename): Likewise. | |
3404 | (dw2_find_symbol_file): Likewise. | |
3405 | (dw2_map_ada_symtabs): Likewise. | |
3406 | (dw2_expand_symtabs_matching): Likewise. | |
3407 | (dw2_find_pc_sect_symtab): Likewise. | |
3408 | (dw2_map_symbol_names): Likewise. | |
3409 | (dw2_map_symbol_filenames): Likewise. | |
3410 | (dw2_has_symbols): Likewise. | |
3411 | (dwarf2_gdb_index_functions): New global. | |
3412 | (dwarf2_initialize_objfile): New function. | |
3413 | (process_psymtab_comp_unit): Update. | |
3414 | (add_partial_subprogram): Likewise. | |
3415 | (dwarf2_psymtab_to_symtab): Likewise. | |
3416 | (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab. | |
3417 | (process_full_comp_unit): Update. | |
3418 | (find_file_and_directory): New function. | |
3419 | (read_file_scope): Use find_file_and_directory. | |
3420 | (dwarf2_per_cu_objfile): Update. | |
3421 | (dwarf2_per_cu_addr_size): Update. | |
3422 | (dwarf2_per_cu_offset_size): Update. | |
3423 | (dwarf2_free_objfile): Free the index, if needed. | |
3424 | (dwarf2_per_objfile_free): Unmap the index, if needed. | |
3425 | (struct strtab_entry): New. | |
3426 | (hash_strtab_entry): New function. | |
3427 | (eq_strtab_entry): Likewise. | |
3428 | (create_strtab): Likewise. | |
3429 | (add_string): Likewise. | |
3430 | (struct symtab_index_entry): New. | |
3431 | (struct mapped_symtab): New. | |
3432 | (hash_symtab_entry): New function. | |
3433 | (eq_symtab_entry): Likewise. | |
3434 | (delete_symtab_entry): Likewise. | |
3435 | (create_index_table): Likewise. | |
3436 | (create_mapped_symtab): Likewise. | |
3437 | (cleanup_mapped_symtab): Likewise. | |
3438 | (find_slot): Likewise. | |
3439 | (hash_expand): Likewise. | |
3440 | (add_index_entry): Likewise. | |
3441 | (add_indices_to_cpool): Likewise. | |
3442 | (write_hash_table): Likewise. | |
3443 | (add_address_entry): Likewise. | |
3444 | (write_psymbols): Likewise. | |
3445 | (write_obstack): Likewise. | |
3446 | (unlink_if_set): Likewise. | |
3447 | (write_psymtabs_to_index): Likewise. | |
3448 | (save_gdb_index_command): Likewise. | |
3449 | (_initialize_dwarf2_read): Install "save gdb-index" | |
3450 | command. | |
3451 | (create_all_comp_units): Initialize 'objfile' field of CU. | |
3452 | (dwarf2_locate_sections): Check for .gdb_index. | |
3453 | * psymtab.h (dwarf2_gdb_index_functions): Declare. | |
3454 | * symfile.h (dwarf2_initialize_objfile): Declare. | |
3455 | ||
58b6ab13 TT |
3456 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
3457 | ||
3458 | * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook. | |
3459 | (basic_lookup_transparent_type): Likewise. | |
3460 | * symfile.h (struct quick_symbol_functions) | |
3461 | <pre_expand_symtabs_matching>: New field. | |
3462 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function. | |
3463 | (psym_functions): Update. | |
3464 | ||
0f5238ed TT |
3465 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
3466 | ||
3467 | PR breakpoints/8357: | |
3468 | * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment. | |
3469 | * linespec.c (decode_line_1): Update comment. Call decode_label. | |
3470 | (decode_label): New function. | |
3471 | (symbol_found): Handle LOC_LABEL. | |
3472 | * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and | |
3473 | domain. Call add_symbol_to_list. | |
3474 | ||
9aa1f1e3 TT |
3475 | 2010-07-13 Tom Tromey <tromey@redhat.com> |
3476 | ||
3477 | * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare. | |
3478 | * dwarf2loc.c (find_location_expression): Use | |
3479 | dwarf2_per_cu_text_offset. | |
3480 | (dwarf2_evaluate_loc_desc): Likewise. | |
3481 | (dwarf2_loc_desc_needs_frame): Likewise. | |
3482 | (compile_dwarf_to_ax): Likewise. | |
3483 | (loclist_describe_location): Likewise. | |
3484 | * dwarf2read.c (dwarf2_per_cu_text_offset): New function. | |
3485 | (dwarf2_per_cu_objfile): Update comment. | |
3486 | ||
953ac07e JK |
3487 | 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
3488 | ||
3489 | * dwarf2read.c (read_subrange_type): Call read_subrange_type. | |
3490 | * p-lang.c (pascal_printstr): Likewise. | |
3491 | ||
f04e4012 TT |
3492 | 2010-07-09 Tom Tromey <tromey@redhat.com> |
3493 | ||
3494 | * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use | |
3495 | 'hint' if it is NULL. | |
3496 | ||
f4dfd9c0 HZ |
3497 | 2010-07-09 Hui Zhu <teawater@gmail.com> |
3498 | ||
3499 | * source.c (print_source_lines_base): Add check for noprint. | |
3500 | ||
7e6e39e5 JB |
3501 | 2010-07-08 Joel Brobecker <brobecker@adacore.com> |
3502 | ||
3503 | * python/python-config.py: Resync with Python 2.7 version of this | |
3504 | script. | |
3505 | ||
76b8507d JB |
3506 | 2010-07-08 Joel Brobecker <brobecker@adacore.com> |
3507 | ||
3508 | * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2). | |
3509 | ||
797054e6 JB |
3510 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
3511 | ||
3512 | * NEWS: Create a new section for the next release branch. | |
3513 | Rename the section of the current branch, now that it has | |
3514 | been cut. | |
3515 | ||
c80befee | 3516 | 2010-07-07 Joel Brobecker <brobecker@adacore.com> |
3517 | ||
3518 | GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC) | |
3519 | * version.in: Bump version to 7.2.50.20100707-cvs. | |
3520 | ||
ac56253d TT |
3521 | 2010-07-07 Tom Tromey <tromey@redhat.com> |
3522 | ||
3523 | * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a | |
3524 | LOC_COMPUTED symbol. | |
3525 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field. | |
3526 | (dwarf2_loc_desc_needs_frame): Likewise. | |
3527 | (compile_dwarf_to_ax) <DW_OP_addr>: Use offset. | |
3528 | * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field. | |
3529 | * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset. | |
3530 | * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add | |
3531 | 'offset' argument. | |
3532 | (struct dwarf2_frame_cache) <text_offset>: New field. | |
3533 | (dwarf2_frame_cache): Set new field. | |
3534 | (dwarf2_frame_prev_register): Update. | |
3535 | (dwarf2_frame_sniffer): Update. | |
3536 | (dwarf2_frame_base_sniffer): Update. | |
3537 | (dwarf2_frame_find_fde): Add 'out_offset' argument. | |
3538 | ||
0cf6dd15 TJB |
3539 | 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
3540 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
3541 | ||
3542 | Support for hw accelerated condition watchpoints in booke powerpc. | |
3543 | ||
3544 | * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value | |
3545 | and move to eval.c. Change callers. | |
3546 | (insert_bp_location): Pass watchpoint condition in | |
3547 | target_insert_watchpoint. | |
3548 | (remove_breakpoint_1) Pass watchpoint condition in | |
3549 | target_remove_watchpoint. | |
3550 | (watchpoint_locations_match): Call | |
3551 | target_can_accel_watchpoint_condition. | |
3552 | * eval.c: Include wrapper.h. | |
3553 | (fetch_subexp_value): Moved from breakpoint.c. | |
3554 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): | |
3555 | Formatting fix. | |
3556 | (can_use_watchpoint_cond_accel): New function. | |
3557 | (calculate_dvc): Likewise. | |
3558 | (num_memory_accesses): Likewise. | |
3559 | (check_condition): Likewise. | |
3560 | (ppc_linux_can_accel_watchpoint_condition): Likewise | |
3561 | (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel, | |
3562 | check_condition and calculate_dvc. | |
3563 | (ppc_linux_remove_watchpoint): Likewise. | |
3564 | (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to | |
3565 | ppc_linux_can_accel_watchpoint_condition | |
3566 | * target.c (debug_to_insert_watchpoint): Add argument for watchpoint | |
3567 | condition. | |
3568 | (debug_to_remove_watchpoint): Likewise. | |
3569 | (debug_to_can_accel_watchpoint_condition): New function. | |
3570 | (update_current_target): Set to_can_accel_watchpoint_condition. | |
3571 | (setup_target_debug): Set to_can_accel_watchpoint_condition. | |
3572 | * target.h: Add opaque declaration for struct expression. | |
3573 | (struct target_ops) <to_insert_watchpoint>, | |
3574 | <to_remove_watchpoint>: Add new arguments to pass the watchpoint | |
3575 | <to_can_accel_watchpoint_condition>: New member. | |
3576 | condition. Update all callers and implementations. | |
3577 | (target_can_accel_watchpoint_condition): New macro. | |
3578 | * value.c (free_value_chain): New function. | |
3579 | * value.h (fetch_subexp_value): New prototype. | |
3580 | (free_value_chain): Likewise. | |
3581 | ||
2f2241f1 UW |
3582 | 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com> |
3583 | ||
3584 | * linux-nat.c (linux_nat_do_thread_registers): Use section size | |
3585 | from gdbarch_core_regset_sections also for .reg if present. | |
3586 | ||
3587 | * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect | |
3588 | section size for .reg. | |
3589 | * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise. | |
3590 | (ppc_linux_vmx_regset_sections): Likewise. | |
3591 | (ppc_linux_fp_regset_sections): Likewise. | |
3592 | (ppc64_linux_vsx_regset_sections): New variable. | |
3593 | (ppc64_linux_vmx_regset_sections): Likewise. | |
3594 | (ppc64_linux_fp_regset_sections): Likewise. | |
3595 | (ppc_linux_init_abi): Install core_regset_section lists appropriate | |
3596 | for current word size. | |
3597 | ||
1fd7cdc2 JB |
3598 | 2010-07-06 Joel Brobecker <brobecker@adacore.com> |
3599 | ||
3600 | * server.c (myresume): Make static. | |
3601 | ||
11763c18 TT |
3602 | 2010-07-06 Tom Tromey <tromey@redhat.com> |
3603 | ||
3604 | * configure, config.in: Rebuild. | |
3605 | * configure.ac (HAVE_LIBPYTHON2_7): New define. | |
3606 | * python/python-internal.h: Handle HAVE_LIBPYTHON2_7. | |
3607 | ||
a6cc4789 AS |
3608 | 2010-07-06 Andreas Schwab <schwab@linux-m68k.org> |
3609 | ||
3610 | * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for | |
3611 | "clear". | |
3612 | ||
f9e9243a UW |
3613 | 2010-07-06 Ken Werner <ken.werner@de.ibm.com> |
3614 | ||
3615 | * gdbtypes.h (floatformats_ieee_half): Add declaration. | |
3616 | * gdbtypes.c (floatformats_ieee_half): New variable. | |
3617 | * doublest.c (floatformat_from_length): Set format to | |
3618 | gdbarch_half_format if length matches. | |
3619 | * gdbarch.sh (half_bit): New architecture method. | |
3620 | (half_format): Likewise. | |
3621 | * gdbarch.h: Regenerate. | |
3622 | * gdbarch.c: Likewise. | |
3623 | ||
4e5799b6 JK |
3624 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
3625 | Joel Brobecker <brobecker@adacore.com> | |
3626 | ||
3627 | Fix re-run of PIE executable, PR shlibs/11776. | |
3628 | * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove | |
3629 | the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS. | |
3630 | ||
86e4bafc JK |
3631 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
3632 | Joel Brobecker <brobecker@adacore.com> | |
3633 | ||
3634 | * auxv.c (memory_xfer_auxv): Update attach comment. | |
3635 | * solib-svr4.c (svr4_special_symbol_handling): Remove the call to | |
3636 | svr4_relocate_main_executable. | |
3637 | (svr4_solib_create_inferior_hook): Make the call to | |
3638 | svr4_relocate_main_executable unconditional. | |
3639 | ||
3cd07d20 JK |
3640 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
3641 | Joel Brobecker <brobecker@adacore.com> | |
3642 | ||
3643 | * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address. | |
3644 | ||
0a1e94c7 JK |
3645 | 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
3646 | Joel Brobecker <brobecker@adacore.com> | |
3647 | ||
3648 | Fix attaching to PIEs prelinked on the disk after the process was | |
3649 | started. | |
3650 | * solib-svr4.c (svr4_exec_displacement): New variable arch_size. | |
3651 | Verify it against bfd_get_arch_size. Try to match arbitrary | |
3652 | displacement for the phdrs comparison. | |
3653 | ||
5387647f TT |
3654 | 2010-07-02 Tom Tromey <tromey@redhat.com> |
3655 | ||
3656 | PR exp/11780: | |
3657 | * libunwind-frame.c (libunwind_frame_prev_register): Don't set | |
3658 | value as optimized-out. | |
3659 | ||
38b6c3b3 TJB |
3660 | 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com> |
3661 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
3662 | ||
3663 | * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this | |
3664 | represent?" question in comment. Change comment to a proper sentence. | |
3665 | ||
a17ac5b0 TT |
3666 | 2010-07-02 Ken Werner <ken.werner@de.ibm.com> |
3667 | ||
3668 | * c-valprint.c (c_val_print): Fix printing of character vectors. | |
3669 | ||
bddaafad JK |
3670 | 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
3671 | ||
3672 | * spu-tdep.c (spu_catch_start): Adjust the caller of changed | |
3673 | create_breakpoint prototype. | |
3674 | ||
d41c0fc8 PA |
3675 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
3676 | ||
3677 | * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify | |
3678 | usefulness suggestion of multiple breakpoints at same location. | |
3679 | ||
dc10affe PA |
3680 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
3681 | ||
3682 | * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'. | |
3683 | ||
cabe9ab6 PA |
3684 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
3685 | ||
3686 | * dwarf2loc.c (locexpr_tracepoint_var_ref) | |
3687 | (loclist_tracepoint_var_ref): Handle optimized out values. | |
3688 | ||
cce7e648 PA |
3689 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
3690 | ||
3691 | * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove | |
3692 | unnecessary space in string. | |
3693 | * filesystem.c (_initialize_filesystem): Ditto. | |
3694 | * frame.c (_initialize_frame): Ditto. | |
3695 | * infcmd.c (step_once): Ditto. | |
3696 | * infrun.c (_initialize_infrun): Ditto. | |
3697 | * linux-nat.c (linux_child_follow_fork): Ditto. | |
3698 | * maint.c (maintenance_deprecate): Ditto. | |
3699 | * memattr.c (_initialize_mem): Ditto. | |
3700 | * mips-tdep.c (_initialize_mips_tdep): Ditto. | |
3701 | * monitor.c (monitor_open): Ditto. | |
3702 | * procfs.c (procfs_xfer_memory): Ditto. | |
3703 | * reverse.c (bookmarks_info): Ditto. | |
3704 | * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto. | |
3705 | * stack.c (_initialize_stack): Ditto. | |
3706 | * tracepoint.c (_initialize_tracepoint): Ditto. | |
3707 | * xtensa-tdep.c (xtensa_supply_gregset, | |
3708 | xtensa_regset_from_core_section): Ditto. | |
3709 | ||
b65c7efe TT |
3710 | 2010-07-01 Tom Tromey <tromey@redhat.com> |
3711 | ||
3712 | * value.h (struct lval_funcs) <check_any_valid>: Rename from | |
3713 | check_all_valid. | |
3714 | * value.c (value_entirely_optimized_out): Invert result. Update | |
3715 | for new function name. | |
3716 | ||
0fb4aa4b PA |
3717 | 2010-07-01 Pedro Alves <pedro@codesourcery.com> |
3718 | ||
3719 | Static tracepoints support. | |
3720 | ||
3721 | * NEWS: Mention new support for static tracepoints. | |
3722 | (New packets): Mention qTfSTM, qTsSTM, qTSTMat and | |
3723 | qXfer:statictrace:read. | |
3724 | (New features in the GDB remote stub, GDBserver): Mention static | |
3725 | tracepoints support using an UST based backend. | |
3726 | (New commands): Mention "info static-tracepoint-markers" and | |
3727 | "strace". | |
3728 | * breakpoint.c (is_marker_spec): New. | |
3729 | (is_tracepoint): Handle static tracepoints. | |
3730 | (validate_commands_for_breakpoint): Static tracepoints can't do | |
3731 | while-stepping. | |
3732 | (static_tracepoints_here): New. | |
3733 | (bpstat_what): Handle static tracepoints. | |
3734 | (print_one_breakpoint_location, allocate_bp_location, mention): | |
3735 | Ditto. | |
3736 | (create_breakpoint_sal): Ditto. | |
3737 | (decode_static_tracepoint_spec): New. | |
3738 | (create_breakpoint): Replace `hardwareflag', and `traceflag' with | |
3739 | `type_wanted'. Adjust. Handle static tracepoint marker | |
3740 | locations. | |
3741 | (break_command_1): Adjust. | |
3742 | (update_static_tracepoint): New. | |
3743 | (update_breakpoint_locations): Handle static tracepoints. | |
3744 | (breakpoint_re_set_one): Handle static tracepoint marker | |
3745 | locations. | |
3746 | (disable_command, enable_command): Handle static tracepoints. | |
3747 | (trace_command, ftrace_command): Adjust. | |
3748 | (strace_command): New. | |
3749 | (create_tracepoint_from_upload): Adjust. | |
3750 | (save_breakpoints): Handle static tracepoints. | |
3751 | (_initialize_breakpoint): Install the "strace" command. | |
3752 | * breakpoint.h (enum bptype): New bp_static_tracepoint type. | |
3753 | (struct breakpoint): New fields static_trace_marker_id and | |
3754 | static_trace_marker_id_idx. | |
3755 | (breakpoints_here_p): Declare. | |
3756 | (create_breakpoint): Adjust. | |
3757 | (static_tracepoints_here): Declare. | |
3758 | * remote.c (struct remote_state) <static_tracepoints>: New field. | |
3759 | (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New. | |
3760 | (remote_static_tracepoint_marker_at): New. | |
3761 | (remote_static_tracepoint_markers_by_strid): New. | |
3762 | (remote_static_tracepoint_feature): New. | |
3763 | (remote_disconnected_tracing_feature): Handle "StaticTracepoints". | |
3764 | (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA. | |
3765 | (remote_supports_static_tracepoints): New. | |
3766 | (remote_download_tracepoint): Download static tracepoints. | |
3767 | (init_remote_ops): Install remote_static_tracepoint_marker_at and | |
3768 | remote_static_tracepoint_markers_by_strid. | |
3769 | (_initialize_remote): Install set|show remote static-tracepoints, | |
3770 | and set|show remote read-sdata-object commands. | |
3771 | * target.c (update_current_target): Inherit and default | |
3772 | to_static_tracepoint_marker_at, and | |
3773 | to_static_tracepoint_markers_by_strid. | |
3774 | * target.h (static_tracepoint_marker): Forward declare. | |
3775 | (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA. | |
889bf7c5 | 3776 | (static_tracepoint_marker_p): New typedef. |
0fb4aa4b PA |
3777 | (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type. |
3778 | (struct target_ops): New fields to_static_tracepoint_marker_at and | |
3779 | to_static_tracepoint_markers_by_strid. | |
3780 | (target_static_tracepoint_marker_at) | |
3781 | (target_static_tracepoint_markers_by_strid): New. | |
3782 | * tracepoint.c: Include source.h. | |
3783 | (validate_actionline): Handle $_sdata. | |
3784 | (struct collection_list): New field strace_data. | |
3785 | (add_static_trace_data): New. | |
3786 | (clear_collection_list): Clear strace_data. | |
3787 | (stringify_collection_list): Account for a possible static trace | |
3788 | data collection. | |
3789 | (encode_actions_1): Encode an $_sdata collection. | |
3790 | (parse_tracepoint_definition): Handle static tracepoints. | |
3791 | (parse_static_tracepoint_marker_definition): New. | |
3792 | (release_static_tracepoint_marker): New. | |
3793 | (print_one_static_tracepoint_marker): New. | |
3794 | (info_static_tracepoint_markers_command): New. | |
3795 | (sdata_make_value): New. | |
3796 | (_initialize_tracepoint): Create the $_sdata convenience variable. | |
3797 | Add the "info static-tracepoint-markers" command. | |
3798 | Mention $_sdata in the "collect" command's help output. | |
3799 | * tracepoint.h (struct static_tracepoint_marker): New. | |
3800 | (parse_static_tracepoint_marker_definition) | |
3801 | (release_static_tracepoint_marker): Declare. | |
3802 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust. | |
3803 | * python/py-breakpoint.c (bppy_new): Adjust. | |
3804 | ||
aac63f0f JB |
3805 | 2010-06-30 Joel Brobecker <brobecker@adacore.com> |
3806 | ||
3807 | * python/python-internal.h (_XOPEN_SOURCE): Undefine before | |
3808 | including Python.h. | |
3809 | ||
e68994a7 DE |
3810 | 2010-06-29 Doug Evans <dje@google.com> |
3811 | ||
3863f96c DE |
3812 | PR gdb/11702 |
3813 | * dwarf2read.c (dwarf2_add_field): Only create a symbol if | |
3814 | DW_AT_external is present. | |
3815 | ||
254e6b9e DE |
3816 | PR gdb/11702 |
3817 | * NEWS: Add entry. | |
3818 | * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present, | |
3819 | create a symbol for the field and record the value. | |
3820 | (new_symbol): Handle DW_TAG_member. | |
3821 | * gdbtypes.c (field_is_static): Remove FIXME. | |
3822 | * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN, | |
3823 | only ignore LOC_CONST symbols that are enums. | |
3824 | ||
6e70227d DE |
3825 | * dwarf2read.c: Remove trailing whitespace. |
3826 | ||
e68994a7 DE |
3827 | Delete FIELD_LOC_KIND_DWARF_BLOCK, unused. |
3828 | * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK. | |
3829 | (struct main_type, field loc): Delete dwarf_block. | |
3830 | (FIELD_DWARF_BLOCK): Delete. | |
3831 | (SET_FIELD_DWARF_BLOCK): Delete. | |
3832 | (TYPE_FIELD_DWARF_BLOCK): Delete. | |
3833 | * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img): | |
3834 | Update. | |
3835 | ||
a480d2f6 HZ |
3836 | 2010-06-29 Hui Zhu <teawater@gmail.com> |
3837 | ||
3838 | * record.c (set_record_pic_cmdlist, | |
3839 | show_record_pic_cmdlist): New variables. | |
3840 | (set_record_pic_command, | |
3841 | show_record_pic_command): New functions. | |
3842 | (record_pic_function, record_pic_line, record_pic_enum, | |
3843 | set_record_pic_type, record_pic_hide_nofunction, | |
3844 | record_pic_hide_nosource, record_pic_hide_same): New variables. | |
3845 | (record_pic_fputs): New function. | |
3846 | (function_list, node_list, edge_list): New struct. | |
3847 | (function_list, node_list, edge_list): New variables. | |
3848 | (record_pic_cleanups, record_pic_node, | |
3849 | record_pic_edge, cmd_record_pic): New functions. | |
3850 | (_initialize_record): Add new commands for record pic. | |
3851 | ||
a0d7a4ff JK |
3852 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3853 | ||
3854 | * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call | |
3855 | ALLOCATE_CPLUS_STRUCT_TYPE. | |
3856 | ||
595939de | 3857 | 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> |
889bf7c5 PA |
3858 | Tom Tromey <tromey@redhat.com> |
3859 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
595939de PM |
3860 | |
3861 | * value.c (pack_unsigned_long): New function. | |
3862 | (value_from_ulongest): New function. | |
3863 | * value.h (value_from_ulongest): Declare. | |
3864 | * python/python.c (_initialize_python): Call | |
3865 | gdbpy_initialize_thread and gdbpy_initialize_inferior. | |
3866 | * python/python-internal.h: Define thread_object. | |
3867 | (gdbpy_inferiors, gdbpy_selected_thread) | |
3868 | (frame_info_to_frame_object, create_thread_object) | |
3869 | (find_thread_object, find_inferior_object) | |
3870 | (gdbpy_initialize_thread, gdbpy_initialize_inferiors) | |
3871 | (gdbpy_is_value_object, get_addr_from_python): Declare. | |
3872 | * python/py-value.c (builtin_type_upylong): Define. | |
3873 | (convert_value_from_python): Add logic for ulongest. | |
3874 | (gdbpy_is_value_object): New function. | |
3875 | * python/py-utils.c (get_addr_from_python): New function. | |
3876 | * python/py-frame.c (frame_info_to_frame_object): Return a PyObject. | |
3877 | (gdbpy_selected_frame): Use PyObject over frame_info. | |
3878 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and | |
3879 | py-infthread. | |
3880 | (SUBDIR_PYTHON_SRCS): Likewise. | |
3881 | (py-inferior.o): New Rule. | |
3882 | (py-infthread.o): New Rule. | |
3883 | * python/py-inferior.c: New File. | |
3884 | * python/py-infthread.c: New File. | |
3885 | ||
98751a41 JK |
3886 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3887 | ||
3888 | * c-typeprint.c (c_type_print_base): For no fields check include also | |
3889 | TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section. | |
3890 | * dwarf2read.c (struct typedef_field_list) | |
3891 | (struct field_info) <typedef_field_list, typedef_field_list_count>: New. | |
3892 | (dwarf2_add_typedef): New. | |
3893 | (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef. | |
3894 | Copy also FI.TYPEDEF_FIELD_LIST. | |
3895 | * gdbtypes.h (struct typedef_field) | |
3896 | (struct cplus_struct_type) <typedef_field, typedef_field_count> | |
3897 | (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME) | |
3898 | (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New. | |
3899 | ||
41f62f39 JK |
3900 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3901 | ||
3902 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
3903 | concatenated_name. Turn the current return condition into a reverse | |
3904 | one. Call also lookup_static_symbol_aux on the constructed qualified | |
3905 | name. | |
3906 | * symtab.c (lookup_symbol_aux): Move variable objfile and searching in | |
3907 | other files into a called ... | |
3908 | (lookup_static_symbol_aux): ... new function here. | |
3909 | * symtab.h (lookup_static_symbol_aux): New prototype. | |
3910 | * valops.c (value_maybe_namespace_elt): Call also | |
3911 | lookup_static_symbol_aux if we failed otherwise. | |
3912 | ||
af53d231 JK |
3913 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3914 | ||
3915 | Fix PR c++/11703 and PR gdb/1448. | |
3916 | * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add | |
3917 | FIRST_ITER check. | |
3918 | ||
9655fd1a JK |
3919 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3920 | ||
3921 | Fix modification of cplus_struct_default. | |
3922 | * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>: | |
3923 | Call ALLOCATE_CPLUS_STRUCT_TYPE. | |
3924 | * gdbtypes.c (cplus_struct_default): New empty initializer, comment it. | |
3925 | ||
9279c692 JB |
3926 | 2010-06-28 Joel Brobecker <brobecker@adacore.com> |
3927 | ||
3928 | * NEWS: Add entry announcing the python directory. | |
3929 | ||
d3f41bb1 TT |
3930 | 2010-06-28 Tom Tromey <tromey@redhat.com> |
3931 | ||
3932 | * dwarf2read.c (read_structure_type): Allocate null cleanup later. | |
3933 | ||
23e7acfb DE |
3934 | 2010-06-28 Doug Evans <dje@google.com> |
3935 | ||
3936 | * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused. | |
3937 | All callers updated. | |
3938 | ||
6036c742 JK |
3939 | 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
3940 | ||
3941 | * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call | |
3942 | obstack_begin after each obstack_free. | |
3943 | ||
9f18a3b3 DE |
3944 | 2010-06-27 Doug Evans <dje@google.com> |
3945 | ||
1596cb5d DE |
3946 | * value.c (value_static_field): Use `switch' instead of `if'. |
3947 | Assert-fail if passed invalid TYPE_FIELD_LOC_KIND. | |
3948 | ||
9f18a3b3 DE |
3949 | * valops.c (search_struct_field): Fix typo in error message. |
3950 | ||
43dabe42 UW |
3951 | 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com> |
3952 | ||
3953 | * dwarf2expr.c (execute_stack_op): Place preprocessor | |
3954 | directives at the start of the source line. | |
3955 | ||
0f3bb72e PH |
3956 | 2010-06-25 Paul Hilfinger <hilfinger@adacore.com> |
3957 | ||
6036c742 JK |
3958 | * defs.h (make_command_stats_cleanup): Declare. |
3959 | (set_display_time): Declare. | |
3960 | (set_display_space): Declare. | |
3961 | * event-top.c (command_handler): Use make_command_stats_cleanup. | |
3962 | * main.c (display_time, display_space): Move definitions to utils.c. | |
3963 | (captured_main): Use make_command_stats_cleanup to get start-up | |
3964 | statistics. | |
3965 | Use set_display_time and set_display_space for processing OPT_STATISTICS | |
3966 | case. | |
3967 | * maint.c (maintenance_time_display): Use set_display_time. | |
3968 | (maintenance_space_display): Use set_display_space. | |
3969 | * top.c (execute_command): Remove obsolete 'maint time' code. | |
3970 | (command_loop): Use make_command_stats_cleanup. | |
3971 | * utils.c (struct cmd_stats): Structure for storing initial time | |
3972 | and space usage. | |
3973 | (display_time, display_space): Move definitions here from utils.c. | |
3974 | (set_display_time): New function. | |
3975 | (set_display_space): New function. | |
3976 | (make_command_stats_cleanup): New function. | |
3977 | (report_command_stats): New auxiliary function for | |
3978 | make_command_stats_cleanup. | |
0f3bb72e | 3979 | |
070c8028 UW |
3980 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3981 | ||
3982 | * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for | |
3983 | hosts where CORE_ADDR is long long. | |
3984 | ||
bc9f0842 TT |
3985 | 2010-06-25 Tom Tromey <tromey@redhat.com> |
3986 | ||
3987 | PR python/10808: | |
3988 | * python/python.c (execute_gdb_command): Add keywords. Accept | |
3989 | "to_string" argument. | |
3990 | (struct restore_ui_file_closure): New. | |
3991 | (restore_ui_file): New function. | |
3992 | (make_cleanup_restore_ui_file): Likewise. | |
3993 | (GdbMethods) <execute>: Update. | |
3994 | ||
c0cc4c83 UW |
3995 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
3996 | ||
3997 | * s390-tdep.c (s390_push_dummy_call): Error on stack overflow | |
3998 | during inferior call stack frame setup. | |
3999 | ||
f1d8ee66 UW |
4000 | 2010-06-25 Ken Werner <ken.werner@de.ibm.com> |
4001 | ||
4002 | * solib-spu.c: Include "exception.h". | |
4003 | (ocl_program_data_key): New variable. | |
4004 | (append_ocl_sos): New function. | |
4005 | (ocl_enable_break): Likewise. | |
4006 | (spu_current_sos): Call append_ocl_sos. | |
4007 | (spu_solib_loaded): Call ocl_enable_break. | |
4008 | (_initialize_spu_solib): Register ocl_program_data_key. | |
4009 | ||
19c0c0f8 UW |
4010 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
4011 | ||
4012 | * cp-support.c (reset_directive_searched): New function. | |
4013 | (make_symbol_overload_list_using): Prevent recursive calls. | |
4014 | ||
0f6a939d PM |
4015 | 2010-06-25 Phil Muldoon <pmuldoon@redhat.com> |
4016 | ||
4017 | * printcmd.c (print_variable_and_value): Print error message on | |
4018 | caught exception. | |
4019 | ||
f2c7657e UW |
4020 | 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com> |
4021 | ||
4022 | * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type | |
4023 | of stack values. | |
4024 | (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new | |
4025 | "value" member. | |
4026 | (dwarf_expr_push): Change input type to ULONGEST. | |
4027 | (dwarf_expr_fetch): Change return type to ULONGEST. | |
4028 | (dwarf_expr_fetch_address): Add prototype. | |
4029 | (dwarf2_read_address): Remove prototype. | |
4030 | * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values. | |
4031 | Truncate stack values to ctx->addr_size bytes. | |
4032 | (dwarf_expr_fetch): Change return value to ULONGEST. | |
4033 | (dwarf_expr_fetch_address): New function. | |
4034 | (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch | |
4035 | when appropriate. Update for struct dwarf_expr_piece changes. | |
4036 | (dwarf2_read_address): Remove. | |
4037 | (unsigned_address_type): Remove. | |
4038 | (signed_address_type): Remove. | |
4039 | (execute_stack_op): Use dwarf_expr_fetch_address instead of | |
4040 | dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack | |
4041 | values. Perform operations on ULONGEST instead of on GDB values, | |
4042 | sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr | |
4043 | values and DW_OP_deref results as unsigned integers. | |
4044 | * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece | |
4045 | changes. | |
4046 | (write_pieced_value): Likewise. | |
4047 | (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of | |
4048 | dwarf_expr_fetch when appropriate. | |
4049 | (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers. | |
4050 | * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address | |
4051 | instead of dwarf_expr_fetch when appropriate. | |
4052 | ||
b1d61bc9 PM |
4053 | 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr> |
4054 | ||
4055 | * c-typeprint.c (c_print_typedef): Append new type name for typedefs. | |
4056 | ||
b14285f6 JB |
4057 | 2010-06-24 Joel Brobecker <brobecker@adacore.com> |
4058 | ||
4059 | * python/python.c (_initialize_python): Add new "constant" | |
4060 | PYTHONDIR in gdb module. Insert this path at the head of | |
4061 | sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and | |
4062 | exec its __init__.py script if it exists in that directory. | |
4063 | ||
fd60dc69 KB |
4064 | 2010-06-24 Kevin Buettner <kevinb@redhat.com> |
4065 | ||
4066 | * rx-tdep.c (RX_ACC_REGNUM): Define. | |
4067 | (RX_NUM_REGS): Redefine to 26. | |
4068 | (rx_register_name): Add register "acc". Change order of several | |
4069 | registers. Change name of "vct" register to "fintv" to match RX | |
4070 | documentation. | |
4071 | (rx_register_type): Add case for RX_ACC_REGNUM. | |
4072 | ||
18430289 TT |
4073 | 2010-06-24 Tom Tromey <tromey@redhat.com> |
4074 | ||
4075 | * psymtab.c (lookup_partial_symbol): Mark definition as static. | |
4076 | ||
40618926 JK |
4077 | 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
4078 | Tom Tromey <tromey@redhat.com> | |
4079 | ||
4080 | Fix GDB startup on readonly filesystem. | |
4081 | * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init. | |
4082 | ||
628fe4e4 JK |
4083 | 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
4084 | Pedro Alves <pedro@codesourcery.com> | |
4085 | ||
4086 | Fix PR 9436. | |
4087 | * breakpoint.c (handle_jit_event): New function. | |
4088 | (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl, | |
4089 | jit, err, table and bs_class. New variables shlib_event, jit_event, | |
4090 | this_action and bptype. Change bs_class assignments to this_action | |
4091 | assignments. new unhandled bptype internal error. Move here | |
4092 | shlib_event and jit_event handling from handle_inferior_event. | |
4093 | * breakpoint.h (enum bpstat_what_main_action): Extend the comment. | |
4094 | Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and | |
4095 | BPSTAT_WHAT_CHECK_JIT. | |
4096 | * inferior.h (debug_infrun, stop_on_solib_events): New declarations. | |
4097 | * infrun.c (debug_infrun, stop_on_solib_events): Remove static. | |
4098 | (handle_inferior_event): Reinitialize frame and gdbarch after | |
4099 | bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and | |
4100 | BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even | |
4101 | gdbarch when frame gets reinitialized. | |
4102 | ||
f1421989 HZ |
4103 | 2010-06-24 Hui Zhu <teawater@gmail.com> |
4104 | ||
4105 | * printcmd.c (ui_printf): New function. | |
4106 | (printf_command): Call ui_printf. | |
4107 | (_initialize_printcmd): New command "eval". | |
4108 | ||
d03285ec UW |
4109 | 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com> |
4110 | ||
4111 | * infrun.c (handle_inferior_event): Handle presence of single-step | |
4112 | breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED. | |
4113 | Cancel single-step breakpoints for TARGET_WAITKIND_EXITED, | |
4114 | TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD. | |
4115 | * breakpoint.c (detach_single_step_breakpoints): New function. | |
4116 | (detach_breakpoints): Call it. | |
4117 | (cancel_single_step_breakpoints): New function. | |
4118 | * breakpoint.h (cancel_single_step_breakpoints): Add prototype. | |
4119 | ||
4120 | * spu-tdep.c (spu_memory_remove_breakpoint): New function. | |
4121 | (spu_gdbarch_init): Install it. | |
4122 | ||
38f6b338 JK |
4123 | 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com> |
4124 | ||
4125 | * configure.ac: Always set RDYNAMIC at least as `-rdynamic'. | |
4126 | * configure: Regenerate. | |
4127 | ||
bb08c432 HZ |
4128 | 2010-06-22 Hui Zhu <teawater@gmail.com> |
4129 | ||
4130 | * i386-tdep.c (i386_record_lea_modrm): Change warning to query. | |
4131 | (i386_process_record): Ditto. | |
4132 | * record.c (record_memory_query): New variable. | |
4133 | (_initialize_record): New command "set record memory-query". | |
4134 | * record.h (record_memory_query): New extern. | |
4135 | ||
b55078be DE |
4136 | 2010-06-21 Doug Evans <dje@google.com> |
4137 | ||
4138 | * i386-tdep.h (i386_displaced_step_copy_insn): Declare. | |
4139 | * i386-tdep.c (i386_displaced_step_copy_insn): New function. | |
4140 | (i386_syscall_p): Change type of lengthp to int. | |
4141 | (i386_displaced_step_fixup): Handle kernels that run one past a | |
4142 | syscall insn. | |
4143 | * i386-linux-tdep.c (i386_linux_init_abi): Use | |
4144 | i386_displaced_step_copy_insn instead of | |
4145 | simple_displaced_step_copy_insn. | |
4146 | ||
75079b2b TT |
4147 | 2010-06-21 Tom Tromey <tromey@redhat.com> |
4148 | ||
4149 | * dwarf2read.c (read_base_type): Handle DW_ATE_UTF. | |
4150 | (dwarf_type_encoding_name): Likewise. | |
4151 | ||
b00fdb78 TT |
4152 | 2010-06-21 Tom Tromey <tromey@redhat.com> |
4153 | ||
4154 | * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME. | |
4155 | * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME. | |
4156 | * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME. | |
4157 | * gdbtypes.h (TYPE_ERROR_NAME): New macro. | |
4158 | * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME. | |
4159 | * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME. | |
4160 | * dwarf2read.c (tag_type_to_type): Create a new error type on | |
4161 | failure. | |
4162 | * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME. | |
4163 | * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME. | |
4164 | ||
84951ab5 MS |
4165 | 2010-06-21 Michael Snyder <msnyder@vmware.com> |
4166 | ||
889bf7c5 | 4167 | * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd, |
84951ab5 MS |
4168 | not add_abbrev_prefix_cmd, for "enable breakpoints". |
4169 | ||
d4a087c7 UW |
4170 | 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com> |
4171 | ||
4172 | * dwarf2loc.c (find_location_expression): Add relocation offset | |
4173 | to base-address-selection entry base addresses. Read addresses | |
4174 | (and offsets) as signed/unsigned integers, depending on the | |
4175 | BFD's sign_extend_vma flag. Do not call dwarf2_read_address. | |
4176 | (loclist_describe_location): Likewise. | |
4177 | (disassemble_dwarf_expression): Read DW_OP_addr operand as | |
4178 | unsigned integer. Do not call dwarf2_read_address. | |
4179 | (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address. | |
4180 | ||
13def385 UW |
4181 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
4182 | ||
4183 | * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register | |
4184 | value instead of hard-coded SPU_LS_SIZE. | |
4185 | (spu_software_single_step): Likewise. | |
4186 | * spu-tdep.h (SPU_LS_SIZE): Remove. | |
4187 | ||
d2ed6730 UW |
4188 | 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com> |
4189 | ||
4190 | * spu-multiarch.c (spu_xfer_partial): Wrap around local store | |
4191 | limit on local store memory accesses. | |
4192 | * spu-linux-nat.c (spu_xfer_partial): Likewise. | |
4193 | * spu-tdep.c (spu_lslr): Remove. | |
4194 | (spu_pointer_to_address): Do not truncate addresses. | |
4195 | (spu_integer_to_address): Likewise. | |
4196 | (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA. | |
4197 | * spu-tdep.h: Add comments. | |
4198 | (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit. | |
4199 | (SPU_OVERLAY_LMA): Define. | |
4200 | ||
6aed2dbc SS |
4201 | 2010-06-18 Stan Shebs <stan@codesourcery.com> |
4202 | ||
a61408f8 SS |
4203 | * osdata.c (get_osdata): Warn separately if target does not report |
4204 | type list. | |
4205 | (info_osdata_command): Allow empty type, report error if target | |
4206 | does not return available types of OS data. | |
4207 | * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data | |
4208 | types if no annex supplied. | |
4209 | ||
6aed2dbc SS |
4210 | * thread.c (thread_id_make_value): Make a value representing the |
4211 | current thread. | |
4212 | (_initialize_thread): Create $_thread. | |
4213 | ||
ec61707d JB |
4214 | 2010-06-17 Joel Brobecker <brobecker@adacore.com> |
4215 | ||
4216 | * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after | |
4217 | last local variable declaration. No real code change. | |
4218 | ||
60606b2c TT |
4219 | 2010-06-17 Tom Tromey <tromey@redhat.com> |
4220 | ||
4221 | * dwarf2read.c (psymtabs_addrmap_cleanup): New function. | |
4222 | (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a | |
4223 | temporary obstack. | |
4224 | ||
65d79d4b SDJ |
4225 | 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com> |
4226 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
4227 | ||
4228 | * breakpoint.c: Include parser-defs.h. | |
4229 | (watchpoint_exp_is_const): New function. | |
4230 | (watch_command_1): Call watchpoint_exp_is_const to check | |
4231 | if the expression is constant. | |
4232 | ||
0407b3f1 AS |
4233 | 2010-06-15 Andreas Schwab <schwab@linux-m68k.org> |
4234 | ||
4235 | * configure.ac: Check for RDYNAMIC also for cross builds. | |
4236 | * configure: Regenerate. | |
4237 | ||
98d64339 PA |
4238 | 2010-06-15 Pedro Alves <pedro@codesourcery.com> |
4239 | ||
4240 | * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o. | |
4241 | (SFILES): Remove solib-null.c, add solib-target.c. | |
4242 | (COMMON_OBS): Remove solib-null.o, add solib-target.o. | |
4243 | (ALLDEPFILES): Remove solib-target.c. | |
4244 | * solib-target.c (_initialize_solib_target): Set | |
4245 | current_target_so_ops to solib_target_so_ops if not already set. | |
4246 | * solib-null.c: Delete. | |
4247 | ||
6a271cae PA |
4248 | 2010-06-14 Pedro Alves <pedro@codesourcery.com> |
4249 | ||
4250 | * NEWS: Mention GDBserver's JIT compilation of tracepoint | |
4251 | bytecode. | |
4252 | ||
1e9beacb UW |
4253 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
4254 | ||
4255 | * cp-valprint.c (cp_print_static_field): Members of | |
4256 | dont_print_stat_array_obstack are of type "struct type *". | |
4257 | (_initialize_cp_valprint): Likewise. | |
4258 | ||
21a176fb UW |
4259 | 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com> |
4260 | ||
4261 | * frame.c (frame_register_unwind): Do not access contents | |
4262 | of "optimized out" unwound register value. | |
4263 | ||
25b524e8 JK |
4264 | 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com> |
4265 | ||
4266 | * ada-lang.h (ada_print_type): Make varstring const. | |
4267 | * ada-typeprint.c (print_func_type): Make name const. | |
4268 | (ada_print_type): Make varstring const. | |
4269 | * c-lang.h (c_print_type): Make varstring const. | |
4270 | * c-typeprint.c (c_print_type): Likewise. | |
4271 | * f-lang.h (f_print_type): Likewise. | |
4272 | * f-typeprint.c (f_print_type): Likewise. | |
4273 | * jv-lang.h (java_print_type): Likewise. | |
4274 | * jv-typeprint.c (java_print_type): Likewise. | |
4275 | * language.c (unk_lang_print_type): Likewise. | |
4276 | * language.h (struct language_defn) <la_print_type>: Likewise. | |
4277 | * m2-lang.h (m2_print_type): Likewise. | |
4278 | * m2-typeprint.c (m2_print_type): Likewise. | |
4279 | * p-lang.h (pascal_print_type): Likewise. | |
4280 | * p-typeprint.c (pascal_print_type): Likewise. | |
4281 | ||
d914c394 SS |
4282 | 2010-06-11 Stan Shebs <stan@codesourcery.com> |
4283 | ||
4284 | Add per-operation permission flags. | |
4285 | ||
4286 | * target.h (struct target_ops): New method to_set_permissions. | |
4287 | (target_set_permissions): New macro. | |
4288 | (target_insert_breakpoint): Change macro to function. | |
4289 | (target_remove_breakpoint): Ditto. | |
4290 | (target_stop): Ditto. | |
4291 | (may_write_registers): Declare. | |
4292 | (may_write_memory): Declare. | |
4293 | (may_insert_breakpoints): Declare. | |
4294 | (may_insert_tracepoints): Declare. | |
4295 | (may_insert_fast_tracepoints): Declare. | |
4296 | (may_stop): Declare. | |
4297 | * target.c (may_write_registers, may_write_registers_1): New globals. | |
4298 | (may_write_memory, may_write_memory_1): New globals. | |
4299 | (may_insert_breakpoints, may_insert_breakpoints_1): New globals. | |
4300 | (may_insert_tracepoints, may_insert_tracepoints_1): New globals. | |
4301 | (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New | |
4302 | globals. | |
4303 | (may_stop, may_stop_1): New global. | |
4304 | (target_xfer_partial): Test for write permission. | |
4305 | (target_store_registers): Ditto. | |
4306 | (target_insert_breakpoint): New function. | |
4307 | (target_remove_breakpoint): New function. | |
4308 | (target_stop): New function. | |
4309 | (_initialize_targets): Add new set/show variables. | |
4310 | (set_write_memory_permission): New function. | |
4311 | (update_target_permissions): New function. | |
4312 | (set_target_permissions): New function. | |
4313 | (update_current_target): Default to_set_permissions. | |
4314 | (_initialize_targets): Use new globals and setter function. | |
4315 | * tracepoint.c (start_tracing): Test for permission. | |
4316 | * inferior.h (update_observer_mode): Declare. | |
4317 | * infrun.c (non_stop_1): Define earlier. | |
4318 | (observer_mode, observer_mode_1): New globals. | |
4319 | (set_observer_mode, show_observer_mode): New functions. | |
4320 | (update_observer_mode): New function. | |
4321 | (_initialize_infrun): Define "set observer" command. | |
4322 | * remote.c (PACKET_QAllow): New optional packet. | |
4323 | (remote_protocol_features): Add QAllow. | |
4324 | (remote_set_permissions): New function. | |
4325 | (remote_start_remote): Call it. | |
4326 | (init_remote_ops): Add it to target vector. | |
4327 | (_initialize_remote): Add config command for QAllow. | |
4328 | ||
aec5aa8b TT |
4329 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
4330 | ||
4331 | * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of | |
4332 | DW_AT_vtable_elem_location even when GCC extension is seen. | |
4333 | ||
0e03807e TT |
4334 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
4335 | ||
4336 | PR gdb/9977, PR exp/11636: | |
4337 | * value.h (value_offset): Update. | |
4338 | (struct lval_funcs) <check_validity>: New field. | |
4339 | <copy_closure>: Make argument const. | |
4340 | (value_computed_closure): Update. | |
4341 | (value_contents_for_printing): Declare. | |
4342 | (value_bits_valid): Likewise. | |
4343 | (val_print): Likewise. | |
4344 | (set_value_component_location): Update. | |
4345 | (value_entirely_optimized_out): Declare. | |
4346 | * value.c (value_offset): Argument now const. | |
4347 | (require_not_optimized_out): New function. | |
4348 | (value_contents_for_printing): New function. | |
4349 | (value_contents_all): Call require_not_optimized_out. | |
4350 | (value_contents): Likewise. | |
4351 | (value_bits_valid): New function. | |
4352 | (value_computed_closure): Argument now const. | |
4353 | (set_value_component_location): Make 'whole' argument const. | |
4354 | (value_entirely_optimized_out): New function. | |
4355 | (value_bitsize): Argument now 'const'. | |
4356 | (value_bitpos): Likewise. | |
4357 | (value_type): Likewise. | |
4358 | * valprint.h (val_print_array_elements): Update. | |
4359 | * valprint.c (val_print): Add 'val' argument. Use | |
4360 | valprint_check_validity. | |
4361 | (valprint_check_validity): New function. | |
4362 | (value_check_printable): Use value_entirely_optimized_out. | |
4363 | (common_val_print): Update. | |
4364 | (value_print): Likewise. | |
4365 | (val_print_array_elements): Add 'val' argument. | |
4366 | * valops.c (value_fetch_lazy): Use value_contents_for_printing, | |
4367 | value_bits_valid. Reinit frame cache for lval_computed. | |
4368 | * sh64-tdep.c (sh64_do_register): Update. | |
4369 | * scm-valprint.c (scm_val_print): Add 'val' argument. | |
4370 | * scm-lang.h (scm_val_print): Update. | |
4371 | * python/python.h (apply_val_pretty_printer): Update. | |
4372 | * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val' | |
4373 | argument. Call set_value_component_location. | |
4374 | * printcmd.c (print_scalar_formatted): Update. | |
4375 | * p-valprint.c (pascal_val_print): Add 'val' argument. | |
4376 | (pascal_object_print_value_fields): Likewise. | |
4377 | (pascal_object_print_value): Likewise. | |
4378 | (pascal_object_print_static_field): Update. | |
4379 | * p-lang.h (pascal_val_print): Update. | |
4380 | (pascal_object_print_value_fields): Update. | |
4381 | * mt-tdep.c (mt_registers_info): Update. | |
4382 | * mi/mi-main.c (get_register): Update. | |
4383 | (mi_cmd_data_evaluate_expression): Use common_val_print. | |
4384 | * m2-valprint.c (m2_print_array_contents): Add 'val' argument. | |
4385 | (m2_print_unbounded_array): Likewise. | |
4386 | (m2_val_print): Likewise. | |
4387 | * m2-lang.h (m2_val_print): Update. | |
4388 | * language.h (struct language_defn) <la_val_print>: Add 'val' | |
4389 | argument. | |
4390 | (LA_VAL_PRINT): Likewise. | |
4391 | * language.c (unk_lang_val_print): Add 'val' argument. | |
4392 | * jv-valprint.c (java_print_value_fields): Add 'val' argument. | |
4393 | (java_val_print): Likewise. | |
4394 | * jv-lang.h (java_val_print): Add 'val' argument. | |
4395 | * infcmd.c (default_print_registers_info): Update. | |
4396 | * f-valprint.c (f77_print_array_1): Add 'val' argument. | |
4397 | (f77_print_array): Likewise. | |
4398 | (f_val_print): Likewise. | |
4399 | * f-lang.h (f_val_print): Add 'val' argument. | |
4400 | * dwarf2loc.c (read_pieced_value): Use value_bitsize and | |
4401 | value_bitpos. | |
4402 | <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call | |
4403 | set_value_optimized_out. | |
4404 | (write_pieced_value): Use value_bitsize and value_bitpos. | |
4405 | <default>: Don't exit loop. | |
4406 | (check_pieced_value_validity): New function. | |
4407 | (pieced_value_funcs): Reference check_pieced_value_validity, | |
4408 | check_pieced_value_invalid. | |
4409 | (copy_pieced_value_closure): Update. | |
4410 | (check_pieced_value_bits): New function. | |
4411 | (check_pieced_value_invalid): New function. | |
4412 | * d-valprint.c (dynamic_array_type): Add 'val' argument. | |
4413 | (d_val_print): Likewise. | |
4414 | * d-lang.h (d_val_print): Update. | |
4415 | * cp-valprint.c (cp_print_value_fields): Add 'val' argument. | |
4416 | (cp_print_value_fields_rtti): Likewise. | |
4417 | (cp_print_value): Likewise. | |
4418 | (cp_print_static_field): Update. | |
4419 | * c-valprint.c (c_val_print): Add 'val' argument. | |
4420 | (c_value_print): Update. | |
4421 | * c-lang.h (c_val_print): Update. | |
4422 | (cp_print_value_fields): Likewise. | |
4423 | (cp_print_value_fields_rtti): Likewise. | |
4424 | * ada-valprint.c (struct ada_val_print_args): Remove. | |
4425 | (val_print_packed_array_elements): Add 'val' argument. | |
4426 | (ada_val_print): Likewise. Rewrite. | |
4427 | (ada_val_print_stub): Remove. | |
4428 | (ada_val_print_array): Add 'val' argument. | |
4429 | (ada_val_print_1): Likewise. | |
4430 | (print_variant_part): Likewise. | |
4431 | (ada_value_print): Update. | |
4432 | (print_record): Add 'val' argument. | |
4433 | (print_field_values): Likewise. | |
4434 | * ada-lang.h (ada_val_print): Update. | |
4435 | ||
3cf03773 TT |
4436 | 2010-06-11 Tom Tromey <tromey@redhat.com> |
4437 | ||
4438 | * vec.h (VEC_cleanup): New macro. | |
4439 | (DEF_VEC_ALLOC_FUNC_I): Update. | |
4440 | (DEF_VEC_ALLOC_FUNC_P): Likewise. | |
4441 | (DEF_VEC_ALLOC_FUNC_O): Likewise. | |
4442 | * dwarf2loc.c (struct axs_var_loc): Remove. | |
4443 | (unimplemented): New function. | |
4444 | (translate_register): Likewise. | |
4445 | (access_memory): Likewise. | |
4446 | (compile_dwarf_to_ax): Likewise. | |
4447 | (dwarf2_tracepoint_var_loc): Remove. | |
4448 | (dwarf2_tracepoint_var_access): Likewise. | |
4449 | (dwarf2_tracepoint_var_ref): Likewise. | |
4450 | (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax. | |
4451 | (loclist_tracepoint_var_ref): Likewise. | |
4452 | * dwarf2expr.h (dwarf_expr_require_composition): Declare. | |
4453 | * dwarf2expr.c (dwarf_expr_require_composition): Rename from | |
4454 | require_composition. No longer static. | |
4455 | (execute_stack_op): Update. | |
4456 | * ax-gdb.h (trace_kludge): Declare. | |
4457 | ||
2bdf28a0 JK |
4458 | 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
4459 | ||
4460 | * breakpoint.c (breakpoint_restore_shadows): New OWNER comment. | |
4461 | (should_be_inserted): Return zero also on NULL OWNER. | |
4462 | (breakpoint_program_space_exit): New OWNER comment. | |
4463 | (insert_breakpoint_locations): Extend comment for OWNER. | |
4464 | (remove_breakpoint_1, remove_breakpoint): Assert on OWNER. | |
4465 | (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match): | |
4466 | New OWNER comment. | |
4467 | (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER. | |
4468 | (watchpoint_check): New assert on BREAKPOINT_AT and OWNER. | |
4469 | (bpstat_check_location): New assert on OWNER. | |
4470 | (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL | |
4471 | and B initializations to the code block. New assert on them. | |
4472 | (print_one_breakpoint_location): New OWNER comment. | |
4473 | (watchpoint_locations_match): Assert on OWNER. | |
4474 | (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2 | |
4475 | initializations to the code block. New assert on OWNER. | |
4476 | (set_breakpoint_location_function): New assert on OWNER. | |
4477 | (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib) | |
4478 | (bp_location_compare, update_global_location_list) | |
4479 | (update_global_location_list): New OWNER comment. | |
4480 | ||
5b9a19af UW |
4481 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
4482 | ||
4483 | * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h | |
4484 | ||
669211f5 UW |
4485 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
4486 | ||
4487 | * config/nm-linux.h (struct target_ops): Remove forward declaration. | |
4488 | (lin_thread_get_thread_signals): Remove prototype. | |
4489 | (GET_THREAD_SIGNALS): Remove. | |
4490 | * linux-nat.h (lin_thread_get_thread_signals): Add prototype. | |
4491 | * linux-thread-db.c (check_thread_signals): Directly call | |
4492 | lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS. | |
4493 | ||
b7a8b4ef UW |
4494 | 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com> |
4495 | ||
4496 | * gregset.h (GDB_FPXREGSET_T): Remove. | |
4497 | (gdb_fpxregset_t): Likewise. | |
4498 | (supply_fpxregset): Remove prototype. | |
4499 | (fill_fpxregset): Likewise. | |
4500 | * i386-linux-nat.c (supply_fpxregset): Remove. | |
4501 | (fill_fpxregset): Likewise. | |
4502 | (fetch_fpxregs): Inline supply_fpxregset call. | |
4503 | (store_fpxregs): Inline fill_fpxregset call. | |
4504 | ||
4505 | * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h. | |
4506 | * config/i386/nm-linux.h: Remove file. | |
4507 | ||
82892036 MS |
4508 | 2010-06-09 Michael Snyder <msnyder@vmware.com> |
4509 | ||
4510 | * target.c (update_current_target): Fix spelling error in comment. | |
4511 | (target_mourn_inferior): Fix spelling error in error message. | |
4512 | ||
5ddb52fa PH |
4513 | 2010-06-08 Paul Hilfinger <hilfingr@adacore.com> |
4514 | ||
4515 | * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to | |
4516 | SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments. | |
4517 | ||
0f2caa1b MS |
4518 | 2010-06-08 Michael Snyder <msnyder@vmware.com> |
4519 | ||
4520 | * remote.c (remote_close): Set inferior_ptid to null_ptid. | |
4521 | ||
3bebe2f2 JK |
4522 | 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4523 | ||
4524 | * configure.ac <"${have_libpython}" != no>: New workaround of | |
4525 | python#4434. | |
4526 | * configure: Regenerate. | |
4527 | ||
eaaffdf4 HZ |
4528 | 2010-06-08 Hui Zhu <teawater@gmail.com> |
4529 | ||
4530 | * record.c (record_wait): Move signal out of replay code. | |
4531 | ||
5c631832 JK |
4532 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4533 | ||
4534 | Fix PR 10640. | |
4535 | * dwarf2-frame.c (no_dwarf_call): New function. | |
4536 | (execute_stack_op): Set CTX->DWARF_CALL. | |
4537 | * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New. | |
4538 | * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New. | |
4539 | (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field. | |
4540 | * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions. | |
4541 | (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL. | |
4542 | (needs_frame_dwarf_call): New function. | |
4543 | (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL. | |
4544 | * dwarf2read.c (follow_die_offset): Based on former follow_die_ref. | |
4545 | Update the comment. Move variables die, offset and error call to ... | |
4546 | (follow_die_ref): ... a new function. | |
4547 | (dwarf2_fetch_die_location_block): New function. | |
4548 | * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype. | |
4549 | ||
17ea53c3 JK |
4550 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4551 | ||
4552 | * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu. | |
4553 | (dwarf_expr_tls_address): Use per_cu instead of objfile. | |
4554 | (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE. | |
4555 | Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for | |
4556 | this change. | |
4557 | (struct needs_frame_baton): New field per_cu. | |
4558 | (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU. | |
4559 | * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment. | |
4560 | ||
245040d7 SW |
4561 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
4562 | ||
4563 | * cp-support.c (make_symbol_overload_list_namespace): Only search | |
4564 | static and global blocks. | |
4565 | (make_symbol_overload_list_block): New function. | |
4566 | (make_symbol_overload_list): Separate namespace search from block | |
4567 | search. | |
4568 | (make_symbol_overload_list_qualified): Use | |
4569 | make_symbol_overload_list_block. | |
4570 | ||
4c3376c8 SW |
4571 | 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com> |
4572 | ||
4573 | * value.h: Created oload_search_type enum. | |
4574 | (find_overload_match): Use oload_search_type enum. | |
4575 | * valops.c (find_overload_match): Support combined member and | |
4576 | non-member search. | |
4577 | * eval.c (evaluate_subexp_standard): Calls to | |
4578 | find_overload_match now use oload_search_type enum. | |
4579 | (oload_method_static): Verify index is a proper value. | |
4580 | * valarith.c (value_user_defined_cpp_op): Search for and handle | |
4581 | both member and non-member operators. | |
4582 | (value_user_defined_cpp_op): New function. | |
4583 | (value_user_defined_op): New function. | |
4584 | (value_x_unop): Use value_user_defined_op. | |
4585 | (value_x_binop): Ditto. | |
4586 | * cp-support.c (make_symbol_overload_list_using): Added block | |
4587 | iteration. | |
4588 | Add check for namespace aliases and imported declarations. | |
4589 | ||
ee55da67 JK |
4590 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4591 | ||
4592 | * breakpoint.h (owner): Extend the comment. | |
4593 | ||
1a2ab13a JK |
4594 | 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
4595 | ||
4596 | Clear stale specific bp_location from former whole breakpoint. | |
4597 | * breakpoint.c (delete_breakpoint): Move the stale referencing clear | |
4598 | code ... | |
4599 | (free_bp_location): ... here. Rename there the called function to | |
4600 | bpstat_remove_bp_location_callback. | |
4601 | (bpstat_remove_breakpoint_callback): Rename to ... | |
4602 | (bpstat_remove_bp_location_callback): ... here, change DATA resolution | |
4603 | to struct bp_location. Change the called function to | |
4604 | bpstat_remove_bp_location. Create new declaration for the function. | |
4605 | (bpstat_remove_breakpoint): Rename to ... | |
4606 | (bpstat_remove_bp_location): ..., change the parameter to loc, adjust | |
4607 | code for the new parameter type. | |
4608 | ||
16d6b4b7 NS |
4609 | 2010-06-07 Nathan Sidwell <nathan@codesourcery.com> |
4610 | ||
4611 | * README: Make version-agnostic. | |
4612 | ||
7e314c57 JK |
4613 | 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
4614 | ||
4615 | Fix duplicate types for single DIE. | |
4616 | * dwarf2read.c (read_structure_type): Move set_descriptive_type after | |
4617 | set_die_type. | |
4618 | (read_array_type): Remove type initialization. Recheck get_die_type | |
4619 | after initial die_type. Move set_die_type before set_descriptive_type. | |
4620 | (read_set_type): New variable domain_type. Recheck get_die_type after | |
4621 | initial die_type. Move attr initialization later. | |
4622 | (read_tag_pointer_type, read_tag_reference_type): New variable | |
4623 | target_type. Recheck get_die_type after initial die_type. | |
4624 | (read_tag_ptr_to_member_type): Recheck get_die_type after initial | |
4625 | die_type and die_containing_type. | |
4626 | (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): | |
4627 | Recheck get_die_type after initial die_type. | |
4628 | (read_subrange_type): Recheck get_die_type after initial die_type. | |
4629 | Move set_die_type before set_descriptive_type. | |
4630 | (set_die_type): Extend the function comment. Call complaint if DIE has | |
4631 | some type already set. | |
4632 | ||
2f296114 VP |
4633 | 2010-06-05 Vladimir Prus <vladimir@codesourcery.com> |
4634 | ||
4635 | * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust | |
4636 | for current naming of thread groups (iN, not N). | |
4637 | ||
554794dc SDJ |
4638 | 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com> |
4639 | ||
4640 | * ada-lang.c (ada_operator_length): Constify `struct expression'. | |
4641 | * parse.c (operator_length): Likewise. | |
4642 | (operator_length_standard): Likewise. | |
4643 | * parser-defs.h (operator_length): Likewise. | |
4644 | (operator_length_standard): Likewise. | |
4645 | (struct exp_descriptor <operator_length>): Likewise. | |
4646 | ||
967cf477 DE |
4647 | 2010-06-04 Doug Evans <dje@google.com> |
4648 | ||
bddaacb9 | 4649 | Add support for enabling/disabling individual pretty-printers. |
967cf477 DE |
4650 | * python/py-prettyprint.c (search_pp_list): Skip disabled printers. |
4651 | * python/python-internal.h (gdbpy_enabled_cst): Declare. | |
4652 | * python/python.c (gdbpy_enabled_cst): Define. | |
4653 | (_initialize_python): Initialize gdbpy_enabled_cst. | |
4654 | * NEWS: Add entry. | |
4655 | ||
2dec564e JK |
4656 | 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
4657 | ||
4658 | * breakpoint.c (update_global_location_list): Fix comment typo. | |
4659 | ||
44b5680a HZ |
4660 | 2010-06-04 Hui Zhu <teawater@gmail.com> |
4661 | ||
4662 | * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. | |
4663 | ||
e7a30f46 DE |
4664 | 2010-06-03 Doug Evans <dje@google.com> |
4665 | ||
4666 | * configure.ac: Don't fail if python is unusable when | |
4667 | configured with --with-python=auto. | |
4668 | * configure: Regenerate. | |
4669 | ||
84b4420f SW |
4670 | 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> |
4671 | ||
889bf7c5 | 4672 | * dwarf2read.c (new_symbol): Remove redundant naming of symbol. |
84b4420f | 4673 | |
df178451 PM |
4674 | 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr> |
4675 | ||
4676 | * valprint.h (get_array_bounds): Change low and high parameter types | |
4677 | to LONGEST *. | |
0407b3f1 | 4678 | * valprint.c (get_array_bounds): Use get_discrete_bounds call to |
df178451 PM |
4679 | compute bounds. |
4680 | (val_print_array_elements): Adapt to change above. | |
4681 | * ada-valprint.c (print_optional_low_bound): Adapt to change above. | |
4682 | * p-valprint.c (pascal_val_print): Likewise. | |
4683 | ||
fd5700c7 JK |
4684 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
4685 | ||
4686 | * symfile.c (init_filename_language_table): New extensions .for, .FOR, | |
4687 | .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and | |
4688 | .F08. | |
4689 | ||
f55ee35c JK |
4690 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
4691 | ||
4692 | Support DW_TAG_module as separate namespaces. | |
4693 | * dwarf2read.c (typename_concat): New parameter physname. | |
4694 | (read_module_type): New function and declaration. | |
4695 | (scan_partial_symbols): Scan also DW_TAG_module children. | |
4696 | (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass | |
4697 | to typename_concat backward compatible physname value 0. | |
4698 | (partial_die_full_name, read_namespace_type): Pass to typename_concat | |
4699 | backward compatible physname value 0. | |
4700 | (add_partial_module, read_module): Remove FIXME comment. | |
4701 | (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. | |
4702 | (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for | |
4703 | DIEs under DW_TAG_module. | |
4704 | (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and | |
4705 | DW_AT_MIPS_linkage_name first, extend it for language_fortran | |
4706 | && physname and return there instead of just setting NAME. Extend | |
4707 | the main block for language_fortran. Pass physname parameter to the | |
4708 | typename_concat call. | |
4709 | (read_import_statement, read_func_scope, get_scope_pc_bounds) | |
4710 | (load_partial_dies, determine_prefix): Support also DW_TAG_module. | |
4711 | (new_symbol): Fill in cplus_specific.demangled_name if it is still | |
4712 | missing from SYMBOL_SET_NAMES in the language_fortran case. | |
4713 | (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module | |
4714 | variables. | |
4715 | (read_type_die) <DW_TAG_module>: New. | |
4716 | (MAX_SEP_LEN): Increase to 7. | |
4717 | (typename_concat): New parameter physname. New variable lead. Support | |
4718 | also language_fortran. | |
4719 | * f-exp.y (yylex): Consider : also as a symbol name character class. | |
4720 | * f-lang.c: Include cp-support.h. | |
4721 | (f_word_break_characters, f_make_symbol_completion_list): New functions. | |
4722 | (f_language_defn): Use cp_lookup_symbol_nonlocal, | |
4723 | f_word_break_characters and f_make_symbol_completion_list. | |
4724 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. | |
4725 | * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. | |
4726 | * symtab.c (symbol_init_language_specific): Support language_fortran. | |
4727 | (symbol_find_demangled_name): New comment on language_fortran. | |
4728 | (symbol_natural_name, symbol_demangled_name): Use demangled_name even | |
4729 | for language_fortran. | |
4730 | (lookup_symbol_aux_local): Check imports also for language_fortran. | |
4731 | (default_make_symbol_completion_list): Rename to ... | |
4732 | (default_make_symbol_completion_list_break_on): ... this name. New | |
4733 | parameter break_on, use it. | |
4734 | (default_make_symbol_completion_list): New stub. | |
4735 | * symtab.h (default_make_symbol_completion_list_break_on): New | |
4736 | prototype. | |
4737 | ||
cb91c06a JB |
4738 | 2010-06-02 Joel Brobecker <brobecker@adacore.com> |
4739 | ||
4740 | * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call | |
4741 | to error. | |
4742 | ||
5c315b68 JK |
4743 | 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> |
4744 | ||
4745 | * dwarf2read.c (typename_concat): Add const to the variable sep. | |
4746 | ||
9eae7c52 TT |
4747 | 2010-06-02 Tom Tromey <tromey@redhat.com> |
4748 | ||
4749 | * dwarf2loc.h (dwarf2_per_cu_data): |