Fix typo.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
22e048c9
SDJ
12012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * ada-lang.c:
4 * ada-tasks.c:
5 * ada-varobj.c:
6 * amd64-darwin-tdep.c:
7 * arm-symbian-tdep.c:
8 * arm-tdep.c:
9 * avr-tdep.c:
10 * ax-gdb.c:
11 * bfin-linux-tdep.c:
12 * breakpoint.c:
13 * c-valprint.c:
14 * cli/cli-cmds.c:
15 * coffread.c:
16 * cp-support.c:
17 * cris-tdep.c:
18 * dwarf2-frame-tailcall.c:
19 * dwarf2-frame.c:
20 * dwarf2expr.c:
21 * dwarf2loc.c:
22 * dwarf2read.c:
23 * elfread.c:
24 * eval.c:
25 * expprint.c:
26 * f-valprint.c:
27 * frv-tdep.c:
28 * h8300-tdep.c:
29 * hppa-hpux-tdep.c:
30 * hppa-tdep.c:
31 * hppanbsd-tdep.c:
32 * i386-nto-tdep.c:
33 * i386-tdep.c:
34 * i387-tdep.c:
35 * ia64-tdep.c:
36 * jit.c:
37 * linespec.c:
38 * linux-tdep.c:
39 * lm32-tdep.c:
40 * m2-valprint.c:
41 * m32c-tdep.c:
42 * m32r-rom.c:
43 * m32r-tdep.c:
44 * m68k-tdep.c:
45 * m68klinux-tdep.c:
46 * mi/mi-main.c:
47 * microblaze-tdep.c:
48 * mips-linux-tdep.c:
49 * mips-tdep.c:
50 * mn10300-tdep.c:
51 * p-valprint.c:
52 * parse.c:
53 * ppc-linux-tdep.c:
54 * ppc-sysv-tdep.c:
55 * printcmd.c:
56 * python/py-finishbreakpoint.c:
57 * python/py-inferior.c:
58 * python/py-infthread.c:
59 * python/py-type.c:
60 * python/python.c:
61 * remote-fileio.c:
62 * remote-m32r-sdi.c:
63 * remote-mips.c:
64 * reverse.c:
65 * rl78-tdep.c:
66 * rs6000-aix-tdep.c:
67 * rs6000-tdep.c:
68 * s390-tdep.c:
69 * score-tdep.c:
70 * sh64-tdep.c:
71 * skip.c:
72 * solib-darwin.c:
73 * solib-dsbt.c:
74 * solib-frv.c:
75 * sparc-tdep.c:
76 * spu-multiarch.c:
77 * spu-tdep.c:
78 * stack.c:
79 * symfile.c:
80 * symtab.c:
81 * tic6x-tdep.c:
82 * tracepoint.c:
83 * v850-tdep.c:
84 * valarith.c:
85 * valprint.c:
86 * value.c:
87 * xcoffread.c:
88 * xtensa-tdep.c:
89 * ada-lang.c:
90 * ada-tasks.c:
91 * ada-varobj.c:
92 * amd64-darwin-tdep.c:
93 * arm-symbian-tdep.c:
94 * arm-tdep.c: Delete unused variables.
95
aff139ff
JK
962012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
97
98 Rename $ddir to $datadir.
99 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
100 * auto-load.c (auto_load_safe_path_vec_update)
101 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
102 * configure: Regenerate.
103 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
104 Likewise. Remove the 'use $ddir' help string.
105
f7bfa992
JK
1062012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 * auto-load.c (show_auto_load_safe_path): Accept any combination of
109 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
110
9cb709b6
TT
1112012-05-18 Tom Tromey <tromey@redhat.com>
112
113 PR exp/13907:
114 * valprint.h (struct value_print_options) <symbol_print>: New
115 field.
116 * valprint.c (user_print_options): Add default for symbol_print.
117 (show_symbol_print): New function.
118 (generic_val_print): Respect symbol_print.
119 (_initialize_valprint): Add "print symbol" setting.
120 * f-valprint.c (f_val_print): Respect symbol_print.
121 * c-valprint.c (c_val_print): Respect symbol_print.
122 * NEWS: Update.
123 * printcmd.c (print_address_symbolic): Return int. Ignore some
124 zero-size symbols.
125 (print_address_demangle): Return int.
126 * defs.h: (print_address_symbolic): Return int.
127 * value.h (print_address_demangle): Return int.
128
b012acdd
TT
1292012-05-18 Tom Tromey <tromey@redhat.com>
130
131 * valprint.c (val_print_string): Don't print leading space.
132 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
133 print space before string or vtbl.
134 * m2-valprint.c (print_unpacked_pointer): Optionally print space
135 before string.
136 * jv-valprint.c (java_value_print): Print space before string.
137 * go-valprint.c (print_go_string): Print space before string.
138 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
139 space before string.
140 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
141 space before string or vtbl.
142 * auxv.c (fprint_target_auxv): Print space after address.
143
1d51a733
TT
1442012-05-18 Tom Tromey <tromey@redhat.com>
145
146 * printcmd.c (print_address_demangle): Remove special case for 0.
147
edf0c1b7
TT
1482012-05-18 Tom Tromey <tromey@redhat.com>
149
150 * printcmd.c (print_address_demangle): Add 'opts' argument.
151 * p-valprint.c (pascal_val_print): Update.
152 * jv-valprint.c (java_val_print): Update.
153 * value.h: Update.
154 * valprint.c (generic_val_print): Update.
155 (print_function_pointer_address): Add 'options' argument. Remove
156 'addressprint' argument. Update.
157 * m2-valprint.c (print_unpacked_pointer): Update.
158 * gnu-v3-abi.c (print_one_vtable): Update.
159 (gnuv3_print_method_ptr): Update.
160 * f-valprint.c (f_val_print): Update.
161 * cp-valprint.c (cp_print_value_fields): Update.
162 * valprint.h (print_function_pointer_address): Update.
163 * c-valprint.c (c_val_print): Update.
164
9703b513
TT
1652012-05-18 Tom Tromey <tromey@redhat.com>
166
167 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
168 directly corresponding to the found psymtab.
169 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
170 (dw2_find_pc_sect_symtab): Use it.
171 * block.h (blockvector_contains_pc): Declare.
172 * block.c (find_block_in_blockvector): New function.
173 (blockvector_for_pc_sect): Use it.
174 (blockvector_contains_pc): New function.
175
5a439849
MR
1762012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
177
178 * mips-tdep.h (mips_write_pc): New prototype.
179 * mips-tdep.c (mips_write_pc): Make external, add description.
180 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
181 add description.
182
8376de04
MR
1832012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
184
185 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
186 mips_regnum->pc.
187 (mips_unwind_pc, mips_write_pc): Likewise.
188 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
189 gdbarch_read_pc.
190
d3581e61
JB
1912012-05-17 Joel Brobecker <brobecker@adacore.com>
192
193 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
194 proc_warn, proc_error, proc_get_status, proc_flags,
195 proc_why, proc_what, proc_nsysarg, proc_sysargs,
196 proc_set_run_on_last_close, proc_unset_run_on_last_close,
197 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
198 proc_stop_process, proc_wait_for_stop, proc_run_process,
199 proc_set_traced_signals, proc_set_traced_faults,
200 proc_set_traced_sysentry, proc_set_traced_sysexit,
201 proc_set_held_signals, proc_get_held_signals,
202 proc_get_traced_signals, proc_get_traced_faults,
203 proc_get_traced_sysentry, proc_get_traced_sysexit,
204 proc_clear_current_fault, proc_set_current_signal,
205 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
206 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
207 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
208 proc_get_current_thread, proc_get_current_thread,
209 proc_get_current_thread, proc_update_threads,
210 proc_update_threads, proc_update_threads, proc_update_threads,
211 proc_iterate_over_threads, procfs_find_new_threads,
212 procfs_pid_to_str): Make static. Remove advance declaration.
213 (proc_cursig): Make static. Conditionalized defintion on
214 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
215 (proc_syscall, proc_set_kill_on_last_close,
216 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
217 proc_get_pending_signals, proc_get_signal_actions,
218 proc_trace_signal, proc_ignore_signal): Delete.
219
81b9b86e
SDJ
2202012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
221
222 * coffread.c (cs_section_address): Passing proper argument for
223 `bfd_get_section_vma'.
224 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
225 `bfd_get_section_flags'.
226 * remote.c (remote_trace_set_readonly_regions): Likewise, for
227 `bfd_get_section_vma'.
228
abc9d0dc
TT
2292012-05-16 Tom Tromey <tromey@redhat.com>
230
231 PR macros/13205:
232 * macrotab.h: (macro_define_special): Declare.
233 (enum macro_special_kind): New.
234 (struct macro_definition) <argc, replacement>: Update comments.
235 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
236 (macro_define_object_internal): New function.
237 (macro_define_object): Use it.
238 (macro_define_special): New function.
239 (fixup_definition): New function.
240 (macro_lookup_definition, foreach_macro_in_scope)
241 (foreach_macro): Use fixup_definition.
242 * macroexp.h (macro_stringify): Declare.
243 * macroexp.c (free_buffer_return_text): New function.
244 (stringify): Constify "arg".
245 (macro_stringify): New function.
246 * dwarf2read.c (macro_start_file): Call macro_define_special.
247
6a3a010b
MR
2482012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
249 Maciej W. Rozycki <macro@mips.com>
250
251 * breakpoint.h (bp_location): Add related_address member.
252 * inferior.h (get_return_value): Take a pointer to struct value
253 instead of struct type for the function requested.
254 * value.h (using_struct_return): Likewise.
255 * gdbarch.sh (return_value): Take a pointer to struct value
256 instead of struct type for the function requested.
257 * breakpoint.c (set_breakpoint_location_function): Initialize
258 related_address for bp_gnu_ifunc_resolver breakpoints.
259 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
260 requested function's address to gdbarch_return_value.
261 * eval.c (evaluate_subexp_standard): Pass the requested
262 function's address to using_struct_return.
263 * infcall.c (call_function_by_hand): Pass the requested
264 function's address to using_struct_return and
265 gdbarch_return_value.
266 * infcmd.c (get_return_value): Take a pointer to struct value
267 instead of struct type for the function requested.
268 (print_return_value): Update accordingly.
269 (finish_command_continuation): Likewise.
270 * stack.c (return_command): Pass the requested function's
271 address to using_struct_return and gdbarch_return_value.
272 * value.c (using_struct_return): Take a pointer to struct value
273 instead of struct type for the function requested. Pass the
274 requested function's address to gdbarch_return_value.
275 * python/py-finishbreakpoint.c (finish_breakpoint_object):
276 New function_value member, replacing function_type.
277 (bpfinishpy_dealloc): Update accordingly.
278 (bpfinishpy_pre_stop_hook): Likewise.
279 (bpfinishpy_init): Likewise. Record the requested function's
280 address.
281 * mips-tdep.c (mips_fval_reg): New enum.
282 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
283 words put in GP registers.
284 (mips_o64_push_dummy_call): Update a comment.
285 (mips_o32_return_value): Take a pointer to struct value instead
286 of struct type for the function requested and use it to check if
287 using the MIPS16 calling convention. Return the designated
288 general purpose registers for floating-point values returned in
289 MIPS16 mode.
290 (mips_o64_return_value): Likewise.
291 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
292 (ppc_sysv_abi_broken_return_value): Likewise.
293 (ppc64_sysv_abi_return_value): Likewise.
294 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
295 value instead of struct type for the function requested.
296 * amd64-tdep.c (amd64_return_value): Likewise.
297 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
298 * arm-tdep.c (arm_return_value): Likewise.
299 * avr-tdep.c (avr_return_value): Likewise.
300 * bfin-tdep.c (bfin_return_value): Likewise.
301 * cris-tdep.c (cris_return_value): Likewise.
302 * frv-tdep.c (frv_return_value): Likewise.
303 * h8300-tdep.c (h8300_return_value): Likewise.
304 (h8300h_return_value): Likewise.
305 * hppa-tdep.c (hppa32_return_value): Likewise.
306 (hppa64_return_value): Likewise.
307 * i386-tdep.c (i386_return_value): Likewise.
308 * ia64-tdep.c (ia64_return_value): Likewise.
309 * iq2000-tdep.c (iq2000_return_value): Likewise.
310 * lm32-tdep.c (lm32_return_value): Likewise.
311 * m32c-tdep.c (m32c_return_value): Likewise.
312 * m32r-tdep.c (m32r_return_value): Likewise.
313 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
314 * m68k-tdep.c (m68k_return_value): Likewise.
315 (m68k_svr4_return_value): Likewise.
316 * m88k-tdep.c (m88k_return_value): Likewise.
317 * mep-tdep.c (mep_return_value): Likewise.
318 * microblaze-tdep.c (microblaze_return_value): Likewise.
319 * mn10300-tdep.c (mn10300_return_value): Likewise.
320 * moxie-tdep.c (moxie_return_value): Likewise.
321 * mt-tdep.c (mt_return_value): Likewise.
322 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
323 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
324 (ppc_sysv_abi_broken_return_value): Likewise.
325 (ppc64_sysv_abi_return_value): Likewise.
326 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
327 * rl78-tdep.c (rl78_return_value): Likewise.
328 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
329 * rx-tdep.c (rx_return_value): Likewise.
330 * s390-tdep.c (s390_return_value): Likewise.
331 * score-tdep.c (score_return_value): Likewise.
332 * sh-tdep.c (sh_return_value_nofpu): Likewise.
333 (sh_return_value_fpu): Likewise.
334 * sh64-tdep.c (sh64_return_value): Likewise.
335 * sparc-tdep.c (sparc32_return_value): Likewise.
336 * sparc64-tdep.c (sparc64_return_value): Likewise.
337 * spu-tdep.c (spu_return_value): Likewise.
338 * tic6x-tdep.c (tic6x_return_value): Likewise.
339 * v850-tdep.c (v850_return_value): Likewise.
340 * vax-tdep.c (vax_return_value): Likewise.
341 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
342 * xtensa-tdep.c (xtensa_return_value): Likewise.
343 * gdbarch.c: Regenerate.
344 * gdbarch.h: Regenerate.
345
29ca12b3
TT
3462012-05-15 Tom Tromey <tromey@redhat.com>
347
348 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
349
588ae58c
JB
3502012-05-15 Joel Brobecker <brobecker@adacore.com>
351
352 * breakpoint.c (init_breakpoint_sal): Add quotes around part
353 of command in two error message.
354
855a6e68
JB
3552012-05-15 Joel Brobecker <brobecker@adacore.com>
356
357 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
358
d634f2de
JB
3592012-05-15 Joel Brobecker <brobecker@adacore.com>
360
361 * breakpoint.c (find_condition_and_thread): Minor reformatting.
362
9cc815f5
JK
3632012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
364
365 * NEWS (show auto-load scripts-directory): Add forgotten command.
366
6a609e58
JK
3672012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
368
369 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
370 parameters.
371
ac1438b5
L
3722012-05-14 H.J. Lu <hongjiu.lu@intel.com>
373
374 * amd64-tdep.c: Include features/i386/x32.c and
375 features/i386/x32-avx.c.
376 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
377 initialize_tdesc_x32_avx.
378
e7e0cddf
SS
3792012-05-14 Stan Shebs <stan@codesourcery.com>
380
381 Add dynamic printf.
382 * breakpoint.h (enum bptype): New type bp_dprintf.
383 (struct breakpoint): New field extra_string.
384 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
385 (create_breakpoint): Add extra_string arg.
386 * breakpoint.c (dprintf_breakpoint_ops): New.
387 (is_breakpoint): Add bp_dprintf.
388 (bpstat_what): Add dprintf case.
389 (bptype_string): Ditto.
390 (print_one_breakpoint_location): Ditto.
391 (init_bp_location): Ditto.
392 (bkpt_print_mention): Ditto.
393 (dprintf_style_enums): New array.
394 (dprintf_style): New global.
395 (dprintf_function): New global.
396 (dprintf_channel): New global.
397 (update_dprintf_command_list): New function.
398 (update_dprintf_commands): New function.
399 (init_breakpoint_sal): Add extra_string argument, handle it.
400 (create_breakpoint_sal): Add extra_string argument.
401 (create_breakpoints_sal): Add extra_string argument, update callers.
402 (find_condition_and_thread): Add extra argument.
403 (create_breakpoint): Add extra_string argument, record it.
404 (dprintf_command): New function.
405 (break_command_1): Add arg to create_breakpoint call.
406 (handle_gnu_v3_exceptions): Ditto.
407 (trace_command): Ditto.
408 (ftrace_command): Ditto.
409 (strace_command): Ditto.
410 (bkpt_print_mention): Add dprintf case.
411 (create_breakpoint_sal_default): Add extra_string argument.
412 (_initialize_breakpoint): Add new commands.
413 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
414 * python/py-breakpoint.c (bppy_init): Ditto.
415 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
416
8ae38c14
MR
4172012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
418
419 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
420
9f676e66
SCR
4212012-05-14 Siva Chandra Reddy <sivachandra@google.com>
422
423 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
424 unsigned long long.
425
7efc75aa
SCR
4262012-05-13 Siva Chandra Reddy <sivachandra@google.com>
427
428 Add a new function gdb.find_pc_line to the Python API.
429 * NEWS (Python Scripting): Add entry about the new function.
430 * python/python.c (gdbpy_find_pc_line): New function which
431 implements gdb.find_pc_line.
432 (GdbMethods): Add entry for the new function.
433
70af3797
PA
4342012-05-12 Pedro Alves <palves@redhat.com>
435
436 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
437 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
438
06da564e
EZ
4392012-05-12 Eli Zaretskii <eliz@gnu.org>
440
441 * inferior.c: Include completer.h
442 (initialize_inferiors): Set completer of add-inferior to
443 filename_completer.
444
0288cee2
L
4452012-05-11 H.J. Lu <hongjiu.lu@intel.com>
446
447 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
448 gdbarch_ptr_bit for x32 core dump.
449
f6537a2c
L
4502012-05-11 H.J. Lu <hongjiu.lu@intel.com>
451
452 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
453 and features/i386/x32-avx-linux.c.
454
85d4a676
SS
4552012-05-11 Stan Shebs <stan@codesourcery.com>
456 Kwok Cheung Yeung <kcy@codesourcery.com>
457
458 * NEWS: Describe new info os commands.
459 * common/linux-osdata.c (PID_T, TIME_T): Define.
460 (MAX_PID_T_STRLEN): New.
461 (linux_common_core_of_thread): Add comment. Change to use PID_T and
462 MAX_PID_T_STRLEN.
463 (command_from_pid): Add comment. Change to use PID_T.
464 (commandline_from_pid): Change to use PID_T.
465 (user_from_pid): Add comment.
466 (get_process_owner): Add comment. Change to use PID_T and
467 MAX_PID_T_STRLEN.
468 (get_number_of_cpu_cores): Add comment.
469 (get_cores_used_by_process): Add comment. Change to use PID_T and
470 MAX_PID_T_STRLEN.
471 (linux_xfer_osdata_processes): Change to use PID_T and
472 MAX_PID_T_STRLEN.
473 (compare_processes): New function.
474 (linux_xfer_osdata_processgroups): New function.
475 (linux_xfer_osdata_threads): Change to use PID_T.
476 (linux_xfer_osdata_fds): New function.
477 (format_socket_state, print_sockets): New functions.
478 (union socket_addr): New union.
479 (linux_xfer_osdata_isockets): New function.
480 (time_from_time_t, group_from_gid): New functions.
481 (linux_xfer_osdata_shm): New function.
482 (linux_xfer_osdata_sem): New function.
483 (linux_xfer_osdata_msg): New function.
484 (linux_xfer_osdata_modules): New function.
485 (osdata_table): Add new entries.
486 * common/buffer.c (buffer_xml_printf): Add support for long and
487 long long format specifiers.
488
f24afd6d
L
4892012-05-11 H.J. Lu <hongjiu.lu@intel.com>
490
491 * amd64-linux-tdep.h (tdesc_x32_linux): New.
492 (tdesc_x32_avx_linux): Likewise.
493
7349ff92
JK
4942012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
495
496 Implement multi-component --with-auto-load-dir.
497 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
498 entries.
499 (--with-auto-load-safe-path): Update the default value description.
500 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
501 New.
502 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
503 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
504 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
505 (_initialize_auto_load): Initialize also auto_load_dir. Install new
506 "set auto-load scripts-directory".
507 * config.in: Regenerate.
508 * configure: Regenerate.
509 * configure.ac (--with-auto-load-dir): New configure option.
510 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
511
6dea1fbd
JK
5122012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
513
514 Provide $ddir substitution for --with-auto-load-safe-path.
515 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
516 entries.
517 * auto-load.c: Include observer.h.
518 (auto_load_safe_path_vec_update): Call substitute_path_component for
519 each component. New variable ddir_subst.
520 (auto_load_gdb_datadir_changed): New function.
521 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
522 AUTO_LOAD_SAFE_PATH. New comment.
523 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
524 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
525 * config.in: Regenerate.
526 * configure: Regenerate.
527 * configure.ac (--auto-load-safe-path): Rename
528 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
529 GDB_DATADIR/auto-load.
530 * defs.h (substitute_path_component): New declaration.
531 * top.c: Include observer.h.
532 (set_gdb_datadir): New function.
533 (init_main): Install it for "set data-directory".
534 * utils.c (substitute_path_component): New function.
535
b09aca3a
JK
5362012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
537
538 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
539 * auto-load.c (auto_load_objfile_script): Remove check for NULL
540 DEBUG_FILE_DIRECTORY. Handle multiple components of
541 DEBUG_FILE_DIRECTORY.
542
95554aad
TT
5432012-05-10 Tom Tromey <tromey@redhat.com>
544
545 * dwarf2read.c (recursively_write_psymbols): New function.
546 (write_psymtabs_to_index): Use it.
547
548 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
549 field.
550 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
551 (load_partial_comp_unit): Update.
552 (queue_comp_unit): Add argument 'pretend_language'.
553 (process_queue): Update.
554 (psymtab_to_symtab_1): Skip dependencies that have a user.
555 (load_partial_comp_unit_reader): Give meaning to the 'data'
556 argument.
557 (load_full_comp_unit): Add 'pretend_language' argument.
558 (process_full_comp_unit): Add 'pretend_language' argument. Set
559 language on CU.
560 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
561 Update.
562 (maybe_queue_comp_unit): Add 'pretend_language' argument.
563 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
564 Update.
565 (prepare_one_comp_unit): Add 'pretend_language' argument.
566
567 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
568 (struct dwarf2_per_objfile) <just_read_cus>: New field.
569 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
570 (dw2_do_instantiate_symtab): Check whether symtab was read in
571 before queueing.
572 (dw2_instantiate_symtab): Add assertion. Call
573 process_cu_includes.
574 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
575 (partial_symtab_p): New typedef.
576 (set_partial_user): New function.
577 (dwarf2_build_psymtabs_hard): Use set_partial_user.
578 (scan_partial_symbols): Add imported CU to imported_symtabs.
579 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
580 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
581 (get_symtab, recursively_compute_inclusions)
582 (compute_symtab_includes, process_cu_includes)
583 (process_imported_unit_die): New functions.
584 (process_die) <DW_TAG_imported_unit>: New case.
585 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
586
587 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
588 comment.
589 (struct partial_die_info) <locdesc>: Remove.
590 <d>: New field.
591 (process_psymtab_comp_unit): Add 'read_partial' argument.
592 Update.
593 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
594 (scan_partial_symbols): Handle DW_TAG_imported_unit.
595 (add_partial_symbol): Update.
596 (process_die): Handle DW_TAG_partial_unit.
597 (read_file_scope): Update comment.
598 (load_partial_dies): Handle DW_TAG_imported_unit.
599 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
600 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
601
e871fbb9
TT
6022012-05-10 Tom Tromey <tromey@redhat.com>
603
604 * cc-with-dwz.sh: New file.
605
b5b04b5b
TT
6062012-05-10 Tom Tromey <tromey@redhat.com>
607
608 * symtab.h (struct symtab) <includes, user>: New fields.
609 * block.h (struct block_iterator) <d, idx, which>: New fields.
610 * block.c (initialize_block_iterator, find_iterator_symtab)
611 (block_iterator_step, block_iter_name_step)
612 (block_iter_match_step): New functions.
613 (block_iterator_first, block_iterator_next)
614 (block_iter_name_first, block_iter_name_next)
615 (block_iter_match_first, block_iter_match_next): Rewrite.
616 (get_block_symtab): New function.
617
84a146c9
TT
6182012-05-10 Tom Tromey <tromey@redhat.com>
619
620 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
621 set_block_symtab.
622 * jit.c (finalize_symtab): Use allocate_global_block,
623 set_block_symtab.
624 * buildsym.c (finish_block_internal): New function, from old
625 finish_block.
626 (finish_block): Rewrite.
627 (end_symtab): Use finish_block_internal, set_block_symtab.
628 * block.h (struct global_block): New.
629 (allocate_global_block, set_block_symtab): Declare.
630 * block.c (allocate_global_block, set_block_symtab): New
631 functions.
632
9439a077
TT
6332012-05-10 Tom Tromey <tromey@redhat.com>
634
635 * psymtab.c (partial_map_expand_apply): Add assertion.
636 (partial_map_symtabs_matching_filename): Skip included psymtabs.
637 (psymtab_to_symtab): Find unshared psymtab.
638 (dump_psymtab): Print including psymtabs.
639 (recursively_search_psymtabs): New function.
640 (expand_symtabs_matching_via_partial): Use it.
641 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
642 fields.
643 (enum psymtab_search_status): New.
644
8157b174
TT
6452012-05-10 Tom Tromey <tromey@redhat.com>
646
647 * tracepoint.c (scope_info): Update.
648 * symtab.c (lookup_block_symbol, iterate_over_symbols)
649 (find_pc_sect_symtab, search_symbols)
650 (default_make_symbol_completion_list_break_on)
651 (make_file_symbol_completion_list): Update.
652 * symmisc.c (dump_symtab_1): Update.
653 * stack.c (print_frame_args, iterate_over_block_locals)
654 (print_frame_labels, iterate_over_block_arg_vars): Update.
655 * python/py-block.c (block_object) <dict>: Remove.
656 <block>: New field.
657 <iter>: Change type.
658 (blpy_iter): Update.
659 (blpy_block_syms_iternext): Update.
660 * psymtab.c (map_block): Use block iterators.
661 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
662 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
663 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
664 * infrun.c (check_exception_resume): Update.
665 * cp-support.c (make_symbol_overload_list_block): Update.
666 * coffread.c (patch_opaque_types): Update.
667 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
668 * block.h (struct block_iterator): New.
669 (block_iterator_first, block_iterator_next, block_iter_name_first)
670 (block_iter_name_next, block_iter_match_first)
671 (block_iter_match_next): Declare.
672 (ALL_BLOCK_SYMBOLS): Redefine.
673 * block.c (block_iterator_first, block_iterator_next)
674 (block_iter_name_first, block_iter_name_next)
675 (block_iter_match_first, block_iter_match_next): New functions.
676 * ada-lang.c (ada_add_block_symbols)
677 (ada_make_symbol_completion_list): Use block iterator.
678
a2ca7a52
TT
6792012-05-10 Tom Tromey <tromey@redhat.com>
680
681 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
682 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
683 (lookup_partial_symbol, find_last_source_symtab_from_partial)
684 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
685 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
686 Update.
687
64ea88dc
JB
6882012-05-10 Joel Brobecker <brobecker@adacore.com>
689
690 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
691 print-file-var-lib2.c, print-file-var-main.c and
692 print-file-var.exp (located in gdb/testsuite/gdb.base).
693
99a547d6
JB
6942012-05-10 Joel Brobecker <brobecker@adacore.com>
695
696 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
697 try locating the symbol in the symbol's own objfile first, before
698 extending the search to all objfiles.
699 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
700 out of lookup_symbol_aux_symtabs.
701 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
702 Replace extracted-out code by call to lookup_symbol_aux_objfile.
703 Do not search EXCLUDE_OBJFILE.
704 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
705 (lookup_symbol_global): Search for matches in the block's objfile
706 first, before searching all other objfiles.
707
0ece64fd
TG
7082012-05-10 Tristan Gingold <gingold@adacore.com>
709
710 * printcmd.c (set_command): Add pre/post inc/dec.
711
3d16a105
FCE
7122012-05-09 Frank Ch. Eigler <fche@redhat.com>
713
714 * gdb.1: Document -ex option.
715
2efbc0f7
JB
7162012-05-09 Joel Brobecker <brobecker@adacore.com>
717
718 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
719 * inferior.h (AT_SYMBOL): Delete.
720
2c76a0c7
JB
7212012-05-09 Joel Brobecker <brobecker@adacore.com>
722
723 * mips-tdep.c (mips_push_dummy_code): New function.
724 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
725 ON_STACK and install mips_push_dummy_code as our gdbarch
726 push_dummy_code routine.
727
9401a810
PA
7282012-05-09 Pedro Alves <palves@redhat.com>
729
730 * target.c (set_maintenance_target_async_permitted): Rename to ...
731 (set_target_async_command): ... this.
732 (show_maintenance_target_async_permitted): Rename to ...
733 (show_target_async_command): ... this.
734 (initialize_targets): Adjust.
735
3929b321
DE
7362012-05-08 Doug Evans <dje@google.com>
737
738 * go-exp.y (classify_name): Add missing assignment of fields of
739 yylval.ssym.
740
c41535fd
EZ
7412012-05-08 Eli Zaretskii <eliz@gnu.org>
742
743 Display the ">" prompt in interactive mode while reading canned
744 commands, even when the current interpreter is MI.
745
746 * interps.c (interp_set_temp): New function.
747
748 * interps.h (interp_set_temp): Add prototype.
749
750 * cli/cli-script.c (restore_interp): New cleanup function.
751 (read_command_lines): Temporarily override the current interpreter
752 with CLI and arrange for restoring the original one.
753
c0749c4d
JS
7542012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
755
756 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
757
d7333987
SDJ
7582012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
759
760 * probe.c (parse_probes): Move conditional to check for
761 debuginfo files from here...
762 * stap-probe.c (stap_get_probes): ... to here.
763
649e6d92
MK
7642012-05-07 Mark Kettenis <kettenis@gnu.org>
765 H.J. Lu <hongjiu.lu@intel.com>
766
767 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
768 `movl %esp, %ebp' for the X32 ABI.
769
f39c6ffd
TT
7702012-05-07 Tom Tromey <tromey@redhat.com>
771
772 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
773 get_DW_TAG_name.
774 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
775 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
776 (dwarf_stack_op_name): Remove.
777 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
778 (decode_locdesc): Use get_DW_OP_name.
779 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
780 (dwarf2_compile_expr_to_ax): Likewise.
781 (disassemble_dwarf_expression): Likewise.
782 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
783
1e1f6591
CLT
7842012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
785
786 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
787 (sh_linux_sigtramp_cache): New function.
788 (sh_linux_sigreturn_init): New function.
789 (sh_linux_rt_sigreturn_init): New function.
790 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
791 patterns.
792 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
793 syscall codes.
794 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
795 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
796 (sh_linux_init_abi): Add init calls to register new tramp_frame
797 definitions under 32-bit SH, update comments.
798
545c08b4
PA
7992012-05-07 Pedro Alves <palves@redhat.com>
800
daac165e
PA
801 PR gdb/10952
802
545c08b4
PA
803 * amd64-linux-tdep.c: Include glibc-tdep.h.
804 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
805 gdbarch_skip_solib_resolver callback.
806
af2c1515
JK
8072012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
808
809 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
810 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
811 (show_auto_load_safe_path): Check any-directory by comparison with "/".
812 (add_auto_load_safe_path): Change the error message.
813 (_initialize_auto_load): Change the "safe-path" help text.
814 * configure: Regenerate
815 * configure.ac (--without-auto-load-safe-path): Set
816 WITH_AUTO_LOAD_SAFE_PATH to /.
817
1067f998
SDJ
8182012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
819
820 * stap-probe.h: Do not include unecessary `probe.h'.
821
45dfa85a
AM
8222012-05-05 Alan Modra <amodra@gmail.com>
823
824 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
825 bfd_und_section_ptr.
826 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
827 and bfd_com_section_ptr.
828
cf093994
JB
8292012-05-04 Joel Brobecker <brobecker@adacore.com>
830
762ebb75 831 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 832
d40dc7a8
JB
8332012-05-04 Joel Brobecker <brobecker@adacore.com>
834
835 * windows-nat.h (segment_register_p_ftype): New typedef.
836 (windows_set_segment_register_p): Add declaration.
837 * windows-nat.c (segment_register_p): New static global.
838 (windows_set_segment_register_p): New function.
839 (do_windows_fetch_inferior_registers): Add special handling
840 for segment registers.
841 * amd64-windows-nat.c: #include "amd64-tdep.h".
842 (amd64_windows_segment_register_p): New function.
843 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
844 * i386-windows-nat.c: #include "i386-tdep.h".
845 (i386_windows_segment_register_p): New function.
846 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
847
52b3699b
TG
8482012-05-04 Tristan Gingold <gingold@adacore.com>
849
850 * printcmd.c (set_command): Emit a warning if the expression is not
851 an assignment.
852
94c74239
JB
8532012-05-03 Joel Brobecker <brobecker@adacore.com>
854
855 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
856 Make static.
857
fcf57f19
SDJ
8582012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
859
860 * stap-probe.c (stap_is_operator): Change declaration.
861 (stap_get_opcode): Change return value.
862 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
863 `stap_parse_argument_1'.
864
27d2932e
PA
8652012-05-03 Pedro Alves <pedro@codesourcery.com>
866
867 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
868 debug log.
869
a20ee7a4
SCR
8702012-05-03 Siva Chandra Reddy <sivachandra@google.com>
871
872 Add two new methods global_block and static_block to gdb.Symtab
873 objects.
874 * NEWS (Python scripting): Add entry about the new methods.
875 * python/py-symtab.c (stpy_global_block): New function which
876 implements the gdb.Symtab.global_block() method.
877 (stpy_static_block): New function which implements the
878 gdb.Symtab.static_block() method.
879 (symtab_object_methods): Add entries for the two new methods.
880
943cb756
DE
8812012-05-03 Doug Evans <dje@google.com>
882
883 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
884 files.
885
f4644a3f
YQ
8862012-05-03 Yao Qi <yao@codesourcery.com>
887
888 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
889 space.
890 (i386_process_record): Ditto.
891
ef61f180
JB
8922012-05-02 Joel Brobecker <brobecker@adacore.com>
893
894 * infcall.c (unwind_on_signal_p): Make static.
895
02f1df11
JB
8962012-05-02 Joel Brobecker <brobecker@adacore.com>
897
898 * sol-thread.c (solaris_pid_to_str): Make static.
899 (_initialize_sol_thread): Add prototype.
900
39023530
JB
9012012-05-02 Joel Brobecker <brobecker@adacore.com>
902
903 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
904
c6b0c501
CF
9052012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
906
907 * MAINTAINERS: Remove myself.
908
1ef71717
JK
9092012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
910
911 Fix --without-auto-load-safe-path for MS-Windows host platform.
912 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
913
b31b86a7
EZ
9142012-05-02 Eli Zaretskii <eliz@gnu.org>
915
916 * gdb_curses.h: Undefine KEY_EVENT before including curses
917 headers. Move "#undef MOUSE_MOVED" before any curses header
918 inclusion.
919
777532fc
SDJ
9202012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
921
922 * features/i386/i386-mmx-linux.c: Regenerate.
923 * features/rs6000/powerpc-32.c: Likewise.
924 * features/rs6000/powerpc-32l.c: Likewise.
925 * features/rs6000/powerpc-403.c: Likewise.
926 * features/rs6000/powerpc-403gc.c: Likewise.
927 * features/rs6000/powerpc-405.c: Likewise.
928 * features/rs6000/powerpc-505.c: Likewise.
929 * features/rs6000/powerpc-601.c: Likewise.
930 * features/rs6000/powerpc-602.c: Likewise.
931 * features/rs6000/powerpc-603.c: Likewise.
932 * features/rs6000/powerpc-604.c: Likewise.
933 * features/rs6000/powerpc-64.c: Likewise.
934 * features/rs6000/powerpc-64l.c: Likewise.
935 * features/rs6000/powerpc-750.c: Likewise.
936 * features/rs6000/powerpc-860.c: Likewise.
937 * features/rs6000/powerpc-e500.c: Likewise.
938 * features/rs6000/powerpc-e500l.c: Likewise.
939 * features/rs6000/powerpc-isa205-32l.c: Likewise.
940 * features/rs6000/powerpc-isa205-64l.c: Likewise.
941 * features/rs6000/rs6000.c: Likewise.
942
d71871bc
SDJ
9432012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
944
945 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
946 variable.
947 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
948 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
949 (stap_parse_argument) <e>: Likewise.
950 (handle_stap_probe) <byte_order>: Likewise.
951
fd820528
DE
9522012-04-30 Doug Evans <dje@google.com>
953
954 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
955 init_and_read_dies_worker. All callers updated.
956 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
957 replaced with init_cutu_and_read_dies.
958 (load_partial_comp_unit): Pass 1 for use_existing_cu.
959 (find_partial_die): Remove FIXME. Don't free current CU.
960
ec3f619d 9612012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
962
963 * contrib: New directory.
964 * contrib/test_pubnames_and_indexes.py: New file.
965
fceca515
DE
9662012-04-30 Doug Evans <dje@google.com>
967
968 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
969 All callers updated.
970 (init_cu_die_reader): Verify the section is non-empty.
971 (dwarf_decode_line_header): Don't dereference section->asection
972 until we know the section is present.
973
311fe7e1
SDJ
9742012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
975
976 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
977 probes.
978
5977971a
YQ
9792012-04-29 Yao Qi <yao@codesourcery.com>
980
981 * gdb-code-style.el: New hook gdb-markup-hook
982 and gdb-comment-hook.
983
dee91e82
DE
9842012-04-28 Doug Evans <dje@google.com>
985
3019eac3
DE
986 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
987 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
988 objfile->obfd.
989 * symfile.h (dwarf2_debug_sections): New member addr.
990 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
991 (ctx_no_get_addr_index): New function.
992 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
993 (ctx_no_get_addr_index): Declare.
994 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
995 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
996 (dwarf_expr_ctx_funcs): Update.
997 (needs_get_addr_index): New function.
998 (needs_frame_ctx_funcs): Update.
999 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1000 * dwarf2read.c: #include "gdbcore.h".
1001 (dwarf2_per_objfile): New members addr, dwo_files.
1002 (dwarf2_elf_names): Add entry for addr.
1003 (struct dwo_section_names): New type.
1004 (dwo_section_names): New static global.
1005 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1006 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1007 old debug_types_section member updated to use this.
1008 Rename member debug_types_section to info_or_types_section,
1009 all uses updated.
1010 (signatured_type): Rename member type_offset to type_offset_in_tu,
1011 all uses updated. New member type_offset_in_section.
1012 (struct dwo_sections): New type.
1013 (struct dwo_unit): New type.
1014 (struct dwo_file): New type.
1015 (die_reader_specs): New member dwo_file.
1016 (dwarf2_locate_sections): Watch for .debug_addr.
1017 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1018 (dwarf2_read_section): Get bfd of section from bfd's asection,
1019 instead of objfile.
1020 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1021 (create_signatured_type_table_from_index): Initialize
1022 sig_type->info_or_types_section.
1023 (dw2_get_file_names): Statement lists for type units with DWO files
1024 live in the DWO file.
1025 (create_debug_types_hash_table): New function.
1026 (create_all_type_units): Rewrite.
1027 (init_cu_die_reader): New arg dwo_file, all callers updated.
1028 (init_and_read_dies_worker): Get section from
1029 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1030 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1031 continue reading the CU/TU from there.
1032 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1033 updated. Get section from this_cu->info_or_types_section.
1034 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1035 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1036 DW_FORM_GNU_str_index.
1037 (hash_dwo_file, eq_dwo_file): New functions.
1038 (allocate_dwo_file_hash_table): New function.
1039 (hash_dwo_unit, eq_dwo_unit): New functions.
1040 (allocate_dwo_unit_table): New function.
1041 (dwarf2_locate_dwo_sections): New function.
1042 (struct create_dwo_info_table_data): New type.
1043 (create_debug_info_hash_table_reader): New function.
1044 (create_debug_info_hash_table): New function.
1045 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1046 (lookup_dwo_file): New function.
1047 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1048 (free_dwo_file, free_dwo_file_cleanup): New functions.
1049 (free_dwo_file_from_slot, free_dwo_files): New functions.
1050 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
1051 (dwarf2_record_block_ranges): Ditto.
1052 (read_partial_die): Ditto.
1053 (process_enumeration_scope): Update to use type_offset_in_section.
1054 (read_full_die_1): New function.
1055 (read_full_die): Rewrite.
1056 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
1057 DW_FORM_GNU_str_index.
1058 (read_addr_index_1, read_addr_index): New functions.
1059 (read_addr_index_from_leb128): New function.
1060 (struct dwarf2_read_addr_index_data): New type.
1061 (dwarf2_read_addr_index_reader): New function.
1062 (dwarf2_read_addr_index): New function.
1063 (read_str_index): New function.
1064 (leb128_size): New function.
1065 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
1066 If processing a type unit from a DWO file, get the line section
1067 from the DWO file.
1068 (var_decode_location): Watch for DW_OP_GNU_addr_index.
1069 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
1070 DW_FORM_GNU_str_index.
1071 (lookup_die_type): Check whether section offset of type's die is
1072 known before looking it up. Remove assert. Condition can
1073 legimately happen for inter-cu type references.
1074 (dwarf_attr_name): Handle Fission attributes.
1075 (dwarf_form_name): Handle Fission forms.
1076 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
1077 DW_FORM_GNU_str_index.
1078 (follow_die_sig): Update to use type_offset_in_section.
1079 (decode_locdesc): New case DW_OP_GNU_addr_index.
1080 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
1081 DW_FORM_GNU_str_index.
1082 (cu_debug_loc_section): New function.
1083 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
1084 (dwarf2_per_objfile_free): Unmap .debug_addr section.
1085 Free DWO files if present.
1086 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
1087
dee91e82
DE
1088 Refactor DIE reading.
1089 * dwarf2read.c (dwarf2_per_objfile): Replace members
1090 debug_info_type_hash and debug_types_type_hash with die_type_hash.
1091 (die_reader_specs): New member "die_section". Temporarily make
1092 member "buffer" non-const, pending constifying all info_ptr uses.
1093 (die_reader_func_ftype): New typedef.
1094 (dw2_get_file_names_reader): New function.
1095 (dw2_get_file_names): Rewrite.
1096 (read_and_check_type_unit_head): Rename arg type_offset to
1097 type_offset_in_tu.
1098 (create_all_type_units): Improve debugging message.
1099 Improve dummy type unit check.
1100 (init_cu_die_reader): New arg "section". All callers updated.
1101 (init_and_read_dies_worker): New function.
1102 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
1103 (init_cutu_and_read_dies_no_follow): New function.
1104 (init_cutu_and_read_dies_simple): New function.
1105 (process_psymtab_comp_unit_reader): New function.
1106 (process_psymtab_comp_unit): Delete args section,
1107 is_debug_types_section. Rewrite. All callers updated.
1108 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
1109 All callers updated. Rewrite.
1110 (load_partial_comp_unit_reader): New function.
1111 (load_partial_comp_unit): Rewrite.
1112 (skip_children): New arg reader. Delete args buffer, cu.
1113 All callers updated.
1114 (skip_one_die): New arg reader. Delete args buffer, cu.
1115 All callers updated.
1116 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
1117 All callers updated.
1118 (load_full_comp_unit_reader): New function.
1119 (load_full_comp_unit): Rewrite.
1120 (read_comp_unit): Delete.
1121 (read_die_and_children_1): Delete, contents moved ...
1122 (read_die_and_children): ... here.
1123 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
1124 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
1125 All callers updated.
1126 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
1127 All callers updated.
1128 (find_partial_die): Rewrite load_all_dies support.
1129 (read_attribute_value): New arg reader. Delete args abfd, cu.
1130 All callers updated.
1131 (read_attribute): New arg reader. Delete args abfd, cu.
1132 All callers updated.
1133 (load_full_type_unit): Add assert.
1134 (read_signatured_type_reader): New function.
1135 (read_signatured_type): Rewrite.
1136 (free_stack_comp_unit): Remove call to age_cached_comp_units.
1137 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
1138 All callers updated. Set per_cu->cu = NULL after freeing it.
1139 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
1140 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
1141 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
1142 (set_die_type): Update.
1143 (get_die_type_at_offset): Update.
1144 (read_file_scope): Call prepare_one_comp_unit.
1145 (read_type_unit_scope): Ditto.
1146 (prepare_one_comp_unit): Set producer if present.
1147
72d59e0d
SDJ
11482012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
1149
1150 * probe.c (compile_rx_or_error): Silence ARI warning about missing
1151 gettext function on `error'.
1152
0fefef59
DE
11532012-04-27 Doug Evans <dje@google.com>
1154
1155 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
1156 is empty.
1157
28106bc2
SDJ
11582012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1159 Tom Tromey <tromey@redhat.com>
1160
1161 * breakpoint.c (struct breakpoint_objfile_data)
1162 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
1163 <exception_probes>: New fields.
1164 (free_breakpoint_probes): New function.
1165 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
1166 `_Unwind_DebugHook'.
1167 (create_exception_master_breakpoint): Likewise.
1168 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
1169 * infrun.c: Including necessary header files for handling SystemTap
1170 probes.
1171 (handle_inferior_event): Handling longjmp breakpoint and exceptions
1172 via SystemTap probes.
1173 (check_exception_resume): Remove `func' argument. Handle exception
1174 unwinding breakpoint set via a SystemTap probe.
1175 (insert_exception_resume_from_probe): New function.
1176
55aa24fb
SDJ
11772012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1178 Tom Tromey <tromey@redhat.com>
1179 Jan Kratochvil <jan.kratochvil@redhat.com>
1180
1181 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
1182 (COMMON_OBS): Likewise.
1183 (HFILES_NO_SRCDIR): Add `probe'.
1184 * NEWS: Mention support for static and SystemTap probes.
1185 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
1186 SystemTap probes' arguments parser.
1187 * arm-linux-tdep.c: Including headers needed to perform the parsing
1188 of SystemTap probes' arguments.
1189 (arm_stap_is_single_operand): New function.
1190 (arm_stap_parse_special_token): Likewise.
1191 (arm_linux_init_abi): Initializing proper fields used by SystemTap
1192 probes' arguments parser.
1193 * ax-gdb.c (require_rvalue): Removing static declaration.
1194 (gen_expr): Likewise.
1195 * ax-gdb.h (gen_expr): Declaring function.
1196 (require_rvalue): Likewise.
1197 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
1198 (bkpt_probe_breakpoint_ops): New variable.
1199 (momentary_breakpoint_from_master): Set the `probe' value.
1200 (add_location_to_breakpoint): Likewise.
1201 (break_command_1): Using proper breakpoint_ops according to the
1202 argument passed by the user in the command line.
1203 (bkpt_probe_insert_location): New function.
1204 (bkpt_probe_remove_location): Likewise.
1205 (bkpt_probe_create_sals_from_address): Likewise.
1206 (bkpt_probe_decode_linespec): Likewise.
1207 (tracepoint_probe_create_sals_from_address): Likewise.
1208 (tracepoint_probe_decode_linespec): Likewise.
1209 (tracepoint_probe_breakpoint_ops): New variable.
1210 (trace_command): Using proper breakpoint_ops according to the
1211 argument passed by the user in the command line.
1212 (initialize_breakpoint_ops): Initializing breakpoint_ops for
1213 static probes on breakpoints and tracepoints.
1214 * breakpoint.h (struct bp_location) <probe>: New field.
1215 * cli-utils.c (skip_spaces_const): New function.
1216 (extract_arg): Likewise.
1217 * cli-utils.h (skip_spaces_const): Likewise.
1218 (extract_arg): Likewise.
1219 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
1220 * configure.ac: Append `stap-probe.o' to be generated when ELF
1221 support is present.
1222 * configure: Regenerate.
1223 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
1224 * elfread.c: Include `probe.h' and `arch-utils.h'.
1225 (probe_key): New variable.
1226 (elf_get_probes): New function.
1227 (elf_get_probe_argument_count): Likewise.
1228 (elf_evaluate_probe_argument): Likewise.
1229 (elf_compile_to_ax): Likewise.
1230 (elf_symfile_relocate_probe): Likewise.
1231 (stap_probe_key_free): Likewise.
1232 (elf_probe_fns): New variable.
1233 (elf_sym_fns): Add `sym_probe_fns' value.
1234 (elf_sym_fns_lazy_psyms): Likewise.
1235 (elf_sym_fns_gdb_index): Likewise.
1236 (_initialize_elfread): Initialize objfile cache for static
1237 probes.
1238 * gdb_vecs.h (struct probe): New forward declaration.
1239 (probe_p): New VEC declaration.
1240 * gdbarch.c: Regenerate.
1241 * gdbarch.h: Regenerate.
1242 * gdbarch.sh (stap_integer_prefix): New variable.
1243 (stap_integer_suffix): Likewise.
1244 (stap_register_prefix): Likewise.
1245 (stap_register_suffix): Likewise.
1246 (stap_register_indirection_prefix): Likewise.
1247 (stap_register_indirection_suffix): Likewise.
1248 (stap_gdb_register_prefix): Likewise.
1249 (stap_gdb_register_suffix): Likewise.
1250 (stap_is_single_operand): New function.
1251 (stap_parse_special_token): Likewise.
1252 (struct stap_parse_info): Forward declaration.
1253 * i386-tdep.c: Including headers needed to perform the parsing
1254 of SystemTap probes' arguments.
1255 (i386_stap_is_single_operand): New function.
1256 (i386_stap_parse_special_token): Likewise.
1257 (i386_elf_init_abi): Initializing proper fields used by SystemTap
1258 probes' arguments parser.
1259 * i386-tdep.h (i386_stap_is_single_operand): New function.
1260 (i386_stap_parse_special_token): Likewise.
1261 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
1262 * mipsread.c (ecoff_sym_fns): Likewise.
1263 * objfiles.c (objfile_relocate1): Support relocation for static
1264 probes.
1265 * parse.c (prefixify_expression): Remove static declaration.
1266 (initialize_expout): Likewise.
1267 (reallocate_expout): Likewise.
1268 * parser-defs.h (initialize_expout): Declare function.
1269 (reallocate_expout): Likewise.
1270 (prefixify_expression): Likewise.
1271 * ppc-linux-tdep.c: Including headers needed to perform the parsing
1272 of SystemTap probes' arguments.
1273 (ppc_stap_is_single_operand): New function.
1274 (ppc_stap_parse_special_token): Likewise.
1275 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
1276 probes' arguments parser.
1277 * probe.c: New file, for generic statically defined probe support.
1278 * probe.h: Likewise.
1279 * s390-tdep.c: Including headers needed to perform the parsing of
1280 SystemTap probes' arguments.
1281 (s390_stap_is_single_operand): New function.
1282 (s390_gdbarch_init): Initializing proper fields used by SystemTap
1283 probes' arguments parser.
1284 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
1285 * stap-probe.c: New file, for SystemTap probe support.
1286 * stap-probe.h: Likewise.
1287 * symfile.h: Include `gdb_vecs.h'.
1288 (struct sym_probe_fns): New struct.
1289 (struct sym_fns) <sym_probe_fns>: New field.
1290 * symtab.c (init_sal): Initialize `probe' field.
1291 * symtab.h (struct probe): Forward declaration.
1292 (struct symtab_and_line) <probe>: New field.
1293 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
1294 locations.
1295 (stop_tracing): Likewise.
1296 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
1297
22d2b532
SDJ
12982012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1299 Tom Tromey <tromey@redhat.com>
1300
1301 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
1302 and to compile agent expressions.
1303 * infrun.c (siginfo_make_value): New argument `ignore'.
1304 (siginfo_funcs): New struct.
1305 (_initialize_infrun): New argument when calling
1306 `create_internalvar_type_lazy'.
1307 * thread.c (thread_id_make_value): New argument `ignore'.
1308 (thread_funcs): New struct.
1309 (_initialize_thread): New argument when calling
1310 `create_internalvar_type_lazy'.
1311 * tracepoint.c (sdata_make_value): New argument `ignore'.
1312 (sdata_funcs): New struct.
1313 (_initialize_tracepoint): New argument when calling
1314 `create_internalvar_type_lazy'.
1315 * value.c (make_value): New struct.
1316 (create_internalvar_type_lazy): New argument `data'.
1317 (compile_internalvar_to_ax): New function.
1318 (value_of_internalvar): Properly handling `make_value' case.
1319 (clear_internalvar): Likewise.
1320 (show_convenience): Adding `TRY_CATCH' block.
1321 * value.h (internalvar_make_value): Delete, replace by...
1322 (struct internalvar_funcs): ... this.
1323 (create_internalvar_type_lazy) <fun>: Delete argument.
1324 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
1325 (compile_internalvar_to_ax): New function.
1326 * windows-tdep.c (tlb_make_value): New argument `ignore'.
1327 (tlb_funcs): New struct.
1328 (_initialize_windows_tdep): New argument when calling
1329 `create_internalvar_type_lazy'.
1330
91da1414
MW
13312012-04-27 Mark Wielaard <mjw@redhat.com>
1332
1333 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
1334 see whether it is an address or a constant offset from DW_AT_low_pc.
1335 (dwarf2_record_block_ranges): Likewise.
1336 (read_partial_die): Likewise.
1337
4ab9d8ec
MW
13382012-04-26 Mark Wielaard <mjw@redhat.com>
1339
1340 * MAINTAINERS (Write After Approval): Add myself to the list.
1341
a0911fd0
MR
13422012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1343
1344 * proc-utils.h (proc_prettyprint_signalset): New prototype.
1345 (proc_prettyprint_signal): Likewise.
1346 (proc_prettyprint_faultset): Likewise.
1347 (proc_prettyprint_fault): Likewise.
1348 (proc_prettyprint_actionset): Likewise.
1349 (proc_prettyprint_flags): Move to new proc-flags.c section.
1350 (proc_prettyfprint_flags): New prototype.
1351 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
1352 (proc_syscall, proc_cursig): Likewise.
1353 (proc_set_kill_on_last_close): Likewise.
1354 (proc_unset_kill_on_last_close): Likewise.
1355 (proc_set_watchpoint): Make static.
1356 (proc_delete_dead_threads): Likewise.
1357 (procfs_set_watchpoint): Likewise.
1358 (_initialize_procfs): Add prototype.
1359 * proc-events.c: Include proc-utils.h.
1360 (init_syscall_table): Make static.
1361 * proc-api.c (_initialize_proc_api): Add prototype.
1362 * proc-flags.c: Include proc-utils.h.
1363
9009e1ae
MR
13642012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
1365
1366 * configure.ac: Add AC_ARG_PROGRAM.
1367 * configure: Regenerate.
1368
4fae6e18
JK
13692012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1370
1371 Fix DW_AT_lower_bound defaults for DWARF-4+.
1372 * dwarf2read.c (read_subrange_type): Remove initialization of low and
1373 high. New variable low_default_is_valid. Implement DWARF-4+
1374 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
1375 no default by the DWARF standard.
1376
14132e89
MR
13772012-04-26 Maciej W. Rozycki <macro@mips.com>
1378 Maciej W. Rozycki <macro@codesourcery.com>
1379
1380 * infrun.c (handle_inferior_event): Move the check for return
1381 trampolines ahead of the check for function trampolines.
1382 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
1383 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
1384 (mips_str_mips16_ret_stub): Likewise.
1385 (mips_str_call_fp_stub): Likewise.
1386 (mips_str_call_stub): Likewise.
1387 (mips_str_fn_stub): Likewise.
1388 (mips_str_pic): Likewise.
1389 (mips_in_frame_stub): New function.
1390 (mips_unwind_pc): Return the return address rather than the PC
1391 if the PC of an intermediate frame is inside a call thunk.
1392 (mips_is_stub_suffix): New function.
1393 (mips_is_stub_mode): Likewise.
1394 (mips_get_mips16_fn_stub_pc): Likewise.
1395 (mips_skip_mips16_trampoline_code): Update to handle all the
1396 currently generated stub types. Don't recurse into __fn_stub
1397 thunks. Remove heuristics to handle stubs beyond etext/_etext.
1398 Use cooked register accesses.
1399 (mips_in_return_stub): Reintroduce function.
1400 (mips_skip_trampoline_code): Traverse trampolines recursively.
1401 (mips_gdbarch_init): Handle MIPS16 return trampolines.
1402
518f0db5 14032012-04-26 Joel Brobecker <brobecker@adacore.com>
1404
1405 GDB 7.4.1 released.
1406
3184d3f9
JL
14072012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
1408
1409 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
1410 * features/arm-with-m-vfp-d16.xml: New file. Describes
1411 Cortex-M with VFPv4-sp-d16 FPU register layout.
1412 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
1413 * features/arm-with-m-vfp-d16.c: New. Generated from above.
1414 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
1415 (arm-register_g_packet_guesses): Add vfp-d16 guess.
1416 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
1417
b6201d44
DE
14182012-04-25 Doug Evans <dje@google.com>
1419
1420 * cli/cli-decode.c (print_doc_line): Use stream instead of
1421 current_uiout.
1422
4e2f8df6
SDJ
14232012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
1424
1425 * features/arm-with-iwmmxt.c: Regenerate.
1426 * features/arm-with-m-fpa-layout.c: Likewise.
1427 * features/arm-with-m.c: Likewise.
1428 * features/arm-with-neon.c: Likewise.
1429 * features/arm-with-vfpv2.c: Likewise.
1430 * features/arm-with-vfpv3.c: Likewise.
1431 * features/mips-dsp-linux.c: Likewise.
1432 * features/mips-linux.c: Likewise.
1433 * features/mips64-dsp-linux.c: Likewise.
1434 * features/mips64-linux.c: Likewise.
1435 * features/s390-linux32.c: Likewise.
1436 * features/s390-linux32v1.c: Likewise.
1437 * features/s390-linux32v2.c: Likewise.
1438 * features/s390-linux64.c: Likewise.
1439 * features/s390-linux64v1.c: Likewise.
1440 * features/s390-linux64v2.c: Likewise.
1441 * features/s390x-linux64.c: Likewise.
1442 * features/s390x-linux64v1.c: Likewise.
1443 * features/s390x-linux64v2.c: Likewise.
1444 * features/tic6x-c62x-linux.c: Likewise.
1445 * features/tic6x-c62x.c: Likewise.
1446 * features/tic6x-c64x-linux.c: Likewise.
1447 * features/tic6x-c64x.c: Likewise.
1448 * features/tic6x-c64xp-linux.c: Likewise.
1449 * features/tic6x-c64xp.c: Likewise.
1450 * target-descriptions.c: Only generate `field_type' and `type'
1451 variables when needed.
1452
2def3e66
JB
14532012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
1454
1455 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
1456
a766d390
DE
14572012-04-25 Doug Evans <dje@google.com>
1458
1459 Initial pass at Go language support.
1460 * NEWS: Mention Go.
1461 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
1462 go-valprint.c.
1463 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
1464 (YYFILES): Add go-exp.c.
1465 (YYOBJ): Add go-exp.o.
1466 (local-maintainer-clean): Delete go-exp.c.
1467 * defs.h (enum language): Add language_go.
1468 * dwarf2read.c: #include "go-lang.h".
1469 (fixup_go_packaging): New function.
1470 (process_full_comp_unit): Call it when processing Go CUs.
1471 (dwarf2_physname): Add Go support.
1472 (read_file_scope): Handle missing language spec for GNU Go.
1473 (set_cu_language): Handle DW_LANG_Go.
1474 * go-exp.y: New file.
1475 * go-lang.h: New file.
1476 * go-lang.c: New file.
1477 * go-typeprint.c: New file.
1478 * go-valprint.c: New file.
1479 * symtab.c: #include "go-lang.h".
1480 (symbol_set_language): Handle language_go.
1481 (symbol_find_demangled_name, symbol_set_names): Ditto.
1482 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
1483
4e2af517
JM
14842012-04-24 Jim Meyering <meyering@redhat.com>
1485
1486 avoid a few strncpy-induced buffer overruns
1487 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
1488 fname and psargs before trying to concatenate.
1489 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
1490 "name" before applying strchr.
1491
b77b7f52
SCR
14922012-04-25 Siva Chandra Reddy <sivachandra@google.com>
1493
1494 * CONTRIBUTE: Use unified diff instead of context diff when
1495 generating patches.
1496
6321c22a
MR
14972012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1498
1499 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
1500 code. Handle JR.HB correctly.
1501
742c84f6
MR
15022012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
1503
1504 * mips-tdep.c
1505 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
1506 with the other MIPS16 helpers.
1507
7fc7e0c3
SDJ
15082012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
1509
1510 * observer.sh: Conditionally declare `args', thus cleaning up
1511 unused instances of this variable.
1512
20388dd6
YQ
15132012-04-24 Yao Qi <yao@codesourcery.com>
1514
1515 Revert this patch to allow breakpoint always-inserted
1516 in record target.
1517 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1518 * breakpoint.c: Include record.h.
1519 (breakpoints_always_inserted_mode): Return false when the record
1520 target is in use.
1521
1522 * breakpoint.c (iterate_over_bp_locations): New.
1523 * breakpoint.h: Declare.
1524 New typedef walk_bp_location_callback.
1525 * record.c (record_open): Call record_init_record_breakpoints.
1526 (record_sync_record_breakpoints): New.
1527 (record_init_record_breakpoints): New.
1528 * NEWS: Mention supporting breakpoint always-inserted mode in
1529 record target.
1530
4734f50e
MK
15312012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
1532
1533 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
1534 any thread.
1535
c326b90e
YQ
15362012-04-24 Yao Qi <yao@codesourcery.com>
1537
1538 * breakpoint.c (ep_is_catchpoint): Renamed to ...
1539 (is_catchpoint): ... it.
1540 (print_one_breakpoint_location): Caller update.
1541 * breakpoint.h: Update declaration.
1542
d8fb5a1e
DM
15432012-04-23 David S. Miller <davem@davemloft.net>
1544
1545 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
1546
34431a2a
TT
15472012-04-23 Tom Tromey <tromey@redhat.com>
1548
1549 * buildsym.c (add_free_pendings): Remove.
1550 * buildsym.h (add_free_pendings): Remove.
1551
4568ecf9
DE
15522012-04-23 Doug Evans <dje@google.com>
1553
1554 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
1555 attr.u.unsnd instead of attr.u.addr.
1556 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
1557 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
1558 DW_FORM_ref_udata.
1559 (dump_die_shallow): Update cases DW_FORM_ref_addr,
1560 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
1561 DW_FORM_ref_udata.
1562 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
1563
dca9aa3a
MR
15642012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
1565
1566 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
1567 (mips_o32_return_value): Likewise.
1568 (mips_o64_return_value): Likewise.
1569
c8ea1972
PH
15702012-04-21 Paul Hilfinger <hilfinger@adacore.com>
1571
1572 * ada-lang.c (ada_evaluate_subexp): Add cases for
1573 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
1574 their treatment in eval.c.
1575
8d1b3521
DM
15762012-04-21 David S. Miller <davem@davemloft.net>
1577
1578 * sparc-tdep.c (X_DISP10): Define.
1579 (sparc_analyze_control_transfer): Handle compare-and-branch.
1580
03145bf4
JL
15812012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
1582
1583 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
1584 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
1585
004159a2
MR
15862012-04-20 Nigel Stephens <nigel@mips.com>
1587 Maciej W. Rozycki <macro@codesourcery.com>
1588
1589 * mips-tdep.c (mips_float_register_p): New function.
1590 (mips_convert_register_float_case_p): Use mips_float_register_p.
1591 (mips_register_type): Likewise.
1592 (mips_print_register): Likewise.
1593 (print_gp_register_row): Likewise.
1594 (mips_print_registers_info): Likewise.
1595
7f0e6aae
MR
15962012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
1597
1598 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
1599 of mips16 symbols.
1600
bc17beea
AP
16012012-04-20 Andrew Pinski <apinski@cavium.com>
1602
1603 * MAINTAINERS (Write After Approval): Add myself to the list.
1604
1730a5a5
SDJ
16052012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1606
1607 * MAINTAINERS: Update my e-mail address.
1608
38ea300a
PA
16092012-04-20 Pedro Alves <palves@redhat.com>
1610
1611 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
1612 $srcdir.
1613 * configure: Regenerate.
1614
111dfaae
SDJ
16152012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
1616
1617 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
1618 declaration.
1619 * gdb_vecs.h: Declare `const_char_ptr' VEC.
1620
4fb2c64a
JK
16212012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1622
1623 Fix compilation compatibility with python-2.4
1624 * python/py-type.c (convert_field): Cast ADDRSTRING for
1625 PyObject_SetAttrString as non-const. New comment.
1626
6328eb38
TT
16272012-04-19 Tom Tromey <tromey@redhat.com>
1628
1629 * top.c (quit_target): Use all_cleanups.
1630 * main.c (captured_command_loop): Use all_cleanups.
1631 * exceptions.c (throw_exception): Use all_cleanups.
1632
c971b7fa
PA
16332012-04-19 Pedro Alves <palves@redhat.com>
1634
1635 * Makefile.in (GNULIB_BUILDDIR): New.
1636 (LIBGNU, INCGNU, GNULIB_H): Adjust.
1637 (SUBDIRS): Add $(GNULIB_BUILDDIR).
1638 (CLEANDIRS). Remove gnulib/import.
1639 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
1640 (all-lib): Ditto.
1641 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
1642 (gnulib/import/Makefile): Replace gnulib/import with
1643 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
1644 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
1645 (aclocal_m4_deps): Remove the gnulib dependencies. Add
1646 acx_configure_dir.m4.
1647 * acinclude.m4: Include acx_configure_dir.m4.
1648 * acx_configure_dir.m4: New file.
1649 * aclocal.m4: Regenerate.
a09130f9
PA
1650 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
1651 calls. Configure gnulib using ACX_CONFIGURE_DIR.
1652 (GNULIB): New variable.
1653 (GNULIB_STDINT_H): Adjust.
1654 (AC_OUTPUT): Don't output gnulib/Makefile.
1655 * gdb/defs.h: Include build-gnulib/config.h.
1656 * aclocal.m4: Regenerate.
1657 * config.in: Regenerate.
1658 * configure: Regenerate.
1659
1660 * gnulib/Makefile.in: New file.
1661 * gnulib/configure.ac: New file.
1662 * gnulib/aclocal.m4: New file.
1663 * gnulib/config.in: New file.
1664 * gnulib/configure: New file.
c971b7fa
PA
1665 * gnulib/: Re-run gnulib-tool to adjust.
1666
b10faa68
DE
16672012-04-19 Doug Evans <dje@google.com>
1668
1669 * cleanups.h (struct cleanup): Move to cleanups.c.
1670 (make_cleanup_dtor_ftype): New typedef.
1671 (make_cleanup_dtor): Use it.
1672 (ALL_CLEANUPS): Replace with ...
1673 (all_cleanups): ... this. Declare. All uses updated.
1674 * cleanups.c: #include "gdb_assert.h".
1675 (sentinel_cleanup): New static global.
1676 (SENTINEL_CLEANUP): Define.
1677 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
1678 (make_my_cleanup2): Assert result is non-NULL.
1679 (all_cleanups): New function.
1680 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
1681 of NULL.
1682
d8c267cc
PA
16832012-04-19 Pedro Alves <palves@redhat.com>
1684
1685 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
1686 Adjust paths to gnulib imported files.
1687
809277f8
PA
16882012-04-19 Pedro Alves <palves@redhat.com>
1689
1690 * gnulib/: Move whole directory ...
1691 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
1692 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
1693 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
1694 (aclocal_m4_deps): Adjust.
1695 * aclocal.m4: Regenerate.
1696 * configure: Regenerate.
1697 * configure.ac: Adjust AC_OUTPUT output.
1698
aad9eab9
YQ
16992012-04-19 Yao Qi <yao@codesourcery.com>
1700
1701 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
1702 (vec.o): New rule.
1703 * vec.c: Move it ...
1704 * common/vec.c: ... here.
1705 * vec.h: Move it ...
1706 * common/vec.h: ... here.
1707
48fe4669
YQ
17082012-04-19 Yao Qi <yao@codesourcery.com>
1709
1710 * gdb-code-style.el: New.
1711
770d76d7
PA
17122012-04-18 Pedro Alves <palves@redhat.com>
1713
1714 Update gnulib from latest git.
1715 (639ea5ae15e39fe48d43e04864b2997301e4b969)
1716
1717 * gnulib/Makefile.am: Update.
1718 * gnulib/dummy.c: Update.
1719 * gnulib/extra/arg-nonnull.h: Update.
1720 * gnulib/extra/c++defs.h: Update.
1721 * gnulib/extra/update-copyright: Update.
1722 * gnulib/extra/warn-on-use.h: Update.
1723 * gnulib/inttypes.in.h: Update.
1724 * gnulib/m4/00gnulib.m4: Update.
1725 * gnulib/m4/extensions.m4: Update.
1726 * gnulib/m4/gnulib-cache.m4: Update.
1727 * gnulib/m4/gnulib-common.m4: Update.
1728 * gnulib/m4/gnulib-comp.m4: Update.
1729 * gnulib/m4/gnulib-tool.m4: Update.
1730 * gnulib/m4/include_next.m4: Update.
1731 * gnulib/m4/inttypes-pri.m4: Update.
1732 * gnulib/m4/inttypes.m4: Update.
1733 * gnulib/m4/longlong.m4: Update.
1734 * gnulib/m4/memchr.m4: Update.
1735 * gnulib/m4/memmem.m4: Update.
1736 * gnulib/m4/mmap-anon.m4: Update.
1737 * gnulib/m4/multiarch.m4: Update.
1738 * gnulib/m4/onceonly.m4: Update.
1739 * gnulib/m4/stddef_h.m4: Update.
1740 * gnulib/m4/stdint.m4: Update.
1741 * gnulib/m4/string_h.m4: Update.
1742 * gnulib/m4/warn-on-use.m4: Update.
1743 * gnulib/m4/wchar_h.m4: Update.
1744 * gnulib/m4/wchar_t.m4: Update.
1745 * gnulib/m4/wint_t.m4: Update.
1746 * gnulib/memchr.c: Update.
1747 * gnulib/memmem.c: Update.
1748 * gnulib/stddef.in.h: Update.
1749 * gnulib/stdint.in.h: Update.
1750 * gnulib/str-two-way.h: Update.
1751 * gnulib/string.in.h: Update.
1752 * gnulib/wchar.in.h: Update.
1753
1754 * gnulib/extra/arg-nonnull.h: Delete.
1755 * gnulib/extra/c++defs.h: Delete.
1756 * gnulib/extra/warn-on-use.h: Delete.
1757 * gnulib/m4/wchar_h.m4: Delete.
1758 * gnulib/m4/wint_t.m4: Delete.
1759 * gnulib/wchar.in.h: Delete.
1760
1761 * gnulib/extra/snippets/arg-nonnull.h: New.
1762 * gnulib/extra/snippets/c++defs.h: New.
1763 * gnulib/extra/snippets/warn-on-use.h: New.
1764
1765 * aclocal.m4: Regenerate.
1766 * config.in: Regenerate.
1767 * configure: Regenerate.
1768 * gnulib/Makefile.in: Regenerate.
1769
174e088e
PA
17702012-04-18 Pedro Alves <palves@redhat.com>
1771
1772 Reimport the update-copyright module from gnulib
1773 (250b80067c1e1d8faa0c42fb572f721975b929c5).
1774
1775 * configure: Regenerate.
1776 * gnulib/Makefile.am: Update.
1777 * gnulib/Makefile.in: Regenerate.
1778 * gnulib/extra/update-copyright: Update.
1779 * gnulib/m4/gnulib-cache.m4: Update.
1780 * gnulib/m4/gnulib-comp.m4: Update.
1781
7f533142
JB
17822012-04-18 Tristan Gingold <gingold@adacore.com>
1783
1784 * configure.ac (aix): Put -lpthread into libs.
1785 * configure: Regenerate.
1786
001822aa
TT
17872012-04-18 Tom Tromey <tromey@redhat.com>
1788
1789 * linespec.c (convert_linespec_to_sals): Don't use
1790 SYMBOL_OBJ_SECTION.
1791 (compare_msymbols): Arguments are minsym_and_objfile, not
1792 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
1793
db026a31
PA
17942012-04-18 Pedro Alves <palves@redhat.com>
1795
1796 Revert gnulib/ part of:
1797 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1798 Copyright year update in most files (performed by copyright.sh).
1799
12df843f
JK
18002012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1801
1802 Fix 64-bit constants on 32-bit hosts.
1803 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
1804 from unsigned long to ULONGEST.
1805 (read_signed_leb128): Change declaration return type from long to
1806 LONGEST.
1807 (dwarf2_const_value_attr): Change declaration parameter value from long
1808 to LONGEST.
1809 (dwarf2_compute_name): Change variable value from long to LONGEST.
1810 (read_unsigned_leb128): Change return type, variable result and some
1811 casts from unsigned long to ULONGEST.
1812 (read_signed_leb128): Change return type, variable result and some
1813 casts from long to LONGEST.
1814 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
1815 value from long to LONGEST.
1816 (dwarf2_const_value): Change variable value from long to LONGEST.
1817 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
1818 plongest and hex_string.
1819 * symtab.h (struct general_symbol_info): Change ivalue from long to
1820 LONGEST, remove the comment.
1821 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
1822 Change SYMBOL_VALUE format strings to use plongest and hex_string.
1823
14e75d8e
JK
18242012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
1825
1826 PR symtab/7259:
1827 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
1828 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
1829 (ada_discrete_type_low_bound): Fix function comment. Use
1830 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
1831 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
1832 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1833 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
1834 Use TYPE_FIELD_ENUMVAL.
1835 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
1836 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1837 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
1838 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
1839 TYPE_CODE_ENUM.
1840 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
1841 * dwarf2read.c (process_enumeration_scope): Likewise.
1842 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
1843 field.bitpos.
1844 (class StructMainTypePrettyPrinter): Support also
1845 FIELD_LOC_KIND_ENUMVAL.
1846 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
1847 TYPE_CODE_ENUM.
1848 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1849 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
1850 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
1851 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
1852 field enumval.
1853 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
1854 accommodate enumval.
1855 (struct call_site): Adjust loc_kind to accommodate enumval.
1856 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
1857 (TYPE_FIELD_ENUMVAL): New macros.
1858 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
1859 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
1860 TYPE_CODE_ENUM.
1861 * p-typeprint.c (pascal_type_print_base): Likewise.
1862 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
1863 enumval.
1864 * python/lib/gdb/types.py (make_enum_dict): Likewise.
1865 * python/py-type.c (convert_field): New variable addrstring. Use
1866 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1867 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
1868 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
1869 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
1870 TYPE_CODE_ENUM.
1871 * valprint.c (generic_val_print): Likewise.
1872
380bca97
DE
18732012-04-17 Doug Evans <dje@google.com>
1874
dcc07052
DE
1875 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
1876
380bca97
DE
1877 * dwarf2read.c: Whitespace fixes.
1878 (lookup_signatured_type): Tweak comment.
1879 (get_die_type_at_offset): Fix comment.
1880
ec92004f
JB
18812012-04-17 Joel Brobecker <brobecker@adacore.com>
1882
1883 * xcoffread.c (xcoff_secnum_to_sections): New function.
1884 (secnum_to_section, secnum_to_bfd_section): Reimplement
1885 using xcoff_secnum_to_sections. Rename "secnum" parameter
1886 into "n_scnum".
1887 (RECORD_MINIMAL_SYMBOL): Delete.
1888 (record_minimal_symbol): New function.
1889 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
1890 by call to record_minimal_symbol and set misc_func_recorded
1891 to 1. Set last_csect_sec to the XCOFF section index instead
1892 of GDB's section_offset index. Update calls to
1893 prim_record_minimal_symbol_and_info to pass the BFD section
1894 as well.
1895
40301fb7
JB
18962012-04-17 Joel Brobecker <brobecker@adacore.com>
1897
1898 * xcoffread.c (read_xcoff_symtab): Delete variables
1899 last_csect_val and last_csect_sec and associated code.
1900
e0088cfd
DE
19012012-04-17 Doug Evans <dje@google.com>
1902
58d5e2c3
DE
1903 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
1904 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1905 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
1906 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
1907
c27f5738
DE
1908 * cleanups.h: New file.
1909 * cleanups.c: New file.
1910 * Makefile.in (SFILES): Add cleanups.c.
1911 (HFILES_NO_SRCDIR): Add cleanups.h.
1912 (COMMON_OBS): Add cleanups.o.
1913 * defs.h (struct cleanup): Moved to cleanups.h.
1914 (do_cleanups,do_final_cleanups): Ditto.
1915 (discard_cleanups,discard_final_cleanups): Ditto
1916 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1917 (save_cleanups,save_final_cleanups): Ditto.
1918 (restore_cleanups,restore_final_cleanups): Ditto.
1919 (null_cleanup): Ditto.
1920 (make_my_cleanup,make_my_cleanup2): Ditto.
1921 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1922 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
1923 (do_cleanups,do_final_cleanups): Ditto.
1924 (discard_cleanups,discard_final_cleanups): Ditto
1925 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1926 (save_cleanups,save_final_cleanups): Ditto.
1927 (restore_cleanups,restore_final_cleanups): Ditto.
1928 (null_cleanup): Ditto.
1929 (make_my_cleanup,make_my_cleanup2): Ditto.
1930 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1931
e0088cfd
DE
1932 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
1933 make_my_cleanup.
1934 (make_cleanup_dyn_string_delete): Ditto.
1935 (make_cleanup_ui_file_delete): Ditto.
1936 (make_cleanup_ui_out_redirect_pop): Ditto.
1937 (make_cleanup_free_section_addr_info): Ditto.
1938 (make_cleanup_restore_integer): Ditto.
1939 (make_cleanup_unpush_target): Ditto.
1940 (make_cleanup_value_free_to_mark): Ditto.
1941 (make_cleanup_value_free): Ditto.
1942 (make_cleanup_free_so): Ditto.
1943
4dc84fd1
JK
19442012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1945
1946 New option "set debug auto-load".
1947 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
1948 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
1949 (auto_load_safe_path_vec_update)
1950 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
1951 if DEBUG_AUTO_LOAD.
1952 (file_is_auto_load_safe): New parameters debug_fmt and ....
1953 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
1954 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
1955 caller by explanatory string.
1956 (_initialize_auto_load): Register "set debug auto-load".
1957 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
1958 and ....
1959 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1960 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
1961 by explanatory string.
1962 * main.c (captured_main): Likewise.
1963 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1964 (source_section_scripts): Likewise.
1965
bccbefd2
JK
19662012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1967
1968 New option "set auto-load safe-path".
1969 * NEWS: New commands "set auto-load safe-path"
1970 and "show auto-load safe-path".
1971 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
1972 (auto_load_safe_path, auto_load_safe_path_vec)
1973 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
1974 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
1975 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
1976 (source_gdb_script_for_objfile): New variable is_safe. Call
1977 file_is_auto_load_safe. Return if it is not.
1978 (struct loaded_script): New field loaded.
1979 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
1980 (print_script): Use LOADED indicator instead of FULL_PATH. Change
1981 output "Missing" to "No".
1982 (_initialize_auto_load): New variable cmd. Initialize
1983 auto_load_safe_path. Register "set auto-load safe-path",
1984 "show auto-load safe-path" and "add-auto-load-safe-path".
1985 * auto-load.h (maybe_add_script): Add parameter loaded.
1986 (file_is_auto_load_safe): New declaration.
1987 * config.in: Regenerate.
1988 * configure: Regenerate.
1989 * configure.ac: New parameters --with-auto-load-safe-path
1990 and --without-auto-load-safe-path.
1991 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1992 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
1993 * main.c (captured_main): Check file_is_auto_load_safe for
1994 LOCAL_GDBINIT.
1995 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
1996 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
1997 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
1998 not.
1999
bf88dd68
JK
20002012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2001
2002 auto-load: Implementation.
2003 * NEWS: New descriptions for "info auto-load",
2004 "info auto-load gdb-scripts", "info auto-load python-scripts",
2005 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2006 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2007 and "show auto-load-scripts". New description for "set auto-load",
2008 "show auto-load", "set auto-load gdb-scripts",
2009 "show auto-load gdb-scripts", "set auto-load python-scripts",
2010 "show auto-load python-scripts", "set auto-load local-gdbinit",
2011 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2012 "show auto-load libthread-db".
2013 * auto-load.c: Remove include python/python-internal.h. Add includes
2014 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2015 cli/cli-setshow.h.
2016 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2017 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2018 (gdbpy_global_auto_load): Rename to ...
2019 (global_auto_load): ... here.
2020 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2021 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2022 (script_language_gdb, source_gdb_script_for_objfile): New.
2023 (struct loaded_script): New field language.
2024 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2025 LANGUAGE.
2026 (maybe_add_script): Add parameter language. Drop redundant
2027 entry.full_path initialization. Initialize entry.language and
2028 (*slot)->language.
2029 (auto_load_objfile_script): Change parameter suffix to language.
2030 Remove the call of maybe_add_script.
2031 Call language->source_script_for_objfile.
2032 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2033 New.
2034 (collect_matching_scripts): Adjust it for
2035 struct collect_matching_scripts_data.
2036 (auto_load_info_scripts_pattern_nl): New variable.
2037 (info_auto_load_scripts): Rename to ...
2038 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2039 for struct collect_matching_scripts_data.
2040 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2041 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2042 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2043 (auto_load_info_cmdlist_get): New.
2044 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2045 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2046 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2047 "info auto-load local-gdbinit".
2048 * auto-load.h (struct script_language): New.
2049 (gdbpy_global_auto_load): Rename to ...
2050 (global_auto_load): ... here.
2051 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2052 (auto_load_local_gdbinit_loaded): New declarations.
2053 (maybe_add_script): New parameter language.
2054 (auto_load_objfile_script): Change parameter suffix to language.
2055 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
2056 (auto_load_info_scripts, auto_load_set_cmdlist_get)
2057 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
2058 declarations.
2059 * linux-thread-db.c: Include auto-load.h and ctype.h.
2060 (auto_load_thread_db, show_auto_load_thread_db): New.
2061 (struct thread_db_info): New field filename.
2062 (delete_thread_db_info): Call xfree for FILENAME.
2063 (try_thread_db_load): Initialize FILENAME.
2064 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
2065 if !AUTO_LOAD_THREAD_DB.
2066 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
2067 (_initialize_thread_db): Install auto_load_thread_db
2068 as "set auto-load libthread-db" and install info_auto_load_libthread_db
2069 as "info auto-load libthread-db".
2070 * main.c (captured_main): Rename gdbpy_global_auto_load to
2071 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
2072 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
2073 (print_gdb_help): Extend the help for 'local init file'.
2074 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
2075 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
2076 (auto_load_scripts): Rename to ...
2077 (auto_load_python_scripts): ... here, update the comment.
2078 (gdbpy_load_auto_script_for_objfile): New declaration.
2079 (show_auto_load_python_scripts, script_language_python)
2080 (gdbpy_load_auto_script_for_objfile): New.
2081 (source_section_scripts): Refactor the code.
2082 (load_auto_scripts_for_objfile): Rename to ...
2083 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
2084 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
2085 (info_auto_load_python_scripts): New.
2086 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
2087 Rename "set auto-load-scripts" to "set auto-load python-scripts".
2088 Register "set auto-load-scripts" as its deprecated alias. Register
2089 "info auto-load python-scripts". Register "info auto-load-scripts" as
2090 its deprecated alias.
2091 (load_auto_scripts_for_objfile): Rename to ...
2092 (gdbpy_load_auto_scripts_for_objfile): ... here.
2093 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
2094 (gdbpy_load_auto_scripts_for_objfile): ... here.
2095
e2207b9a
JK
20962012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2097
2098 auto-load: Move files.
2099 * Makefile.in (SFILES): Add auto-load.c.
2100 (HFILES_NO_SRCDIR): Add auto-load.h.
2101 (COMMON_OBS): Add auto-load.o.
2102 (distclean): Change .gdbinit for gdb-gdb.gdb.
2103 * auto-load.c: New file, with parts from python/py-auto-load.c.
2104 * auto-load.h: New file, with parts from python/python.h.
2105 * configure: Regenerate.
2106 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
2107 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
2108 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
2109 * main.c: Include auto-load.h.
2110 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
2111 command.h, observer.h and progspace.h to auto-load.c. Add include
2112 auto-load.h.
2113 (gdbpy_global_auto_load, struct auto_load_pspace_info)
2114 (struct loaded_script, auto_load_pspace_data)
2115 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
2116 (hash_loaded_script_entry, eq_loaded_script_entry)
2117 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
2118 (maybe_add_script): Move to auto-load.c.
2119 (source_section_scripts): Change maybe_add_script parameters passing,
2120 use script_not_found_warning_print.
2121 (clear_section_scripts, auto_load_objfile_script)
2122 (auto_load_new_objfile, loaded_script_ptr)
2123 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
2124 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
2125 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
2126 auto_load_new_objfile and info_auto_load_scripts initizations to
2127 auto-load.c.
2128 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
2129
e4ab2fad
JK
21302012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2131
2132 Code cleanup.
2133 * charset.c (find_charset_names): Remove variables ix and elt.
2134 Use free_char_ptr_vec.
2135 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
2136 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2137 debugdir_end. New variable debugdir_len.
2138 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
2139 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
2140 declarations.
2141 * progspace.c (clear_program_space_solib_cache): Remove variables ix
2142 and elt. Use free_char_ptr_vec.
2143 * source.c (add_path): Remove variables argv, arg and argv_index.
2144 New variables dir_vec, back_to, ix and name.
2145 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
2146 make_cleanup_freeargv. Remove variable separator. Simplify the code
2147 no longer expecting DIRNAME_SEPARATOR.
2148 (openp): Remove variable p, p1 and len. New variables dir_vec,
2149 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
2150 no longer expecting DIRNAME_SEPARATOR.
2151 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
2152 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2153 debugdir_end.
2154 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
2155 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
2156 (dirnames_to_char_ptr_vec): New functions.
2157
5ee4ed9f
JK
21582012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2159
2160 Code cleanup.
2161 * source.c (add_path): Remove always true conditional 'p == 0' and
2162 unindent its code block.
2163
f41f5e61
PA
21642012-04-17 Pedro Alves <palves@redhat.com>
2165
2166 * gdbtypes.h (FIELD_BITPOS): Rename to ...
2167 (FIELD_BITPOS_LVAL): ... this.
2168 (FIELD_BITPOS): New.
2169 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
2170 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
2171 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
2172 SET_FIELD_BITPOS.
2173 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
2174 SET_FIELD_BITPOS.
2175 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
2176 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
2177 * target-descriptions.c (tdesc_gdb_type): Adjust to use
2178 SET_FIELD_BITPOS.
2179
945b3a32
JK
21802012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
2183 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
2184 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
2185 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
2186 * jv-lang.c (java_link_class_type): Likewise, once.
2187 * stabsread.c (read_enum_type): Likewise.
2188
42476b70
YQ
21892012-04-16 Yao Qi <yao@codesourcery.com>
2190
2191 * common/agent.c (agent_run_command): Add one more parameter `len'.
2192 Update callers.
2193 * common/agent.h: Update declaration.
2194 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2195 Update.
2196 (linux_child_static_tracepoint_markers_by_strid): Ditto.
2197
8264ba82
AG
21982012-04-14 Anton Gorenkov <xgsa@yandex.ru>
2199
2200 PR mi/13393
2201 * value.c (value_actual_type): New function.
2202 * value.h (value_actual_type): New declaration.
2203 * varobj.c (update_type_if_necessary): New function.
2204 (varobj_create): Call value_actual_type instead of
2205 value_type.
2206 (install_dynamic_child): distinct changed and type changed MI variable
2207 objects.
2208 (update_dynamic_varobj_children): Updated for install_dynamic_child
2209 change. All callers updated.
a09130f9 2210 (varobj_update): Support for MI variable object type change if
8264ba82
AG
2211 the value changed and RTTI is used to determine the type.
2212 (create_child_with_value): Call value_actual_type instead of
2213 value_type.
a09130f9 2214 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
2215 specify whether the given value should be casted to enclosing type.
2216 All callers updated.
2217
55a8c076
YQ
22182012-04-14 Yao Qi <yao@codesourcery.com>
2219
2220 Import gnulib module inttypes from git
2221 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2222 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
2223 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
2224 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
2225 * aclocal.m4, config.in, configure: Regenerated.
2226 * gnulib/Makefile.am: Update.
2227 * gnulib/Makefile.in: Update.
2228 * gnulib/m4/gnulib-cache.m4: Update.
2229 * gnulib/m4/gnulib-comp.m4: Update.
2230 * gnulib/inttypes.in.h: New.
2231 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 2232 * gnulib/m4/inttypes.m4: New.
55a8c076 2233
ca7781d2
LM
22342012-04-13 Luis Machado <lgustavo@codesourcery.com>
2235
2236 * infrun.c (resume): Update PC address to the real PC after
2237 preparing to do displaced stepping.
2238
e319fa28
DE
22392012-04-12 Doug Evans <dje@google.com>
2240
2241 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
2242 All callers updated.
2243
15add3f5
MK
22442012-04-12 Mark Kettenis <kettenis@gnu.org>
2245
2246 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
2247
52dc124a
DE
22482012-04-12 Doug Evans <dje@google.com>
2249
0e50663e
DE
2250 * dwarf2read.c (create_all_type_units): Renamed from
2251 create_debug_types_hash_table. All callers updated.
2252
52dc124a
DE
2253 * dwarf2read.c (create_signatured_type_table_from_index): Rename
2254 local type_sig to sig_type, type_offset to type_offset_in_tu.
2255 (hash_signatured_type): Renamed from hash_type_signature,
2256 all callers updated.
2257 (eq_signatured_type): Renamed from eq_type_signature,
2258 all callers updated.
2259 (create_debug_types_hash_table): Rename local type_sig to sig_type.
2260 (process_enumeration_scope): Ditto.
2261 (lookup_signatured_type_at_offset): Ditto.
2262 (load_full_type_unit, read_signatured_type): Ditto.
2263
248fd3bf
YQ
22642012-04-12 Yao Qi <yao@codesourcery.com>
2265
2266 * remote.c (async_remote_interrupt): Correct function name in
2267 debug message.
2268 (async_remote_interrupt_twice): Ditto.
2269
bc3aa6c3
DE
22702012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
2271
2272 * source.c (find_and_open_source): Consistently pass resulting
2273 full path through xfullpath.
2274
9e529e1d
JK
22752012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2276
2277 Provide more specific displaced-stepping memory error message.
2278 * infrun.c (displaced_step_prepare): New variable status. Call
2279 target_read_memory instead of read_memory, provide more specific
2280 error message.
2281
82e0cec1
TG
22822012-04-11 Tristan Gingold <gingold@adacore.com>
2283
2284 PR gdb/13901
2285 * darwin-nat.c (darwin_execvp): Revert previous patch.
2286
d987a266
TG
22872012-04-11 Tristan Gingold <gingold@adacore.com>
2288
2289 PR gdb/13901
2290 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
2291 in case of change.
2292
016b7430
TG
22932012-04-11 Tristan Gingold <gingold@adacore.com>
2294
2295 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2296 warning.
2297
06fc020f
SCR
22982012-04-11 Siva Chandra Reddy <sivachandra@google.com>
2299
2300 New command 'explore' which helps explore values and types in
2301 scope.
2302 * NEWS: Add an entry about the new 'explore' command.
2303 * data-directory/Makefile.in: Add gdb/command/explore.py
2304 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 2305 command using the GDB Python API.
06fc020f 2306
de0919f8 23072012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
2308
2309 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
2310 extension in jump target calculation.
2311
de0919f8 23122012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
2313
2314 * mips-tdep.c (mips32_next_pc): Handle JALX.
2315
2f26ef89
YQ
23162012-04-10 Yao Qi <yao@codesourcery.com>
2317
2318 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
2319
2e505b66
YQ
23202012-04-10 Yao Qi <yao@codesourcery.com>
2321
2322 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
2323 and gnulib/m4/gnulib-tool.m4.
2324
0d99eb77
DE
23252012-04-10 Doug Evans <dje@google.com>
2326
2327 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
2328 (load_partial_dies): Clarify comment.
2329 (find_partial_die): Support rereading type units.
2330 Clarify CU handling, if we know offset is in CU, don't search for the
2331 containing CU. Add comment regarding memory waste.
2332
9a82b8ff
L
23332012-04-10 H.J. Lu <hongjiu.lu@intel.com>
2334
2335 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
2336 i386/x32-avx and i386/x32-avx-linux.
2337 (i386/x32-expedite): New.
2338 (i386/x32-linux-expedite): Likewise.
2339 (i386/x32-avx-expedite): Likewise.
2340 (i386/x32-avx-linux-expedite): Likewise.
2341 ($(outdir)/i386/x32.dat): Likewise.
2342 ($(outdir)/i386/x32-linux.dat): Likewise.
2343 ($(outdir)/i386/x32-avx.dat): Likewise.
2344 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
2345
2346 * features/i386/x32-avx-linux.xml: New file.
2347 * features/i386/x32-avx.xml: Likewise.
2348 * features/i386/x32-core.xml: Likewise.
2349 * features/i386/x32-linux.xml: Likewise.
2350 * features/i386/x32.xml: Likewise.
2351
2352 * features/i386/x32-avx-linux.c: New. Generated.
2353 * features/i386/x32-avx.c: Likewise.
2354 * features/i386/x32-linux.c: Likewise.
2355 * features/i386/x32.c: Likewise.
2356 * regformats/i386/x32-avx-linux.dat: Likewise.
2357 * regformats/i386/x32-avx.dat: Likewise.
2358 * regformats/i386/x32-linux.dat: Likewise.
2359 * regformats/i386/x32.dat: Likewise.
2360
ee41036f
TG
23612012-04-10 Tristan Gingold <gingold@adacore.com>
2362
2363 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
2364 code to kill the inferior.
2365
a7aa5b8a
MK
23662012-04-09 Mark Kettenis <kettenis@gnu.org>
2367
2368 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2369 defines.
2370 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2371 defines.
a09130f9 2372 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
2373 (yyvsp): New defines.
2374 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2375 defines.
2376 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2377 defines.
2378 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2379 defines.
2380 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2381 defines.
2382 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
2383 defines.
2384
fb57d452
MK
23852012-04-09 Mark Kettenis <kettenis@gnu.org>
2386
a09130f9 2387 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
2388 (sparc64_store_arguments): Fix coding style.
2389
cdc7b32f
MK
23902012-04-07 Mark Kettenis <kettenis@gnu.org>
2391
2392 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
2393 complex floats, adjust some related comments and tighten a related
2394 assertion.
2395 (sparc64_extract_return_value): Handle complex floats.
2396
7adf1e79
DE
23972012-04-07 Doug Evans <dje@google.com>
2398
2399 * dwarf2read.c (load_partial_dies): Change condition to assert.
2400
50f1ae7b
DE
24012012-04-06 Doug Evans <dje@google.com>
2402
2403 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
2404 "mov %rsp,%rbp".
2405
55fa75c3
KB
24062012-04-05 Kevin Buettner <kevinb@redhat.com>
2407
2408 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
2409 fencepost error.
2410 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
2411 (v850_gdbarch_init): Set `num_regs' as appropriate for the
2412 architecture.
2413
40e084e1
KS
24142012-04-05 Keith Seitz <keiths@redhat.com>
2415
2416 * linespec.c (decode_compound): Remove.
2417 (enum offset_relative_sign): New enum.
2418 (struct line_offset): New struct.
2419 (struct linespec): New struct.
2420 (struct linespec_state): Move file_symtabs,
2421 user_filename, and user_function into struct linespec.
2422 Make result an anonymous struct holding vectors of
2423 symbolp and minsym_and_objfile_d.
2424 Add language member.
2425 (enum ls_token_type): New enum.
2426 (linespec_keywords): New array.
2427 (struct ls_token): New struct.
2428 (struct ls_parser): New struct.
2429 (linespec_lexer_lex_number): New function.
2430 (linespec_lexer_lex_keyword): New function.
2431 (is_ada_operator): New function.
2432 (skip_quote_char): New function.
2433 (copy_token_string): New function.
2434 (is_closing_quote_enclosed): New function.
2435 (find_parameter_list_end): New function.
2436 (linespec_lexer_lex_string): New function.
2437 (linespec_lexer_lex_one): New function.
2438 (linespec_lexer_consume_token): New function.
2439 (linespec_lexer_peek_token): New function.
2440 (cplusplus_error): Remove unused function.
2441 (find_methods): Update comment.
2442 (find_toplevel_char): Return const.
2443 (is_objc_method_format): Remove unused function.
2444 (find_toplevel_string): New function.
2445 (is_linespec_boundary): Remove.
2446 (symbol_not_found_error): New function.
2447 (find_method_overload_end): Remove function.
2448 (unexpected_linespec_error): New function.
2449 (keep_name_info): Remove.
2450 (linespec_parse_line_offset): New function.
2451 (linespec_parse_basic): New function.
2452 (canonicalize_linespec): New function.
2453 (decode_line_internal): Remove.
2454 (create_sals_line_offset): New function adapted from
2455 decode_all_digits.
2456 (convert_linespec_to_sals): New function.
2457 (parse_linespec): New function.
2458 (linespec_parser_new): New function.
2459 (linespec_state_destructor): Change parameter type to
2460 struct linespec_state *.
2461 Add language parameter.
2462 Remove freeing of moved members.
2463 (linespec_parser_delete): New function.
2464 (decode_line_full): Use parse_linespec and linespec_parser_new.
2465 (decode_line_1): Likewise.
2466 (decode_indirect): Rename to ...
2467 (linespec_expression_to_pc): ... this and rewrite
2468 to simply find CORE_ADDR, storing this result for later
2469 conversion to SALs.
2470 (locate_first_half): Remove.
2471 (deocde_objc): Add parameter LS.
2472 Initialize new struct collect_info members.
2473 Handle minimal symbols, too.
2474 (decode_compound): Delete.
2475 (lookup_prefix_sym): Rewrite.
2476 (compare_msymbols): New function.
2477 (find_method): Rewrite.
2478 Do not call cplusplus_error.
2479 (symtabs_from_filename): Rewrite.
2480 (collect_function_symbols): Delete.
2481 (find_function_symbols): Rewrite without ARGPTR-style
2482 processing.
2483 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
2484 (decode_dollar): Adapted and renamed to ...
2485 (linespec_parse_variable): ... this.
2486 (find_linespec_symbols): New function.
2487 (decode_label): Adapted and renamed to ...
2488 (find_label_symbols): ... this.
2489 (decode_digits_list_mode): Add and use LS argument.
2490 (decode_digits_ordinary): Likewise.
2491 (collect_symbols): Do not collect SALs, just symbols and msymbols.
2492 If in list mode, allow any symbol class. Otherwise, only
2493 permit LOC_BLOCK symbols.
2494 (minsym_found): Update comments.
2495 (search_minsyms_for_name): Do not convert the matching symbol
2496 into a SAL. Simply push the symbol and objfile into the
2497 result vector.
2498 (decode_variable): Delete. Contents adapted into
2499 find_linespec_symbols.
2500
2501 * cp-support.c (SKIP_SPACE): Remove.
2502 (operator_tokens): Remove unused global.
2503 (cp_validate_operator): Remove.
2504 * cp-support.h (cp_validate_operator): Remove declaration.
2505
a72c8f6a
JK
25062012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2507
2508 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
2509 for TYPE_VPTR_FIELDNO.
2510 * valprint.c (valprint_check_validity): Make it global, move the
2511 function comment ...
2512 * value.h (valprint_check_validity): ... to this new declaration.
2513
cf9bb588
TG
25142012-04-02 Tristan Gingold <gingold@adacore.com>
2515
2516 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
2517 the STATE32 api for i386 state.
2518 (i386_darwin_store_inferior_registers): Likewise.
2519
17092398
TG
25202012-04-02 Tristan Gingold <gingold@adacore.com>
2521
2522 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
2523 SS offset.
2524 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2525 format_string.
2526
ece0061f
TG
25272012-04-02 Tristan Gingold <gingold@adacore.com>
2528
2529 PR gdb/13901
d987a266 2530 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 2531
cf65ecd3
JK
25322012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2533
2534 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
2535
9bc3523d
TT
25362012-03-30 Tom Tromey <tromey@redhat.com>
2537
2538 * python/python.c (gdbpy_decode_line): Move cleanup creation out
2539 of TRY_CATCH. Fix error handling.
2540 * python/py-value.c (convert_value_from_python): Move 'old'
2541 declaration to innermost scope.
2542
b1ed564a
JB
25432012-03-29 Joel Brobecker <brobecker@adacore.com>
2544 Andrey Smirnov <andrew.smirnov@gmail.com>
2545
2546 -Wshadow warning fix.
2547 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
2548 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
2549 Adjust code accordingly.
2550
cb8e9b97
JB
25512012-03-29 Joel Brobecker <brobecker@adacore.com>
2552
2553 * ada-lang.c (symbol_completion_add): Rename parameter
2554 "encoded" into "encoded_p". Ajust code and documentation
2555 accordingly.
2556
c0af1706
JB
25572012-03-29 Joel Brobecker <brobecker@adacore.com>
2558 Andrey Smirnov <andrew.smirnov@gmail.com>
2559
2560 -Wshadow warning fix.
2561 * ada-lang.c (symbol_completion_add): Rename parameter
2562 "wild_match" into wild_match_p. Update code and documentation
2563 accordingly.
2564
6ea35997
JB
25652012-03-29 Joel Brobecker <brobecker@adacore.com>
2566
2567 * ada-lang.c (symbol_completion_match): Rename parameter
2568 "encoded" into "encoded_p". Ajust code and documentation
2569 accordingly.
2570
e701b3c0
JB
25712012-03-29 Joel Brobecker <brobecker@adacore.com>
2572 Andrey Smirnov <andrew.smirnov@gmail.com>
2573
2574 -Wshadow warning fix.
2575 * ada-lang.c (symbol_completion_match): Rename parameter
2576 "wild_match" into "wild_match_p". Adjust code and function
2577 documentation accordingly.
2578
5e2336be
JB
25792012-03-29 Joel Brobecker <brobecker@adacore.com>
2580 Andrey Smirnov <andrew.smirnov@gmail.com>
2581
2582 -Wshadow warning fix.
2583 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
2584 "symbol_info" into "info". Adjust code accordingly.
2585 (ada_lookup_symbol): Likewise.
2586
9f88c959
JB
25872012-03-29 Joel Brobecker <brobecker@adacore.com>
2588
2589 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
2590 of this function's documentation.
2591
82ccd55e
JB
25922012-03-29 Joel Brobecker <brobecker@adacore.com>
2593 Andrey Smirnov <andrew.smirnov@gmail.com>
2594
2595 -Wshadow warning fix.
2596 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
2597 variable into "wild_match_p". Adjust code accordingly.
2598
d0a8ab18
JB
25992012-03-29 Joel Brobecker <brobecker@adacore.com>
2600 Andrey Smirnov <andrew.smirnov@gmail.com>
2601
2602 -Wshadow warning fix.
2603 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
2604 parameter into "wild_match_p". Adjust code accordingly.
2605 Document this parameter in the function description.
2606
48b78332
JB
26072012-03-29 Joel Brobecker <brobecker@adacore.com>
2608 Andrey Smirnov <andrew.smirnov@gmail.com>
2609
2610 -Wshadow warning fix.
2611 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
2612 "wild_match" parameter to "wild_match_p" (-Wshadow).
2613
2e6e0353
JB
26142012-03-29 Joel Brobecker <brobecker@adacore.com>
2615
2616 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
2617 in function documentation.
2618
dc4024cd
JB
26192012-03-29 Joel Brobecker <brobecker@adacore.com>
2620 Andrey Smirnov <andrew.smirnov@gmail.com>
2621
2622 -Wshadow warning fix.
2623 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
2624 variable into wild_match_p. Adjust code accordingly.
2625
6c88661c
JB
26262012-03-29 Joel Brobecker <brobecker@adacore.com>
2627 Andrey Smirnov <andrew.smirnov@gmail.com>
2628
2629 * ada-valprint.c (ada_val_print_1): Move the code handling
2630 TYPE_CODE_ENUM inside its own lexical block. Declare
2631 variables len and val there, instead of in the function's
2632 top level block. Avoid declaring deref_val again in a way
2633 that shadows another variable of the same name declared
2634 in one of the up-level blocks. Just re-use the up-level
2635 variable instead.
2636
4e5c77fe
JB
26372012-03-29 Joel Brobecker <brobecker@adacore.com>
2638
2639 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
2640 Replace block_found argument by symbol_info. Adjust
2641 implementation accordingly. Add function documentation.
2642 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
2643 Fix documentation.
2644 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
2645 * ada-exp.y (write_object_renaming): Adjust to new
2646 ada_lookup_encoded_symbol API.
2647
1c0ac8c7
JB
26482012-03-29 Joel Brobecker <brobecker@adacore.com>
2649
2650 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
2651 documentation.
2652
2aaed979
KB
26532012-03-28 Rathish C <rathish.c@kpitcummins.com>
2654
2655 * v850-tdep.c: Add the enum values for mpu and fpu registers.
2656 (v850_register_name): Add the mpu and fpu register names.
2657 (v850e_register_name): Add the mpu and fpu register names.
2658 (v850e2_register_name): New function.
a09130f9 2659 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
2660 bfd_mach_v850e2v3.
2661
927fbba6
JB
26622012-03-28 Joel Brobecker <brobecker@adacore.com>
2663
2664 * NEWS: Add entry for Ada varobj support.
2665
d32cafc7
JB
26662012-03-28 Joel Brobecker <brobecker@adacore.com>
2667
2668 * varobj.c (default_value_is_changeable_p): New function,
2669 extracted from varobj_value_is_changeable_p. Add declaration.
2670 (ada_value_is_changeable_p): New function, extracted from
2671 varobj_value_is_changeable_p. Add declaration.
2672 (struct language_specific): New field "value_is_changeable_p".
2673 (languages): Add entries for new field.
2674 (varobj_create): Set language before calling install_new_value.
2675 (varobj_value_is_changeable_p): Reimplement to call the varobj's
2676 "value_is_changeable_p" language callback.
2677
181875a4
JB
26782012-03-28 Joel Brobecker <brobecker@adacore.com>
2679
2680 * ada-varobj.h, ada-varobj.c: New files.
2681 * Makefile.in (SFILES): Add ada-varobj.c.
2682 (HFILES_NO_SRCDIR): Add ada-varobj.h.
2683 (COMMON_OBS): Add ada-varobj.o.
2684
7a290c40
JB
26852012-03-28 Joel Brobecker <brobecker@adacore.com>
2686
2687 * varobj.c (ada_value_has_mutated): Add declaration. New function.
2688 (struct language_specific): New field "value_has_mutated".
2689 (languages): Set field "value_has_mutated" in each entry of array.
2690 (varobj_value_has_mutated): New function.
2691 (varobj_udpdate): Add handling of type mutation.
2692 (value_of_root): Add handling of type mutation.
2693 (ada_value_has_mutated): New function.
2694
ca9b8b9c
PA
26952012-03-28 Pedro Alves <palves@redhat.com>
2696
2697 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
2698 Always supply $fr0 as 0.0 and $fr1 as 1.0.
2699
cc0265cd
TT
27002012-03-28 Tom Tromey <tromey@redhat.com>
2701
2702 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
2703 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
2704 before returning.
2705
3ad2ec6f
TT
27062012-03-28 Tom Tromey <tromey@redhat.com>
2707
2708 * .dir-locals.el: New file.
2709
4a6510ba
PA
27102012-03-28 Pedro Alves <palves@redhat.com>
2711
2712 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
2713
5a75128f
JB
27142012-03-28 Joel Brobecker <brobecker@adacore.com>
2715
2716 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
2717 handling for r0.
2718
f99d8bf4
PA
27192012-03-27 Pedro Alves <palves@redhat.com>
2720
2721 Eliminate struct ui_stream.
2722
2723 * ui-out.h (struct ui_stream): Delete.
2724 (ui_out_field_stream): Adjust prototype.
2725 (ui_out_stream_new, ui_out_stream_delete)
2726 (make_cleanup_ui_out_stream_delete): Delete declarations.
2727 * ui-out.c (ui_out_field_stream): Change prototype to take a
2728 ui_file instead of a ui_stream. Adjust.
2729 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
2730 (make_cleanup_ui_out_stream_delete): Delete.
2731 * breakpoint.c (print_breakpoint_location)
2732 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
2733 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2734 * disasm.c (dump_insns): Ditto.
2735 (do_mixed_source_and_assembly, do_assembly_only): Adjust
2736 prototype.
2737 (gdb_disassembly): Use ui_file/mem_fileopen instead of
2738 ui_stream/ui_out_stream_new.
2739 * infcmd.c (print_return_value): Ditto.
2740 * osdata.c (info_osdata_command): Don't allocate a local
2741 ui_stream.
2742 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
2743 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2744 * tracepoint.c (print_one_static_tracepoint_marker): Don't
2745 allocate a local ui_stream.
2746 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
2747 instead of ui_stream/ui_out_stream_new.
2748 (list_args_or_locals): Don't allocate a local ui_stream.
2749 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
2750 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
2751 ui_stream/ui_out_stream_new.
2752 * cli/cli-setshow.c (do_setshow_command): Ditto.
2753
6350a066 27542012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 2755
6350a066
PA
2756 * arm-linux-tdep.c (arm_linux_init_abi): Call
2757 set_gdbarch_process_record. Initialize `arm_swi_record' field.
2758 * arm-tdep.c (arm_process_record): New function.
2759 (deallocate_reg_mem): New function.
2760 (decode_insn): New function.
2761 (thumb_record_branch): New function.
2762 (thumb_record_ldm_stm_swi(): New function.
2763 (thumb_record_misc): New function.
2764 (thumb_record_ld_st_stack): New function.
2765 (thumb_record_ld_st_imm_offset): New function.
2766 (thumb_record_ld_st_reg_offset(): New function.
2767 (thumb_record_add_sub_cmp_mov): New function.
2768 (thumb_record_shift_add_sub): New function.
2769 (arm_record_coproc_data_proc): New function.
2770 (arm_record_coproc): New function.
2771 (arm_record_b_bl): New function.
2772 (arm_record_ld_st_multiple): New function.
2773 (arm_record_ld_st_reg_offset): New function.
2774 (arm_record_ld_st_imm_offset): New function.
2775 (arm_record_data_proc_imm): New function.
2776 (arm_record_data_proc_misc_ld_str): New function.
2777 (arm_record_extension_space): New function.
2778 (arm_record_strx): New function.
2779 (sbo_sbz): New function.
2780 (struct insn_decode_record): New structure for arm insn record.
2781 (REG_ALLOC): New macro for reg allocations.
2782 (MEM_ALLOC): New macro for memory allocations.
2783 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 2784
89e028e2
AS
27852012-03-27 Andreas Schwab <schwab@linux-m68k.org>
2786
2787 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
2788 (store_register): Likewise.
2789
6350a066 27902012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 2791
6350a066 2792 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 2793
5b43fab2
JK
27942012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
2797 Describe also the option "auto".
2798
b5453b95
RH
27992012-03-22 Richard Henderson <rth@redhat.com>
2800
2801 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
2802 * sparc-nat.c (sparc_xfer_wcookie): Make static.
2803
227ee7fc
RH
28042012-03-22 Richard Henderson <rth@redhat.com>
2805
2806 * jit.c (jit_read_code_entry): Compute alignment and offset of
2807 int64_t member before computing entry_size.
2808
7b282c5a
SCR
28092012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2810
2811 Python scripting: Add new method Value.referenced_value to
2812 gdb.Value which can dereference pointer as well as reference
2813 values.
2814 * NEWS: Add entry under 'Python scripting' about the new method
2815 Value.referenced_value on gdb.Value objects.
2816 * python/py-value.c (valpy_referenced_value): New function
2817 defining a new method on gdb.Value objects which can dereference
2818 pointer and reference values.
2819
0c83539f
SCR
28202012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2821
2822 * MAINTAINERS (Write After Approval): Add myself to the list.
2823
7ccffd7c
KB
28242012-03-21 Kevin Buettner <kevinb@redhat.com>
2825
2826 * symtab.c (skip_prologue_sal): Change test to check for "main()"
2827 in addition to "main".
2828
bd0b9f9e
JB
28292012-03-21 Joel Brobecker <brobecker@adacore.com>
2830
2831 * expression.h (op_name): Add declaration.
2832 * expprint.c (op_name): Remove declaration. Make non-static.
2833 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
2834
a5362b9a
TS
28352012-03-21 Thomas Schwinge <thomas@codesourcery.com>
2836
2837 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
2838 of struct siginfo.
2839 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
2840 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2841 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
2842 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
2843 (linux_nat_get_siginfo): Likewise.
2844 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
2845 (linux_nat_get_siginfo): Likewise.
2846 * linux-tdep.c (linux_get_siginfo_type): Likewise.
2847 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
2848 * procfs.c (gdb_siginfo_t): Likewise.
2849
adcadaab
MF
28502012-03-21 Mike Frysinger <vapier@gentoo.org>
2851
2852 * .gitignore: Ignore more files.
2853
e278ad5b
PA
28542012-03-20 Pedro Alves <palves@redhat.com>
2855
2856 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
2857 returns.
2858
741e63d7
YQ
28592012-03-20 Yao Qi <yao@codesourcery.com>
2860
2861 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
2862 comment.
2863
b64f50a1
JK
28642012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2865
2866 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
2867 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
2868 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
2869 sect_offset.
2870 * dwarf2expr.h (cu_offset, sect_offset): New types.
2871 (struct dwarf_expr_context_funcs) <dwarf_call>
2872 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
2873 sect_offset.
2874 (struct dwarf_expr_context) <len>: Improve the comment.
2875 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
2876 cu_offset and sect_offset.
2877 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
2878 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
2879 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
2880 * dwarf2loc.h: Include dwarf2expr.h.
2881 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
2882 and sect_offset.
2883 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
2884 Improve the comment.
2885 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
2886 (struct signatured_type, struct line_header, struct partial_die_info)
2887 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
2888 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
2889 (get_die_type_at_offset, create_cus_from_index)
2890 (create_signatured_type_table_from_index, dw2_get_file_names)
2891 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
2892 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
2893 (create_debug_types_hash_table, process_psymtab_comp_unit)
2894 (load_partial_comp_unit, create_all_comp_units)
2895 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
2896 (load_full_comp_unit, dwarf2_physname, read_import_statement)
2897 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2898 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
2899 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
2900 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
2901 (find_partial_die, read_attribute_value, lookup_die_type)
2902 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
2903 (is_ref_attr): New function comment.
2904 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
2905 Use cu_offset and sect_offset.
2906 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
2907 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
2908 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
2909 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
2910 (offset_and_type_hash, offset_and_type_eq, set_die_type)
2911 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
2912 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
2913 sect_offset.
2914
e97a38f7
JK
29152012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2916
2917 Code cleanup.
2918 * python/py-auto-load.c (source_section_scripts): New variable back_to.
2919 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
2920 with xfree.
2921 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
2922
8320cc4f
JK
29232012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2924
2925 * NEWS: Describe new options --init-command=FILE, -ix and
2926 --init-eval-command=COMMAND, -iex.
2927 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
2928 CMDARG_INIT_COMMAND.
2929 (captured_main): New enum items OPT_IX and OPT_IEX. Add
2930 "init-command", "init-eval-command", "ix" and "iex" to the variable
2931 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
2932 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
2933 (print_gdb_help): Describe --init-command=FILE, -ix and
2934 --init-eval-command=COMMAND, -iex.
2935
26743505
JK
29362012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2937
2938 Code cleanup.
2939 * main.c (struct cmdarg): Move it here from main. Add more comments.
2940 (cmdarg_s, VEC (cmdarg_s)): New.
2941 (main): Move struct cmdarg from here. New variables cmdarg_vec and
2942 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
2943 Install cleanup for cmdarg_vec. Update filling for options 'x' and
2944 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
2945 of CMDARG.
2946
5ff5c7b4
TT
29472012-03-19 Tom Tromey <tromey@redhat.com>
2948
2949 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
2950
ab260dad
JK
29512012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2952
2953 PR symtab/13777
2954 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
2955 GCC >=4.5.
2956
c366c1f0
TT
29572012-03-16 Chris January <chris.january@allinea.com>
2958
2959 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
2960 of clear.
2961
e16edb45
TT
29622012-03-16 Chris January <chris.january@allinea.com>
2963
2964 * source.c (add_path): Use memmove instead of strcpy because the
2965 strings overlap.
2966
53ba8333
JB
29672012-03-16 Joel Brobecker <brobecker@adacore.com>
2968
2969 * value.h (set_value_parent): Add declaration.
2970 * value.c (set_value_parent): New function.
2971 (value_address): If VALUE->PARENT is not NULL, then use it as
2972 the base address instead of VALUE->LOCATION.address.
2973 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
2974 the same as OBJ's address. Adjust V's offset accordingly.
2975 Set V's parent.
2976
481860b3
GB
29772012-03-16 Gary Benson <gbenson@redhat.com>
2978
2979 PR breakpoints/10738
2980 * dwarf2read.c (use_deprecated_index_sections): New global.
2981 (struct partial_die_info): New member may_be_inlined.
2982 (read_partial_die): Set may_be_inlined where appropriate.
2983 (add_partial_subprogram): Add partial symbols for partial
2984 DIEs that may be inlined.
2985 (new_symbol_full): Add inlined subroutines to the current
2986 scope.
2987 (write_psymtabs_to_index): Bump version number.
2988 (dwarf2_read_index): Read only version 6 indices unless
2989 use_deprecated_index_sections is set.
2990 * linespec.c (symbol_and_data_callback): New structure.
2991 (iterate_inline_only): New function.
2992 (iterate_over_all_matching_symtabs): New argument
2993 "include_inline". If nonzero, also call the callback for
2994 symbols representing inlined subroutines.
2995 (lookup_prefix_sym): Pass extra argument to the above.
2996 (find_function_symbols): Likewise.
2997 (add_matching_symbols_to_info): Likewise.
2998 * NEWS: Mention that GDB can now set breakpoints on inlined
2999 functions.
3000
d0e7e15a
PM
30012012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3002
3003 * p-typeprint.c (pascal_type_print_method_args):
3004 Fix display of parameter of methods.
3005
3d354654
PM
30062012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3007
3008 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3009 Add missing prototype.
3010
cafe75b0
JK
30112012-03-16 Yao Qi <yao@codesourcery.com>
3012 Jan Kratochvil <jan.kratochvil@redhat.com>
3013
3014 Fix false compilation warning.
3015 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3016
25f8c692
JL
30172012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3018 Pedro Alves <pedro@codesourcery.com>
3019
3020 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3021 (arm_register_g_packet_guesses): New function.
3022 (arm_gdbarch_init): Don't force a target description with
3023 registers when the executable is detected as M-profile. Instead
3024 set gdbarch->tdep->is_m. Register `g' packet guesses.
3025 (_initialize_arm_tdep): Initialize the new target description.
3026 * features/arm-with-m-fpa-layout.xml: New description.
3027 * features/arm-with-m-fpa-layout.c: New, generated.
3028
35c63cd8
JB
30292012-03-15 Joel Brobecker <brobecker@adacore.com>
3030
3031 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3032 Update function description.
3033 (insert_bp_location): Do not wipe bl->target_info out.
3034 * mem-break.c: #include "gdb_string.h".
3035 (default_memory_insert_breakpoint): Do not call target_read_memory
3036 with a pointer to the breakpoint's shadow_contents buffer. Use
3037 a local buffer instead.
3038 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3039
57651221
TT
30402012-03-15 Tom Tromey <tromey@redhat.com>
3041
3042 * NEWS: Mention "info vtbl", not "info vtable".
3043 * cp-support.c (info_vtbl_command): Fix comment.
3044 (_initialize_cp_support): Fix text.
3045
410528f0
TT
30462012-03-15 Tom Tromey <tromey@redhat.com>
3047
3048 * cp-valprint.c (cp_print_value_fields): Use
3049 print_function_pointer_address for vtable slot.
3050
c4aeac85
TT
30512012-03-15 Tom Tromey <tromey@redhat.com>
3052
3053 * gnu-v3-abi.c (struct value_and_voffset): New.
3054 (hash_value_and_voffset, eq_value_and_voffset)
3055 (compare_value_and_voffset, compute_vtable_size)
3056 (print_one_vtable, gnuv3_print_vtable): New functions.
3057 (init_gnuv3_ops): Initialize 'print_vtable' field.
3058 * cp-support.c (info_vtbl_command): New function.
3059 (_initialize_cp_support): Add "info vtbl".
3060 * cp-abi.h (cplus_print_vtable): Declare.
3061 (struct cp_abi_ops) <print_vtable>: New field.
3062 * cp-abi.c (cplus_print_vtable): New function.
3063 * NEWS: Update.
3064
95cbceff
TT
30652012-03-15 Tom Tromey <tromey@redhat.com>
3066
3067 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
3068 iterate_over_symbols.
3069
589b4a32
DE
30702012-03-14 Doug Evans <dje@google.com>
3071
3072 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
3073 DW_OP_GNU_parameter_ref.
3074
e837f12a
JK
30752012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3076
3077 Fix double prompt of 'interpreter-exec mi'.
3078 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
3079 (mi_interpreter_resume): use it.
3080 (mi_execute_command_input_handler): New function.
3081 * mi/mi-main.c (mi_execute_command): Move prompt printing to
3082 mi_execute_command_input_handler.
3083
ff1e4526 30842012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
3085
3086 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
3087 prototype.
3088 (darwin_debug_port_info): Make static.
3089 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
3090 * machoread.c (_initialize_machoread): Add prototype.
3091 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
3092 (i386_darwin_set_control, i386_darwin_get_control)
3093 i386_darwin_dr_set_addr, i386_darwin_get_addr)
3094 i386_darwin_get_status, i386_darwin_get_control):
3095 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
3096
d8a5d6ee
JB
30972012-03-13 Joel Brobecker <brobecker@adacore.com>
3098
3099 * ax-gdb.c (gen_usual_unary): Remove special handling of
3100 enum and bool types.
3101
af381b8c
JB
31022012-03-13 Joel Brobecker <brobecker@adacore.com>
3103
3104 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
3105
786c562f
JB
31062012-03-13 Joel Brobecker <brobecker@adacore.com>
3107
3108 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
3109
e3ebf1bb
JB
31102012-03-13 Chris January <chris.january@allinea.com>
3111
3112 * aix-thread.c (fill_sprs): Store the floating point registers
3113 at the correct offsets into vals.
3114
c5b7e1cb
DE
31152012-03-13 Doug Evans <dje@google.com>
3116
16899756
DE
3117 * NEWS: Mention symbol-reloading has been deleted.
3118 * symfile.c (symbol_reloading): Delete.
3119 (show_symbol_reloading): Delete.
3120 (_initialize_symfile): Delete set/show symbol-reloading.
3121
c5b7e1cb
DE
3122 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
3123 read_in_chain until we have successfully read it in.
3124 (load_full_comp_unit): Ditto.
3125 (read_signatured_type): Add comment.
3126
46cb6474
JB
31272012-03-13 Chris January <chris.january@allinea.com>
3128
3129 * stabsread.c (fix_common_block): Change type of valu argument
3130 to CORE_ADDR.
3131
76219d77
JB
31322012-03-13 Chris January <chris.january@allinea.com>
3133
3134 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
3135 instruction.
3136
87b0bb13
JK
31372012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3138
3139 * common/linux-procfs.c (linux_proc_get_int): New, from
3140 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
3141 field.
3142 (linux_proc_get_tgid): Only call linux_proc_get_int.
3143 (linux_proc_get_tracerpid): New.
3144 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
3145 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
3146 linux_proc_pid_has_state.
3147 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
3148 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
3149 (linux_ptrace_attach_warnings): New.
3150 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
3151 New declaration.
3152 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
3153 (linux_nat_attach): New variables ex, buffer, message and message_s.
3154 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
3155
5f572dec
JK
31562012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3157
3158 * Makefile.in (linux-ptrace.o): New.
3159 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
3160 from linux-nat.c.
3161 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
3162 * common/linux-ptrace.c: New file.
3163 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
3164 * config/arm/linux.mh: Likewise.
3165 * config/i386/linux.mh: Likewise.
3166 * config/i386/linux64.mh: Likewise.
3167 * config/ia64/linux.mh: Likewise.
3168 * config/m32r/linux.mh: Likewise.
3169 * config/m68k/linux.mh: Likewise.
3170 * config/mips/linux.mh: Likewise.
3171 * config/pa/linux.mh: Likewise.
3172 * config/powerpc/linux.mh: Likewise.
3173 * config/powerpc/ppc64-linux.mh: Likewise.
3174 * config/powerpc/spu-linux.mh: Likewise.
3175 * config/s390/s390.mh: Likewise.
3176 * config/sparc/linux.mh: Likewise.
3177 * config/sparc/linux64.mh: Likewise.
3178 * config/xtensa/linux.mh: Likewise.
3179 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
3180 common/linux-procfs.c.
3181 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
3182
44f238bb
PA
31832012-03-13 Hui Zhu <teawater@gmail.com>
3184 Pedro Alves <palves@redhat.com>
3185
3186 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
3187 CREATE_BREAKPOINT_FLAGS_INSERTED.
3188 (create_breakpoint_sal, create_breakpoints_sal)
3189 (base_breakpoint_create_breakpoints_sal)
3190 (tracepoint_create_breakpoints_sal)
3191 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
3192 down.
3193 (break_command_1, handle_gnu_v3_exceptions, trace_command)
3194 (ftrace_command, strace_command): Adjust.
3195 (create_tracepoint_from_upload): Pass
3196 CREATE_BREAKPOINT_FLAGS_INSERTED.
3197 * breakpoint.h (enum breakpoint_create_flags): New.
3198 (create_breakpoint): New flags parameter.
3199 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3200 * python/py-breakpoint.c (bppy_init): Adjust.
3201 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
3202 * spu-tdep.c (spu_catch_start): Adjust.
3203
1e51243a
PA
32042012-03-13 Pedro Alves <palves@redhat.com>
3205 Hui Zhu <teawater@gmail.com>
3206 Yao Qi <yao@codesourcery.com>
3207
3208 * remote.c (struct remote_state): New field `starting_up'.
3209 (remote_start_remote): Set and clear it.
3210 (remote_can_download_tracepoint): If starting up, return false.
3211
fa3064dd
YQ
32122012-03-13 Yao Qi <yao@codesourcery.com>
3213
3214 * inferior.h (struct inferior): Remove fields any_syscall_count,
3215 syscalls_counts and total_syscalls_count. Move them to new
3216 struct catch_syscall_inferior_data in breakpoint.c.
3217 * breakpoint.c: Call DEF_VEC_I(int).
3218 (struct catch_syscall_inferior_data): New.
3219 (get_catch_syscall_inferior_data): New.
3220 (catch_syscall_inferior_data_cleanup): New.
3221 (insert_catch_syscall): Update to access data in
3222 struct catch_syscall_inferior_data.
3223 (insert_catch_syscall): Likewise.
3224 (remove_catch_syscall): Likewise.
3225 (remove_catch_syscall): Likewise.
3226 (is_syscall_catchpoint_enabled): Likewise.
3227 (add_catch_command): Likewise.
3228 (_initialize_breakpoint): Register cleanup.
3229 * breakpoint.h: Removed DEF_VEC_I(int).
3230 * dwarf2loc.c: Call DEF_VEC_I(int).
3231 * mi/mi-main.c: Likewise.
3232
460fac3c
MK
32332012-03-12 Mark Kettenis <kettenis@gnu.org>
3234
3235 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
3236
e1aca11e
JB
32372012-03-12 Chris January <chris.january@allinea.com>
3238
3239 * aix-thread.c (_initialize_aix_thread): Add prototype.
3240 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
3241 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
3242
649c7061
JB
32432012-03-12 Joel Brobecker <brobecker@adacore.com>
3244
3245 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
3246 include of "amd64-nat.h".
3247
0b49e518
TT
32482012-03-12 Tom Tromey <tromey@redhat.com>
3249
3250 * buildsym.c (record_pending_block): Now static.
3251 * buildsym.h: (record_pending_block): Remove.
3252
fd24fa94
AT
32532012-03-12 Andreas Tobler <andreast@fgznet.ch>
3254
3255 * amd64bsd-nat.c: Include amd64bsd-nat.h.
3256
ba919b58
TT
32572012-03-09 Tom Tromey <tromey@redhat.com>
3258
3259 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
3260 producer_is_gxx_lt_4_6>: New fields.
3261 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
3262
a48e046c
TT
32632012-03-09 Tom Tromey <tromey@redhat.com>
3264
3265 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
3266
6f5e9362
JB
32672012-03-08 Joel Brobecker <brobecker@adacore.com>
3268
3269 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
3270 prototype.
3271
8d037db9
JB
32722012-03-08 Joel Brobecker <brobecker@adacore.com>
3273
3274 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
3275
4e841acf
JK
32762012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3277
3278 Fix -Wmissing-prototypes build.
3279 * arm-linux-nat.c (get_thread_id): Make it static.
3280 * xtensa-linux-nat.c (get_thread_id): Likewise.
3281
c6030312
JB
32822012-03-08 Joel Brobecker <brobecker@adacore.com>
3283
3284 * server.c (process_point_options): If a conditional expression
3285 is found, only print a message if remote_debug is nonzero.
3286
52323be9
LM
32872012-03-08 Luis Machado <lgustavo@codesourcery.com>
3288
3289 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
3290 of internal error for unknown/unsupported types.
3291
7fe25d9b
JK
32922012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3293
3294 Fix CU relative vs. absolute DIE offsets.
3295 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
3296 offset to offset_in_cu.
3297 * dwarf2read.c (process_enumeration_scope): Add CU offset to
3298 TYPE_OFFSET.
3299 (dwarf2_fetch_die_location_block): Rename parameter offset to
3300 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
3301
05e7c244
JK
33022012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3303
3304 * libunwind-frame.c: Rename to ...
3305 * ia64-libunwind-tdep.c: ... here.
3306 * libunwind-frame.h: Rename to ...
3307 * ia64-libunwind-tdep.h: ... here.
3308 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
3309 ia64-libunwind-tdep.h.
3310 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
3311 * README (--with-libunwind): Rename to ...
3312 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
3313 * config.in: Regenerate.
3314 * configure: Regenerate.
3315 * configure.ac: New option --with-libunwind-ia64, make the
3316 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
3317 Remove AC_DEFINE for HAVE_LIBUNWIND.
3318 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
3319 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
3320 Rename libunwind-frame in the general comment.
3321 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
3322 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
3323 Move forward declarations inside #ifndef. Rename libunwind-frame in
3324 the general comment.
3325 * ia64-tdep.c: Rename libunwind-frame.h #include to
3326 ia64-libunwind-tdep.h.
3327 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
3328 (ia64_libunwind_descr): Rename libunwind-frame to
3329 ia64-libunwind-tdep in these function comments.
3330 * ia64-tdep.h: Rename libunwind-frame.h #include to
3331 ia64-libunwind-tdep.h.
3332 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
3333 ia64-libunwind-tdep in that data comment.
3334
3755cbfd
JK
33352012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3336
3337 * libunwind-frame.h (struct frame_unwind): New declaration.
3338
d1cda5d9
JB
33392012-03-08 Joel Brobecker <brobecker@adacore.com>
3340
3341 * breakpoint.c (_initialize_breakpoint): Fix error in help of
3342 "set breakpoint condition-evaluation" command.
3343
a0ba0aa2
TG
33442012-03-08 Tristan Gingold <gingold@adacore.com>
3345
3346 * sparc-stub.c: Move to stubs/
3347 * sh-stub.c: Likewise.
3348 * m68k-stub.c: Likewise.
3349 * m32r-stub.c: Likewise.
3350 * i386-stub.c: Likewise.
3351
7b8b6d6d
AS
33522012-03-08 Andreas Schwab <schwab@linux-m68k.org>
3353
007cafee
AS
3354 * m68klinux-tdep.c (m68k_linux_init_abi): Register
3355 linux_get_siginfo_type.
3356
7b8b6d6d
AS
3357 * m68klinux-nat.c: Include "gdb_proc_service.h".
3358 (PTRACE_GET_THREAD_AREA): Define.
3359 (ps_get_thread_area): New function.
3360
bba74b36
YQ
33612012-03-08 Yao Qi <yao@codesourcery.com>
3362
3363 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
3364 `xsnprintf'.
3365 (remote_query_attached): Likewise.
3366 (remote_static_tracepoint_marker_at): Likewise.
3367 (remote_set_permissions): Likewise.
3368 (remote_detach_1, extended_remote_attach_1): Likewise.
3369 (send_g_packet, remote_vkill): Likewise.
3370 (extended_remote_disable_randomization): Likewise.
3371 (remote_add_target_side_condition): Likewise.
3372 (remote_insert_breakpoint): Likewise.
3373 (remote_remove_breakpoint): Likewise.
3374 (remote_insert_watchpoint): Likewise.
3375 (remote_remove_watchpoint): Likewise.
3376 (remote_insert_hw_breakpoint): Likewise.
3377 (remote_insert_hw_breakpoint): Likewise.
3378 (remote_remove_hw_breakpoint): Likewise.
3379 (remote_download_command_source): Likewise.
3380 (remote_download_tracepoint): Likewise.
3381 (remote_download_trace_state_variable): Likewise.
3382 (remote_disable_tracepoint): Likewise.
3383 (remote_trace_set_readonly_regions): Likewise.
3384 (remote_get_tracepoint_status): Likewise.
3385 (remote_trace_find): Likewise.
3386 (remote_get_trace_state_variable_value): Likewise.
3387 (remote_set_disconnected_tracing): Likewise.
3388 (remote_set_circular_trace_buffer): Likewise.
3389 (remote_get_min_fast_tracepoint_insn_len): Likewise.
3390 (remote_use_agent): Likewise.
3391 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
3392 Update callers.
3393
9b224c5e
PA
33942012-03-07 Pedro Alves <palves@redhat.com>
3395
3396 * NEWS: Mention QProgramSignals.
3397 * inferior.h (update_signals_program_target): Declare.
3398 * infrun.c: (update_signals_program_target): New.
3399 (handle_command): Update the target of the new program signals
3400 array changes.
3401 * remote.c (PACKET_QProgramSignals): New enum.
3402 (last_program_signals_packet): New global.
3403 (remote_program_signals): New.
3404 (remote_start_remote): Update the target with the program signals
3405 list.
3406 (remote_protocol_features): Add entry for QPassSignals.
3407 (remote_open_1): Free anc clear last_program_signals_packet.
3408 (init_remote_ops): Install remote_program_signals.
3409 * target.c (update_current_target): Adjust.
3410 (target_program_signals): New.
3411 * target.h (struct target_ops) <to_program_signals>: New field.
3412 (target_program_signals): Declare.
3413
74c48cbb
PA
34142012-03-07 Pedro Alves <palves@redhat.com>
3415
3416 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
3417 extensions.
3418
0c13fc49
AS
34192012-03-07 Andreas Schwab <schwab@linux-m68k.org>
3420
3421 * m68klinux-nat.c (getregs_supplies): Make static.
3422 (getfpregs_supplies): Likewise.
3423 (have_ptrace_getregs): Likewise.
3424
1281d2a3
JB
34252012-03-06 Joel Brobecker <brobecker@adacore.com>
3426
3427 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
3428 in call to get_die_type_at_offset.
3429
2b03b41d
SS
34302012-03-06 Stan Shebs <stan@codesourcery.com>
3431
3432 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
3433 * mi/mi-cmd-disas.c: Ditto.
3434 * mi/mi-cmd-env.c: Ditto.
3435 * mi/mi-cmd-file.c: Ditto.
3436 * mi/mi-cmd-stack.c: Ditto.
3437 * mi/mi-cmd-target.c: Ditto.
3438 * mi/mi-cmd-var.c: Ditto.
3439 * mi/mi-cmds.c: Ditto.
3440 * mi/mi-cmds.h: Ditto.
3441 * mi/mi-console.c: Ditto.
3442 * mi/mi-getopt.c: Ditto.
3443 * mi/mi-getopt.h: Ditto.
3444 * mi/mi-interp.c: Ditto.
3445 * mi/mi-main.c: Ditto.
3446 * mi/mi-out.c: Ditto.
3447 * mi/mi-parse.c: Ditto.
3448 * mi/mi-parse.h: Ditto.
3449 * mi/mi-symbol-cmds.c: Ditto.
3450
3451 * mi/mi-getopt.h: Move mi_opt struct up.
3452 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
3453 return.
3454 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
3455
c988ad87
TT
34562012-03-06 Tom Tromey <tromey@redhat.com>
3457
3458 * proc-service.c (ps_pglobal_lookup): Set the current program
3459 space.
3460
1b7c1b10
PA
34612012-03-06 Pedro Alves <palves@redhat.com>
3462
3463 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
3464
3c182069
JB
34652012-03-05 Joel Brobecker <brobecker@adacore.com>
3466
3467 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
3468
2e794194
JK
34692012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3470
3471 Code cleanup.
3472 * common/linux-osdata.c (linux_common_core_of_thread): New function
3473 comment.
3474 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
3475 call by linux_common_core_of_thread.
3476 (linux_nat_core_of_thread_1): Remove.
3477 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
3478 * linux-thread-db.c: Include linux-osdata.h.
3479 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
3480 linux_common_core_of_thread.
3481
9f9f1f31
TT
34822012-03-05 Tom Tromey <tromey@redhat.com>
3483
3484 * value.c (value_primitive_field): Don't fetch contents for
3485 non-virtual bases.
3486
b7b189f3
TT
34872012-03-05 Tom Tromey <tromey@redhat.com>
3488
3489 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
3490
05b8a789 34912012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 3492
5538f557
JB
3493 * s390-nat.c: Include "gregset.h".
3494
75528772
JK
34952012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3496
3497 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
3498 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
3499 (libunwind_load): New variable so_error, use it for dlerror. Try to
3500 load also LIBUNWIND_SO_7.
3501
275418ae
PA
35022012-03-05 Pedro Alves <palves@redhat.com>
3503
3504 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
3505 is not NULL, and remove resulting dead code.
3506
5cbb9812
TS
35072012-03-05 Thomas Schwinge <thomas@codesourcery.com>
3508
3509 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
3510 prologue to sh_analyze_prologue.
3511 (sh_analyze_prologue): Make better use of such an upper limit, and
3512 generally be more cautious about accessing memory.
3513
541515ad
TT
35142012-03-05 Tom Tromey <tromey@redhat.com>
3515
3516 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
3517 _initialize_ia64_hpux_tdep.
3518
b4d36fb8
PA
35192012-03-05 Pedro Alves <palves@redhat.com>
3520
24490249
PA
3521 PR gdb/13766
3522
b4d36fb8
PA
3523 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
3524 the register state is clear, supply explicit zero, instead of
3525 marking the register unavailable.
3526
60c9a3c0
TG
35272012-03-05 Tristan Gingold <gingold@adacore.com>
3528
3529 * NEWS: Mention OpenVMS ia64 new target.
3530
696759ad
TG
35312012-03-05 Tristan Gingold <gingold@adacore.com>
3532
3533 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
3534 (ia64_unw_accessors, ia64_unw_rse_accessors)
3535 (ia64_libunwind_descr): Declare.
3536 * ia64-vms-tdep.c: New file.
3537 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
3538 (ia64_libunwind_descr): Make them public.
3539 * configure.tgt: Add ia64-*-*vms*.
3540 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
3541 (ALLDEPFILES): Add ia64-vms-tdep.c
3542
34864976
TG
35432012-03-05 Tristan Gingold <gingold@adacore.com>
3544
169081d0
TG
3545 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
3546 * remote.c (PACKET_qXfer_uib): New enum value.
3547 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
3548 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
3549 (_initialize_remote): Call add_packet_config_cmd for
3550 xfer:uib packet.
3551
35522012-03-05 Tristan Gingold <gingold@adacore.com>
3553
3554 * osabi.c (gdb_osabi_names): Add OpenVMS.
3555 (generic_elf_osabi_sniffer): Likewise.
3556 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 3557
6597b100
JK
35582012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3559
3560 Removed unused code.
3561 * libunwind-frame.c (libunwind_frame_unwind)
3562 (libunwind_frame_base_address): Remove.
3563 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
3564
87399aa1
YQ
35652012-03-04 Yao Qi <yao@codesourcery.com>
3566
3567 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
3568 remove trailing new line.
3569 (agent_run_command, agent_run_command): Add _ markup.
3570 (agent_capability_check): Likewise.
3571
abf1152a
JK
35722012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3573
3574 * breakpoint.c (set_condition_evaluation_mode): Set
3575 CONDITION_EVALUATION_MODE unconditionally.
3576
5808517f
YQ
35772012-03-03 Yao Qi <yao@codesourcery.com>
3578
3579 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
3580 * common/agent.h: Update declaration.
3581 * inf-child.c (inf_child_use_agent): New.
3582 (inf_child_can_use_agent): New.
3583 (inf_child_target): Initialize fields `to_use_agent'
3584 and `to_can_use_agent'.
3585 * agent.c (agent_new_objfile): New.
89b7509a 3586 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
3587 observer.
3588
3589 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3590 New.
89b7509a 3591 (linux_target_install_ops): Initialize field
5808517f
YQ
3592 `to_static_tracepoint_markers_by_strid'.
3593 * remote.c (free_current_marker): Move it to ...
3594 * tracepoint.c (free_current_marker): ... here. New.
3595 (cleanup_target_stop): New.
3596 * tracepoint.h: Declare free_current_marker.
3597 * NEWS: Add one entry about `info static-tracepoint-marker'.
3598
58b4daa5
YQ
35992012-03-03 Yao Qi <yao@codesourcery.com>
3600
3601 * common/agent.c (agent_loaded_p): New.
89b7509a 3602 (agent_look_up_symbols): New global.
58b4daa5
YQ
3603 * common/agent.h: Declare agent_loaded_p.
3604
8ffcbaaf
YQ
36052012-03-03 Yao Qi <yao@codesourcery.com>
3606
3607 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
3608 (agent_capability_check, agent_capability_invalidate): New.
3609 (symbol_list): New array element.
3610 * common/agent.h (enum agent_capa): New.
3611 * target.c (target_pre_inferior): Call agent_capability_invalidate.
3612
d1feda86
YQ
36132012-03-03 Yao Qi <yao@codesourcery.com>
3614
3615 * target.h (struct target_ops) <to_use_agent>: New field.
3616 (struct target_ops) <to_can_use_agent>: New field.
3617 (target_use_agent, target_can_use_agent): New macro.
3618 * target.c (update_current_target): Update.
3619 * remote.c: New enum `PACKET_QAgent'.
3620 (remote_protocol_features): Add a new element.
3621 (remote_use_agent, remote_can_use_agent): New.
3622 (init_remote_ops): Initialize field `can_use_agent' with
3623 remote_can_use_agent. Intiailize field `use_agent' with
3624 remote_use_agent.
3625 * common/agent.c (use_agent): New global.
3626 * common/agent.h: Declare it.
3627 * tracepoint.c (info_static_tracepoint_markers_command): Add
3628 comment.
3629 * Makefile.in (SFILES): Add common/agent.c and agent.c.
3630 (COMMON_OBS): Add common/agent.o and agent.o
3631 (common-agent.o): New rule.
3632 * agent.c: New.
3633
2fa291ac
YQ
36342012-03-03 Yao Qi <yao@codesourcery.com>
3635
3636 * common/agent.c: New.
3637 * common/agent.h: New.
3638 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
3639 AC_CHECK_HEADERS.
3640 * configure, configh.in: Regenerated.
3641
9fc05685
KB
36422012-03-02 Kevin Buettner <kevinb@redhat.com>
3643
3644 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
3645 unless it exists for this architecture.
3646
a5ee536b
JB
36472012-03-02 Joel Brobecker <brobecker@adacore.com>
3648
3649 * language.h (struct language_defn): New "method" la_read_var_value.
3650 * findvar.c: #include "language.h".
3651 (default_read_var_value): Renames read_var_value. Rewrite
3652 function description.
3653 (read_var_value): New function.
3654 * value.h (default_read_var_value): Add prototype.
3655 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
3656 New functions.
3657 (ada_language_defn): Add entry for la_read_var_value.
3658 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
3659 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
3660 language_defn structures to add entry for new la_read_var_value
3661 field.
3662
f59f708a
PA
36632012-03-02 Tom Tromey <tromey@redhat.com>
3664 Pedro Alves <palves@redhat.com>
3665
3666 PR breakpoints/13776:
3667 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
3668 breakpoints.
3669 (delete_longjmp_breakpoint_at_next_stop): New.
3670 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
3671 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
3672 before deleting the inferior. Add comments.
3673 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
3674 breakpoints immediately, but only on next stop. Move that code
3675 next to where we mark other breakpoints for deletion.
3676
44099a67
JB
36772012-03-02 Joel Brobecker <brobecker@adacore.com>
3678
3679 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
3680 marker.
3681 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
3682 violation.
3683
2a2ef594
PA
36842012-03-02 Pedro Alves <palves@redhat.com>
3685
3686 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
3687
b261e0c5
UW
36882012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
3689
3690 Fix -Wmissing-prototypes build.
3691 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
3692 * remote-sim.c (gdbsim_has_all_memory): Likewise.
3693 (gdbsim_has_memory): Likewise.
3694
a95babbf
YQ
36952012-03-02 Yao Qi <yao@codesourcery.com>
3696
3697 Fix -Wmissing-prototypes build.
3698 * charset.c (phony_iconv_open): Make static.
3699 (phony_iconv_close, phony_iconv): Likewise.
3700 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
3701 * i386-windows-nat.c (_initialize_i386_windows_nat): New
3702 prototype.
3703 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
3704 * ser-mingw.c (create_select_thread): Make static.
3705 * windows-termcap.c (tgetent): New prototype.
3706 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
3707
d603d4b3
JK
37082012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
3709
3710 Fix -Wmissing-prototypes build.
3711 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
3712 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
3713 (_initialize_loadable): New prototypes.
3714
7fb3ad1f
DE
37152012-03-02 Doug Evans <dje@google.com>
3716
3717 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
3718 abbrev table, read_comp_unit will do it.
3719
693be288
JK
37202012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3721
3722 Fix -Wmissing-prototypes build.
3723 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
3724 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
3725 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
3726 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
3727 (_initialize_arm_symbian_tdep): New prototype.
3728 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
3729 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
3730 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
3731 static.
3732 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
3733 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
3734 prototype.
3735 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
3736 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
3737 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
3738 static.
3739 * moxie-tdep.c (moxie_process_record): Likewise.
3740 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
3741 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
3742 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
3743 (_initialize_rl78_tdep): New prototype.
3744 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
3745 (_initialize_rx_tdep): New prototype.
3746 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
3747 (_initialize_darwin_solib): New prototype.
3748 * solib-spu.c: Include solib-spu.h.
3749 (_initialize_spu_solib): New prototype.
3750 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
3751 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
3752 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3753 (tic6x_software_single_step): Make it static.
3754 (_initialize_tic6x_tdep): New prototype.
3755
638234e5
JK
37562012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3757
3758 Fix -Wmissing-prototypes build.
3759 * cris-tdep.c (cris_can_use_hardware_watchpoint)
3760 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3761
f4a6f16d
JK
37622012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3763
3764 Fix -Wmissing-prototypes build.
3765 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3766 (frv_have_stopped_data_address): Remove.
3767
04dcf5fa
JK
37682012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3769
3770 Fix -Wmissing-prototypes build.
3771 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3772 * sh-tdep.c: Include sh64-tdep.h.
3773 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3774 * sh64-tdep.c: Include sh64-tdep.h.
3775 * sh64-tdep.h: New file.
3776
19080931
MR
37772012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3778
3779 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3780
9aac7884
MR
37812012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3782
3783 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3784 sp_regnum once the gdbarch_init_osabi hook has been called.
3785
a385295e
MR
37862012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3787
3788 * mips-tdep.c (mips32_bc1_pc): New function.
3789 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
3790 BPOSGE32 and BPOSGE64 instructions.
3791 (deal_with_atomic_sequence): Likewise.
3792 (mips32_instruction_has_delay_slot): Likewise.
3793
1faeff08 37942012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
3795 Chris Dearman <chris@mips.com>
3796 Maciej W. Rozycki <macro@codesourcery.com>
3797 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
3798
3799 * features/mips-dsp.xml: New file.
3800 * features/mips64-dsp.xml: New file.
3801 * features/mips-dsp-linux.xml: New file.
3802 * features/mips64-dsp-linux.xml: New file.
3803 * features/Makefile (WHICH): Add mips-dsp-linux and
3804 mips64-dsp-linux.
3805 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
3806 * features/mips-dsp-linux.c: New file.
3807 * features/mips64-dsp-linux.c: New file.
3808 * regformats/mips-dsp-linux.dat: New file.
3809 * regformats/mips64-dsp-linux.dat: New file.
3810 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
3811 registers.
3812 (mips64_linux_register_addr): Likewise.
3813 (mips64_linux_regsets_fetch_registers): Likewise.
3814 (mips64_linux_regsets_store_registers): Likewise.
3815 (mips64_linux_fetch_registers): Update call to
3816 mips64_linux_regsets_fetch_registers.
3817 (mips64_linux_store_registers): Update call to
3818 mips64_linux_regsets_store_registers.
3819 (mips_linux_read_description): Probe for DSP registers.
3820 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
3821 and initialize_tdesc_mips64_dsp_linux.
3822 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
3823 Remove padding of no longer used embedded register slots.
3824 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
3825 (MIPS_RESTART_REGNUM): Redefine enum value.
3826 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
3827 strings.
3828 (mips_tx39_reg_names): Likewise.
3829 (mips_linux_reg_names): New array of register names for Linux
3830 targets.
3831 (mips_register_name): Check for a null pointer in
3832 mips_processor_reg_names and return an empty string.
3833 (mips_register_type): Exclude embedded registers for the IRIX
3834 and Linux ABIs.
3835 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
3836 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
3837 DSP registers.
3838 (mips_stab_reg_to_regnum): Handle DSP accumulators.
3839 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
3840 (mips_gdbarch_init): Likewise. Initialize internal register
3841 indices for the Linux ABI. Use dynamic numbers to refer to
3842 registers, as applicable, while parsing the target description.
3843 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
3844
263689d8
JB
38452012-03-01 Joel Brobecker <brobecker@adacore.com>
3846
3847 * frame.h (read_frame_register_unsigned): Fix typo in function
3848 description.
3849
f3b4f45c
PA
38502012-03-01 Pedro Alves <palves@redhat.com>
3851
3852 * jit-reader.in [!__cplusplus]
3853 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
3854
b03a2011
PA
38552012-03-01 Pedro Alves <palves@redhat.com>
3856
3857 * configure.ac (build_warnings): Add -Wmissing-prototypes.
3858 * configure: Regenerate.
3859
70221824
PA
38602012-03-01 Pedro Alves <palves@redhat.com>
3861
3862 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
3863 * breakpoint.c (create_exception_master_breakpoint, trace_command)
3864 (ftrace_command, strace_command): Make static.
3865 * d-lang.c (_initialize_d_language): Declare.
3866 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
3867 * dwarf2loc.c (_initialize_dwarf2loc):
3868 * dwarf2read.c (process_psymtab_comp_unit): Make static.
3869 * exec.c (exec_get_section_table): Make static.
3870 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
3871 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
3872 * inferior.c (remove_inferior_command, add_inferior_command)
3873 (clone_inferior_command): Make static.
3874 * linux-nat.c (linux_nat_thread_address_space)
3875 (linux_nat_core_of_thread): Make static.
3876 * linux-tdep.c (_initialize_linux_tdep): Declare.
3877 * objc-lang.c (_initialize_objc_lang): Declare.
3878 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
3879 Make static.
3880 (_initialize_opencl_language): Declare.
3881 * record.c (_initialize_record): Declare.
3882 * remote.c (demand_private_info, remote_get_tib_address)
3883 (remote_supports_cond_tracepoints)
3884 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
3885 Make static.
3886 * skip.c (_initialize_step_skip): Declare.
3887 * symtab.c (skip_prologue_using_lineinfo): Make static.
3888 * tracepoint.c (delete_trace_state_variable)
3889 (trace_variable_command, delete_trace_variable_command)
3890 (get_uploaded_tsv, find_matching_tracepoint_location)
3891 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
3892 Make static.
3893 * value.c (pack_unsigned_long): Make static.
3894 * varobj.c (varobj_ensure_python_env): Make static.
3895 * windows-tdep.c (_initialize_windows_tdep): Declare.
3896 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
3897
33fbcbee
PA
38982012-03-01 Pedro Alves <palves@redhat.com>
3899
3900 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
3901 gdbarch parameter.
3902 (linux_init_abi): Install it as has_shared_address_space gdbarch
3903 callback.
3904
44d0cd3b
PA
39052012-03-01 Pedro Alves <palves@redhat.com>
3906
3907 * observer.c (observer_test_first_notification_function)
3908 (observer_test_second_notification_function)
3909 (observer_test_third_notification_function): Add declarations.
3910
ed01b82c
PA
39112012-03-01 Pedro Alves <palves@redhat.com>
3912
3913 * common/signals.c (default_target_signal_to_host)
3914 (default_target_signal_from_host): Move ...
3915 * arch-utils.c: ... here.
3916 * arch-utils.h (default_target_signal_to_host)
3917 (default_target_signal_from_host): Declare.
3918
3919 * common/signals.c (target_signal_from_command): Move ...
3920 * infrun.c: ... here.
3921 * inferior.h (target_signal_from_command): Declare.
3922 * target.h (target_signal_from_command)
3923 (default_target_signal_from_host, default_target_signal_to_host):
3924 Delete declarations.
3925
3926 * common/signals.c (_initialize_signals): Delete.
3927
c9b87335
PA
39282012-03-01 Pedro Alves <palves@redhat.com>
3929
3930 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
3931 both __cplusplus and !__cplusplus.
3932
9340a6c0
PA
39332012-03-01 Pedro Alves <palves@redhat.com>
3934
3935 * psymtab.c (find_and_open_source): Delete declaration.
3936 * source.c (find_and_open_source): Move comment ...
3937 * source.h (find_and_open_source): ... to this new declaration.
3938
e451c4a1
PA
39392012-03-01 Pedro Alves <palves@redhat.com>
3940
3941 * inline-frame.c: Include inline-frame.h.
3942
983fb104
PA
39432012-03-01 Pedro Alves <palves@redhat.com>
3944
3945 * tui/tui-data.c (set_gen_win_origin): Delete.
3946 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
3947 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
3948
5fbce5df
PA
39492012-03-01 Pedro Alves <palves@redhat.com>
3950
3951 * remote.c (encode_actions): Delete declaration.
3952 * tracepoint.c (encode_actions): Make extern.
3953 * tracepoint.h (encode_actions): Declare.
3954
49a8461d
PA
39552012-03-01 Pedro Alves <palves@redhat.com>
3956
3957 * python/py-breakpoint.c: Include python.h.
3958 * python/py-continueevent.c (create_continue_event_object): Make
3959 static.
3960 * python/py-lazy-string.c (stpy_get_type): Make static.
3961 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3962 Make static.
3963 * python/py-utils.c (unicode_to_target_python_string): Make
3964 static.
3965 * python/py-value.c: Include python.h.
3966
9079102f
PA
39672012-03-01 Pedro Alves <palves@redhat.com>
3968
3969 * inferior.c (delete_threads_of_inferior): Delete.
3970
a298c5e8
PA
39712012-03-01 Pedro Alves <palves@redhat.com>
3972
3973 Import fallback definitions from glibc.
3974
3975 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
3976 ps_prochandle): Forward declare.
3977 (ps_err_e): Use glibc's comments.
3978 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
3979 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3980 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
3981 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
3982 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
3983 (struct ps_prochandle): Adjust comment.
3984
e3084549
PA
39852012-03-01 Pedro Alves <palves@redhat.com>
3986
3987 * ada-lang.c (ada_modulus_from_name): Delete.
3988 * ada-lex.l (lexer_init): Make static.
3989
ad5f7d6e
PA
39902012-03-01 Pedro Alves <palves@redhat.com>
3991
3992 PR gdb/13767
3993
3994 * frame.c (read_frame_register_unsigned): New.
3995 * frame.h (read_frame_register_unsigned): Declare.
3996 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
3997 Handle it.
3998 (print_i387_control_word): New parameter `control_p'. Handle it.
3999 (i387_print_float_info): Handle unavailable float registers.
4000
e0a4d108
KS
40012012-03-01 Keith Seitz <keiths@redhat.com>
4002
4003 * linespec.c (decode_line_2): Sort the list of methods
4004 alphabetically before presenting the user with a selection
4005 menu.
4006
122d1940
DE
40072012-03-01 Doug Evans <dje@google.com>
4008
4009 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4010 has_namespace_info.
4011 (dwarf2_read_abbrevs): Remove corresponding initialization.
4012
7d74f244
DE
40132012-03-01 Scott J. Goldman <scottjg@vmware.com>
4014
4015 * NEWS: Mention new python command class gdb.COMMAND_USER.
4016 * cli/cli-cmds.c (show_user): Print error when used on a python
4017 command.
4018 (init_cli_cmds): Update documentation strings for "show user" and
4019 "set/show max-user-call-depth" to clarify that it does not apply to
4020 python commands.
4021 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4022 error check.
4023 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4024 gdb python api.
4025 * top.c (execute_command): Only execute a user-defined command as a
4026 legacy macro if c->user_commands is set.
4027
e88acd96
TT
40282012-03-01 Tom Tromey <tromey@redhat.com>
4029
4030 * valprint.h (struct generic_val_print_decorations): New.
4031 (generic_val_print): Declare.
4032 * valprint.c (generic_val_print): New function.
4033 * p-valprint.c (p_decorations): New global.
4034 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4035 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4036 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4037 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4038 * m2-valprint.c (m2_decorations): New global.
4039 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4040 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4041 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4042 TYPE_CODE_ERROR>: Call generic_val_print.
4043 * f-valprint.c (f_decorations): New global.
4044 (f_val_print): Use print_function_pointer_address.
4045 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4046 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4047 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4048 generic_val_print.
4049 * c-valprint.c (c_decorations): New global.
4050 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
4051 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
4052 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
4053 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
4054 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
4055 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
4056 case.
4057
d3eab38a
TT
40582012-03-01 Tom Tromey <tromey@redhat.com>
4059
4060 * valprint.c (val_print): Update.
4061 * p-valprint (pascal_val_print): Return void.
4062 * p-lang.h (pascal_val_print): Return void.
4063 * m2-valprint.c (m2_val_print): Return void.
4064 * m2-lang.h (m2_val_print): Return void.
4065 * language.h (struct language_defn) <la_val_print>: Return void.
4066 * language.c (unk_lang_val_print): Return void.
4067 * jv-valprint.c (java_val_print): Return void.
4068 * jv-lang.h (java_val_print): Return void.
4069 * f-valprint.c (f_val_print): Return void.
4070 * f-lang.h (f_val_print): Return void.
4071 * d-valprint.c (d_val_print): Return void.
4072 (dynamic_array_type): Update.
4073 * d-lang.h (d_val_print): Return void.
4074 * c-valprint.c (c_val_print): Return void.
4075 * c-lang.h (c_val_print): Return void.
4076 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
4077 void.
4078 * ada-lang.h (ada_val_print): Return void.
4079
35c0084b
TT
40802012-03-01 Tom Tromey <tromey@redhat.com>
4081
4082 * value.h (val_print): Return void.
4083 * valprint.c (val_print): Return void.
4084
a1f5dd1b
TT
40852012-03-01 Tom Tromey <tromey@redhat.com>
4086
4087 * value.h (common_val_print): Return void.
4088 * valprint.c (common_val_print): Return void.
4089
8e069a98
TT
40902012-03-01 Tom Tromey <tromey@redhat.com>
4091
4092 * value.h (value_print): Return void.
4093 * valprint.c (value_print): Return void.
4094 * p-valprint.c (pascal_value_print): Return void.
4095 * p-lang.h (pascal_value_print): Return void.
4096 * language.h (struct language_defn) <la_value_print>: Return
4097 void.
4098 * language.c (unk_lang_value_print): Return void.
4099 * jv-valprint.c (java_value_print): Return void.
4100 * jv-lang.h (java_value_print): Return void.
4101 * f-valprint.c (c_value_print): Don't declare.
4102 Include c-lang.h.
4103 * c-valprint.c (c_value_print): Return void.
4104 * c-lang.h (c_value_print): Return void.
4105 * ada-valprint.c (ada_value_print): Return void.
4106 * ada-lang.h (ada_value_print): Return void.
4107
be335936
TT
41082012-03-01 Tom Tromey <tromey@redhat.com>
4109
4110 * value.c (value_primitive_field): Handle virtual base classes.
4111
b0db66a7
TT
41122012-03-01 Tom Tromey <tromey@redhat.com>
4113
4114 * gdbtypes.h (struct vbase): Remove.
4115
132c57b4
TT
41162012-03-01 Tom Tromey <tromey@redhat.com>
4117
4118 * c-valprint.c (print_function_pointer_address): Move...
4119 * valprint.c: ... here. Make non-static.
4120 * m2-valprint.c (print_function_pointer_address): Remove.
4121 * valprint.h (print_function_pointer_address): Declare.
4122
e41eec66
JB
41232012-03-01 Joel Brobecker <brobecker@adacore.com>
4124
4125 * NEWS: Document the fact that one can provide a condition when
4126 creating an Ada exception catchpoint.
4127
19c37f24
TT
41282012-03-01 Tom Tromey <tromey@redhat.com>
4129
4130 * valprint.c (val_print_type_code_flags): Fix placement of
4131 trailing brace.
4132
f0fed3a3
JB
41332012-03-01 Joel Brobecker <brobecker@adacore.com>
4134
4135 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
4136 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
4137 environment variable before calling update-copyright.
4138
8ba85d85
JB
41392012-03-01 Joel Brobecker <brobecker@adacore.com>
4140
4141 * gnulib/extra/update-copyright: Update to the latest from
4142 gnulib's git repository.
4143 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
4144 variable to 2 instead of 1.
4145
8219b1e8
JB
41462012-02-29 Joel Brobecker <brobecker@adacore.com>
4147
4148 * varobj.c (c_value_of_variable): Remove dead code.
4149
718cb7da
JB
41502012-02-29 Joel Brobecker <brobecker@adacore.com>
4151
4152 * ada-lex.p (processId): Do not modify already encoded IDs.
4153 Update function documentation.
4154
739593e0
JB
41552012-02-29 Joel Brobecker <brobecker@adacore.com>
4156
4157 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4158 "name" with "struct symbol *name_sym".
4159 * ada-exp.y (write_var_or_type): Update call to
4160 ada_find_renaming_symbol.
4161 "name" with "struct symbol *name_sym". Adjust Implementation
4162 accordingly. Adjust the function documentation.
4163
852dff6c
JB
41642012-02-29 Joel Brobecker <brobecker@adacore.com>
4165
4166 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
4167 * ada-lang.c (ada_find_any_type): Add advance declaration.
4168 Make static. Replace ada_find_any_symbol by
4169 ada_find_any_type_symbol.
4170 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
4171 Improve function description. Make static.
4172 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
4173 Replace ada_find_any_symbol by ada_find_any_type_symbol.
4174
1b611343
JB
41752012-02-29 Joel Brobecker <brobecker@adacore.com>
4176
4177 * ada-lang.c (struct tag_args): Delete.
4178 (ada_get_tsd_type): Function body moved up in source file.
4179 (ada_tag_name_1, ada_tag_name_2): Delete.
4180 (ada_get_tsd_from_tag): New function.
4181 (ada_tag_name_from_tsd): New function.
4182 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
4183 to determine the tag name.
4184
41246937
JB
41852012-02-29 Joel Brobecker <brobecker@adacore.com>
4186
4187 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
4188 declaration.
4189 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
4190 function.
4191
ffde82bf
JB
41922012-02-29 Joel Brobecker <brobecker@adacore.com>
4193
4194 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
4195
2ad01556
JB
41962012-02-29 Joel Brobecker <brobecker@adacore.com>
4197
4198 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
4199 full searches.
4200
99b1c762
JB
42012012-02-29 Joel Brobecker <brobecker@adacore.com>
4202
4203 * ada-lang.c (constrained_packed_array_type): If there is a
4204 parallel XA type, use it to determine the array index type.
4205
2d4a02ee
JB
42062012-02-29 Joel Brobecker <brobecker@adacore.com>
4207
4208 * ada-valprint.c (ada_val_print_1): If our value is a reference
4209 to an array descriptor, dereference it before converting it
4210 to a simple array.
4211
c48db5ca
JB
42122012-02-29 Joel Brobecker <brobecker@adacore.com>
4213
4214 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
4215 creating fixed value.
4216 (ada_value_ind, ada_coerce_ref, assign_component)
4217 (ada_evaluate_subexp): Remove call to unwrap_value before
4218 call to ada_to_fixed_value.
4219
2e6fda7d
JB
42202012-02-29 Joel Brobecker <brobecker@adacore.com>
4221
4222 * ada-lang.c (to_fixed_array_type): Set result's type name.
4223
5845583d
JB
42242012-02-29 Joel Brobecker <brobecker@adacore.com>
4225
4226 * ada-lang.c (catch_ada_exception_command_split): Add new
4227 argument cond_string. Add support for condition at end of
4228 "catch exception" commands.
4229 (ada_decode_exception_location): Add new argument cond_string.
4230 Update call to catch_ada_exception_command_split.
4231 (create_ada_exception_catchpoint): Add new argument cond_string.
4232 Set the breakpoint condition if needed.
4233 (catch_ada_exception_command): Update call to
4234 ada_decode_exception_location.
4235 (ada_decode_assert_location): Add function documentation.
4236 Add support for condition at end of "catch assert" command.
4237 (catch_assert_command): Update calls to ada_decode_assert_location
4238 and create_ada_exception_catchpoint.
4239
9a7f938f
JK
42402012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4241
4242 Fix disp-step-syscall.exp: fork: single step over fork.
4243 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
4244 (i386_linux_get_syscall_number_from_regcache): ... here, new function
4245 comment, change parameters gdbarch and ptid to regcache. Remove
4246 parameter regcache, initialize gdbarch from regcache here.
4247 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
4248 New functions.
4249 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
4250 instead.
4251 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
4252 'syscall'. Make the 'int' check more strict.
4253
ffdf6de5
JK
42542012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4255
4256 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
4257 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
4258 (i386_linux_intx80_sysenter_syscall_record): ... here.
4259 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
4260 Use the renamed function name.
4261
c70a6932
JK
42622012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4263
4264 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
4265 * breakpoint.c (until_break_command): Likewise.
4266 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4267 * infcall.c (call_function_by_hand): Likewise.
4268 * infcmd.c (finish_forward): Likewise.
4269 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4270
05b8a789 42712012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 4272
d4cd3da9
JB
4273 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
4274 avoid variable assignments inside condition.
4275
6425366c
JK
42762012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4277
4278 Fix static analysis issue found by cppcheck.
4279 * microblaze-tdep.c (microblaze_extract_return_value): Fix
4280 uninitialized BUF for size 2.
4281
c8cef75f 42822012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
4283 Nathan Froyd <froydnj@codesourcery.com>
4284 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
4285
4286 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
4287 (mips16_instruction_has_delay_slot): Likewise.
4288 (mips_segment_boundary): Likewise.
4289 (mips_adjust_breakpoint_address): Likewise.
4290 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
4291
473347ad 42922012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 4293 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
4294
4295 * infrun.c (handle_inferior_event): Don't proceed through
4296 shared library trampolines if stepping at the machine
4297 instruction level.
4298
cf233303
MR
42992012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
4300
4301 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
4302 too.
4303
cb2cf4ce
TS
43042012-02-27 Thomas Schwinge <thomas@codesourcery.com>
4305
4306 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
4307 (sh_stub_unwind_sniffer): New functions.
4308 (sh_stub_unwind): New variable.
4309 (sh_gdbarch_init): Wire everything.
4310
644cebc9
PA
43112012-02-27 Pedro Alves <palves@redhat.com>
4312
4313 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
4314 (linux_nat_post_attach_wait): Adjust to use
4315 linux_proc_pid_is_stopped.
4316 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
4317 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
4318 based on pid_is_stopped from both linux-nat.c and
4319 gdbserver/linux-low.c, and renamed.
4320
283002cf
MR
43212012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4322
4323 * remote.c (remote_watchpoint_addr_within_range): New function.
4324 (init_remote_ops): Use it.
4325
9b3e86b1
MR
43262012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
4327
4328 * target.h (target_watchpoint_addr_within_range): Document macro.
4329
e36930bb
PA
43302012-02-24 Pedro Alves <palves@redhat.com>
4331
4332 * stack.c (set_last_displayed_sal): Issue internal_error instead
4333 of warning, and issue it after clearing the last displayed sal.
4334
883bc8d1
PA
43352012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4336 Pedro Alves <palves@redhat.com>
4337
4338 * breakpoint.c (until_break_command): Install breakpoints after
4339 all frame manipulations.
4340
b775012e
LM
43412012-02-24 Luis Machado <lgustavo@codesourcery.com>
4342
4343 * remote.c (remote_supports_cond_breakpoints): New forward
4344 declaration.
4345 (remote_add_target_side_condition): New function.
4346 (remote_insert_breakpoint): Add target-side breakpoint
4347 conditional if supported.
4348 (remote_insert_hw_breakpoint): Likewise.
4349 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
4350 hook.
4351
4352 * target.c (update_current_target): Inherit
4353 to_supports_evaluation_of_breakpoint_conditions.
4354 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
4355
4356 * target.h (struct target_ops)
4357 <to_supports_evaluation_of_breakpoint_conditions>: New field.
4358 (target_supports_evaluation_of_breakpoint_conditions): New #define.
4359
4360 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
4361 (condition_evaluation_both, condition_evaluation_auto,
4362 condition_evaluation_host, condition_evaluation_target,
4363 condition_evaluation_enums, condition_evaluation_mode_1,
4364 condition_evaluation_mode): New static globals.
4365 (translate_condition_evaluation_mode): New function.
4366 (breakpoint_condition_evaluation_mode): New function.
4367 (gdb_evaluates_breakpoint_condition_p): New function.
4368 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
4369 (mark_breakpoint_modified): New function.
4370 (mark_breakpoint_location_modified): New function.
4371 (set_condition_evaluation_mode): New function.
4372 (show_condition_evaluation_mode): New function.
4373 (bp_location_compare_addrs): New function.
4374 (get_first_location_gte_addr): New helper function.
4375 (set_breakpoint_condition): Free condition bytecode if locations
4376 has become unconditional. Call mark_breakpoint_modified (...).
4377 (condition_command): Call update_global_location_list (1) for
4378 breakpoints.
4379 (breakpoint_xfer_memory): Use is_breakpoint (...).
4380 (is_breakpoint): New function.
4381 (parse_cond_to_aexpr): New function.
4382 (build_target_condition_list): New function.
4383 (insert_bp_location): Handle target-side conditional
4384 breakpoints and call build_target_condition_list (...).
4385 (update_inserted_breakpoint_locations): New function.
4386 (insert_breakpoint_locations): Handle target-side conditional
4387 breakpoints.
4388 (bpstat_check_breakpoint_conditions): Add comment.
4389 (bp_condition_evaluator): New function.
4390 (bp_location_condition_evaluator): New function.
4391 (print_breakpoint_location): Print information on where the condition
4392 will be evaluated.
4393 (print_one_breakpoint_location): Likewise.
4394 (init_bp_location): Call mark_breakpoint_location_modified (...) for
4395 breakpoint location.
4396 (force_breakpoint_reinsertion): New functions.
4397 (update_global_location_list): Handle target-side breakpoint
4398 conditions.
4399 Reinsert locations that are already inserted if conditions have
4400 changed.
4401 (bp_location_dtor): Free agent expression bytecode.
4402 (disable_breakpoint): Call mark_breakpoint_modified (...).
4403 Call update_global_location_list (...) with parameter 1 for breakpoints.
4404 (disable_command): Call mark_breakpoint_location_modified (...).
4405 Call update_global_location_list (...) with parameter 1 for breakpoints.
4406 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
4407 (enable_command): mark_breakpoint_location_modified (...).
4408 (_initialize_breakpoint): Update documentation and add
4409 condition-evaluation breakpoint subcommand.
4410
4411 * breakpoint.h: Include ax.h.
4412 (condition_list): New data structure.
4413 (condition_status): New enum.
4414 (bp_target_info) <cond_list>: New field.
4415 (bp_location) <condition_changed, cond_bytecode>: New fields.
4416 (is_breakpoint): New prototype.
4417
3788aec7
LM
44182012-02-24 Luis Machado <lgustavo@codesourcery.com>
4419
4420 * remote.c (remote_state) <cond_breakpoints>: New field.
4421 (PACKET_ConditionalBreakpoints): New enum.
4422 (remote_cond_breakpoint_feature): New function.
4423 (remote_protocol_features): Add new ConditionalBreakpoints entry.
4424 (remote_supports_cond_breakpoints): New function.
4425 (_initialize_remote): Add new packet configuration for
4426 target-side conditional breakpoints.
4427
72895ff6
LM
44282012-02-24 Luis Machado <lgustavo@codesourcery.com>
4429
4430 * NEWS: Mention target-side conditional breakpoint support,
4431 new condition-evaluation breakpoint subcommand and remote
4432 packet extensions.
4433
dea2aa5f
LM
44342012-02-24 Luis Machado <lgustavo@codesourcery.com>
4435
4436 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
4437 number.
4438
8a8bc27f
TS
44392012-02-24 Thomas Schwinge <thomas@codesourcery.com>
4440
4441 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
4442 (after_prologue): Remove.
4443
6b446fdf
TT
44442012-02-23 Tom Tromey <tromey@redhat.com>
4445
4446 * jv-valprint.c (java_val_print): Remove dead code.
4447
ef59abfb
TG
44482012-02-23 Tristan Gingold <gingold@adacore.com>
4449
a09130f9
PA
4450 * ada-tasks.c (struct ada_tasks_inferior_data): Add
4451 known_tasks_element and known_tasks_length fields.
4452 (read_known_tasks_array): Change argument type. Use pointer type
4453 and number of elements from DATA. Adjust.
4454 (read_known_tasks_list): Likewise.
4455 (get_known_tasks_addr): Remove.
4456 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
4457 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
4458 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 4459
def166f6
JK
44602012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4461
4462 PR backtrace/13716
4463 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
4464 it after set_momentary_breakpoint.
4465
aeaa2474
SA
44662012-02-22 Sterling Augustine <saugustine@google.com>
4467
4468 PR 13689:
4469 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
4470
feea76c2
GB
44712012-02-22 Gary Benson <gbenson@redhat.com>
4472
4473 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
4474 (find_slot_in_mapped_hash): Likewise.
4475
f06e05e0
JK
44762012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4477
4478 PR build/13638
4479 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
4480 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
4481 * configure: Regenerate.
4482
b54a8fd7
PA
44832012-02-21 Tristan Gingold <gingold@adacore.com>
4484 Pedro Alves <palves@redhat.com>
4485
4486 * ia64-tdep.c: Do not include libunwind-ia64.h.
4487 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
4488 Include libunwind-ia64.h instead of libunwind.h.
4489 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
4490 for libunwind.h existence.
4491 * configure, config.in: Regenerate.
4492
dfcee124
AG
44932012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4494
4495 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
4496 instead of value_rtti_target_type.
4497 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
4498 instead of value_rtti_target_type.
4499 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
4500 value_rtti_target_type.
4501 * valops.c (value_ind): Extract function readjust_indirect_value_type.
4502 (value_rtti_target_type): Rename to ...
4503 (value_rtti_indirect_type): ... here and make it indirect. Update
4504 function comment.
4505 * value.c (readjust_indirect_value_type): New function.
4506 (coerce_ref): Support for enclosing type setting for references
4507 with readjust_indirect_value_type.
4508 * value.h (readjust_value_type): New declaration.
4509 (value_rtti_target_type): Rename to ...
4510 (value_rtti_indirect_type): ... here.
4511
02568277
AG
45122012-02-21 Anton Gorenkov <xgsa@yandex.ru>
4513
4514 * MAINTAINERS (Write After Approval): Add myself to the list.
4515
10c07b7e 45162012-02-20 Doug Evans <dje@google.com>
28ee876a 4517
d82ea6a8
DE
4518 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
4519 Rename objfile_p_char parameter to objfilep.
4520 (build_objfile_section_table): Result is now void. All callers
4521 updated.
4522 * objfiles.h (struct objfile): Tweak comments, whitespace.
4523 (build_objfile_section_table): Update.
4524
28ee876a
DE
4525 * elfread.c (elf_symfile_segments): Fix warning text.
4526
24c79950
TT
45272012-02-20 Tom Tromey <tromey@redhat.com>
4528
4529 PR gdb/13498:
4530 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
4531 particular set of file names once.
4532 (dw2_map_symbol_filenames): Likewise.
4533
3a9b40b6
JK
45342012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4535
4536 Code cleanup.
4537 * main.c (write_files): Remove the declaration.
4538 (external_editor_command): Move the declaration ...
4539 [GDBTK] (external_editor_command): ... here. Fix the comment.
4540
4d0795ca
TT
45412012-02-20 Tom Tromey <tromey@redhat.com>
4542
4543 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
4544 extraneous block.
4545
637fd620
TG
45462012-02-20 Tristan Gingold <gingold@adacore.com>
4547
4548 * darwin-nat.h (enum darwin_msg_state): Add comments.
4549
6f124894
TG
45502012-02-20 Tristan Gingold <gingold@adacore.com>
4551
4552 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
4553 value.
4554
2e6e3d9c
JB
45552012-20-18 Joel Brobecker <brobecker@adacore.com>
4556
4557 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
4558 between function description and implementation.
4559
2e8265fd
TT
45602012-02-17 Tom Tromey <tromey@redhat.com>
4561
4562 PR python/12070:
4563 * python/py-event.c (event_object_getset): New global.
4564 (event_object_type): Reference it.
4565 * python/py-type.c (field_object_getset): New global.
4566 (field_object_type): Reference it.
4567 * python/python-internal.h (gdb_py_generic_dict): Declare.
4568 * python/py-utils.c (gdb_py_generic_dict): New function.
4569
8544a150 45702012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 4571
8544a150 4572 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 4573
ca193e27
TS
45742012-02-17 Thomas Schwinge <thomas@codesourcery.com>
4575
4576 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
4577 TYPE_CALLING_CONVENTION annotation.
4578
e5586183
KB
45792012-02-16 Kevin Buettner <kevinb@redhat.com>
4580
4581 * MAINTAINERS: Add rx to target ISA section.
4582 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
4583 (ALLDEPFILES): Add rx-tdep.c.
4584
7dcd53a0
TT
45852012-02-16 Tom Tromey <tromey@redhat.com>
4586
4587 * symfile.c (symbol_file_add_main_1): Use inferior's
4588 symfile_flags.
4589 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
4590 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
4591 inferior.
4592 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
4593 inferior.
4594 (follow_exec): Use inferior's symfile_flags.
4595 * inferior.h (struct inferior) <symfile_flags>: New field.
4596
ddd60447
MF
45972012-02-16 Mike Frysinger <vapier@gentoo.org>
4598
4599 PR gdb/9734:
4600 * remote-sim.c (gdbsim_create_inferior): Call error() when
4601 sim_create_inferior() fails.
4602
b0d32fb6
TG
46032012-02-16 Josh Matthews <josh@joshmatthews.net>
4604
4605 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
4606
9addecb9
TT
46072012-02-16 Tom Tromey <tromey@redhat.com>
4608
4609 PR c++/13653:
4610 * thread.c (struct current_thread_cleanup) <was_removable>: New
4611 field.
4612 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
4613 (make_cleanup_restore_current_thread): Initialize new field.
4614
a58b110a
KB
46152012-02-15 Kevin Buettner <kevinb@redhat.com>
4616
4617 * MAINTAINERS: Add rl78 to target ISA section.
4618 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
4619 (ALLDEPFILES): Add rl78-tdep.c.
4620 * NEWS: Mention rl78 as a new target.
4621
4cb6da1c
AR
46222012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
4623
4624 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
4625 data.
4626 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
4627
3af2590d
TT
46282012-02-15 Tom Tromey <tromey@redhat.com>
4629
4630 PR gdb/12659:
4631 * infcmd.c (registers_info): Print just the current register's
4632 name.
4633
c6910659
TT
46342012-02-15 Tom Tromey <tromey@redhat.com>
4635
4636 * python/py-symbol.c (sympy_value): Use _().
4637
7cee1e54
PA
46382012-02-15 Pedro Alves <palves@redhat.com>
4639
4640 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
4641 output to be like native targets'.
4642 (remote_pid_to_str): Special case the null ptid.
4643
816338b5
SS
46442012-02-14 Stan Shebs <stan@codesourcery.com>
4645
4646 * NEWS: Mention enable count command.
4647 * breakpoint.h (struct breakpoint): New field enable_count.
4648 * breakpoint.c (enable_breakpoint_disp): Add count argument.
4649 (enable_breakpoint): Add arg to call.
4650 (struct disp_data): New struct.
4651 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
4652 (do_map_enable_once_breakpoint): Create a struct and pass it.
4653 (do_map_enable_delete_breakpoint): Ditto.
4654 (do_map_enable_count_breakpoint): New function.
4655 (enable_count_command): New function.
4656 (bpstat_stop_status): Decrement enable_count.
4657 (print_one_breakpoint_location): Report enable count.
4658 (_initialize_breakpoint): Add enable count command.
4659
c47a44f4
KB
46602012-02-14 Kevin Buettner <kevinb@redhat.com>
4661
4662 * rl78-tdep.c (reggroups.h): Include.
4663 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
4664 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
4665 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
4666 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
4667 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
4668 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
4669 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
4670 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
4671 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
4672 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
4673 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
4674 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
4675 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
4676 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
4677 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
4678 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
4679 beginning of register list.
4680 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
4681 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
4682 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
4683 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
4684 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
4685 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
4686 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
4687 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
4688 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
4689 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
4690 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
4691 the pseudo registers. Rearrange other pseudo registers too so
4692 that the bank registers appear at the end.
4693 (rl78_register_type): Account for the fact that the byte sized
4694 bank registers are now pseudo-registers.
4695 (rl78_register_name): Rearrange the register name array. Make
4696 initial set of raw banked registers inaccessible.
4697 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
4698 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
4699 case for copying bytes back and forth between raw and pseudo
4700 versions of the banked registers. Update other cases to reflect
4701 the changed names.
4702 (rl78_return_value): Update to account for changed names of
4703 raw registers.
4704 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
4705 rl78_register_sim_regno().
4706
e4569f1e
KB
47072012-02-14 Kevin Buettner <kevinb@redhat.com>
4708
4709 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
4710 the name parameter being passed to find_pc_partial_function().
4711
7a05aae7
JK
47122012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4713
4714 * MAINTAINERS: Step down from being ia64 target maintainer.
4715
11fde611
JK
47162012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4717
4718 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
4719 compilation warning.
4720
57008375
JK
47212012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4722
4723 Fix crash on loaded shlibs without loaded exec_bfd.
4724 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
4725 (set_section_command): Replace exec_bfd by p->bfd.
4726
ff3c9849
TT
47272012-02-10 Tom Tromey <tromey@redhat.com>
4728
4729 * linespec.c (decode_line_internal): Skip symtabs_from_filename
4730 when we have a C++ qualified name.
4731
db2b9fdd
PA
47322012-02-10 Pedro Alves <palves@redhat.com>
4733
4734 * inferior.c (inferior_pid_to_str): New.
4735 (print_inferior, inferior_command): Use it.
4736
12cd34f3
PA
47372012-02-10 Pedro Alves <palves@redhat.com>
4738
4739 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
4740 the test CFLAGS.
4741 * configure: Regenerate.
4742
e871429d
JK
47432012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4744
4745 * linespec.c (decode_line_internal): Fix comment correctness.
4746
1916efaf
PA
47472012-02-09 Valery Khromov <valery.khromov@gmail.com>
4748
4749 PR gdb/12953
4750 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
4751 * amd64bsd-nat.c: Add support for debug registers (adapted from
4752 i386bsd-nat.c).
4753 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4754 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4755 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4756 (amd64bsd_dr_get_control): New functions.
4757 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4758 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4759 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4760 watchpoints initialization.
4761 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4762
f4859d94
JK
47632012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4764
4765 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4766 flds_bnds.fields.
4767 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4768
c56a97f9
JK
47692012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4770
4771 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
4772
1a119f36
JB
47732012-02-08 Joel Brobecker <brobecker@adacore.com>
4774
4775 * language.h (symbol_name_cmp_ftype): Renames
4776 symbol_name_match_p_ftype.
4777 (struct language_defn)[la_get_symbol_name_cmp]: Renames
4778 la_get_symbol_name_match_p.
4779 * ada-lang.c (ada_get_symbol_name_cmp): Renames
4780 ada_get_symbol_name_match_p. Update comment.
4781 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4782 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4783 Renames symbol_name_match_p. Update field type.
4784 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4785 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4786 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
4787 "la_get_symbol_name_cmp" in comments.
4788 * language.c: Likewise.
4789
c71bb1cf
RO
47902012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4791
4792 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
4793 %eflags offset.
4794 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
4795 (amd64_sol2_gregset32_reg_offs): Likewise.
4796
4b2d20a5
TG
47972012-02-08 Joel Brobecker <brobecker@adacore.com>
4798
4799 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
4800 of the returned BFD is allocated by GDB.
4801
f0823d2c
TT
48022012-02-07 Tom Tromey <tromey@redhat.com>
4803
4804 PR python/12027:
4805 * python/python-internal.h (frame_object_type): Declare.
4806 * python/py-symbol.c (sympy_needs_frame): New function.
4807 (sympy_value): New function.
4808 (symbol_object_getset): Add "needs_frame".
4809 (symbol_object_methods): Add "value".
4810 * python/py-frame.c (frame_object_type): No longer static.
4811
64e7d9dd
TT
48122012-02-07 Tom Tromey <tromey@redhat.com>
4813
4814 PR python/13599:
4815 * python/py-symbol.c (sympy_line): New function.
4816 (symbol_object_getset): Add "line".
4817
1d6b2d2b
TT
48182012-02-07 Tom Tromey <tromey@redhat.com>
4819
4820 * charset.c (find_charset_names): Check 'in' against NULL.
4821
0d5cff50
DE
48222012-02-06 Doug Evans <dje@google.com>
4823
4824 * gdbtypes.h (struct main_type): Change type of name,tag_name,
4825 and fields.name members from char * to const char *. All uses updated.
4826 (struct cplus_struct_type): Change type of fn_fieldlists.name member
4827 from char * to const char *. All uses updated.
4828 (type_name_no_tag): Update.
4829 (lookup_unsigned_typename, lookup_signed_typename): Update.
4830 * gdbtypes.c (type_name_no_tag): Change result type
4831 from char * to const char *. All callers updated.
4832 (lookup_unsigned_typename, lookup_signed_typename): Change type of
4833 name parameter from char * to const char *.
4834 * symtab.h (struct cplus_specific): Change type of demangled_name
4835 member from char * to const char *. All uses updated.
4836 (struct general_symbol_info): Change type of name and
4837 mangled_lang.demangled_name members from char * to const char *.
4838 All uses updated.
4839 (symbol_get_demangled_name, symbol_natural_name): Update.
4840 (symbol_demangled_name, symbol_search_name): Update.
4841 * symtab.c (symbol_get_demangled_name): Change result type
4842 from char * to const char *. All callers updated.
4843 (symbol_natural_name, symbol_demangled_name): Ditto.
4844 (symbol_search_name): Ditto.
4845 (completion_list_add_name): Change type of symname,sym_text,
4846 text,word parameters from char * to const char *.
4847 (completion_list_objc_symbol): Change type of sym_text,
4848 text,word parameters from char * to const char *.
4849 * ada-lang.c (find_struct_field): Change type of name parameter
4850 from char * to const char *.
4851 (encoded_ordered_before): Similarly for N0,N1 parameters.
4852 (old_renaming_is_invisible): Similarly for function_name parameter.
4853 (ada_type_name): Change result type from char * to const char *.
4854 All callers updated.
4855 * ada-lang.h (ada_type_name): Update.
4856 * buildsym.c (hashname): Change type of name parameter
4857 from char * to const char *.
4858 * buildsym.h (hashname): Update.
4859 * dbxread.c (end_psymtab): Change type of include_list parameter
4860 from char ** to const char **.
4861 * dwarf2read.c (determine_prefix): Change result type
4862 from char * to const char *. All callers updated.
4863 * f-lang.c (find_common_for_function): Change type of name, funcname
4864 parameters from char * to const char *.
4865 * f-lang.c (find_common_for_function): Update.
4866 * f-valprint.c (list_all_visible_commons): Change type of funcname
4867 parameters from char * to const char *.
4868 * gdbarch.sh (static_transform_name): Change type of name parameter
4869 and result from char * to const char *.
4870 * gdbarch.c: Regenerate.
4871 * gdbarch.h: Regenerate.
4872 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
4873 of name parameter from char * to const char *.
4874 * jv-lang.c (java_primitive_type_from_name): Ditto.
4875 (java_demangled_signature_length): Similarly for signature parameter.
4876 (java_demangled_signature_copy): Ditto.
4877 (java_demangle_type_signature): Ditto.
4878 * jv-lang.h (java_primitive_type_from_name): Update.
4879 (java_demangle_type_signature): Update.
4880 * objc-lang.c (specialcmp): Change type of a,b parameters
4881 from char * to const char *.
4882 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
4883 from char * to const char *. All callers updated.
4884 * p-lang.h (is_pascal_string_type): Update.
4885 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
4886 of name parameter from char * to const char *.
4887 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
4888 * utils.c (fprintf_symbol_filtered): Ditto.
4889 * defs.h (fprintf_symbol_filtered): Update.
4890 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
4891 * stabsread.h (end_psymtab): Update.
4892 * stack.c (find_frame_funname): Change type of funname parameter
4893 from char ** to const char **.
4894 * stack.h (find_frame_funname): Update.
4895 * typeprint.c (type_print): Change type of varstring parameter
4896 from char * to const char *.
4897 * value.h (type_print): Update.
4898 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
4899 from char * to const char *. All callers updated.
4900 (xcoff_end_psymtab): Change type of include_list parameter
4901 from char ** to const char **. All callers updated.
4902 (swap_sym): Similarly for name parameter. All callers updated.
4903 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
4904 Use xstrdup.
4905 (process_coff_symbol): Use xstrdup.
4906 * stabsread.c (stabs_method_name_from_physname): Renamed from
4907 update_method_name_from_physname. Change result type from void
4908 to char *. All callers updated.
4909 (read_member_functions): In has_destructor case, store name in objfile
4910 obstack instead of malloc space. In !has_stub case, fix mem leak.
4911
5579a92e
TT
49122012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
4913
4914 * configure: Rebuild.
4915 * configure.ac: Put -L../bfd and -L../libiberty at the front of
4916 LDFLAGS.
4917
9058f767
KB
49182012-02-03 Kevin Buettner <kevinb@redhat.com>
4919
4920 * configure.tgt (rl78-*-elf): New target.
4921 * rl78-tdep.c: New file.
4922
5b37825d
PW
49232012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4924
4925 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
4926 and continue the loop. Add QUIT statement.
4927
e009ee71
TT
49282012-02-03 Tom Tromey <tromey@redhat.com>
4929
4930 PR gdb/13596:
4931 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
4932 bfd_lookup_symbol_from_symtab.
4933 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4934 gdb_bfd_lookup_symbol_from_symtab.
4935
f7e44f65
JB
49362012-02-03 Joel Brobecker <brobecker@adacore.com>
4937
4938 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
4939 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
4940 symbol. Add assertion that sym2 is never NULL.
4941
2c02bd72
DE
49422012-02-02 Doug Evans <dje@google.com>
4943
4944 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
4945 "name" parameter to const char ** from char **. All callers updated.
4946 (find_pc_partial_function): Ditto.
4947 (cache_pc_function_name): Change type to const char * from char *.
4948 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
4949 (find_pc_partial_function): Update.
4950 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
4951 type of "name" parameter to const char * from char *.
4952 All uses updated.
4953 * arch-utils.c (generic_in_solib_return_trampoline): Change
4954 type of "name" parameter to const char * from char *.
4955 * arch-utils.h (generic_in_solib_return_trampoline): Update.
4956 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
4957 type of "name" parameter to const char * from char *.
4958 * gdbarch.sh (in_solib_return_trampoline): Ditto.
4959 * gdbarch.c: Regenerate.
4960 * gdbarch.h: Regenerate.
4961 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
4962 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
4963 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
4964 type of "name" parameter to const char * from char *.
4965 * skip.c (skip_function_pc): Ditto.
4966 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
4967 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
4968 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
4969 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
4970 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
4971 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
4972 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
4973 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
4974 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
4975
e886a173
PA
49762012-02-02 Pedro Alves <palves@redhat.com>
4977
4978 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
4979 the current inferior has no execution. Make sure the current
4980 remote process matches gdb's current inferior.
4981
c709a7c2
TT
49822012-02-02 Tom Tromey <tromey@redhat.com>
4983
4984 PR gdb/13405:
4985 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
4986 read-only memory.
4987
f149aabd
TT
49882012-02-02 Tom Tromey <tromey@redhat.com>
4989
4990 PR gdb/9307:
4991 * symtab.c (lookup_language_this): Set block_found.
4992
03bef283
TT
49932012-02-01 Tom Tromey <tromey@redhat.com>
4994
4995 PR gdb/13431:
4996 * jit.c (struct jit_inferior_data): Rewrite.
4997 (struct jit_objfile_data): New.
4998 (get_jit_objfile_data): New function.
4999 (add_objfile_entry): Update.
5000 (jit_read_descriptor): Return int. Replace descriptor_addr
5001 argument with inf_data. Update. Don't call error.
5002 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5003 descriptor here.
5004 (jit_inferior_init): Don't look up descriptor. Don't call error.
5005 (jit_reset_inferior_data_and_breakpoints)
5006 (jit_inferior_created_observer): Remove.
5007 (jit_inferior_exit_hook): Update.
5008 (jit_executable_changed_observer): Remove.
5009 (jit_event_handler): Update.
5010 (free_objfile_data): Reset inferior data if needed.
5011 (_initialize_jit): Update.
5012
f0bbc364
TT
50132012-02-01 Tom Tromey <tromey@redhat.com>
5014
5015 * jit.c (bfd_open_from_target_memory): Move higher in file.
5016
47c1316c
TG
50172012-02-01 Tristan Gingold <gingold@adacore.com>
5018
5019 * libunwind-frame.c (libunwind_load): Display message if dlopen
5020 failed.
5021
8e704927
GB
50222012-02-01 Gary Benson <gbenson@redhat.com>
5023
09c7a31f 5024 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
5025 (iterate_over_symbols): Use the above.
5026 * symtab.c (iterate_over_symbols): Likewise.
5027 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5028 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5029 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5030 (iterate_name_matcher): Document return values.
5031 (collect_one_symbol): Likewise.
5032 (collect_function_symbols): Likewise.
5033 (collect_symbols): Likewise.
5034
d9680e73
TT
50352012-02-01 Tom Tromey <tromey@redhat.com>
5036
5037 * ada-lang.c (resolve_subexp): Update.
5038 (ada_lookup_symbol_list): Add 'full_search' argument.
5039 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5040 ada_lookup_symbol_list.
5041 (ada_lookup_encoded_symbol): Update.
5042 (get_var_value): Update.
5043 * ada-exp.y (block_lookup): Update.
5044 (write_var_or_type): Update.
5045 (write_name_assoc): Update.
5046 * ada-lang.h (ada_lookup_symbol_list): Update.
5047
72e1143f
TT
50482012-01-31 Tom Tromey <tromey@redhat.com>
5049
5050 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
5051 comment.
5052
ab2d2ad3
DE
50532012-01-31 Doug Evans <dje@google.com>
5054
5055 * symtab.h: Remove outdated comment.
e9111bf7 5056 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 5057
bc884eba
JB
50582012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
5059
5060 Fix build error in Darwin port.
5061 * i386-darwin-nat.c: Include i386-nat.h.
5062
8fc3fc34
TT
50632012-01-30 Tom Tromey <tromey@redhat.com>
5064
5065 PR breakpoints/13568:
5066 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
5067 argument. Check for recursive includes.
5068 (dwarf_decode_macros): Create an include hash.
5069
5d853008
ME
50702012-01-30 Michael Eager <eager@eagercon.com>
5071
5072 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
5073 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 5074 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
5075 (powerpc_linux_in_plt_stub): New function.
5076 (powerpc_linux_in_dynsym_resolve_code): New function.
5077 (ppc_skip_trampoline_code): New function.
5078 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
5079 Use glibc_skip_solib_resolver.
5080
40478521
JK
50812012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5082
5083 Code cleanup: Make 1440 bytes of data segment read-only.
5084 * arch-utils.c (endian_enum): Make it const char *const [].
5085 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
5086 Likewise.
5087 * breakpoint.c (always_inserted_enums): Likewise.
5088 * cli/cli-cmds.c (script_ext_enums): Likewise.
5089 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
5090 enumlist parameter const char *const *.
5091 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
5092 const char *const *.
5093 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
5094 parameter const char *const *.
5095 * cris-tdep.c (cris_modes): Make it const char *const [].
5096 * filesystem.c (target_file_system_kinds): Likewise.
5097 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
5098 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
5099 (can_use_displaced_stepping_enum, scheduler_enums)
5100 (exec_direction_names): Likewise.
5101 * language.c (_initialize_language): Make the type_or_range_names and
5102 case_sensitive_names variables const char *const [].
5103 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
5104 * python/python.c (python_excp_enums): Likewise.
5105 * remote.c (interrupt_sequence_modes): Likewise.
5106 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
5107 * serial.c (logbase_enums): Likewise.
5108 * sh-tdep.c (sh_cc_enum): Likewise.
5109 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
5110 Likewise.
5111 * symtab.c (multiple_symbols_modes): Likewise.
5112 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
5113 Likewise.
5114 * utils.c (internal_problem_modes): Likewise.
5115
b3b8b934
JK
51162012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5117
5118 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
5119 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
5120 result.
5121
8c85a4e2
DE
51222012-01-27 Doug Evans <dje@google.com>
5123
5124 * configure.ac (with_python): Fix absolute path handling for win32.
5125 * configure: Regenerate.
5126
78d8b4d7
DE
51272012-01-26 Doug Evans <dje@google.com>
5128
eca864fe
DE
5129 * symtab.c: Whitespace cleanup, no code changes.
5130
7e082072
DE
5131 * symtab.c (lookup_symbol_in_language): Improve comment.
5132 (lookup_symbol_aux): Fix comment.
5133
7dc25483
DE
5134 * psymtab.c (add_psymbol_to_list): Result is now "void".
5135 * psympriv.h (add_psymbol_to_list): Update.
5136
78d8b4d7
DE
5137 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
5138
4c63965b
JK
51392012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5140
5141 Do not open script filenames twice.
5142 * cli/cli-cmds.c (source_script_from_stream): Pass to
5143 source_python_script also STREAM.
5144 * python/py-auto-load.c (source_section_scripts): Pass to
5145 source_python_script_for_objfile also STREAM.
5146 (auto_load_objfile_script): Pass to source_python_script_for_objfile
5147 also INPUT.
5148 * python/python-internal.h (source_python_script_for_objfile): New
5149 parameter file, rename parameter file to filename.
5150 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
5151 instead if !_WIN32. Update the function comment.
5152 (source_python_script, source_python_script_for_objfile)
5153 (source_python_script): New parameter file, rename parameter file to
5154 filename. Pass FILENAME to python_run_simple_file.
5155 * python/python.h (source_python_script): New parameter file, rename
5156 parameter file to filename.
5157
88f38a04
PA
51582012-01-26 Pedro Alves <palves@redhat.com>
5159
5160 * corelow.c (core_has_fake_pid): Delete.
5161 (core_close): Delete references to `core_has_fake_pid'.
5162 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
5163 (core_open): Delete references to `core_has_fake_pid'.
5164 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
5165 the removed global.
5166
e078317b
JB
51672012-01-26 Joel Brobecker <brobecker@adacore.com>
5168
5169 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
5170 Remove language parameter from name_matcher. Adjust the comment.
5171 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
5172 Remove language parameter.
5173 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
5174 * linespec.c (iterate_name_matcher): Likewise.
5175 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
5176 name_matcher. Adjust call accordingly.
5177 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
5178 (maintenance_check_symtabs): Adjust type of parameter "fun".
5179 * psymtab.h (maintenance_check_symtabs): Likewise.
5180
74ccd7f5
JB
51812012-01-26 Joel Brobecker <brobecker@adacore.com>
5182
5183 * language.h (symbol_name_match_p_ftype): New typedef.
5184 (struct language_defn): Replace field la_symbol_name_compare
5185 by la_get_symbol_name_match_p.
5186 * ada-lang.c (ada_get_symbol_name_match_p): New function.
5187 (ada_language_defn): Use it.
5188 * linespec.c (struct symbol_matcher_data): New type.
5189 (iterate_name_matcher): Rewrite.
5190 (iterate_over_all_matching_symtabs): Pass a pointer to
5191 a symbol_matcher_data struct to expand_symtabs_matching
5192 instead of just the lookup name.
5193 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5194 opencl-lang.c, p-lang.c, language.c: Delete field
5195 la_symbol_name_compare, and replace by NULL for new field
5196 la_get_symbol_name_match_p.
5197 * symfile.h (struct quick_symbol_functions): Update comment.
5198
5d268276
TT
51992012-01-25 Tom Tromey <tromey@redhat.com>
5200
5201 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
5202 dereferencing.
5203
edcc5120
TT
52042012-01-24 Tom Tromey <tromey@redhat.com>
5205
5206 PR symtab/12406:
5207 * solib.c (update_solib_list): Update the program space's
5208 added_solibs and deleted_solibs fields.
5209 * progspace.h (struct program_space) <added_solibs,
5210 deleted_solibs>: New fields.
5211 (clear_program_space_solib_cache): Declare.
5212 * progspace.c (release_program_space): Call
5213 clear_program_space_solib_cache.
5214 (clear_program_space_solib_cache): New function.
5215 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
5216 bpstat_stop_status. Use handle_solib_event.
5217 * breakpoint.c: Include gdb_regex.h.
5218 (print_solib_event): New function.
5219 (bpstat_print): Use print_solib_event.
5220 (bpstat_stop_status): Add special case for bp_shlib_event.
5221 (handle_solib_event): New function.
5222 (bpstat_what): Use handle_solib_event.
5223 (struct solib_catchpoint): New.
5224 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
5225 (breakpoint_hit_catch_solib, check_status_catch_solib)
5226 (print_it_catch_solib, print_one_catch_solib)
5227 (print_mention_catch_solib, print_recreate_catch_solib): New
5228 functions.
5229 (catch_solib_breakpoint_ops): New global.
5230 (catch_load_or_unload, catch_load_command_1)
5231 (catch_unload_command_1): New functions.
5232 (internal_bkpt_check_status): Add special case for
5233 bp_shlib_event.
5234 (internal_bkpt_print_it): Use print_solib_event.
5235 (initialize_breakpoint_ops): Initialize
5236 catch_solib_breakpoint_ops.
5237 (_initialize_breakpoint): Register "catch load" and "catch
5238 unload".
5239 * breakpoint.h (handle_solib_event): Declare.
5240 * NEWS: Add entry for "catch load" and "catch unload".
5241
fa864999
TT
52422012-01-24 Tom Tromey <tromey@redhat.com>
5243
5244 * ada-lang.c: Include gdb_vecs.h.
5245 * charset.c: Include gdb_vecs.h.
5246 * tracepoint.h: Include gdb_vecs.h.
5247 * gdb_vecs.h: New file.
5248
f90263c1
TT
52492012-01-24 Pedro Alves <pedro@codesourcery.com>
5250
5251 * breakpoint.c (breakpoint_hit_catch_fork)
5252 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
5253 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
5254 * infrun.c (inferior_has_forked, inferior_has_vforked)
5255 (inferior_has_execd, inferior_has_called_syscall): Delete.
5256 (handle_syscall_event): Get syscall_number from the execution
5257 control state's wait status.
5258 (wait_for_inferior): Don't clear syscall_number.
5259
09ac7c10
TT
52602012-01-24 Pedro Alves <palves@redhat.com>
5261
5262 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
5263 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
5264 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
5265 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
5266 `ws' parameter.
5267 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
5268 false for events other than TARGET_SIGNAL_TRAP.
5269 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
5270 Add `ws' parameter.
5271 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
5272 events other than TARGET_SIGNAL_TRAP.
5273 (tracepoint_breakpoint_hit): Add `ws' parameter.
5274 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
5275 parameter.
5276 (bpstat_stop_status): Same.
5277 (pc_at_non_inline_function): Same.
5278 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
5279 to pass the current event's waitstatus to bpstat_stop_status
5280 and pc_at_non_inline_function.
5281
86eb7e95
JK
52822012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5283
5284 Code cleanup.
5285 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
5286 Update the function comment for it.
5287 (source_script_with_search): Call make_cleanup_fclose for STREAM.
5288 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
5289 for STREAM.
5290
a9b3a50f
PA
52912012-01-24 Pedro Alves <palves@redhat.com>
5292
5293 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
5294 outside `bs->stop' block.
5295 (bpstat_what): Rework bp_shlib_event handling.
5296 (internal_bkpt_check_status): If the breakpoint is a
5297 bp_shlib_event, then set bs->stop and bs->print if
5298 stop_on_solib_events is set.
5299
53fe1783
GB
53002012-01-24 Gary Benson <gbenson@redhat.com>
5301
5302 Delete #if 0'd out code.
5303 * stack.c (print_frame_label_vars): Remove.
5304 (catch_info): Likewise.
5305 (_initialize_stack): Remove "info catch" command.
5306 * NEWS: Mention the above.
5307
49c62f2e
PA
53082012-01-24 Pedro Alves <palves@redhat.com>
5309
5310 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
5311 it.
5312 (remote_notice_new_inferior): If the remote end doesn't support
5313 the multiprocess extensions, then the PID is fake.
5314 (add_current_inferior_and_thread): New.
5315 (remote_start_remote): Use it.
5316 (extended_remote_attach_1): Adjust.
5317 (extended_remote_create_inferior_1): Use
5318 add_current_inferior_and_thread.
5319
d0d8b0c6
JK
53202012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5321
5322 Fix watchpoints to be specific for each inferior.
5323 * breakpoint.c (watchpoint_in_thread_scope): Verify also
5324 current_program_space.
5325 * i386-nat.c (i386_inferior_data_cleanup): New.
5326 (i386_inferior_data_get): Replace variable inf_data_local by an
5327 inferior_data call.
5328 (i386_use_watchpoints): Initialize i386_inferior_data.
5329 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
5330 specific iterate_over_lwps.
5331
4403d8e9
JK
53322012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5333
5334 Fix watchpoints across inferior fork.
5335 * amd64-linux-nat.c (update_debug_registers_callback): Update the
5336 comment for linux_nat_iterate_watchpoint_lwps.
5337 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5338 linux_nat_iterate_watchpoint_lwps.
5339 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
5340 * i386-linux-nat.c (update_debug_registers_callback): Update the
5341 comment for linux_nat_iterate_watchpoint_lwps.
5342 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5343 linux_nat_iterate_watchpoint_lwps.
5344 (i386_linux_prepare_to_resume): New comment on Linux kernel.
5345 * i386-nat.c: Include inferior.h.
5346 (dr_mirror): Remove.
5347 (i386_inferior_data, struct i386_inferior_data)
5348 (i386_inferior_data_get): New.
5349 (i386_debug_reg_state): Use i386_inferior_data_get.
5350 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
5351 (i386_insert_watchpoint, i386_remove_watchpoint)
5352 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5353 (i386_remove_hw_breakpoint): New variable state, use
5354 i386_debug_reg_state instead of DR_MIRROR.
5355 * linux-nat.c (delete_lwp): New declaration.
5356 (num_lwps): Move here from downwards.
5357 (delete_lwp_cleanup): New.
5358 (linux_child_follow_fork): Create new child_lp, call
5359 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
5360 PTRACE_DETACH.
5361 (num_lwps): Move upwards.
5362 (linux_nat_iterate_watchpoint_lwps): New.
5363 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
5364 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
5365
2992c9a7 53662012-01-24 Joel Brobecker <brobecker@adacore.com>
5367
5368 GDB 7.4 released.
5369
e360902b
PA
53702012-01-23 Pedro Alves <palves@redhat.com>
5371
5372 * top.c (caution): Rename to ...
5373 (confirm): ... this.
5374 (show_caution): Rename to ...
5375 (show_confirm): ... this.
5376 (quit_cover): Adjust.
5377 (init_main): Adjust.
5378 * top.h (caution): Rename to ...
5379 (confirm): ... this.
5380 * utils.c (internal_vproblem, defaulted_query): Adjust.
5381
050a2e1d
PA
53822012-01-23 Pedro Alves <palves@redhat.com>
5383
5384 * top.c (caution): Update comment.
5385 (execute_command): Don't consider the current value of `caution'.
5386
77a35dd8
JK
53872012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5388
5389 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
5390
a71b5a38
UW
53912012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
5392
5393 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5394 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
5395 * target.c (target_fileio_pwrite): Remove buffer address from
5396 debug output.
5397 (target_fileio_pread): Likewise.
5398
d99bd577
UW
53992012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5400
5401 * NEWS: Document remote "info proc" and "generate-core-file".
5402
35c2fab7
UW
54032012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5404
5405 * gdbarch.sh (find_memory_regions): New callback.
5406 * gdbarch.c, gdbarch.h: Regenerate.
5407
5408 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
5409 callback before falling back to target method.
5410
5411 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
5412 (linux_target_install_ops): No longer install it.
5413
5414 * linux-tdep.c (linux_find_memory_regions): New function.
5415 (linux_init_abi): Install it.
5416
6432734d
UW
54172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5418
5419 * gdbarch.sh (make_corefile_notes): New architecture callback.
5420 * gdbarch.c: Regenerate.
5421 * gdbarch.h: Likewise.
5422
5423 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
5424 before target_make_corefile_notes. If NULL is returned, the
5425 target does not support core file generation.
5426
5427 * linux-nat.c: Include "linux-tdep.h".
5428 (find_signalled_thread, find_stop_signal): Remove.
5429 (linux_nat_do_thread_registers): Likewise.
5430 (struct linux_nat_corefile_thread_data): Likewise.
5431 (linux_nat_corefile_thread_callback): Likewise.
5432 (iterate_over_spus): Likewise.
5433 (struct linux_spu_corefile_data): Likewise.
5434 (linux_spu_corefile_callback): Likewise.
5435 (linux_spu_make_corefile_notes): Likewise.
5436 (linux_nat_collect_thread_registers): New function.
5437 (linux_nat_make_corefile_notes): Replace contents by call to
5438 linux_make_corefile_notes passing linux_nat_collect_thread_registers
5439 as native-only callback.
5440
5441 * linux-tdep.h: Include "bfd.h".
5442 (struct regcache): Add forward declaration.
5443 (linux_collect_thread_registers_ftype): New typedef.
5444 (linux_make_corefile_notes): Add prototype.
5445 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
5446 "regset.h", and "elf-bfd.h".
5447 (find_signalled_thread, find_stop_signal): New functions.
5448 (linux_spu_make_corefile_notes): Likewise.
5449 (linux_collect_thread_registers): Likewise.
5450 (struct linux_corefile_thread_data): New data structure.
5451 (linux_corefile_thread_callback): New funcion.
5452 (linux_make_corefile_notes): Likewise.
5453 (linux_make_corefile_notes_1): Likewise.
5454 (linux_init_abi): Install it.
5455
3030c96e
UW
54562012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5457
5458 * gdbarch.sh (info_proc): New callback.
5459 * gdbarch.c, gdbarch.h: Regenerate.
5460
5461 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
5462 before falling back to the target info_proc callback.
5463
5464 * linux-nat.c: Do not include "cli/cli-utils.h".
5465 (linux_nat_info_proc): Remove.
5466 (linux_target_install_ops): No longer install it.
5467
5468 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
5469 (read_mapping): New function.
5470 (linux_info_proc): Likewise.
5471 (linux_init_abi): Install it.
5472
145b16a9
UW
54732012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5474
5475 * defs.h (enum info_proc_what): Moved here from linux-nat.c
5476 * infcmd.c: (info_proc_cmd_1): New function.
5477 (info_proc_cmd): New function, moved here from equivalent routine
5478 orignally in linux-nat.c.
5479 (info_proc_cmd_mappings): Likewise.
5480 (info_proc_cmd_stat): Likewise.
5481 (info_proc_cmd_status): Likewise.
5482 (info_proc_cmd_cwd): Likewise.
5483 (info_proc_cmd_cmdline): Likewise.
5484 (info_proc_cmd_exe): Likewise.
5485 (info_proc_cmd_all): Likewise.
5486 (_initialize_infcmd): Install "info proc" command and subcommands.
5487
5488 * target.h (struct target_ops): Add to_info_proc.
5489 (target_info_proc): Add prototype.
5490 * target.c (target_info_proc): New function.
5491
5492 * procfs.c (procfs_info_proc): Add prototype.
5493 (info_proc_cmd): Rename into ...
5494 (procfs_info_proc): ... this. Update argument types as appropriate
5495 for a to_info_proc implementation. Handle "what" argument.
5496 (procfs_target): Install procfs_info_proc.
5497 (_initialize_procfs): No longer install "info proc" command.
5498
5499 * linux-nat.c: (enum info_proc_what): Remove.
5500 (linux_nat_info_proc_cmd_1): Rename into ...
5501 (linux_nat_info_proc): ... this. Update argument types as appropriate
5502 for a to_info_proc implementation.
5503 (linux_nat_info_proc_cmd): Remove.
5504 (linux_nat_info_proc_cmd_mappings): Likewise.
5505 (linux_nat_info_proc_cmd_stat): Likewise.
5506 (linux_nat_info_proc_cmd_status): Likewise.
5507 (linux_nat_info_proc_cmd_cwd): Likewise.
5508 (linux_nat_info_proc_cmd_cmdline): Likewise.
5509 (linux_nat_info_proc_cmd_exe): Likewise.
5510 (linux_nat_info_proc_cmd_all): Likewise.
5511 (linux_target_install_ops): Install linux_nat_info_proc.
5512 (_initialize_linux_nat): No longer install "info proc" command
5513 and subcommands.
5514
b9e7b9c3
UW
55152012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
5516
5517 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
5518 * config.in, configure: Regenerate.
5519
5520 * target.h (struct target_ops): Add to_fileio_readlink.
5521 (target_fileio_readlink): Add prototype.
5522 * target.c (target_fileio_readlink): New function.
5523
5524 * inf-child.c: Conditionally include <sys/param.h>.
5525 (inf_child_fileio_readlink): New function.
5526 (inf_child_target): Install it.
5527
5528 * remote.c (PACKET_vFile_readlink): New enum value.
5529 (remote_hostio_readlink): New function.
5530 (init_remote_ops): Install it.
5531 (_initialize_remote): Handle vFile:readlink packet type.
5532
7313baad
UW
55332012-01-20 Pedro Alves <palves@redhat.com>
5534 Ulrich Weigand <ulrich.weigand@linaro.org>
5535
5536 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
5537 * config.in, configure: Regenerate.
5538
5539 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
5540 to_fileio_pread, to_fileio_close, to_fileio_unlink.
5541 (target_fileio_open): Add prototype.
5542 (target_fileio_pwrite): Likewise.
5543 (target_fileio_pread): Likewise.
5544 (target_fileio_close): Likewise.
5545 (target_fileio_unlink): Likewise.
5546 (target_fileio_read_alloc): Likewise.
5547 (target_fileio_read_stralloc): Likewise.
5548
5549 * target.c: Include "gdb/fileio.h".
5550 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
5551 (default_fileio_target): New function.
5552 (target_fileio_open): Likewise.
5553 (target_fileio_pwrite): Likewise.
5554 (target_fileio_pread): Likewise.
5555 (target_fileio_close): Likewise.
5556 (target_fileio_unlink): Likewise.
5557 (target_fileio_close_cleanup): Likewise.
5558 (target_fileio_read_alloc_1): Likewise.
5559 (target_fileio_read_alloc): Likewise.
5560 (target_fileio_read_stralloc): Likewise.
5561
5562 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
5563 <fcntl.h>, and <unistd.h>.
5564 (inf_child_fileio_open_flags_to_host): New function.
5565 (inf_child_errno_to_fileio_error): Likewise.
5566 (inf_child_fileio_open): Likewise.
5567 (inf_child_fileio_pwrite): Likewise.
5568 (inf_child_fileio_pread): Likewise.
5569 (inf_child_fileio_close): Likewise.
5570 (inf_child_fileio_unlink): Likewise.
5571 (inf_child_target): Install to_fileio routines.
5572
5573 * remote.c (init_remote_ops): Install to_fileio routines.
5574
901f9912
UW
55752012-01-20 Pedro Alves <palves@redhat.com>
5576 Ulrich Weigand <ulrich.weigand@linaro.org>
5577
5578 * remote.c (remote_multi_process_p): Only check for multi-process
5579 protocol feature, do not check for extended protocol.
5580 (remote_supports_multi_process): Check for extended protocol here.
5581 (set_general_process): Likewise.
5582 (extended_remote_kill): Likewise.
5583 (remote_pid_to_str): Likewise.
5584 (remote_query_supported): Always query multiprocess mode.
5585
e714e1bf
UW
55862012-01-20 Pedro Alves <palves@redhat.com>
5587 Ulrich Weigand <ulrich.weigand@linaro.org>
5588
5589 * inferior.h (struct inferior): Add fake_pid_p.
5590 * inferior.c (exit_inferior_1): Clear fake_pid_p.
5591 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
5592 magic_null_ptid since the remote side doesn't provide a real PID.
5593
50897289
TT
55942012-01-19 Tom Tromey <tromey@redhat.com>
5595
5596 * NEWS: Combine the two Python sections.
5597
1afc2033
JK
55982012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5599
5600 * target.h (target_close): Update comment on the target's unpush state.
5601
305436e0
PA
56022012-01-19 Pedro Alves <palves@redhat.com>
5603
5604 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
5605 linux_nat_async directly instead of going through the target
5606 vector.
5607 * target.c (unpush_target): Close target after unpushing it, not
5608 before.
5609
49323895
GB
56102012-01-19 Gary Benson <gbenson@redhat.com>
5611
5612 * mdebugread.c (sort_blocks): Replace integer constants with ones
5613 derived from FIRST_LOCAL_BLOCK.
5614
1db33378
PP
56152012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
5616 Jan Kratochvil <jan.kratochvil@redhat.com>
5617
5618 PR gdb/9538
5619 * symfile.c (find_separate_debug_file): New function.
5620 (terminate_after_last_dir_separator): Likewise.
5621 (find_separate_debug_file_by_debuglink): Also try realpath.
5622 * configure.ac (AC_CHECK_FUNCS): Add lstat.
5623 * configure: Regenerate.
5624 * config.in: Regenerate.
5625
f83d8a90
DE
56262012-01-18 Doug Evans <dje@google.com>
5627
5628 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
5629 (main.o): Remove rule.
5630 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
5631 (--with-sysroot): Rewrite.
5632 * configure: Regenerate.
5633 * config.in: Regenerate.
5634
2dbca4d6
SDJ
56352012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
5636
5637 * parse.c (initialize_expout): New function.
5638 (reallocate_expout): Likewise.
5639 (parse_exp_in_context): Use `initialize_expout' and
5640 `reallocate_expout' when appropriate.
5641
0695b514
PA
56422012-01-18 Pedro Alves <palves@redhat.com>
5643
5644 * record.c (struct record_breakpoint, record_breakpoint_p)
5645 (record_breakpoints): New.
5646 (record_insert_breakpoint, record_remove_breakpoint): Manage
5647 record breakpoints list. Only remove breakpoints from the
5648 inferior if they had been inserted there in the first place.
5649
136e1c30
DE
56502012-01-17 Doug Evans <dje@google.com>
5651
5652 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
5653 if we know we don't have a file name to look for.
5654
c0bf857d
PA
56552012-01-17 Pedro Alves <palves@redhat.com>
5656
5657 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
5658 the frame's stop reason is UNWIND_UNAVAILABLE.
5659
b486de60
JK
56602012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5661
5662 Fix compilation error.
5663 * m2-exp.y (yyerror): Use ANSI C prototype.
5664
d04550a6
SDJ
56652012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5666
5667 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
5668 (growbuf_by_size): Likewise.
5669 (yyerror): Likewise.
5670 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
5671 (modblock): Remove variable (was #if 0'ed).
5672 (parse_number): Convert prototype from K&R to ANSI C.
5673 (yyerror): Likewise.
5674 * objc-exp.y (parse_number): Likewise.
5675 (yyerror): Likewise.
5676 (yylex): Remove #if 0'ed code.
5677 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
5678 (yyerror): Likewise.
5679
4aac40c8
TT
56802012-01-16 Tom Tromey <tromey@redhat.com>
5681
5682 * NEWS: Add item.
5683 * symtab.h (compare_filenames_for_search): Declare.
5684 * symtab.c (compare_filenames_for_search): New function.
5685 (iterate_over_some_symtabs): Use it.
5686 * symfile.h (struct quick_symbol_functions)
5687 <map_symtabs_matching_filename>: Change spec.
5688 * psymtab.c (partial_map_symtabs_matching_filename): Use
5689 compare_filenames_for_search. Update for new spec.
5690 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
5691 compare_filenames_for_search. Update for new spec.
5692 * breakpoint.c (clear_command): Use compare_filenames_for_search.
5693
cafec441
TT
56942012-01-16 Tom Tromey <tromey@redhat.com>
5695
5696 PR python/13281:
5697 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
5698 (struct main_type) <flag_flag_enum>: New field.
5699 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
5700 * NEWS: Add entries.
5701 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
5702 enums.
5703 * python/lib/gdb/printing.py (_EnumInstance): New class.
5704 (FlagEnumerationPrinter): Likewise.
5705
983af33b
SDJ
57062012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
5707
5708 * breakpoint.c (create_sals_from_address_default): New function.
5709 (create_breakpoints_sal_default): Likewise.
5710 (decode_linespec_default): Likewise.
5711 (is_marker_spec): Removed.
5712 (strace_marker_p): New function.
5713 (init_breakpoint_sal): Using `strace_marker_p' instead of
5714 `is_marker_spec'.
5715 (create_breakpoint): Call method `create_sals_from_address' from
5716 breakpoint_ops, replacing code that created SALs conditionally
5717 on the type of the breakpoint. Call method `create_breakpoints_sal',
5718 replacing code that created breakpoints conditionally on the type
5719 wanted.
5720 (base_breakpoint_create_sals_from_address): New function.
5721 (base_breakpoint_create_breakpoints_sal): Likewise.
5722 (base_breakpoint_decode_linespec): Likewise.
5723 (base_breakpoint_ops): Add methods
5724 `base_breakpoint_create_sals_from_address',
5725 `base_breakpoint_create_breakpoints_sal' and
5726 `base_breakpoint_decode_linespec'.
5727 (bkpt_create_sals_from_address): New function.
5728 (bkpt_create_breakpoints_sal): Likewise.
5729 (bkpt_decode_linespec): Likewise.
5730 (tracepoint_create_sals_from_address): Likewise.
5731 (tracepoint_create_breakpoints_sal): Likewise.
5732 (tracepoint_decode_linespec): Likewise.
5733 (strace_marker_create_sals_from_address): Likewise.
5734 (strace_marker_create_breakpoints_sal): Likewise.
5735 (strace_marker_decode_linespec): Likewise.
5736 (strace_marker_breakpoint_ops): New variable.
5737 (addr_string_to_sals): Remove `marker_spec'. Call method
5738 `decode_linespec' from breakpoint_ops, replacing code that decoded
5739 an address string into a SAL. Use `strace_marker_p' instead of
5740 `marker_spec'.
5741 (strace_command): Decide whether we are dealing with a static
5742 tracepoint with marker or not. Use the appropriate breakpoint_ops.
5743 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
5744 * breakpoint.h (linespec_result, linespec_sals): New forward
5745 declarations.
5746 (breakpoint_ops) <create_sals_from_address>,
5747 <create_breakpoints_sal>, <decode_linespec>: New methods.
5748
4795f398
DE
57492012-01-14 Doug Evans <dje@google.com>
5750
5751 * NEWS: Update text for "maint set python print-stack".
5752 It is deprecated in gdb 7.4 and deleted in 7.5.
5753
ee5106fe
EZ
57542012-01-13 Eli Zaretskii <eliz@gnu.org>
5755
5756 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5757 including curses.h.
5758
b161e06f
JK
57592012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5760
5761 * configure: Regenerate.
5762 * config.in: Regenerate.
5763
85254831
KS
57642012-01-12 Keith Seitz <keiths@redhat.com>
5765
5766 PR mi/10586
5767 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5768 (ANONYMOUS_UNION_NAME): Define.
5769 (is_path_expr_parent): New function.
5770 (get_path_expr_parent): New function.
5771 (is_anonymous_child): New function.
5772 (create_child_with_value): If the child is anonymous and without
5773 a name, assign an object name to it.
5774 (c_describe_child): Use get_path_expr_parent to determine
5775 the parent expression.
5776 If there field represents an anonymous struct or union and
5777 has no name, set an appropriate display name and expression.
5778 (cplus_describe_child): Likewise.
5779
620fa63a
PA
57802012-01-12 Pedro Alves <palves@redhat.com>
5781
5782 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5783 available when %ebp is found to be zero (outermost).
5784
2efa2c79
AT
57852012-01-11 Andreas Tobler <andreast@fgznet.ch>
5786
5787 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
5788 an internal gdb_static_assert.
5789 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
5790
88e7d25d
TT
57912012-01-11 Tom Tromey <tromey@redhat.com>
5792
5793 PR gdb/9598:
5794 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
5795 catch" and "catch throw".
5796
72384ba3
PH
57972012-01-11 Paul Hilfinger <hilfingr@adacore.com>
5798
5799 * blockframe.c (block_innermost_frame): Start search from selected
5800 frame, if present, or otherwise the current frame.
5801
5802 * c-exp.y (variable): Update innermost_block for
5803 'block COLONCOLON NAME' clause.
5804 * m2-exp.y (variable): Ditto.
5805 * objc-exp.y (variable): Ditto.
5806
065a711f
TT
58072012-01-10 Tom Tromey <tromey@redhat.com>
5808
5809 PR python/13199:
5810 * python/python.c (finish_python_initialization): Set sys.argv.
5811
f3f5162e
DE
58122012-01-10 Doug Evans <dje@google.com>
5813
5814 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
5815 "want_line_info". All callers updated.
5816 (dwarf_decode_lines_1): New function.
5817 (handle_DW_AT_stmt_list): Add function comment.
5818 New arg "want_line_info". All callers updated.
5819 (read_file_scope,read_type_unit_scope): Move comment from
5820 handle_DW_AT_stmt_list to here.
5821
9934703b
JK
58222012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5823
5824 Fix regression after libiberty/ update for GCC PR 6057 and others.
5825 * c-exp.y (operator) <OPERATOR DELETE>
5826 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5827 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
5828 (make_builtin_type, make_name): New variable i, add gdb_assert.
5829 (operator) <OPERATOR NEW>: Update ARGS to 3.
5830 (operator) <OPERATOR DELETE>: Add trailing space.
5831 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
5832 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5833 * cp-support.c (cp_canonicalize_string): Check NULL from
5834 cp_comp_to_string, call warning and return.
5835
06b9f45f
JK
58362012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5837
5838 Fix duplicate .o files after omitting libbfd.a.
5839 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
5840 (SFILES): Add corelow.c.
5841 (COMMON_OBS): Add corelow.o.
5842 (ALLDEPFILES): Remove corelow.c.
5843 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
5844 * config/alpha/alpha-osf3.mh: Likewise.
5845 * config/alpha/fbsd.mh: Likewise.
5846 * config/arm/nbsdaout.mh: Likewise.
5847 * config/arm/nbsdelf.mh: Likewise.
5848 * config/i386/i386gnu.mh: Likewise.
5849 * config/ia64/hpux.mh: Likewise.
5850 * config/ia64/linux.mh: Likewise.
5851 * config/m32r/linux.mh: Likewise.
5852 * config/m68k/linux.mh: Likewise.
5853 * config/mips/irix5.mh: Likewise.
5854 * config/mips/irix6.mh: Likewise.
5855 * config/pa/hpux.mh: Likewise.
5856 * config/pa/linux.mh: Likewise.
5857 * config/powerpc/aix.mh: Likewise.
5858 * config/sparc/linux.mh: Likewise.
5859 * config/sparc/linux64.mh: Likewise.
5860 * config/sparc/sol2.mh: Likewise.
5861 * config/vax/vax.mh: Likewise.
5862 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
5863 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
5864 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
5865 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
5866 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
5867 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
5868 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
5869 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
5870 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
5871 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
5872 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
5873 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
5874 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5875 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
5876 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
5877 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5878 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
5879 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
5880 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
5881 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
5882 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
5883 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
5884 corelow.o from gdb_target_obs.
5885 * corefile.c (core_target): Update the comment on NULL value.
5886 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
5887 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
5888 MATCHES. Drop YUMMY set on NULL.
5889 (core_close): Do not call exit_inferior_silent on zero PID. Do not
5890 reclaim CORE_DATA if it is already NULL.
5891
34365054
DE
58922012-01-09 Doug Evans <dje@google.com>
5893
5894 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
5895 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
5896
696166a3
KS
58972012-01-09 Keith Seitz <keiths@redhat.com>
5898
5899 * breakpoint.c (wrapper.h): Don't include.
5900
8e7b59a5
KS
59012012-01-09 Keith Seitz <keiths@redhat.com>
5902
5903 * Makefile.in (SFILES): Remove wrapper.c.
5904 (HFILES_NO_SRCDIR): Remove wrapper.h.
5905 (COMMON_OBS): Remove wrapper.o.
5906 * cli/cli-interp.c: Don't inlude wrapper.h.
5907 * corelow.c: Likewise.
5908 (core_open): Replace gdb_target_find_new_threads with
5909 TRY_CATCH around target_find_new_threads.
5910 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
5911 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
5912 * varobj.c (varobj_create): Likewise for parse_exp_1 and
5913 evaluate_expression.
5914 (varobj_set_value): Likewise for evaluate_expression and
5915 value_assign.
5916 (install_new_variable): Likewise for value_fetch_lazy.
5917 (adjust_value_for_child_access): Likewise for value_ind.
5918 (c_describe_child): Likewise for value_subscript and
5919 value_ind.
5920 (c_value_of_root): Likewise for evaluate_expression.
5921 * wrapper.c: Remove.
5922 * wrapper.h: Remove.
5923
1a4eeb98
DE
59242012-01-09 Doug Evans <dje@google.com>
5925
9ff913ba
DE
5926 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
5927 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
5928 "abfd" args with "section". All callers updated.
5929 Error checking code moved ...
5930 (error_check_comp_unit_head): ... here. New function.
5931 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
5932 Delete arg "abfd". New arg "type_offset". All callers updated.
5933 (create_debug_types_hash_table): Simplify by using
5934 read_and_check_type_unit_head.
5935
1a4eeb98
DE
5936 * parser-defs.h (namecopy): Delete.
5937 * parse.c (namecopy, namecopy_size): Move into copy_name.
5938
2e6af8c0
JK
59392012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5940
5941 Partially fix duplicate .o files after omitting libbfd.a.
5942 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
5943 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5944 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
5945 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5946 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
5947 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
5948 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5949
9f2f828a
PA
59502012-01-09 Pedro Alves <palves@redhat.com>
5951
5952 * MAINTAINERS: Update my email address.
5953
4d72c0bc
DE
59542012-01-08 Doug Evans <dje@google.com>
5955
d467dd73
DE
5956 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
5957 n_type_units. Rename type_comp_units to all_type_units.
5958 All uses updated.
5959 (add_signatured_type_cu_to_table): Renamed from
5960 add_signatured_type_cu_to_list. All callers updated.
5961
4d72c0bc
DE
5962 * gdbtypes.h (struct cplus_struct_type): Delete member
5963 nfn_fields_total. All uses removed.
5964
21b2bd31
DE
59652012-01-06 Doug Evans <dje@google.com>
5966
5967 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
5968 to top of file.
5969 (dwarf2_find_comp_unit): Delete.
5970 (process_psymtab_comp_unit): Make result "void".
5971 Delete args buffer, info_ptr, buffer_size, and replace with
5972 "section". All callers updated.
5973 (dwarf2_build_psymtabs_hard): Simplify.
5974
bfd189b1
SDJ
59752012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
5976 Thiago Jung Bauermann <bauerman@br.ibm.com>
5977
5978 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
5979 before `struct gdb_exception'.
5980 * breakpoint.c (update_global_location_list_nothrow)
5981 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
5982 * cp-abi.c (value_rtti_type): Likewise.
5983 * cp-support.c (cp_validate_operator): Likewise.
5984 * infrun.c (insert_exception_resume_breakpoint)
5985 (check_exception_resume, keep_going): Likewise.
5986 * mi-interp.c (mi_breakpoint_created)
5987 (mi_breakpoint_modified): Likewise.
5988 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
5989 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
5990 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
5991
6b07635f
DE
59922012-01-05 Doug Evans <dje@google.com>
5993
0b30b85c
DE
5994 * dwarf2read.c (statement_prologue): Delete, unused.
5995
98714339
DE
5996 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
5997 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
5998
6b07635f
DE
5999 * dwarf2read.c (comp_unit_header): Delete, unused.
6000
761f4555
UW
60012012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6002
6003 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6004 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6005
2ca0b532
PA
60062012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6007
6008 * infrun.c (normal_stop): Don't skip calling the normal_stop
6009 observers if the thread was doing a multi-step, but stopped for
6010 some reason other than stepping.
6011
50aeff07
PA
60122012-01-05 Pedro Alves <alves.ped@gmail.com>
6013
6014 * cli/cli-decode.h: Add comments.
6015 (CMD_LIST_AMBIGUOUS): Moved to command.h
6016 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6017 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6018 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6019 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6020 (add_com, add_com_alias, add_info, add_info_alias)
6021 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6022 declarations.
6023 * command.h: Add and adjust comments.
6024 (CMD_LIST_AMBIGUOUS): Moved here.
6025 (help_cmd, help_cmd_list): Delete declarations.
6026
5953832c
DE
60272012-01-04 Doug Evans <dje@google.com>
6028
e5fe5e75
DE
6029 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6030 All callers updated.
6031 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6032 Replace all arguments with "per_cu". All callers updated.
6033
28dee7f5
DE
6034 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6035
23745b47
DE
6036 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6037 New arg "per_cu". All callers updated.
6038
5953832c
DE
6039 Delete #if 0'd out code.
6040 * language.c (binop_result_type): Delete.
6041 (simple_type, ordered_type, same_type, integral_type): Delete.
6042 (numeric_type, character_type, string_type, boolean_type): Delete.
6043 (float_type, structured_type): Delete.
6044 * language.h: Update.
6045
0f5b7562
TT
60462012-01-04 Tom Tromey <tromey@redhat.com>
6047
6048 * python/py-value.c (valpy_binop): Initialize 'res_val'.
6049
78218f56
JB
60502012-01-04 Joel Brobecker <brobecker@adacore.com>
6051
6052 * corefile.c (close_exec_file): Delete.
6053 (reopen_exec_file): Remove commented out code that seems related
6054 to close_exec_file, which is being deleted here.
6055 * inferior.h (close_exec_file): Delete.
6056 * fork-child.c (fork_inferior): Remove call to fork_inferior.
6057
0fcd72ba
JB
60582012-01-04 Joel Brobecker <brobecker@adacore.com>
6059
6060 * ada-lang.c: #include "cli/cli-utils.h".
6061 (get_selections): Use skip_spaces.
6062 (ada_get_next_arg): Use skip_spaces and skip_to_space.
6063 (catch_ada_exception_command_split): Use skip_spaces.
6064 (ada_decode_assert_location): Likewise.
6065
1dabb4c4
JB
60662012-01-04 Joel Brobecker <brobecker@adacore.com>
6067
6068 * linespec.c (decode_line_internal): Check for C++ or Java
6069 compound constructs only if the current language is C, C++
6070 or Java.
6071
5931a2fa
JK
60722012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6073
6074 Revert:
6075 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6076 Joel Brobecker <brobecker@adacore.com>
6077 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6078 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6079 3 times.
6080 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6081 fall through into AT_ENTRY_POINT.
6082 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6083 DUMMY_ADDR with it.
6084 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6085 PPC_INSN_SIZE skip to 3 times.
6086
1a2da5ee
JB
60872012-01-04 Joel Brobecker <brobecker@adacore.com>
6088
6089 * linespec.c (add_minsym): Preserve function descriptors.
6090
8645ff69
UW
60912012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6092
6093 * breakpoint.c (all_locations_are_pending): Consider locations
6094 in program spaces executing during startup pending as well.
6095
0b302171
JB
60962012-01-04 Joel Brobecker <brobecker@adacore.com>
6097
6098 Copyright year update in most files of the GDB Project.
6099
8ba098ad
JB
61002012-01-04 Joel Brobecker <brobecker@adacore.com>
6101
6102 * copyright.sh: Delete.
6103 * copyright.py: Rewrite.
6104
09c01c30
JB
61052012-01-04 Joel Brobecker <brobecker@adacore.com>
6106
6107 * gnulib/extra/update-copyright: New file, imported from gnulib.
6108
3c36c0af
JB
61092012-01-04 Joel Brobecker <brobecker@adacore.com>
6110
6111 * README (Copyright and License Notices): New section.
6112
888fe1e1
TT
61132012-01-03 Tom Tromey <tromey@redhat.com>
6114
6115 PR python/12533:
6116 * python/py-value.c (valpy_dereference, valpy_get_address
6117 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6118 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
6119 (valpy_absolute, valpy_richcompare): Free intermediate values.
6120
6e681866
JB
61212011-01-03 Joel Brobecker <brobecker@adacore.com>
6122
6123 * ada-lang.c: Reformat the copyright notice.
6124
0cd09acb
JK
61252012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6126
6127 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
6128 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
6129 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6130 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
6131 Revert this part of:
6132 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6133 Build gdb directly from *.o files not using libgdb.a.
6134 * Makefile.in (COMMON_OBS): Remove solib-target.o.
6135
12c3e59c
JB
61362012-01-02 Joel Brobecker <brobecker@adacore.com>
6137
6138 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
6139 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
6140 Reformat the copyright header.
6141
11bf1490
JK
61422012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6143
6144 Revert this part of:
6145 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6146 Remove the gdbtui binary.
6147 * gdb.c (main): Remove args.interpreter_p initialization.
6148 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6149 * main.h (struct captured_main_args): Remove interpreter_p.
6150
1fef196f
JB
61512012-01-02 Joel Brobecker <brobecker@adacore.com>
6152
6153 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
6154
67827812
JB
61552012-01-02 Joel Brobecker <brobecker@adacore.com>
6156
6157 * top.c (print_gdb_version): Update copyright year.
6158
a4d0b831
YQ
61592012-01-02 Yao Qi <yao@codesourcery.com>
6160
6161 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
6162
b5914469
JK
61632012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6164 Joel Brobecker <brobecker@adacore.com>
6165
6166 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6167 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6168 3 times.
6169 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6170 fall through into AT_ENTRY_POINT.
6171 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6172 DUMMY_ADDR with it.
6173 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6174 PPC_INSN_SIZE skip to 3 times.
6175
8da828f7
JK
61762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6177
6178 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
6179 the return value.
6180 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
6181
8574e74b
JK
61822012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6183
6184 Build gdb directly from *.o files not using libgdb.a.
6185 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
6186 (COMMON_OBS): Remove solib-target.o.
6187 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
6188 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
6189 (LIBGDB_OBS, libgdb.a): Move it above.
6190 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
6191 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
6192 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
6193 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
6194 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
6195 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
6196 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
6197 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
6198 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
6199 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
6200 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
6201 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
6202 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
6203 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
6204 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6205 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
6206 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
6207 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6208 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
6209 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
6210 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
6211 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
6212 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
6213 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
6214 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
6215 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
6216 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
6217
217bff3e
JK
62182012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6219
6220 Remove the gdbtui binary.
6221 * .gitignore (/gdbtui): Remove.
6222 * Makefile.in (TUI): Remove.
6223 (SUBDIR_TUI_OBS): Remove tui-main.o.
6224 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
6225 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
6226 (tui-main.o): Remove.
6227 (all_object_files): Remove tui-main.o.
6228 * NEWS: New note for the gdbtui removal.
6229 * configure: Rebuilt.
6230 * configure.ac: No longer add all-tui, clean-tui, install-tui and
6231 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
6232 CONFIG_UNINSTALL respectively.
6233 * gdb.c (main): Remove args.interpreter_p initialization.
6234 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6235 * main.h (struct captured_main_args): Remove interpreter_p.
6236 * tui/tui-main.c: Remove.
6237
9cdd5dbd
DE
62382012-01-01 Doug Evans <dje@google.com>
6239
bb5ed363
DE
6240 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
6241 (dwarf2_physname, read_import_statement): Ditto.
6242 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
6243 (process_structure_scope read_subroutine_type): Ditto.
6244 (read_typedef, load_partial_dies, read_partial_die): Ditto.
6245 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
6246 (dwarf2_fetch_die_location_block): Ditto.
6247 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
6248
a0f42c21
DE
6249 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
6250 All callers updated.
6251 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
6252 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
6253 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
6254
2dc860c0
DE
6255 * dwarf2read.c (load_cu): Move assert to more useful location.
6256
68dc6402
DE
6257 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
6258 All callers updated.
6259
9cdd5dbd
DE
6260 * dwarf2read.c (dwarf2_per_objfile): Add comment.
6261 (dwarf2_elf_names): Minor reformat.
6262 (dwarf2_per_cu_data): Tweak comment.
6263 (dwarf2_read_section): Fix comment.
6264 (create_all_comp_units): Fix comment.
6265 (load_full_comp_unit): Fix comment.
6266 (process_full_comp_unit): Fix comment.
6267 (read_signatured_type): Fix comment.
6268
0c10e53e 6269For older changes see ChangeLog-2011.
c906108c
SS
6270\f
6271Local Variables:
6272mode: change-log
6273left-margin: 8
6274fill-column: 74
6275version-control: never
57da7796 6276coding: utf-8
c906108c 6277End:
This page took 1.805652 seconds and 4 git commands to generate.