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