Commit | Line | Data |
---|---|---|
418c7cf7 JK |
1 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2 | ||
3 | * linespec.c (find_method): Accept the function type automatically only | |
4 | if it was specified with parameter types. | |
5 | ||
3d50dd94 JK |
6 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
7 | ||
8 | Stop on first linespec terminator instead of eating what we can. | |
9 | * linespec.c (is_linespec_boundary): New function. | |
10 | (name_end): Remove function. | |
11 | (keep_name_info): New parameter on_boundary, replace the body. | |
12 | (decode_line_1): Provide the parameter to keep_name_info. | |
13 | (decode_compound): Likewise. Drop the trailing java return type | |
14 | handling. Twice. | |
15 | ||
dcf9f4ab JK |
16 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
17 | ||
18 | Fall back linespec to minimal symbols. | |
19 | * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect | |
20 | decode_compound by TRY_CATCH, fall back on minsyms if it failed. | |
21 | (find_method, symbol_found): Change error to cplusplus_error. | |
22 | ||
3f542ed1 JK |
23 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
24 | ||
bc68c4e5 | 25 | * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE. |
3f542ed1 | 26 | |
900e11f9 JK |
27 | 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
28 | Tom Tromey <tromey@redhat.com> | |
29 | ||
30 | * dwarf2read.c (check_physname): New variable. | |
31 | (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name. | |
32 | (show_check_physname): New function. | |
33 | (_initialize_dwarf2_read): Add `check-physname' for check_physname. | |
34 | ||
2301925d JB |
35 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
36 | ||
37 | * machoread.c (macho_symfile_read): Delete OBE comment. | |
38 | ||
38947cca JB |
39 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
40 | ||
41 | * machoread.c (struct macho_oso_data): Delete. | |
42 | (current_oso): Delete. | |
43 | (macho_relocate_common_syms): New function, mostly extracted | |
44 | out of | |
45 | (macho_add_oso_symfile): Call macho_relocate_common_syms. | |
46 | Remove code that sets and unset current_oso. | |
47 | (macho_symfile_relocate): Delete handling of common symbols, | |
48 | now moved to macho_relocate_common_syms. | |
49 | ||
a7aa0d73 JB |
50 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
51 | ||
52 | * darwin-nat.c (darwin_ptrace): Add documentation. | |
53 | Set errno to zero before calling ptrace. If ptrace returns | |
54 | -1 and errno is zero, then change then return zero. | |
55 | (darwin_kill_inferior): Issue a warning instead of triggering | |
56 | a failed assertion when the PT_KILL ptrace operations returned | |
57 | nonzero. | |
58 | ||
5e9bc145 JB |
59 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
60 | ||
61 | * darwin-nat.c (darwin_detach): Call darwin_resume_inferior | |
62 | only when inf->private->no_ptrace. | |
63 | ||
00eb2c4a JB |
64 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
65 | ||
66 | * ada-lang.c (print_it_exception): Print temporary catchpoints | |
67 | as "Temporary catchpoint". | |
68 | (print_mention_exception): Likewise. | |
69 | ||
127c81bc TT |
70 | 2011-07-01 Tom Tromey <tromey@redhat.com> |
71 | ||
72 | * jv-lang.c (java_language_defn): Use java_printchar, | |
73 | java_printstr. | |
74 | (java_get_encoding): New function. | |
75 | (java_emit_char): Use generic_emit_char. | |
76 | (java_printchar): New function. | |
77 | (java_printstr): Likewise. | |
78 | ||
25552254 JB |
79 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
80 | ||
81 | * ada-typeprint.c (print_record_type): If unable to decode | |
82 | the name of the parent type, use the encoded name. | |
83 | ||
d2d43431 JB |
84 | 2011-07-01 Jean-Charles Delay <delay@adacore.com> |
85 | ||
86 | * ada-typeprint.c (ada_print_type): Fix both PAD type and | |
87 | pointer to constrained packed array type output. | |
88 | * ada-valprint.c (ada_val_print_1): Fix pointer to constrained | |
89 | packed array output. | |
90 | ||
54ae186f JB |
91 | 2011-07-01 Jean-Charles Delay <delay@adacore.com> |
92 | ||
93 | * ada-typeprint.c (print_array_type): removed if condition on show | |
94 | being negative for bounds printing. | |
95 | ||
8f17729f JB |
96 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
97 | ||
98 | * ada-lang.c (ada_identical_enum_types_p): New function. | |
99 | (symbols_are_identical_enums): New function. | |
100 | (remove_extra_symbols): Do nothing if NSYMS < 2. | |
101 | Use symbols_are_identical_enums. | |
102 | ||
f5aa6869 JB |
103 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
104 | ||
105 | * ada-valprint.c (ada_value_print): Handle typedefs. | |
106 | ||
8f465ea7 JB |
107 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
108 | ||
109 | * ada-lang.c (ada_evaluate_subexp): Add missing word in comment. | |
110 | ||
828292f2 JB |
111 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
112 | ||
113 | * ada-lang.c (thin_descriptor_type): Deal with typedefs. | |
114 | (decode_constrained_packed_array): Likewise. | |
115 | (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise. | |
116 | ||
18920c42 JB |
117 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
118 | ||
119 | * ada-exp.y (convert_char_literal): Handle typedef types. | |
120 | ||
c90092fe JB |
121 | 2011-07-01 Joel Brobecker <brobecker@adacore.com> |
122 | ||
123 | * ada-lang.c (ada_remove_trailing_digits): Expand documentation. | |
124 | ||
f748fb40 TT |
125 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
126 | ||
127 | * varobj.c (varobj_create): Call do_cleanups on early exit path. | |
128 | * valops.c (find_overload_match): Call do_cleanups on early exit | |
129 | path. | |
130 | * solib.c (solib_find): Call do_cleanups on early exit path. | |
131 | ||
3bb47e8b TT |
132 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
133 | ||
134 | * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups. | |
135 | * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all | |
136 | return paths. Defer final do_cleanups until last return. | |
137 | * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after | |
138 | early return. | |
139 | ||
4727bad3 TT |
140 | 2011-06-30 Tom Tromey <tromey@redhat.com> |
141 | ||
142 | * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1. | |
143 | ||
bb361dbf AB |
144 | 2011-06-30 Andrew Burgess <aburgess@broadcom.com> |
145 | ||
146 | * MAINTAINERS (Write After Approval): Add myself to the list. | |
147 | ||
e0d00bc7 JK |
148 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
149 | ||
150 | Disable epilogue unwinders on recent GCCs. | |
151 | * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab, | |
152 | initialize it, return 0 on EPILOGUE_UNWIND_VALID. | |
153 | * dwarf2read.c (process_full_comp_unit): Initialize | |
154 | EPILOGUE_UNWIND_VALID. | |
155 | * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab, | |
156 | initialize it, return 0 on EPILOGUE_UNWIND_VALID. | |
157 | * symtab.h (struct symtab): New field epilogue_unwind_valid. | |
158 | ||
4632c0d0 JK |
159 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
160 | ||
161 | Code cleanup - reformatting. | |
162 | * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ... | |
163 | (producer_is_gcc_ge_4): ... here, change the return value. | |
164 | (process_full_comp_unit): New variable gcc_4_minor, adjust the value | |
165 | interpretation. | |
166 | ||
32019081 JK |
167 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
168 | ||
169 | Fix non-only rename list for Fortran modules import. | |
170 | * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the | |
171 | cp_add_using_directive caller. | |
172 | (cp_add_using_directive): New parameter excludes, describe it. New | |
173 | variables ix and param. Compare if also excludes match. Allocate NEW | |
174 | with variable size, initialize EXCLUDES there. | |
175 | (cp_lookup_symbol_imports): New variable excludep, test | |
176 | current->EXCLUDES with it. | |
177 | * cp-support.h: Include vec.h. | |
178 | (struct using_direct): New field excludes, describe it. | |
179 | (DEF_VEC_P (const_char_ptr)): New. | |
180 | (cp_add_using_directive): New parameter excludes. | |
181 | * defs.h (const_char_ptr): New typedef. | |
182 | * dwarf2read.c (read_import_statement): New variables child_die, | |
183 | excludes and cleanups, read in excludes. | |
184 | (read_namespace): Adjust the cp_add_using_directive caller. | |
185 | ||
70c622a3 JK |
186 | 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
187 | ||
188 | Code cleanup. | |
189 | * cp-namespace.c (cp_add_using_directive): Turn positive comparison to | |
190 | negative comparisons. | |
191 | ||
39c4d40a TT |
192 | 2011-06-29 André Pönitz <andre.poenitz@nokia.com> |
193 | ||
194 | * mi/mi-main.c (mi_cmd_list_features): Emit | |
195 | breakpoint-notifications. | |
196 | ||
3b2b8fea TT |
197 | 2011-06-29 Tom Tromey <tromey@redhat.com> |
198 | ||
199 | PR fortran/10036: | |
200 | * valprint.h (generic_emit_char, generic_printstr): Declare. | |
201 | * valprint.c (wchar_printable, append_string_as_wide) | |
202 | (print_wchar): Move from c-lang.c. | |
203 | (generic_emit_char): New function; mostly taken from c_emit_char. | |
204 | (generic_printstr): New function; mostly taken from c_printstr. | |
205 | * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings | |
206 | represented as arrays. | |
207 | <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character | |
208 | type. | |
209 | * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat | |
210 | identically to TYPE_CODE_INT. | |
211 | * f-lang.c (f_get_encoding): New function. | |
212 | (f_emit_char): Use generic_emit_char. | |
213 | (f_printchar): Replace comment. | |
214 | (f_printstr): Use generic_printstr. | |
215 | * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran | |
216 | "character" types specially. | |
217 | <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR | |
218 | for Fortran. | |
219 | * c-lang.c (wchar_printable, append_string_as_wide, print_wchar): | |
220 | Move to valprint.c | |
221 | (c_emit_char): Call generic_emit_char. | |
222 | (c_printstr): Call generic_printstr. | |
223 | ||
168e6d44 GB |
224 | 2011-06-29 Gary Benson <gbenson@redhat.com> |
225 | ||
226 | * breakpoint.c (bpstat_what): Removed duplicated case. | |
227 | ||
1c033f8c TT |
228 | 2011-06-28 Tom Tromey <tromey@redhat.com> |
229 | ||
230 | * python/python-internal.h (PY_SSIZE_T_CLEAN): Define. | |
231 | ||
5fe41fbf TT |
232 | 2011-06-27 Tom Tromey <tromey@redhat.com> |
233 | ||
234 | * valops.c (find_overload_match): Call do_cleanups before early | |
235 | return. | |
236 | * top.c (execute_command): Call do_cleanups before early return. | |
237 | (command_loop): Likewise. | |
238 | * stack.c (backtrace_command): Make a null cleanup early. Don't | |
239 | conditionally call do_cleanups. | |
240 | * python/py-value.c (TRY_CATCH): Move cleanup handling into | |
241 | TRY_CATCH. | |
242 | * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange | |
243 | so cleanups are always run. | |
244 | * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups. | |
245 | * findcmd.c (parse_find_args): Call do_cleanups on early return | |
246 | path. | |
247 | * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early. | |
248 | Don't conditionally call do_cleanups. | |
249 | * cli/cli-script.c (execute_user_command): Initialize 'old_chain' | |
250 | later. | |
251 | ||
e26bd57d EB |
252 | 2011-06-27 Eric Botcazou <ebotcazou@adacore.com> |
253 | ||
254 | * MAINTAINERS (Write After Approval): Use default email address. | |
255 | ||
6c3097fc JB |
256 | 2011-06-27 Joel Brobecker <brobecker@adacore.com> |
257 | ||
258 | * MAINTAINERS (Write After Approval): Add Eric Botcazou. | |
259 | ||
369c397b JB |
260 | 2011-06-27 Eric Botcazou <ebotcazou@adacore.com> |
261 | ||
262 | * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset, | |
263 | saved_regs_mask and copied_regs_mask fields. | |
264 | (sparc_record_save_insn): New prototype. | |
265 | * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields. | |
266 | (sparc_record_save_insn): New function. | |
267 | (sparc_analyze_prologue): Add head comment. Recognize store insns | |
268 | of call-saved registers. Use OFFSET consistently. Recognize flat | |
269 | frames and cache their settings. | |
270 | (sparc32_skip_prologue): Handle flat frames. | |
271 | (sparc_frame_cache): Add frame_offset to the base address. | |
272 | (sparc32_frame_cache): Adjust to new frame description. | |
273 | (sparc32_frame_prev_register): Likewise. | |
274 | * sparc64-tdep.c (sparc64_frame_prev_register): Likewise. | |
275 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise. | |
276 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise. | |
277 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the | |
278 | frame by calling sparc_record_save_insn. | |
279 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise. | |
280 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise. | |
281 | * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise. | |
282 | ||
b315ab21 TG |
283 | 2011-06-27 Tristan Gingold <gingold@adacore.com> |
284 | ||
285 | * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped | |
286 | field by map_addr and map_len. | |
287 | (dwarf2_read_section): Adjust for the new bfd_mmap api. | |
288 | (munmap_section_buffer): Likewise. | |
289 | ||
ddd49eee TT |
290 | 2011-06-24 Tom Tromey <tromey@redhat.com> |
291 | ||
292 | * varobj.c (update_dynamic_varobj_children): Make 'name' const. | |
293 | * symtab.h (lookup_struct, lookup_union, lookup_enum): Update. | |
294 | * python/python.c (gdbpy_parameter): Make 'arg' const. | |
295 | (execute_gdb_command): Likewise. | |
296 | (gdbpy_decode_line): Likewise. Copy it. | |
297 | (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it. | |
298 | (gdbpy_write): Make 'arg' const. | |
299 | * python/py-type.c (typy_lookup_typename): Make 'type_name' | |
300 | const. | |
301 | (gdbpy_lookup_type): Likewise. | |
302 | * python/py-prettyprint.c (print_children): Make 'name' const. | |
303 | * python/py-param.c (parmpy_init): Make 'name' const. Copy it. | |
304 | * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a | |
305 | Py_ssize_t. | |
306 | * python/py-function.c (fnpy_init): Make 'name' const. | |
307 | * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it. | |
308 | (gdbpy_string_to_argv): Make 'input' const. | |
309 | * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy | |
310 | it. | |
311 | * gdbtypes.h (lookup_typename): Update. | |
312 | * gdbtypes.c (lookup_typename): Make 'name' const. | |
313 | (lookup_struct): Likewise. | |
314 | (lookup_union): Likewise. | |
315 | (lookup_enum): Likewise. | |
316 | ||
5998129b TT |
317 | 2011-06-24 Tom Tromey <tromey@redhat.com> |
318 | ||
319 | * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to | |
320 | gdb_thread_db.h. Move all common/ entries to be together. | |
321 | (TAGS): Don't depend on DEPFILES. | |
322 | ||
6e586cc5 YQ |
323 | 2011-06-23 Yao Qi <yao@codesourcery.com> |
324 | ||
325 | * infrun.c (start_remote): Move call init_wait_for_inferior to ... | |
326 | * remote.c (remote_start_remote): ... here. | |
327 | * monitor.c (monitor_open): ... here. | |
328 | ||
86c3c1fc AB |
329 | 2011-06-23 Andrew Burgess <aburgess@broadcom.com> |
330 | ||
331 | * gdbtypes.c (append_composite_type_field_aligned): Fix | |
332 | calculation of bit position based on alignment. | |
333 | ||
28010a5d PA |
334 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
335 | ||
336 | * breakpoint.c (bpstat_stop_status): Call the check_status | |
337 | breakpoint_ops method. | |
338 | (print_one_breakpoint_location): Also print the condition for Ada | |
339 | exception catchpoints. | |
340 | (allocate_bp_location): New, factored out from | |
341 | allocate_bp_location. | |
342 | (allocate_bp_location): Adjust. Call the owner breakpoint's | |
343 | allocate_location method, if there is one. | |
344 | (free_bp_location): Call the locations's dtor method, if there is | |
345 | one. | |
346 | (init_raw_breakpoint_without_location): New breakpoint_ops | |
347 | parameter. Use it. | |
348 | (set_raw_breakpoint_without_location): Adjust. | |
349 | (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down. | |
350 | (set_raw_breakpoint): Adjust. | |
351 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops) | |
352 | (catch_syscall_breakpoint_ops): Install NULL allocate_location, | |
353 | re_set and check_status methods. | |
354 | (init_catchpoint): Don't memset, initialize thread, addr_string | |
355 | and enable_state. Pass the ops down to init_raw_breakpoint. | |
356 | (install_catchpoint): Rename to ... | |
357 | (install_breakpoint): ... this, and make extern. | |
358 | (create_fork_vfork_event_catchpoint): Adjust. | |
359 | (catch_exec_breakpoint_ops): Install NULL allocate_location, | |
360 | re_set and check_status methods. | |
361 | (create_syscall_event_catchpoint): Adjust. | |
362 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
363 | (masked_watchpoint_breakpoint_ops): Install NULL | |
364 | allocate_location, re_set and check_status methods. | |
365 | (catch_exec_command_1): Adjust. | |
366 | (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location, | |
367 | re_set and check_status methods. | |
368 | (create_ada_exception_breakpoint): Rename to ... | |
369 | (init_ada_exception_breakpoint): ... this. Add a struct | |
370 | breakpoint parameter, and delete the exp_string, cond_string and | |
371 | cond parameters. Use init_raw_breakpoint, and don't install or | |
372 | mention the breakpoint yet. Don't clear breakpoint fields that | |
373 | init_raw_breakpoint already clears. | |
374 | (re_set_breakpoint): Delete, split into ... | |
375 | (breakpoint_re_set_default, prepare_re_set_context): ... these new | |
376 | functions. | |
377 | (breakpoint_re_set_one): Call the breakpoint's | |
378 | breakpoint_ops->re_set implementation, if there's one. Adjust. | |
379 | * breakpoint.h: Forward declare struct bpstats and struct bp_location. | |
380 | (struct bp_location_ops): New type. | |
381 | (struct bp_location): New field `ops'. | |
382 | (struct breakpoint_ops): New `allocate_location', `re_set' and | |
383 | `check_status' fields. Make `breakpoint_hit''s description match | |
384 | reality. | |
385 | (init_bp_location): Declare. | |
386 | (breakpoint_re_set_default): Declare. | |
387 | (create_ada_exception_breakpoint): Rename to ... | |
388 | (init_ada_exception_breakpoint): ... this. Add a struct | |
389 | breakpoint parameter, and delete the exp_string, cond_string and | |
390 | cond parameters. | |
391 | (install_breakpoint): Declare. | |
392 | * ada-lang.c: Include exceptions.h. | |
393 | <Ada exceptions description>: Update. | |
394 | (struct ada_catchpoint_location): New type. | |
395 | (ada_catchpoint_location_dtor): New function. | |
396 | (ada_catchpoint_location_ops): New global. | |
397 | (ada_catchpoint): New type. | |
398 | (create_excep_cond_exprs): New function. | |
399 | (dtor_exception, allocate_location_exception, re_set_exception) | |
400 | (should_stop_exception, check_status_exception): New functions. | |
401 | (print_one_exception, print_mention_exception) | |
402 | (print_recreate_exception): Adjust. | |
403 | (dtor_catch_exception, allocate_location_catch_exception) | |
404 | (re_set_catch_exception, check_status_catch_exception): New | |
405 | functions. | |
406 | (catch_exception_breakpoint_ops): Install them. | |
407 | (dtor_catch_exception_unhandled) | |
408 | (allocate_location_catch_exception_unhandled) | |
409 | (re_set_catch_exception_unhandled) | |
410 | (check_status_catch_exception_unhandled): New functions. | |
411 | (catch_exception_unhandled_breakpoint_ops): Install them. | |
412 | (dtor_catch_assert, allocate_location_catch_assert) | |
413 | (re_set_catch_assert, check_status_catch_assert): New functions. | |
414 | (catch_assert_breakpoint_ops): Install them. | |
415 | (ada_exception_catchpoint_p): Delete. | |
416 | (catch_ada_exception_command_split) | |
417 | (ada_exception_catchpoint_cond_string): Rename exp_string | |
418 | parameter to excep_string. Adjust. | |
419 | (ada_parse_catchpoint_condition): Delete. | |
420 | (ada_exception_sal): Rename the exp_string parameter to | |
421 | excep_string. Delete the cond_string and cond parameters. | |
422 | Adjust. | |
423 | (ada_decode_exception_location): Rename the exp_string parameter | |
424 | to excep_string. Delete the cond_string and cond parameters. | |
425 | Adjust. | |
426 | (create_ada_exception_catchpoint): New function. | |
427 | (catch_ada_exception_command, ada_decode_assert_location) | |
428 | (catch_assert_command): Adjust. | |
429 | * ada-lang.h (ada_exception_catchpoint_p): Delete declaration. | |
430 | ||
9ac4176b PA |
431 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
432 | ||
433 | * ada-lang.c: Include arch-utils.h. | |
434 | (ada_decode_exception_location): Make static. | |
435 | (catch_ada_exception_command): Moved here from breakpoint.c. | |
436 | (ada_decode_assert_location): Make static. | |
437 | (catch_assert_command): Moved here from breakpoint.c. | |
438 | (_initialize_ada_lang): Install the exception and assert | |
439 | catchpoint commands here. | |
440 | * ada-lang.h (ada_decode_exception_location) | |
441 | (ada_decode_assert_location): Delete declarations. | |
442 | * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to | |
443 | breakpoint.h. | |
444 | (create_ada_exception_breakpoint): Make extern. | |
445 | (catch_ada_exception_command, catch_assert_command): Moved to | |
446 | ada-lang.c. | |
447 | (add_catch_command): Make extern. | |
448 | (_initilize_breakpoint): Don't install the exception and assert | |
449 | catchpoint commands here. | |
450 | * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from | |
451 | breakpoint.c | |
452 | (add_catch_command, create_ada_exception_breakpoint): Declare. | |
453 | ||
c56053d2 PA |
454 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
455 | ||
456 | * breakpoint.c (init_raw_breakpoint_without_location): Don't add | |
457 | the breakpoint to the breakpoint chain here. | |
458 | (set_raw_breakpoint_without_location): Add the breakpoint to the | |
459 | breakpoint chain here. | |
460 | (init_raw_breakpoint): Adjust comments. | |
461 | (set_raw_breakpoint): Add the breakpoint to the breakpoint chain | |
462 | here. | |
463 | (init_catchpoint): Don't set the catchpoint's breakpoint number | |
464 | here. | |
465 | (install_catchpoint): New function. | |
466 | (create_fork_vfork_event_catchpoint) | |
467 | (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to | |
468 | use install_catchpoint. | |
469 | ||
d2f3fc74 PA |
470 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
471 | ||
472 | * breakpoint.c (create_catchpoint_without_mention) | |
473 | (create_catchpoint): Delete. | |
474 | ||
b4d90040 PA |
475 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
476 | ||
477 | * breakpoint.h (struct breakpoint): Delete field `exec_pathname'. | |
478 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
479 | reference to exec_pathname. | |
480 | (struct exec_catchpoint): New type. | |
481 | (dtor_catch_exec): New function. | |
482 | (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust. | |
483 | (catch_exec_breakpoint_ops): Install dtor_catch_syscall. | |
484 | (catch_exec_command_1): Adjust to use init_catchpoint. | |
485 | (delete_breakpoint): Remove reference to exec_pathname. | |
486 | ||
be5c67c1 PA |
487 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
488 | ||
489 | * breakpoint.h (struct breakpoint_ops): New field `dtor'. | |
490 | (struct breakpoint): Delete field `syscalls_to_be_caught'. | |
491 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
492 | reference to syscalls_to_be_caught. | |
493 | (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a | |
494 | NULL `dtor'. | |
495 | (struct syscall_catchpoint): New type. | |
496 | (dtor_catch_syscall): New function. | |
497 | (insert_catch_syscall, remove_catch_syscall) | |
498 | (breakpoint_hit_catch_syscall, print_one_catch_syscall) | |
499 | (print_recreate_catch_syscall): Adjust. | |
500 | (catch_syscall_breakpoint_ops): Install dtor_catch_syscall. | |
501 | (catch_exec_breakpoint_ops): Install a NULL `dtor'. | |
502 | (create_syscall_event_catchpoint): Adjust to use init_catchpoint. | |
503 | (ranged_breakpoint_ops, watchpoint_breakpoint_ops) | |
504 | (masked_watchpoint_breakpoint_ops) | |
505 | (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'. | |
506 | (delete_breakpoint): Call the `dtor' breakpoint_ops method, if | |
507 | there is one. Remove references to syscalls_to_be_caught. | |
508 | (catching_syscall_number): Adjust. | |
509 | * ada-lang.c (catch_exception_breakpoint_ops) | |
510 | (catch_exception_unhandled_breakpoint_ops) | |
511 | (catch_assert_breakpoint_ops): Install a NULL `dtor'. | |
512 | ||
e29a4733 PA |
513 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
514 | ||
515 | * breakpoint.h (struct breakpoint): Delete forked_inferior_pid | |
516 | field. | |
517 | * breakpoint.c (init_raw_breakpoint_without_location): Remove | |
518 | reference to forked_inferior_pid. | |
519 | (struct fork_catchpoint): New type. | |
520 | (breakpoint_hit_catch_fork, print_it_catch_fork) | |
521 | (print_one_catch_fork, breakpoint_hit_catch_vfork) | |
522 | (print_it_catch_vfork, print_one_catch_vfork): Adjust. | |
523 | (create_fork_vfork_event_catchpoint): Adjust to use | |
524 | init_catchpoint. | |
525 | ||
346774a9 PA |
526 | 2011-06-22 Pedro Alves <pedro@codesourcery.com> |
527 | ||
528 | * breakpoint.c (add_to_breakpoint_chain) | |
529 | (init_raw_breakpoint_without_location): New functions, factored | |
530 | out from ... | |
531 | (set_raw_breakpoint_without_location): ... this one. | |
532 | (init_raw_breakpoint): New function, factored out from | |
533 | set_raw_breakpoint and adjusted to use | |
534 | init_raw_breakpoint_without_location. | |
535 | (set_raw_breakpoint): Adjust. | |
536 | (init_catchpoint): New function, factored out from | |
537 | create_catchpoint_without_mention and adjusted to use | |
538 | init_raw_breakpoint. | |
539 | (create_catchpoint_without_mention): Adjust. | |
540 | ||
c38c4bc5 TT |
541 | 2011-06-22 Tom Tromey <tromey@redhat.com> |
542 | ||
543 | * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type | |
544 | argument of 0 specially. | |
545 | ||
b138ce37 YQ |
546 | 2011-06-22 Yao Qi <yao@codesourcery.com> |
547 | ||
548 | * infrun.c (handle_inferior_event): Remove write-only local variable | |
549 | `sw_single_step_trap_p'. | |
550 | ||
03de6823 TT |
551 | 2011-06-20 Tom Tromey <tromey@redhat.com> |
552 | ||
553 | * symtab.c (lookup_language_this): End loop if block is NULL. | |
554 | ||
66a17cb6 TT |
555 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
556 | ||
557 | * valops.c (value_of_this): Use lookup_language_this. | |
558 | * symtab.h (lookup_language_this): Declare. | |
559 | * symtab.c (lookup_language_this): New function. | |
560 | (lookup_symbol_aux): Use lookup_language_this. | |
561 | * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this. | |
562 | ||
7518bff5 TT |
563 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
564 | ||
565 | * value.h (value_of_this): Update. | |
566 | (value_of_local): Remove. | |
567 | * valops.c (value_of_this): Rename from value_of_local. Change | |
568 | parameters. | |
569 | * p-exp.y (exp): Update. | |
570 | (variable): Likewise. | |
571 | * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this. | |
572 | ||
aee28ec6 TT |
573 | 2011-06-17 Tom Tromey <tromey@redhat.com> |
574 | ||
575 | * valops.c (value_of_local): Complain if NAME is NULL. | |
576 | * std-operator.def (OP_OBJC_SELF): Remove. | |
577 | * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove. | |
578 | * objc-exp.y (name_not_typename): Use OP_THIS. | |
579 | * expprint.c (print_subexp_standard) <OP_THIS>: Print language's | |
580 | name for "this". | |
581 | <OP_OBJC_SELF>: Remove. | |
582 | * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove. | |
583 | ||
eed8f803 TG |
584 | 2011-06-16 Tristan Gingold <gingold@adacore.com> |
585 | ||
586 | * python/py-events.h (gdb_py_events): Make it extern. | |
587 | * python/py-evtregistry.c (gdb_py_events): Declare. | |
588 | ||
864ac8a7 HZ |
589 | 2011-06-16 Hui Zhu <teawater@gmail.com> |
590 | ||
591 | * remote.c (remote_trace_set_readonly_regions): Add check for | |
592 | remote_protocol_packets[PACKET_qXfer_traceframe_info].support before | |
593 | output warning. | |
594 | ||
ef7e8358 UW |
595 | 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org> |
596 | ||
597 | * arm-linux-tdep.c: Include "auxv.h". | |
598 | (AT_HWCAP): Define. | |
599 | (ARM_LINUX_SIZEOF_VFP): Define. | |
600 | (arm_linux_supply_vfp): New function. | |
601 | (arm_linux_collect_vfp): Likewise. | |
602 | (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections. | |
603 | (arm_linux_fpa_regset_sections): New variable. | |
604 | (arm_linux_vfp_regset_sections): Likewise. | |
605 | (arm_linux_core_read_description): New function. | |
606 | (arm_linux_init_abi): Install arm_linux_core_read_description and | |
607 | arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as | |
608 | appropriate for the architecture. | |
609 | * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset". | |
610 | (tdesc_arm_with_m): Declare. | |
611 | (tdesc_arm_with_iwmmxt): Likewise. | |
612 | (tdesc_arm_with_vfpv2): Likewise. | |
613 | (tdesc_arm_with_vfpv3): Likewise. | |
614 | (tdesc_arm_with_neon): Likewise. | |
615 | * arm-linux-nat.c: Move features/*.c includes ... | |
616 | * arm-tdep.c: ... here. | |
617 | * arm-linux-nat.c (arm_linux_read_description): Move initializing | |
618 | target description data structures ... | |
619 | * arm-tdep.c (_initialize_arm_tdep): ... here. | |
620 | * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3, | |
621 | HWCAP_VFPv3D16): Move definitions ... | |
622 | * arm-linux-tdep.h: ... here. | |
623 | ||
c2fa21f1 HZ |
624 | 2011-06-15 Hui Zhu <teawater@gmail.com> |
625 | ||
626 | * remote.c (remote_trace_set_readonly_regions): Add a check for | |
627 | target_buf_size. | |
628 | ||
dd707e8e TT |
629 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
630 | ||
631 | * coffread.c (coffread_objfile): Rename from current_objfile. | |
632 | * dbxread.c (dbxread_objfile): Rename from current_objfile. | |
633 | * mdebugread.c (mdebugread_objfile): Rename from current_objfile. | |
634 | ||
86cc0029 TT |
635 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
636 | ||
637 | * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile) | |
638 | (class_symtab): Remove. | |
639 | (jv_dynamics_progspace_key): New global. | |
640 | (jv_per_objfile_free): Reset program space data. Update assert. | |
641 | Don't clear globals. | |
642 | (get_dynamics_objfile): Use and set program space data. | |
643 | (get_java_class_symtab): Use get_dynamics_objfile. | |
644 | (add_class_symbol): Likewise. | |
645 | (java_link_class_type): Likewise. | |
646 | (java_object_type, jv_clear_object_type, set_java_object_type): | |
647 | Remove. | |
648 | (get_java_object_type): Update. Don't cache result. | |
649 | (is_object_type): Don't call set_java_object_type. | |
650 | (_initialize_java_language): Don't set jv_type_objfile_data_key; | |
651 | initialize jv_dynamics_progspace_key. | |
652 | ||
91a81f69 TT |
653 | 2011-06-14 Tom Tromey <tromey@redhat.com> |
654 | ||
655 | * symtab.h (current_objfile): Don't declare. | |
656 | * objfiles.h (current_objfile): Don't declare. | |
657 | * objfiles.c (current_objfile): Remove. | |
658 | * mdebugread.c (current_objfile): New file-scope global. | |
659 | * dbxread.c (current_objfile): New file-scope global. | |
660 | * coffread.c (current_objfile): New file-scope global. | |
661 | ||
dc7eb48e PA |
662 | 2011-06-13 Pedro Alves <pedro@codesourcery.com> |
663 | ||
664 | * top.h (line): Rename to ... | |
665 | (saved_command_line): ... this. | |
666 | (linesize): Rename to ... | |
667 | (saved_command_line_size): ... this. | |
668 | * top.c (line): Rename to ... | |
669 | (saved_command_line): ... this. | |
670 | (linesize): Rename to ... | |
671 | (saved_command_line_size): ... this. | |
672 | (dont_repeat, command_line_input, dont_repeat_command): Adjust. | |
673 | * event-top.c (command_line_handler): Adjust. | |
674 | * main.c (captured_main): Adjust. | |
675 | ||
0d6c2135 MK |
676 | 2011-06-12 Mark Kettenis <kettenis@gnu.org> |
677 | ||
678 | * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call | |
679 | get_frame_func instead of get_frame_pc to determine the code | |
680 | address used to construct the frame ID. | |
681 | (i386_epilogue_frame_unwind_stop_reason): Fix coding style. | |
682 | (i386_epilogue_frame_this_id): Likewise. | |
683 | (i386_epilogue_frame_prev_register): New function. | |
684 | (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register. | |
685 | (i386_stack_tramp_frame_sniffer): Fix coding style. | |
686 | (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register. | |
687 | (i386_gdbarch_init): Fix comments. | |
688 | ||
8bbdd3f4 MK |
689 | 2011-06-12 Mark Kettenis <kettenis@gnu.org> |
690 | ||
691 | * i386-tdep.c (i386_match_insn_block): Use length of the proper | |
692 | instruction when walking back through the instruction stream. | |
693 | ||
533a737e JK |
694 | 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
695 | ||
696 | * symtab.c (output_partial_symbol_filename): Exchange the filename and | |
697 | fullname parameters order. | |
698 | ||
44b13c5a JK |
699 | 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
700 | ||
701 | Code cleanup. | |
702 | * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype | |
703 | for fun. | |
704 | * psymtab.c (map_symbol_filenames_psymtab) | |
705 | (map_partial_symbol_filenames): Likewise. | |
706 | * psymtab.h: Include symfile.h. | |
707 | (map_partial_symbol_filenames): Use symbol_filename_ftype for fun. | |
708 | * symfile.h (symbol_filename_ftype): New. | |
709 | (struct quick_symbol_functions): Use symbol_filename_ftype for fun of | |
710 | map_symbol_filenames, clarify more the naming in comment. | |
711 | ||
0b5574da DE |
712 | 2011-06-07 Doug Evans <dje@google.com> |
713 | ||
714 | * cc-with-index.sh: Fix typos in comment. | |
b8e9bd6c | 715 | Look for ../../gdb, for fullname.exp. |
0b5574da | 716 | |
5be4dfca JK |
717 | 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
718 | Pedro Alves <pedro@codesourcery.com> | |
719 | ||
720 | * cli/cli-cmds.c (shell_escape): Use waitpid. | |
721 | * rs6000-nat.c (exec_one_dummy_insn): Likewise. | |
722 | ||
316a8b21 TG |
723 | 2011-06-07 Tristan Gingold <gingold@adacore.com> |
724 | ||
725 | * xcoffread.c (dwarf2_xcoff_names): New variable. | |
726 | (aix_process_linenos): Add a guard. | |
727 | (xcoff_symfile_finish): Free dwarf2. | |
728 | (xcoff_initial_scan): Add dwarf2 support. | |
729 | ||
3dd5b83d PA |
730 | 2011-06-06 Pedro Alves <pedro@codesourcery.com> |
731 | ||
732 | * infcall.c (run_inferior_call): Don't mask async. Instead force | |
733 | a synchronous wait, if the target can async. | |
734 | ||
735 | * target.h (struct target_ops): Delete to_async_mask. | |
736 | (target_async_mask): Delete. | |
737 | * target.c (update_current_target): Delete references to to_async_mask. | |
738 | * linux-nat.c (linux_nat_async_mask_value): Delete. | |
739 | (linux_nat_is_async_p, linux_nat_can_async_p): Remove references | |
740 | to linux_nat_async_mask_value. | |
741 | (linux_nat_async_mask): Delete. | |
742 | (linux_nat_async, linux_nat_close): Remove references to | |
743 | linux_nat_async_mask_value. | |
744 | * record.c (record_async_mask_value): Delete. | |
745 | (record_async): Remove references to record_async_mask_value. | |
746 | (record_async_mask): Delete. | |
747 | (record_can_async_p, record_is_async_p): Remove references to | |
748 | record_async_mask_value. | |
749 | (init_record_ops, init_record_core_ops): Remove references to | |
750 | record_async_mask. | |
751 | * remote.c (remote_async_mask_value): Delete. | |
752 | (init_remote_ops): Remove reference to remote_async_mask. | |
753 | (remote_can_async_p, remote_is_async_p): Remove references to | |
754 | remote_async_mask_value. | |
755 | (remote_async): Remove references to remote_async_mask_value. | |
756 | (remote_async_mask): Delete. | |
757 | ||
758 | * infrun.c (fetch_inferior_event): Don't claim registers changed | |
759 | if the current thread is already not executing. | |
760 | ||
64b9b334 JB |
761 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix) |
762 | ||
763 | From Stephen Kitt <steve@sk2.org> | |
764 | * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c, | |
765 | gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes. | |
766 | ||
325663dc JB |
767 | 2011-06-03 Joel Brobecker <brobecker@adacore.com> |
768 | ||
769 | * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle | |
770 | the case where ADDR_SIZE is different from TYPE_LENGTH (type). | |
771 | ||
8cf64490 TT |
772 | 2011-06-03 Tom Tromey <tromey@redhat.com> |
773 | ||
774 | * python/py-inferior.c (python_inferior_exit): Use inferior's exit | |
775 | code fields. | |
776 | * python/py-exitedevent.c (create_exited_event_object): Change | |
777 | type of 'exit_code'. Optionally add exit_code attribute. | |
778 | (emit_exited_event): Change type of 'exit_code'. | |
779 | * python/py-event.h (emit_exited_event): Update. | |
780 | * mi/mi-interp.c (mi_inferior_exit): Print exit code. | |
781 | * infrun.c (handle_inferior_event): Set exit code fields on | |
782 | inferior. | |
783 | * inferior.h (struct inferior) <has_exit_code, exit_code>: New | |
784 | fields. | |
785 | * inferior.c (exit_inferior_1): Initialize new fields. | |
786 | ||
8ddd9a20 TT |
787 | 2011-06-03 Tom Tromey <tromey@redhat.com> |
788 | ||
789 | * dwarf2expr.c (get_signed_type): New function. | |
790 | (execute_stack_op) <DW_OP_shra>: Always perform a signed shift. | |
791 | ||
8dfd1e6d KS |
792 | 2011-06-02 Keith Seitz <keiths@redhat.com> |
793 | ||
794 | * objc-lang.c (find_methods): Increment objfile_csym earlier. | |
795 | ||
65fdb766 PA |
796 | 2011-06-02 Pedro Alves <pedro@codesourcery.com> |
797 | ||
798 | * top.h (simplified_command_loop): Delete declaration. | |
799 | ||
f4b8c29b MF |
800 | 2011-06-01 Mike Frysinger <vapier@gentoo.org> |
801 | ||
802 | * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and | |
803 | gdb_sysroot to the "len" variable. Append both to "arg_buf". | |
804 | ||
1706c199 YQ |
805 | 2011-06-01 Yao Qi <yao@codesourcery.com> |
806 | ||
807 | * objfiles.h (obj_section_addr): Update reference to objfile from | |
808 | `abfd' to `obfd'. | |
809 | (obj_section_endaddr): Likewise. | |
810 | ||
d19cd713 | 811 | 2011-06-01 Daniel Jacobowitz <drow@false.org> |
8d07004d DJ |
812 | |
813 | * MAINTAINERS: Update my email address and affiliation. Also | |
814 | update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org. | |
815 | ||
e8eb7bc5 KS |
816 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
817 | ||
818 | PR c++/12750 | |
819 | * linespec.c (get_search_block): New function. | |
820 | (find_methods): Add FILE_SYMTATB parameter and use it and | |
821 | get_search_block to pass an appropriate block to | |
822 | lookup_symbol_in_namespace. | |
823 | (decode_line_1): Record if *ARGPTR is single-quote enclosed. | |
824 | Check if *ARGPTR starts with a filename first. | |
825 | If it does, call locate_first_half again to locate the next | |
826 | "first half" of the linespec. | |
827 | Pass FILE_SYMTATB to decode_objc and decode_compound. | |
828 | Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED. | |
829 | (locate_first_half): Stop on the first colon seen. | |
830 | (decode_compound): Add FILE_SYMTAB parameter. | |
831 | Pass FILE_SYMTAB to lookup_prefix_sym and find_method. | |
832 | (lookup_prefix_sym): Add FILE_SYMTAB parameter and use | |
833 | get_search_block with lookup_symbol. | |
834 | (find_method): Add FILE_SYMTAB parameter and pass it to | |
835 | find_methods. | |
836 | (decode_objc): Use get_search_block. | |
837 | ||
2b1dbab0 KS |
838 | 2010-05-31 Keith Seitz <keiths@redhat.com> |
839 | ||
840 | PR symtab/12704 | |
841 | * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove. | |
842 | (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR | |
843 | and CP_ANONYMOUS_NAMESPACE_LEN. | |
844 | (cp_is_anonymous): Likewise. | |
845 | * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define. | |
846 | (CP_ANONYMOUS_NAMESPACE_LEN): Define. | |
847 | * dwarf2read.c (namespace_name): Likewise. | |
848 | (fixup_partial_die): Likewise. | |
849 | * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is | |
850 | seen in the input, keep it. | |
851 | ||
6d549500 PA |
852 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
853 | ||
854 | * target.h (enum inferior_event_type): Delete INF_QUIT_REQ. | |
855 | * inf-loop.h (inferior_event_handler_wrapper): Delete. | |
856 | * inf-loop.c (inferior_event_handler_wrapper): Delete. | |
857 | (inferior_event_handler): Don't handle INF_QUIT_REQ. | |
858 | * remote.c (_initialize_remote): Register | |
859 | async_remote_interrupt_twice directly as | |
860 | sigint_remote_twice_token event. | |
861 | ||
395bff70 PA |
862 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
863 | ||
864 | * target.h (enum inferior_event_type): Delete INF_ERROR. | |
865 | * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR. | |
866 | ||
97224164 PA |
867 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
868 | ||
869 | * interps.c (interp_set): Don't cancel continuations. | |
870 | ||
07e78767 JK |
871 | 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
872 | ||
873 | * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf. | |
874 | ||
fa4cd53f PA |
875 | 2011-05-30 Pedro Alves <pedro@codesourcery.com> |
876 | ||
877 | * continuations.h (continuation_ftype): Add `err' parameter. | |
878 | Document parameters. | |
879 | (do_all_continuations, do_all_continuations_thread) | |
880 | (do_all_intermediate_continuations) | |
881 | (do_all_intermediate_continuations_thread) | |
882 | (do_all_inferior_continuations): Add `err' parameter. | |
883 | * continuations.c (do_my_continuations_1, do_my_continuations) | |
884 | (do_all_inferior_continuations, do_all_continuations_ptid) | |
885 | (do_all_continuations_thread_callback) | |
886 | (do_all_continuations_thread, do_all_continuations) | |
887 | (do_all_intermediate_continuations_thread_callback) | |
888 | (do_all_intermediate_continuations_thread) | |
889 | (do_all_intermediate_continuations): Add `err' parameter, and pass | |
890 | it down all the way to the continuations proper. | |
891 | * inf-loop.c (inferior_event_handler): If fetching an inferior | |
892 | event throws an error, don't pop the target, and still call the | |
893 | continuations, but with `err' set. Adjust all other continuation | |
894 | calls. | |
895 | * breakpoint.c (until_break_command_continuation): Add `err' | |
896 | parameter. | |
897 | * infcmd.c (step_1_continuation): Add `err' parameter. Don't | |
898 | issue another step if `err' is set. | |
899 | (struct until_next_continuation_args): New. | |
900 | (until_next_continuation): Add `err' parameter. Adjust. | |
901 | (until_next_command): Adjust. | |
902 | (struct finish_command_continuation_args): Add `thread' field. | |
903 | (finish_command_continuation): Add `err' parameter. Handle it. | |
904 | (finish_forward): Adjust. | |
905 | (attach_command_continuation): Add `err' parameter. Handle it. | |
906 | * infrun.c (infrun_thread_stop_requested_callback): Adjust to | |
907 | cancel the continuations. | |
908 | * interps.c (interp_set): Adjust to cancel the continuations. | |
909 | * thread.c (clear_thread_inferior_resources): Adjust to cancel the | |
910 | continuations rather than discarding. | |
911 | (free_thread): Don't clear thread inferior resources here. | |
912 | (delete_thread_1): Do it here instead. And do it before removing | |
913 | the thread from the threads list. Tag the thread as exited before | |
914 | clearing thread inferior resources. | |
915 | ||
c2949be0 JB |
916 | 2011-05-30 Joel Brobecker <brobecker@adacore.com> |
917 | ||
918 | * infcall.c (call_function_by_hand): Rephrase error message. | |
919 | ||
619cebe8 PA |
920 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
921 | ||
922 | * defs.h (struct thread_info, struct inferior): Delete forward | |
923 | declarations. | |
924 | * breakpoint.h (struct thread_info): New forward declaration. | |
925 | * observer.sh (struct inferior): New forward declaration. | |
926 | * python/python-internal.h (struct inferior): New forward | |
927 | declaration. | |
928 | ||
be34f849 PA |
929 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
930 | ||
931 | * defs.h (struct continuation, continuation_ftype) | |
932 | (continuation_free_arg_ftype, add_continuation) | |
933 | (do_all_continuations, do_all_continuations_thread) | |
934 | (discard_all_continuations, discard_all_continuations_thread) | |
935 | (add_intermediate_continuation, do_all_intermediate_continuations) | |
936 | (do_all_intermediate_continuations_thread) | |
937 | (discard_all_intermediate_continuations) | |
938 | (discard_all_intermediate_continuations_thread) | |
939 | (add_inferior_continuation, do_all_inferior_continuations) | |
940 | (discard_all_inferior_continuations): Move to ... | |
941 | * continuations.h: ... this new file. | |
942 | * breakpoint.c, continuations.c, event-top.c, inf-loop.c, | |
943 | infcmd.c, inferior.c, infrun.c, interps.c: Include | |
944 | continuations.h. | |
945 | ||
432b4d03 JK |
946 | 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
947 | Doug Evans <dje@google.com> | |
948 | ||
949 | Fix PR 10970, PR 12702. | |
950 | * linux-nat.c (linux_lwp_is_zombie): New function. | |
951 | (wait_lwp): Initialize status. New variable prev_mask. Block signals. | |
952 | Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend. | |
953 | ||
b0f260d6 PA |
954 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
955 | ||
956 | * defs.h (continuation_ftype, continuation_free_arg_ftype): New | |
957 | typedefs. | |
958 | (add_continuation, add_intermediate_continuation) | |
959 | (add_inferior_continuation): Use them. | |
960 | * continuations.c (struct continuation): Use them. | |
961 | (make_continuation_ftype): Delete. | |
962 | (make_continuation, add_inferior_continuation, add_continuation) | |
963 | (add_intermediate_continuation): Use continuation_ftype and | |
964 | continuation_free_arg_ftype. Rename parameters to shorter names. | |
965 | ||
af1e9a32 PA |
966 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
967 | ||
968 | * continuations.c (make_continuation): Make it return void. | |
969 | (do_my_continuations): Rename to ... | |
970 | (do_my_continuations_1): ... this. Remove old_chain parameter and | |
971 | adjust. | |
972 | (do_my_continuations): New. | |
973 | (discard_my_continuations): Rename to ... | |
974 | (discard_my_continuations_1): ... this. Remove old_chain | |
975 | parameter and adjust. | |
976 | (discard_my_continuations): New. | |
977 | (add_inferior_continuation): Simplify. | |
978 | (do_all_inferior_continuations): Reimplement on top | |
979 | do_my_continuations. | |
980 | (discard_all_inferior_continuations): Simplify. | |
981 | (add_continuation): Simplify. | |
982 | (do_all_continuations_ptid): Simplify. | |
983 | (discard_all_continuations_thread_callback): Simplify. | |
984 | (add_intermediate_continuation): Simplify. | |
985 | (discard_all_intermediate_continuations_thread_callback): | |
986 | Simplify. | |
987 | ||
50c0c017 PA |
988 | 2011-05-27 Pedro Alves <pedro@codesourcery.com> |
989 | ||
990 | * utils.c (struct continuation, add_continuation) | |
991 | (add_inferior_continuation) | |
992 | (do_all_inferior_continuations, discard_all_inferior_continuations) | |
993 | (restore_thread_cleanup, do_all_continuations_ptid) | |
994 | (do_all_continuations_thread_callback) | |
995 | (do_all_continuations_thread, do_all_continuations) | |
996 | (discard_all_continuations_thread_callback) | |
997 | (discard_all_continuations_thread, discard_all_continuations) | |
998 | (add_intermediate_continuation) | |
999 | (do_all_intermediate_continuations_thread_callback) | |
1000 | (do_all_intermediate_continuations_thread) | |
1001 | (do_all_intermediate_continuations) | |
1002 | (discard_all_intermediate_continuations_thread_callback) | |
1003 | (discard_all_intermediate_continuations_thread) | |
1004 | (discard_all_intermediate_continuations): Move to ... | |
1005 | * continuations.c: ... this new file, and adjust to no longer | |
1006 | implement continuations on top of cleanups. | |
1007 | * Makefile.in (SFILES): Add continuations.c. | |
1008 | (COMMON_OBS): Add continuations.o. | |
1009 | ||
d8b34453 PA |
1010 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
1011 | ||
1012 | * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR. | |
1013 | * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR. | |
1014 | Internal error on invalid values. | |
1015 | * reverse.c: Don't handle EXEC_ERROR. | |
1016 | * mi/mi-main.c: Don't handle EXEC_ERROR. | |
1017 | ||
32231432 PA |
1018 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
1019 | ||
1020 | * record.c: Include event-loop.h, inf-loop.h. | |
1021 | (record_beneath_to_async): New global. | |
1022 | (tmp_to_async): New global. | |
1023 | (record_async_inferior_event_token): New global. | |
1024 | (record_open_1): Don't error out if async is enabled. | |
1025 | (record_open): Handle to_async. Create an async event source in | |
1026 | the event loop. | |
1027 | (record_close): Delete the async event source. | |
1028 | (record_resumed): New global. | |
1029 | (record_execution_dir): New global. | |
1030 | (record_resume, record_core_resume): Set them. Register the | |
1031 | target on the event loop. | |
1032 | (record_wait): Rename to ... | |
1033 | (record_wait_1): ... this. Add more debug output. Handle | |
1034 | TARGET_WNOHANG, and the target beneath returning | |
1035 | TARGET_WAITKIND_IGNORE. | |
1036 | (record_wait): Reimplement on top of record_wait_1. | |
1037 | (record_async_mask_value): New global. | |
1038 | (record_async, record_async_mask, record_can_async_p) | |
1039 | (record_is_async_p, record_execution_direction): New functions. | |
1040 | (init_record_ops, init_record_core_ops): Install new methods. | |
1041 | * infrun.c (fetch_inferior_event): Temporarily switch the global | |
1042 | execution direction to the direction the target was going. | |
1043 | (execution_direction): Change type to int. | |
1044 | * target.c (default_execution_direction): New function. | |
1045 | (update_current_target): Inherit and de_fault | |
1046 | to_execution_direction. | |
1047 | * target.h (struct target_ops) <to_execution_direction>: New | |
1048 | field. | |
1049 | (target_execution_direction): New macro. | |
1050 | * inferior.h (execution_direction): Change type to int. | |
1051 | ||
949dc678 PA |
1052 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
1053 | ||
1054 | * infcall.c (call_function_by_hand): Don't allow calling functions | |
1055 | in reverse execution mode. | |
1056 | ||
c13bd2b5 PA |
1057 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
1058 | ||
1059 | * infcmd.c (finish_command): Allow async finish in reverse. | |
1060 | ||
6938fd34 YQ |
1061 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
1062 | ||
1063 | * gdb_thread_db.h: Delete. Move to ... | |
1064 | * common/gdb_thread_db.h: ... here. | |
1065 | ||
9da8c2a0 PA |
1066 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
1067 | ||
1068 | * infcmd.c (finish_backward): Set a step-resume breakpoint at the | |
1069 | function's entry point instead of a manually managed momentary | |
1070 | breakpoint, and only ever issue one proceed call. | |
1071 | * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If | |
1072 | doing a reverse-finish, switch to stepi mode, to do another step. | |
1073 | (insert_step_resume_breakpoint_at_sal): Make public. | |
1074 | (normal_stop): No need to save function value return registers if | |
1075 | going reverse. | |
1076 | * inferior.h (insert_step_resume_breakpoint_at_sal): Declare. | |
1077 | ||
2c03e5be PA |
1078 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
1079 | ||
1080 | * breakpoint.h (enum bptype) <bp_hp_step_resume>: New. | |
1081 | (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME | |
1082 | before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME | |
1083 | at the end. | |
1084 | * breakpoint.c (update_breakpoints_after_exec): Also delete hp | |
1085 | step-resume breakpoints. | |
1086 | (print_it_typical): Handle bp_hp_step_resume. | |
1087 | (bpstat_what): Ditto. | |
1088 | (bptype_string): Ditto. | |
1089 | (print_one_breakpoint_location): Ditto. | |
1090 | (allocate_bp_location): Ditto. | |
1091 | (mention): Ditto. | |
1092 | (breakpoint_re_set_one): Ditto. | |
1093 | * infrun.c (handle_inferior_event): Adjust. Split | |
1094 | BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and | |
1095 | BPSTAT_WHAT_HP_STEP_RESUME. | |
1096 | (insert_step_resume_breakpoint_at_sal): Rename to ... | |
1097 | (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype | |
1098 | parameter. Handle it. | |
1099 | (insert_step_resume_breakpoint_at_sal): Reimplement on top of | |
1100 | insert_step_resume_breakpoint_at_sal_1. | |
1101 | (insert_step_resume_breakpoint_at_frame): Rename to ... | |
1102 | (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to | |
1103 | set a high-priority step-resume breakpoint. | |
1104 | (insert_step_resume_breakpoint_at_frame): Adjust comment. | |
1105 | (insert_step_resume_breakpoint_at_caller): Ditto. | |
1106 | ||
51be5b68 PA |
1107 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
1108 | ||
1109 | * breakpoint.c (iterate_over_related_breakpoints): New. | |
1110 | (do_map_delete_breakpoint): New. | |
1111 | (delete_command): Pass do_map_delete_breakpoint to | |
1112 | map_breakpoint_numbers. | |
1113 | (do_disable_breakpoint): New. | |
1114 | (do_map_disable_breakpoint): Iterate over the breakpoint's related | |
1115 | breakpoints. | |
1116 | (do_enable_breakpoint): Rename to ... | |
1117 | (enable_breakpoint_disp): ... this. | |
1118 | (enable_breakpoint): Adjust. | |
1119 | (do_enable_breakpoint): New. | |
1120 | (enable_once_breakpoint): Delete. | |
1121 | (do_map_enable_breakpoint): New. | |
1122 | (do_map_enable_once_breakpoint): New. | |
1123 | (enable_once_command, enable_delete_command) | |
1124 | (delete_trace_command): Iterate over the breakpoint's related | |
1125 | breakpoints. | |
1126 | ||
4a1be8d2 PA |
1127 | 2011-05-26 Pedro Alves <pedro@codesourcery.com> |
1128 | ||
1129 | * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true | |
1130 | for ALPHA_ZERO_REGNUM. | |
1131 | (alpha_supply_int_regs): Explicitly supply zero as the value for | |
1132 | ALPHA_ZERO_REGNUM in the register cache. | |
1133 | * alpha-nat.c (fetch_osf_core_registers): Ditto. | |
1134 | ||
59d70315 YQ |
1135 | 2011-05-26 Yao Qi <yao@codesourcery.com> |
1136 | ||
1137 | * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T. | |
1138 | ||
251d32d9 TG |
1139 | 2011-05-26 Tristan Gingold <gingold@adacore.com> |
1140 | ||
1141 | * symfile.h (struct dwarf2_section_names): New type. | |
1142 | (struct dwarf2_debug_sections): New type. | |
1143 | (dwarf2_has_info): Add parameter. | |
1144 | * dwarf2read.c (dwarf2_elf_names): New variable. | |
1145 | (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION) | |
1146 | (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION) | |
1147 | (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove. | |
1148 | (dwarf2_has_info): Add names parameter. Pass names | |
1149 | to dwarf2_locate_sections. | |
1150 | (section_is_p): Rewrite using the names parameter. | |
1151 | (dwarf2_locate_sections): Use section names from the names parameter. | |
1152 | * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info. | |
1153 | * elfread.c (read_psyms): Ditto. | |
1154 | * machoread.c (macho_symfile_read): Ditto. | |
1155 | ||
652c71b4 AS |
1156 | 2011-05-25 Andreas Schwab <schwab@redhat.com> |
1157 | ||
1158 | PR gdb/8677 | |
1159 | * event-loop.c (handle_file_event): Don't handle POLLHUP as error. | |
1160 | ||
f17170e5 KS |
1161 | 2011-05-24 Keith Seitz <keiths@redhat.com> |
1162 | ||
1163 | PR breakpoint/12803 | |
1164 | * linespec.c (keep_name_info): Add handling for "volatile" keyword. | |
1165 | (decode_compound): Unconditionally call keep_name_info. | |
1166 | ||
cdac0397 PA |
1167 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
1168 | ||
1169 | * breakpoint.c (watchpoint_check): If the watchpoint went out of | |
1170 | scope, clear its command list. | |
1171 | (map_breakpoint_numbers): Don't walk the related breakpoints list | |
1172 | of each breakpoint. | |
1173 | ||
91d4fe3f TT |
1174 | 2011-05-24 Tom Tromey <tromey@redhat.com> |
1175 | ||
1176 | * MAINTAINERS: Move Jim Blandy to past maintainers. | |
1177 | ||
3017a003 TG |
1178 | 2011-05-24 Tristan Gingold <gingold@adacore.com> |
1179 | ||
1180 | * symfile.h (enum dwarf2_section_enum): New type. | |
1181 | (dwarf2_get_section_info): New prototype. | |
1182 | * dwarf2read.c (dwarf2_get_section_info): Replace parameter | |
1183 | section_name by sect. Use a switch to select the info. | |
1184 | * dwarf2-frame.c (warf2_get_section_info): Remove prototype. | |
1185 | (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info. | |
1186 | ||
c91c8c16 PA |
1187 | 2011-05-24 Pedro Alves <pedro@codesourcery.com> |
1188 | ||
1189 | * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting | |
1190 | shared library event breakpoint if there's no execution. | |
1191 | ||
77bc418a TJB |
1192 | 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1193 | ||
1194 | * breakpont.c (remove_hw_watchpoints): Remove unused function. | |
1195 | * breakpoint.h remove_hw_watchpoints(): Remove prototype. | |
1196 | ||
c50491a7 TT |
1197 | 2011-05-23 Tom Tromey <tromey@redhat.com> |
1198 | ||
1199 | * c-lang.c (evaluate_subexp_c): Use expect_type if it is not | |
1200 | NULL. | |
1201 | ||
6d64e6d4 DE |
1202 | 2011-05-23 Doug Evans <dje@google.com> |
1203 | ||
1204 | * python/lib/gdb/printing.py (register_pretty_printer): Add missing | |
1205 | entry for RuntimeError to doc string. | |
1206 | ||
2067c8d4 JG |
1207 | 2011-05-23 Jerome Guitton <guitton@adacore.com> |
1208 | ||
1209 | * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction | |
1210 | sequence for probing loops. | |
1211 | ||
b136cd05 PA |
1212 | 2011-05-23 Pedro Alves <pedro@codesourcery.com> |
1213 | ||
1214 | * infrun.c (user_visible_resume_ptid): Fix typos in describing | |
1215 | comment. | |
1216 | ||
22e74ef9 MK |
1217 | 2011-05-21 Mark Kettenis <kettenis@gnu.org> |
1218 | ||
1219 | * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply | |
1220 | zero as the value for %g0 in the register cache. | |
1221 | * sparc-tdep.c (sparc32_supply_gregset): Likewise. | |
1222 | * sparc64-tdep.c (sparc64_supply_gregset): Likewise. | |
1223 | ||
842951eb PA |
1224 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
1225 | ||
1226 | * infrun.c (proceed): Set previous_inferior_ptid here. | |
1227 | (init_wait_for_inferior): Initialize previous_inferior_ptid from | |
1228 | inferior_ptid, not null_ptid. | |
1229 | (wait_for_inferior): Don't initialize previous_inferior_ptid here. | |
1230 | (fetch_inferior_event): Nor here. | |
1231 | ||
46cf51e6 PA |
1232 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
1233 | ||
1234 | * inf-loop.c (inferior_event_handler): Only output a message if | |
1235 | verbose. | |
1236 | ||
29ef4c46 LM |
1237 | 2011-05-20 Luis Machado <lgustavo@codesourcery.com> |
1238 | ||
1239 | * MAINTAINERS: Update my e-mail address. | |
1240 | ||
f148b27e PA |
1241 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
1242 | ||
1243 | * infrun.c (proceed): Switch the inferior event loop to | |
1244 | INF_EXEC_COMPLETE if the target refused to resume from a | |
1245 | vfork/fork. | |
1246 | ||
09cee04b PA |
1247 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
1248 | ||
1249 | * infcmd.c: Include "inf-loop.h". | |
1250 | (step_once): When stepping into an inline subroutine, pretend the | |
1251 | target has run. If the target can async, switch the inferior | |
1252 | event loop to INF_EXEC_COMPLETE. | |
1253 | * inferior.h (user_visible_resume_ptid): Declare. | |
1254 | * infrun.c (user_visible_resume_ptid): New function, factored out | |
1255 | from `resume'. | |
1256 | (resume): Use it. | |
1257 | * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion | |
1258 | that the current thread is running. Merge async and sync | |
1259 | branches. | |
1260 | ||
751b8ce1 PA |
1261 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
1262 | ||
1263 | * infcmd.c (step_1): Simplify synchronous case. | |
1264 | ||
e93a69ed PA |
1265 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
1266 | ||
1267 | * tracepoint.c: Include exceptions.h. | |
1268 | (TFILE_PID): Move higher in file. | |
1269 | (tfile_open): Delay pushing the tfile target until we're assured | |
1270 | the tfile header is present in the file. Wrap reading the initial | |
1271 | newline-terminated lines in TRY_CATCH. Pop the target if the | |
1272 | initial setup failed. Add the tfile's thread immediately | |
1273 | aftwards, before any non-essential setup. Don't skip | |
1274 | post_create_inferior if there are no traceframes present in the | |
1275 | file. | |
1276 | (tfile_close): Remove redundant check for null before xfree call. | |
1277 | (tfile_thread_alive): New function. | |
1278 | (init_tfile_ops): Register it as to_thread_alive callback. | |
1279 | ||
6823e2b1 PA |
1280 | 2011-05-20 Pedro Alves <pedro@codesourcery.com> |
1281 | ||
1282 | * tracepoint.c (tfile_open): Delete #if 0'd code. | |
1283 | ||
b3c8eb43 JK |
1284 | 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
1285 | ||
1286 | Fix -readnow for -gdwarf-4 unused type units. | |
1287 | * dwarf2read.c (struct signatured_type): Remove the field offset. | |
1288 | (create_signatured_type_table_from_index): Remove its initialization. | |
1289 | (create_debug_types_hash_table): Likewise. Initialize per_cu.offset | |
1290 | instead. Add a complaint call. | |
1291 | (process_psymtab_comp_unit): Change assignment to gdb_assert. | |
1292 | (process_type_comp_unit, lookup_die_type, dump_die_shallow) | |
1293 | (lookup_signatured_type_at_offset, read_signatured_type) | |
1294 | (write_one_signatured_type): Update the field for per_cu. | |
1295 | ||
310afc76 TT |
1296 | 2011-05-19 Tom Tromey <tromey@redhat.com> |
1297 | ||
1298 | * python/py-inferior.c (python_inferior_exit): Use | |
1299 | target_gdbarch. | |
1300 | (python_on_resume): Likewise. | |
1301 | ||
cf6c5ffb TT |
1302 | 2011-05-19 Matt Rice <ratmice@gmail.com> |
1303 | ||
1304 | * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat. | |
1305 | ||
fb80a3c5 HZ |
1306 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
1307 | ||
1308 | * tracepoint.c (tfile_trace_find): Return directly when num is -1. | |
1309 | ||
3672b1be HZ |
1310 | 2011-05-19 Hui Zhu <teawater@gmail.com> |
1311 | ||
1312 | * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved. | |
1313 | ||
ff355380 TT |
1314 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
1315 | ||
1316 | * dwarf2read.c (dwarf2_add_field): Constify. | |
1317 | * value.c (value_static_field): Constify. | |
1318 | * gdbtypes.h (struct main_type) <field.field_location.physname>: | |
1319 | Now const. | |
1320 | * ax-gdb.c (gen_static_field): Constify | |
1321 | ||
ed731959 JK |
1322 | 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
1323 | ||
1324 | * linux-nat.c (kill_callback): Use SIGKILL first. | |
1325 | ||
967cff16 JB |
1326 | 2011-05-18 Joel Brobecker <brobecker@adacore.com> |
1327 | ||
1328 | * ada-lang.c (print_it_exception): Avoid use of sprintf. | |
1329 | ||
1d06ead6 TT |
1330 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
1331 | ||
1332 | * value.c (value_fn_field): Constify. | |
1333 | * symtab.c (gdb_mangle_name): Constify. | |
1334 | * stabsread.c (update_method_name_from_physname): Make 'physname' | |
1335 | argument const. | |
1336 | * p-typeprint.c (pascal_type_print_method_args): Make arguments | |
1337 | const. Use explicit fputc_filtered loop. | |
1338 | (pascal_type_print_base): Constify. | |
1339 | * p-lang.h (pascal_type_print_method_args): Update. | |
1340 | * linespec.c (add_matching_methods): Constify. | |
1341 | (add_constructors): Likewise. | |
1342 | * jv-typeprint.c (java_type_print_base): Constify. | |
1343 | * gdbtypes.h (struct cplus_struct_type) | |
1344 | <fn_fieldlist.fn_field.physname>: Now const. | |
1345 | * dwarf2read.c (compute_delayed_physnames): Constify. | |
1346 | (dwarf2_add_member_fn): Likewise. | |
1347 | * c-typeprint.c (c_type_print_base): Constify. Use cleanups. | |
1348 | ||
0d9a9a5f PA |
1349 | 2011-05-18 Pedro Alves <pedro@codesourcery.com> |
1350 | ||
1351 | * infrun.c (resume): Mention which is the current thread, and its | |
1352 | current PC in debug output. | |
1353 | (prepare_to_proceed): Mention the thread switching in debug | |
1354 | output. | |
1355 | ||
05386e9e TT |
1356 | 2011-05-18 Tom Tromey <tromey@redhat.com> |
1357 | ||
1358 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute | |
1359 | path check. Use xmalloc and cleanups. | |
1360 | (try_thread_db_load_from_dir): Use xmalloc and cleanups. | |
1361 | ||
ee86786c TT |
1362 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
1363 | ||
1364 | * cp-valprint.c (cp_print_value_fields): Catch errors from | |
1365 | value_static_field. | |
1366 | ||
9ff3b74f TT |
1367 | 2011-05-17 Tom Tromey <tromey@redhat.com> |
1368 | ||
1369 | * dwarf2read.c (dwarf2_get_die_type): Call | |
1370 | get_die_type_at_offset. | |
1371 | * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from | |
1372 | get_base_type function. | |
1373 | ||
cd3da28e PA |
1374 | 2011-05-17 Tomas Martinec <fyzmat@gmail.com> |
1375 | ||
1376 | * infrun.c (handle_inferior_event) <handling deferred step>: Clear | |
1377 | trap_expected. | |
1378 | ||
fd20d931 DE |
1379 | 2011-05-16 Doug Evans <dje@google.com> |
1380 | ||
1381 | * python/py-auto-load.c (source_section_scripts): Mention objfile | |
1382 | name in warning. | |
1383 | ||
75fc9810 DE |
1384 | 2011-05-15 Doug Evans <dje@google.com> |
1385 | ||
290351b8 DE |
1386 | * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function. |
1387 | (try_thread_db_load_from_pdir): Call it. If unable to find | |
1388 | libthread_db in directory of libpthread, see if we're looking at | |
1389 | the separate-debug-info copy. | |
1390 | ||
75fc9810 DE |
1391 | * python/py-autoload.c (print_script): Print "Missing" instead of |
1392 | "No" for missing scripts. | |
1393 | (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing". | |
1394 | ||
9f7bc587 DE |
1395 | 2011-05-13 Doug Evans <dje@google.com> |
1396 | ||
1397 | * ui-file.c (stdio_file_write_async_safe): Add comment. | |
1398 | ||
093cee7d HZ |
1399 | 2011-05-14 Hui Zhu <teawater@gmail.com> |
1400 | ||
1401 | * ui-file.c (stdio_file_write_async_safe): Add empty check for build. | |
1402 | ||
dbaefcf7 DE |
1403 | 2011-05-13 Doug Evans <dje@google.com> |
1404 | ||
98a5dd13 DE |
1405 | Support $pdir and $sdir in libthread-db-search-path. |
1406 | * NEWS: Mention $sdir,$pdir. | |
1407 | * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir. | |
1408 | * linux-thread-db.c (try_thread_db_load_from_pdir): New function. | |
1409 | (try_thread_db_load_from_sdir): New function. | |
1410 | (try_thread_db_load_from_dir): New function. | |
1411 | (thread_db_load_search): Handle $pdir, $sdir. Remove trying of | |
1412 | system directories if search of libthread-db-search-path fails, | |
1413 | that is now done via $sdir. | |
1414 | (has_libpthread): New function. | |
1415 | (thread_db_load): Remove search for libthread_db in directory of | |
1416 | libpthread, that is now done via $pdir. | |
1417 | ||
dbaefcf7 DE |
1418 | * NEWS: Mention "info auto-load-scripts". |
1419 | * python/py-auto-load.c (struct auto_load_pspace_info): New member | |
1420 | script_not_found_warning_printed. | |
1421 | (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash, | |
1422 | all callers updated. Initialize script_not_found_warning_printed. | |
1423 | (get_auto_load_pspace_data_for_loading): New function. | |
1424 | (maybe_add_script): New function. | |
1425 | (source_section_scripts): Simplify. Only print one warning regardless | |
1426 | of the number of auto-load scripts not found. | |
1427 | (clear_section_scripts): Clear script_not_found_warning_printed. | |
1428 | (auto_load_objfile_script): Record script in hash table. | |
1429 | (count_matching_scripts): New function. | |
1430 | (maybe_print_script): Renamed from maybe_print_section_script, all | |
1431 | callers updated. Rewrite to use ui_out_*. | |
1432 | (info_auto_load_scripts): Renamed from | |
1433 | maintenance_print_section_scripts, all callers updated. | |
1434 | (gdbpy_initialize_auto_load): "maintenance print section-scripts" | |
1435 | renamed as "info auto-load-scripts". | |
1436 | ||
9930639c TT |
1437 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
1438 | ||
1439 | * dwarf2expr.c (read_uleb128): Cast intermediate result. | |
1440 | (read_sleb128): Likewise. | |
1441 | ||
06826322 TT |
1442 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
1443 | ||
1444 | * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction | |
1445 | offset display. | |
1446 | ||
01124a23 DE |
1447 | 2011-05-13 Doug Evans <dje@google.com> |
1448 | ||
1449 | * linux-nat.c (debug_linux_nat_async): Delete. | |
1450 | Replace all references to use debug_linux_nat instead. | |
1451 | (show_debug_linux_nat_async): Delete. | |
1452 | (sigchld_handler): Call ui_file_write_async_safe instead of | |
1453 | fprintf_unfiltered. | |
1454 | (_initialize_linux_nat): Remove `set debug lin-lwp-async'. | |
1455 | * ui-file.c (struct ui_file): New member to_write_async_safe. | |
1456 | (null_file_write_async_safe): New function. | |
1457 | (ui_file_write_async_safe): New function. | |
1458 | (set_ui_file_write_async_safe): New function. | |
1459 | (ui_file_new): Initialize to_write_async_safe. | |
1460 | (stdio_file_write_async_safe): New function. | |
1461 | (struct stdio_file): New member fd. | |
1462 | (stdio_file_new): Initialize to_write_async_safe, fd. | |
bbfac39e DE |
1463 | (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling |
1464 | fileno. | |
01124a23 DE |
1465 | * ui-file.h (ui_file_write_async_safe_ftype): New typedef. |
1466 | (set_ui_file_write_async_safe): Declare. | |
1467 | (ui_file_write_async_safe): Declare. | |
1468 | ||
72fc29ff TT |
1469 | 2011-05-13 Tom Tromey <tromey@redhat.com> |
1470 | ||
1471 | * utils.c (do_value_free): New function. | |
1472 | (make_cleanup_value_free): Likewise. | |
1473 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value | |
1474 | freeing correctly. | |
1475 | (dwarf2_loc_desc_needs_frame): Call | |
1476 | make_cleanup_value_free_to_mark. | |
1477 | * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field. | |
1478 | * dwarf2expr.c (free_dwarf_expr_context): Don't call | |
1479 | value_free_to_mark. | |
1480 | (new_dwarf_expr_context): Don't call value_mark. | |
1481 | * dwarf2-frame.c (execute_stack_op): Call | |
1482 | make_cleanup_value_free_to_mark. | |
1483 | * defs.h (make_cleanup_value_free): Declare. | |
1484 | ||
028d0ed5 TJB |
1485 | 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1486 | ||
1487 | * mi/mi-main.c (mi_cmd_execute): Use cleanup from | |
1488 | prepare_execute_command. | |
1489 | * top.c (prepare_execute_command): Return cleanup. | |
1490 | (execute_command): Use cleanup from prepare_execute_command. | |
1491 | * top.h (prepare_execute_command): Change prototype to return | |
1492 | cleanup. | |
1493 | * defs.h (struct value): Add opaque declaration. | |
1494 | (make_cleanup_value_free_to_mark): Add prototype. | |
1495 | * utils.c (do_value_free_to_mark): New function. | |
1496 | (make_cleanup_value_free_to_mark): Likewise. | |
1497 | ||
b087e0ed TT |
1498 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
1499 | ||
1500 | * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally | |
1501 | cast left-hand-side to unsigned. | |
1502 | ||
8a9b8146 TT |
1503 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
1504 | ||
1505 | PR gdb/12617: | |
1506 | * value.h (value_from_contents): Declare. | |
1507 | * value.c (value_from_contents): New function. | |
1508 | * dwarf2read.c (dwarf_stack_op_name): Add new values. | |
1509 | (dwarf2_get_die_type): New function. | |
1510 | * dwarf2loc.c (dwarf_expr_get_base_type): New function. | |
1511 | (allocate_piece_closure): Acquire reference to values. | |
1512 | (read_pieced_value): Update for value-based expressions. | |
1513 | (write_pieced_value): Likewise. | |
1514 | (free_pieced_value_closure): Call value_free as needed. | |
1515 | (dwarf2_evaluate_loc_desc_full): Set get_base_type field. | |
1516 | Update for value-based expressions. | |
1517 | * dwarf2loc.h (dwarf2_get_die_type): Declare. | |
1518 | * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type. | |
1519 | <get_base_type>: New field. | |
1520 | (struct dwarf_expr_piece) <v.value>: Change type. | |
1521 | <v.regno>: New field. | |
1522 | (struct dwarf_expr_context) <mark>: New field. | |
1523 | (dwarf_expr_piece, dwarf_expr_fetch): Update. | |
1524 | (dwarf_expr_pop, dwarf_expr_push): Remove. | |
1525 | (dwarf_expr_push_address): Declare. | |
1526 | * dwarf2expr.c (dwarf_arch_cookie): New global. | |
1527 | (struct dwarf_gdbarch_types): New. | |
1528 | (dwarf_gdbarch_types_init, dwarf_expr_address_type): New | |
1529 | functions. | |
1530 | (dwarf_expr_push): Change type of 'value' argument. Update. Now | |
1531 | static. | |
1532 | (dwarf_expr_push_address): New function. | |
1533 | (dwarf_expr_pop): Now static. | |
1534 | (dwarf_expr_fetch): Change return type. | |
1535 | (dwarf_require_integral): New function. | |
1536 | (dwarf_expr_fetch): Simplify. | |
1537 | (add_piece): Update. | |
1538 | (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New | |
1539 | functions. | |
1540 | (execute_stack_op) <sign_ext>: Remove. | |
1541 | Use values for DWARF stack. | |
1542 | <DW_OP_GNU_const_type, DW_OP_GNU_deref_type, | |
1543 | DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>: | |
1544 | New cases. | |
1545 | (_initialize_dwarf2expr): New function. | |
1546 | (add_piece): Update. | |
1547 | (new_dwarf_expr_context): Set new field. | |
1548 | (free_dwarf_expr_context): Call value_free_to_mark. | |
1549 | * dwarf2-frame.c (no_base_type): New function. | |
1550 | (execute_stack_op): Set get_base_type field. Update. | |
1551 | ||
e8d28ef4 TT |
1552 | 2011-05-12 Tom Tromey <tromey@redhat.com> |
1553 | ||
1554 | * dwarf2read.c (read_common_block): Fix formatting. | |
1555 | ||
d248b706 KY |
1556 | 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com> |
1557 | ||
1558 | * breakpoint.c (disable_breakpoint): Disable all locations | |
1559 | associated with a tracepoint on target if a trace experiment is | |
1560 | running. | |
1561 | (disable_command): Disable a specific tracepoint location on target if | |
1562 | a trace experiment is running. | |
1563 | (do_enable_breakpoint): Enable all locations associated with a | |
1564 | tracepoint on target if a trace experiment is running. | |
1565 | (enable_command) Enable a specific tracepoint location on target if a | |
1566 | trace experiment is running. | |
1567 | * target.c (update_current_target): Add INHERIT and de_fault clauses for | |
1568 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
1569 | to_disable_tracepoint. | |
1570 | * target.h: Add declaration of struct bp_location. | |
1571 | (struct target_ops): Add new functions | |
1572 | to_supports_enable_disable_tracepoint, to_enable_tracepoint and | |
1573 | to_disable_tracepoint to target operations. | |
1574 | (target_supports_enable_disable_tracepoint): New macro. | |
1575 | (target_enable_tracepoint): New macro. | |
1576 | (target_disable_tracepoint): New macro. | |
1577 | * remote.c (struct remote_state): Add new field. | |
1578 | (remote_enable_disable_tracepoint_feature): New. | |
1579 | (remote_protocol_features): Add new entry. | |
1580 | (remote_supports_enable_disable_tracepoint): New. | |
1581 | (remote_enable_tracepoint): New. | |
1582 | (remote_disable_tracepoint): New. | |
1583 | (init_remote_ops): Add remote_enable_tracepoint, | |
1584 | remote_disable_tracepoint and remote_supports_enable_disable_tracepoint | |
1585 | to remote operations. | |
1586 | * tracepoint.c (start_tracing): Allow tracing to start without any | |
1587 | tracepoints enabled with just a warning if they can be re-enabled | |
1588 | later. | |
1589 | * NEWS: Add news item for the new behaviour of the enable and disable | |
1590 | GDB commands when applied to tracepoints. | |
1591 | Add news items for the new remote packets QTEnable and QTDisable. | |
1592 | ||
cc88a640 JK |
1593 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1594 | ||
1595 | * config.in: Regenerate. | |
1596 | * configure: Regenerate. | |
1597 | * configure.ac <--with-system-readline> (for readline_echoing_p): | |
1598 | Remove the test. | |
1599 | * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ... | |
1600 | (tui_old_rl_echoing_p): ... here. | |
1601 | (tui_setup_io): Rename extern declaration readline_echoing_p to | |
1602 | _rl_echoing_p. Adjust assignments for the both renames. | |
1603 | ||
1f84b619 TJB |
1604 | 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1605 | ||
1606 | * symtab.c (lookup_symtab): Run cleanup before returning. | |
1607 | ||
74ac6d43 TT |
1608 | 2011-05-11 Tom Tromey <tromey@redhat.com> |
1609 | ||
1610 | * dwarf2read.c (handle_data_member_location): New function. | |
1611 | (dwarf2_add_field): Use it. | |
1612 | (read_common_block): Likewise. | |
1613 | ||
5488dafb JK |
1614 | 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1615 | ||
1616 | Make addrs->SECTINDEX always defined. | |
1617 | * symfile.c (relative_addr_info_to_section_offsets): Check for | |
1618 | SECTINDEX -1, not for zero ADDR. | |
1619 | (addrs_section_compar): Remove checking for invalid SECTINDEX. | |
1620 | (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries. | |
1621 | * symfile.h (struct section_addr_info) <sectindex>: Update the comment | |
1622 | on its validity. | |
1623 | ||
84e578fb DE |
1624 | 2011-05-10 Doug Evans <dje@google.com> |
1625 | ||
2471d008 DE |
1626 | * linux-thread-db.c: Whitespace cleanup. |
1627 | (try_thread_db_load_1): Fix comment. | |
1628 | ||
84e578fb DE |
1629 | * linux-thread-db.c (set_libthread_db_search_path): New function. |
1630 | (_initialize_thread_db): Add setter for libthread-db-search-path. | |
1631 | ||
673c2bbe DE |
1632 | 2011-05-09 Doug Evans <dje@google.com> |
1633 | ||
478aac75 DE |
1634 | * NEWS: Mention --with-iconv-bin. |
1635 | * configure.ac: New option --with-iconv-bin. | |
1636 | * configure: Regenerate. | |
1637 | * config.in: Regenerate. | |
1638 | * defs.h (relocate_gdb_directory): Declare. | |
1639 | * main.c (relocate_gdb_directory): Renamed from relocate_directory, | |
1640 | removed progname parameter, and exported. All callers updated. | |
1641 | * charset.c (find_charset_names): Use --with-iconv-bin if specified. | |
1642 | ||
673c2bbe DE |
1643 | * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, |
1644 | adding missing call to restore_child_signals_mask. | |
1645 | ||
e4c8541f PA |
1646 | 2011-05-09 Pedro Alves <pedro@codesourcery.com> |
1647 | ||
1648 | * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap' | |
1649 | parameter. | |
1650 | * infrun.c (proceed, start_remote): Adjust. | |
1651 | (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter, | |
1652 | and adjust to not handle it. | |
1653 | * solib-irix.c (irix_solib_create_inferior_hook): Adjust. | |
1654 | * solib-osf.c (osf_solib_create_inferior_hook): Adjust. | |
1655 | * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust. | |
1656 | * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust. | |
1657 | * windows-nat.c (do_initial_windows_stuff): Adjust. | |
1658 | * infcmd.c (attach_command): Adjust. | |
1659 | (notice_new_inferior): Adjust. | |
1660 | ||
a536c6d7 UW |
1661 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
1662 | ||
1663 | * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers. | |
1664 | (ppu2spu_unwind_register): Mark pseudo registers unavailable. | |
1665 | * spu-tdep.c (op_selb): Use correct value. | |
1666 | ||
7845b013 UW |
1667 | 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com> |
1668 | ||
1669 | * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL | |
1670 | "parent" parameter to symbol_file_add_from_bfd call. | |
1671 | ||
9c06b0b4 TJB |
1672 | 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
1673 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
1674 | ||
1675 | Implement support for PowerPC BookE masked watchpoints. | |
1676 | * NEWS: Mention masked watchpoint support. Create "Changed commands" | |
1677 | section. | |
1678 | * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New | |
1679 | method. Initialize to NULL in all existing breakpoint_ops instances. | |
1680 | (struct breakpoint) <hw_wp_mask>: New field. | |
1681 | * breakpoint.c (is_masked_watchpoint): Add prototype. | |
1682 | (update_watchpoint): Don't set b->val for masked watchpoints. Call | |
1683 | breakpoint's breakpoint_ops.works_in_software_mode if available. | |
1684 | (watchpoints_triggered): Handle the case of a hardware masked | |
1685 | watchpoint trigger. | |
1686 | (watchpoint_check): Likewise. | |
1687 | (works_in_software_mode_watchpoint): New function. | |
1688 | (insert_masked_watchpoint, remove_masked_watchpoint) | |
1689 | (resources_needed_masked_watchpoint) | |
1690 | (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint) | |
1691 | (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint) | |
1692 | (print_recreate_masked_watchpoint, is_masked_watchpoint): New | |
1693 | functions. | |
1694 | (masked_watchpoint_breakpoint_ops): New structure. | |
1695 | (watch_command_1): Check for the existence of the `mask' parameter. | |
1696 | Set b->ops according to the type of hardware watchpoint being created. | |
1697 | * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint) | |
1698 | (ppc_linux_remove_mask_watchpoint) | |
1699 | (ppc_linux_masked_watch_num_registers): New functions. | |
1700 | (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint, | |
1701 | to_remove_mask_watchpoint and to_masked_watch_num_registers. | |
1702 | * target.c (update_current_target): Mention to_insert_mask_watchpoint, | |
1703 | to_remove_mask_watchpoint, and to_masked_watch_num_registers. | |
1704 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
1705 | (target_masked_watch_num_registers): New functions. | |
1706 | * target.h (struct target_ops) <to_insert_mask_watchpoint>, | |
1707 | <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New | |
1708 | methods. | |
1709 | (target_insert_mask_watchpoint, target_remove_mask_watchpoint) | |
1710 | (target_masked_watch_num_registers): Add prototypes. | |
1711 | ||
8be455d7 JK |
1712 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1713 | ||
1714 | PR 12573 | |
1715 | * dwarf2read.c (struct dwarf2_cu): New field has_loclist. | |
1716 | (producer_is_gcc_ge_4_0): New function. | |
1717 | (process_full_comp_unit): Set also symtab->locations_valid. Move the | |
1718 | symtab->language code. | |
1719 | (var_decode_location): Set cu->has_loclist. | |
1720 | * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and | |
1721 | skip. Intialize force_skip from locations_valid. Move the prologue | |
1722 | skipping code into two passes. | |
1723 | * symtab.h (struct symtab): Make the primary field a bitfield. New | |
1724 | field locations_valid. | |
1725 | ||
d8228535 JK |
1726 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1727 | ||
1728 | * c-exp.y (qualified_name): Call destructor_name_p with $1.type. | |
1729 | (classify_inner_name): Call cp_lookup_nested_type with | |
1730 | yylval.tsym.type. | |
1731 | * cp-namespace.c (cp_lookup_nested_type): New variable | |
1732 | saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call | |
1733 | type_name_no_tag_or_error with saved_parent_type. | |
1734 | * dwarf2read.c (load_partial_dies): Read in any children of | |
1735 | DW_TAG_typedef with complaint in such case. | |
1736 | * gdbtypes.c (type_name_no_tag_or_error): New function. | |
1737 | * gdbtypes.h (type_name_no_tag_or_error): New prototype. | |
1738 | * valops.c (destructor_name_p): New comment for parameter type. Remove | |
1739 | type const. Make dname and cp const. Call type_name_no_tag_or_error. | |
1740 | * value.h (destructor_name_p): Remove type const. | |
1741 | ||
1976171a JK |
1742 | 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
1743 | ||
1744 | * symtab.c (compare_symbol_name): New function. | |
1745 | (completion_list_add_name, expand_partial_symbol_name): Call it, | |
1746 | remove the variable ncmp. | |
1747 | (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN, | |
1748 | gdb_assert it. | |
1749 | ||
a9634178 TJB |
1750 | 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1751 | ||
1752 | Demote to sw watchpoint only in update_watchpoint. | |
1753 | * breakpoint.c (update_watchpoint): Change between software and | |
1754 | hardware watchpoint for all kinds of watchpoints, not just | |
1755 | read/write ones. Determine b->exact value here instead of | |
1756 | in watch_command_1. Error out if there are not enough resources | |
1757 | for a read or access hardware watchpoint. | |
1758 | (watch_command_1): Remove logic of checking whether there are | |
1759 | enough resources available, since update_watchpoint will do that | |
1760 | work now. Don't set b->exact here. Catch exceptions thrown by | |
1761 | update_watchpoint and delete the watchpoint. | |
1762 | (can_use_hardware_watchpoint): Remove exact_watchpoints argument. | |
1763 | Use target_exact_watchpoints instead. | |
1764 | (delete_breakpoint): Notify observers only if deleted watchpoint | |
1765 | has a breakpoint number assigned to it. | |
1766 | ||
4c67c798 JJ |
1767 | 2011-05-05 Janis Johnson <janisjo@codesourcery.com> |
1768 | ||
1769 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
1770 | ||
a3fcb948 JG |
1771 | 2011-05-05 Jerome Guitton <guitton@adacore.com> |
1772 | ||
1773 | * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer): | |
1774 | New functions. | |
1775 | (i386_stack_tramp_frame_unwind): New static global. | |
1776 | (i386_match_pattern): New function, extracted from i386_match_insn. | |
1777 | (i386_match_insn): Use i386_match_pattern. | |
1778 | (i386_match_insn_block): New function. | |
1779 | (i386_tramp_chain_in_reg_insns) | |
1780 | (i386_tramp_chain_on_stack_insns): New static variables. | |
1781 | (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list | |
1782 | of unwinders. | |
1783 | ||
4d393d60 JM |
1784 | 2011-05-04 Joseph Myers <joseph@codesourcery.com> |
1785 | ||
1786 | * configure.host (xscale*): Don't handle target. | |
1787 | * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't | |
1788 | handle targets. | |
1789 | ||
f70bd40b YQ |
1790 | 2011-05-04 Yao Qi <yao@codesourcery.com> |
1791 | ||
1792 | * gdb_wait.h: remove WAITTYPE and WCOREDUMP. | |
1793 | ||
dd3295ee JB |
1794 | 2011-05-03 Joel Brobecker <brobecker@adacore.com> |
1795 | ||
1796 | Revert: | |
1797 | | 2011-03-07 Michael Snyder <msnyder@vmware.com> | |
1798 | | * elfread.c (elf_symtab_read): Stop memory leak. | |
1799 | ||
90375a0e PM |
1800 | 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr> |
1801 | ||
1802 | * nto-tdep.c (nto_target): Replace deprecated call to | |
1803 | cygwin_conv_to_posix_path functions by cygwin_conv_path calls. | |
1804 | ||
d07205c2 JK |
1805 | 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
1806 | ||
1807 | Fix false GCC warning. | |
1808 | * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state. | |
1809 | ||
1e718ff1 TJB |
1810 | 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com> |
1811 | ||
1812 | * breakpoint.c (update_watchpoint): Move code to change | |
1813 | the enable state of breakpoint from here ... | |
1814 | (do_enable_breakpoint): ... to here. | |
1815 | ||
35bef4fd TT |
1816 | 2011-04-26 Andrew Gontarek <andrewg@cray.com> |
1817 | ||
78290264 PP |
1818 | * valprint.c (val_print_array_elements): Fixed poor performance |
1819 | of printing very large arrays with repeat_count_threshold set | |
1820 | to unlimited. New comment. | |
35bef4fd | 1821 | |
38a714bb TT |
1822 | 2011-04-29 Tom Tromey <tromey@redhat.com> |
1823 | ||
1824 | * mi/mi-parse.c (mi_parse): Remove incorrect sizeof. | |
1825 | (mi_parse): Likewise. | |
1826 | * breakpoint.c (break_range_command): Use sizeof char*, not | |
1827 | char**. | |
1828 | (create_breakpoint): Likewise. | |
1829 | (parse_breakpoint_sals): Likewise. | |
1830 | ||
eb73ad13 PA |
1831 | 2011-04-29 Pedro Alves <pedro@codesourcery.com> |
1832 | ||
1833 | * linux-nat.c (linux_child_remove_fork_catchpoint) | |
1834 | (linux_child_remove_vfork_catchpoint) | |
1835 | (linux_child_remove_exec_catchpoint): New functions. | |
1836 | (linux_target_install_ops): Install them. | |
1837 | ||
d65aec65 PM |
1838 | 2011-04-29 Phil Muldoon <pmuldoon@redhat.com> |
1839 | ||
1840 | PR mi/12531 | |
1841 | ||
1842 | * varobj.c (install_default_visualizer): Do not install a | |
1843 | visualizer if the varobj is CPLUS_FAKE_CHILD. | |
1844 | (construct_visualizer): Likewise. | |
1845 | ||
165195f4 JK |
1846 | 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
1847 | ||
1848 | * symtab.c (expand_partial_symbol_name): New variable NCMP. Support | |
1849 | case insensitive comparison. | |
1850 | ||
30852783 UW |
1851 | 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org> |
1852 | ||
1853 | * infrun.c (proceed): Revert previous change. | |
1854 | (resume): Instead, handle the case of signal delivery while stepping | |
1855 | off a breakpoint location here, and only if software single-stepping | |
1856 | is used. Handle nested signals. | |
1857 | ||
7ff120b4 YQ |
1858 | 2011-04-28 Yao Qi <yao@codesourcery.com> |
1859 | ||
1860 | * arm-tdep.c (copy_unmodified): Rename to ... | |
1861 | (arm_copy_unmodified): .. this. New. | |
1862 | (copy_preload): Move common part to ... | |
1863 | (install_preload): .. this. New. | |
1864 | (arm_copy_preload): New. | |
1865 | (copy_preload_reg): Move common part to ... | |
1866 | (install_preload_reg): ... this. New. | |
1867 | (arm_copy_preload_reg): New. | |
1868 | (copy_b_bl_blx): Move common part to ... | |
1869 | (install_b_bl_blx): .. this. New. | |
1870 | (arm_copy_b_bl_blx): New. | |
1871 | (copy_bx_blx_reg): Move common part to ... | |
1872 | (install_bx_blx_reg): ... this. New. | |
1873 | (arm_copy_bx_blx_reg): New. | |
1874 | (copy_alu_reg): Move common part to ... | |
1875 | (install_alu_reg): ... this. New. | |
1876 | (arm_copy_alu_reg): New. | |
1877 | (copy_alu_shifted_reg): Move common part to ... | |
1878 | (install_alu_shifted_reg): ... this. New. | |
1879 | (copy_ldr_str_ldrb_strb): Move common part to ... | |
1880 | (install_ldr_str_ldrb_strb): ... this. New. | |
1881 | (arm_copy_ldr_str_ldrb_strb): New. | |
1882 | (copy_copro_load_store): Move some common part to ... | |
1883 | (install_copy_copro_load_store): ... this. New. | |
1884 | (arm_copy_copro_load_store): New. | |
1885 | (copy_svc): Delete. | |
1886 | (arm_copy_svc): Renamed from copy_svc. | |
1887 | (copy_undef): Delete. | |
1888 | (arm_copy_undef): Renamed from copy_undef. | |
1889 | (decode_ext_reg_ld_st): Delete. | |
1890 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
1891 | (decode_svc_copro): Delete. | |
1892 | (arm_decode_svc_copro): Renamed from decode_svc_copro. | |
1893 | (copy_copro_load_store, copy_alu_imm): update callers. | |
1894 | (copy_extra_ld_st, copy_block_xfer): Likewise. | |
1895 | (decode_misc_memhint_neon, decode_unconditional): Likewise. | |
1896 | (decode_miscellaneous, decode_dp_misc): Likewise. | |
1897 | (decode_ld_st_word_ubyte, decode_media): Likewise. | |
1898 | (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise. | |
1899 | (decode_svc_copro, decode_misc_memhint_neon): Likewise. | |
1900 | (decode_unconditional, decode_miscellaneous): Likewise. | |
1901 | (decode_media, decode_b_bl_ldmstm): Likewise. | |
1902 | (arm_process_displaced_insn): Likewise.. | |
1903 | (decode_misc_memhint_neon): Delete. | |
1904 | (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon. | |
1905 | (decode_miscellaneous): Delete. | |
1906 | (arm_decode_miscellaneous): Renamed from decode_miscellaneous. | |
1907 | (decode_dp_misc): Delete. | |
1908 | (arm_decode_dp_misc): Renamed from decode_dp_misc. | |
1909 | (decode_ld_st_word_ubyte): Delete. | |
1910 | (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte. | |
1911 | (decode_media): Delete. | |
1912 | (arm_decode_media): Renamed from decode_media. | |
1913 | (decode_b_bl_ldmstm): Delete. | |
1914 | (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm. | |
1915 | (decode_ext_reg_ld_st): Delete. | |
1916 | (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st. | |
1917 | (decode_unconditional): Delete. | |
1918 | (arm_decode_unconditional): Renamed from decode_unconditional. | |
1919 | ||
559a7a62 JK |
1920 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1921 | ||
1922 | Case insensitive lookups implementation. | |
1923 | * dwarf2read.c: Include ctype.h. | |
1924 | (struct mapped_index): New field version. | |
1925 | (mapped_index_string_hash): New parameter index_version. New comment | |
1926 | for it. Call tolower appropriately. | |
1927 | (find_slot_in_mapped_hash): New variable cmp, initialize it, use it. | |
1928 | Choose the right index version for mapped_index_string_hash. | |
1929 | (dwarf2_read_index): Support also the index version 5. Initialize the | |
1930 | new struct mapped_index field version. | |
1931 | (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why. | |
1932 | (find_slot): Explain the version needs. Pass INT_MAX for the new | |
1933 | parameter. | |
1934 | (write_psymtabs_to_index): Produce version 5. | |
1935 | * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it, | |
1936 | use it. New comment for SYMBOL_MATCHES_SEARCH_NAME. | |
1937 | * psymtab.c (lookup_partial_symbol): Find the | |
1938 | SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching | |
1939 | entries. | |
1940 | * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off | |
1941 | NAME lowercasing. | |
1942 | (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off. | |
1943 | (completion_list_add_name): New variable ncmp, initialize it, use it. | |
1944 | * symtab.h (SYMBOL_HASH_NEXT): Always call tolower. | |
1945 | * utils.c (strcmp_iw): Support case_sensitive_off. | |
1946 | (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off. | |
1947 | New function comment part. New variables saved_string1, | |
1948 | saved_string2 and case_pass. Add a proper second pass. | |
1949 | ||
681bf369 JK |
1950 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1951 | ||
1952 | Replace re_comp/re_exec by regcomp/regexec. | |
1953 | * symtab.c (struct search_symbols_data): New fields preg, preg_p. | |
1954 | (search_symbols_name_matches): Use them, use regexec. | |
1955 | (search_symbols): New variable retval_chain, adjust the use of | |
1956 | old_chain against it. Replace re_comp by regcomp. Use the new struct | |
1957 | search_symbols_data fields, use regexec instead of re_exec. | |
1958 | ||
b11b1f88 JK |
1959 | 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com> |
1960 | ||
1961 | Format the code for the next patch. | |
1962 | * dwarf2read.c (struct mapped_index): Include delimiting newlines. | |
1963 | * utils.c (strcmp_iw_ordered): Reformat the code for the next patch. | |
1964 | New variables c1 and c2. | |
1965 | ||
2484c66b UW |
1966 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
1967 | ||
1968 | * infrun.c (proceed): Do not single-step into signal delivery | |
1969 | when stepping off a breakpoint location. | |
1970 | (insert_step_resume_breakpoint_at_frame): Move prototype earlier. | |
1971 | (insert_step_resume_breakpoint_at_caller): Likewise. | |
1972 | (insert_step_resume_breakpoint_at_sal): Likewise. | |
1973 | (insert_longjmp_resume_breakpoint): Likewise. | |
1974 | ||
47423772 YQ |
1975 | 2011-04-27 Yao Qi <yao@codesourcery.com> |
1976 | ||
1977 | * common/linux-ptrace.h: Remove include <sys/wait.h>. | |
1978 | ||
13bdd2e7 JB |
1979 | 2011-04-27 Joel Brobecker <brobecker@adacore.com> |
1980 | ||
1981 | * procfs.c (procfs_pass_signals): Fix advance declaration. | |
1982 | ||
2455069d UW |
1983 | 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org> |
1984 | ||
1985 | * target.h (struct target_ops): Remove to_notice_signals; | |
1986 | add to_pass_signals. | |
1987 | (target_notice_signals): Remove. | |
1988 | (target_pass_signals): Add prototype. | |
1989 | * target.c (update_current_target): Remove to_notice_signals; | |
1990 | mention to_pass_signals. | |
1991 | (target_pass_signals): New function. | |
1992 | (debug_to_notice_signals): Remove. | |
1993 | (setup_target_debug): Do not install debug_to_notice_signals. | |
1994 | ||
1995 | * infrun.c (signal_pass): New global. | |
1996 | (resume): Call target_pass_signals. | |
1997 | (handle_inferior_event): Report all signals while stepping over | |
1998 | non-steppable watchpoint. Reset trap_expected to ensure breakpoints | |
1999 | are re-inserted when stepping over a signal handler. | |
2000 | (signal_cache_update): New function. | |
2001 | (signal_stop_update): Call it. | |
2002 | (signal_print_update): Likewise. | |
2003 | (signal_pass_update): Likewise. | |
2004 | (handle_command): Call signal_cache_update and target_pass_signals | |
2005 | instead of target_notice_signals. | |
2006 | (_initialize_infrun): Initialize signal_pass. | |
2007 | ||
2008 | * linux-nat.c (pass_mask): New global. | |
2009 | (linux_nat_pass_signals): New function. | |
2010 | (linux_nat_create_inferior): Report all signals initially. | |
2011 | (linux_nat_attach): Likewise. | |
2012 | (linux_nat_resume): Use pass_mask to decide whether to directly | |
2013 | handle an inferior signal. | |
2014 | (linux_nat_wait_1): Likewise. | |
2015 | (linux_nat_add_target): Install to_pass_signals callback. | |
2016 | ||
2017 | * nto-procfs.c (notice_signals): Remove. | |
2018 | (procfs_resume): Do not call notice_signals. | |
2019 | (procfs_notice_signals): Remove. | |
2020 | (procfs_pass_signals): New function. | |
2021 | (init_procfs_ops): Install to_pass_signals callback instead of | |
2022 | to_notice_signals callback. | |
2023 | (_initialize_procfs): Report all signals initially. | |
2024 | ||
2025 | * procfs.c (procfs_notice_signals): Remove. | |
2026 | (procfs_pass_signals): New function. | |
2027 | (procfs_target): Install to_pass_signals callback instead of | |
2028 | to_notice_signals callback. | |
2029 | (register_gdb_signals): Remove. | |
2030 | (procfs_debug_inferior): Report all signals initially. | |
2031 | (procfs_init_inferior): Remove redundant register_gdb_signals call. | |
2032 | ||
2033 | * remote.c (remote_pass_signals): Add numsigs and pass_signals | |
2034 | parameters; use them instead of calling signal_..._state routines. | |
2035 | (remote_notice_signals): Remove. | |
2036 | (remote_start_remote): Report all signals initially. | |
2037 | (remote_resume): Do not call remote_pass_signals. | |
2038 | (_initialize_remote): Install to_pass_signals callback instead of | |
2039 | to_notice_signals callback. | |
2040 | ||
46c6471b PA |
2041 | 2011-04-27 Pedro Alves <pedro@codesourcery.com> |
2042 | ||
2043 | * breakpoint.c (user_settable_breakpoint): Delete. | |
2044 | (user_breakpoint_p): Remove check on user_settable_breakpoint. | |
2045 | (delete_command): Check user_breakpoint_p instead of looking at | |
2046 | the breakpoint's type. | |
2047 | (disable_command): Ditto. | |
2048 | (enable_command): Ditto. | |
2049 | (delete_trace_command): Use user_breakpoint_p instead of looking | |
2050 | at the breakpoint number directly. When checking if there are | |
2051 | user visible tracepoints, in order to know whether to ask the user | |
2052 | for confirmation, check whether the breakpoint is actually a | |
2053 | tracepoint. | |
2054 | ||
f6d90398 VP |
2055 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
2056 | ||
2057 | * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix | |
2058 | compilation. | |
2059 | ||
8d3788bd VP |
2060 | 2011-04-27 Vladimir Prus <vladimir@codesourcery.com> |
2061 | ||
2062 | MI breakpoint notifications. | |
2063 | ||
f33edef8 PP |
2064 | * annotate.c (breakpoint_changed): Adjust parameter type. |
2065 | * breakpoint.c (set_breakpoint_condition): Adjust to change | |
2066 | in breakpoint_modified type. | |
2067 | (breakpoint_set_commands): Likewise. | |
2068 | (do_map_commands_command): Likewise. | |
2069 | (bpstat_check_breakpoint_conditions): Notify that breakpoint has | |
2070 | changed after bumping hit count. | |
2071 | (bpstat_stop_status): Likewise. | |
2072 | (print_one_breakpoint_location): Don't wrap in tuple here. | |
2073 | (print_one_breakpoint): Always print individual locations. | |
2074 | For locations, use unnamed tuple. | |
2075 | (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint | |
2076 | has changed. | |
2077 | (create_catchpoint, create_syscall_event_catchpoint): Call | |
2078 | breakpoint_created obsever. | |
2079 | (mention): Don't call breakpoint_created observer. | |
2080 | (create_breakpoint_sal): Call breakpoint_created observer. | |
2081 | (create_breakpoint, watch_command_1): Likewise. | |
2082 | (create_ada_exception_breakpoint): Likewise. | |
2083 | (delete_breakpoint): Call breakpoint_deleted breakpoint. | |
2084 | (locations_are_equal): New. | |
2085 | (update_breakpoint_locations): If locations were changed, notify. | |
2086 | (set_ignore_count, disable_breakpoint, do_enable_breakpoint): | |
2087 | Call breakpoint_modified observer. | |
2088 | ||
2089 | * mi/mi-cmd-break.c (breakpoint_notify): Adjust. | |
2090 | (mi_cmd_break_insert): Don't set observers for modify and delete. | |
2091 | * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New. | |
2092 | (mi_breakpoint_created, mi_breakpoint_deleted) | |
2093 | (mi_breakpoint_modified): New. | |
2094 | (mi_interpreter_init): Hook the above. | |
2095 | * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications | |
2096 | while -break-* commands are executing. | |
2097 | * mi/mi-main.h (mi_suppress_breakpoint_notifications): New. | |
2098 | * mi/mi-out.c (struct ui_out_data): New field original_buffer. | |
2099 | (mi_redirect): New. | |
2100 | (mi_ui_out_impl): Hook in mi_redirect. | |
2101 | (mi_field_skip): True to the name, skip the field, don't output | |
2102 | a field with an empty value. | |
2103 | ||
2104 | * python/py-breakpoint.c (gdbpy_breakpoint_created) | |
2105 | (gdbpy_breakpoint_deleted): Adjust. | |
2106 | * tui/tui-hooks.c (tui_event_create_breakpoint) | |
2107 | (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust. | |
8d3788bd | 2108 | |
a8f42b45 UW |
2109 | 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com> |
2110 | ||
2111 | * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype. | |
2112 | (procfs_remove_hw_watchpoint): Likewise. | |
2113 | ||
57e12211 TT |
2114 | 2011-04-26 Michael Walle <michael@walle.cc> |
2115 | ||
2116 | * remote.c (remote_start_remote): Ack packet after sending the | |
2117 | interrupt sequence. | |
2118 | ||
af96c192 YQ |
2119 | 2011-04-26 Yao Qi <yao@codesourcery.com> |
2120 | ||
f33edef8 PP |
2121 | * linux-nat.c: Move common macros to ... |
2122 | Include linux-ptrace.h. | |
2123 | * common/linux-ptrace.h: ... here. New. | |
af96c192 | 2124 | |
3e03848b JK |
2125 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
2126 | ||
2127 | * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by | |
2128 | !objfile_has_partial_symbols. New comment. | |
2129 | * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if | |
2130 | SYM_READ_PSYMBOLS is not present. Extend the comment. | |
2131 | * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment. | |
2132 | ||
1ae0d051 JK |
2133 | 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
2134 | ||
2135 | * defs.h (ENUM_BITFIELD): Remove. | |
2136 | ||
03f2bd59 JK |
2137 | 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> |
2138 | Eli Zaretskii <eliz@gnu.org> | |
2139 | ||
2140 | * NEWS: Document the new gdbserver --once option. | |
2141 | ||
4161fbb0 JZ |
2142 | 2011-04-21 Jie Zhang <jzhang918@gmail.com> |
2143 | ||
2144 | * MAINTAINERS: Update my email address. | |
2145 | ||
bcb28afc PM |
2146 | 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr> |
2147 | ||
2148 | * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro. | |
2149 | (INTERMEDIATE_ENCODING): Change value to intermediate_encoding | |
2150 | function call if __STDC_ISO_10646__ macro is defined. | |
2151 | (intermediate_encoding): New prototype. | |
2152 | * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable | |
2153 | to generate compile time error for unsupported gdb_wchar_t size. | |
2154 | (ENDIAN_SUFFIX): New macro. | |
2155 | (intermediate_encoding): New function. | |
2156 | ||
7b08b9eb JK |
2157 | 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
2158 | ||
2159 | * ada-lang.c (struct add_partial_datum): Update the comment for | |
2160 | expand_partial_symbol_name. | |
2161 | (ada_add_partial_symbol_completions): Rename to ... | |
2162 | (ada_expand_partial_symbol_name): ... here, change return type, update | |
2163 | function comment, call symbol_completion_match instead of | |
2164 | symbol_completion_add. | |
2165 | (ada_make_symbol_completion_list): Use now expand_partial_symbol_names | |
2166 | and ada_expand_partial_symbol_name. | |
2167 | * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL | |
2168 | FILE_MATCHER. | |
2169 | (dw2_map_symbol_names): Remove. | |
2170 | (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names. | |
2171 | * psymtab.c (map_symbol_names_psymtab): Remove. | |
2172 | (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER. | |
2173 | Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check | |
2174 | order. | |
2175 | (psym_functions): Unlist map_symbol_names_psymtab. | |
2176 | (map_partial_symbol_names): Rename to ... | |
2177 | (expand_partial_symbol_names): ... here, change the FUN type, call | |
2178 | expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now. | |
2179 | * psymtab.h (map_partial_symbol_names): Rename to ... | |
2180 | (expand_partial_symbol_names): ... here, change the FUN type. | |
2181 | * symfile.h (struct quick_symbol_functions): Update the description of | |
2182 | expand_symtabs_matching. Remove map_symbol_names. | |
2183 | * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment. | |
2184 | (struct add_name_data): Update the comment for | |
2185 | expand_partial_symbol_name. | |
2186 | (add_partial_symbol_name): Rename to ... | |
2187 | (expand_partial_symbol_name): ... here. Replace | |
2188 | completion_list_add_name call by strncmp. | |
2189 | (default_make_symbol_completion_list_break_on): Use now | |
2190 | expand_partial_symbol_names and expand_partial_symbol_name. | |
2191 | * symtab.h (enum search_domain): New element ALL_DOMAIN. | |
2192 | ||
90476074 TT |
2193 | 2011-04-20 Tom Tromey <tromey@redhat.com> |
2194 | ||
2195 | * dwarf2read.c (save_gdb_index_command): Replace format | |
2196 | documentation with a pointer to the manual. | |
2197 | ||
c21236dc PA |
2198 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
2199 | ||
2200 | * regcache.c: Include remote.h. | |
2201 | (enum regcache_dump_what) <regcache_dump_remote>: New enum value. | |
2202 | (regcache_dump): Handle regcache_dump_remote. | |
2203 | (maintenance_print_remote_registers): New function. | |
2204 | (_initialize_regcache): Install "maint print remote-registers" | |
2205 | command. | |
2206 | * remote.c (map_regcache_remote_table): New function, factored out | |
2207 | from ... | |
2208 | (init_remote_state): ... here. | |
2209 | (remote_register_number_and_offset): New. | |
2210 | * remote.h (remote_register_number_and_offset): Declare. | |
2211 | ||
b78974c3 PA |
2212 | 2011-04-20 Pedro Alves <pedro@codesourcery.com> |
2213 | ||
2214 | * regcache.c (get_thread_arch_regcache): If creating a regcache for | |
2215 | null_ptid, assume and allow a NULL address space, instead of | |
2216 | asking the target for the ptid's address space. | |
2217 | * infrun.c (ptid_is_pid): Remove assertion. | |
2218 | ||
7a9dd1b2 TT |
2219 | 2011-04-19 Tom Tromey <tromey@redhat.com> |
2220 | ||
2221 | * windows-tdep.c (windows_xfer_shared_library): | |
2222 | * windows-nat.c (get_module_name, windows_make_so): | |
2223 | * v850-tdep.c (v850_handle_pushm): | |
2224 | * utils.c (null_cleanup, gdb_realpath): | |
2225 | * ui-out.c (get_next_header): | |
2226 | * tracepoint.c (clear_traceframe_info): | |
2227 | * symtab.c (lookup_symtab): | |
2228 | * serial.h (struct serial_ops): | |
2229 | * mipsread.c (read_alphacoff_dynamic_symtab): | |
2230 | * infcmd.c (print_return_value): | |
2231 | * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): | |
2232 | * f-exp.y (parse_number): | |
2233 | * exceptions.c (catch_exceptions): | |
2234 | * dummy-frame.c (dummy_frame_this_id): | |
2235 | * defs.h (struct cleanup): | |
2236 | * breakpoint.c (disable_breakpoints_in_unloaded_shlib): | |
2237 | * arm-tdep.c (arm_push_dummy_call): | |
2238 | * amd64-tdep.h (amd64_collect_xsave): | |
2239 | * amd64-tdep.c (amd64_collect_xsave): | |
2240 | * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): | |
2241 | * README (typing): Remove duplicate words. | |
2242 | * cli/cli-decode.c (lookup_cmd_composition): Add comma. | |
2243 | * infrun.c (siginfo_value_read): Fix typo. | |
2244 | * solib-frv.c (frv_fdpic_find_global_pointer): Likewise. | |
2245 | * top.c (source_line_number): Add comma. | |
2246 | ||
9941e0c5 MK |
2247 | 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com> |
2248 | ||
2249 | * thread.c (any_live_thread_of_process): Prioritize threads | |
2250 | that are not executing. | |
2251 | * gdbthread.h (any_live_thread_of_process): Update comment | |
2252 | as per above change. | |
2253 | ||
ed4b0e6a AS |
2254 | 2011-04-19 Andreas Schwab <schwab@linux-m68k.org> |
2255 | ||
2256 | * xcoffread.c (process_xcoff_symbol): Remove useless cast. | |
2257 | (scan_xcoff_symtab): Likewise. | |
2258 | ||
9b13a2db PM |
2259 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
2260 | ||
2261 | * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment | |
2262 | inside if clause. | |
2263 | ||
1c6e1b0d PM |
2264 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
2265 | Pedro Alves <pedro@codesourcery.com> | |
2266 | ||
2267 | * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local | |
2268 | variables to simplify code and avoid == operator at end of | |
2269 | line as this is against GNU coding standards. | |
2270 | ||
74de0234 PM |
2271 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
2272 | ||
2273 | * solib-svr4.c (svr4_keep_data_in_core): Rename local variable | |
2274 | lm_name to name_lm to avoid conflict with lm_name function. | |
2275 | ||
b23518f0 PM |
2276 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
2277 | ||
2278 | ARI fixes: Use only lowercase function name for static functions. | |
2279 | * nto-tdep.c (LM_ADDR): Rename to... | |
2280 | (lm_addr): New function name. | |
2281 | (nto_relocate_section_addresses): Adapt to change above. | |
2282 | * solib-sunos.c (LM_ADDR): Rename to... | |
2283 | (lm_addr): New function name. | |
2284 | (LM_NEXT): Rename to... | |
2285 | (lm_next): New function name. | |
2286 | (sunos_current_sos, sunos_relocate_section_addresses): Adapt to | |
2287 | function name changes above. | |
2288 | * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to... | |
2289 | (lm_addr_from_link_map): New function name. | |
2290 | (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
2291 | (has_lm_dynamic_from_link_map): New function name. | |
2292 | (LM_DYNAMIC_FROM_LINK_MAP): Rename to... | |
2293 | (lm_dynamic_from_link_map): New function name. | |
2294 | (LM_ADDR_CHECK): Rename to... | |
2295 | (lm_addr_check): New function name. | |
2296 | (LM_NEXT): Rename to... | |
2297 | (lm_next): New function name. | |
2298 | (LM_PREV): Rename to... | |
2299 | (lm_prev): New function name. | |
2300 | (LM_NAME): Rename to... | |
2301 | (lm_name): New function name. | |
2302 | (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to... | |
2303 | (ignore_first_link_map_entry): New function name. | |
2304 | (svr4_keep_data_in_core): Adapt to function name changes above. | |
2305 | (svr4_current_sos): Likewise. | |
2306 | (enable_break): Likewise. | |
2307 | (svr4_relocate_section_addresses): Likewise. | |
2308 | ||
1448a0a2 PM |
2309 | 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr> |
2310 | ||
2311 | ARI cleanup. | |
2312 | * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of | |
2313 | sprintf. Simplify code and avoid loosing memory. | |
2314 | (xtensa_register_reggroup_p): Extract assignment out of IF clause. | |
2315 | (call0_frame_cache): Remove && operator from end of line. | |
2316 | ||
02835898 JK |
2317 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2318 | ||
2319 | Fix libraries displacement if they change whether they were prelinked. | |
2320 | * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer | |
2321 | does not match. Comment why. | |
2322 | ||
9a845ea2 JK |
2323 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2324 | ||
2325 | * corelow.c: Include wrapper.h. | |
2326 | (core_open): Call now gdb_target_find_new_threads. | |
2327 | * wrapper.c: Include target.h. | |
2328 | (gdb_target_find_new_threads): New. | |
2329 | * wrapper.h (gdb_target_find_new_threads): New declaration. | |
2330 | ||
254f582e JK |
2331 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2332 | ||
2333 | * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID | |
2334 | even if !TARGET_HAS_EXECUTION. | |
2335 | ||
63524580 JK |
2336 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2337 | ||
2338 | Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip. | |
2339 | * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to | |
2340 | bfd_get_synthetic_symtab. | |
2341 | * jit.c (jit_register_code): Pass NULL to the new parameter parent. | |
2342 | * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new | |
2343 | parameter parent, remove the call to add_separate_debug_objfile. | |
2344 | * solib.c (solib_read_symbols): Pass NULL to the new parameter parent. | |
2345 | * symfile-mem.c (symbol_file_add_from_memory): Likewise. | |
2346 | * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter | |
2347 | parent, new comment for it, call add_separate_debug_objfile for it. | |
2348 | (symbol_file_add_separate): Pass objfile as the parameter parent, | |
2349 | remove the call to add_separate_debug_objfile. | |
2350 | (symbol_file_add_from_bfd): New parameter parent, pass it. | |
2351 | (symbol_file_add): Pass NULL to the new parameter parent. | |
2352 | * symfile.h (symbol_file_add_from_bfd): New parameter parent. | |
2353 | ||
90359a16 JK |
2354 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2355 | ||
2356 | * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are | |
2357 | BSF_SYNTHETIC. | |
2358 | ||
626e7282 JK |
2359 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
2360 | ||
2361 | Fix Python access to inlined frames. | |
2362 | * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block. | |
2363 | * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. | |
2364 | ||
cf31e6f9 TT |
2365 | 2011-04-15 Tom Tromey <tromey@redhat.com> |
2366 | ||
2367 | * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length. | |
2368 | ||
c8d895f1 GB |
2369 | 2011-04-15 Gary Benson <gbenson@redhat.com> |
2370 | ||
2371 | * MAINTAINERS: Add myself to write-after-approval section. | |
2372 | ||
56a9aa1d MF |
2373 | 2011-04-14 Mike Frysinger <vapier@gentoo.org> |
2374 | ||
2375 | * remote-sim.c (sim_command_completer): New function. | |
2376 | (_initialize_remote_sim): Set completer to sim_command_completer. | |
2377 | ||
ba770c9c TJB |
2378 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2379 | ||
2380 | * breakpoint.c (print_exception_catchpoint): Rename to ... | |
2381 | (print_it_exception_catchpoint): ... this. | |
2382 | (gnu_v3_exception_catchpoint_ops): Update with new name | |
2383 | for print_it_exception_catchpoint. | |
2384 | ||
51bf2553 EBM |
2385 | 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com> |
2386 | ||
2387 | * MAINTAINERS: Add myself for write after approval privileges. | |
2388 | ||
d242658c MP |
2389 | 2011-04-13 Marek Polacek <mpolacek@redhat.com> |
2390 | ||
2391 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
2392 | ||
4a4106ca TJB |
2393 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2394 | ||
2395 | * breakpoint.c (watch_command_1): Remove colon from exp_string. | |
2396 | ||
26063d49 TJB |
2397 | 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2398 | ||
2399 | * breakpoint.c (save_breakpoints): Verify whether | |
2400 | breakpoint_ops.print_recreate is defined before calling it. | |
2401 | ||
7782b183 GB |
2402 | 2011-04-11 Gary Benson <gbenson@redhat.com> |
2403 | ||
2404 | Fix failure with --enable-maintainer-mode. | |
2405 | * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies. | |
2406 | ||
e8930875 JK |
2407 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2408 | ||
2409 | Code cleanup. | |
2410 | * symtab.c (search_symbols): Reorder the KIND description in the | |
2411 | function comment. Remove the unused 4th element of types, types2, | |
2412 | types3 and types4. New gdb_assert on KIND. | |
2413 | (symtab_symbol_info): Remove the unused 4th element of classnames. | |
2414 | New gdb_assert on KIND. | |
2415 | * symtab.h (enum search_domain): New warning in the enum comment. | |
2416 | Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and | |
2417 | TYPES_DOMAIN. | |
2418 | ||
b4f2f049 JK |
2419 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2420 | ||
2421 | Fix crash of gdb save-index on a STABS file. | |
2422 | * dwarf2read.c (write_psymtabs_to_index): Return also on no | |
2423 | PSYMTABS_ADDRMAP. | |
2424 | ||
60d5a603 JK |
2425 | 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
2426 | ||
2427 | Fix DW_AT_accessibility compatibility with gcc-4.6+. | |
2428 | * dwarf2read.c: Include ctype.h. | |
2429 | (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New | |
2430 | functions. | |
2431 | (dwarf2_add_field): Fix new_field->accessibility by calling | |
2432 | dwarf2_default_access_attribute. Restructure setting accessibility | |
2433 | vs. virtuality. | |
2434 | (dwarf2_add_member_fn): New variable accessibility. Fix fnp | |
2435 | is_private and is_protected by calling | |
2436 | dwarf2_default_access_attribute. | |
2437 | ||
e0f68161 KB |
2438 | 2011-04-08 Kevin Buettner <kevinb@redhat.com> |
2439 | ||
2440 | * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason | |
2441 | to the initialization. | |
2442 | ||
2e1aae43 SE |
2443 | 2011-04-08 Steve Ellcey <sje@cup.hp.com> |
2444 | ||
2445 | * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind | |
2446 | initalization. | |
2447 | ||
c6ca3dab PM |
2448 | 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr> |
2449 | ||
2450 | Remove support for old Cygwin 1.5 versions. | |
2451 | * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path | |
2452 | function on old Cygwin version. | |
2453 | * windows-nat.c: Remove cygwin version check and always define | |
2454 | __USEWIDE for Cygwin compilation. | |
2455 | ||
bd18283a YQ |
2456 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
2457 | ||
2458 | * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN | |
2459 | and TO. | |
2460 | * arm-tdep.c (cleanup_svc): Handle variable instruction size. | |
2461 | (arm_copy_svc): Remove parameters INSN and TO. | |
2462 | (decode_svc_copro): Update caller. | |
2463 | * arm-tdep.h (struct displaced_step_closure): Remove parameters | |
2464 | from function pointer `copy_svc_os'. | |
2465 | ||
8c8dba6d YQ |
2466 | 2011-04-07 Yao Qi <yao@codesourcery.com> |
2467 | ||
2468 | * arm-tdep.c (cleanup_branch): Set a correct return address in | |
2469 | LR for ARM and Thumb. | |
2470 | ||
59d7bcaf JK |
2471 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2472 | ||
2473 | Code cleanup. | |
2474 | * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT. | |
2475 | * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT | |
2476 | in the function comment, a new note on values compatibility. | |
2477 | * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT. | |
2478 | * symtab.h (SYMBOL_HASH_NEXT): New. | |
2479 | ||
e7db58ea TJB |
2480 | 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2481 | ||
2482 | * ppc-linux-nat.c (check_condition): Add len output parameter. | |
2483 | Set it based on the memory region referenced in the condition | |
2484 | expression. Update all callers. | |
2485 | ||
9f743ef6 JK |
2486 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2487 | ||
2488 | Fix crash regression on systems featuring .gdb_index. | |
2489 | * objfiles.c (free_objfile): Move the | |
2490 | forget_cached_source_info_for_objfile call earlier. Comment it. | |
2491 | Extend the comment for objfile_free_data. | |
2492 | ||
9182c5bc JK |
2493 | 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com> |
2494 | ||
2495 | Fix regression of displaying the debug format. | |
2496 | * buildsym.c (end_symtab): Set symtab's debugformat and producer from | |
2497 | subfile. | |
2498 | ||
04bd08de TT |
2499 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2500 | ||
2501 | * cli/cli-interp.c (struct captured_execute_command_args): | |
2502 | Remove. | |
2503 | (do_captured_execute_command): Remove. | |
2504 | (safe_execute_command): Use TRY_CATCH. | |
2505 | * cli/cli-script.c (struct wrapped_read_command_file_args): | |
2506 | Remove. | |
2507 | (wrapped_read_command_file): Remove. | |
2508 | (script_from_file): Use TRY_CATCH. | |
2509 | * exceptions.c (catch_exception): Remove. | |
2510 | * exceptions.h (catch_exception): Remove. | |
2511 | (deprecated_throw_reason): Update comment. | |
2512 | * mi/mi-main.c (captured_mi_execute_command): Change 'data' | |
2513 | argument to 'context'. | |
2514 | (mi_execute_command): Use TRY_CATCH. | |
2515 | * remote.c (struct start_remote_args): Remove. | |
2516 | (remote_start_remote): Update; change arguments. | |
2517 | (remote_open_1): Use TRY_CATCH. | |
2518 | ||
58438ac1 TT |
2519 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2520 | ||
2521 | * tracepoint.c (scope_info): Update. | |
2522 | * symtab.c (decode_line_spec): Update. | |
2523 | * python/python.c (gdbpy_decode_line): Update. | |
2524 | * linespec.h (decode_line_1): Update. | |
2525 | * linespec.c (decode_line_1): Remove 'not_found_ptr' argument. | |
2526 | (decode_compound, find_method, symtab_from_filename) | |
2527 | (decode_variable): Likewise. | |
2528 | * cli/cli-cmds.c (edit_command): Update. | |
2529 | (list_command): Update. | |
2530 | * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr' | |
2531 | argument. | |
2532 | (create_breakpoint): Update. | |
2533 | (until_break_command): Update. | |
2534 | (addr_string_to_sals): Update. | |
2535 | (decode_line_spec_1): Update. | |
2536 | ||
b78a6381 TT |
2537 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2538 | ||
2539 | * breakpoint.c (struct captured_parse_breakpoint_args): Remove. | |
2540 | (do_captured_parse_breakpoint): Remove. | |
2541 | (create_breakpoint): `e' is now volatile. Remove `parse_args'. | |
2542 | Use TRY_CATCH directly. | |
2543 | ||
00174a86 TT |
2544 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2545 | ||
2546 | * symtab.h (free_symtab): Remove. | |
2547 | (forget_cached_source_info_for_objfile): Declare. | |
2548 | * symmisc.c (free_symtab): Remove. | |
2549 | * source.c (forget_cached_source_info_for_objfile): New function. | |
2550 | (forget_cached_source_info): Use it. | |
2551 | * objfiles.c (free_objfile): Simplify check before calling | |
2552 | clear_current_source_symtab_and_line. Call | |
2553 | forget_cached_source_info_for_objfile. | |
2554 | ||
30cc903e TT |
2555 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2556 | ||
2557 | * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack. | |
2558 | (new_symtab): Don't set `free_code' on symtab. | |
2559 | (new_linetable): Properly handle size==0. | |
2560 | * symtab.h (struct symtab) <free_code, free_func>: Remove. | |
2561 | * symmisc.c (free_symtab): Don't free the linetable. Don't call | |
2562 | free_func. | |
2563 | * jv-lang.c (struct jv_per_objfile_data): New. | |
2564 | (jv_per_objfile_free): Free the data. | |
2565 | (get_dynamics_objfile): Allocate a jv_per_objfile_data. | |
2566 | (get_java_class_symtab): Set the `dict' field on the | |
2567 | jv_per_objfile_data. | |
2568 | (free_class_block): Remove. | |
2569 | * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on | |
2570 | the symtab. | |
2571 | ||
0c2e6019 TT |
2572 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2573 | ||
2574 | * symfile.c (reread_symbols): Update. | |
2575 | * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove | |
2576 | field. | |
2577 | * objfiles.c (allocate_objfile): Update. | |
2578 | * cp-support.h (cp_check_possible_namespace_symbols): Don't | |
2579 | declare. | |
2580 | * cp-namespace.c (lookup_symbol_file): Don't call | |
2581 | lookup_possible_namespace_symbol. | |
2582 | (initialize_namespace_symtab, get_possible_namespace_block) | |
2583 | (free_namespace_block, cp_check_possible_namespace_symbols) | |
2584 | (check_possible_namespace_symbols_loop) | |
2585 | (check_one_possible_namespace_symbol) | |
2586 | (lookup_possible_namespace_symbol): Remove. | |
2587 | (maintenance_cplus_namespace): Replace with notice. | |
2588 | (_initialize_cp_namespace): Deprecate `maint cplus namespace'. | |
2589 | ||
554d387d TT |
2590 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2591 | ||
2592 | * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const. | |
2593 | * symtab.h (struct symtab) <producer, debugformat>: Now const. | |
2594 | * symmisc.c (free_symtab): Don't free debugformat. | |
2595 | * buildsym.h (struct subfile) <producer, debugformat>: Now const. | |
2596 | (record_debugformat, record_producer): Document. | |
2597 | * buildsym.c (end_symtab): Don't save debugformat and producer | |
2598 | names on obstack. | |
2599 | (end_symtab): Don't free debugformat and producer fields. | |
2600 | (record_debugformat): Don't call xstrdup. | |
2601 | (record_producer): Likewise. | |
2602 | ||
d4d4db8a TT |
2603 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2604 | ||
2605 | * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code. | |
2606 | (source_line_charpos, source_charpos_line): Remove. | |
2607 | ||
8903c50d TT |
2608 | 2011-04-04 Tom Tromey <tromey@redhat.com> |
2609 | ||
2610 | * symtab.h (domain_enum): Split in two... | |
2611 | (enum search_domain): New. | |
2612 | (search_symbols): Update. | |
2613 | * symtab.c (print_symbol_info, symtab_symbol_info): Remove | |
2614 | redundant declarations. | |
2615 | (search_symbols): Change 'kind' argument to search_domain. | |
2616 | Update. | |
2617 | (print_symbol_info): Likewise. | |
2618 | (symtab_symbol_info): Likewise. | |
2619 | * symfile.h (struct quick_symbol_functions) | |
2620 | <pre_expand_symtabs_matching>: Change type of 'kind' argument. | |
2621 | <expand_symtabs_matching>: Likewise. | |
2622 | * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update. | |
2623 | (expand_symtabs_matching_via_partial): Update. | |
2624 | * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update. | |
2625 | (dw2_expand_symtabs_for_function): Update. | |
2626 | * block.h: Moved anonymous enum... | |
2627 | * defs.h (enum block_enum): ... here. Now named. | |
2628 | ||
d9351f5f | 2629 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
2630 | ||
2631 | GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC) | |
2632 | * version.in: Bump version to 7.3.50.20110403-cvs. | |
2633 | ||
d6e00af6 JB |
2634 | 2011-04-03 Joel Brobecker <brobecker@adacore.com> |
2635 | ||
2636 | * NEWS: Create a new section for the next release branch. | |
2637 | Rename the section of the current branch, now that it has | |
2638 | been cut. | |
2639 | ||
2b9e5ea6 UW |
2640 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
2641 | ||
2642 | * arm-tdep.c (arm_gdbarch_init): Enfore correct register number | |
2643 | for "fpscr" in target description. | |
2644 | ||
0cf03b49 JK |
2645 | 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
2646 | ||
2647 | * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to, | |
2648 | initialize it. Delay HASH initialization. Strip the part after open | |
2649 | parenthesis for languages with qualifiers. Call do_cleanups. | |
2650 | ||
5d901a73 TT |
2651 | 2011-04-01 Tom Tromey <tromey@redhat.com> |
2652 | ||
2653 | * utils.c (report_command_stats): Don't print `-' for negative | |
2654 | number. | |
2655 | ||
b0dd7688 JB |
2656 | 2011-04-01 Eric Botcazou <ebotcazou@adacore.com> |
2657 | ||
2658 | * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr) | |
2659 | (ada_value_slice, empty_array, to_fixed_array_type): Deal with | |
2660 | typedefs. | |
2661 | ||
956a9fb9 JB |
2662 | 2011-04-01 Joel Brobecker <brobecker@adacore.com> |
2663 | ||
2664 | * breakpoint.h (bpdisp_text): Add declaration. | |
2665 | * breakpoint.c (bpdisp_text): Make non-static. | |
2666 | * ada-lang.c: #include "mi/mi-common.h". | |
2667 | (print_it_exception): Rewrite to improve GDB/MI output. | |
2668 | ||
3352110b PA |
2669 | 2011-04-01 Pedro Alves <pedro@codesourcery.com> |
2670 | ||
2671 | * arm-tdep.h (struct address_space): Add forward declaration. | |
2672 | ||
18819fa6 UW |
2673 | 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
2674 | ||
2675 | * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype. | |
2676 | * arm-tdep.c (arm_override_mode): New global. | |
2677 | (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step | |
2678 | execution mode heuristics. | |
2679 | (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert | |
2680 | second single-step breakpoint if needed, using | |
2681 | arm_insert_single_step_breakpoint. | |
2682 | (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle | |
2683 | ARM execution mode, do not call thumb_get_next_pc_raw. | |
2684 | (arm_get_next_pc): Encode execution mode in return value. Call | |
2685 | either arm_get_next_pc_raw or thumb_get_next_pc_raw. | |
2686 | (arm_insert_single_step_breakpoint): New function. | |
2687 | (arm_software_single_step): Call it. | |
2688 | * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB | |
2689 | argument to return execution mode of sigreturn target. | |
2690 | (arm_linux_syscall_next_pc): Use it. | |
2691 | (arm_linux_copy_svc): Update call. | |
2692 | (arm_linux_software_single_step): Call | |
2693 | arm_insert_single_step_breakpoint. | |
2694 | ||
a6e293d1 JK |
2695 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
2696 | ||
2697 | * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in | |
2698 | the comment. | |
2699 | ||
a4c8e806 TT |
2700 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
2701 | ||
2702 | * varobj.c (update_dynamic_varobj_children): Properly handle | |
2703 | errors from iterator. | |
2704 | ||
df5c6c50 JK |
2705 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
2706 | ||
2707 | * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling | |
2708 | struct linkage name twice. | |
2709 | ||
1dae3efc TT |
2710 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
2711 | ||
2712 | * python/py-prettyprint.c (print_stack_unless_memory_error): Add | |
2713 | missing ">" to message. | |
2714 | ||
f4f7ab05 TT |
2715 | 2011-03-31 Tom Tromey <tromey@redhat.com> |
2716 | ||
2717 | * varobj.c (instantiate_pretty_printer): Remove duplicate | |
2718 | 'return'. | |
2719 | ||
fcf250e2 UW |
2720 | 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org> |
2721 | ||
2722 | * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory | |
2723 | if neither saved value nor register available (e.g. signal frame). | |
2724 | ||
ee6436e3 TJB |
2725 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2726 | ||
2727 | * macroexp.c (expand): Avoid uninitialized variable | |
2728 | compiler warning. | |
2729 | ||
423f41a5 TJB |
2730 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2731 | ||
2732 | * breakpoint.c (break_range_command): Fix typo in comment. | |
2733 | ||
f1310107 TJB |
2734 | 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2735 | Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> | |
2736 | ||
2737 | Implement support for PowerPC BookE ranged breakpoints. | |
2738 | * NEWS: Mention support for ranged breakpoints on embedded PowerPC. | |
2739 | * breakpoint.h (struct bp_target_info) <length>: New member | |
2740 | variable. | |
2741 | (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location | |
2742 | instead of struct breakpoint as argument, and also add ASPACE | |
2743 | and BP_ADDR arguments. Update all callers. | |
2744 | (struct breakpoint_ops) <print_one_detail>: New method. | |
2745 | (struct breakpoint) <addr_string_range_end>: New member variable. | |
2746 | * breakpoint.c (breakpoint_location_address_match): Add function | |
2747 | prototype. | |
2748 | (insert_bp_location): Set bl->target_info.length. | |
2749 | (breakpoint_here_p): Call breakpoint_location_address_match. | |
2750 | (moribund_breakpoint_here_p): Likewise. | |
2751 | (regular_breakpoint_inserted_here_p): Likewise. | |
2752 | (breakpoint_thread_match): Likewise. | |
2753 | (bpstat_stop_status): Likewise. | |
2754 | (bpstat_check_location): Move call to | |
2755 | breakpoint_ops.breakpoint_hit to the top. | |
2756 | (print_one_breakpoint_location): Call | |
2757 | breakpoint_ops.print_one_detail if available. | |
2758 | (breakpoint_address_match_range): New function. | |
2759 | (breakpoint_location_address_match): Likewise. | |
2760 | (breakpoint_locations_match): Compare the length field of the | |
2761 | locations too. | |
2762 | (hw_breakpoint_used_count): Count resources used by all locations | |
2763 | in a breakpoint, and use breakpoint_ops.resources_needed if | |
2764 | available. | |
2765 | (breakpoint_hit_ranged_breakpoint): New function. | |
2766 | (resources_needed_ranged_breakpoint): Likewise. | |
2767 | (print_it_ranged_breakpoint): Likewise. | |
2768 | (print_one_ranged_breakpoint): Likewise. | |
2769 | (print_one_detail_ranged_breakpoint): Likewise. | |
2770 | (print_mention_ranged_breakpoint): Likewise. | |
2771 | (print_recreate_ranged_breakpoint): Likewise. | |
2772 | (ranged_breakpoint_ops): New structure. | |
2773 | (find_breakpoint_range_end): New function. | |
2774 | (break_range_command): Likewise. | |
2775 | (delete_breakpoint): Free addr_string_range_end. | |
2776 | (update_breakpoint_locations): Add SALS_END argument. Update | |
2777 | all callers. Calculate breakpoint length if a non-zero SALS_END | |
2778 | is given. Call breakpoint_locations_match instead of | |
2779 | breakpoint_address_match. | |
2780 | (reset_breakpoint): Find SaL of the end of the range if B is a | |
2781 | ranged breakpoint. | |
2782 | (_initialize_breakpoint): Register break-range command. | |
2783 | * defs.h (print_core_address): Add function prototype. | |
2784 | * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New | |
2785 | function. | |
2786 | (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints. | |
2787 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
2788 | (_initialize_ppc_linux_nat): Initialize | |
2789 | to_ranged_break_num_registers. | |
2790 | * target.c (update_current_target): Add comment about | |
2791 | to_ranged_break_num_registers. | |
2792 | (target_ranged_break_num_registers): New function. | |
2793 | * target.h (struct target_ops) <to_ranged_break_num_registers>: | |
2794 | New method. | |
2795 | (target_ranged_break_num_registers): Add function prototype. | |
2796 | * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ... | |
2797 | * utils.c (print_core_address): ... here. | |
2798 | ||
02d20e4a UW |
2799 | 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com> |
2800 | ||
2801 | * breakpoint.c (addr_string_to_sals): Avoid uninitialized | |
2802 | variable compiler warning. | |
2803 | ||
ef23e705 TJB |
2804 | 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com> |
2805 | ||
2806 | * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting | |
2807 | code from here ... | |
2808 | (re_set_breakpoint): ... to here ... | |
2809 | (addr_string_to_sals): ... and here. | |
2810 | ||
311e6ab3 PM |
2811 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
2812 | ||
2813 | * Makefile.in (SFILES): Add missing C sources. | |
2814 | (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers. | |
2815 | Add missing headers. | |
2816 | ||
acd1d99c MF |
2817 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
2818 | ||
2819 | * .gitignore: New file. | |
2820 | ||
66ee2731 MF |
2821 | 2011-03-29 Mike Frysinger <vapier@gentoo.org> |
2822 | ||
2823 | * NEWS: Mention new cfi device simulation. | |
2824 | ||
53832f31 TT |
2825 | 2011-03-29 Tom Tromey <tromey@redhat.com> |
2826 | ||
2827 | * dwarf2read.c (fixup_partial_die): Handle linkage name on | |
2828 | otherwise anonymous types. | |
2829 | (dwarf2_name): Likewise. | |
2830 | * valops.c (value_struct_elt_for_reference): Refine artificial | |
2831 | type logic. Call error if j==-1. | |
2832 | ||
09b58708 JK |
2833 | 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch> |
2834 | ||
2835 | Fix false GCC warning. | |
2836 | * infcall.c (find_function_addr): Initialize funaddr. | |
2837 | ||
6023c606 PM |
2838 | 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr> |
2839 | ||
2840 | Fix mingw compilation with --enable-targets=all. | |
2841 | * remote-mips.c (gdb_usleep.h): Include header. | |
2842 | (mips_enter_debug): Use gdb_usleep instead of sleep. | |
2843 | ||
0e30163f JK |
2844 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2845 | ||
2846 | Support resolution of STT_GNU_IFUNC via breakpoints. | |
2847 | * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and | |
2848 | bp_gnu_ifunc_resolver_return. | |
2849 | (bpstat_what): Rename parameter to bs_head, new variable bs, adjust | |
2850 | the loop. Support bp_gnu_ifunc_resolver and | |
2851 | bp_gnu_ifunc_resolver_return. New comment after the loop. New loop | |
2852 | for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return | |
2853 | breakpoints. | |
2854 | (bptype_string, print_one_breakpoint_location): Support | |
2855 | bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return. | |
2856 | (user_settable_breakpoint): Return true also for | |
2857 | bp_gnu_ifunc_resolver. | |
2858 | (allocate_bp_location): Support bp_gnu_ifunc_resolver and | |
2859 | bp_gnu_ifunc_resolver_return. | |
2860 | (set_breakpoint_location_function): New parameter explicit_loc, | |
2861 | describe it. Call find_pc_partial_function_gnu_ifunc with new | |
2862 | variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if | |
2863 | EXPLICIT_LOC is not set. | |
2864 | (set_raw_breakpoint): Set EXPLICIT_LOC for | |
2865 | set_breakpoint_location_function. | |
2866 | (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of | |
2867 | set_breakpoint_location_function. | |
2868 | (mention): Support bp_gnu_ifunc_resolver and | |
2869 | bp_gnu_ifunc_resolver_return. | |
2870 | (add_location_to_breakpoint): Set EXPLICIT_LOC for | |
2871 | set_breakpoint_location_function. | |
2872 | (update_breakpoint_locations): Remove static. | |
2873 | (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and | |
2874 | bp_gnu_ifunc_resolver_return. | |
2875 | * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and | |
2876 | bp_gnu_ifunc_resolver_return. | |
2877 | (update_breakpoint_locations): New declaration. | |
2878 | * elfread.c: Include gdbthread.h and regcache.h. | |
2879 | (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New | |
2880 | functions. | |
2881 | (elf_gnu_ifunc_fns): Install them. | |
2882 | * minsyms.c (stub_gnu_ifunc_resolver_stop) | |
2883 | (stub_gnu_ifunc_resolver_return_stop): New functions. | |
2884 | (stub_gnu_ifunc_fns): Install them. | |
2885 | * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop | |
2886 | and gnu_ifunc_resolver_return_stop. | |
2887 | (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New. | |
2888 | ||
07be84bf JK |
2889 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2890 | ||
2891 | STT_GNU_IFUNC reader implementation. | |
2892 | * elfread.c: Include gdbtypes.h, value.h and infcall.h. | |
2893 | (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read) | |
2894 | (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache) | |
2895 | (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq) | |
2896 | (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache) | |
2897 | (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name) | |
2898 | (elf_gnu_ifunc_resolve_addr): New. | |
2899 | (elf_symfile_read): Call elf_rel_plt_read. | |
2900 | (elf_gnu_ifunc_fns): New. | |
2901 | (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data. | |
2902 | Install elf_gnu_ifunc_fns. | |
2903 | * infcall.c (find_function_return_type): New function. | |
2904 | (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible. | |
2905 | * minsyms.c (stub_gnu_ifunc_resolve_addr) | |
2906 | (stub_gnu_ifunc_resolve_name): New functions. | |
2907 | (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables. | |
2908 | * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr) | |
2909 | (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New. | |
2910 | ||
300f8e10 JK |
2911 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2912 | ||
2913 | Code cleanup for later STT_GNU_IFUNC support. | |
2914 | * infcall.c (find_function_addr): Remove variable code, use explicit | |
2915 | dereferences for it. Move VALUE_TYPE initialization later. | |
2916 | ||
11c81455 JK |
2917 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2918 | ||
2919 | GDB find_pc_partial_function support for STT_GNU_IFUNC. | |
2920 | * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable. | |
2921 | (clear_pc_function_cache): Clear it. | |
2922 | (find_pc_partial_function): Rename to ... | |
2923 | (find_pc_partial_function_gnu_ifunc): ... this function. New | |
2924 | parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P. | |
2925 | (find_pc_partial_function): New wrapper for this function. | |
2926 | * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration. | |
2927 | ||
0875794a JK |
2928 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2929 | ||
2930 | GDB internal type support for STT_GNU_IFUNC. | |
2931 | * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc. | |
2932 | (elf_symtab_read): Set mst_text_gnu_ifunc for | |
2933 | BSF_GNU_INDIRECT_FUNCTION. | |
2934 | * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC. | |
2935 | * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC, | |
2936 | builtin_func_func, nodebug_text_gnu_ifunc_symbol and | |
2937 | nodebug_got_plt_symbol. | |
2938 | * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC. | |
2939 | (TYPE_GNU_IFUNC): New. | |
2940 | (struct main_type): New field flag_gnu_ifunc. | |
2941 | (struct builtin_type): New field builtin_func_func. | |
2942 | (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and | |
2943 | nodebug_got_plt_symbol. | |
2944 | * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc. | |
2945 | (in_gnu_ifunc_stub): New. | |
2946 | (prim_record_minimal_symbol, find_solib_trampoline_target): Support | |
2947 | mst_text_gnu_ifunc. | |
2948 | * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and | |
2949 | support mst_text_gnu_ifunc. Support mst_slot_got_plt. | |
2950 | * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for | |
2951 | in_gnu_ifunc_stub. | |
2952 | * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc. | |
2953 | * symtab.c (search_symbols): Likewise. | |
2954 | * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc | |
2955 | and mst_slot_got_plt. | |
2956 | (in_gnu_ifunc_stub): New declaration. | |
2957 | ||
d0fb5eae JK |
2958 | 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2959 | ||
2960 | Support a ring of related breakpoints. | |
2961 | * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from | |
2962 | other functions, add gdb_assert. | |
2963 | (update_watchpoint, watchpoint_check): Add gdb_assert. Use | |
2964 | watchpoint_del_at_next_stop. | |
2965 | (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop. | |
2966 | (bpstat_stop_status): Handle ring in related_breakpoint. | |
2967 | (set_raw_breakpoint_without_location): Initialize ring in | |
2968 | related_breakpoint. | |
2969 | (delete_breakpoint): Handle ring in related_breakpoint, use | |
2970 | watchpoint_del_at_next_stop. | |
2971 | (map_breakpoint_numbers): Handle ring in related_breakpoint. | |
2972 | ||
9cded63f TT |
2973 | 2011-03-28 Tom Tromey <tromey@redhat.com> |
2974 | ||
2975 | PR symtab/12441: | |
2976 | * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language | |
2977 | with `language_minimal'. | |
2978 | ||
467d42c4 UW |
2979 | 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org> |
2980 | ||
2981 | * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE | |
2982 | instead of checking for STT_ARM_TFUNC symbol type. | |
2983 | ||
62853458 TT |
2984 | 2011-03-25 Tom Tromey <tromey@redhat.com> |
2985 | ||
2986 | * linespec.c (symbol_found): Restore line-based result for | |
2987 | non-LOC_LABEL symbols. | |
2988 | ||
a7417d46 KT |
2989 | 2011-03-25 Kai Tietz <ktietz@redhat.com> |
2990 | ||
2991 | * tui/tui-source.c (tui_set_source_content): Use filename_cmp | |
2992 | instead of strcmp for comparison. | |
2993 | (tui_source_is_displayed): Likewise. | |
2994 | * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise. | |
2995 | ||
55f1336d TT |
2996 | 2011-03-24 Mark Wielaard <mjw@redhat.com> |
2997 | ||
f33edef8 PP |
2998 | * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in |
2999 | complaint. | |
3000 | (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8. | |
3001 | (find_partial_die_in_comp_unit): Likewise in comment. | |
3002 | (read_attribute_value): Likewise. | |
3003 | (lookup_die_type): Likewise. | |
3004 | (dwarf_form_name): Likewise. | |
3005 | (dump_die_shallow): Likewise. | |
3006 | (follow_die_ref_or_sig): Likewise. | |
55f1336d | 3007 | |
9ef07c8c TT |
3008 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
3009 | ||
3010 | PR breakpoints/11816: | |
3011 | * linespec.c (decode_line_1): Parse `function:label' linespecs. | |
3012 | (decode_compound): Update. | |
3013 | (find_function_symbol): New function. | |
3014 | (decode_dollar): Update. | |
3015 | (decode_label): Add 'function_symbol' parameter. Handle | |
3016 | function-relative labels. | |
3017 | (decode_variable): Update. | |
3018 | (symbol_found): Add 'function_symbol' parameter. Use label's PC, | |
3019 | not its line. Set `special_display' and canonical name for | |
3020 | labels. | |
3021 | ||
56435ebe TT |
3022 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
3023 | ||
3024 | * linespec.h (struct linespec_result) <special_display>: New | |
3025 | field. | |
3026 | * breakpoint.h (struct breakpoint) <display_canonical>: New | |
3027 | field. | |
3028 | * breakpoint.c (print_breakpoint_location): Respect | |
3029 | display_canonical. | |
3030 | (create_breakpoint_sal): Add 'display_canonical' parameter. | |
3031 | (create_breakpoints_sal): Update. | |
3032 | (create_breakpoint): Update. | |
3033 | ||
7efd8fc2 TT |
3034 | 2011-03-24 Tom Tromey <tromey@redhat.com> |
3035 | ||
3036 | * symtab.c (decode_line_spec): Update. | |
3037 | * linespec.c (build_canonical_line_spec): Change type of | |
3038 | 'canonical'. | |
3039 | (decode_line_2, decode_line_1, decode_objc, decode_compound) | |
3040 | (find_method, decode_all_digits, decode_dollar, decode_label) | |
3041 | (symbol_found): Likewise. | |
3042 | (init_linespec_result): New function. | |
3043 | * breakpoint.c (struct captured_parse_breakpoint_args) | |
3044 | <canonical_p>: New field, replaces addr_string_p. | |
3045 | (create_breakpoints_sal): Add 'canonical' parameter, replacing | |
3046 | 'addr_string'. | |
3047 | (parse_breakpoint_sals): Likewise. | |
3048 | (do_captured_parse_breakpoint): Update. | |
3049 | (create_breakpoint): Use struct linespec_result. | |
3050 | (until_break_command): Update. | |
3051 | (breakpoint_re_set_one): Update. | |
3052 | (decode_line_spec_1): Update. | |
3053 | * linespec.h (struct linespec_result): New. | |
3054 | (init_linespec_result): Declare. | |
3055 | ||
788c8b10 PA |
3056 | 2011-03-23 Pedro Alves <pedro@codesourcery.com> |
3057 | ||
3058 | * regcache.c (regcache_raw_read): If the target didn't supply a | |
3059 | given raw register, mark it as unavailable. | |
3060 | ||
0ba1096a KT |
3061 | 2011-03-23 Kai Tietz <ktietz@redhat.com> |
3062 | ||
3063 | * breakpoint.c (clear_command): Use filename_cmp | |
3064 | instead of strcmp for comparison. | |
3065 | * buildsym.c (watch_main_source_file_lossage): Likewise. | |
3066 | (patch_subfile_names): Use IS_DIR_SEPARATOR instead of | |
3067 | checking just for slash. | |
3068 | * dbxread.c (read_dbx_symtab): Use lbasename instead of | |
3069 | strrchr and filename_cmp instead of strcmp for filenames. | |
3070 | (add_old_header_file): Use filename_cmp | |
3071 | instead of strcmp for comparison. | |
3072 | * exec.c (exec_set_section_address): Likewise. | |
3073 | * macrotab.c (macro_lookup_inclusion): Likewise. | |
3074 | (macro_lookup_inclusion): Likewise. | |
3075 | * elfread.c (_initialize_elfread): Likewise. | |
3076 | (elfstab_offset_sections): Likewise. | |
3077 | (elfstab_offset_sections): Use lbasename instead of | |
3078 | strrchr. | |
3079 | * mdebugread.c (parse_partial_symbols): Likewise. | |
3080 | (arse_partial_symbols): Use filename_(n)cmp instead of | |
3081 | str(n)cmp for comparison. | |
3082 | * minsyms.c (lookup_minimal_symbol): Likewise. | |
3083 | * psymtab.c (read_psymtabs_with_filename): Likewise. | |
3084 | * solib.c (solib_read_symbols): Likewise. | |
3085 | (reload_shared_libraries_1): Likewise. | |
3086 | * symmisc.c (maintenance_print_symbols): Likewise. | |
3087 | * symfile.c (separate_debug_file_exists): Likewise. | |
3088 | (reread_symbols): Likewise. | |
3089 | (find_separate_debug_file_by_debuglink): Likewise. | |
3090 | * remote-fileio.c (remote_fileio_func_rename): Likewise. | |
3091 | * source.c (add_path): Likewise. | |
3092 | * symtab.c (filename_seen): Likewise. | |
3093 | (file_matches): Likewise. | |
3094 | (print_symbol_info): Likewise. | |
3095 | (maybe_add_partial_symtab_filename): Likewise. | |
3096 | (make_source_files_completion_list): Likewise. | |
3097 | * xml-syscall.c (init_sysinfo): Likewise. | |
3098 | * windows-nat.c (_initialize_check_for_gdb_ini): Use | |
3099 | IS_DIR_SEPARATOR for checking for trailing path separator. | |
3100 | ||
dd90784c JK |
3101 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
3102 | ||
3103 | * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New | |
3104 | label abort_expression. | |
3105 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle | |
3106 | DWARF_VALUE_OPTIMIZED_OUT. | |
3107 | ||
3167638f JK |
3108 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
3109 | ||
3110 | Code cleanup. | |
3111 | * c-typeprint.c (c_type_print_args): Change parameter show_artificial | |
3112 | to linkage_name. Invert its value. Update the function comment. | |
3113 | (c_type_print_varspec_suffix): Invert it at the caller. | |
3114 | * dwarf2read.c (dwarf2_compute_name): Invert it at the caller. | |
3115 | ||
ce406537 PA |
3116 | 2011-03-22 Pedro Alves <pedro@codesourcery.com> |
3117 | ||
3118 | * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR | |
3119 | errors when reading the `stop_pc'. | |
3120 | * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of | |
3121 | get_frame_pc. | |
3122 | ||
da5d4055 PM |
3123 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
3124 | ||
3125 | * NEWS: Document gdb.Write stream keyword. | |
3126 | ||
29e0eb9c JK |
3127 | 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
3128 | ||
3129 | Revert: | |
3130 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> | |
3131 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
3132 | (dwarf2_add_field): Fix new_field->accessibility for | |
3133 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
3134 | ||
05775840 PM |
3135 | 2011-03-22 Phil Muldoon <pmuldoon@redhat.com> |
3136 | ||
f33edef8 | 3137 | PR python/12183 |
05775840 PM |
3138 | |
3139 | * python/py-function.c (fnpy_call): Treat GdbErrors differently to | |
3140 | other error classes. Do not print stack trace. | |
3141 | ||
a0cb7835 JK |
3142 | 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
3143 | ||
3144 | * dwarf2read.c (producer_is_gxx_lt_4_6): New function. | |
3145 | (dwarf2_add_field): Fix new_field->accessibility for | |
3146 | cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6. | |
3147 | ||
d19f7eee UW |
3148 | 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org> |
3149 | ||
3150 | * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when | |
3151 | encountering a load via a non-SP register. | |
3152 | ||
4a2fbb50 UW |
3153 | 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com> |
3154 | ||
3155 | * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason | |
3156 | field in returned unwinder. | |
3157 | ||
3489610d JB |
3158 | 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
3159 | ||
3160 | * ada-lang.c (replace_operator_with_call): Copy also GDBARCH. | |
3161 | ||
8c1a34e7 JB |
3162 | 2012-03-21 Joel Brobecker <brobecker@adacore.com> |
3163 | ||
3164 | * ada-lang.c (replace_operator_with_call): Use xzalloc instead | |
3165 | of xmalloc. | |
3166 | ||
8fbca658 PA |
3167 | 2012-03-18 Pedro Alves <pedro@codesourcery.com> |
3168 | ||
3169 | * frame.c (frame_unwind_register): Throw an error if unwinding the | |
3170 | register failed. | |
3171 | * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's | |
3172 | an unwind stop reason. | |
3173 | (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE. | |
3174 | * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST, | |
3175 | UNWIND_UNAVAILABLE>: New. | |
3176 | * inline-frame.c (inline_frame_unwind): Install | |
3177 | default_frame_unwind_stop_reason. | |
3178 | * frame-unwind.c: Include "exceptions.h". | |
3179 | (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors. | |
3180 | (default_frame_unwind_stop_reason): New. | |
3181 | * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef. | |
3182 | (default_frame_unwind_stop_reason): Declare. | |
3183 | (struct frame_unwind) <stop_reason>: New function pointer. | |
3184 | ||
3185 | * dummy-frame.c: Install default_frame_unwind_stop_reason. | |
3186 | * dwarf2-frame.c: Include exceptions.h. | |
3187 | (struct dwarf2_frame_cache) <unavailable_retaddr>: New field. | |
3188 | (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when | |
3189 | computing the CFA. If such an error was thrown, set | |
3190 | unavailable_retaddr. | |
3191 | (dwarf2_frame_unwind_stop_reason): New. | |
3192 | (dwarf2_frame_this_id): Don't build a frame id if the CFA was | |
3193 | unavailable. | |
3194 | (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason. | |
3195 | (dwarf2_signal_frame_unwind): Ditto. | |
3196 | ||
3197 | * amd64-tdep.c: Include "exceptions.h". | |
3198 | (struct amd64_frame_cache): New field "base_p". | |
3199 | (amd64_init_frame_cache): Clear it. | |
3200 | (amd64_frame_cache_1): New, factored out from amd64_frame_cache. | |
3201 | Avoid reading registers with functions that throw if the register | |
3202 | is not necessary to compute the frame base. | |
3203 | (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
3204 | swallowing NOT_AVAILABLE_ERROR. | |
3205 | (amd64_frame_unwind_stop_reason): New. | |
3206 | (amd64_frame_this_id): Don't build a frame id if the frame base | |
3207 | was unavailable. | |
3208 | (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason. | |
3209 | (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
3210 | base_p if the frame base was computable. | |
3211 | (amd64_sigtramp_frame_unwind_stop_reason): New. | |
3212 | (amd64_sigtramp_frame_this_id): Don't build a frame id if the | |
3213 | frame base was unavailable. | |
3214 | (amd64_sigtramp_frame_unwind): Install | |
3215 | amd64_sigtramp_frame_unwind_stop_reason. | |
3216 | (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
3217 | base_p if the frame base was computable. | |
3218 | (amd64_epilogue_frame_unwind_stop_reason): New. | |
3219 | (amd64_epilogue_frame_this_id): Don't build a frame id if the | |
3220 | frame base was unavailable. | |
3221 | (amd64_epilogue_frame_unwind): Install | |
3222 | amd64_epilogue_frame_unwind_stop_reason. | |
3223 | * i386-tdep.c: Include "exceptions.h". | |
3224 | (struct i386_frame_cache): New field "base_p". | |
3225 | (i386_init_frame_cache): Clear it. | |
3226 | (i386_frame_cache_1): New, factored out from amd64_frame_cache. | |
3227 | Avoid reading registers with functions that throw if the register | |
3228 | is not necessary to compute the frame base. | |
3229 | (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and | |
3230 | swallowing NOT_AVAILABLE_ERROR. | |
3231 | (i386_frame_unwind_stop_reason): New. | |
3232 | (i386_frame_this_id): Don't build a frame id if the frame base was | |
3233 | unavailable. | |
3234 | (i386_frame_prev_register): Handle unavailable SP. | |
3235 | (i386_frame_unwind): Install i386_frame_unwind_stop_reason. | |
3236 | (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
3237 | base_p if the frame base was computable. | |
3238 | (i386_epilogue_frame_unwind_stop_reason): New. | |
3239 | (i386_epilogue_frame_this_id): Don't build a frame id if the frame | |
3240 | base was unavailable. | |
3241 | (i386_epilogue_frame_unwind): Install | |
3242 | i386_epilogue_frame_unwind_stop_reason. | |
3243 | (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set | |
3244 | base_p if the frame base was computable. | |
3245 | (i386_sigtramp_frame_unwind_stop_reason): New. | |
3246 | (i386_sigtramp_frame_this_id): Don't build a frame id if the frame | |
3247 | base was unavailable. | |
3248 | (i386_sigtramp_frame_unwind): Install | |
3249 | i386_sigtramp_frame_unwind_stop_reason. | |
3250 | * sentinel-frame.c (sentinel_frame_prev_register): Use the value | |
3251 | type's size, not the register's. | |
3252 | (sentinel_frame_unwind): Install default_frame_unwind_stop_reason. | |
3253 | ||
3254 | * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install | |
3255 | default_frame_unwind_stop_reason. | |
3256 | * alpha-tdep.c (alpha_sigtramp_frame_unwind) | |
3257 | (alpha_heuristic_frame_unwind): Ditto. | |
3258 | * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto. | |
3259 | * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto. | |
3260 | * avr-tdep.c (avr_frame_unwind): Ditto. | |
3261 | * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind): | |
3262 | Ditto. | |
3263 | * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto. | |
3264 | * frv-tdep.c (frv_frame_unwind): Ditto. | |
3265 | * h8300-tdep.c (h8300_frame_unwind): Ditto. | |
3266 | * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto. | |
3267 | * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto. | |
3268 | * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind) | |
3269 | (hppa_stub_frame_unwind): Ditto. | |
3270 | * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto. | |
3271 | * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind) | |
3272 | (ia64_libunwind_frame_unwind) | |
3273 | (ia64_libunwind_sigtramp_frame_unwind): Ditto. | |
3274 | * iq2000-tdep.c (iq2000_frame_unwind): Ditto. | |
3275 | * lm32-tdep.c (lm32_frame_unwind): Ditto. | |
3276 | * m32c-tdep.c (m32c_unwind): Ditto. | |
3277 | * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto. | |
3278 | * m32r-tdep.c (m32r_frame_unwind): Ditto. | |
3279 | * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto. | |
3280 | * m68k-tdep.c (m68k_frame_unwind): Ditto. | |
3281 | * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto. | |
3282 | * m88k-tdep.c (m88k_frame_unwind): Ditto. | |
3283 | * mep-tdep.c (mep_frame_unwind): Ditto. | |
3284 | * microblaze-tdep.c (microblaze_frame_unwind): Ditto. | |
3285 | * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind) | |
3286 | (mips_stub_frame_unwind): Ditto. | |
3287 | * mn10300-tdep.c (mn10300_frame_unwind): Ditto. | |
3288 | * moxie-tdep.c (moxie_frame_unwind): Ditto. | |
3289 | * mt-tdep.c (mt_frame_unwind): Ditto. | |
3290 | * ppc-linux-tdep.c (ppu2spu_unwind): Ditto. | |
3291 | * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto. | |
3292 | * rs6000-tdep.c (rs6000_frame_unwind): Ditto. | |
3293 | * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind) | |
3294 | (s390_sigtramp_frame_unwind): Ditto. | |
3295 | * score-tdep.c (score_prologue_unwind): Ditto. | |
3296 | * sh-tdep.c (sh_frame_unwind): Ditto. | |
3297 | * sh64-tdep.c (sh64_frame_unwind): Ditto. | |
3298 | * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto. | |
3299 | * sparc-tdep.c (sparc32_frame_unwind): Ditto. | |
3300 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto. | |
3301 | * sparc64-tdep.c (sparc64_frame_unwind): Ditto. | |
3302 | * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto. | |
3303 | * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto. | |
3304 | * sparc64obsd-tdep.c (sparc64obsd_frame_unwind) | |
3305 | (sparc64obsd_trapframe_unwind): Ditto. | |
3306 | * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto. | |
3307 | * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto. | |
3308 | * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto. | |
3309 | * v850-tdep.c (v850_frame_unwind): Ditto. | |
3310 | * vax-tdep.c (vax_frame_unwind): Ditto. | |
3311 | * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto. | |
3312 | * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto. | |
3313 | * xtensa-tdep.c (xtensa_unwind): Ditto. | |
3314 | ||
f23d1b92 PA |
3315 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
3316 | ||
3317 | * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume | |
3318 | there's always a frame. Use get_frame_pc_if_available instead of | |
3319 | get_frame_pc, and if there's no PC available, don't look up a | |
3320 | symtab. | |
3321 | ||
1d4f5741 PA |
3322 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
3323 | ||
3324 | * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle | |
3325 | unavailable PC. | |
3326 | ||
dba09041 PA |
3327 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
3328 | ||
3329 | * tracepoint.c (set_traceframe_context): Handle unavailable PC | |
3330 | gracefully. | |
3331 | ||
9a26e44c PA |
3332 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
3333 | ||
3334 | * frame.h (frame_unwind_caller_pc_if_available): Declare. | |
3335 | * frame.c (frame_unwind_caller_pc_if_available): New. | |
3336 | * stack.c (frame_info): Handle unavailable PC. | |
3337 | ||
3338 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
3339 | ||
3340 | * frame.c (frame_unwind_pc): Rename to ... | |
3341 | (frame_unwind_pc_if_available): ... this. New `pc' output | |
3342 | parameter. Change return type to int. Gracefully handle | |
3343 | gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that | |
3344 | happened, or 1 otherwise. | |
3345 | (frame_unwind_pc): Reimplement on top of | |
3346 | frame_unwind_pc_if_available. | |
3347 | (get_frame_func): Rename to ... | |
3348 | (get_frame_func_if_available): New `pc' output parameter. Change | |
3349 | return type to int. Gracefully handle the PC not being available. | |
3350 | (get_frame_func): Reimplement on top of | |
3351 | get_frame_func_if_available. | |
3352 | (select_frame): Handle the PC being unavailable. | |
3353 | (get_prev_frame): Handle the PC being unavailable. | |
3354 | (get_frame_pc_if_available): New. | |
3355 | (get_frame_address_in_block_if_available): New. | |
3356 | (find_frame_sal): Handle the frame PC not being available. | |
3357 | * frame.h (get_frame_pc_if_available): Declare. | |
3358 | (get_frame_address_in_block_if_available): Declare. | |
3359 | (get_frame_func_if_available): Declare. | |
3360 | * stack.c (print_frame_info): Handle the PC being unavailable. | |
3361 | (find_frame_funname): Ditto. | |
3362 | (print_frame): Handle the PC being unavailable. | |
3363 | (get_frame_language): Ditto. | |
3364 | * blockframe.c (get_frame_block): Ditto. | |
3365 | * macroscope.c (default_macro_scope): Ditto. | |
3366 | * tui/tui-stack.c (tui_show_frame_info): Ditto. | |
3367 | ||
3368 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
3369 | ||
3370 | * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch | |
3371 | NOT_AVAILABLE_ERROR when evaluating the location expression. | |
3372 | ||
3373 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> | |
3374 | ||
3375 | * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes | |
3376 | returning that the register piece is unavailable/optimized out. | |
3377 | (write_pieced_value): Handle get_frame_register_bytes returning | |
3378 | that the register piece is unavailable/optimized out when doing a | |
3379 | read-modify write of a bitfield. | |
3380 | * findvar.c (value_from_register): Handle get_frame_register_bytes | |
3381 | returning that the register piece is unavailable/optimized out. | |
3382 | * frame.c (get_frame_register_bytes): New parameters `optimizedp' | |
3383 | and `unavailablep'. Throw error on bad debug info. Use | |
3384 | frame_register instead of frame_register_read, to fill in the new | |
3385 | arguments. | |
3386 | * frame.h (get_frame_register_bytes): New parameters `optimizedp' | |
3387 | and `unavailablep'. | |
3388 | * valops.c: (value_assign): Adjust, and handle | |
3389 | get_frame_register_bytes failing. | |
3390 | * spu-tdep.c: Include exceptions.h. | |
3391 | (spu_software_single_step): Adjust, and handle | |
3392 | get_frame_register_bytes failing. | |
3393 | (spu_get_longjmp_target): Ditto. | |
3394 | * gdbarch.sh (register_to_value): Change to return int. New | |
3395 | parameters `optimizedp' and `unavailablep'. | |
3396 | * gdbarch.h, gdbarch.c: Regenerate. | |
3397 | * i386-tdep.c (i386_register_to_value): Adjust to new | |
3398 | gdbarch_register_to_value interface. | |
3399 | * i387-tdep.c (i387_register_to_value): Ditto. | |
3400 | * i387-tdep.h (i387_register_to_value): Ditto. | |
3401 | * alpha-tdep.c (alpha_register_to_value): Ditto. | |
3402 | * ia64-tdep.c (ia64_register_to_value): Ditto. | |
3403 | * m68k-tdep.c (m68k_register_to_value): Ditto. | |
3404 | * mips-tdep.c (mips_register_to_value): Ditto. | |
3405 | * rs6000-tdep.c (rs6000_register_to_value): Ditto. | |
3406 | ||
0fdb4f18 PA |
3407 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
3408 | ||
3409 | * findvar.c (value_of_register): Mark the value as unavailable, if | |
3410 | the register is unavailable. | |
3411 | * frame.h (frame_register_unwind): New `unavailablep' parameter. | |
3412 | (frame_register): New `unavailablep' parameter. | |
3413 | (frame_register_read): Update comment. | |
3414 | * frame.c (frame_register_unwind): New `unavailablep' parameter. | |
3415 | Set it if the register is unavailable. If the register is | |
3416 | unavailable, clear the output buffer. | |
3417 | (frame_register): New `unavailablep' parameter. Pass it down. | |
3418 | (frame_unwind_register): Adjust. | |
3419 | (put_frame_register): Adjust. | |
3420 | (frame_register_read): Adjust. Also return false if the register | |
3421 | is not available. | |
3422 | (frame_register_unwind_location): Adjust. | |
3423 | * sentinel-frame.c (sentinel_frame_prev_register): If the register | |
3424 | is unavailable, mark the value accordingly. | |
3425 | * stack.c (frame_info): Handle unavailable registers. | |
3426 | ||
e69aa73e PA |
3427 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
3428 | ||
3429 | * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and | |
3430 | simplify, using regcache_cooked_read. | |
3431 | ||
05d1431c PA |
3432 | 2011-03-18 Pedro Alves <pedro@codesourcery.com> |
3433 | ||
3434 | * regcache.h (regcache_raw_read, regcache_raw_read_signed) | |
3435 | (regcache_raw_read_unsigned, regcache_raw_read_signed) | |
3436 | (regcache_raw_read_unsigned, regcache_raw_read_part) | |
3437 | (regcache_cooked_read, regcache_cooked_read_signed) | |
3438 | (regcache_cooked_read_unsigned, regcache_cooked_read_part) | |
3439 | (regcache_cooked_read_ftype): Change return to enum | |
3440 | register_status. | |
3441 | * regcache.c: Include exceptions.h | |
3442 | (regcache_save): Adjust to handle REG_UNAVAILABLE registers. | |
3443 | (do_cooked_read): Change return to enum register_status. Always | |
3444 | forward to regcache_cooked_read. | |
3445 | (regcache_raw_read): Change return to enum register_status. If | |
3446 | the register is not REG_VALID, memset the buffer. Return the | |
3447 | register's status. | |
3448 | (regcache_raw_read_signed): Handle non-REG_VALID registers and | |
3449 | return the register's status. | |
3450 | (regcache_raw_read_unsigned): Ditto. | |
3451 | (regcache_cooked_read): Change return to enum register_status. | |
3452 | Assert that with read-only regcaches, the register's status must | |
3453 | be known. If the regcache is read-only, and the register is not | |
3454 | REG_VALID, memset the buffer. Return the register's status. | |
3455 | (regcache_cooked_read_signed): Change return to enum | |
3456 | register_status. Handle non-REG_VALID registers and return the | |
3457 | register's status. | |
3458 | (regcache_cooked_read_unsigned): Change return to enum | |
3459 | register_status. Handle non-REG_VALID registers and return the | |
3460 | register's status. | |
3461 | (regcache_xfer_part, regcache_raw_read_part) | |
3462 | (regcache_cooked_read_part): Change return to enum | |
3463 | register_status. Return the register's status. | |
3464 | (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is | |
3465 | unavailable. | |
3466 | (regcache_dump): Handle unavailable cooked registers. | |
3467 | * frame.c (do_frame_register_read): Adjust interface to match | |
3468 | regcache_cooked_read_ftype. | |
3469 | * gdbarch.sh (pseudo_register_read): Change return to enum | |
3470 | register_status. | |
3471 | * gdbarch.h, gdbarch.c: Regenerate. | |
3472 | ||
3473 | * i386-tdep.h (i386_pseudo_register_read): Change return to enum | |
3474 | register_status. | |
3475 | * i386-tdep.c (i386_pseudo_register_read): Change return to enum | |
3476 | register_status. If reading a raw register indicates the raw | |
3477 | register is not valid, return the raw register's status, | |
3478 | otherwise, return REG_VALID. | |
3479 | * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum | |
3480 | register_status. Handle non-REG_VALID raw registers and return | |
3481 | the register's status. | |
3482 | * arm-tdep.c (arm_neon_quad_read) | |
3483 | (arm_pseudo_read): Change return to enum register_status. Handle | |
3484 | non-REG_VALID raw registers and return the register's status. | |
3485 | * avr-tdep.c (avr_pseudo_register_read): Ditto. | |
3486 | * frv-tdep.c (frv_pseudo_register_read): Ditto. | |
3487 | * h8300-tdep.c (h8300_pseudo_register_read): Ditto. | |
3488 | * hppa-tdep.c (hppa_pseudo_register_read): Ditto. | |
3489 | * m32c-tdep.c (m32c_move_reg_t): Change return to enum | |
3490 | register_status. | |
3491 | (m32c_raw_read, m32c_raw_write, m32c_banked_read) | |
3492 | (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read) | |
3493 | (m32c_part_write, m32c_cat_read, m32c_cat_write) | |
3494 | (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write) | |
3495 | (m32c_pseudo_register_read): Change return to enum | |
3496 | register_status. Adjust. | |
3497 | * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to | |
3498 | enum register_status. Return the register's status. | |
3499 | * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum | |
3500 | register_status. Return the register's status. | |
3501 | (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto. | |
3502 | * mips-tdep.c (mips_pseudo_register_read): Ditto. | |
3503 | * mt-tdep.c (mt_pseudo_register_read): Ditto. | |
3504 | * rs6000-tdep.c (move_ev_register_func): New typedef. | |
3505 | (e500_move_ev_register): Use it. Change return to enum | |
3506 | register_status. Return the register's status. | |
3507 | (do_regcache_raw_read): New function. | |
3508 | (do_regcache_raw_write): New function. | |
3509 | (e500_pseudo_register_read): Change return to enum | |
3510 | register_status. Return the register's status. Use | |
3511 | do_regcache_raw_read. | |
3512 | (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write. | |
3513 | (dfp_pseudo_register_read): Change return to enum register_status. | |
3514 | Return the register's status. | |
3515 | (vsx_pseudo_register_read): Ditto. | |
3516 | (efpr_pseudo_register_read): Ditto. | |
3517 | (rs6000_pseudo_register_read): Ditto. | |
3518 | * s390-tdep.c (s390_pseudo_register_read): Change return to enum | |
3519 | register_status. Return the register's status. | |
3520 | * sh64-tdep.c (pseudo_register_read_portions): New function. | |
3521 | (sh64_pseudo_register_read): Change return to enum | |
3522 | register_status. Use pseudo_register_read_portions. Return the | |
3523 | register's status. | |
3524 | * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum | |
3525 | register_status. Return the register's status. | |
3526 | * sh-tdep.c (pseudo_register_read_portions): New function. | |
3527 | (sh_pseudo_register_read): Change return to enum register_status. | |
3528 | Use pseudo_register_read_portions. Return the register's status. | |
3529 | * sparc-tdep.c (sparc32_pseudo_register_read): Change return to | |
3530 | enum register_status. Return the register's status. | |
3531 | * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto. | |
3532 | * spu-tdep.c (spu_pseudo_register_read_spu) | |
3533 | (spu_pseudo_register_read): Ditto. | |
3534 | * xtensa-tdep.c (xtensa_register_read_masked) | |
3535 | (xtensa_pseudo_register_read): Ditto. | |
3536 | * bfin-tdep.c (bfin_pseudo_register_read): Ditto. | |
3537 | ||
e10abd8f PM |
3538 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
3539 | ||
3540 | * python/py-value.c (valpy_getitem): Fix formatting of error function | |
3541 | call. | |
3542 | ||
7ea6d463 PM |
3543 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
3544 | ||
3545 | ARI fixes: Add missing internationalization markups throughout | |
3546 | C source files. | |
3547 | * darwin-nat-info.c: Ditto. | |
3548 | * record.c: Ditto. | |
3549 | * remote.c: Ditto. | |
3550 | * mi/mi-main.c: Ditto. | |
3551 | ||
001083c6 PM |
3552 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
3553 | ||
3554 | ARI fixes: Add missing internationalization markups throughout | |
3555 | yacc files. | |
3556 | * c-exp.y: Ditto. | |
3557 | * cp-name-parser.y: Ditto. | |
3558 | * f-exp.y: Ditto. | |
3559 | * m2-exp.y: Ditto. | |
3560 | * objc-exp.y: Ditto. | |
3561 | * p-exp.y: Ditto. | |
3562 | ||
4f1cdeec PM |
3563 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
3564 | ||
3565 | ARI fixes: Messages should have no trailing new lines. | |
3566 | * darwin-nat.c (mach_check_error): Remove trailing new line from | |
3567 | warning function call message. | |
3568 | * record.c (bfdcore_read): Idem for error call. | |
3569 | ||
28e698f1 PM |
3570 | 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr> |
3571 | ||
3572 | * common/signals.c (target_signal_from_host): Add _ markup to error | |
3573 | function call message. | |
3574 | (target_signal_to_host): Add _ markup and remove trailing new line | |
3575 | from warning call message. | |
3576 | (target_signal_from_command): Add _ markup to error function call | |
3577 | message. | |
3578 | ||
99c3dc11 PM |
3579 | 2011-03-18 Phil Muldoon <pmuldoon@redhat.com> |
3580 | ||
f33edef8 | 3581 | PR python/12149 |
99c3dc11 PM |
3582 | |
3583 | * python/python.c (gdbpy_write): Accept a stream argument and | |
3584 | operate to the appropriate stream. | |
3585 | (gdbpy_flush): Likewise. | |
3586 | (_initialize_python): Add stream constants. | |
3587 | (finish_python_initialization): Add GdbOutputErrorFile class. | |
3588 | ||
c20800be KY |
3589 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
3590 | ||
3591 | * MAINTAINERS: Add myself as a write-after-approval maintainer. | |
3592 | ||
f4a1794a KY |
3593 | 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
3594 | ||
3595 | * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments | |
f33edef8 PP |
3596 | to store_signed_integer. Add debug message when relocating CALL |
3597 | instructions. Fix formatting of debug message. | |
3598 | * i386-tdep.c (i386_relocate_instruction): Ditto. | |
f4a1794a | 3599 | |
d4862372 JB |
3600 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
3601 | ||
3602 | * target.h (struct target_ops): Remove to_lookup_symbol field. | |
3603 | (target_lookup_symbol): Delete macro. | |
3604 | * target.c (nosymbol, debug_to_lookup_symbol): Delete. | |
3605 | (update_current_target, setup_target_debug): Remove handling | |
3606 | of to_lookup_symbol target_ops field. | |
3607 | * ada-tasks.c (get_known_tasks_addr): Remove use of | |
3608 | target_lookup_symbol. | |
3609 | * coffread.c (coff_symtab_read): Likewise. | |
3610 | * dbxread.c (read_dbx_symtab): Ditto. | |
3611 | ||
d645e32e JB |
3612 | 2011-03-17 Joel Brobecker <brobecker@gnat.com> |
3613 | ||
3614 | PR gdb/12116: | |
3615 | * configure.ac: Add getthrds declaration check. | |
3616 | * configure, config.in: Regenerate. | |
3617 | * aix-thread.c (getthrds): Declare only if not already declared | |
3618 | in procinfo.h. More declaration out of get_signaled_thread to | |
3619 | global scope. | |
3620 | ||
29703da4 PM |
3621 | 2011-03-17 Phil Muldoon <pmuldoon@redhat.com> |
3622 | ||
3623 | * python/py-symtab.c: Populate symtab_object_methods, | |
3624 | sal_object_methods. | |
3625 | (stpy_is_valid): New function. | |
3626 | (salpy_is_valid): Ditto. | |
3627 | * python/py-symbol.c: Declare symbol_object_methods. Populate. | |
3628 | (sympy_is_valid): New function. | |
3629 | * python/py-objfile.c: Declare objfile_object_methods. Populate. | |
3630 | (objfpy_is_valid): New function. | |
3631 | * python/py-inferior.c: Populate inferior_object_methods. | |
3632 | (infpy_is_valid): New function. | |
3633 | * python/py-infthread.c: Populate thread_object_methods. | |
3634 | (thpy_is_valid): New function. | |
3635 | * python/py-block.c: Declare block_object_methods. Populate. Declare | |
3636 | block_iterator_object_methods. Populate. | |
3637 | (blpy_is_valid): New function. | |
3638 | (blpy_iter_is_valid): Ditto. | |
3639 | ||
c00f8484 KS |
3640 | 2011-03-16 Keith Seitz <keiths@redhat.com> |
3641 | ||
3642 | * linespec.c (find_methods): Canonicalize NAME before looking | |
3643 | up the symbol. | |
3644 | (name_end): New function. | |
3645 | (keep_name_info): New function. | |
3646 | (decode_line_1): Use keep_name_info. | |
3647 | (decode_compound): Likewise. | |
3648 | * cli/cli-utils.h (remove_trailing_whitespace): New function. | |
3649 | * cli/cli-utils.c (remove_trailing_whitespace): Likewise. | |
3650 | ||
3651 | PR c++/12273 | |
3652 | * linespec.c (locate_first_half): Keep overload information, too. | |
3653 | (decode_compound): Use a string to represent break characters | |
3654 | to escape the loop. | |
3655 | If P points to a break character, do not increment it. | |
3656 | For C++ and Java, keep overload information and relevant keywords. | |
3657 | If we cannot find a symbol, search the minimal symbols. | |
3658 | ||
3659 | PR c++/11734 | |
3660 | * linespec.c (decode_compound): Rename SAVED_ARG to | |
3661 | THE_REAL_SAVED_ARG. | |
3662 | Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip | |
3663 | single-quotes. | |
3664 | Pass a valid block to lookup_symbol. | |
3665 | (lookup_prefix_sym): Likewise. | |
3666 | (find_method): Construct search name based on SYM_CLASS instead | |
3667 | of SAVED_ARG. | |
3668 | * psymtab.c (lookup_partial_symbol): Add language parameter. | |
3669 | (lookup_symbol_aux_psymtabs): Likewise. | |
3670 | Don't assume that the psymtab we found was the right one. Search | |
3671 | for the desired symbol in the symtab to be certain. | |
3672 | (psymtab_search_name): New function. | |
3673 | (lookup_partial_symbol): Use psymtab_search_name. | |
3674 | Add language parameter. | |
3675 | (read_symtabs_for_function): Add language parameter and pass to | |
3676 | lookup_partial_symbol. | |
3677 | (find_symbol_file_from_partial): Likewise. | |
3678 | ||
c91513d8 PP |
3679 | 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com> |
3680 | ||
3681 | PR gdb/12528 | |
3682 | * dwarf2read.c (noop_record_line): New function. | |
3683 | (dwarf_decode_lines): Ignore line tables for GCd functions. | |
3684 | ||
b37520b6 PM |
3685 | 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr> |
3686 | ||
3687 | Fix ARI warnings about new lines at the end of messages, which | |
3688 | are unneeded as there is a new line added at the end of the message | |
3689 | automatically. | |
3690 | * darwin-nat.c (darwin_stop_inferior): Ditto. | |
3691 | * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto. | |
3692 | * dfp.c (decimal_to_number): Ditto. | |
3693 | * exec.c (print_section_info): Ditto. | |
3694 | * i386-darwin-nat.c (darwin_set_sstep): Ditto. | |
3695 | * osdata.c (get_osdata): Ditto. | |
3696 | * record.c (bfdcore_write): Ditto. | |
3697 | * remote-mips.c (mips_readchar): Ditto. | |
3698 | * remote.c (read_ptid): Ditto. | |
3699 | * ser-mingw.c (ser_windows_raw): Ditto. | |
3700 | * tracepoint.c (add_local_symbols): Ditto. | |
3701 | * windows-nat.c (fake_create_process): Ditto. | |
3702 | ||
b08ee6a2 TT |
3703 | 2011-03-16 Tom Tromey <tromey@redhat.com> |
3704 | ||
3705 | * tracepoint.c (stop_tracing): Don't declare. | |
3706 | * event-top.c (after_char_processing_hook): Add `(void)'. | |
3707 | ||
9a6f1302 PM |
3708 | 2011-03-16 Phil Muldoon <pmuldoon@redhat.com> |
3709 | ||
3710 | * NEWS: Add Parameter sub-classing description. | |
3711 | ||
7ceb86b1 KT |
3712 | 2011-03-16 Kai Tietz <ktietz@redhat.com> |
3713 | ||
3714 | * MAINTAINERS: Update my e-mail address. | |
3715 | ||
efeff6cf AT |
3716 | 2011-03-15 Andreas Tobler <andreast@fgznet.ch> |
3717 | ||
3718 | * MAINTAINERS: Add myself for write after approval privileges. | |
3719 | ||
681c238c MS |
3720 | 2011-03-15 Michael Snyder <msnyder@vmware.com> |
3721 | ||
f3df5b08 MS |
3722 | * frame.c (find_frame_sal): Assert sym is not null. |
3723 | ||
13f6513c MS |
3724 | * dbxread.c (process_one_symbol): Assert 'name' is not null. |
3725 | ||
50412521 MS |
3726 | * objc-lang.c (selectors_info): Check strchr for null result. |
3727 | ||
681c238c MS |
3728 | * stabsread.c (define_symbol): Guard against bad stabstring input. |
3729 | ||
6ced1581 PM |
3730 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
3731 | ||
3732 | Remove trailing spaces and tabulations from pascal language | |
3733 | support sources. | |
3734 | p-exp.y: Ditto. | |
3735 | p-lang.c: Ditto. | |
3736 | p-lang.h: Ditto. | |
3737 | p-valprint.c: Ditto. | |
3738 | ||
9373cf26 JK |
3739 | 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
3740 | ||
3741 | * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher | |
3742 | than LOW. Comment it. | |
3743 | (read_partial_die): Call complaint for inappropriate zero LOWPC or | |
3744 | HIGHPC not strictly higher than LOWPC. | |
3745 | ||
9a1edae6 PM |
3746 | 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr> |
3747 | ||
3748 | Fix formatting of function declarations returning a pointer in | |
3749 | previous commit. | |
3750 | * varobj.c (varobj_add_child): Ditto. | |
3751 | * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto. | |
3752 | * inferior.h (get_displaced_step_closure_by_addr): Ditto. | |
3753 | ||
24e9cda0 UW |
3754 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> |
3755 | ||
3756 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support | |
3757 | for the "generic" vector ABI used with GCC 4.3 and later. | |
3758 | (ppc64_sysv_abi_return_value): Likewise. | |
3759 | ||
3760 | 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com> | |
81b4675a UW |
3761 | |
3762 | * infcall.c (call_function_by_hand): Function return value is | |
3763 | always a non_lval, even when using struct_return. | |
3764 | ||
c9174737 PA |
3765 | 2011-03-15 Pedro Alves <pedro@codesourcery.com> |
3766 | ||
3767 | * printcmd.c (ALL_DISPLAYS_SAFE): New. | |
3768 | (map_display_numbers): New. | |
3769 | (do_delete_display): New. | |
3770 | (undisplay_command): Use map_display_numbers. | |
3771 | (do_enable_disable_display): New. | |
3772 | (enable_disable_display_command): New function. | |
3773 | (enable_display): Delete. | |
3774 | (enable_display_command): New. | |
3775 | (disable_display_command): Reimplement. | |
3776 | (_initialize_printcmd): Adjust "enable display" command to use | |
3777 | `enable_display_command' as callback. | |
3778 | ||
350c6c65 PM |
3779 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
3780 | ||
3781 | * NEWS: Add Python breakpoint 'stop' operation. | |
3782 | ||
824446ad PM |
3783 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
3784 | ||
3785 | * NEWS: Delete duplicate entry. Fix typo. | |
3786 | ||
2021ad3a PM |
3787 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
3788 | ||
3789 | Fix ARI warning about function names in first column. | |
3790 | Put prototype declaration on same line as return type. | |
3791 | * objc-exp.y: Ditto. | |
3792 | * p-exp.y: Ditto. | |
3793 | * python/py-stopevent.h: Ditto. | |
3794 | For long function names, split parameters to | |
3795 | allow function name on same line as return type. | |
3796 | * solib-pa64.c: Ditto. | |
3797 | * varobj.c: Ditto. | |
3798 | * varobj.h: Ditto. | |
3799 | For long function declaration, use single line. | |
3800 | * hppa-tdep.h: Ditto. | |
3801 | * inferior.h: Ditto. | |
3802 | ||
7371cf6d PM |
3803 | 2011-03-14 Phil Muldoon <pmuldoon@redhat.com> |
3804 | ||
3805 | * python/python.h: Declare gdbpy_should_stop and | |
3806 | gdbpy_breakpoint_has_py_cond. | |
3807 | * python/python.c: Add python.h to includes. Remove python.h from | |
3808 | HAVE_PYTHON definition | |
3809 | (gdbpy_should_stop): New dummy function. | |
3810 | (gdbpy_breakpoint_has_py_cond): New dummy function. | |
3811 | * python/py-breakpoint.c (bppy_init): Rewrite to allow | |
3812 | sub-classing capabilities. | |
3813 | (gdbpy_should_stop): New function. | |
3814 | (gdbpy_breakpoint_has_py_cond): New function. | |
3815 | (local_setattro): New function. | |
3816 | * breakpoint.c (condition_command): Add check for Python 'stop' | |
3817 | operation. | |
3818 | (bpstat_check_breakpoint_conditions): Execute Python 'stop' | |
3819 | operation function as part of stop/continue tests. | |
3820 | ||
37b50a69 TT |
3821 | 2011-03-14 Tom Tromey <tromey@redhat.com> |
3822 | ||
3823 | PR gdb/12576: | |
3824 | * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'. | |
3825 | (needs_frame_dwarf_call): Likewise. | |
3826 | ||
eeae04df PM |
3827 | 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr> |
3828 | ||
3829 | Fix ARI warning about functions without parameters that do not | |
3830 | use (void). | |
3831 | * breakpoint.c (all_tracepoints): Replace () by (void). | |
3832 | * f-exp.y (match_string_literal): Ditto. | |
3833 | (yylex): Ditto. | |
3834 | * m2-exp.y (yylex): Ditto. | |
3835 | * mep-tdep.c (current_me_module): Ditto. | |
3836 | (current_options): Ditto. | |
3837 | (current_cop_data_bus_width): Ditto. | |
3838 | (current_cr_names): Ditto. | |
3839 | (current_cr_is_float): Ditto. | |
3840 | (current_ccr_names): Ditto. | |
3841 | * objc-exp.y (yylex): Ditto. | |
3842 | * p-exp.y (yylex): Ditto. | |
3843 | * remote.c (send_interrupt_sequence): Ditto. | |
3844 | * tracepoint.c (current_trace_status): Ditto. | |
3845 | * python/py-evts.c (gdbpy_initialize_py_events): Ditto. | |
3846 | * python/py-prettyprint.c (push_dummy_python_frame): Ditto. | |
3847 | ||
6dc3565d MS |
3848 | 2011-03-11 Michael Snyder <msnyder@vmware.com> |
3849 | ||
1427fe5e MS |
3850 | * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define. |
3851 | * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS. | |
3852 | (lookup_cmd): Test for CMD_LIST_AMBIGUOUS. | |
3853 | * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS. | |
3854 | * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS. | |
3855 | ||
60bc018f MS |
3856 | * event-loop-c (delete_async_signal_handler): Assert prev_ptr. |
3857 | (delete_async_event_handler): Ditto. | |
3858 | ||
f3be5b64 MS |
3859 | * python/py-breakpoint.c (bppy_set_condition): Stop memory leak. |
3860 | ||
4c2d5724 MS |
3861 | * python/py-breakpoint.c (bppy_get_commands): Fix memory leak. |
3862 | ||
6dc3565d MS |
3863 | * top.c (set_verbose): Assert showcmd was found. |
3864 | ||
4e6ca6d5 MG |
3865 | 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com> |
3866 | ||
3867 | * xtensa-tdep.c (warning_once): Correct style issues. | |
3868 | ||
815a83e4 YQ |
3869 | 2011-03-11 Yao Qi <yao@codesourcery.com> |
3870 | ||
3871 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements. | |
3872 | ||
f2eb0bc8 AS |
3873 | 2011-03-11 Andreas Schwab <schwab@redhat.com> |
3874 | ||
3875 | * common/aclocal.m4: Remove. | |
3876 | ||
b801de47 MG |
3877 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
3878 | ||
3879 | * xtensa-tdep.c (windowing_enabled): Remove inline attribute. | |
3880 | (xtensa_write_register, xtensa_read_register): Likewise. | |
3881 | (xtensa_hextochar): Removed. | |
3882 | (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code. | |
3883 | ||
dbab50de MG |
3884 | 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com> |
3885 | ||
3886 | * xtensa-tdep.c (xtensa_c0reg_t): Update comments. | |
c2a6b390 | 3887 | (xtensa_call0_frame_cache_t): Update comments. New fields added. |
dbab50de MG |
3888 | (xtensa_alloc_frame_cache): Add initialization for new fields. |
3889 | (xtensa_frame_cache): Change the way how call0_frame_cache () is called. | |
3890 | (warning_once): New function. | |
3891 | (xtensa_insn_kind): New item c0opc_and. | |
3892 | (call0_classify_opcode): Add the case for AND instruction. | |
c2a6b390 MG |
3893 | (call0_track_op): Change arguments. New local variable litbase. |
3894 | Add the case to handle c0opc_and. Update algorithms for c0opc_mov, | |
3895 | c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments | |
3896 | in the prologue. | |
dbab50de | 3897 | Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu. |
c2a6b390 | 3898 | (call0_analyze_prologue): Update the comments. Change arguments. |
dbab50de MG |
3899 | Add the variety of updates to handle extended prologues, which now can |
3900 | conduct dynamic stack adjustments. | |
3901 | (call0_frame_cache): Likewise. | |
3902 | (xtensa_skip_prologue): Update call0_analyze_prologue () function call. | |
3903 | (xtensa_gdbarch_init): Initialize xtensa_session_once_reported. | |
3904 | ||
b2c04452 MS |
3905 | 2011-03-10 Michael Snyder <msnyder@vmware.com> |
3906 | ||
f8f67713 MS |
3907 | * tracepoint.c (cmd_qtv): Discard unused value 'packet'. |
3908 | (cmd_qtframe): Ditto. | |
3909 | (cmd_qtbuffer): Ditto. | |
3910 | (cmd_bigqtbuffer): Ditto. | |
3911 | ||
197f0a60 TT |
3912 | 2011-03-10 Tom Tromey <tromey@redhat.com> |
3913 | ||
3914 | * tracepoint.c (trace_actions_command): Update. | |
3915 | * thread.c (thread_apply_command): Update. | |
3916 | * reverse.c (delete_bookmark_command): Update. | |
3917 | (bookmarks_info): Update. | |
3918 | * printcmd.c (undisplay_command): Update. | |
3919 | * memattr.c (mem_enable_command): Update. | |
3920 | (mem_disable_command): Update. | |
3921 | (mem_delete_command): Update. | |
3922 | * inferior.c (detach_inferior_command): Update. | |
3923 | (kill_inferior_command): Update. | |
3924 | (remove_inferior_command): Update. | |
3925 | * cli/cli-utils.h (struct get_number_or_range_state): New. | |
3926 | (init_number_or_range): Declare. | |
3927 | (get_number_or_range): Update. | |
3928 | * cli/cli-utils.c (init_number_or_range): New function. | |
3929 | (get_number_or_range): Change 'pp' parameter to 'state'. Remove | |
3930 | static variables. | |
3931 | (number_is_in_list): Update. | |
3932 | * breakpoint.h (get_tracepoint_by_number): Update. | |
3933 | * breakpoint.c (map_breakpoint_numbers): Update for change to | |
3934 | get_number_or_range. | |
3935 | (find_location_by_number): Use get_number, not | |
3936 | get_number_or_range. | |
3937 | (trace_pass_set_count): New function. | |
3938 | (trace_pass_command): Update for change to get_number_or_range. | |
3939 | Rework loop logic. | |
3940 | (get_tracepoint_by_number): Remove 'multi_p' parameter; add | |
3941 | 'state' parameter. | |
3942 | ||
ecec24e6 PM |
3943 | 2011-03-10 Phil Muldoon <pmuldoon@redhat.com> |
3944 | ||
3945 | * python/py-param.c (add_setshow_generic): Add set/show callback | |
3946 | parameters. Register Python object context. | |
3947 | (get_show_value): New function. | |
3948 | (get_set_value): New function. | |
3949 | (call_doc_function): New function. | |
3950 | (get_doc_string): Move behind get_show_value/get_set_value. | |
3951 | ||
6d6c6b1f JK |
3952 | 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch> |
3953 | ||
3954 | * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'. | |
3955 | ||
68d6df83 MG |
3956 | 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com> |
3957 | ||
dbab50de | 3958 | * xtensa-tdep.c (xtensa_read_register): Add comment. |
68d6df83 MG |
3959 | (xtensa_write_register): Likewise. |
3960 | (xtensa_hextochar): Add comment and update to match coding conventions. | |
3961 | (xtensa_frame_cache, xtensa_return_value): Follow coding conventions. | |
3962 | (execute_l32e, execute_s32e, execute_code): Update comments. | |
3963 | (xtensa_exception_handler_t): Update to match coding conventions. | |
3964 | (xtensa_insn_kind): Likewise. | |
3965 | ||
85c9d6a6 MS |
3966 | 2011-03-09 Michael Snyder <msnyder@vmware.com> |
3967 | ||
3968 | * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak. | |
3969 | ||
91495617 PA |
3970 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
3971 | ||
3972 | * nto-tdep.c (nto_find_and_open_solib): Constify local `base'. | |
3973 | ||
eb8c0621 TT |
3974 | 2011-03-09 Tom Tromey <tromey@redhat.com> |
3975 | ||
3976 | * thread.c (restore_selected_frame): Handle frame_level == -1. | |
3977 | (make_cleanup_restore_current_thread): Use | |
3978 | get_selected_frame_if_set. | |
3979 | * frame.h (get_selected_frame_if_set): Declare. | |
3980 | * frame.c (get_selected_frame_if_set): New function. | |
3981 | ||
9f37bbcc PA |
3982 | 2011-03-09 Pedro Alves <pedro@codesourcery.com> |
3983 | ||
3984 | * cli/cli-cmds.c (shell_escape): Use lbasename. | |
3985 | * coffread.c (coff_start_symtab): Constify parameter. | |
3986 | (complete_symtab): Constify `name' parameter. | |
3987 | (coff_symtab_read): Constify `filestring' local. | |
3988 | (coff_getfilename): Constify return and `result' local. | |
3989 | Use lbasename. | |
3990 | * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename. | |
3991 | * linux-fork.c (info_checkpoints_command): Use lbasename. | |
3992 | * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename. | |
3993 | * minsyms.c (lookup_minimal_symbol): Use lbasename. | |
3994 | * nto-tdep.c (nto_find_and_open_solib): Use lbasename. | |
3995 | * procfs.c (procfs_make_note_section): Use lbasename. | |
3996 | * tui/tui-io.c (printable_part): Constity return and parameter. | |
3997 | Use lbasename. | |
3998 | (print_filename): Constify parameters, and local `s'. | |
3999 | (tui_rl_display_match_list): Constify local `temp'. | |
4000 | ||
f8de3c55 JK |
4001 | 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com> |
4002 | ||
4003 | Revert: | |
4004 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> | |
4005 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
4006 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
4007 | cu->header.version >= 3. | |
4008 | ||
d9837b00 YQ |
4009 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
4010 | ||
4011 | * common/Makefile.in: Remove. | |
4012 | * common/configure: Remove. | |
4013 | * common/configure.ac: Remove. | |
4014 | ||
e637a4f5 YQ |
4015 | 2011-03-09 Yao Qi <yao@codesourcery.com> |
4016 | ||
4017 | Revert: | |
4018 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
4019 | ||
4020 | * common/Makefile.in: Add copyright header. | |
4021 | ||
4022 | 2011-02-11 Yao Qi <yao@codesourcery.com> | |
4023 | ||
4024 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
4025 | libcommon.a. | |
4026 | * configure.ac: Add common to sub dir. | |
4027 | * configure: Regenerate. | |
4028 | ||
f976a05d MG |
4029 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
4030 | ||
4031 | * xtensa-tdep.c (call0_ret): New function. | |
4032 | (xtensa_skip_prologue): Speed up analysis. | |
4033 | ||
57041825 MG |
4034 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
4035 | ||
4036 | * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers | |
4037 | while executing MI command -data-list-changed-registers. | |
4038 | ||
08b9c608 MG |
4039 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
4040 | ||
4041 | * xtensa-tdep.c (xtensa_read_register): New function. | |
4042 | (xtensa_write_register): New function. | |
4043 | (xtensa_find_register_by_name): New function. | |
4044 | (xtensa_windowed_frame_cache): Update comments in type description. | |
4045 | (xtensa_frame_cache): Likewise. | |
4046 | (xtensa_window_interrupt_insn): New function. | |
4047 | (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames. | |
4048 | (xtensa_insn_kind): Add new instructions. | |
4049 | (rwx_special_register): New function. | |
4050 | (call0_classify_opcode): Add new instructions to the analysis. | |
4051 | (a0_saved, a7_saved, a11_saved): New variables. | |
4052 | (a0_was_saved, a7_was_saved, a11_was_saved): New variables. | |
4053 | (execute_l32e): New function. | |
4054 | (execute_s32e): New function. | |
4055 | (xtensa_exception_handler_t): New type. | |
4056 | (execute_code): New function. | |
4057 | (xtensa_window_interrupt_frame_cache): New function to conduct frame | |
4058 | analysis for Xtensa Window Exception handlers. | |
4059 | ||
4d1acb11 MG |
4060 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> |
4061 | ||
98689b25 MG |
4062 | * xtensa-tdep.c (TX_PS): New. |
4063 | (windowing_enabled): Update to count for Call0 ABI. | |
4064 | (xtensa_hextochar): New. | |
4065 | (xtensa_init_reggroups): Make algorithm generic. | |
4066 | (xtensa_frame_cache): Use TX_PS on Tiny Xtensa. | |
4067 | ||
4068 | 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com> | |
4069 | ||
4070 | * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update. | |
4d1acb11 | 4071 | |
d3f323f3 MS |
4072 | 2011-03-08 Michael Snyder <msnyder@vmware.com> |
4073 | ||
3dcabaa8 MS |
4074 | * i386-tdep.c (i386_follow_jump): Check return value of |
4075 | target_read_memory. | |
4076 | (i386_analyze_struct_return): Ditto. | |
4077 | (i386_skip_probe): Ditto. | |
4078 | (i386_match_insn): Ditto. | |
4079 | (i386_skip_noop): Ditto. | |
4080 | (i386_analyze_frame_setup): Ditto. | |
4081 | (i386_analyze_register_saves): Ditto. | |
4082 | (i386_skip_prologue): Ditto. | |
4083 | (i386_skip_main_prologue): Ditto. | |
4084 | ||
13b3fd9b MS |
4085 | * target.c (read_whatever_is_readable): Fix memory leak. |
4086 | ||
d3f323f3 MS |
4087 | * i386-tdep.c (i386_process_record): Document fall through. |
4088 | ||
421d5c74 JK |
4089 | 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
4090 | ||
4091 | Fix DWARF-3+ DW_AT_accessibility default assumption. | |
4092 | * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for | |
4093 | cu->header.version >= 3. | |
4094 | ||
63154eca PA |
4095 | 2011-03-08 Pedro Alves <pedro@codesourcery.com> |
4096 | ||
4097 | * remote.c (remote_check_symbols): Skip if the target has no | |
4098 | execution. | |
4099 | ||
f1a507a1 JB |
4100 | 2011-03-08 Joel Brobecker <brobecker@adacore.com> |
4101 | ||
4102 | * target.c (read_whatever_is_readable): Reformat comment, | |
4103 | with a minor typo fix. Minor reformatting of the code. | |
4104 | ||
36073a92 YQ |
4105 | 2011-03-08 Yao Qi <yao@codesourcery.com> |
4106 | ||
4107 | * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. | |
4108 | (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. | |
4109 | Use cached result instead of calling displaced_in_arm_mode again. | |
4110 | (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. | |
4111 | (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. | |
4112 | (cleanup_copro_load_store, copy_copro_load_store): Likewise. | |
4113 | (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. | |
4114 | (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. | |
4115 | (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. | |
4116 | (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. | |
4117 | (cleanup_block_load_all, cleanup_block_store_pc): Likewise. | |
4118 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
4119 | * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. | |
4120 | (arm_catch_kernel_helper_return): Likewise. | |
4121 | * gdb/arm-tdep.h : Update function declarations. | |
4122 | ||
d3f323f3 | 4123 | 2011-03-07 Michael Snyder <msnyder@vmware.com> |
e6040cbd | 4124 | |
e0e40094 MS |
4125 | * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. |
4126 | ||
0b2381f5 MS |
4127 | * ser-unix.c (hardwire_get_tty_state): Stop memory leak. |
4128 | ||
0350914a MS |
4129 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. |
4130 | ||
69feea6f MS |
4131 | * elfread.c (elf_symtab_read): Stop memory leak. |
4132 | ||
e6040cbd MS |
4133 | * main.c (captured_main): Fix memory leak. |
4134 | ||
052874e8 AS |
4135 | 2011-03-07 Andreas Schwab <schwab@linux-m68k.org> |
4136 | ||
4137 | * ada-lang.c (compare_names): Call is_name_suffix with string1 | |
4138 | instead of string2. | |
4139 | ||
b11896a5 TT |
4140 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
4141 | ||
4142 | * xcoffread.c (xcoff_sym_fns): Update. | |
4143 | * symfile.h (struct sym_fns) <sym_read_psymbols>: New field. | |
4144 | (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. | |
4145 | * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. | |
4146 | (symbol_file_add_with_addrs_or_offsets): Likewise. | |
4147 | (reread_symbols): Handle OBJF_PSYMTABS_READ. | |
4148 | * somread.c (som_sym_fns): Update. | |
4149 | * psymtab.h (require_partial_symbols): Declare. | |
4150 | * psymtab.c (require_partial_symbols): New function. | |
4151 | (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. | |
4152 | (ALL_OBJFILE_PSYMTABS): Undef. | |
4153 | (ALL_PSYMTABS): Move from psympriv.h. | |
4154 | (lookup_partial_symtab, find_pc_sect_psymtab) | |
4155 | (lookup_symbol_aux_psymtabs, relocate_psymtabs) | |
4156 | (find_last_source_symtab_from_partial) | |
4157 | (forget_cached_source_info_partial) | |
4158 | (print_psymtab_stats_for_objfile, read_symtabs_for_function) | |
4159 | (expand_partial_symbol_tables, read_psymtabs_with_filename) | |
4160 | (map_symbol_names_psymtab, map_symbol_filenames_psymtab) | |
4161 | (find_symbol_file_from_partial, map_matching_symbols_psymtab) | |
4162 | (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): | |
4163 | Use ALL_OBJFILE_PSYMTABS_REQUIRED. | |
4164 | * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. | |
4165 | * objfiles.h (OBJF_PSYMTABS_READ): New macro. | |
4166 | * objfiles.c (objfile_has_partial_symbols): Handle lazily-read | |
4167 | psymtabs. | |
4168 | * mipsread.c (ecoff_sym_fns): Update. | |
4169 | * machoread.c (macho_sym_fns): Update. | |
4170 | * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. | |
4171 | (read_psyms): New function. | |
4172 | (elf_sym_fns, elf_sym_fns_gdb_index): Update. | |
4173 | (elf_sym_fns_lazy_psyms): New global. | |
4174 | * dwarf2read.c (dwarf2_initialize_objfile): Don't call | |
4175 | dwarf2_build_psymtabs. | |
4176 | * dbxread.c (aout_sym_fns): Update. | |
4177 | * coffread.c (coff_sym_fns): Update. | |
4178 | ||
fda326dd TT |
4179 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
4180 | ||
4181 | * infrun.c (print_exited_reason): Include inferior id and pid in | |
4182 | message. | |
4183 | ||
aeaec162 TT |
4184 | 2011-03-07 Tom Tromey <tromey@redhat.com> |
4185 | ||
4186 | * target.h (struct target_ops) <to_has_execution>: Add ptid_t | |
4187 | parameter. | |
4188 | (target_has_execution_1): Update. | |
4189 | (target_has_execution_current): Declare. | |
4190 | (target_has_execution): Call target_has_execution_current. | |
4191 | (default_child_has_execution): Update. | |
4192 | * target.c (default_child_has_execution): Add 'the_ptid' | |
4193 | parameter. | |
4194 | (target_has_execution_1): Likewise. | |
4195 | (target_has_execution_current): New function. | |
4196 | (add_target): Update. | |
4197 | (init_dummy_target): Update. | |
4198 | * remote-m32r-sdi.c (m32r_has_execution): New function. | |
4199 | (init_m32r_ops): Use it. | |
4200 | * record.c (record_core_has_execution): Now static. Add | |
4201 | 'the_ptid' parameter. | |
4202 | * inferior.c (have_live_inferiors): Don't save current thread. | |
4203 | Use target_has_execution_1. | |
4204 | ||
08e14083 YQ |
4205 | 2011-03-07 Yao Qi <yao@codesourcery.com> |
4206 | ||
4207 | * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. | |
4208 | ||
c05d19c5 JB |
4209 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
4210 | ||
4211 | * elfread.c (elf_symtab_read): Minor reformatting. | |
4212 | ||
3e6ef9e4 JB |
4213 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
4214 | ||
4215 | * objc-lang.c (selectors_info): Minor reformatting. | |
4216 | ||
dbb8534f JB |
4217 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
4218 | ||
4219 | * ada-lang.c (compare_names): Add FALLTHROUGH comment. | |
4220 | ||
dd70cc93 JB |
4221 | 2011-03-07 Joel Brobecker <brobecker@adacore.com> |
4222 | Michael Snyder <msnyder@vmware.com> | |
4223 | ||
4224 | * ada-valprint.c (ada_val_print_array): Move the declaration of | |
4225 | "byte_order" and "elttype" inside the block where these variables | |
4226 | are actually used. Remove some special handling for the case | |
4227 | where "elttype" and "eltlen" are null. Replace by a comment | |
4228 | and a couple of assertion checks. | |
4229 | ||
b27cf2b3 MS |
4230 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
4231 | ||
4232 | * source.c (add_path): Replace semicolon at end of block. | |
4233 | * dwarf2expr.c (execute_stack_op): Ditto. | |
4234 | ||
5387a0c6 MF |
4235 | 2011-03-05 Mike Frysinger <vapier@gentoo.org> |
4236 | ||
4237 | * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h. | |
4238 | * configure.tgt (bfin-*-*linux*): Define gdb_sim. | |
4239 | (bfin-*-*): Likewise. | |
4240 | ||
e3aa49af MS |
4241 | 2011-03-05 Michael Snyder <msnyder@vmware.com> |
4242 | ||
82ae4854 MS |
4243 | * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon. |
4244 | * mdebugread.c (parse_symbol): Ditto. | |
4245 | * parse.c (parse_exp_in_context): Ditto. | |
4246 | * source.c (add_path): Ditto. | |
4247 | * utils.c (gnu_debuglink_crc32): Ditto. | |
4248 | * varobj.c (variable_language): Ditto. | |
4249 | ||
e3aa49af MS |
4250 | * linux-tdep.c (linux_get_siginfo_type): Stop memory leak. |
4251 | ||
154f592e MS |
4252 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
4253 | ||
da3ecdc6 MS |
4254 | * linux-fork.c (inferior_call_waitptid): Fix copy/paste error. |
4255 | ||
9cc89665 MS |
4256 | * symfile.c (simple_overlay_update): Check for null return value |
4257 | from lookup_minimal_symbol. | |
4258 | ||
154f592e MS |
4259 | * xml-syscall.c (syscall_start_syscall): Assert name is non null. |
4260 | ||
63ffa6ee TJB |
4261 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4262 | ||
4263 | * eval.c (parse_and_eval_address_1): Remove function. | |
4264 | * linespec.c (decode_indirect): Call parse_to_comma_and_eval | |
4265 | instead of parse_and_eval_address_1. | |
4266 | * value.h (parse_and_eval_address_1): Remove prototype. | |
4267 | ||
a17d146e MS |
4268 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
4269 | ||
4270 | * remote.c (putpkt_binary): Document that case stmt falls through. | |
4271 | ||
1a6a67de TJB |
4272 | 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
4273 | ||
4274 | * breakpointc (print_it_typical): Move NULL check from here... | |
4275 | (print_bp_stop_message): ... to here. | |
4276 | ||
488919c4 MS |
4277 | 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> |
4278 | ||
4279 | * breakpoint.c (enable_command): Use break instead of continue, | |
4280 | and fill in a missing break. | |
4281 | (disable_command): Ditto. | |
4282 | ||
1e182ce8 UW |
4283 | 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
4284 | ||
4285 | * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate. | |
4286 | (terminal_save_ours): Remove misleading comment. | |
4287 | (inflow_inferior_data_cleanup): Free ttystate. | |
4288 | (inflow_inferior_exit): Likewise. | |
4289 | (copy_terminal_info): Copy ttystate. | |
4290 | ||
4291 | * serial.c (serial_copy_tty_state): New function. | |
4292 | * serial.h (serial_copy_tty_state): Add prototype. | |
4293 | (struct serial_ops): Add copy_tty_state callback. | |
4294 | * ser-base.c (ser_base_copy_tty_state): New function. | |
4295 | * ser-base.h (ser_base_copy_tty_state): Add prototype. | |
4296 | * ser-go32.c (dos_copy_tty_state): New function. | |
4297 | (dos_ops): Install copy_tty_state callback. | |
4298 | * ser-mingw.c (_initialize_ser_windows): Likewise. | |
4299 | * ser-pipe.c (_initialize_ser_pipe): Likewise. | |
4300 | * ser-unix.c (hardwire_copy_tty_state): New function. | |
4301 | (_initialize_ser_hardwire): Install it. | |
4302 | ||
b2c5f112 MS |
4303 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
4304 | ||
2abae994 MS |
4305 | * breakpoint.c (create_breakpoint): Add missing break statement. |
4306 | ||
7f5936f9 MS |
4307 | Reverting this patch: |
4308 | * infcall.c (call_function_by_hand): Add break statements for lint. | |
4309 | ||
b2c5f112 MS |
4310 | Reverting this patch: |
4311 | * cli/cli-script.c (script_from_file): Add break for lint. | |
4312 | ||
42b1321c MS |
4313 | 2011-03-04 Michael Snyder <msnyder@vmware.com> |
4314 | ||
4315 | * solib.c (reload_shared_libraries_1): Close memory leak. | |
4316 | ||
3e2a0cee TT |
4317 | 2011-03-03 Tom Tromey <tromey@redhat.com> |
4318 | ||
4319 | PR gdb/12538: | |
4320 | * dwarf2read.c (process_psymtab_comp_unit): Handle case where | |
4321 | DW_STRING is NULL. | |
4322 | ||
58397cb7 MS |
4323 | 2011-03-03 Michael Snyder <msnyder@vmware.com> |
4324 | ||
2e3fd767 MS |
4325 | * remote-fileio.c (remote_fileio_func_fstat): Initialize all |
4326 | fields of struct 'st' to zero. | |
4327 | ||
58397cb7 MS |
4328 | * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize |
4329 | sal.pspace before calling set_current_source_symtab_and_line. | |
4330 | ||
ced54c8f YQ |
4331 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
4332 | ||
4333 | * Makefile.in (configure-common): Remove. Let Makefile | |
4334 | in dir common to rebuild itself. | |
4335 | (common/Makefile): Likewise. | |
4336 | ||
3351ea09 JB |
4337 | 2011-03-03 Joel Brobecker <brobecker@adacore.com> |
4338 | ||
4339 | * utils.c (parse_escape): Add i18n markup in error message. | |
4340 | ||
bf9f652a YQ |
4341 | 2011-03-03 Yao Qi <yao@codesourcery.com> |
4342 | ||
4343 | * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with | |
4344 | ARM_PC_REGNUM. | |
4345 | (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise. | |
4346 | (displaced_write_reg, displaced_read_reg): Likewise. | |
4347 | (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise. | |
4348 | (cleanup_block_load_pc, copy_block_xfer): Likewise. | |
4349 | (cleanup_branch): Replace magic number 14 and 15 with | |
4350 | ARM_LR_REGNUM and ARM_PC_REGNUM respectively. | |
4351 | ||
d42de051 MS |
4352 | 2011-03-02 Michael Snyder <msnyder@vmware.com> |
4353 | ||
240f9570 MS |
4354 | * maint.c (maintenance_do_deprecate): No need to check for NULL. |
4355 | ||
10dd8b54 MS |
4356 | * cli/cli-script.c (script_from_file): Add break for lint. |
4357 | ||
b98bd911 MS |
4358 | * mdebugread.c (parse_partial_symbols): Fix indent. |
4359 | ||
3494b66d MS |
4360 | * target-descriptions.c (tdesc_gdb_type): No need to call |
4361 | xstrdup, callee saves a copy. | |
4362 | ||
daac021a MS |
4363 | * printcmd.c (print_scalar_formatted): Use strncpy for safety. |
4364 | ||
c38d16a7 MS |
4365 | * infcall.c (call_function_by_hand): Add break statements for lint. |
4366 | ||
905b671b MS |
4367 | * utils.c (parse_escape): Escape the escape char. |
4368 | ||
f2eb0bc8 | 4369 | * python/py-inferior.c (build_inferior_list): Error out if |
2d565757 MS |
4370 | PyList_Append fails. |
4371 | (gdbpy_inferiors): Error out if build_inferior_list fails. | |
4372 | ||
8c6a60d1 MS |
4373 | * linux-nat.c (linux_nat_xfer_partial): Preserve errno around |
4374 | a function call. | |
4375 | ||
d42de051 MS |
4376 | * record.c (record_restore): Move printf to before error return. |
4377 | ||
4db71c0b YQ |
4378 | 2011-03-02 Yao Qi <yao@codesourcery.com> |
4379 | ||
4380 | * arm-tdep.h (struct displaced_step_closure): Add two new fields | |
4381 | is_thumb and insn_size. | |
4382 | * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset | |
4383 | on both ARM and Thumb mode. | |
4384 | (arm_process_displaced_insn): Set is_thumb and insn_size. | |
4385 | (arm_displaced_init_closure): Handle both 16-bit and 32-bit. | |
4386 | (arm_displaced_step_fixup): Likewise. | |
4387 | ||
a9dc8dcc MS |
4388 | 2011-03-01 Michael Snyder <msnyder@vmware.com> |
4389 | ||
53624a93 MS |
4390 | * cli/cli-dump.c (dump_bfd_file): Check error return and warn. |
4391 | ||
77766669 MS |
4392 | * jv-lang.c (evaluate_subexp_java): Conditional can't be true. |
4393 | ||
62d5b8da MS |
4394 | * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here. |
4395 | ||
5e9e105f MS |
4396 | * cli/cli-dump.c (restore_binary_file): Validate ftell return value. |
4397 | ||
dc19db01 MS |
4398 | * ada-lang.c (ada_make_symbol_completion_list): Replace malloc |
4399 | with xmalloc. | |
4400 | ||
5ce64950 MS |
4401 | * ada-lang.c (aggregate_assign_others): Rename inner scope variable |
4402 | which shadows function parameter. | |
4403 | ||
a0aa2878 MS |
4404 | * tracepoint.c (create_tsv_from_upload): Superfluous call |
4405 | to xstrdup. Callee already calls xstrdup. | |
4406 | ||
e325fb69 MS |
4407 | * linespec.c (decode_line_1): Remove unnecessary null check. |
4408 | ||
21cbba77 MS |
4409 | * tracepoint.c (scope_info): Fix mem leak, remove underused |
4410 | variable. | |
4411 | ||
63360adc MS |
4412 | * python/py-prettyprint.c (apply_val_pretty_printer): Remove |
4413 | superfluous null check. | |
4414 | ||
18ea20ac | 4415 | * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null. |
23ce9890 | 4416 | (value_of_builtin_frame_fp_reg): Ditto. |
18ea20ac | 4417 | |
d014929c MS |
4418 | * event-top.c (display_gdb_prompt): Remove superfluous null check. |
4419 | ||
6e9130cf MS |
4420 | * python/py-prettyprint.c (apply_val_pretty_printer): VAL may |
4421 | be null. | |
4422 | ||
5f01dbc0 MS |
4423 | * linespec.c (decode_line_1): Check for null before dereference. |
4424 | ||
d684ab85 MS |
4425 | * reverse.c (record_restore): Move null-check to before pointer |
4426 | dereference. | |
4427 | ||
bfffb7e3 MS |
4428 | * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable. |
4429 | ||
a9dc8dcc MS |
4430 | * objc-lang.c (selectors_info): Add explanitory comment. |
4431 | (classes_info): Ditto. | |
4432 | ||
478fd957 UW |
4433 | 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org> |
4434 | ||
4435 | * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define. | |
4436 | (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel | |
4437 | versions of the trampoline. Handle Thumb vs. ARM addresses. | |
4438 | (arm_kernel_linux_restart_syscall_tramp_frame): New global. | |
4439 | (arm_linux_init_abi): Install it. | |
4440 | * arm-tdep.c (arm_psr_thumb_bit): Make global. | |
4441 | * arm-tdep.c (arm_psr_thumb_bit): Add prototype. | |
4442 | ||
0480cefa MS |
4443 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
4444 | ||
ac50ab3b MS |
4445 | * ui-out.c (ui_out_field_core_addr): Make local char buffer |
4446 | a little bigger, to avoid possibility of an overflow. | |
4447 | ||
f63fbe86 MS |
4448 | * breakpoint.c (breakpoint_adjustment_warning): Make local char |
4449 | buffers a little bigger, to avoid possibility of an overflow. | |
4450 | ||
9e91a352 MS |
4451 | * coffread.c (coff_getfilename): Add check to avoid overflow. |
4452 | ||
f2eb0bc8 | 4453 | * objc-lang.c (selectors_info): Add a small safety margin to |
28288541 MS |
4454 | avoid overflow. |
4455 | (classes_info): Error out on too long REGEXP. | |
4456 | ||
098ab512 MS |
4457 | * infrun.c (handle_inferior_event): Remove unused function call. |
4458 | ||
bcbd1de9 MS |
4459 | * fork-child.c (fork_inferior): Remove ifdef'd code and |
4460 | unused variable. | |
4461 | ||
2e456570 MS |
4462 | * linux-thread-db.c (attach_thread): Discard unused value. |
4463 | ||
14571dad MS |
4464 | * linux-nat.c (linux_handle_extended_wait): Delete unused variable. |
4465 | ||
a9cbf802 MS |
4466 | * remote.c (remote_get_noisy_reply): Discard unused value. |
4467 | (remote_vcont_resume): Ditto. | |
4468 | (remote_stop_ns): Ditto. | |
4469 | ||
5715d26e MS |
4470 | * linespec.c (decode_objc): Delete unused variable. |
4471 | ||
4a9bca80 MS |
4472 | * tui/tui-regs.c (tui_register_format): Delete unused variable. |
4473 | ||
f47fb265 MS |
4474 | * dwarf2read.c (add_partial_symbol): Discard unused values. |
4475 | (read_base_type): Delete unused variable. | |
4476 | ||
e81cff30 MS |
4477 | * dbxread.c (read_dbx_symtab): Discard unused value. |
4478 | ||
262acaeb MS |
4479 | * eval.c (evaluate_subexp_standard): Delete unused variable, |
4480 | and discard unused values. | |
4481 | ||
df983543 MS |
4482 | * infcmd.c (_initialize_infcmd): Discard unused values. |
4483 | ||
89acf84d MS |
4484 | * stabsread.c (rs6000_builtin_type): Missing break statement. |
4485 | ||
ab8b8aca MS |
4486 | * dbxread.c (process_one_symbol): Discard unused value. |
4487 | ||
6b4511ab MS |
4488 | * coffread.c (coff_end_symtab): Delete unused variable. |
4489 | ||
e8e80198 MS |
4490 | * dwarf2read.c (dw2_get_file_names): Discard unused value. |
4491 | (dwarf2_add_typedef): Delete unused variable. | |
4492 | (read_namespace): Ditto. | |
4493 | (dwarf_decode_macros): Ditto. | |
4494 | ||
976aa66e MS |
4495 | * m2-lang.c (evaluate_subexp_modula2): Discard unused variable. |
4496 | ||
5b92b49f MS |
4497 | * opencl-lang.c (evaluate_subexp_opencl): Discard unused value. |
4498 | ||
91e8df85 MS |
4499 | * p-valprint.c (pascal_val_print): Discard unused value. |
4500 | ||
899500d6 MS |
4501 | * utils.c (nquery): Call va_end before return; |
4502 | (yquery): Ditto. | |
4503 | (query): Ditto. | |
4504 | ||
0480cefa MS |
4505 | * proc-service.c (ps_plog): Call va_end before return. |
4506 | ||
fb6a3ed3 TT |
4507 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
4508 | ||
4509 | * python/python.c (gdbpy_value_cst): New global. | |
4510 | (_initialize_python): Initialize it. | |
4511 | * python/python-internal.h (gdbpy_value_cst): Declare. | |
4512 | * python/py-value.c (convert_value_from_python): Use | |
4513 | gdbpy_value_cst. | |
4514 | ||
c05202a1 MS |
4515 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
4516 | ||
e463f587 MS |
4517 | * python/py-cmd.c (cmdpy_init): Fix memory leak. |
4518 | ||
c38eea1a MS |
4519 | * breakpoint.c (catch_syscall_completer): Free malloced list. |
4520 | ||
3ef09ab5 MS |
4521 | * jv-lang.c (java_primitive_type_from_name): Add missing break. |
4522 | ||
8f9a01ee MS |
4523 | * opencl-lang.c (lval_func_check_validity): Rename inner variables. |
4524 | (lval_func_check_synthetic_pointer): Ditto. | |
4525 | (lval_func_free_closure): Fix use-after-free. | |
c05202a1 | 4526 | |
477d0d57 TT |
4527 | 2011-02-28 Tom Tromey <tromey@redhat.com> |
4528 | ||
4529 | * psymtab.c (expand_partial_symbol_tables): Use | |
4530 | ALL_OBJFILE_PSYMTABS. | |
4531 | ||
20937029 JK |
4532 | 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
4533 | ||
4534 | * objc-lang.c (selectors_info): Error on too long REGEXP. | |
4535 | ||
907b7f4f MS |
4536 | 2011-02-28 Michael Snyder <msnyder@vmware.com> |
4537 | ||
92e96192 MS |
4538 | * python/py-param.c (set_parameter_value): Add missing |
4539 | break statement. | |
4540 | ||
907b7f4f MS |
4541 | * linux-record.c (record_linux_system_call): Add missing |
4542 | break statement. | |
4543 | ||
12c5a436 UW |
4544 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
4545 | ||
4546 | * breakpoint.c (print_one_breakpoint_location): Remove unused | |
4547 | argument PRINT_ADDRESS_BITS. Update callers. | |
4548 | (print_one_breakpoint): Likewise. | |
4549 | ||
170b53b2 UW |
4550 | 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com> |
4551 | ||
4552 | * breakpoint.c (wrap_indent_at_field): New function. | |
4553 | (print_breakpoint_location): Use it instead of WRAP_INDENT argument. | |
4554 | Allocate ui_stream locally instead of using STB argument. | |
4555 | (print_one_breakpoint_location): Update call. | |
4556 | * ui-out.c (ui_out_query_field): New function. | |
4557 | * ui-out.h (ui_out_query_field): Add prototype. | |
4558 | ||
8ab1f94d JB |
4559 | 2011-02-28 Joel Brobecker <brobecker@adacore.com> |
4560 | ||
4561 | From Michael Snyder <msnyder@vmware.com> | |
4562 | * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment. | |
4563 | ||
7d488639 MS |
4564 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
4565 | ||
ae179fba MS |
4566 | * objc-lang.c (selectors_info): Prevent string overrun. |
4567 | ||
086dbf66 MS |
4568 | * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one |
4569 | error in strncpy. | |
4570 | ||
f2eb0bc8 | 4571 | * symtab.c (rbreak_command): Move variable 'file_name' to |
9c1e305a MS |
4572 | outer scope. |
4573 | ||
7d488639 MS |
4574 | * d-valprint.c (dynamic_array_type): Avoid shadowing a function |
4575 | param with a local variable of the same name. | |
4576 | ||
3bd0f5ef MS |
4577 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
4578 | ||
4579 | * value.c (value_from_history_ref): New function. | |
4580 | * value.h (value_from_history_ref): Export. | |
4581 | * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref | |
4582 | to parse value history references. | |
4583 | * cli/cli-utils.h (get_number_trailer): Update comment. | |
4584 | ||
4585 | 2011-02-27 Michael Snyder <msnyder@vmware.com> | |
4586 | ||
4587 | * inferior.c (detach_inferior_command): Use get_number_or_range. | |
4588 | (kill_inferior_command): Ditto. | |
4589 | (remove_inferior_command): Ditto. | |
4590 | (initialize_inferiors): Make command names plural. | |
4591 | Update help strings. | |
4592 | ||
766062f6 MS |
4593 | 2011-02-27 Michael Snyder <msnyder@vmware.com> |
4594 | ||
4595 | * darwin-nat-info.c: Fix comment typo. | |
4596 | * dwarf2expr.h: Ditto. | |
4597 | * fbsd-nat.c: Ditto. | |
4598 | * fbsd-nat.h: Ditto. | |
4599 | * frame-unwind.h: Ditto. | |
4600 | * frame.h: Ditto. | |
4601 | * hppa-hpux-tdep.c: Ditto. | |
4602 | * i386-linux-nat.c: Ditto. | |
4603 | * linux-nat.c: Ditto. | |
4604 | * nbsd-nat.c: Ditto. | |
4605 | * nbsd-nat.h: Ditto. | |
4606 | * ppc-linux-tdep.c: Ditto. | |
4607 | * serial.c: Ditto. | |
4608 | * ui-file.h: Ditto. | |
4609 | * tui/tui-winsource.c: Ditto. | |
4610 | ||
f2c4ead5 MS |
4611 | 2011-02-26 Michael Snyder <msnyder@vmware.com> |
4612 | ||
86b887df MS |
4613 | * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file). |
4614 | ||
66fd3b1e MS |
4615 | * maint.c (maintenance_do_deprecate): Plug a memory leak. |
4616 | ||
8c814cdd MS |
4617 | * dwarf2loc.c (insert_bits): Avoid shadowing a function param |
4618 | with a local variable of the same name. | |
4619 | ||
6d5e094a | 4620 | * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function |
e5b3d7d6 | 4621 | param with a local variable of the same name. |
6d5e094a | 4622 | (i387_supply_xsave): Ditto. |
e5b3d7d6 | 4623 | |
5eee517d MS |
4624 | * linux-low.c (linux_nat_xfer_osdata): Rename local variable so |
4625 | that it does not shadow a function parameter. | |
4626 | ||
8fbf6b93 MS |
4627 | * i386-nat.c (i386_length_and_rw_bits): Document that case |
4628 | statement is meant to fall through. | |
4629 | ||
cb969d61 MS |
4630 | * expprint.c (dump_subexp_body_standard): Document that case |
4631 | statement is meant to fall through. | |
4632 | ||
f2c4ead5 MS |
4633 | * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete |
4634 | dead if statement. Condition can't be false. | |
4635 | ||
b021a221 MS |
4636 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
4637 | ||
4638 | * arm-tdep.c: Fix typos in comments. | |
4639 | * bsd-uthread.c: Ditto. | |
4640 | * completer.c: Ditto. | |
4641 | * corelow.c: Ditto. | |
4642 | * cp-namespace.c: Ditto. | |
4643 | * cp-support.c: Ditto. | |
4644 | * cris-tdep.c: Ditto. | |
4645 | * dbxread.c: Ditto. | |
4646 | * dwarf2read.c: Ditto. | |
4647 | * frame.h: Ditto. | |
4648 | * gdbtypes.h: Ditto. | |
4649 | * inferior.h: Ditto. | |
4650 | * mdebugread.c: Ditto. | |
4651 | * mips-tdep.c: Ditto. | |
4652 | * ppc-linux-nat.c: Ditto. | |
4653 | * ppc-linux-tdep.c: Ditto. | |
4654 | * printcmd.c: Ditto. | |
4655 | * sol-thread.c: Ditto. | |
4656 | * solib-frv.c: Ditto. | |
4657 | * solist.h: Ditto. | |
4658 | * sparc64-tdep.c: Ditto. | |
4659 | * spu-tdep.c: Ditto. | |
4660 | * stabsread.c: Ditto. | |
4661 | * symfile.c: Ditto. | |
4662 | * valops.c: Ditto. | |
4663 | * varobj.c: Ditto. | |
4664 | * vax-nat.c: Ditto. | |
4665 | * python/py-block.c: Ditto. | |
4666 | * python/py-symbol.c: Ditto. | |
4667 | * python/py-symtab.c: Ditto. | |
4668 | * python/py-value.c: Ditto. | |
4669 | * tui/tui-win.c: Ditto. | |
4670 | ||
c82c0b55 MS |
4671 | 2011-02-25 Michael Snyder <msnyder@vmware.com> |
4672 | ||
4673 | * inferior.c (print_inferior): Accept a string instead of an int | |
4674 | for requested_inferiors, and use get_number_or_range to parse it. | |
4675 | (info_inferiors_command): Pass args string to print_inferior. | |
4676 | (initialize_inferiors): Change help string for info inferiors. | |
4677 | * inferior.h (print_inferior): Export prototype change. | |
4678 | ||
ee00cd23 TT |
4679 | 2011-02-25 Tom Tromey <tromey@redhat.com> |
4680 | ||
4681 | * common/ax.def (invalid2): Set to 0x31. | |
4682 | ||
0502ed8c JK |
4683 | 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
4684 | ||
4685 | * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use | |
4686 | L and plongest. | |
4687 | (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset, | |
4688 | use L and plongest. | |
4689 | (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest. | |
4690 | ||
2c9de912 MS |
4691 | 2011-02-24 Michael Snyder <msnyder@vmware.com> |
4692 | ||
4693 | * Makefile.in (clean): Make clean should remove generated files | |
4694 | observer.h and observer.inc. | |
4695 | ||
a04b0428 JB |
4696 | 2011-02-24 Joel Brobecker <brobecker@adacore.com> |
4697 | ||
4698 | Revert the following patch (not approved yet): | |
4699 | 2011-02-21 Hui Zhu <teawater@gmail.com> | |
4700 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
4701 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
4702 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
4703 | * ax-general.c (ax_memcpy): New function. | |
4704 | (ax_print): Handle "printf". | |
4705 | (ax_reqs): Ditto. | |
4706 | * ax.h (ax_memcpy): Forward declare. | |
4707 | * common/ax.def (invalid2): Removed. | |
4708 | (printf): New entry. | |
4709 | * printcmd.c (printcmd.h): New include. | |
4710 | (string_printf): New function. | |
4711 | (ui_printf): Removed. | |
4712 | (printf_command): Remove static. Call string_printf. | |
4713 | (eval_command): Call string_printf. | |
4714 | * printcmd.h: New file. | |
4715 | * tracepoint.c (validate_actionline, | |
4716 | encode_actions_1): handle printf_command. | |
4717 | ||
2b52013f TT |
4718 | 2011-02-23 Tom Tromey <tromey@redhat.com> |
4719 | ||
4720 | * ax-general.c (ax_pick): Add missing newline. | |
4721 | ||
e5a67952 MS |
4722 | 2011-02-23 Michael Snyder <msnyder@vmware.com> |
4723 | ||
4724 | * breakpoint.c (breakpoint_1): Change first argument from an int | |
4725 | to a char pointer, so that the function now accepts a list of | |
f2eb0bc8 | 4726 | breakpoints rather than just one. Use new function |
e5a67952 MS |
4727 | 'number_is_in_list' to implement. |
4728 | (breakpoints_info): Pass char * instead of int to breakpoint_1. | |
4729 | (watchpoints_info): Ditto. | |
4730 | (tracepoints_info): Ditto. | |
4731 | (maintenance_info_breakpoints): Ditto. | |
4732 | (_initialize_breakpoint): Update help strings to reflect the fact | |
4733 | that these functions can now take more than one argument. | |
4734 | * cli/cli-utils.c (number_is_in_list): New function. | |
4735 | * cli/cli-utils.h (number_is_in_list): Export. | |
4736 | ||
4737 | 2011-02-23 Michael Snyder <msnyder@vmware.com> | |
fbcb778d MS |
4738 | |
4739 | * memattr.c (mem_enable_command): Use get_number_or_range. | |
4740 | (mem_disable_command): Ditto. | |
4741 | (mem_delete_command): Ditto. | |
4742 | (_initialize_mem): Tweak usage message to reflect multiple | |
4743 | arguments. | |
4744 | ||
6e6fbe60 DE |
4745 | 2011-02-22 Doug Evans <dje@google.com> |
4746 | ||
4747 | Add gdb.lookup_global_symbol python function. | |
4748 | * NEWS: Add entry. | |
4749 | * python/py-symbol.c (gdbpy_lookup_global_symbol): New function. | |
4750 | * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it. | |
4751 | * python/python.c (GdbMethods): Add entry for lookup_global_symbol. | |
4752 | ||
79b97fa8 TT |
4753 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
4754 | ||
4755 | * language.c (language_class_name_from_physname): Rename | |
4756 | 'curr_language' argument to 'lang'; use in body. | |
4757 | ||
298f437a MS |
4758 | 2011-02-22 Michael Snyder <msnyder@vmware.com> |
4759 | ||
4760 | * cli/cli-utils.c (number_is_in_list): Check for zero return. | |
4761 | ||
b7ea3126 PA |
4762 | 2011-02-22 Pedro Alves <pedro@codesourcery.com> |
4763 | ||
4764 | * frame-unwind.h: Fix comment to mention the this frame, not the | |
4765 | next. | |
4766 | ||
58ee6d60 TT |
4767 | 2011-02-22 Tom Tromey <tromey@redhat.com> |
4768 | ||
4769 | * symfile.c (auto_solib_limit): Remove. | |
4770 | * symfile.h (auto_solib_limit): Remove. | |
4771 | ||
36238dbc JB |
4772 | 2011-02-22 Joel Brobecker <brobecker@adacore.com> |
4773 | ||
4774 | * Makefile.in (INSTALLED_LIBS): Delete. Update comment. | |
4775 | ||
aea5b279 MS |
4776 | 2011-02-21 Michael Snyder <msnyder@vmware.com> |
4777 | ||
4778 | * gdbthread.h (print_thread_info): Change prototype. | |
4779 | * thread.c (print_thread_info): Accept char* instead of int for | |
4780 | requested_threads argument. Use new function number_is_in_list | |
4781 | to determine which threads to list. | |
4782 | (info_threads_command): Pass char* to print_thread_info. | |
4783 | * cli/cli-utils.c (number_is_in_list): New function. | |
4784 | * cli/cli-utils.h (number_is_in_list): Export. | |
f2eb0bc8 | 4785 | * mi/mi-main.c (mi_cmd_thread_info): Pass char* to |
aea5b279 MS |
4786 | print_thread_info. |
4787 | (print_one_inferior): Ditto. | |
4788 | (mi_cmd_list_thread_groups): Ditto. | |
4789 | ||
8caa75ee JK |
4790 | 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com> |
4791 | ||
4792 | * common/Makefile.in (CFLAGS): New. | |
4793 | (COMPILE): Add $(CFLAGS). | |
4794 | ||
ea666128 TT |
4795 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
4796 | ||
4797 | * breakpoint.c (catch_syscall_command_1): Fix typo. | |
4798 | ||
e9cafbcc TT |
4799 | 2011-02-21 Tom Tromey <tromey@redhat.com> |
4800 | ||
4801 | * reverse.c: Include cli-utils.h. | |
4802 | * printcmd.c: Include cli-utils.h. | |
4803 | (string_printf): Use skip_spaces. | |
4804 | * cli/cli-utils.h: New file. | |
4805 | * cli/cli-utils.c: New file. | |
4806 | * cli/cli-dump.h (skip_spaces): Move to cli-utils.h. | |
4807 | * cli/cli-dump.c (skip_spaces): Move to cli-utils.c. | |
4808 | * breakpoint.h (get_number, get_number_or_range): Move to | |
4809 | cli-utils.h. | |
4810 | * breakpoint.c: Include cli-utils.h. | |
4811 | (get_number_trailer, get_number, get_number_or_range) | |
4812 | (ep_skip_leading_whitespace): Move to cli-utils.c. | |
4813 | (create_breakpoint_sal, find_condition_and_thread) | |
4814 | (decode_static_tracepoint_spec, watch_command_1) | |
4815 | (watch_maybe_just_location, ep_parse_optional_if_clause) | |
4816 | (catch_fork_command_1, catch_exec_command_1) | |
4817 | (catch_syscall_command_1): Use skip_spaces, skip_to_space. | |
4818 | * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o. | |
4819 | (SUBDIR_CLI_SRCS): Add cli-utils.c. | |
4820 | (HFILES_NO_SRCDIR): Add cli-utils.h. | |
4821 | (cli-utils.o): New target. | |
4822 | ||
f67fd822 PM |
4823 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
4824 | ||
4825 | * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID | |
4826 | before calling discard_all_inferiors. | |
4827 | ||
c9def01d UW |
4828 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
4829 | ||
4830 | * opencl-lang.c (STRUCT_OCL_TYPE): Remove. | |
4831 | (struct builtin_opencl_type): Remove. | |
4832 | (builtin_opencl_type): Change return type to "struct type **". | |
4833 | (lookup_opencl_vector_type): Update caller. | |
4834 | (opencl_language_arch_info): Copy primitive type vector from gdbarch. | |
4835 | (build_opencl_types): Install plain array of "struct type *" | |
4836 | instead of "struct builtin_opencl_type". | |
4837 | ||
e3039479 UW |
4838 | 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
4839 | Ulrich Weigand <uweigand@de.ibm.com> | |
4840 | ||
4841 | * arm-linux-nat.c: Include "observer.h" and "gdbthread.h". | |
4842 | (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define. | |
4843 | (struct arm_linux_hwbp_cap): New type. | |
4844 | (arm_linux_get_hwbp_cap): New function. | |
4845 | (arm_linux_get_hw_breakpoint_count): Likewise. | |
4846 | (arm_linux_get_hw_watchpoint_count): Likewise. | |
4847 | (arm_linux_can_use_hw_breakpoint): Likewise. | |
4848 | (arm_hwbp_type): New type. | |
4849 | (arm_hwbp_control_t): Likewise. | |
4850 | (struct arm_linux_hw_breakpoint): Likewise. | |
4851 | (struct arm_linux_thread_points): Likewise. | |
4852 | (arm_threads): New global variable. | |
4853 | (arm_linux_find_breakpoints_by_tid): New function. | |
4854 | (arm_hwbp_control_initialize): Likewise. | |
4855 | (arm_hwbp_control_is_enabled): Likewise. | |
4856 | (arm_hwbp_control_disable): Likewise. | |
4857 | (arm_linux_hw_breakpoint_initialize): Likewise. | |
4858 | (arm_linux_get_hwbp_type): Likewise. | |
4859 | (arm_linux_hw_watchpoint_initialize): Likewise. | |
4860 | (arm_linux_hw_breakpoint_equal): Likewise. | |
4861 | (arm_linux_insert_hw_breakpoint1): Likewise. | |
4862 | (arm_linux_remove_hw_breakpoint1): Likewise. | |
4863 | (arm_linux_insert_hw_breakpoint): Likewise. | |
4864 | (arm_linux_remove_hw_breakpoint): Likewise. | |
4865 | (arm_linux_region_ok_for_hw_watchpoint): Likewise. | |
4866 | (arm_linux_insert_watchpoint): Likewise. | |
4867 | (arm_linux_remove_watchpoint): Likewise. | |
4868 | (arm_linux_stopped_data_address): Likewise. | |
4869 | (arm_linux_stopped_by_watchpoint): Likewise. | |
4870 | (arm_linux_watchpoint_addr_within_range): Likewise. | |
4871 | (arm_linux_new_thread): Likewise. | |
4872 | (arm_linux_thread_exit): Likewise. | |
4873 | (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint | |
4874 | related target callbacks. Register arm_linux_new_thread and | |
4875 | arm_linux_thread_exit. | |
4876 | * arm-tdep.h (arm_pc_is_thumb): Add prototype. | |
4877 | * arm-tdep.c (arm_pc_is_thumb): Make global. | |
4878 | (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint. | |
4879 | ||
b5db5dfc UW |
4880 | 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com> |
4881 | ||
4882 | * breakpoint.c (update_watchpoint): Do not attempt to recreate | |
4883 | per-frame locations while within a function epilogue. | |
4884 | ||
e25b2cfa PM |
4885 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4886 | ||
4887 | * ser-mingw.c (ser_windows_close): Reformat comment to better conform | |
4888 | to GNU coding standards. | |
4889 | ||
4af53f97 PM |
4890 | 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr> |
4891 | ||
4892 | Allow use of mingw native on Windows 95 OS. | |
e25b2cfa | 4893 | * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry. |
4af53f97 PM |
4894 | (ser_windows_close): Only call CancelIo if function exists. |
4895 | (_initialize_ser_windows): Use LoadLirary/GetProcAddress | |
4896 | to check for existence of CancelIo function in kernel32 DLL. | |
4897 | ||
d0e92d82 HZ |
4898 | 2011-02-21 Hui Zhu <teawater@gmail.com> |
4899 | ||
4900 | * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h. | |
4901 | * ax-gdb.c (gen_printf_expr_callback): New function. | |
4902 | * ax-gdb.h (gen_printf_expr_callback): Forward declare. | |
4903 | * ax-general.c (ax_memcpy): New function. | |
4904 | (ax_print): Handle "printf". | |
4905 | (ax_reqs): Ditto. | |
4906 | * ax.h (ax_memcpy): Forward declare. | |
4907 | * common/ax.def (invalid2): Removed. | |
4908 | (printf): New entry. | |
4909 | * printcmd.c (printcmd.h): New include. | |
4910 | (string_printf): New function. | |
4911 | (ui_printf): Removed. | |
4912 | (printf_command): Remove static. Call string_printf. | |
4913 | (eval_command): Call string_printf. | |
4914 | * printcmd.h: New file. | |
4915 | * tracepoint.c (validate_actionline, | |
4916 | encode_actions_1): handle printf_command. | |
4917 | ||
7d357efd MS |
4918 | 2011-02-19 Michael Snyder <msnyder@vmware.com> |
4919 | ||
4920 | * reverse.c (delete_one_bookmark): Argument is now bookmark | |
4921 | id rather than pointer to bookmark struct. | |
4922 | (delete_bookmark_command): Use get_number_or_range. | |
4923 | (goto_bookmark_command): Parse with get_number instead of strtoul. | |
4924 | (bookmark_1): New function. Print info for one bookmark. | |
4925 | (bookmarks_info): Use get_number_or_range and bookmark_1. | |
4926 | ||
7a45ebd7 MS |
4927 | 2011-02-18 Michael Snyder <msnyder@vmware.com> |
4928 | ||
f2eb0bc8 | 4929 | * thread.c (info_threads_command): Re-implement using |
7a45ebd7 | 4930 | get_number_or_range. |
65ebfb52 | 4931 | (thread_apply_command): Ditto. |
7a45ebd7 | 4932 | |
94d5e490 TT |
4933 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
4934 | ||
4935 | * common/ax.def: New file. | |
4936 | * ax.h (enum agent_op): Use ax.def. | |
4937 | * ax-general.c (aop_map): Use ax.def. | |
4938 | ||
c7f96d2b TT |
4939 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
4940 | ||
4941 | * ax-general.c (aop_map): Add pick and rot. | |
4942 | * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement. | |
4943 | <DW_OP_rot>: Implement. | |
4944 | * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants. | |
4945 | (ax_pick): Declare. | |
4946 | * ax-general.c (ax_pick): New function. | |
4947 | ||
66694b75 TT |
4948 | 2011-02-18 Tom Tromey <tromey@redhat.com> |
4949 | ||
4950 | * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc. | |
4951 | ||
eeaafae2 JK |
4952 | 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com> |
4953 | Tom Tromey <tromey@redhat.com> | |
4954 | ||
4955 | * cp-support.c (make_symbol_overload_list_namespace): Do not call | |
4956 | make_symbol_overload_list_block with NULL BLOCK. | |
4957 | * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF. | |
4958 | ||
3c3fe74c PA |
4959 | 2011-02-18 Pedro Alves <pedro@codesourcery.com> |
4960 | ||
4961 | * breakpoint.c (get_number_trailer): No longer accept a NULL PP. | |
4962 | * breakpoint.h (get_number_or_range): Declare. | |
4963 | * printcmd.c (ALL_DISPLAYS): Declare. | |
4964 | (delete_display): Reimplement taking a display pointer. | |
4965 | (undisplay_command): Accept a range of displays to delete, using | |
4966 | get_number_or_range. | |
4967 | ||
13163d80 PM |
4968 | 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr> |
4969 | ||
4970 | * c-valprint.c (c_val_print): Add embedded_offset to address | |
4971 | for arrays of unspecified length. | |
4972 | * p-valprint.c (pascal_val_print): Likewise. | |
4973 | ||
b434a28f YQ |
4974 | 2011-02-18 Yao Qi <yao@codesourcery.com> |
4975 | ||
4976 | * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ... | |
4977 | (arm_process_displaced_insn): .. here. Remove parameter INSN. | |
4978 | (thumb_process_displaced_insn): New. | |
4979 | * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update | |
4980 | call to arm_process_displaced_insn. | |
4981 | * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn. | |
4982 | ||
9f6f94ff TT |
4983 | 2011-02-17 Tom Tromey <tromey@redhat.com> |
4984 | ||
4985 | * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare. | |
4986 | * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from | |
4987 | compile_dwarf_to_ax. No longer static. Call | |
4988 | dwarf2_compile_cfa_to_ax. | |
4989 | (locexpr_tracepoint_var_ref): Update. | |
4990 | (loclist_tracepoint_var_ref): Update. | |
4991 | * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare. | |
4992 | * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame' | |
4993 | argument; add 'gdbarch' and 'pc'. | |
4994 | (dwarf2_compile_cfa_to_ax): New function. | |
4995 | (dwarf2_frame_cache): Update. | |
4996 | ||
e67ad678 JB |
4997 | 2011-02-17 Joel Brobecker <brobecker@adacore.com> |
4998 | ||
4999 | * ada-lang.c (ada_type_of_array): Fix the size of the array | |
5000 | in the case of an unconstrained packed array. | |
5001 | ||
946ebb0d YQ |
5002 | 2011-02-17 Yao Qi <yao@codesourcery.com> |
5003 | ||
5004 | * common/Makefile.in: Add more targets for make. | |
5005 | ||
1ba1b353 TT |
5006 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
5007 | ||
5008 | * dwarf2loc.c (unimplemented): Fix typo. | |
5009 | ||
b1bfef65 TT |
5010 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
5011 | ||
5012 | * dwarf2loc.c (unimplemented): Handle unnamed opcodes. | |
5013 | (compile_dwarf_to_ax) <default>: Use unimplemented. | |
5014 | <DW_OP_deref>: Update. | |
5015 | (disassemble_dwarf_expression): Update. | |
5016 | * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument. | |
5017 | (decode_locdesc): Update. | |
5018 | * dwarf2expr.h (dwarf_stack_op_name): Update. | |
5019 | ||
5f1e6f19 TT |
5020 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
5021 | ||
5022 | * ax.h (struct aop_map) <name>: Now const. | |
5023 | ||
a0c78a73 PA |
5024 | 2011-02-16 Tom Tromey <tromey@redhat.com> |
5025 | ||
5026 | * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other | |
5027 | than axs_rvalue. | |
5028 | ||
946ebb0d | 5029 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
a42244db YQ |
5030 | |
5031 | * infrun.c (get_displaced_step_closure_by_addr): New. | |
5032 | * inferior.h: Declare it. | |
5033 | * arm-tdep.c: (arm_pc_is_thumb): Call | |
5034 | get_displaced_step_closure_by_addr. Adjust MEMADDR if it | |
5035 | returns non-NULL. | |
5036 | ||
08807d5a PA |
5037 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
5038 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5039 | ||
5040 | gdb/ | |
5041 | * tracepoint.c (memrange_sortmerge): Fix list A's end calculation. | |
5042 | ||
29976f3f PA |
5043 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
5044 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5045 | ||
5046 | * value.c (value_contents_copy_raw): Extend describing comment. | |
5047 | Assert that the destination contents we're overwriting are wholly | |
5048 | available. | |
fb68ae73 | 5049 | (value_contents_copy): Extend describing comment. |
29976f3f | 5050 | |
cd24cfaa PA |
5051 | 2011-02-16 Pedro Alves <pedro@codesourcery.com> |
5052 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5053 | ||
5054 | * value.c (value_available_contents_eq): Remove redundant local | |
5055 | variables. Fix available contents comparision. | |
5056 | * value.h (value_available_contents_eq): Extend describing | |
5057 | comment. | |
5058 | ||
60bbf338 YQ |
5059 | 2011-02-16 Yao Qi <yao@codesourcery.com> |
5060 | ||
5061 | * thread.c (info_threads_command): Add missing i18n markup and remove | |
5062 | trailing newline. | |
5063 | ||
17450429 PP |
5064 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
5065 | ||
5066 | * breakpoint.c (longjmp_names): New variable. | |
5067 | (struct breakpoint_objfile_data): New type. | |
5068 | (breakpoint_objfile_key): New variable. | |
5069 | (msym_not_found): New variable. | |
5070 | (msym_not_found_p): New predicate. | |
5071 | (get_breakpoint_objfile_data): New function. | |
5072 | (create_overlay_event_breakpoint): Check per-objfile cache for | |
5073 | symbols first. | |
5074 | (create_longjmp_master_breakpoint): Likewise. | |
5075 | (create_std_terminate_master_breakpoint): Likewise. | |
5076 | (create_exception_master_breakpoint): Likewise. | |
5077 | (_initialize_breakpoint): Register per-objfile data key. | |
5078 | ||
af02033e PP |
5079 | 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com> |
5080 | ||
5081 | * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate | |
5082 | parameter value. | |
5083 | (create_longjmp_master_breakpoint): Loop over longjmp names. | |
5084 | (create_std_terminate_master_breakpoint): Const-propagate parameter | |
5085 | value. | |
5086 | (update_breakpoints_after_exec): Adjust. | |
5087 | (breakpoint_re_set): Adjust. | |
5088 | ||
60f98dde MS |
5089 | 2011-02-15 Michael Snyder <msnyder@vmware.com> |
5090 | ||
cdf99611 MS |
5091 | * thread.c (info_threads_command): Process arg as thread id, |
5092 | or list of thread ids. | |
5093 | (thread_find_command): New command. | |
5094 | (_initialize_thread): Document argument for info threads. | |
5095 | Document 'thread find' command. | |
5096 | * NEWS: Document new command "thread find". | |
60f98dde | 5097 | |
0feedb2c JK |
5098 | 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
5099 | ||
5100 | * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'. | |
5101 | * aclocal.m4: Regenerated with aclocal-1.11.1. | |
5102 | * common/configure: Regenerate with autoconf-2.64. | |
5103 | ||
648cd113 KW |
5104 | 2011-02-15 Ken Werner <ken.werner@de.ibm.com> |
5105 | ||
5106 | * opencl-lang.c (build_opencl_types): Set the size of the built-in | |
5107 | bool data type to a size of one byte. | |
5108 | ||
5657161f PA |
5109 | 2011-02-15 Pedro Alves <pedro@codesourcery.com> |
5110 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5111 | ||
5112 | * target.c (memory_xfer_live_readonly_partial): Document where to | |
5113 | look for interface description. | |
5114 | ||
494e194e YQ |
5115 | 2011-02-15 Yao Qi <yao@codesourcery.com> |
5116 | ||
5117 | PR tdep/12352 | |
5118 | * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in | |
5119 | order to store PC value on stack instead of text section. | |
5120 | ||
d9492458 TJB |
5121 | 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5122 | ||
5123 | * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for | |
5124 | the EFP register set size. | |
5125 | (efpr_pseudo_register_read): Use regcache_raw_read_part to read | |
5126 | data from the VMX register. | |
5127 | (efpr_pseudo_register_write): Use regcache_raw_write_part to read | |
5128 | and write data from/to the VMX register. | |
5129 | ||
cdf99611 MS |
5130 | 2011-02-14 Michael Snyder <msnyder@vmware.com> |
5131 | ||
5132 | * command.h (enum command_class): New class 'no_set_class', for | |
5133 | "show" commands without a corresponding "set" command. | |
5134 | * value.c (_initialize_values): Use 'no_set_class' for "show values". | |
5135 | * copying.c (_initialize_copying): Ditto for "show copying" and | |
5136 | "show warranty". | |
5137 | * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and | |
5138 | "show version". | |
5139 | * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for | |
5140 | which there is no corresponding "set" command (eg. "show copying"). | |
5141 | ||
424447ee PA |
5142 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5143 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5144 | ||
5145 | * exec.c (section_table_available_memory): Change `len' parameter | |
5146 | type to ULONGEST. | |
5147 | * exec.h (section_table_available_memory): Ditto. | |
5148 | * value.h (read_value_memory): Rename the `offset' parameter to | |
5149 | `embedded_offset'. | |
5150 | ||
c0f61f9c | 5151 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
e0ccc0c7 | 5152 | Jan Kratochvil <jan.kratochvil@redhat.com> |
c0f61f9c PA |
5153 | |
5154 | * memrange.c (compare_mem_ranges): Mention sort order in | |
5155 | describing comment. | |
5156 | (normalize_mem_ranges): Add comment. Fix ra->length calculation. | |
5157 | * tracepoint.c (traceframe_available_memory): Extend comment to | |
5158 | mention what happens to RESULT when the target does not support | |
5159 | the query. | |
5160 | ||
6bfc80c7 PA |
5161 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5162 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
5163 | ||
5164 | * value.c (mark_value_bytes_unavailable): Fix indexing the `bef' | |
5165 | range. | |
5166 | ||
e7303042 PA |
5167 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5168 | ||
5169 | * value.c (value_bits_valid, value_bits_synthetic_pointer): | |
5170 | No longer handle NULL values. | |
5171 | ||
8af8e3bc PA |
5172 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5173 | ||
5174 | * exceptions.h (NOT_AVAILABLE_ERROR): New error. | |
5175 | * value.c: Include "exceptions.h". | |
5176 | (require_available): Throw NOT_AVAILABLE_ERROR instead of a | |
5177 | generic error. | |
5178 | * cp-abi.c: Include gdb_assert.h. | |
5179 | (baseclass_offset): Add `embedded_offset' and `val' parameters. | |
5180 | Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR | |
5181 | errors. | |
5182 | * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val' | |
5183 | parameters. No longer returns -1 on error. | |
5184 | (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and | |
5185 | `val' parameters. | |
5186 | * cp-valprint.c: Include exceptions.h. | |
5187 | (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching | |
5188 | the baseclass_offset. Handle unavailable base classes. Use | |
5189 | val_print_invalid_address. | |
5190 | * p-valprint.c: Include exceptions.h. | |
5191 | (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors | |
5192 | when fetching the baseclass_offset. No longer expect | |
5193 | baseclass_offset returning -1. Handle unavailable base classes. | |
5194 | Use val_print_invalid_address. | |
5195 | * valops.c (dynamic_cast_check_1): Rename `contents' parameter to | |
5196 | `valaddr' parameter, and change its type to gdb_byte pointer. Add | |
5197 | `embedded_offset' and `val' parameters. Adjust. | |
5198 | (dynamic_cast_check_2): Rename `contents' parameter to `valaddr' | |
5199 | parameter, and change its type to gdb_byte pointer. Add | |
5200 | `embedded_offset' and `val' parameters. Adjust. No longer expect | |
5201 | baseclass_offset returning -1. | |
5202 | (value_dynamic_cast): Use value_contents_for_printing rather than | |
5203 | value_contents. Adjust. | |
5204 | (search_struct_field): No longer expect baseclass_offset returning | |
5205 | -1. | |
5206 | (search_struct_method): If reading memory from the target is | |
5207 | necessary, wrap it in a new value to pass to baseclass_offset. No | |
5208 | longer expect baseclass_offset returning -1. | |
5209 | (find_method_list): No longer expect baseclass_offset returning | |
5210 | -1. Use value_contents_for_printing rather than value_contents. | |
5211 | * valprint.c (val_print_invalid_address): New function. | |
5212 | * valprint.h (val_print_invalid_address): Declare. | |
5213 | * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset' | |
5214 | and `val' parameters. No longer expect baseclass_offset returning | |
5215 | -1. Adjust. | |
5216 | * gnu-v2-abi.c: Include "exceptions.h". | |
5217 | (gnuv2_baseclass_offset): Add `embedded_offset' and `val' | |
5218 | parameters. Handle unavailable memory. Recurse through | |
5219 | gnuv2_baseclass_offset directly, rather than through | |
5220 | baseclass_offset. No longer returns -1 on not found, instead | |
5221 | throw an error. | |
5222 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and | |
5223 | `val' parameters. Adjust. | |
5224 | ||
1b28d0b3 PA |
5225 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5226 | ||
5227 | * tracepoint.c (memrange_sortmerge): Don't merge ranges that are | |
5228 | almost but not quite adjacent. | |
5229 | ||
ec0a52e1 PA |
5230 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5231 | ||
5232 | * value.h (value_entirely_available): Declare. | |
5233 | * value.c (value_entirely_available): New function. | |
5234 | * c-valprint.c (c_value_print): Don't try fetching the pointer's | |
5235 | real type if the pointer is unavailable. | |
5236 | ||
24e6bcee PA |
5237 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5238 | ||
5239 | * valops.c (value_repeat): Use read_value_memory instead of | |
5240 | read_memory. | |
5241 | ||
39d37385 PA |
5242 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5243 | ||
5244 | * value.h (value_contents_copy, value_contents_copy_raw): Declare. | |
5245 | * value.c (value_contents_copy_raw, value_contents_copy): New | |
5246 | functions. | |
5247 | (value_primitive_field): Use value_contents_copy_raw instead of | |
5248 | memcpy. | |
5249 | * valops.c (value_fetch_lazy): Use value_contents_copy instead of | |
5250 | memcpy. | |
5251 | (value_array, value_slice): Ditto. | |
5252 | * valarith.c (value_subscripted_rvalue): Use | |
5253 | value_contents_copy_raw instead of memcpy. | |
5254 | ||
a3d34bf4 PA |
5255 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5256 | ||
5257 | <unavailable> references. | |
5258 | ||
5259 | * valops.c (get_value_at): Use value_from_contents_and_address, | |
5260 | avoiding read_memory. | |
5261 | ||
9fc6d940 PA |
5262 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5263 | ||
5264 | * c-valprint.c (c_val_print): Print a string with unavailable | |
5265 | contents as an array. | |
5266 | ||
5467c6c8 PA |
5267 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5268 | ||
5269 | * value.h (unpack_bits_as_long): Delete declaration. | |
5270 | (unpack_value_bits_as_long): Declare. | |
5271 | (unpack_value_field_as_long): Declare. | |
5272 | (value_field_bitfield): Declare. | |
5273 | * value.c (unpack_bits_as_long): Rename to... | |
5274 | (unpack_value_bits_as_long_1): ... this. Add embedded_offset and | |
5275 | value parameters. Return the extracted result in a new output | |
5276 | parameter. If the value contents are unavailable, return false, | |
5277 | otherwise return true. | |
5278 | (unpack_value_bits_as_long): New. | |
5279 | (unpack_field_as_long): Rename to... | |
5280 | (unpack_value_field_as_long_1): ... this. Add embedded_offset and | |
5281 | Add embedded_offset and value parameters. Return the extracted | |
5282 | result in a new output parameter. If the value contents are | |
5283 | unavailable, return false, otherwise return true. | |
5284 | (unpack_value_field_as_long): New. | |
5285 | (unpack_field_as_long_1): New. | |
5286 | (unpack_field_as_long): Reimplement as wrapper around | |
5287 | unpack_value_field_as_long_1. | |
5288 | (value_field_bitfield): New function. | |
5289 | * valops.c (value_fetch_lazy): When fetching a bitfield, use | |
5290 | unpack_value_bits_as_long. Mark the value as unavailable, if it | |
5291 | is unavailable. | |
5292 | * jv-valprint.c (java_print_value_fields): Use | |
5293 | value_field_bitfield. | |
5294 | * p-valprint.c (pascal_object_print_value_fields): Use | |
5295 | value_field_bitfield. | |
5296 | * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield. | |
5297 | ||
3158c6ed PA |
5298 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5299 | ||
5300 | * value.c (get_internalvar_integer): Also return the int value of | |
5301 | TYPE_CODE_INT INTERNALVAR_VALUE values. | |
5302 | (set_internalvar): Don't special case TYPE_CODE_INT. | |
5303 | ||
9fbdca0d PA |
5304 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5305 | ||
5306 | * value.c (struct internalvar) <enum internalvar_kind>: Remove | |
5307 | INTERNALVAR_POINTER. | |
5308 | <pointer>: Delete. | |
5309 | (value_of_internalvar): Remove INTERNALVAR_POINTER handling. | |
5310 | (set_internalvar): Remove special TYPE_CODE_PTR handling. | |
5311 | (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling. | |
5312 | ||
c8c1c22f PA |
5313 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5314 | ||
5315 | * value.h (value_available_contents_eq): Declare. | |
5316 | * value.c (find_first_range_overlap): New function. | |
5317 | (value_available_contents_eq): New function. | |
5318 | * valprint.c (val_print_array_elements): Use | |
5319 | value_available_contents_eq. | |
5320 | * ada-valprint.c (val_print_packed_array_elements): Use | |
5321 | value_available_contents_eq. | |
5322 | * jv-valprint.c (java_value_print): Use | |
5323 | value_available_contents_eq. | |
5324 | ||
e6e4e701 PA |
5325 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5326 | ||
5327 | * target.c (target_read_live_memory): New function. | |
5328 | (memory_xfer_live_readonly_partial): New. | |
5329 | (memory_xfer_partial): If reading from a traceframe, fallback to | |
5330 | reading unavailable read-only memory from read-only regions of | |
5331 | live target memory. | |
5332 | * tracepoint.c (disconnect_tracing): Adjust. | |
5333 | (set_current_traceframe): New, factored out from | |
5334 | set_traceframe_number. | |
5335 | (set_traceframe_number): Reimplement to only change the traceframe | |
5336 | number on the GDB side. | |
5337 | (do_restore_current_traceframe_cleanup): Adjust. | |
5338 | (make_cleanup_restore_traceframe_number): New. | |
5339 | (cur_traceframe_number): New global. | |
5340 | (tfile_open): Set cur_traceframe_number to no traceframe. | |
5341 | (set_tfile_traceframe): New function. | |
5342 | (tfile_trace_find): If looking up a traceframe using any method | |
5343 | other than by number, make sure the current tfile traceframe | |
5344 | matches gdb's current traceframe. Update the current tfile | |
5345 | traceframe if the lookup succeeded. | |
5346 | (tfile_fetch_registers, tfile_xfer_partial) | |
5347 | (tfile_get_trace_state_variable_value): Make sure the remote | |
5348 | traceframe matches gdb's current traceframe. | |
5349 | * remote.c (remote_traceframe_number): New global. | |
5350 | (remote_open_1): Set it to -1. | |
5351 | (set_remote_traceframe): New function. | |
5352 | (remote_fetch_registers, remote_store_registers) | |
5353 | (remote_xfer_memory, remote_xfer_partial) | |
5354 | (remote_get_trace_state_variable_value): Make sure the remote | |
5355 | traceframe matches gdb's current traceframe. | |
5356 | (remote_trace_find): If looking up a traceframe using any method | |
5357 | other than by number, make sure the current remote traceframe | |
5358 | matches gdb's current traceframe. Update the current remote | |
5359 | traceframe if the lookup succeeded. | |
5360 | * infrun.c (fetch_inferior_event): Adjust. | |
5361 | * tracepoint.h (set_current_traceframe): Declare. | |
5362 | (get_traceframe_number, set_traceframe_number): Add describing | |
5363 | comments. | |
5364 | ||
e6ca34fc PA |
5365 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5366 | ||
5367 | Mark pieces of values as unavailable if the corresponding memory | |
5368 | is unavailable. | |
5369 | ||
5370 | * valops.c: Include tracepoint.h. | |
5371 | (value_fetch_lazy): Use read_value_memory. | |
5372 | (read_value_memory): New. | |
5373 | * value.h (read_value_memory): Declare. | |
5374 | * dwarf2loc.c (read_pieced_value): Use read_value_memory. | |
5375 | * exec.c (section_table_available_memory): New function. | |
5376 | * exec.h (section_table_available_memory): Declare. | |
5377 | ||
2a7498d8 PA |
5378 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5379 | ||
5380 | * Makefile.in (SFILES): Add memrange.c. | |
5381 | (HFILES_NO_SRCDIR): Add memrange.h. | |
5382 | (COMMON_OBS): Add memrange.o. | |
5383 | * memrange.c: New file. | |
5384 | * memrange.h: New file. | |
5385 | * tracepoint.c: Include memrange.h. | |
5386 | (struct mem_range): Delete. | |
5387 | (mem_range_s): Delete. | |
5388 | (traceframe_available_memory): New function. | |
5389 | * tracepoint.h (traceframe_available_memory): Declare. | |
5390 | ||
b3b9301e PA |
5391 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5392 | ||
5393 | * target.h (struct traceframe_info): Forward declare. | |
5394 | (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO. | |
5395 | (struct target_ops) <to_traceframe_info>: New field. | |
5396 | (target_traceframe_info): New. | |
5397 | * target.c (update_current_target): Inherit and default | |
5398 | to_traceframe_info. | |
5399 | * remote.c (PACKET_qXfer_traceframe_info): New. | |
5400 | (remote_protocol_features): Register qXfer:traceframe-info:read. | |
5401 | (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO. | |
5402 | (remote_traceframe_info): New. | |
5403 | (init_remote_ops): Install it. | |
5404 | (_initialize_remote): Install "set/show remote traceframe-info" | |
5405 | commands. | |
5406 | * tracepoint.h (parse_traceframe_info): Declare. | |
5407 | * tracepoint.c (struct mem_range): New. | |
5408 | (mem_range_s): New typedef. | |
5409 | (struct traceframe_info): New. | |
5410 | (traceframe_info): New global. | |
5411 | (free_traceframe_info): New function. | |
5412 | (clear_traceframe_info): New function. | |
5413 | (start_tracing, tfind_1, set_traceframe_number): Clear traceframe | |
5414 | info. | |
5415 | (build_traceframe_info): New function. | |
5416 | (tfile_traceframe_info): New function. | |
5417 | (init_tfile_ops): Install tfile_traceframe_info. | |
5418 | (traceframe_info_start_memory, free_result): New functions. | |
5419 | (memory_attributes, traceframe_info_elements): New globals. | |
5420 | (parse_traceframe_info, get_traceframe_info): New functions. | |
5421 | * features/traceframe-info.dtd: New file. | |
5422 | * Makefile.in (XMLFILES): Add traceframe-info.dtd. | |
5423 | ||
4e07d55f PA |
5424 | 2011-02-14 Pedro Alves <pedro@codesourcery.com> |
5425 | ||
5426 | Base support for <unavailable> value contents. | |
5427 | ||
4e07d55f PA |
5428 | * value.h (value_bytes_available): Declare. |
5429 | (mark_value_bytes_unavailable): Declare. | |
5430 | * value.c (struct range): New struct. | |
5431 | (range_s): New typedef. | |
5432 | (ranges_overlap): New function. | |
5433 | (range_lessthan): New function. | |
5434 | (ranges_contain_p): New function. | |
5435 | (struct value) <unavailable>: New field. | |
5436 | (value_bytes_available): New function. | |
5437 | (mark_value_bytes_unavailable): New function. | |
5438 | (require_not_optimized_out): Constify parameter. | |
5439 | (require_available): New function. | |
5440 | (value_contents_all, value_contents): Require all bytes be | |
5441 | available. | |
5442 | (value_free): Free `unavailable'. | |
5443 | (value_copy): Copy `unavailable'. | |
5444 | * valprint.h (val_print_unavailable): Declare. | |
5445 | * valprint.c (valprint_check_validity): Rename `offset' parameter | |
5446 | to `embedded_offset'. If printing a scalar, check whether the | |
5447 | value chunk is available. | |
5448 | (val_print_unavailable): New. | |
5449 | (val_print_scalar_formatted): Check whether the value is | |
5450 | available. | |
5451 | * python/py-prettyprint.c (apply_val_pretty_printer): Refuse | |
5452 | pretty-printing unavailable values. | |
5453 | ||
bc9a5551 JK |
5454 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
5455 | ||
5456 | Fix const/volatile qualifiers of C++ types, PR c++/12328. | |
5457 | * c-typeprint.c (c_type_print_args): Update the function comment. New | |
5458 | variable param_type, initialize it. Remove const/volatile qualifiers | |
5459 | for language_cplus and !show_artificial. Use param_type. | |
5460 | ||
93b55aa1 JK |
5461 | 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com> |
5462 | ||
5463 | * symtab.c (find_pc_sect_line): New variable objfile, initialize it | |
5464 | from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S. | |
5465 | * symtab.h (struct symtab) <next>: Comment extension. | |
5466 | ||
181d9476 YQ |
5467 | 2011-02-12 Yao Qi <yao@codesourcery.com> |
5468 | ||
5469 | * Makefile.in (CLEANDIRS): Remove duplicated common dir. | |
5470 | ||
b708a5c7 JK |
5471 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
5472 | ||
5473 | * common/Makefile.in: Add copyright header. | |
5474 | ||
c5187ac6 PA |
5475 | 2011-02-11 Pedro Alves <pedro@codesourcery.com> |
5476 | ||
5477 | * infrun.c (proceed): Move switching out and in of tfind mode from | |
5478 | here ... | |
5479 | (fetch_inferior_event): ... to here. | |
5480 | ||
4f3e6fb7 YQ |
5481 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
5482 | ||
5483 | * Makefile.in: Remove signals.o from COMMON_OBS. Link | |
5484 | libcommon.a. | |
5485 | * configure.ac: Add common to sub dir. | |
5486 | * configure: Regenerate. | |
5487 | ||
b708a5c7 JK |
5488 | 2011-02-11 Yao Qi <yao@codesourcery.com> |
5489 | ||
5490 | Build libcommon.a. | |
5491 | ||
5492 | * common/Makefile.in: New. | |
5493 | * common/configure.ac: New. | |
5494 | * common/aclocal.m4: New. | |
5495 | * common/configure: Generate. | |
5496 | ||
2287cc7e PA |
5497 | 2011-02-10 Pedro Alves <pedro@codesourcery.com> |
5498 | ||
5499 | * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right | |
5500 | side of the parenthesis. | |
5501 | ||
5502 | Merge from GCC: | |
5503 | 2010-07-13 Jakub Jelinek <jakub@redhat.com> | |
fc013618 | 5504 | * vec.h (VEC_block_remove): Fix comment. |
2287cc7e | 5505 | |
fd62cb89 MS |
5506 | 2011-02-08 Michael Snyder <msnyder@vmware.com> |
5507 | ||
5508 | * linux-nat.c (linux_nat_filter_event): Fix typo in comment. | |
5509 | ||
56d2815c JK |
5510 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
5511 | ||
5512 | * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes | |
5513 | in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd, | |
5514 | psubd and paddd. | |
5515 | ||
4f7d61a8 JK |
5516 | 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
5517 | ||
5518 | PR 12361. | |
5519 | * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to | |
5520 | phsubsw. | |
5521 | (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0. | |
5522 | (i386_process_record) <0x0f3807>: Fix the comment to phsubsw. | |
5523 | ||
54fcddd0 UW |
5524 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
5525 | ||
5526 | * dwarf2read.c (read_subroutine_type): Set special calling | |
5527 | convention flag for functions compiled by IBM XL C for OpenCL. | |
5528 | * ppc-sysv-tdep.c: Include "dwarf2.h" | |
5529 | (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types | |
5530 | calling convention. | |
5531 | (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement | |
5532 | IBM OpenCL vector types calling convention. | |
5533 | (ppc_sysv_abi_return_value): Pass through FUNC_TYPE. | |
5534 | (ppc_sysv_abi_broken_return_value): Likewise. | |
5535 | (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector | |
5536 | types calling convention. | |
5537 | (ppc64_sysv_abi_return_value): Likewise. | |
5538 | * spu-tdep.c: Include "dwarf2.h" | |
5539 | (spu_return_value): Implement IBM OpenCL vector types calling | |
5540 | convention. | |
5541 | ||
d6dafb7c UW |
5542 | 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com> |
5543 | ||
5544 | * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement | |
5545 | correct ABI for AltiVec vector arguments. | |
5546 | ||
32b72a42 PA |
5547 | 2011-02-07 Pedro Alves <pedro@codesourcery.com> |
5548 | ||
5549 | * valprint.c (val_print): Extend comment. | |
5550 | * ada-valprint.c (ada_valprint): Rewrite comment deferring | |
5551 | interface explanation to val_print. | |
5552 | (ada_val_print_array): Adjust comment to current interface. | |
5553 | (print_field_values): Adjust comment to current interface. | |
5554 | * c-valprint.c (c_val_print): Rewrite comment deferring interface | |
5555 | explanation to val_print. | |
5556 | * f-valprint.c (f_val_print): Ditto. | |
5557 | * jv-valprint.c (java_val_print): Ditto. | |
5558 | * m2-valprint.c (m2_val_print): Ditto. | |
5559 | * p-valprint.c (pascal_val_print): Ditto. | |
5560 | ||
9998af43 TJB |
5561 | 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5562 | ||
5563 | * breakpoint.c (parse_breakpoint_sals): Fix description. | |
5564 | ||
505500db | 5565 | 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com> |
9998af43 | 5566 | Oguz Kayral <oguzkayral@gmail.com> |
505500db SW |
5567 | |
5568 | * python/py-inferior.c (python_on_normal_stop): New function. | |
5569 | (python_on_resume): New function. | |
5570 | (python_inferior_exit): New function. | |
5571 | (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and | |
5572 | inferior_exit observers. | |
5573 | * python/py-evtregistry.c: New file. | |
5574 | * python/py-threadevent.c : New file. | |
5575 | * python/py-event.c: New file. | |
5576 | * python/py-evts.c: New file. | |
5577 | * python/py-continueevent.c: New file. | |
5578 | * python/py-bpevent.c: New file. | |
5579 | * python/py-signalevent.c: New file. | |
5580 | * python/py-exetiedevent.c: New file. | |
5581 | * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function. | |
5582 | Move struct breakpoint_object from here... | |
5583 | * python/python-internal.h: ... to here. | |
5584 | * python/py-event.h: New file. | |
5585 | * python/py-events.h: New file. | |
5586 | * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o, | |
5587 | py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o, | |
5588 | py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o. | |
5589 | (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c, | |
5590 | py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c, | |
5591 | py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c. | |
5592 | Add build rules for all the above. | |
5593 | ||
9e0ac564 TT |
5594 | 2011-02-04 Tom Tromey <tromey@redhat.com> |
5595 | ||
5596 | * dwarf2read.c (dwarf2_section_empty_p): New function. | |
5597 | (dwarf2_read_section): Use dwarf2_section_empty_p. | |
5598 | (dwarf2_section_size): New function. | |
5599 | (dwarf2_get_section_info): Unconditionally read section. | |
5600 | (dwarf2_read_index): Use dwarf2_section_empty_p. | |
5601 | (partial_read_comp_unit_head): Use dwarf2_section_size. | |
5602 | (dwarf2_symbol_mark_computed): Likewise. | |
5603 | ||
eee5b35e DD |
5604 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
5605 | ||
5606 | * NEWS: Add item for "catch syscall" on mips*-linux* targets. | |
5607 | ||
385203ed DD |
5608 | 2011-02-04 David Daney <ddaney@caviumnetworks.com> |
5609 | ||
5610 | * mips-linux-tdep.c: Include xml-syscall.h. | |
5611 | (mips_linux_get_syscall_number): New function. | |
5612 | (mips_linux_init_abi): Add calls to | |
5613 | mips_linux_get_syscall_number() and set_xml_syscall_file_name(). | |
5614 | * data-directory/Makefile.in (SYSCALLS_FILES): Add | |
5615 | mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml | |
5616 | * syscalls/mips-n32-linux.xml: New file. | |
5617 | * syscalls/mips-n64-linux.xml: New file. | |
5618 | * syscalls/mips-o32-linux.xml: New file. | |
5619 | ||
9277c30c UW |
5620 | 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org> |
5621 | ||
5622 | * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries. | |
5623 | Complain about inverted range entries. | |
5624 | (dwarf2_record_block_ranges): Likewise. | |
5625 | ||
a3be7890 TJB |
5626 | 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com> |
5627 | ||
5628 | Fix some typos. | |
5629 | * breakpoint.c (update_watchpoint): Fix name of the | |
5630 | update_global_location_list function. | |
5631 | (print_one_breakpoint): Fix typo. | |
5632 | (_initialize_breakpoint): Remove extra space in hbreak help | |
5633 | string. | |
5634 | * breakpoint.h (struct bp_location) <length>: Fix field | |
5635 | description. | |
5636 | ||
041274d8 PA |
5637 | 2011-02-04 Pedro Alves <pedro@codesourcery.com> |
5638 | ||
5639 | * regcache.c (registers_changed_ptid): Don't explictly always | |
5640 | clear `current_regcache'. Only clear current_thread_ptid and | |
5641 | current_thread_arch when PTID matches. Only reinit the frame | |
5642 | cache if PTID matches the current inferior_ptid. Move alloca(0) | |
5643 | call to ... | |
5644 | (registers_changed): ... here. | |
5645 | ||
c1c2ab58 UW |
5646 | 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org> |
5647 | ||
5648 | * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that | |
5649 | starts with __stack_chk_guard as stack guard symbol. | |
5650 | ||
9011945e AB |
5651 | 2011-02-03 Andrew Burgess <aburgess@broadcom.com> |
5652 | ||
5653 | * disasm.c (compare_lines): Handle the end of sequence markers | |
5654 | within the line table to better support disassembling over | |
5655 | compilation unit boundaries. | |
5656 | ||
e0634ccf UW |
5657 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
5658 | ||
5659 | * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB | |
5660 | arguments. Skip in-prologue calls to glibc __aeabi_read_tp | |
5661 | implementation even if no symbols are available. | |
5662 | (thumb_analyze_prologue): Update call to skip_prologue_function. | |
5663 | (arm_analyze_prologue): Likewise. | |
5664 | ||
0e9e9abd UW |
5665 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
5666 | ||
5667 | * arm-tdep.c: Include "observer.h". | |
5668 | (arm_prologue_this_id): Use frame PC if get_frame_func returns 0. | |
5669 | (arm_exidx_data_key): New static variable. | |
5670 | (struct arm_exidx_entry, arm_exidx_entry_s): New data types. | |
5671 | (struct arm_exidx_data): Likewise. | |
5672 | (arm_exidx_data_free): New function. | |
5673 | (arm_compare_exidx_entries): Likewise. | |
5674 | (arm_obj_section_from_vma): Likewise. | |
5675 | (arm_exidx_new_objfile): Likewise. | |
5676 | (arm_find_exidx_entry): Likewise. | |
5677 | (arm_exidx_fill_cache): Likewise. | |
5678 | (arm_exidx_unwind_sniffer): Likewise. | |
5679 | (arm_exidx_unwind): New global variable. | |
5680 | (arm_gdbarch_init): Append unwinder arm_exidx_unwind. | |
5681 | (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile | |
5682 | observer. Register arm_exidx_data_key as objfile data. | |
5683 | ||
2e9e421f UW |
5684 | 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org> |
5685 | ||
5686 | * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break | |
5687 | due to accessing uninitialized variable. Fix indentation. | |
5688 | ||
580688f3 PA |
5689 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
5690 | ||
5691 | * c-valprint.c (c_value_print): When doing virtual base pointer | |
5692 | adjustment, create a new value with adjusted contents rather than | |
5693 | changing the contents of the value being printed (and getting it | |
5694 | wrong). | |
5695 | ||
3d2c1d41 PA |
5696 | 2011-02-02 Pedro Alves <pedro@codesourcery.com> |
5697 | ||
5698 | * xml-support.c (xml_find_attribute): New. | |
5699 | (xinclude_start_include): Use it. | |
5700 | * xml-support.h (xml_find_attribute): Declare. | |
5701 | * memory-map.c (memory_map_start_memory) | |
5702 | (memory_map_start_property): Use xml_find_attribute. | |
5703 | * osdata.c (osdata_start_osdata, osdata_start_column): Use | |
5704 | xml_find_attribute. | |
5705 | * remote.c (start_thread): Use xml_find_attribute. | |
5706 | * solib-target.c (library_list_start_segment) | |
5707 | (library_list_start_section, library_list_start_library) | |
5708 | (library_list_start_list): Use xml_find_attribute. | |
5709 | * xml-tdesc.c (tdesc_start_target, tdesc_start_feature) | |
5710 | (tdesc_start_union, tdesc_start_struct, tdesc_start_flags) | |
5711 | (tdesc_start_field): Use xml_find_attribute. | |
5712 | ||
0af3e2db UW |
5713 | 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com> |
5714 | ||
5715 | * opencl-lang.c (STRINGIFY): Rename to OCL_STRING. | |
5716 | (BUILD_OCL_VTYPES): Update. | |
5717 | ||
c1039e3c JB |
5718 | 2011-02-02 Joel Brobecker <brobecker@adacore.com> |
5719 | ||
5720 | * configure.ac: Work around non-GNU sed limitation when computing | |
5721 | python version number. | |
5722 | * configure: Regenerate. | |
5723 | ||
600ea1be JK |
5724 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5725 | ||
5726 | Fix debug printing of TYPE_INSTANCE. | |
5727 | * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New. | |
5728 | (dump_subexp_body_standard) <TYPE_INSTANCE>: New. | |
5729 | ||
56c12414 JK |
5730 | 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
5731 | ||
5732 | Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL, | |
5733 | OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME, | |
5734 | OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT. | |
5735 | * ada-operator.inc: Rename the file to ... | |
5736 | * ada-operator.def: ... here, wrap all the entries by macro OP. | |
5737 | * expprint.c (op_name_standard): Remove all the entries. Include | |
5738 | "std-operator.def" instead. | |
5739 | * expression.h (enum exp_opcode): Include "std-operator.def" and | |
5740 | "ada-operator.def". Move all the entries ... | |
5741 | * std-operator.def: ... here, wrap all the entries by macro OP. | |
5742 | ||
c52b559d PP |
5743 | 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com> |
5744 | ||
5745 | * breakpoint.h (remove_jit_event_breakpoints): New prototype. | |
5746 | * breakpoint.c (remove_jit_event_breakpoints): New function. | |
5747 | * jit.c (jit_descriptor_addr): Delete. | |
5748 | (registering_code): Delete. | |
5749 | (clear_int): Delete. | |
5750 | (jit_inferior_data): New variable. | |
5751 | (struct jit_inferior_data): New type. | |
5752 | (get_jit_inferior_data): New function. | |
5753 | (jit_inferior_data_cleanup): New function. | |
5754 | (jit_read_descriptor): Adjust. | |
5755 | (jit_register_code): Adjust. | |
5756 | (jit_breakpoint_re_set_internal): New function; move code here ... | |
5757 | (jit_inferior_init): ... from here. | |
5758 | (jit_breakpoint_re_set): Adjust. | |
5759 | (jit_reset_inferior_data_and_breakpoints): New function. | |
5760 | (jit_inferior_created_observer): Adjust. | |
5761 | (jit_inferior_exit_hook): Adjust. | |
5762 | (jit_executable_changed_observer): New function. | |
5763 | (jit_event_handler): Adjust. | |
5764 | (_initialize_jit): Adjust. | |
5765 | ||
e839132d MS |
5766 | 2011-01-31 Michael Snyder <msnyder@vmware.com> |
5767 | ||
5768 | * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted | |
5769 | line. | |
5770 | ||
47a80e90 TT |
5771 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
5772 | ||
5773 | PR python/12216: | |
5774 | * python/python.c (execute_gdb_command): Call | |
5775 | prevent_dont_repeat. | |
5776 | * top.c (suppress_dont_repeat): New global. | |
5777 | (dont_repeat): Use it. | |
5778 | (prevent_dont_repeat): New function. | |
5779 | * command.h (prevent_dont_repeat): Declare. | |
5780 | ||
45a43567 TT |
5781 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
5782 | ||
5783 | * infcmd.c (finish_backward): Use breakpoint_set_silent. | |
5784 | * python/py-breakpoint.c (bppy_set_silent): Use | |
5785 | breakpoint_set_silent. | |
5786 | (bppy_set_thread): Use breakpoint_set_thread. | |
5787 | (bppy_set_task): Use breakpoint_set_task. | |
5788 | * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread) | |
5789 | (breakpoint_set_task): Declare. | |
5790 | (make_breakpoint_silent): Remove. | |
5791 | * breakpoint.c (breakpoint_set_silent): New function. | |
5792 | (breakpoint_set_thread): Likewise. | |
5793 | (breakpoint_set_task): Likewise. | |
5794 | (make_breakpoint_silent): Remove. | |
5795 | ||
09d682a4 TT |
5796 | 2011-01-31 Tom Tromey <tromey@redhat.com> |
5797 | ||
5798 | * breakpoint.h (user_breakpoint_p): Declare. | |
5799 | * breakpoint.c (user_breakpoint_p): New function. | |
5800 | (breakpoint_1): Use it. | |
5801 | (save_breakpoints): Likewise. | |
5802 | ||
9c4ea6c5 JB |
5803 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
5804 | ||
5805 | * configure.ac: Add handling of Python distribution on Windows. | |
5806 | * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED | |
5807 | sysconfig variables are not defined, then do not use them. | |
5808 | On Windows, if LIBPL is not defined, then use prefix + '/libs' | |
5809 | instead. On Windows, return all paths using forward-slashes | |
5810 | rather than backslashes. | |
5811 | ||
ac534cba JB |
5812 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
5813 | ||
5814 | * configure.ac: Remove fallback behavior for building | |
5815 | against Python. Remove tweaking of Python include path. | |
5816 | Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution. | |
5817 | (AC_TRY_LIBPYTHON): Adjust program used in linking test. | |
5818 | If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS. | |
5819 | Always restore CPPFLAGS and LIBS after linking test. | |
5820 | * configure: Regenerated. | |
5821 | * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@. | |
5822 | (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@. | |
5823 | * python/python-internal.h: Adjust includes of Python .h files. | |
5824 | ||
c2f0d045 JB |
5825 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
5826 | ||
5827 | * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup | |
5828 | in error message. | |
5829 | ||
6b0c4c1f JB |
5830 | 2011-01-31 Joel Brobecker <brobecker@adacore.com> |
5831 | ||
5832 | * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode | |
5833 | value test. | |
5834 | ||
672c9795 YQ |
5835 | 2011-01-31 Yao Qi <yao@codesourcery.com> |
5836 | ||
5837 | * arm-linux-nat.c: Update calls to regcache_register_status | |
5838 | instead of regcache_valid_p. | |
5839 | * aix-thread.c: Likewise. | |
5840 | * i386gnu-nat.c: Likewise. | |
5841 | ||
80b23b6a JK |
5842 | 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
5843 | ||
5844 | Fix crash. | |
5845 | * valops.c (compare_parameters): Verify TYPE_NFIELDS before | |
5846 | touching TYPE_FIELD_ARTIFICIAL. | |
5847 | ||
4cd712bd RE |
5848 | 2011-01-28 Richard Earnshaw <rearnsha@arm.com> |
5849 | ||
5850 | * MAINTAINERS: Move myself from Responsible Maintainers to Authorized | |
5851 | Committers. | |
5852 | ||
ffd5ec24 PA |
5853 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
5854 | ||
5855 | * tracepoint.c (tfile_xfer_partial): If there's no traceframe | |
5856 | selected, don't try iterating over the traceframe's blocks. | |
5857 | (tfile_has_stack): If there's no traceframe selected, then there's | |
5858 | no stack. | |
5859 | (tfile_has_registers): If there's no traceframe selected, then | |
5860 | there's no registers. | |
5861 | ||
e8c9e0a1 PA |
5862 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
5863 | ||
5864 | * target.c (memory_xfer_partial): No need to restore shadows if we | |
5865 | haven't read anything. | |
5866 | ||
de15c4ab PA |
5867 | 2011-01-28 Pedro Alves <pedro@codesourcery.com> |
5868 | ||
5869 | * mips-tdep.c (mips_print_register): Use get_frame_register_value | |
5870 | and val_print_scalar_formatted. | |
5871 | ||
9f41c731 PA |
5872 | 2011-01-27 Pedro Alves <pedro@codesourcery.com> |
5873 | ||
5874 | * tracepoint.c (tfile_read): New. | |
5875 | (tfile_open): Use it. | |
5876 | (tfile_get_traceframe_address): Use it. | |
5877 | (tfile_trace_find): Use it. | |
5878 | (walk_blocks_callback_func): New typedef. | |
5879 | (match_blocktype): New function. | |
5880 | (traceframe_walk_blocks): New function. | |
5881 | (traceframe_find_block_type): New function. | |
5882 | (tfile_fetch_registers, tfile_xfer_partial) | |
5883 | (tfile_get_trace_state_variable_value): Use | |
5884 | traceframe_find_block_type and tfile_read. | |
5885 | ||
cdefc55d KB |
5886 | 2011-01-26 Kevin Buettner <kevinb@redhat.com> |
5887 | ||
5888 | * remote-mips.c: Add internationalization mark ups. Remove | |
5889 | trailing \n from already marked up strings. | |
5890 | ||
a81766d8 TT |
5891 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
5892 | ||
5893 | * python/py-prettyprint.c (print_string_repr): Clear | |
5894 | 'addressprint' option when calling val_print_string. | |
5895 | (print_children): Handle Val_pretty_default. Clear 'addressprint' | |
5896 | option when calling val_print_string. | |
5897 | ||
74aedc46 TT |
5898 | 2011-01-26 Tom Tromey <tromey@redhat.com> |
5899 | ||
5900 | * python/python.c (gdbpy_solib_name): Use gdb_py_longest and | |
5901 | GDB_PY_LL_ARG. | |
5902 | * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New | |
5903 | macros. | |
5904 | (gdb_py_longest, gdb_py_ulongest): New typedefs. | |
5905 | (gdb_py_long_from_longest, gdb_py_long_from_ulongest) | |
5906 | (gdb_py_long_as_ulongest): New defines. | |
5907 | (gdb_py_object_from_longest, gdb_py_object_from_ulongest) | |
5908 | (gdb_py_int_as_long): Declare. | |
5909 | * python/py-value.c (valpy_lazy_string): Use gdb_py_longest, | |
5910 | GDB_PY_LL_ARG, gdb_py_object_from_longest. | |
5911 | (valpy_long): Add comment. | |
5912 | * python/py-utils.c (get_addr_from_python): Use | |
5913 | gdb_py_long_as_ulongest. Handle overflow properly. | |
5914 | (gdb_py_object_from_longest): New function. | |
5915 | (gdb_py_object_from_ulongest): Likewise. | |
5916 | (gdb_py_int_as_long): Likewise. | |
5917 | * python/py-type.c (typy_array): Use gdb_py_int_as_long. | |
5918 | * python/py-symtab.c (salpy_get_pc): Use | |
5919 | gdb_py_long_from_ulongest. | |
5920 | (salpy_get_line): Use PyInt_FromLong. | |
5921 | * python/py-param.c (set_parameter_value): Use | |
5922 | gdb_py_int_as_long. | |
5923 | * python/py-lazy-string.c (stpy_get_address): Use | |
5924 | gdb_py_long_from_ulongest. | |
5925 | * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest. | |
5926 | * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long. | |
5927 | * python/py-breakpoint.c (bppy_set_thread): Use | |
5928 | gdb_py_int_as_long. | |
5929 | (bppy_set_task): Likewise. | |
5930 | (bppy_set_ignore_count): Likewise. | |
5931 | (bppy_set_hit_count): Likewise. | |
5932 | * python/py-block.c (blpy_get_start): Use | |
5933 | gdb_py_object_from_ulongest. | |
5934 | (blpy_get_end): Likewise. | |
5935 | (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG. | |
5936 | ||
e4f6d2ec TJB |
5937 | 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr> |
5938 | ||
5939 | PR/symtab 11766: | |
5940 | * gdb/objfiles.h (struct objfile) <addr_low>: New field. | |
5941 | * gdb/solib.c (solib_read_symbols): Check for addr_low in | |
5942 | equality test for objfile, initialize addr_low if needed. | |
5943 | ||
b30aa278 PA |
5944 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5945 | ||
5946 | * tui/tui-regs.c (tui_register_format): Remove dead code. | |
5947 | ||
ab2188aa PA |
5948 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5949 | ||
5950 | * printcmd.c (print_formatted): Use val_print_scalar_formatted | |
5951 | instead of print_scalar_formatted. | |
5952 | (print_scalar_formatted): Don't handle 's' format strings here, | |
5953 | and add an assertion that we never see such format here. | |
5954 | * valprint.h (val_print_scalar_formatted): Declare. | |
5955 | * valprint.c (val_print_scalar_formatted): New. | |
5956 | * c-valprint.c (c_val_print): Use val_print_scalar_formatted | |
5957 | instead of print_scalar_formatted. | |
5958 | * jv-valprint.c (java_val_print): Ditto. | |
5959 | * p-valprint.c (pascal_val_print): Ditto. | |
5960 | * ada-valprint.c (ada_val_print_1): Ditto. | |
5961 | * f-valprint.c (f_val_print): Ditto. | |
5962 | * infcmd.c (registers_info): Ditto. | |
5963 | * m2-valprint.c (m2_val_print): Ditto. | |
5964 | ||
66d61a4c PA |
5965 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5966 | ||
5967 | * m2-valprint.c (print_unbounded_array): Pass | |
5968 | value_contents_for_printing rather than value_contents, to | |
5969 | m2_print_array_contents. Also pass in the value. | |
5970 | ||
831adc1f JK |
5971 | 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com> |
5972 | ||
5973 | * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index) | |
5974 | (save_gdb_index_command): Switch to .gdb_index version 4. | |
5975 | ||
20622269 PA |
5976 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5977 | ||
5978 | * mi/mi-main.c (get_register): Use get_frame_register_value rather | |
5979 | than frame_register, and always pass a valid value to val_print. | |
5980 | ||
585fdaa1 PA |
5981 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5982 | ||
5983 | Centralize printing "<optimized out>". | |
5984 | ||
5985 | * valprint.h (val_print_optimized_out): Declare. | |
5986 | * cp-valprint.c (cp_print_value_fields): Use | |
5987 | val_print_optimized_out. | |
5988 | * jv-valprint.c (java_print_value_fields): Ditto. | |
5989 | * p-valprint.c (pascal_object_print_value_fields): Ditto. | |
5990 | * printcmd.c (print_formatted): Ditto. | |
5991 | * valprint.c (valprint_check_validity): Ditto. | |
5992 | (value_check_printable): Ditto. | |
5993 | (val_print_optimized_out): New. | |
5994 | ||
29ec5263 PA |
5995 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
5996 | ||
5997 | * infcmd.c (default_print_registers_info): Allocate values so to | |
5998 | never pass a NULL value to val_print. | |
5999 | ||
de4127a3 PA |
6000 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
6001 | ||
6002 | * cp-valprint.c (cp_print_value): Treat the 'skip' local as | |
6003 | boolean. Make sure to always pass a value that matches the | |
6004 | contents buffer to callees. Preserve `address' for following | |
6005 | iterations. | |
6006 | * value.c (value_contents_for_printing_const): New. | |
6007 | (value_address): Constify value argument. | |
6008 | * value.h (value_contents_for_printing_const): Declare. | |
6009 | (value_address): Constify value argument. | |
6010 | ||
ee99023e PA |
6011 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
6012 | ||
6013 | * regcache.c (struct regcache_descr): Rename | |
6014 | sizeof_raw_register_valid_p field to sizeof_raw_register_status, | |
6015 | and sizeof_cooked_register_valid_p to | |
6016 | sizeof_cooked_register_status. | |
6017 | (init_regcache_descr): Adjust. | |
6018 | (struct regcache): Rename register_valid_p field to | |
6019 | register_status. | |
6020 | (regcache_xmalloc_1, regcache_xfree, regcache_save) | |
6021 | (do_cooked_read): Adjust. | |
6022 | (regcache_valid_p): Rename to ... | |
6023 | (regcache_register_status): ... this. Adjust. | |
6024 | (regcache_invalidate): Adjust. | |
6025 | (regcache_raw_read, regcache_cooked_read, regcache_raw_write): | |
6026 | Adjust. | |
6027 | (regcache_raw_supply): Adjust. If buf i NULL, mark the register | |
6028 | as unavailable, not valid. | |
6029 | (regcache_dump): Adjust. | |
6030 | * regcache.h (enum register_status): New. | |
6031 | (regcache_register_status): Declare. | |
6032 | (regcache_invalidate): Delete declaration. | |
6033 | * corelow.c (get_core_registers): Adjust. | |
6034 | * tracepoint.c (tfile_fetch_registers): Adjust. | |
6035 | * trad-frame.c (REG_VALUE): Rename to ... | |
6036 | (TF_REG_VALUE): ... this. | |
6037 | (REG_UNKNOWN): Rename to ... | |
6038 | (TF_REG_UNKNOWN): ... this. | |
6039 | (trad_frame_set_value, trad_frame_set_unknown): Adjust. | |
6040 | * mi/mi-main.c (register_changed_p): Adjust. | |
6041 | ||
99e42fd8 PA |
6042 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
6043 | ||
6044 | * regcache.c (struct regcache_descr): Remove outdated comment. | |
6045 | (init_regcache_descr): Remove sizeof_raw_register_valid_p | |
6046 | overallocate hack. | |
6047 | (regcache_xmalloc): Rename to ... | |
6048 | (regcache_xmalloc_1): ... this. Add `readonly_p' parameter. | |
6049 | Allocate the regcache type accordingly. | |
6050 | (regcache_xmalloc): New as wrapper around regcache_xmalloc_1. | |
6051 | (regcache_xfree): Asser the source is also readonly. Copy sizeof | |
6052 | cooked registers, not raw. | |
6053 | (regcache_dup_no_passthrough): Delete. | |
6054 | (get_thread_arch_regcache): Use regcache_xmalloc_1. | |
6055 | * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not | |
6056 | mention obsolete write_register_bytes. | |
6057 | * regcache.h (regcache_dup_no_passthrough): Delete declaration. | |
6058 | ||
f7605bc2 PA |
6059 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
6060 | ||
6061 | Stop remote_read_bytes from handling partial reads itself. | |
6062 | ||
6063 | * remote-fileio.c: Include target.h. | |
6064 | (remote_fileio_write_bytes): Delete. | |
6065 | (remote_fileio_func_open, remote_fileio_func_write) | |
6066 | (remote_fileio_func_rename, remote_fileio_func_unlink): Use | |
6067 | target_read_memory. | |
6068 | (remote_fileio_func_stat): Use target_read_memory and | |
6069 | target_write_memory. | |
6070 | (remote_fileio_func_gettimeofday): Use target_write_memory. | |
6071 | (remote_fileio_func_system): Use target_read_memory. | |
6072 | * remote.c (remote_write_bytes): Make it static. | |
6073 | (remote_read_bytes): Don't handle partial reads here. | |
6074 | * remote.h (remote_read_bytes): Delete declaration. | |
6075 | ||
efc0eabd PA |
6076 | 2011-01-25 Pedro Alves <pedro@codesourcery.com> |
6077 | ||
6078 | Simplify XML parsing a bit. | |
6079 | ||
6080 | * xml-support.h (gdb_xml_parse_quick): Declare. | |
6081 | * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed | |
6082 | from gdb_xml_create_parser_and_cleanup, and added `old_chain' | |
6083 | parameter. | |
6084 | (gdb_xml_create_parser_and_cleanup): Reimplement on top of | |
6085 | gdb_xml_create_parser_and_cleanup_1. | |
6086 | (gdb_xml_parse_quick): New. | |
6087 | * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick. | |
6088 | * osdata.c (osdata_parse): Ditto. | |
6089 | * remote.c (remote_threads_info): Ditto. | |
6090 | * solib-target.c (solib_target_parse_libraries): Ditto. | |
6091 | * xml-syscall.c (syscall_parse_xml): Ditto. | |
6092 | * xml-tdesc.c (tdesc_parse_xml): Ditto. | |
6093 | ||
314d366a KB |
6094 | 2011-01-24 Kevin Buettner <kevinb@redhat.com> |
6095 | ||
6096 | * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but | |
6097 | with remote-mips.o added to gdb_target_obs. | |
6098 | * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o. | |
6099 | ||
a491d753 PA |
6100 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
6101 | ||
6102 | * ada-valprint.c (val_print_packed_array_elements): Pass the | |
6103 | correct struct value to val_print. | |
6104 | (ada_val_print_1): Ditto. | |
6105 | ||
490f124f PA |
6106 | 2011-01-24 Pedro Alves <pedro@codesourcery.com> |
6107 | ||
6108 | Don't lose embedded_offset in printing routines throughout. | |
6109 | ||
6110 | * valprint.h (val_print_array_elements): Change prototype. | |
6111 | * valprint.c (val_print_array_elements): Add `embedded_offset' | |
6112 | parameter, and adjust to pass it down to val_print, while passing | |
6113 | `valaddr' or `address' unmodified. Take embedded_offset into | |
6114 | account when checking repetitions. | |
6115 | * c-valprint.c (c_val_print): Pass embedded_offset to | |
6116 | val_print_array_elements instead of adjusting `valaddr' and | |
6117 | `address'. | |
6118 | * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass | |
6119 | embedded_offset to val_print_array_elements instead of adjusting | |
6120 | `valaddr'. | |
6121 | * p-lang.h (pascal_object_print_value_fields): Adjust prototype. | |
6122 | * p-valprint.c (pascal_val_print): Pass embedded_offset to | |
6123 | val_print_array_elements and pascal_object_print_value_fields | |
6124 | instead of adjusting `valaddr'. | |
6125 | (pascal_object_print_value_fields): Add `offset' parameter, and | |
6126 | adjust to use it. | |
6127 | (pascal_object_print_value): Add `offset' parameter, and adjust to | |
6128 | use it. | |
6129 | (pascal_object_print_static_field): Use | |
6130 | value_contents_for_printing/value_embedded_offset, rather than | |
6131 | value_contents. | |
6132 | * ada-valprint.c (val_print_packed_array_elements): Add `offset' | |
6133 | parameter, and adjust to use it. Use | |
6134 | value_contents_for_printing/value_embedded_offset, rather than | |
6135 | value_contents. | |
6136 | (ada_val_print): Rename `valaddr0' parameter to `valaddr'. | |
6137 | (ada_val_print_array): Add `offset' parameter, and adjust to use | |
6138 | it. | |
6139 | (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and | |
6140 | `embedded_offset' to `offset'. Don't re-adjust `valaddr'. | |
6141 | Instead work with offsets. Use | |
6142 | value_contents_for_printing/value_embedded_offset, rather than | |
6143 | value_contents. Change `defer_val_int' local type to CORE_ADDR, | |
6144 | and use value_from_pointer to extract a target pointer, rather | |
6145 | than value_from_longest. | |
6146 | (print_variant_part): Add `offset' parameter. Replace | |
6147 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
6148 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
6149 | (ada_value_print): Use | |
6150 | value_contents_for_printing/value_embedded_offset, rather than | |
6151 | value_contents. | |
6152 | (print_record): Add `offset' parameter, and adjust to pass it | |
6153 | down. | |
6154 | (print_field_values): Add `offset' parameter. Replace | |
6155 | `outer_valaddr' parameter by a new `outer_offset' parameter. | |
6156 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
6157 | Use value_contents_for_printing/value_embedded_offset, rather than | |
6158 | value_contents. | |
6159 | * d-valprint.c (dynamic_array_type): Use | |
6160 | value_contents_for_printing/value_embedded_offset, rather than | |
6161 | value_contents. | |
6162 | * jv-valprint.c (java_print_value_fields): Add `offset' parameter. | |
6163 | Don't re-adjust `valaddr'. Instead pass down adjusted offsets. | |
6164 | (java_print_value_fields): Take `offset' into account. Don't | |
6165 | re-adjust `valaddr'. Instead pass down adjusted offsets. | |
6166 | (java_val_print): Take `embedded_offset' into account. Pass it to | |
6167 | java_print_value_fields. | |
6168 | * f-valprint.c (f77_print_array_1): Add `embedded_offset' | |
6169 | parameter. Don't re-adjust `valaddr' or `address'. Instead pass | |
6170 | down adjusted offsets. | |
6171 | (f77_print_array): Add `embedded_offset' parameter. Pass it down. | |
6172 | (f_val_print): Take `embedded_offset' into account. | |
6173 | ||
7bfc9434 JB |
6174 | 2011-01-21 Joel Brobecker <brobecker@adacore.com> |
6175 | ||
6176 | * inflow.c: Include "gdbcmd.h". | |
6177 | (interactive_mode): New static global, moved here from top.c. | |
6178 | (show_interactive_mode): New function, moved here from top.c. | |
6179 | use gdb_has_a_terminal instead of input_from_terminal_p to | |
6180 | determine the current mode. | |
6181 | (gdb_has_a_terminal): Add handling of the "iteractive-mode" | |
6182 | setting. | |
6183 | (_initialize_inflow): Add the "set/show interactive-mode" | |
6184 | commands. Moved here from top.c, after having adjusted slightly | |
6185 | the help text. | |
6186 | * top.c (interactive_mode, show_interactive_mode): Delete, moved | |
6187 | to inflow.c. | |
6188 | (input_from_terminal_p): Remove handling of "interactive-mode" | |
6189 | setting, moved to infow.c. | |
6190 | (init_main): Remove creation of the "set/show interactive-mode" | |
6191 | commands, moved to inflow.c. | |
6192 | ||
44603653 JB |
6193 | 2011-01-19 Joel Brobecker <brobecker@adacore.com> |
6194 | ||
6195 | * NEWS: Add entry for native ia64-hpux support. | |
6196 | ||
4694da01 TT |
6197 | 2011-01-19 Tom Tromey <tromey@redhat.com> |
6198 | ||
6199 | PR mi/8618: | |
6200 | * thread.c (free_thread): Free 'name'. | |
6201 | (print_thread_info): Emit thread name. Change CLI output. | |
6202 | (thread_name_command): New function. | |
6203 | (do_captured_thread_select): Emit newline. | |
6204 | (_initialize_thread): Register 'thread name' command. | |
6205 | * target.h (struct target_ops) <to_thread_name>: New field. | |
6206 | (target_thread_name): New macro. | |
6207 | * target.c (update_current_target): Handle to_thread_name. | |
6208 | * python/py-infthread.c (thpy_get_name): New function. | |
6209 | (thpy_set_name): Likewise. | |
6210 | (thread_object_getset): Add "name". | |
6211 | * linux-nat.c (linux_nat_thread_name): New function. | |
6212 | (linux_nat_add_target): Set to_thread_name. | |
6213 | * gdbthread.h (struct thread_info) <name>: New field. | |
6214 | ||
10d44370 JB |
6215 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
6216 | ||
6217 | * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast. | |
6218 | (ada_val_print_1): Likewise. | |
6219 | ||
e3acb115 JB |
6220 | 2011-01-18 Joel Brobecker <brobecker@adacore.com> |
6221 | ||
6222 | * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue | |
6223 | upper limit address is not greater than the function end address | |
6224 | when the upper limit could not be computed using the debugging | |
6225 | info. | |
6226 | ||
dc92e161 TT |
6227 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
6228 | ||
6229 | * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use | |
6230 | get_regcomp_error. | |
6231 | * utils.c: Include gdb_regex.h. | |
6232 | (do_regfree_cleanup): New function. | |
6233 | (make_regfree_cleanup): Likewise. | |
6234 | (get_regcomp_error): Likewise. | |
6235 | * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare. | |
6236 | ||
f55af66d TT |
6237 | 2011-01-17 Tom Tromey <tromey@redhat.com> |
6238 | ||
6239 | * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call | |
6240 | re_compile_fastmap. | |
6241 | ||
a5a44b53 PM |
6242 | 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr> |
6243 | ||
6244 | * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE | |
6245 | for internal variables. | |
6246 | (last_was_structop): New static variable. | |
6247 | (COMPLETE): New token. | |
6248 | (field_exp): New rule to group all '.' suffix handling. | |
6249 | Add mark_struct_expression calls when approriate to be able | |
6250 | to correctly find fields for completion. | |
6251 | (yylex): Adapt to handle field completion and set INTVAR when | |
6252 | required. | |
6253 | ||
2c291032 YQ |
6254 | 2011-01-14 Yao Qi <yao@codesourcery.com> |
6255 | ||
6256 | * arm-tdep.c (arm_register_reggroup_p): FPS register is in | |
6257 | save_reggroup, restore_reggroup and all_reggroup. | |
6258 | ||
447b483c JB |
6259 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
6260 | ||
6261 | * ada-valprint. (ada_printchar): Use the correct type length | |
6262 | in call to ada_emit_char. | |
6263 | * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR. | |
6264 | ||
7b64a93b PM |
6265 | 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr> |
6266 | ||
6267 | * solib-som.h (hpux_major_release): Declare variable here. | |
6268 | * solib-som.c: Remove <sys/utsname.h> header. | |
6269 | (DEFAULT_HPUX_MAJOR_RELEASE): New macro. | |
6270 | (hpux_major_release): Make global, change default value to | |
6271 | DEFAULT_HPUX_MAJOR_RELEASE. | |
f2eb0bc8 | 6272 | (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE. |
7b64a93b PM |
6273 | * hppa-hpux-nat.c: Add <sys/utsname.h> include. |
6274 | Add "solib-som.h" header. | |
6275 | (set_hpux_major_release): New function. | |
6276 | (_initialize_hppa_hpux_nat): Call set_hpux_major_release. | |
6277 | ||
4e18c053 MF |
6278 | 2011-01-14 Mike Frysinger <vapier@gentoo.org> |
6279 | ||
6280 | * configure.tgt (*-*-uclinux*): Match more Linux os targets | |
6281 | ||
a9df6b22 JB |
6282 | 2011-01-14 Joel Brobecker <brobecker@adacore.com> |
6283 | ||
6284 | * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing | |
6285 | new-line at end of warning message. | |
6286 | (ia64_hpux_store_register): Remove trailing new-line at end of | |
6287 | error message. | |
6288 | * ia64-hpux-tdep.c: Rephrase comment. | |
6289 | * solib-ia64-hpux.c (struct dld_info): Change type of field | |
6290 | dld_flags from "long long" to ULONGEST. | |
6291 | ||
ecb956dd PA |
6292 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
6293 | ||
6294 | * target.h (deprecated_child_ops): Delete declaration. | |
6295 | * target.c (deprecated_child_ops): Delete definition. | |
6296 | ||
76adfcae PA |
6297 | 2011-01-14 Pedro Alves <pedro@codesourcery.com> |
6298 | ||
6299 | * Makefile.in (hpux-thread.o): Delete rule. | |
6300 | * configure.ac: Don't check for HPUX DCE threads support. | |
6301 | * configure, config.in: Regenerate. | |
6302 | * hppa-hpux-nat.c (child_suppress_run): Delete. | |
6303 | (hppa_hpux_child_can_run): Delete. | |
6304 | (_initialize_hppa_hpux_nat): Don't override to_can_run. | |
6305 | * hpux-thread.c: Delete. | |
6306 | ||
042e866e JB |
6307 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6308 | ||
6309 | * hpux-thread.c (hpux_pid_to_str): Delete. | |
6310 | ||
4ffa5a33 JB |
6311 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6312 | ||
6313 | * ada-valprint.c (ada_emit_char): Remove strange code. | |
6314 | Check that c is <= UCHAR_MAX before passing it to isascii. | |
6315 | (char_at): Do not assume that TYPE_LEN is either 1 or 2. | |
6316 | ||
de8fa76c JB |
6317 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6318 | ||
6319 | * top.c (input_from_terminal_p): Restrict the use of interactive_mode | |
6320 | to the case where instream is stdin. | |
6321 | ||
c4de7027 JB |
6322 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6323 | ||
6324 | * ia64-tdep.h (struct regcache): Forward declare. | |
6325 | (struct ia64_infcall_ops): New struct type. | |
6326 | (struct gdbarch_tdep): New fields "find_global_pointer_from_solib" | |
6327 | and "infcall_ops". | |
6328 | * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section): | |
6329 | Renames ia64_find_global_pointer. | |
6330 | (ia64_find_global_pointer, ia64_allocate_new_rse_frame) | |
6331 | (ia64_store_argument_in_slot, ia64_set_function_addr: New function. | |
6332 | (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops | |
6333 | methods. | |
6334 | (ia64_infcall_ops): New static global constant. | |
6335 | (ia64_gdbarch_init): Set tdep->infcall_ops. | |
6336 | * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function. | |
6337 | (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing. | |
6338 | * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h". | |
6339 | (ia64_hpux_dummy_code): New static global constant. | |
6340 | (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame) | |
6341 | (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr) | |
6342 | (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib): | |
6343 | New function. | |
6344 | (ia64_hpux_infcall_ops): New static global constant. | |
6345 | (ia64_hpux_init_abi): Install gdbarch and tdep methods needed | |
6346 | for inferior function calls to work properly on ia64-hpux. | |
6347 | ||
77ca787b JB |
6348 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6349 | ||
6350 | * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS. | |
6351 | * ia64-tdep.h (struct frame_info): forward declaration. | |
6352 | (struct gdbarch_tdep): Add field size_of_register_frame. | |
6353 | * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame | |
6354 | to determine the size of the register frame. | |
6355 | (ia64_size_of_register_frame): New function. | |
6356 | (ia64_gdbarch_init): Set tdep->size_of_register_frame. | |
6357 | * ia64-hpux-tdep.c: Include "target.h" and "frame.h". | |
6358 | (IA64_HPUX_UREG_REASON): New macro. | |
6359 | (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame): | |
6360 | New functions. | |
6361 | (ia64_hpux_init_abi): Set tdep->size_of_register_frame. | |
6362 | * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function. | |
6363 | (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS | |
6364 | objects. | |
6365 | ||
92c9a463 JB |
6366 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6367 | ||
6368 | Add support for ia64-hpux. | |
6369 | * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c, | |
6370 | ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files. | |
6371 | ||
6372 | * configure.host: Add handling for ia64-hpux hosts. Add associated | |
6373 | floatformats. | |
6374 | * configure.tgt: Add handling for ia64-hpux targets. | |
6375 | * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o. | |
6376 | (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h. | |
6377 | (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c. | |
6378 | ||
f688d93f JB |
6379 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6380 | ||
6381 | [ttrace] Compute thread list immediately after attach. | |
6382 | * inf_ttrace_attach (inf_ttrace_create_threads_after_attach): | |
6383 | New subprogram. | |
6384 | (inf_ttrace_attach): Use it. | |
6385 | ||
1b89e62f JB |
6386 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6387 | ||
6388 | * libunwind-frame.c (libunwind_frame_cache): Do not return NULL | |
6389 | if we could not determine the frame's function address. Instead, | |
6390 | use the frame's PC, and then continue. | |
6391 | ||
3e5e6e2a JB |
6392 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6393 | ||
6394 | * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if | |
6395 | not already defined. | |
6396 | ||
825d6d8a JB |
6397 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6398 | ||
6399 | * ia64-tdep.c (ia64_struct_type_p): New function. | |
6400 | (ia64_extract_return_value): Handle integral values that are | |
6401 | less than 8 bytes long. | |
6402 | (ia64_push_dummy_call): Likewise. | |
6403 | ||
7458e667 JB |
6404 | 2011-01-13 Joel Brobecker <brobecker@adacore.com> |
6405 | ||
6406 | * ia64-tdep.c (floatformat_ia64_ext_little): Renames | |
6407 | floatformat_ia64_ext. | |
6408 | (floatformat_ia64_ext_big): New static const. | |
6409 | (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big. | |
6410 | ||
1b05df00 TT |
6411 | 2011-01-12 Tom Tromey <tromey@redhat.com> |
6412 | ||
6413 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error | |
6414 | messages. | |
6415 | * mi/mi-main.c (mi_cmd_thread_select): Fix error messages. | |
6416 | (mi_cmd_thread_list_ids): Likewise. | |
6417 | (mi_cmd_data_list_changed_registers): Likewise. | |
6418 | (mi_cmd_data_list_register_values): Likewise. | |
6419 | (mi_cmd_data_write_register_values): Likewise. | |
6420 | (mi_cmd_data_evaluate_expression): Likewise. | |
6421 | (mi_cmd_data_read_memory): Likewise. | |
6422 | (mi_cmd_data_read_memory_bytes): Likewise. | |
6423 | (mi_cmd_data_write_memory): Likewise. | |
6424 | (mi_cmd_enable_timings): Likewise. | |
6425 | * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages. | |
6426 | * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages. | |
6427 | (mi_cmd_var_delete): Likewise. | |
6428 | (mi_cmd_var_set_format): Likewise. | |
6429 | (mi_cmd_var_show_format): Likewise. | |
6430 | (mi_cmd_var_info_num_children): Likewise. | |
6431 | (mi_cmd_var_list_children): Likewise. | |
6432 | (mi_cmd_var_info_type): Likewise. | |
6433 | (mi_cmd_var_info_expression): Likewise. | |
6434 | (mi_cmd_var_show_attributes): Likewise. | |
6435 | (mi_cmd_var_assign): Likewise. | |
6436 | (mi_cmd_var_update): Likewise. | |
6437 | (mi_cmd_enable_pretty_printing): Likewise. | |
6438 | (mi_cmd_var_set_update_range): Likewise. | |
6439 | * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error | |
6440 | messages. | |
6441 | (mi_cmd_target_file_put): Likewise. | |
6442 | (mi_cmd_target_file_delete): Likewise. | |
6443 | * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error | |
6444 | messages. | |
6445 | (mi_cmd_stack_info_depth): Likewise. | |
6446 | (mi_cmd_stack_list_locals): Likewise. | |
6447 | (mi_cmd_stack_list_args): Likewise. | |
6448 | (mi_cmd_stack_select_frame): Likewise. | |
6449 | (mi_cmd_stack_select_frame): Likewise. | |
6450 | (mi_cmd_stack_info_frame): Likewise. | |
6451 | * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error | |
6452 | messages. | |
6453 | (mi_cmd_file_list_exec_source_files): Likewise. | |
6454 | * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages. | |
6455 | (mi_cmd_env_cd): Likewise. | |
6456 | (mi_cmd_env_path): Likewise. | |
6457 | (mi_cmd_env_dir): Likewise. | |
6458 | (mi_cmd_inferior_tty_show): Likewise. | |
6459 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages. | |
6460 | * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages. | |
6461 | (mi_cmd_break_watch): Likewise. | |
6462 | ||
ad422571 TJB |
6463 | 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6464 | ||
6465 | * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace. | |
6466 | (ppc_linux_insert_hw_breakpoint): Likewise. | |
6467 | (ppc_linux_remove_hw_breakpoint): Likewise. | |
6468 | (ppc_linux_insert_watchpoint): Likewise. | |
6469 | ||
c2ff108b JK |
6470 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
6471 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
6472 | ||
6473 | PR fortran/11104 and DWARF unbound arrays detection. | |
6474 | * dwarf2read.c (read_subrange_type): Set zero length on unspecified | |
6475 | upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on | |
6476 | unspecified upper bound. | |
6477 | * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove | |
6478 | variables array_size_array, tmp_type and offset_item. New variable | |
6479 | array. Remove call to f77_get_upperbound. New variables array_type | |
6480 | and index. Call value_subscripted_rvalue for each dimenasion. Remove | |
6481 | the final call to deprecated_set_value_type. | |
6482 | ||
41e8491f JK |
6483 | 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
6484 | ||
6485 | Make value allocations more lazy. | |
6486 | * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy | |
6487 | instead of allocate_value and set_value_lazy when possible. | |
f2eb0bc8 | 6488 | * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy |
41e8491f JK |
6489 | instead of allocate_value and set_value_lazy. |
6490 | * findvar.c (value_of_register_lazy): Likewise. | |
6491 | (read_var_value): Remove V preallocation, call just check_typedef in | |
f2eb0bc8 | 6492 | advance. Move allocate_value to LOC_CONST, LOC_LABEL, |
41e8491f JK |
6493 | LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG, |
6494 | LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of | |
6495 | set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and | |
6496 | remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy | |
6497 | in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at | |
6498 | the end, remove set_value_lazy there. | |
6499 | * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy | |
6500 | instead of allocate_value and set_value_lazy when possible. | |
6501 | * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL. | |
6502 | * value.c (allocate_computed_value): Use allocate_value_lazy instead | |
6503 | of allocate_value and set_value_lazy. | |
6504 | (value_from_contents_and_address): Use allocate_value_lazy instead of | |
6505 | allocate_value and set_value_lazy when possible. | |
6506 | ||
b716877b AB |
6507 | 2011-01-12 Andrew Burgess <aburgess@broadcom.com> |
6508 | ||
6509 | * disasm.c (dump_insns): Support dumping opcodes for MI. | |
6510 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control | |
6511 | dumping of instruction opcodes. | |
6512 | ||
d5ae309f JB |
6513 | 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch) |
6514 | ||
6515 | * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi' | |
6516 | appropiately. | |
6517 | ||
98871305 TT |
6518 | 2011-01-11 Tom Tromey <tromey@redhat.com> |
6519 | ||
6520 | * thread.c (do_captured_thread_select): Emit newline before | |
6521 | printing frame. | |
6522 | ||
c378eb4e MS |
6523 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
6524 | ||
6525 | * s390-tdep.c: Comment cleanup, mostly periods and spaces. | |
6526 | * score-tdep.c: Ditto. | |
6527 | * score-tdep.h: Ditto. | |
6528 | * ser-base.c: Ditto. | |
6529 | * ser-go32.c: Ditto. | |
6530 | * serial.c: Ditto. | |
6531 | * serial.h: Ditto. | |
6532 | * ser-mingw.c: Ditto. | |
6533 | * ser-pipe.c: Ditto. | |
6534 | * ser-tcp.c: Ditto. | |
6535 | * ser-unix.c: Ditto. | |
6536 | * sh64-tdep.c: Ditto. | |
6537 | * shnbsd-nat.c: Ditto. | |
6538 | * sh-tdep.c: Ditto. | |
6539 | * sh-tdep.h: Ditto. | |
6540 | * solib.c: Ditto. | |
6541 | * solib-darwin.c: Ditto. | |
6542 | * solib-frv.c: Ditto. | |
6543 | * solib.h: Ditto. | |
6544 | * solib-irix.c: Ditto. | |
6545 | * solib-osf.c: Ditto. | |
6546 | * solib-pa64.c: Ditto. | |
6547 | * solib-som.c: Ditto. | |
6548 | * solib-spu.c: Ditto. | |
6549 | * solib-sunos.c: Ditto. | |
6550 | * solib-svr4.c: Ditto. | |
6551 | * solist.h: Ditto. | |
6552 | * sol-thread.c: Ditto. | |
6553 | * somread.c: Ditto. | |
6554 | * source.c: Ditto. | |
6555 | * source.h: Ditto. | |
6556 | * sparc64-linux-tdep.c: Ditto. | |
6557 | * sparc64-tdep.c: Ditto. | |
6558 | * sparc-linux-nat.c: Ditto. | |
6559 | * sparc-linux-tdep.c: Ditto. | |
6560 | * sparc-sol2-nat.c: Ditto. | |
6561 | * sparc-sol2-tdep.c: Ditto. | |
6562 | * sparc-tdep.c: Ditto. | |
6563 | * sparc-tdep.h: Ditto. | |
6564 | * spu-tdep.c: Ditto. | |
6565 | * stabsread.c: Ditto. | |
6566 | * stabsread.h: Ditto. | |
6567 | * stack.c: Ditto. | |
6568 | * symfile.c: Ditto. | |
6569 | * symfile.h: Ditto. | |
6570 | * symmisc.c: Ditto. | |
6571 | * symtab.c: Ditto. | |
6572 | * symtab.h: Ditto. | |
6573 | * target.c: Ditto. | |
6574 | * target-descriptions.c: Ditto. | |
6575 | * target-descriptions.h: Ditto. | |
6576 | * target.h: Ditto. | |
6577 | * target-memory.c: Ditto. | |
6578 | * terminal.h: Ditto. | |
6579 | * thread.c: Ditto. | |
6580 | * top.c: Ditto. | |
6581 | * tracepoint.c: Ditto. | |
6582 | * tracepoint.h: Ditto. | |
6583 | * trad-frame.h: Ditto. | |
6584 | * typeprint.c: Ditto. | |
6585 | ||
581e13c1 MS |
6586 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
6587 | ||
6588 | * ui-file.c: Comment cleanup, mostly periods and spaces. | |
6589 | * ui-file.h: Ditto. | |
6590 | * ui-out.c: Ditto. | |
6591 | * ui-out.h: Ditto. | |
6592 | * utils.c: Ditto. | |
6593 | * v850-tdep.c: Ditto. | |
6594 | * valarith.c: Ditto. | |
6595 | * valops.c: Ditto. | |
6596 | * valprint.c: Ditto. | |
6597 | * valprint.h: Ditto. | |
6598 | * value.c: Ditto. | |
6599 | * value.h: Ditto. | |
6600 | * varobj.c: Ditto. | |
6601 | * varobj.h: Ditto. | |
6602 | * vax-tdep.c: Ditto. | |
6603 | * vec.c: Ditto. | |
6604 | * vec.h: Ditto. | |
6605 | * version.h: Ditto. | |
6606 | * windows-nat.c: Ditto. | |
6607 | * windows-tdep.c: Ditto. | |
6608 | * xcoffread.c: Ditto. | |
6609 | * xcoffsolib.c: Ditto. | |
6610 | * xml-support.c: Ditto. | |
6611 | * xstormy16-tdep.c: Ditto. | |
6612 | * xtensa-tdep.c: Ditto. | |
6613 | * xtensa-tdep.h: Ditto. | |
6614 | ||
90e4670f TJB |
6615 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6616 | ||
6617 | * breakpoint.c (resources_needed_watchpoint): Fix indentation. | |
6618 | * gdbtypes.c (is_scalar_type_recursive): Fix formatting. | |
6619 | ||
e09342b5 TJB |
6620 | 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com> |
6621 | Thiago Jung Bauermann <bauerman@br.ibm.com> | |
6622 | ||
6623 | Implement support for PowerPC BookE ranged watchpoints. | |
f2eb0bc8 | 6624 | * breakpoint.h |
e09342b5 TJB |
6625 | (struct breakpoint_ops) <resources_needed>: New method. |
6626 | Initialize to NULL in all existing breakpoint_ops instances. | |
6627 | (struct breakpoint) <exact>: New field. | |
6628 | (target_exact_watchpoints): Declare external global. | |
6629 | * breakpoint.c (target_exact_watchpoints): New global flag. | |
6630 | (update_watchpoint): Set b->type to bp_hardware_watchpoint and | |
6631 | b->enable_state to bp_enabled before calling | |
6632 | hw_watchpoint_used_count. | |
6633 | (hw_watchpoint_used_count): Iterate over all bp_locations in a | |
6634 | watchpoint. Call breakpoint's breakpoint_ops.resources_needed | |
6635 | if available. | |
6636 | (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte | |
6637 | if the watchpoint is exact. | |
6638 | (resources_needed_watchpoint): New function. | |
6639 | (watchpoint_breakpoint_ops): Add resources_needed_watchpoint. | |
6640 | (watch_command_1): Set b->exact if the user asked for an exact | |
6641 | watchpoint and one can be set. | |
6642 | (can_use_hardware_watchpoint): Add exact_watchpoints argument. | |
6643 | Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if | |
6644 | the user asks for an exact watchpoint and one can be set. Return | |
6645 | number of needed debug registers to watch the expression. | |
6646 | * gdbtypes.c (is_scalar_type): New function, based on | |
6647 | valprint.c:scalar_type_p. | |
6648 | (is_scalar_type_recursive): New function. | |
6649 | * gdbtypes.h (is_scalar_type_recursive): Declare. | |
6650 | * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always | |
6651 | handle regions when ranged watchpoints are available. | |
6652 | (create_watchpoint_request): New function. | |
6653 | (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use | |
6654 | create_watchpoint_request. | |
6655 | * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function. | |
6656 | (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the | |
6657 | `set powerpc' and `show powerpc' commands. | |
6658 | * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>: | |
6659 | Mention documentation comment in the target macro. | |
6660 | (target_region_ok_for_hw_watchpoint): Document return value. | |
6661 | ||
9fa40276 TJB |
6662 | 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6663 | ||
6664 | * breakpoint.c (update_watchpoint): Decide on using a software or | |
6665 | hardware watchpoint after the bp_locations are created. | |
6666 | ||
77b06cd7 TJB |
6667 | 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com> |
6668 | ||
6669 | Convert hardware watchpoints to use breakpoint_ops. | |
6670 | * breakpoint.h (breakpoint_ops) <insert>: Rename to... | |
6671 | <insert_location>: ... this. Return int instead of void. | |
6672 | Accept pointer to struct bp_location instead of pointer to | |
6673 | struct breakpoint. Adapt all implementations. | |
f2eb0bc8 | 6674 | (breakpoint_ops) <remove>: Rename to... |
77b06cd7 TJB |
6675 | <remove_location>: ... this. Accept pointer to struct bp_location |
6676 | instead of pointer to struct breakpoint. Adapt all implementations. | |
6677 | * breakpoint.c (insert_catchpoint): Delete function. | |
6678 | (insert_bp_location): Call the watchpoint or catchpoint's | |
6679 | breakpoint_ops.insert method. | |
6680 | (remove_breakpoint_1): Call the watchpoint or catchpoint's | |
6681 | breakpoint_ops.remove method. | |
6682 | (insert_watchpoint, remove_watchpoint): New functions. | |
6683 | (watchpoint_breakpoint_ops): New structure. | |
6684 | (watch_command_1): Initialize the OPS field. | |
6685 | * inf-child.c (inf_child_insert_fork_catchpoint) | |
6686 | (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint) | |
6687 | (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint) | |
6688 | (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint): | |
6689 | Delete functions. | |
6690 | (inf_child_target): Remove initialization of to_insert_fork_catchpoint, | |
6691 | to_remove_fork_catchpoint, to_insert_vfork_catchpoint, | |
6692 | to_remove_vfork_catchpoint, to_insert_exec_catchpoint, | |
6693 | to_remove_exec_catchpoint and to_set_syscall_catchpoint. | |
6694 | * target.c (update_current_target): Change default implementation of | |
6695 | to_insert_fork_catchpoint, to_remove_fork_catchpoint, | |
6696 | to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, | |
6697 | to_insert_exec_catchpoint, to_remove_exec_catchpoint and | |
6698 | to_set_syscall_catchpoint to return_one. | |
6699 | (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint) | |
6700 | (debug_to_insert_exec_catchpoint): Report return value. | |
6701 | * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint) | |
6702 | (to_insert_exec_catchpoint): Change declaration to return int instead | |
6703 | of void. | |
6704 | ||
9b20d036 MS |
6705 | 2011-01-11 Michael Snyder <msnyder@vmware.com> |
6706 | ||
6707 | * arm-tdep.c: Internationalization. | |
6708 | * c-lang.c: Ditto. | |
6709 | * charset.c: Ditto. | |
6710 | * fork-child.c: Ditto. | |
6711 | * nto-procfs.c: Ditto. | |
6712 | * ppc-sysv-tdep.c: Ditto. | |
6713 | * procfs.c: Ditto. | |
6714 | * remote-mips.c: Ditto. | |
6715 | * remote.c: Ditto. | |
6716 | * rs6000-nat.c: Ditto. | |
6717 | * rs6000-tdep.c: Ditto. | |
6718 | * target.c: Ditto. | |
6719 | * valops.c: Ditto. | |
6720 | * value.c: Ditto. | |
6721 | * xml-support.c: Ditto. | |
6722 | * mi/mi-cmd-break.c: Ditto. | |
6723 | * mi/mi-cmd-var.c: Ditto. | |
6724 | * mi/mi-interp.c: Ditto. | |
6725 | * mi/mi-main.c: Ditto. | |
6726 | ||
dae477fe AB |
6727 | 2011-01-11 Andrew Burgess <aburgess@broadcom.com> |
6728 | ||
6729 | * remote-sim.c (gdbsim_store_register): Update API to | |
6730 | sim_store_register to check more error conditions. | |
6731 | ||
0df8b418 MS |
6732 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
6733 | ||
6734 | * nto-procfs.c: Comment cleanup, mostly periods and spaces. | |
6735 | * nto-tdep.c: Ditto. | |
6736 | * nto-tdep.h: Ditto. | |
6737 | * objc-exp.y: Ditto. | |
6738 | * objc-lang.c: Ditto. | |
6739 | * objfiles.c: Ditto. | |
6740 | * objfiles.h: Ditto. | |
6741 | * observer.c: Ditto. | |
6742 | * opencl-lang.c: Ditto. | |
6743 | * osabi.c: Ditto. | |
6744 | * parse.c: Ditto. | |
6745 | * parser-defs.h: Ditto. | |
6746 | * p-exp.y: Ditto. | |
6747 | * p-lang.c: Ditto. | |
6748 | * posix-hdep.c: Ditto. | |
6749 | * ppcbug-rom.c: Ditto. | |
6750 | * ppc-linux-nat.c: Ditto. | |
6751 | * ppc-linux-tdep.c: Ditto. | |
6752 | * ppc-linux-tdep.h: Ditto. | |
6753 | * ppcnbsd-tdep.c: Ditto. | |
6754 | * ppcobsd-tdep.c: Ditto. | |
6755 | * ppcobsd-tdep.h: Ditto. | |
6756 | * ppc-sysv-tdep.c: Ditto. | |
6757 | * ppc-tdep.h: Ditto. | |
6758 | * printcmd.c: Ditto. | |
6759 | * proc-abi.c: Ditto. | |
6760 | * proc-flags.c: Ditto. | |
6761 | * procfs.c: Ditto. | |
6762 | * proc-utils.h: Ditto. | |
6763 | * progspace.h: Ditto. | |
6764 | * prologue-value.c: Ditto. | |
6765 | * prologue-value.h: Ditto. | |
6766 | * psympriv.h: Ditto. | |
6767 | * psymtab.c: Ditto. | |
6768 | * p-typeprint.c: Ditto. | |
6769 | * p-valprint.c: Ditto. | |
6770 | * ravenscar-sparc-thread.c: Ditto. | |
6771 | * ravenscar-thread.c: Ditto. | |
6772 | * ravenscar-thread.h: Ditto. | |
6773 | * record.c: Ditto. | |
6774 | * regcache.c: Ditto. | |
6775 | * regcache.h: Ditto. | |
6776 | * remote.c: Ditto. | |
6777 | * remote-fileio.c: Ditto. | |
6778 | * remote-fileio.h: Ditto. | |
6779 | * remote.h: Ditto. | |
6780 | * remote-m32r-sdi.c: Ditto. | |
6781 | * remote-mips.c: Ditto. | |
6782 | * remote-sim.c: Ditto. | |
6783 | * rs6000-aix-tdep.c: Ditto. | |
6784 | * rs6000-nat.c: Ditto. | |
6785 | * rs6000-tdep.c: Ditto. | |
6786 | ||
0d7a18f7 MS |
6787 | 2011-01-10 Michael Snyder <msnyder@vmware.com> |
6788 | ||
6789 | * charset.c (validate): Internationalization. | |
6790 | * coffread.c (read_one_sym): Ditto. | |
6791 | * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto. | |
6792 | * h8300-tdep.c (H8300_extract_return_value): Ditto. | |
6793 | * inflow.c (new_tty): Ditto. | |
6794 | * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto. | |
6795 | * m32c-tdep.c (m32c_return_value): Ditto. | |
6796 | * mep-tdep.c (mep_store_return_value): Ditto. | |
6797 | * score-tdep.c (score7_fetch_insn): Ditto. | |
6798 | * ser-mingw.c (pipe_windows_open): Ditto. | |
6799 | * sh64-tdep.c (sh64_extract_return_value): Ditto. | |
6800 | * spu-tdep.c (spu_register_type): Ditto. | |
6801 | * tracepoint.c (trace_find_command): Ditto. | |
6802 | * valarith.c (value_pos): Ditto. | |
6803 | ||
9a153e0b JB |
6804 | 2011-01-10 Joel Brobecker <brobecker@adacore.com> |
6805 | ||
6806 | * ada-valprint.c (printstr): Minor comment reformatting. | |
6807 | ||
35ecd2d6 MS |
6808 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
6809 | ||
6810 | * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _ | |
6811 | markup. | |
6812 | ||
1777feb0 MS |
6813 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
6814 | ||
6815 | * h8300-tdep.c: Comment cleanup, mostly periods and spaces. | |
6816 | * hppa-hpux-tdep.c: Ditto. | |
6817 | * hppa-linux-nat.c: Ditto. | |
6818 | * hppa-linux-tdep.c: Ditto. | |
6819 | * hppanbsd-tdep.c: Ditto. | |
6820 | * hppa-tdep.c: Ditto. | |
6821 | * hppa-tdep.h: Ditto. | |
6822 | * hpux-thread.c: Ditto. | |
6823 | * i386-cygwin-tdep.c: Ditto. | |
6824 | * i386-darwin-nat.c: Ditto. | |
6825 | * i386gnu-nat.c: Ditto. | |
6826 | * i386-linux-nat.c: Ditto. | |
6827 | * i386-linux-tdep.c: Ditto. | |
6828 | * i386-nat.c: Ditto. | |
6829 | * i386-nat.h: Ditto. | |
6830 | * i386nbsd-tdep.c: Ditto. | |
6831 | * i386-sol2-nat.c: Ditto. | |
6832 | * i386-stub.c: Ditto. | |
6833 | * i386-tdep.c: Ditto. | |
6834 | * i386-tdep.h: Ditto. | |
6835 | * i387-tdep.c: Ditto. | |
6836 | * ia64-linux-nat.c: Ditto. | |
6837 | * ia64-linux-tdep.c: Ditto. | |
6838 | * ia64-tdep.c: Ditto. | |
6839 | * infcall.c: Ditto. | |
6840 | * infcall.h: Ditto. | |
6841 | * infcmd.c: Ditto. | |
6842 | * inferior.c: Ditto. | |
6843 | * inferior.h: Ditto. | |
6844 | * infloop.c: Ditto. | |
6845 | * inflow.c: Ditto. | |
6846 | * infrun.c: Ditto. | |
6847 | * interps.c: Ditto. | |
6848 | * interps.h: Ditto. | |
6849 | * iq2000-tdep.c: Ditto. | |
6850 | * irix5-nat.c: Ditto. | |
6851 | * jit.c: Ditto. | |
6852 | * jit.h: Ditto. | |
6853 | * jv-exp.y: Ditto. | |
6854 | * jv-lang.c: Ditto. | |
6855 | * jv-lang.h: Ditto. | |
6856 | * jv-typeprint.c: Ditto. | |
6857 | * jv-valprint.c: Ditto. | |
6858 | * language.c: Ditto. | |
6859 | * language.h: Ditto. | |
6860 | * linespec.c: Ditto. | |
6861 | * linux-fork.c: Ditto. | |
6862 | * linux-nat.c: Ditto. | |
6863 | * linux-thread-db.c: Ditto. | |
6864 | * lm32-tdep.c: Ditto. | |
6865 | ||
025bb325 MS |
6866 | 2011-01-08 Michael Snyder <msnyder@vmware.com> |
6867 | ||
6868 | * m2-exp.y: Comment cleanup, mostly periods and spaces. | |
6869 | * m2-lang.c: Ditto. | |
6870 | * m2-typeprint.c: Ditto. | |
6871 | * m2-valprint.c: Ditto. | |
6872 | * m32c-tdep.c: Ditto. | |
6873 | * m32r-linux-nat.c: Ditto. | |
6874 | * m32r-rom.c: Ditto. | |
6875 | * m32r-tdep.c: Ditto. | |
6876 | * m32r-tdep.h: Ditto. | |
6877 | * m68hc11-tdep.c: Ditto. | |
6878 | * m58klinux-nat.c: Ditto. | |
6879 | * m68k-tdep.c: Ditto. | |
6880 | * m88k-tdep.c: Ditto. | |
6881 | * m88k-tdep.h: Ditto. | |
6882 | * machoread.c: Ditto. | |
6883 | * macrocmd.c: Ditto. | |
6884 | * macroexp.c: Ditto. | |
6885 | * macrotab.c: Ditto. | |
6886 | * main.c: Ditto. | |
6887 | * maint.c: Ditto. | |
6888 | * mdebugread.c: Ditto. | |
6889 | * mdebugread.h: Ditto. | |
6890 | * memattr.c: Ditto. | |
6891 | * memattr.h: Ditto. | |
6892 | * memory-map.h: Ditto. | |
6893 | * mep-tdep.c: Ditto. | |
6894 | * microblaze-rom.c: Ditto. | |
6895 | * microblaze-tdep.c: Ditto. | |
6896 | * minsyms.c: Ditto. | |
6897 | * mips-irix-tdep.c: Ditto. | |
6898 | * mips-linux-nat.c: Ditto. | |
6899 | * mips-linux-tdep.c: Ditto. | |
6900 | * mips-linux-tdep.h: Ditto. | |
6901 | * mipsnbsd-nat.c: Ditto. | |
6902 | * mipsnbsd-tdep.c: Ditto. | |
6903 | * mipsread.c: Ditto. | |
6904 | * mips-tdep.c: Ditto. | |
6905 | * mips-tdep.h: Ditto. | |
6906 | * mn10300-linux-tdep.c: Ditto. | |
6907 | * mn10300-tdep.c: Ditto. | |
6908 | * mn10300-tdep.h: Ditto. | |
6909 | * monitor.c: Ditto. | |
6910 | * monitor.h: Ditto. | |
6911 | * moxie-tdep.c: Ditto. | |
6912 | * moxie-tdep.h: Ditto. | |
6913 | * mt-tdep.c: Ditto. | |
6914 | ||
1642781b MF |
6915 | 2011-01-08 Mike Frysinger <vapier@gentoo.org> |
6916 | ||
6917 | * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name. | |
6918 | ||
394b0adb JB |
6919 | 2011-01-08 Robert Millan <rmh@gnu.org> |
6920 | ||
6921 | * fbsd-nat.c (fbsd_find_memory_regions): Fix typo. | |
6922 | ||
b670013c MS |
6923 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
6924 | ||
6925 | * charset.c (_initialize_charset): Fix typo in string. | |
6926 | ||
a743e542 MS |
6927 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
6928 | ||
6929 | * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message | |
6930 | for i18n. | |
f2eb0bc8 | 6931 | * tui/tui-layout.c (tui_set_layout_for_display_command): |
a743e542 MS |
6932 | Split line so that operator goes to beginning of line. |
6933 | * tui/tui-winsource.c (tui_horizontal_source_scroll): Move | |
6934 | assignment out of if statement. | |
6935 | ||
0963b4bd MS |
6936 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
6937 | ||
6938 | * ada-lang.c: Comment cleanup, mostly periods and spaces. | |
6939 | * ada-lang.h: Ditto. | |
6940 | * ada-tasks.c: Ditto. | |
6941 | * ada-valprint.c: Ditto. | |
6942 | * aix-threads.c: Ditto. | |
6943 | * alpha-linux-nat.c: Ditto. | |
6944 | * alpha-linux-tdep.c: Ditto. | |
6945 | * alpha-mdebug-tdep.c: Ditto. | |
6946 | * alpha-nat.c: Ditto. | |
6947 | * alpha-osf1-tdep.c: Ditto. | |
6948 | * alpha-tdep.c: Ditto. | |
6949 | * alphabsd-nat.c: Ditto. | |
6950 | * alphabsd-tdep.c: Ditto. | |
6951 | * amd64-darwin-tdep.c: Ditto. | |
6952 | * amd64-linux-nat.c: Ditto. | |
6953 | * amd64-linux-tdep.c: Ditto. | |
6954 | * amd64-sol2-tdep.c: Ditto. | |
6955 | * amd64-tdep.c: Ditto. | |
6956 | * amd64-fbsd-tdep.c: Ditto. | |
6957 | * amd64-nbsd-tdep.c: Ditto. | |
6958 | * amd64-obsd-tdep.c: Ditto. | |
6959 | * amd64-linux-nat.c: Ditto. | |
6960 | * amd64-linux-tdep.c: Ditto. | |
6961 | * arm-tdep.c: Ditto. | |
6962 | * arm-tdep.h: Ditto. | |
6963 | * armnbsd-nat.c: Ditto. | |
6964 | * avr-tdep.c: Ditto. | |
6965 | * bfin-tdep.c: Ditto. | |
6966 | * bsd-kvm.c: Ditto. | |
6967 | * c-typeprintc: Ditto. | |
6968 | * c-valprint.c: Ditto. | |
6969 | * coff-pe-read.h: Ditto. | |
6970 | * coffreead.c: Ditto. | |
6971 | * cris-tdep.c: Ditto. | |
6972 | * d-lang.c: Ditto. | |
6973 | * darwin-nat-info.c: Ditto. | |
6974 | * darwin-nat.c: Ditto. | |
6975 | * dbug-rom.c: Ditto. | |
6976 | * dbxread.c: Ditto. | |
6977 | * dcache.c: Ditto. | |
6978 | * dcache.h: Ditto. | |
6979 | * dec-thread.c: Ditto. | |
6980 | * defs.h: Ditto. | |
6981 | * demangle.c: Ditto. | |
6982 | * dicos-tdep.c: Ditto. | |
6983 | * dictionary.c: Ditto. | |
6984 | * dictionary.h: Ditto. | |
6985 | * dink32-rom.c: Ditto. | |
6986 | * disasm.c: Ditto. | |
6987 | * doublest.c: Ditto. | |
6988 | * dsrec.c: Ditto. | |
6989 | * dummy-frame.c: Ditto. | |
6990 | * dwarf2-frame.c: Ditto. | |
6991 | * dwarf2expr.c: Ditto. | |
6992 | * dwarf2loc.c: Ditto. | |
6993 | * dwarf2read.c: Ditto. | |
6994 | * elfread.c: Ditto. | |
6995 | * environ.c: Ditto. | |
6996 | * eval.c: Ditto. | |
6997 | * event-top.h: Ditto. | |
6998 | * exceptions.c: Ditto. | |
6999 | * exceptions.h: Ditto. | |
7000 | * exec.c: Ditto. | |
7001 | * expprint.c: Ditto. | |
7002 | * expression.h: Ditto. | |
7003 | * f-exp.y: Ditto. | |
7004 | * f-lang.c: Ditto. | |
7005 | * f-lang.h: Ditto. | |
7006 | * f-typeprint.c: Ditto. | |
7007 | * f-valprint.c: Ditto. | |
7008 | * fbsd-nat.c: Ditto. | |
7009 | * findvar.c: Ditto. | |
7010 | * fork-child.c: Ditto. | |
7011 | * frame.c: Ditto. | |
7012 | * frame.h: Ditto. | |
7013 | * frv-linux-tdep.c: Ditto. | |
7014 | * frv-tdep.c: Ditto. | |
7015 | * gcore.c: Ditto. | |
7016 | * gdb-stabs.h: Ditto. | |
7017 | * gdb_assert.h: Ditto. | |
7018 | * gdb_string.h: Ditto. | |
7019 | * gdb_thread_db.h: Ditto. | |
7020 | * gdb_wait.h: Ditto. | |
7021 | * gdbarch.sh: Ditto. | |
7022 | * gdbcore.h: Ditto. | |
7023 | * gdbthread.h: Ditto. | |
7024 | * gdbtypes.c: Ditto. | |
7025 | * gdbtypes.h: Ditto. | |
7026 | * gnu-nat.c: Ditto. | |
7027 | * gnu-nat.h: Ditto. | |
7028 | * gnu-v2-abi.c: Ditto. | |
7029 | * gnu-v3-abi.c: Ditto. | |
7030 | * go32-nat.c: Ditto. | |
7031 | * gdbarch.c: Regenerate. | |
7032 | * gdbarch.h: Regenerate. | |
7033 | ||
ac74f770 MS |
7034 | 2011-01-07 Michael Snyder <msnyder@vmware.com> |
7035 | ||
7036 | * ax-gdb.c: Adjust some long output strings. | |
7037 | * breakpoint.c: Ditto. | |
7038 | * charset.c: Ditto. | |
7039 | * cp-abi.c: Ditto. | |
7040 | * infcall.c: Ditto. | |
7041 | * infrun.c: Ditto. | |
7042 | * linux-nat.c: Ditto. | |
7043 | * solib-pa64.c: Ditto. | |
7044 | * solib-som.c: Ditto. | |
7045 | ||
d8e22779 TT |
7046 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
7047 | ||
7048 | PR python/12367: | |
7049 | * NEWS: Add item. | |
7050 | * python/python.c (GdbMethods): Add "newest_frame" method. | |
7051 | * python/python-internal.h (gdbpy_newest_frame): Declare. | |
7052 | * python/py-frame.c (gdbpy_newest_frame): New function. | |
7053 | ||
a255712f PP |
7054 | 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com> |
7055 | ||
7056 | * jit.h (struct jit_code_entry): use ULONGEST for symfile_size. | |
7057 | * jit.c (jit_debug): New variable. | |
7058 | (show_jit_debug): New function. | |
7059 | (struct target_buffer): Use ULONGEST. | |
7060 | (bfd_open_from_target_memory): Likewise. | |
7061 | (jit_register_code, jit_inferior_init): Add debug output. | |
7062 | (_initialize_jit): Register "debug jit" command. | |
7063 | ||
ccfc3d6e TT |
7064 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
7065 | ||
7066 | * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment. | |
7067 | * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME | |
7068 | and ARCH_FRAME. | |
7069 | ||
57126e4a TT |
7070 | 2011-01-06 Tom Tromey <tromey@redhat.com> |
7071 | ||
7072 | * python/py-frame.c (frapy_block): Use get_frame_block. | |
7073 | ||
16dfc9ce JB |
7074 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
7075 | ||
7076 | Do not stop on SIGPRIO signals by default | |
7077 | * infrun.c (_initialize_infrun): Unset signal_stop and | |
7078 | signal_print for TARGET_SIGNAL_PRIO. | |
7079 | ||
b1ce2347 JB |
7080 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
7081 | ||
7082 | * ada-tasks.c: Fix style violation in comment. | |
7083 | ||
8f7e195f JB |
7084 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
7085 | ||
7086 | * linespec.c (decode_compound, find_method): Remove trailing \n | |
7087 | at end of error string. | |
7088 | * solib-irix.c (irix_current_sos): Likewise. | |
7089 | * varobj.c (uninstall_variable): Likewise. | |
7090 | ||
e9bdf92c JB |
7091 | 2011-01-06 Joel Brobecker <brobecker@adacore.com> |
7092 | ||
7093 | * copyright.py: New script. | |
7094 | * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc. | |
7095 | Launch emacs without exec'ing. Call copyright.py afterwards. | |
7096 | ||
3e43a32a MS |
7097 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
7098 | ||
7099 | * addrmap.c: Shorten lines of >= 80 columns. | |
7100 | * arch-utils.c: Ditto. | |
7101 | * arch-utils.h: Ditto. | |
7102 | * ax-gdb.c: Ditto. | |
7103 | * ax-general.c: Ditto. | |
7104 | * bcache.c: Ditto. | |
7105 | * blockframe.c: Ditto. | |
7106 | * breakpoint.c: Ditto. | |
7107 | * buildsym.c: Ditto. | |
7108 | * c-lang.c: Ditto. | |
7109 | * c-typeprint.c: Ditto. | |
7110 | * charset.c: Ditto. | |
7111 | * coffread.c: Ditto. | |
7112 | * command.h: Ditto. | |
7113 | * corelow.c: Ditto. | |
7114 | * cp-abi.c: Ditto. | |
7115 | * cp-namespace.c: Ditto. | |
7116 | * cp-support.c: Ditto. | |
7117 | * dbug-rom.c: Ditto. | |
7118 | * dbxread.c: Ditto. | |
7119 | * defs.h: Ditto. | |
7120 | * dfp.c: Ditto. | |
7121 | * dfp.h: Ditto. | |
7122 | * dictionary.c: Ditto. | |
7123 | * disasm.c: Ditto. | |
7124 | * doublest.c: Ditto. | |
7125 | * dwarf2-frame.c: Ditto. | |
7126 | * dwarf2expr.c: Ditto. | |
7127 | * dwarf2loc.c: Ditto. | |
7128 | * dwarf2read.c: Ditto. | |
7129 | * elfread.c: Ditto. | |
7130 | * eval.c: Ditto. | |
7131 | * event-loop.c: Ditto. | |
7132 | * event-loop.h: Ditto. | |
7133 | * exceptions.h: Ditto. | |
7134 | * exec.c: Ditto. | |
7135 | * expprint.c: Ditto. | |
7136 | * expression.h: Ditto. | |
7137 | * f-lang.c: Ditto. | |
7138 | * f-valprint.c: Ditto. | |
7139 | * findcmd.c: Ditto. | |
7140 | * frame-base.c: Ditto. | |
7141 | * frame-unwind.c: Ditto. | |
7142 | * frame-unwind.h: Ditto. | |
7143 | * frame.c: Ditto. | |
7144 | * frame.h: Ditto. | |
7145 | * gcore.c: Ditto. | |
7146 | * gdb-stabs.h: Ditto. | |
7147 | * gdb_assert.h: Ditto. | |
7148 | * gdb_dirent.h: Ditto. | |
7149 | * gdb_obstack.h: Ditto. | |
7150 | * gdbcore.h: Ditto. | |
7151 | * gdbtypes.c: Ditto. | |
7152 | * gdbtypes.h: Ditto. | |
7153 | * inf-ttrace.c: Ditto. | |
7154 | * infcall.c: Ditto. | |
7155 | * infcmd.c: Ditto. | |
7156 | * inflow.c: Ditto. | |
7157 | * infrun.c: Ditto. | |
7158 | * inline-frame.h: Ditto. | |
7159 | * language.c: Ditto. | |
7160 | * language.h: Ditto. | |
7161 | * libunwind-frame.c: Ditto. | |
7162 | * libunwind-frame.h: Ditto. | |
7163 | * linespec.c: Ditto. | |
7164 | * linux-nat.c: Ditto. | |
7165 | * linux-nat.h: Ditto. | |
7166 | * linux-thread-db.c: Ditto. | |
7167 | * machoread.c: Ditto. | |
7168 | * macroexp.c: Ditto. | |
7169 | * macrotab.c: Ditto. | |
7170 | * main.c: Ditto. | |
7171 | * maint.c: Ditto. | |
7172 | * mdebugread.c: Ditto. | |
7173 | * memattr.c: Ditto. | |
7174 | * minsyms.c: Ditto. | |
7175 | * monitor.c: Ditto. | |
7176 | * monitor.h: Ditto. | |
7177 | * objfiles.c: Ditto. | |
7178 | * objfiles.h: Ditto. | |
7179 | * osabi.c: Ditto. | |
7180 | * p-typeprint.c: Ditto. | |
7181 | * p-valprint.c: Ditto. | |
7182 | * parse.c: Ditto. | |
7183 | * printcmd.c: Ditto. | |
7184 | * proc-events.c: Ditto. | |
7185 | * procfs.c: Ditto. | |
7186 | * progspace.c: Ditto. | |
7187 | * progspace.h: Ditto. | |
7188 | * psympriv.h: Ditto. | |
7189 | * psymtab.c: Ditto. | |
7190 | * record.c: Ditto. | |
7191 | * regcache.c: Ditto. | |
7192 | * regcache.h: Ditto. | |
7193 | * remote-fileio.c: Ditto. | |
7194 | * remote.c: Ditto. | |
7195 | * ser-mingw.c: Ditto. | |
7196 | * ser-tcp.c: Ditto. | |
7197 | * ser-unix.c: Ditto. | |
7198 | * serial.c: Ditto. | |
7199 | * serial.h: Ditto. | |
7200 | * solib-frv.c: Ditto. | |
7201 | * solib-irix.c: Ditto. | |
7202 | * solib-osf.c: Ditto. | |
7203 | * solib-pa64.c: Ditto. | |
7204 | * solib-som.c: Ditto. | |
7205 | * solib-sunos.c: Ditto. | |
7206 | * solib-svr4.c: Ditto. | |
7207 | * solib-target.c: Ditto. | |
7208 | * solib.c: Ditto. | |
7209 | * somread.c: Ditto. | |
7210 | * source.c: Ditto. | |
7211 | * stabsread.c: Ditto. | |
7212 | * stabsread.c: Ditto. | |
7213 | * stack.c: Ditto. | |
7214 | * stack.h: Ditto. | |
7215 | * symfile-mem.c: Ditto. | |
7216 | * symfile.c: Ditto. | |
7217 | * symfile.h: Ditto. | |
7218 | * symmisc.c: Ditto. | |
7219 | * symtab.c: Ditto. | |
7220 | * symtab.h: Ditto. | |
7221 | * target-descriptions.c: Ditto. | |
7222 | * target-memory.c: Ditto. | |
7223 | * target.c: Ditto. | |
7224 | * target.h: Ditto. | |
7225 | * terminal.h: Ditto. | |
7226 | * thread.c: Ditto. | |
7227 | * top.c: Ditto. | |
7228 | * tracepoint.c: Ditto. | |
7229 | * tracepoint.h: Ditto. | |
7230 | * ui-file.c: Ditto. | |
7231 | * ui-file.h: Ditto. | |
7232 | * ui-out.h: Ditto. | |
7233 | * user-regs.c: Ditto. | |
7234 | * user-regs.h: Ditto. | |
7235 | * utils.c: Ditto. | |
7236 | * valarith.c: Ditto. | |
7237 | * valops.c: Ditto. | |
7238 | * valprint.c: Ditto. | |
7239 | * valprint.h: Ditto. | |
7240 | * value.c: Ditto. | |
7241 | * varobj.c: Ditto. | |
7242 | * varobj.h: Ditto. | |
7243 | * vec.h: Ditto. | |
7244 | * xcoffread.c: Ditto. | |
7245 | * xcoffsolib.c: Ditto. | |
7246 | * xcoffsolib.h: Ditto. | |
7247 | * xml-syscall.c: Ditto. | |
7248 | * xml-tdesc.c: Ditto. | |
7249 | ||
9a2b4c1b MS |
7250 | 2011-01-05 Michael Snyder <msnyder@vmware.com> |
7251 | ||
7252 | * cli/cli-cmds.c: Shorten lines of >= 80 columns. | |
7253 | * cli/cli-decode.c: Ditto. | |
7254 | * cli/cli-dump.c: Ditto. | |
7255 | * cli/cli-logging.c: Ditto. | |
7256 | * cli/cli-script.c: Ditto. | |
7257 | * cli/cli-setshow.c: Ditto. | |
7258 | * common/signals.c: Ditto. | |
7259 | * mi/mi-cmd-break.c: Ditto. | |
7260 | * mi/mi-cmd-disas.c: Ditto. | |
7261 | * mi/mi-cmd-stack.c: Ditto. | |
7262 | * mi/mi-cmd-var.c: Ditto. | |
7263 | * mi/mi-cmds.c: Ditto. | |
7264 | * mi/mi-common.h: Ditto. | |
7265 | * mi/mi-console.c: Ditto. | |
7266 | * mi/mi-interp.c: Ditto. | |
7267 | * mi/mi-main.c: Ditto. | |
7268 | * osf-share/cma_attr.c: Ditto. | |
7269 | * osf-share/cma_deb_core.h: Ditto. | |
7270 | * osf-share/cma_debug_client.h: Ditto. | |
7271 | * osf-share/cma_handle.h: Ditto. | |
7272 | * osf-share/cma_mutex.h: Ditto. | |
7273 | * osf-share/cma_stack_int.h: Ditto. | |
7274 | * osf-share/cma_tcb_defs.h: Ditto. | |
7275 | * python/py-auto-load.c: Ditto. | |
7276 | * python/py-breakpoint.c: Ditto. | |
7277 | * python/py-cmd.c: Ditto. | |
7278 | * python/py-frame.c: Ditto. | |
7279 | * python/py-objfile.c: Ditto. | |
7280 | * python/py-param.c: Ditto. | |
7281 | * python/py-progspace.c: Ditto. | |
7282 | * python/py-symbol.c: Ditto. | |
7283 | * python/py-value.c: Ditto. | |
7284 | * python/python-internal.h: Ditto. | |
7285 | * python/python.c: Ditto. | |
7286 | * tui/tui-data.c: Ditto. | |
7287 | * tui/tui-disasm.c: Ditto. | |
7288 | * tui/tui-hooks.c: Ditto. | |
7289 | * tui/tui-io.c: Ditto. | |
7290 | * tui/tui-layout.c: Ditto. | |
7291 | * tui/tui-regs.c: Ditto. | |
7292 | * tui/tui-source.c: Ditto. | |
7293 | * tui/tui-stack.c: Ditto. | |
7294 | * tui/tui-win.c: Ditto. | |
7295 | * tui/tui-windata.c: Ditto. | |
7296 | * tui/tui-winsource.c: Ditto. | |
7297 | ||
44944448 JB |
7298 | 2011-01-05 Joel Brobecker <brobecker@adacore.com> |
7299 | ||
7300 | * configure.ac, gdb.1: Copyright year update. | |
7301 | ||
ebedcab5 JK |
7302 | 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
7303 | ||
7304 | * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables | |
7305 | this_pc_in_block, morestack_msym and morestack_name. Check for | |
7306 | "__morestack" minimal symbol there. | |
7307 | ||
e5cc9f32 JB |
7308 | 2011-01-03 Joel Brobecker <brobecker@adacore.com> |
7309 | ||
7310 | * symfile.c (find_sym_fns): Add call to dont_repeat. | |
7311 | ||
7b6bb8da JB |
7312 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
7313 | ||
7314 | Copyright year update in most files (performed by copyright.sh). | |
7315 | ||
71ce852c JB |
7316 | 2011-01-01 Joel Brobecker <brobecker@adacore.com> |
7317 | ||
7318 | * top.c (print_gdb_version): Update copyright year in version output. | |
0e2de366 | 7319 | |
c3c1ebe8 | 7320 | For older changes see ChangeLog-2010. |
c906108c SS |
7321 | \f |
7322 | Local Variables: | |
7323 | mode: change-log | |
7324 | left-margin: 8 | |
7325 | fill-column: 74 | |
7326 | version-control: never | |
57da7796 | 7327 | coding: utf-8 |
c906108c | 7328 | End: |