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