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