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