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