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