ChangeLog fix:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dc7650b8
JK
12012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2
28e66c70 3 PR gdb/14494.
dc7650b8
JK
4 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
5 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
6 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
7 here.
8
1591a1e8
PA
92012-08-27 Wei-cheng Wang <cole945@gmail.com>
10
11 * memattr.c (create_mem_region): Fix memory region overlapping
12 checking.
13
ecfb0d68
SP
142012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
15
16 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
17 with xmalloc/cleanup.
18 * mt-tdep.c (mt_push_dummy_call): Likewise.
19 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
20 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
21
8c56c1b9
YQ
222012-08-24 Yao Qi <yao@codesourcery.com>
23
24 * jv-exp.y (push_expression_name): Add "." at the end of error
25 message.
26
e3480f4a
YPK
272012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
28
29 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
30 * python/python.c (_initialize_python): Update documentation.
31
dfbd5e7b
PA
322012-08-23 Pedro Alves <palves@redhat.com>
33
34 * infrun.c (_initialize_infrun) <handle command help text>:
35 Mention that multiple signals are supported.
36
2edda2ff
PA
372012-08-23 Pedro Alves <palves@redhat.com>
38
39 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
40 string.
41
8d735b87
YQ
422012-08-23 Yao Qi <yao@codesourcery.com>
43
44 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
45 (tfind_1): Don't call registers_changed, set_traceframe_num,
46 and clear_traceframe_info.
47 Call set_current_traceframe.
48 (set_current_traceframe): call set_traceframe_num.
49
c5d9b215
SDJ
502012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
51
52 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
53 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
54
037bbc8e
YPK
552012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
56
57 Enable readline in Python in a GDB-specific way and block the
58 standard Python readline module to prevent conflicts with GDB.
59 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
60 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
61 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
62 * python/py-gdb-readline.c: New file.
63 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
64 prototype.
65 * python/python.c (_initialize_python): Call
66 gdbpy_initialize_gdb_readline.
67
406b1477
KS
682012-08-22 Keith Seitz <keiths@redhat.com>
69
70 * defs.h: Include build-gnulib/config.h
71
6ca1b147
JM
722012-08-22 Joseph Myers <joseph@codesourcery.com>
73
74 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
75 and blx pc.
76
8315665e
YPK
772012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
78
79 Add a new "python-interactive" command that starts a standard
80 Python interactive prompt with "pi" as alias, and add "py" as
81 an alias to "python".
82 * NEWS: Mention the new commands.
8315665e
YPK
83 * python/python.c (eval_python_command): New function.
84 (python_interactive_command): For "python-interactive" with
85 arguments, call eval_python_command. For "python-interactive"
86 without arguments, call PyRun_InteractiveLoop.
87 (_initialize_python): Add "python-interactive" command with
88 "pi" as alias, and add "py" as an alias to "python".
89
522002f9
TT
902012-08-22 Tom Tromey <tromey@redhat.com>
91
92 * defs.h (quit_flag): Don't declare.
93 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
94 (QUIT): Use new functions.
95 * event-top.c (command_handler): Use clear_quit_flag.
96 (handle_sigint): Use set_quit_flag.
97 (async_request_quit): Use check_quit_flag. Don't check
98 immediate_quit.
99 * exceptions.c (throw_exception): Use clear_quit_flag.
100 * main.c (captured_main): Use clear_quit_flag.
101 * python/python.c (clear_quit_flag, set_quit_flag)
102 (check_quit_flag): New functions.
103 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
104 clear_quit_flag.
105 * remote.c (remote_wait_as): Use check_quit_flag,
106 clear_quit_flag.
107 (remote_start_remote): Call QUIT.
108 * symfile.c (load_progress): Use check_quit_flag.
109 * top.c (command_loop): Use clear_quit_flag.
110 (command_line_input): Call QUIT.
111 * utils.c (quit_flag): Conditionally define.
112 (clear_quit_flag, check_quit_flag, set_quit_flag): New
113 functions.
114 (prompt_for_continue): Call QUIT. Use quit, not
115 async_request_quit.
116 * remote-mips.c (mips_expect_timeout): Call QUIT.
117 * monitor.c (monitor_expect): Call QUIT.
118
b583003e
TT
1192012-08-22 Tom Tromey <tromey@redhat.com>
120
121 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
122 (async_init_signals): Update.
123 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
124 (SIGWINCH_HANDLER_BODY): Remove.
125
e1507e95
TT
1262012-08-22 Tom Tromey <tromey@redhat.com>
127
128 * jit.c (jit_object_close_impl): Don't malloc the objfile
129 name.
130 * objfiles.c (allocate_objfile): Don't malloc the objfile
131 name.
132 (free_objfile): Don't free the objfile name.
133 * objfiles.h (struct objfile) <name>: Update comment.
134 * symfile.c (reread_symbols): Fix reference counting. Don't
135 malloc objfile name.
136
1c00ec6b
TT
1372012-08-22 Tom Tromey <tromey@redhat.com>
138
139 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
140 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
141 (symfile_bfd_open): Likewise.
142 (generic_load): Likewise.
143 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
144 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
145 gdb_bfd_open.
146 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
147 Use gdb_bfd_open.
148 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
149 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
150 (pmon_load_fast): Likewise.
151 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
152 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
153 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
154 (macho_check_dsym): Likewise.
155 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
156 (m32r_upload_command): Likewise.
157 * gdb_bfd.h (gdb_bfd_cache): Declare.
158 * gdb_bfd.c (struct gdb_bfd_data): New.
159 (gdb_bfd_cache): New global.
160 (struct gdb_bfd_cache_search): New.
161 (hash_bfd): New function.
162 (eq_bfd): Likewise.
163 (gdb_bfd_open): Likewise.
164 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
165 (gdb_bfd_unref): Remove closed BFD from cache. Update for
166 gdb_bfd_data.
167 * exec.c (exec_file_attach): Use gdb_bfd_open.
168 * dsrec.c (load_srec): Use gdb_bfd_open.
169
6532ff36
TT
1702012-08-22 Tom Tromey <tromey@redhat.com>
171
172 * dwarf2read.c (macro_start_file): Update.
173 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
174 (free_objfile_per_bfd_storage): Destroy macro_cache.
175 (allocate_objfile, free_objfile): Update.
176 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
177 New field.
178 (struct objfile) <macro_cache>: Remove.
179 * symfile.c (reread_symbols): Update.
180 * symmisc.c (print_symbol_bcache_statistics): Update.
181 (print_objfile_statistics): Update.
182
706e3705
TT
1832012-08-22 Tom Tromey <tromey@redhat.com>
184
185 * elfread.c (elf_symtab_read): Update.
186 * objfiles.c (objfiles_bfd_data): New global.
187 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
188 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
189 (allocate_objfile, free_objfile): Update.
190 (_initialize_objfiles): Initialize objfiles_bfd_data.
191 * objfiles.h (struct objfile_per_bfd_storage): New.
192 (struct objfile) <per_bfd>: New field.
193 <filename_cache>: Remove.
194 (set_objfile_per_bfd): Declare.
195 * symfile.c (reread_symbols): Update. Call
196 set_objfile_per_bfd.
197 (allocate_symtab): Update.
198 * symmisc.c (print_symbol_bcache_statistics): Update.
199 (print_objfile_statistics): Print the size of the BFD obstack.
200
e992eda4
TT
2012012-08-22 Tom Tromey <tromey@redhat.com>
202
203 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
204 * gdb_bfd.c: Use DEFINE_REGISTRY.
205 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
206 (gdb_bfd_ref): Call bfd_alloc_data.
207 (gdb_bfd_unref): Call bfd_free_data.
208
6b81941e
TT
2092012-08-22 Tom Tromey <tromey@redhat.com>
210
211 * registry.h (struct registry_fields): New.
212 (REGISTRY_FIELDS): Redefine.
213 (REGISTRY_ACCESS_FIELD): New macro.
214 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
215 functions.
216
8e260fc0
TT
2172012-08-22 Tom Tromey <tromey@redhat.com>
218
219 * auto-load.c (_initialize_auto_load): Update.
220 * solib-svr4.c (_initialize_svr4_solib): Update
221 * solib-dsbt.c (_initialize_dsbt_solib): Update.
222 * solib-darwin.c (_initialize_darwin_solib): Update.
223 * registry.h: New file.
224 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
225 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
226 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
227 (register_program_space_data_with_cleanup)
228 (register_program_space_data, program_space_alloc_data)
229 (clear_program_space_data, set_program_space_data)
230 (program_space_data): Don't declare.
231 * progspace.c: Use DEFINE_REGISTRY.
232 (struct program_space_data, struct
233 program_space_data_registration, struct
234 program_space_data_registry, program_space_data_registry)
235 (register_program_space_data_with_cleanup)
236 (register_program_space_data, program_space_alloc_data)
237 (program_space_free_data, clear_program_space_data)
238 (set_program_space_data, program_space_data): Remove.
239 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
240 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
241 (register_objfile_data_with_cleanup, register_objfile_data)
242 (clear_objfile_data, set_objfile_data, objfile_data): Don't
243 declare.
244 * objfiles.c: Use DEFINE_REGISTRY.
245 (struct objfile_data, struct objfile_data_registration, struct
246 objfile_data_registry, objfile_data_registry)
247 (register_objfile_data_with_cleanup, register_objfile_data)
248 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
249 (set_objfile_data, objfile_data): Remove.
250 (_initialize_objfiles): Update.
251 * jit.c (_initialize_jit): Update.
252 * inflow.c (_initialize_inflow): Update.
253 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
254 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
255 (register_inferior_data_with_cleanup, register_inferior_data)
256 (clear_inferior_data, set_inferior_data, inferior_data): Don't
257 declare.
258 * inferior.c: Use DEFINE_REGISTRY.
259 (struct inferior_data, struct inferior_data_registration, struct
260 inferior_data_registry, inferior_data_registry)
261 (register_inferior_data_with_cleanup, register_inferior_data)
262 (inferior_alloc_data, inferior_free_data clear_inferior_data)
263 (set_inferior_data, inferior_data): Remove.
264 * auxv.c (_initialize_auxv): Update.
265 * ada-lang.c (_initialize_ada_language): Update.
266 * breakpoint.c (_initialize_breakpoint): Update.
267 * i386-nat.c (i386_use_watchpoints): Update.
268
ed9eebaf
TT
2692012-08-22 Tom Tromey <tromey@redhat.com>
270
271 * exec.c (exec_close, exec_file_attach): Update.
272 (add_to_section_table): Initialize 'key' field.
273 (add_target_sections, remove_target_sections): Add 'key' argument.
274 * exec.h (add_target_sections, remove_target_sections): Add
275 'key' argument.
276 * solib.c (solib_map_sections, update_solib_list, clear_solib)
277 (reload_shared_libraries_1): Update.
278 * target.h (struct target_section) <key>: New field.
279
2f2e97fa
TT
2802012-08-22 Tom Tromey <tromey@redhat.com>
281
282 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
283
b3dbbd6f
PM
2842012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
285
286 * symfile.c (allocate_symtab): Use host_address_to_string
287 function instead of cast of pointer to long which is not
288 compatible with x86_64-w64-mingw32 build.
289
f94363d7
AP
2902012-08-19 Andrew Pinski <apinski@cavium.com>
291
292 * mips-tdep.c (is_octeon): New function.
293 (is_octeon_bbit_op): New function.
294 (mips32_next_pc): Handle Octeon's bbit instructions.
295 (mips32_instruction_has_delay_slot): Likewise.
296
78a59c2f
AP
2972012-08-19 Andrew Pinski <apinski@cavium.com>
298
299 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
300 before the function.
301
4f5bcb50
AP
3022012-08-19 Andrew Pinski <apinski@cavium.com>
303
304 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
305
e5afdbd7
KS
3062012-08-19 Keith Seitz <keiths@redhat.com>
307
308 PR c++/14365
309 * c-typeprint.c (c_type_print_varspec_prefix): Pass
310 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
311
13c9750e
EZ
3122012-08-18 Eli Zaretskii <eliz@gnu.org>
313
314 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
315 The typo broke "make TAGS".
316
db761810 3172012-08-17 Joel Brobecker <brobecker@adacore.com>
318
319 GDB 7.5 released.
320
a451cb65
KS
3212012-08-17 Keith Seitz <keiths@redhat.com>
322
323 PR c++/13356
324 * gdbtypes.c (strict_type_checking): New variable.
325 (show_strict_type_checking): New function.
326 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
327 if strict type checking is disabled.
328 (_initialize_gdbtypes): Add "check type" subcommand.
329 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
330
3312012-08-17 Keith Seitz <keiths@redhat.com>
332
333 * language.h (type_mode): Remove.
334 (type_check): Remove.
335 (struct language_defn): Remove la_type_check.
336 (STRICT_TYPE): Remove unused macro.
337 (type_error): Remove.
338 * language.c (set_type_range_case): Renamed to ...
339 (set_range_case): ... this. Update all callers.
340 Remove type_mode/type_check.
341 (type_mode): Remove.
342 (type_check): Remove.
343 (show_type_command): Remove.
344 (set_type_command): Remove.
345 (language_info): Remove type checking output.
346 (type_error): Remove unused function.
347 (range_error): Update comment.
348 (unknown_language_defn): Remove la_type_check.
349 (auto_language_defn): Likewise.
350 (local_language_defn): Likewise.
351 (_initialize_language): Remove "check type" subcommand.
352 * ada-lang.c (ada_language_defn): Remove la_type_check.
353 * c-lang.c (c_language_defn): Likewise.
354 (cplus_language_defn): Likewise.
355 (asm_language_defn): Likewise.
356 (minimal_language_defn): Likewise.
357 * d-lang.c (d_language_defn): Likewise.
358 * f-lang.c (f_language_defn): Likewise.
359 * go-lang.c (go_language_defn): Likewise.
360 * jv-lang.c (java_language_defn): Likewise.
361 * m2-lang.c (m2_language_defn): Likewise.
362 * objc-lang.c (objc_language_defn): Likewise.
363 * opencl-lang.c (opencl_language_defn): Likewise.
364 * p-lang.c (pascal_language_defn): Likewise.
365
dbf6a605
MF
3662012-08-16 Mike Frysinger <vapier@gentoo.org>
367
368 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
369
973e3cf7
JB
3702012-08-16 Joel Brobecker <brobecker@adacore.com>
371
372 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
373 New function.
374 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
375 using the regache. Use ia64_hpux_get_register_from_save_state_t
376 to access the bsp and bspstore registers if not.
377
d80ee84f
JB
3782012-08-16 Joel Brobecker <brobecker@adacore.com>
379
380 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
381 * breakpoint.c (detach_breakpoints): Change pid parameter into
382 a ptid. Adjust code accordingly.
383 * infrun.c (handle_inferior_event): Delete variable child_pid.
384 Update call to detach_breakpoints to pass the child ptid for
385 fork events.
386 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
387 assert that inferior_ptid's lwp is zero.
388 (linux_handle_extended_wait): Update call to detach_breakpoints.
389 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
390 detach_breakpoints.
391
2dcc6086
JB
3922012-08-16 Joel Brobecker <brobecker@adacore.com>
393
394 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
395 parent, only call detach_breakpoints if tts.tts_event ==
396 TTEVT_VFORK.
397
0c92d8c1
JB
3982012-08-16 Joel Brobecker <brobecker@adacore.com>
399
400 * dwarf2-frame.c (dwarf2_frame_cache): Use
401 get_frame_address_in_block instead of get_frame_pc as
402 the bound for executing the frame's FDE.
403
6b1755ce
YQ
4042012-08-16 Yao Qi <yao@codesourcery.com>
405
406 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
407 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
408 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
409 (c_type_print_varspec_suffix): Likewise.
410 * eval.c (evaluate_subexp_standard): Likewise.
411 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
412 (f_type_print_varspec_suffix): Likewise.
413 * gdbtypes.c (is_scalar_type): Likewise.
414 (recursive_dump_type): Likewise.
415 * infcall.c (value_arg_coerce): Likewise.
416 * m2-valprint.c (m2_val_print): Likewise.
417 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
418 (pascal_type_print_varspec_suffix): Likewise.
419 (pascal_type_print_base): Likewise.
420 * p-valprint.c (pascal_val_print): Likewise.
421 (pascal_val_print): Likewise.
422 * valops.c (value_slice): Likewise.
423 * valprint.c (scalar_type_p): Likewise.
424 * valarith.c (value_bitstring_subscript): Remove.
425 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
426 Remove comment on TYPE_CODE_BITSTRING.
427
428 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
429 TYPE_CODE_BITSTRING.
430
431 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
432 slot 0.
433
8acc4065
YQ
4342012-08-16 Yao Qi <yao@codesourcery.com>
435
436 * tracepoint.c (trace_find_none_command): Remove.
437 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
438
8128fd8e
YQ
4392012-08-16 Yao Qi <yao@codesourcery.com>
440
441 * remote.c (handle_notification): Remove parameter 'length'.
442 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
443
2873700e
KS
4442012-08-15 Keith Seitz <keiths@redhat.com>
445
446 * gdbtypes.c (opaque_type_resolution): Make static.
447 Add missing comment.
448 (overload_debug): Add missing comment.
449 (show_opaque_type_resolution): Likewise.
450 (show_overload_debug): Likewise.
451 (print_bit_vector): Remove unnecessary forward declaration.
452 (print_arg_types): Likewise.
453 (dump_fn_fieldlists): Likewise.
454 (print_cplus_stuff): Likewise.
455
b82d08cd
TT
4562012-08-15 Tom Tromey <tromey@redhat.com>
457
458 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
459 (gdb_bfd_ref): Initialize new field.
460 (gdb_bfd_unref): Unref the archive BFD.
461 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
462 parent archive.
463
db6573d6
TT
4642012-08-15 Tom Tromey <tromey@redhat.com>
465
466 PR python/14387:
467 * python/py-bpevent.c (create_breakpoint_event_object): Update
468 comment.
469 * python/py-event.c (evpy_add_attribute): Update comment.
470 * python/py-exitedevent.c (create_exited_event_object): Fix
471 reference counting and error handling.
472 * python/py-newobjfileevent.c (create_new_objfile_event_object):
473 Fix reference counting.
474 * python/py-signalevent.c (create_signal_event_object): Fix
475 reference counting and error handling.
476 * python/py-stopevent.c (emit_stop_event): Fix reference
477 counting.
478 * python/py-threadevent.c (get_event_thread): Return a
479 borrowed reference.
480 * python/py-type.c (convert_field): Fix reference counting.
481
a036ba48
TT
4822012-08-15 Tom Tromey <tromey@redhat.com>
483
484 * dwarf2read.c (dwarf_decode_macro_bytes)
485 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
486 as hash key.
487
486c7739
MF
4882012-08-14 Mike Frysinger <vapier@gentoo.org>
489
490 * infcmd.c (_initialize_infcmd): Update help text for the signal,
491 stepi, nexti, finish, next, step, jump, and continue commands.
492 * infrun.c (_initialize_infrun): Update help text for the handle
493 command.
494
4cf93a03
DE
4952012-08-14 Doug Evans <dje@google.com>
496
70b099cf
DE
497 * gdbtypes.c (struct extra): Delete, unused.
498
5212577a
DE
499 * gdbtypes.c: Whitespace cleanup.
500 (address_space_name_to_int): Remove "extern" from definition.
501 (_initialize_gdbtypes): Declare with initialize_file_ftype.
502
4cf93a03
DE
503 * gdbtypes.c (make_pointer_type): Remove redundant setting of
504 TYPE_POINTER_TYPE (type).
505
3756ef7e
GB
5062012-08-14 Gary Benson <gbenson@redhat.com>
507
508 * solib-svr4.c (svr4_free_library_list): Use free_so.
509
40d72643
MF
5102012-08-13 Mike Frysinger <vapier@gentoo.org>
511
512 * .gitignore: Add go-exp.c.
513
f47f77df
DE
5142012-08-13 Doug Evans <dje@google.com>
515
516 * value.c (show_convenience): Tweak comment.
517 (_initialize_values): Mention convenience functions in the help text
518 for "show convenience".
519
7507c54a
YQ
5202012-08-13 Yao Qi <yao@codesourcery.com>
521
522 * std-operator.def: Remove TERNOP_SLICE_COUNT.
523 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
524 TERNOP_SLICE_COUNT.
525 * eval.c (evaluate_subexp_standard): Likewise.
526 * expprint.c (print_subexp_standard): Likewise.
527 (dump_subexp_body_standard): Likewise.
528 * parse.c (operator_length_standard): Likewise.
529
5cad9736
YQ
5302012-08-13 Yao Qi <yao@codesourcery.com>
531
532 * std-operator.def: Remove OP_BITSTRING.
533 * breakpoint.c (watchpoint_exp_is_const): Update.
534 * eval.c (evaluate_subexp_standard): Remove handling to
535 OP_BITSTRING.
536 * expprint.c (print_subexp_standard): Likewise.
537 (dump_subexp_body_standard): Likewise.
538 * parse.c (operator_length_standard): Likewise.
539 * valops.c (value_bitstring): Remove.
540 * value.h: Remove the declaration of 'value_bitstring'.
541
bad7670a
SDJ
5422012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
543
544 * linespec.c (find_methods): Remove unused variables `i1' and
545 `name_len'.
546 (decode_line_full): Likewise for `arg_start'.
547
d9dce7fa
SDJ
5482012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
549
550 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
551 (zlib_decompress_section): Likewise for `section_data'.
552 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
553
a72c3253
DE
5542012-08-10 Doug Evans <dje@google.com>
555
556 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
557 * NEWS: Document them.
558 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
559 function/strfns.py.
560 * python/py-type.c (typy_array_1): New function.
561 (typy_array): Call it.
562 (typy_vector): New function.
563 (type_object_methods): Add "vector".
564 * python/lib/gdb/function/__init__.py: New file.
565 * python/lib/gdb/function/strfns.py: New file.
566
200bc880
SP
5672012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
568
569 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
570 for TYPE_FIELD_BITPOS.
571 (typy_get_sizeof): Likewise for TYPE_LENGTH.
572
de0bea00
MF
5732012-08-10 Mike Frysinger <vapier@gentoo.org>
574
575 PR cli/10436:
576 * common/vec.h (VEC_merge): Define.
577 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
578 (DEF_VEC_ALLOC_FUNC_P): Likewise.
579 (DEF_VEC_ALLOC_FUNC_O): Likewise.
580 * completer.c: Include gdb_signals.h.
581 (signal_completer): Define.
582 * completer.h (signal_completer): Add prototype.
583 * infcmd.c (_initialize_infcmd): Assign the command
584 completer for "signal" to handle_completer.
585 * infrun.c: Include completer.h.
586 (handle_completer): Define.
587 (_initialize_infrun): Declare a new local variable c. Store the
588 result of add_com("handle") to it. Assign the command
589 completer for "handle" to handle_completer.
590
5b9afe8a
YQ
5912012-08-09 Yao Qi <yao@codesourcery.com>
592
593 * cli/cli-decode.c (set_cmd_prefix): New.
594 (lookup_cmd_for_prefixlist): New.
595 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
596 of each cmd_list_element in *prefixlist.
597 (add_setshow_cmd_full): set_cmd_prefix.
598 (add_alias_cmd): Likewise.
599 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
600 Declare 'auto_boolean_enums'.
601 * cli/cli-setshow.c: Include "observer.h".
602 (notify_command_param_changed_p): New.
603 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
604 Remove 'static'.
605 (do_setshow_command): Split it to ...
606 (do_set_command, do_show_command): ... them. New.
607 (do_set_command): Call observer_notify_command_param_changed if
608 notify_command_param_changed_p returns true.
609 (cmd_show_list): Caller update.
610 * auto-load.c (set_auto_load_cmd): Likewise.
611 * remote.c (show_remote_cmd): Likewise.
612 * cli/cli-setshow.h: Update declarations.
613 * top.c (execute_command): Call do_set_command and do_show_command.
614
615 * NEWS: Mention new MI notification.
616 * mi/mi-interp.c: Declare mi_command_param_changed.
617 (mi_interpreter_init): Attach mi_command_param_changed to
618 observer command_param_changed.
619 (mi_command_param_changed): New.
620 Remove mi_suppress_breakpoint_notifications.
621 Define global variable mi_suppress_notification.
622 (mi_breakpoint_created): Update.
623 (mi_breakpoint_deleted): Likewise.
624 (mi_breakpoint_modified): Likewise.
625 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
626 'gdb-set' and set mi_suppress_notification.
627 * mi/mi-main.h: (mi_suppress_notification): New struct.
628
1969df89
JK
6292012-08-09 Andreas Tobler <andreast@fgznet.ch>
630 Jan Kratochvil <jan.kratochvil@redhat.com>
631
632 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
633
8bfd80db
YQ
6342012-08-09 Yao Qi <yao@codesourcery.com>
635
636 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
637 (skiplist): Move it to skip.c.
638 (init_cmd_lists): Remove code setting enablebreaklist and
639 skiplist to NULL.
640 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
641 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
642 skiplist.
643 * gdbcmd.h: Likewise.
644 * skip.c (_initialize_step_skip): Move 'skiplist' from
645 cli/cli-cmds.c.
646
28578e6b
YQ
6472012-08-09 Yao Qi <yao@codesourcery.com>
648
649 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
650 * gnu-nat.c, symfile.c: Likewise.
651
260c0b2a
DE
6522012-08-08 Aaron Gamble <agamble@google.com>
653
654 * utils.c (prompt_for_continue_wait_time): New static global.
655 (make_command_stats_cleanup): Initialize it.
656 (report_command_stats): Subtract time waiting for user.
657 (prompt_for_continue): Track time waiting for user.
658 (defaulted_query): Track time waiting for user.
659
4f485ebc
DE
6602012-08-08 Doug Evans <dje@google.com>
661
662 * eval.c (evaluate_subexp_standard): Fix thinko in handling
663 UNOP_MEMVAL_TYPE.
664 * expprint.c (print_subexp_standard, case OP_TYPE): New.
665 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
666 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
667 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
668 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
669 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
670 elt.
671 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
672 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
673 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
674 (dump_prefix_expression): Handle OP_TYPE.
675
2acf2b39
KS
6762012-08-08 Keith Seitz <keiths@redhat.com>
677
678 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
679 addr_start.
680
e6712ff1
DE
6812012-08-08 Doug Evans <dje@google.com>
682
683 * linux-thread-db.c: #include "gdb_vecs.h".
684 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
685 updated.
686 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
687 (thread_db_load_search): Use a vector to iterate over path elements.
688 Handle text appearing after "$pdir".
689
690 * gdb_string.h: Moved to ...
691 * common/gdb_string.h: ... here.
692 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
693 gdb_string.h and gdb_assert.h.
694
ab854e54
YQ
6952012-08-08 Yao Qi <yao@codesourcery.com>
696
697 * tic6x-tdep.c (tic6x_register_to_value): Remove.
698 (tic6x_value_to_register): Likewise.
699 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
700 and set_gdbarch_value_to_register.
701
4f69f4c2
JK
7022012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
703 Jean-Marc Saffroy <saffroy@gmail.com>
704
705 PR 11804
706 * defs.h (find_memory_region_ftype): New comment. New arg modified.
707 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
708 * gcore.c (gcore_create_callback): New function comment. Add modified
709 parameter. Only write modified regions. Set SEC_READONLY exactly
710 according to MODIFIED.
711 (objfile_find_memory_regions): Ignore separate debug info files. Ass
712 the passed modified value to FUNC.
713 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
714 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
715 first. New variables modified and has_anonymous. Parse the lines of
716 smaps file. Add the passed MODIFIED value to FUNC.
717 * procfs.c (find_memory_regions_callback): Add the passed modified
718 value.
719
78ac5f83
TT
7202012-08-06 Tom Tromey <tromey@redhat.com>
721
722 * dwarf2-frame.c (clear_pointer_cleanup): New function.
723 (dwarf2_frame_cache): Use it.
724 * frame-unwind.h (frame_sniffer_ftype): Document prologue
725 cache initialization constraint.
726
2c12abee
TT
7272012-08-06 Tom Tromey <tromey@redhat.com>
728
729 PR python/14386:
730 * varobj.c (update_dynamic_varobj_children): Don't call
731 PyIter_Check.
732
4979d7f0
TT
7332012-08-06 Tom Tromey <tromey@redhat.com>
734
735 PR cli/14392:
736 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
737
f3c8a52a
JK
7382012-08-06 Nathaniel Flath <flat0103@gmail.com>
739
740 * NEWS: New entry for 'cd' default parameters.
741 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
742
5a1cf4d6
TT
7432012-08-03 Tom Tromey <tromey@redhat.com>
744
745 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
746 return.
747
7c3270ae
UW
7482012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
749
750 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
751 to attempting lseek/write.
752 (inf_child_fileio_pread): Likewise for pread.
753
ccce17b0
YQ
7542012-08-02 Yao Qi <yao@codesourcery.com>
755
756 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
757 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
758 add_setshow_zinteger_cmd.
759 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
760 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
761 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
762 instead of add_setshow_zinteger_cmd.
763 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
764 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
765 instead of add_setshow_zinteger_cmd.
766 * frame.c (frame_debug): Add 'unsigned'.
767 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
768 add_setshow_zinteger_cmd.
769 * frame.h: Update the declaration of 'frame_debug'.
770 * gdbtypes.c (overload_debug): Add 'unsigned'.
771 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
772 add_setshow_zinteger_cmd.
773 * inferior.h: Update declaration of 'debug_infrun'.
774 * infrun.c (debug_infrun): Add 'unsigned'.
775 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
776 add_setshow_zinteger_cmd.
777 * jit.c (jit_debug): Add 'unsigned'.
778 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
779 add_setshow_zinteger_cmd.
780 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
781 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
782 instead of add_setshow_zinteger_cmd.
783 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
784 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
785 add_setshow_zinteger_cmd.
786 * machoread.c (mach_o_debug_level): Add 'unsigned'.
787 (_initialize_machoread): Call add_setshow_zuinteger_cmd
788 instead of add_setshow_zinteger_cmd.
789 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
790 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
791 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
792 intead of add_setshow_zinteger_cmd.
793 * mips-tdep.c (mips_debug): Add 'unsigned'.
794 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
795 instead of add_setshow_zinteger_cmd.
796 * monitor.c (monitor_debug): Add 'unsigned'.
797 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
798 add_setshow_zinteger_cmd.
799 * observer.c (observer_debug): Add 'unsigned'.
800 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
801 add_setshow_zinteger_cmd.
802 * parse.c (expressiondebug): Add 'unsigned'.
803 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
804 add_setshow_zinteger_cmd.
805 * record.c (record_debug): Add 'unsigned'.
806 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
807 add_setshow_zinteger_cmd.
808 * record.h: Update the declaration of 'record_debug'.
809 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
810 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
811 add_setshow_zinteger_cmd.
812 * serial.c (global_serial_debug_p): Add 'unsigned'.
813 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
814 add_setshow_zinteger_cmd.
815 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
816 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
817 add_setshow_zinteger_cmd.
818 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
819 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
820 add_setshow_zinteger_cmd.
821 * target.c (targetdebug): Add 'unsigned'.
822 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
823 add_setshow_zinteger_cmd.
824 * valops.c (overload_debug): Add 'unsigned'.
825 * varobj.c (varobjdebug): Add 'unsigned'.
826 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
827 add_setshow_zinteger_cmd.
828 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
829 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
830 instead of add_setshow_zinteger_cmd.
831
832 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
833 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
834 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
835 instead of add_setshow_zinteger_cmd.
836 * gdbarch.c, gdbarch.h: Re-generated.
837
95b07c96
YQ
8382012-08-02 Yao Qi <yao@codesourcery.com>
839
840 * nto-tdep.c: Don't include cli/cli-decode.h and
841 cli/cli-cmds.h.
842 (_initialize_nto_tdep): Remove.
843 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
844 Remove field.
845 Remove macro nto_internal_debugging.
846
57295b0b
RH
8472012-08-01 Richard Henderson <rth@redhat.com>
848
849 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
850 (mep-*-*) [gdb_target_obs]: Likewise.
851
f782ad9b
AS
8522012-07-31 Andreas Schwab <schwab@linux-m68k.org>
853
854 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
855 linux_get_siginfo_type.
856
a14dd77e
JK
8572012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
858
859 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
860 AT_ENTRY_POINT.
861 (call_function_by_hand) <ON_STACK>: Call write_memory with
862 gdbarch_breakpoint_from_pc, if possible.
863 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
864 here.
865
1467929f
YQ
8662012-07-31 Yao Qi <yao@codesourcery.com>
867
868 * tracepoint.c: Add 'static' for some variables.
869
70976b65
YQ
8702012-07-31 Yao Qi <yao@codesourcery.com>
871
872 * go32-nat.c: Declare _initialize_go32_nat.
873 * ser-go32.c: Declare _initialize_ser_dos.
874 * top.c (do_chdir_cleanup): Add 'static'.
875
eff9c3e6
KS
8762012-07-30 Keith Seitz <keiths@redhat.com>
877
878 * linespec.c (linespec_lex_number): A number followed
879 by quotes is a valid number, too.
880
728400d7
TT
8812012-07-30 Tom Tromey <tromey@redhat.com>
882
883 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
884
fcf303ab
UW
8852012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
886
887 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
888 attempt to 4-byte-align HW breakpoint addresses for Thumb.
889
4e969b4f
AB
8902012-07-30 Andrew Burgess <aburgess@broadcom.com>
891
892 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
893 invalid or reevaluated to prevent prevent references to possibly
894 delete'd type objects being left in the varobj.
895
c4bfde41
JK
8962012-07-27 Tom Tromey <tromey@redhat.com>
897 Jan Kratochvil <jan.kratochvil@redhat.com>
898
899 * copying.awk: Print buffer-read-only and vi ro markers.
900 * copying.c: Rebuild.
901 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
902 * gdbarch.c, gdbarch.h: Rebuild.
903 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
904 buffer-read-only and vi ro markers.
905 * features/arm-with-iwmmxt.c: Rebuild.
906 * features/arm-with-m-fpa-layout.c: Rebuild.
907 * features/arm-with-m-vfp-d16.c: Rebuild.
908 * features/arm-with-m.c: Rebuild.
909 * features/arm-with-neon.c: Rebuild.
910 * features/arm-with-vfpv2.c: Rebuild.
911 * features/arm-with-vfpv3.c: Rebuild.
912 * features/i386/amd64-avx-linux.c: Rebuild.
913 * features/i386/amd64-avx.c: Rebuild.
914 * features/i386/amd64-linux.c: Rebuild.
915 * features/i386/amd64.c: Rebuild.
916 * features/i386/i386-avx-linux.c: Rebuild.
917 * features/i386/i386-avx.c: Rebuild.
918 * features/i386/i386-linux.c: Rebuild.
919 * features/i386/i386-mmx-linux.c: Rebuild.
920 * features/i386/i386-mmx.c: Rebuild.
921 * features/i386/i386.c: Rebuild.
922 * features/i386/x32-avx-linux.c: Rebuild.
923 * features/i386/x32-avx.c: Rebuild.
924 * features/i386/x32-linux.c: Rebuild.
925 * features/i386/x32.c: Rebuild.
926 * features/mips-dsp-linux.c: Rebuild.
927 * features/mips-linux.c: Rebuild.
928 * features/mips64-dsp-linux.c: Rebuild.
929 * features/mips64-linux.c: Rebuild.
930 * features/rs6000/powerpc-32.c: Rebuild.
931 * features/rs6000/powerpc-32l.c: Rebuild.
932 * features/rs6000/powerpc-403.c: Rebuild.
933 * features/rs6000/powerpc-403gc.c: Rebuild.
934 * features/rs6000/powerpc-405.c: Rebuild.
935 * features/rs6000/powerpc-505.c: Rebuild.
936 * features/rs6000/powerpc-601.c: Rebuild.
937 * features/rs6000/powerpc-602.c: Rebuild.
938 * features/rs6000/powerpc-603.c: Rebuild.
939 * features/rs6000/powerpc-604.c: Rebuild.
940 * features/rs6000/powerpc-64.c: Rebuild.
941 * features/rs6000/powerpc-64l.c: Rebuild.
942 * features/rs6000/powerpc-7400.c: Rebuild.
943 * features/rs6000/powerpc-750.c: Rebuild.
944 * features/rs6000/powerpc-860.c: Rebuild.
945 * features/rs6000/powerpc-altivec32.c: Rebuild.
946 * features/rs6000/powerpc-altivec32l.c: Rebuild.
947 * features/rs6000/powerpc-altivec64.c: Rebuild.
948 * features/rs6000/powerpc-altivec64l.c: Rebuild.
949 * features/rs6000/powerpc-cell32l.c: Rebuild.
950 * features/rs6000/powerpc-cell64l.c: Rebuild.
951 * features/rs6000/powerpc-e500.c: Rebuild.
952 * features/rs6000/powerpc-e500l.c: Rebuild.
953 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
954 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
955 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
956 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
957 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
958 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
959 * features/rs6000/powerpc-vsx32.c: Rebuild.
960 * features/rs6000/powerpc-vsx32l.c: Rebuild.
961 * features/rs6000/powerpc-vsx64.c: Rebuild.
962 * features/rs6000/powerpc-vsx64l.c: Rebuild.
963 * features/rs6000/rs6000.c: Rebuild.
964 * features/s390-linux32.c: Rebuild.
965 * features/s390-linux32v1.c: Rebuild.
966 * features/s390-linux32v2.c: Rebuild.
967 * features/s390-linux64.c: Rebuild.
968 * features/s390-linux64v1.c: Rebuild.
969 * features/s390-linux64v2.c: Rebuild.
970 * features/s390x-linux64.c: Rebuild.
971 * features/s390x-linux64v1.c: Rebuild.
972 * features/s390x-linux64v2.c: Rebuild.
973 * features/tic6x-c62x-linux.c: Rebuild.
974 * features/tic6x-c62x.c: Rebuild.
975 * features/tic6x-c64x-linux.c: Rebuild.
976 * features/tic6x-c64x.c: Rebuild.
977 * features/tic6x-c64xp-linux.c: Rebuild.
978 * features/tic6x-c64xp.c: Rebuild.
979
826f0041
TT
9802012-07-27 Tom Tromey <tromey@redhat.com>
981
982 * c-exp.y (classify_name): Avoid assignment in condition.
983
84552b16
PA
9842012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
985
986 * amd64-windows-tdep.c: Include "frame.h".
987 (amd64_windows_skip_trampoline_code): New function.
988 (amd64_windows_init_abi): Add trampoline registration.
989
a8a64aa8
YQ
9902012-07-27 Yao Qi <yao@codesourcery.com>
991
992 * tracepoint.c (cur_traceframe_number): Remove.
993 (set_tfile_traceframe): Remove.
994 (tfile_trace_find, tfile_fetch_registers): Update callers.
995 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
996 (tfile_open, tfile_trace_find): Likewise.
997
d99067cb
YQ
9982012-07-27 Yao Qi <yao@codesourcery.com>
999
1000 * thread.c (switch_to_thread): Don't call registers_changed.
1001
f2e8016f
TT
10022012-07-26 Tom Tromey <tromey@redhat.com>
1003
f782ad9b
AS
1004 * Makefile.in (SFILES): Remove objc-exp.y.
1005 (YYFILES): Remove objc-exp.c.
1006 (YYOBJ): Remove objc-exp.o.
1007 (local-maintainer-clean): Don't mention objc-exp.c.
1008 * c-exp.y: Include objc-lang.h.
1009 (%union) <class>: New field.
1010 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1011 (exp): Clone subscript production for OBJC_LBRAC. Add various
1012 Objective C productions.
1013 (msglist, msgarglist, msgarg): New productions.
1014 (array_mod, func_mod, operator): Clone productions for
1015 OBJC_LBRAC.
1016 (parse_string_or_char): Handle '@' strings.
1017 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1018 (classify_name): Check la_name_of_this. Recognize ObjC class
1019 names.
1020 * objc-exp.y: Remove.
1021 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1022 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1023
f66713d2
JK
10242012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1025
1026 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1027
7cfe01b4
JK
10282012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1029
1030 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1031 and decrement.
1032
5ba19b4c
TT
10332012-07-26 Tom Tromey <tromey@redhat.com>
1034
1035 * copying.c: Rebuild.
1036 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1037 'no_class'.
1038
27618ce4
TT
10392012-07-26 Tom Tromey <tromey@redhat.com>
1040
1041 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1042 immediate_quit.
1043 (print_objfile_statistics): Likewise.
1044 (maintenance_print_symbols): Likewise.
1045 (maintenance_print_msymbols): Likewise.
1046 (maintenance_print_objfiles): Likewise.
1047 * psymtab.c (print_partial_symbols): Call QUIT.
1048 (maintenance_print_psymbols): Likewise. Don't modify
1049 immediate_quit.
1050 * copying.c (show_copying_command): Don't modify immediate_quit.
1051 (show_warranty_command): Likewise.
1052 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1053
dd3818c8
KS
10542012-07-26 Keith Seitz <keiths@redhat.com>
1055
1056 * linespec.c (linespec_lexer_lex_number): The input
1057 is also a valid number if the next character is a comma
1058 or colon.
1059
23a80689
JB
10602012-07-26 Joel Brobecker <brobecker@adacore.com>
1061
1062 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1063 configure options.
1064
29f77997
TG
10652012-07-26 Tristan Gingold <gingold@adacore.com>
1066
1067 * machoread.c: Include gdb_bfd.h.
1068
a55c1f32
TG
10692012-07-26 Tristan Gingold <gingold@adacore.com>
1070
1071 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1072 offset.
1073
56eb65bd
SP
10742012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1075
1076 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1077 SIZE to size_t.
1078 (dwarf2_evaluate_loc_desc): Likewise.
1079 (dwarf2_loc_desc_needs_frame): Likewise.
1080 (locexpr_describe_location_1): Likewise.
1081 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1082 size_t.
1083 (struct dwarf2_loclist_baton): Likewise.
1084 * dwarf2read.c (struct dwarf_block): Likewise.
1085 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1086 (decode_locdesc): Expand SIZE and I to size_t.
1087
aec8845c
JK
10882012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1089
1090 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1091
33d7655b
JB
10922012-07-25 Joel Brobecker <brobecker@adacore.com>
1093
1094 * doublest.c (convert_doublest_to_floatformat): If the exponent
1095 is too small, treat the value as zero. If the exponent is too
1096 large, treat the value as infinity.
1097
a22d44ff
JB
10982012-07-25 Joel Brobecker <brobecker@adacore.com>
1099
1100 * configure.ac: Add --enable-lmcheck configure option.
1101 * configure: Regenerate.
1102
d6b28940
TT
11032012-07-25 Tom Tromey <tromey@redhat.com>
1104
f782ad9b
AS
1105 * NEWS: Mention maint info bfds.
1106 * gdb_bfd.c (all_bfds): New global.
1107 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1108 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1109 New functions.
d6b28940 1110
6e73ba20
RC
11112012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1112
1113 * configure.tgt: Add v850*-*-rtems*.
1114
d560eebd
TT
11152012-07-25 Tom Tromey <tromey@redhat.com>
1116
1117 * macrotab.c (macro_bcache_str): Remove cast.
1118
d7cbec71
HZ
11192012-07-25 Hui Zhu <hui_zhu@mentor.com>
1120
1121 * linespec.c (linespec_lexer_lex_number): Update comments,
1122 change the return and add check to make sure the input is
1123 the decimal numbers.
1124 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1125 false, call linespec_lexer_lex_string.
1126
882f447f
TT
11272012-07-24 Tom Tromey <tromey@redhat.com>
1128
1129 * symfile.c (symbol_file_add): Don't open BFD twice.
1130
53ab4066 11312012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1132
1133 * breakpoint.c (create_breakpoint): Store condition for pending
1134 breakpoints.
1135
108fb0f7
AS
11362012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1137
1138 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1139 (m68k_return_value): Handle complex types like structures.
1140 (m68k_svr4_return_value): Likewise.
1141
1634dcbe
JK
11422012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1143
1144 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1145 parameters to bfd_get_section_name.
1146
e2d12c21
YQ
11472012-07-24 Yao Qi <yao@codesourcery.com>
1148
1149 * cli/cli-setshow.c: Handle case 'var_uinteger'
1150 and 'var_zuninteger' together. Handle case 'var_integer' and
1151 'var_zinteger' together.
1152
64b92e45
KS
11532012-07-23 Keith Seitz <keiths@redhat.com>
1154
1155 * linespec.c (convert_linespec_to_sal): Don't add
1156 any symbols to the result vector if symbol_to_sal
1157 returns zero.
1158
0f5f4ffe
KS
11592012-07-23 Keith Seitz <keiths@redhat.com>
1160
1161 * linespec.c (decode_objc): Record the function name
1162 in the linespec.
1163
da1cc82f
TT
11642012-07-23 Tom Tromey <tromey@redhat.com>
1165
1166 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1167 counting.
1168 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1169 (map_vmap): Acquire a reference to the BFD.
1170
6c18f3e0
SP
11712012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1172
1173 * p-valprint.c (pascal_object_print_value): Replace potentially
1174 unsafe alloca with xmalloc/xfree.
1175 * valops.c (search_struct_method): Likewise.
1176
695c3173
TT
11772012-07-23 Tom Tromey <tromey@redhat.com>
1178
1179 * solib-svr4.c (enable_break): Update.
1180 * bfd-target.h (target_bfd_reopen): Update documentation.
1181
08d2cd74
TT
11822012-07-23 Tom Tromey <tromey@redhat.com>
1183
1184 * symfile.c (separate_debug_file_exists): Update.
1185 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1186 (reread_symbols): Update.
1187 * elfread.c (build_id_verify): Update.
1188 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1189 bfd_open_maybe_remote.
1190
596f7d67
TT
11912012-07-23 Tom Tromey <tromey@redhat.com>
1192
1193 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1194
8ac244b4
TT
11952012-07-23 Tom Tromey <tromey@redhat.com>
1196
1197 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1198 and 'abfd'.
1199 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1200 and 'abfd'.
1201 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1202 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1203 'abfd'.
1204 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1205 * objfiles.c (allocate_objfile): Acquire a new reference.
1206 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1207 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1208 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1209 a cleanup for 'nbfd'.
1210 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1211 for 'nbfd'.
1212 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1213 make a cleanup for 'abfd'.
1214 (symbol_file_add): Make a BFD cleanup.
1215
64c31149
TT
12162012-07-23 Tom Tromey <tromey@redhat.com>
1217
1218 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1219 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1220 * corelow.c (core_open): Use gdb_bfd_fopen.
1221 * dsrec.c (load_srec): Use gdb_bfd_openr.
1222 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1223 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1224 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1225 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1226 (gdb_bfd_fdopenr): New functions.
1227 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1228 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1229 (gdb_bfd_fdopenr): Declare.
1230 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1231 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1232 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1233 gdb_bfd_openr_next_archived_file.
1234 (macho_check_dsym): Use gdb_bfd_openr.
1235 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1236 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1237 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1238 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1239 gdb_bfd_openr.
1240 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1241 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1242 gdb_bfd_openr_next_archived_file.
1243 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1244 Use gdb_bfd_openr.
1245 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1246 gdb_bfd_openr.
1247 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1248 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1249 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1250 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1251 (symfile_bfd_open): Use gdb_bfd_fopen.
1252 (generic_load): Use gdb_bfd_openr.
1253 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1254
520b0001
TT
12552012-07-23 Tom Tromey <tromey@redhat.com>
1256
1257 * bfd-target.c (target_bfd_reopen): Update.
1258 * cli/cli-dump.c (bfd_openr_with_cleanup)
1259 (bfd_openw_with_cleanup): Update.
1260 * corelow.c (core_open): Update.
1261 * dsrec.c (load_srec): Update.
1262 * exec.c (exec_file_attach): Update.
1263 * gcore.c (create_gcore_bfd): Update.
1264 * gdb_bfd.c (gdb_bfd_ref): Return void.
1265 (gdb_bfd_open): Update.
1266 * gdb_bfd.h (gdb_bfd_ref): Return void.
1267 Update comments.
1268 * jit.c (jit_bfd_try_read_symtab): Update.
1269 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1270 * machoread.c (macho_symfile_read_all_oso): Update.
1271 (macho_check_dsym): Update.
1272 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1273 * remote-m32r-sdi.c (m32r_load): Update.
1274 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1275 * rs6000-nat.c (add_vmap): Update.
1276 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1277 Update.
1278 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1279 * solib-spu.c (spu_bfd_open): Update.
1280 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1281 * spu-linux-nat.c (spu_bfd_open): Update.
1282 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1283 (generic_load): Update.
1284 * windows-nat.c (windows_make_so): Update.
1285
2322ff16
SP
12862012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1287
1288 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1289
3def0b36
PA
12902012-07-20 Jeff Kenton <jkenton@tilera.com>
1291
1292 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1293 SIGTRAMP_FRAME unwinding.
1294
e615022a
DE
12952012-07-20 Doug Evans <dje@google.com>
1296
1297 * NEWS: Document new options "set/show use-deprecated-index-sections",
1298 and delete reference to --use-deprecated-index-sections.
1299 * symfile.h (use_deprecated_index_sections): Delete.
1300 * dwarf2read.c (use_deprecated_index_sections): Make static.
1301 (read_index_from_section): Update wording of how to load
1302 deprecated index sections.
1303 (_initialize_dwarf2_read): New options
1304 "set/show use-deprecated-index-sections".
1305 * main.c (captured_main): Delete --use-deprecated-index-sections.
1306
64776a0b
PA
13072012-07-20 Pedro Alves <palves@redhat.com>
1308
1309 PR threads/11692
1310 PR gdb/12203
1311
1312 * infrun.c (handle_inferior_event) <new thread>: Don't special
1313 case minus_one_ptid.
1314 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1315 * linux-thread-db.c (thread_get_info_callback): Don't return early
1316 if the thread is zombie.
1317 (thread_from_lwp): Change return type to void. Rewrite stale
1318 comment.
1319 (attach_thread): Don't return early if the thread is zombie,
1320 instead set its "dying" flag.
1321 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1322 (find_new_threads_callback): Don't return early if the thread is
1323 zombie.
1324
09826ec5
PA
13252012-07-20 Pedro Alves <palves@redhat.com>
1326
1327 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1328 * target.c (target_wait): Likewise.
1329 (str_comma_list_concat_elem, do_option, target_options_to_string):
1330 New functions.
1331 * target.h (target_options_to_string): Declare.
1332
f7a35f02
TT
13332012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1334 Tom Tromey <tromey@redhat.com>
1335
1336 * dwarf2read.c (dwarf_decode_macros)
1337 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1338 DW_MACRO_GNU_transparent_include_alt>: New cases.
1339 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1340 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1341
b81e1ee0
TT
13422012-07-20 Tom Tromey <tromey@redhat.com>
1343
1344 * dwarf2read.c (try_open_dwo_file): Don't call
1345 gdb_bfd_stash_filename.
1346
99c1624c
PA
13472012-07-20 Pedro Alves <palves@redhat.com>
1348
1349 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1350 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1351 (i386_process_record): Tweak description comments.
1352
4ffa4fc7
PA
13532012-07-20 Pedro Alves <palves@redhat.com>
1354
1355 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1356 (i386_process_record): Use record_read_memory.
1357 * record.c (record_read_memory): New function.
1358 (record_arch_list_add_mem, record_exec_insn): Use
1359 record_read_memory.
1360 * record.h (record_read_memory): Declare.
1361
c24343e2
YQ
13622012-07-20 Yao Qi <yao@codesourcery.com>
1363
1364 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1365 NULL for xfree.
1366
90f47860
PA
13672012-07-19 Pedro Alves <palves@redhat.com>
1368
1369 * record.c (record_resume): Ask the target beneath to report all
1370 signals.
1371
01093045
DE
13722012-07-19 Doug Evans <dje@google.com>
1373
1374 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1375 there's no section at address zero.
1376 (dwarf2_record_block_ranges): Ditto.
1377
a7c3d162
YQ
13782012-07-19 Yao Qi <yao@codesourcery.com>
1379
1380 * command.h, remote.c: Fix a typo in comment.
1381
608b4967
TT
13822012-07-19 Tom Tromey <tromey@redhat.com>
1383
1384 PR exp/13206:
1385 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1386 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1387 OP_DECLTYPE>: New cases.
1388 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1389 (type_exp): Add new productions.
1390 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1391 and decltype.
1392 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1393 New case.
1394 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1395 OP_DECLTYPE>: New case.
1396 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1397 New case.
1398 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1399 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1400
274b54d7
TT
14012012-07-19 Tom Tromey <tromey@redhat.com>
1402
1403 * c-exp.y (enum token_flags): New.
1404 (struct token) <cxx_only>: Remove.
1405 <flags>: New field.
1406 (tokentab3, tokentab2, ident_tokens): Update.
1407 (lex_one_token): Update. Handle FLAG_SHADOW.
1408
9eaf6705
TT
14092012-07-19 Tom Tromey <tromey@redhat.com>
1410
1411 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1412 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1413 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1414 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1415 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1416 type_exp production where appropriate.
1417 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1418 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1419 <UNOP_MEMVAL_TYPE>: New case.
1420 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1421 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1422 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1423 <UNOP_MEMVAL_TYPE>: New case.
1424 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1425 UNOP_REINTERPRET_CAST>: Update.
1426 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1427 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1428 UNOP_REINTERPRET_CAST>: Update.
1429 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1430 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1431 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1432 constants.
1433
6ace3df1
YQ
14342012-07-19 Yao Qi <yao@codesourcery.com>
1435 Jan Kratochvil <jan.kratochvil@redhat.com>
1436
1437 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1438 and case 'var_optional_filename' together.
1439 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1440 instead of add_setshow_optional_filename_cmd for setshow command
1441 'args'. Set completer for 'set args'.
1442
48faced0
DE
14432012-07-18 Doug Evans <dje@google.com>
1444
1445 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1446 * common/gdb_vecs.c: New file, contents from utils.c.
1447 * common/host-defs.h: New file, contents from defs.h.
1448 * utils.h: New file, contents from defs.h.
1449 * defs.h: Move all declarations of objects defined in utils.c
1450 to utils.h (except QUIT() and related).
1451 #include "utils.h", "host-defs.h".
1452 * probe.h (probe_p): Move here from gdb_vecs.h.
1453 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1454 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1455 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1456 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1457 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1458 (COMMON_OBS): Add gdb_vecs.o.
1459 (gdb_vecs.o): New rule.
1460
66f1999b
KS
14612012-07-18 Keith Seitz <keiths@redhat.com>
1462
1463 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1464 parameter. If non-zero, use SYMNAME as the canonical name
1465 for the SaL.
1466 Update all callers.
1467 (convert_linespec_to_sals): Use add_sal_to_sals for
1468 expressions, too.
1469 (decode_line_full): No need to "fill in missing canonical names"
1470 anymore. Simply make cleanups for the allocated names.
1471
5d94e27b
KS
14722012-07-18 Keith Seitz <keiths@redhat.com>
1473
1474 * linespec.c (struct linespec): Constify expression,
1475 source_filename, function_name, and label_name.
1476 (symbol_not_found_error): Make all parameters const.
1477 (linespec_parser_delete): No need to check for NULL
1478 when using xfree. Cast const char * to char * for xfree.
1479
af4908ba
KS
14802012-07-18 Keith Seitz <keiths@redhat.com>
1481
1482 * breakpoint.c (invalid_thread_id_error): New function.
1483 (find_condition_and_thread): Use invalid_thread_id_error.
1484 (watch_command_1): Likewise.
1485
853254db
TT
14862012-07-18 Tom Tromey <tromey@redhat.com>
1487
1488 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1489 * contrib/cc-with-tweaks.sh: New file.
1490
2ec9a5e0
TT
14912012-07-18 Tom Tromey <tromey@redhat.com>
1492
1493 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1494 (locate_dwz_sections): Recognize .gdb_index.
1495 (create_cus_from_index_list): New function.
1496 (create_cus_from_index): Use it. Handle .dwz data.
1497 (read_index_from_section): New function, extracted from
1498 dwarf2_read_index.
1499 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1500 if needed.
1501
36586728
TT
15022012-07-18 Tom Tromey <tromey@redhat.com>
1503
1504 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1505 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1506 <is_dwz>: New field.
1507 (struct dwz_file): New.
1508 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1509 (locate_dwz_sections, dwarf2_get_dwz_file)
1510 (get_abbrev_section_for_cu): New functions.
1511 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1512 (read_and_check_type_unit_head): Add abbrev_section argument.
1513 (create_debug_types_hash_table): Update.
1514 (init_cutu_and_read_dies): Use proper abbrev section.
1515 (init_cutu_and_read_dies_no_follow): Likewise.
1516 (set_partial_user): Do nothing if PST==NULL.
1517 (read_comp_units_from_section): New function.
1518 (create_all_comp_units): Use it.
1519 (scan_partial_symbols, partial_die_parent_scope): Update.
1520 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1521 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1522 (find_partial_die): Add offset_in_dwz argument. Update.
1523 (guess_partial_die_structure_name, fixup_partial_die): Update.
1524 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1525 DW_FORM_GNU_strp_alt.
1526 (read_indirect_string_from_dwz): New function.
1527 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1528 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1529 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1530 (follow_die_offset): Add offset_in_dwz argument.
1531 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1532 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1533 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1534 Handle new macro forms.
1535 (dwarf_decode_macros): Update.
1536 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1537 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1538 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1539 (create_debug_types_hash_table): Use correct abbrev section.
1540 (get_debug_line_section): New function.
1541 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1542 (process_full_comp_unit): Pass 'required' argument to
1543 end_symtab_get_static_block.
1544 * buildsym.h (end_symtab_get_static_block): Update.
1545 * buildsym.c (end_symtab_get_static_block): Add 'required'
1546 argument.
1547 (end_symtab, end_expandable_symtab): Update.
1548
4bf44c1c
TT
15492012-07-18 Tom Tromey <tromey@redhat.com>
1550
1551 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1552 (pagesize): Remove.
1553 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1554 (zlib_decompress_section): Remove.
1555 (dwarf2_read_section): Use gdb_bfd_map_section.
1556 (munmap_section_buffer): Remove.
1557 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1558 munmap_section_buffer.
1559 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1560 (struct gdb_bfd_section_data): New.
1561 (free_one_bfd_section): New function.
1562 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1563 (get_section_descriptor, zlib_decompress_section)
1564 (gdb_bfd_map_section): New functions.
1565 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1566
bb397797
TT
15672012-07-18 Tom Tromey <tromey@redhat.com>
1568
1569 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1570
6ec53d05
TT
15712012-07-18 Tom Tromey <tromey@redhat.com>
1572
1573 * gdb_bfd.c (struct gdb_bfd_data): New.
1574 (gdb_bfd_cache): New global.
1575 (struct gdb_bfd_cache_search): New.
1576 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1577 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1578 * gdb_bfd.h (gdb_bfd_open): Declare.
1579
f9a062ff
TT
15802012-07-18 Tom Tromey <tromey@redhat.com>
1581
1582 * utils.c (make_cleanup_bfd_unref): Rename from
1583 make_cleanup_bfd_close.
1584 * defs.h (make_cleanup_bfd_unref): Rename from
1585 make_cleanup_bfd_close.
1586 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1587 (bfd_openw_with_cleanup): Update.
1588 * corelow.c (core_open): Update.
1589 * dsrec.c (load_srec): Update.
1590 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1591 * remote-m32r-sdi.c (m32r_load): Update.
1592 * remote-mips.c (mips_load_srec): Update.
1593 (pmon_load_fast): Update.
1594 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1595 Update.
1596 (darwin_bfd_open): Update.
1597 * solib.c (solib_bfd_fopen): Update.
1598 * symfile-mem.c (symbol_file_add_from_memory): Update.
1599 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1600 (symfile_bfd_open): Update.
1601 (generic_load): Update.
1602
d6ad71ba
TT
16032012-07-18 Tom Tromey <tromey@redhat.com>
1604
1605 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1606 (pmon_load_fast): Likewise.
1607 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1608 (m32r_upload_command): Likewise.
1609 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1610 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1611 Use make_cleanup_bfd_close.
1612
a4453b7e
TT
16132012-07-18 Tom Tromey <tromey@redhat.com>
1614
1615 * symfile.c (symfile_bfd_open): Don't copy name. Call
1616 gdb_bfd_stash_filename.
1617 (load_command): Open the new BFD before freeing the old.
1618 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1619 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1620 Call gdb_bfd_stash_filename.
1621 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1622 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1623 gdb_bfd_stash_filename.
1624 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1625 Free found_pathname.
1626 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1627 gdb_bfd_stash_filename.
1628 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1629 * machoread.c (macho_add_oso_symfile): Call
1630 gdb_bfd_stash_filename.
1631 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1632 gdb_bfd_stash_filename.
1633 (macho_check_dsym): Don't copy filename. Call
1634 gdb_bfd_stash_filename.
1635 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1636 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1637 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1638 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1639 * exec.c (exec_close): Don't free the BFD's filename.
1640 (exec_file_attach): Don't copy the filename. Call
1641 gdb_bfd_stash_filename.
1642 * corelow.c (core_close): Don't free the BFD's filename.
1643 (core_open): Call gdb_bfd_stash_filename.
1644 * corefile.c (reopen_exec_file): Remove #if 0 code.
1645 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1646 pathname.
1647 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1648
cbb099e8
TT
16492012-07-18 Tom Tromey <tromey@redhat.com>
1650
1651 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1652 gdb_bfd_unref.
1653 (free_dwo_file): Use gdb_bfd_unref.
1654 * cli/cli-dump.c: Include gdb_bfd.h.
1655 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1656 (bfd_openr_with_cleanup): Likewise.
1657 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1658 gdb_bfd_unref.
1659 * utils.c: Include gdb_bfd.h.
1660 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1661 * symfile.c: Include gdb_bfd.h.
1662 (separate_debug_file_exists): Use gdb_bfd_unref.
1663 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1664 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1665 (generic_load): Use gdb_bfd_ref.
1666 (reread_symbols): Use gdb_bfd_unref.
1667 * symfile-mem.c: Include gdb_bfd.h.
1668 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1669 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1670 * solib.c: Include gdb_bfd.h.
1671 (solib_bfd_fopen): Use gdb_bfd_ref.
1672 (solib_bfd_open): Use gdb_bfd_unref.
1673 (free_so_symbols): Use gdb_bfd_unref.
1674 (reload_shared_libraries_1): Use gdb_bfd_unref.
1675 * solib-spu.c: Include gdb_bfd.h.
1676 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1677 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1678 gdb_bfd_unref.
1679 * solib-frv.c: Include gdb_bfd.h.
1680 (enable_break2): Use gdb_bfd_unref.
1681 * solib-dsbt.c: Include gdb_bfd.h.
1682 (enable_break2): Use gdb_bfd_unref.
1683 * solib-darwin.c: Include gdb_bfd.h.
1684 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1685 gdb_bfd_unref.
1686 (darwin_bfd_open): Use gdb_bfd_unref.
1687 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1688 * remote-mips.c: Include gdb_bfd.h.
1689 (mips_load_srec): Use gdb_bfd_ref.
1690 (pmon_load_fast): Use gdb_bfd_ref.
1691 * remote-m32r-sdi.c: Include gdb_bfd.h.
1692 (m32r_load): Use gdb_bfd_ref.
1693 * record.c: Include gdb_bfd.h.
1694 (record_save_cleanups): Use gdb_bfd_unref.
1695 (cmd_record_save): Use gdb_bfd_unref.
1696 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1697 gdb_bfd_unref.
1698 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1699 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1700 * objfiles.c: Include gdb_bfd.h.
1701 (free_objfile): Use gdb_bfd_unref.
1702 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1703 gdb_bfd.c.
1704 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1705 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1706 (macho_check_dsym): Likewise.
1707 * m32r-rom.c: Include gdb_bfd.h.
1708 (m32r_load): Use gdb_bfd_ref.
1709 (m32r_upload_command): Use gdb_bfd_ref.
1710 * jit.c: Include gdb_bfd.h.
1711 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1712 * gdb_bfd.h: New file.
1713 * gdb_bfd.c: New file.
1714 * gcore.c: Include gdb_bfd.h.
1715 (create_gcore_bfd): Use gdb_bfd_ref.
1716 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1717 (gcore_command): Use gdb_bfd_unref.
1718 * exec.c: Include gdb_bfd.h.
1719 (exec_close): Use gdb_bfd_unref.
1720 (exec_close_1): Use gdb_bfd_unref.
1721 (exec_file_attach): Use gdb_bfd_ref.
1722 * elfread.c: Include gdb_bfd.h.
1723 (build_id_verify): Use gdb_bfd_unref.
1724 * dsrec.c: Include gdb_bfd.h.
1725 (load_srec): Use gdb_bfd_ref.
1726 * corelow.c: Include gdb_bfd.h.
1727 (core_close): Use gdb_bfd_unref.
1728 (core_open): Use gdb_bfd_ref.
1729 * bfd-target.c: Include gdb_bfd.h.
1730 (target_bfd_xclose): Use gdb_bfd_unref.
1731 (target_bfd_reopen): Use gdb_bfd_ref.
1732 * Makefile.in (SFILES): Add gdb_bfd.c.
1733 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1734 (COMMON_OBS): Add gdb_bfd.o.
1735
ed1d1739
KS
17362012-07-18 Keith Seitz <keiths@redhat.com>
1737
1738 * breakpoint.c (find_condition_and_thread): Initialize
1739 TASK and REST.
1740 (create_breakpiont): find_condition_and_thread will now
1741 initialize COND_STRING, THREAD, and REST (and TASK).
1742 (addr_string_to_sals): Likewise.
1743
eab402df
PA
17442012-07-18 Pedro Alves <palves@redhat.com>
1745
1746 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1747 Pull the single step breakpoints out of the target.
1748
2b963b68
SDJ
17492012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1750
1751 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1752 * stap-probe.c (compile_probe_arg): Likewise.
1753
6bac7473
SDJ
17542012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1755
1756 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1757 (elf_compile_to_ax): Likewise.
1758 * infrun.c (insert_exception_resume_from_probe): Likewise.
1759 (check_exception_resume): Remove `objfile' variable.
1760 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1761 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1762 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1763 (compare_entries): Rename to...
1764 (compare_probes): ...this. Adjust function to work with
1765 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1766 respectively.
1767 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1768 `VEC (probe_p) *'.
1769 (print_ui_out_info): Adjust argument to be `struct probe *'.
1770 (info_probes_for_ops): Adjust internal computations to use
1771 `VEC (probe_p) *'.
1772 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1773 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1774 gen_info_probes_table_values>: Remove `objfile' argument.
1775 (struct probe) <objfile>: New field.
1776 (find_probe_by_pc): Remove `objfile' argument.
1777 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1778 (stap_get_probe_argument_count): Likewise.
1779 (stap_get_arg): Likewise.
1780 (stap_evaluate_probe_argument): Likewise.
1781 (stap_compile_to_ax): Likewise.
1782 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1783 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1784 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1785 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1786 sym_compile_to_ax>: Likewise.
1787
3347eb1a 17882012-07-18 Terry Guo <terry.guo@arm.com>
1789
1790 PR 14329
1791 * defs.h (GDB_MI_MSG_WIDTH): New.
1792 * ser_base (ser_base_read_error_fd): New function.
1793 (do_ser_base_readchar): Poll error file descriptor as well as
1794 standard output.
f782ad9b 1795 (generic_readchar): Refactor error handling.
3347eb1a 1796
80c8d323
JB
17972012-07-18 Joel Brobecker <brobecker@adacore.com>
1798
1799 * NEWS: Create a new section for the next release branch.
1800 Rename the section of the current branch, now that it has
1801 been cut.
1802
b45a0664 18032012-07-18 Joel Brobecker <brobecker@adacore.com>
1804
1805 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1806 * version.in: Bump version to 7.5.50.20120718-cvs.
1807
09cf2b22
KS
18082012-07-17 Keith Seitz <keiths@redhat.com>
1809
1810 * linespec.c (linespec_parse_line_offset): Make parameter
1811 const.
1812
8f043999
JK
18132012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1814
1815 PR 11914
1816 * f-valprint.c (info_common_command): New variable frame_id.
1817 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1818 * printcmd.c (print_variable_and_value): Extend function comment.
1819 Add comment for invalidated FRAME.
1820 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1821 FI form FRAME_ID after each print_frame_local_vars.
1822 (struct print_variable_and_value_data): Change frame to frame_id.
1823 (do_print_variable_and_value): New variable frame, initialize it from
1824 p->frame_id. Add comment for invalidated FRAME.
1825 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1826 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1827 for invalidated FRAME.
1828
ae5e0686
MK
18292012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1830 Pedro Alves <palves@redhat.com>
1831
1832 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1833 loop.
1834
5049c5be
TT
18352012-07-16 Tom Tromey <tromey@redhat.com>
1836
1837 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1838
2908cac6
DE
18392012-07-15 Doug Evans <dje@google.com>
1840
094b34ac
DE
1841 * dwarf2read.c (stmt_list_hash): New struct.
1842 (type_unit_group): Embed "per_cu" member, remove pointer.
1843 New union member "t", move member "tus" into it, all uses updated.
1844 New member "hash", replaces member "line_offset, all uses updated.
1845 (quick_file_names): Replace member "offset" with "hash", all uses
1846 updated.
1847 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1848 (hash_file_name_entry, eq_file_name_entry): Call them.
1849 (hash_type_unit_group, eq_type_unit_group): Ditto.
1850 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1851 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1852 (dw2_get_file_names): Update.
1853 (create_type_unit_group): Replace "per_cu" arg with "cu".
1854 All callers updated. Fix "quick" (.gdb_index) handling.
1855 (get_type_unit_group): Replace "per_cu" arg with "cu".
1856 All callers updated.
1857 (build_type_unit_groups): Don't reset tu_stats.
1858
2908cac6
DE
1859 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1860 "tab_cur_size". Change member "tab" to be a htab_t.
1861 (create_filename_seen_cache): Update.
1862 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1863 (filename_seen): Update.
1864
a2b6eff5
DE
18652012-07-13 Doug Evans <dje@google.com>
1866
1867 * symtab.c (filename_seen): Update comment.
1868
4359dff1
JK
18692012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1870 Doug Evans <dje@google.com>
1871
1872 * buildsym.c (end_symtab_1): Split it to ...
1873 (end_symtab_get_static_block): ... this ...
1874 (end_symtab_from_static_block): ... and this function.
1875 (end_symtab, end_expandable_symtab): Call them.
1876 * buildsym.h (end_symtab_get_static_block)
1877 (end_symtab_from_static_block): New declarations.
1878 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1879 Set its valid CU ranges.
1880
a24f71ab
JK
18812012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1882
1883 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1884 DW_OP_GNU_parameter_ref.
1885
d76b7dbc
JK
18862012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1887
1888 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1889 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1890
9fdc877b
DE
18912012-07-13 Doug Evans <dje@google.com>
1892
1893 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1894 (filename_seen_cache): New struct.
1895 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1896 (create_filename_seen_cache): New function.
1897 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1898 (filename_seen): Delete arg "first". New arg "cache". All callers
1899 updated.
1900 (output_source_filename_data): New struct.
1901 (output_source_filename): Delete arg "first". New arg "data".
1902 All callers updated.
1903 (sources_info): Delete local "first". New locals "data", "cleanups".
1904 Rewrite to use filename_seen_cache.
1905 (add_partial_filename_data): Delete member "first". New member
1906 "filename_seen_cache". All uses updated.
1907 (make_source_files_completion_list): Rewrite to use
1908 filename_seen_cache.
1909
f80c6f3f
DE
19102012-07-12 Doug Evans <dje@google.com>
1911
1912 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1913
0bfa869d
DE
19142012-07-10 Doug Evans <dje@google.com>
1915
f4dc4d17
DE
1916 PR gdb/13498
1917 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1918 all_type_unit_groups, type_unit_groups, tu_stats.
1919 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1920 All uses updated. Add type_unit_group to union "s".
1921 (type_unit_group): New struct.
1922 (IS_TYPE_UNIT_GROUP): New macro.
1923 (abbrev_table): Delete unused member "section".
1924 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1925 (dw2_get_cu): Assert not used with type_unit_group.
1926 (dw2_get_primary_cu): New function.
1927 (dw2_build_type_unit_groups_reader): New function.
1928 (dw2_build_type_unit_groups): New function.
1929 (dw2_get_file_names): Assert not called on type units.
1930 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1931 Redo loop to iterate over type unit groups instead of type units.
1932 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1933 (read_abbrev_offset): New function.
1934 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1935 updated.
1936 (create_partial_symtab): New function.
1937 (process_psymtab_comp_unit_reader): Assert not used with type units.
1938 Call create_partial_symtab.
1939 (process_psymtab_type_unit): Delete.
1940 (hash_type_unit_group, eq_type_unit_group): New functions.
1941 (allocate_type_unit_groups_table): New function.
1942 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1943 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1944 (create_type_unit_group, get_type_unit_group): New functions.
1945 (tu_abbrev_offset): New struct.
1946 (sort_tu_by_abbrev_offset): New function.
1947 (add_type_unit_group_to_table): New function.
1948 (build_type_unit_groups): New function.
1949 (build_type_psymtabs_reader): New function.
1950 (build_type_psymtab_dependencies): New function.
1951 (build_type_psymtabs): Rewrite.
1952 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1953 is seen in a type unit.
1954 (process_queue): Move symtab expansion debugging printfs here.
1955 Call process_full_type_unit for type units.
1956 (compute_symtab_includes): Assert not called for type units.
1957 (process_cu_includes): Don't call compute_symtab_includes for
1958 type units.
1959 (process_full_type_unit): New function.
1960 (process_imported_unit_die): Flag an error if called for type units.
1961 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1962 updated. Assert not called for type units.
1963 (read_file_scope): Call dwarf2_start_symtab.
1964 (setup_type_unit_groups): New function.
1965 (read_type_unit_scope): Rewrite.
1966 (abbrev_table_read_table): Initialize abbrev_table->offset.
1967 (abbrev_table_free_cleanup): New function.
1968 (dwarf2_start_symtab): New function.
1969 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
1970 * buildsym.c (finish_block_internal): New arg "expandable".
1971 All callers updated.
1972 (start_symtab): Move most contents to ...
1973 (restart_symtab): ... here. New function.
1974 (reset_symtab_globals): New function.
1975 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1976 Call reset_symtab_globals.
1977 (end_symtab, end_expandable_symtab): New functions.
1978 (set_missing_symtab, augment_type_symtab): New functions.
1979 * buildsym.h (end_expandable_symtab): Declare.
1980 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
1981 * psympriv.h (struct partial_symtab): New member "anonymous".
1982 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1983 anonymous psymtabs.
1984 (read_psymtabs_with_filename): Ditto.
1985 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1986 (expand_symtabs_matching_via_partial): Ditto.
1987 (dump_psymtab): Update.
0bfa869d
DE
1988 * dictionary.c (dict_add_pending): New function.
1989 * dictionary.h (dict_add_pending): Declare.
1990
45e58e77
DE
19912012-07-09 Doug Evans <dje@google.com>
1992
b74db436
DE
1993 * buildsym.c (start_subfile): Remove unnecessary check for
1994 name == NULL.
1995
fd55216c
DE
1996 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1997
6721b2ec
DE
1998 * dwarf2read.c (load_full_type_unit): Simplify.
1999
b4dd5633
DE
2000 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2001 to struct signatured_type **. All uses updated.
2002
45e58e77
DE
2003 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2004 All callers updated.
2005
e314d629
TT
20062012-07-09 Tom Tromey <tromey@redhat.com>
2007
2008 * c-exp.y (check_parameter_typelist): New function.
2009 (parameter_typelist): Call it.
2010 * eval.c (make_params): Handle '(void)' case.
2011 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2012 '(void)' case.
2013
aa7c7447
JK
20142012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2015
2016 * common/linux-ptrace.c: Include gdb_assert.h.
2017 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2018 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2019 stdint.h.
2020 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2021 functions.
2022 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2023 * linux-nat.c (linux_child_post_attach)
2024 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2025
889003ed
JK
20262012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2027
2028 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2029 nptl <2.7 bug workaround for core files.
2030
da559b09
JK
20312012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2034 clearing.
2035 (save_siginfo): Remove.
2036 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2037 call.
2038 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2039 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2040 * linux-nat.h (struct lwp_info): Remove field siginfo.
2041
f865ee35
JK
20422012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2043
2044 Code cleanup for the next patch.
2045 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2046 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2047 call for it.
2048 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2049 (ia64_linux_stopped_data_address):
2050 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2051 the return value.
2052 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2053 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2054 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2055 call for it.
2056
76b83c51
JK
20572012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2058
2059 PR 14321
2060 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2061 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2062
a6fb9c08
TT
20632012-07-06 Tom Tromey <tromey@redhat.com>
2064
2065 * c-exp.y (DOTDOTDOT): New token.
2066 (func_mod, exp): Use parameter_typelist.
2067 (parameter_typelist): New production.
2068 (tokentab3): Add "..." token.
2069 * eval.c (make_params): Handle varargs.
2070 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2071 varargs.
2072
71918a86
TT
20732012-07-06 Tom Tromey <tromey@redhat.com>
2074
2075 PR exp/9608:
2076 * c-exp.y (%union) <tvec>: Change type.
2077 (func_mod): Now uses <tvec> type.
2078 (exp): Update for tvec change.
2079 (direct_abs_decl): Push the typelist.
2080 (func_mod): Return a typelist.
2081 (nonempty_typelist): Update for tvec change.
2082 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2083 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2084 * parse.c (pop_type_list): New function.
2085 (push_typelist): New function.
2086 (follow_types): Handle tp_function_with_arguments.
2087 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2088 (enum type_pieces) <tp_function_with_arguments>: New constant.
2089 (union type_stack_elt) <typelist_val>: New field.
2090 (push_typelist): Declare.
2091
fcde5961
TT
20922012-07-06 Tom Tromey <tromey@redhat.com>
2093
2094 * c-exp.y (%union) <type_stack>: New field.
2095 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2096 (ptr_operator_ts): New production.
2097 (ptype): Update.
2098 * parse.c (type_stack_reserve): New function.
2099 (check_type_stack_depth): Use it.
2100 (pop_type_stack, append_type_stack, push_type_stack)
2101 (get_type_stack, type_stack_cleanup): New functions.
2102 (follow_types): Handle tp_type_stack.
2103 (_initialize_parse): Simplify initialization.
2104 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2105 constant.
2106 (union type_stack_elt) <stack_val>: New field.
2107 (get_type_stack, append_type_stack, push_type_stack)
2108 (type_stack_cleanup): Declare.
2109
1a7d0ce4
TT
21102012-07-06 Tom Tromey <tromey@redhat.com>
2111
2112 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2113 Remove.
2114 (struct type_stack): New.
2115 * parse.c (type_stack, type_stack_size, type_stack_depth):
2116 Remove.
2117 (type_stack): New global.
2118 (parse_exp_in_context, check_type_stack_depth)
2119 (insert_into_type_stack, insert_type, push_type, push_type_int)
2120 (insert_type_address_space, pop_type, pop_type_int)
2121 (_initialize_parse): Update.
2122
16d01384
TT
21232012-07-06 Tom Tromey <tromey@redhat.com>
2124
2125 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2126 Remove %type.
2127
9bfc60bf
SP
21282012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2129
2130 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2131
d5161074
SP
21322012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2133 Jan Kratochvil <jan.kratochvil@redhat.com>
2134
2135 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2136 alloca with xmalloc/xfree.
2137
a74bc576
SP
21382012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2139
2140 * MAINTAINERS (Write After Approval): Add myself to the list.
2141
667e0a4b
DE
21422012-07-05 Doug Evans <dje@google.com>
2143
2144 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2145
34b536a8
HZ
21462012-07-05 Hui Zhu <hui_zhu@mentor.com>
2147
2148 * ax-gdb.c (cli/cli-utils.h): New include.
2149 (linespec.h): Ditto.
2150 (agent_eval_command_one): New function.
2151 (agent_command_1): Ditto.
2152 (agent_command): Call function agent_command_1.
2153 (agent_eval_command): Ditto.
2154 (_initialize_ax_gdb): Change help for "maint agent"
2155 and "maint agent-eval".
2156
e6f0bce7
HZ
21572012-07-05 Hui Zhu <hui_zhu@mentor.com>
2158
2159 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2160 * cli/cli-utils.c (check_for_argument): New function.
2161 * cli/cli-utils.h (check_for_argument): Ditto.
2162
1b3371b1
L
21632012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2164
2165 * NEWS: Mention x32 ABI support.
2166
23e2d720
L
21672012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2168
2169 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2170 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2171
2172 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2173 and pc_regnum_from_eax to -1. Update SP regnum from
2174 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2175 needed.
2176
2177 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2178 pc_regnum_from_eax.
2179
836bf454
JK
21802012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2181
2182 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2183 * dwarf2expr.h: Include gdbtypes.h.
2184 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2185 these forward declarations.
2186 (cu_offset, sect_offset): Move these ...
2187 * gdbtypes.h: Remove include dwarf2expr.h.
2188 (cu_offset, sect_offset): ... here.
2189
1e55e04f
L
21902012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2191
2192 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2193 (amd64_linux_sigtramp_code): This.
2194 (amd64_x32_linux_sigtramp_code): New.
2195 (LINUX_SIGTRAMP_LEN): Updated.
2196 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2197
7d0e21ad
JK
21982012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2199
2200 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2201
8775fd2d
JK
22022012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2203
2204 * config.in: Regenerate.
2205 * configure: Regenerate.
2206 * configure.ac: Remove check for gnu/libc-version.h.
2207 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2208 gnu/libc-version.h.
2209 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2210 variables libc_version, libc_major and libc_minor. Replace sscanf by
2211 inferior_has_bug. Extend the comment.
2212
fcb44371
JK
22132012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2214
2215 * linux-thread-db.c (inferior_has_bug): New function.
2216 (thread_db_find_new_threads_silently): Return boolean as checked by
2217 inferior_has_bug, describe it in the comments.
2218 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2219 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2220 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2221 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2222 if UNTIL_NO_NEW,
2223
09406207
DE
22242012-07-02 Doug Evans <dje@google.com>
2225
0907af0c
DE
2226 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2227 related to queue management.
2228
09406207
DE
2229 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2230 instead of "debug dwarf2-die" in debugging printfs.
2231 (create_debug_info_hash_table_reader): Ditto.
2232 (create_debug_info_hash_table): Ditto.
2233 (init_dwo_file): Ditto.
2234 (init_cutu_and_read_dies): Add debugging printf.
2235 (init_cutu_and_read_dies_no_follow): Ditto.
2236 (process_psymtab_comp_unit_reader): Ditto.
2237
d3ce09f5
SS
22382012-07-02 Stan Shebs <stan@codesourcery.com>
2239
2240 Add target-side support for dynamic printf.
2241 * NEWS: Mention the additional style.
2242 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2243 (struct bp_location): New field cmd_bytecode.
2244 * breakpoint.c: Include format.h.
2245 (disconnected_dprintf): New global.
2246 (parse_cmd_to_aexpr): New function.
2247 (build_target_command_list): New function.
2248 (insert_bp_location): Call it.
2249 (remove_breakpoints_pid): Skip dprintf breakpoints.
2250 (print_one_breakpoint_location): Ditto.
2251 (dprintf_style_agent): New global.
2252 (dprintf_style_enums): Add dprintf_style_agent.
2253 (update_dprintf_command_list): Add agent case.
2254 (agent_printf_command): New function.
2255 (_initialize_breakpoint): Add new commands.
2256 * common/ax.def (printf): New bytecode.
2257 * ax.h (ax_string): Declare.
2258 * ax-gdb.h (gen_printf): Declare.
2259 * ax-gdb.c: Include cli-utils.h, format.h.
2260 (gen_printf): New function.
2261 (maint_agent_print_command): New function.
2262 (_initialize_ax_gdb): Add maint agent-printf command.
2263 * ax-general.c (ax_string): New function.
2264 (ax_print): Add printf disassembly.
2265 * Makefile.in (SFILES): Add format.c
2266 (COMMON_OBS): Add format.o.
2267 * common/format.h: New file.
2268 * common/format.c: New file.
2269 * printcmd.c: Include format.h.
2270 (ui_printf): Call parse_format_string.
2271 * remote.c (remote_state): New field breakpoint_commands.
2272 (PACKET_BreakpointCommands): New enum.
2273 (remote_breakpoint_commands_feature): New function.
2274 (remote_protocol_features): Add new BreakpointCommands entry.
2275 (remote_can_run_breakpoint_commands): New function.
2276 (remote_add_target_side_commands): New function.
2277 (remote_insert_breakpoint): Call it.
2278 (remote_insert_hw_breakpoint): Ditto.
2279 (_initialize_remote): Add new packet configuration for
2280 target-side breakpoint commands.
2281 * target.h (struct target_ops): New field
2282 to_can_run_breakpoint_commands.
2283 (target_can_run_breakpoint_commands): New macro.
2284 * target.c (update_current_target): Handle
2285 to_can_run_breakpoint_commands.
2286
2d7b58e8
JK
22872012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2288
2289 Execute -ix and -iex only after system and user gdbinit files.
2290 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2291 processing down after gdbinit files.
2292
8690e634
JK
22932012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2294
2295 Add fnmatch-gnu module.
2296 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2297 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2298 * gnulib/aclocal.m4: Regenerate.
2299 * gnulib/config.in: Regenerate.
2300 * gnulib/configure: Regenerate.
2301 * gnulib/import/dummy.c: Remove.
2302 * gnulib/import/Makefile.am: Regenerate.
2303 * gnulib/import/Makefile.in: Likewise.
2304 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2305 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2306 * gnulib/import/alloca.c: New file.
2307 * gnulib/import/alloca.in.h: Likewise.
2308 * gnulib/import/config.charset: Likewise.
2309 * gnulib/import/fnmatch.c: Likewise.
2310 * gnulib/import/fnmatch.in.h: Likewise.
2311 * gnulib/import/fnmatch_loop.c: Likewise.
2312 * gnulib/import/localcharset.c: Likewise.
2313 * gnulib/import/localcharset.h: Likewise.
2314 * gnulib/import/m4/alloca.m4: Likewise.
2315 * gnulib/import/m4/codeset.m4: Likewise.
2316 * gnulib/import/m4/configmake.m4: Likewise.
2317 * gnulib/import/m4/fcntl-o.m4: Likewise.
2318 * gnulib/import/m4/fnmatch.m4: Likewise.
2319 * gnulib/import/m4/glibc21.m4: Likewise.
2320 * gnulib/import/m4/localcharset.m4: Likewise.
2321 * gnulib/import/m4/locale-fr.m4: Likewise.
2322 * gnulib/import/m4/locale-ja.m4: Likewise.
2323 * gnulib/import/m4/locale-zh.m4: Likewise.
2324 * gnulib/import/m4/mbrtowc.m4: Likewise.
2325 * gnulib/import/m4/mbsinit.m4: Likewise.
2326 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2327 * gnulib/import/m4/mbstate_t.m4: Likewise.
2328 * gnulib/import/m4/stdbool.m4: Likewise.
2329 * gnulib/import/m4/wchar_h.m4: Likewise.
2330 * gnulib/import/m4/wctype_h.m4: Likewise.
2331 * gnulib/import/m4/wint_t.m4: Likewise.
2332 * gnulib/import/mbrtowc.c: Likewise.
2333 * gnulib/import/mbsinit.c: Likewise.
2334 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2335 * gnulib/import/mbsrtowcs-state.c: Likewise.
2336 * gnulib/import/mbsrtowcs.c: Likewise.
2337 * gnulib/import/ref-add.sin: Likewise.
2338 * gnulib/import/ref-del.sin: Likewise.
2339 * gnulib/import/stdbool.in.h: Likewise.
2340 * gnulib/import/streq.h: Likewise.
2341 * gnulib/import/strnlen1.c: Likewise.
2342 * gnulib/import/strnlen1.h: Likewise.
2343 * gnulib/import/verify.h: Likewise.
2344 * gnulib/import/wchar.in.h: Likewise.
2345 * gnulib/import/wctype.in.h: Likewise.
2346
202cbf1c
JK
23472012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2348
2349 Support shell wildcards for 'set auto-load safe-path'.
2350 * auto-load.c: Include fnmatch.h.
2351 (filename_is_in_dir): Rename to ...
2352 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2353 it. Update function comment. Rename dir_len to pattern_len. New
2354 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2355 messages. Use gdb_filename_fnmatch.
2356 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2357 pattern.
2358 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2359 * defs.h (gdb_filename_fnmatch): New declaration.
2360 * utils.c: Include fnmatch.h.
2361 (gdb_filename_fnmatch): New function.
2362
fb7b5af4
SDJ
23632012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2364
2365 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2366 `-probe' and `-probe-stap' options.
2367
72d0e2c5
YQ
23682012-07-01 Yao Qi <yao@codesourcery.com>
2369
2370 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2371 always_inserted_off, and always_inserted_enums.
2372 Change always_inserted_mode's type to 'enum auto_boolean'.
2373 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2374 callers.
2375 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2376 of add_setshow_enum_cmd.
2377 * infrun.c: Remove can_use_displaced_stepping_auto,
2378 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2379 can_use_displaced_stepping_enum.
2380 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2381 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2382 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2383 add_setshow_enum_cmd.
2384
42e7ad6c
DE
23852012-06-30 Doug Evans <dje@google.com>
2386
2387 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2388 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2389 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2390
39cf75f7
DE
23912012-06-29 Doug Evans <dje@google.com>
2392
2393 * linespec.c: #include "stack.h".
2394 (decode_line_with_current_source): Moved here from symtab.c and
2395 renamed from decode_line_spec. All callers updated.
2396 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2397 renamed from decode_line_spec_1. All callers updated.
2398 * linespec.h (decode_line_with_current_source): Move declaration here
2399 from symtab.h and renamed from decode_line_spec.
2400 (decode_line_with_last_displayed): Move declaration here from symtab.h
2401 and renamed from decode_line_spec_1.
2402 * macrocmd.c: #include "linespec.h".
2403 * symtab.c: Remove #include "linespec.h".
2404
433df2d4
DE
24052012-06-28 Doug Evans <dje@google.com>
2406
1ce1cefd
DE
2407 * dwarf2read.c (get_cu_length): New function.
2408 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2409 (create_debug_types_hash_table): Ditto.
2410 (init_cutu_and_read_dies): Ditto.
2411 (init_cutu_and_read_dies_no_follow): Ditto.
2412
3b80fe9b
DE
2413 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2414
433df2d4
DE
2415 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2416 (struct abbrev_table): Define.
2417 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2418 abbrev_table.
2419 (init_cutu_and_read_dies): Update.
2420 (abbrev_table_alloc_abbrev): New function. Replaces
2421 dwarf_alloc_abbrev. All callers updated.
2422 (abbrev_table_add_abbrev): New function.
2423 (abbrev_table_lookup_abbrev): New function. Replaces
2424 dwarf2_lookup_abbrev. All callers updated.
2425 (abbrev_table_read_table): New function. Contents moved here from
2426 dwarf2_read_abbrevs.
2427 (dwarf2_read_abbrevs): Call it.
2428 (abbrev_table_free): New function.
2429 (dwarf2_free_abbrev_table): Call it.
2430
71caed83
SS
24312012-06-28 Stan Shebs <stan@codesourcery.com>
2432
2433 * osdata.c (info_osdata_command): Filter out "Title" columns
2434 from non-MI uses.
2435 * common/linux-osdata.c (struct osdata_type): Add title field.
2436 (osdata_table): Add titles to each entry.
2437 (linux_command_xfer_osdata): Add a column for title data.
2438
37ce89eb
SS
24392012-06-28 Stan Shebs <stan@codesourcery.com>
2440
2441 Make logging work for MI.
2442 * NEWS: Mention it.
2443 * interps.h (interp_set_logging_ftype): New typedef.
2444 (struct interp_procs): New field set_logging_proc.
2445 (current_interp_set_logging): Declare.
2446 * interps.c (current_interp_set_logging): New function.
2447 * cli/cli-logging.c: Include interps.h.
2448 (set_logging_redirect): Call current_interp_set_logging.
2449 (pop_output_files): Ditto.
2450 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2451 * mi/mi-console.h (mi_console_set_raw): Declare.
2452 * mi/mi-console.c (mi_console_set_raw): New function.
2453 * mi/mi-interp.c (saved_raw_stdout): New global.
2454 (mi_set_logging): New function.
2455 (_initialize_mi_interp): Add it to interp procs.
2456
659c9f3a
DE
24572012-06-28 Doug Evans <dje@google.com>
2458
a743abeb
DE
2459 * symtab.c (lookup_symbol_aux_objfile): Use
2460 ALL_OBJFILE_PRIMARY_SYMTABS.
2461
659c9f3a
DE
2462 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2463
da2d6d3d
JK
24642012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2465
2466 * common/buffer.c: Include inttypes.h and stdint.h.
2467 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2468
e5ef252a
PA
24692012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2470 Pedro Alves <palves@redhat.com>
2471
2472 * gdbthread.h (ALL_THREADS): New macro.
2473 (thread_list): Declare.
2474 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2475 going, but instead fall through to the stepping handling.
2476 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2477 the passed in signal. Adjust debug output.
2478 (resume_callback): Rename to ...
2479 (linux_nat_resume_callback): ... this. Pass the thread's last
2480 stop signal, if in "pass" state.
2481 (linux_nat_resume): Adjust to rename.
2482 (stop_wait_callback): New assertion. Don't respawn signals;
2483 instead let the LWP remain with SIGNALLED set.
2484 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2485 * remote.c (append_pending_thread_resumptions): New.
2486 (remote_vcont_resume): Call it.
2487 * target.h (target_resume): Extend comment.
2488
1d7975eb
IS
24892012-06-28 Iain Sandoe <iain@codesourcery.com>
2490
2491 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2492
2e3cf129
DE
24932012-06-27 Doug Evans <dje@google.com>
2494
2495 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2496 Delete have_addr_base, unused. All uses updated.
2497 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2498 (dwarf2_get_pc_bounds): Add ranges_base.
2499 (dwarf2_record_block_ranges): Ditto.
2500
1bb9788d
TT
25012012-06-27 Tom Tromey <tromey@redhat.com>
2502
2503 PR macros/7961:
2504 * varobj.c (varobj_create): Update.
2505 (varobj_set_value): Update.
2506 * tracepoint.c (validate_actionline): Update.
2507 (encode_actions_1): Update.
2508 * parse.c (parse_exp_1): Add 'pc' argument.
2509 (parse_exp_in_context): Add 'pc' argument. Change how
2510 expression_context_pc is set.
2511 (parse_expression): Update.
2512 (parse_field_expression): Update.
2513 * expression.h (parse_exp_1): Update.
2514 * eval.c (parse_to_comma_and_eval): Update.
2515 * breakpoint.c (set_breakpoint_condition): Update.
2516 (update_watchpoint): Update.
2517 (init_breakpoint_sal): Update
2518 (find_condition_and_thread): Update.
2519 (watch_command_1): Update.
2520 (update_breakpoint_locations): Update.
2521 * ada-lang.c (ada_read_renaming_var_value): Update.
2522 (create_excep_cond_exprs): Update.
2523
0bc3a05c
DE
25242012-06-27 Doug Evans <dje@google.com>
2525
2526 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2527 type units.
2528
4bdcc0c1
DE
25292012-06-26 Doug Evans <dje@google.com>
2530
2531 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2532 prototype.
2533 (error_check_comp_unit_head): New arg abbrev_section. All callers
2534 updated.
2535 (read_and_check_comp_unit_head): Ditto.
2536 (read_and_check_type_unit_head): Ditto.
2537
ee0bf529
SCR
25382012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2539
2540 New attribute 'last' for gdb.Symtab_and_line.
2541 * NEWS (Python Scripting): Add entry about the new attribute.
2542 * python/py-symtab.c (salpy_get_last): New function which
2543 implements the get method for the 'last' attribute of
2544 gdb.Symtab_and_line.
2545 (sal_object_getset): Add entry for the 'last' attribute.
2546
1c658ad5
DE
25472012-06-26 Doug Evans <dje@google.com>
2548
09262596
DE
2549 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2550 (dwo_sections): Add macinfo, macro.
2551 (dwarf2_locate_dwo_sections): Watch for macro sections.
2552 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2553 All callers updated. Handle DWO files.
2554
45cfd468
DE
2555 * NEWS: Mention new options "set debug dwarf2-read" and
2556 "set debug symtab-create".
2557 * dwarf2read.c (dwarf2_read_debug): New static global.
2558 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2559 (process_queue): Ditto.
2560 (process_full_comp_unit): Ditto.
2561 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2562 * elfread.c (elf_symfile_read): Add debugging printf.
2563 * minsyms.c (install_minimal_symbols): Ditto.
2564 * psymtab.c (allocate_psymtab): Ditto.
2565 * symfile.c (allocate_symtab): Ditto.
2566 * symtab.c (symtab_create_debug): New global.
2567 (_initialize_symtab): Add new option "set debug symtab-create".
2568 * symtab.h (symtab_create_debug): Declare.
2569
1c658ad5
DE
2570 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2571 (lookup_dwo_type_unit): Ditto.
2572
6fea9e18
L
25732012-06-26 Roland McGrath <roland@hack.frob.com>
2574 H.J. Lu <hongjiu.lu@intel.com>
2575
2576 * amd64-linux-nat.c: Include <sys/user.h>.
2577 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2578 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2579 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2580
2581 * configure.ac: Check if the fs_base and gs_base members of
2582 `struct user_regs_struct' exist.
2583 * config.in: Regenerated.
2584 * configure: Likewise.
2585
adb4fe3b
ME
25862012-06-25 Michael Eager <eager@eagercon.com>
2587
2588 PR python/14291
f782ad9b 2589 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 2590
fc51cce1
MGD
25912012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2592
2593 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2594 register as a stack alignment in ARM mode.
2595
40a73391
JK
25962012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2597
2598 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2599 * gnulib/config.in: Regenerate.
2600 * gnulib/configure: Likewise.
2601 * gnulib/import/m4/extensions.m4: Update it.
2602 * gnulib/import/m4/gnulib-common.m4: Likewise.
2603 * gnulib/import/m4/memmem.m4: Likewise.
2604 * gnulib/import/m4/mmap-anon.m4: Likewise.
2605 * gnulib/import/m4/multiarch.m4: Likewise.
2606 * gnulib/import/stdint.in.h: Likewise.
2607
972daa01
YQ
26082012-06-24 Yao Qi <yao@codesourcery.com>
2609
2610 * corefile.c (write_memory_with_notification): New.
2611 * gdbcore.h: Declare write_memory_with_notification.
2612 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2613 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2614 * valops.c (value_assign): Likewise.
2615 * python/py-inferior.c (infpy_write_memory): Call
2616 'write_memory_with_notification'.
2617
8d6e0714
JK
26182012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2619
2620 * cc-with-index.sh: Use also -ex "set auto-load no".
2621
156942c7
DE
26222012-06-23 Doug Evans <dje@google.com>
2623
2624 PR 14125
2625 * NEWS: Document additions to .gdb_index.
2626 * dwarf2read.c: #include "gdb/gdb-index.h".
2627 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2628 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2629 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2630 (dwarf2_read_index): Recognize version 7.
2631 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2632 block_kind, domain): All callers updated.
2633 (dw2_find_symbol_file): Handle new index CU values.
2634 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2635 (add_index_entry): New args is_static, kind. All callers updated.
2636 (offset_type_compare, uniquify_cu_indices): New functions
2637 (symbol_kind): New function.
2638 (write_psymtabs_to_index): Remove duplicate CU values.
2639 (write_psymtabs_to_index): Write .gdb_index version 7.
2640
352b3eda
JB
26412012-06-22 Joel Brobecker <brobecker@adacore.com>
2642
2643 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2644 * configure: Regenerate.
2645
2678e2af
YQ
26462012-06-20 Yao Qi <yao@codesourcery.com>
2647
2648 * python/py-inferior.c: Update comments of infpy_read_memory
2649 and infpy_write_memory.
2650
95c391b6
TT
26512012-06-19 Tom Tromey <tromey@redhat.com>
2652
2653 PR exp/9514:
2654 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2655 (push_type_address_space): Remove.
2656 * parse.c (insert_into_type_stack): New function.
2657 (insert_type): Likewise.
2658 (insert_type_address_space): Rename from push_type_address_space.
2659 Insert tp_space_identifier.
2660 * c-exp.y (ptr_operator): New production.
2661 (abs_decl): Use ptr_operator.
2662 (space_identifier): Call insert_type_address_space.
2663 (ptype): Don't use const_or_volatile_or_space_identifier.
2664 (const_or_volatile_noopt): Call insert_type.
2665 (conversion_type_id, conversion_declarator): New productions.
2666 (operator): Use conversion_type_id.
2667
6ac9ef80
DE
26682012-06-18 Doug Evans <dje@google.com>
2669
422d65e7
DE
2670 * symtab.h (minimal_symbol): New member created_by_gdb.
2671 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2672 created by gdb.
2673 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2674 (search_symbols): Call it instead of lookup_symbol.
2675 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2676
49f6c839
DE
2677 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2678 Adjust address for DW_OP_GNU_addr_index.
2679 * dwarf2expr.h (dwarf_expr_context): Update comment.
2680 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2681 all callers updated. Handle TLS vars described with
2682 DW_OP_GNU_const_index.
2683 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2684 and DW_OP_GNU_const_index.
2685 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2686
6ac9ef80
DE
2687 * block.c (find_block_in_blockvector): Make explicit the fact that we
2688 ignore GLOBAL_BLOCK.
2689
4cd18215
TT
26902012-06-18 Tom Tromey <tromey@redhat.com>
2691
2692 * c-exp.y (operator): Remove trailing space after "delete" and
2693 "delete[]".
2694
a9b8d892
JK
26952012-06-18 Mark Kettenis <kettenis@gnu.org>
2696 Jan Kratochvil <jan.kratochvil@redhat.com>
2697
2698 Switch i386 and derived targets to ON_STACK.
2699 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2700 (amd64_dicos_init_abi): Remove its installment.
2701 * dicos-tdep.c (dicos_init_abi): Remove the
2702 set_gdbarch_call_dummy_location call. Update the comment here.
2703 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2704 (i386_dicos_init_abi): Remove its installment.
2705 * i386-tdep.c (i386_push_dummy_code): New function.
2706 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2707 i386_push_dummy_code.
2708
e2e4d78b
JK
27092012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2710
2711 Remove stale dummy frames.
2712 * breakpoint.c: Include dummy-frame.h.
2713 (longjmp_breakpoint_ops): New variable.
2714 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2715 bp_longjmp_call_dummy.
2716 (bpstat_what, bptype_string, print_one_breakpoint_location)
2717 (init_bp_location): Support bp_longjmp_call_dummy.
2718 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2719 (set_longjmp_breakpoint_for_call_dummy)
2720 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2721 functions.
2722 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2723 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2724 FIXME comment and extend the other comment for bp_call_dummy.
2725 (set_longjmp_breakpoint_for_call_dummy)
2726 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2727 * dummy-frame.c: Include gdbthread.h.
2728 (pop_dummy_frame_bpt): New function.
2729 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2730 (dummy_frame_discard): New function.
2731 (cleanup_dummy_frames): Update the comment about longjmps.
2732 * dummy-frame.h (dummy_frame_discard): New declaration.
2733 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2734 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2735 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2736 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2737 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2738 keep_going if IS_LONGJMP and there is no other reason to stop.
2739
09d5912c
TT
27402012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2741
2742 * remote-sim.c (sim_command_completer): Initialize
2743 variable 'result'.
2744
1788b2d3
JK
27452012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2746
2747 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2748 * dwarf2loc.c (call_site_parameter_matches): Support
2749 CALL_SITE_PARAMETER_PARAM_OFFSET.
2750 (needs_dwarf_reg_entry_value): Push stub value.
2751 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2752 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2753 * gdbtypes.h (enum call_site_parameter_kind): New item
2754 CALL_SITE_PARAMETER_PARAM_OFFSET.
2755 (struct call_site.parameter.u): New field param_offset.
2756
24c5c679
JK
27572012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2758
2759 Code cleanup: Generalize call_site.parameter key.
2760 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2761 variable dwarf_reg. New variable kind_u. Update parameters to
2762 push_dwarf_reg_entry_value.
2763 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2764 * dwarf2expr.h (enum call_site_parameter_kind)
2765 (union call_site_parameter_u): Forward declarations.
2766 (struct dwarf_expr_context_funcs): Update parameters and their
2767 description for push_dwarf_reg_entry_value.
2768 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2769 * dwarf2loc.c (call_site_parameter_matches): New function.
2770 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2771 description. Use call_site_parameter_matches.
2772 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2773 Update parameters and their description.
2774 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2775 New variable kind_u. Adjust the caller for updated parameters.
2776 (needs_dwarf_reg_entry_value): Update parameters.
2777 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2778 instead of attr. Update for the changed fields of struct
2779 call_site_parameter.
2780 * gdbtypes.h: Include dwarf2expr.h.
2781 (enum call_site_parameter_kind): New.
2782 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2783 fb_offset into new union u.
2784
ac142d96
L
27852012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2786
2787 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2788 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2789 for x32.
2790
ba224c70
L
27912012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2792
2793 * amd64-linux-nat.c (compat_x32_clock_t): New.
2794 (compat_x32_siginfo_t): Likewise.
2795 (compat_x32_siginfo_from_siginfo): Likewise.
2796 (siginfo_from_compat_x32_siginfo): Likewise.
2797 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2798 and siginfo_from_compat_x32_siginfo for x32.
2799
7ecbc825
HZ
28002012-06-15 Hui Zhu <hui_zhu@mentor.com>
2801
2802 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2803
233dfcf0
L
28042012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2805
2806 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2807 instead of gdbarch_ptr_bit.
2808 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2809 (amd64_supply_native_gregset): Likewise.
2810 (amd64_collect_native_gregset): Likewise.
2811 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2812 (amd64_supply_xsave): Likewise.
2813 (amd64_collect_fxsave): Likewise.
2814 (amd64_collect_xsave): Likewise.
2815
6da38f42
L
28162012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2817
2818 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2819 (amd64_linux_read_description): Check DS segment register for
2820 x32 process.
2821
663b969e
TT
28222012-06-15 Tom Tromey <tromey@redhat.com>
2823
2824 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2825 init_cutu_and_read_dies.
2826
d6f05027
IS
28272012-06-15 Iain Sandoe <iain@codesourcery.com>
2828
2829 * MAINTAINERS (Write After Approval): Add myself to the list.
2830
6598ed07
TT
28312012-06-15 Tom Tromey <tromey@redhat.com>
2832
2833 * valops.c (value_find_oload_method_list): Now static.
2834 * value.h (value_find_oload_method_list): Don't declare.
2835
2b214ea6
TT
28362012-06-15 Tom Tromey <tromey@redhat.com>
2837
2838 * valops.c (find_overload_match): Use value_ind.
2839
a210c238
MR
28402012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2841
2842 * infrun.c (handle_inferior_event): Correct indentation.
2843
3771a44c
DE
28442012-06-14 Doug Evans <dje@google.com>
2845
2846 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2847 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2848 All uses updated.
2849 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2850 updated. Handle DEBUG_LOC_START_LENGTH.
2851 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2852 (loclist_describe_location): Ditto.
2853
1c5a993e
MR
28542012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2855
2856 PR backtrace/13866
2857 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2858 after hiding inline functions.
2859
0b155465
JB
28602012-06-13 Joel Brobecker <brobecker@adacore.com>
2861
2862 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2863 _initialize_inf_ttrace.
2864
45717bac
JB
28652012-06-13 Joel Brobecker <brobecker@adacore.com>
2866
2867 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2868 _initialize_hppa_hpux_nat.
2869
34370865
JB
28702012-06-13 Joel Brobecker <brobecker@adacore.com>
2871
2872 * remote-sim.c (sim_command_completer): Change type of return
2873 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2874
284c5a60
MK
28752012-06-13 Mark Kettenis <kettenis@gnu.org>
2876 Jan Kratochvil <jan.kratochvil@redhat.com>
2877
2878 PR tdep/14222
2879 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2880 stack on a 16-byte boundary.
2881
2535757a
TT
28822012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2883
2884 * jit.c (finalize_symtab): Set function's return type to 'void' by
2885 default.
2886
fff4548b
MK
28872012-06-13 Mark Kettenis <kettenis@gnu.org>
2888 H.J. Lu <hongjiu.lu@intel.com>
2889
5a83521a
MK
2890 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2891 Move bits common to both the classic LP64 and the new x32 ILP32
2892 ABI here.
2893 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2894 (amd64_x32_linux_init_abi): New function.
2895 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2896 subtype.
2897
fff4548b
MK
2898 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2899 * i386-tdep.c (i386_pseudo_register_name): Make public.
2900 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2901 * amd64-tdep.c (amd64_dword_names): Add "eip".
2902 (amd64_x32_pseudo_register_type): New function
2903 (amd64_x32_init_abi): New function.
2904
dd80ea3c
JK
29052012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2906
2907 PR build/14003
2908 * inferior.h (struct inferior_suspend_state): Comment out.
2909 (struct inferior): Comment out the field suspend.
2910 * infrun.c (struct infcall_suspend_state): Comment out the field
2911 inferior_suspend.
2912 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2913 out its assignment.
2914
50af5481
JK
29152012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2916
2917 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2918 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2919 function comment. Return ERROR for unresolved cases. Implement
2920 returning proper NAME.
2921 (yylex): Accept also NAME from classify_inner_name.
2922 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2923 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2924 LOC_TYPEDEF type.
2925 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2926
d55637df
TT
29272012-06-13 Tom Tromey <tromey@redhat.com>
2928
2929 * breakpoint.c (condition_completer): New function.
2930 (_initialize_breakpoint): Use it.
2931 * value.c (complete_internalvar): New function.
2932 * value.h (complete_internalvar): Declare.
2933
49c4e619
TT
29342012-06-13 Tom Tromey <tromey@redhat.com>
2935
2936 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2937 * breakpoint.c (catch_syscall_completer): Return a VEC.
2938 * cli/cli-cmds.c (complete_command): Update.
2939 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2940 (complete_on_enum): Likewise.
2941 * command.h: Include gdb_vecs.h.
2942 (completer_ftype): Change return type.
2943 (complete_on_cmdlist, complete_on_enum): Likewise.
2944 * completer.c (noop_completer, filename_completer)
2945 (location_completer): Return a VEC.
2946 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2947 to a VEC.
2948 (expression_completer, complete_line_internal, complete_line)
2949 (command_completer): Return a VEC.
2950 (gdb_completion_word_break_characters, line_completion_function):
2951 Update.
2952 * completer.h: Include gdb_vecs.h.
2953 (complete_line, noop_completer, filename_completer)
2954 (expression_completer, location_completer, command_completer):
2955 Update.
2956 * f-lang.c (f_word_break_characters): Return a VEC.
2957 * interps.c (interpreter_completer): Return a VEC.
2958 * language.h (struct language_defn)
2959 <la_make_symbol_completion_list>: Return a VEC.
2960 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2961 * symtab.c (free_completion_list): Take a VEC.
2962 (return_val_size, return_val_index): Remove.
2963 (return_val): Now a VEC.
2964 (completion_list_add_name): Update.
2965 (default_make_symbol_completion_list_break_on)
2966 (default_make_symbol_completion_list, make_symbol_completion_list)
2967 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2968 Return a VEC.
2969 (add_filename_to_list): Update.
2970 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2971 <list>: Now a VEC.
2972 (maybe_add_partial_symtab_filename): Update.
2973 (make_source_files_completion_list): Return a VEC.
2974 * symtab.h (default_make_symbol_completion_list_break_on)
2975 (default_make_symbol_completion_list, make_symbol_completion_list)
2976 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2977 (make_source_files_completion_list): Update.
2978
625e8578
TT
29792012-06-13 Tom Tromey <tromey@redhat.com>
2980
2981 * breakpoint.c (add_catch_command): Use completer_ftype.
2982 * breakpoint.h: Include command.h.
2983 (add_catch_command): Use completer_ftype.
2984 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2985 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2986 Use completer_ftype.
2987 * command.h (completer_ftype): New typedef.
2988 (set_cmd_completer): Use it.
2989 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2990 completer_ftype.
2991
5eb3b062
PA
29922012-06-13 Pedro Alves <palves@redhat.com>
2993
2994 Partial revert of previous change.
2995
2996 * serial.c (scb_base): New global.
2997 (serial_for_fd): New.
2998 (serial_open, serial_fdopen_ops): Link new serial in open serials
2999 chain.
3000 (do_serial_close): Unlink serial from the open serials chain.
3001
8b3ee56d
PA
30022012-06-12 Pedro Alves <palves@redhat.com>
3003
3004 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3005 threads here.
3006 (prepare_for_detach): No longer context switch here in non-stop
3007 mode.
3008 (fetch_inferior_event): Ditto.
3009 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3010 to the event thread before removing breakpoints. Switch to the
3011 event thread before inserting breakpoints and resuming.
3012 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3013 event thread before resuming.
3014 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3015 Switch to the event thread before removing breakpoints.
3016
5d60742e
EZ
30172012-06-12 Eli Zaretskii <eliz@gnu.org>
3018
3019 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3020 special characters correctly for the Windows shells. See
3021 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3022 report.
3023 [!__MINGW32__]: Remove extra double quote character from special
3024 characters.
3025
a6feecf7
SS
30262012-06-11 Stan Shebs <stan@codesourcery.com>
3027
3028 * ui-out.h: Remove #if 0 declarations.
3029 * ui-out.c: Remove #if 0 functions.
3030
ddefb60f
PA
30312012-06-11 Pedro Alves <palves@redhat.com>
3032
3033 * ser-base.c (run_async_handler_and_reschedule): New.
3034 (fd_event, push_event): Use it.
3035 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3036 reference count to 1.
3037 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3038 instead of xfree.
3039 (serial_is_open, serial_ref, serial_unref): New.
3040 * serial.h (serial_open): Adjust comment.
3041 (serial_is_open): Declare.
3042 (serial_close): Adjust comment.
3043 (serial_ref, serial_unref) Declare.
3044 (struct serial): New field 'refcnt'.
3045
d5ad6aa5
PA
30462012-06-11 Pedro Alves <palves@redhat.com>
3047
3048 Remove #if 0'd "connect" command, and unnecessary associated
3049 refcounting and serial reuse bits.
3050
3051 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3052 * serial.c (last_serial_opened): Delete.
3053 (scb_base): Delete.
3054 (serial_open): Adjust.
3055 (serial_for_fd): Delete.
3056 (serial_fdopen_ops, do_serial_close): Adjust.
3057 (serial_fdopen_ops): Adjust.
3058
318aa544
PA
30592012-06-11 Pedro Alves <palves@redhat.com>
3060
3061 * serial.c (do_serial_close): Remove early return when SCB is
3062 null.
3063
07261596
TT
30642012-06-11 Tom Tromey <tromey@redhat.com>
3065
3066 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3067
cc80f267
JK
30682012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3069
3070 Fix regression by the "ambiguous linespec" series.
3071 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3072 get_last_displayed_symtab and get_last_displayed_line and depending
3073 on CURSAL.
3074
356d9f9d
TT
30752012-06-11 Tom Tromey <tromey@redhat.com>
3076
3077 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3078 (dw2_find_symbol_file): Use it.
3079
232b8704
ME
30802012-06-11 Michael Eager <eager@eagercon.com>
3081
3082 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3083 * mips-linux-tdep.h (mips_signals): New
3084
e81a37f7
TT
30852012-06-11 Tom Tromey <tromey@redhat.com>
3086
3087 * infrun.c (handle_inferior_event)
3088 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3089 breakpoint.
3090 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3091 exception logic in all cases. Update comments.
3092 (insert_longjmp_resume_breakpoint): Set the exception resume
3093 breakpoint.
3094
2e81047f
MR
30952012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3096
3097 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3098
4e32eda7
SCR
30992012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3100
3101 * valarith.c (binop_types_user_defined_p): Fix a typo.
3102
18648a37 31032012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3104 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3105
3106 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3107 * arch-utils.h: Declare.
3108 * gdbarch.sh: Add return_in_first_hidden_param_p.
3109 * gdbarch.c, gdbarch.h: Regenerated.
3110 * infcall.c (call_function_by_hand): Call
3111 gdbarch_return_in_first_hidden_param_p instead of
3112 language_pass_by_reference.
3113
3114 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3115 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3116 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3117 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3118 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3119 `cplus_return_struct_by_reference'.
3120 (tic6x_return_value): Handle language cplusplus.
3121 (tic6x_return_in_first_hidden_param_p): New.
3122 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3123
034e5797
DE
31242012-06-07 Doug Evans <dje@google.com>
3125
3126 * dwarf2read.c (dwarf2_cu): Add comment.
3127
6a00aa1e
MR
31282012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3129
3130 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3131 variable.
3132 (mips_eabi_push_dummy_call): Likewise.
3133 (mips_n32n64_push_dummy_call): Likewise.
3134 (mips_o32_push_dummy_call): Likewise.
3135 (mips_o64_push_dummy_call): Likewise.
3136
eaa05d59
MR
31372012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3138
3139 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3140
de13fcf2
MR
31412012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3142
3143 * mips-tdep.c (mips_pseudo_register_type): Use
3144 mips_float_register_p.
3145
c3a01a22
PA
31462012-06-06 Pedro Alves <palves@redhat.com>
3147
3148 * infrun.c (handle_inferior_event): Remove calls to
3149 reinit_frame_cache that follow a context_switch call.
3150
d25f45d9
PA
31512012-06-06 Pedro Alves <palves@redhat.com>
3152
3153 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3154 context_switch and remove stale comment.
3155
359f5fe6
PA
31562012-06-06 Pedro Alves <palves@redhat.com>
3157
3158 * infrun.c (struct execution_control_state): Remove
3159 `new_thread_event' field.
3160 (handle_inferior_event): Simplify new threads handling; don't
3161 resume the inferior if we find a new thread.
3162
2d4c29c5
TS
31632012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3164
3165 * NEWS: Document the deprecation of SH's 'regs' command.
3166 * inferior.h (all_registers_info): Add function declaration.
3167 * sh-tdep.c (sh_show_regs): Remove variable.
3168 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3169 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3170 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3171 (sh_show_regs_command): Remove functions.
3172 (sh_gdbarch_init): Don't set sh_show_regs.
3173 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3174 'info all-registers'.
3175 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3176 (sh64_show_regs): Remove functions.
3177 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3178
f5f1cdb6
JK
31792012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3180
3181 * configure.ac: Move development=true below AC_INIT.
3182 * configure: Regenerate.
3183
bf6309af
SS
31842012-06-05 Stan Shebs <stan@codesourcery.com>
3185
3186 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3187 gdb_stdout.
3188
45aa4659
JK
31892012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3190
3191 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3192 argument as ssize_t.
3193 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3194 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3195 * target.c (target_read_stack, target_write_memory)
3196 (target_write_raw_memory): Likewise.
3197 * target.h (target_read_stack, target_write_memory)
3198 (target_write_raw_memory): Likewise.
3199
1b162304
JK
32002012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3201
3202 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3203 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3204 * target.c (target_read_memory): Change LEN to ssize_t.
3205 * target.h (target_read_memory): Change LEN to ssize_t.
3206
8556afb4
PA
32072012-06-05 Pedro Alves <palves@redhat.com>
3208
3209 PR backtrace/13866
3210
3211 * breakpoint.c (until_break_command): Only fetch the selected
3212 frame after decode_line_1.
3213
fb139f32
PA
32142012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3215
3216 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3217 event breakpoint at _start, __start or main if a program
3218 interpreter is not found.
3219
a8e1bb34
JB
32202012-06-05 Joel Brobecker <brobecker@adacore.com>
3221
3222 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3223 Add declaration.
3224 * windows-tdep.c: #include "objfiles.h".
3225 (windows_iterate_over_objfiles_in_search_order): New function.
3226 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3227 iterate_over_objfiles_in_search_order gdbarch method to
3228 windows_iterate_over_objfiles_in_search_order.
3229 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3230
19630284
JB
32312012-06-05 Joel Brobecker <brobecker@adacore.com>
3232
3233 * gdbarch.sh: Add generation of
3234 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3235 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3236 (iterate_over_objfiles_in_search_order): New gdbarch method.
3237 * gdbarch.h, gdbarch.c: Regenerate.
3238 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3239 Add declaration.
3240 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3241 New function.
3242 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3243 out of lookup_symbol_aux_symtabs.
3244 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3245 call to lookup_symbol_aux_objfile.
3246 (struct global_sym_lookup_data): New type.
3247 (lookup_symbol_global_iterator_cb): New function.
3248 (lookup_symbol_global): Search for symbol using
3249 gdbarch_iterate_over_objfiles_in_search_order and
3250 lookup_symbol_global_iterator_cb.
3251 * findvar.c (struct minsym_lookup_data): New type.
3252 (minsym_lookup_iterator_cb): New function.
3253 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3254 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3255 and minsym_lookup_iterator_cb.
3256
67ff19f7
JB
32572012-06-05 Joel Brobecker <brobecker@adacore.com>
3258
3259 Revert the following patch:
3260 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3261 try locating the symbol in the symbol's own objfile first, before
3262 extending the search to all objfiles.
3263 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3264 out of lookup_symbol_aux_symtabs.
3265 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3266 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3267 Do not search EXCLUDE_OBJFILE.
3268 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3269 (lookup_symbol_global): Search for matches in the block's objfile
3270 first, before searching all other objfiles.
3271
ccab2054
JB
32722012-06-05 Joel Brobecker <brobecker@adacore.com>
3273
3274 * breakpoint.c (find_condition_and_thread): Stop parsing
3275 as soon as the first invalid keyword is found.
3276
e23d4a9c
JB
32772012-06-05 Joel Brobecker <brobecker@adacore.com>
3278
3279 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3280
70160166
JB
32812012-06-05 Joel Brobecker <brobecker@adacore.com>
3282
3283 * config/djgpp/djcheck.sh: Add copyright header.
3284
399501a5
JB
32852012-06-05 Joel Brobecker <brobecker@adacore.com>
3286
3287 * copyright.py (update_files, main): Fix path to update-copyright
3288 script.
3289
3770a159
JB
32902012-06-05 Joel Brobecker <brobecker@adacore.com>
3291
3292 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3293 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3294 for which a reminder to update by hand is printed.
3295
4aad0dfc
DE
32962012-06-04 Doug Evans <dje@google.com>
3297
3298 * buildsym.c (make_blockvector): Add comment.
3299
1f8cf220
PA
33002012-06-04 Pedro Alves <palves@redhat.com>
3301
3302 * arch-utils.c (default_gdb_signal_from_target): Delete.
3303 * arch-utils.h (default_gdb_signal_from_target): Delete.
3304 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3305 gdbarch_gdb_signal_from_target_p.
3306 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3307 predicate).
3308 * gdbarch.h: Regenerate.
3309 * gdbarch.c: Regenerate.
3310
86b49880
PA
33112012-06-04 Pedro Alves <palves@redhat.com>
3312
3313 * gdbarch.sh (gdb_signal_from_target): Mention that the
3314 implementation of the method must be host independent.
3315 * gdbarch.h: Regenerate.
3316
fe78531d
JK
33172012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3318
3319 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3320 parameters.
3321 (target_read_memory_bfd): New function.
3322 (symbol_file_add_from_memory): Use it.
3323
d790cf0a
DE
33242012-06-03 Doug Evans <dje@google.com>
3325
78e5175a
DE
3326 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3327 of primary symtab.
3328 (basic_lookup_transparent_type): Ditto.
3329
d790cf0a
DE
3330 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3331 (ALL_PRIMARY_SYMTABS): Use it.
3332 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3333 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3334 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3335 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3336 (basic_lookup_transparent_type): Ditto.
3337
c6e5ee5e
SDJ
33382012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3339
3340 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3341 it to optimize resolution of demangled name.
3342
a68ffae9
JK
33432012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 * configure.ac (development): Define new variable.
3346 Call AC_CHECK_LIB for mcheck if $development.
3347 (ERROR_ON_WARNING): Enable it by default only if $development.
3348 * config.in: Regenerate.
3349 * configure: Regenerate.
3350
5299c1c4
JK
33512012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3352
3353 * target.c (target_read_memory): Make LEN argument as size_t.
3354 * target.h (target_read_memory): Likewise.
3355
33562012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3357
3358 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3359
0c56f59b
EBM
33602012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3361
3362 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3363 BookE interface for PowerPC server processors if not available
3364 in the Linux Kernel.
3365
71bdabee
KS
33662012-05-31 Keith Seitz <keiths@redhat.com>
3367
3368 * linespec.c (decode_objc): Add cleanup to free
3369 INFO.FILE_SYMTABS.
3370 (find_linespec_symbols): Add cleanup to free CLASSES.
3371 * symfile.c (find_separate_debug_file_by_debuglink): Add
3372 cleanup to free DEBUGLINK.
3373 * ui-out.c (clear_header_list): No need to check if
3374 HEADER_NEXT.COLHDR is NULL.
3375 Free HEADER_NEXT.COL_NAME.
3376
acbd605d
MGD
33772012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3378
3379 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3380 warning.
3381
65662cde
PA
33822012-05-30 Jeff Kenton <jkenton@tilera.com>
3383
3384 * configure.host (gdb_host_cpu): Handle tilegx*.
3385 (gdb_host): Handle tilegx-*-linux*.
3386 * tilegx-linux-nat.c: New file.
3387 * config/tilegx/linux.mh: New file.
3388
ade64f0e
PA
33892012-05-30 Jeff Kenton <jkenton@tilera.com>
3390
3391 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3392 tilegx-linux-tdep.o.
3393 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3394 tilegx-linux-tdep.c.
3395 * configure.tgt: Handle tilegx-*-linux*.
3396 * tilegx-tdep.h: New file.
3397 * tilegx-tdep.c: New file.
3398 * tilegx-linux-tdep.c: New file.
3399 * regformats/reg-tilegx.dat: New file.
3400
bb08bdbd
EBM
34012012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3402
3403 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3404 accounting of hw watchpoints on ppc.
3405
ebd86fb5
TJB
34062012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3407
3408 * source.c (openp): Expand tilde in path entries.
3409
0a0edcd5
DE
34102012-05-29 Doug Evans <dje@google.com>
3411
98cc87bd
DE
3412 * buildsym.c (block_compar): Fix comment.
3413 (end_symtab): Fix and clarify some comments.
3414
0a0edcd5
DE
3415 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3416 cleanup_undefined_types.
3417 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3418 All callers updated.
3419
6f0c7050
TT
34202012-05-29 Tom Tromey <tromey@redhat.com>
3421
3422 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3423 fails.
3424 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3425 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3426 fails.
3427 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3428 fails.
3429
ec95993c
TG
34302012-05-29 Tristan Gingold <gingold@adacore.com>
3431
3432 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3433 (struct darwin_info): ... New struct.
3434 (solib_darwin_pspace_data): New variable.
3435 (darwin_pspace_data_cleanup): New function.
3436 (get_darwin_info): Likewise.
3437 (darwin_dyld_version_ok, darwin_load_image_infos)
3438 (darwin_solib_get_all_image_info_addr_at_init)
3439 (darwin_solib_read_all_image_info_addr): Add info argument.
3440 Adjust code.
3441 (darwin_current_sos): Use per pspace structure.
3442 (darwin_solib_create_inferior_hook): Likewise.
3443 (darwin_clear_solib): Likewise.
3444 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3445
ae25568b
PA
34462012-05-28 Pedro Alves <palves@redhat.com>
3447
3448 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3449 block that uses them. Clear ecss before handling each event.
3450
0c5bf5a9
JK
34512012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3452
3453 * solib-svr4.c (svr4_current_sos): New comment on
3454 svr4_current_sos_via_xfer_libraries fall back.
3455
bfb05775
JK
34562012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3457
3458 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3459 it as a fallback for TYPE_IS_OPAQUE.
3460 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3461 symbols for lookup_symbol.
3462
685b1105
JK
34632012-05-24 John Steele Scott <toojays@toojays.net>
3464
3465 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3466 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3467 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3468 (check_producer): ... this new function, which also checks for ICC
3469 and caches the result.
3470 (producer_is_icc): New function.
3471 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3472 producer was ICC.
3473
22203bbf
PA
34742012-05-24 Pedro Alves <palves@redhat.com>
3475
3476 PR gdb/7205
3477
3478 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3479 (default_gdb_signal_to_target): ... this. Add comment.
3480 (default_gdb_signal_from_host): Rename to ...
3481 (default_gdb_signal_from_target): ... this. Add comment.
3482 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3483 (default_gdb_signal_to_target): ... this.
3484 (default_gdb_signal_from_host): Rename to ...
3485 (default_gdb_signal_from_target): ... this.
3486 * corelow.c (core_open): Adjust to naming change. Replace comment.
3487 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3488 (gdb_signal_from_target): ... this. Adjust to
3489 default_gdb_signal_from_host naming change. Extend comment.
3490 (gdb_signal_to_host): Rename to ...
3491 (gdb_signal_to_target): ... this. Adjust to
3492 default_gdb_signal_to_host naming change.
3493 * gdbarch.h, gdbarch.c: Renegerate.
3494
a493e3e2
PA
34952012-05-24 Pedro Alves <palves@redhat.com>
3496
3497 PR gdb/7205
3498
f782ad9b 3499 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 3500
2ea28649
PA
35012012-05-24 Pedro Alves <palves@redhat.com>
3502
3503 PR gdb/7205
3504
3505 Replace target_signal with gdb_signal throughout.
3506
b09846a9
PA
35072012-05-24 Pedro Alves <palves@redhat.com>
3508
3509 PR tui/14159
3510
3511 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3512 string, instead of reusing the va_list argument.
3513
e77c107e
TT
35142012-05-24 Tom Tromey <tromey@redhat.com>
3515
3516 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3517 Remove.
3518
9fccedf7
DE
35192012-05-23 Doug Evans <dje@google.com>
3520
d50bd42b
DE
3521 * symtab.c (search_symbols): Formatting fixes.
3522 (print_symbol_info): Formatting fixes.
3523
9fccedf7
DE
3524 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3525 int64_t change to leb128 API.
3526 (read_encoded_value, decode_frame_entry_1): Ditto.
3527 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3528 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3529 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3530 (execute_stack_op): Ditto.
3531 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3532 (safe_read_uleb128, safe_read_sleb128): Ditto.
3533 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3534 (dwarf2_compile_expr_to_ax): Ditto.
3535 (locexpr_describe_location_piece): Ditto.
3536 (disassemble_dwarf_expression): Ditto.
3537 (locexpr_describe_location_1): Ditto.
3538
f3e0e960
SS
35392012-05-23 Stan Shebs <stan@codesourcery.com>
3540 Kwok Cheung Yeung <kcy@codesourcery.com>
3541
3542 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3543 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3544 (mi-cmd-info.o): New rule.
3545 * osdata.h (info_osdata_command): New declaration.
3546 * osdata.c (info_osdata_command): Change to non-static.
3547 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3548 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3549 * mi/mi-cmd-info.c: New file.
3550
c51fe631
DE
35512012-05-23 Doug Evans <dje@google.com>
3552
71cddcc1
DE
3553 * symtab.c (search_symbols): Pass NULL for file_matcher to
3554 expand_symtabs_matching if there are no files to match.
3555
c51fe631
DE
3556 * gdbtypes.c (lookup_typename): Simplify.
3557
a79378d4
PA
35582012-05-23 Pedro Alves <palves@redhat.com>
3559
3560 * arch-utils.h (default_target_signal_to_host): Delete.
3561 * arch-utils.c (default_target_signal_to_host): Delete.
3562 * gdbarch.sh (target_signal_to_host): Remove.
3563 * gdbarch.h, gdbarch.c: Regenerate.
3564
f664829e
DE
35652012-05-22 Doug Evans <dje@google.com>
3566
3567 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3568 "const gdb_byte *".
3569 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3570 (execute_cfa_program): Update to match API of leb128 functions.
3571 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3572 "const gdb_byte *".
3573 (read_unsigned_leb128, read_signed_leb128): Delete.
3574 (read_initial_length): Change type of buf argument to
3575 "const gdb_byte *".
3576 (read_encoded_value): Update to match API of leb128 functions.
3577 (decode_frame_entry): Change result to "const gdb_byte *", and
3578 similarly for "start" parameter.
3579 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3580 (dwarf2_build_frame_info): Change local frame_ptr to
3581 "const gdb_byte *".
3582 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3583 read_uleb128, read_sleb128. All callers updated.
3584 (safe_skip_leb128): New function.
3585 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3586 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3587 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3588 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3589 read_uleb128, read_sleb128.
3590 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3591 (execute_stack_op): Update to match API of leb128 functions.
3592 * dwarf2expr.h: #include "leb128.h".
3593 (read_uleb128, read_sleb128): Delete.
3594 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3595 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3596 * dwarf2loc.c (debug_loc_kind): New enum.
3597 (decode_debug_loc_addresses): New function.
3598 (decode_debug_loc_dwo_addresses): New function.
3599 (dwarf2_find_location_expression): Rewrite.
3600 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3601 (locexpr_describe_location_piece): Ditto.
3602 (disassemble_dwarf_expression): Ditto.
3603 (locexpr_describe_location_1): Ditto.
3604 (loclist_describe_location): Rewrite.
3605 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3606 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3607 (dwarf2_section_buffer_overflow_complaint): Renamed from
3608 dwarf2_macros_too_long_complaint. All callers updated.
3609 (skip_leb128): Delete.
3610 (init_cu_die_reader): Initialize reader->buffer_end.
3611 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3612 (skip_form_bytes): New arg buffer_end. All callers updated.
3613 Replace call to skip_leb128 with gdb_skip_leb128.
3614 (skip_unknown_opcode): New arg mac_end. All callers updated.
3615 (fill_in_loclist_baton): Initialize baton->from_dwo.
3616
837a1b32
MR
36172012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3618
3619 * mips-linux-nat.c (mips_linux_read_description): Use a more
3620 verbose error message.
3621
d0e64392
MR
36222012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3623
3624 * NEWS: Add MIPS/Linux DSP support.
3625 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3626 (SIGCONTEXT_DSPCTL): New macro.
3627 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3628 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3629 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3630 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3631 (N64_SIGCONTEXT_HI3): Likewise.
3632 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3633 (N64_SIGCONTEXT_LO3): Likewise.
3634 (N64_SIGCONTEXT_DSPCTL): Likewise.
3635 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3636 (mips_linux_o32_sigframe_init): Handle DSP registers.
3637 (mips_linux_n32n64_sigframe_init): Likewise.
3638
8bea7ed1
PM
36392012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3640
3641 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3642 call to abort.
3643
dab06dbe
PA
36442012-05-22 Pedro Alves <palves@redhat.com>
3645
3646 * target.h (store_waitstatus): Move declaration ...
3647 * inf-child.h (store_waitstatus): ... here.
3648 * target.c: Move inclusion of gdb_wait.h, and ...
3649 (store_waitstatus): ... this ...
3650 * inf-child.c: ... here.
3651 * linux-nat.c: Include inf-child.h.
3652 * rs6000-nat.c: Include inf-child.h.
3653 * spu-linux-nat.c: Include inf-child.h.
3654
43011e52
PM
36552012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3656
3657 * tracepoint.c (start_tracing): Add missing i18n markup.
3658 (stop_tracing, set_trace_user): Ditto.
3659 (set_trace_notes, set_trace_stop_notes): Ditto.
3660
b1af9e97
TT
36612012-05-21 Tom Tromey <tromey@redhat.com>
3662
3663 PR c++/7173:
3664 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3665 types.
3666 * value.h (value_cast_pointers): Update.
3667 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3668 (value_cast): Update.
3669 (update_search_result): New function.
3670 (do_search_struct_field): New, from search_struct_field. Check
3671 for ambiguous results.
3672 (search_struct_field): Rewrite.
3673 * infcall.c (value_arg_coerce): Update.
3674 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3675 value_cast_pointers.
3676 * ada-lang.c (ada_convert_actual): Update.
3677
e9e5e6b3
TT
36782012-05-21 Tom Tromey <tromey@redhat.com>
3679
3680 * macroexp.c (macro_stringify): Terminate the string.
3681
1564a261
JK
36822012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3683
3684 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3685 Describe it.
3686 * auto-load.c (auto_load_expand_dir_vars): New function.
3687 (auto_load_safe_path_vec_update): Use it, remove the
3688 substitute_path_component call thanks to it.
3689 (auto_load_objfile_script): Remove the debug_file_directory processing.
3690 Use auto_load_expand_dir_vars, remove the substitute_path_component
3691 call thanks to it.
3692 * configure: Regenerate.
3693 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3694 path. Escape $ also for $debugdir.
3695 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3696 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3697
a3ec0bb1
DE
36982012-05-20 Doug Evans <dje@google.com>
3699
3700 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3701 before use. Check for symtab->includes == NULL before scanning it.
3702
d467df4e
MR
37032012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3704
3705 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3706
4cc0665f
MR
37072012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3708
3709 * NEWS: Add microMIPS support and "set mips compression",
3710 "show mips compression" commands.
3711 * mips-tdep.h (mips_isa): New enum.
3712 (gdbarch_tdep): Add mips_isa.
3713 (mips_pc_is_mips16): Update prototype.
3714 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3715 * mips-tdep.c (mips_compression_mips16): New variable.
3716 (mips_compression_micromips): Likewise.
3717 (mips_compression_strings): Likewise.
3718 (mips_compression_string): Likewise.
3719 (is_mips16_isa, is_micromips_isa): New functions.
3720 (is_mips16_addr): Rename to...
3721 (is_compact_addr): ... this.
3722 (unmake_mips16_addr): Likewise to...
3723 (unmake_compact_addr): ... this.
3724 (make_mips16_addr): Likewise to...
3725 (make_compact_addr): ... this.
3726 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3727 functions.
3728 (mips_elf_make_msymbol_special): Handle microMIPS code.
3729 (msymbol_is_special): Rename to...
3730 (msymbol_is_mips16): ... this.
3731 (mips_make_symbol_special, mips_pc_is_mips16): Update
3732 accordingly.
3733 (msymbol_is_mips, msymbol_is_micromips): New functions.
3734 (mips16_to_32_reg): Rename to...
3735 (mips_reg3_to_reg): ... this.
3736 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3737 (mips_pc_isa): Likewise.
3738 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3739 code.
3740 (mips_fetch_instruction): Pass return status instead of printing
3741 an error message if requested. Handle microMIPS code. Bail out
3742 on an invalid ISA.
3743 (micromips_op): New macro.
3744 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3745 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3746 (b6s4_op, b7s3_reg): Likewise.
3747 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3748 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3749 (mips_insn_size): New function.
3750 (mips32_next_pc): Update mips_fetch_instruction call.
3751 (micromips_relative_offset7): New function.
3752 (micromips_relative_offset10): Likewise.
3753 (micromips_relative_offset16): Likewise.
3754 (micromips_pc_insn_size): Likewise.
3755 (micromips_bc1_pc): Likewise.
3756 (micromips_next_pc): Likewise.
3757 (unpack_mips16): Update mips_fetch_instruction call.
3758 (extended_mips16_next_pc): Update according to change to
3759 mips16_to_32_reg.
3760 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3761 code.
3762 (mips16_scan_prologue): Update mips_fetch_instruction call.
3763 Update according to change to mips16_to_32_reg.
3764 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3765 (mips_insn16_frame_base_sniffer): Likewise.
3766 (micromips_decode_imm9): New function.
3767 (micromips_scan_prologue): Likewise.
3768 (mips_micro_frame_cache): Likewise.
3769 (mips_micro_frame_this_id): Likewise.
3770 (mips_micro_frame_prev_register): Likewise.
3771 (mips_micro_frame_sniffer): Likewise.
3772 (mips_micro_frame_unwind): New variable.
3773 (mips_micro_frame_base_address): New function.
3774 (mips_micro_frame_base): New variable.
3775 (mips_micro_frame_base_sniffer): New function.
3776 (mips32_scan_prologue): Update mips_fetch_instruction call.
3777 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3778 rather than for MIPS16.
3779 (mips_insn32_frame_base_sniffer): Likewise.
3780 (mips_addr_bits_remove): Handle microMIPS code.
3781 (deal_with_atomic_sequence): Rename to...
3782 (mips_deal_with_atomic_sequence): ... this. Update the type
3783 of the variable used to hold an instruction. Remove the ISA bit
3784 check. Update mips_fetch_instruction call.
3785 (micromips_deal_with_atomic_sequence): New function.
3786 (deal_with_atomic_sequence): Likewise.
3787 (mips_about_to_return): Handle microMIPS code. Update
3788 mips_fetch_instruction call.
3789 (heuristic_proc_start): Check for the standard MIPS ISA rather
3790 than for MIPS16. Update mips_pc_is_mips16 and
3791 mips_fetch_instruction calls. Handle microMIPS code.
3792 (mips_push_dummy_code): Handle microMIPS code.
3793 (mips_eabi_push_dummy_call): Likewise.
3794 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3795 (mips_o64_push_dummy_call): Handle microMIPS code.
3796 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3797 (is_delayed): Remove function.
3798 (mips_single_step_through_delay): Replace the call to is_delayed
3799 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3800 Handle microMIPS code.
3801 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3802 microMIPS code.
3803 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3804 call.
3805 (micromips_in_function_epilogue_p): New function.
3806 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3807 call.
3808 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3809 Handle microMIPS.
3810 (gdb_print_insn_mips): Likewise.
3811 (mips_breakpoint_from_pc): Likewise.
3812 (mips_remote_breakpoint_from_pc): New function.
3813 (mips32_instruction_has_delay_slot): Simplify making use of the
3814 updated mips_fetch_instruction interface.
3815 (micromips_instruction_has_delay_slot): New function.
3816 (mips16_instruction_has_delay_slot): Simplify making use of the
3817 updated mips_fetch_instruction interface.
3818 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 3819 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
3820 calls. Handle microMIPS code.
3821 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3822 (mips_skip_trampoline_code): Handle microMIPS code.
3823 (global_mips_compression): New function.
3824 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3825 file flags. Register the microMIPS remote breakpoint handler
3826 and heuristic frame unwinder.
3827 (show_mips_compression): New function.
3828 (_initialize_mips_tdep): Add the "set mips compression" and
3829 "show mips compression" commands.
3830
22e048c9
SDJ
38312012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3832
3833 * ada-lang.c:
3834 * ada-tasks.c:
3835 * ada-varobj.c:
3836 * amd64-darwin-tdep.c:
3837 * arm-symbian-tdep.c:
3838 * arm-tdep.c:
3839 * avr-tdep.c:
3840 * ax-gdb.c:
3841 * bfin-linux-tdep.c:
3842 * breakpoint.c:
3843 * c-valprint.c:
3844 * cli/cli-cmds.c:
3845 * coffread.c:
3846 * cp-support.c:
3847 * cris-tdep.c:
3848 * dwarf2-frame-tailcall.c:
3849 * dwarf2-frame.c:
3850 * dwarf2expr.c:
3851 * dwarf2loc.c:
3852 * dwarf2read.c:
3853 * elfread.c:
3854 * eval.c:
3855 * expprint.c:
3856 * f-valprint.c:
3857 * frv-tdep.c:
3858 * h8300-tdep.c:
3859 * hppa-hpux-tdep.c:
3860 * hppa-tdep.c:
3861 * hppanbsd-tdep.c:
3862 * i386-nto-tdep.c:
3863 * i386-tdep.c:
3864 * i387-tdep.c:
3865 * ia64-tdep.c:
3866 * jit.c:
3867 * linespec.c:
3868 * linux-tdep.c:
3869 * lm32-tdep.c:
3870 * m2-valprint.c:
3871 * m32c-tdep.c:
3872 * m32r-rom.c:
3873 * m32r-tdep.c:
3874 * m68k-tdep.c:
3875 * m68klinux-tdep.c:
3876 * mi/mi-main.c:
3877 * microblaze-tdep.c:
3878 * mips-linux-tdep.c:
3879 * mips-tdep.c:
3880 * mn10300-tdep.c:
3881 * p-valprint.c:
3882 * parse.c:
3883 * ppc-linux-tdep.c:
3884 * ppc-sysv-tdep.c:
3885 * printcmd.c:
3886 * python/py-finishbreakpoint.c:
3887 * python/py-inferior.c:
3888 * python/py-infthread.c:
3889 * python/py-type.c:
3890 * python/python.c:
3891 * remote-fileio.c:
3892 * remote-m32r-sdi.c:
3893 * remote-mips.c:
3894 * reverse.c:
3895 * rl78-tdep.c:
3896 * rs6000-aix-tdep.c:
3897 * rs6000-tdep.c:
3898 * s390-tdep.c:
3899 * score-tdep.c:
3900 * sh64-tdep.c:
3901 * skip.c:
3902 * solib-darwin.c:
3903 * solib-dsbt.c:
3904 * solib-frv.c:
3905 * sparc-tdep.c:
3906 * spu-multiarch.c:
3907 * spu-tdep.c:
3908 * stack.c:
3909 * symfile.c:
3910 * symtab.c:
3911 * tic6x-tdep.c:
3912 * tracepoint.c:
3913 * v850-tdep.c:
3914 * valarith.c:
3915 * valprint.c:
3916 * value.c:
3917 * xcoffread.c:
3918 * xtensa-tdep.c:
3919 * ada-lang.c:
3920 * ada-tasks.c:
3921 * ada-varobj.c:
3922 * amd64-darwin-tdep.c:
3923 * arm-symbian-tdep.c:
3924 * arm-tdep.c: Delete unused variables.
3925
aff139ff
JK
39262012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3927
3928 Rename $ddir to $datadir.
3929 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3930 * auto-load.c (auto_load_safe_path_vec_update)
3931 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3932 * configure: Regenerate.
3933 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3934 Likewise. Remove the 'use $ddir' help string.
3935
f7bfa992
JK
39362012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3937
3938 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3939 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3940
9cb709b6
TT
39412012-05-18 Tom Tromey <tromey@redhat.com>
3942
3943 PR exp/13907:
3944 * valprint.h (struct value_print_options) <symbol_print>: New
3945 field.
3946 * valprint.c (user_print_options): Add default for symbol_print.
3947 (show_symbol_print): New function.
3948 (generic_val_print): Respect symbol_print.
3949 (_initialize_valprint): Add "print symbol" setting.
3950 * f-valprint.c (f_val_print): Respect symbol_print.
3951 * c-valprint.c (c_val_print): Respect symbol_print.
3952 * NEWS: Update.
3953 * printcmd.c (print_address_symbolic): Return int. Ignore some
3954 zero-size symbols.
3955 (print_address_demangle): Return int.
3956 * defs.h: (print_address_symbolic): Return int.
3957 * value.h (print_address_demangle): Return int.
3958
b012acdd
TT
39592012-05-18 Tom Tromey <tromey@redhat.com>
3960
3961 * valprint.c (val_print_string): Don't print leading space.
3962 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3963 print space before string or vtbl.
3964 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3965 before string.
3966 * jv-valprint.c (java_value_print): Print space before string.
3967 * go-valprint.c (print_go_string): Print space before string.
3968 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3969 space before string.
3970 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3971 space before string or vtbl.
3972 * auxv.c (fprint_target_auxv): Print space after address.
3973
1d51a733
TT
39742012-05-18 Tom Tromey <tromey@redhat.com>
3975
3976 * printcmd.c (print_address_demangle): Remove special case for 0.
3977
edf0c1b7
TT
39782012-05-18 Tom Tromey <tromey@redhat.com>
3979
3980 * printcmd.c (print_address_demangle): Add 'opts' argument.
3981 * p-valprint.c (pascal_val_print): Update.
3982 * jv-valprint.c (java_val_print): Update.
3983 * value.h: Update.
3984 * valprint.c (generic_val_print): Update.
3985 (print_function_pointer_address): Add 'options' argument. Remove
3986 'addressprint' argument. Update.
3987 * m2-valprint.c (print_unpacked_pointer): Update.
3988 * gnu-v3-abi.c (print_one_vtable): Update.
3989 (gnuv3_print_method_ptr): Update.
3990 * f-valprint.c (f_val_print): Update.
3991 * cp-valprint.c (cp_print_value_fields): Update.
3992 * valprint.h (print_function_pointer_address): Update.
3993 * c-valprint.c (c_val_print): Update.
3994
9703b513
TT
39952012-05-18 Tom Tromey <tromey@redhat.com>
3996
3997 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3998 directly corresponding to the found psymtab.
3999 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4000 (dw2_find_pc_sect_symtab): Use it.
4001 * block.h (blockvector_contains_pc): Declare.
4002 * block.c (find_block_in_blockvector): New function.
4003 (blockvector_for_pc_sect): Use it.
4004 (blockvector_contains_pc): New function.
4005
5a439849
MR
40062012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4007
4008 * mips-tdep.h (mips_write_pc): New prototype.
4009 * mips-tdep.c (mips_write_pc): Make external, add description.
4010 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4011 add description.
4012
8376de04
MR
40132012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4014
4015 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4016 mips_regnum->pc.
4017 (mips_unwind_pc, mips_write_pc): Likewise.
4018 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4019 gdbarch_read_pc.
4020
d3581e61
JB
40212012-05-17 Joel Brobecker <brobecker@adacore.com>
4022
4023 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4024 proc_warn, proc_error, proc_get_status, proc_flags,
4025 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4026 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4027 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4028 proc_stop_process, proc_wait_for_stop, proc_run_process,
4029 proc_set_traced_signals, proc_set_traced_faults,
4030 proc_set_traced_sysentry, proc_set_traced_sysexit,
4031 proc_set_held_signals, proc_get_held_signals,
4032 proc_get_traced_signals, proc_get_traced_faults,
4033 proc_get_traced_sysentry, proc_get_traced_sysexit,
4034 proc_clear_current_fault, proc_set_current_signal,
4035 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4036 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4037 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4038 proc_get_current_thread, proc_get_current_thread,
4039 proc_get_current_thread, proc_update_threads,
4040 proc_update_threads, proc_update_threads, proc_update_threads,
4041 proc_iterate_over_threads, procfs_find_new_threads,
4042 procfs_pid_to_str): Make static. Remove advance declaration.
4043 (proc_cursig): Make static. Conditionalized defintion on
4044 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4045 (proc_syscall, proc_set_kill_on_last_close,
4046 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4047 proc_get_pending_signals, proc_get_signal_actions,
4048 proc_trace_signal, proc_ignore_signal): Delete.
4049
81b9b86e
SDJ
40502012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4051
4052 * coffread.c (cs_section_address): Passing proper argument for
4053 `bfd_get_section_vma'.
4054 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4055 `bfd_get_section_flags'.
4056 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4057 `bfd_get_section_vma'.
4058
abc9d0dc
TT
40592012-05-16 Tom Tromey <tromey@redhat.com>
4060
4061 PR macros/13205:
4062 * macrotab.h: (macro_define_special): Declare.
4063 (enum macro_special_kind): New.
4064 (struct macro_definition) <argc, replacement>: Update comments.
4065 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4066 (macro_define_object_internal): New function.
4067 (macro_define_object): Use it.
4068 (macro_define_special): New function.
4069 (fixup_definition): New function.
4070 (macro_lookup_definition, foreach_macro_in_scope)
4071 (foreach_macro): Use fixup_definition.
4072 * macroexp.h (macro_stringify): Declare.
4073 * macroexp.c (free_buffer_return_text): New function.
4074 (stringify): Constify "arg".
4075 (macro_stringify): New function.
4076 * dwarf2read.c (macro_start_file): Call macro_define_special.
4077
6a3a010b 40782012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4079 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4080
4081 * breakpoint.h (bp_location): Add related_address member.
4082 * inferior.h (get_return_value): Take a pointer to struct value
4083 instead of struct type for the function requested.
4084 * value.h (using_struct_return): Likewise.
4085 * gdbarch.sh (return_value): Take a pointer to struct value
4086 instead of struct type for the function requested.
4087 * breakpoint.c (set_breakpoint_location_function): Initialize
4088 related_address for bp_gnu_ifunc_resolver breakpoints.
4089 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4090 requested function's address to gdbarch_return_value.
4091 * eval.c (evaluate_subexp_standard): Pass the requested
4092 function's address to using_struct_return.
4093 * infcall.c (call_function_by_hand): Pass the requested
4094 function's address to using_struct_return and
4095 gdbarch_return_value.
4096 * infcmd.c (get_return_value): Take a pointer to struct value
4097 instead of struct type for the function requested.
4098 (print_return_value): Update accordingly.
4099 (finish_command_continuation): Likewise.
4100 * stack.c (return_command): Pass the requested function's
4101 address to using_struct_return and gdbarch_return_value.
4102 * value.c (using_struct_return): Take a pointer to struct value
4103 instead of struct type for the function requested. Pass the
4104 requested function's address to gdbarch_return_value.
4105 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4106 New function_value member, replacing function_type.
4107 (bpfinishpy_dealloc): Update accordingly.
4108 (bpfinishpy_pre_stop_hook): Likewise.
4109 (bpfinishpy_init): Likewise. Record the requested function's
4110 address.
4111 * mips-tdep.c (mips_fval_reg): New enum.
4112 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4113 words put in GP registers.
4114 (mips_o64_push_dummy_call): Update a comment.
4115 (mips_o32_return_value): Take a pointer to struct value instead
4116 of struct type for the function requested and use it to check if
4117 using the MIPS16 calling convention. Return the designated
4118 general purpose registers for floating-point values returned in
4119 MIPS16 mode.
4120 (mips_o64_return_value): Likewise.
4121 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4122 (ppc_sysv_abi_broken_return_value): Likewise.
4123 (ppc64_sysv_abi_return_value): Likewise.
4124 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4125 value instead of struct type for the function requested.
4126 * amd64-tdep.c (amd64_return_value): Likewise.
4127 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4128 * arm-tdep.c (arm_return_value): Likewise.
4129 * avr-tdep.c (avr_return_value): Likewise.
4130 * bfin-tdep.c (bfin_return_value): Likewise.
4131 * cris-tdep.c (cris_return_value): Likewise.
4132 * frv-tdep.c (frv_return_value): Likewise.
4133 * h8300-tdep.c (h8300_return_value): Likewise.
4134 (h8300h_return_value): Likewise.
4135 * hppa-tdep.c (hppa32_return_value): Likewise.
4136 (hppa64_return_value): Likewise.
4137 * i386-tdep.c (i386_return_value): Likewise.
4138 * ia64-tdep.c (ia64_return_value): Likewise.
4139 * iq2000-tdep.c (iq2000_return_value): Likewise.
4140 * lm32-tdep.c (lm32_return_value): Likewise.
4141 * m32c-tdep.c (m32c_return_value): Likewise.
4142 * m32r-tdep.c (m32r_return_value): Likewise.
4143 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4144 * m68k-tdep.c (m68k_return_value): Likewise.
4145 (m68k_svr4_return_value): Likewise.
4146 * m88k-tdep.c (m88k_return_value): Likewise.
4147 * mep-tdep.c (mep_return_value): Likewise.
4148 * microblaze-tdep.c (microblaze_return_value): Likewise.
4149 * mn10300-tdep.c (mn10300_return_value): Likewise.
4150 * moxie-tdep.c (moxie_return_value): Likewise.
4151 * mt-tdep.c (mt_return_value): Likewise.
4152 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4153 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4154 (ppc_sysv_abi_broken_return_value): Likewise.
4155 (ppc64_sysv_abi_return_value): Likewise.
4156 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4157 * rl78-tdep.c (rl78_return_value): Likewise.
4158 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4159 * rx-tdep.c (rx_return_value): Likewise.
4160 * s390-tdep.c (s390_return_value): Likewise.
4161 * score-tdep.c (score_return_value): Likewise.
4162 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4163 (sh_return_value_fpu): Likewise.
4164 * sh64-tdep.c (sh64_return_value): Likewise.
4165 * sparc-tdep.c (sparc32_return_value): Likewise.
4166 * sparc64-tdep.c (sparc64_return_value): Likewise.
4167 * spu-tdep.c (spu_return_value): Likewise.
4168 * tic6x-tdep.c (tic6x_return_value): Likewise.
4169 * v850-tdep.c (v850_return_value): Likewise.
4170 * vax-tdep.c (vax_return_value): Likewise.
4171 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4172 * xtensa-tdep.c (xtensa_return_value): Likewise.
4173 * gdbarch.c: Regenerate.
4174 * gdbarch.h: Regenerate.
4175
29ca12b3
TT
41762012-05-15 Tom Tromey <tromey@redhat.com>
4177
4178 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4179
588ae58c
JB
41802012-05-15 Joel Brobecker <brobecker@adacore.com>
4181
4182 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4183 of command in two error message.
4184
855a6e68
JB
41852012-05-15 Joel Brobecker <brobecker@adacore.com>
4186
4187 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4188
d634f2de
JB
41892012-05-15 Joel Brobecker <brobecker@adacore.com>
4190
4191 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4192
9cc815f5
JK
41932012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4194
4195 * NEWS (show auto-load scripts-directory): Add forgotten command.
4196
6a609e58
JK
41972012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4198
4199 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4200 parameters.
4201
ac1438b5
L
42022012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4203
4204 * amd64-tdep.c: Include features/i386/x32.c and
4205 features/i386/x32-avx.c.
4206 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4207 initialize_tdesc_x32_avx.
4208
e7e0cddf
SS
42092012-05-14 Stan Shebs <stan@codesourcery.com>
4210
4211 Add dynamic printf.
4212 * breakpoint.h (enum bptype): New type bp_dprintf.
4213 (struct breakpoint): New field extra_string.
4214 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4215 (create_breakpoint): Add extra_string arg.
4216 * breakpoint.c (dprintf_breakpoint_ops): New.
4217 (is_breakpoint): Add bp_dprintf.
4218 (bpstat_what): Add dprintf case.
4219 (bptype_string): Ditto.
4220 (print_one_breakpoint_location): Ditto.
4221 (init_bp_location): Ditto.
4222 (bkpt_print_mention): Ditto.
4223 (dprintf_style_enums): New array.
4224 (dprintf_style): New global.
4225 (dprintf_function): New global.
4226 (dprintf_channel): New global.
4227 (update_dprintf_command_list): New function.
4228 (update_dprintf_commands): New function.
4229 (init_breakpoint_sal): Add extra_string argument, handle it.
4230 (create_breakpoint_sal): Add extra_string argument.
4231 (create_breakpoints_sal): Add extra_string argument, update callers.
4232 (find_condition_and_thread): Add extra argument.
4233 (create_breakpoint): Add extra_string argument, record it.
4234 (dprintf_command): New function.
4235 (break_command_1): Add arg to create_breakpoint call.
4236 (handle_gnu_v3_exceptions): Ditto.
4237 (trace_command): Ditto.
4238 (ftrace_command): Ditto.
4239 (strace_command): Ditto.
4240 (bkpt_print_mention): Add dprintf case.
4241 (create_breakpoint_sal_default): Add extra_string argument.
4242 (_initialize_breakpoint): Add new commands.
4243 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4244 * python/py-breakpoint.c (bppy_init): Ditto.
4245 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4246
8ae38c14
MR
42472012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4248
4249 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4250
9f676e66
SCR
42512012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4252
4253 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4254 unsigned long long.
4255
7efc75aa
SCR
42562012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4257
4258 Add a new function gdb.find_pc_line to the Python API.
4259 * NEWS (Python Scripting): Add entry about the new function.
4260 * python/python.c (gdbpy_find_pc_line): New function which
4261 implements gdb.find_pc_line.
4262 (GdbMethods): Add entry for the new function.
4263
70af3797
PA
42642012-05-12 Pedro Alves <palves@redhat.com>
4265
4266 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4267 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4268
06da564e
EZ
42692012-05-12 Eli Zaretskii <eliz@gnu.org>
4270
4271 * inferior.c: Include completer.h
4272 (initialize_inferiors): Set completer of add-inferior to
4273 filename_completer.
4274
0288cee2
L
42752012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4276
4277 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4278 gdbarch_ptr_bit for x32 core dump.
4279
f6537a2c
L
42802012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4281
4282 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4283 and features/i386/x32-avx-linux.c.
4284
85d4a676
SS
42852012-05-11 Stan Shebs <stan@codesourcery.com>
4286 Kwok Cheung Yeung <kcy@codesourcery.com>
4287
4288 * NEWS: Describe new info os commands.
4289 * common/linux-osdata.c (PID_T, TIME_T): Define.
4290 (MAX_PID_T_STRLEN): New.
4291 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4292 MAX_PID_T_STRLEN.
4293 (command_from_pid): Add comment. Change to use PID_T.
4294 (commandline_from_pid): Change to use PID_T.
4295 (user_from_pid): Add comment.
4296 (get_process_owner): Add comment. Change to use PID_T and
4297 MAX_PID_T_STRLEN.
4298 (get_number_of_cpu_cores): Add comment.
4299 (get_cores_used_by_process): Add comment. Change to use PID_T and
4300 MAX_PID_T_STRLEN.
4301 (linux_xfer_osdata_processes): Change to use PID_T and
4302 MAX_PID_T_STRLEN.
4303 (compare_processes): New function.
4304 (linux_xfer_osdata_processgroups): New function.
4305 (linux_xfer_osdata_threads): Change to use PID_T.
4306 (linux_xfer_osdata_fds): New function.
4307 (format_socket_state, print_sockets): New functions.
4308 (union socket_addr): New union.
4309 (linux_xfer_osdata_isockets): New function.
4310 (time_from_time_t, group_from_gid): New functions.
4311 (linux_xfer_osdata_shm): New function.
4312 (linux_xfer_osdata_sem): New function.
4313 (linux_xfer_osdata_msg): New function.
4314 (linux_xfer_osdata_modules): New function.
4315 (osdata_table): Add new entries.
4316 * common/buffer.c (buffer_xml_printf): Add support for long and
4317 long long format specifiers.
4318
f24afd6d
L
43192012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4320
4321 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4322 (tdesc_x32_avx_linux): Likewise.
4323
7349ff92
JK
43242012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4325
4326 Implement multi-component --with-auto-load-dir.
4327 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4328 entries.
4329 (--with-auto-load-safe-path): Update the default value description.
4330 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4331 New.
4332 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4333 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4334 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4335 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4336 "set auto-load scripts-directory".
4337 * config.in: Regenerate.
4338 * configure: Regenerate.
4339 * configure.ac (--with-auto-load-dir): New configure option.
4340 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4341
6dea1fbd
JK
43422012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4343
4344 Provide $ddir substitution for --with-auto-load-safe-path.
4345 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4346 entries.
4347 * auto-load.c: Include observer.h.
4348 (auto_load_safe_path_vec_update): Call substitute_path_component for
4349 each component. New variable ddir_subst.
4350 (auto_load_gdb_datadir_changed): New function.
4351 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4352 AUTO_LOAD_SAFE_PATH. New comment.
4353 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4354 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4355 * config.in: Regenerate.
4356 * configure: Regenerate.
4357 * configure.ac (--auto-load-safe-path): Rename
4358 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4359 GDB_DATADIR/auto-load.
4360 * defs.h (substitute_path_component): New declaration.
4361 * top.c: Include observer.h.
4362 (set_gdb_datadir): New function.
4363 (init_main): Install it for "set data-directory".
4364 * utils.c (substitute_path_component): New function.
4365
b09aca3a
JK
43662012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4367
4368 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4369 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4370 DEBUG_FILE_DIRECTORY. Handle multiple components of
4371 DEBUG_FILE_DIRECTORY.
4372
95554aad
TT
43732012-05-10 Tom Tromey <tromey@redhat.com>
4374
4375 * dwarf2read.c (recursively_write_psymbols): New function.
4376 (write_psymtabs_to_index): Use it.
4377
4378 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4379 field.
4380 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4381 (load_partial_comp_unit): Update.
4382 (queue_comp_unit): Add argument 'pretend_language'.
4383 (process_queue): Update.
4384 (psymtab_to_symtab_1): Skip dependencies that have a user.
4385 (load_partial_comp_unit_reader): Give meaning to the 'data'
4386 argument.
4387 (load_full_comp_unit): Add 'pretend_language' argument.
4388 (process_full_comp_unit): Add 'pretend_language' argument. Set
4389 language on CU.
4390 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4391 Update.
4392 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4393 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4394 Update.
4395 (prepare_one_comp_unit): Add 'pretend_language' argument.
4396
4397 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4398 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4399 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4400 (dw2_do_instantiate_symtab): Check whether symtab was read in
4401 before queueing.
4402 (dw2_instantiate_symtab): Add assertion. Call
4403 process_cu_includes.
4404 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4405 (partial_symtab_p): New typedef.
4406 (set_partial_user): New function.
4407 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4408 (scan_partial_symbols): Add imported CU to imported_symtabs.
4409 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4410 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4411 (get_symtab, recursively_compute_inclusions)
4412 (compute_symtab_includes, process_cu_includes)
4413 (process_imported_unit_die): New functions.
4414 (process_die) <DW_TAG_imported_unit>: New case.
4415 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4416
4417 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4418 comment.
4419 (struct partial_die_info) <locdesc>: Remove.
4420 <d>: New field.
4421 (process_psymtab_comp_unit): Add 'read_partial' argument.
4422 Update.
4423 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4424 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4425 (add_partial_symbol): Update.
4426 (process_die): Handle DW_TAG_partial_unit.
4427 (read_file_scope): Update comment.
4428 (load_partial_dies): Handle DW_TAG_imported_unit.
4429 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4430 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4431
e871fbb9
TT
44322012-05-10 Tom Tromey <tromey@redhat.com>
4433
4434 * cc-with-dwz.sh: New file.
4435
b5b04b5b
TT
44362012-05-10 Tom Tromey <tromey@redhat.com>
4437
4438 * symtab.h (struct symtab) <includes, user>: New fields.
4439 * block.h (struct block_iterator) <d, idx, which>: New fields.
4440 * block.c (initialize_block_iterator, find_iterator_symtab)
4441 (block_iterator_step, block_iter_name_step)
4442 (block_iter_match_step): New functions.
4443 (block_iterator_first, block_iterator_next)
4444 (block_iter_name_first, block_iter_name_next)
4445 (block_iter_match_first, block_iter_match_next): Rewrite.
4446 (get_block_symtab): New function.
4447
84a146c9
TT
44482012-05-10 Tom Tromey <tromey@redhat.com>
4449
4450 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4451 set_block_symtab.
4452 * jit.c (finalize_symtab): Use allocate_global_block,
4453 set_block_symtab.
4454 * buildsym.c (finish_block_internal): New function, from old
4455 finish_block.
4456 (finish_block): Rewrite.
4457 (end_symtab): Use finish_block_internal, set_block_symtab.
4458 * block.h (struct global_block): New.
4459 (allocate_global_block, set_block_symtab): Declare.
4460 * block.c (allocate_global_block, set_block_symtab): New
4461 functions.
4462
9439a077
TT
44632012-05-10 Tom Tromey <tromey@redhat.com>
4464
4465 * psymtab.c (partial_map_expand_apply): Add assertion.
4466 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4467 (psymtab_to_symtab): Find unshared psymtab.
4468 (dump_psymtab): Print including psymtabs.
4469 (recursively_search_psymtabs): New function.
4470 (expand_symtabs_matching_via_partial): Use it.
4471 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4472 fields.
4473 (enum psymtab_search_status): New.
4474
8157b174
TT
44752012-05-10 Tom Tromey <tromey@redhat.com>
4476
4477 * tracepoint.c (scope_info): Update.
4478 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4479 (find_pc_sect_symtab, search_symbols)
4480 (default_make_symbol_completion_list_break_on)
4481 (make_file_symbol_completion_list): Update.
4482 * symmisc.c (dump_symtab_1): Update.
4483 * stack.c (print_frame_args, iterate_over_block_locals)
4484 (print_frame_labels, iterate_over_block_arg_vars): Update.
4485 * python/py-block.c (block_object) <dict>: Remove.
4486 <block>: New field.
4487 <iter>: Change type.
4488 (blpy_iter): Update.
4489 (blpy_block_syms_iternext): Update.
4490 * psymtab.c (map_block): Use block iterators.
4491 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4492 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4493 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4494 * infrun.c (check_exception_resume): Update.
4495 * cp-support.c (make_symbol_overload_list_block): Update.
4496 * coffread.c (patch_opaque_types): Update.
4497 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4498 * block.h (struct block_iterator): New.
4499 (block_iterator_first, block_iterator_next, block_iter_name_first)
4500 (block_iter_name_next, block_iter_match_first)
4501 (block_iter_match_next): Declare.
4502 (ALL_BLOCK_SYMBOLS): Redefine.
4503 * block.c (block_iterator_first, block_iterator_next)
4504 (block_iter_name_first, block_iter_name_next)
4505 (block_iter_match_first, block_iter_match_next): New functions.
4506 * ada-lang.c (ada_add_block_symbols)
4507 (ada_make_symbol_completion_list): Use block iterator.
4508
a2ca7a52
TT
45092012-05-10 Tom Tromey <tromey@redhat.com>
4510
4511 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4512 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4513 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4514 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4515 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4516 Update.
4517
64ea88dc
JB
45182012-05-10 Joel Brobecker <brobecker@adacore.com>
4519
4520 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4521 print-file-var-lib2.c, print-file-var-main.c and
4522 print-file-var.exp (located in gdb/testsuite/gdb.base).
4523
99a547d6
JB
45242012-05-10 Joel Brobecker <brobecker@adacore.com>
4525
4526 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4527 try locating the symbol in the symbol's own objfile first, before
4528 extending the search to all objfiles.
4529 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4530 out of lookup_symbol_aux_symtabs.
4531 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4532 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4533 Do not search EXCLUDE_OBJFILE.
4534 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4535 (lookup_symbol_global): Search for matches in the block's objfile
4536 first, before searching all other objfiles.
4537
0ece64fd
TG
45382012-05-10 Tristan Gingold <gingold@adacore.com>
4539
4540 * printcmd.c (set_command): Add pre/post inc/dec.
4541
3d16a105
FCE
45422012-05-09 Frank Ch. Eigler <fche@redhat.com>
4543
4544 * gdb.1: Document -ex option.
4545
2efbc0f7
JB
45462012-05-09 Joel Brobecker <brobecker@adacore.com>
4547
4548 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4549 * inferior.h (AT_SYMBOL): Delete.
4550
2c76a0c7
JB
45512012-05-09 Joel Brobecker <brobecker@adacore.com>
4552
4553 * mips-tdep.c (mips_push_dummy_code): New function.
4554 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4555 ON_STACK and install mips_push_dummy_code as our gdbarch
4556 push_dummy_code routine.
4557
9401a810
PA
45582012-05-09 Pedro Alves <palves@redhat.com>
4559
4560 * target.c (set_maintenance_target_async_permitted): Rename to ...
4561 (set_target_async_command): ... this.
4562 (show_maintenance_target_async_permitted): Rename to ...
4563 (show_target_async_command): ... this.
4564 (initialize_targets): Adjust.
4565
3929b321
DE
45662012-05-08 Doug Evans <dje@google.com>
4567
4568 * go-exp.y (classify_name): Add missing assignment of fields of
4569 yylval.ssym.
4570
c41535fd
EZ
45712012-05-08 Eli Zaretskii <eliz@gnu.org>
4572
4573 Display the ">" prompt in interactive mode while reading canned
4574 commands, even when the current interpreter is MI.
4575
4576 * interps.c (interp_set_temp): New function.
4577
4578 * interps.h (interp_set_temp): Add prototype.
4579
4580 * cli/cli-script.c (restore_interp): New cleanup function.
4581 (read_command_lines): Temporarily override the current interpreter
4582 with CLI and arrange for restoring the original one.
4583
c0749c4d
JS
45842012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4585
4586 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4587
d7333987
SDJ
45882012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4589
4590 * probe.c (parse_probes): Move conditional to check for
4591 debuginfo files from here...
4592 * stap-probe.c (stap_get_probes): ... to here.
4593
649e6d92
MK
45942012-05-07 Mark Kettenis <kettenis@gnu.org>
4595 H.J. Lu <hongjiu.lu@intel.com>
4596
4597 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4598 `movl %esp, %ebp' for the X32 ABI.
4599
f39c6ffd
TT
46002012-05-07 Tom Tromey <tromey@redhat.com>
4601
4602 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4603 get_DW_TAG_name.
4604 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4605 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4606 (dwarf_stack_op_name): Remove.
4607 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4608 (decode_locdesc): Use get_DW_OP_name.
4609 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4610 (dwarf2_compile_expr_to_ax): Likewise.
4611 (disassemble_dwarf_expression): Likewise.
4612 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4613
1e1f6591
CLT
46142012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4615
4616 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4617 (sh_linux_sigtramp_cache): New function.
4618 (sh_linux_sigreturn_init): New function.
4619 (sh_linux_rt_sigreturn_init): New function.
4620 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4621 patterns.
4622 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4623 syscall codes.
4624 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4625 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4626 (sh_linux_init_abi): Add init calls to register new tramp_frame
4627 definitions under 32-bit SH, update comments.
4628
545c08b4
PA
46292012-05-07 Pedro Alves <palves@redhat.com>
4630
daac165e
PA
4631 PR gdb/10952
4632
545c08b4
PA
4633 * amd64-linux-tdep.c: Include glibc-tdep.h.
4634 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4635 gdbarch_skip_solib_resolver callback.
4636
af2c1515
JK
46372012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4638
4639 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4640 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4641 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4642 (add_auto_load_safe_path): Change the error message.
4643 (_initialize_auto_load): Change the "safe-path" help text.
4644 * configure: Regenerate
4645 * configure.ac (--without-auto-load-safe-path): Set
4646 WITH_AUTO_LOAD_SAFE_PATH to /.
4647
1067f998
SDJ
46482012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4649
4650 * stap-probe.h: Do not include unecessary `probe.h'.
4651
45dfa85a
AM
46522012-05-05 Alan Modra <amodra@gmail.com>
4653
4654 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4655 bfd_und_section_ptr.
4656 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4657 and bfd_com_section_ptr.
4658
cf093994
JB
46592012-05-04 Joel Brobecker <brobecker@adacore.com>
4660
762ebb75 4661 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 4662
d40dc7a8
JB
46632012-05-04 Joel Brobecker <brobecker@adacore.com>
4664
4665 * windows-nat.h (segment_register_p_ftype): New typedef.
4666 (windows_set_segment_register_p): Add declaration.
4667 * windows-nat.c (segment_register_p): New static global.
4668 (windows_set_segment_register_p): New function.
4669 (do_windows_fetch_inferior_registers): Add special handling
4670 for segment registers.
4671 * amd64-windows-nat.c: #include "amd64-tdep.h".
4672 (amd64_windows_segment_register_p): New function.
4673 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4674 * i386-windows-nat.c: #include "i386-tdep.h".
4675 (i386_windows_segment_register_p): New function.
4676 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4677
52b3699b
TG
46782012-05-04 Tristan Gingold <gingold@adacore.com>
4679
4680 * printcmd.c (set_command): Emit a warning if the expression is not
4681 an assignment.
4682
94c74239
JB
46832012-05-03 Joel Brobecker <brobecker@adacore.com>
4684
4685 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4686 Make static.
4687
fcf57f19
SDJ
46882012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4689
4690 * stap-probe.c (stap_is_operator): Change declaration.
4691 (stap_get_opcode): Change return value.
4692 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4693 `stap_parse_argument_1'.
4694
27d2932e
PA
46952012-05-03 Pedro Alves <pedro@codesourcery.com>
4696
4697 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4698 debug log.
4699
a20ee7a4
SCR
47002012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4701
4702 Add two new methods global_block and static_block to gdb.Symtab
4703 objects.
4704 * NEWS (Python scripting): Add entry about the new methods.
4705 * python/py-symtab.c (stpy_global_block): New function which
4706 implements the gdb.Symtab.global_block() method.
4707 (stpy_static_block): New function which implements the
4708 gdb.Symtab.static_block() method.
4709 (symtab_object_methods): Add entries for the two new methods.
4710
943cb756
DE
47112012-05-03 Doug Evans <dje@google.com>
4712
4713 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4714 files.
4715
f4644a3f
YQ
47162012-05-03 Yao Qi <yao@codesourcery.com>
4717
4718 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4719 space.
4720 (i386_process_record): Ditto.
4721
ef61f180
JB
47222012-05-02 Joel Brobecker <brobecker@adacore.com>
4723
4724 * infcall.c (unwind_on_signal_p): Make static.
4725
02f1df11
JB
47262012-05-02 Joel Brobecker <brobecker@adacore.com>
4727
4728 * sol-thread.c (solaris_pid_to_str): Make static.
4729 (_initialize_sol_thread): Add prototype.
4730
39023530
JB
47312012-05-02 Joel Brobecker <brobecker@adacore.com>
4732
4733 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4734
c6b0c501
CF
47352012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4736
4737 * MAINTAINERS: Remove myself.
4738
1ef71717
JK
47392012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4740
4741 Fix --without-auto-load-safe-path for MS-Windows host platform.
4742 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4743
b31b86a7
EZ
47442012-05-02 Eli Zaretskii <eliz@gnu.org>
4745
4746 * gdb_curses.h: Undefine KEY_EVENT before including curses
4747 headers. Move "#undef MOUSE_MOVED" before any curses header
4748 inclusion.
4749
777532fc
SDJ
47502012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4751
4752 * features/i386/i386-mmx-linux.c: Regenerate.
4753 * features/rs6000/powerpc-32.c: Likewise.
4754 * features/rs6000/powerpc-32l.c: Likewise.
4755 * features/rs6000/powerpc-403.c: Likewise.
4756 * features/rs6000/powerpc-403gc.c: Likewise.
4757 * features/rs6000/powerpc-405.c: Likewise.
4758 * features/rs6000/powerpc-505.c: Likewise.
4759 * features/rs6000/powerpc-601.c: Likewise.
4760 * features/rs6000/powerpc-602.c: Likewise.
4761 * features/rs6000/powerpc-603.c: Likewise.
4762 * features/rs6000/powerpc-604.c: Likewise.
4763 * features/rs6000/powerpc-64.c: Likewise.
4764 * features/rs6000/powerpc-64l.c: Likewise.
4765 * features/rs6000/powerpc-750.c: Likewise.
4766 * features/rs6000/powerpc-860.c: Likewise.
4767 * features/rs6000/powerpc-e500.c: Likewise.
4768 * features/rs6000/powerpc-e500l.c: Likewise.
4769 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4770 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4771 * features/rs6000/rs6000.c: Likewise.
4772
d71871bc
SDJ
47732012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4774
4775 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4776 variable.
4777 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4778 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4779 (stap_parse_argument) <e>: Likewise.
4780 (handle_stap_probe) <byte_order>: Likewise.
4781
fd820528
DE
47822012-04-30 Doug Evans <dje@google.com>
4783
4784 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4785 init_and_read_dies_worker. All callers updated.
4786 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4787 replaced with init_cutu_and_read_dies.
4788 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4789 (find_partial_die): Remove FIXME. Don't free current CU.
4790
ec3f619d 47912012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
4792
4793 * contrib: New directory.
4794 * contrib/test_pubnames_and_indexes.py: New file.
4795
fceca515
DE
47962012-04-30 Doug Evans <dje@google.com>
4797
4798 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4799 All callers updated.
4800 (init_cu_die_reader): Verify the section is non-empty.
4801 (dwarf_decode_line_header): Don't dereference section->asection
4802 until we know the section is present.
4803
311fe7e1
SDJ
48042012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4805
4806 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4807 probes.
4808
5977971a
YQ
48092012-04-29 Yao Qi <yao@codesourcery.com>
4810
4811 * gdb-code-style.el: New hook gdb-markup-hook
4812 and gdb-comment-hook.
4813
dee91e82
DE
48142012-04-28 Doug Evans <dje@google.com>
4815
3019eac3
DE
4816 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4817 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4818 objfile->obfd.
4819 * symfile.h (dwarf2_debug_sections): New member addr.
4820 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4821 (ctx_no_get_addr_index): New function.
4822 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4823 (ctx_no_get_addr_index): Declare.
4824 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4825 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4826 (dwarf_expr_ctx_funcs): Update.
4827 (needs_get_addr_index): New function.
4828 (needs_frame_ctx_funcs): Update.
4829 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4830 * dwarf2read.c: #include "gdbcore.h".
4831 (dwarf2_per_objfile): New members addr, dwo_files.
4832 (dwarf2_elf_names): Add entry for addr.
4833 (struct dwo_section_names): New type.
4834 (dwo_section_names): New static global.
4835 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4836 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4837 old debug_types_section member updated to use this.
4838 Rename member debug_types_section to info_or_types_section,
4839 all uses updated.
4840 (signatured_type): Rename member type_offset to type_offset_in_tu,
4841 all uses updated. New member type_offset_in_section.
4842 (struct dwo_sections): New type.
4843 (struct dwo_unit): New type.
4844 (struct dwo_file): New type.
4845 (die_reader_specs): New member dwo_file.
4846 (dwarf2_locate_sections): Watch for .debug_addr.
4847 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4848 (dwarf2_read_section): Get bfd of section from bfd's asection,
4849 instead of objfile.
4850 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4851 (create_signatured_type_table_from_index): Initialize
4852 sig_type->info_or_types_section.
4853 (dw2_get_file_names): Statement lists for type units with DWO files
4854 live in the DWO file.
4855 (create_debug_types_hash_table): New function.
4856 (create_all_type_units): Rewrite.
4857 (init_cu_die_reader): New arg dwo_file, all callers updated.
4858 (init_and_read_dies_worker): Get section from
4859 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4860 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4861 continue reading the CU/TU from there.
4862 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4863 updated. Get section from this_cu->info_or_types_section.
4864 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4865 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4866 DW_FORM_GNU_str_index.
4867 (hash_dwo_file, eq_dwo_file): New functions.
4868 (allocate_dwo_file_hash_table): New function.
4869 (hash_dwo_unit, eq_dwo_unit): New functions.
4870 (allocate_dwo_unit_table): New function.
4871 (dwarf2_locate_dwo_sections): New function.
4872 (struct create_dwo_info_table_data): New type.
4873 (create_debug_info_hash_table_reader): New function.
4874 (create_debug_info_hash_table): New function.
4875 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4876 (lookup_dwo_file): New function.
4877 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4878 (free_dwo_file, free_dwo_file_cleanup): New functions.
4879 (free_dwo_file_from_slot, free_dwo_files): New functions.
4880 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4881 (dwarf2_record_block_ranges): Ditto.
4882 (read_partial_die): Ditto.
4883 (process_enumeration_scope): Update to use type_offset_in_section.
4884 (read_full_die_1): New function.
4885 (read_full_die): Rewrite.
4886 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4887 DW_FORM_GNU_str_index.
4888 (read_addr_index_1, read_addr_index): New functions.
4889 (read_addr_index_from_leb128): New function.
4890 (struct dwarf2_read_addr_index_data): New type.
4891 (dwarf2_read_addr_index_reader): New function.
4892 (dwarf2_read_addr_index): New function.
4893 (read_str_index): New function.
4894 (leb128_size): New function.
4895 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4896 If processing a type unit from a DWO file, get the line section
4897 from the DWO file.
4898 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4899 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4900 DW_FORM_GNU_str_index.
4901 (lookup_die_type): Check whether section offset of type's die is
4902 known before looking it up. Remove assert. Condition can
4903 legimately happen for inter-cu type references.
4904 (dwarf_attr_name): Handle Fission attributes.
4905 (dwarf_form_name): Handle Fission forms.
4906 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4907 DW_FORM_GNU_str_index.
4908 (follow_die_sig): Update to use type_offset_in_section.
4909 (decode_locdesc): New case DW_OP_GNU_addr_index.
4910 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4911 DW_FORM_GNU_str_index.
4912 (cu_debug_loc_section): New function.
4913 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4914 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4915 Free DWO files if present.
4916 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4917
dee91e82
DE
4918 Refactor DIE reading.
4919 * dwarf2read.c (dwarf2_per_objfile): Replace members
4920 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4921 (die_reader_specs): New member "die_section". Temporarily make
4922 member "buffer" non-const, pending constifying all info_ptr uses.
4923 (die_reader_func_ftype): New typedef.
4924 (dw2_get_file_names_reader): New function.
4925 (dw2_get_file_names): Rewrite.
4926 (read_and_check_type_unit_head): Rename arg type_offset to
4927 type_offset_in_tu.
4928 (create_all_type_units): Improve debugging message.
4929 Improve dummy type unit check.
4930 (init_cu_die_reader): New arg "section". All callers updated.
4931 (init_and_read_dies_worker): New function.
4932 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4933 (init_cutu_and_read_dies_no_follow): New function.
4934 (init_cutu_and_read_dies_simple): New function.
4935 (process_psymtab_comp_unit_reader): New function.
4936 (process_psymtab_comp_unit): Delete args section,
4937 is_debug_types_section. Rewrite. All callers updated.
4938 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4939 All callers updated. Rewrite.
4940 (load_partial_comp_unit_reader): New function.
4941 (load_partial_comp_unit): Rewrite.
4942 (skip_children): New arg reader. Delete args buffer, cu.
4943 All callers updated.
4944 (skip_one_die): New arg reader. Delete args buffer, cu.
4945 All callers updated.
4946 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4947 All callers updated.
4948 (load_full_comp_unit_reader): New function.
4949 (load_full_comp_unit): Rewrite.
4950 (read_comp_unit): Delete.
4951 (read_die_and_children_1): Delete, contents moved ...
4952 (read_die_and_children): ... here.
4953 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4954 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4955 All callers updated.
4956 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4957 All callers updated.
4958 (find_partial_die): Rewrite load_all_dies support.
4959 (read_attribute_value): New arg reader. Delete args abfd, cu.
4960 All callers updated.
4961 (read_attribute): New arg reader. Delete args abfd, cu.
4962 All callers updated.
4963 (load_full_type_unit): Add assert.
4964 (read_signatured_type_reader): New function.
4965 (read_signatured_type): Rewrite.
4966 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4967 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4968 All callers updated. Set per_cu->cu = NULL after freeing it.
4969 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4970 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4971 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4972 (set_die_type): Update.
4973 (get_die_type_at_offset): Update.
4974 (read_file_scope): Call prepare_one_comp_unit.
4975 (read_type_unit_scope): Ditto.
4976 (prepare_one_comp_unit): Set producer if present.
4977
72d59e0d
SDJ
49782012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4979
4980 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4981 gettext function on `error'.
4982
0fefef59
DE
49832012-04-27 Doug Evans <dje@google.com>
4984
4985 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4986 is empty.
4987
28106bc2
SDJ
49882012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4989 Tom Tromey <tromey@redhat.com>
4990
4991 * breakpoint.c (struct breakpoint_objfile_data)
4992 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4993 <exception_probes>: New fields.
4994 (free_breakpoint_probes): New function.
4995 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
4996 `_Unwind_DebugHook'.
4997 (create_exception_master_breakpoint): Likewise.
4998 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4999 * infrun.c: Including necessary header files for handling SystemTap
5000 probes.
5001 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5002 via SystemTap probes.
5003 (check_exception_resume): Remove `func' argument. Handle exception
5004 unwinding breakpoint set via a SystemTap probe.
5005 (insert_exception_resume_from_probe): New function.
5006
55aa24fb
SDJ
50072012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5008 Tom Tromey <tromey@redhat.com>
5009 Jan Kratochvil <jan.kratochvil@redhat.com>
5010
5011 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5012 (COMMON_OBS): Likewise.
5013 (HFILES_NO_SRCDIR): Add `probe'.
5014 * NEWS: Mention support for static and SystemTap probes.
5015 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5016 SystemTap probes' arguments parser.
5017 * arm-linux-tdep.c: Including headers needed to perform the parsing
5018 of SystemTap probes' arguments.
5019 (arm_stap_is_single_operand): New function.
5020 (arm_stap_parse_special_token): Likewise.
5021 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5022 probes' arguments parser.
5023 * ax-gdb.c (require_rvalue): Removing static declaration.
5024 (gen_expr): Likewise.
5025 * ax-gdb.h (gen_expr): Declaring function.
5026 (require_rvalue): Likewise.
5027 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5028 (bkpt_probe_breakpoint_ops): New variable.
5029 (momentary_breakpoint_from_master): Set the `probe' value.
5030 (add_location_to_breakpoint): Likewise.
5031 (break_command_1): Using proper breakpoint_ops according to the
5032 argument passed by the user in the command line.
5033 (bkpt_probe_insert_location): New function.
5034 (bkpt_probe_remove_location): Likewise.
5035 (bkpt_probe_create_sals_from_address): Likewise.
5036 (bkpt_probe_decode_linespec): Likewise.
5037 (tracepoint_probe_create_sals_from_address): Likewise.
5038 (tracepoint_probe_decode_linespec): Likewise.
5039 (tracepoint_probe_breakpoint_ops): New variable.
5040 (trace_command): Using proper breakpoint_ops according to the
5041 argument passed by the user in the command line.
5042 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5043 static probes on breakpoints and tracepoints.
5044 * breakpoint.h (struct bp_location) <probe>: New field.
5045 * cli-utils.c (skip_spaces_const): New function.
5046 (extract_arg): Likewise.
5047 * cli-utils.h (skip_spaces_const): Likewise.
5048 (extract_arg): Likewise.
5049 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5050 * configure.ac: Append `stap-probe.o' to be generated when ELF
5051 support is present.
5052 * configure: Regenerate.
5053 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5054 * elfread.c: Include `probe.h' and `arch-utils.h'.
5055 (probe_key): New variable.
5056 (elf_get_probes): New function.
5057 (elf_get_probe_argument_count): Likewise.
5058 (elf_evaluate_probe_argument): Likewise.
5059 (elf_compile_to_ax): Likewise.
5060 (elf_symfile_relocate_probe): Likewise.
5061 (stap_probe_key_free): Likewise.
5062 (elf_probe_fns): New variable.
5063 (elf_sym_fns): Add `sym_probe_fns' value.
5064 (elf_sym_fns_lazy_psyms): Likewise.
5065 (elf_sym_fns_gdb_index): Likewise.
5066 (_initialize_elfread): Initialize objfile cache for static
5067 probes.
5068 * gdb_vecs.h (struct probe): New forward declaration.
5069 (probe_p): New VEC declaration.
5070 * gdbarch.c: Regenerate.
5071 * gdbarch.h: Regenerate.
5072 * gdbarch.sh (stap_integer_prefix): New variable.
5073 (stap_integer_suffix): Likewise.
5074 (stap_register_prefix): Likewise.
5075 (stap_register_suffix): Likewise.
5076 (stap_register_indirection_prefix): Likewise.
5077 (stap_register_indirection_suffix): Likewise.
5078 (stap_gdb_register_prefix): Likewise.
5079 (stap_gdb_register_suffix): Likewise.
5080 (stap_is_single_operand): New function.
5081 (stap_parse_special_token): Likewise.
5082 (struct stap_parse_info): Forward declaration.
5083 * i386-tdep.c: Including headers needed to perform the parsing
5084 of SystemTap probes' arguments.
5085 (i386_stap_is_single_operand): New function.
5086 (i386_stap_parse_special_token): Likewise.
5087 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5088 probes' arguments parser.
5089 * i386-tdep.h (i386_stap_is_single_operand): New function.
5090 (i386_stap_parse_special_token): Likewise.
5091 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5092 * mipsread.c (ecoff_sym_fns): Likewise.
5093 * objfiles.c (objfile_relocate1): Support relocation for static
5094 probes.
5095 * parse.c (prefixify_expression): Remove static declaration.
5096 (initialize_expout): Likewise.
5097 (reallocate_expout): Likewise.
5098 * parser-defs.h (initialize_expout): Declare function.
5099 (reallocate_expout): Likewise.
5100 (prefixify_expression): Likewise.
5101 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5102 of SystemTap probes' arguments.
5103 (ppc_stap_is_single_operand): New function.
5104 (ppc_stap_parse_special_token): Likewise.
5105 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5106 probes' arguments parser.
5107 * probe.c: New file, for generic statically defined probe support.
5108 * probe.h: Likewise.
5109 * s390-tdep.c: Including headers needed to perform the parsing of
5110 SystemTap probes' arguments.
5111 (s390_stap_is_single_operand): New function.
5112 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5113 probes' arguments parser.
5114 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5115 * stap-probe.c: New file, for SystemTap probe support.
5116 * stap-probe.h: Likewise.
5117 * symfile.h: Include `gdb_vecs.h'.
5118 (struct sym_probe_fns): New struct.
5119 (struct sym_fns) <sym_probe_fns>: New field.
5120 * symtab.c (init_sal): Initialize `probe' field.
5121 * symtab.h (struct probe): Forward declaration.
5122 (struct symtab_and_line) <probe>: New field.
5123 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5124 locations.
5125 (stop_tracing): Likewise.
5126 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5127
22d2b532
SDJ
51282012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5129 Tom Tromey <tromey@redhat.com>
5130
5131 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5132 and to compile agent expressions.
5133 * infrun.c (siginfo_make_value): New argument `ignore'.
5134 (siginfo_funcs): New struct.
5135 (_initialize_infrun): New argument when calling
5136 `create_internalvar_type_lazy'.
5137 * thread.c (thread_id_make_value): New argument `ignore'.
5138 (thread_funcs): New struct.
5139 (_initialize_thread): New argument when calling
5140 `create_internalvar_type_lazy'.
5141 * tracepoint.c (sdata_make_value): New argument `ignore'.
5142 (sdata_funcs): New struct.
5143 (_initialize_tracepoint): New argument when calling
5144 `create_internalvar_type_lazy'.
5145 * value.c (make_value): New struct.
5146 (create_internalvar_type_lazy): New argument `data'.
5147 (compile_internalvar_to_ax): New function.
5148 (value_of_internalvar): Properly handling `make_value' case.
5149 (clear_internalvar): Likewise.
5150 (show_convenience): Adding `TRY_CATCH' block.
5151 * value.h (internalvar_make_value): Delete, replace by...
5152 (struct internalvar_funcs): ... this.
5153 (create_internalvar_type_lazy) <fun>: Delete argument.
5154 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5155 (compile_internalvar_to_ax): New function.
5156 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5157 (tlb_funcs): New struct.
5158 (_initialize_windows_tdep): New argument when calling
5159 `create_internalvar_type_lazy'.
5160
91da1414
MW
51612012-04-27 Mark Wielaard <mjw@redhat.com>
5162
5163 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5164 see whether it is an address or a constant offset from DW_AT_low_pc.
5165 (dwarf2_record_block_ranges): Likewise.
5166 (read_partial_die): Likewise.
5167
4ab9d8ec
MW
51682012-04-26 Mark Wielaard <mjw@redhat.com>
5169
5170 * MAINTAINERS (Write After Approval): Add myself to the list.
5171
a0911fd0
MR
51722012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5173
5174 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5175 (proc_prettyprint_signal): Likewise.
5176 (proc_prettyprint_faultset): Likewise.
5177 (proc_prettyprint_fault): Likewise.
5178 (proc_prettyprint_actionset): Likewise.
5179 (proc_prettyprint_flags): Move to new proc-flags.c section.
5180 (proc_prettyfprint_flags): New prototype.
5181 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5182 (proc_syscall, proc_cursig): Likewise.
5183 (proc_set_kill_on_last_close): Likewise.
5184 (proc_unset_kill_on_last_close): Likewise.
5185 (proc_set_watchpoint): Make static.
5186 (proc_delete_dead_threads): Likewise.
5187 (procfs_set_watchpoint): Likewise.
5188 (_initialize_procfs): Add prototype.
5189 * proc-events.c: Include proc-utils.h.
5190 (init_syscall_table): Make static.
5191 * proc-api.c (_initialize_proc_api): Add prototype.
5192 * proc-flags.c: Include proc-utils.h.
5193
9009e1ae
MR
51942012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5195
5196 * configure.ac: Add AC_ARG_PROGRAM.
5197 * configure: Regenerate.
5198
4fae6e18
JK
51992012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5200
5201 Fix DW_AT_lower_bound defaults for DWARF-4+.
5202 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5203 high. New variable low_default_is_valid. Implement DWARF-4+
5204 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5205 no default by the DWARF standard.
5206
14132e89 52072012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5208 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5209
5210 * infrun.c (handle_inferior_event): Move the check for return
5211 trampolines ahead of the check for function trampolines.
5212 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5213 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5214 (mips_str_mips16_ret_stub): Likewise.
5215 (mips_str_call_fp_stub): Likewise.
5216 (mips_str_call_stub): Likewise.
5217 (mips_str_fn_stub): Likewise.
5218 (mips_str_pic): Likewise.
5219 (mips_in_frame_stub): New function.
5220 (mips_unwind_pc): Return the return address rather than the PC
5221 if the PC of an intermediate frame is inside a call thunk.
5222 (mips_is_stub_suffix): New function.
5223 (mips_is_stub_mode): Likewise.
5224 (mips_get_mips16_fn_stub_pc): Likewise.
5225 (mips_skip_mips16_trampoline_code): Update to handle all the
5226 currently generated stub types. Don't recurse into __fn_stub
5227 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5228 Use cooked register accesses.
5229 (mips_in_return_stub): Reintroduce function.
5230 (mips_skip_trampoline_code): Traverse trampolines recursively.
5231 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5232
518f0db5 52332012-04-26 Joel Brobecker <brobecker@adacore.com>
5234
5235 GDB 7.4.1 released.
5236
3184d3f9
JL
52372012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5238
5239 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5240 * features/arm-with-m-vfp-d16.xml: New file. Describes
5241 Cortex-M with VFPv4-sp-d16 FPU register layout.
5242 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5243 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5244 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5245 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5246 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5247
b6201d44
DE
52482012-04-25 Doug Evans <dje@google.com>
5249
5250 * cli/cli-decode.c (print_doc_line): Use stream instead of
5251 current_uiout.
5252
4e2f8df6
SDJ
52532012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5254
5255 * features/arm-with-iwmmxt.c: Regenerate.
5256 * features/arm-with-m-fpa-layout.c: Likewise.
5257 * features/arm-with-m.c: Likewise.
5258 * features/arm-with-neon.c: Likewise.
5259 * features/arm-with-vfpv2.c: Likewise.
5260 * features/arm-with-vfpv3.c: Likewise.
5261 * features/mips-dsp-linux.c: Likewise.
5262 * features/mips-linux.c: Likewise.
5263 * features/mips64-dsp-linux.c: Likewise.
5264 * features/mips64-linux.c: Likewise.
5265 * features/s390-linux32.c: Likewise.
5266 * features/s390-linux32v1.c: Likewise.
5267 * features/s390-linux32v2.c: Likewise.
5268 * features/s390-linux64.c: Likewise.
5269 * features/s390-linux64v1.c: Likewise.
5270 * features/s390-linux64v2.c: Likewise.
5271 * features/s390x-linux64.c: Likewise.
5272 * features/s390x-linux64v1.c: Likewise.
5273 * features/s390x-linux64v2.c: Likewise.
5274 * features/tic6x-c62x-linux.c: Likewise.
5275 * features/tic6x-c62x.c: Likewise.
5276 * features/tic6x-c64x-linux.c: Likewise.
5277 * features/tic6x-c64x.c: Likewise.
5278 * features/tic6x-c64xp-linux.c: Likewise.
5279 * features/tic6x-c64xp.c: Likewise.
5280 * target-descriptions.c: Only generate `field_type' and `type'
5281 variables when needed.
5282
2def3e66
JB
52832012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5284
5285 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5286
a766d390
DE
52872012-04-25 Doug Evans <dje@google.com>
5288
5289 Initial pass at Go language support.
5290 * NEWS: Mention Go.
5291 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5292 go-valprint.c.
5293 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5294 (YYFILES): Add go-exp.c.
5295 (YYOBJ): Add go-exp.o.
5296 (local-maintainer-clean): Delete go-exp.c.
5297 * defs.h (enum language): Add language_go.
5298 * dwarf2read.c: #include "go-lang.h".
5299 (fixup_go_packaging): New function.
5300 (process_full_comp_unit): Call it when processing Go CUs.
5301 (dwarf2_physname): Add Go support.
5302 (read_file_scope): Handle missing language spec for GNU Go.
5303 (set_cu_language): Handle DW_LANG_Go.
5304 * go-exp.y: New file.
5305 * go-lang.h: New file.
5306 * go-lang.c: New file.
5307 * go-typeprint.c: New file.
5308 * go-valprint.c: New file.
5309 * symtab.c: #include "go-lang.h".
5310 (symbol_set_language): Handle language_go.
5311 (symbol_find_demangled_name, symbol_set_names): Ditto.
5312 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5313
4e2af517
JM
53142012-04-24 Jim Meyering <meyering@redhat.com>
5315
5316 avoid a few strncpy-induced buffer overruns
5317 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5318 fname and psargs before trying to concatenate.
5319 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5320 "name" before applying strchr.
5321
b77b7f52
SCR
53222012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5323
5324 * CONTRIBUTE: Use unified diff instead of context diff when
5325 generating patches.
5326
6321c22a
MR
53272012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5328
5329 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5330 code. Handle JR.HB correctly.
5331
742c84f6
MR
53322012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5333
5334 * mips-tdep.c
5335 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5336 with the other MIPS16 helpers.
5337
7fc7e0c3
SDJ
53382012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5339
5340 * observer.sh: Conditionally declare `args', thus cleaning up
5341 unused instances of this variable.
5342
20388dd6
YQ
53432012-04-24 Yao Qi <yao@codesourcery.com>
5344
5345 Revert this patch to allow breakpoint always-inserted
5346 in record target.
5347 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5348 * breakpoint.c: Include record.h.
5349 (breakpoints_always_inserted_mode): Return false when the record
5350 target is in use.
20388dd6
YQ
5351
5352 * breakpoint.c (iterate_over_bp_locations): New.
5353 * breakpoint.h: Declare.
5354 New typedef walk_bp_location_callback.
5355 * record.c (record_open): Call record_init_record_breakpoints.
5356 (record_sync_record_breakpoints): New.
5357 (record_init_record_breakpoints): New.
5358 * NEWS: Mention supporting breakpoint always-inserted mode in
5359 record target.
5360
4734f50e
MK
53612012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5362
5363 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5364 any thread.
5365
c326b90e
YQ
53662012-04-24 Yao Qi <yao@codesourcery.com>
5367
5368 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5369 (is_catchpoint): ... it.
5370 (print_one_breakpoint_location): Caller update.
5371 * breakpoint.h: Update declaration.
5372
d8fb5a1e
DM
53732012-04-23 David S. Miller <davem@davemloft.net>
5374
5375 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5376
34431a2a
TT
53772012-04-23 Tom Tromey <tromey@redhat.com>
5378
5379 * buildsym.c (add_free_pendings): Remove.
5380 * buildsym.h (add_free_pendings): Remove.
5381
4568ecf9
DE
53822012-04-23 Doug Evans <dje@google.com>
5383
5384 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5385 attr.u.unsnd instead of attr.u.addr.
5386 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5387 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5388 DW_FORM_ref_udata.
5389 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5390 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5391 DW_FORM_ref_udata.
5392 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5393
dca9aa3a
MR
53942012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5395
5396 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5397 (mips_o32_return_value): Likewise.
5398 (mips_o64_return_value): Likewise.
5399
c8ea1972
PH
54002012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5401
5402 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
5403 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5404 their treatment in eval.c.
c8ea1972 5405
8d1b3521
DM
54062012-04-21 David S. Miller <davem@davemloft.net>
5407
5408 * sparc-tdep.c (X_DISP10): Define.
5409 (sparc_analyze_control_transfer): Handle compare-and-branch.
5410
03145bf4
JL
54112012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5412
5413 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5414 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5415
004159a2 54162012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 5417 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
5418
5419 * mips-tdep.c (mips_float_register_p): New function.
5420 (mips_convert_register_float_case_p): Use mips_float_register_p.
5421 (mips_register_type): Likewise.
5422 (mips_print_register): Likewise.
5423 (print_gp_register_row): Likewise.
5424 (mips_print_registers_info): Likewise.
5425
7f0e6aae
MR
54262012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5427
5428 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5429 of mips16 symbols.
5430
bc17beea
AP
54312012-04-20 Andrew Pinski <apinski@cavium.com>
5432
5433 * MAINTAINERS (Write After Approval): Add myself to the list.
5434
1730a5a5
SDJ
54352012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5436
5437 * MAINTAINERS: Update my e-mail address.
5438
38ea300a
PA
54392012-04-20 Pedro Alves <palves@redhat.com>
5440
5441 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5442 $srcdir.
5443 * configure: Regenerate.
5444
111dfaae
SDJ
54452012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5446
5447 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5448 declaration.
5449 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5450
4fb2c64a
JK
54512012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 Fix compilation compatibility with python-2.4
5454 * python/py-type.c (convert_field): Cast ADDRSTRING for
5455 PyObject_SetAttrString as non-const. New comment.
5456
6328eb38
TT
54572012-04-19 Tom Tromey <tromey@redhat.com>
5458
5459 * top.c (quit_target): Use all_cleanups.
5460 * main.c (captured_command_loop): Use all_cleanups.
5461 * exceptions.c (throw_exception): Use all_cleanups.
5462
c971b7fa
PA
54632012-04-19 Pedro Alves <palves@redhat.com>
5464
5465 * Makefile.in (GNULIB_BUILDDIR): New.
5466 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5467 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5468 (CLEANDIRS). Remove gnulib/import.
5469 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5470 (all-lib): Ditto.
5471 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5472 (gnulib/import/Makefile): Replace gnulib/import with
5473 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5474 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5475 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5476 acx_configure_dir.m4.
5477 * acinclude.m4: Include acx_configure_dir.m4.
5478 * acx_configure_dir.m4: New file.
5479 * aclocal.m4: Regenerate.
a09130f9
PA
5480 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5481 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5482 (GNULIB): New variable.
5483 (GNULIB_STDINT_H): Adjust.
5484 (AC_OUTPUT): Don't output gnulib/Makefile.
5485 * gdb/defs.h: Include build-gnulib/config.h.
5486 * aclocal.m4: Regenerate.
5487 * config.in: Regenerate.
5488 * configure: Regenerate.
5489
5490 * gnulib/Makefile.in: New file.
5491 * gnulib/configure.ac: New file.
5492 * gnulib/aclocal.m4: New file.
5493 * gnulib/config.in: New file.
5494 * gnulib/configure: New file.
c971b7fa
PA
5495 * gnulib/: Re-run gnulib-tool to adjust.
5496
b10faa68
DE
54972012-04-19 Doug Evans <dje@google.com>
5498
5499 * cleanups.h (struct cleanup): Move to cleanups.c.
5500 (make_cleanup_dtor_ftype): New typedef.
5501 (make_cleanup_dtor): Use it.
5502 (ALL_CLEANUPS): Replace with ...
5503 (all_cleanups): ... this. Declare. All uses updated.
5504 * cleanups.c: #include "gdb_assert.h".
5505 (sentinel_cleanup): New static global.
5506 (SENTINEL_CLEANUP): Define.
5507 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5508 (make_my_cleanup2): Assert result is non-NULL.
5509 (all_cleanups): New function.
5510 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5511 of NULL.
5512
d8c267cc
PA
55132012-04-19 Pedro Alves <palves@redhat.com>
5514
5515 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5516 Adjust paths to gnulib imported files.
5517
809277f8
PA
55182012-04-19 Pedro Alves <palves@redhat.com>
5519
5520 * gnulib/: Move whole directory ...
5521 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5522 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5523 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5524 (aclocal_m4_deps): Adjust.
5525 * aclocal.m4: Regenerate.
5526 * configure: Regenerate.
5527 * configure.ac: Adjust AC_OUTPUT output.
5528
aad9eab9
YQ
55292012-04-19 Yao Qi <yao@codesourcery.com>
5530
5531 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5532 (vec.o): New rule.
5533 * vec.c: Move it ...
5534 * common/vec.c: ... here.
5535 * vec.h: Move it ...
5536 * common/vec.h: ... here.
5537
48fe4669
YQ
55382012-04-19 Yao Qi <yao@codesourcery.com>
5539
5540 * gdb-code-style.el: New.
5541
770d76d7
PA
55422012-04-18 Pedro Alves <palves@redhat.com>
5543
5544 Update gnulib from latest git.
5545 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5546
5547 * gnulib/Makefile.am: Update.
5548 * gnulib/dummy.c: Update.
5549 * gnulib/extra/arg-nonnull.h: Update.
5550 * gnulib/extra/c++defs.h: Update.
5551 * gnulib/extra/update-copyright: Update.
5552 * gnulib/extra/warn-on-use.h: Update.
5553 * gnulib/inttypes.in.h: Update.
5554 * gnulib/m4/00gnulib.m4: Update.
5555 * gnulib/m4/extensions.m4: Update.
5556 * gnulib/m4/gnulib-cache.m4: Update.
5557 * gnulib/m4/gnulib-common.m4: Update.
5558 * gnulib/m4/gnulib-comp.m4: Update.
5559 * gnulib/m4/gnulib-tool.m4: Update.
5560 * gnulib/m4/include_next.m4: Update.
5561 * gnulib/m4/inttypes-pri.m4: Update.
5562 * gnulib/m4/inttypes.m4: Update.
5563 * gnulib/m4/longlong.m4: Update.
5564 * gnulib/m4/memchr.m4: Update.
5565 * gnulib/m4/memmem.m4: Update.
5566 * gnulib/m4/mmap-anon.m4: Update.
5567 * gnulib/m4/multiarch.m4: Update.
5568 * gnulib/m4/onceonly.m4: Update.
5569 * gnulib/m4/stddef_h.m4: Update.
5570 * gnulib/m4/stdint.m4: Update.
5571 * gnulib/m4/string_h.m4: Update.
5572 * gnulib/m4/warn-on-use.m4: Update.
5573 * gnulib/m4/wchar_h.m4: Update.
5574 * gnulib/m4/wchar_t.m4: Update.
5575 * gnulib/m4/wint_t.m4: Update.
5576 * gnulib/memchr.c: Update.
5577 * gnulib/memmem.c: Update.
5578 * gnulib/stddef.in.h: Update.
5579 * gnulib/stdint.in.h: Update.
5580 * gnulib/str-two-way.h: Update.
5581 * gnulib/string.in.h: Update.
5582 * gnulib/wchar.in.h: Update.
5583
5584 * gnulib/extra/arg-nonnull.h: Delete.
5585 * gnulib/extra/c++defs.h: Delete.
5586 * gnulib/extra/warn-on-use.h: Delete.
5587 * gnulib/m4/wchar_h.m4: Delete.
5588 * gnulib/m4/wint_t.m4: Delete.
5589 * gnulib/wchar.in.h: Delete.
5590
5591 * gnulib/extra/snippets/arg-nonnull.h: New.
5592 * gnulib/extra/snippets/c++defs.h: New.
5593 * gnulib/extra/snippets/warn-on-use.h: New.
5594
5595 * aclocal.m4: Regenerate.
5596 * config.in: Regenerate.
5597 * configure: Regenerate.
5598 * gnulib/Makefile.in: Regenerate.
5599
174e088e
PA
56002012-04-18 Pedro Alves <palves@redhat.com>
5601
5602 Reimport the update-copyright module from gnulib
5603 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5604
5605 * configure: Regenerate.
5606 * gnulib/Makefile.am: Update.
5607 * gnulib/Makefile.in: Regenerate.
5608 * gnulib/extra/update-copyright: Update.
5609 * gnulib/m4/gnulib-cache.m4: Update.
5610 * gnulib/m4/gnulib-comp.m4: Update.
5611
7f533142
JB
56122012-04-18 Tristan Gingold <gingold@adacore.com>
5613
5614 * configure.ac (aix): Put -lpthread into libs.
5615 * configure: Regenerate.
5616
001822aa
TT
56172012-04-18 Tom Tromey <tromey@redhat.com>
5618
5619 * linespec.c (convert_linespec_to_sals): Don't use
5620 SYMBOL_OBJ_SECTION.
5621 (compare_msymbols): Arguments are minsym_and_objfile, not
5622 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5623
db026a31
PA
56242012-04-18 Pedro Alves <palves@redhat.com>
5625
5626 Revert gnulib/ part of:
5627 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5628 Copyright year update in most files (performed by copyright.sh).
5629
12df843f
JK
56302012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5631
5632 Fix 64-bit constants on 32-bit hosts.
5633 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5634 from unsigned long to ULONGEST.
5635 (read_signed_leb128): Change declaration return type from long to
5636 LONGEST.
5637 (dwarf2_const_value_attr): Change declaration parameter value from long
5638 to LONGEST.
5639 (dwarf2_compute_name): Change variable value from long to LONGEST.
5640 (read_unsigned_leb128): Change return type, variable result and some
5641 casts from unsigned long to ULONGEST.
5642 (read_signed_leb128): Change return type, variable result and some
5643 casts from long to LONGEST.
5644 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5645 value from long to LONGEST.
5646 (dwarf2_const_value): Change variable value from long to LONGEST.
5647 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5648 plongest and hex_string.
5649 * symtab.h (struct general_symbol_info): Change ivalue from long to
5650 LONGEST, remove the comment.
5651 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5652 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5653
14e75d8e
JK
56542012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5655
5656 PR symtab/7259:
5657 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5658 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
5659 (ada_discrete_type_low_bound): Fix function comment. Use
5660 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
5661 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5662 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5663 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5664 Use TYPE_FIELD_ENUMVAL.
5665 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5666 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5667 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5668 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5669 TYPE_CODE_ENUM.
5670 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5671 * dwarf2read.c (process_enumeration_scope): Likewise.
5672 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5673 field.bitpos.
5674 (class StructMainTypePrettyPrinter): Support also
5675 FIELD_LOC_KIND_ENUMVAL.
5676 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5677 TYPE_CODE_ENUM.
5678 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5679 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5680 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5681 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5682 field enumval.
5683 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5684 accommodate enumval.
5685 (struct call_site): Adjust loc_kind to accommodate enumval.
5686 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5687 (TYPE_FIELD_ENUMVAL): New macros.
5688 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5689 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5690 TYPE_CODE_ENUM.
5691 * p-typeprint.c (pascal_type_print_base): Likewise.
5692 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5693 enumval.
5694 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5695 * python/py-type.c (convert_field): New variable addrstring. Use
5696 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5697 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5698 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5699 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5700 TYPE_CODE_ENUM.
5701 * valprint.c (generic_val_print): Likewise.
5702
380bca97
DE
57032012-04-17 Doug Evans <dje@google.com>
5704
dcc07052
DE
5705 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5706
380bca97
DE
5707 * dwarf2read.c: Whitespace fixes.
5708 (lookup_signatured_type): Tweak comment.
5709 (get_die_type_at_offset): Fix comment.
5710
ec92004f
JB
57112012-04-17 Joel Brobecker <brobecker@adacore.com>
5712
5713 * xcoffread.c (xcoff_secnum_to_sections): New function.
5714 (secnum_to_section, secnum_to_bfd_section): Reimplement
5715 using xcoff_secnum_to_sections. Rename "secnum" parameter
5716 into "n_scnum".
5717 (RECORD_MINIMAL_SYMBOL): Delete.
5718 (record_minimal_symbol): New function.
5719 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5720 by call to record_minimal_symbol and set misc_func_recorded
5721 to 1. Set last_csect_sec to the XCOFF section index instead
5722 of GDB's section_offset index. Update calls to
5723 prim_record_minimal_symbol_and_info to pass the BFD section
5724 as well.
5725
40301fb7
JB
57262012-04-17 Joel Brobecker <brobecker@adacore.com>
5727
5728 * xcoffread.c (read_xcoff_symtab): Delete variables
5729 last_csect_val and last_csect_sec and associated code.
5730
e0088cfd
DE
57312012-04-17 Doug Evans <dje@google.com>
5732
58d5e2c3
DE
5733 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5734 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5735 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5736 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5737
c27f5738
DE
5738 * cleanups.h: New file.
5739 * cleanups.c: New file.
5740 * Makefile.in (SFILES): Add cleanups.c.
5741 (HFILES_NO_SRCDIR): Add cleanups.h.
5742 (COMMON_OBS): Add cleanups.o.
5743 * defs.h (struct cleanup): Moved to cleanups.h.
5744 (do_cleanups,do_final_cleanups): Ditto.
5745 (discard_cleanups,discard_final_cleanups): Ditto
5746 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5747 (save_cleanups,save_final_cleanups): Ditto.
5748 (restore_cleanups,restore_final_cleanups): Ditto.
5749 (null_cleanup): Ditto.
5750 (make_my_cleanup,make_my_cleanup2): Ditto.
5751 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5752 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5753 (do_cleanups,do_final_cleanups): Ditto.
5754 (discard_cleanups,discard_final_cleanups): Ditto
5755 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5756 (save_cleanups,save_final_cleanups): Ditto.
5757 (restore_cleanups,restore_final_cleanups): Ditto.
5758 (null_cleanup): Ditto.
5759 (make_my_cleanup,make_my_cleanup2): Ditto.
5760 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5761
e0088cfd
DE
5762 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5763 make_my_cleanup.
5764 (make_cleanup_dyn_string_delete): Ditto.
5765 (make_cleanup_ui_file_delete): Ditto.
5766 (make_cleanup_ui_out_redirect_pop): Ditto.
5767 (make_cleanup_free_section_addr_info): Ditto.
5768 (make_cleanup_restore_integer): Ditto.
5769 (make_cleanup_unpush_target): Ditto.
5770 (make_cleanup_value_free_to_mark): Ditto.
5771 (make_cleanup_value_free): Ditto.
5772 (make_cleanup_free_so): Ditto.
5773
4dc84fd1
JK
57742012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5775
5776 New option "set debug auto-load".
5777 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5778 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5779 (auto_load_safe_path_vec_update)
5780 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5781 if DEBUG_AUTO_LOAD.
5782 (file_is_auto_load_safe): New parameters debug_fmt and ....
5783 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5784 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5785 caller by explanatory string.
5786 (_initialize_auto_load): Register "set debug auto-load".
5787 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5788 and ....
5789 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5790 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5791 by explanatory string.
5792 * main.c (captured_main): Likewise.
5793 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5794 (source_section_scripts): Likewise.
5795
bccbefd2
JK
57962012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5797
5798 New option "set auto-load safe-path".
5799 * NEWS: New commands "set auto-load safe-path"
5800 and "show auto-load safe-path".
5801 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5802 (auto_load_safe_path, auto_load_safe_path_vec)
5803 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5804 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5805 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5806 (source_gdb_script_for_objfile): New variable is_safe. Call
5807 file_is_auto_load_safe. Return if it is not.
5808 (struct loaded_script): New field loaded.
5809 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5810 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5811 output "Missing" to "No".
5812 (_initialize_auto_load): New variable cmd. Initialize
5813 auto_load_safe_path. Register "set auto-load safe-path",
5814 "show auto-load safe-path" and "add-auto-load-safe-path".
5815 * auto-load.h (maybe_add_script): Add parameter loaded.
5816 (file_is_auto_load_safe): New declaration.
5817 * config.in: Regenerate.
5818 * configure: Regenerate.
5819 * configure.ac: New parameters --with-auto-load-safe-path
5820 and --without-auto-load-safe-path.
5821 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5822 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5823 * main.c (captured_main): Check file_is_auto_load_safe for
5824 LOCAL_GDBINIT.
5825 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5826 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5827 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5828 not.
5829
bf88dd68
JK
58302012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 auto-load: Implementation.
5833 * NEWS: New descriptions for "info auto-load",
5834 "info auto-load gdb-scripts", "info auto-load python-scripts",
5835 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5836 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5837 and "show auto-load-scripts". New description for "set auto-load",
5838 "show auto-load", "set auto-load gdb-scripts",
5839 "show auto-load gdb-scripts", "set auto-load python-scripts",
5840 "show auto-load python-scripts", "set auto-load local-gdbinit",
5841 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5842 "show auto-load libthread-db".
5843 * auto-load.c: Remove include python/python-internal.h. Add includes
5844 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5845 cli/cli-setshow.h.
5846 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5847 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5848 (gdbpy_global_auto_load): Rename to ...
5849 (global_auto_load): ... here.
5850 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5851 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5852 (script_language_gdb, source_gdb_script_for_objfile): New.
5853 (struct loaded_script): New field language.
5854 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5855 LANGUAGE.
5856 (maybe_add_script): Add parameter language. Drop redundant
5857 entry.full_path initialization. Initialize entry.language and
5858 (*slot)->language.
5859 (auto_load_objfile_script): Change parameter suffix to language.
5860 Remove the call of maybe_add_script.
5861 Call language->source_script_for_objfile.
5862 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5863 New.
5864 (collect_matching_scripts): Adjust it for
5865 struct collect_matching_scripts_data.
5866 (auto_load_info_scripts_pattern_nl): New variable.
5867 (info_auto_load_scripts): Rename to ...
5868 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5869 for struct collect_matching_scripts_data.
5870 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5871 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5872 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5873 (auto_load_info_cmdlist_get): New.
5874 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5875 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5876 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5877 "info auto-load local-gdbinit".
5878 * auto-load.h (struct script_language): New.
5879 (gdbpy_global_auto_load): Rename to ...
5880 (global_auto_load): ... here.
5881 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5882 (auto_load_local_gdbinit_loaded): New declarations.
5883 (maybe_add_script): New parameter language.
5884 (auto_load_objfile_script): Change parameter suffix to language.
5885 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5886 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5887 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5888 declarations.
5889 * linux-thread-db.c: Include auto-load.h and ctype.h.
5890 (auto_load_thread_db, show_auto_load_thread_db): New.
5891 (struct thread_db_info): New field filename.
5892 (delete_thread_db_info): Call xfree for FILENAME.
5893 (try_thread_db_load): Initialize FILENAME.
5894 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5895 if !AUTO_LOAD_THREAD_DB.
5896 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5897 (_initialize_thread_db): Install auto_load_thread_db
5898 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5899 as "info auto-load libthread-db".
5900 * main.c (captured_main): Rename gdbpy_global_auto_load to
5901 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5902 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5903 (print_gdb_help): Extend the help for 'local init file'.
5904 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5905 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5906 (auto_load_scripts): Rename to ...
5907 (auto_load_python_scripts): ... here, update the comment.
5908 (gdbpy_load_auto_script_for_objfile): New declaration.
5909 (show_auto_load_python_scripts, script_language_python)
5910 (gdbpy_load_auto_script_for_objfile): New.
5911 (source_section_scripts): Refactor the code.
5912 (load_auto_scripts_for_objfile): Rename to ...
5913 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5914 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5915 (info_auto_load_python_scripts): New.
5916 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5917 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5918 Register "set auto-load-scripts" as its deprecated alias. Register
5919 "info auto-load python-scripts". Register "info auto-load-scripts" as
5920 its deprecated alias.
5921 (load_auto_scripts_for_objfile): Rename to ...
5922 (gdbpy_load_auto_scripts_for_objfile): ... here.
5923 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5924 (gdbpy_load_auto_scripts_for_objfile): ... here.
5925
e2207b9a
JK
59262012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5927
5928 auto-load: Move files.
5929 * Makefile.in (SFILES): Add auto-load.c.
5930 (HFILES_NO_SRCDIR): Add auto-load.h.
5931 (COMMON_OBS): Add auto-load.o.
5932 (distclean): Change .gdbinit for gdb-gdb.gdb.
5933 * auto-load.c: New file, with parts from python/py-auto-load.c.
5934 * auto-load.h: New file, with parts from python/python.h.
5935 * configure: Regenerate.
5936 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5937 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5938 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5939 * main.c: Include auto-load.h.
5940 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5941 command.h, observer.h and progspace.h to auto-load.c. Add include
5942 auto-load.h.
5943 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5944 (struct loaded_script, auto_load_pspace_data)
5945 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5946 (hash_loaded_script_entry, eq_loaded_script_entry)
5947 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5948 (maybe_add_script): Move to auto-load.c.
5949 (source_section_scripts): Change maybe_add_script parameters passing,
5950 use script_not_found_warning_print.
5951 (clear_section_scripts, auto_load_objfile_script)
5952 (auto_load_new_objfile, loaded_script_ptr)
5953 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5954 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5955 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5956 auto_load_new_objfile and info_auto_load_scripts initizations to
5957 auto-load.c.
5958 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5959
e4ab2fad
JK
59602012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5961
5962 Code cleanup.
5963 * charset.c (find_charset_names): Remove variables ix and elt.
5964 Use free_char_ptr_vec.
5965 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5966 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5967 debugdir_end. New variable debugdir_len.
5968 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5969 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5970 declarations.
5971 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5972 and elt. Use free_char_ptr_vec.
5973 * source.c (add_path): Remove variables argv, arg and argv_index.
5974 New variables dir_vec, back_to, ix and name.
5975 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5976 make_cleanup_freeargv. Remove variable separator. Simplify the code
5977 no longer expecting DIRNAME_SEPARATOR.
5978 (openp): Remove variable p, p1 and len. New variables dir_vec,
5979 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5980 no longer expecting DIRNAME_SEPARATOR.
5981 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5982 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5983 debugdir_end.
5984 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5985 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5986 (dirnames_to_char_ptr_vec): New functions.
5987
5ee4ed9f
JK
59882012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5989
5990 Code cleanup.
5991 * source.c (add_path): Remove always true conditional 'p == 0' and
5992 unindent its code block.
5993
f41f5e61
PA
59942012-04-17 Pedro Alves <palves@redhat.com>
5995
5996 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5997 (FIELD_BITPOS_LVAL): ... this.
5998 (FIELD_BITPOS): New.
5999 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6000 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6001 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6002 SET_FIELD_BITPOS.
6003 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6004 SET_FIELD_BITPOS.
6005 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6006 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6007 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6008 SET_FIELD_BITPOS.
6009
945b3a32
JK
60102012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6011
6012 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6013 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6014 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6015 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6016 * jv-lang.c (java_link_class_type): Likewise, once.
6017 * stabsread.c (read_enum_type): Likewise.
6018
42476b70
YQ
60192012-04-16 Yao Qi <yao@codesourcery.com>
6020
6021 * common/agent.c (agent_run_command): Add one more parameter `len'.
6022 Update callers.
6023 * common/agent.h: Update declaration.
6024 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6025 Update.
6026 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6027
8264ba82
AG
60282012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6029
6030 PR mi/13393
6031 * value.c (value_actual_type): New function.
6032 * value.h (value_actual_type): New declaration.
6033 * varobj.c (update_type_if_necessary): New function.
6034 (varobj_create): Call value_actual_type instead of
6035 value_type.
6036 (install_dynamic_child): distinct changed and type changed MI variable
6037 objects.
6038 (update_dynamic_varobj_children): Updated for install_dynamic_child
6039 change. All callers updated.
a09130f9 6040 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6041 the value changed and RTTI is used to determine the type.
6042 (create_child_with_value): Call value_actual_type instead of
6043 value_type.
a09130f9 6044 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6045 specify whether the given value should be casted to enclosing type.
6046 All callers updated.
6047
55a8c076
YQ
60482012-04-14 Yao Qi <yao@codesourcery.com>
6049
6050 Import gnulib module inttypes from git
6051 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6052 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6053 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6054 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6055 * aclocal.m4, config.in, configure: Regenerated.
6056 * gnulib/Makefile.am: Update.
6057 * gnulib/Makefile.in: Update.
6058 * gnulib/m4/gnulib-cache.m4: Update.
6059 * gnulib/m4/gnulib-comp.m4: Update.
6060 * gnulib/inttypes.in.h: New.
6061 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6062 * gnulib/m4/inttypes.m4: New.
55a8c076 6063
ca7781d2
LM
60642012-04-13 Luis Machado <lgustavo@codesourcery.com>
6065
6066 * infrun.c (resume): Update PC address to the real PC after
6067 preparing to do displaced stepping.
6068
e319fa28
DE
60692012-04-12 Doug Evans <dje@google.com>
6070
6071 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6072 All callers updated.
6073
15add3f5
MK
60742012-04-12 Mark Kettenis <kettenis@gnu.org>
6075
6076 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6077
52dc124a
DE
60782012-04-12 Doug Evans <dje@google.com>
6079
0e50663e
DE
6080 * dwarf2read.c (create_all_type_units): Renamed from
6081 create_debug_types_hash_table. All callers updated.
6082
52dc124a
DE
6083 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6084 local type_sig to sig_type, type_offset to type_offset_in_tu.
6085 (hash_signatured_type): Renamed from hash_type_signature,
6086 all callers updated.
6087 (eq_signatured_type): Renamed from eq_type_signature,
6088 all callers updated.
6089 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6090 (process_enumeration_scope): Ditto.
6091 (lookup_signatured_type_at_offset): Ditto.
6092 (load_full_type_unit, read_signatured_type): Ditto.
6093
248fd3bf
YQ
60942012-04-12 Yao Qi <yao@codesourcery.com>
6095
6096 * remote.c (async_remote_interrupt): Correct function name in
6097 debug message.
6098 (async_remote_interrupt_twice): Ditto.
6099
bc3aa6c3
DE
61002012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6101
6102 * source.c (find_and_open_source): Consistently pass resulting
6103 full path through xfullpath.
6104
9e529e1d
JK
61052012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 Provide more specific displaced-stepping memory error message.
6108 * infrun.c (displaced_step_prepare): New variable status. Call
6109 target_read_memory instead of read_memory, provide more specific
6110 error message.
6111
82e0cec1
TG
61122012-04-11 Tristan Gingold <gingold@adacore.com>
6113
6114 PR gdb/13901
6115 * darwin-nat.c (darwin_execvp): Revert previous patch.
6116
d987a266
TG
61172012-04-11 Tristan Gingold <gingold@adacore.com>
6118
6119 PR gdb/13901
6120 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6121 in case of change.
6122
016b7430
TG
61232012-04-11 Tristan Gingold <gingold@adacore.com>
6124
6125 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6126 warning.
6127
06fc020f
SCR
61282012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6129
6130 New command 'explore' which helps explore values and types in
6131 scope.
6132 * NEWS: Add an entry about the new 'explore' command.
6133 * data-directory/Makefile.in: Add gdb/command/explore.py
6134 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6135 command using the GDB Python API.
06fc020f 6136
de0919f8 61372012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6138
6139 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6140 extension in jump target calculation.
6141
de0919f8 61422012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6143
6144 * mips-tdep.c (mips32_next_pc): Handle JALX.
6145
2f26ef89
YQ
61462012-04-10 Yao Qi <yao@codesourcery.com>
6147
6148 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6149
2e505b66
YQ
61502012-04-10 Yao Qi <yao@codesourcery.com>
6151
6152 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6153 and gnulib/m4/gnulib-tool.m4.
6154
0d99eb77
DE
61552012-04-10 Doug Evans <dje@google.com>
6156
6157 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6158 (load_partial_dies): Clarify comment.
6159 (find_partial_die): Support rereading type units.
6160 Clarify CU handling, if we know offset is in CU, don't search for the
6161 containing CU. Add comment regarding memory waste.
6162
9a82b8ff
L
61632012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6164
6165 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6166 i386/x32-avx and i386/x32-avx-linux.
6167 (i386/x32-expedite): New.
6168 (i386/x32-linux-expedite): Likewise.
6169 (i386/x32-avx-expedite): Likewise.
6170 (i386/x32-avx-linux-expedite): Likewise.
6171 ($(outdir)/i386/x32.dat): Likewise.
6172 ($(outdir)/i386/x32-linux.dat): Likewise.
6173 ($(outdir)/i386/x32-avx.dat): Likewise.
6174 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6175
6176 * features/i386/x32-avx-linux.xml: New file.
6177 * features/i386/x32-avx.xml: Likewise.
6178 * features/i386/x32-core.xml: Likewise.
6179 * features/i386/x32-linux.xml: Likewise.
6180 * features/i386/x32.xml: Likewise.
6181
6182 * features/i386/x32-avx-linux.c: New. Generated.
6183 * features/i386/x32-avx.c: Likewise.
6184 * features/i386/x32-linux.c: Likewise.
6185 * features/i386/x32.c: Likewise.
6186 * regformats/i386/x32-avx-linux.dat: Likewise.
6187 * regformats/i386/x32-avx.dat: Likewise.
6188 * regformats/i386/x32-linux.dat: Likewise.
6189 * regformats/i386/x32.dat: Likewise.
6190
ee41036f
TG
61912012-04-10 Tristan Gingold <gingold@adacore.com>
6192
6193 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6194 code to kill the inferior.
6195
a7aa5b8a
MK
61962012-04-09 Mark Kettenis <kettenis@gnu.org>
6197
6198 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6199 defines.
6200 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6201 defines.
a09130f9 6202 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6203 (yyvsp): New defines.
6204 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6205 defines.
6206 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6207 defines.
6208 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6209 defines.
6210 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6211 defines.
6212 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6213 defines.
6214
fb57d452
MK
62152012-04-09 Mark Kettenis <kettenis@gnu.org>
6216
a09130f9 6217 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6218 (sparc64_store_arguments): Fix coding style.
6219
cdc7b32f
MK
62202012-04-07 Mark Kettenis <kettenis@gnu.org>
6221
6222 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6223 complex floats, adjust some related comments and tighten a related
6224 assertion.
6225 (sparc64_extract_return_value): Handle complex floats.
6226
7adf1e79
DE
62272012-04-07 Doug Evans <dje@google.com>
6228
6229 * dwarf2read.c (load_partial_dies): Change condition to assert.
6230
50f1ae7b
DE
62312012-04-06 Doug Evans <dje@google.com>
6232
6233 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6234 "mov %rsp,%rbp".
6235
55fa75c3
KB
62362012-04-05 Kevin Buettner <kevinb@redhat.com>
6237
6238 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6239 fencepost error.
6240 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6241 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6242 architecture.
6243
40e084e1
KS
62442012-04-05 Keith Seitz <keiths@redhat.com>
6245
6246 * linespec.c (decode_compound): Remove.
6247 (enum offset_relative_sign): New enum.
6248 (struct line_offset): New struct.
6249 (struct linespec): New struct.
6250 (struct linespec_state): Move file_symtabs,
6251 user_filename, and user_function into struct linespec.
6252 Make result an anonymous struct holding vectors of
6253 symbolp and minsym_and_objfile_d.
6254 Add language member.
6255 (enum ls_token_type): New enum.
6256 (linespec_keywords): New array.
6257 (struct ls_token): New struct.
6258 (struct ls_parser): New struct.
6259 (linespec_lexer_lex_number): New function.
6260 (linespec_lexer_lex_keyword): New function.
6261 (is_ada_operator): New function.
6262 (skip_quote_char): New function.
6263 (copy_token_string): New function.
6264 (is_closing_quote_enclosed): New function.
6265 (find_parameter_list_end): New function.
6266 (linespec_lexer_lex_string): New function.
6267 (linespec_lexer_lex_one): New function.
6268 (linespec_lexer_consume_token): New function.
6269 (linespec_lexer_peek_token): New function.
6270 (cplusplus_error): Remove unused function.
6271 (find_methods): Update comment.
6272 (find_toplevel_char): Return const.
6273 (is_objc_method_format): Remove unused function.
6274 (find_toplevel_string): New function.
6275 (is_linespec_boundary): Remove.
6276 (symbol_not_found_error): New function.
6277 (find_method_overload_end): Remove function.
6278 (unexpected_linespec_error): New function.
6279 (keep_name_info): Remove.
6280 (linespec_parse_line_offset): New function.
6281 (linespec_parse_basic): New function.
6282 (canonicalize_linespec): New function.
6283 (decode_line_internal): Remove.
6284 (create_sals_line_offset): New function adapted from
6285 decode_all_digits.
6286 (convert_linespec_to_sals): New function.
6287 (parse_linespec): New function.
6288 (linespec_parser_new): New function.
6289 (linespec_state_destructor): Change parameter type to
6290 struct linespec_state *.
6291 Add language parameter.
6292 Remove freeing of moved members.
6293 (linespec_parser_delete): New function.
6294 (decode_line_full): Use parse_linespec and linespec_parser_new.
6295 (decode_line_1): Likewise.
6296 (decode_indirect): Rename to ...
6297 (linespec_expression_to_pc): ... this and rewrite
6298 to simply find CORE_ADDR, storing this result for later
6299 conversion to SALs.
6300 (locate_first_half): Remove.
6301 (deocde_objc): Add parameter LS.
6302 Initialize new struct collect_info members.
6303 Handle minimal symbols, too.
6304 (decode_compound): Delete.
6305 (lookup_prefix_sym): Rewrite.
6306 (compare_msymbols): New function.
6307 (find_method): Rewrite.
6308 Do not call cplusplus_error.
6309 (symtabs_from_filename): Rewrite.
6310 (collect_function_symbols): Delete.
6311 (find_function_symbols): Rewrite without ARGPTR-style
6312 processing.
6313 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6314 (decode_dollar): Adapted and renamed to ...
6315 (linespec_parse_variable): ... this.
6316 (find_linespec_symbols): New function.
6317 (decode_label): Adapted and renamed to ...
6318 (find_label_symbols): ... this.
6319 (decode_digits_list_mode): Add and use LS argument.
6320 (decode_digits_ordinary): Likewise.
6321 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6322 If in list mode, allow any symbol class. Otherwise, only
6323 permit LOC_BLOCK symbols.
6324 (minsym_found): Update comments.
6325 (search_minsyms_for_name): Do not convert the matching symbol
6326 into a SAL. Simply push the symbol and objfile into the
6327 result vector.
6328 (decode_variable): Delete. Contents adapted into
6329 find_linespec_symbols.
6330
6331 * cp-support.c (SKIP_SPACE): Remove.
6332 (operator_tokens): Remove unused global.
6333 (cp_validate_operator): Remove.
6334 * cp-support.h (cp_validate_operator): Remove declaration.
6335
a72c8f6a
JK
63362012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6337
6338 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6339 for TYPE_VPTR_FIELDNO.
6340 * valprint.c (valprint_check_validity): Make it global, move the
6341 function comment ...
6342 * value.h (valprint_check_validity): ... to this new declaration.
6343
cf9bb588
TG
63442012-04-02 Tristan Gingold <gingold@adacore.com>
6345
6346 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6347 the STATE32 api for i386 state.
6348 (i386_darwin_store_inferior_registers): Likewise.
6349
17092398
TG
63502012-04-02 Tristan Gingold <gingold@adacore.com>
6351
6352 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6353 SS offset.
6354 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6355 format_string.
6356
ece0061f
TG
63572012-04-02 Tristan Gingold <gingold@adacore.com>
6358
6359 PR gdb/13901
d987a266 6360 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 6361
cf65ecd3
JK
63622012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6363
6364 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6365
9bc3523d
TT
63662012-03-30 Tom Tromey <tromey@redhat.com>
6367
6368 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6369 of TRY_CATCH. Fix error handling.
6370 * python/py-value.c (convert_value_from_python): Move 'old'
6371 declaration to innermost scope.
6372
b1ed564a
JB
63732012-03-29 Joel Brobecker <brobecker@adacore.com>
6374 Andrey Smirnov <andrew.smirnov@gmail.com>
6375
6376 -Wshadow warning fix.
6377 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6378 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6379 Adjust code accordingly.
6380
cb8e9b97
JB
63812012-03-29 Joel Brobecker <brobecker@adacore.com>
6382
6383 * ada-lang.c (symbol_completion_add): Rename parameter
6384 "encoded" into "encoded_p". Ajust code and documentation
6385 accordingly.
6386
c0af1706
JB
63872012-03-29 Joel Brobecker <brobecker@adacore.com>
6388 Andrey Smirnov <andrew.smirnov@gmail.com>
6389
6390 -Wshadow warning fix.
6391 * ada-lang.c (symbol_completion_add): Rename parameter
6392 "wild_match" into wild_match_p. Update code and documentation
6393 accordingly.
6394
6ea35997
JB
63952012-03-29 Joel Brobecker <brobecker@adacore.com>
6396
6397 * ada-lang.c (symbol_completion_match): Rename parameter
6398 "encoded" into "encoded_p". Ajust code and documentation
6399 accordingly.
6400
e701b3c0
JB
64012012-03-29 Joel Brobecker <brobecker@adacore.com>
6402 Andrey Smirnov <andrew.smirnov@gmail.com>
6403
6404 -Wshadow warning fix.
6405 * ada-lang.c (symbol_completion_match): Rename parameter
6406 "wild_match" into "wild_match_p". Adjust code and function
6407 documentation accordingly.
6408
5e2336be
JB
64092012-03-29 Joel Brobecker <brobecker@adacore.com>
6410 Andrey Smirnov <andrew.smirnov@gmail.com>
6411
6412 -Wshadow warning fix.
6413 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6414 "symbol_info" into "info". Adjust code accordingly.
6415 (ada_lookup_symbol): Likewise.
6416
9f88c959
JB
64172012-03-29 Joel Brobecker <brobecker@adacore.com>
6418
6419 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6420 of this function's documentation.
6421
82ccd55e
JB
64222012-03-29 Joel Brobecker <brobecker@adacore.com>
6423 Andrey Smirnov <andrew.smirnov@gmail.com>
6424
6425 -Wshadow warning fix.
6426 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6427 variable into "wild_match_p". Adjust code accordingly.
6428
d0a8ab18
JB
64292012-03-29 Joel Brobecker <brobecker@adacore.com>
6430 Andrey Smirnov <andrew.smirnov@gmail.com>
6431
6432 -Wshadow warning fix.
6433 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6434 parameter into "wild_match_p". Adjust code accordingly.
6435 Document this parameter in the function description.
6436
48b78332
JB
64372012-03-29 Joel Brobecker <brobecker@adacore.com>
6438 Andrey Smirnov <andrew.smirnov@gmail.com>
6439
6440 -Wshadow warning fix.
6441 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6442 "wild_match" parameter to "wild_match_p" (-Wshadow).
6443
2e6e0353
JB
64442012-03-29 Joel Brobecker <brobecker@adacore.com>
6445
6446 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6447 in function documentation.
6448
dc4024cd
JB
64492012-03-29 Joel Brobecker <brobecker@adacore.com>
6450 Andrey Smirnov <andrew.smirnov@gmail.com>
6451
6452 -Wshadow warning fix.
6453 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6454 variable into wild_match_p. Adjust code accordingly.
6455
6c88661c
JB
64562012-03-29 Joel Brobecker <brobecker@adacore.com>
6457 Andrey Smirnov <andrew.smirnov@gmail.com>
6458
6459 * ada-valprint.c (ada_val_print_1): Move the code handling
6460 TYPE_CODE_ENUM inside its own lexical block. Declare
6461 variables len and val there, instead of in the function's
6462 top level block. Avoid declaring deref_val again in a way
6463 that shadows another variable of the same name declared
6464 in one of the up-level blocks. Just re-use the up-level
6465 variable instead.
6466
4e5c77fe
JB
64672012-03-29 Joel Brobecker <brobecker@adacore.com>
6468
6469 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6470 Replace block_found argument by symbol_info. Adjust
6471 implementation accordingly. Add function documentation.
6472 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6473 Fix documentation.
6474 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6475 * ada-exp.y (write_object_renaming): Adjust to new
6476 ada_lookup_encoded_symbol API.
6477
1c0ac8c7
JB
64782012-03-29 Joel Brobecker <brobecker@adacore.com>
6479
6480 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6481 documentation.
6482
2aaed979
KB
64832012-03-28 Rathish C <rathish.c@kpitcummins.com>
6484
6485 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6486 (v850_register_name): Add the mpu and fpu register names.
6487 (v850e_register_name): Add the mpu and fpu register names.
6488 (v850e2_register_name): New function.
a09130f9 6489 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
6490 bfd_mach_v850e2v3.
6491
927fbba6
JB
64922012-03-28 Joel Brobecker <brobecker@adacore.com>
6493
6494 * NEWS: Add entry for Ada varobj support.
6495
d32cafc7
JB
64962012-03-28 Joel Brobecker <brobecker@adacore.com>
6497
6498 * varobj.c (default_value_is_changeable_p): New function,
6499 extracted from varobj_value_is_changeable_p. Add declaration.
6500 (ada_value_is_changeable_p): New function, extracted from
6501 varobj_value_is_changeable_p. Add declaration.
6502 (struct language_specific): New field "value_is_changeable_p".
6503 (languages): Add entries for new field.
6504 (varobj_create): Set language before calling install_new_value.
6505 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6506 "value_is_changeable_p" language callback.
6507
181875a4
JB
65082012-03-28 Joel Brobecker <brobecker@adacore.com>
6509
6510 * ada-varobj.h, ada-varobj.c: New files.
6511 * Makefile.in (SFILES): Add ada-varobj.c.
6512 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6513 (COMMON_OBS): Add ada-varobj.o.
6514
7a290c40
JB
65152012-03-28 Joel Brobecker <brobecker@adacore.com>
6516
6517 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6518 (struct language_specific): New field "value_has_mutated".
6519 (languages): Set field "value_has_mutated" in each entry of array.
6520 (varobj_value_has_mutated): New function.
6521 (varobj_udpdate): Add handling of type mutation.
6522 (value_of_root): Add handling of type mutation.
6523 (ada_value_has_mutated): New function.
6524
ca9b8b9c
PA
65252012-03-28 Pedro Alves <palves@redhat.com>
6526
6527 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6528 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6529
cc0265cd
TT
65302012-03-28 Tom Tromey <tromey@redhat.com>
6531
6532 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6533 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6534 before returning.
6535
3ad2ec6f
TT
65362012-03-28 Tom Tromey <tromey@redhat.com>
6537
6538 * .dir-locals.el: New file.
6539
4a6510ba
PA
65402012-03-28 Pedro Alves <palves@redhat.com>
6541
6542 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6543
5a75128f
JB
65442012-03-28 Joel Brobecker <brobecker@adacore.com>
6545
6546 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6547 handling for r0.
6548
f99d8bf4
PA
65492012-03-27 Pedro Alves <palves@redhat.com>
6550
6551 Eliminate struct ui_stream.
6552
6553 * ui-out.h (struct ui_stream): Delete.
6554 (ui_out_field_stream): Adjust prototype.
6555 (ui_out_stream_new, ui_out_stream_delete)
6556 (make_cleanup_ui_out_stream_delete): Delete declarations.
6557 * ui-out.c (ui_out_field_stream): Change prototype to take a
6558 ui_file instead of a ui_stream. Adjust.
6559 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6560 (make_cleanup_ui_out_stream_delete): Delete.
6561 * breakpoint.c (print_breakpoint_location)
6562 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6563 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6564 * disasm.c (dump_insns): Ditto.
6565 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6566 prototype.
6567 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6568 ui_stream/ui_out_stream_new.
6569 * infcmd.c (print_return_value): Ditto.
6570 * osdata.c (info_osdata_command): Don't allocate a local
6571 ui_stream.
6572 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6573 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6574 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6575 allocate a local ui_stream.
6576 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6577 instead of ui_stream/ui_out_stream_new.
6578 (list_args_or_locals): Don't allocate a local ui_stream.
6579 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6580 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6581 ui_stream/ui_out_stream_new.
6582 * cli/cli-setshow.c (do_setshow_command): Ditto.
6583
6350a066 65842012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 6585
6350a066
PA
6586 * arm-linux-tdep.c (arm_linux_init_abi): Call
6587 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6588 * arm-tdep.c (arm_process_record): New function.
6589 (deallocate_reg_mem): New function.
6590 (decode_insn): New function.
6591 (thumb_record_branch): New function.
6592 (thumb_record_ldm_stm_swi(): New function.
6593 (thumb_record_misc): New function.
6594 (thumb_record_ld_st_stack): New function.
6595 (thumb_record_ld_st_imm_offset): New function.
6596 (thumb_record_ld_st_reg_offset(): New function.
6597 (thumb_record_add_sub_cmp_mov): New function.
6598 (thumb_record_shift_add_sub): New function.
6599 (arm_record_coproc_data_proc): New function.
6600 (arm_record_coproc): New function.
6601 (arm_record_b_bl): New function.
6602 (arm_record_ld_st_multiple): New function.
6603 (arm_record_ld_st_reg_offset): New function.
6604 (arm_record_ld_st_imm_offset): New function.
6605 (arm_record_data_proc_imm): New function.
6606 (arm_record_data_proc_misc_ld_str): New function.
6607 (arm_record_extension_space): New function.
6608 (arm_record_strx): New function.
6609 (sbo_sbz): New function.
6610 (struct insn_decode_record): New structure for arm insn record.
6611 (REG_ALLOC): New macro for reg allocations.
6612 (MEM_ALLOC): New macro for memory allocations.
6613 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 6614
89e028e2
AS
66152012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6616
6617 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6618 (store_register): Likewise.
6619
6350a066 66202012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 6621
6350a066 6622 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 6623
5b43fab2
JK
66242012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6625
6626 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6627 Describe also the option "auto".
6628
b5453b95
RH
66292012-03-22 Richard Henderson <rth@redhat.com>
6630
6631 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6632 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6633
227ee7fc
RH
66342012-03-22 Richard Henderson <rth@redhat.com>
6635
6636 * jit.c (jit_read_code_entry): Compute alignment and offset of
6637 int64_t member before computing entry_size.
6638
7b282c5a
SCR
66392012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6640
6641 Python scripting: Add new method Value.referenced_value to
6642 gdb.Value which can dereference pointer as well as reference
6643 values.
6644 * NEWS: Add entry under 'Python scripting' about the new method
6645 Value.referenced_value on gdb.Value objects.
6646 * python/py-value.c (valpy_referenced_value): New function
6647 defining a new method on gdb.Value objects which can dereference
6648 pointer and reference values.
6649
0c83539f
SCR
66502012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6651
6652 * MAINTAINERS (Write After Approval): Add myself to the list.
6653
7ccffd7c
KB
66542012-03-21 Kevin Buettner <kevinb@redhat.com>
6655
6656 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6657 in addition to "main".
6658
bd0b9f9e
JB
66592012-03-21 Joel Brobecker <brobecker@adacore.com>
6660
6661 * expression.h (op_name): Add declaration.
6662 * expprint.c (op_name): Remove declaration. Make non-static.
6663 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6664
a5362b9a
TS
66652012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6666
6667 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6668 of struct siginfo.
6669 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6670 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6671 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6672 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6673 (linux_nat_get_siginfo): Likewise.
6674 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6675 (linux_nat_get_siginfo): Likewise.
6676 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6677 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6678 * procfs.c (gdb_siginfo_t): Likewise.
6679
adcadaab
MF
66802012-03-21 Mike Frysinger <vapier@gentoo.org>
6681
6682 * .gitignore: Ignore more files.
6683
e278ad5b
PA
66842012-03-20 Pedro Alves <palves@redhat.com>
6685
6686 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6687 returns.
6688
741e63d7
YQ
66892012-03-20 Yao Qi <yao@codesourcery.com>
6690
6691 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6692 comment.
6693
b64f50a1
JK
66942012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6695
6696 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6697 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6698 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6699 sect_offset.
6700 * dwarf2expr.h (cu_offset, sect_offset): New types.
6701 (struct dwarf_expr_context_funcs) <dwarf_call>
6702 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6703 sect_offset.
6704 (struct dwarf_expr_context) <len>: Improve the comment.
6705 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6706 cu_offset and sect_offset.
6707 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6708 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6709 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6710 * dwarf2loc.h: Include dwarf2expr.h.
6711 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6712 and sect_offset.
6713 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6714 Improve the comment.
6715 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6716 (struct signatured_type, struct line_header, struct partial_die_info)
6717 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6718 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6719 (get_die_type_at_offset, create_cus_from_index)
6720 (create_signatured_type_table_from_index, dw2_get_file_names)
6721 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6722 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6723 (create_debug_types_hash_table, process_psymtab_comp_unit)
6724 (load_partial_comp_unit, create_all_comp_units)
6725 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6726 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6727 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6728 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6729 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6730 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6731 (find_partial_die, read_attribute_value, lookup_die_type)
6732 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6733 (is_ref_attr): New function comment.
6734 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6735 Use cu_offset and sect_offset.
6736 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6737 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6738 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6739 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6740 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6741 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6742 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6743 sect_offset.
6744
e97a38f7
JK
67452012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6746
6747 Code cleanup.
6748 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6749 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6750 with xfree.
6751 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6752
8320cc4f
JK
67532012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6754
6755 * NEWS: Describe new options --init-command=FILE, -ix and
6756 --init-eval-command=COMMAND, -iex.
6757 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6758 CMDARG_INIT_COMMAND.
6759 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6760 "init-command", "init-eval-command", "ix" and "iex" to the variable
6761 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6762 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6763 (print_gdb_help): Describe --init-command=FILE, -ix and
6764 --init-eval-command=COMMAND, -iex.
6765
26743505
JK
67662012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6767
6768 Code cleanup.
6769 * main.c (struct cmdarg): Move it here from main. Add more comments.
6770 (cmdarg_s, VEC (cmdarg_s)): New.
6771 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6772 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6773 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6774 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6775 of CMDARG.
6776
5ff5c7b4
TT
67772012-03-19 Tom Tromey <tromey@redhat.com>
6778
6779 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6780
ab260dad
JK
67812012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6782
6783 PR symtab/13777
6784 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6785 GCC >=4.5.
6786
c366c1f0
TT
67872012-03-16 Chris January <chris.january@allinea.com>
6788
6789 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6790 of clear.
6791
e16edb45
TT
67922012-03-16 Chris January <chris.january@allinea.com>
6793
6794 * source.c (add_path): Use memmove instead of strcpy because the
6795 strings overlap.
6796
53ba8333
JB
67972012-03-16 Joel Brobecker <brobecker@adacore.com>
6798
6799 * value.h (set_value_parent): Add declaration.
6800 * value.c (set_value_parent): New function.
6801 (value_address): If VALUE->PARENT is not NULL, then use it as
6802 the base address instead of VALUE->LOCATION.address.
6803 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6804 the same as OBJ's address. Adjust V's offset accordingly.
6805 Set V's parent.
6806
481860b3
GB
68072012-03-16 Gary Benson <gbenson@redhat.com>
6808
6809 PR breakpoints/10738
6810 * dwarf2read.c (use_deprecated_index_sections): New global.
6811 (struct partial_die_info): New member may_be_inlined.
6812 (read_partial_die): Set may_be_inlined where appropriate.
6813 (add_partial_subprogram): Add partial symbols for partial
6814 DIEs that may be inlined.
6815 (new_symbol_full): Add inlined subroutines to the current
6816 scope.
6817 (write_psymtabs_to_index): Bump version number.
6818 (dwarf2_read_index): Read only version 6 indices unless
6819 use_deprecated_index_sections is set.
6820 * linespec.c (symbol_and_data_callback): New structure.
6821 (iterate_inline_only): New function.
6822 (iterate_over_all_matching_symtabs): New argument
6823 "include_inline". If nonzero, also call the callback for
6824 symbols representing inlined subroutines.
6825 (lookup_prefix_sym): Pass extra argument to the above.
6826 (find_function_symbols): Likewise.
6827 (add_matching_symbols_to_info): Likewise.
6828 * NEWS: Mention that GDB can now set breakpoints on inlined
6829 functions.
6830
d0e7e15a
PM
68312012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6832
6833 * p-typeprint.c (pascal_type_print_method_args):
6834 Fix display of parameter of methods.
6835
3d354654
PM
68362012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6837
6838 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6839 Add missing prototype.
6840
cafe75b0
JK
68412012-03-16 Yao Qi <yao@codesourcery.com>
6842 Jan Kratochvil <jan.kratochvil@redhat.com>
6843
6844 Fix false compilation warning.
6845 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6846
25f8c692
JL
68472012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6848 Pedro Alves <pedro@codesourcery.com>
6849
6850 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6851 (arm_register_g_packet_guesses): New function.
6852 (arm_gdbarch_init): Don't force a target description with
6853 registers when the executable is detected as M-profile. Instead
6854 set gdbarch->tdep->is_m. Register `g' packet guesses.
6855 (_initialize_arm_tdep): Initialize the new target description.
6856 * features/arm-with-m-fpa-layout.xml: New description.
6857 * features/arm-with-m-fpa-layout.c: New, generated.
6858
35c63cd8
JB
68592012-03-15 Joel Brobecker <brobecker@adacore.com>
6860
6861 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6862 Update function description.
6863 (insert_bp_location): Do not wipe bl->target_info out.
6864 * mem-break.c: #include "gdb_string.h".
6865 (default_memory_insert_breakpoint): Do not call target_read_memory
6866 with a pointer to the breakpoint's shadow_contents buffer. Use
6867 a local buffer instead.
6868 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6869
57651221
TT
68702012-03-15 Tom Tromey <tromey@redhat.com>
6871
6872 * NEWS: Mention "info vtbl", not "info vtable".
6873 * cp-support.c (info_vtbl_command): Fix comment.
6874 (_initialize_cp_support): Fix text.
6875
410528f0
TT
68762012-03-15 Tom Tromey <tromey@redhat.com>
6877
6878 * cp-valprint.c (cp_print_value_fields): Use
6879 print_function_pointer_address for vtable slot.
6880
c4aeac85
TT
68812012-03-15 Tom Tromey <tromey@redhat.com>
6882
6883 * gnu-v3-abi.c (struct value_and_voffset): New.
6884 (hash_value_and_voffset, eq_value_and_voffset)
6885 (compare_value_and_voffset, compute_vtable_size)
6886 (print_one_vtable, gnuv3_print_vtable): New functions.
6887 (init_gnuv3_ops): Initialize 'print_vtable' field.
6888 * cp-support.c (info_vtbl_command): New function.
6889 (_initialize_cp_support): Add "info vtbl".
6890 * cp-abi.h (cplus_print_vtable): Declare.
6891 (struct cp_abi_ops) <print_vtable>: New field.
6892 * cp-abi.c (cplus_print_vtable): New function.
6893 * NEWS: Update.
6894
95cbceff
TT
68952012-03-15 Tom Tromey <tromey@redhat.com>
6896
6897 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6898 iterate_over_symbols.
6899
589b4a32
DE
69002012-03-14 Doug Evans <dje@google.com>
6901
6902 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6903 DW_OP_GNU_parameter_ref.
6904
e837f12a
JK
69052012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6906
6907 Fix double prompt of 'interpreter-exec mi'.
6908 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6909 (mi_interpreter_resume): use it.
6910 (mi_execute_command_input_handler): New function.
6911 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6912 mi_execute_command_input_handler.
6913
ff1e4526 69142012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
6915
6916 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6917 prototype.
6918 (darwin_debug_port_info): Make static.
6919 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6920 * machoread.c (_initialize_machoread): Add prototype.
6921 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6922 (i386_darwin_set_control, i386_darwin_get_control)
6923 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6924 i386_darwin_get_status, i386_darwin_get_control):
6925 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6926
d8a5d6ee
JB
69272012-03-13 Joel Brobecker <brobecker@adacore.com>
6928
6929 * ax-gdb.c (gen_usual_unary): Remove special handling of
6930 enum and bool types.
6931
af381b8c
JB
69322012-03-13 Joel Brobecker <brobecker@adacore.com>
6933
6934 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6935
786c562f
JB
69362012-03-13 Joel Brobecker <brobecker@adacore.com>
6937
6938 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6939
e3ebf1bb
JB
69402012-03-13 Chris January <chris.january@allinea.com>
6941
6942 * aix-thread.c (fill_sprs): Store the floating point registers
6943 at the correct offsets into vals.
6944
c5b7e1cb
DE
69452012-03-13 Doug Evans <dje@google.com>
6946
16899756
DE
6947 * NEWS: Mention symbol-reloading has been deleted.
6948 * symfile.c (symbol_reloading): Delete.
6949 (show_symbol_reloading): Delete.
6950 (_initialize_symfile): Delete set/show symbol-reloading.
6951
c5b7e1cb
DE
6952 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6953 read_in_chain until we have successfully read it in.
6954 (load_full_comp_unit): Ditto.
6955 (read_signatured_type): Add comment.
6956
46cb6474
JB
69572012-03-13 Chris January <chris.january@allinea.com>
6958
6959 * stabsread.c (fix_common_block): Change type of valu argument
6960 to CORE_ADDR.
6961
76219d77
JB
69622012-03-13 Chris January <chris.january@allinea.com>
6963
6964 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6965 instruction.
6966
87b0bb13
JK
69672012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6968
6969 * common/linux-procfs.c (linux_proc_get_int): New, from
6970 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6971 field.
6972 (linux_proc_get_tgid): Only call linux_proc_get_int.
6973 (linux_proc_get_tracerpid): New.
6974 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6975 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6976 linux_proc_pid_has_state.
6977 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6978 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6979 (linux_ptrace_attach_warnings): New.
6980 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6981 New declaration.
6982 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6983 (linux_nat_attach): New variables ex, buffer, message and message_s.
6984 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6985
5f572dec
JK
69862012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6987
6988 * Makefile.in (linux-ptrace.o): New.
6989 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6990 from linux-nat.c.
6991 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6992 * common/linux-ptrace.c: New file.
6993 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6994 * config/arm/linux.mh: Likewise.
6995 * config/i386/linux.mh: Likewise.
6996 * config/i386/linux64.mh: Likewise.
6997 * config/ia64/linux.mh: Likewise.
6998 * config/m32r/linux.mh: Likewise.
6999 * config/m68k/linux.mh: Likewise.
7000 * config/mips/linux.mh: Likewise.
7001 * config/pa/linux.mh: Likewise.
7002 * config/powerpc/linux.mh: Likewise.
7003 * config/powerpc/ppc64-linux.mh: Likewise.
7004 * config/powerpc/spu-linux.mh: Likewise.
7005 * config/s390/s390.mh: Likewise.
7006 * config/sparc/linux.mh: Likewise.
7007 * config/sparc/linux64.mh: Likewise.
7008 * config/xtensa/linux.mh: Likewise.
7009 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7010 common/linux-procfs.c.
7011 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7012
44f238bb
PA
70132012-03-13 Hui Zhu <teawater@gmail.com>
7014 Pedro Alves <palves@redhat.com>
7015
7016 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7017 CREATE_BREAKPOINT_FLAGS_INSERTED.
7018 (create_breakpoint_sal, create_breakpoints_sal)
7019 (base_breakpoint_create_breakpoints_sal)
7020 (tracepoint_create_breakpoints_sal)
7021 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7022 down.
7023 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7024 (ftrace_command, strace_command): Adjust.
7025 (create_tracepoint_from_upload): Pass
7026 CREATE_BREAKPOINT_FLAGS_INSERTED.
7027 * breakpoint.h (enum breakpoint_create_flags): New.
7028 (create_breakpoint): New flags parameter.
7029 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7030 * python/py-breakpoint.c (bppy_init): Adjust.
7031 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7032 * spu-tdep.c (spu_catch_start): Adjust.
7033
1e51243a
PA
70342012-03-13 Pedro Alves <palves@redhat.com>
7035 Hui Zhu <teawater@gmail.com>
7036 Yao Qi <yao@codesourcery.com>
7037
7038 * remote.c (struct remote_state): New field `starting_up'.
7039 (remote_start_remote): Set and clear it.
7040 (remote_can_download_tracepoint): If starting up, return false.
7041
fa3064dd
YQ
70422012-03-13 Yao Qi <yao@codesourcery.com>
7043
7044 * inferior.h (struct inferior): Remove fields any_syscall_count,
7045 syscalls_counts and total_syscalls_count. Move them to new
7046 struct catch_syscall_inferior_data in breakpoint.c.
7047 * breakpoint.c: Call DEF_VEC_I(int).
7048 (struct catch_syscall_inferior_data): New.
7049 (get_catch_syscall_inferior_data): New.
7050 (catch_syscall_inferior_data_cleanup): New.
7051 (insert_catch_syscall): Update to access data in
7052 struct catch_syscall_inferior_data.
7053 (insert_catch_syscall): Likewise.
7054 (remove_catch_syscall): Likewise.
7055 (remove_catch_syscall): Likewise.
7056 (is_syscall_catchpoint_enabled): Likewise.
7057 (add_catch_command): Likewise.
7058 (_initialize_breakpoint): Register cleanup.
7059 * breakpoint.h: Removed DEF_VEC_I(int).
7060 * dwarf2loc.c: Call DEF_VEC_I(int).
7061 * mi/mi-main.c: Likewise.
7062
460fac3c
MK
70632012-03-12 Mark Kettenis <kettenis@gnu.org>
7064
7065 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7066
e1aca11e
JB
70672012-03-12 Chris January <chris.january@allinea.com>
7068
7069 * aix-thread.c (_initialize_aix_thread): Add prototype.
7070 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7071 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7072
649c7061
JB
70732012-03-12 Joel Brobecker <brobecker@adacore.com>
7074
7075 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7076 include of "amd64-nat.h".
7077
0b49e518
TT
70782012-03-12 Tom Tromey <tromey@redhat.com>
7079
7080 * buildsym.c (record_pending_block): Now static.
7081 * buildsym.h: (record_pending_block): Remove.
7082
fd24fa94
AT
70832012-03-12 Andreas Tobler <andreast@fgznet.ch>
7084
7085 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7086
ba919b58
TT
70872012-03-09 Tom Tromey <tromey@redhat.com>
7088
7089 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7090 producer_is_gxx_lt_4_6>: New fields.
7091 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7092
a48e046c
TT
70932012-03-09 Tom Tromey <tromey@redhat.com>
7094
7095 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7096
6f5e9362
JB
70972012-03-08 Joel Brobecker <brobecker@adacore.com>
7098
7099 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7100 prototype.
7101
8d037db9
JB
71022012-03-08 Joel Brobecker <brobecker@adacore.com>
7103
7104 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7105
4e841acf
JK
71062012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7107
7108 Fix -Wmissing-prototypes build.
7109 * arm-linux-nat.c (get_thread_id): Make it static.
7110 * xtensa-linux-nat.c (get_thread_id): Likewise.
7111
c6030312
JB
71122012-03-08 Joel Brobecker <brobecker@adacore.com>
7113
7114 * server.c (process_point_options): If a conditional expression
7115 is found, only print a message if remote_debug is nonzero.
7116
52323be9
LM
71172012-03-08 Luis Machado <lgustavo@codesourcery.com>
7118
7119 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7120 of internal error for unknown/unsupported types.
7121
7fe25d9b
JK
71222012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7123
7124 Fix CU relative vs. absolute DIE offsets.
7125 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7126 offset to offset_in_cu.
7127 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7128 TYPE_OFFSET.
7129 (dwarf2_fetch_die_location_block): Rename parameter offset to
7130 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7131
05e7c244
JK
71322012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7133
7134 * libunwind-frame.c: Rename to ...
7135 * ia64-libunwind-tdep.c: ... here.
7136 * libunwind-frame.h: Rename to ...
7137 * ia64-libunwind-tdep.h: ... here.
7138 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7139 ia64-libunwind-tdep.h.
7140 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7141 * README (--with-libunwind): Rename to ...
7142 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7143 * config.in: Regenerate.
7144 * configure: Regenerate.
7145 * configure.ac: New option --with-libunwind-ia64, make the
7146 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7147 Remove AC_DEFINE for HAVE_LIBUNWIND.
7148 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7149 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7150 Rename libunwind-frame in the general comment.
7151 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7152 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7153 Move forward declarations inside #ifndef. Rename libunwind-frame in
7154 the general comment.
7155 * ia64-tdep.c: Rename libunwind-frame.h #include to
7156 ia64-libunwind-tdep.h.
7157 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7158 (ia64_libunwind_descr): Rename libunwind-frame to
7159 ia64-libunwind-tdep in these function comments.
7160 * ia64-tdep.h: Rename libunwind-frame.h #include to
7161 ia64-libunwind-tdep.h.
7162 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7163 ia64-libunwind-tdep in that data comment.
7164
3755cbfd
JK
71652012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7166
7167 * libunwind-frame.h (struct frame_unwind): New declaration.
7168
d1cda5d9
JB
71692012-03-08 Joel Brobecker <brobecker@adacore.com>
7170
7171 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7172 "set breakpoint condition-evaluation" command.
7173
a0ba0aa2
TG
71742012-03-08 Tristan Gingold <gingold@adacore.com>
7175
7176 * sparc-stub.c: Move to stubs/
7177 * sh-stub.c: Likewise.
7178 * m68k-stub.c: Likewise.
7179 * m32r-stub.c: Likewise.
7180 * i386-stub.c: Likewise.
7181
7b8b6d6d
AS
71822012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7183
007cafee
AS
7184 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7185 linux_get_siginfo_type.
7186
7b8b6d6d
AS
7187 * m68klinux-nat.c: Include "gdb_proc_service.h".
7188 (PTRACE_GET_THREAD_AREA): Define.
7189 (ps_get_thread_area): New function.
7190
bba74b36
YQ
71912012-03-08 Yao Qi <yao@codesourcery.com>
7192
7193 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7194 `xsnprintf'.
7195 (remote_query_attached): Likewise.
7196 (remote_static_tracepoint_marker_at): Likewise.
7197 (remote_set_permissions): Likewise.
7198 (remote_detach_1, extended_remote_attach_1): Likewise.
7199 (send_g_packet, remote_vkill): Likewise.
7200 (extended_remote_disable_randomization): Likewise.
7201 (remote_add_target_side_condition): Likewise.
7202 (remote_insert_breakpoint): Likewise.
7203 (remote_remove_breakpoint): Likewise.
7204 (remote_insert_watchpoint): Likewise.
7205 (remote_remove_watchpoint): Likewise.
7206 (remote_insert_hw_breakpoint): Likewise.
7207 (remote_insert_hw_breakpoint): Likewise.
7208 (remote_remove_hw_breakpoint): Likewise.
7209 (remote_download_command_source): Likewise.
7210 (remote_download_tracepoint): Likewise.
7211 (remote_download_trace_state_variable): Likewise.
7212 (remote_disable_tracepoint): Likewise.
7213 (remote_trace_set_readonly_regions): Likewise.
7214 (remote_get_tracepoint_status): Likewise.
7215 (remote_trace_find): Likewise.
7216 (remote_get_trace_state_variable_value): Likewise.
7217 (remote_set_disconnected_tracing): Likewise.
7218 (remote_set_circular_trace_buffer): Likewise.
7219 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7220 (remote_use_agent): Likewise.
7221 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7222 Update callers.
7223
9b224c5e
PA
72242012-03-07 Pedro Alves <palves@redhat.com>
7225
7226 * NEWS: Mention QProgramSignals.
7227 * inferior.h (update_signals_program_target): Declare.
7228 * infrun.c: (update_signals_program_target): New.
7229 (handle_command): Update the target of the new program signals
7230 array changes.
7231 * remote.c (PACKET_QProgramSignals): New enum.
7232 (last_program_signals_packet): New global.
7233 (remote_program_signals): New.
7234 (remote_start_remote): Update the target with the program signals
7235 list.
7236 (remote_protocol_features): Add entry for QPassSignals.
7237 (remote_open_1): Free anc clear last_program_signals_packet.
7238 (init_remote_ops): Install remote_program_signals.
7239 * target.c (update_current_target): Adjust.
7240 (target_program_signals): New.
7241 * target.h (struct target_ops) <to_program_signals>: New field.
7242 (target_program_signals): Declare.
7243
74c48cbb
PA
72442012-03-07 Pedro Alves <palves@redhat.com>
7245
7246 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7247 extensions.
7248
0c13fc49
AS
72492012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7250
7251 * m68klinux-nat.c (getregs_supplies): Make static.
7252 (getfpregs_supplies): Likewise.
7253 (have_ptrace_getregs): Likewise.
7254
1281d2a3
JB
72552012-03-06 Joel Brobecker <brobecker@adacore.com>
7256
7257 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7258 in call to get_die_type_at_offset.
7259
2b03b41d
SS
72602012-03-06 Stan Shebs <stan@codesourcery.com>
7261
7262 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7263 * mi/mi-cmd-disas.c: Ditto.
7264 * mi/mi-cmd-env.c: Ditto.
7265 * mi/mi-cmd-file.c: Ditto.
7266 * mi/mi-cmd-stack.c: Ditto.
7267 * mi/mi-cmd-target.c: Ditto.
7268 * mi/mi-cmd-var.c: Ditto.
7269 * mi/mi-cmds.c: Ditto.
7270 * mi/mi-cmds.h: Ditto.
7271 * mi/mi-console.c: Ditto.
7272 * mi/mi-getopt.c: Ditto.
7273 * mi/mi-getopt.h: Ditto.
7274 * mi/mi-interp.c: Ditto.
7275 * mi/mi-main.c: Ditto.
7276 * mi/mi-out.c: Ditto.
7277 * mi/mi-parse.c: Ditto.
7278 * mi/mi-parse.h: Ditto.
7279 * mi/mi-symbol-cmds.c: Ditto.
7280
7281 * mi/mi-getopt.h: Move mi_opt struct up.
7282 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7283 return.
7284 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7285
c988ad87
TT
72862012-03-06 Tom Tromey <tromey@redhat.com>
7287
7288 * proc-service.c (ps_pglobal_lookup): Set the current program
7289 space.
7290
1b7c1b10
PA
72912012-03-06 Pedro Alves <palves@redhat.com>
7292
7293 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7294
3c182069
JB
72952012-03-05 Joel Brobecker <brobecker@adacore.com>
7296
7297 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7298
2e794194
JK
72992012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7300
7301 Code cleanup.
7302 * common/linux-osdata.c (linux_common_core_of_thread): New function
7303 comment.
7304 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7305 call by linux_common_core_of_thread.
7306 (linux_nat_core_of_thread_1): Remove.
7307 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7308 * linux-thread-db.c: Include linux-osdata.h.
7309 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7310 linux_common_core_of_thread.
7311
9f9f1f31
TT
73122012-03-05 Tom Tromey <tromey@redhat.com>
7313
7314 * value.c (value_primitive_field): Don't fetch contents for
7315 non-virtual bases.
7316
b7b189f3
TT
73172012-03-05 Tom Tromey <tromey@redhat.com>
7318
7319 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7320
05b8a789 73212012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7322
5538f557
JB
7323 * s390-nat.c: Include "gregset.h".
7324
75528772
JK
73252012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7326
7327 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7328 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7329 (libunwind_load): New variable so_error, use it for dlerror. Try to
7330 load also LIBUNWIND_SO_7.
7331
275418ae
PA
73322012-03-05 Pedro Alves <palves@redhat.com>
7333
7334 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7335 is not NULL, and remove resulting dead code.
7336
5cbb9812
TS
73372012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7338
7339 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7340 prologue to sh_analyze_prologue.
7341 (sh_analyze_prologue): Make better use of such an upper limit, and
7342 generally be more cautious about accessing memory.
7343
541515ad
TT
73442012-03-05 Tom Tromey <tromey@redhat.com>
7345
7346 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7347 _initialize_ia64_hpux_tdep.
7348
b4d36fb8
PA
73492012-03-05 Pedro Alves <palves@redhat.com>
7350
24490249
PA
7351 PR gdb/13766
7352
b4d36fb8
PA
7353 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7354 the register state is clear, supply explicit zero, instead of
7355 marking the register unavailable.
7356
60c9a3c0
TG
73572012-03-05 Tristan Gingold <gingold@adacore.com>
7358
7359 * NEWS: Mention OpenVMS ia64 new target.
7360
696759ad
TG
73612012-03-05 Tristan Gingold <gingold@adacore.com>
7362
7363 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7364 (ia64_unw_accessors, ia64_unw_rse_accessors)
7365 (ia64_libunwind_descr): Declare.
7366 * ia64-vms-tdep.c: New file.
7367 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7368 (ia64_libunwind_descr): Make them public.
7369 * configure.tgt: Add ia64-*-*vms*.
7370 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7371 (ALLDEPFILES): Add ia64-vms-tdep.c
7372
34864976
TG
73732012-03-05 Tristan Gingold <gingold@adacore.com>
7374
169081d0
TG
7375 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7376 * remote.c (PACKET_qXfer_uib): New enum value.
7377 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7378 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7379 (_initialize_remote): Call add_packet_config_cmd for
7380 xfer:uib packet.
7381
73822012-03-05 Tristan Gingold <gingold@adacore.com>
7383
7384 * osabi.c (gdb_osabi_names): Add OpenVMS.
7385 (generic_elf_osabi_sniffer): Likewise.
7386 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 7387
6597b100
JK
73882012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7389
7390 Removed unused code.
7391 * libunwind-frame.c (libunwind_frame_unwind)
7392 (libunwind_frame_base_address): Remove.
7393 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7394
87399aa1
YQ
73952012-03-04 Yao Qi <yao@codesourcery.com>
7396
7397 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7398 remove trailing new line.
7399 (agent_run_command, agent_run_command): Add _ markup.
7400 (agent_capability_check): Likewise.
7401
abf1152a
JK
74022012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7403
7404 * breakpoint.c (set_condition_evaluation_mode): Set
7405 CONDITION_EVALUATION_MODE unconditionally.
7406
5808517f
YQ
74072012-03-03 Yao Qi <yao@codesourcery.com>
7408
7409 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7410 * common/agent.h: Update declaration.
7411 * inf-child.c (inf_child_use_agent): New.
7412 (inf_child_can_use_agent): New.
7413 (inf_child_target): Initialize fields `to_use_agent'
7414 and `to_can_use_agent'.
7415 * agent.c (agent_new_objfile): New.
89b7509a 7416 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
7417 observer.
7418
7419 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7420 New.
89b7509a 7421 (linux_target_install_ops): Initialize field
5808517f
YQ
7422 `to_static_tracepoint_markers_by_strid'.
7423 * remote.c (free_current_marker): Move it to ...
7424 * tracepoint.c (free_current_marker): ... here. New.
7425 (cleanup_target_stop): New.
7426 * tracepoint.h: Declare free_current_marker.
7427 * NEWS: Add one entry about `info static-tracepoint-marker'.
7428
58b4daa5
YQ
74292012-03-03 Yao Qi <yao@codesourcery.com>
7430
7431 * common/agent.c (agent_loaded_p): New.
89b7509a 7432 (agent_look_up_symbols): New global.
58b4daa5
YQ
7433 * common/agent.h: Declare agent_loaded_p.
7434
8ffcbaaf
YQ
74352012-03-03 Yao Qi <yao@codesourcery.com>
7436
7437 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7438 (agent_capability_check, agent_capability_invalidate): New.
7439 (symbol_list): New array element.
7440 * common/agent.h (enum agent_capa): New.
7441 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7442
d1feda86
YQ
74432012-03-03 Yao Qi <yao@codesourcery.com>
7444
7445 * target.h (struct target_ops) <to_use_agent>: New field.
7446 (struct target_ops) <to_can_use_agent>: New field.
7447 (target_use_agent, target_can_use_agent): New macro.
7448 * target.c (update_current_target): Update.
7449 * remote.c: New enum `PACKET_QAgent'.
7450 (remote_protocol_features): Add a new element.
7451 (remote_use_agent, remote_can_use_agent): New.
7452 (init_remote_ops): Initialize field `can_use_agent' with
7453 remote_can_use_agent. Intiailize field `use_agent' with
7454 remote_use_agent.
7455 * common/agent.c (use_agent): New global.
7456 * common/agent.h: Declare it.
7457 * tracepoint.c (info_static_tracepoint_markers_command): Add
7458 comment.
7459 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7460 (COMMON_OBS): Add common/agent.o and agent.o
7461 (common-agent.o): New rule.
7462 * agent.c: New.
7463
2fa291ac
YQ
74642012-03-03 Yao Qi <yao@codesourcery.com>
7465
7466 * common/agent.c: New.
7467 * common/agent.h: New.
7468 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7469 AC_CHECK_HEADERS.
7470 * configure, configh.in: Regenerated.
7471
9fc05685
KB
74722012-03-02 Kevin Buettner <kevinb@redhat.com>
7473
7474 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7475 unless it exists for this architecture.
7476
a5ee536b
JB
74772012-03-02 Joel Brobecker <brobecker@adacore.com>
7478
7479 * language.h (struct language_defn): New "method" la_read_var_value.
7480 * findvar.c: #include "language.h".
7481 (default_read_var_value): Renames read_var_value. Rewrite
7482 function description.
7483 (read_var_value): New function.
7484 * value.h (default_read_var_value): Add prototype.
7485 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7486 New functions.
7487 (ada_language_defn): Add entry for la_read_var_value.
7488 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7489 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7490 language_defn structures to add entry for new la_read_var_value
7491 field.
7492
f59f708a
PA
74932012-03-02 Tom Tromey <tromey@redhat.com>
7494 Pedro Alves <palves@redhat.com>
7495
7496 PR breakpoints/13776:
7497 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7498 breakpoints.
7499 (delete_longjmp_breakpoint_at_next_stop): New.
7500 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7501 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7502 before deleting the inferior. Add comments.
7503 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7504 breakpoints immediately, but only on next stop. Move that code
7505 next to where we mark other breakpoints for deletion.
7506
44099a67
JB
75072012-03-02 Joel Brobecker <brobecker@adacore.com>
7508
7509 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7510 marker.
7511 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7512 violation.
7513
2a2ef594
PA
75142012-03-02 Pedro Alves <palves@redhat.com>
7515
7516 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7517
b261e0c5
UW
75182012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7519
7520 Fix -Wmissing-prototypes build.
7521 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7522 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7523 (gdbsim_has_memory): Likewise.
7524
a95babbf
YQ
75252012-03-02 Yao Qi <yao@codesourcery.com>
7526
7527 Fix -Wmissing-prototypes build.
7528 * charset.c (phony_iconv_open): Make static.
7529 (phony_iconv_close, phony_iconv): Likewise.
7530 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7531 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7532 prototype.
7533 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7534 * ser-mingw.c (create_select_thread): Make static.
7535 * windows-termcap.c (tgetent): New prototype.
7536 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7537
d603d4b3
JK
75382012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7539
7540 Fix -Wmissing-prototypes build.
7541 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7542 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7543 (_initialize_loadable): New prototypes.
7544
7fb3ad1f
DE
75452012-03-02 Doug Evans <dje@google.com>
7546
7547 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7548 abbrev table, read_comp_unit will do it.
7549
693be288
JK
75502012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7551
7552 Fix -Wmissing-prototypes build.
7553 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7554 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7555 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7556 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7557 (_initialize_arm_symbian_tdep): New prototype.
7558 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7559 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7560 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7561 static.
7562 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7563 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7564 prototype.
7565 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7566 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7567 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7568 static.
7569 * moxie-tdep.c (moxie_process_record): Likewise.
7570 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7571 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7572 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7573 (_initialize_rl78_tdep): New prototype.
7574 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7575 (_initialize_rx_tdep): New prototype.
7576 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7577 (_initialize_darwin_solib): New prototype.
7578 * solib-spu.c: Include solib-spu.h.
7579 (_initialize_spu_solib): New prototype.
7580 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7581 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7582 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7583 (tic6x_software_single_step): Make it static.
7584 (_initialize_tic6x_tdep): New prototype.
7585
638234e5
JK
75862012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7587
7588 Fix -Wmissing-prototypes build.
7589 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7590 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7591
f4a6f16d
JK
75922012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7593
7594 Fix -Wmissing-prototypes build.
7595 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7596 (frv_have_stopped_data_address): Remove.
7597
04dcf5fa
JK
75982012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7599
7600 Fix -Wmissing-prototypes build.
7601 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7602 * sh-tdep.c: Include sh64-tdep.h.
7603 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7604 * sh64-tdep.c: Include sh64-tdep.h.
7605 * sh64-tdep.h: New file.
7606
19080931
MR
76072012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7608
7609 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7610
9aac7884
MR
76112012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7612
7613 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7614 sp_regnum once the gdbarch_init_osabi hook has been called.
7615
a385295e
MR
76162012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7617
7618 * mips-tdep.c (mips32_bc1_pc): New function.
7619 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7620 BPOSGE32 and BPOSGE64 instructions.
7621 (deal_with_atomic_sequence): Likewise.
7622 (mips32_instruction_has_delay_slot): Likewise.
7623
1faeff08 76242012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
7625 Chris Dearman <chris@mips.com>
7626 Maciej W. Rozycki <macro@codesourcery.com>
7627 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
7628
7629 * features/mips-dsp.xml: New file.
7630 * features/mips64-dsp.xml: New file.
7631 * features/mips-dsp-linux.xml: New file.
7632 * features/mips64-dsp-linux.xml: New file.
7633 * features/Makefile (WHICH): Add mips-dsp-linux and
7634 mips64-dsp-linux.
7635 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7636 * features/mips-dsp-linux.c: New file.
7637 * features/mips64-dsp-linux.c: New file.
7638 * regformats/mips-dsp-linux.dat: New file.
7639 * regformats/mips64-dsp-linux.dat: New file.
7640 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7641 registers.
7642 (mips64_linux_register_addr): Likewise.
7643 (mips64_linux_regsets_fetch_registers): Likewise.
7644 (mips64_linux_regsets_store_registers): Likewise.
7645 (mips64_linux_fetch_registers): Update call to
7646 mips64_linux_regsets_fetch_registers.
7647 (mips64_linux_store_registers): Update call to
7648 mips64_linux_regsets_store_registers.
7649 (mips_linux_read_description): Probe for DSP registers.
7650 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7651 and initialize_tdesc_mips64_dsp_linux.
7652 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7653 Remove padding of no longer used embedded register slots.
7654 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7655 (MIPS_RESTART_REGNUM): Redefine enum value.
7656 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7657 strings.
7658 (mips_tx39_reg_names): Likewise.
7659 (mips_linux_reg_names): New array of register names for Linux
7660 targets.
7661 (mips_register_name): Check for a null pointer in
7662 mips_processor_reg_names and return an empty string.
7663 (mips_register_type): Exclude embedded registers for the IRIX
7664 and Linux ABIs.
7665 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7666 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7667 DSP registers.
7668 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7669 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7670 (mips_gdbarch_init): Likewise. Initialize internal register
7671 indices for the Linux ABI. Use dynamic numbers to refer to
7672 registers, as applicable, while parsing the target description.
7673 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7674
263689d8
JB
76752012-03-01 Joel Brobecker <brobecker@adacore.com>
7676
7677 * frame.h (read_frame_register_unsigned): Fix typo in function
7678 description.
7679
f3b4f45c
PA
76802012-03-01 Pedro Alves <palves@redhat.com>
7681
7682 * jit-reader.in [!__cplusplus]
7683 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7684
b03a2011
PA
76852012-03-01 Pedro Alves <palves@redhat.com>
7686
7687 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7688 * configure: Regenerate.
7689
70221824
PA
76902012-03-01 Pedro Alves <palves@redhat.com>
7691
7692 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7693 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7694 (ftrace_command, strace_command): Make static.
7695 * d-lang.c (_initialize_d_language): Declare.
7696 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7697 * dwarf2loc.c (_initialize_dwarf2loc):
7698 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7699 * exec.c (exec_get_section_table): Make static.
7700 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7701 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7702 * inferior.c (remove_inferior_command, add_inferior_command)
7703 (clone_inferior_command): Make static.
7704 * linux-nat.c (linux_nat_thread_address_space)
7705 (linux_nat_core_of_thread): Make static.
7706 * linux-tdep.c (_initialize_linux_tdep): Declare.
7707 * objc-lang.c (_initialize_objc_lang): Declare.
7708 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7709 Make static.
7710 (_initialize_opencl_language): Declare.
7711 * record.c (_initialize_record): Declare.
7712 * remote.c (demand_private_info, remote_get_tib_address)
7713 (remote_supports_cond_tracepoints)
7714 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7715 Make static.
7716 * skip.c (_initialize_step_skip): Declare.
7717 * symtab.c (skip_prologue_using_lineinfo): Make static.
7718 * tracepoint.c (delete_trace_state_variable)
7719 (trace_variable_command, delete_trace_variable_command)
7720 (get_uploaded_tsv, find_matching_tracepoint_location)
7721 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7722 Make static.
7723 * value.c (pack_unsigned_long): Make static.
7724 * varobj.c (varobj_ensure_python_env): Make static.
7725 * windows-tdep.c (_initialize_windows_tdep): Declare.
7726 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7727
33fbcbee
PA
77282012-03-01 Pedro Alves <palves@redhat.com>
7729
7730 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7731 gdbarch parameter.
7732 (linux_init_abi): Install it as has_shared_address_space gdbarch
7733 callback.
7734
44d0cd3b
PA
77352012-03-01 Pedro Alves <palves@redhat.com>
7736
7737 * observer.c (observer_test_first_notification_function)
7738 (observer_test_second_notification_function)
7739 (observer_test_third_notification_function): Add declarations.
7740
ed01b82c
PA
77412012-03-01 Pedro Alves <palves@redhat.com>
7742
7743 * common/signals.c (default_target_signal_to_host)
7744 (default_target_signal_from_host): Move ...
7745 * arch-utils.c: ... here.
7746 * arch-utils.h (default_target_signal_to_host)
7747 (default_target_signal_from_host): Declare.
7748
7749 * common/signals.c (target_signal_from_command): Move ...
7750 * infrun.c: ... here.
7751 * inferior.h (target_signal_from_command): Declare.
7752 * target.h (target_signal_from_command)
7753 (default_target_signal_from_host, default_target_signal_to_host):
7754 Delete declarations.
7755
7756 * common/signals.c (_initialize_signals): Delete.
7757
c9b87335
PA
77582012-03-01 Pedro Alves <palves@redhat.com>
7759
7760 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7761 both __cplusplus and !__cplusplus.
7762
9340a6c0
PA
77632012-03-01 Pedro Alves <palves@redhat.com>
7764
7765 * psymtab.c (find_and_open_source): Delete declaration.
7766 * source.c (find_and_open_source): Move comment ...
7767 * source.h (find_and_open_source): ... to this new declaration.
7768
e451c4a1
PA
77692012-03-01 Pedro Alves <palves@redhat.com>
7770
7771 * inline-frame.c: Include inline-frame.h.
7772
983fb104
PA
77732012-03-01 Pedro Alves <palves@redhat.com>
7774
7775 * tui/tui-data.c (set_gen_win_origin): Delete.
7776 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7777 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7778
5fbce5df
PA
77792012-03-01 Pedro Alves <palves@redhat.com>
7780
7781 * remote.c (encode_actions): Delete declaration.
7782 * tracepoint.c (encode_actions): Make extern.
7783 * tracepoint.h (encode_actions): Declare.
7784
49a8461d
PA
77852012-03-01 Pedro Alves <palves@redhat.com>
7786
7787 * python/py-breakpoint.c: Include python.h.
7788 * python/py-continueevent.c (create_continue_event_object): Make
7789 static.
7790 * python/py-lazy-string.c (stpy_get_type): Make static.
7791 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7792 Make static.
7793 * python/py-utils.c (unicode_to_target_python_string): Make
7794 static.
7795 * python/py-value.c: Include python.h.
7796
9079102f
PA
77972012-03-01 Pedro Alves <palves@redhat.com>
7798
7799 * inferior.c (delete_threads_of_inferior): Delete.
7800
a298c5e8
PA
78012012-03-01 Pedro Alves <palves@redhat.com>
7802
7803 Import fallback definitions from glibc.
7804
7805 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7806 ps_prochandle): Forward declare.
7807 (ps_err_e): Use glibc's comments.
7808 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7809 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7810 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7811 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7812 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7813 (struct ps_prochandle): Adjust comment.
7814
e3084549
PA
78152012-03-01 Pedro Alves <palves@redhat.com>
7816
7817 * ada-lang.c (ada_modulus_from_name): Delete.
7818 * ada-lex.l (lexer_init): Make static.
7819
ad5f7d6e
PA
78202012-03-01 Pedro Alves <palves@redhat.com>
7821
7822 PR gdb/13767
7823
7824 * frame.c (read_frame_register_unsigned): New.
7825 * frame.h (read_frame_register_unsigned): Declare.
7826 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7827 Handle it.
7828 (print_i387_control_word): New parameter `control_p'. Handle it.
7829 (i387_print_float_info): Handle unavailable float registers.
7830
e0a4d108
KS
78312012-03-01 Keith Seitz <keiths@redhat.com>
7832
7833 * linespec.c (decode_line_2): Sort the list of methods
7834 alphabetically before presenting the user with a selection
7835 menu.
7836
122d1940
DE
78372012-03-01 Doug Evans <dje@google.com>
7838
7839 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7840 has_namespace_info.
7841 (dwarf2_read_abbrevs): Remove corresponding initialization.
7842
7d74f244
DE
78432012-03-01 Scott J. Goldman <scottjg@vmware.com>
7844
7845 * NEWS: Mention new python command class gdb.COMMAND_USER.
7846 * cli/cli-cmds.c (show_user): Print error when used on a python
7847 command.
7848 (init_cli_cmds): Update documentation strings for "show user" and
7849 "set/show max-user-call-depth" to clarify that it does not apply to
7850 python commands.
7851 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7852 error check.
7853 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7854 gdb python api.
7855 * top.c (execute_command): Only execute a user-defined command as a
7856 legacy macro if c->user_commands is set.
7857
e88acd96
TT
78582012-03-01 Tom Tromey <tromey@redhat.com>
7859
7860 * valprint.h (struct generic_val_print_decorations): New.
7861 (generic_val_print): Declare.
7862 * valprint.c (generic_val_print): New function.
7863 * p-valprint.c (p_decorations): New global.
7864 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7865 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7866 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7867 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7868 * m2-valprint.c (m2_decorations): New global.
7869 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7870 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7871 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7872 TYPE_CODE_ERROR>: Call generic_val_print.
7873 * f-valprint.c (f_decorations): New global.
7874 (f_val_print): Use print_function_pointer_address.
7875 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7876 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7877 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7878 generic_val_print.
7879 * c-valprint.c (c_decorations): New global.
7880 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7881 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7882 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7883 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7884 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7885 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7886 case.
7887
d3eab38a
TT
78882012-03-01 Tom Tromey <tromey@redhat.com>
7889
7890 * valprint.c (val_print): Update.
7891 * p-valprint (pascal_val_print): Return void.
7892 * p-lang.h (pascal_val_print): Return void.
7893 * m2-valprint.c (m2_val_print): Return void.
7894 * m2-lang.h (m2_val_print): Return void.
7895 * language.h (struct language_defn) <la_val_print>: Return void.
7896 * language.c (unk_lang_val_print): Return void.
7897 * jv-valprint.c (java_val_print): Return void.
7898 * jv-lang.h (java_val_print): Return void.
7899 * f-valprint.c (f_val_print): Return void.
7900 * f-lang.h (f_val_print): Return void.
7901 * d-valprint.c (d_val_print): Return void.
7902 (dynamic_array_type): Update.
7903 * d-lang.h (d_val_print): Return void.
7904 * c-valprint.c (c_val_print): Return void.
7905 * c-lang.h (c_val_print): Return void.
7906 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7907 void.
7908 * ada-lang.h (ada_val_print): Return void.
7909
35c0084b
TT
79102012-03-01 Tom Tromey <tromey@redhat.com>
7911
7912 * value.h (val_print): Return void.
7913 * valprint.c (val_print): Return void.
7914
a1f5dd1b
TT
79152012-03-01 Tom Tromey <tromey@redhat.com>
7916
7917 * value.h (common_val_print): Return void.
7918 * valprint.c (common_val_print): Return void.
7919
8e069a98
TT
79202012-03-01 Tom Tromey <tromey@redhat.com>
7921
7922 * value.h (value_print): Return void.
7923 * valprint.c (value_print): Return void.
7924 * p-valprint.c (pascal_value_print): Return void.
7925 * p-lang.h (pascal_value_print): Return void.
7926 * language.h (struct language_defn) <la_value_print>: Return
7927 void.
7928 * language.c (unk_lang_value_print): Return void.
7929 * jv-valprint.c (java_value_print): Return void.
7930 * jv-lang.h (java_value_print): Return void.
7931 * f-valprint.c (c_value_print): Don't declare.
7932 Include c-lang.h.
7933 * c-valprint.c (c_value_print): Return void.
7934 * c-lang.h (c_value_print): Return void.
7935 * ada-valprint.c (ada_value_print): Return void.
7936 * ada-lang.h (ada_value_print): Return void.
7937
be335936
TT
79382012-03-01 Tom Tromey <tromey@redhat.com>
7939
7940 * value.c (value_primitive_field): Handle virtual base classes.
7941
b0db66a7
TT
79422012-03-01 Tom Tromey <tromey@redhat.com>
7943
7944 * gdbtypes.h (struct vbase): Remove.
7945
132c57b4
TT
79462012-03-01 Tom Tromey <tromey@redhat.com>
7947
7948 * c-valprint.c (print_function_pointer_address): Move...
7949 * valprint.c: ... here. Make non-static.
7950 * m2-valprint.c (print_function_pointer_address): Remove.
7951 * valprint.h (print_function_pointer_address): Declare.
7952
e41eec66
JB
79532012-03-01 Joel Brobecker <brobecker@adacore.com>
7954
7955 * NEWS: Document the fact that one can provide a condition when
7956 creating an Ada exception catchpoint.
7957
19c37f24
TT
79582012-03-01 Tom Tromey <tromey@redhat.com>
7959
7960 * valprint.c (val_print_type_code_flags): Fix placement of
7961 trailing brace.
7962
f0fed3a3
JB
79632012-03-01 Joel Brobecker <brobecker@adacore.com>
7964
7965 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7966 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7967 environment variable before calling update-copyright.
7968
8ba85d85
JB
79692012-03-01 Joel Brobecker <brobecker@adacore.com>
7970
7971 * gnulib/extra/update-copyright: Update to the latest from
7972 gnulib's git repository.
7973 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7974 variable to 2 instead of 1.
7975
8219b1e8
JB
79762012-02-29 Joel Brobecker <brobecker@adacore.com>
7977
7978 * varobj.c (c_value_of_variable): Remove dead code.
7979
718cb7da
JB
79802012-02-29 Joel Brobecker <brobecker@adacore.com>
7981
7982 * ada-lex.p (processId): Do not modify already encoded IDs.
7983 Update function documentation.
7984
739593e0
JB
79852012-02-29 Joel Brobecker <brobecker@adacore.com>
7986
7987 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7988 "name" with "struct symbol *name_sym".
7989 * ada-exp.y (write_var_or_type): Update call to
7990 ada_find_renaming_symbol.
7991 "name" with "struct symbol *name_sym". Adjust Implementation
7992 accordingly. Adjust the function documentation.
7993
852dff6c
JB
79942012-02-29 Joel Brobecker <brobecker@adacore.com>
7995
7996 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7997 * ada-lang.c (ada_find_any_type): Add advance declaration.
7998 Make static. Replace ada_find_any_symbol by
7999 ada_find_any_type_symbol.
8000 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8001 Improve function description. Make static.
8002 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8003 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8004
1b611343
JB
80052012-02-29 Joel Brobecker <brobecker@adacore.com>
8006
8007 * ada-lang.c (struct tag_args): Delete.
8008 (ada_get_tsd_type): Function body moved up in source file.
8009 (ada_tag_name_1, ada_tag_name_2): Delete.
8010 (ada_get_tsd_from_tag): New function.
8011 (ada_tag_name_from_tsd): New function.
8012 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8013 to determine the tag name.
8014
41246937
JB
80152012-02-29 Joel Brobecker <brobecker@adacore.com>
8016
8017 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8018 declaration.
8019 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8020 function.
8021
ffde82bf
JB
80222012-02-29 Joel Brobecker <brobecker@adacore.com>
8023
8024 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8025
2ad01556
JB
80262012-02-29 Joel Brobecker <brobecker@adacore.com>
8027
8028 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8029 full searches.
8030
99b1c762
JB
80312012-02-29 Joel Brobecker <brobecker@adacore.com>
8032
8033 * ada-lang.c (constrained_packed_array_type): If there is a
8034 parallel XA type, use it to determine the array index type.
8035
2d4a02ee
JB
80362012-02-29 Joel Brobecker <brobecker@adacore.com>
8037
8038 * ada-valprint.c (ada_val_print_1): If our value is a reference
8039 to an array descriptor, dereference it before converting it
8040 to a simple array.
8041
c48db5ca
JB
80422012-02-29 Joel Brobecker <brobecker@adacore.com>
8043
8044 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8045 creating fixed value.
8046 (ada_value_ind, ada_coerce_ref, assign_component)
8047 (ada_evaluate_subexp): Remove call to unwrap_value before
8048 call to ada_to_fixed_value.
8049
2e6fda7d
JB
80502012-02-29 Joel Brobecker <brobecker@adacore.com>
8051
8052 * ada-lang.c (to_fixed_array_type): Set result's type name.
8053
5845583d
JB
80542012-02-29 Joel Brobecker <brobecker@adacore.com>
8055
8056 * ada-lang.c (catch_ada_exception_command_split): Add new
8057 argument cond_string. Add support for condition at end of
8058 "catch exception" commands.
8059 (ada_decode_exception_location): Add new argument cond_string.
8060 Update call to catch_ada_exception_command_split.
8061 (create_ada_exception_catchpoint): Add new argument cond_string.
8062 Set the breakpoint condition if needed.
8063 (catch_ada_exception_command): Update call to
8064 ada_decode_exception_location.
8065 (ada_decode_assert_location): Add function documentation.
8066 Add support for condition at end of "catch assert" command.
8067 (catch_assert_command): Update calls to ada_decode_assert_location
8068 and create_ada_exception_catchpoint.
8069
9a7f938f
JK
80702012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 Fix disp-step-syscall.exp: fork: single step over fork.
8073 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8074 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8075 comment, change parameters gdbarch and ptid to regcache. Remove
8076 parameter regcache, initialize gdbarch from regcache here.
8077 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8078 New functions.
8079 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8080 instead.
8081 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8082 'syscall'. Make the 'int' check more strict.
8083
ffdf6de5
JK
80842012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8085
8086 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8087 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8088 (i386_linux_intx80_sysenter_syscall_record): ... here.
8089 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8090 Use the renamed function name.
8091
c70a6932
JK
80922012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8093
8094 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8095 * breakpoint.c (until_break_command): Likewise.
8096 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8097 * infcall.c (call_function_by_hand): Likewise.
8098 * infcmd.c (finish_forward): Likewise.
8099 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8100
05b8a789 81012012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8102
d4cd3da9
JB
8103 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8104 avoid variable assignments inside condition.
8105
6425366c
JK
81062012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8107
8108 Fix static analysis issue found by cppcheck.
8109 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8110 uninitialized BUF for size 2.
8111
c8cef75f 81122012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8113 Nathan Froyd <froydnj@codesourcery.com>
8114 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8115
8116 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8117 (mips16_instruction_has_delay_slot): Likewise.
8118 (mips_segment_boundary): Likewise.
8119 (mips_adjust_breakpoint_address): Likewise.
8120 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8121
473347ad 81222012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8123 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8124
8125 * infrun.c (handle_inferior_event): Don't proceed through
8126 shared library trampolines if stepping at the machine
8127 instruction level.
8128
cf233303
MR
81292012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8130
8131 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8132 too.
8133
cb2cf4ce
TS
81342012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8135
8136 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8137 (sh_stub_unwind_sniffer): New functions.
8138 (sh_stub_unwind): New variable.
8139 (sh_gdbarch_init): Wire everything.
8140
644cebc9
PA
81412012-02-27 Pedro Alves <palves@redhat.com>
8142
8143 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8144 (linux_nat_post_attach_wait): Adjust to use
8145 linux_proc_pid_is_stopped.
8146 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8147 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8148 based on pid_is_stopped from both linux-nat.c and
8149 gdbserver/linux-low.c, and renamed.
8150
283002cf
MR
81512012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8152
8153 * remote.c (remote_watchpoint_addr_within_range): New function.
8154 (init_remote_ops): Use it.
8155
9b3e86b1
MR
81562012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8157
8158 * target.h (target_watchpoint_addr_within_range): Document macro.
8159
e36930bb
PA
81602012-02-24 Pedro Alves <palves@redhat.com>
8161
8162 * stack.c (set_last_displayed_sal): Issue internal_error instead
8163 of warning, and issue it after clearing the last displayed sal.
8164
883bc8d1
PA
81652012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8166 Pedro Alves <palves@redhat.com>
8167
8168 * breakpoint.c (until_break_command): Install breakpoints after
8169 all frame manipulations.
8170
b775012e
LM
81712012-02-24 Luis Machado <lgustavo@codesourcery.com>
8172
8173 * remote.c (remote_supports_cond_breakpoints): New forward
8174 declaration.
8175 (remote_add_target_side_condition): New function.
8176 (remote_insert_breakpoint): Add target-side breakpoint
8177 conditional if supported.
8178 (remote_insert_hw_breakpoint): Likewise.
8179 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8180 hook.
8181
8182 * target.c (update_current_target): Inherit
8183 to_supports_evaluation_of_breakpoint_conditions.
8184 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8185
8186 * target.h (struct target_ops)
8187 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8188 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8189
8190 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8191 (condition_evaluation_both, condition_evaluation_auto,
8192 condition_evaluation_host, condition_evaluation_target,
8193 condition_evaluation_enums, condition_evaluation_mode_1,
8194 condition_evaluation_mode): New static globals.
8195 (translate_condition_evaluation_mode): New function.
8196 (breakpoint_condition_evaluation_mode): New function.
8197 (gdb_evaluates_breakpoint_condition_p): New function.
8198 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8199 (mark_breakpoint_modified): New function.
8200 (mark_breakpoint_location_modified): New function.
8201 (set_condition_evaluation_mode): New function.
8202 (show_condition_evaluation_mode): New function.
8203 (bp_location_compare_addrs): New function.
8204 (get_first_location_gte_addr): New helper function.
8205 (set_breakpoint_condition): Free condition bytecode if locations
8206 has become unconditional. Call mark_breakpoint_modified (...).
8207 (condition_command): Call update_global_location_list (1) for
8208 breakpoints.
8209 (breakpoint_xfer_memory): Use is_breakpoint (...).
8210 (is_breakpoint): New function.
8211 (parse_cond_to_aexpr): New function.
8212 (build_target_condition_list): New function.
8213 (insert_bp_location): Handle target-side conditional
8214 breakpoints and call build_target_condition_list (...).
8215 (update_inserted_breakpoint_locations): New function.
8216 (insert_breakpoint_locations): Handle target-side conditional
8217 breakpoints.
8218 (bpstat_check_breakpoint_conditions): Add comment.
8219 (bp_condition_evaluator): New function.
8220 (bp_location_condition_evaluator): New function.
8221 (print_breakpoint_location): Print information on where the condition
8222 will be evaluated.
8223 (print_one_breakpoint_location): Likewise.
8224 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8225 breakpoint location.
8226 (force_breakpoint_reinsertion): New functions.
8227 (update_global_location_list): Handle target-side breakpoint
8228 conditions.
8229 Reinsert locations that are already inserted if conditions have
8230 changed.
8231 (bp_location_dtor): Free agent expression bytecode.
8232 (disable_breakpoint): Call mark_breakpoint_modified (...).
8233 Call update_global_location_list (...) with parameter 1 for breakpoints.
8234 (disable_command): Call mark_breakpoint_location_modified (...).
8235 Call update_global_location_list (...) with parameter 1 for breakpoints.
8236 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8237 (enable_command): mark_breakpoint_location_modified (...).
8238 (_initialize_breakpoint): Update documentation and add
8239 condition-evaluation breakpoint subcommand.
8240
8241 * breakpoint.h: Include ax.h.
8242 (condition_list): New data structure.
8243 (condition_status): New enum.
8244 (bp_target_info) <cond_list>: New field.
8245 (bp_location) <condition_changed, cond_bytecode>: New fields.
8246 (is_breakpoint): New prototype.
8247
3788aec7
LM
82482012-02-24 Luis Machado <lgustavo@codesourcery.com>
8249
8250 * remote.c (remote_state) <cond_breakpoints>: New field.
8251 (PACKET_ConditionalBreakpoints): New enum.
8252 (remote_cond_breakpoint_feature): New function.
8253 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8254 (remote_supports_cond_breakpoints): New function.
8255 (_initialize_remote): Add new packet configuration for
8256 target-side conditional breakpoints.
8257
72895ff6
LM
82582012-02-24 Luis Machado <lgustavo@codesourcery.com>
8259
8260 * NEWS: Mention target-side conditional breakpoint support,
8261 new condition-evaluation breakpoint subcommand and remote
8262 packet extensions.
8263
dea2aa5f
LM
82642012-02-24 Luis Machado <lgustavo@codesourcery.com>
8265
8266 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8267 number.
8268
8a8bc27f
TS
82692012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8270
8271 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8272 (after_prologue): Remove.
8273
6b446fdf
TT
82742012-02-23 Tom Tromey <tromey@redhat.com>
8275
8276 * jv-valprint.c (java_val_print): Remove dead code.
8277
ef59abfb
TG
82782012-02-23 Tristan Gingold <gingold@adacore.com>
8279
a09130f9
PA
8280 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8281 known_tasks_element and known_tasks_length fields.
8282 (read_known_tasks_array): Change argument type. Use pointer type
8283 and number of elements from DATA. Adjust.
8284 (read_known_tasks_list): Likewise.
8285 (get_known_tasks_addr): Remove.
8286 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8287 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8288 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8289
def166f6
JK
82902012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8291
8292 PR backtrace/13716
8293 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8294 it after set_momentary_breakpoint.
8295
aeaa2474
SA
82962012-02-22 Sterling Augustine <saugustine@google.com>
8297
8298 PR 13689:
8299 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8300
feea76c2
GB
83012012-02-22 Gary Benson <gbenson@redhat.com>
8302
8303 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8304 (find_slot_in_mapped_hash): Likewise.
8305
f06e05e0
JK
83062012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8307
8308 PR build/13638
8309 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8310 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8311 * configure: Regenerate.
8312
b54a8fd7
PA
83132012-02-21 Tristan Gingold <gingold@adacore.com>
8314 Pedro Alves <palves@redhat.com>
8315
8316 * ia64-tdep.c: Do not include libunwind-ia64.h.
8317 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8318 Include libunwind-ia64.h instead of libunwind.h.
8319 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8320 for libunwind.h existence.
8321 * configure, config.in: Regenerate.
8322
dfcee124
AG
83232012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8324
8325 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8326 instead of value_rtti_target_type.
8327 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8328 instead of value_rtti_target_type.
8329 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8330 value_rtti_target_type.
8331 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8332 (value_rtti_target_type): Rename to ...
8333 (value_rtti_indirect_type): ... here and make it indirect. Update
8334 function comment.
8335 * value.c (readjust_indirect_value_type): New function.
8336 (coerce_ref): Support for enclosing type setting for references
8337 with readjust_indirect_value_type.
8338 * value.h (readjust_value_type): New declaration.
8339 (value_rtti_target_type): Rename to ...
8340 (value_rtti_indirect_type): ... here.
8341
02568277
AG
83422012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8343
8344 * MAINTAINERS (Write After Approval): Add myself to the list.
8345
10c07b7e 83462012-02-20 Doug Evans <dje@google.com>
28ee876a 8347
d82ea6a8
DE
8348 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8349 Rename objfile_p_char parameter to objfilep.
8350 (build_objfile_section_table): Result is now void. All callers
8351 updated.
8352 * objfiles.h (struct objfile): Tweak comments, whitespace.
8353 (build_objfile_section_table): Update.
8354
28ee876a
DE
8355 * elfread.c (elf_symfile_segments): Fix warning text.
8356
24c79950
TT
83572012-02-20 Tom Tromey <tromey@redhat.com>
8358
8359 PR gdb/13498:
8360 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8361 particular set of file names once.
8362 (dw2_map_symbol_filenames): Likewise.
8363
3a9b40b6
JK
83642012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8365
8366 Code cleanup.
8367 * main.c (write_files): Remove the declaration.
8368 (external_editor_command): Move the declaration ...
8369 [GDBTK] (external_editor_command): ... here. Fix the comment.
8370
4d0795ca
TT
83712012-02-20 Tom Tromey <tromey@redhat.com>
8372
8373 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8374 extraneous block.
8375
637fd620
TG
83762012-02-20 Tristan Gingold <gingold@adacore.com>
8377
8378 * darwin-nat.h (enum darwin_msg_state): Add comments.
8379
6f124894
TG
83802012-02-20 Tristan Gingold <gingold@adacore.com>
8381
8382 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8383 value.
8384
2e6e3d9c
JB
83852012-20-18 Joel Brobecker <brobecker@adacore.com>
8386
8387 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8388 between function description and implementation.
8389
2e8265fd
TT
83902012-02-17 Tom Tromey <tromey@redhat.com>
8391
8392 PR python/12070:
8393 * python/py-event.c (event_object_getset): New global.
8394 (event_object_type): Reference it.
8395 * python/py-type.c (field_object_getset): New global.
8396 (field_object_type): Reference it.
8397 * python/python-internal.h (gdb_py_generic_dict): Declare.
8398 * python/py-utils.c (gdb_py_generic_dict): New function.
8399
8544a150 84002012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 8401
8544a150 8402 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 8403
ca193e27
TS
84042012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8405
8406 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8407 TYPE_CALLING_CONVENTION annotation.
8408
e5586183
KB
84092012-02-16 Kevin Buettner <kevinb@redhat.com>
8410
8411 * MAINTAINERS: Add rx to target ISA section.
8412 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8413 (ALLDEPFILES): Add rx-tdep.c.
8414
7dcd53a0
TT
84152012-02-16 Tom Tromey <tromey@redhat.com>
8416
8417 * symfile.c (symbol_file_add_main_1): Use inferior's
8418 symfile_flags.
8419 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8420 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8421 inferior.
8422 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8423 inferior.
8424 (follow_exec): Use inferior's symfile_flags.
8425 * inferior.h (struct inferior) <symfile_flags>: New field.
8426
ddd60447
MF
84272012-02-16 Mike Frysinger <vapier@gentoo.org>
8428
8429 PR gdb/9734:
8430 * remote-sim.c (gdbsim_create_inferior): Call error() when
8431 sim_create_inferior() fails.
8432
b0d32fb6
TG
84332012-02-16 Josh Matthews <josh@joshmatthews.net>
8434
8435 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8436
9addecb9
TT
84372012-02-16 Tom Tromey <tromey@redhat.com>
8438
8439 PR c++/13653:
8440 * thread.c (struct current_thread_cleanup) <was_removable>: New
8441 field.
8442 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8443 (make_cleanup_restore_current_thread): Initialize new field.
8444
a58b110a
KB
84452012-02-15 Kevin Buettner <kevinb@redhat.com>
8446
8447 * MAINTAINERS: Add rl78 to target ISA section.
8448 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8449 (ALLDEPFILES): Add rl78-tdep.c.
8450 * NEWS: Mention rl78 as a new target.
8451
4cb6da1c
AR
84522012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8453
8454 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8455 data.
8456 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8457
3af2590d
TT
84582012-02-15 Tom Tromey <tromey@redhat.com>
8459
8460 PR gdb/12659:
8461 * infcmd.c (registers_info): Print just the current register's
8462 name.
8463
c6910659
TT
84642012-02-15 Tom Tromey <tromey@redhat.com>
8465
8466 * python/py-symbol.c (sympy_value): Use _().
8467
7cee1e54
PA
84682012-02-15 Pedro Alves <palves@redhat.com>
8469
8470 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8471 output to be like native targets'.
8472 (remote_pid_to_str): Special case the null ptid.
8473
816338b5
SS
84742012-02-14 Stan Shebs <stan@codesourcery.com>
8475
8476 * NEWS: Mention enable count command.
8477 * breakpoint.h (struct breakpoint): New field enable_count.
8478 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8479 (enable_breakpoint): Add arg to call.
8480 (struct disp_data): New struct.
8481 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8482 (do_map_enable_once_breakpoint): Create a struct and pass it.
8483 (do_map_enable_delete_breakpoint): Ditto.
8484 (do_map_enable_count_breakpoint): New function.
8485 (enable_count_command): New function.
8486 (bpstat_stop_status): Decrement enable_count.
8487 (print_one_breakpoint_location): Report enable count.
8488 (_initialize_breakpoint): Add enable count command.
8489
c47a44f4
KB
84902012-02-14 Kevin Buettner <kevinb@redhat.com>
8491
8492 * rl78-tdep.c (reggroups.h): Include.
8493 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8494 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8495 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8496 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8497 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8498 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8499 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8500 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8501 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8502 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8503 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8504 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8505 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8506 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8507 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8508 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8509 beginning of register list.
8510 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8511 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8512 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8513 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8514 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8515 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8516 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8517 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8518 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8519 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8520 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8521 the pseudo registers. Rearrange other pseudo registers too so
8522 that the bank registers appear at the end.
8523 (rl78_register_type): Account for the fact that the byte sized
8524 bank registers are now pseudo-registers.
8525 (rl78_register_name): Rearrange the register name array. Make
8526 initial set of raw banked registers inaccessible.
8527 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8528 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8529 case for copying bytes back and forth between raw and pseudo
8530 versions of the banked registers. Update other cases to reflect
8531 the changed names.
8532 (rl78_return_value): Update to account for changed names of
8533 raw registers.
8534 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8535 rl78_register_sim_regno().
8536
e4569f1e
KB
85372012-02-14 Kevin Buettner <kevinb@redhat.com>
8538
8539 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8540 the name parameter being passed to find_pc_partial_function().
8541
7a05aae7
JK
85422012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8543
8544 * MAINTAINERS: Step down from being ia64 target maintainer.
8545
11fde611
JK
85462012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8547
8548 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8549 compilation warning.
8550
57008375
JK
85512012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8552
8553 Fix crash on loaded shlibs without loaded exec_bfd.
8554 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8555 (set_section_command): Replace exec_bfd by p->bfd.
8556
ff3c9849
TT
85572012-02-10 Tom Tromey <tromey@redhat.com>
8558
8559 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8560 when we have a C++ qualified name.
8561
db2b9fdd
PA
85622012-02-10 Pedro Alves <palves@redhat.com>
8563
8564 * inferior.c (inferior_pid_to_str): New.
8565 (print_inferior, inferior_command): Use it.
8566
12cd34f3
PA
85672012-02-10 Pedro Alves <palves@redhat.com>
8568
8569 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8570 the test CFLAGS.
8571 * configure: Regenerate.
8572
e871429d
JK
85732012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8574
8575 * linespec.c (decode_line_internal): Fix comment correctness.
8576
1916efaf
PA
85772012-02-09 Valery Khromov <valery.khromov@gmail.com>
8578
8579 PR gdb/12953
8580 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8581 * amd64bsd-nat.c: Add support for debug registers (adapted from
8582 i386bsd-nat.c).
8583 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8584 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8585 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8586 (amd64bsd_dr_get_control): New functions.
8587 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8588 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8589 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8590 watchpoints initialization.
8591 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8592
f4859d94
JK
85932012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8594
8595 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8596 flds_bnds.fields.
8597 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8598
c56a97f9
JK
85992012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8600
8601 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8602
1a119f36
JB
86032012-02-08 Joel Brobecker <brobecker@adacore.com>
8604
8605 * language.h (symbol_name_cmp_ftype): Renames
8606 symbol_name_match_p_ftype.
8607 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8608 la_get_symbol_name_match_p.
8609 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8610 ada_get_symbol_name_match_p. Update comment.
8611 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8612 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8613 Renames symbol_name_match_p. Update field type.
8614 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8615 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8616 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8617 "la_get_symbol_name_cmp" in comments.
8618 * language.c: Likewise.
8619
c71bb1cf
RO
86202012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8621
8622 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8623 %eflags offset.
8624 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8625 (amd64_sol2_gregset32_reg_offs): Likewise.
8626
4b2d20a5
TG
86272012-02-08 Joel Brobecker <brobecker@adacore.com>
8628
8629 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8630 of the returned BFD is allocated by GDB.
8631
f0823d2c
TT
86322012-02-07 Tom Tromey <tromey@redhat.com>
8633
8634 PR python/12027:
8635 * python/python-internal.h (frame_object_type): Declare.
8636 * python/py-symbol.c (sympy_needs_frame): New function.
8637 (sympy_value): New function.
8638 (symbol_object_getset): Add "needs_frame".
8639 (symbol_object_methods): Add "value".
8640 * python/py-frame.c (frame_object_type): No longer static.
8641
64e7d9dd
TT
86422012-02-07 Tom Tromey <tromey@redhat.com>
8643
8644 PR python/13599:
8645 * python/py-symbol.c (sympy_line): New function.
8646 (symbol_object_getset): Add "line".
8647
1d6b2d2b
TT
86482012-02-07 Tom Tromey <tromey@redhat.com>
8649
8650 * charset.c (find_charset_names): Check 'in' against NULL.
8651
0d5cff50
DE
86522012-02-06 Doug Evans <dje@google.com>
8653
8654 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8655 and fields.name members from char * to const char *. All uses updated.
8656 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8657 from char * to const char *. All uses updated.
8658 (type_name_no_tag): Update.
8659 (lookup_unsigned_typename, lookup_signed_typename): Update.
8660 * gdbtypes.c (type_name_no_tag): Change result type
8661 from char * to const char *. All callers updated.
8662 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8663 name parameter from char * to const char *.
8664 * symtab.h (struct cplus_specific): Change type of demangled_name
8665 member from char * to const char *. All uses updated.
8666 (struct general_symbol_info): Change type of name and
8667 mangled_lang.demangled_name members from char * to const char *.
8668 All uses updated.
8669 (symbol_get_demangled_name, symbol_natural_name): Update.
8670 (symbol_demangled_name, symbol_search_name): Update.
8671 * symtab.c (symbol_get_demangled_name): Change result type
8672 from char * to const char *. All callers updated.
8673 (symbol_natural_name, symbol_demangled_name): Ditto.
8674 (symbol_search_name): Ditto.
8675 (completion_list_add_name): Change type of symname,sym_text,
8676 text,word parameters from char * to const char *.
8677 (completion_list_objc_symbol): Change type of sym_text,
8678 text,word parameters from char * to const char *.
8679 * ada-lang.c (find_struct_field): Change type of name parameter
8680 from char * to const char *.
8681 (encoded_ordered_before): Similarly for N0,N1 parameters.
8682 (old_renaming_is_invisible): Similarly for function_name parameter.
8683 (ada_type_name): Change result type from char * to const char *.
8684 All callers updated.
8685 * ada-lang.h (ada_type_name): Update.
8686 * buildsym.c (hashname): Change type of name parameter
8687 from char * to const char *.
8688 * buildsym.h (hashname): Update.
8689 * dbxread.c (end_psymtab): Change type of include_list parameter
8690 from char ** to const char **.
8691 * dwarf2read.c (determine_prefix): Change result type
8692 from char * to const char *. All callers updated.
8693 * f-lang.c (find_common_for_function): Change type of name, funcname
8694 parameters from char * to const char *.
8695 * f-lang.c (find_common_for_function): Update.
8696 * f-valprint.c (list_all_visible_commons): Change type of funcname
8697 parameters from char * to const char *.
8698 * gdbarch.sh (static_transform_name): Change type of name parameter
8699 and result from char * to const char *.
8700 * gdbarch.c: Regenerate.
8701 * gdbarch.h: Regenerate.
8702 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8703 of name parameter from char * to const char *.
8704 * jv-lang.c (java_primitive_type_from_name): Ditto.
8705 (java_demangled_signature_length): Similarly for signature parameter.
8706 (java_demangled_signature_copy): Ditto.
8707 (java_demangle_type_signature): Ditto.
8708 * jv-lang.h (java_primitive_type_from_name): Update.
8709 (java_demangle_type_signature): Update.
8710 * objc-lang.c (specialcmp): Change type of a,b parameters
8711 from char * to const char *.
8712 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8713 from char * to const char *. All callers updated.
8714 * p-lang.h (is_pascal_string_type): Update.
8715 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8716 of name parameter from char * to const char *.
8717 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8718 * utils.c (fprintf_symbol_filtered): Ditto.
8719 * defs.h (fprintf_symbol_filtered): Update.
8720 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8721 * stabsread.h (end_psymtab): Update.
8722 * stack.c (find_frame_funname): Change type of funname parameter
8723 from char ** to const char **.
8724 * stack.h (find_frame_funname): Update.
8725 * typeprint.c (type_print): Change type of varstring parameter
8726 from char * to const char *.
8727 * value.h (type_print): Update.
8728 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8729 from char * to const char *. All callers updated.
8730 (xcoff_end_psymtab): Change type of include_list parameter
8731 from char ** to const char **. All callers updated.
8732 (swap_sym): Similarly for name parameter. All callers updated.
8733 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8734 Use xstrdup.
8735 (process_coff_symbol): Use xstrdup.
8736 * stabsread.c (stabs_method_name_from_physname): Renamed from
8737 update_method_name_from_physname. Change result type from void
8738 to char *. All callers updated.
8739 (read_member_functions): In has_destructor case, store name in objfile
8740 obstack instead of malloc space. In !has_stub case, fix mem leak.
8741
5579a92e
TT
87422012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8743
8744 * configure: Rebuild.
8745 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8746 LDFLAGS.
8747
9058f767
KB
87482012-02-03 Kevin Buettner <kevinb@redhat.com>
8749
8750 * configure.tgt (rl78-*-elf): New target.
8751 * rl78-tdep.c: New file.
8752
5b37825d
PW
87532012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8754
8755 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8756 and continue the loop. Add QUIT statement.
8757
e009ee71
TT
87582012-02-03 Tom Tromey <tromey@redhat.com>
8759
8760 PR gdb/13596:
8761 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8762 bfd_lookup_symbol_from_symtab.
8763 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8764 gdb_bfd_lookup_symbol_from_symtab.
8765
f7e44f65
JB
87662012-02-03 Joel Brobecker <brobecker@adacore.com>
8767
8768 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8769 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8770 symbol. Add assertion that sym2 is never NULL.
8771
2c02bd72
DE
87722012-02-02 Doug Evans <dje@google.com>
8773
8774 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8775 "name" parameter to const char ** from char **. All callers updated.
8776 (find_pc_partial_function): Ditto.
8777 (cache_pc_function_name): Change type to const char * from char *.
8778 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8779 (find_pc_partial_function): Update.
8780 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8781 type of "name" parameter to const char * from char *.
8782 All uses updated.
8783 * arch-utils.c (generic_in_solib_return_trampoline): Change
8784 type of "name" parameter to const char * from char *.
8785 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8786 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8787 type of "name" parameter to const char * from char *.
8788 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8789 * gdbarch.c: Regenerate.
8790 * gdbarch.h: Regenerate.
8791 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8792 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8793 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8794 type of "name" parameter to const char * from char *.
8795 * skip.c (skip_function_pc): Ditto.
8796 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8797 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8798 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8799 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8800 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8801 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8802 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8803 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8804 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8805
e886a173
PA
88062012-02-02 Pedro Alves <palves@redhat.com>
8807
8808 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8809 the current inferior has no execution. Make sure the current
8810 remote process matches gdb's current inferior.
8811
c709a7c2
TT
88122012-02-02 Tom Tromey <tromey@redhat.com>
8813
8814 PR gdb/13405:
8815 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8816 read-only memory.
8817
f149aabd
TT
88182012-02-02 Tom Tromey <tromey@redhat.com>
8819
8820 PR gdb/9307:
8821 * symtab.c (lookup_language_this): Set block_found.
8822
03bef283
TT
88232012-02-01 Tom Tromey <tromey@redhat.com>
8824
8825 PR gdb/13431:
8826 * jit.c (struct jit_inferior_data): Rewrite.
8827 (struct jit_objfile_data): New.
8828 (get_jit_objfile_data): New function.
8829 (add_objfile_entry): Update.
8830 (jit_read_descriptor): Return int. Replace descriptor_addr
8831 argument with inf_data. Update. Don't call error.
8832 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8833 descriptor here.
8834 (jit_inferior_init): Don't look up descriptor. Don't call error.
8835 (jit_reset_inferior_data_and_breakpoints)
8836 (jit_inferior_created_observer): Remove.
8837 (jit_inferior_exit_hook): Update.
8838 (jit_executable_changed_observer): Remove.
8839 (jit_event_handler): Update.
8840 (free_objfile_data): Reset inferior data if needed.
8841 (_initialize_jit): Update.
8842
f0bbc364
TT
88432012-02-01 Tom Tromey <tromey@redhat.com>
8844
8845 * jit.c (bfd_open_from_target_memory): Move higher in file.
8846
47c1316c
TG
88472012-02-01 Tristan Gingold <gingold@adacore.com>
8848
8849 * libunwind-frame.c (libunwind_load): Display message if dlopen
8850 failed.
8851
8e704927
GB
88522012-02-01 Gary Benson <gbenson@redhat.com>
8853
09c7a31f 8854 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
8855 (iterate_over_symbols): Use the above.
8856 * symtab.c (iterate_over_symbols): Likewise.
8857 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8858 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8859 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8860 (iterate_name_matcher): Document return values.
8861 (collect_one_symbol): Likewise.
8862 (collect_function_symbols): Likewise.
8863 (collect_symbols): Likewise.
8864
d9680e73
TT
88652012-02-01 Tom Tromey <tromey@redhat.com>
8866
8867 * ada-lang.c (resolve_subexp): Update.
8868 (ada_lookup_symbol_list): Add 'full_search' argument.
8869 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8870 ada_lookup_symbol_list.
8871 (ada_lookup_encoded_symbol): Update.
8872 (get_var_value): Update.
8873 * ada-exp.y (block_lookup): Update.
8874 (write_var_or_type): Update.
8875 (write_name_assoc): Update.
8876 * ada-lang.h (ada_lookup_symbol_list): Update.
8877
72e1143f
TT
88782012-01-31 Tom Tromey <tromey@redhat.com>
8879
8880 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8881 comment.
8882
ab2d2ad3
DE
88832012-01-31 Doug Evans <dje@google.com>
8884
8885 * symtab.h: Remove outdated comment.
e9111bf7 8886 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 8887
bc884eba
JB
88882012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8889
8890 Fix build error in Darwin port.
8891 * i386-darwin-nat.c: Include i386-nat.h.
8892
8fc3fc34
TT
88932012-01-30 Tom Tromey <tromey@redhat.com>
8894
8895 PR breakpoints/13568:
8896 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8897 argument. Check for recursive includes.
8898 (dwarf_decode_macros): Create an include hash.
8899
5d853008
ME
89002012-01-30 Michael Eager <eager@eagercon.com>
8901
8902 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8903 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 8904 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
8905 (powerpc_linux_in_plt_stub): New function.
8906 (powerpc_linux_in_dynsym_resolve_code): New function.
8907 (ppc_skip_trampoline_code): New function.
8908 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8909 Use glibc_skip_solib_resolver.
8910
40478521
JK
89112012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8912
8913 Code cleanup: Make 1440 bytes of data segment read-only.
8914 * arch-utils.c (endian_enum): Make it const char *const [].
8915 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8916 Likewise.
8917 * breakpoint.c (always_inserted_enums): Likewise.
8918 * cli/cli-cmds.c (script_ext_enums): Likewise.
8919 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8920 enumlist parameter const char *const *.
8921 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8922 const char *const *.
8923 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8924 parameter const char *const *.
8925 * cris-tdep.c (cris_modes): Make it const char *const [].
8926 * filesystem.c (target_file_system_kinds): Likewise.
8927 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8928 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8929 (can_use_displaced_stepping_enum, scheduler_enums)
8930 (exec_direction_names): Likewise.
8931 * language.c (_initialize_language): Make the type_or_range_names and
8932 case_sensitive_names variables const char *const [].
8933 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8934 * python/python.c (python_excp_enums): Likewise.
8935 * remote.c (interrupt_sequence_modes): Likewise.
8936 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8937 * serial.c (logbase_enums): Likewise.
8938 * sh-tdep.c (sh_cc_enum): Likewise.
8939 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8940 Likewise.
8941 * symtab.c (multiple_symbols_modes): Likewise.
8942 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8943 Likewise.
8944 * utils.c (internal_problem_modes): Likewise.
8945
b3b8b934
JK
89462012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8947
8948 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8949 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8950 result.
8951
8c85a4e2
DE
89522012-01-27 Doug Evans <dje@google.com>
8953
8954 * configure.ac (with_python): Fix absolute path handling for win32.
8955 * configure: Regenerate.
8956
78d8b4d7
DE
89572012-01-26 Doug Evans <dje@google.com>
8958
eca864fe
DE
8959 * symtab.c: Whitespace cleanup, no code changes.
8960
7e082072
DE
8961 * symtab.c (lookup_symbol_in_language): Improve comment.
8962 (lookup_symbol_aux): Fix comment.
8963
7dc25483
DE
8964 * psymtab.c (add_psymbol_to_list): Result is now "void".
8965 * psympriv.h (add_psymbol_to_list): Update.
8966
78d8b4d7
DE
8967 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8968
4c63965b
JK
89692012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8970
8971 Do not open script filenames twice.
8972 * cli/cli-cmds.c (source_script_from_stream): Pass to
8973 source_python_script also STREAM.
8974 * python/py-auto-load.c (source_section_scripts): Pass to
8975 source_python_script_for_objfile also STREAM.
8976 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8977 also INPUT.
8978 * python/python-internal.h (source_python_script_for_objfile): New
8979 parameter file, rename parameter file to filename.
8980 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8981 instead if !_WIN32. Update the function comment.
8982 (source_python_script, source_python_script_for_objfile)
8983 (source_python_script): New parameter file, rename parameter file to
8984 filename. Pass FILENAME to python_run_simple_file.
8985 * python/python.h (source_python_script): New parameter file, rename
8986 parameter file to filename.
8987
88f38a04
PA
89882012-01-26 Pedro Alves <palves@redhat.com>
8989
8990 * corelow.c (core_has_fake_pid): Delete.
8991 (core_close): Delete references to `core_has_fake_pid'.
8992 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8993 (core_open): Delete references to `core_has_fake_pid'.
8994 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8995 the removed global.
8996
e078317b
JB
89972012-01-26 Joel Brobecker <brobecker@adacore.com>
8998
8999 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9000 Remove language parameter from name_matcher. Adjust the comment.
9001 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9002 Remove language parameter.
9003 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9004 * linespec.c (iterate_name_matcher): Likewise.
9005 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9006 name_matcher. Adjust call accordingly.
9007 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9008 (maintenance_check_symtabs): Adjust type of parameter "fun".
9009 * psymtab.h (maintenance_check_symtabs): Likewise.
9010
74ccd7f5
JB
90112012-01-26 Joel Brobecker <brobecker@adacore.com>
9012
9013 * language.h (symbol_name_match_p_ftype): New typedef.
9014 (struct language_defn): Replace field la_symbol_name_compare
9015 by la_get_symbol_name_match_p.
9016 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9017 (ada_language_defn): Use it.
9018 * linespec.c (struct symbol_matcher_data): New type.
9019 (iterate_name_matcher): Rewrite.
9020 (iterate_over_all_matching_symtabs): Pass a pointer to
9021 a symbol_matcher_data struct to expand_symtabs_matching
9022 instead of just the lookup name.
9023 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9024 opencl-lang.c, p-lang.c, language.c: Delete field
9025 la_symbol_name_compare, and replace by NULL for new field
9026 la_get_symbol_name_match_p.
9027 * symfile.h (struct quick_symbol_functions): Update comment.
9028
5d268276
TT
90292012-01-25 Tom Tromey <tromey@redhat.com>
9030
9031 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9032 dereferencing.
9033
edcc5120
TT
90342012-01-24 Tom Tromey <tromey@redhat.com>
9035
9036 PR symtab/12406:
9037 * solib.c (update_solib_list): Update the program space's
9038 added_solibs and deleted_solibs fields.
9039 * progspace.h (struct program_space) <added_solibs,
9040 deleted_solibs>: New fields.
9041 (clear_program_space_solib_cache): Declare.
9042 * progspace.c (release_program_space): Call
9043 clear_program_space_solib_cache.
9044 (clear_program_space_solib_cache): New function.
9045 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9046 bpstat_stop_status. Use handle_solib_event.
9047 * breakpoint.c: Include gdb_regex.h.
9048 (print_solib_event): New function.
9049 (bpstat_print): Use print_solib_event.
9050 (bpstat_stop_status): Add special case for bp_shlib_event.
9051 (handle_solib_event): New function.
9052 (bpstat_what): Use handle_solib_event.
9053 (struct solib_catchpoint): New.
9054 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9055 (breakpoint_hit_catch_solib, check_status_catch_solib)
9056 (print_it_catch_solib, print_one_catch_solib)
9057 (print_mention_catch_solib, print_recreate_catch_solib): New
9058 functions.
9059 (catch_solib_breakpoint_ops): New global.
9060 (catch_load_or_unload, catch_load_command_1)
9061 (catch_unload_command_1): New functions.
9062 (internal_bkpt_check_status): Add special case for
9063 bp_shlib_event.
9064 (internal_bkpt_print_it): Use print_solib_event.
9065 (initialize_breakpoint_ops): Initialize
9066 catch_solib_breakpoint_ops.
9067 (_initialize_breakpoint): Register "catch load" and "catch
9068 unload".
9069 * breakpoint.h (handle_solib_event): Declare.
9070 * NEWS: Add entry for "catch load" and "catch unload".
9071
fa864999
TT
90722012-01-24 Tom Tromey <tromey@redhat.com>
9073
9074 * ada-lang.c: Include gdb_vecs.h.
9075 * charset.c: Include gdb_vecs.h.
9076 * tracepoint.h: Include gdb_vecs.h.
9077 * gdb_vecs.h: New file.
9078
f90263c1
TT
90792012-01-24 Pedro Alves <pedro@codesourcery.com>
9080
9081 * breakpoint.c (breakpoint_hit_catch_fork)
9082 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9083 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9084 * infrun.c (inferior_has_forked, inferior_has_vforked)
9085 (inferior_has_execd, inferior_has_called_syscall): Delete.
9086 (handle_syscall_event): Get syscall_number from the execution
9087 control state's wait status.
9088 (wait_for_inferior): Don't clear syscall_number.
9089
09ac7c10
TT
90902012-01-24 Pedro Alves <palves@redhat.com>
9091
9092 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9093 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9094 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9095 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9096 `ws' parameter.
9097 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9098 false for events other than TARGET_SIGNAL_TRAP.
9099 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9100 Add `ws' parameter.
9101 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9102 events other than TARGET_SIGNAL_TRAP.
9103 (tracepoint_breakpoint_hit): Add `ws' parameter.
9104 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9105 parameter.
9106 (bpstat_stop_status): Same.
9107 (pc_at_non_inline_function): Same.
9108 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9109 to pass the current event's waitstatus to bpstat_stop_status
9110 and pc_at_non_inline_function.
9111
86eb7e95
JK
91122012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9113
9114 Code cleanup.
9115 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9116 Update the function comment for it.
9117 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9118 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9119 for STREAM.
9120
a9b3a50f
PA
91212012-01-24 Pedro Alves <palves@redhat.com>
9122
9123 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9124 outside `bs->stop' block.
9125 (bpstat_what): Rework bp_shlib_event handling.
9126 (internal_bkpt_check_status): If the breakpoint is a
9127 bp_shlib_event, then set bs->stop and bs->print if
9128 stop_on_solib_events is set.
9129
53fe1783
GB
91302012-01-24 Gary Benson <gbenson@redhat.com>
9131
9132 Delete #if 0'd out code.
9133 * stack.c (print_frame_label_vars): Remove.
9134 (catch_info): Likewise.
9135 (_initialize_stack): Remove "info catch" command.
9136 * NEWS: Mention the above.
9137
49c62f2e
PA
91382012-01-24 Pedro Alves <palves@redhat.com>
9139
9140 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9141 it.
9142 (remote_notice_new_inferior): If the remote end doesn't support
9143 the multiprocess extensions, then the PID is fake.
9144 (add_current_inferior_and_thread): New.
9145 (remote_start_remote): Use it.
9146 (extended_remote_attach_1): Adjust.
9147 (extended_remote_create_inferior_1): Use
9148 add_current_inferior_and_thread.
9149
d0d8b0c6
JK
91502012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9151
9152 Fix watchpoints to be specific for each inferior.
9153 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9154 current_program_space.
9155 * i386-nat.c (i386_inferior_data_cleanup): New.
9156 (i386_inferior_data_get): Replace variable inf_data_local by an
9157 inferior_data call.
9158 (i386_use_watchpoints): Initialize i386_inferior_data.
9159 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9160 specific iterate_over_lwps.
9161
4403d8e9
JK
91622012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9163
9164 Fix watchpoints across inferior fork.
9165 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9166 comment for linux_nat_iterate_watchpoint_lwps.
9167 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9168 linux_nat_iterate_watchpoint_lwps.
9169 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9170 * i386-linux-nat.c (update_debug_registers_callback): Update the
9171 comment for linux_nat_iterate_watchpoint_lwps.
9172 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9173 linux_nat_iterate_watchpoint_lwps.
9174 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9175 * i386-nat.c: Include inferior.h.
9176 (dr_mirror): Remove.
9177 (i386_inferior_data, struct i386_inferior_data)
9178 (i386_inferior_data_get): New.
9179 (i386_debug_reg_state): Use i386_inferior_data_get.
9180 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9181 (i386_insert_watchpoint, i386_remove_watchpoint)
9182 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9183 (i386_remove_hw_breakpoint): New variable state, use
9184 i386_debug_reg_state instead of DR_MIRROR.
9185 * linux-nat.c (delete_lwp): New declaration.
9186 (num_lwps): Move here from downwards.
9187 (delete_lwp_cleanup): New.
9188 (linux_child_follow_fork): Create new child_lp, call
9189 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9190 PTRACE_DETACH.
9191 (num_lwps): Move upwards.
9192 (linux_nat_iterate_watchpoint_lwps): New.
9193 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9194 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9195
2992c9a7 91962012-01-24 Joel Brobecker <brobecker@adacore.com>
9197
9198 GDB 7.4 released.
9199
e360902b
PA
92002012-01-23 Pedro Alves <palves@redhat.com>
9201
9202 * top.c (caution): Rename to ...
9203 (confirm): ... this.
9204 (show_caution): Rename to ...
9205 (show_confirm): ... this.
9206 (quit_cover): Adjust.
9207 (init_main): Adjust.
9208 * top.h (caution): Rename to ...
9209 (confirm): ... this.
9210 * utils.c (internal_vproblem, defaulted_query): Adjust.
9211
050a2e1d
PA
92122012-01-23 Pedro Alves <palves@redhat.com>
9213
9214 * top.c (caution): Update comment.
9215 (execute_command): Don't consider the current value of `caution'.
9216
77a35dd8
JK
92172012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9218
9219 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9220
a71b5a38
UW
92212012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9222
9223 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9224 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9225 * target.c (target_fileio_pwrite): Remove buffer address from
9226 debug output.
9227 (target_fileio_pread): Likewise.
9228
d99bd577
UW
92292012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9230
9231 * NEWS: Document remote "info proc" and "generate-core-file".
9232
35c2fab7
UW
92332012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9234
9235 * gdbarch.sh (find_memory_regions): New callback.
9236 * gdbarch.c, gdbarch.h: Regenerate.
9237
9238 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9239 callback before falling back to target method.
9240
9241 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9242 (linux_target_install_ops): No longer install it.
9243
9244 * linux-tdep.c (linux_find_memory_regions): New function.
9245 (linux_init_abi): Install it.
9246
6432734d
UW
92472012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9248
9249 * gdbarch.sh (make_corefile_notes): New architecture callback.
9250 * gdbarch.c: Regenerate.
9251 * gdbarch.h: Likewise.
9252
9253 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9254 before target_make_corefile_notes. If NULL is returned, the
9255 target does not support core file generation.
9256
9257 * linux-nat.c: Include "linux-tdep.h".
9258 (find_signalled_thread, find_stop_signal): Remove.
9259 (linux_nat_do_thread_registers): Likewise.
9260 (struct linux_nat_corefile_thread_data): Likewise.
9261 (linux_nat_corefile_thread_callback): Likewise.
9262 (iterate_over_spus): Likewise.
9263 (struct linux_spu_corefile_data): Likewise.
9264 (linux_spu_corefile_callback): Likewise.
9265 (linux_spu_make_corefile_notes): Likewise.
9266 (linux_nat_collect_thread_registers): New function.
9267 (linux_nat_make_corefile_notes): Replace contents by call to
9268 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9269 as native-only callback.
9270
9271 * linux-tdep.h: Include "bfd.h".
9272 (struct regcache): Add forward declaration.
9273 (linux_collect_thread_registers_ftype): New typedef.
9274 (linux_make_corefile_notes): Add prototype.
9275 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9276 "regset.h", and "elf-bfd.h".
9277 (find_signalled_thread, find_stop_signal): New functions.
9278 (linux_spu_make_corefile_notes): Likewise.
9279 (linux_collect_thread_registers): Likewise.
9280 (struct linux_corefile_thread_data): New data structure.
9281 (linux_corefile_thread_callback): New funcion.
9282 (linux_make_corefile_notes): Likewise.
9283 (linux_make_corefile_notes_1): Likewise.
9284 (linux_init_abi): Install it.
9285
3030c96e
UW
92862012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9287
9288 * gdbarch.sh (info_proc): New callback.
9289 * gdbarch.c, gdbarch.h: Regenerate.
9290
9291 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9292 before falling back to the target info_proc callback.
9293
9294 * linux-nat.c: Do not include "cli/cli-utils.h".
9295 (linux_nat_info_proc): Remove.
9296 (linux_target_install_ops): No longer install it.
9297
9298 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9299 (read_mapping): New function.
9300 (linux_info_proc): Likewise.
9301 (linux_init_abi): Install it.
9302
145b16a9
UW
93032012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9304
9305 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9306 * infcmd.c: (info_proc_cmd_1): New function.
9307 (info_proc_cmd): New function, moved here from equivalent routine
9308 orignally in linux-nat.c.
9309 (info_proc_cmd_mappings): Likewise.
9310 (info_proc_cmd_stat): Likewise.
9311 (info_proc_cmd_status): Likewise.
9312 (info_proc_cmd_cwd): Likewise.
9313 (info_proc_cmd_cmdline): Likewise.
9314 (info_proc_cmd_exe): Likewise.
9315 (info_proc_cmd_all): Likewise.
9316 (_initialize_infcmd): Install "info proc" command and subcommands.
9317
9318 * target.h (struct target_ops): Add to_info_proc.
9319 (target_info_proc): Add prototype.
9320 * target.c (target_info_proc): New function.
9321
9322 * procfs.c (procfs_info_proc): Add prototype.
9323 (info_proc_cmd): Rename into ...
9324 (procfs_info_proc): ... this. Update argument types as appropriate
9325 for a to_info_proc implementation. Handle "what" argument.
9326 (procfs_target): Install procfs_info_proc.
9327 (_initialize_procfs): No longer install "info proc" command.
9328
9329 * linux-nat.c: (enum info_proc_what): Remove.
9330 (linux_nat_info_proc_cmd_1): Rename into ...
9331 (linux_nat_info_proc): ... this. Update argument types as appropriate
9332 for a to_info_proc implementation.
9333 (linux_nat_info_proc_cmd): Remove.
9334 (linux_nat_info_proc_cmd_mappings): Likewise.
9335 (linux_nat_info_proc_cmd_stat): Likewise.
9336 (linux_nat_info_proc_cmd_status): Likewise.
9337 (linux_nat_info_proc_cmd_cwd): Likewise.
9338 (linux_nat_info_proc_cmd_cmdline): Likewise.
9339 (linux_nat_info_proc_cmd_exe): Likewise.
9340 (linux_nat_info_proc_cmd_all): Likewise.
9341 (linux_target_install_ops): Install linux_nat_info_proc.
9342 (_initialize_linux_nat): No longer install "info proc" command
9343 and subcommands.
9344
b9e7b9c3
UW
93452012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9346
9347 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9348 * config.in, configure: Regenerate.
9349
9350 * target.h (struct target_ops): Add to_fileio_readlink.
9351 (target_fileio_readlink): Add prototype.
9352 * target.c (target_fileio_readlink): New function.
9353
9354 * inf-child.c: Conditionally include <sys/param.h>.
9355 (inf_child_fileio_readlink): New function.
9356 (inf_child_target): Install it.
9357
9358 * remote.c (PACKET_vFile_readlink): New enum value.
9359 (remote_hostio_readlink): New function.
9360 (init_remote_ops): Install it.
9361 (_initialize_remote): Handle vFile:readlink packet type.
9362
7313baad
UW
93632012-01-20 Pedro Alves <palves@redhat.com>
9364 Ulrich Weigand <ulrich.weigand@linaro.org>
9365
9366 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9367 * config.in, configure: Regenerate.
9368
9369 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9370 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9371 (target_fileio_open): Add prototype.
9372 (target_fileio_pwrite): Likewise.
9373 (target_fileio_pread): Likewise.
9374 (target_fileio_close): Likewise.
9375 (target_fileio_unlink): Likewise.
9376 (target_fileio_read_alloc): Likewise.
9377 (target_fileio_read_stralloc): Likewise.
9378
9379 * target.c: Include "gdb/fileio.h".
9380 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9381 (default_fileio_target): New function.
9382 (target_fileio_open): Likewise.
9383 (target_fileio_pwrite): Likewise.
9384 (target_fileio_pread): Likewise.
9385 (target_fileio_close): Likewise.
9386 (target_fileio_unlink): Likewise.
9387 (target_fileio_close_cleanup): Likewise.
9388 (target_fileio_read_alloc_1): Likewise.
9389 (target_fileio_read_alloc): Likewise.
9390 (target_fileio_read_stralloc): Likewise.
9391
9392 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9393 <fcntl.h>, and <unistd.h>.
9394 (inf_child_fileio_open_flags_to_host): New function.
9395 (inf_child_errno_to_fileio_error): Likewise.
9396 (inf_child_fileio_open): Likewise.
9397 (inf_child_fileio_pwrite): Likewise.
9398 (inf_child_fileio_pread): Likewise.
9399 (inf_child_fileio_close): Likewise.
9400 (inf_child_fileio_unlink): Likewise.
9401 (inf_child_target): Install to_fileio routines.
9402
9403 * remote.c (init_remote_ops): Install to_fileio routines.
9404
901f9912
UW
94052012-01-20 Pedro Alves <palves@redhat.com>
9406 Ulrich Weigand <ulrich.weigand@linaro.org>
9407
9408 * remote.c (remote_multi_process_p): Only check for multi-process
9409 protocol feature, do not check for extended protocol.
9410 (remote_supports_multi_process): Check for extended protocol here.
9411 (set_general_process): Likewise.
9412 (extended_remote_kill): Likewise.
9413 (remote_pid_to_str): Likewise.
9414 (remote_query_supported): Always query multiprocess mode.
9415
e714e1bf
UW
94162012-01-20 Pedro Alves <palves@redhat.com>
9417 Ulrich Weigand <ulrich.weigand@linaro.org>
9418
9419 * inferior.h (struct inferior): Add fake_pid_p.
9420 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9421 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9422 magic_null_ptid since the remote side doesn't provide a real PID.
9423
50897289
TT
94242012-01-19 Tom Tromey <tromey@redhat.com>
9425
9426 * NEWS: Combine the two Python sections.
9427
1afc2033
JK
94282012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9429
9430 * target.h (target_close): Update comment on the target's unpush state.
9431
305436e0
PA
94322012-01-19 Pedro Alves <palves@redhat.com>
9433
9434 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9435 linux_nat_async directly instead of going through the target
9436 vector.
9437 * target.c (unpush_target): Close target after unpushing it, not
9438 before.
9439
49323895
GB
94402012-01-19 Gary Benson <gbenson@redhat.com>
9441
9442 * mdebugread.c (sort_blocks): Replace integer constants with ones
9443 derived from FIRST_LOCAL_BLOCK.
9444
1db33378
PP
94452012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9446 Jan Kratochvil <jan.kratochvil@redhat.com>
9447
9448 PR gdb/9538
9449 * symfile.c (find_separate_debug_file): New function.
9450 (terminate_after_last_dir_separator): Likewise.
9451 (find_separate_debug_file_by_debuglink): Also try realpath.
9452 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9453 * configure: Regenerate.
9454 * config.in: Regenerate.
9455
f83d8a90
DE
94562012-01-18 Doug Evans <dje@google.com>
9457
9458 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9459 (main.o): Remove rule.
9460 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9461 (--with-sysroot): Rewrite.
9462 * configure: Regenerate.
9463 * config.in: Regenerate.
9464
2dbca4d6
SDJ
94652012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9466
9467 * parse.c (initialize_expout): New function.
9468 (reallocate_expout): Likewise.
9469 (parse_exp_in_context): Use `initialize_expout' and
9470 `reallocate_expout' when appropriate.
9471
0695b514
PA
94722012-01-18 Pedro Alves <palves@redhat.com>
9473
9474 * record.c (struct record_breakpoint, record_breakpoint_p)
9475 (record_breakpoints): New.
9476 (record_insert_breakpoint, record_remove_breakpoint): Manage
9477 record breakpoints list. Only remove breakpoints from the
9478 inferior if they had been inserted there in the first place.
9479
136e1c30
DE
94802012-01-17 Doug Evans <dje@google.com>
9481
9482 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9483 if we know we don't have a file name to look for.
9484
c0bf857d
PA
94852012-01-17 Pedro Alves <palves@redhat.com>
9486
9487 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9488 the frame's stop reason is UNWIND_UNAVAILABLE.
9489
b486de60
JK
94902012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9491
9492 Fix compilation error.
9493 * m2-exp.y (yyerror): Use ANSI C prototype.
9494
d04550a6
SDJ
94952012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9496
9497 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9498 (growbuf_by_size): Likewise.
9499 (yyerror): Likewise.
9500 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9501 (modblock): Remove variable (was #if 0'ed).
9502 (parse_number): Convert prototype from K&R to ANSI C.
9503 (yyerror): Likewise.
9504 * objc-exp.y (parse_number): Likewise.
9505 (yyerror): Likewise.
9506 (yylex): Remove #if 0'ed code.
9507 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9508 (yyerror): Likewise.
9509
4aac40c8
TT
95102012-01-16 Tom Tromey <tromey@redhat.com>
9511
9512 * NEWS: Add item.
9513 * symtab.h (compare_filenames_for_search): Declare.
9514 * symtab.c (compare_filenames_for_search): New function.
9515 (iterate_over_some_symtabs): Use it.
9516 * symfile.h (struct quick_symbol_functions)
9517 <map_symtabs_matching_filename>: Change spec.
9518 * psymtab.c (partial_map_symtabs_matching_filename): Use
9519 compare_filenames_for_search. Update for new spec.
9520 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9521 compare_filenames_for_search. Update for new spec.
9522 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9523
cafec441
TT
95242012-01-16 Tom Tromey <tromey@redhat.com>
9525
9526 PR python/13281:
9527 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9528 (struct main_type) <flag_flag_enum>: New field.
9529 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9530 * NEWS: Add entries.
9531 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9532 enums.
9533 * python/lib/gdb/printing.py (_EnumInstance): New class.
9534 (FlagEnumerationPrinter): Likewise.
9535
983af33b
SDJ
95362012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9537
9538 * breakpoint.c (create_sals_from_address_default): New function.
9539 (create_breakpoints_sal_default): Likewise.
9540 (decode_linespec_default): Likewise.
9541 (is_marker_spec): Removed.
9542 (strace_marker_p): New function.
9543 (init_breakpoint_sal): Using `strace_marker_p' instead of
9544 `is_marker_spec'.
9545 (create_breakpoint): Call method `create_sals_from_address' from
9546 breakpoint_ops, replacing code that created SALs conditionally
9547 on the type of the breakpoint. Call method `create_breakpoints_sal',
9548 replacing code that created breakpoints conditionally on the type
9549 wanted.
9550 (base_breakpoint_create_sals_from_address): New function.
9551 (base_breakpoint_create_breakpoints_sal): Likewise.
9552 (base_breakpoint_decode_linespec): Likewise.
9553 (base_breakpoint_ops): Add methods
9554 `base_breakpoint_create_sals_from_address',
9555 `base_breakpoint_create_breakpoints_sal' and
9556 `base_breakpoint_decode_linespec'.
9557 (bkpt_create_sals_from_address): New function.
9558 (bkpt_create_breakpoints_sal): Likewise.
9559 (bkpt_decode_linespec): Likewise.
9560 (tracepoint_create_sals_from_address): Likewise.
9561 (tracepoint_create_breakpoints_sal): Likewise.
9562 (tracepoint_decode_linespec): Likewise.
9563 (strace_marker_create_sals_from_address): Likewise.
9564 (strace_marker_create_breakpoints_sal): Likewise.
9565 (strace_marker_decode_linespec): Likewise.
9566 (strace_marker_breakpoint_ops): New variable.
9567 (addr_string_to_sals): Remove `marker_spec'. Call method
9568 `decode_linespec' from breakpoint_ops, replacing code that decoded
9569 an address string into a SAL. Use `strace_marker_p' instead of
9570 `marker_spec'.
9571 (strace_command): Decide whether we are dealing with a static
9572 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9573 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9574 * breakpoint.h (linespec_result, linespec_sals): New forward
9575 declarations.
9576 (breakpoint_ops) <create_sals_from_address>,
9577 <create_breakpoints_sal>, <decode_linespec>: New methods.
9578
4795f398
DE
95792012-01-14 Doug Evans <dje@google.com>
9580
9581 * NEWS: Update text for "maint set python print-stack".
9582 It is deprecated in gdb 7.4 and deleted in 7.5.
9583
ee5106fe
EZ
95842012-01-13 Eli Zaretskii <eliz@gnu.org>
9585
9586 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9587 including curses.h.
9588
b161e06f
JK
95892012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9590
9591 * configure: Regenerate.
9592 * config.in: Regenerate.
9593
85254831
KS
95942012-01-12 Keith Seitz <keiths@redhat.com>
9595
9596 PR mi/10586
9597 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9598 (ANONYMOUS_UNION_NAME): Define.
9599 (is_path_expr_parent): New function.
9600 (get_path_expr_parent): New function.
9601 (is_anonymous_child): New function.
9602 (create_child_with_value): If the child is anonymous and without
9603 a name, assign an object name to it.
9604 (c_describe_child): Use get_path_expr_parent to determine
9605 the parent expression.
9606 If there field represents an anonymous struct or union and
9607 has no name, set an appropriate display name and expression.
9608 (cplus_describe_child): Likewise.
9609
620fa63a
PA
96102012-01-12 Pedro Alves <palves@redhat.com>
9611
9612 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9613 available when %ebp is found to be zero (outermost).
9614
2efa2c79
AT
96152012-01-11 Andreas Tobler <andreast@fgznet.ch>
9616
9617 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9618 an internal gdb_static_assert.
9619 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9620
88e7d25d
TT
96212012-01-11 Tom Tromey <tromey@redhat.com>
9622
9623 PR gdb/9598:
9624 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9625 catch" and "catch throw".
9626
72384ba3
PH
96272012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9628
9629 * blockframe.c (block_innermost_frame): Start search from selected
9630 frame, if present, or otherwise the current frame.
9631
9632 * c-exp.y (variable): Update innermost_block for
9633 'block COLONCOLON NAME' clause.
9634 * m2-exp.y (variable): Ditto.
9635 * objc-exp.y (variable): Ditto.
9636
065a711f
TT
96372012-01-10 Tom Tromey <tromey@redhat.com>
9638
9639 PR python/13199:
9640 * python/python.c (finish_python_initialization): Set sys.argv.
9641
f3f5162e
DE
96422012-01-10 Doug Evans <dje@google.com>
9643
9644 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9645 "want_line_info". All callers updated.
9646 (dwarf_decode_lines_1): New function.
9647 (handle_DW_AT_stmt_list): Add function comment.
9648 New arg "want_line_info". All callers updated.
9649 (read_file_scope,read_type_unit_scope): Move comment from
9650 handle_DW_AT_stmt_list to here.
9651
9934703b
JK
96522012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9653
9654 Fix regression after libiberty/ update for GCC PR 6057 and others.
9655 * c-exp.y (operator) <OPERATOR DELETE>
9656 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9657 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9658 (make_builtin_type, make_name): New variable i, add gdb_assert.
9659 (operator) <OPERATOR NEW>: Update ARGS to 3.
9660 (operator) <OPERATOR DELETE>: Add trailing space.
9661 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9662 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9663 * cp-support.c (cp_canonicalize_string): Check NULL from
9664 cp_comp_to_string, call warning and return.
9665
06b9f45f
JK
96662012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9667
9668 Fix duplicate .o files after omitting libbfd.a.
9669 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9670 (SFILES): Add corelow.c.
9671 (COMMON_OBS): Add corelow.o.
9672 (ALLDEPFILES): Remove corelow.c.
9673 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9674 * config/alpha/alpha-osf3.mh: Likewise.
9675 * config/alpha/fbsd.mh: Likewise.
9676 * config/arm/nbsdaout.mh: Likewise.
9677 * config/arm/nbsdelf.mh: Likewise.
9678 * config/i386/i386gnu.mh: Likewise.
9679 * config/ia64/hpux.mh: Likewise.
9680 * config/ia64/linux.mh: Likewise.
9681 * config/m32r/linux.mh: Likewise.
9682 * config/m68k/linux.mh: Likewise.
9683 * config/mips/irix5.mh: Likewise.
9684 * config/mips/irix6.mh: Likewise.
9685 * config/pa/hpux.mh: Likewise.
9686 * config/pa/linux.mh: Likewise.
9687 * config/powerpc/aix.mh: Likewise.
9688 * config/sparc/linux.mh: Likewise.
9689 * config/sparc/linux64.mh: Likewise.
9690 * config/sparc/sol2.mh: Likewise.
9691 * config/vax/vax.mh: Likewise.
9692 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9693 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9694 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9695 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9696 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9697 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9698 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9699 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9700 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9701 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9702 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9703 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9704 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9705 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9706 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9707 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9708 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9709 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9710 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9711 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9712 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9713 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9714 corelow.o from gdb_target_obs.
9715 * corefile.c (core_target): Update the comment on NULL value.
9716 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9717 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9718 MATCHES. Drop YUMMY set on NULL.
9719 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9720 reclaim CORE_DATA if it is already NULL.
9721
34365054
DE
97222012-01-09 Doug Evans <dje@google.com>
9723
9724 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9725 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9726
696166a3
KS
97272012-01-09 Keith Seitz <keiths@redhat.com>
9728
9729 * breakpoint.c (wrapper.h): Don't include.
9730
8e7b59a5
KS
97312012-01-09 Keith Seitz <keiths@redhat.com>
9732
9733 * Makefile.in (SFILES): Remove wrapper.c.
9734 (HFILES_NO_SRCDIR): Remove wrapper.h.
9735 (COMMON_OBS): Remove wrapper.o.
9736 * cli/cli-interp.c: Don't inlude wrapper.h.
9737 * corelow.c: Likewise.
9738 (core_open): Replace gdb_target_find_new_threads with
9739 TRY_CATCH around target_find_new_threads.
9740 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9741 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9742 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9743 evaluate_expression.
9744 (varobj_set_value): Likewise for evaluate_expression and
9745 value_assign.
9746 (install_new_variable): Likewise for value_fetch_lazy.
9747 (adjust_value_for_child_access): Likewise for value_ind.
9748 (c_describe_child): Likewise for value_subscript and
9749 value_ind.
9750 (c_value_of_root): Likewise for evaluate_expression.
9751 * wrapper.c: Remove.
9752 * wrapper.h: Remove.
9753
1a4eeb98
DE
97542012-01-09 Doug Evans <dje@google.com>
9755
9ff913ba
DE
9756 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9757 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9758 "abfd" args with "section". All callers updated.
9759 Error checking code moved ...
9760 (error_check_comp_unit_head): ... here. New function.
9761 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9762 Delete arg "abfd". New arg "type_offset". All callers updated.
9763 (create_debug_types_hash_table): Simplify by using
9764 read_and_check_type_unit_head.
9765
1a4eeb98
DE
9766 * parser-defs.h (namecopy): Delete.
9767 * parse.c (namecopy, namecopy_size): Move into copy_name.
9768
2e6af8c0
JK
97692012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9770
9771 Partially fix duplicate .o files after omitting libbfd.a.
9772 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9773 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9774 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9775 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9776 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9777 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9778 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9779
9f2f828a
PA
97802012-01-09 Pedro Alves <palves@redhat.com>
9781
9782 * MAINTAINERS: Update my email address.
9783
4d72c0bc
DE
97842012-01-08 Doug Evans <dje@google.com>
9785
d467dd73
DE
9786 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9787 n_type_units. Rename type_comp_units to all_type_units.
9788 All uses updated.
9789 (add_signatured_type_cu_to_table): Renamed from
9790 add_signatured_type_cu_to_list. All callers updated.
9791
4d72c0bc
DE
9792 * gdbtypes.h (struct cplus_struct_type): Delete member
9793 nfn_fields_total. All uses removed.
9794
21b2bd31
DE
97952012-01-06 Doug Evans <dje@google.com>
9796
9797 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9798 to top of file.
9799 (dwarf2_find_comp_unit): Delete.
9800 (process_psymtab_comp_unit): Make result "void".
9801 Delete args buffer, info_ptr, buffer_size, and replace with
9802 "section". All callers updated.
9803 (dwarf2_build_psymtabs_hard): Simplify.
9804
bfd189b1
SDJ
98052012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9806 Thiago Jung Bauermann <bauerman@br.ibm.com>
9807
9808 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9809 before `struct gdb_exception'.
9810 * breakpoint.c (update_global_location_list_nothrow)
9811 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9812 * cp-abi.c (value_rtti_type): Likewise.
9813 * cp-support.c (cp_validate_operator): Likewise.
9814 * infrun.c (insert_exception_resume_breakpoint)
9815 (check_exception_resume, keep_going): Likewise.
9816 * mi-interp.c (mi_breakpoint_created)
9817 (mi_breakpoint_modified): Likewise.
9818 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9819 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9820 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9821
6b07635f
DE
98222012-01-05 Doug Evans <dje@google.com>
9823
0b30b85c
DE
9824 * dwarf2read.c (statement_prologue): Delete, unused.
9825
98714339
DE
9826 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9827 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9828
6b07635f
DE
9829 * dwarf2read.c (comp_unit_header): Delete, unused.
9830
761f4555
UW
98312012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9832
9833 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9834 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9835
2ca0b532
PA
98362012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9837
9838 * infrun.c (normal_stop): Don't skip calling the normal_stop
9839 observers if the thread was doing a multi-step, but stopped for
9840 some reason other than stepping.
9841
50aeff07
PA
98422012-01-05 Pedro Alves <alves.ped@gmail.com>
9843
9844 * cli/cli-decode.h: Add comments.
9845 (CMD_LIST_AMBIGUOUS): Moved to command.h
9846 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9847 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9848 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9849 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9850 (add_com, add_com_alias, add_info, add_info_alias)
9851 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9852 declarations.
9853 * command.h: Add and adjust comments.
9854 (CMD_LIST_AMBIGUOUS): Moved here.
9855 (help_cmd, help_cmd_list): Delete declarations.
9856
5953832c
DE
98572012-01-04 Doug Evans <dje@google.com>
9858
e5fe5e75
DE
9859 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9860 All callers updated.
9861 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9862 Replace all arguments with "per_cu". All callers updated.
9863
28dee7f5
DE
9864 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9865
23745b47
DE
9866 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9867 New arg "per_cu". All callers updated.
9868
5953832c
DE
9869 Delete #if 0'd out code.
9870 * language.c (binop_result_type): Delete.
9871 (simple_type, ordered_type, same_type, integral_type): Delete.
9872 (numeric_type, character_type, string_type, boolean_type): Delete.
9873 (float_type, structured_type): Delete.
9874 * language.h: Update.
9875
0f5b7562
TT
98762012-01-04 Tom Tromey <tromey@redhat.com>
9877
9878 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9879
78218f56
JB
98802012-01-04 Joel Brobecker <brobecker@adacore.com>
9881
9882 * corefile.c (close_exec_file): Delete.
9883 (reopen_exec_file): Remove commented out code that seems related
9884 to close_exec_file, which is being deleted here.
9885 * inferior.h (close_exec_file): Delete.
9886 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9887
0fcd72ba
JB
98882012-01-04 Joel Brobecker <brobecker@adacore.com>
9889
9890 * ada-lang.c: #include "cli/cli-utils.h".
9891 (get_selections): Use skip_spaces.
9892 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9893 (catch_ada_exception_command_split): Use skip_spaces.
9894 (ada_decode_assert_location): Likewise.
9895
1dabb4c4
JB
98962012-01-04 Joel Brobecker <brobecker@adacore.com>
9897
9898 * linespec.c (decode_line_internal): Check for C++ or Java
9899 compound constructs only if the current language is C, C++
9900 or Java.
9901
5931a2fa
JK
99022012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9903
9904 Revert:
9905 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9906 Joel Brobecker <brobecker@adacore.com>
9907 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9908 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9909 3 times.
9910 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9911 fall through into AT_ENTRY_POINT.
9912 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9913 DUMMY_ADDR with it.
9914 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9915 PPC_INSN_SIZE skip to 3 times.
9916
1a2da5ee
JB
99172012-01-04 Joel Brobecker <brobecker@adacore.com>
9918
9919 * linespec.c (add_minsym): Preserve function descriptors.
9920
8645ff69
UW
99212012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9922
9923 * breakpoint.c (all_locations_are_pending): Consider locations
9924 in program spaces executing during startup pending as well.
9925
0b302171
JB
99262012-01-04 Joel Brobecker <brobecker@adacore.com>
9927
9928 Copyright year update in most files of the GDB Project.
9929
8ba098ad
JB
99302012-01-04 Joel Brobecker <brobecker@adacore.com>
9931
9932 * copyright.sh: Delete.
9933 * copyright.py: Rewrite.
9934
09c01c30
JB
99352012-01-04 Joel Brobecker <brobecker@adacore.com>
9936
9937 * gnulib/extra/update-copyright: New file, imported from gnulib.
9938
3c36c0af
JB
99392012-01-04 Joel Brobecker <brobecker@adacore.com>
9940
9941 * README (Copyright and License Notices): New section.
9942
888fe1e1
TT
99432012-01-03 Tom Tromey <tromey@redhat.com>
9944
9945 PR python/12533:
9946 * python/py-value.c (valpy_dereference, valpy_get_address
9947 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9948 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9949 (valpy_absolute, valpy_richcompare): Free intermediate values.
9950
6e681866
JB
99512011-01-03 Joel Brobecker <brobecker@adacore.com>
9952
9953 * ada-lang.c: Reformat the copyright notice.
9954
0cd09acb
JK
99552012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9956
9957 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9958 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9959 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9960 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9961 Revert this part of:
9962 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9963 Build gdb directly from *.o files not using libgdb.a.
9964 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9965
12c3e59c
JB
99662012-01-02 Joel Brobecker <brobecker@adacore.com>
9967
9968 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9969 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9970 Reformat the copyright header.
9971
11bf1490
JK
99722012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9973
9974 Revert this part of:
9975 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9976 Remove the gdbtui binary.
9977 * gdb.c (main): Remove args.interpreter_p initialization.
9978 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9979 * main.h (struct captured_main_args): Remove interpreter_p.
9980
1fef196f
JB
99812012-01-02 Joel Brobecker <brobecker@adacore.com>
9982
9983 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9984
67827812
JB
99852012-01-02 Joel Brobecker <brobecker@adacore.com>
9986
9987 * top.c (print_gdb_version): Update copyright year.
9988
a4d0b831
YQ
99892012-01-02 Yao Qi <yao@codesourcery.com>
9990
9991 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9992
b5914469
JK
99932012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9994 Joel Brobecker <brobecker@adacore.com>
9995
9996 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9997 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9998 3 times.
9999 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10000 fall through into AT_ENTRY_POINT.
10001 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10002 DUMMY_ADDR with it.
10003 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10004 PPC_INSN_SIZE skip to 3 times.
10005
8da828f7
JK
100062012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10007
10008 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10009 the return value.
10010 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10011
8574e74b
JK
100122012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10013
10014 Build gdb directly from *.o files not using libgdb.a.
10015 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10016 (COMMON_OBS): Remove solib-target.o.
10017 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10018 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10019 (LIBGDB_OBS, libgdb.a): Move it above.
10020 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10021 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10022 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10023 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10024 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10025 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10026 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10027 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10028 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10029 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10030 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10031 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10032 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10033 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10034 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10035 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10036 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10037 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10038 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10039 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10040 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10041 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10042 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10043 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10044 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10045 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10046 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10047
217bff3e
JK
100482012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10049
10050 Remove the gdbtui binary.
10051 * .gitignore (/gdbtui): Remove.
10052 * Makefile.in (TUI): Remove.
10053 (SUBDIR_TUI_OBS): Remove tui-main.o.
10054 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10055 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10056 (tui-main.o): Remove.
10057 (all_object_files): Remove tui-main.o.
10058 * NEWS: New note for the gdbtui removal.
10059 * configure: Rebuilt.
10060 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10061 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10062 CONFIG_UNINSTALL respectively.
10063 * gdb.c (main): Remove args.interpreter_p initialization.
10064 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10065 * main.h (struct captured_main_args): Remove interpreter_p.
10066 * tui/tui-main.c: Remove.
10067
9cdd5dbd
DE
100682012-01-01 Doug Evans <dje@google.com>
10069
bb5ed363
DE
10070 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10071 (dwarf2_physname, read_import_statement): Ditto.
10072 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10073 (process_structure_scope read_subroutine_type): Ditto.
10074 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10075 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10076 (dwarf2_fetch_die_location_block): Ditto.
10077 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10078
a0f42c21
DE
10079 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10080 All callers updated.
10081 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10082 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10083 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10084
2dc860c0
DE
10085 * dwarf2read.c (load_cu): Move assert to more useful location.
10086
68dc6402
DE
10087 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10088 All callers updated.
10089
9cdd5dbd
DE
10090 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10091 (dwarf2_elf_names): Minor reformat.
10092 (dwarf2_per_cu_data): Tweak comment.
10093 (dwarf2_read_section): Fix comment.
10094 (create_all_comp_units): Fix comment.
10095 (load_full_comp_unit): Fix comment.
10096 (process_full_comp_unit): Fix comment.
10097 (read_signatured_type): Fix comment.
10098
0c10e53e 10099For older changes see ChangeLog-2011.
c906108c
SS
10100\f
10101Local Variables:
10102mode: change-log
10103left-margin: 8
10104fill-column: 74
10105version-control: never
57da7796 10106coding: utf-8
c906108c 10107End:
This page took 2.33702 seconds and 4 git commands to generate.