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