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