gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
4
5 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6
7 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
8 and dir commands into an if block.
9
10 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11
12 * python/py-breakpoint (struct pybp_code): Use int instead of
13 enum type_code.
14
15 2013-02-15 Pedro Alves <pedro@codesourcery.com>
16 Hafiz Abid Qadeer <abidh@codesourcery.com>
17
18 * NEWS: Mention new field "trace-file".
19 * tracepoint.c (trace_status_mi): Output "trace-file" field.
20 (tfile_open): Record the trace file's filename in the trace
21 status.
22 (tfile_files_info): Mention the name of the trace file.
23 Check the "filename" field explicitely.
24 (trace_status_command): Explicitely check "filename" field.
25 (trace_find_command): Ditto.
26 (trace_find_pc_command): Ditto.
27 (trace_find_tracepoint_command): Ditto.
28 (trace_find_line_command): Ditto.
29 (trace_find_range_command): Ditto.
30 (trace_find_outside_command): Ditto.
31 * tracepoint.h (struct trace_status) <from_file>: Rename it
32 to "filename" and make it hold the trace file's filename
33 instead of a boolean.
34 * remote.c (remote_get_trace_status): Initialize "filename"
35 field with NULL instead of 0.
36
37 2013-02-15 Yao Qi <yao@codesourcery.com>
38
39 * remote.c: Fix a typo.
40
41 2013-02-14 Pierre Muller <muller@sourceware.org>
42
43 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
44
45 2013-02-14 Pedro Alves <palves@redhat.com>
46
47 * utils.c (savestring): Don't #undef it. Move function to
48 common/common-utils.c.
49 * common/common-utils.c: Include gdb_string.h.
50 (savestring): Move here from utils.c.
51 * common/common-utils.h (savestring): Declare.
52
53 2013-02-14 Pedro Alves <palves@redhat.com>
54
55 * utils.c (savestring): Rename parameter 'size' to 'len'.
56
57 2013-02-14 Pedro Alves <palves@redhat.com>
58 Yufeng Zhang <yufeng.zhang@arm.com>
59
60 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
61 (aarch64_inferior_data, struct aarch64_inferior_data):
62 Delete.
63 (struct aarch64_process_info): New.
64 (aarch64_process_list): New global.
65 (aarch64_find_process_pid, aarch64_add_process)
66 (aarch64_process_info_get): New functions.
67 (aarch64_inferior_data_get): Delete.
68 (aarch64_process_info_get): New function.
69 (aarch64_forget_process): New function.
70 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
71 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
72 aarch64_get_debug_reg_state.
73 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
74 instead of linux_nat_iterate_watchpoint_lwps.
75 (aarch64_linux_new_fork): New function.
76 (aarch64_linux_child_post_startup_inferior): Use
77 aarch64_forget_process instead of aarch64_init_debug_reg_state.
78 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
79 (aarch64_linux_remove_hw_breakpoint)
80 (aarch64_handle_aligned_watchpoint)
81 (aarch64_handle_unaligned_watchpoint)
82 (aarch64_linux_insert_watchpoint)
83 (aarch64_linux_remove_watchpoint)
84 (aarch64_linux_stopped_data_address): Adjust to pass the current
85 process id to aarch64_debug_reg_state.
86 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
87 linux_nat_new_fork hook, and aarch64_forget_process as
88 linux_nat_forget_process hook; remove the call to
89 register_inferior_data_with_cleanup.
90
91 2013-02-14 Pedro Alves <palves@redhat.com>
92
93 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
94 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
95 lval_memory.
96
97 2013-02-14 Pedro Alves <pedro@codesourcery.com>
98 Hafiz Abid Qadeer <abidh@codesourcery.com>
99
100 * tracepoint.h (validate_trace_state_variable_name): Declare.
101 * tracepoint.c (validate_trace_state_variable_name): New.
102 (trace_variable_command): Parse the trace state variable's name
103 without using parse_expression. Do several validations.
104 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
105 trace state variable's name with parse_expression. Validate it.
106
107 2013-02-14 Yao Qi <yao@codesourcery.com>
108
109 * infcmd.c (breakpoint_proceeded): Remove it.
110
111 2013-02-14 Yao Qi <yao@codesourcery.com>
112
113 * tracepoint.c (end_actions_pseudocommand): Make it static.
114 (while_stepping_pseudocommand): Likewise.
115 * tracepoint.h (end_actions_pseudocommand): Remove the
116 declaration.
117 (while_stepping_pseudocommand): Likewise.
118
119 2013-02-14 Yao Qi <yao@codesourcery.com>
120
121 * cli/cli-decode.c (help_cmd): Remove the declaration of
122 "cmdlist".
123 (help_all): Likewise.
124
125 2013-02-13 Pedro Alves <palves@redhat.com>
126
127 * amd64-linux-nat.c (update_debug_registers_callback):
128 Update comment.
129 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
130 iterate_over_lwps.
131 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
132 i386_debug_reg_state.
133 (amd64_linux_new_fork): New function.
134 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
135 linux_nat_new_fork hook, and i386_forget_process as
136 linux_nat_forget_process hook.
137 * i386-linux-nat.c (update_debug_registers_callback):
138 Update comment.
139 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
140 iterate_over_lwps.
141 (i386_linux_prepare_to_resume): Pass the lwp's pid to
142 i386_debug_reg_state.
143 (i386_linux_new_fork): New function.
144 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
145 linux_nat_new_fork hook, and i386_forget_process as
146 linux_nat_forget_process hook.
147 * i386-nat.c (i386_init_dregs): Delete.
148 (i386_inferior_data, struct i386_inferior_data):
149 Delete.
150 (struct i386_process_info): New.
151 (i386_process_list): New global.
152 (i386_find_process_pid, i386_add_process, i386_process_info_get):
153 New functions.
154 (i386_inferior_data_get): Delete.
155 (i386_process_info_get): New function.
156 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
157 (i386_forget_process): New function.
158 (i386_cleanup_dregs): Rewrite.
159 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
160 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
161 (i386_stopped_data_address, i386_insert_hw_breakpoint)
162 (i386_remove_hw_breakpoint): Adjust to pass the current process id
163 to i386_debug_reg_state.
164 (i386_use_watchpoints): Don't register inferior data.
165 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
166 adjust comment.
167 (i386_forget_process): Declare.
168 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
169 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
170 New static globals.
171 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
172 (add_initial_lwp): New, factored out from ...
173 (add_lwp): ... this. Don't check the number of lwps before
174 calling linux_nat_new_thread.
175 (linux_nat_iterate_watchpoint_lwps): Delete.
176 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
177 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
178 forks and vforks.
179 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
180 initial lwp.
181 (linux_nat_kill, linux_nat_mourn_inferior): Call
182 linux_nat_forget_process.
183 (linux_nat_set_new_fork, linux_nat_set_forget_process)
184 (linux_nat_forget_process): New functions.
185 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
186 type.
187 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
188 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
189 types.
190 (linux_nat_set_new_fork, linux_nat_set_forget_process)
191 (linux_nat_forget_process): New declarations.
192
193 * amd64fbsd-nat.c (super_mourn_inferior): New global.
194 (amd64fbsd_mourn_inferior): New function.
195 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
196 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
197
198 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
199
200 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
201 Adding _().
202
203 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
204
205 * aarch64-linux-nat.c (debug_reg_change_callback)
206 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
207 %s and phex().
208
209 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
210
211 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
212 with LONGEST.
213
214 2013-02-13 Pedro Alves <palves@redhat.com>
215 Hafiz Abid Qadeer <abidh@codesourcery.com>
216
217 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
218
219 2013-02-12 Tom Tromey <tromey@redhat.com>
220
221 PR symtab/11464:
222 * c-exp.y (lex_one_token): Initialize other fields of yylval on
223 NAME return.
224 (classify_inner_name): Remove 'first_name' argument, add
225 'context'. Remove unused variable.
226 (yylex): Explicitly maintain the context type. Exit loop earlier
227 if NAME result is seen.
228
229 2013-02-12 Pedro Alves <palves@redhat.com>
230
231 * amd64-darwin-tdep.c: Add (C) after Copyright.
232 * cli/cli-cmds.h: Ditto.
233 * cli/cli-decode.c: Ditto.
234 * cli/cli-decode.h: Ditto.
235 * cli/cli-dump.c: Ditto.
236 * cli/cli-dump.h: Ditto.
237 * cli/cli-interp.c: Ditto.
238 * cli/cli-logging.c: Ditto.
239 * cli/cli-script.c: Ditto.
240 * cli/cli-script.h: Ditto.
241 * cli/cli-setshow.c: Ditto.
242 * cli/cli-setshow.h: Ditto.
243 * cli/cli-utils.c: Ditto.
244 * cli/cli-utils.h: Ditto.
245 * config/alpha/nm-osf3.h: Ditto.
246 * config/djgpp/djconfig.sh: Ditto.
247 * config/i386/nm-fbsd.h: Ditto.
248 * config/i386/nm-i386gnu.h: Ditto.
249 * config/nm-linux.h: Ditto.
250 * config/nm-nto.h: Ditto.
251 * config/rs6000/nm-rs6000.h: Ditto.
252 * config/sparc/nm-sol2.h: Ditto.
253 * darwin-nat-info.c: Ditto.
254 * dfp.c: Ditto.
255 * dfp.h: Ditto.
256 * gdb-demangle.h: Ditto.
257 * i386-darwin-nat.c: Ditto.
258 * i386-darwin-tdep.c: Ditto.
259 * linux-fork.h: Ditto.
260 * m32c-tdep.c: Ditto.
261 * microblaze-linux-tdep.c: Ditto.
262 * microblaze-rom.c: Ditto.
263 * microblaze-tdep.c: Ditto.
264 * microblaze-tdep.h: Ditto.
265 * mips-linux-tdep.h: Ditto.
266 * ppc-ravenscar-thread.c: Ditto.
267 * ppc-ravenscar-thread.h: Ditto.
268 * prologue-value.c: Ditto.
269 * prologue-value.h: Ditto.
270 * ravenscar-thread.c: Ditto.
271 * ravenscar-thread.h: Ditto.
272 * sparc-ravenscar-thread.c: Ditto.
273 * sparc-ravenscar-thread.h: Ditto.
274 * tilegx-linux-tdep.c: Ditto.
275 * unwind_stop_reasons.def: Ditto.
276 * windows-nat.h: Ditto.
277 * xtensa-linux-tdep.c: Ditto.
278 * xtensa-xtregs.c: Ditto.
279 * regformats/regdat.sh: Ditto.
280 * regformats/regdef.h: Ditto.
281
282 2013-02-12 Pedro Alves <palves@redhat.com>
283
284 * break-catch-sig.c: Update copyright years.
285
286 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
287
288 Add support for a destructor for ui_out data and use it to
289 provide a ui_out destructor.
290 * ui-out.h: Declare the new ui_out destructor.
291 (ui_out_impl): Add a field for data destructor in ui_out_impl.
292 * ui-out.c (default_data_destroy): Add a default data destructor
293 which does nothing.
294 (default_ui_out_impl): Set the new data_destroy field to
295 default_data_destroy
296 (uo_data_destroy): Local function which invokes the data
297 destructor if present.
298 (clear_table): Local function which clears the table data of a
299 ui_out object.
300 (ui_out_destroy): Public function which frees a ui_out object.
301 (ui_out_table_end): Use the new clear_table function.
302 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
303 NULL.
304 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
305 to NULL.
306
307 2013-02-11 Doug Evans <dje@google.com>
308
309 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
310 (printf_decfloat): New function. Broken out from ui_printf.
311 Remove unnecessary code to shift the entire format string down.
312 (printf_pointer): New function.
313 (ui_printf): Code to print C strings, wide C strings, decfloats,
314 and pointers moved to separate functions.
315
316 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
317
318 * valops.c (value_assign): Handling bitfield offset in
319 `lval_internalvar_component' case.
320
321 2013-02-08 Doug Evans <dje@google.com>
322
323 * common/format.c (parse_format_string): Fix whitespace.
324
325 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
326
327 * stack.c (return_command): Work around uninitialized variable
328 warning.
329
330 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
331
332 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
333 number of the registers from 36 to 34.
334
335 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
336
337 * NEWS: Mention new AArch64 native and target support.
338
339 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
340
341 * MAINTAINERS (Write After Approval): Add myself.
342
343 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
344 Marcus Shawcroft <marcus.shawcroft@arm.com>
345 Nigel Stephens <nigel.stephens@arm.com>
346 Yufeng Zhang <yufeng.zhang@arm.com>
347
348 * aarch64-linux-nat.c: New file.
349 * config/aarch64/linux.mh: New file.
350 * configure.host: Add AArch64.
351 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
352
353 2013-02-07 Doug Evans <dje@google.com>
354
355 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
356 disassemble command.
357
358 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
359
360 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
361 set_gdbarch_fetch_tls_load_module_address.
362
363 2013-02-06 David S. Miller <davem@davemloft.net>
364
365 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
366 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
367 * value.c (struct_return_convention): New function.
368 (using_struct_return): Implement in terms of struct_return_convention.
369 * value.h (struct_return_convention): Declare.
370 * stack.c (return_command): Allow successful overriding of the return
371 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
372
373 2013-02-06 Tom Tromey <tromey@redhat.com>
374
375 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
376 outside of TRY_CATCH.
377
378 2013-02-06 Yao Qi <yao@codesourcery.com>
379
380 * mi/mi-interp.c: Include "tracepoint.h".
381 (mi_tsv_modified): Declare.
382 (mi_tsv_created, mi_tsv_deleted): Update declaration.
383 (mi_interpreter_init): Call observer_attach_tsv_modified.
384 (mi_tsv_modified): New.
385 (mi_tsv_created, mi_tsv_deleted): Update.
386 * tracepoint.c (trace_variable_command): Call
387 observer_notify_tsv_modified if the initial value of tsv is
388 changed.
389 (delete_trace_state_variable): Call
390 observer_notify_tsv_deleted earlier.
391 (trace_variable_command): Caller update.
392 (create_tsv_from_upload): Likewise.
393 * observer.sh: Declare "struct trace_state_variable".
394
395 * NEWS: Mention the new MI notification "=tsv-modified".
396
397 2013-02-05 Doug Evans <dje@google.com>
398
399 * completer.c (location_completer): Fix typo in comment.
400
401 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
402
403 * breakpoint.c (add_location_to_breakpoint): Insert the location with
404 ADDRESS sorted.
405
406 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
407
408 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
409 Refactor if statement to avoid trailing || operator.
410
411 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
412
413 * NEWS: Add PowerPC FreeBSD as a new native configuration.
414
415 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
416
417 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
418 * configure.host: Add powerpc*-*-freebsd* target.
419 * configure.tgt: Add target info for powerpc*-*-freebsd*.
420 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
421 * config/powerpc/fbsd.mh: New file.
422
423 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
424 Denys Vlasenko <dvlasenk@redhat.com>
425 Pedro Alves <palves@redhat.com>
426
427 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
428 (struct elf_internal_linux_prpsinfo): Forward declare.
429 * gdbarch.h, gdbarch.c: Regenerate.
430 * linux-tdep.c: Include `cli/cli-utils.h'.
431 (linux_fill_prpsinfo): New function.
432 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
433 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
434 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
435 depending on gdbarch pointer bitness.
436 * ppc-linux-tdep.c: Include elf-bfd.h.
437 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
438 on 32-bit.
439
440 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
441 Marcus Shawcroft <marcus.shawcroft@arm.com>
442 Nigel Stephens <nigel.stephens@arm.com>
443 Yufeng Zhang <yufeng.zhang@arm.com>
444
445 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
446
447 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
448 Marcus Shawcroft <marcus.shawcroft@arm.com>
449 Nigel Stephens <nigel.stephens@arm.com>
450 Yufeng Zhang <yufeng.zhang@arm.com>
451
452 * aarch64-newlib-tdep.c: New file.
453 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
454 aarch64*-*-elf.
455 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
456 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
457 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
458 * osabi.c (gdb_osabi_names): Add "Newlib".
459
460 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
461 Marcus Shawcroft <marcus.shawcroft@arm.com>
462 Nigel Stephens <nigel.stephens@arm.com>
463 Yufeng Zhang <yufeng.zhang@arm.com>
464
465 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
466 (ALLDEPFILES): Add aarch64-linux-tdep.c.
467 * aarch64-linux-tdep.c: New file.
468 * aarch64-linux-tdep.h: New file.
469 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
470 * configure.tgt: Add aarch64-none-linux-gnu.
471
472 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
473 Marcus Shawcroft <marcus.shawcroft@arm.com>
474 Nigel Stephens <nigel.stephens@arm.com>
475 Yufeng Zhang <yufeng.zhang@arm.com>
476
477 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
478 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
479 (ALLDEPFILES): Add aarch64-tdep.c.
480 * aarch64-tdep.c: New file.
481 * aarch64-tdep.h: New file.
482 * configure.tgt: Add AArch64.
483 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
484 (aarch64-expedite): New definition.
485 * features/aarch64-core.xml: New file.
486 * features/aarch64-fpu.xml: New file.
487 * features/aarch64-without-fpu.c: New file (generated).
488 * features/aarch64-without-fpu.xml: New file.
489 * features/aarch64.c: New file (generated).
490 * features/aarch64.xml: New file.
491 * regformats/aarch64-without-fpu.dat: New file (generated).
492 * regformats/aarch64.dat: New file (generated).
493
494 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
495
496 * contrib/expect-read1.c: New file.
497 * contrib/expect-read1.sh: New file.
498
499 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
500
501 * dwarf2read.c (file_file_name): New function with code from
502 file_full_name.
503 (file_full_name): Move most of the code to file_file_name.
504 (macro_start_file): Rename variable full_name to file_name and use
505 file_file_name for it. Add comp_dir parameter to new_macro_table.
506 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
507 macro_source_file->filename access by macro_source_fullname call.
508 * macroscope.c (_initialize_macroscope): Update the new_macro_table
509 caller.
510 * macrotab.c (struct macro_table): New field comp_dir.
511 (macro_include): New variables link_fullname and source_fullname.
512 Replace any macro_source_file->filename access by macro_source_fullname
513 call.
514 (macro_lookup_inclusion): Remove the partial filenames checking code.
515 (check_for_redefinition): New variables source_fullname and
516 found_key_fullname. Replace any macro_source_file->filename access by
517 macro_source_fullname call.
518 (macro_undef): New variables source_fullname and key_fullname. Replace
519 any macro_source_file->filename access by macro_source_fullname call.
520 (macro_lookup_definition): New variables retval and source_fullname.
521 Replace any macro_source_file->filename access by macro_source_fullname
522 call.
523 (foreach_macro): New variable key_fullname. Replace any
524 macro_source_file->filename access by macro_source_fullname call.
525 (foreach_macro_in_scope): New variable datum_fullname. Replace any
526 macro_source_file->filename access by macro_source_fullname call.
527 (new_macro_table): Add parameter comp_dir. Initialize T with it.
528 (macro_source_fullname): New function.
529 * macrotab.h (struct macro_source_file): Extent the filename field
530 comment.
531 (new_macro_table): New parameter comp_dir, add a comment for it.
532 (macro_source_fullname): new declaration.
533
534 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
535
536 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
537 this_real_name to outer block. Use it also for
538 compare_filenames_for_search.
539 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
540 with dw2_get_real_path for file_matcher, considering also
541 BASENAMES_MAY_DIFFER.
542 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
543
544 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
545
546 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
547 to the file_matcher parameter. Pass 0 to it.
548 (dwarf2_create_include_psymtab): Copy also DIRNAME.
549 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
550 NULL psymtab_to_fullname result.
551 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
552 an expected filename instead.
553 (expand_symtabs_matching_via_partial): Add basenames parameter to the
554 file_matcher parameter. Call also psymtab_to_fullname, after newly
555 considering BASENAMES_MAY_DIFFER.
556 * source.c (rewrite_source_path): Remove static.
557 * source.h (rewrite_source_path): New declaration.
558 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
559 the expand_symtabs_matching field. Comment it.
560 * symtab.c (file_matches): New function comment. Add parameter
561 basenames, implement it.
562 (search_symbols_file_matches): Add basenames parameter. Update the
563 file_matches caller.
564 (search_symbols): Match FILES also against symtab_to_fullname.
565 Optimize it for BASENAMES_MAY_DIFFER.
566
567 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
568
569 * source.c (print_source_lines_base): Print for TUI also "fullname".
570 * tui/tui-data.c (init_content_element): Change tui_locator_element
571 field to full_name.
572 * tui/tui-data.h (struct tui_locator_element): Likewise.
573 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
574 tui_update_locator_filename calls to tui_update_locator_fullname.
575 Replace symtab->filename refererence by symtab_to_fullname call.
576 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
577 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
578 field to full_name. Replace symtab->filename refererence by
579 symtab_to_fullname call.
580 (tui_show_symtab_source): Rename parameter to fullname. Change
581 tui_locator_element field to full_name.
582 * tui/tui-stack.c: Include source.h.
583 (tui_set_locator_filename): Rename the declaration to ...
584 (tui_set_locator_fullname): ... here. Rename its parameter to
585 fullname, updates its comment.
586 (tui_set_locator_info): Rename its parameter to fullname.
587 (tui_set_locator_filename): Rename the definition to ...
588 (tui_set_locator_fullname): ... here. Rename its parameter to
589 fullname, updates its comment. Change tui_locator_element field to
590 full_name.
591 (tui_set_locator_info): Rename its parameter to fullname.
592 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
593 (tui_update_locator_filename): Rename to ...
594 (tui_update_locator_fullname): ... here. Rename callee to
595 tui_set_locator_fullname.
596 (tui_show_frame_info): Replace symtab->filename refererence by
597 symtab_to_fullname call.
598 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
599 (tui_update_locator_fullname): ... here.
600 * tui/tui-winsource.c (tui_display_main): Rename the callee to
601 tui_update_locator_fullname. Replace symtab->filename refererence by
602 symtab_to_fullname call.
603 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
604 Rename the callee to tui_update_locator_fullname.
605 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
606
607 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
608
609 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
610 by symtab_to_filename_for_display calls.
611 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
612 (clear_command): New variable sal_fullname, initialize it. Replace
613 compare_filenames_for_search by filename_cmp with sal_fullname.
614 (say_where, update_static_tracepoint): Replace symtab->filename
615 refererences by symtab_to_filename_for_display calls.
616 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
617 Likewise.
618 * dwarf2read.c: Include source.h.
619 (fixup_go_packaging): Replace symtab->filename refererences by
620 symtab_to_filename_for_display calls.
621 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
622 Replace symtab->filename refererences by symtab_to_filename_for_display
623 calls.
624 (create_sals_line_offset, convert_linespec_to_sals): New variable
625 fullname, initialize it, replace symtab->filename reference by the
626 variable.
627 * linux-fork.c: Include source.h.
628 (info_checkpoints_command): Replace symtab->filename refererences by
629 symtab_to_filename_for_display calls.
630 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
631 by symtab_to_filename_for_display calls.
632 * mdebugread.c: Include source.h.
633 (psymtab_to_symtab_1): Replace symtab->filename refererences by
634 symtab_to_filename_for_display calls.
635 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
636 (mi_cmd_file_list_exec_source_files): Likewise.
637 * printcmd.c: Include source.h.
638 (build_address_symbolic): Replace symtab->filename refererences by
639 symtab_to_filename_for_display calls.
640 * psymtab.c (partial_map_symtabs_matching_filename)
641 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
642 with psymtab_to_fullname.
643 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
644 by symtab_to_filename_for_display calls.
645 (stpy_get_filename): New variable filename, initialize it, use instead
646 of symtab->filename refererences.
647 (salpy_str): Make variable filename const char *. Replace
648 symtab->filename refererences by symtab_to_filename_for_display calls.
649 * skip.c: Include source.h and filenames.h.
650 (skip_file_command): Remove const from the symtab variable. Replace
651 symtab->filename refererences by symtab_to_fullname call.
652 (function_name_is_marked_for_skip): New variables searched_for_fullname
653 and fullname. Use them to search also with symtab's fullname.
654 * source.c (find_source_lines): Replace symtab->filename refererences
655 by symtab_to_filename_for_display calls.
656 (print_source_lines_base): New variable filename, use it instead of
657 symtab->filename. Replace symtab->filename refererences by
658 symtab_to_filename_for_display calls.
659 (line_info, forward_search_command): Replace symtab->filename
660 refererences by symtab_to_filename_for_display calls.
661 (reverse_search_command): Replace symtab->filename refererences by
662 symtab_to_filename_for_display calls. New variable filename for it.
663 * stack.c (frame_info): Likewise.
664 * symmisc.c: Include source.h.
665 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
666 (maintenance_info_symtabs): Replace symtab->filename refererences by
667 symtab_to_filename_for_display calls.
668 * symtab.c (iterate_over_some_symtabs): Call
669 compare_filenames_for_search also with symtab_to_fullname.
670 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
671 symtab->filename refererences by symtab_to_filename_for_display calls.
672 (find_line_symtab): Replace symtab->filename refererences by
673 symtab_to_filename_for_display calls.
674 (file_matches): Replace filename_cmp by compare_filenames_for_search.
675 (print_symbol_info): Make the last parameter const char *. New
676 variable s_filename. Use it in the function.
677 (symtab_symbol_info): Make the last_filename variable const char *.
678 Replace symtab->filename refererences by symtab_to_filename_for_display
679 calls.
680 (rbreak_command): New variable fullname. Use it. Replace
681 symtab->filename refererence by symtab_to_filename_for_display call.
682 * tracepoint.c (set_traceframe_context, trace_find_line_command)
683 (print_one_static_tracepoint_marker): Replace symtab->filename
684 refererences by symtab_to_filename_for_display calls.
685 * tui/tui-source.c (tui_set_source_content): New variables filename and
686 s_filename. Replace symtab->filename refererences by this variable.
687 Replace other symtab->filename refererences by
688 symtab_to_filename_for_display calls.
689
690 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
691 Jan Kratochvil <jan.kratochvil@redhat.com>
692
693 Add a new variable that controls a way in which filenames are
694 displayed.
695 * NEWS (set filename-display): New entry.
696 * source.c (filename_display_basename, filename_display_relative)
697 (filename_display_absolute, filename_display_kind_names)
698 (filename_display_string, show_filename_display_string)
699 (symtab_to_filename_for_display): New.
700 (_initialize_source): Added initialization of 'filename-display'
701 variable.
702 * source.h (symtab_to_filename_for_display): Added declaration.
703 * stack.c (print_frame): Added new variable and calling of a new
704 function and condition with this variable. Changed third argument of
705 calling of a function.
706
707 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
708
709 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
710 Rename field reference filename to fullname.
711 * tui/tui-data.h (struct tui_source_info): Rename field filename to
712 fullname. New comment for it.
713 * tui/tui-source.c (tui_set_source_content): Rename field reference
714 filename to fullname. Initialize field by symtab_to_fullname now.
715 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
716 reference filename to fullname. Use symtab_to_fullname during
717 comparison.
718
719 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
720
721 Code cleanup.
722 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
723 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
724 filename to fullname. Rename variable this_name to this_fullname.
725 Lowercase FILENAME_CMP call.
726 (dw2_find_symbol_file): New comment for the returned string.
727 (dwarf2_gdb_index_functions): Rename the function to
728 dw2_expand_symtabs_with_fullname.
729 * psymtab.c (read_psymtabs_with_filename): Rename to ...
730 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
731 fullname.
732 (psym_functions): Rename the function to read_psymtabs_with_fullname.
733 * symfile.h (struct quick_symbol_functions): Rename field
734 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
735 parameter filename to fullname. Document returned string meaning for
736 find_symbol_file.
737 * symtab.c (find_line_symtab): Rename the called function to
738 expand_symtabs_with_fullname.
739
740 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
741
742 Code cleanup.
743 * breakpoint.c (clear_command): Remove variable is_abs, unify the
744 call of filename_cmp with compare_filenames_for_search.
745 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
746 is_abs, unify the call of FILENAME_CMP with
747 compare_filenames_for_search. New gdb_asserts for real_path and name.
748 Unify the call of compare_filenames_for_search with FILENAME_CMP.
749 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
750 * symfile.h (struct quick_symbol_functions): Extend the comment for
751 map_symtabs_matching_filename.
752 * symtab.c (compare_filenames_for_search): Remove the function comment
753 relative path requirement. Handle absolute filenames, with a comment.
754 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
755 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
756 real_path and name. Unify the call of compare_filenames_for_search
757 with FILENAME_CMP.
758 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
759
760 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
761
762 Code cleanup.
763 * breakpoint.c (print_breakpoint_location): Replace bp_location field
764 source_file references by symtab field references. Remove variables
765 sal and fullname.
766 (momentary_breakpoint_from_master, add_location_to_breakpoint):
767 (clear_command, say_where): Replace bp_location field source_file
768 references by symtab field references.
769 (bp_location_dtor): Remove the source_file reference.
770 (update_static_tracepoint): Replace bp_location field source_file
771 references by symtab field references.
772 (breakpoint_free_objfile): New function.
773 * breakpoint.h (struct bp_location): Extend the comment for line_number.
774 Replace the field source_file by field symtab, extend its comment.
775 (breakpoint_free_objfile): New declaration.
776 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
777 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
778 field source_file references by symtab field references.
779
780 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
781
782 Replace xfullpath calls by gdb_realpath calls.
783 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
784 function comment.
785 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
786 Remove it from the iterate_over_some_symtabs call.
787 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
788 Remove it from the dw2_map_expand_apply calls, remove a block handling
789 it.
790 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
791 Remove it from the iterate_over_some_symtabs call.
792 (partial_map_symtabs_matching_filename): Remove parameter full_path.
793 Remove it from the partial_map_expand_apply calls, remove a block
794 handling it. Drop gdb_realpath call and cleanups from the real_path
795 handling.
796 * source.c (openp): Drop the comment part about xfullpath. Replace
797 xfullpath calls by gdb_realpath calls.
798 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
799 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
800 from method map_symtabs_matching_filename and its comment.
801 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
802 gdb_realpath call.
803 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
804 remove it also from the function comment, remove a block handling it.
805 Drop gdb_realpath call and cleanups from the real_path handling.
806 (iterate_over_symtabs): Drop variable full_path and its use.
807 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
808 * utils.c (xfullpath): Remove.
809 * utils.h (xfullpath): Remove.
810
811 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
812
813 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
814 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
815 (ALLDEPFILES): Add ppc64-tdep.c.
816 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
817 ppc64-tdep.o to gdb_target_obs.
818 * ppc64-tdep.h: New file.
819 * ppc64-tdep.c: New file.
820 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
821 ppc-linux-tdep.c to here.
822 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
823 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
824 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
825 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
826 from ppc-linux-tdep.c to here.
827 (ppc64_convert_from_func_ptr_addr): Rename from
828 ppc64_linux_convert_from_func_ptr_addr to
829 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
830 here.
831 * rs6000-tdep.c:
832 (read_insn): Move from ppc-linux-tdep.c to here.
833 (insns_match_pattern, insn_d_field, insn_ds_field): Move
834 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
835 * ppc-linux-tdep.c: Include ppc64-tdep.h.
836 Removed above functions.
837 (ppc_linux_init_abi): Adjust.
838
839 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
840
841 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
842
843 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
844
845 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
846
847 2013-02-01 Pedro Alves <palves@redhat.com>
848
849 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
850 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
851
852 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
853
854 * elfread.c (elf_symfile_read): Limit separate debug info additions to
855 files with no separate debug info.
856 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
857 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
858 only for files with no separate debug info.
859
860 2013-01-31 Tom Tromey <tromey@redhat.com>
861
862 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
863 change type.
864 (struct jit_program_space_data): Rename from jit_inferior_data.
865 Update comments.
866 (get_jit_program_space_data): Rename from get_jit_inferior_data.
867 Change return type. Attach data to program space.
868 (jit_program_space_data_cleanup): Rename from
869 jit_inferior_data_cleanup; change argument type.
870 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
871 change type.
872 (jit_register_code): Update.
873 (jit_update_inferior_cache): Remove.
874 (jit_breakpoint_deleted): Get jit data from the location's program
875 space.
876 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
877 'ps_data', change type.
878 (jit_inferior_init, jit_breakpoint_re_set_internal)
879 (jit_event_handler): Update.
880 (free_objfile_data): Get data from objfile's program space.
881 (_initialize_jit): Update.
882
883 2013-01-31 Tom Tromey <tromey@redhat.com>
884
885 PR gdb/13987:
886 * jit.c (struct jit_inferior_data) <cached_code_address,
887 jit_breakpoint>: New fields.
888 (jit_breakpoint_re_set_internal): Fix logging. Only create
889 breakpoint if cached address has changed.
890 (jit_update_inferior_cache, jit_breakpoint_deleted): New
891 functions.
892 (_initialize_jit): Register breakpoint deleted observer.
893
894 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
895
896 * infrun.c (handle_syscall_event): Remove unused gdbarch.
897 (save_infcall_suspend_state): Ifdef out unused inf.
898 (restore_infcall_suspend_state): Ifdef out unused inf.
899 * jit.c (jit_register_code): Remove unused i, b, inf_data.
900 (jit_frame_sniffer): Remove unused inf_data.
901
902 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
903
904 * c-exp.y (classify_inner_name): Remove unused type.
905 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
906 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
907 need_escape.
908 (c_get_string): Remove unused kind.
909 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
910
911 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
912
913 * charset.c (intermediate_encoding): Remove unused i.
914 * completer.c (signal_completer): Remove unused i.
915 * continuations.c (discard_my_continuations_1): Remove unused
916 continuation_ptr.
917 * corelow.c (core_close): Remove unuseD name.
918 (get_core_siginfo): Remove unused pid.
919 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
920 i, cps.
921 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
922 (loclist_describe_location): Remove unused first.
923 * event-top.c (command_line_handler): Remove unused got_eof.
924 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
925 (resize_section_table): Remove unused old_value.
926 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
927 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
928 * i386-tdep.c (i386_process_record): Remove unused rex.
929 * infcmd.c (get_return_value): Remove unused uiout.
930 * jv-lang.c (type_from_class): Remove unused is_array.
931 * jv-valprint.c (java_val_print): Remove unused i.
932 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
933 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
934 * m2-typeprint.c (m2_print_type): Remove unused code.
935 * macroexp.c (get_character_constant): Remove unused body_start.
936 (macro_stringify): Remove unused result.
937 * objc-lang.c (find_methods): Remove unused gdbarch.
938 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
939 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
940 * stack.c (print_frame_args): Remove unused summary.
941 * thread.c (thread_apply_command): Remove unused p.
942 * valarith.c (value_x_unop): Remove unused mangle_ptr.
943 * valops.c (search_struct_method): Remove unused skip.
944 * valprint.c (generic_val_print): Remove unused byte_order.
945 * varobj.c (varobj_update): Remove unused changed.
946 * cli/cli-cmds.c (complete_command): Remove unused next_item.
947 (alias_command): Remove unused c.
948 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
949 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
950 format.
951 (mi_cmd_data_write_memory): Remove unused word_format.
952 (mi_cmd_data_write_memory_bytes): Remove unused r.
953 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
954 p_start, p_end.
955 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
956 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
957 line_width.
958
959 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
960
961 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
962 * symtab.c (iterate_over_symtabs): Remove unused s.
963 (find_pc_sect_symtab): Remove unused pspAce.
964 (find_pc_sect_line): Remove unused alt_symtab.
965 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
966 (completion_list_add_name): Remove unused newsize.
967
968 2013-01-31 Tom Tromey <tromey@redhat.com>
969
970 PR c++/14998:
971 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
972 TYPE_CODE_FUNC.
973
974 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
975
976 * target.c (target_read_string): Remove unused origlen.
977
978 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
979
980 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
981 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
982 * ax-general.c (ax_print): Remove unused is_float.
983 * blockframe.c (block_innermost_frame): Remove unused start, end.
984 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
985
986 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
987
988 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
989 (svr4_read_so_list): Remove unused lmo.
990 * solib-target.c (solib_target_relocate_section_addresses): Remove
991 unused flags.
992
993 2013-01-30 Tom Tromey <tromey@redhat.com>
994
995 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
996
997 2013-01-30 Tom Tromey <tromey@redhat.com>
998
999 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1000 * utils.c (gnu_debuglink_crc32): Remove.
1001 * utils.h (gnu_debuglink_crc32): Don't declare.
1002
1003 2013-01-30 Tom Tromey <tromey@redhat.com>
1004
1005 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1006 (read_structure_type, read_enumeration_type): Remove cast.
1007
1008 2013-01-30 Tom Tromey <tromey@redhat.com>
1009
1010 * dwarf2read.c (read_namespace_type): Remove cast.
1011 (read_typedef): Likewise.
1012
1013 2013-01-29 Tom Tromey <tromey@redhat.com>
1014
1015 * dwarf2read.c (free_dwo_file): Remove assert.
1016
1017 2013-01-29 Tom Tromey <tromey@redhat.com>
1018
1019 * value.c (deprecated_set_value_modifiable): Remove.
1020 * value.h (deprecated_set_value_modifiable): Remove.
1021
1022 2013-01-28 Doug Evans <dje@google.com>
1023
1024 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1025 to addresses from dwo files.
1026
1027 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1028
1029 * valops.c (find_overload_match): Remove unused argument 'lax'.
1030 * value.h: Remove unused argument 'lax' from the declaration of
1031 find_overload_match.
1032 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1033 to find_overload_match.
1034 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1035 argument to find_overload_match.
1036
1037 2013-01-25 Tom Tromey <tromey@redhat.com>
1038
1039 * dwarf2read.c (processing_has_namespace_info): Remove.
1040 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1041 (process_die, read_func_scope, dwarf2_start_symtab)
1042 (new_symbol_full): Update.
1043
1044 2013-01-25 Tom Tromey <tromey@redhat.com>
1045
1046 * cp-namespace.c (cp_set_block_scope): Remove.
1047 * cp-support.h (cp_set_block_scope): Remove.
1048 * dbxread.c: Include block.h.
1049 (cp_set_block_scope): New function.
1050 (process_one_symbol): Update.
1051 * dwarf2read.c (read_func_scope): Use block_set_scope.
1052
1053 2013-01-25 Pedro Alves <palves@redhat.com>
1054
1055 * remote.c (add_current_inferior_and_thread): Tweak comment.
1056
1057 2013-01-25 Tom Tromey <tromey@redhat.com>
1058
1059 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1060 (cp_add_using_directive): Add 'copy_names' argument.
1061 * cp-support.h (cp_add_using_directive): Update.
1062 (struct using_direct) <import_src, import_dest, alias,
1063 declaration>: Now const.
1064 * dwarf2read.c (read_import_statement): Use obconcat.
1065 Don't copy names passed to cp_add_using_directive.
1066
1067 2013-01-25 Tom Tromey <tromey@redhat.com>
1068
1069 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1070
1071 2013-01-25 Pedro Alves <palves@redhat.com>
1072
1073 * remote.c (stop_reply_extract_thread): New.
1074 (add_current_inferior_and_thread): New parameter 'wait_status'.
1075 Handle it.
1076 (remote_start_remote): Pass wait status to
1077 add_current_inferior_and_thread.
1078 (extended_remote_run): Update comment.
1079 (extended_remote_create_inferior_1): Pass wait status to
1080 add_current_inferior_and_thread.
1081
1082 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1083 Ulrich Weigand <uweigand@de.ibm.com>
1084
1085 * valarith.c (value_vector_widen): New function for replicating a
1086 scalar into a vector.
1087 (value_binop): Use value_vector_widen to widen scalar to vector
1088 rather than casting, this better matches gcc C behaviour.
1089 * valops.c (value_casst): Update logic for casting between vector
1090 types, and for casting from scalar to vector, try to match gcc C
1091 behaviour.
1092 * value.h (value_vector_widen): Declare.
1093 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1094 function, handle special case for casting scalar to vector.
1095 (opencl_relop): Use opencl_value_cast.
1096 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1097 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1098 in order to use opencl_value_cast.
1099
1100 2013-01-25 Yao Qi <yao@codesourcery.com>
1101
1102 * event-loop.c: Include "queue.h".
1103 (gdb_event_p): New typedef.
1104 (DECLARE_QUEUE_P): Use.
1105 (DEFINE_QUEUE_P): Use.
1106 (async_queue_event): Remove.
1107 (gdb_event_xfree): New.
1108 (initialize_event_loop): New.
1109 (process_event): Use QUEUE macros.
1110 (event_queue): Remove.
1111 (gdb_wait_for_event): Caller update.
1112 (check_async_event_handlers): Likewise.
1113 (poll_timers): Likewise.
1114 * event-loop.h (initialize_event_loop): Declare.
1115 * event-loop.c (gdb_event_xfree): New.
1116 * top.c (gdb_init): Call initialize_event_loop.
1117
1118 2013-01-25 Yao Qi <yao@codesourcery.com>
1119
1120 * event-loop.c (async_queue_event): Remove one parameter
1121 'position'. Remove code handling 'position' == TAIL.
1122 (gdb_wait_for_event): Caller update.
1123 (check_async_event_handlers): Caller update.
1124 (poll_timers): Caller update.
1125 * event-loop.h (enum queue_position): Remove.
1126
1127 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1128
1129 * MAINTAINERS: Update my email.
1130
1131 2013-01-25 Yao Qi <yao@codesourcery.com>
1132
1133 * main.c (print_gdb_help): Remove "--epoch" from the help
1134 message.
1135
1136 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1137
1138 * symtab.c (skip_prologue_using_sal): Consider a file
1139 change the same as an increased line number
1140
1141 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1142
1143 * MAINTAINERS (Write After Approval): Add myself to the list.
1144
1145 2013-01-24 Tom Tromey <tromey@redhat.com>
1146
1147 * ada-lang.h (ada_decode_symbol): Make return type const.
1148 * ada-lang.c (ada_decode_symbol): Likewise.
1149
1150 2013-01-23 Doug Evans <dje@google.com>
1151
1152 * linespec.c (find_linespec_symbols): Make static.
1153
1154 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1155
1156 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1157 type on float conversion for complex type.
1158
1159 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1160
1161 Add a new class gdb.Architecture which exposes GDB's
1162 internal representation of architecture via GDB Python API.
1163 * Makefile.in: Add entries corresponding to the new file
1164 python/py-arch.c.
1165 * NEWS (Python Scripting): Add entries for the new class
1166 gdb.Architecture and the new method gdb.Frame.architecture.
1167 * python/py-arch.c: Implement gdb.Architecture class.
1168 * python/py-frame.c (frapy_arch): Implement the method
1169 gdb.Frame.architecture().
1170 (frame_object_methods): Add 'architecture' to the method table.
1171 * python/python-internal.h: Add declarations of new utility
1172 functions.
1173 * python/python.c (_initialize_python): Initialize
1174 gdb.Architecture class.
1175
1176 2013-01-23 Doug Evans <dje@google.com>
1177
1178 Work around binutils/15021.
1179 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1180 type_unit_group out of union s. All uses updated.
1181 (read_index_from_section): Watch for index version 8.
1182 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1183 an imported symtab.
1184 (write_psymtabs_to_index): Increment version number to 8.
1185
1186 2013-01-22 Pedro Alves <palves@redhat.com>
1187
1188 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1189 user-visible.
1190
1191 2013-01-22 Pedro Alves <palves@redhat.com>
1192
1193 * annotate.c (annotate_breakpoints_changed): Rename to ...
1194 (annotate_breakpoints_invalid): ... this. Make static.
1195 (breakpoint_changed): Adjust.
1196 (_initialize_annotate): Always install the observers. Install a
1197 "breakpoint_created" observer.
1198 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1199 * breakpoint.c (set_breakpoint_condition)
1200 (breakpoint_set_commands, do_map_commands_command)
1201 (init_raw_breakpoint, clear_command, set_ignore_count)
1202 (enable_breakpoint_disp): No longer call
1203 annotate_breakpoints_changed.
1204
1205 2013-01-22 Pedro Alves <palves@redhat.com>
1206
1207 * annotate.c: Include "inferior.h".
1208 (frames_invalid_emitted)
1209 (breakpoints_invalid_emitted): New globals.
1210 (async_background_execution_p): New function.
1211 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1212 emitting the annotation if it has already been emitted.
1213 (annotate_display_prompt): New function.
1214 * annotate.h (annotate_display_prompt): New declaration.
1215 * event-top.c: Include annotate.h.
1216 (display_gdb_prompt): Call annotate_display_prompt.
1217
1218 2013-01-22 Pedro Alves <palves@redhat.com>
1219
1220 * annotate.c (ignore_count_changed): Delete.
1221 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1222 (annotate_ignore_count_change): Delete.
1223 (annotate_stopped): Don't emit a delayed breakpoints-changed
1224 annotation.
1225 * annotate.h (annotate_ignore_count_change): Delete.
1226 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1227 annotate_ignore_count_change.
1228
1229 2013-01-22 Tom Tromey <tromey@redhat.com>
1230
1231 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1232 require_rvalue for a register location.
1233
1234 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1235
1236 * breakpoint.c (print_one_breakpoint_location): Add MI
1237 field 'thread-groups' when printing a breakpoint.
1238 (output_thread_groups): New function.
1239
1240 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1241
1242 * python/lib/gdb/commands/explore.py
1243 (CompoundExplorer.explore_expr): Correct the name of a method
1244 being invoked.
1245 (ExploreTypeCommand.invoke): Add a missing 'return'.
1246
1247 2013-01-21 Tom Tromey <tromey@redhat.com>
1248
1249 * gdb_obstack.h (obconcat): Move declaration here, from...
1250 * symfile.h (obconcat): ... here.
1251 * gdb_obstack.c: New file.
1252 (obconcat): Move from...
1253 * symfile.c (obconcat): ... here.
1254 * Makefile.in (SFILES): Add gdb_obstack.c.
1255 (COMMON_OBS): Add gdb_obstack.o.
1256
1257 2013-01-21 Tom Tromey <tromey@redhat.com>
1258
1259 * symfile.h (obsavestring): Don't declare.
1260 * symfile.c (obsavestring): Remove.
1261 * ada-exp.y: Use obstack_copy0, not obsavestring.
1262 * ada-lang.c: Use obstack_copy0, not obsavestring.
1263 * coffread.c: Use obstack_copy0, not obsavestring.
1264 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1265 * dbxread.c: Use obstack_copy0, not obsavestring.
1266 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1267 * jit.c: Use obstack_copy0, not obsavestring.
1268 * mdebugread.c: Use obstack_copy0, not obsavestring.
1269 * psymtab.c: Use obstack_copy0, not obsavestring.
1270 * stabsread.c: Use obstack_copy0, not obsavestring.
1271 * xcoffread.c: Use obstack_copy0, not obsavestring.
1272
1273 2013-01-21 Tom Tromey <tromey@redhat.com>
1274
1275 * dwarf2read.c (fixup_go_packaging): Save package name
1276 on objfile obstack.
1277 * gdbtypes.c (init_type): Don't copy name.
1278
1279 2013-01-21 Tom Tromey <tromey@redhat.com>
1280
1281 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1282 const.
1283 (struct attribute) <u.str>: Now const.
1284 (struct fnfieldlist) <name>: Now const.
1285 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1286 (partial_die_parent_scope): Make return type const.
1287 (partial_die_full_name, add_partial_symbol): Update.
1288 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1289 'name' const.
1290 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1291 (read_file_scope, read_func_scope, dwarf2_add_field)
1292 (dwarf2_add_member_fn, read_structure_type)
1293 (process_enumeration_scope, read_array_type, read_module_type)
1294 (read_base_type, read_subrange_type): Update.
1295 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1296 (new_symbol_full, guess_full_die_structure_name): Update.
1297 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1298 (dwarf2_name): Return const type.
1299 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1300 const.
1301
1302 2013-01-21 Tom Tromey <tromey@redhat.com>
1303
1304 * gdbtypes.c (init_type): Make 'name' const.
1305 * gdbtypes.h (init_type): Update.
1306
1307 2013-01-21 Tom Tromey <tromey@redhat.com>
1308
1309 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1310 (start_symtab): Make 'name' and 'dirname' const. Use
1311 set_last_source_file.
1312 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1313 (last_source_file): Define. Now static.
1314 (set_last_source_file, get_last_source_file): New functions.
1315 * buildsym.h (last_source_file): Don't declare.
1316 (start_symtab): Update.
1317 (set_last_source_file, get_last_source_file): Declare.
1318 * coffread.c (complete_symtab): Use set_last_source_file.
1319 (coff_end_symtab): Likewise.
1320 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1321 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1322 set_last_source_file.
1323 (process_one_symbol): Use get_last_source_file.
1324 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1325 (psymtab_to_symtab_1): Use get_last_source_file.
1326 * xcoffread.c (process_linenos): Use get_last_source_file.
1327 (complete_symtab): Use set_last_source_file.
1328 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1329 (scan_xcoff_symtab): Use set_last_source_file.
1330
1331 2013-01-21 Tom Tromey <tromey@redhat.com>
1332
1333 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1334 (symbol_set_names): Remove casts. Handle field const-ness.
1335
1336 2013-01-21 Tom Tromey <tromey@redhat.com>
1337
1338 * dwarf2read.c (new_symbol_full): Remove cast.
1339 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1340 * symtab.h (symbol_set_demangled_name): Update.
1341
1342 2013-01-21 Tom Tromey <tromey@redhat.com>
1343
1344 * main.c (captured_main): Call bfd_init.
1345
1346 2013-01-21 Tom Tromey <tromey@redhat.com>
1347
1348 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1349 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1350 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1351 * NEWS: Update.
1352
1353 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1356
1357 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1358
1359 Fix gdb.fortran/common-block.exp crash in PIE mode.
1360 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1361 LOC_COMMON_BLOCK.
1362 * f-valprint.c (info_common_command_for_block): Expect
1363 LOC_COMMON_BLOCK in gdb_assert.
1364 * symtab.h (struct general_symbol_info): Update comment for the
1365 common_block member.
1366 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1367 (enum address_class): New member LOC_COMMON_BLOCK.
1368
1369 2013-01-18 David Blaikie <dblaikie@gmail.com>
1370
1371 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1372
1373 2013-01-18 Tom Tromey <tromey@redhat.com>
1374
1375 PR c++/14999:
1376 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1377 Call require_rvalue.
1378
1379 2013-01-18 Yao Qi <yao@codesourcery.com>
1380
1381 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1382 (dbx_read_symtab): New declaration.
1383 (dbx_psymtab_to_symtab): Delete.
1384 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1385 Rename parameter PST to SELF. Exchanged two parameters.
1386 (start_psymtab): Caller update.
1387 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1388 (dwarf2_read_symtab): New declaration.
1389 (dwarf2_psymtab_to_symtab): Delete.
1390 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1391 Rename parameter PST to SELF. Exchanged two parameters.
1392 (create_partial_symtab): Caller update.
1393 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1394 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1395 Rename parameter PST to SELF. Exchanged two parameters.
1396 (parse_partial_symbols, new_psymtab): Caller update.
1397 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1398 two parameters.
1399 * psymtab.c (psymtab_to_symtab): Caller update.
1400 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1401 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1402 Rename parameter PST to SELF. Exchanged two parameters.
1403 (xcoff_start_psymtab): Caller update.
1404
1405 2013-01-18 Yao Qi <yao@codesourcery.com>
1406
1407 * infrun.c (proceed): Rename local variable 'oneproc' to
1408 'force_step'.
1409
1410 2013-01-17 Doug Evans <dje@google.com>
1411
1412 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1413 (dw2_build_type_unit_groups): Delete. All uses updated.
1414
1415 * symtab.h (struct symbol_search): Add comment.
1416
1417 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1418
1419 * symtab.c (compare_filenames_for_search): New comment for
1420 HAS_DRIVE_SPEC.
1421
1422 2013-01-17 Tom Tromey <tromey@redhat.com>
1423
1424 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1425
1426 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1427
1428 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1429 initialize it by existing make_cleanup. Call new do_cleanups.
1430
1431 2013-01-17 Tom Tromey <tromey@redhat.com>
1432
1433 * cp-abi.c (cp_abi_completer): New function.
1434 (_initialize_cp_abi): Set completer for "set cp-abi".
1435
1436 2013-01-17 Tom Tromey <tromey@redhat.com>
1437
1438 * mem-break.c: Remove obsolete comment.
1439 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1440
1441 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1442
1443 * jit.c (jit_reader_load_command): Interpret the jit reader name
1444 as an absolute path if it begins with a forward slash.
1445
1446 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1447
1448 PR gdb/14550
1449
1450 * jit.c (finalize_symtab): Ensure that only the global block has a
1451 NULL superblock.
1452
1453 2013-01-17 Pedro Alves <palves@redhat.com>
1454
1455 * acinclude.m4: Include ../config/plugins.m4,
1456 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1457 * Makefile.in (aclocal_m4_deps): Update.
1458 * aclocal.m4: Renegerate.
1459
1460 2013-01-16 Doug Evans <dje@google.com>
1461
1462 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1463
1464 2013-01-16 Pedro Alves <palves@redhat.com>
1465 Tom Tromey <tromey@redhat.com>
1466
1467 PR cli/7221:
1468 * NEWS: Add "catch signal".
1469 * breakpoint.c (base_breakpoint_ops): No longer static.
1470 (bpstat_explains_signal): New function.
1471 (init_catchpoint): No longer static.
1472 (base_breakpoint_explains_signal): New function.
1473 (base_breakpoint_ops): Initialize new field.
1474 * breakpoint.h (enum bpstat_signal_value): New.
1475 (struct breakpoint_ops) <explains_signal>: New field.
1476 (bpstat_explains_signal): Remove macro, declare as function.
1477 (base_breakpoint_ops, init_catchpoint): Declare.
1478 * break-catch-sig.c: New file.
1479 * inferior.h (signal_catch_update): Declare.
1480 * infrun.c (signal_catch): New global.
1481 (handle_syscall_event): Update for change to
1482 bpstat_explains_signal.
1483 (handle_inferior_event): Likewise. Always handle random signals
1484 via bpstats.
1485 (signal_cache_update): Check signal_catch.
1486 (signal_catch_update): New function.
1487 (_initialize_infrun): Initialize signal_catch.
1488 * Makefile.in (SFILES): Add break-catch-sig.c.
1489 (COMMON_OBS): Add break-catch-sig.o.
1490
1491 2013-01-16 Tom Tromey <tromey@redhat.com>
1492
1493 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1494 (print_one_catch_solib, print_one_catch_syscall)
1495 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1496 "catch-type".
1497
1498 2013-01-16 Yao Qi <yao@codesourcery.com>
1499
1500 * printcmd.c (current_display_number): Make it static.
1501
1502 2013-01-16 Yao Qi <yao@codesourcery.com>
1503
1504 * infcmd.c (step_once): Don't check '!single_inst' as it was
1505 checked before.
1506
1507 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1508
1509 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1510
1511 2013-01-14 Tom Tromey <tromey@redhat.com>
1512
1513 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1514 set command.
1515 * command.h (add_setshow_string_noescape_cmd): Update.
1516 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1517 (complete_set_gnutarget): New function.
1518 (_initialize_core): Set the "set gnutarget" completer.
1519
1520 2013-01-14 Tom Tromey <tromey@redhat.com>
1521
1522 PR symtab/14442:
1523 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1524 (c_type_print_modifier): Likewise.
1525 * dwarf2read.c (read_tag_restrict_type): New function.
1526 (read_type_die_1): Handle DW_TAG_restrict_type.
1527 * gdbtypes.c (make_restrict_type): New function.
1528 (recursive_dump_type): Handle TYPE_RESTRICT.
1529 * gdbtypes.h (enum type_flag_values): Renumber.
1530 (enum type_instance_flag_value): Add
1531 TYPE_INSTANCE_FLAG_RESTRICT.
1532 (TYPE_RESTRICT): New macro.
1533 (make_restrict_type): Declare.
1534
1535 2013-01-14 Tom Tromey <tromey@redhat.com>
1536
1537 PR symtab/14931:
1538 * psymtab.c (struct psymtab_state): New.
1539 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1540 functions.
1541 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1542 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1543
1544 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1545 Pedro Alves <palves@redhat.com>
1546
1547 PR remote/14786
1548
1549 * remote.c (remote_threads_info): Make a copy of the reply from
1550 qfThreadInfo and use that instead of rs->buf.
1551
1552 2013-01-14 Yao Qi <yao@codesourcery.com>
1553
1554 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1555 (dbx_psymtab_to_symtab): Likewise.
1556 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1557 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1558 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1559
1560 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1561
1562 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1563 make_cleanup_restore_current_language. Call set_language. Move
1564 OLD_CHAIN and INNER_CHAIN cleanups.
1565 * utils.c (do_restore_current_language)
1566 (make_cleanup_restore_current_language): New functions.
1567 * utils.h (make_cleanup_restore_current_language): New declaration.
1568
1569 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1570
1571 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1572 non-existing files.
1573
1574 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1575 non-existing files if FILENAME is already absolute.
1576
1577 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1578
1579 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1580 fputs_filtered. Append trailing newline.
1581
1582 2013-01-11 Yao Qi <yao@codesourcery.com>
1583 Stan Shebs <stan@codesourcery.com>
1584
1585 * psymtab.c (init_psymbol_list): Clarify the comment.
1586
1587 2013-01-11 Yao Qi <yao@codesourcery.com>
1588
1589 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1590 (update_dprintf_command_list): Assert that 'printf_line' is
1591 non-null. Remove condition check.
1592
1593 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1594
1595 Code cleanup.
1596 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1597 type const char *.
1598 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1599 const char *.
1600 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1601
1602 2013-01-09 Anthony Green <green@moxielogic.com>
1603
1604 * cp-abi.c (cplus_print_vtable): Don't return value from void
1605 function.
1606 * ada-lang.c (re_set_catch_assert): Ditto.
1607
1608 2013-01-09 Doug Evans <dje@google.com>
1609
1610 * symfile.h (quick_symbol_functions): Delete member
1611 pre_expand_symtabs_matching. All uses removed.
1612 * dwarf2read.c (dw2_lookup_symbol): Implement.
1613 (dw2_do_expand_symtabs_matching): Delete.
1614 (dw2_pre_expand_symtabs_matching): Delete.
1615 (struct dw2_symtab_iterator): New type.
1616 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1617 (dw2_expand_symtabs_for_function): Rewrite.
1618 (dwarf2_gdb_index_functions): Update.
1619 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1620 (psym_functions): Update.
1621
1622 2013-01-09 Tom Tromey <tromey@redhat.com>
1623
1624 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1625 * configure: Rebuild.
1626 * configure.ac: Add somread.o to the build if BFD has SOM
1627 support.
1628 * somread.c: Include som/aout.h, not syms.h.
1629 (som_symtab_read): Use som_external_symbol_dictionary_record.
1630 Unpack records manually.
1631 (_initialize_somread): Declare.
1632
1633 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1634
1635 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1636 Cast return_address to 64bits.
1637
1638 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1639
1640 * printcmd.c: Remove define of function output_command.
1641 * tracepoint.c: Remove extern of function output_command.
1642 * valprint.h: (output_command): New extern.
1643
1644 2013-01-07 Tom Tromey <tromey@redhat.com>
1645
1646 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1647 Remove.
1648 (objc_language_defn): Use c_printchar, c_printstr,
1649 c_emit_char.
1650
1651 2013-01-07 Tom Tromey <tromey@redhat.com>
1652
1653 PR cli/7719:
1654 * NEWS: Update.
1655 * ada-valprint.c (printstr, print_field_values): Remove
1656 "inspect_it" code.
1657 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1658 code.
1659 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1660 code.
1661 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1662 * main.c (captured_main): Remove "epoch" argument.
1663 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1664 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1665 * p-valprint.c (pascal_object_print_value_fields): Remove
1666 "inspect_it" code.
1667 * printcmd.c (print_command_1): Remove 'inspect' argument.
1668 (print_command, call_command): Update.
1669 (inspect_command): Remove.
1670 (_initialize_printcmd): Make "inspect" an alias for "print".
1671 * top.c (epoch_interface): Remove.
1672 * top.h (epoch_interface): Remove.
1673 * valprint.c (user_print_options): Update.
1674 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1675 * valprint.h (struct value_print_options) <inspect_it>: Remove
1676 field.
1677
1678 2013-01-04 Tom Tromey <tromey@redhat.com>
1679
1680 * valprint.h (read_string): Add 'extern'.
1681
1682 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1683
1684 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1685 used to decide whether to define darwin_read_dyld_info or not.
1686
1687 2013-01-03 Pierre Muller <muller@sourceware.org>
1688
1689 * main.c (relocate_gdb_directory): Avoid calling stat function
1690 if DIR is empty.
1691
1692 2013-01-03 Yao Qi <yao@codesourcery.com>
1693
1694 * psymtab.c (fixup_psymbol_section): Update declaration.
1695 (fixup_psymbol_section): Remove code returning value.
1696
1697 2013-01-03 Yao Qi <yao@codesourcery.com>
1698
1699 * symtab.h: Remove some out of date comments.
1700 (enum exception_event_kind): Move it ...
1701 * breakpoint.c: ... here.
1702
1703 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1704
1705 PR gdb/14405
1706 * darwin-nat.c (darwin_read_dyld_info): Only build if
1707 TASK_DYLD_INFO_COUNT is defined.
1708 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1709 TASK_DYLD_INFO_COUNT is defined.
1710
1711 2013-01-02 Tom Tromey <tromey@redhat.com>
1712
1713 * symfile.h (struct ecoff_debug_hack): Remove.
1714 * objfiles.c: Don't include mdebugread.h.
1715
1716 2013-01-02 Tom Tromey <tromey@redhat.com>
1717
1718 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1719 * configure.ac: Check for Mach-O support in BFD. Update
1720 CONFIG_OBS.
1721 * configure: Rebuild.
1722
1723 2013-01-02 Tom Tromey <tromey@redhat.com>
1724
1725 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1726 * configure.ac: Use GDB_AC_CHECK_BFD.
1727 * configure: Rebuild.
1728
1729 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1730
1731 * MAINTAINERS: Update my email.
1732
1733 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1734
1735 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1736
1737 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1738
1739 * rs6000-nat.c (bss_data_overlap): New function.
1740 (vmap_symtab): Use it to adjust the .bss section's offset.
1741
1742 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1743
1744 Update year range in copyright notice of all files.
1745
1746 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1747
1748 * top.c (print_gdb_version): Update copyright year.
1749
1750 For older changes see ChangeLog-2012.
1751 \f
1752 Local Variables:
1753 mode: change-log
1754 left-margin: 8
1755 fill-column: 74
1756 version-control: never
1757 coding: utf-8
1758 End: