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