Remove trailing spaces in ada-lang.c:ada_lookup_simple_minsym doc.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2e6e0353
JB
12012-03-29 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4 in function documentation.
5
dc4024cd
JB
62012-03-29 Joel Brobecker <brobecker@adacore.com>
7 Andrey Smirnov <andrew.smirnov@gmail.com>
8
9 -Wshadow warning fix.
10 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
11 variable into wild_match_p. Adjust code accordingly.
12
6c88661c
JB
132012-03-29 Joel Brobecker <brobecker@adacore.com>
14 Andrey Smirnov <andrew.smirnov@gmail.com>
15
16 * ada-valprint.c (ada_val_print_1): Move the code handling
17 TYPE_CODE_ENUM inside its own lexical block. Declare
18 variables len and val there, instead of in the function's
19 top level block. Avoid declaring deref_val again in a way
20 that shadows another variable of the same name declared
21 in one of the up-level blocks. Just re-use the up-level
22 variable instead.
23
4e5c77fe
JB
242012-03-29 Joel Brobecker <brobecker@adacore.com>
25
26 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
27 Replace block_found argument by symbol_info. Adjust
28 implementation accordingly. Add function documentation.
29 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
30 Fix documentation.
31 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
32 * ada-exp.y (write_object_renaming): Adjust to new
33 ada_lookup_encoded_symbol API.
34
1c0ac8c7
JB
352012-03-29 Joel Brobecker <brobecker@adacore.com>
36
37 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
38 documentation.
39
2aaed979
KB
402012-03-28 Rathish C <rathish.c@kpitcummins.com>
41
42 * v850-tdep.c: Add the enum values for mpu and fpu registers.
43 (v850_register_name): Add the mpu and fpu register names.
44 (v850e_register_name): Add the mpu and fpu register names.
45 (v850e2_register_name): New function.
46 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
47 bfd_mach_v850e2v3.
48
927fbba6
JB
492012-03-28 Joel Brobecker <brobecker@adacore.com>
50
51 * NEWS: Add entry for Ada varobj support.
52
d32cafc7
JB
532012-03-28 Joel Brobecker <brobecker@adacore.com>
54
55 * varobj.c (default_value_is_changeable_p): New function,
56 extracted from varobj_value_is_changeable_p. Add declaration.
57 (ada_value_is_changeable_p): New function, extracted from
58 varobj_value_is_changeable_p. Add declaration.
59 (struct language_specific): New field "value_is_changeable_p".
60 (languages): Add entries for new field.
61 (varobj_create): Set language before calling install_new_value.
62 (varobj_value_is_changeable_p): Reimplement to call the varobj's
63 "value_is_changeable_p" language callback.
64
181875a4
JB
652012-03-28 Joel Brobecker <brobecker@adacore.com>
66
67 * ada-varobj.h, ada-varobj.c: New files.
68 * Makefile.in (SFILES): Add ada-varobj.c.
69 (HFILES_NO_SRCDIR): Add ada-varobj.h.
70 (COMMON_OBS): Add ada-varobj.o.
71
7a290c40
JB
722012-03-28 Joel Brobecker <brobecker@adacore.com>
73
74 * varobj.c (ada_value_has_mutated): Add declaration. New function.
75 (struct language_specific): New field "value_has_mutated".
76 (languages): Set field "value_has_mutated" in each entry of array.
77 (varobj_value_has_mutated): New function.
78 (varobj_udpdate): Add handling of type mutation.
79 (value_of_root): Add handling of type mutation.
80 (ada_value_has_mutated): New function.
81
ca9b8b9c
PA
822012-03-28 Pedro Alves <palves@redhat.com>
83
84 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
85 Always supply $fr0 as 0.0 and $fr1 as 1.0.
86
cc0265cd
TT
872012-03-28 Tom Tromey <tromey@redhat.com>
88
89 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
90 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
91 before returning.
92
3ad2ec6f
TT
932012-03-28 Tom Tromey <tromey@redhat.com>
94
95 * .dir-locals.el: New file.
96
4a6510ba
PA
972012-03-28 Pedro Alves <palves@redhat.com>
98
99 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
100
5a75128f
JB
1012012-03-28 Joel Brobecker <brobecker@adacore.com>
102
103 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
104 handling for r0.
105
f99d8bf4
PA
1062012-03-27 Pedro Alves <palves@redhat.com>
107
108 Eliminate struct ui_stream.
109
110 * ui-out.h (struct ui_stream): Delete.
111 (ui_out_field_stream): Adjust prototype.
112 (ui_out_stream_new, ui_out_stream_delete)
113 (make_cleanup_ui_out_stream_delete): Delete declarations.
114 * ui-out.c (ui_out_field_stream): Change prototype to take a
115 ui_file instead of a ui_stream. Adjust.
116 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
117 (make_cleanup_ui_out_stream_delete): Delete.
118 * breakpoint.c (print_breakpoint_location)
119 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
120 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
121 * disasm.c (dump_insns): Ditto.
122 (do_mixed_source_and_assembly, do_assembly_only): Adjust
123 prototype.
124 (gdb_disassembly): Use ui_file/mem_fileopen instead of
125 ui_stream/ui_out_stream_new.
126 * infcmd.c (print_return_value): Ditto.
127 * osdata.c (info_osdata_command): Don't allocate a local
128 ui_stream.
129 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
130 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
131 * tracepoint.c (print_one_static_tracepoint_marker): Don't
132 allocate a local ui_stream.
133 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
134 instead of ui_stream/ui_out_stream_new.
135 (list_args_or_locals): Don't allocate a local ui_stream.
136 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
137 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
138 ui_stream/ui_out_stream_new.
139 * cli/cli-setshow.c (do_setshow_command): Ditto.
140
6350a066 1412012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 142
6350a066
PA
143 * arm-linux-tdep.c (arm_linux_init_abi): Call
144 set_gdbarch_process_record. Initialize `arm_swi_record' field.
145 * arm-tdep.c (arm_process_record): New function.
146 (deallocate_reg_mem): New function.
147 (decode_insn): New function.
148 (thumb_record_branch): New function.
149 (thumb_record_ldm_stm_swi(): New function.
150 (thumb_record_misc): New function.
151 (thumb_record_ld_st_stack): New function.
152 (thumb_record_ld_st_imm_offset): New function.
153 (thumb_record_ld_st_reg_offset(): New function.
154 (thumb_record_add_sub_cmp_mov): New function.
155 (thumb_record_shift_add_sub): New function.
156 (arm_record_coproc_data_proc): New function.
157 (arm_record_coproc): New function.
158 (arm_record_b_bl): New function.
159 (arm_record_ld_st_multiple): New function.
160 (arm_record_ld_st_reg_offset): New function.
161 (arm_record_ld_st_imm_offset): New function.
162 (arm_record_data_proc_imm): New function.
163 (arm_record_data_proc_misc_ld_str): New function.
164 (arm_record_extension_space): New function.
165 (arm_record_strx): New function.
166 (sbo_sbz): New function.
167 (struct insn_decode_record): New structure for arm insn record.
168 (REG_ALLOC): New macro for reg allocations.
169 (MEM_ALLOC): New macro for memory allocations.
170 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 171
89e028e2
AS
1722012-03-27 Andreas Schwab <schwab@linux-m68k.org>
173
174 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
175 (store_register): Likewise.
176
6350a066 1772012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 178
6350a066 179 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 180
5b43fab2
JK
1812012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
182
183 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
184 Describe also the option "auto".
185
b5453b95
RH
1862012-03-22 Richard Henderson <rth@redhat.com>
187
188 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
189 * sparc-nat.c (sparc_xfer_wcookie): Make static.
190
227ee7fc
RH
1912012-03-22 Richard Henderson <rth@redhat.com>
192
193 * jit.c (jit_read_code_entry): Compute alignment and offset of
194 int64_t member before computing entry_size.
195
7b282c5a
SCR
1962012-03-22 Siva Chandra Reddy <sivachandra@google.com>
197
198 Python scripting: Add new method Value.referenced_value to
199 gdb.Value which can dereference pointer as well as reference
200 values.
201 * NEWS: Add entry under 'Python scripting' about the new method
202 Value.referenced_value on gdb.Value objects.
203 * python/py-value.c (valpy_referenced_value): New function
204 defining a new method on gdb.Value objects which can dereference
205 pointer and reference values.
206
0c83539f
SCR
2072012-03-22 Siva Chandra Reddy <sivachandra@google.com>
208
209 * MAINTAINERS (Write After Approval): Add myself to the list.
210
7ccffd7c
KB
2112012-03-21 Kevin Buettner <kevinb@redhat.com>
212
213 * symtab.c (skip_prologue_sal): Change test to check for "main()"
214 in addition to "main".
215
bd0b9f9e
JB
2162012-03-21 Joel Brobecker <brobecker@adacore.com>
217
218 * expression.h (op_name): Add declaration.
219 * expprint.c (op_name): Remove declaration. Make non-static.
220 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
221
a5362b9a
TS
2222012-03-21 Thomas Schwinge <thomas@codesourcery.com>
223
224 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
225 of struct siginfo.
226 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
227 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
228 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
229 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
230 (linux_nat_get_siginfo): Likewise.
231 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
232 (linux_nat_get_siginfo): Likewise.
233 * linux-tdep.c (linux_get_siginfo_type): Likewise.
234 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
235 * procfs.c (gdb_siginfo_t): Likewise.
236
adcadaab
MF
2372012-03-21 Mike Frysinger <vapier@gentoo.org>
238
239 * .gitignore: Ignore more files.
240
e278ad5b
PA
2412012-03-20 Pedro Alves <palves@redhat.com>
242
243 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
244 returns.
245
741e63d7
YQ
2462012-03-20 Yao Qi <yao@codesourcery.com>
247
248 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
249 comment.
250
b64f50a1
JK
2512012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
252
253 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
254 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
255 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
256 sect_offset.
257 * dwarf2expr.h (cu_offset, sect_offset): New types.
258 (struct dwarf_expr_context_funcs) <dwarf_call>
259 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
260 sect_offset.
261 (struct dwarf_expr_context) <len>: Improve the comment.
262 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
263 cu_offset and sect_offset.
264 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
265 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
266 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
267 * dwarf2loc.h: Include dwarf2expr.h.
268 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
269 and sect_offset.
270 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
271 Improve the comment.
272 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
273 (struct signatured_type, struct line_header, struct partial_die_info)
274 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
275 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
276 (get_die_type_at_offset, create_cus_from_index)
277 (create_signatured_type_table_from_index, dw2_get_file_names)
278 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
279 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
280 (create_debug_types_hash_table, process_psymtab_comp_unit)
281 (load_partial_comp_unit, create_all_comp_units)
282 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
283 (load_full_comp_unit, dwarf2_physname, read_import_statement)
284 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
285 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
286 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
287 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
288 (find_partial_die, read_attribute_value, lookup_die_type)
289 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
290 (is_ref_attr): New function comment.
291 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
292 Use cu_offset and sect_offset.
293 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
294 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
295 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
296 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
297 (offset_and_type_hash, offset_and_type_eq, set_die_type)
298 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
299 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
300 sect_offset.
301
e97a38f7
JK
3022012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
303
304 Code cleanup.
305 * python/py-auto-load.c (source_section_scripts): New variable back_to.
306 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
307 with xfree.
308 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
309
8320cc4f
JK
3102012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
311
312 * NEWS: Describe new options --init-command=FILE, -ix and
313 --init-eval-command=COMMAND, -iex.
314 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
315 CMDARG_INIT_COMMAND.
316 (captured_main): New enum items OPT_IX and OPT_IEX. Add
317 "init-command", "init-eval-command", "ix" and "iex" to the variable
318 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
319 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
320 (print_gdb_help): Describe --init-command=FILE, -ix and
321 --init-eval-command=COMMAND, -iex.
322
26743505
JK
3232012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
324
325 Code cleanup.
326 * main.c (struct cmdarg): Move it here from main. Add more comments.
327 (cmdarg_s, VEC (cmdarg_s)): New.
328 (main): Move struct cmdarg from here. New variables cmdarg_vec and
329 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
330 Install cleanup for cmdarg_vec. Update filling for options 'x' and
331 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
332 of CMDARG.
333
5ff5c7b4
TT
3342012-03-19 Tom Tromey <tromey@redhat.com>
335
336 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
337
ab260dad
JK
3382012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
339
340 PR symtab/13777
341 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
342 GCC >=4.5.
343
c366c1f0
TT
3442012-03-16 Chris January <chris.january@allinea.com>
345
346 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
347 of clear.
348
e16edb45
TT
3492012-03-16 Chris January <chris.january@allinea.com>
350
351 * source.c (add_path): Use memmove instead of strcpy because the
352 strings overlap.
353
53ba8333
JB
3542012-03-16 Joel Brobecker <brobecker@adacore.com>
355
356 * value.h (set_value_parent): Add declaration.
357 * value.c (set_value_parent): New function.
358 (value_address): If VALUE->PARENT is not NULL, then use it as
359 the base address instead of VALUE->LOCATION.address.
360 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
361 the same as OBJ's address. Adjust V's offset accordingly.
362 Set V's parent.
363
481860b3
GB
3642012-03-16 Gary Benson <gbenson@redhat.com>
365
366 PR breakpoints/10738
367 * dwarf2read.c (use_deprecated_index_sections): New global.
368 (struct partial_die_info): New member may_be_inlined.
369 (read_partial_die): Set may_be_inlined where appropriate.
370 (add_partial_subprogram): Add partial symbols for partial
371 DIEs that may be inlined.
372 (new_symbol_full): Add inlined subroutines to the current
373 scope.
374 (write_psymtabs_to_index): Bump version number.
375 (dwarf2_read_index): Read only version 6 indices unless
376 use_deprecated_index_sections is set.
377 * linespec.c (symbol_and_data_callback): New structure.
378 (iterate_inline_only): New function.
379 (iterate_over_all_matching_symtabs): New argument
380 "include_inline". If nonzero, also call the callback for
381 symbols representing inlined subroutines.
382 (lookup_prefix_sym): Pass extra argument to the above.
383 (find_function_symbols): Likewise.
384 (add_matching_symbols_to_info): Likewise.
385 * NEWS: Mention that GDB can now set breakpoints on inlined
386 functions.
387
d0e7e15a
PM
3882012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
389
390 * p-typeprint.c (pascal_type_print_method_args):
391 Fix display of parameter of methods.
392
3d354654
PM
3932012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
394
395 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
396 Add missing prototype.
397
cafe75b0
JK
3982012-03-16 Yao Qi <yao@codesourcery.com>
399 Jan Kratochvil <jan.kratochvil@redhat.com>
400
401 Fix false compilation warning.
402 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
403
25f8c692
JL
4042012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
405 Pedro Alves <pedro@codesourcery.com>
406
407 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
408 (arm_register_g_packet_guesses): New function.
409 (arm_gdbarch_init): Don't force a target description with
410 registers when the executable is detected as M-profile. Instead
411 set gdbarch->tdep->is_m. Register `g' packet guesses.
412 (_initialize_arm_tdep): Initialize the new target description.
413 * features/arm-with-m-fpa-layout.xml: New description.
414 * features/arm-with-m-fpa-layout.c: New, generated.
415
35c63cd8
JB
4162012-03-15 Joel Brobecker <brobecker@adacore.com>
417
418 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
419 Update function description.
420 (insert_bp_location): Do not wipe bl->target_info out.
421 * mem-break.c: #include "gdb_string.h".
422 (default_memory_insert_breakpoint): Do not call target_read_memory
423 with a pointer to the breakpoint's shadow_contents buffer. Use
424 a local buffer instead.
425 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
426
57651221
TT
4272012-03-15 Tom Tromey <tromey@redhat.com>
428
429 * NEWS: Mention "info vtbl", not "info vtable".
430 * cp-support.c (info_vtbl_command): Fix comment.
431 (_initialize_cp_support): Fix text.
432
410528f0
TT
4332012-03-15 Tom Tromey <tromey@redhat.com>
434
435 * cp-valprint.c (cp_print_value_fields): Use
436 print_function_pointer_address for vtable slot.
437
c4aeac85
TT
4382012-03-15 Tom Tromey <tromey@redhat.com>
439
440 * gnu-v3-abi.c (struct value_and_voffset): New.
441 (hash_value_and_voffset, eq_value_and_voffset)
442 (compare_value_and_voffset, compute_vtable_size)
443 (print_one_vtable, gnuv3_print_vtable): New functions.
444 (init_gnuv3_ops): Initialize 'print_vtable' field.
445 * cp-support.c (info_vtbl_command): New function.
446 (_initialize_cp_support): Add "info vtbl".
447 * cp-abi.h (cplus_print_vtable): Declare.
448 (struct cp_abi_ops) <print_vtable>: New field.
449 * cp-abi.c (cplus_print_vtable): New function.
450 * NEWS: Update.
451
95cbceff
TT
4522012-03-15 Tom Tromey <tromey@redhat.com>
453
454 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
455 iterate_over_symbols.
456
589b4a32
DE
4572012-03-14 Doug Evans <dje@google.com>
458
459 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
460 DW_OP_GNU_parameter_ref.
461
e837f12a
JK
4622012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
463
464 Fix double prompt of 'interpreter-exec mi'.
465 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
466 (mi_interpreter_resume): use it.
467 (mi_execute_command_input_handler): New function.
468 * mi/mi-main.c (mi_execute_command): Move prompt printing to
469 mi_execute_command_input_handler.
470
ff1e4526 4712012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
472
473 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
474 prototype.
475 (darwin_debug_port_info): Make static.
476 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
477 * machoread.c (_initialize_machoread): Add prototype.
478 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
479 (i386_darwin_set_control, i386_darwin_get_control)
480 i386_darwin_dr_set_addr, i386_darwin_get_addr)
481 i386_darwin_get_status, i386_darwin_get_control):
482 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
483
d8a5d6ee
JB
4842012-03-13 Joel Brobecker <brobecker@adacore.com>
485
486 * ax-gdb.c (gen_usual_unary): Remove special handling of
487 enum and bool types.
488
af381b8c
JB
4892012-03-13 Joel Brobecker <brobecker@adacore.com>
490
491 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
492
786c562f
JB
4932012-03-13 Joel Brobecker <brobecker@adacore.com>
494
495 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
496
e3ebf1bb
JB
4972012-03-13 Chris January <chris.january@allinea.com>
498
499 * aix-thread.c (fill_sprs): Store the floating point registers
500 at the correct offsets into vals.
501
c5b7e1cb
DE
5022012-03-13 Doug Evans <dje@google.com>
503
16899756
DE
504 * NEWS: Mention symbol-reloading has been deleted.
505 * symfile.c (symbol_reloading): Delete.
506 (show_symbol_reloading): Delete.
507 (_initialize_symfile): Delete set/show symbol-reloading.
508
c5b7e1cb
DE
509 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
510 read_in_chain until we have successfully read it in.
511 (load_full_comp_unit): Ditto.
512 (read_signatured_type): Add comment.
513
46cb6474
JB
5142012-03-13 Chris January <chris.january@allinea.com>
515
516 * stabsread.c (fix_common_block): Change type of valu argument
517 to CORE_ADDR.
518
76219d77
JB
5192012-03-13 Chris January <chris.january@allinea.com>
520
521 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
522 instruction.
523
87b0bb13
JK
5242012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
525
526 * common/linux-procfs.c (linux_proc_get_int): New, from
527 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
528 field.
529 (linux_proc_get_tgid): Only call linux_proc_get_int.
530 (linux_proc_get_tracerpid): New.
531 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
532 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
533 linux_proc_pid_has_state.
534 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
535 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
536 (linux_ptrace_attach_warnings): New.
537 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
538 New declaration.
539 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
540 (linux_nat_attach): New variables ex, buffer, message and message_s.
541 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
542
5f572dec
JK
5432012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
544
545 * Makefile.in (linux-ptrace.o): New.
546 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
547 from linux-nat.c.
548 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
549 * common/linux-ptrace.c: New file.
550 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
551 * config/arm/linux.mh: Likewise.
552 * config/i386/linux.mh: Likewise.
553 * config/i386/linux64.mh: Likewise.
554 * config/ia64/linux.mh: Likewise.
555 * config/m32r/linux.mh: Likewise.
556 * config/m68k/linux.mh: Likewise.
557 * config/mips/linux.mh: Likewise.
558 * config/pa/linux.mh: Likewise.
559 * config/powerpc/linux.mh: Likewise.
560 * config/powerpc/ppc64-linux.mh: Likewise.
561 * config/powerpc/spu-linux.mh: Likewise.
562 * config/s390/s390.mh: Likewise.
563 * config/sparc/linux.mh: Likewise.
564 * config/sparc/linux64.mh: Likewise.
565 * config/xtensa/linux.mh: Likewise.
566 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
567 common/linux-procfs.c.
568 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
569
44f238bb
PA
5702012-03-13 Hui Zhu <teawater@gmail.com>
571 Pedro Alves <palves@redhat.com>
572
573 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
574 CREATE_BREAKPOINT_FLAGS_INSERTED.
575 (create_breakpoint_sal, create_breakpoints_sal)
576 (base_breakpoint_create_breakpoints_sal)
577 (tracepoint_create_breakpoints_sal)
578 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
579 down.
580 (break_command_1, handle_gnu_v3_exceptions, trace_command)
581 (ftrace_command, strace_command): Adjust.
582 (create_tracepoint_from_upload): Pass
583 CREATE_BREAKPOINT_FLAGS_INSERTED.
584 * breakpoint.h (enum breakpoint_create_flags): New.
585 (create_breakpoint): New flags parameter.
586 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
587 * python/py-breakpoint.c (bppy_init): Adjust.
588 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
589 * spu-tdep.c (spu_catch_start): Adjust.
590
1e51243a
PA
5912012-03-13 Pedro Alves <palves@redhat.com>
592 Hui Zhu <teawater@gmail.com>
593 Yao Qi <yao@codesourcery.com>
594
595 * remote.c (struct remote_state): New field `starting_up'.
596 (remote_start_remote): Set and clear it.
597 (remote_can_download_tracepoint): If starting up, return false.
598
fa3064dd
YQ
5992012-03-13 Yao Qi <yao@codesourcery.com>
600
601 * inferior.h (struct inferior): Remove fields any_syscall_count,
602 syscalls_counts and total_syscalls_count. Move them to new
603 struct catch_syscall_inferior_data in breakpoint.c.
604 * breakpoint.c: Call DEF_VEC_I(int).
605 (struct catch_syscall_inferior_data): New.
606 (get_catch_syscall_inferior_data): New.
607 (catch_syscall_inferior_data_cleanup): New.
608 (insert_catch_syscall): Update to access data in
609 struct catch_syscall_inferior_data.
610 (insert_catch_syscall): Likewise.
611 (remove_catch_syscall): Likewise.
612 (remove_catch_syscall): Likewise.
613 (is_syscall_catchpoint_enabled): Likewise.
614 (add_catch_command): Likewise.
615 (_initialize_breakpoint): Register cleanup.
616 * breakpoint.h: Removed DEF_VEC_I(int).
617 * dwarf2loc.c: Call DEF_VEC_I(int).
618 * mi/mi-main.c: Likewise.
619
460fac3c
MK
6202012-03-12 Mark Kettenis <kettenis@gnu.org>
621
622 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
623
e1aca11e
JB
6242012-03-12 Chris January <chris.january@allinea.com>
625
626 * aix-thread.c (_initialize_aix_thread): Add prototype.
627 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
628 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
629
649c7061
JB
6302012-03-12 Joel Brobecker <brobecker@adacore.com>
631
632 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
633 include of "amd64-nat.h".
634
0b49e518
TT
6352012-03-12 Tom Tromey <tromey@redhat.com>
636
637 * buildsym.c (record_pending_block): Now static.
638 * buildsym.h: (record_pending_block): Remove.
639
fd24fa94
AT
6402012-03-12 Andreas Tobler <andreast@fgznet.ch>
641
642 * amd64bsd-nat.c: Include amd64bsd-nat.h.
643
ba919b58
TT
6442012-03-09 Tom Tromey <tromey@redhat.com>
645
646 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
647 producer_is_gxx_lt_4_6>: New fields.
648 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
649
a48e046c
TT
6502012-03-09 Tom Tromey <tromey@redhat.com>
651
652 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
653
6f5e9362
JB
6542012-03-08 Joel Brobecker <brobecker@adacore.com>
655
656 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
657 prototype.
658
8d037db9
JB
6592012-03-08 Joel Brobecker <brobecker@adacore.com>
660
661 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
662
4e841acf
JK
6632012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
664
665 Fix -Wmissing-prototypes build.
666 * arm-linux-nat.c (get_thread_id): Make it static.
667 * xtensa-linux-nat.c (get_thread_id): Likewise.
668
c6030312
JB
6692012-03-08 Joel Brobecker <brobecker@adacore.com>
670
671 * server.c (process_point_options): If a conditional expression
672 is found, only print a message if remote_debug is nonzero.
673
52323be9
LM
6742012-03-08 Luis Machado <lgustavo@codesourcery.com>
675
676 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
677 of internal error for unknown/unsupported types.
678
7fe25d9b
JK
6792012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
680
681 Fix CU relative vs. absolute DIE offsets.
682 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
683 offset to offset_in_cu.
684 * dwarf2read.c (process_enumeration_scope): Add CU offset to
685 TYPE_OFFSET.
686 (dwarf2_fetch_die_location_block): Rename parameter offset to
687 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
688
05e7c244
JK
6892012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
690
691 * libunwind-frame.c: Rename to ...
692 * ia64-libunwind-tdep.c: ... here.
693 * libunwind-frame.h: Rename to ...
694 * ia64-libunwind-tdep.h: ... here.
695 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
696 ia64-libunwind-tdep.h.
697 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
698 * README (--with-libunwind): Rename to ...
699 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
700 * config.in: Regenerate.
701 * configure: Regenerate.
702 * configure.ac: New option --with-libunwind-ia64, make the
703 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
704 Remove AC_DEFINE for HAVE_LIBUNWIND.
705 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
706 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
707 Rename libunwind-frame in the general comment.
708 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
709 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
710 Move forward declarations inside #ifndef. Rename libunwind-frame in
711 the general comment.
712 * ia64-tdep.c: Rename libunwind-frame.h #include to
713 ia64-libunwind-tdep.h.
714 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
715 (ia64_libunwind_descr): Rename libunwind-frame to
716 ia64-libunwind-tdep in these function comments.
717 * ia64-tdep.h: Rename libunwind-frame.h #include to
718 ia64-libunwind-tdep.h.
719 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
720 ia64-libunwind-tdep in that data comment.
721
3755cbfd
JK
7222012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
723
724 * libunwind-frame.h (struct frame_unwind): New declaration.
725
d1cda5d9
JB
7262012-03-08 Joel Brobecker <brobecker@adacore.com>
727
728 * breakpoint.c (_initialize_breakpoint): Fix error in help of
729 "set breakpoint condition-evaluation" command.
730
a0ba0aa2
TG
7312012-03-08 Tristan Gingold <gingold@adacore.com>
732
733 * sparc-stub.c: Move to stubs/
734 * sh-stub.c: Likewise.
735 * m68k-stub.c: Likewise.
736 * m32r-stub.c: Likewise.
737 * i386-stub.c: Likewise.
738
7b8b6d6d
AS
7392012-03-08 Andreas Schwab <schwab@linux-m68k.org>
740
007cafee
AS
741 * m68klinux-tdep.c (m68k_linux_init_abi): Register
742 linux_get_siginfo_type.
743
7b8b6d6d
AS
744 * m68klinux-nat.c: Include "gdb_proc_service.h".
745 (PTRACE_GET_THREAD_AREA): Define.
746 (ps_get_thread_area): New function.
747
bba74b36
YQ
7482012-03-08 Yao Qi <yao@codesourcery.com>
749
750 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
751 `xsnprintf'.
752 (remote_query_attached): Likewise.
753 (remote_static_tracepoint_marker_at): Likewise.
754 (remote_set_permissions): Likewise.
755 (remote_detach_1, extended_remote_attach_1): Likewise.
756 (send_g_packet, remote_vkill): Likewise.
757 (extended_remote_disable_randomization): Likewise.
758 (remote_add_target_side_condition): Likewise.
759 (remote_insert_breakpoint): Likewise.
760 (remote_remove_breakpoint): Likewise.
761 (remote_insert_watchpoint): Likewise.
762 (remote_remove_watchpoint): Likewise.
763 (remote_insert_hw_breakpoint): Likewise.
764 (remote_insert_hw_breakpoint): Likewise.
765 (remote_remove_hw_breakpoint): Likewise.
766 (remote_download_command_source): Likewise.
767 (remote_download_tracepoint): Likewise.
768 (remote_download_trace_state_variable): Likewise.
769 (remote_disable_tracepoint): Likewise.
770 (remote_trace_set_readonly_regions): Likewise.
771 (remote_get_tracepoint_status): Likewise.
772 (remote_trace_find): Likewise.
773 (remote_get_trace_state_variable_value): Likewise.
774 (remote_set_disconnected_tracing): Likewise.
775 (remote_set_circular_trace_buffer): Likewise.
776 (remote_get_min_fast_tracepoint_insn_len): Likewise.
777 (remote_use_agent): Likewise.
778 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
779 Update callers.
780
9b224c5e
PA
7812012-03-07 Pedro Alves <palves@redhat.com>
782
783 * NEWS: Mention QProgramSignals.
784 * inferior.h (update_signals_program_target): Declare.
785 * infrun.c: (update_signals_program_target): New.
786 (handle_command): Update the target of the new program signals
787 array changes.
788 * remote.c (PACKET_QProgramSignals): New enum.
789 (last_program_signals_packet): New global.
790 (remote_program_signals): New.
791 (remote_start_remote): Update the target with the program signals
792 list.
793 (remote_protocol_features): Add entry for QPassSignals.
794 (remote_open_1): Free anc clear last_program_signals_packet.
795 (init_remote_ops): Install remote_program_signals.
796 * target.c (update_current_target): Adjust.
797 (target_program_signals): New.
798 * target.h (struct target_ops) <to_program_signals>: New field.
799 (target_program_signals): Declare.
800
74c48cbb
PA
8012012-03-07 Pedro Alves <palves@redhat.com>
802
803 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
804 extensions.
805
0c13fc49
AS
8062012-03-07 Andreas Schwab <schwab@linux-m68k.org>
807
808 * m68klinux-nat.c (getregs_supplies): Make static.
809 (getfpregs_supplies): Likewise.
810 (have_ptrace_getregs): Likewise.
811
1281d2a3
JB
8122012-03-06 Joel Brobecker <brobecker@adacore.com>
813
814 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
815 in call to get_die_type_at_offset.
816
2b03b41d
SS
8172012-03-06 Stan Shebs <stan@codesourcery.com>
818
819 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
820 * mi/mi-cmd-disas.c: Ditto.
821 * mi/mi-cmd-env.c: Ditto.
822 * mi/mi-cmd-file.c: Ditto.
823 * mi/mi-cmd-stack.c: Ditto.
824 * mi/mi-cmd-target.c: Ditto.
825 * mi/mi-cmd-var.c: Ditto.
826 * mi/mi-cmds.c: Ditto.
827 * mi/mi-cmds.h: Ditto.
828 * mi/mi-console.c: Ditto.
829 * mi/mi-getopt.c: Ditto.
830 * mi/mi-getopt.h: Ditto.
831 * mi/mi-interp.c: Ditto.
832 * mi/mi-main.c: Ditto.
833 * mi/mi-out.c: Ditto.
834 * mi/mi-parse.c: Ditto.
835 * mi/mi-parse.h: Ditto.
836 * mi/mi-symbol-cmds.c: Ditto.
837
838 * mi/mi-getopt.h: Move mi_opt struct up.
839 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
840 return.
841 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
842
c988ad87
TT
8432012-03-06 Tom Tromey <tromey@redhat.com>
844
845 * proc-service.c (ps_pglobal_lookup): Set the current program
846 space.
847
1b7c1b10
PA
8482012-03-06 Pedro Alves <palves@redhat.com>
849
850 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
851
3c182069
JB
8522012-03-05 Joel Brobecker <brobecker@adacore.com>
853
854 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
855
2e794194
JK
8562012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
857
858 Code cleanup.
859 * common/linux-osdata.c (linux_common_core_of_thread): New function
860 comment.
861 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
862 call by linux_common_core_of_thread.
863 (linux_nat_core_of_thread_1): Remove.
864 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
865 * linux-thread-db.c: Include linux-osdata.h.
866 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
867 linux_common_core_of_thread.
868
9f9f1f31
TT
8692012-03-05 Tom Tromey <tromey@redhat.com>
870
871 * value.c (value_primitive_field): Don't fetch contents for
872 non-virtual bases.
873
b7b189f3
TT
8742012-03-05 Tom Tromey <tromey@redhat.com>
875
876 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
877
05b8a789 8782012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 879
5538f557
JB
880 * s390-nat.c: Include "gregset.h".
881
75528772
JK
8822012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
883
884 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
885 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
886 (libunwind_load): New variable so_error, use it for dlerror. Try to
887 load also LIBUNWIND_SO_7.
888
275418ae
PA
8892012-03-05 Pedro Alves <palves@redhat.com>
890
891 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
892 is not NULL, and remove resulting dead code.
893
5cbb9812
TS
8942012-03-05 Thomas Schwinge <thomas@codesourcery.com>
895
896 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
897 prologue to sh_analyze_prologue.
898 (sh_analyze_prologue): Make better use of such an upper limit, and
899 generally be more cautious about accessing memory.
900
541515ad
TT
9012012-03-05 Tom Tromey <tromey@redhat.com>
902
903 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
904 _initialize_ia64_hpux_tdep.
905
b4d36fb8
PA
9062012-03-05 Pedro Alves <palves@redhat.com>
907
24490249
PA
908 PR gdb/13766
909
b4d36fb8
PA
910 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
911 the register state is clear, supply explicit zero, instead of
912 marking the register unavailable.
913
60c9a3c0
TG
9142012-03-05 Tristan Gingold <gingold@adacore.com>
915
916 * NEWS: Mention OpenVMS ia64 new target.
917
696759ad
TG
9182012-03-05 Tristan Gingold <gingold@adacore.com>
919
920 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
921 (ia64_unw_accessors, ia64_unw_rse_accessors)
922 (ia64_libunwind_descr): Declare.
923 * ia64-vms-tdep.c: New file.
924 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
925 (ia64_libunwind_descr): Make them public.
926 * configure.tgt: Add ia64-*-*vms*.
927 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
928 (ALLDEPFILES): Add ia64-vms-tdep.c
929
34864976
TG
9302012-03-05 Tristan Gingold <gingold@adacore.com>
931
169081d0
TG
932 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
933 * remote.c (PACKET_qXfer_uib): New enum value.
934 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
935 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
936 (_initialize_remote): Call add_packet_config_cmd for
937 xfer:uib packet.
938
9392012-03-05 Tristan Gingold <gingold@adacore.com>
940
941 * osabi.c (gdb_osabi_names): Add OpenVMS.
942 (generic_elf_osabi_sniffer): Likewise.
943 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 944
6597b100
JK
9452012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
946
947 Removed unused code.
948 * libunwind-frame.c (libunwind_frame_unwind)
949 (libunwind_frame_base_address): Remove.
950 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
951
87399aa1
YQ
9522012-03-04 Yao Qi <yao@codesourcery.com>
953
954 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
955 remove trailing new line.
956 (agent_run_command, agent_run_command): Add _ markup.
957 (agent_capability_check): Likewise.
958
abf1152a
JK
9592012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
960
961 * breakpoint.c (set_condition_evaluation_mode): Set
962 CONDITION_EVALUATION_MODE unconditionally.
963
5808517f
YQ
9642012-03-03 Yao Qi <yao@codesourcery.com>
965
966 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
967 * common/agent.h: Update declaration.
968 * inf-child.c (inf_child_use_agent): New.
969 (inf_child_can_use_agent): New.
970 (inf_child_target): Initialize fields `to_use_agent'
971 and `to_can_use_agent'.
972 * agent.c (agent_new_objfile): New.
89b7509a 973 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
974 observer.
975
976 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
977 New.
89b7509a 978 (linux_target_install_ops): Initialize field
5808517f
YQ
979 `to_static_tracepoint_markers_by_strid'.
980 * remote.c (free_current_marker): Move it to ...
981 * tracepoint.c (free_current_marker): ... here. New.
982 (cleanup_target_stop): New.
983 * tracepoint.h: Declare free_current_marker.
984 * NEWS: Add one entry about `info static-tracepoint-marker'.
985
58b4daa5
YQ
9862012-03-03 Yao Qi <yao@codesourcery.com>
987
988 * common/agent.c (agent_loaded_p): New.
89b7509a 989 (agent_look_up_symbols): New global.
58b4daa5
YQ
990 * common/agent.h: Declare agent_loaded_p.
991
8ffcbaaf
YQ
9922012-03-03 Yao Qi <yao@codesourcery.com>
993
994 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
995 (agent_capability_check, agent_capability_invalidate): New.
996 (symbol_list): New array element.
997 * common/agent.h (enum agent_capa): New.
998 * target.c (target_pre_inferior): Call agent_capability_invalidate.
999
d1feda86
YQ
10002012-03-03 Yao Qi <yao@codesourcery.com>
1001
1002 * target.h (struct target_ops) <to_use_agent>: New field.
1003 (struct target_ops) <to_can_use_agent>: New field.
1004 (target_use_agent, target_can_use_agent): New macro.
1005 * target.c (update_current_target): Update.
1006 * remote.c: New enum `PACKET_QAgent'.
1007 (remote_protocol_features): Add a new element.
1008 (remote_use_agent, remote_can_use_agent): New.
1009 (init_remote_ops): Initialize field `can_use_agent' with
1010 remote_can_use_agent. Intiailize field `use_agent' with
1011 remote_use_agent.
1012 * common/agent.c (use_agent): New global.
1013 * common/agent.h: Declare it.
1014 * tracepoint.c (info_static_tracepoint_markers_command): Add
1015 comment.
1016 * Makefile.in (SFILES): Add common/agent.c and agent.c.
1017 (COMMON_OBS): Add common/agent.o and agent.o
1018 (common-agent.o): New rule.
1019 * agent.c: New.
1020
2fa291ac
YQ
10212012-03-03 Yao Qi <yao@codesourcery.com>
1022
1023 * common/agent.c: New.
1024 * common/agent.h: New.
1025 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
1026 AC_CHECK_HEADERS.
1027 * configure, configh.in: Regenerated.
1028
9fc05685
KB
10292012-03-02 Kevin Buettner <kevinb@redhat.com>
1030
1031 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
1032 unless it exists for this architecture.
1033
a5ee536b
JB
10342012-03-02 Joel Brobecker <brobecker@adacore.com>
1035
1036 * language.h (struct language_defn): New "method" la_read_var_value.
1037 * findvar.c: #include "language.h".
1038 (default_read_var_value): Renames read_var_value. Rewrite
1039 function description.
1040 (read_var_value): New function.
1041 * value.h (default_read_var_value): Add prototype.
1042 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
1043 New functions.
1044 (ada_language_defn): Add entry for la_read_var_value.
1045 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
1046 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
1047 language_defn structures to add entry for new la_read_var_value
1048 field.
1049
f59f708a
PA
10502012-03-02 Tom Tromey <tromey@redhat.com>
1051 Pedro Alves <palves@redhat.com>
1052
1053 PR breakpoints/13776:
1054 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
1055 breakpoints.
1056 (delete_longjmp_breakpoint_at_next_stop): New.
1057 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
1058 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
1059 before deleting the inferior. Add comments.
1060 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
1061 breakpoints immediately, but only on next stop. Move that code
1062 next to where we mark other breakpoints for deletion.
1063
44099a67
JB
10642012-03-02 Joel Brobecker <brobecker@adacore.com>
1065
1066 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
1067 marker.
1068 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
1069 violation.
1070
2a2ef594
PA
10712012-03-02 Pedro Alves <palves@redhat.com>
1072
1073 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
1074
b261e0c5
UW
10752012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
1076
1077 Fix -Wmissing-prototypes build.
1078 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
1079 * remote-sim.c (gdbsim_has_all_memory): Likewise.
1080 (gdbsim_has_memory): Likewise.
1081
a95babbf
YQ
10822012-03-02 Yao Qi <yao@codesourcery.com>
1083
1084 Fix -Wmissing-prototypes build.
1085 * charset.c (phony_iconv_open): Make static.
1086 (phony_iconv_close, phony_iconv): Likewise.
1087 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
1088 * i386-windows-nat.c (_initialize_i386_windows_nat): New
1089 prototype.
1090 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
1091 * ser-mingw.c (create_select_thread): Make static.
1092 * windows-termcap.c (tgetent): New prototype.
1093 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
1094
d603d4b3
JK
10952012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
1096
1097 Fix -Wmissing-prototypes build.
1098 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
1099 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
1100 (_initialize_loadable): New prototypes.
1101
7fb3ad1f
DE
11022012-03-02 Doug Evans <dje@google.com>
1103
1104 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
1105 abbrev table, read_comp_unit will do it.
1106
693be288
JK
11072012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1108
1109 Fix -Wmissing-prototypes build.
1110 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
1111 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
1112 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
1113 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
1114 (_initialize_arm_symbian_tdep): New prototype.
1115 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
1116 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
1117 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
1118 static.
1119 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
1120 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
1121 prototype.
1122 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
1123 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
1124 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
1125 static.
1126 * moxie-tdep.c (moxie_process_record): Likewise.
1127 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
1128 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
1129 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
1130 (_initialize_rl78_tdep): New prototype.
1131 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
1132 (_initialize_rx_tdep): New prototype.
1133 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
1134 (_initialize_darwin_solib): New prototype.
1135 * solib-spu.c: Include solib-spu.h.
1136 (_initialize_spu_solib): New prototype.
1137 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
1138 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
1139 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
1140 (tic6x_software_single_step): Make it static.
1141 (_initialize_tic6x_tdep): New prototype.
1142
638234e5
JK
11432012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1144
1145 Fix -Wmissing-prototypes build.
1146 * cris-tdep.c (cris_can_use_hardware_watchpoint)
1147 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
1148
f4a6f16d
JK
11492012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1150
1151 Fix -Wmissing-prototypes build.
1152 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
1153 (frv_have_stopped_data_address): Remove.
1154
04dcf5fa
JK
11552012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 Fix -Wmissing-prototypes build.
1158 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
1159 * sh-tdep.c: Include sh64-tdep.h.
1160 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
1161 * sh64-tdep.c: Include sh64-tdep.h.
1162 * sh64-tdep.h: New file.
1163
19080931
MR
11642012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1165
1166 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
1167
9aac7884
MR
11682012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1169
1170 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
1171 sp_regnum once the gdbarch_init_osabi hook has been called.
1172
a385295e
MR
11732012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1174
1175 * mips-tdep.c (mips32_bc1_pc): New function.
1176 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
1177 BPOSGE32 and BPOSGE64 instructions.
1178 (deal_with_atomic_sequence): Likewise.
1179 (mips32_instruction_has_delay_slot): Likewise.
1180
1faeff08
MR
11812012-03-01 Maciej W. Rozycki <macro@mips.com>
1182 Chris Dearman <chris@mips.com>
1183 Maciej W. Rozycki <macro@codesourcery.com>
1184 Joseph Myers <joseph@codesourcery.com>
1185
1186 * features/mips-dsp.xml: New file.
1187 * features/mips64-dsp.xml: New file.
1188 * features/mips-dsp-linux.xml: New file.
1189 * features/mips64-dsp-linux.xml: New file.
1190 * features/Makefile (WHICH): Add mips-dsp-linux and
1191 mips64-dsp-linux.
1192 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
1193 * features/mips-dsp-linux.c: New file.
1194 * features/mips64-dsp-linux.c: New file.
1195 * regformats/mips-dsp-linux.dat: New file.
1196 * regformats/mips64-dsp-linux.dat: New file.
1197 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
1198 registers.
1199 (mips64_linux_register_addr): Likewise.
1200 (mips64_linux_regsets_fetch_registers): Likewise.
1201 (mips64_linux_regsets_store_registers): Likewise.
1202 (mips64_linux_fetch_registers): Update call to
1203 mips64_linux_regsets_fetch_registers.
1204 (mips64_linux_store_registers): Update call to
1205 mips64_linux_regsets_store_registers.
1206 (mips_linux_read_description): Probe for DSP registers.
1207 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
1208 and initialize_tdesc_mips64_dsp_linux.
1209 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
1210 Remove padding of no longer used embedded register slots.
1211 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
1212 (MIPS_RESTART_REGNUM): Redefine enum value.
1213 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
1214 strings.
1215 (mips_tx39_reg_names): Likewise.
1216 (mips_linux_reg_names): New array of register names for Linux
1217 targets.
1218 (mips_register_name): Check for a null pointer in
1219 mips_processor_reg_names and return an empty string.
1220 (mips_register_type): Exclude embedded registers for the IRIX
1221 and Linux ABIs.
1222 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
1223 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
1224 DSP registers.
1225 (mips_stab_reg_to_regnum): Handle DSP accumulators.
1226 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
1227 (mips_gdbarch_init): Likewise. Initialize internal register
1228 indices for the Linux ABI. Use dynamic numbers to refer to
1229 registers, as applicable, while parsing the target description.
1230 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
1231
263689d8
JB
12322012-03-01 Joel Brobecker <brobecker@adacore.com>
1233
1234 * frame.h (read_frame_register_unsigned): Fix typo in function
1235 description.
1236
f3b4f45c
PA
12372012-03-01 Pedro Alves <palves@redhat.com>
1238
1239 * jit-reader.in [!__cplusplus]
1240 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
1241
b03a2011
PA
12422012-03-01 Pedro Alves <palves@redhat.com>
1243
1244 * configure.ac (build_warnings): Add -Wmissing-prototypes.
1245 * configure: Regenerate.
1246
70221824
PA
12472012-03-01 Pedro Alves <palves@redhat.com>
1248
1249 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
1250 * breakpoint.c (create_exception_master_breakpoint, trace_command)
1251 (ftrace_command, strace_command): Make static.
1252 * d-lang.c (_initialize_d_language): Declare.
1253 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
1254 * dwarf2loc.c (_initialize_dwarf2loc):
1255 * dwarf2read.c (process_psymtab_comp_unit): Make static.
1256 * exec.c (exec_get_section_table): Make static.
1257 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
1258 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
1259 * inferior.c (remove_inferior_command, add_inferior_command)
1260 (clone_inferior_command): Make static.
1261 * linux-nat.c (linux_nat_thread_address_space)
1262 (linux_nat_core_of_thread): Make static.
1263 * linux-tdep.c (_initialize_linux_tdep): Declare.
1264 * objc-lang.c (_initialize_objc_lang): Declare.
1265 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
1266 Make static.
1267 (_initialize_opencl_language): Declare.
1268 * record.c (_initialize_record): Declare.
1269 * remote.c (demand_private_info, remote_get_tib_address)
1270 (remote_supports_cond_tracepoints)
1271 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
1272 Make static.
1273 * skip.c (_initialize_step_skip): Declare.
1274 * symtab.c (skip_prologue_using_lineinfo): Make static.
1275 * tracepoint.c (delete_trace_state_variable)
1276 (trace_variable_command, delete_trace_variable_command)
1277 (get_uploaded_tsv, find_matching_tracepoint_location)
1278 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
1279 Make static.
1280 * value.c (pack_unsigned_long): Make static.
1281 * varobj.c (varobj_ensure_python_env): Make static.
1282 * windows-tdep.c (_initialize_windows_tdep): Declare.
1283 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
1284
33fbcbee
PA
12852012-03-01 Pedro Alves <palves@redhat.com>
1286
1287 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
1288 gdbarch parameter.
1289 (linux_init_abi): Install it as has_shared_address_space gdbarch
1290 callback.
1291
44d0cd3b
PA
12922012-03-01 Pedro Alves <palves@redhat.com>
1293
1294 * observer.c (observer_test_first_notification_function)
1295 (observer_test_second_notification_function)
1296 (observer_test_third_notification_function): Add declarations.
1297
ed01b82c
PA
12982012-03-01 Pedro Alves <palves@redhat.com>
1299
1300 * common/signals.c (default_target_signal_to_host)
1301 (default_target_signal_from_host): Move ...
1302 * arch-utils.c: ... here.
1303 * arch-utils.h (default_target_signal_to_host)
1304 (default_target_signal_from_host): Declare.
1305
1306 * common/signals.c (target_signal_from_command): Move ...
1307 * infrun.c: ... here.
1308 * inferior.h (target_signal_from_command): Declare.
1309 * target.h (target_signal_from_command)
1310 (default_target_signal_from_host, default_target_signal_to_host):
1311 Delete declarations.
1312
1313 * common/signals.c (_initialize_signals): Delete.
1314
c9b87335
PA
13152012-03-01 Pedro Alves <palves@redhat.com>
1316
1317 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
1318 both __cplusplus and !__cplusplus.
1319
9340a6c0
PA
13202012-03-01 Pedro Alves <palves@redhat.com>
1321
1322 * psymtab.c (find_and_open_source): Delete declaration.
1323 * source.c (find_and_open_source): Move comment ...
1324 * source.h (find_and_open_source): ... to this new declaration.
1325
e451c4a1
PA
13262012-03-01 Pedro Alves <palves@redhat.com>
1327
1328 * inline-frame.c: Include inline-frame.h.
1329
983fb104
PA
13302012-03-01 Pedro Alves <palves@redhat.com>
1331
1332 * tui/tui-data.c (set_gen_win_origin): Delete.
1333 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
1334 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
1335
5fbce5df
PA
13362012-03-01 Pedro Alves <palves@redhat.com>
1337
1338 * remote.c (encode_actions): Delete declaration.
1339 * tracepoint.c (encode_actions): Make extern.
1340 * tracepoint.h (encode_actions): Declare.
1341
49a8461d
PA
13422012-03-01 Pedro Alves <palves@redhat.com>
1343
1344 * python/py-breakpoint.c: Include python.h.
1345 * python/py-continueevent.c (create_continue_event_object): Make
1346 static.
1347 * python/py-lazy-string.c (stpy_get_type): Make static.
1348 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1349 Make static.
1350 * python/py-utils.c (unicode_to_target_python_string): Make
1351 static.
1352 * python/py-value.c: Include python.h.
1353
9079102f
PA
13542012-03-01 Pedro Alves <palves@redhat.com>
1355
1356 * inferior.c (delete_threads_of_inferior): Delete.
1357
a298c5e8
PA
13582012-03-01 Pedro Alves <palves@redhat.com>
1359
1360 Import fallback definitions from glibc.
1361
1362 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
1363 ps_prochandle): Forward declare.
1364 (ps_err_e): Use glibc's comments.
1365 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
1366 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1367 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
1368 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
1369 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
1370 (struct ps_prochandle): Adjust comment.
1371
e3084549
PA
13722012-03-01 Pedro Alves <palves@redhat.com>
1373
1374 * ada-lang.c (ada_modulus_from_name): Delete.
1375 * ada-lex.l (lexer_init): Make static.
1376
ad5f7d6e
PA
13772012-03-01 Pedro Alves <palves@redhat.com>
1378
1379 PR gdb/13767
1380
1381 * frame.c (read_frame_register_unsigned): New.
1382 * frame.h (read_frame_register_unsigned): Declare.
1383 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
1384 Handle it.
1385 (print_i387_control_word): New parameter `control_p'. Handle it.
1386 (i387_print_float_info): Handle unavailable float registers.
1387
e0a4d108
KS
13882012-03-01 Keith Seitz <keiths@redhat.com>
1389
1390 * linespec.c (decode_line_2): Sort the list of methods
1391 alphabetically before presenting the user with a selection
1392 menu.
1393
122d1940
DE
13942012-03-01 Doug Evans <dje@google.com>
1395
1396 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
1397 has_namespace_info.
1398 (dwarf2_read_abbrevs): Remove corresponding initialization.
1399
7d74f244
DE
14002012-03-01 Scott J. Goldman <scottjg@vmware.com>
1401
1402 * NEWS: Mention new python command class gdb.COMMAND_USER.
1403 * cli/cli-cmds.c (show_user): Print error when used on a python
1404 command.
1405 (init_cli_cmds): Update documentation strings for "show user" and
1406 "set/show max-user-call-depth" to clarify that it does not apply to
1407 python commands.
1408 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
1409 error check.
1410 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
1411 gdb python api.
1412 * top.c (execute_command): Only execute a user-defined command as a
1413 legacy macro if c->user_commands is set.
1414
e88acd96
TT
14152012-03-01 Tom Tromey <tromey@redhat.com>
1416
1417 * valprint.h (struct generic_val_print_decorations): New.
1418 (generic_val_print): Declare.
1419 * valprint.c (generic_val_print): New function.
1420 * p-valprint.c (p_decorations): New global.
1421 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
1422 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
1423 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
1424 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
1425 * m2-valprint.c (m2_decorations): New global.
1426 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
1427 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
1428 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
1429 TYPE_CODE_ERROR>: Call generic_val_print.
1430 * f-valprint.c (f_decorations): New global.
1431 (f_val_print): Use print_function_pointer_address.
1432 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
1433 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
1434 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
1435 generic_val_print.
1436 * c-valprint.c (c_decorations): New global.
1437 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
1438 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
1439 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
1440 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
1441 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
1442 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
1443 case.
1444
d3eab38a
TT
14452012-03-01 Tom Tromey <tromey@redhat.com>
1446
1447 * valprint.c (val_print): Update.
1448 * p-valprint (pascal_val_print): Return void.
1449 * p-lang.h (pascal_val_print): Return void.
1450 * m2-valprint.c (m2_val_print): Return void.
1451 * m2-lang.h (m2_val_print): Return void.
1452 * language.h (struct language_defn) <la_val_print>: Return void.
1453 * language.c (unk_lang_val_print): Return void.
1454 * jv-valprint.c (java_val_print): Return void.
1455 * jv-lang.h (java_val_print): Return void.
1456 * f-valprint.c (f_val_print): Return void.
1457 * f-lang.h (f_val_print): Return void.
1458 * d-valprint.c (d_val_print): Return void.
1459 (dynamic_array_type): Update.
1460 * d-lang.h (d_val_print): Return void.
1461 * c-valprint.c (c_val_print): Return void.
1462 * c-lang.h (c_val_print): Return void.
1463 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
1464 void.
1465 * ada-lang.h (ada_val_print): Return void.
1466
35c0084b
TT
14672012-03-01 Tom Tromey <tromey@redhat.com>
1468
1469 * value.h (val_print): Return void.
1470 * valprint.c (val_print): Return void.
1471
a1f5dd1b
TT
14722012-03-01 Tom Tromey <tromey@redhat.com>
1473
1474 * value.h (common_val_print): Return void.
1475 * valprint.c (common_val_print): Return void.
1476
8e069a98
TT
14772012-03-01 Tom Tromey <tromey@redhat.com>
1478
1479 * value.h (value_print): Return void.
1480 * valprint.c (value_print): Return void.
1481 * p-valprint.c (pascal_value_print): Return void.
1482 * p-lang.h (pascal_value_print): Return void.
1483 * language.h (struct language_defn) <la_value_print>: Return
1484 void.
1485 * language.c (unk_lang_value_print): Return void.
1486 * jv-valprint.c (java_value_print): Return void.
1487 * jv-lang.h (java_value_print): Return void.
1488 * f-valprint.c (c_value_print): Don't declare.
1489 Include c-lang.h.
1490 * c-valprint.c (c_value_print): Return void.
1491 * c-lang.h (c_value_print): Return void.
1492 * ada-valprint.c (ada_value_print): Return void.
1493 * ada-lang.h (ada_value_print): Return void.
1494
be335936
TT
14952012-03-01 Tom Tromey <tromey@redhat.com>
1496
1497 * value.c (value_primitive_field): Handle virtual base classes.
1498
b0db66a7
TT
14992012-03-01 Tom Tromey <tromey@redhat.com>
1500
1501 * gdbtypes.h (struct vbase): Remove.
1502
132c57b4
TT
15032012-03-01 Tom Tromey <tromey@redhat.com>
1504
1505 * c-valprint.c (print_function_pointer_address): Move...
1506 * valprint.c: ... here. Make non-static.
1507 * m2-valprint.c (print_function_pointer_address): Remove.
1508 * valprint.h (print_function_pointer_address): Declare.
1509
e41eec66
JB
15102012-03-01 Joel Brobecker <brobecker@adacore.com>
1511
1512 * NEWS: Document the fact that one can provide a condition when
1513 creating an Ada exception catchpoint.
1514
19c37f24
TT
15152012-03-01 Tom Tromey <tromey@redhat.com>
1516
1517 * valprint.c (val_print_type_code_flags): Fix placement of
1518 trailing brace.
1519
f0fed3a3
JB
15202012-03-01 Joel Brobecker <brobecker@adacore.com>
1521
1522 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
1523 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
1524 environment variable before calling update-copyright.
1525
8ba85d85
JB
15262012-03-01 Joel Brobecker <brobecker@adacore.com>
1527
1528 * gnulib/extra/update-copyright: Update to the latest from
1529 gnulib's git repository.
1530 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
1531 variable to 2 instead of 1.
1532
8219b1e8
JB
15332012-02-29 Joel Brobecker <brobecker@adacore.com>
1534
1535 * varobj.c (c_value_of_variable): Remove dead code.
1536
718cb7da
JB
15372012-02-29 Joel Brobecker <brobecker@adacore.com>
1538
1539 * ada-lex.p (processId): Do not modify already encoded IDs.
1540 Update function documentation.
1541
739593e0
JB
15422012-02-29 Joel Brobecker <brobecker@adacore.com>
1543
1544 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
1545 "name" with "struct symbol *name_sym".
1546 * ada-exp.y (write_var_or_type): Update call to
1547 ada_find_renaming_symbol.
1548 "name" with "struct symbol *name_sym". Adjust Implementation
1549 accordingly. Adjust the function documentation.
1550
852dff6c
JB
15512012-02-29 Joel Brobecker <brobecker@adacore.com>
1552
1553 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
1554 * ada-lang.c (ada_find_any_type): Add advance declaration.
1555 Make static. Replace ada_find_any_symbol by
1556 ada_find_any_type_symbol.
1557 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
1558 Improve function description. Make static.
1559 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
1560 Replace ada_find_any_symbol by ada_find_any_type_symbol.
1561
1b611343
JB
15622012-02-29 Joel Brobecker <brobecker@adacore.com>
1563
1564 * ada-lang.c (struct tag_args): Delete.
1565 (ada_get_tsd_type): Function body moved up in source file.
1566 (ada_tag_name_1, ada_tag_name_2): Delete.
1567 (ada_get_tsd_from_tag): New function.
1568 (ada_tag_name_from_tsd): New function.
1569 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
1570 to determine the tag name.
1571
41246937
JB
15722012-02-29 Joel Brobecker <brobecker@adacore.com>
1573
1574 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
1575 declaration.
1576 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
1577 function.
1578
ffde82bf
JB
15792012-02-29 Joel Brobecker <brobecker@adacore.com>
1580
1581 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
1582
2ad01556
JB
15832012-02-29 Joel Brobecker <brobecker@adacore.com>
1584
1585 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
1586 full searches.
1587
99b1c762
JB
15882012-02-29 Joel Brobecker <brobecker@adacore.com>
1589
1590 * ada-lang.c (constrained_packed_array_type): If there is a
1591 parallel XA type, use it to determine the array index type.
1592
2d4a02ee
JB
15932012-02-29 Joel Brobecker <brobecker@adacore.com>
1594
1595 * ada-valprint.c (ada_val_print_1): If our value is a reference
1596 to an array descriptor, dereference it before converting it
1597 to a simple array.
1598
c48db5ca
JB
15992012-02-29 Joel Brobecker <brobecker@adacore.com>
1600
1601 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
1602 creating fixed value.
1603 (ada_value_ind, ada_coerce_ref, assign_component)
1604 (ada_evaluate_subexp): Remove call to unwrap_value before
1605 call to ada_to_fixed_value.
1606
2e6fda7d
JB
16072012-02-29 Joel Brobecker <brobecker@adacore.com>
1608
1609 * ada-lang.c (to_fixed_array_type): Set result's type name.
1610
5845583d
JB
16112012-02-29 Joel Brobecker <brobecker@adacore.com>
1612
1613 * ada-lang.c (catch_ada_exception_command_split): Add new
1614 argument cond_string. Add support for condition at end of
1615 "catch exception" commands.
1616 (ada_decode_exception_location): Add new argument cond_string.
1617 Update call to catch_ada_exception_command_split.
1618 (create_ada_exception_catchpoint): Add new argument cond_string.
1619 Set the breakpoint condition if needed.
1620 (catch_ada_exception_command): Update call to
1621 ada_decode_exception_location.
1622 (ada_decode_assert_location): Add function documentation.
1623 Add support for condition at end of "catch assert" command.
1624 (catch_assert_command): Update calls to ada_decode_assert_location
1625 and create_ada_exception_catchpoint.
1626
9a7f938f
JK
16272012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1628
1629 Fix disp-step-syscall.exp: fork: single step over fork.
1630 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
1631 (i386_linux_get_syscall_number_from_regcache): ... here, new function
1632 comment, change parameters gdbarch and ptid to regcache. Remove
1633 parameter regcache, initialize gdbarch from regcache here.
1634 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
1635 New functions.
1636 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
1637 instead.
1638 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
1639 'syscall'. Make the 'int' check more strict.
1640
ffdf6de5
JK
16412012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1642
1643 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
1644 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
1645 (i386_linux_intx80_sysenter_syscall_record): ... here.
1646 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
1647 Use the renamed function name.
1648
c70a6932
JK
16492012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1650
1651 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
1652 * breakpoint.c (until_break_command): Likewise.
1653 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1654 * infcall.c (call_function_by_hand): Likewise.
1655 * infcmd.c (finish_forward): Likewise.
1656 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1657
05b8a789 16582012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 1659
d4cd3da9
JB
1660 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
1661 avoid variable assignments inside condition.
1662
6425366c
JK
16632012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1664
1665 Fix static analysis issue found by cppcheck.
1666 * microblaze-tdep.c (microblaze_extract_return_value): Fix
1667 uninitialized BUF for size 2.
1668
c8cef75f
MR
16692012-02-27 Chris Dearman <chris@mips.com>
1670 Nathan Froyd <froydnj@codesourcery.com>
1671 Maciej W. Rozycki <macro@codesourcery.com>
1672
1673 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
1674 (mips16_instruction_has_delay_slot): Likewise.
1675 (mips_segment_boundary): Likewise.
1676 (mips_adjust_breakpoint_address): Likewise.
1677 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
1678
473347ad
MR
16792012-02-27 Maciej W. Rozycki <macro@mips.com>
1680 Maciej W. Rozycki <macro@codesourcery.com>
1681
1682 * infrun.c (handle_inferior_event): Don't proceed through
1683 shared library trampolines if stepping at the machine
1684 instruction level.
1685
cf233303
MR
16862012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
1687
1688 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
1689 too.
1690
cb2cf4ce
TS
16912012-02-27 Thomas Schwinge <thomas@codesourcery.com>
1692
1693 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
1694 (sh_stub_unwind_sniffer): New functions.
1695 (sh_stub_unwind): New variable.
1696 (sh_gdbarch_init): Wire everything.
1697
644cebc9
PA
16982012-02-27 Pedro Alves <palves@redhat.com>
1699
1700 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
1701 (linux_nat_post_attach_wait): Adjust to use
1702 linux_proc_pid_is_stopped.
1703 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
1704 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
1705 based on pid_is_stopped from both linux-nat.c and
1706 gdbserver/linux-low.c, and renamed.
1707
283002cf
MR
17082012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1709
1710 * remote.c (remote_watchpoint_addr_within_range): New function.
1711 (init_remote_ops): Use it.
1712
9b3e86b1
MR
17132012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1714
1715 * target.h (target_watchpoint_addr_within_range): Document macro.
1716
e36930bb
PA
17172012-02-24 Pedro Alves <palves@redhat.com>
1718
1719 * stack.c (set_last_displayed_sal): Issue internal_error instead
1720 of warning, and issue it after clearing the last displayed sal.
1721
883bc8d1
PA
17222012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1723 Pedro Alves <palves@redhat.com>
1724
1725 * breakpoint.c (until_break_command): Install breakpoints after
1726 all frame manipulations.
1727
b775012e
LM
17282012-02-24 Luis Machado <lgustavo@codesourcery.com>
1729
1730 * remote.c (remote_supports_cond_breakpoints): New forward
1731 declaration.
1732 (remote_add_target_side_condition): New function.
1733 (remote_insert_breakpoint): Add target-side breakpoint
1734 conditional if supported.
1735 (remote_insert_hw_breakpoint): Likewise.
1736 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
1737 hook.
1738
1739 * target.c (update_current_target): Inherit
1740 to_supports_evaluation_of_breakpoint_conditions.
1741 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
1742
1743 * target.h (struct target_ops)
1744 <to_supports_evaluation_of_breakpoint_conditions>: New field.
1745 (target_supports_evaluation_of_breakpoint_conditions): New #define.
1746
1747 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
1748 (condition_evaluation_both, condition_evaluation_auto,
1749 condition_evaluation_host, condition_evaluation_target,
1750 condition_evaluation_enums, condition_evaluation_mode_1,
1751 condition_evaluation_mode): New static globals.
1752 (translate_condition_evaluation_mode): New function.
1753 (breakpoint_condition_evaluation_mode): New function.
1754 (gdb_evaluates_breakpoint_condition_p): New function.
1755 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
1756 (mark_breakpoint_modified): New function.
1757 (mark_breakpoint_location_modified): New function.
1758 (set_condition_evaluation_mode): New function.
1759 (show_condition_evaluation_mode): New function.
1760 (bp_location_compare_addrs): New function.
1761 (get_first_location_gte_addr): New helper function.
1762 (set_breakpoint_condition): Free condition bytecode if locations
1763 has become unconditional. Call mark_breakpoint_modified (...).
1764 (condition_command): Call update_global_location_list (1) for
1765 breakpoints.
1766 (breakpoint_xfer_memory): Use is_breakpoint (...).
1767 (is_breakpoint): New function.
1768 (parse_cond_to_aexpr): New function.
1769 (build_target_condition_list): New function.
1770 (insert_bp_location): Handle target-side conditional
1771 breakpoints and call build_target_condition_list (...).
1772 (update_inserted_breakpoint_locations): New function.
1773 (insert_breakpoint_locations): Handle target-side conditional
1774 breakpoints.
1775 (bpstat_check_breakpoint_conditions): Add comment.
1776 (bp_condition_evaluator): New function.
1777 (bp_location_condition_evaluator): New function.
1778 (print_breakpoint_location): Print information on where the condition
1779 will be evaluated.
1780 (print_one_breakpoint_location): Likewise.
1781 (init_bp_location): Call mark_breakpoint_location_modified (...) for
1782 breakpoint location.
1783 (force_breakpoint_reinsertion): New functions.
1784 (update_global_location_list): Handle target-side breakpoint
1785 conditions.
1786 Reinsert locations that are already inserted if conditions have
1787 changed.
1788 (bp_location_dtor): Free agent expression bytecode.
1789 (disable_breakpoint): Call mark_breakpoint_modified (...).
1790 Call update_global_location_list (...) with parameter 1 for breakpoints.
1791 (disable_command): Call mark_breakpoint_location_modified (...).
1792 Call update_global_location_list (...) with parameter 1 for breakpoints.
1793 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
1794 (enable_command): mark_breakpoint_location_modified (...).
1795 (_initialize_breakpoint): Update documentation and add
1796 condition-evaluation breakpoint subcommand.
1797
1798 * breakpoint.h: Include ax.h.
1799 (condition_list): New data structure.
1800 (condition_status): New enum.
1801 (bp_target_info) <cond_list>: New field.
1802 (bp_location) <condition_changed, cond_bytecode>: New fields.
1803 (is_breakpoint): New prototype.
1804
3788aec7
LM
18052012-02-24 Luis Machado <lgustavo@codesourcery.com>
1806
1807 * remote.c (remote_state) <cond_breakpoints>: New field.
1808 (PACKET_ConditionalBreakpoints): New enum.
1809 (remote_cond_breakpoint_feature): New function.
1810 (remote_protocol_features): Add new ConditionalBreakpoints entry.
1811 (remote_supports_cond_breakpoints): New function.
1812 (_initialize_remote): Add new packet configuration for
1813 target-side conditional breakpoints.
1814
72895ff6
LM
18152012-02-24 Luis Machado <lgustavo@codesourcery.com>
1816
1817 * NEWS: Mention target-side conditional breakpoint support,
1818 new condition-evaluation breakpoint subcommand and remote
1819 packet extensions.
1820
dea2aa5f
LM
18212012-02-24 Luis Machado <lgustavo@codesourcery.com>
1822
1823 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
1824 number.
1825
8a8bc27f
TS
18262012-02-24 Thomas Schwinge <thomas@codesourcery.com>
1827
1828 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
1829 (after_prologue): Remove.
1830
6b446fdf
TT
18312012-02-23 Tom Tromey <tromey@redhat.com>
1832
1833 * jv-valprint.c (java_val_print): Remove dead code.
1834
ef59abfb
TG
18352012-02-23 Tristan Gingold <gingold@adacore.com>
1836
1837 * ada-tasks.c (struct ada_tasks_inferior_data): Add
1838 known_tasks_element and known_tasks_length fields.
1839 (read_known_tasks_array): Change argument type. Use pointer type
1840 and number of elements from DATA. Adjust.
1841 (read_known_tasks_list): Likewise.
1842 (get_known_tasks_addr): Remove.
1843 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
1844 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
1845 type and array length. Merge former get_known_tasks_addr code.
1846
def166f6
JK
18472012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1848
1849 PR backtrace/13716
1850 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
1851 it after set_momentary_breakpoint.
1852
aeaa2474
SA
18532012-02-22 Sterling Augustine <saugustine@google.com>
1854
1855 PR 13689:
1856 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
1857
feea76c2
GB
18582012-02-22 Gary Benson <gbenson@redhat.com>
1859
1860 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
1861 (find_slot_in_mapped_hash): Likewise.
1862
f06e05e0
JK
18632012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 PR build/13638
1866 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
1867 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
1868 * configure: Regenerate.
1869
b54a8fd7
PA
18702012-02-21 Tristan Gingold <gingold@adacore.com>
1871 Pedro Alves <palves@redhat.com>
1872
1873 * ia64-tdep.c: Do not include libunwind-ia64.h.
1874 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
1875 Include libunwind-ia64.h instead of libunwind.h.
1876 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
1877 for libunwind.h existence.
1878 * configure, config.in: Regenerate.
1879
dfcee124
AG
18802012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1881
1882 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
1883 instead of value_rtti_target_type.
1884 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
1885 instead of value_rtti_target_type.
1886 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
1887 value_rtti_target_type.
1888 * valops.c (value_ind): Extract function readjust_indirect_value_type.
1889 (value_rtti_target_type): Rename to ...
1890 (value_rtti_indirect_type): ... here and make it indirect. Update
1891 function comment.
1892 * value.c (readjust_indirect_value_type): New function.
1893 (coerce_ref): Support for enclosing type setting for references
1894 with readjust_indirect_value_type.
1895 * value.h (readjust_value_type): New declaration.
1896 (value_rtti_target_type): Rename to ...
1897 (value_rtti_indirect_type): ... here.
1898
02568277
AG
18992012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1900
1901 * MAINTAINERS (Write After Approval): Add myself to the list.
1902
10c07b7e 19032012-02-20 Doug Evans <dje@google.com>
28ee876a 1904
d82ea6a8
DE
1905 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
1906 Rename objfile_p_char parameter to objfilep.
1907 (build_objfile_section_table): Result is now void. All callers
1908 updated.
1909 * objfiles.h (struct objfile): Tweak comments, whitespace.
1910 (build_objfile_section_table): Update.
1911
28ee876a
DE
1912 * elfread.c (elf_symfile_segments): Fix warning text.
1913
24c79950
TT
19142012-02-20 Tom Tromey <tromey@redhat.com>
1915
1916 PR gdb/13498:
1917 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
1918 particular set of file names once.
1919 (dw2_map_symbol_filenames): Likewise.
1920
3a9b40b6
JK
19212012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1922
1923 Code cleanup.
1924 * main.c (write_files): Remove the declaration.
1925 (external_editor_command): Move the declaration ...
1926 [GDBTK] (external_editor_command): ... here. Fix the comment.
1927
4d0795ca
TT
19282012-02-20 Tom Tromey <tromey@redhat.com>
1929
1930 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
1931 extraneous block.
1932
637fd620
TG
19332012-02-20 Tristan Gingold <gingold@adacore.com>
1934
1935 * darwin-nat.h (enum darwin_msg_state): Add comments.
1936
6f124894
TG
19372012-02-20 Tristan Gingold <gingold@adacore.com>
1938
1939 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
1940 value.
1941
2e6e3d9c
JB
19422012-20-18 Joel Brobecker <brobecker@adacore.com>
1943
1944 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
1945 between function description and implementation.
1946
2e8265fd
TT
19472012-02-17 Tom Tromey <tromey@redhat.com>
1948
1949 PR python/12070:
1950 * python/py-event.c (event_object_getset): New global.
1951 (event_object_type): Reference it.
1952 * python/py-type.c (field_object_getset): New global.
1953 (field_object_type): Reference it.
1954 * python/python-internal.h (gdb_py_generic_dict): Declare.
1955 * python/py-utils.c (gdb_py_generic_dict): New function.
1956
8544a150 19572012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 1958
8544a150 1959 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 1960
ca193e27
TS
19612012-02-17 Thomas Schwinge <thomas@codesourcery.com>
1962
1963 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
1964 TYPE_CALLING_CONVENTION annotation.
1965
e5586183
KB
19662012-02-16 Kevin Buettner <kevinb@redhat.com>
1967
1968 * MAINTAINERS: Add rx to target ISA section.
1969 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
1970 (ALLDEPFILES): Add rx-tdep.c.
1971
7dcd53a0
TT
19722012-02-16 Tom Tromey <tromey@redhat.com>
1973
1974 * symfile.c (symbol_file_add_main_1): Use inferior's
1975 symfile_flags.
1976 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
1977 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
1978 inferior.
1979 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
1980 inferior.
1981 (follow_exec): Use inferior's symfile_flags.
1982 * inferior.h (struct inferior) <symfile_flags>: New field.
1983
ddd60447
MF
19842012-02-16 Mike Frysinger <vapier@gentoo.org>
1985
1986 PR gdb/9734:
1987 * remote-sim.c (gdbsim_create_inferior): Call error() when
1988 sim_create_inferior() fails.
1989
b0d32fb6
TG
19902012-02-16 Josh Matthews <josh@joshmatthews.net>
1991
1992 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
1993
9addecb9
TT
19942012-02-16 Tom Tromey <tromey@redhat.com>
1995
1996 PR c++/13653:
1997 * thread.c (struct current_thread_cleanup) <was_removable>: New
1998 field.
1999 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
2000 (make_cleanup_restore_current_thread): Initialize new field.
2001
a58b110a
KB
20022012-02-15 Kevin Buettner <kevinb@redhat.com>
2003
2004 * MAINTAINERS: Add rl78 to target ISA section.
2005 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
2006 (ALLDEPFILES): Add rl78-tdep.c.
2007 * NEWS: Mention rl78 as a new target.
2008
4cb6da1c
AR
20092012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
2010
2011 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
2012 data.
2013 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
2014
3af2590d
TT
20152012-02-15 Tom Tromey <tromey@redhat.com>
2016
2017 PR gdb/12659:
2018 * infcmd.c (registers_info): Print just the current register's
2019 name.
2020
c6910659
TT
20212012-02-15 Tom Tromey <tromey@redhat.com>
2022
2023 * python/py-symbol.c (sympy_value): Use _().
2024
7cee1e54
PA
20252012-02-15 Pedro Alves <palves@redhat.com>
2026
2027 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
2028 output to be like native targets'.
2029 (remote_pid_to_str): Special case the null ptid.
2030
816338b5
SS
20312012-02-14 Stan Shebs <stan@codesourcery.com>
2032
2033 * NEWS: Mention enable count command.
2034 * breakpoint.h (struct breakpoint): New field enable_count.
2035 * breakpoint.c (enable_breakpoint_disp): Add count argument.
2036 (enable_breakpoint): Add arg to call.
2037 (struct disp_data): New struct.
2038 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
2039 (do_map_enable_once_breakpoint): Create a struct and pass it.
2040 (do_map_enable_delete_breakpoint): Ditto.
2041 (do_map_enable_count_breakpoint): New function.
2042 (enable_count_command): New function.
2043 (bpstat_stop_status): Decrement enable_count.
2044 (print_one_breakpoint_location): Report enable count.
2045 (_initialize_breakpoint): Add enable count command.
2046
c47a44f4
KB
20472012-02-14 Kevin Buettner <kevinb@redhat.com>
2048
2049 * rl78-tdep.c (reggroups.h): Include.
2050 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
2051 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
2052 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
2053 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
2054 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
2055 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
2056 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
2057 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
2058 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
2059 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
2060 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
2061 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
2062 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
2063 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
2064 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
2065 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
2066 beginning of register list.
2067 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
2068 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
2069 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
2070 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
2071 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
2072 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
2073 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
2074 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
2075 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
2076 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
2077 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
2078 the pseudo registers. Rearrange other pseudo registers too so
2079 that the bank registers appear at the end.
2080 (rl78_register_type): Account for the fact that the byte sized
2081 bank registers are now pseudo-registers.
2082 (rl78_register_name): Rearrange the register name array. Make
2083 initial set of raw banked registers inaccessible.
2084 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
2085 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
2086 case for copying bytes back and forth between raw and pseudo
2087 versions of the banked registers. Update other cases to reflect
2088 the changed names.
2089 (rl78_return_value): Update to account for changed names of
2090 raw registers.
2091 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
2092 rl78_register_sim_regno().
2093
e4569f1e
KB
20942012-02-14 Kevin Buettner <kevinb@redhat.com>
2095
2096 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
2097 the name parameter being passed to find_pc_partial_function().
2098
7a05aae7
JK
20992012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2100
2101 * MAINTAINERS: Step down from being ia64 target maintainer.
2102
11fde611
JK
21032012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2104
2105 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
2106 compilation warning.
2107
57008375
JK
21082012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2109
2110 Fix crash on loaded shlibs without loaded exec_bfd.
2111 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
2112 (set_section_command): Replace exec_bfd by p->bfd.
2113
ff3c9849
TT
21142012-02-10 Tom Tromey <tromey@redhat.com>
2115
2116 * linespec.c (decode_line_internal): Skip symtabs_from_filename
2117 when we have a C++ qualified name.
2118
db2b9fdd
PA
21192012-02-10 Pedro Alves <palves@redhat.com>
2120
2121 * inferior.c (inferior_pid_to_str): New.
2122 (print_inferior, inferior_command): Use it.
2123
12cd34f3
PA
21242012-02-10 Pedro Alves <palves@redhat.com>
2125
2126 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
2127 the test CFLAGS.
2128 * configure: Regenerate.
2129
e871429d
JK
21302012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2131
2132 * linespec.c (decode_line_internal): Fix comment correctness.
2133
1916efaf
PA
21342012-02-09 Valery Khromov <valery.khromov@gmail.com>
2135
2136 PR gdb/12953
2137 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
2138 * amd64bsd-nat.c: Add support for debug registers (adapted from
2139 i386bsd-nat.c).
2140 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
2141 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
2142 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
2143 (amd64bsd_dr_get_control): New functions.
2144 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
2145 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
2146 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
2147 watchpoints initialization.
2148 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
2149
f4859d94
JK
21502012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2151
2152 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
2153 flds_bnds.fields.
2154 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
2155
c56a97f9
JK
21562012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2157
2158 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
2159
1a119f36
JB
21602012-02-08 Joel Brobecker <brobecker@adacore.com>
2161
2162 * language.h (symbol_name_cmp_ftype): Renames
2163 symbol_name_match_p_ftype.
2164 (struct language_defn)[la_get_symbol_name_cmp]: Renames
2165 la_get_symbol_name_match_p.
2166 * ada-lang.c (ada_get_symbol_name_cmp): Renames
2167 ada_get_symbol_name_match_p. Update comment.
2168 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
2169 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
2170 Renames symbol_name_match_p. Update field type.
2171 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
2172 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2173 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
2174 "la_get_symbol_name_cmp" in comments.
2175 * language.c: Likewise.
2176
c71bb1cf
RO
21772012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2178
2179 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
2180 %eflags offset.
2181 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
2182 (amd64_sol2_gregset32_reg_offs): Likewise.
2183
4b2d20a5
TG
21842012-02-08 Joel Brobecker <brobecker@adacore.com>
2185
2186 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
2187 of the returned BFD is allocated by GDB.
2188
f0823d2c
TT
21892012-02-07 Tom Tromey <tromey@redhat.com>
2190
2191 PR python/12027:
2192 * python/python-internal.h (frame_object_type): Declare.
2193 * python/py-symbol.c (sympy_needs_frame): New function.
2194 (sympy_value): New function.
2195 (symbol_object_getset): Add "needs_frame".
2196 (symbol_object_methods): Add "value".
2197 * python/py-frame.c (frame_object_type): No longer static.
2198
64e7d9dd
TT
21992012-02-07 Tom Tromey <tromey@redhat.com>
2200
2201 PR python/13599:
2202 * python/py-symbol.c (sympy_line): New function.
2203 (symbol_object_getset): Add "line".
2204
1d6b2d2b
TT
22052012-02-07 Tom Tromey <tromey@redhat.com>
2206
2207 * charset.c (find_charset_names): Check 'in' against NULL.
2208
0d5cff50
DE
22092012-02-06 Doug Evans <dje@google.com>
2210
2211 * gdbtypes.h (struct main_type): Change type of name,tag_name,
2212 and fields.name members from char * to const char *. All uses updated.
2213 (struct cplus_struct_type): Change type of fn_fieldlists.name member
2214 from char * to const char *. All uses updated.
2215 (type_name_no_tag): Update.
2216 (lookup_unsigned_typename, lookup_signed_typename): Update.
2217 * gdbtypes.c (type_name_no_tag): Change result type
2218 from char * to const char *. All callers updated.
2219 (lookup_unsigned_typename, lookup_signed_typename): Change type of
2220 name parameter from char * to const char *.
2221 * symtab.h (struct cplus_specific): Change type of demangled_name
2222 member from char * to const char *. All uses updated.
2223 (struct general_symbol_info): Change type of name and
2224 mangled_lang.demangled_name members from char * to const char *.
2225 All uses updated.
2226 (symbol_get_demangled_name, symbol_natural_name): Update.
2227 (symbol_demangled_name, symbol_search_name): Update.
2228 * symtab.c (symbol_get_demangled_name): Change result type
2229 from char * to const char *. All callers updated.
2230 (symbol_natural_name, symbol_demangled_name): Ditto.
2231 (symbol_search_name): Ditto.
2232 (completion_list_add_name): Change type of symname,sym_text,
2233 text,word parameters from char * to const char *.
2234 (completion_list_objc_symbol): Change type of sym_text,
2235 text,word parameters from char * to const char *.
2236 * ada-lang.c (find_struct_field): Change type of name parameter
2237 from char * to const char *.
2238 (encoded_ordered_before): Similarly for N0,N1 parameters.
2239 (old_renaming_is_invisible): Similarly for function_name parameter.
2240 (ada_type_name): Change result type from char * to const char *.
2241 All callers updated.
2242 * ada-lang.h (ada_type_name): Update.
2243 * buildsym.c (hashname): Change type of name parameter
2244 from char * to const char *.
2245 * buildsym.h (hashname): Update.
2246 * dbxread.c (end_psymtab): Change type of include_list parameter
2247 from char ** to const char **.
2248 * dwarf2read.c (determine_prefix): Change result type
2249 from char * to const char *. All callers updated.
2250 * f-lang.c (find_common_for_function): Change type of name, funcname
2251 parameters from char * to const char *.
2252 * f-lang.c (find_common_for_function): Update.
2253 * f-valprint.c (list_all_visible_commons): Change type of funcname
2254 parameters from char * to const char *.
2255 * gdbarch.sh (static_transform_name): Change type of name parameter
2256 and result from char * to const char *.
2257 * gdbarch.c: Regenerate.
2258 * gdbarch.h: Regenerate.
2259 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
2260 of name parameter from char * to const char *.
2261 * jv-lang.c (java_primitive_type_from_name): Ditto.
2262 (java_demangled_signature_length): Similarly for signature parameter.
2263 (java_demangled_signature_copy): Ditto.
2264 (java_demangle_type_signature): Ditto.
2265 * jv-lang.h (java_primitive_type_from_name): Update.
2266 (java_demangle_type_signature): Update.
2267 * objc-lang.c (specialcmp): Change type of a,b parameters
2268 from char * to const char *.
2269 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
2270 from char * to const char *. All callers updated.
2271 * p-lang.h (is_pascal_string_type): Update.
2272 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
2273 of name parameter from char * to const char *.
2274 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
2275 * utils.c (fprintf_symbol_filtered): Ditto.
2276 * defs.h (fprintf_symbol_filtered): Update.
2277 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
2278 * stabsread.h (end_psymtab): Update.
2279 * stack.c (find_frame_funname): Change type of funname parameter
2280 from char ** to const char **.
2281 * stack.h (find_frame_funname): Update.
2282 * typeprint.c (type_print): Change type of varstring parameter
2283 from char * to const char *.
2284 * value.h (type_print): Update.
2285 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
2286 from char * to const char *. All callers updated.
2287 (xcoff_end_psymtab): Change type of include_list parameter
2288 from char ** to const char **. All callers updated.
2289 (swap_sym): Similarly for name parameter. All callers updated.
2290 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
2291 Use xstrdup.
2292 (process_coff_symbol): Use xstrdup.
2293 * stabsread.c (stabs_method_name_from_physname): Renamed from
2294 update_method_name_from_physname. Change result type from void
2295 to char *. All callers updated.
2296 (read_member_functions): In has_destructor case, store name in objfile
2297 obstack instead of malloc space. In !has_stub case, fix mem leak.
2298
5579a92e
TT
22992012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
2300
2301 * configure: Rebuild.
2302 * configure.ac: Put -L../bfd and -L../libiberty at the front of
2303 LDFLAGS.
2304
9058f767
KB
23052012-02-03 Kevin Buettner <kevinb@redhat.com>
2306
2307 * configure.tgt (rl78-*-elf): New target.
2308 * rl78-tdep.c: New file.
2309
5b37825d
PW
23102012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2311
2312 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
2313 and continue the loop. Add QUIT statement.
2314
e009ee71
TT
23152012-02-03 Tom Tromey <tromey@redhat.com>
2316
2317 PR gdb/13596:
2318 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
2319 bfd_lookup_symbol_from_symtab.
2320 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2321 gdb_bfd_lookup_symbol_from_symtab.
2322
f7e44f65
JB
23232012-02-03 Joel Brobecker <brobecker@adacore.com>
2324
2325 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
2326 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
2327 symbol. Add assertion that sym2 is never NULL.
2328
2c02bd72
DE
23292012-02-02 Doug Evans <dje@google.com>
2330
2331 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
2332 "name" parameter to const char ** from char **. All callers updated.
2333 (find_pc_partial_function): Ditto.
2334 (cache_pc_function_name): Change type to const char * from char *.
2335 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
2336 (find_pc_partial_function): Update.
2337 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
2338 type of "name" parameter to const char * from char *.
2339 All uses updated.
2340 * arch-utils.c (generic_in_solib_return_trampoline): Change
2341 type of "name" parameter to const char * from char *.
2342 * arch-utils.h (generic_in_solib_return_trampoline): Update.
2343 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
2344 type of "name" parameter to const char * from char *.
2345 * gdbarch.sh (in_solib_return_trampoline): Ditto.
2346 * gdbarch.c: Regenerate.
2347 * gdbarch.h: Regenerate.
2348 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
2349 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
2350 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
2351 type of "name" parameter to const char * from char *.
2352 * skip.c (skip_function_pc): Ditto.
2353 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
2354 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
2355 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
2356 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
2357 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
2358 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
2359 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
2360 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
2361 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
2362
e886a173
PA
23632012-02-02 Pedro Alves <palves@redhat.com>
2364
2365 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
2366 the current inferior has no execution. Make sure the current
2367 remote process matches gdb's current inferior.
2368
c709a7c2
TT
23692012-02-02 Tom Tromey <tromey@redhat.com>
2370
2371 PR gdb/13405:
2372 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
2373 read-only memory.
2374
f149aabd
TT
23752012-02-02 Tom Tromey <tromey@redhat.com>
2376
2377 PR gdb/9307:
2378 * symtab.c (lookup_language_this): Set block_found.
2379
03bef283
TT
23802012-02-01 Tom Tromey <tromey@redhat.com>
2381
2382 PR gdb/13431:
2383 * jit.c (struct jit_inferior_data): Rewrite.
2384 (struct jit_objfile_data): New.
2385 (get_jit_objfile_data): New function.
2386 (add_objfile_entry): Update.
2387 (jit_read_descriptor): Return int. Replace descriptor_addr
2388 argument with inf_data. Update. Don't call error.
2389 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
2390 descriptor here.
2391 (jit_inferior_init): Don't look up descriptor. Don't call error.
2392 (jit_reset_inferior_data_and_breakpoints)
2393 (jit_inferior_created_observer): Remove.
2394 (jit_inferior_exit_hook): Update.
2395 (jit_executable_changed_observer): Remove.
2396 (jit_event_handler): Update.
2397 (free_objfile_data): Reset inferior data if needed.
2398 (_initialize_jit): Update.
2399
f0bbc364
TT
24002012-02-01 Tom Tromey <tromey@redhat.com>
2401
2402 * jit.c (bfd_open_from_target_memory): Move higher in file.
2403
47c1316c
TG
24042012-02-01 Tristan Gingold <gingold@adacore.com>
2405
2406 * libunwind-frame.c (libunwind_load): Display message if dlopen
2407 failed.
2408
8e704927
GB
24092012-02-01 Gary Benson <gbenson@redhat.com>
2410
09c7a31f 2411 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
2412 (iterate_over_symbols): Use the above.
2413 * symtab.c (iterate_over_symbols): Likewise.
2414 * language.h (language_defn->la_iterate_over_symbols): Likewise.
2415 * ada-lang.c (ada_iterate_over_symbols): Likewise.
2416 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
2417 (iterate_name_matcher): Document return values.
2418 (collect_one_symbol): Likewise.
2419 (collect_function_symbols): Likewise.
2420 (collect_symbols): Likewise.
2421
d9680e73
TT
24222012-02-01 Tom Tromey <tromey@redhat.com>
2423
2424 * ada-lang.c (resolve_subexp): Update.
2425 (ada_lookup_symbol_list): Add 'full_search' argument.
2426 (ada_iterate_over_symbols): Pass 0 as full_search argument to
2427 ada_lookup_symbol_list.
2428 (ada_lookup_encoded_symbol): Update.
2429 (get_var_value): Update.
2430 * ada-exp.y (block_lookup): Update.
2431 (write_var_or_type): Update.
2432 (write_name_assoc): Update.
2433 * ada-lang.h (ada_lookup_symbol_list): Update.
2434
72e1143f
TT
24352012-01-31 Tom Tromey <tromey@redhat.com>
2436
2437 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
2438 comment.
2439
ab2d2ad3
DE
24402012-01-31 Doug Evans <dje@google.com>
2441
2442 * symtab.h: Remove outdated comment.
e9111bf7 2443 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 2444
bc884eba
JB
24452012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
2446
2447 Fix build error in Darwin port.
2448 * i386-darwin-nat.c: Include i386-nat.h.
2449
8fc3fc34
TT
24502012-01-30 Tom Tromey <tromey@redhat.com>
2451
2452 PR breakpoints/13568:
2453 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
2454 argument. Check for recursive includes.
2455 (dwarf_decode_macros): Create an include hash.
2456
5d853008
ME
24572012-01-30 Michael Eager <eager@eagercon.com>
2458
2459 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
2460 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 2461 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
2462 (powerpc_linux_in_plt_stub): New function.
2463 (powerpc_linux_in_dynsym_resolve_code): New function.
2464 (ppc_skip_trampoline_code): New function.
2465 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
2466 Use glibc_skip_solib_resolver.
2467
40478521
JK
24682012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2469
2470 Code cleanup: Make 1440 bytes of data segment read-only.
2471 * arch-utils.c (endian_enum): Make it const char *const [].
2472 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
2473 Likewise.
2474 * breakpoint.c (always_inserted_enums): Likewise.
2475 * cli/cli-cmds.c (script_ext_enums): Likewise.
2476 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
2477 enumlist parameter const char *const *.
2478 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
2479 const char *const *.
2480 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
2481 parameter const char *const *.
2482 * cris-tdep.c (cris_modes): Make it const char *const [].
2483 * filesystem.c (target_file_system_kinds): Likewise.
2484 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
2485 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
2486 (can_use_displaced_stepping_enum, scheduler_enums)
2487 (exec_direction_names): Likewise.
2488 * language.c (_initialize_language): Make the type_or_range_names and
2489 case_sensitive_names variables const char *const [].
2490 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
2491 * python/python.c (python_excp_enums): Likewise.
2492 * remote.c (interrupt_sequence_modes): Likewise.
2493 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
2494 * serial.c (logbase_enums): Likewise.
2495 * sh-tdep.c (sh_cc_enum): Likewise.
2496 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
2497 Likewise.
2498 * symtab.c (multiple_symbols_modes): Likewise.
2499 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
2500 Likewise.
2501 * utils.c (internal_problem_modes): Likewise.
2502
b3b8b934
JK
25032012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2504
2505 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
2506 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
2507 result.
2508
8c85a4e2
DE
25092012-01-27 Doug Evans <dje@google.com>
2510
2511 * configure.ac (with_python): Fix absolute path handling for win32.
2512 * configure: Regenerate.
2513
78d8b4d7
DE
25142012-01-26 Doug Evans <dje@google.com>
2515
eca864fe
DE
2516 * symtab.c: Whitespace cleanup, no code changes.
2517
7e082072
DE
2518 * symtab.c (lookup_symbol_in_language): Improve comment.
2519 (lookup_symbol_aux): Fix comment.
2520
7dc25483
DE
2521 * psymtab.c (add_psymbol_to_list): Result is now "void".
2522 * psympriv.h (add_psymbol_to_list): Update.
2523
78d8b4d7
DE
2524 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
2525
4c63965b
JK
25262012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2527
2528 Do not open script filenames twice.
2529 * cli/cli-cmds.c (source_script_from_stream): Pass to
2530 source_python_script also STREAM.
2531 * python/py-auto-load.c (source_section_scripts): Pass to
2532 source_python_script_for_objfile also STREAM.
2533 (auto_load_objfile_script): Pass to source_python_script_for_objfile
2534 also INPUT.
2535 * python/python-internal.h (source_python_script_for_objfile): New
2536 parameter file, rename parameter file to filename.
2537 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
2538 instead if !_WIN32. Update the function comment.
2539 (source_python_script, source_python_script_for_objfile)
2540 (source_python_script): New parameter file, rename parameter file to
2541 filename. Pass FILENAME to python_run_simple_file.
2542 * python/python.h (source_python_script): New parameter file, rename
2543 parameter file to filename.
2544
88f38a04
PA
25452012-01-26 Pedro Alves <palves@redhat.com>
2546
2547 * corelow.c (core_has_fake_pid): Delete.
2548 (core_close): Delete references to `core_has_fake_pid'.
2549 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
2550 (core_open): Delete references to `core_has_fake_pid'.
2551 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
2552 the removed global.
2553
e078317b
JB
25542012-01-26 Joel Brobecker <brobecker@adacore.com>
2555
2556 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
2557 Remove language parameter from name_matcher. Adjust the comment.
2558 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
2559 Remove language parameter.
2560 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
2561 * linespec.c (iterate_name_matcher): Likewise.
2562 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
2563 name_matcher. Adjust call accordingly.
2564 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
2565 (maintenance_check_symtabs): Adjust type of parameter "fun".
2566 * psymtab.h (maintenance_check_symtabs): Likewise.
2567
74ccd7f5
JB
25682012-01-26 Joel Brobecker <brobecker@adacore.com>
2569
2570 * language.h (symbol_name_match_p_ftype): New typedef.
2571 (struct language_defn): Replace field la_symbol_name_compare
2572 by la_get_symbol_name_match_p.
2573 * ada-lang.c (ada_get_symbol_name_match_p): New function.
2574 (ada_language_defn): Use it.
2575 * linespec.c (struct symbol_matcher_data): New type.
2576 (iterate_name_matcher): Rewrite.
2577 (iterate_over_all_matching_symtabs): Pass a pointer to
2578 a symbol_matcher_data struct to expand_symtabs_matching
2579 instead of just the lookup name.
2580 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2581 opencl-lang.c, p-lang.c, language.c: Delete field
2582 la_symbol_name_compare, and replace by NULL for new field
2583 la_get_symbol_name_match_p.
2584 * symfile.h (struct quick_symbol_functions): Update comment.
2585
5d268276
TT
25862012-01-25 Tom Tromey <tromey@redhat.com>
2587
2588 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
2589 dereferencing.
2590
edcc5120
TT
25912012-01-24 Tom Tromey <tromey@redhat.com>
2592
2593 PR symtab/12406:
2594 * solib.c (update_solib_list): Update the program space's
2595 added_solibs and deleted_solibs fields.
2596 * progspace.h (struct program_space) <added_solibs,
2597 deleted_solibs>: New fields.
2598 (clear_program_space_solib_cache): Declare.
2599 * progspace.c (release_program_space): Call
2600 clear_program_space_solib_cache.
2601 (clear_program_space_solib_cache): New function.
2602 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
2603 bpstat_stop_status. Use handle_solib_event.
2604 * breakpoint.c: Include gdb_regex.h.
2605 (print_solib_event): New function.
2606 (bpstat_print): Use print_solib_event.
2607 (bpstat_stop_status): Add special case for bp_shlib_event.
2608 (handle_solib_event): New function.
2609 (bpstat_what): Use handle_solib_event.
2610 (struct solib_catchpoint): New.
2611 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
2612 (breakpoint_hit_catch_solib, check_status_catch_solib)
2613 (print_it_catch_solib, print_one_catch_solib)
2614 (print_mention_catch_solib, print_recreate_catch_solib): New
2615 functions.
2616 (catch_solib_breakpoint_ops): New global.
2617 (catch_load_or_unload, catch_load_command_1)
2618 (catch_unload_command_1): New functions.
2619 (internal_bkpt_check_status): Add special case for
2620 bp_shlib_event.
2621 (internal_bkpt_print_it): Use print_solib_event.
2622 (initialize_breakpoint_ops): Initialize
2623 catch_solib_breakpoint_ops.
2624 (_initialize_breakpoint): Register "catch load" and "catch
2625 unload".
2626 * breakpoint.h (handle_solib_event): Declare.
2627 * NEWS: Add entry for "catch load" and "catch unload".
2628
fa864999
TT
26292012-01-24 Tom Tromey <tromey@redhat.com>
2630
2631 * ada-lang.c: Include gdb_vecs.h.
2632 * charset.c: Include gdb_vecs.h.
2633 * tracepoint.h: Include gdb_vecs.h.
2634 * gdb_vecs.h: New file.
2635
f90263c1
TT
26362012-01-24 Pedro Alves <pedro@codesourcery.com>
2637
2638 * breakpoint.c (breakpoint_hit_catch_fork)
2639 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
2640 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
2641 * infrun.c (inferior_has_forked, inferior_has_vforked)
2642 (inferior_has_execd, inferior_has_called_syscall): Delete.
2643 (handle_syscall_event): Get syscall_number from the execution
2644 control state's wait status.
2645 (wait_for_inferior): Don't clear syscall_number.
2646
09ac7c10
TT
26472012-01-24 Pedro Alves <palves@redhat.com>
2648
2649 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
2650 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
2651 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
2652 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
2653 `ws' parameter.
2654 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
2655 false for events other than TARGET_SIGNAL_TRAP.
2656 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
2657 Add `ws' parameter.
2658 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
2659 events other than TARGET_SIGNAL_TRAP.
2660 (tracepoint_breakpoint_hit): Add `ws' parameter.
2661 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
2662 parameter.
2663 (bpstat_stop_status): Same.
2664 (pc_at_non_inline_function): Same.
2665 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
2666 to pass the current event's waitstatus to bpstat_stop_status
2667 and pc_at_non_inline_function.
2668
86eb7e95
JK
26692012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2670
2671 Code cleanup.
2672 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
2673 Update the function comment for it.
2674 (source_script_with_search): Call make_cleanup_fclose for STREAM.
2675 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
2676 for STREAM.
2677
a9b3a50f
PA
26782012-01-24 Pedro Alves <palves@redhat.com>
2679
2680 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
2681 outside `bs->stop' block.
2682 (bpstat_what): Rework bp_shlib_event handling.
2683 (internal_bkpt_check_status): If the breakpoint is a
2684 bp_shlib_event, then set bs->stop and bs->print if
2685 stop_on_solib_events is set.
2686
53fe1783
GB
26872012-01-24 Gary Benson <gbenson@redhat.com>
2688
2689 Delete #if 0'd out code.
2690 * stack.c (print_frame_label_vars): Remove.
2691 (catch_info): Likewise.
2692 (_initialize_stack): Remove "info catch" command.
2693 * NEWS: Mention the above.
2694
49c62f2e
PA
26952012-01-24 Pedro Alves <palves@redhat.com>
2696
2697 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
2698 it.
2699 (remote_notice_new_inferior): If the remote end doesn't support
2700 the multiprocess extensions, then the PID is fake.
2701 (add_current_inferior_and_thread): New.
2702 (remote_start_remote): Use it.
2703 (extended_remote_attach_1): Adjust.
2704 (extended_remote_create_inferior_1): Use
2705 add_current_inferior_and_thread.
2706
d0d8b0c6
JK
27072012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2708
2709 Fix watchpoints to be specific for each inferior.
2710 * breakpoint.c (watchpoint_in_thread_scope): Verify also
2711 current_program_space.
2712 * i386-nat.c (i386_inferior_data_cleanup): New.
2713 (i386_inferior_data_get): Replace variable inf_data_local by an
2714 inferior_data call.
2715 (i386_use_watchpoints): Initialize i386_inferior_data.
2716 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
2717 specific iterate_over_lwps.
2718
4403d8e9
JK
27192012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2720
2721 Fix watchpoints across inferior fork.
2722 * amd64-linux-nat.c (update_debug_registers_callback): Update the
2723 comment for linux_nat_iterate_watchpoint_lwps.
2724 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2725 linux_nat_iterate_watchpoint_lwps.
2726 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
2727 * i386-linux-nat.c (update_debug_registers_callback): Update the
2728 comment for linux_nat_iterate_watchpoint_lwps.
2729 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
2730 linux_nat_iterate_watchpoint_lwps.
2731 (i386_linux_prepare_to_resume): New comment on Linux kernel.
2732 * i386-nat.c: Include inferior.h.
2733 (dr_mirror): Remove.
2734 (i386_inferior_data, struct i386_inferior_data)
2735 (i386_inferior_data_get): New.
2736 (i386_debug_reg_state): Use i386_inferior_data_get.
2737 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
2738 (i386_insert_watchpoint, i386_remove_watchpoint)
2739 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2740 (i386_remove_hw_breakpoint): New variable state, use
2741 i386_debug_reg_state instead of DR_MIRROR.
2742 * linux-nat.c (delete_lwp): New declaration.
2743 (num_lwps): Move here from downwards.
2744 (delete_lwp_cleanup): New.
2745 (linux_child_follow_fork): Create new child_lp, call
2746 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
2747 PTRACE_DETACH.
2748 (num_lwps): Move upwards.
2749 (linux_nat_iterate_watchpoint_lwps): New.
2750 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
2751 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
2752
2992c9a7 27532012-01-24 Joel Brobecker <brobecker@adacore.com>
2754
2755 GDB 7.4 released.
2756
e360902b
PA
27572012-01-23 Pedro Alves <palves@redhat.com>
2758
2759 * top.c (caution): Rename to ...
2760 (confirm): ... this.
2761 (show_caution): Rename to ...
2762 (show_confirm): ... this.
2763 (quit_cover): Adjust.
2764 (init_main): Adjust.
2765 * top.h (caution): Rename to ...
2766 (confirm): ... this.
2767 * utils.c (internal_vproblem, defaulted_query): Adjust.
2768
050a2e1d
PA
27692012-01-23 Pedro Alves <palves@redhat.com>
2770
2771 * top.c (caution): Update comment.
2772 (execute_command): Don't consider the current value of `caution'.
2773
77a35dd8
JK
27742012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2775
2776 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
2777
a71b5a38
UW
27782012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
2779
2780 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2781 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
2782 * target.c (target_fileio_pwrite): Remove buffer address from
2783 debug output.
2784 (target_fileio_pread): Likewise.
2785
d99bd577
UW
27862012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2787
2788 * NEWS: Document remote "info proc" and "generate-core-file".
2789
35c2fab7
UW
27902012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2791
2792 * gdbarch.sh (find_memory_regions): New callback.
2793 * gdbarch.c, gdbarch.h: Regenerate.
2794
2795 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
2796 callback before falling back to target method.
2797
2798 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
2799 (linux_target_install_ops): No longer install it.
2800
2801 * linux-tdep.c (linux_find_memory_regions): New function.
2802 (linux_init_abi): Install it.
2803
6432734d
UW
28042012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2805
2806 * gdbarch.sh (make_corefile_notes): New architecture callback.
2807 * gdbarch.c: Regenerate.
2808 * gdbarch.h: Likewise.
2809
2810 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
2811 before target_make_corefile_notes. If NULL is returned, the
2812 target does not support core file generation.
2813
2814 * linux-nat.c: Include "linux-tdep.h".
2815 (find_signalled_thread, find_stop_signal): Remove.
2816 (linux_nat_do_thread_registers): Likewise.
2817 (struct linux_nat_corefile_thread_data): Likewise.
2818 (linux_nat_corefile_thread_callback): Likewise.
2819 (iterate_over_spus): Likewise.
2820 (struct linux_spu_corefile_data): Likewise.
2821 (linux_spu_corefile_callback): Likewise.
2822 (linux_spu_make_corefile_notes): Likewise.
2823 (linux_nat_collect_thread_registers): New function.
2824 (linux_nat_make_corefile_notes): Replace contents by call to
2825 linux_make_corefile_notes passing linux_nat_collect_thread_registers
2826 as native-only callback.
2827
2828 * linux-tdep.h: Include "bfd.h".
2829 (struct regcache): Add forward declaration.
2830 (linux_collect_thread_registers_ftype): New typedef.
2831 (linux_make_corefile_notes): Add prototype.
2832 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
2833 "regset.h", and "elf-bfd.h".
2834 (find_signalled_thread, find_stop_signal): New functions.
2835 (linux_spu_make_corefile_notes): Likewise.
2836 (linux_collect_thread_registers): Likewise.
2837 (struct linux_corefile_thread_data): New data structure.
2838 (linux_corefile_thread_callback): New funcion.
2839 (linux_make_corefile_notes): Likewise.
2840 (linux_make_corefile_notes_1): Likewise.
2841 (linux_init_abi): Install it.
2842
3030c96e
UW
28432012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2844
2845 * gdbarch.sh (info_proc): New callback.
2846 * gdbarch.c, gdbarch.h: Regenerate.
2847
2848 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
2849 before falling back to the target info_proc callback.
2850
2851 * linux-nat.c: Do not include "cli/cli-utils.h".
2852 (linux_nat_info_proc): Remove.
2853 (linux_target_install_ops): No longer install it.
2854
2855 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
2856 (read_mapping): New function.
2857 (linux_info_proc): Likewise.
2858 (linux_init_abi): Install it.
2859
145b16a9
UW
28602012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2861
2862 * defs.h (enum info_proc_what): Moved here from linux-nat.c
2863 * infcmd.c: (info_proc_cmd_1): New function.
2864 (info_proc_cmd): New function, moved here from equivalent routine
2865 orignally in linux-nat.c.
2866 (info_proc_cmd_mappings): Likewise.
2867 (info_proc_cmd_stat): Likewise.
2868 (info_proc_cmd_status): Likewise.
2869 (info_proc_cmd_cwd): Likewise.
2870 (info_proc_cmd_cmdline): Likewise.
2871 (info_proc_cmd_exe): Likewise.
2872 (info_proc_cmd_all): Likewise.
2873 (_initialize_infcmd): Install "info proc" command and subcommands.
2874
2875 * target.h (struct target_ops): Add to_info_proc.
2876 (target_info_proc): Add prototype.
2877 * target.c (target_info_proc): New function.
2878
2879 * procfs.c (procfs_info_proc): Add prototype.
2880 (info_proc_cmd): Rename into ...
2881 (procfs_info_proc): ... this. Update argument types as appropriate
2882 for a to_info_proc implementation. Handle "what" argument.
2883 (procfs_target): Install procfs_info_proc.
2884 (_initialize_procfs): No longer install "info proc" command.
2885
2886 * linux-nat.c: (enum info_proc_what): Remove.
2887 (linux_nat_info_proc_cmd_1): Rename into ...
2888 (linux_nat_info_proc): ... this. Update argument types as appropriate
2889 for a to_info_proc implementation.
2890 (linux_nat_info_proc_cmd): Remove.
2891 (linux_nat_info_proc_cmd_mappings): Likewise.
2892 (linux_nat_info_proc_cmd_stat): Likewise.
2893 (linux_nat_info_proc_cmd_status): Likewise.
2894 (linux_nat_info_proc_cmd_cwd): Likewise.
2895 (linux_nat_info_proc_cmd_cmdline): Likewise.
2896 (linux_nat_info_proc_cmd_exe): Likewise.
2897 (linux_nat_info_proc_cmd_all): Likewise.
2898 (linux_target_install_ops): Install linux_nat_info_proc.
2899 (_initialize_linux_nat): No longer install "info proc" command
2900 and subcommands.
2901
b9e7b9c3
UW
29022012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2903
2904 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
2905 * config.in, configure: Regenerate.
2906
2907 * target.h (struct target_ops): Add to_fileio_readlink.
2908 (target_fileio_readlink): Add prototype.
2909 * target.c (target_fileio_readlink): New function.
2910
2911 * inf-child.c: Conditionally include <sys/param.h>.
2912 (inf_child_fileio_readlink): New function.
2913 (inf_child_target): Install it.
2914
2915 * remote.c (PACKET_vFile_readlink): New enum value.
2916 (remote_hostio_readlink): New function.
2917 (init_remote_ops): Install it.
2918 (_initialize_remote): Handle vFile:readlink packet type.
2919
7313baad
UW
29202012-01-20 Pedro Alves <palves@redhat.com>
2921 Ulrich Weigand <ulrich.weigand@linaro.org>
2922
2923 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
2924 * config.in, configure: Regenerate.
2925
2926 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
2927 to_fileio_pread, to_fileio_close, to_fileio_unlink.
2928 (target_fileio_open): Add prototype.
2929 (target_fileio_pwrite): Likewise.
2930 (target_fileio_pread): Likewise.
2931 (target_fileio_close): Likewise.
2932 (target_fileio_unlink): Likewise.
2933 (target_fileio_read_alloc): Likewise.
2934 (target_fileio_read_stralloc): Likewise.
2935
2936 * target.c: Include "gdb/fileio.h".
2937 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
2938 (default_fileio_target): New function.
2939 (target_fileio_open): Likewise.
2940 (target_fileio_pwrite): Likewise.
2941 (target_fileio_pread): Likewise.
2942 (target_fileio_close): Likewise.
2943 (target_fileio_unlink): Likewise.
2944 (target_fileio_close_cleanup): Likewise.
2945 (target_fileio_read_alloc_1): Likewise.
2946 (target_fileio_read_alloc): Likewise.
2947 (target_fileio_read_stralloc): Likewise.
2948
2949 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
2950 <fcntl.h>, and <unistd.h>.
2951 (inf_child_fileio_open_flags_to_host): New function.
2952 (inf_child_errno_to_fileio_error): Likewise.
2953 (inf_child_fileio_open): Likewise.
2954 (inf_child_fileio_pwrite): Likewise.
2955 (inf_child_fileio_pread): Likewise.
2956 (inf_child_fileio_close): Likewise.
2957 (inf_child_fileio_unlink): Likewise.
2958 (inf_child_target): Install to_fileio routines.
2959
2960 * remote.c (init_remote_ops): Install to_fileio routines.
2961
901f9912
UW
29622012-01-20 Pedro Alves <palves@redhat.com>
2963 Ulrich Weigand <ulrich.weigand@linaro.org>
2964
2965 * remote.c (remote_multi_process_p): Only check for multi-process
2966 protocol feature, do not check for extended protocol.
2967 (remote_supports_multi_process): Check for extended protocol here.
2968 (set_general_process): Likewise.
2969 (extended_remote_kill): Likewise.
2970 (remote_pid_to_str): Likewise.
2971 (remote_query_supported): Always query multiprocess mode.
2972
e714e1bf
UW
29732012-01-20 Pedro Alves <palves@redhat.com>
2974 Ulrich Weigand <ulrich.weigand@linaro.org>
2975
2976 * inferior.h (struct inferior): Add fake_pid_p.
2977 * inferior.c (exit_inferior_1): Clear fake_pid_p.
2978 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
2979 magic_null_ptid since the remote side doesn't provide a real PID.
2980
50897289
TT
29812012-01-19 Tom Tromey <tromey@redhat.com>
2982
2983 * NEWS: Combine the two Python sections.
2984
1afc2033
JK
29852012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2986
2987 * target.h (target_close): Update comment on the target's unpush state.
2988
305436e0
PA
29892012-01-19 Pedro Alves <palves@redhat.com>
2990
2991 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
2992 linux_nat_async directly instead of going through the target
2993 vector.
2994 * target.c (unpush_target): Close target after unpushing it, not
2995 before.
2996
49323895
GB
29972012-01-19 Gary Benson <gbenson@redhat.com>
2998
2999 * mdebugread.c (sort_blocks): Replace integer constants with ones
3000 derived from FIRST_LOCAL_BLOCK.
3001
1db33378
PP
30022012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
3003 Jan Kratochvil <jan.kratochvil@redhat.com>
3004
3005 PR gdb/9538
3006 * symfile.c (find_separate_debug_file): New function.
3007 (terminate_after_last_dir_separator): Likewise.
3008 (find_separate_debug_file_by_debuglink): Also try realpath.
3009 * configure.ac (AC_CHECK_FUNCS): Add lstat.
3010 * configure: Regenerate.
3011 * config.in: Regenerate.
3012
f83d8a90
DE
30132012-01-18 Doug Evans <dje@google.com>
3014
3015 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
3016 (main.o): Remove rule.
3017 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
3018 (--with-sysroot): Rewrite.
3019 * configure: Regenerate.
3020 * config.in: Regenerate.
3021
2dbca4d6
SDJ
30222012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
3023
3024 * parse.c (initialize_expout): New function.
3025 (reallocate_expout): Likewise.
3026 (parse_exp_in_context): Use `initialize_expout' and
3027 `reallocate_expout' when appropriate.
3028
0695b514
PA
30292012-01-18 Pedro Alves <palves@redhat.com>
3030
3031 * record.c (struct record_breakpoint, record_breakpoint_p)
3032 (record_breakpoints): New.
3033 (record_insert_breakpoint, record_remove_breakpoint): Manage
3034 record breakpoints list. Only remove breakpoints from the
3035 inferior if they had been inserted there in the first place.
3036
136e1c30
DE
30372012-01-17 Doug Evans <dje@google.com>
3038
3039 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
3040 if we know we don't have a file name to look for.
3041
c0bf857d
PA
30422012-01-17 Pedro Alves <palves@redhat.com>
3043
3044 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
3045 the frame's stop reason is UNWIND_UNAVAILABLE.
3046
b486de60
JK
30472012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3048
3049 Fix compilation error.
3050 * m2-exp.y (yyerror): Use ANSI C prototype.
3051
d04550a6
SDJ
30522012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3053
3054 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
3055 (growbuf_by_size): Likewise.
3056 (yyerror): Likewise.
3057 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
3058 (modblock): Remove variable (was #if 0'ed).
3059 (parse_number): Convert prototype from K&R to ANSI C.
3060 (yyerror): Likewise.
3061 * objc-exp.y (parse_number): Likewise.
3062 (yyerror): Likewise.
3063 (yylex): Remove #if 0'ed code.
3064 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
3065 (yyerror): Likewise.
3066
4aac40c8
TT
30672012-01-16 Tom Tromey <tromey@redhat.com>
3068
3069 * NEWS: Add item.
3070 * symtab.h (compare_filenames_for_search): Declare.
3071 * symtab.c (compare_filenames_for_search): New function.
3072 (iterate_over_some_symtabs): Use it.
3073 * symfile.h (struct quick_symbol_functions)
3074 <map_symtabs_matching_filename>: Change spec.
3075 * psymtab.c (partial_map_symtabs_matching_filename): Use
3076 compare_filenames_for_search. Update for new spec.
3077 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
3078 compare_filenames_for_search. Update for new spec.
3079 * breakpoint.c (clear_command): Use compare_filenames_for_search.
3080
cafec441
TT
30812012-01-16 Tom Tromey <tromey@redhat.com>
3082
3083 PR python/13281:
3084 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
3085 (struct main_type) <flag_flag_enum>: New field.
3086 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
3087 * NEWS: Add entries.
3088 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
3089 enums.
3090 * python/lib/gdb/printing.py (_EnumInstance): New class.
3091 (FlagEnumerationPrinter): Likewise.
3092
983af33b
SDJ
30932012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3094
3095 * breakpoint.c (create_sals_from_address_default): New function.
3096 (create_breakpoints_sal_default): Likewise.
3097 (decode_linespec_default): Likewise.
3098 (is_marker_spec): Removed.
3099 (strace_marker_p): New function.
3100 (init_breakpoint_sal): Using `strace_marker_p' instead of
3101 `is_marker_spec'.
3102 (create_breakpoint): Call method `create_sals_from_address' from
3103 breakpoint_ops, replacing code that created SALs conditionally
3104 on the type of the breakpoint. Call method `create_breakpoints_sal',
3105 replacing code that created breakpoints conditionally on the type
3106 wanted.
3107 (base_breakpoint_create_sals_from_address): New function.
3108 (base_breakpoint_create_breakpoints_sal): Likewise.
3109 (base_breakpoint_decode_linespec): Likewise.
3110 (base_breakpoint_ops): Add methods
3111 `base_breakpoint_create_sals_from_address',
3112 `base_breakpoint_create_breakpoints_sal' and
3113 `base_breakpoint_decode_linespec'.
3114 (bkpt_create_sals_from_address): New function.
3115 (bkpt_create_breakpoints_sal): Likewise.
3116 (bkpt_decode_linespec): Likewise.
3117 (tracepoint_create_sals_from_address): Likewise.
3118 (tracepoint_create_breakpoints_sal): Likewise.
3119 (tracepoint_decode_linespec): Likewise.
3120 (strace_marker_create_sals_from_address): Likewise.
3121 (strace_marker_create_breakpoints_sal): Likewise.
3122 (strace_marker_decode_linespec): Likewise.
3123 (strace_marker_breakpoint_ops): New variable.
3124 (addr_string_to_sals): Remove `marker_spec'. Call method
3125 `decode_linespec' from breakpoint_ops, replacing code that decoded
3126 an address string into a SAL. Use `strace_marker_p' instead of
3127 `marker_spec'.
3128 (strace_command): Decide whether we are dealing with a static
3129 tracepoint with marker or not. Use the appropriate breakpoint_ops.
3130 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
3131 * breakpoint.h (linespec_result, linespec_sals): New forward
3132 declarations.
3133 (breakpoint_ops) <create_sals_from_address>,
3134 <create_breakpoints_sal>, <decode_linespec>: New methods.
3135
4795f398
DE
31362012-01-14 Doug Evans <dje@google.com>
3137
3138 * NEWS: Update text for "maint set python print-stack".
3139 It is deprecated in gdb 7.4 and deleted in 7.5.
3140
ee5106fe
EZ
31412012-01-13 Eli Zaretskii <eliz@gnu.org>
3142
3143 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
3144 including curses.h.
3145
b161e06f
JK
31462012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3147
3148 * configure: Regenerate.
3149 * config.in: Regenerate.
3150
85254831
KS
31512012-01-12 Keith Seitz <keiths@redhat.com>
3152
3153 PR mi/10586
3154 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
3155 (ANONYMOUS_UNION_NAME): Define.
3156 (is_path_expr_parent): New function.
3157 (get_path_expr_parent): New function.
3158 (is_anonymous_child): New function.
3159 (create_child_with_value): If the child is anonymous and without
3160 a name, assign an object name to it.
3161 (c_describe_child): Use get_path_expr_parent to determine
3162 the parent expression.
3163 If there field represents an anonymous struct or union and
3164 has no name, set an appropriate display name and expression.
3165 (cplus_describe_child): Likewise.
3166
620fa63a
PA
31672012-01-12 Pedro Alves <palves@redhat.com>
3168
3169 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
3170 available when %ebp is found to be zero (outermost).
3171
2efa2c79
AT
31722012-01-11 Andreas Tobler <andreast@fgznet.ch>
3173
3174 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
3175 an internal gdb_static_assert.
3176 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
3177
88e7d25d
TT
31782012-01-11 Tom Tromey <tromey@redhat.com>
3179
3180 PR gdb/9598:
3181 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
3182 catch" and "catch throw".
3183
72384ba3
PH
31842012-01-11 Paul Hilfinger <hilfingr@adacore.com>
3185
3186 * blockframe.c (block_innermost_frame): Start search from selected
3187 frame, if present, or otherwise the current frame.
3188
3189 * c-exp.y (variable): Update innermost_block for
3190 'block COLONCOLON NAME' clause.
3191 * m2-exp.y (variable): Ditto.
3192 * objc-exp.y (variable): Ditto.
3193
065a711f
TT
31942012-01-10 Tom Tromey <tromey@redhat.com>
3195
3196 PR python/13199:
3197 * python/python.c (finish_python_initialization): Set sys.argv.
3198
f3f5162e
DE
31992012-01-10 Doug Evans <dje@google.com>
3200
3201 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
3202 "want_line_info". All callers updated.
3203 (dwarf_decode_lines_1): New function.
3204 (handle_DW_AT_stmt_list): Add function comment.
3205 New arg "want_line_info". All callers updated.
3206 (read_file_scope,read_type_unit_scope): Move comment from
3207 handle_DW_AT_stmt_list to here.
3208
9934703b
JK
32092012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 Fix regression after libiberty/ update for GCC PR 6057 and others.
3212 * c-exp.y (operator) <OPERATOR DELETE>
3213 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3214 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
3215 (make_builtin_type, make_name): New variable i, add gdb_assert.
3216 (operator) <OPERATOR NEW>: Update ARGS to 3.
3217 (operator) <OPERATOR DELETE>: Add trailing space.
3218 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
3219 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3220 * cp-support.c (cp_canonicalize_string): Check NULL from
3221 cp_comp_to_string, call warning and return.
3222
06b9f45f
JK
32232012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 Fix duplicate .o files after omitting libbfd.a.
3226 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
3227 (SFILES): Add corelow.c.
3228 (COMMON_OBS): Add corelow.o.
3229 (ALLDEPFILES): Remove corelow.c.
3230 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
3231 * config/alpha/alpha-osf3.mh: Likewise.
3232 * config/alpha/fbsd.mh: Likewise.
3233 * config/arm/nbsdaout.mh: Likewise.
3234 * config/arm/nbsdelf.mh: Likewise.
3235 * config/i386/i386gnu.mh: Likewise.
3236 * config/ia64/hpux.mh: Likewise.
3237 * config/ia64/linux.mh: Likewise.
3238 * config/m32r/linux.mh: Likewise.
3239 * config/m68k/linux.mh: Likewise.
3240 * config/mips/irix5.mh: Likewise.
3241 * config/mips/irix6.mh: Likewise.
3242 * config/pa/hpux.mh: Likewise.
3243 * config/pa/linux.mh: Likewise.
3244 * config/powerpc/aix.mh: Likewise.
3245 * config/sparc/linux.mh: Likewise.
3246 * config/sparc/linux64.mh: Likewise.
3247 * config/sparc/sol2.mh: Likewise.
3248 * config/vax/vax.mh: Likewise.
3249 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
3250 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
3251 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
3252 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
3253 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
3254 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
3255 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
3256 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
3257 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
3258 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
3259 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
3260 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
3261 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3262 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
3263 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
3264 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3265 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
3266 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
3267 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
3268 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
3269 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
3270 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
3271 corelow.o from gdb_target_obs.
3272 * corefile.c (core_target): Update the comment on NULL value.
3273 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
3274 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
3275 MATCHES. Drop YUMMY set on NULL.
3276 (core_close): Do not call exit_inferior_silent on zero PID. Do not
3277 reclaim CORE_DATA if it is already NULL.
3278
34365054
DE
32792012-01-09 Doug Evans <dje@google.com>
3280
3281 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
3282 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
3283
696166a3
KS
32842012-01-09 Keith Seitz <keiths@redhat.com>
3285
3286 * breakpoint.c (wrapper.h): Don't include.
3287
8e7b59a5
KS
32882012-01-09 Keith Seitz <keiths@redhat.com>
3289
3290 * Makefile.in (SFILES): Remove wrapper.c.
3291 (HFILES_NO_SRCDIR): Remove wrapper.h.
3292 (COMMON_OBS): Remove wrapper.o.
3293 * cli/cli-interp.c: Don't inlude wrapper.h.
3294 * corelow.c: Likewise.
3295 (core_open): Replace gdb_target_find_new_threads with
3296 TRY_CATCH around target_find_new_threads.
3297 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
3298 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
3299 * varobj.c (varobj_create): Likewise for parse_exp_1 and
3300 evaluate_expression.
3301 (varobj_set_value): Likewise for evaluate_expression and
3302 value_assign.
3303 (install_new_variable): Likewise for value_fetch_lazy.
3304 (adjust_value_for_child_access): Likewise for value_ind.
3305 (c_describe_child): Likewise for value_subscript and
3306 value_ind.
3307 (c_value_of_root): Likewise for evaluate_expression.
3308 * wrapper.c: Remove.
3309 * wrapper.h: Remove.
3310
1a4eeb98
DE
33112012-01-09 Doug Evans <dje@google.com>
3312
9ff913ba
DE
3313 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
3314 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
3315 "abfd" args with "section". All callers updated.
3316 Error checking code moved ...
3317 (error_check_comp_unit_head): ... here. New function.
3318 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
3319 Delete arg "abfd". New arg "type_offset". All callers updated.
3320 (create_debug_types_hash_table): Simplify by using
3321 read_and_check_type_unit_head.
3322
1a4eeb98
DE
3323 * parser-defs.h (namecopy): Delete.
3324 * parse.c (namecopy, namecopy_size): Move into copy_name.
3325
2e6af8c0
JK
33262012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3327
3328 Partially fix duplicate .o files after omitting libbfd.a.
3329 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
3330 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3331 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
3332 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3333 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
3334 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
3335 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3336
9f2f828a
PA
33372012-01-09 Pedro Alves <palves@redhat.com>
3338
3339 * MAINTAINERS: Update my email address.
3340
4d72c0bc
DE
33412012-01-08 Doug Evans <dje@google.com>
3342
d467dd73
DE
3343 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
3344 n_type_units. Rename type_comp_units to all_type_units.
3345 All uses updated.
3346 (add_signatured_type_cu_to_table): Renamed from
3347 add_signatured_type_cu_to_list. All callers updated.
3348
4d72c0bc
DE
3349 * gdbtypes.h (struct cplus_struct_type): Delete member
3350 nfn_fields_total. All uses removed.
3351
21b2bd31
DE
33522012-01-06 Doug Evans <dje@google.com>
3353
3354 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
3355 to top of file.
3356 (dwarf2_find_comp_unit): Delete.
3357 (process_psymtab_comp_unit): Make result "void".
3358 Delete args buffer, info_ptr, buffer_size, and replace with
3359 "section". All callers updated.
3360 (dwarf2_build_psymtabs_hard): Simplify.
3361
bfd189b1
SDJ
33622012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
3363 Thiago Jung Bauermann <bauerman@br.ibm.com>
3364
3365 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
3366 before `struct gdb_exception'.
3367 * breakpoint.c (update_global_location_list_nothrow)
3368 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
3369 * cp-abi.c (value_rtti_type): Likewise.
3370 * cp-support.c (cp_validate_operator): Likewise.
3371 * infrun.c (insert_exception_resume_breakpoint)
3372 (check_exception_resume, keep_going): Likewise.
3373 * mi-interp.c (mi_breakpoint_created)
3374 (mi_breakpoint_modified): Likewise.
3375 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
3376 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
3377 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
3378
6b07635f
DE
33792012-01-05 Doug Evans <dje@google.com>
3380
0b30b85c
DE
3381 * dwarf2read.c (statement_prologue): Delete, unused.
3382
98714339
DE
3383 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
3384 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
3385
6b07635f
DE
3386 * dwarf2read.c (comp_unit_header): Delete, unused.
3387
761f4555
UW
33882012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
3389
3390 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
3391 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
3392
2ca0b532
PA
33932012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
3394
3395 * infrun.c (normal_stop): Don't skip calling the normal_stop
3396 observers if the thread was doing a multi-step, but stopped for
3397 some reason other than stepping.
3398
50aeff07
PA
33992012-01-05 Pedro Alves <alves.ped@gmail.com>
3400
3401 * cli/cli-decode.h: Add comments.
3402 (CMD_LIST_AMBIGUOUS): Moved to command.h
3403 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3404 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
3405 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
3406 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
3407 (add_com, add_com_alias, add_info, add_info_alias)
3408 (complete_on_cmdlist, complete_on_enum, help_list): Remove
3409 declarations.
3410 * command.h: Add and adjust comments.
3411 (CMD_LIST_AMBIGUOUS): Moved here.
3412 (help_cmd, help_cmd_list): Delete declarations.
3413
5953832c
DE
34142012-01-04 Doug Evans <dje@google.com>
3415
e5fe5e75
DE
3416 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
3417 All callers updated.
3418 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
3419 Replace all arguments with "per_cu". All callers updated.
3420
28dee7f5
DE
3421 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
3422
23745b47
DE
3423 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
3424 New arg "per_cu". All callers updated.
3425
5953832c
DE
3426 Delete #if 0'd out code.
3427 * language.c (binop_result_type): Delete.
3428 (simple_type, ordered_type, same_type, integral_type): Delete.
3429 (numeric_type, character_type, string_type, boolean_type): Delete.
3430 (float_type, structured_type): Delete.
3431 * language.h: Update.
3432
0f5b7562
TT
34332012-01-04 Tom Tromey <tromey@redhat.com>
3434
3435 * python/py-value.c (valpy_binop): Initialize 'res_val'.
3436
78218f56
JB
34372012-01-04 Joel Brobecker <brobecker@adacore.com>
3438
3439 * corefile.c (close_exec_file): Delete.
3440 (reopen_exec_file): Remove commented out code that seems related
3441 to close_exec_file, which is being deleted here.
3442 * inferior.h (close_exec_file): Delete.
3443 * fork-child.c (fork_inferior): Remove call to fork_inferior.
3444
0fcd72ba
JB
34452012-01-04 Joel Brobecker <brobecker@adacore.com>
3446
3447 * ada-lang.c: #include "cli/cli-utils.h".
3448 (get_selections): Use skip_spaces.
3449 (ada_get_next_arg): Use skip_spaces and skip_to_space.
3450 (catch_ada_exception_command_split): Use skip_spaces.
3451 (ada_decode_assert_location): Likewise.
3452
1dabb4c4
JB
34532012-01-04 Joel Brobecker <brobecker@adacore.com>
3454
3455 * linespec.c (decode_line_internal): Check for C++ or Java
3456 compound constructs only if the current language is C, C++
3457 or Java.
3458
5931a2fa
JK
34592012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3460
3461 Revert:
3462 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 Joel Brobecker <brobecker@adacore.com>
3464 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3465 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3466 3 times.
3467 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3468 fall through into AT_ENTRY_POINT.
3469 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3470 DUMMY_ADDR with it.
3471 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3472 PPC_INSN_SIZE skip to 3 times.
3473
1a2da5ee
JB
34742012-01-04 Joel Brobecker <brobecker@adacore.com>
3475
3476 * linespec.c (add_minsym): Preserve function descriptors.
3477
8645ff69
UW
34782012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3479
3480 * breakpoint.c (all_locations_are_pending): Consider locations
3481 in program spaces executing during startup pending as well.
3482
0b302171
JB
34832012-01-04 Joel Brobecker <brobecker@adacore.com>
3484
3485 Copyright year update in most files of the GDB Project.
3486
8ba098ad
JB
34872012-01-04 Joel Brobecker <brobecker@adacore.com>
3488
3489 * copyright.sh: Delete.
3490 * copyright.py: Rewrite.
3491
09c01c30
JB
34922012-01-04 Joel Brobecker <brobecker@adacore.com>
3493
3494 * gnulib/extra/update-copyright: New file, imported from gnulib.
3495
3c36c0af
JB
34962012-01-04 Joel Brobecker <brobecker@adacore.com>
3497
3498 * README (Copyright and License Notices): New section.
3499
888fe1e1
TT
35002012-01-03 Tom Tromey <tromey@redhat.com>
3501
3502 PR python/12533:
3503 * python/py-value.c (valpy_dereference, valpy_get_address
3504 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
3505 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
3506 (valpy_absolute, valpy_richcompare): Free intermediate values.
3507
6e681866
JB
35082011-01-03 Joel Brobecker <brobecker@adacore.com>
3509
3510 * ada-lang.c: Reformat the copyright notice.
3511
0cd09acb
JK
35122012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3513
3514 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3515 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
3516 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
3517 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
3518 Revert this part of:
3519 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3520 Build gdb directly from *.o files not using libgdb.a.
3521 * Makefile.in (COMMON_OBS): Remove solib-target.o.
3522
12c3e59c
JB
35232012-01-02 Joel Brobecker <brobecker@adacore.com>
3524
3525 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
3526 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
3527 Reformat the copyright header.
3528
11bf1490
JK
35292012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3530
3531 Revert this part of:
3532 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3533 Remove the gdbtui binary.
3534 * gdb.c (main): Remove args.interpreter_p initialization.
3535 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3536 * main.h (struct captured_main_args): Remove interpreter_p.
3537
1fef196f
JB
35382012-01-02 Joel Brobecker <brobecker@adacore.com>
3539
3540 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
3541
67827812
JB
35422012-01-02 Joel Brobecker <brobecker@adacore.com>
3543
3544 * top.c (print_gdb_version): Update copyright year.
3545
a4d0b831
YQ
35462012-01-02 Yao Qi <yao@codesourcery.com>
3547
3548 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
3549
b5914469
JK
35502012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 Joel Brobecker <brobecker@adacore.com>
3552
3553 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3554 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3555 3 times.
3556 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3557 fall through into AT_ENTRY_POINT.
3558 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3559 DUMMY_ADDR with it.
3560 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3561 PPC_INSN_SIZE skip to 3 times.
3562
8da828f7
JK
35632012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3564
3565 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
3566 the return value.
3567 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
3568
8574e74b
JK
35692012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3570
3571 Build gdb directly from *.o files not using libgdb.a.
3572 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
3573 (COMMON_OBS): Remove solib-target.o.
3574 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
3575 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
3576 (LIBGDB_OBS, libgdb.a): Move it above.
3577 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
3578 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
3579 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
3580 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
3581 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
3582 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
3583 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
3584 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
3585 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
3586 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
3587 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3588 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
3589 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
3590 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
3591 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3592 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
3593 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
3594 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3595 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
3596 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
3597 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
3598 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
3599 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
3600 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
3601 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
3602 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
3603 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
3604
217bff3e
JK
36052012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3606
3607 Remove the gdbtui binary.
3608 * .gitignore (/gdbtui): Remove.
3609 * Makefile.in (TUI): Remove.
3610 (SUBDIR_TUI_OBS): Remove tui-main.o.
3611 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
3612 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
3613 (tui-main.o): Remove.
3614 (all_object_files): Remove tui-main.o.
3615 * NEWS: New note for the gdbtui removal.
3616 * configure: Rebuilt.
3617 * configure.ac: No longer add all-tui, clean-tui, install-tui and
3618 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
3619 CONFIG_UNINSTALL respectively.
3620 * gdb.c (main): Remove args.interpreter_p initialization.
3621 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3622 * main.h (struct captured_main_args): Remove interpreter_p.
3623 * tui/tui-main.c: Remove.
3624
9cdd5dbd
DE
36252012-01-01 Doug Evans <dje@google.com>
3626
bb5ed363
DE
3627 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
3628 (dwarf2_physname, read_import_statement): Ditto.
3629 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
3630 (process_structure_scope read_subroutine_type): Ditto.
3631 (read_typedef, load_partial_dies, read_partial_die): Ditto.
3632 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
3633 (dwarf2_fetch_die_location_block): Ditto.
3634 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
3635
a0f42c21
DE
3636 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
3637 All callers updated.
3638 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
3639 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
3640 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
3641
2dc860c0
DE
3642 * dwarf2read.c (load_cu): Move assert to more useful location.
3643
68dc6402
DE
3644 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
3645 All callers updated.
3646
9cdd5dbd
DE
3647 * dwarf2read.c (dwarf2_per_objfile): Add comment.
3648 (dwarf2_elf_names): Minor reformat.
3649 (dwarf2_per_cu_data): Tweak comment.
3650 (dwarf2_read_section): Fix comment.
3651 (create_all_comp_units): Fix comment.
3652 (load_full_comp_unit): Fix comment.
3653 (process_full_comp_unit): Fix comment.
3654 (read_signatured_type): Fix comment.
3655
0c10e53e 3656For older changes see ChangeLog-2011.
c906108c
SS
3657\f
3658Local Variables:
3659mode: change-log
3660left-margin: 8
3661fill-column: 74
3662version-control: never
57da7796 3663coding: utf-8
c906108c 3664End:
This page took 1.548485 seconds and 4 git commands to generate.