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