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