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