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