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