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